smart-web-ui 1.0.0 → 1.0.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.
Files changed (120) hide show
  1. package/dist/BuildingList.js +8 -0
  2. package/dist/CategoryPieChart.js +435 -0
  3. package/dist/ChartModel.js +46 -0
  4. package/dist/ChartTable.js +162 -0
  5. package/dist/CircularPieChart.js +314 -0
  6. package/dist/CloseButtonA.js +39 -0
  7. package/dist/ColumnDiagram.js +352 -0
  8. package/dist/DataColumnDiagram.js +275 -0
  9. package/dist/DatePicker.js +142 -0
  10. package/dist/DateTimePicker.js +146 -0
  11. package/dist/DateYearPicker.js +152 -0
  12. package/dist/DayTimerShaft.js +894 -0
  13. package/dist/DoubleColumnDiagram.js +360 -0
  14. package/dist/DoubleLineChart.js +410 -0
  15. package/dist/DoubleStraightLineChart.js +405 -0
  16. package/dist/EffectLoading.js +15 -0
  17. package/dist/GradientCircularPieChart.js +372 -0
  18. package/dist/GradientPieChart.js +501 -0
  19. package/dist/HikPlayer.js +10 -0
  20. package/dist/ImaginaryAndRealLineChart.js +405 -0
  21. package/dist/InfiniteScrollingTable.js +2150 -0
  22. package/dist/JessibucaPlayer.js +181 -0
  23. package/dist/LineChart.js +279 -0
  24. package/dist/MenuOne.js +75 -0
  25. package/dist/MultiDataColumnDiagram.js +398 -0
  26. package/dist/MultigraphChart.js +392 -0
  27. package/dist/MultitermBorderColumnDiagram.js +384 -0
  28. package/dist/MultitermColumnDiagram.js +359 -0
  29. package/dist/MyButton.js +8 -0
  30. package/dist/MyInput.js +42 -0
  31. package/dist/OnlinePieChart.js +365 -0
  32. package/dist/PantiltControl.js +147 -0
  33. package/dist/PictorialChart.js +205 -0
  34. package/dist/PieChart.js +252 -0
  35. package/dist/PieChartLegendCustom.js +251 -0
  36. package/dist/PieChartOne.js +438 -0
  37. package/dist/PopupFrame.js +131 -0
  38. package/dist/RangTimePicker.js +160 -0
  39. package/dist/RangePicker.js +156 -0
  40. package/dist/SingleLineChart.js +405 -0
  41. package/dist/SplitPie.js +242 -0
  42. package/dist/SplitPieChart.js +294 -0
  43. package/dist/StacketColumnDiagram.js +345 -0
  44. package/dist/TechnologyBlueFrameworkOne.js +183 -0
  45. package/dist/TimerShaft.js +229 -0
  46. package/dist/ToroidalPieChart.js +318 -0
  47. package/dist/WordCloudOne.js +138 -0
  48. package/dist/WordCloudTwo.js +157 -0
  49. package/dist/chunks/BuildingList-CU-EXKgo.js +126 -0
  50. package/dist/chunks/HikPlayer-DKfQRkh6.js +422 -0
  51. package/dist/chunks/MyButton-DvqgvXGG.js +36 -0
  52. package/dist/chunks/_commonjsHelpers-C6fGbg64.js +6 -0
  53. package/dist/chunks/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
  54. package/dist/chunks/dayjs.min-CQFNnJKC.js +285 -0
  55. package/dist/chunks/debounce-DmrysiyS.js +84 -0
  56. package/dist/chunks/index-CBkwld9S.js +43886 -0
  57. package/dist/chunks/index-CYrEZgNC.js +334 -0
  58. package/dist/chunks/isObject-Bhos3v62.js +33 -0
  59. package/dist/chunks/merge-H4ZkNr1T.js +487 -0
  60. package/dist/chunks/wordCloud-uiqgdIRk.js +737 -0
  61. package/dist/chunks/zh_CN-BUEgxmeh.js +79 -0
  62. package/dist/css/BuildingList-Bdnl0gBJ.css +1 -0
  63. package/dist/css/CategoryPieChart-DBMhOWSp.css +1 -0
  64. package/dist/css/ChartModel-Dv4h1lb5.css +1 -0
  65. package/dist/css/ChartTable-Cr0oTeRE.css +1 -0
  66. package/dist/css/CircularPieChart-C3BGd8fm.css +1 -0
  67. package/dist/css/CloseButtonA-DY2NFd49.css +1 -0
  68. package/dist/css/ColumnDiagram-Dis9ikD8.css +1 -0
  69. package/dist/css/DataColumnDiagram-BT2JWzYV.css +1 -0
  70. package/dist/css/DatePicker-BcnVF2a0.css +1 -0
  71. package/dist/css/DateTimePicker-ogqIcJbR.css +1 -0
  72. package/dist/css/DateYearPicker-Cxi6LOU5.css +1 -0
  73. package/dist/css/DayTimerShaft-CgF_vvOC.css +1 -0
  74. package/dist/css/DoubleColumnDiagram-BxutsIuM.css +1 -0
  75. package/dist/css/DoubleLineChart-BDAn7Vm_.css +1 -0
  76. package/dist/css/DoubleStraightLineChart-DIRVxSDN.css +1 -0
  77. package/dist/css/EffectLoading-Ctm_V9PA.css +1 -0
  78. package/dist/css/GradientCircularPieChart-DwvudWRO.css +1 -0
  79. package/dist/css/GradientPieChart-BIbCGRqo.css +1 -0
  80. package/dist/css/HikPlayer-CZ3Esf6X.css +1 -0
  81. package/dist/css/ImaginaryAndRealLineChart-DM6nwp5j.css +1 -0
  82. package/dist/css/InfiniteScrollingTable-DI-gbfBL.css +1 -0
  83. package/dist/css/JessibucaPlayer-DYHP4jB_.css +1 -0
  84. package/dist/css/LineChart-BMK43A6-.css +1 -0
  85. package/dist/css/MenuOne-DZagmMAX.css +1 -0
  86. package/dist/css/MultiDataColumnDiagram-D1yx69tf.css +1 -0
  87. package/dist/css/MultigraphChart-C4dh2No_.css +1 -0
  88. package/dist/css/MultitermBorderColumnDiagram-DAn4G2De.css +1 -0
  89. package/dist/css/MultitermColumnDiagram-CF0BvPJO.css +1 -0
  90. package/dist/css/MyButton-CE8oLA-0.css +1 -0
  91. package/dist/css/MyInput-CauB72eE.css +1 -0
  92. package/dist/css/OnlinePieChart-DjGjF_9i.css +1 -0
  93. package/dist/css/PantiltControl-DS0BWsLg.css +1 -0
  94. package/dist/css/PictorialChart-D_NmyxMl.css +1 -0
  95. package/dist/css/PieChart-ijJKQrDc.css +1 -0
  96. package/dist/css/PieChartLegendCustom-BIQtqA8m.css +1 -0
  97. package/dist/css/PieChartOne-D1gY-q_Q.css +1 -0
  98. package/dist/css/PopupFrame-BuPG741n.css +1 -0
  99. package/dist/css/RangTimePicker-BhS_Fhaj.css +1 -0
  100. package/dist/css/RangePicker-Cmdpil97.css +1 -0
  101. package/dist/css/SingleLineChart-YXl29ldj.css +1 -0
  102. package/dist/css/SplitPie-vGvTEPG-.css +1 -0
  103. package/dist/css/SplitPieChart-yTrBBQxd.css +1 -0
  104. package/dist/css/StacketColumnDiagram-BvMIqlC_.css +1 -0
  105. package/dist/css/TechnologyBlueFrameworkOne-CMF1mCbl.css +1 -0
  106. package/dist/css/TimerShaft-LaGF129n.css +1 -0
  107. package/dist/css/ToroidalPieChart-CcfTDUUR.css +1 -0
  108. package/dist/css/WordCloudOne-CsMA5RxS.css +1 -0
  109. package/dist/css/WordCloudTwo-LSvh51aP.css +1 -0
  110. package/dist/css/index-jBItPHyv.css +1 -0
  111. package/dist/favicon.svg +1 -0
  112. package/dist/index.js +151 -0
  113. package/package.json +51 -50
  114. package/dist/assets/fonts/D-DIN.otf +0 -0
  115. package/dist/assets/fonts/PingFangSC.woff2 +0 -0
  116. package/dist/assets/fonts/SourceHanSansCN-Regular.woff +0 -0
  117. package/dist/assets/fonts/ysbth.woff +0 -0
  118. package/dist/smart-web-ui.css +0 -1
  119. package/dist/smart-web-ui.es.js +0 -67
  120. package/dist/smart-web-ui.umd.js +0 -1
@@ -0,0 +1,894 @@
1
+ import { nextTick as z, watch as A, openBlock as O, createElementBlock as j, normalizeStyle as I, createElementVNode as _ } from "vue";
2
+ import { g as F } from "./chunks/_commonjsHelpers-C6fGbg64.js";
3
+ import { _ as $ } from "./chunks/_plugin-vue_export-helper-CHgC5LLL.js";
4
+ var M = { exports: {} }, N;
5
+ function R() {
6
+ return N || (N = 1, function(C, P) {
7
+ (function(d, g) {
8
+ C.exports = g();
9
+ })(window, function() {
10
+ return function(d) {
11
+ var g = {};
12
+ function h(a) {
13
+ if (g[a]) return g[a].exports;
14
+ var c = g[a] = { i: a, l: !1, exports: {} };
15
+ return d[a].call(c.exports, c, c.exports, h), c.l = !0, c.exports;
16
+ }
17
+ return h.m = d, h.c = g, h.d = function(a, c, p) {
18
+ h.o(a, c) || Object.defineProperty(a, c, { enumerable: !0, get: p });
19
+ }, h.r = function(a) {
20
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(a, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(a, "__esModule", { value: !0 });
21
+ }, h.t = function(a, c) {
22
+ if (1 & c && (a = h(a)), 8 & c || 4 & c && typeof a == "object" && a && a.__esModule) return a;
23
+ var p = /* @__PURE__ */ Object.create(null);
24
+ if (h.r(p), Object.defineProperty(p, "default", { enumerable: !0, value: a }), 2 & c && typeof a != "string") for (var u in a) h.d(p, u, (function(T) {
25
+ return a[T];
26
+ }).bind(null, u));
27
+ return p;
28
+ }, h.n = function(a) {
29
+ var c = a && a.__esModule ? function() {
30
+ return a.default;
31
+ } : function() {
32
+ return a;
33
+ };
34
+ return h.d(c, "a", c), c;
35
+ }, h.o = function(a, c) {
36
+ return Object.prototype.hasOwnProperty.call(a, c);
37
+ }, h.p = "", h(h.s = 3);
38
+ }([function(d, g, h) {
39
+ var a = h(2), c = h.n(a)()(function(p) {
40
+ return p[1];
41
+ });
42
+ c.push([d.i, `.playback-container{\r
43
+ min-height: calc(100vh - 70px);\r
44
+ max-height: calc(100vh - 70px);\r
45
+ background-color: rgb(85, 85, 85);\r
46
+ }\r
47
+ .playback-container .date-select{\r
48
+ width:212px;\r
49
+ background-color: rgb(51, 51, 51);\r
50
+ }\r
51
+ .playback-container .ui-datepicker-header{\r
52
+ display: flex;\r
53
+ justify-content: space-between;\r
54
+ width: 100%;\r
55
+ box-sizing: border-box;\r
56
+ padding:5px;\r
57
+ \r
58
+ color:white;\r
59
+ }\r
60
+ .playback-container table td {\r
61
+ width:28px;\r
62
+ height:28px;\r
63
+ }\r
64
+ .playback-container table td .item{\r
65
+ display: inline-block;\r
66
+ width: 24px;\r
67
+ height: 24px;\r
68
+ line-height: 24px;\r
69
+ background-color: rgb(0, 0, 0);\r
70
+ color:white;\r
71
+ font-size:12px;\r
72
+ text-align: center;\r
73
+ cursor: pointer;\r
74
+ }\r
75
+ .container-content{\r
76
+ display: flex;\r
77
+ height: calc(80vh - 49px) ;\r
78
+ min-height: 390px;\r
79
+ box-sizing: border-box;\r
80
+ padding:20px\r
81
+ }\r
82
+ .container-content .date-select{\r
83
+ width:260px;\r
84
+ background-color: rgb(34, 34, 34);\r
85
+ border-radius: 10px;\r
86
+ padding: 5px;\r
87
+ box-sizing: border-box;\r
88
+ }\r
89
+ .ui-datepicker-body{\r
90
+ display: flex;\r
91
+ justify-content: center;\r
92
+ }\r
93
+ .playback-container .player-box{\r
94
+ width:100%;\r
95
+ background-color: rgb(34, 34, 34);\r
96
+ margin-left: 20px;\r
97
+ display: flex;\r
98
+ flex-direction: column;\r
99
+ border-radius: 10px;\r
100
+ overflow: hidden;\r
101
+ }\r
102
+ .playback-container .playback-canvas{\r
103
+ height: 100%;\r
104
+ }\r
105
+ .playback-fullScreen-canvas{\r
106
+ width: 100% !important;\r
107
+ height:auto !important;\r
108
+ }\r
109
+ .playback-container .canvas-container{\r
110
+ height: calc(100% - 52px);\r
111
+ text-align: center;\r
112
+ }\r
113
+ \r
114
+ .time-slider-container{\r
115
+ /* height: calc(20vh - 21px) ; */\r
116
+ min-height: 125px;\r
117
+ transition: 1.5s all;\r
118
+ position: fixed;\r
119
+ bottom: 0;\r
120
+ }\r
121
+ .ui-datepicker-body .date-selected{\r
122
+ background-color: rgb(3, 191, 22) !important;\r
123
+ }\r
124
+ .ui-datepicker-body .item{\r
125
+ position: relative;\r
126
+ border-radius: 2px;\r
127
+ }\r
128
+ .ui-datepicker-body .sign-date{\r
129
+ position: absolute;\r
130
+ right:0;\r
131
+ }\r
132
+ .ui-datepicker-body th {\r
133
+ color: #fff;\r
134
+ font-weight: normal;\r
135
+ }\r
136
+ .opacity-3{\r
137
+ opacity: 0.3;\r
138
+ }\r
139
+ .jump-month-btn{\r
140
+ cursor: pointer;\r
141
+ }\r
142
+ \r
143
+ #timeSlider{\r
144
+ position: relative;\r
145
+ width: 100%;\r
146
+ max-width: 100%;\r
147
+ box-sizing: border-box;\r
148
+ padding: 40px 20px;\r
149
+ background-color: rgba(0, 0, 0, 1);\r
150
+ overflow: hidden;\r
151
+ user-select: none;\r
152
+ }\r
153
+ \r
154
+ .ts-container {\r
155
+ position: relative;\r
156
+ display: flex;\r
157
+ pointer-events: none;\r
158
+ \r
159
+ }\r
160
+ \r
161
+ .ts-axis {\r
162
+ background-color: rgba(255, 255, 255, .1);\r
163
+ height: 20px;\r
164
+ pointer-events: none;\r
165
+ z-index: 99;\r
166
+ color: rgba(255, 255, 255, 0.596078431372549);\r
167
+ font-size: 14px;\r
168
+ }\r
169
+ \r
170
+ .ts-axis-60 {\r
171
+ flex: 1;\r
172
+ border-right: 1px solid rgba(0, 0, 0, 1);\r
173
+ min-width: 48px;\r
174
+ box-sizing: border-box;\r
175
+ position: relative;\r
176
+ \r
177
+ }\r
178
+ \r
179
+ .ts-timeChunk {\r
180
+ height: 20px;\r
181
+ /* display: none; */\r
182
+ position: absolute;\r
183
+ z-index: 99\r
184
+ }\r
185
+ \r
186
+ .ts-axis-long {\r
187
+ height: 20px;\r
188
+ }\r
189
+ \r
190
+ .ts-axis-short {\r
191
+ height: 10px;\r
192
+ }\r
193
+ \r
194
+ .ts-axis-last {\r
195
+ border-right: none;\r
196
+ }\r
197
+ \r
198
+ .ts-axis-time {\r
199
+ position: absolute;\r
200
+ top: -25px;\r
201
+ left: -20px;\r
202
+ }\r
203
+ \r
204
+ .ts-axis-time-last {\r
205
+ position: absolute;\r
206
+ top: -120%;\r
207
+ left: 50%;\r
208
+ }\r
209
+ \r
210
+ .ts-move {\r
211
+ cursor: move;\r
212
+ }\r
213
+ \r
214
+ .ts-line {\r
215
+ height: 100px;\r
216
+ border-left: 1px solid rgba(255, 255, 0, 1);\r
217
+ box-sizing: border-box;\r
218
+ color: white;\r
219
+ font-size: 12px;\r
220
+ position: absolute;\r
221
+ top: 20px;\r
222
+ z-index: 999;\r
223
+ pointer-events: none;\r
224
+ /* position: relative; */\r
225
+ }\r
226
+ .ts-assist-line{\r
227
+ height: 100px;\r
228
+ border-left: 1px solid rgba(255, 255, 0, 0.5);\r
229
+ box-sizing: border-box;\r
230
+ color: white;\r
231
+ font-size: 12px;\r
232
+ position: absolute;\r
233
+ top: 20px;\r
234
+ z-index: 999;\r
235
+ pointer-events: none;\r
236
+ display: none;\r
237
+ }\r
238
+ .ts-line-present {\r
239
+ /* display: none; */\r
240
+ position: relative;\r
241
+ top:-20px;\r
242
+ left: -20px;\r
243
+ }\r
244
+ .ts-assist-line-present{\r
245
+ position: relative;\r
246
+ top:-20px;\r
247
+ left: -20px;\r
248
+ display: none;\r
249
+ color:rgba(255,255,255,0.5)\r
250
+ }\r
251
+ \r
252
+ .time-slider-count{\r
253
+ display: flex;\r
254
+ background-color: rgb(24, 24, 24);\r
255
+ box-sizing: border-box;\r
256
+ padding:10px 20px;\r
257
+ }\r
258
+ .time-slider-count .item{\r
259
+ display: flex;\r
260
+ font-size: 14px;\r
261
+ color:rgb(155, 164, 164);\r
262
+ align-items: center;\r
263
+ }\r
264
+ .time-slider-count .item div{\r
265
+ width:14px;\r
266
+ height: 14px;\r
267
+ margin-right: 14px;\r
268
+ }\r
269
+ .time-slider-count .background-1{\r
270
+ background-color: rgb(0, 0, 255);\r
271
+ }\r
272
+ .time-slider-count .background-2{\r
273
+ background-color: rgb(0, 255, 0);\r
274
+ }\r
275
+ .time-slider-count .background-3{\r
276
+ background-color: rgb(255, 0, 0);\r
277
+ }\r
278
+ .time-slider-count .background-4{\r
279
+ background-color: rgb(0, 128, 128);\r
280
+ }\r
281
+ .time-slider-count .background-5{\r
282
+ background-color: rgb(128, 0, 0);\r
283
+ }\r
284
+ .time-slider-count .background-6{\r
285
+ background-color: rgb(255, 255, 0);\r
286
+ }\r
287
+ .time-slider-count .background-7{\r
288
+ background-color: rgb(128, 128, 0);\r
289
+ }\r
290
+ .time-slider-count .background-8{\r
291
+ background-color: rgb(240, 128, 128);\r
292
+ }\r
293
+ .time-slider-count .background-9{\r
294
+ background-color: rgb(255, 0, 255);\r
295
+ }\r
296
+ .item-cur-month .icon-up{\r
297
+ color: red;\r
298
+ display: inline-block;\r
299
+ top: -9px;\r
300
+ position: absolute;\r
301
+ transform: rotate(45deg);\r
302
+ font-size: 12px;\r
303
+ left: 15px;\r
304
+ }\r
305
+ .playback-container .bottom-setting{\r
306
+ height: 52px;\r
307
+ background-color: rgb(242, 242, 242);\r
308
+ display: flex;\r
309
+ align-items: center;\r
310
+ box-sizing: border-box;\r
311
+ padding:10px;\r
312
+ justify-content: space-between;\r
313
+ }\r
314
+ .playback-container .bottom-setting .iconfont{\r
315
+ cursor: pointer;\r
316
+ }\r
317
+ .playback-container .bottom-setting .iconfont:hover{\r
318
+ color:rgb(0, 183, 46)\r
319
+ }\r
320
+ .playback-container .iconfont{\r
321
+ font-size:22px;\r
322
+ }\r
323
+ .playback-container .icon-up{\r
324
+ font-size:10px !important;\r
325
+ pointer-events:none;\r
326
+ }\r
327
+ .playback-fullScreen-box{\r
328
+ position: absolute;\r
329
+ right: 0;\r
330
+ left: 0;\r
331
+ bottom: 0;\r
332
+ display: flex;\r
333
+ justify-content: flex-end;\r
334
+ z-index: 10;\r
335
+ padding: 20px;\r
336
+ }\r
337
+ \r
338
+ .playback-fullScreen-timeSlider-show{\r
339
+ position: fixed !important;\r
340
+ left:0 !important;\r
341
+ right:0 !important;\r
342
+ bottom:0 !important;\r
343
+ z-index:100001 !important;\r
344
+ height:auto !important;\r
345
+ opacity: 0.8;\r
346
+ }\r
347
+ .bottom-setting div{\r
348
+ display: flex;\r
349
+ align-items: center;\r
350
+ }\r
351
+ .bottom-setting i{\r
352
+ margin-right: 10px;\r
353
+ }`, ""]), g.a = c;
354
+ }, function(d, g, h) {
355
+ var a, c = function() {
356
+ return a === void 0 && (a = !!(window && document && document.all && !window.atob)), a;
357
+ }, p = /* @__PURE__ */ function() {
358
+ var t = {};
359
+ return function(n) {
360
+ if (t[n] === void 0) {
361
+ var r = document.querySelector(n);
362
+ if (window.HTMLIFrameElement && r instanceof window.HTMLIFrameElement) try {
363
+ r = r.contentDocument.head;
364
+ } catch {
365
+ r = null;
366
+ }
367
+ t[n] = r;
368
+ }
369
+ return t[n];
370
+ };
371
+ }(), u = [];
372
+ function T(t) {
373
+ for (var n = -1, r = 0; r < u.length; r++) if (u[r].identifier === t) {
374
+ n = r;
375
+ break;
376
+ }
377
+ return n;
378
+ }
379
+ function L(t, n) {
380
+ for (var r = {}, o = [], l = 0; l < t.length; l++) {
381
+ var y = t[l], x = n.base ? y[0] + n.base : y[0], v = r[x] || 0, S = "".concat(x, " ").concat(v);
382
+ r[x] = v + 1;
383
+ var w = T(S), E = { css: y[1], media: y[2], sourceMap: y[3] };
384
+ w !== -1 ? (u[w].references++, u[w].updater(E)) : u.push({ identifier: S, updater: s(E, n), references: 1 }), o.push(S);
385
+ }
386
+ return o;
387
+ }
388
+ function m(t) {
389
+ var n = document.createElement("style"), r = t.attributes || {};
390
+ if (r.nonce === void 0) {
391
+ var o = h.nc;
392
+ o && (r.nonce = o);
393
+ }
394
+ if (Object.keys(r).forEach(function(y) {
395
+ n.setAttribute(y, r[y]);
396
+ }), typeof t.insert == "function") t.insert(n);
397
+ else {
398
+ var l = p(t.insert || "head");
399
+ if (!l) throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");
400
+ l.appendChild(n);
401
+ }
402
+ return n;
403
+ }
404
+ var f, k = (f = [], function(t, n) {
405
+ return f[t] = n, f.filter(Boolean).join(`
406
+ `);
407
+ });
408
+ function b(t, n, r, o) {
409
+ var l = r ? "" : o.media ? "@media ".concat(o.media, " {").concat(o.css, "}") : o.css;
410
+ if (t.styleSheet) t.styleSheet.cssText = k(n, l);
411
+ else {
412
+ var y = document.createTextNode(l), x = t.childNodes;
413
+ x[n] && t.removeChild(x[n]), x.length ? t.insertBefore(y, x[n]) : t.appendChild(y);
414
+ }
415
+ }
416
+ function D(t, n, r) {
417
+ var o = r.css, l = r.media, y = r.sourceMap;
418
+ if (l ? t.setAttribute("media", l) : t.removeAttribute("media"), y && typeof btoa < "u" && (o += `
419
+ /*# sourceMappingURL=data:application/json;base64,`.concat(btoa(unescape(encodeURIComponent(JSON.stringify(y)))), " */")), t.styleSheet) t.styleSheet.cssText = o;
420
+ else {
421
+ for (; t.firstChild; ) t.removeChild(t.firstChild);
422
+ t.appendChild(document.createTextNode(o));
423
+ }
424
+ }
425
+ var e = null, i = 0;
426
+ function s(t, n) {
427
+ var r, o, l;
428
+ if (n.singleton) {
429
+ var y = i++;
430
+ r = e || (e = m(n)), o = b.bind(null, r, y, !1), l = b.bind(null, r, y, !0);
431
+ } else r = m(n), o = D.bind(null, r, n), l = function() {
432
+ (function(x) {
433
+ if (x.parentNode === null) return !1;
434
+ x.parentNode.removeChild(x);
435
+ })(r);
436
+ };
437
+ return o(t), function(x) {
438
+ if (x) {
439
+ if (x.css === t.css && x.media === t.media && x.sourceMap === t.sourceMap) return;
440
+ o(t = x);
441
+ } else l();
442
+ };
443
+ }
444
+ d.exports = function(t, n) {
445
+ (n = n || {}).singleton || typeof n.singleton == "boolean" || (n.singleton = c());
446
+ var r = L(t = t || [], n);
447
+ return function(o) {
448
+ if (o = o || [], Object.prototype.toString.call(o) === "[object Array]") {
449
+ for (var l = 0; l < r.length; l++) {
450
+ var y = T(r[l]);
451
+ u[y].references--;
452
+ }
453
+ for (var x = L(o, n), v = 0; v < r.length; v++) {
454
+ var S = T(r[v]);
455
+ u[S].references === 0 && (u[S].updater(), u.splice(S, 1));
456
+ }
457
+ r = x;
458
+ }
459
+ };
460
+ };
461
+ }, function(d, g, h) {
462
+ d.exports = function(a) {
463
+ var c = [];
464
+ return c.toString = function() {
465
+ return this.map(function(p) {
466
+ var u = a(p);
467
+ return p[2] ? "@media ".concat(p[2], " {").concat(u, "}") : u;
468
+ }).join("");
469
+ }, c.i = function(p, u, T) {
470
+ typeof p == "string" && (p = [[null, p, ""]]);
471
+ var L = {};
472
+ if (T) for (var m = 0; m < this.length; m++) {
473
+ var f = this[m][0];
474
+ f != null && (L[f] = !0);
475
+ }
476
+ for (var k = 0; k < p.length; k++) {
477
+ var b = [].concat(p[k]);
478
+ T && L[b[0]] || (u && (b[2] ? b[2] = "".concat(u, " and ").concat(b[2]) : b[2] = u), c.push(b));
479
+ }
480
+ }, c;
481
+ };
482
+ }, function(d, g, h) {
483
+ h.r(g);
484
+ var a = class {
485
+ timeTranslateSecondsUtils(e) {
486
+ return Number(e.slice(4)) + 60 * Number(e.slice(2, 4)) + 60 * Number(e.slice(0, 2)) * 60;
487
+ }
488
+ secondsTranslateTimeUtils(e) {
489
+ let i = this.timeFormatUtils(Math.floor(e / 60 / 60));
490
+ return `${i}:${this.timeFormatUtils(Math.floor((e - 60 * i * 60) / 60))}:${this.timeFormatUtils(Math.floor(e % 60))}`;
491
+ }
492
+ timeFormatUtils(e) {
493
+ return e >= 10 ? e : "0" + e;
494
+ }
495
+ getDomInstanceUtils(e) {
496
+ return document.querySelector(e);
497
+ }
498
+ domLeftToNumberUtils(e) {
499
+ return e && Number(e.style.left.split("px")[0]);
500
+ }
501
+ }, c = class extends a {
502
+ constructor(e) {
503
+ super(), this.timeStr = e, this.init();
504
+ }
505
+ init() {
506
+ let e = this.timeStr.split("-"), i = e[0], s = e[1];
507
+ this.type = e[2], this.startTime = this.timeTranslateSecondsUtils(i), this.endTime = this.timeTranslateSecondsUtils(s);
508
+ }
509
+ createDom(e, i) {
510
+ const s = document.createElement("div");
511
+ return s.classList.add("ts-timeChunk"), s.style.background = i[this.type], s.style.left = this.startTime * e / 86400 + "px", s.style.width = (this.endTime - this.startTime) * e / 86400 + "px", s;
512
+ }
513
+ };
514
+ const p = { 10: 8640, 60: 1440, 300: 288, 600: 144, 1800: 48, 3600: 24 }, u = [3600, 1800, 600, 300, 60, 10], T = 1;
515
+ var L = class extends a {
516
+ constructor(e, i = {}) {
517
+ if (super(), this.el = e, this.PRECISION = 3600, this.DAYSECONDS = 86400, this.PADDINGLEFT = 20, this.precisionSetting = p, this.initDomInfo(), this.initRootDomEvent(), this.initTimeAxisDom(this.PRECISION), this.timeChunkType = i.timeChunkType, this.isMouseDown = !1, this.startX = null, this.startLeft = null, this.startMouseDownTime = null, this.wheelIndex = 0, this.wheelIndexMap = u, this.speed = i.speed || T, this.timer = null, this.curPlayTimeChunk = [], this.axisLength = null, this.allAxisLength = null, this.presentSeconds = i.presentSeconds || 0, this.timeNow = "", this.timeLineOutClient = !1, this.isValidMove = !0, this.curDaytimeChunkArray = i.curDaytimeChunkArray || [], this.timeChunkArray = this.curDaytimeChunkArray, this.isInitialPlay = i.isInitialPlay || !1, this.onClickCallback = i.onClick, this.onMoveCallback = i.onMove, this.onMouseDownCallback = i.onMouseDown, this.initAxis(), this.initTimeChunk(), i.presentSeconds && this.curDaytimeChunkArray.length) for (let s = 0; s < this.curDaytimeChunkArray.length; s++) {
518
+ let t = this.curDaytimeChunkArray[s].split("-"), n = t[0], r = t[1];
519
+ if (this.presentSeconds >= n && this.presentSeconds <= r) {
520
+ this.curPlayTimeChunk = [n, r, s], this.isInitialPlay && this.timeLinePlay();
521
+ break;
522
+ }
523
+ }
524
+ }
525
+ initAxis(e) {
526
+ this.timeChunkArray.length === 0 ? this.timeLineDom = null : (this.initTimeAxisDom(this.wheelIndexMap[this.wheelIndex]), this.calTimeSlider(), !e && this.setTimeLineLeft(), this.initTimeChunk());
527
+ }
528
+ initTimeChunk() {
529
+ this.timeChunkArray.forEach((e, i) => {
530
+ let s = new c(e).createDom(this.allAxisLength, this.timeChunkType);
531
+ this.containerDom.appendChild(s);
532
+ });
533
+ }
534
+ initDomInfo() {
535
+ this.rootDom = this.getDomInstanceUtils(this.el);
536
+ let e = document.createElement("div");
537
+ e.classList.add("ts-container"), this.rootDom.appendChild(e), this.containerDom = e;
538
+ let i = document.createElement("div"), s = document.createElement("span"), t = document.createElement("div"), n = document.createElement("span");
539
+ t.classList.add("ts-assist-line"), n.classList.add("ts-assist-line-present"), i.classList.add("ts-line"), s.classList.add("ts-line-present"), s.innerHTML = "00:00:00", n.innerHTML = "00:00:00", i.appendChild(s), t.appendChild(n), this.rootDom.appendChild(i), this.rootDom.appendChild(t), this.timeLinePresentDom = s, this.timeLineDom = i, this.assistTimeLinePresentDom = n, this.assistTimeLineDom = t;
540
+ }
541
+ initRootDomEvent() {
542
+ let e = this;
543
+ this.rootDom.addEventListener("mousedown", (i) => {
544
+ e.isMouseDown = !0, e.startX = i.offsetX, this.startLeft = e.domLeftToNumberUtils(e.containerDom), this.startMouseDownTime = (/* @__PURE__ */ new Date()).getTime(), this.rootDom.classList.add("ts-move"), this.isValidMove = !0;
545
+ }), this.rootDom.addEventListener("mousemove", (i) => {
546
+ if (this.isMouseDown && (/* @__PURE__ */ new Date()).getTime() - e.startMouseDownTime > 300) try {
547
+ this.onMoveCallback && this.onMoveCallback();
548
+ } catch {
549
+ }
550
+ if (e.isMouseDown && this.precision !== 3600) {
551
+ let s = i.offsetX - this.startX, t = s < 0, n = s > 0, r = this.allAxisLength + e.containerDom.offsetLeft < 20 + this.rootDom.offsetWidth;
552
+ if (this.startLeft + s > 20 && n) return e.containerDom.style.left = "0px", void (this.isValidMove = !1);
553
+ if (r && t) return e.containerDom.style.left = -this.allAxisLength + this.rootDom.offsetWidth - 35 + "px", void (this.isValidMove = !1);
554
+ e.containerDom.style.left = this.startLeft + s + "px";
555
+ }
556
+ this.showMouseMoveAssistTimeLine(i.offsetX);
557
+ }), this.rootDom.addEventListener("mouseup", (i) => {
558
+ this.assistTimeLineDom.style.display = "none", this.assistTimeLinePresentDom.style.display = "none";
559
+ let s = this.presentSeconds;
560
+ (/* @__PURE__ */ new Date()).getTime() - e.startMouseDownTime < 300 ? (console.log("点击", i.offsetX), this.handleClick(i.offsetX)) : this.calCurPreseconds(i.offsetX - this.startX - this.PADDINGLEFT), e.isMouseDown = !1, this.rootDom.classList.remove("ts-move");
561
+ try {
562
+ this.onMouseDownCallback && this.onMouseDownCallback();
563
+ } catch {
564
+ }
565
+ this.verifyTimeLineSite(s) || this.timeLinePlay();
566
+ }), this.rootDom.addEventListener("mouseout", (i) => {
567
+ e.isMouseDown = !1, this.assistTimeLineDom.style.display = "none", this.assistTimeLinePresentDom.style.display = "none", this.rootDom.classList.remove("ts-move");
568
+ }), this.rootDom.addEventListener("mousewheel", (i) => {
569
+ let s = e.allAxisLength, t = this.domLeftToNumberUtils(this.timeLineDom);
570
+ i.wheelDelta > 0 ? e.wheelIndex < e.wheelIndexMap.length - 1 && (++e.wheelIndex, e.precision = e.wheelIndexMap[e.wheelIndex], e.initAxis(!0), this.zoomSetTimeSlider(s, t, e.allAxisLength, !0)) : e.wheelIndex > 0 && (--e.wheelIndex, e.precision = e.wheelIndexMap[e.wheelIndex], e.initAxis(!0), this.zoomSetTimeSlider(s, t, e.allAxisLength, !1)), e.precision === 3600 && (this.containerDom.style.left = 0), e.containerDom.offsetLeft >= 0 && (e.containerDom.style.left = 0), this.allAxisLength + this.rootDom.offsetLeft <= document.body.clientWidth && (this.rootDom.style.left = -this.allAxisLength + document.body.clientWidth - 2 * this.paddingLeft + "px"), this.setTimeLineLeft();
571
+ });
572
+ }
573
+ handleClick(e) {
574
+ let i = this.presentSeconds;
575
+ this.presentSeconds = (-this.domLeftToNumberUtils(this.containerDom) + e - this.PADDINGLEFT) * this.DAYSECONDS / this.allAxisLength;
576
+ try {
577
+ this.onClickCallback && this.onClickCallback(Math.floor(i), Math.floor(this.presentSeconds));
578
+ } catch (s) {
579
+ console.warn(s);
580
+ }
581
+ this.setTimeLineLeft();
582
+ }
583
+ verifyTimeLineSite(e) {
584
+ if (!this.timeChunkArray.length) return;
585
+ let i = !1, s = this.presentSeconds > this.getTimeChunkLastEndTime();
586
+ for (let t = 0; t < this.timeChunkArray.length; t++) {
587
+ let n = this.timeChunkArray[t].split("-"), r = this.timeTranslateSecondsUtils(n[0]), o = this.timeTranslateSecondsUtils(n[1]);
588
+ if (r <= this.presentSeconds && this.presentSeconds <= o) {
589
+ i = !0, this.curPlayTimeChunk[0] = r, this.curPlayTimeChunk[1] = o, this.curPlayTimeChunk[2] = t;
590
+ break;
591
+ }
592
+ }
593
+ if (!i) {
594
+ if (s) return this.presentSeconds = e, this.setTimeLineLeft(), !0;
595
+ for (let t = 0; t < this.timeChunkArray.length; t++) {
596
+ let n, r, o = this.timeChunkArray[t].split("-"), l = this.timeTranslateSecondsUtils(o[0]), y = this.timeTranslateSecondsUtils(o[1]);
597
+ if (t + 1 >= this.timeChunkArray.length ? r = 0 : (n = this.timeChunkArray[t + 1].split("-"), r = this.timeTranslateSecondsUtils(n[1])), r < this.presentSeconds && this.presentSeconds < l) {
598
+ this.presentSeconds = l, this.curPlayTimeChunk[0] = l, this.curPlayTimeChunk[1] = y, this.curPlayTimeChunk[2] = t;
599
+ break;
600
+ }
601
+ }
602
+ this.setTimeLineLeft();
603
+ }
604
+ }
605
+ calCurPreseconds(e) {
606
+ this.presentSeconds = 60 * -e * 60 * 24 / this.allAxisLength + this.presentSeconds;
607
+ }
608
+ calTimeSlider() {
609
+ let e = this.getDomInstanceUtils(".ts-axis");
610
+ this.axisLength = e.offsetWidth, this.allAxisLength = e.offsetWidth * this.precisionSetting[this.wheelIndexMap[this.wheelIndex]], console.log("总长度", this.allAxisLength), console.log("单个长度", this.axisLength);
611
+ }
612
+ initTimeAxisDom(e) {
613
+ this.containerDom.innerHTML = "";
614
+ const i = this.precisionSetting[e];
615
+ for (let s = 0; s < i; s++) {
616
+ let t = document.createElement("div");
617
+ if (t.classList.add("ts-axis"), s === i - 1) {
618
+ t.classList.add("ts-axis-last");
619
+ let n = document.createElement("span");
620
+ n.classList.add("ts-axis-time-last"), n.innerText = "24:00", t.appendChild(n);
621
+ }
622
+ if (s % 2 == 0 && i === 24) {
623
+ let n = document.createElement("span");
624
+ n.classList.add("ts-axis-time"), n.innerText = (s >= 10 ? s : "0" + s) + ":00", t.appendChild(n);
625
+ }
626
+ if (i === 48) {
627
+ let n = document.createElement("span");
628
+ n.classList.add("ts-axis-time");
629
+ let r = s % 2, o = Math.floor(s / 2);
630
+ n.innerText = `${o >= 10 ? o : "0" + o}:${r ? "30" : "00"}`, t.appendChild(n);
631
+ }
632
+ if (i === 144) {
633
+ let n = document.createElement("span");
634
+ n.classList.add("ts-axis-time");
635
+ let r = 10 * s, o = r % 60, l = (r - o) / 60;
636
+ n.innerText = `${l >= 10 ? l : "0" + l}:${o >= 10 ? o : "0" + o}`, t.appendChild(n);
637
+ }
638
+ if (i === 288) {
639
+ let n = document.createElement("span");
640
+ n.classList.add("ts-axis-time");
641
+ let r = 5 * s, o = r % 60, l = (r - o) / 60;
642
+ n.innerText = `${l >= 10 ? l : "0" + l}:${o >= 10 ? o : "0" + o}`, t.appendChild(n);
643
+ }
644
+ if (i === 1440) {
645
+ let n = document.createElement("span");
646
+ n.classList.add("ts-axis-time");
647
+ let r = 1 * s, o = r % 60, l = (r - o) / 60;
648
+ n.innerText = `${l >= 10 ? l : "0" + l}:${o >= 10 ? o : "0" + o}`, t.appendChild(n);
649
+ }
650
+ if (s % 6 == 0 && i === 8640) {
651
+ let n = document.createElement("span");
652
+ n.classList.add("ts-axis-time");
653
+ let r = 10 * s, o = r / 60 % 60, l = 100 * Math.floor(r / 60 / 60).toFixed(2) / 100;
654
+ console.log(r, l), n.innerText = `${l >= 10 ? l : "0" + l}:${o >= 10 ? o : "0" + o}`, t.appendChild(n);
655
+ }
656
+ t.classList.add("ts-axis-60"), this.containerDom.appendChild(t);
657
+ }
658
+ }
659
+ setTimeLineLeft() {
660
+ let e = this.presentSeconds * (this.allAxisLength / this.DAYSECONDS);
661
+ e += this.domLeftToNumberUtils(this.containerDom), this.timeLineDom.style.left = this.PADDINGLEFT + e + "px";
662
+ }
663
+ zoomSetTimeSlider(e, i, s) {
664
+ let t = this.domLeftToNumberUtils(this.containerDom), n = (i - this.PADDINGLEFT - t) / e * s - (i - this.PADDINGLEFT);
665
+ this.containerDom.style.left = -n + "px";
666
+ }
667
+ timeLineStop() {
668
+ clearInterval(this.timer), this.timer = null;
669
+ }
670
+ timeLinePlay() {
671
+ this.timer || (this.timer = setInterval(() => {
672
+ if (this.presentSeconds = this.presentSeconds + this.speed, this.isMouseDown) return;
673
+ let e = this.speed * (this.allAxisLength / this.DAYSECONDS) + this.domLeftToNumberUtils(this.timeLineDom);
674
+ if (this.setTimeLineLeft(), this.containerDom.offsetWidth < e ? (console.log("playback isRightOver"), this.isRightOver = !0) : this.isRightOver = !1, this.timeNow = this.secondsTranslateTimeUtils(this.presentSeconds), this.timeLinePresentDom.innerText = this.timeNow, this.presentSeconds + 1 >= this.curPlayTimeChunk[1]) {
675
+ console.log("临界判断");
676
+ let i = this.curPlayTimeChunk[2] - 1;
677
+ if (i < 0) return this.presentSeconds = this.presentSeconds + this.speed, this.setTimeLineLeft(), this.timeLineStop(), void (this.playbackState = 0);
678
+ let s = this.timeChunkArray[i].split("-"), t = this.timeTranslateSecondsUtils(s[0]), n = this.timeTranslateSecondsUtils(s[1]);
679
+ this.presentSeconds = t, this.curPlayTimeChunk[0] = t, this.curPlayTimeChunk[1] = n, this.curPlayTimeChunk[2] = i, this.playbackState = 0, this.setTimeLineLeft(), this.timeNow = this.secondsTranslateTimeUtils(this.presentSeconds), this.timeLinePresentDom.innerText = this.timeNow;
680
+ }
681
+ }, 1e3));
682
+ }
683
+ getTimeChunkLastEndTime() {
684
+ return this.timeTranslateSecondsUtils(this.timeChunkArray[0] && this.timeChunkArray[0].split("-")[1]);
685
+ }
686
+ getTimeChunkFirstStartTime() {
687
+ return this.timeTranslateSecondsUtils(this.timeChunkArray[this.timeChunkArray.length - 1] && this.timeChunkArray[this.timeChunkArray.length - 1].split("-")[0]);
688
+ }
689
+ getTimeChunkFirstEndTime() {
690
+ return this.timeTranslateSecondsUtils(this.timeChunkArray[this.timeChunkArray.length - 1] && this.timeChunkArray[this.timeChunkArray.length - 1].split("-")[1]);
691
+ }
692
+ showMouseMoveAssistTimeLine(e) {
693
+ let i = (-this.domLeftToNumberUtils(this.containerDom) + e - this.PADDINGLEFT) * this.DAYSECONDS / this.allAxisLength, s = this.secondsTranslateTimeUtils(i);
694
+ console.log(i, i), i >= 0 && i <= 86400 ? (this.assistTimeLineDom.style.display = "block", this.assistTimeLinePresentDom.style.display = "block") : (this.assistTimeLineDom.style.display = "none", this.assistTimeLinePresentDom.style.display = "none"), this.assistTimeLinePresentDom.innerText = s;
695
+ let t = i * (this.allAxisLength / this.DAYSECONDS);
696
+ t += this.domLeftToNumberUtils(this.containerDom), this.assistTimeLineDom.style.left = this.PADDINGLEFT + t + "px";
697
+ }
698
+ }, m = h(1), f = h.n(m), k = h(0), b = { insert: "head", singleton: !1 };
699
+ f()(k.a, b), k.a.locals;
700
+ function D(e, i) {
701
+ return new L(e, i);
702
+ }
703
+ window.initTimeSlider = D, g.default = D;
704
+ }]).default;
705
+ });
706
+ }(M)), M.exports;
707
+ }
708
+ var H = R();
709
+ const X = /* @__PURE__ */ F(H), V = {
710
+ name: "SyzTimerShaft"
711
+ }, G = /* @__PURE__ */ Object.assign(V, {
712
+ props: {
713
+ width: {
714
+ type: String,
715
+ default: "700px"
716
+ },
717
+ // 播放状态 1代表播放2代表停止
718
+ playType: {
719
+ type: Number,
720
+ default: 0
721
+ },
722
+ // 跳转时间 单位秒
723
+ seekTime: {
724
+ type: Number,
725
+ default: 0
726
+ },
727
+ // 当天的时间块,每一项格式为startTime-endTime-type
728
+ curDaytimeChunkArray: {
729
+ type: Array,
730
+ default: () => ["000000-240000-C"]
731
+ },
732
+ // 开始播放时间,这个时间为秒数,而且必须在curDaytimeChunkArray时间段内
733
+ presentSeconds: {
734
+ type: String,
735
+ default: 0
736
+ },
737
+ // 时间段类型,属性名为类型与curDaytimeChunkArray对应,属性值为渲染到时间轴上的颜色
738
+ timeChunkType: {
739
+ type: Object,
740
+ default: {
741
+ C: "rgba(0, 149, 255, 1)"
742
+ }
743
+ },
744
+ // 时间线滚动的速率
745
+ speed: {
746
+ type: String,
747
+ default: 1
748
+ },
749
+ // 是否初始化后进行播放,如果设置为false,可以调用实例的timeLinePlay进行播放
750
+ isInitialPlay: {
751
+ type: Boolean,
752
+ default: !1
753
+ },
754
+ // 背景色
755
+ background: {
756
+ type: String,
757
+ default: "rgba(80, 59, 59, 0.5)"
758
+ },
759
+ // 内边距
760
+ padding: {
761
+ type: String,
762
+ default: "45px 20px 0px 20px"
763
+ },
764
+ axisHeight: {
765
+ type: String,
766
+ default: "10px"
767
+ },
768
+ assistLineHeight: {
769
+ type: String,
770
+ default: "35px"
771
+ },
772
+ assistLineTop: {
773
+ type: String,
774
+ default: "20px"
775
+ },
776
+ assistLinePresentTop: {
777
+ type: String,
778
+ default: "-12px"
779
+ },
780
+ lineHeight: {
781
+ type: String,
782
+ default: "26px"
783
+ },
784
+ lineTop: {
785
+ type: String,
786
+ default: "29px"
787
+ },
788
+ linePresentTop: {
789
+ type: String,
790
+ default: "-10px"
791
+ },
792
+ axisTimeTop: {
793
+ type: String,
794
+ default: "-13px"
795
+ },
796
+ timeChunkRadis: {
797
+ type: String,
798
+ default: "20px"
799
+ },
800
+ axisTimeLastTop: {
801
+ type: String,
802
+ default: "-135%"
803
+ }
804
+ },
805
+ emits: [
806
+ "update:playType",
807
+ "update:seekTime",
808
+ "onClick",
809
+ "onMove",
810
+ "onMouseDown"
811
+ ],
812
+ setup(C, { emit: P }) {
813
+ const d = C, g = P;
814
+ let h = null;
815
+ function a(m) {
816
+ var f = Math.floor(m / 3600), k = Math.floor(m % 3600 / 60), b = m % 60, D = (f < 10 ? "0" : "") + f + ":" + (k < 10 ? "0" : "") + k + ":" + (b < 10 ? "0" : "") + b;
817
+ return D;
818
+ }
819
+ z(() => {
820
+ h = X("#timeSlider", {
821
+ curDaytimeChunkArray: d.curDaytimeChunkArray,
822
+ presentSeconds: d.presentSeconds,
823
+ timeChunkType: d.timeChunkType,
824
+ speed: d.speed,
825
+ isInitialPlay: d.isInitialPlay,
826
+ onClick: (m, f) => {
827
+ g("onClick", a(m), a(f));
828
+ },
829
+ onMove: () => {
830
+ g("onMove");
831
+ },
832
+ onMouseDown: () => {
833
+ g("onMouseDown");
834
+ }
835
+ });
836
+ });
837
+ const c = () => {
838
+ h.timeLinePlay();
839
+ }, p = () => {
840
+ h.timeLineStop();
841
+ }, u = (m) => {
842
+ h.presentSeconds = m, h.setTimeLineLeft();
843
+ }, T = (m, f) => {
844
+ if (typeof m != "string" || typeof f != "string") {
845
+ console.error("Invalid input for setCssVariable", m, f);
846
+ return;
847
+ }
848
+ document.documentElement.style.setProperty(m, f);
849
+ }, L = {
850
+ "--y-TimerShaft-axis-height": d.axisHeight,
851
+ "--y-TimerShaft-axis-line-height": d.assistLineHeight,
852
+ "--y-TimerShaft-axis-line-top": d.assistLineTop,
853
+ "--y-TimerShaft-axis-line-Present-top": d.assistLinePresentTop,
854
+ "--y-TimerShaft-line-height": d.lineHeight,
855
+ "--y-TimerShaft-line-top": d.lineTop,
856
+ "--y-TimerShaft-line-present-top": d.linePresentTop,
857
+ "--y-TimerShaft-axis-time-top": d.axisTimeTop,
858
+ "--y-TimerShaft-time-chunk-radis": d.timeChunkRadis,
859
+ "--y-TimerShaft-axis-time-last-top": d.axisTimeLastTop
860
+ };
861
+ return Object.keys(L).forEach((m) => {
862
+ T(m, L[m]);
863
+ }), A(
864
+ () => d.playType,
865
+ (m, f) => {
866
+ m === 1 ? c() : m === 2 && p(), g("update:playType", 0);
867
+ }
868
+ ), A(
869
+ () => d.seekTime,
870
+ (m, f) => {
871
+ m !== 0 && u(m), g("update:seekTime", 0);
872
+ }
873
+ ), A(
874
+ () => d.speed,
875
+ (m, f) => {
876
+ h.speed = m;
877
+ }
878
+ ), (m, f) => (O(), j("div", {
879
+ class: "y-TimerShaft",
880
+ style: I({ width: d.width })
881
+ }, [
882
+ _("div", {
883
+ id: "timeSlider",
884
+ style: I({ background: d.background, padding: d.padding })
885
+ }, null, 4)
886
+ ], 4));
887
+ }
888
+ }), U = /* @__PURE__ */ $(G, [["__scopeId", "data-v-2bc0b701"]]);
889
+ U.install = (C) => {
890
+ C.component("DayTimerShaft", U);
891
+ };
892
+ export {
893
+ U as default
894
+ };