@10yun/open-sdk 0.3.102 → 0.3.103

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.
@@ -1,25 +1,25 @@
1
- import { _ as ee, S as te, H as ie, u as se, a as oe, b as ne, c as re } from "./index-2TtE1ani.js";
1
+ import { _ as te, S as ie, H as se, a as X, u as oe, b as ne, c as re, d as ae } from "./index-BlB6LSxV.js";
2
2
  import "pinia";
3
- import { resolveComponent as U, createElementBlock as I, openBlock as y, createCommentVNode as B, createBlock as G, createElementVNode as f, toDisplayString as b, createVNode as E, withCtx as N, createTextVNode as R, withKeys as ae } from "vue";
4
- function le(n) {
3
+ import { resolveComponent as U, createElementBlock as P, openBlock as b, createCommentVNode as B, createBlock as G, createElementVNode as f, toDisplayString as T, createVNode as E, withCtx as N, createTextVNode as R, withKeys as le } from "vue";
4
+ function he(n) {
5
5
  return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
6
6
  }
7
- var Q = { exports: {} }, he = Q.exports, X;
8
- function ce() {
9
- return X || (X = 1, function(n, a) {
10
- var v;
11
- (function(_, h) {
12
- n.exports = h();
13
- })(he, function() {
14
- function _(e) {
15
- this.mode = d.MODE_8BIT_BYTE, this.data = e, this.parsedData = [];
7
+ var Q = { exports: {} }, ce = Q.exports, z;
8
+ function ue() {
9
+ return z || (z = 1, function(n, a) {
10
+ var _;
11
+ (function(m, c) {
12
+ n.exports = c();
13
+ })(ce, function() {
14
+ function m(e) {
15
+ this.mode = g.MODE_8BIT_BYTE, this.data = e, this.parsedData = [];
16
16
  for (var t = 0, i = this.data.length; t < i; t++) {
17
17
  var s = [], o = this.data.charCodeAt(t);
18
18
  o > 65536 ? (s[0] = 240 | (o & 1835008) >>> 18, s[1] = 128 | (o & 258048) >>> 12, s[2] = 128 | (o & 4032) >>> 6, s[3] = 128 | o & 63) : o > 2048 ? (s[0] = 224 | (o & 61440) >>> 12, s[1] = 128 | (o & 4032) >>> 6, s[2] = 128 | o & 63) : o > 128 ? (s[0] = 192 | (o & 1984) >>> 6, s[1] = 128 | o & 63) : s[0] = o, this.parsedData.push(s);
19
19
  }
20
20
  this.parsedData = Array.prototype.concat.apply([], this.parsedData), this.parsedData.length != this.data.length && (this.parsedData.unshift(191), this.parsedData.unshift(187), this.parsedData.unshift(239));
21
21
  }
22
- _.prototype = {
22
+ m.prototype = {
23
23
  getLength: function(e) {
24
24
  return this.parsedData.length;
25
25
  },
@@ -28,12 +28,12 @@ function ce() {
28
28
  e.put(this.parsedData[t], 8);
29
29
  }
30
30
  };
31
- function h(e, t) {
31
+ function c(e, t) {
32
32
  this.typeNumber = e, this.errorCorrectLevel = t, this.modules = null, this.moduleCount = 0, this.dataCache = null, this.dataList = [];
33
33
  }
34
- h.prototype = {
34
+ c.prototype = {
35
35
  addData: function(e) {
36
- var t = new _(e);
36
+ var t = new m(e);
37
37
  this.dataList.push(t), this.dataCache = null;
38
38
  },
39
39
  isDark: function(e, t) {
@@ -54,7 +54,7 @@ function ce() {
54
54
  for (var s = 0; s < this.moduleCount; s++)
55
55
  this.modules[i][s] = null;
56
56
  }
57
- this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(e, t), this.typeNumber >= 7 && this.setupTypeNumber(e), this.dataCache == null && (this.dataCache = h.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, t);
57
+ this.setupPositionProbePattern(0, 0), this.setupPositionProbePattern(this.moduleCount - 7, 0), this.setupPositionProbePattern(0, this.moduleCount - 7), this.setupPositionAdjustPattern(), this.setupTimingPattern(), this.setupTypeInfo(e, t), this.typeNumber >= 7 && this.setupTypeNumber(e), this.dataCache == null && (this.dataCache = c.createData(this.typeNumber, this.errorCorrectLevel, this.dataList)), this.mapData(this.dataCache, t);
58
58
  },
59
59
  setupPositionProbePattern: function(e, t) {
60
60
  for (var i = -1; i <= 7; i++)
@@ -65,7 +65,7 @@ function ce() {
65
65
  getBestMaskPattern: function() {
66
66
  for (var e = 0, t = 0, i = 0; i < 8; i++) {
67
67
  this.makeImpl(!0, i);
68
- var s = m.getLostPoint(this);
68
+ var s = w.getLostPoint(this);
69
69
  (i == 0 || e > s) && (e = s, t = i);
70
70
  }
71
71
  return t;
@@ -74,9 +74,9 @@ function ce() {
74
74
  var s = e.createEmptyMovieClip(t, i), o = 1;
75
75
  this.make();
76
76
  for (var l = 0; l < this.modules.length; l++)
77
- for (var c = l * o, r = 0; r < this.modules[l].length; r++) {
77
+ for (var h = l * o, r = 0; r < this.modules[l].length; r++) {
78
78
  var u = r * o, p = this.modules[l][r];
79
- p && (s.beginFill(0, 100), s.moveTo(u, c), s.lineTo(u + o, c), s.lineTo(u + o, c + o), s.lineTo(u, c + o), s.endFill());
79
+ p && (s.beginFill(0, 100), s.moveTo(u, h), s.lineTo(u + o, h), s.lineTo(u + o, h + o), s.lineTo(u, h + o), s.endFill());
80
80
  }
81
81
  return s;
82
82
  },
@@ -87,17 +87,17 @@ function ce() {
87
87
  this.modules[6][t] == null && (this.modules[6][t] = t % 2 == 0);
88
88
  },
89
89
  setupPositionAdjustPattern: function() {
90
- for (var e = m.getPatternPosition(this.typeNumber), t = 0; t < e.length; t++)
90
+ for (var e = w.getPatternPosition(this.typeNumber), t = 0; t < e.length; t++)
91
91
  for (var i = 0; i < e.length; i++) {
92
92
  var s = e[t], o = e[i];
93
93
  if (this.modules[s][o] == null)
94
94
  for (var l = -2; l <= 2; l++)
95
- for (var c = -2; c <= 2; c++)
96
- l == -2 || l == 2 || c == -2 || c == 2 || l == 0 && c == 0 ? this.modules[s + l][o + c] = !0 : this.modules[s + l][o + c] = !1;
95
+ for (var h = -2; h <= 2; h++)
96
+ l == -2 || l == 2 || h == -2 || h == 2 || l == 0 && h == 0 ? this.modules[s + l][o + h] = !0 : this.modules[s + l][o + h] = !1;
97
97
  }
98
98
  },
99
99
  setupTypeNumber: function(e) {
100
- for (var t = m.getBCHTypeNumber(this.typeNumber), i = 0; i < 18; i++) {
100
+ for (var t = w.getBCHTypeNumber(this.typeNumber), i = 0; i < 18; i++) {
101
101
  var s = !e && (t >> i & 1) == 1;
102
102
  this.modules[Math.floor(i / 3)][i % 3 + this.moduleCount - 8 - 3] = s;
103
103
  }
@@ -107,7 +107,7 @@ function ce() {
107
107
  }
108
108
  },
109
109
  setupTypeInfo: function(e, t) {
110
- for (var i = this.errorCorrectLevel << 3 | t, s = m.getBCHTypeInfo(i), o = 0; o < 15; o++) {
110
+ for (var i = this.errorCorrectLevel << 3 | t, s = w.getBCHTypeInfo(i), o = 0; o < 15; o++) {
111
111
  var l = !e && (s >> o & 1) == 1;
112
112
  o < 6 ? this.modules[o][8] = l : o < 8 ? this.modules[o + 1][8] = l : this.modules[this.moduleCount - 15 + o][8] = l;
113
113
  }
@@ -118,14 +118,14 @@ function ce() {
118
118
  this.modules[this.moduleCount - 8][8] = !e;
119
119
  },
120
120
  mapData: function(e, t) {
121
- for (var i = -1, s = this.moduleCount - 1, o = 7, l = 0, c = this.moduleCount - 1; c > 0; c -= 2)
122
- for (c == 6 && c--; ; ) {
121
+ for (var i = -1, s = this.moduleCount - 1, o = 7, l = 0, h = this.moduleCount - 1; h > 0; h -= 2)
122
+ for (h == 6 && h--; ; ) {
123
123
  for (var r = 0; r < 2; r++)
124
- if (this.modules[s][c - r] == null) {
124
+ if (this.modules[s][h - r] == null) {
125
125
  var u = !1;
126
126
  l < e.length && (u = (e[l] >>> o & 1) == 1);
127
- var p = m.getMask(t, s, c - r);
128
- p && (u = !u), this.modules[s][c - r] = u, o--, o == -1 && (l++, o = 7);
127
+ var p = w.getMask(t, s, h - r);
128
+ p && (u = !u), this.modules[s][h - r] = u, o--, o == -1 && (l++, o = 7);
129
129
  }
130
130
  if (s += i, s < 0 || this.moduleCount <= s) {
131
131
  s -= i, i = -i;
@@ -133,10 +133,10 @@ function ce() {
133
133
  }
134
134
  }
135
135
  }
136
- }, h.PAD0 = 236, h.PAD1 = 17, h.createData = function(e, t, i) {
137
- for (var s = A.getRSBlocks(e, t), o = new w(), l = 0; l < i.length; l++) {
138
- var c = i[l];
139
- o.put(c.mode, 4), o.put(c.getLength(), m.getLengthInBits(c.mode, e)), c.write(o);
136
+ }, c.PAD0 = 236, c.PAD1 = 17, c.createData = function(e, t, i) {
137
+ for (var s = y.getRSBlocks(e, t), o = new v(), l = 0; l < i.length; l++) {
138
+ var h = i[l];
139
+ o.put(h.mode, 4), o.put(h.getLength(), w.getLengthInBits(h.mode, e)), h.write(o);
140
140
  }
141
141
  for (var r = 0, l = 0; l < s.length; l++)
142
142
  r += s[l].dataCount;
@@ -144,34 +144,34 @@ function ce() {
144
144
  throw new Error("code length overflow. (" + o.getLengthInBits() + ">" + r * 8 + ")");
145
145
  for (o.getLengthInBits() + 4 <= r * 8 && o.put(0, 4); o.getLengthInBits() % 8 != 0; )
146
146
  o.putBit(!1);
147
- for (; !(o.getLengthInBits() >= r * 8 || (o.put(h.PAD0, 8), o.getLengthInBits() >= r * 8)); )
148
- o.put(h.PAD1, 8);
149
- return h.createBytes(o, s);
150
- }, h.createBytes = function(e, t) {
151
- for (var i = 0, s = 0, o = 0, l = new Array(t.length), c = new Array(t.length), r = 0; r < t.length; r++) {
147
+ for (; !(o.getLengthInBits() >= r * 8 || (o.put(c.PAD0, 8), o.getLengthInBits() >= r * 8)); )
148
+ o.put(c.PAD1, 8);
149
+ return c.createBytes(o, s);
150
+ }, c.createBytes = function(e, t) {
151
+ for (var i = 0, s = 0, o = 0, l = new Array(t.length), h = new Array(t.length), r = 0; r < t.length; r++) {
152
152
  var u = t[r].dataCount, p = t[r].totalCount - u;
153
153
  s = Math.max(s, u), o = Math.max(o, p), l[r] = new Array(u);
154
- for (var g = 0; g < l[r].length; g++)
155
- l[r][g] = 255 & e.buffer[g + i];
154
+ for (var d = 0; d < l[r].length; d++)
155
+ l[r][d] = 255 & e.buffer[d + i];
156
156
  i += u;
157
- var T = m.getErrorCorrectPolynomial(p), k = new O(l[r], T.getLength() - 1), M = k.mod(T);
158
- c[r] = new Array(T.getLength() - 1);
159
- for (var g = 0; g < c[r].length; g++) {
160
- var D = g + M.getLength() - c[r].length;
161
- c[r][g] = D >= 0 ? M.get(D) : 0;
157
+ var S = w.getErrorCorrectPolynomial(p), k = new O(l[r], S.getLength() - 1), M = k.mod(S);
158
+ h[r] = new Array(S.getLength() - 1);
159
+ for (var d = 0; d < h[r].length; d++) {
160
+ var D = d + M.getLength() - h[r].length;
161
+ h[r][d] = D >= 0 ? M.get(D) : 0;
162
162
  }
163
163
  }
164
- for (var x = 0, g = 0; g < t.length; g++)
165
- x += t[g].totalCount;
166
- for (var H = new Array(x), F = 0, g = 0; g < s; g++)
164
+ for (var x = 0, d = 0; d < t.length; d++)
165
+ x += t[d].totalCount;
166
+ for (var H = new Array(x), F = 0, d = 0; d < s; d++)
167
167
  for (var r = 0; r < t.length; r++)
168
- g < l[r].length && (H[F++] = l[r][g]);
169
- for (var g = 0; g < o; g++)
168
+ d < l[r].length && (H[F++] = l[r][d]);
169
+ for (var d = 0; d < o; d++)
170
170
  for (var r = 0; r < t.length; r++)
171
- g < c[r].length && (H[F++] = c[r][g]);
171
+ d < h[r].length && (H[F++] = h[r][d]);
172
172
  return H;
173
173
  };
174
- for (var d = { MODE_NUMBER: 1, MODE_ALPHA_NUM: 2, MODE_8BIT_BYTE: 4, MODE_KANJI: 8 }, S = { L: 1, M: 0, Q: 3, H: 2 }, P = {
174
+ for (var g = { MODE_NUMBER: 1, MODE_ALPHA_NUM: 2, MODE_8BIT_BYTE: 4, MODE_KANJI: 8 }, A = { L: 1, M: 0, Q: 3, H: 2 }, I = {
175
175
  PATTERN000: 0,
176
176
  PATTERN001: 1,
177
177
  PATTERN010: 2,
@@ -180,7 +180,7 @@ function ce() {
180
180
  PATTERN101: 5,
181
181
  PATTERN110: 6,
182
182
  PATTERN111: 7
183
- }, m = {
183
+ }, w = {
184
184
  PATTERN_POSITION_TABLE: [
185
185
  [],
186
186
  [6, 18],
@@ -227,13 +227,13 @@ function ce() {
227
227
  G18: 7973,
228
228
  G15_MASK: 21522,
229
229
  getBCHTypeInfo: function(e) {
230
- for (var t = e << 10; m.getBCHDigit(t) - m.getBCHDigit(m.G15) >= 0; )
231
- t ^= m.G15 << m.getBCHDigit(t) - m.getBCHDigit(m.G15);
232
- return (e << 10 | t) ^ m.G15_MASK;
230
+ for (var t = e << 10; w.getBCHDigit(t) - w.getBCHDigit(w.G15) >= 0; )
231
+ t ^= w.G15 << w.getBCHDigit(t) - w.getBCHDigit(w.G15);
232
+ return (e << 10 | t) ^ w.G15_MASK;
233
233
  },
234
234
  getBCHTypeNumber: function(e) {
235
- for (var t = e << 12; m.getBCHDigit(t) - m.getBCHDigit(m.G18) >= 0; )
236
- t ^= m.G18 << m.getBCHDigit(t) - m.getBCHDigit(m.G18);
235
+ for (var t = e << 12; w.getBCHDigit(t) - w.getBCHDigit(w.G18) >= 0; )
236
+ t ^= w.G18 << w.getBCHDigit(t) - w.getBCHDigit(w.G18);
237
237
  return e << 12 | t;
238
238
  },
239
239
  getBCHDigit: function(e) {
@@ -242,25 +242,25 @@ function ce() {
242
242
  return t;
243
243
  },
244
244
  getPatternPosition: function(e) {
245
- return m.PATTERN_POSITION_TABLE[e - 1];
245
+ return w.PATTERN_POSITION_TABLE[e - 1];
246
246
  },
247
247
  getMask: function(e, t, i) {
248
248
  switch (e) {
249
- case P.PATTERN000:
249
+ case I.PATTERN000:
250
250
  return (t + i) % 2 == 0;
251
- case P.PATTERN001:
251
+ case I.PATTERN001:
252
252
  return t % 2 == 0;
253
- case P.PATTERN010:
253
+ case I.PATTERN010:
254
254
  return i % 3 == 0;
255
- case P.PATTERN011:
255
+ case I.PATTERN011:
256
256
  return (t + i) % 3 == 0;
257
- case P.PATTERN100:
257
+ case I.PATTERN100:
258
258
  return (Math.floor(t / 2) + Math.floor(i / 3)) % 2 == 0;
259
- case P.PATTERN101:
259
+ case I.PATTERN101:
260
260
  return t * i % 2 + t * i % 3 == 0;
261
- case P.PATTERN110:
261
+ case I.PATTERN110:
262
262
  return (t * i % 2 + t * i % 3) % 2 == 0;
263
- case P.PATTERN111:
263
+ case I.PATTERN111:
264
264
  return (t * i % 3 + (t + i) % 2) % 2 == 0;
265
265
  default:
266
266
  throw new Error("bad maskPattern:" + e);
@@ -274,39 +274,39 @@ function ce() {
274
274
  getLengthInBits: function(e, t) {
275
275
  if (1 <= t && t < 10)
276
276
  switch (e) {
277
- case d.MODE_NUMBER:
277
+ case g.MODE_NUMBER:
278
278
  return 10;
279
- case d.MODE_ALPHA_NUM:
279
+ case g.MODE_ALPHA_NUM:
280
280
  return 9;
281
- case d.MODE_8BIT_BYTE:
281
+ case g.MODE_8BIT_BYTE:
282
282
  return 8;
283
- case d.MODE_KANJI:
283
+ case g.MODE_KANJI:
284
284
  return 8;
285
285
  default:
286
286
  throw new Error("mode:" + e);
287
287
  }
288
288
  else if (t < 27)
289
289
  switch (e) {
290
- case d.MODE_NUMBER:
290
+ case g.MODE_NUMBER:
291
291
  return 12;
292
- case d.MODE_ALPHA_NUM:
292
+ case g.MODE_ALPHA_NUM:
293
293
  return 11;
294
- case d.MODE_8BIT_BYTE:
294
+ case g.MODE_8BIT_BYTE:
295
295
  return 16;
296
- case d.MODE_KANJI:
296
+ case g.MODE_KANJI:
297
297
  return 10;
298
298
  default:
299
299
  throw new Error("mode:" + e);
300
300
  }
301
301
  else if (t < 41)
302
302
  switch (e) {
303
- case d.MODE_NUMBER:
303
+ case g.MODE_NUMBER:
304
304
  return 14;
305
- case d.MODE_ALPHA_NUM:
305
+ case g.MODE_ALPHA_NUM:
306
306
  return 13;
307
- case d.MODE_8BIT_BYTE:
307
+ case g.MODE_8BIT_BYTE:
308
308
  return 16;
309
- case d.MODE_KANJI:
309
+ case g.MODE_KANJI:
310
310
  return 12;
311
311
  default:
312
312
  throw new Error("mode:" + e);
@@ -317,10 +317,10 @@ function ce() {
317
317
  getLostPoint: function(e) {
318
318
  for (var t = e.getModuleCount(), i = 0, s = 0; s < t; s++)
319
319
  for (var o = 0; o < t; o++) {
320
- for (var l = 0, c = e.isDark(s, o), r = -1; r <= 1; r++)
320
+ for (var l = 0, h = e.isDark(s, o), r = -1; r <= 1; r++)
321
321
  if (!(s + r < 0 || t <= s + r))
322
322
  for (var u = -1; u <= 1; u++)
323
- o + u < 0 || t <= o + u || r == 0 && u == 0 || c == e.isDark(s + r, o + u) && l++;
323
+ o + u < 0 || t <= o + u || r == 0 && u == 0 || h == e.isDark(s + r, o + u) && l++;
324
324
  l > 5 && (i += 3 + l - 5);
325
325
  }
326
326
  for (var s = 0; s < t - 1; s++)
@@ -334,11 +334,11 @@ function ce() {
334
334
  for (var o = 0; o < t; o++)
335
335
  for (var s = 0; s < t - 6; s++)
336
336
  e.isDark(s, o) && !e.isDark(s + 1, o) && e.isDark(s + 2, o) && e.isDark(s + 3, o) && e.isDark(s + 4, o) && !e.isDark(s + 5, o) && e.isDark(s + 6, o) && (i += 40);
337
- for (var g = 0, o = 0; o < t; o++)
337
+ for (var d = 0, o = 0; o < t; o++)
338
338
  for (var s = 0; s < t; s++)
339
- e.isDark(s, o) && g++;
340
- var T = Math.abs(100 * g / t / t - 50) / 5;
341
- return i += T * 10, i;
339
+ e.isDark(s, o) && d++;
340
+ var S = Math.abs(100 * d / t / t - 50) / 5;
341
+ return i += S * 10, i;
342
342
  }
343
343
  }, C = {
344
344
  glog: function(e) {
@@ -393,10 +393,10 @@ function ce() {
393
393
  return new O(i, 0).mod(e);
394
394
  }
395
395
  };
396
- function A(e, t) {
396
+ function y(e, t) {
397
397
  this.totalCount = e, this.dataCount = t;
398
398
  }
399
- A.RS_BLOCK_TABLE = [
399
+ y.RS_BLOCK_TABLE = [
400
400
  [1, 26, 19],
401
401
  [1, 26, 16],
402
402
  [1, 26, 13],
@@ -557,32 +557,32 @@ function ce() {
557
557
  [18, 75, 47, 31, 76, 48],
558
558
  [34, 54, 24, 34, 55, 25],
559
559
  [20, 45, 15, 61, 46, 16]
560
- ], A.getRSBlocks = function(e, t) {
561
- var i = A.getRsBlockTable(e, t);
560
+ ], y.getRSBlocks = function(e, t) {
561
+ var i = y.getRsBlockTable(e, t);
562
562
  if (i == null)
563
563
  throw new Error("bad rs block @ typeNumber:" + e + "/errorCorrectLevel:" + t);
564
564
  for (var s = i.length / 3, o = [], l = 0; l < s; l++)
565
- for (var c = i[l * 3 + 0], r = i[l * 3 + 1], u = i[l * 3 + 2], p = 0; p < c; p++)
566
- o.push(new A(r, u));
565
+ for (var h = i[l * 3 + 0], r = i[l * 3 + 1], u = i[l * 3 + 2], p = 0; p < h; p++)
566
+ o.push(new y(r, u));
567
567
  return o;
568
- }, A.getRsBlockTable = function(e, t) {
568
+ }, y.getRsBlockTable = function(e, t) {
569
569
  switch (t) {
570
- case S.L:
571
- return A.RS_BLOCK_TABLE[(e - 1) * 4 + 0];
572
- case S.M:
573
- return A.RS_BLOCK_TABLE[(e - 1) * 4 + 1];
574
- case S.Q:
575
- return A.RS_BLOCK_TABLE[(e - 1) * 4 + 2];
576
- case S.H:
577
- return A.RS_BLOCK_TABLE[(e - 1) * 4 + 3];
570
+ case A.L:
571
+ return y.RS_BLOCK_TABLE[(e - 1) * 4 + 0];
572
+ case A.M:
573
+ return y.RS_BLOCK_TABLE[(e - 1) * 4 + 1];
574
+ case A.Q:
575
+ return y.RS_BLOCK_TABLE[(e - 1) * 4 + 2];
576
+ case A.H:
577
+ return y.RS_BLOCK_TABLE[(e - 1) * 4 + 3];
578
578
  default:
579
579
  return;
580
580
  }
581
581
  };
582
- function w() {
582
+ function v() {
583
583
  this.buffer = [], this.length = 0;
584
584
  }
585
- w.prototype = {
585
+ v.prototype = {
586
586
  get: function(e) {
587
587
  var t = Math.floor(e / 8);
588
588
  return (this.buffer[t] >>> 7 - e % 8 & 1) == 1;
@@ -641,10 +641,10 @@ function ce() {
641
641
  [2809, 2213, 1579, 1219],
642
642
  [2953, 2331, 1663, 1273]
643
643
  ];
644
- function Y() {
644
+ function W() {
645
645
  return typeof CanvasRenderingContext2D < "u";
646
646
  }
647
- function $() {
647
+ function q() {
648
648
  var e = !1, t = navigator.userAgent;
649
649
  if (/android/i.test(t)) {
650
650
  e = !0;
@@ -660,34 +660,34 @@ function ce() {
660
660
  return e.prototype.draw = function(t) {
661
661
  var i = this._htOption, s = this._el, o = t.getModuleCount();
662
662
  Math.floor(i.width / o), Math.floor(i.height / o), this.clear();
663
- function l(g, T) {
664
- var k = document.createElementNS("http://www.w3.org/2000/svg", g);
665
- for (var M in T) T.hasOwnProperty(M) && k.setAttribute(M, T[M]);
663
+ function l(d, S) {
664
+ var k = document.createElementNS("http://www.w3.org/2000/svg", d);
665
+ for (var M in S) S.hasOwnProperty(M) && k.setAttribute(M, S[M]);
666
666
  return k;
667
667
  }
668
- var c = l("svg", {
668
+ var h = l("svg", {
669
669
  viewBox: "0 0 " + String(o) + " " + String(o),
670
670
  width: "100%",
671
671
  height: "100%",
672
672
  fill: i.colorLight
673
673
  });
674
- c.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink"), s.appendChild(c), c.appendChild(l("rect", { fill: i.colorLight, width: "100%", height: "100%" })), c.appendChild(l("rect", { fill: i.colorDark, width: "1", height: "1", id: "template" }));
674
+ h.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink"), s.appendChild(h), h.appendChild(l("rect", { fill: i.colorLight, width: "100%", height: "100%" })), h.appendChild(l("rect", { fill: i.colorDark, width: "1", height: "1", id: "template" }));
675
675
  for (var r = 0; r < o; r++)
676
676
  for (var u = 0; u < o; u++)
677
677
  if (t.isDark(r, u)) {
678
678
  var p = l("use", { x: String(u), y: String(r) });
679
- p.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#template"), c.appendChild(p);
679
+ p.setAttributeNS("http://www.w3.org/1999/xlink", "href", "#template"), h.appendChild(p);
680
680
  }
681
681
  }, e.prototype.clear = function() {
682
682
  for (; this._el.hasChildNodes(); ) this._el.removeChild(this._el.lastChild);
683
683
  }, e;
684
- }(), W = document.documentElement.tagName.toLowerCase() === "svg", J = W ? K : Y() ? function() {
684
+ }(), j = document.documentElement.tagName.toLowerCase() === "svg", J = j ? K : W() ? function() {
685
685
  function e() {
686
686
  this._elImage.src = this._elCanvas.toDataURL("image/png"), this._elImage.style.display = "block", this._elCanvas.style.display = "none";
687
687
  }
688
688
  if (this && this._android && this._android <= 2.1) {
689
689
  var t = 1 / window.devicePixelRatio, i = CanvasRenderingContext2D.prototype.drawImage;
690
- CanvasRenderingContext2D.prototype.drawImage = function(l, c, r, u, p, g, T, k, M) {
690
+ CanvasRenderingContext2D.prototype.drawImage = function(l, h, r, u, p, d, S, k, M) {
691
691
  if ("nodeName" in l && /img/i.test(l.nodeName))
692
692
  for (var D = arguments.length - 1; D >= 1; D--)
693
693
  arguments[D] = arguments[D] * t;
@@ -695,28 +695,28 @@ function ce() {
695
695
  i.apply(this, arguments);
696
696
  };
697
697
  }
698
- function s(l, c) {
698
+ function s(l, h) {
699
699
  var r = this;
700
- if (r._fFail = c, r._fSuccess = l, r._bSupportDataURI === null) {
700
+ if (r._fFail = h, r._fSuccess = l, r._bSupportDataURI === null) {
701
701
  var u = document.createElement("img"), p = function() {
702
702
  r._bSupportDataURI = !1, r._fFail && r._fFail.call(r);
703
- }, g = function() {
703
+ }, d = function() {
704
704
  r._bSupportDataURI = !0, r._fSuccess && r._fSuccess.call(r);
705
705
  };
706
- u.onabort = p, u.onerror = p, u.onload = g, u.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
706
+ u.onabort = p, u.onerror = p, u.onload = d, u.src = "data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==";
707
707
  return;
708
708
  } else r._bSupportDataURI === !0 && r._fSuccess ? r._fSuccess.call(r) : r._bSupportDataURI === !1 && r._fFail && r._fFail.call(r);
709
709
  }
710
- var o = function(l, c) {
711
- this._bIsPainted = !1, this._android = $(), this._htOption = c, this._elCanvas = document.createElement("canvas"), this._elCanvas.width = c.width, this._elCanvas.height = c.height, l.appendChild(this._elCanvas), this._el = l, this._oContext = this._elCanvas.getContext("2d"), this._bIsPainted = !1, this._elImage = document.createElement("img"), this._elImage.alt = "Scan me!", this._elImage.style.display = "none", this._el.appendChild(this._elImage), this._bSupportDataURI = null;
710
+ var o = function(l, h) {
711
+ this._bIsPainted = !1, this._android = q(), this._htOption = h, this._elCanvas = document.createElement("canvas"), this._elCanvas.width = h.width, this._elCanvas.height = h.height, l.appendChild(this._elCanvas), this._el = l, this._oContext = this._elCanvas.getContext("2d"), this._bIsPainted = !1, this._elImage = document.createElement("img"), this._elImage.alt = "Scan me!", this._elImage.style.display = "none", this._el.appendChild(this._elImage), this._bSupportDataURI = null;
712
712
  };
713
713
  return o.prototype.draw = function(l) {
714
- var c = this._elImage, r = this._oContext, u = this._htOption, p = l.getModuleCount(), g = u.width / p, T = u.height / p, k = Math.round(g), M = Math.round(T);
715
- c.style.display = "none", this.clear();
714
+ var h = this._elImage, r = this._oContext, u = this._htOption, p = l.getModuleCount(), d = u.width / p, S = u.height / p, k = Math.round(d), M = Math.round(S);
715
+ h.style.display = "none", this.clear();
716
716
  for (var D = 0; D < p; D++)
717
717
  for (var x = 0; x < p; x++) {
718
- var H = l.isDark(D, x), F = x * g, q = D * T;
719
- r.strokeStyle = H ? u.colorDark : u.colorLight, r.lineWidth = 1, r.fillStyle = H ? u.colorDark : u.colorLight, r.fillRect(F, q, g, T), r.strokeRect(Math.floor(F) + 0.5, Math.floor(q) + 0.5, k, M), r.strokeRect(Math.ceil(F) - 0.5, Math.ceil(q) - 0.5, k, M);
718
+ var H = l.isDark(D, x), F = x * d, $ = D * S;
719
+ r.strokeStyle = H ? u.colorDark : u.colorLight, r.lineWidth = 1, r.fillStyle = H ? u.colorDark : u.colorLight, r.fillRect(F, $, d, S), r.strokeRect(Math.floor(F) + 0.5, Math.floor($) + 0.5, k, M), r.strokeRect(Math.ceil(F) - 0.5, Math.ceil($) - 0.5, k, M);
720
720
  }
721
721
  this._bIsPainted = !0;
722
722
  }, o.prototype.makeImage = function() {
@@ -733,39 +733,39 @@ function ce() {
733
733
  this._el = t, this._htOption = i;
734
734
  };
735
735
  return e.prototype.draw = function(t) {
736
- for (var i = this._htOption, s = this._el, o = t.getModuleCount(), l = Math.floor(i.width / o), c = Math.floor(i.height / o), r = ['<table style="border:0;border-collapse:collapse;">'], u = 0; u < o; u++) {
736
+ for (var i = this._htOption, s = this._el, o = t.getModuleCount(), l = Math.floor(i.width / o), h = Math.floor(i.height / o), r = ['<table style="border:0;border-collapse:collapse;">'], u = 0; u < o; u++) {
737
737
  r.push("<tr>");
738
738
  for (var p = 0; p < o; p++)
739
739
  r.push(
740
- '<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:' + l + "px;height:" + c + "px;background-color:" + (t.isDark(u, p) ? i.colorDark : i.colorLight) + ';"></td>'
740
+ '<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:' + l + "px;height:" + h + "px;background-color:" + (t.isDark(u, p) ? i.colorDark : i.colorLight) + ';"></td>'
741
741
  );
742
742
  r.push("</tr>");
743
743
  }
744
744
  r.push("</table>"), s.innerHTML = r.join("");
745
- var g = s.childNodes[0], T = (i.width - g.offsetWidth) / 2, k = (i.height - g.offsetHeight) / 2;
746
- T > 0 && k > 0 && (g.style.margin = k + "px " + T + "px");
745
+ var d = s.childNodes[0], S = (i.width - d.offsetWidth) / 2, k = (i.height - d.offsetHeight) / 2;
746
+ S > 0 && k > 0 && (d.style.margin = k + "px " + S + "px");
747
747
  }, e.prototype.clear = function() {
748
748
  this._el.innerHTML = "";
749
749
  }, e;
750
750
  }();
751
- function j(e, t) {
752
- for (var i = 1, s = Z(e), o = 0, l = V.length; o <= l; o++) {
753
- var c = 0;
751
+ function Z(e, t) {
752
+ for (var i = 1, s = ee(e), o = 0, l = V.length; o <= l; o++) {
753
+ var h = 0;
754
754
  switch (t) {
755
- case S.L:
756
- c = V[o][0];
755
+ case A.L:
756
+ h = V[o][0];
757
757
  break;
758
- case S.M:
759
- c = V[o][1];
758
+ case A.M:
759
+ h = V[o][1];
760
760
  break;
761
- case S.Q:
762
- c = V[o][2];
761
+ case A.Q:
762
+ h = V[o][2];
763
763
  break;
764
- case S.H:
765
- c = V[o][3];
764
+ case A.H:
765
+ h = V[o][3];
766
766
  break;
767
767
  }
768
- if (s <= c)
768
+ if (s <= h)
769
769
  break;
770
770
  i++;
771
771
  }
@@ -773,37 +773,37 @@ function ce() {
773
773
  throw new Error("Too long data");
774
774
  return i;
775
775
  }
776
- function Z(e) {
776
+ function ee(e) {
777
777
  var t = encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g, "a");
778
778
  return t.length + (t.length != e ? 3 : 0);
779
779
  }
780
- return v = function(e, t) {
780
+ return _ = function(e, t) {
781
781
  if (this._htOption = {
782
782
  width: 256,
783
783
  height: 256,
784
784
  typeNumber: 4,
785
785
  colorDark: "#000000",
786
786
  colorLight: "#ffffff",
787
- correctLevel: S.H
787
+ correctLevel: A.H
788
788
  }, typeof t == "string" && (t = {
789
789
  text: t
790
790
  }), t)
791
791
  for (var i in t)
792
792
  this._htOption[i] = t[i];
793
- typeof e == "string" && (e = document.getElementById(e)), this._htOption.useSVG && (J = K), this._android = $(), this._el = e, this._oQRCode = null, this._oDrawing = new J(this._el, this._htOption), this._htOption.text && this.makeCode(this._htOption.text);
794
- }, v.prototype.makeCode = function(e) {
795
- this._oQRCode = new h(j(e, this._htOption.correctLevel), this._htOption.correctLevel), this._oQRCode.addData(e), this._oQRCode.make(), this._el.title = e, this._oDrawing.draw(this._oQRCode), this.makeImage();
796
- }, v.prototype.makeImage = function() {
793
+ typeof e == "string" && (e = document.getElementById(e)), this._htOption.useSVG && (J = K), this._android = q(), this._el = e, this._oQRCode = null, this._oDrawing = new J(this._el, this._htOption), this._htOption.text && this.makeCode(this._htOption.text);
794
+ }, _.prototype.makeCode = function(e) {
795
+ this._oQRCode = new c(Z(e, this._htOption.correctLevel), this._htOption.correctLevel), this._oQRCode.addData(e), this._oQRCode.make(), this._el.title = e, this._oDrawing.draw(this._oQRCode), this.makeImage();
796
+ }, _.prototype.makeImage = function() {
797
797
  typeof this._oDrawing.makeImage == "function" && (!this._android || this._android >= 3) && this._oDrawing.makeImage();
798
- }, v.prototype.clear = function() {
798
+ }, _.prototype.clear = function() {
799
799
  this._oDrawing.clear();
800
- }, v.CorrectLevel = S, v;
800
+ }, _.CorrectLevel = A, _;
801
801
  });
802
802
  }(Q)), Q.exports;
803
803
  }
804
- var ue = ce();
805
- const z = /* @__PURE__ */ le(ue), de = {
806
- components: { SwitchBusiness: te },
804
+ var de = ue();
805
+ const Y = /* @__PURE__ */ he(de), ge = {
806
+ components: { SwitchBusiness: ie },
807
807
  data() {
808
808
  return {
809
809
  loadOngoing: !1,
@@ -859,8 +859,8 @@ const z = /* @__PURE__ */ le(ue), de = {
859
859
  account_mobile(n) {
860
860
  this.$nextTick(() => {
861
861
  let a = this.$refs.account_mobile.$el.querySelector("input");
862
- const _ = getComputedStyle(a).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);
863
- _ && _[0] === "rgb(232, 240, 254)" && this.onBlur();
862
+ const m = getComputedStyle(a).background.match(/rgb\((\d+,\s*\d+,\s*\d+)\)/);
863
+ m && m[0] === "rgb(232, 240, 254)" && this.onBlur();
864
864
  });
865
865
  },
866
866
  loginMode(n) {
@@ -868,18 +868,6 @@ const z = /* @__PURE__ */ le(ue), de = {
868
868
  }
869
869
  },
870
870
  computed: {
871
- openCasePrivacyUrl() {
872
- var n;
873
- return ((n = this.openCaseInfo) == null ? void 0 : n.privacy_url) || "";
874
- },
875
- loginLastLogo() {
876
- return this.openCaseInfo.platinfo_log || "/logo-nobg.png";
877
- },
878
- loginLastTitle() {
879
- var _, h;
880
- let n = (_ = this.openProductInfo) == null ? void 0 : _.info_title, a = (h = this.openCaseInfo) == null ? void 0 : h.system_type;
881
- return n || a;
882
- },
883
871
  currentLanguage() {
884
872
  return this.languageList[this.languageName] || "Language";
885
873
  }
@@ -888,7 +876,7 @@ const z = /* @__PURE__ */ le(ue), de = {
888
876
  this.cache_remember = localStorage.getItem("cacheLoginRemember") || "off", this.cache_privacy = localStorage.getItem("cacheLoginPrivacy") || "off", this.account_mobile = localStorage.getItem("cacheLoginMobile") || "";
889
877
  },
890
878
  async mounted() {
891
- this.loginMode = this.$route.query.type === "reg" ? "reg" : "access", this.$Electron && (this.$Electron.sendMessage("webTabDestroyAll"), this.$Electron.sendMessage("childWindowDestroyAll")), re().$subscribe((n, a) => {
879
+ this.loginMode = this.$route.query.type === "reg" ? "reg" : "access", this.$Electron && (this.$Electron.sendMessage("webTabDestroyAll"), this.$Electron.sendMessage("childWindowDestroyAll")), ae().$subscribe((n, a) => {
892
880
  n.events.key == "useSSOLogin" && a.useSSOLogin == !0 && this.inputServerUrl();
893
881
  });
894
882
  },
@@ -907,7 +895,7 @@ const z = /* @__PURE__ */ le(ue), de = {
907
895
  this.$message.warning("请联系管理员!");
908
896
  },
909
897
  chackServerUrl(n) {
910
- return new Promise((a, v) => {
898
+ return new Promise((a, _) => {
911
899
  a();
912
900
  });
913
901
  },
@@ -981,21 +969,21 @@ const z = /* @__PURE__ */ le(ue), de = {
981
969
  this.account_mobile = n.account_mobile_show, this.account_business_id = n.business_id, n.acc_rules_type == "sy-org-admin" ? this.passportHandle2(null, "OrgAdminPwdLogin") : n.acc_rules_type == "sy-org-staff" && this.passportHandle2(null, "OrgStaffPwdLogin");
982
970
  },
983
971
  passportHandle2(n, a) {
984
- let v = this.$message({
972
+ let _ = this.$message({
985
973
  iconClass: "ElIconLoading",
986
974
  message: "正在登录...",
987
975
  duration: 0
988
976
  });
989
977
  this.loadOngoing = !0, localStorage.setItem("cacheLoginMobile", this.account_mobile);
990
978
  try {
991
- let _ = {};
992
- this.loginMode == "access" ? (_ = {
979
+ let m = {};
980
+ this.loginMode == "access" ? (m = {
993
981
  account_mobile: this.account_mobile,
994
982
  business_id: this.account_business_id,
995
983
  account_password: this.account_password,
996
984
  captcha_code: this.captcha_code,
997
985
  captcha_key: this.codeKey
998
- }, (a == "OrgAdminPwdLogin" || a == "OrgStaffPwdLogin") && (_.temp_token = this.chainTempToken)) : this.loginMode == "reg" && (_ = {
986
+ }, (a == "OrgAdminPwdLogin" || a == "OrgStaffPwdLogin") && (m.temp_token = this.chainTempToken)) : this.loginMode == "reg" && (m = {
999
987
  account_mobile: this.account_mobile,
1000
988
  business_id: this.account_business_id,
1001
989
  account_password: this.account_password,
@@ -1006,14 +994,14 @@ const z = /* @__PURE__ */ le(ue), de = {
1006
994
  timeout: 1e4
1007
995
  }).flagPost("BASE_PASSPORT_PASSPORT", {
1008
996
  handleType: a,
1009
- ..._
1010
- }).then((h) => {
1011
- v.close(), this.loadOngoing = !1, h.status == 200 ? this.adminLoginSucc(h) : h.status == 403 ? (this.$message.error("验证码有误!"), this.refreshCode(), this.codeNeed = !0) : (this.$message.error(h.msg), this.refreshCode());
1012
- }).catch((h) => {
1013
- this.loadOngoing = !1, this.chainShowFlag = !1, v.close(), this.refreshCode(), this.codeNeed = !0;
997
+ ...m
998
+ }).then((c) => {
999
+ _.close(), this.loadOngoing = !1, c.status == 200 ? this.adminLoginSucc(c) : c.status == 403 ? (this.$message.error("验证码有误!"), this.refreshCode(), this.codeNeed = !0) : (this.$message.error(c.msg), this.refreshCode());
1000
+ }).catch((c) => {
1001
+ this.loadOngoing = !1, this.chainShowFlag = !1, _.close(), this.refreshCode(), this.codeNeed = !0;
1014
1002
  });
1015
1003
  } catch {
1016
- this.$message.error("登录异常"), v.close(), this.loadOngoing = !1, this.refreshCode();
1004
+ this.$message.error("登录异常"), _.close(), this.loadOngoing = !1, this.refreshCode();
1017
1005
  }
1018
1006
  },
1019
1007
  async adminLoginSucc(n) {
@@ -1021,8 +1009,8 @@ const z = /* @__PURE__ */ le(ue), de = {
1021
1009
  if (a.result_type == "chain")
1022
1010
  this.chainAccountList = a.result_data || [], this.chainShowFlag = !0, this.chainTempToken = a.result_token || "";
1023
1011
  else {
1024
- const v = a.result_data || {};
1025
- await ne().SA_ACCOUNT_SIGNIN(v), this.codeNeed = !1, this.$message({
1012
+ const _ = a.result_data || {};
1013
+ await re().SA_ACCOUNT_SIGNIN(_), this.codeNeed = !1, this.$message({
1026
1014
  type: "success",
1027
1015
  message: "登录成功...",
1028
1016
  duration: 800,
@@ -1036,7 +1024,7 @@ const z = /* @__PURE__ */ le(ue), de = {
1036
1024
  this.refreshCode(), this.chainShowFlag = !1;
1037
1025
  },
1038
1026
  scanCreate(n) {
1039
- new z(this.$refs.qrCodeUrl, {
1027
+ new Y(this.$refs.qrCodeUrl, {
1040
1028
  text: n,
1041
1029
  width: 180,
1042
1030
  height: 180,
@@ -1045,7 +1033,7 @@ const z = /* @__PURE__ */ le(ue), de = {
1045
1033
  //前景色
1046
1034
  colorLight: "#ffffff",
1047
1035
  //背景色
1048
- correctLevel: z.CorrectLevel.L
1036
+ correctLevel: Y.CorrectLevel.L
1049
1037
  //容错等级
1050
1038
  // correctLevel: QRCode.CorrectLevel.H //容错等级
1051
1039
  });
@@ -1060,8 +1048,8 @@ const z = /* @__PURE__ */ le(ue), de = {
1060
1048
  }).then((n) => {
1061
1049
  var a;
1062
1050
  n.status == 200 ? (this.scanCreate((a = n == null ? void 0 : n.data) == null ? void 0 : a.checkLogin), this.qrcodeTimer = window.setInterval(() => {
1063
- var v;
1064
- this.scanCheckFunc((v = n == null ? void 0 : n.data) == null ? void 0 : v.scanCode);
1051
+ var _;
1052
+ this.scanCheckFunc((_ = n == null ? void 0 : n.data) == null ? void 0 : _.scanCode);
1065
1053
  }, 3e3)) : result.status == 404;
1066
1054
  }).catch((n) => {
1067
1055
  }).finally((n) => {
@@ -1077,10 +1065,10 @@ const z = /* @__PURE__ */ le(ue), de = {
1077
1065
  fun: "scanCheck",
1078
1066
  scanCode: n || ""
1079
1067
  }).then((a) => {
1080
- var _, h;
1068
+ var m, c;
1081
1069
  if (a.status == 200) {
1082
- var v = a.msg && ((_ = a == null ? void 0 : a.data) == null ? void 0 : _.scanCVal) || "";
1083
- v != "" && (clearInterval(this.qrcodeTimer), this.scanLoginFunc(n, (h = a == null ? void 0 : a.data) == null ? void 0 : h.scanCVal));
1070
+ var _ = a.msg && ((m = a == null ? void 0 : a.data) == null ? void 0 : m.scanCVal) || "";
1071
+ _ != "" && (clearInterval(this.qrcodeTimer), this.scanLoginFunc(n, (c = a == null ? void 0 : a.data) == null ? void 0 : c.scanCVal));
1084
1072
  } else a.status == 405 && (clearInterval(this.qrcodeTimer), this.qrcodeExpiredShow = !0);
1085
1073
  }).catch(() => {
1086
1074
  });
@@ -1095,17 +1083,17 @@ const z = /* @__PURE__ */ le(ue), de = {
1095
1083
  fun: "scanLogin",
1096
1084
  scanCode: n,
1097
1085
  scanCVal: a
1098
- }).then((v) => {
1099
- if (v.status == 200) {
1100
- let _ = this.$message({
1086
+ }).then((_) => {
1087
+ if (_.status == 200) {
1088
+ let m = this.$message({
1101
1089
  iconClass: "ElIconLoading",
1102
1090
  message: "正在安全登录中,请稍后...",
1103
1091
  duration: 0
1104
1092
  });
1105
1093
  setTimeout(() => {
1106
- _.close(), this.$message({
1107
- message: v.msg,
1108
- type: v.status == 200 ? "success" : "error"
1094
+ m.close(), this.$message({
1095
+ message: _.msg,
1096
+ type: _.status == 200 ? "success" : "error"
1109
1097
  });
1110
1098
  }, 2e3);
1111
1099
  }
@@ -1116,54 +1104,54 @@ const z = /* @__PURE__ */ le(ue), de = {
1116
1104
  this.loginJump = !0;
1117
1105
  let n = cvUtils.urlQueryToObj(this.$route.query);
1118
1106
  const a = decodeURIComponent(n.from || "");
1119
- a ? gbIdbObj.idbSetItem("clearCache", "login").then((v) => {
1107
+ a ? X.idbSetItem("clearCache", "login").then((_) => {
1120
1108
  window.location.replace(a);
1121
1109
  }) : this.$router.push({ path: "/" });
1122
1110
  },
1123
1111
  setTheme(n) {
1124
- oe().SA_THEMES_SET(n);
1112
+ ne().SA_THEMES_SET(n);
1125
1113
  },
1126
1114
  setLanguage(n) {
1127
- se().SA_LANGUAGE_SET(n);
1115
+ oe().SA_LANGUAGE_SET(n);
1128
1116
  },
1129
1117
  inputServerUrl() {
1130
1118
  },
1131
1119
  inputServerChack(n) {
1132
- return new Promise((a, v) => {
1133
- let _ = n;
1134
- /\/api\/$/.test(_) || (_ = _ + (cvUtils.strRightExists(_, "/") ? "api/" : "/api/")), /^https*:\/\//i.test(_) || (_ = `https://${_}`), ie.setOptions({
1120
+ return new Promise((a, _) => {
1121
+ let m = n;
1122
+ /\/api\/$/.test(m) || (m = m + (cvUtils.strRightExists(m, "/") ? "api/" : "/api/")), /^https*:\/\//i.test(m) || (m = `https://${m}`), se.setOptions({
1135
1123
  checkNetwork: !1
1136
- }).flagGet("SYS_SETT_ALL", {}).then(async ({ data: h }) => {
1137
- typeof h.server_version > "u" && typeof h.all_group_mute > "u" ? v(`服务器(${cvUtils.urlGetDomain(n)})版本过低`) : (_ != this.cacheServerUrl && (await gbIdbObj.idbSetItem("cacheServerUrl", _), window.location.reload()), a());
1138
- }).catch(({ ret: h, msg: d }) => {
1139
- if (h === -1001) {
1124
+ }).flagGet("SYS_SETT_ALL", {}).then(async ({ data: c }) => {
1125
+ typeof c.server_version > "u" && typeof c.all_group_mute > "u" ? _(`服务器(${cvUtils.urlGetDomain(n)})版本过低`) : (m != this.cacheServerUrl && (await X.idbSetItem("cacheServerUrl", m), window.location.reload()), a());
1126
+ }).catch(({ ret: c, msg: g }) => {
1127
+ if (c === -1001) {
1140
1128
  if (!/^https*:\/\//i.test(n)) {
1141
- this.inputServerChack(`http://${n}`).then(a).catch(v);
1129
+ this.inputServerChack(`http://${n}`).then(a).catch(_);
1142
1130
  return;
1143
1131
  }
1144
- d = "服务器地址无效";
1132
+ g = "服务器地址无效";
1145
1133
  }
1146
- v(d);
1134
+ _(g);
1147
1135
  });
1148
1136
  });
1149
1137
  }
1150
1138
  }
1151
- }, ge = { class: "cloud-login-wrap" }, fe = {
1139
+ }, fe = { class: "cloud-login-wrap" }, pe = {
1152
1140
  key: 0,
1153
1141
  class: "cloud-login-main"
1154
- }, pe = { class: "cloud-login-logo no-dark-content can-click" }, _e = ["src"], ve = {
1142
+ }, _e = { class: "cloud-login-logo no-dark-content can-click" }, ve = ["src"], me = {
1155
1143
  key: 0,
1156
1144
  class: "cloud-login-box"
1157
- }, me = { class: "login-title" }, we = { class: "login-subtitle" }, Ce = { class: "cloud-login-mode-access" }, Le = { class: "login-switch" }, be = {
1145
+ }, we = { class: "login-title" }, Ce = { class: "login-subtitle" }, Le = { class: "cloud-login-mode-access" }, Te = { class: "login-switch" }, Se = {
1158
1146
  key: 1,
1159
1147
  class: "cloud-login-box"
1160
- }, Te = { class: "login-mode-switch" }, Se = { class: "login-mode-switch-box" }, ye = { class: "login-title" }, Ee = { class: "login-subtitle" }, Ae = { class: "cloud-login-mode-access" }, ke = {
1148
+ }, Ae = { class: "login-mode-switch" }, be = { class: "login-mode-switch-box" }, Ee = { class: "login-title" }, ye = { class: "login-subtitle" }, ke = { class: "cloud-login-mode-access" }, De = {
1161
1149
  key: 0,
1162
1150
  class: "code-load"
1163
- }, De = {
1151
+ }, Ie = {
1164
1152
  key: 1,
1165
1153
  class: "code-error"
1166
- }, Pe = ["src"], Ie = { class: "cloud-login-other" }, Me = ["href"], Be = { class: "cloud-login-other" }, Oe = {
1154
+ }, Pe = ["src"], Me = { class: "cloud-login-other" }, Be = { class: "cloud-login-other" }, Oe = {
1167
1155
  key: 0,
1168
1156
  class: "login-switch"
1169
1157
  }, Ne = {
@@ -1178,25 +1166,25 @@ const z = /* @__PURE__ */ le(ue), de = {
1178
1166
  }, Qe = {
1179
1167
  key: 3,
1180
1168
  class: "cloud-login-box"
1181
- }, qe = { class: "login-title" }, Ge = { class: "login-subtitle" }, $e = { class: "cloud-login-mode-access" }, Ke = { class: "page-login-oauth" };
1182
- function Je(n, a, v, _, h, d) {
1183
- const S = U("el-input"), P = U("el-button"), m = U("cv-icons"), C = U("el-tooltip"), L = U("ElIconLoading"), O = U("el-checkbox"), A = U("SwitchBusiness");
1184
- return y(), I("div", ge, [
1185
- h.chainShowFlag ? B("", !0) : (y(), I("div", fe, [
1186
- f("div", pe, [
1169
+ }, $e = { class: "login-title" }, Ge = { class: "login-subtitle" }, qe = { class: "cloud-login-mode-access" }, Ke = { class: "page-login-oauth" };
1170
+ function Je(n, a, _, m, c, g) {
1171
+ const A = U("el-input"), I = U("el-button"), w = U("cv-icons"), C = U("el-tooltip"), L = U("ElIconLoading"), O = U("el-checkbox"), y = U("SwitchBusiness");
1172
+ return b(), P("div", fe, [
1173
+ c.chainShowFlag ? B("", !0) : (b(), P("div", pe, [
1174
+ f("div", _e, [
1187
1175
  f("img", {
1188
- src: d.loginLastLogo,
1176
+ src: n.openCaseInfo.LAST_IP_LOGO,
1189
1177
  alt: ""
1190
- }, null, 8, _e)
1178
+ }, null, 8, ve)
1191
1179
  ]),
1192
- h.loginMode == "reg" ? (y(), I("div", ve, [
1193
- f("div", me, b(d.loginLastTitle), 1),
1194
- f("div", we, b(n.$t("输入您的信息以创建帐户。")), 1),
1195
- f("div", Ce, [
1180
+ c.loginMode == "reg" ? (b(), P("div", me, [
1181
+ f("div", we, T(n.openCaseInfo.LAST_IP_TITLE), 1),
1182
+ f("div", Ce, T(n.$t("输入您的信息以创建帐户。")), 1),
1183
+ f("div", Le, [
1196
1184
  f("form", null, [
1197
- E(S, {
1198
- modelValue: h.account_password2,
1199
- "onUpdate:modelValue": a[0] || (a[0] = (w) => h.account_password2 = w),
1185
+ E(A, {
1186
+ modelValue: c.account_password2,
1187
+ "onUpdate:modelValue": a[0] || (a[0] = (v) => c.account_password2 = v),
1200
1188
  ref: "account_password2",
1201
1189
  "prefix-icon": "ElIconLock",
1202
1190
  placeholder: n.$t("输入确认密码"),
@@ -1204,10 +1192,10 @@ function Je(n, a, v, _, h, d) {
1204
1192
  size: "large",
1205
1193
  clearable: ""
1206
1194
  }, null, 8, ["modelValue", "placeholder"]),
1207
- h.regInviteNeed ? (y(), G(S, {
1195
+ c.regInviteNeed ? (b(), G(A, {
1208
1196
  key: 0,
1209
- modelValue: h.reg_invite,
1210
- "onUpdate:modelValue": a[1] || (a[1] = (w) => h.reg_invite = w),
1197
+ modelValue: c.reg_invite,
1198
+ "onUpdate:modelValue": a[1] || (a[1] = (v) => c.reg_invite = v),
1211
1199
  ref: "reg_invite",
1212
1200
  class: "login-code",
1213
1201
  placeholder: n.$t("请输入注册邀请码"),
@@ -1216,29 +1204,29 @@ function Je(n, a, v, _, h, d) {
1216
1204
  clearable: ""
1217
1205
  }, {
1218
1206
  prepend: N(() => [
1219
- R(" " + b(n.$t("邀请码")) + " ", 1)
1207
+ R(" " + T(n.$t("邀请码")) + " ", 1)
1220
1208
  ]),
1221
1209
  _: 1
1222
1210
  }, 8, ["modelValue", "placeholder"])) : B("", !0)
1223
1211
  ]),
1224
- E(P, null, {
1212
+ E(I, null, {
1225
1213
  default: N(() => [
1226
- R(b(h.loginJump ? "注册成功" : "注册"), 1)
1214
+ R(T(c.loginJump ? "注册成功" : "注册"), 1)
1227
1215
  ]),
1228
1216
  _: 1
1229
1217
  }),
1230
- f("div", Le, [
1231
- R(b(n.$t("已经有帐号?")) + " ", 1),
1218
+ f("div", Te, [
1219
+ R(T(n.$t("已经有帐号?")) + " ", 1),
1232
1220
  f("a", {
1233
1221
  href: "javascript:void(0)",
1234
- onClick: a[2] || (a[2] = (w) => d.switchLoginMode("access"))
1235
- }, b(n.$t("登录帐号")), 1)
1222
+ onClick: a[2] || (a[2] = (v) => g.switchLoginMode("access"))
1223
+ }, T(n.$t("登录帐号")), 1)
1236
1224
  ])
1237
1225
  ])
1238
1226
  ])) : B("", !0),
1239
- h.loginMode == "access" ? (y(), I("div", be, [
1240
- f("div", Te, [
1241
- f("div", Se, [
1227
+ c.loginMode == "access" ? (b(), P("div", Se, [
1228
+ f("div", Ae, [
1229
+ f("div", be, [
1242
1230
  E(C, {
1243
1231
  content: "扫码登录",
1244
1232
  placement: "left"
@@ -1246,9 +1234,9 @@ function Je(n, a, v, _, h, d) {
1246
1234
  default: N(() => [
1247
1235
  f("span", {
1248
1236
  class: "login-mode-switch-icon",
1249
- onClick: a[3] || (a[3] = (w) => d.switchLoginMode("qrcode"))
1237
+ onClick: a[3] || (a[3] = (v) => g.switchLoginMode("qrcode"))
1250
1238
  }, [
1251
- E(m, {
1239
+ E(w, {
1252
1240
  type: "cvSvgBaseQrcode",
1253
1241
  size: "45"
1254
1242
  })
@@ -1258,37 +1246,37 @@ function Je(n, a, v, _, h, d) {
1258
1246
  })
1259
1247
  ])
1260
1248
  ]),
1261
- f("div", ye, b(d.loginLastTitle), 1),
1262
- f("div", Ee, b(n.$t("输入您的凭证以访问您的帐户。")), 1),
1263
- f("div", Ae, [
1249
+ f("div", Ee, T(n.openCaseInfo.LAST_IP_TITLE), 1),
1250
+ f("div", ye, T(n.$t("输入您的凭证以访问您的帐户。")), 1),
1251
+ f("div", ke, [
1264
1252
  f("form", null, [
1265
- E(S, {
1266
- modelValue: h.account_mobile,
1267
- "onUpdate:modelValue": a[4] || (a[4] = (w) => h.account_mobile = w),
1253
+ E(A, {
1254
+ modelValue: c.account_mobile,
1255
+ "onUpdate:modelValue": a[4] || (a[4] = (v) => c.account_mobile = v),
1268
1256
  ref: "account_mobile",
1269
1257
  "prefix-icon": "ElIconUser",
1270
1258
  placeholder: n.$t("输入您的手机账号"),
1271
1259
  type: "text",
1272
1260
  size: "large",
1273
1261
  maxlength: "11",
1274
- onBlur: d.onBlur,
1262
+ onBlur: g.onBlur,
1275
1263
  clearable: ""
1276
1264
  }, null, 8, ["modelValue", "placeholder", "onBlur"]),
1277
- E(S, {
1278
- modelValue: h.account_password,
1279
- "onUpdate:modelValue": a[5] || (a[5] = (w) => h.account_password = w),
1265
+ E(A, {
1266
+ modelValue: c.account_password,
1267
+ "onUpdate:modelValue": a[5] || (a[5] = (v) => c.account_password = v),
1280
1268
  ref: "account_password",
1281
1269
  "prefix-icon": "ElIconLock",
1282
1270
  placeholder: n.$t("输入您的密码"),
1283
1271
  type: "password",
1284
1272
  size: "large",
1285
1273
  clearable: "",
1286
- onKeydown: ae(d.accessLoginFunc, ["enter"])
1274
+ onKeydown: le(g.accessLoginFunc, ["enter"])
1287
1275
  }, null, 8, ["modelValue", "placeholder", "onKeydown"]),
1288
- h.codeNeed ? (y(), G(S, {
1276
+ c.codeNeed ? (b(), G(A, {
1289
1277
  key: 0,
1290
- modelValue: h.captcha_code,
1291
- "onUpdate:modelValue": a[7] || (a[7] = (w) => h.captcha_code = w),
1278
+ modelValue: c.captcha_code,
1279
+ "onUpdate:modelValue": a[7] || (a[7] = (v) => c.captcha_code = v),
1292
1280
  ref: "captcha_code",
1293
1281
  class: "login-code",
1294
1282
  placeholder: n.$t("输入图形验证码"),
@@ -1297,76 +1285,77 @@ function Je(n, a, v, _, h, d) {
1297
1285
  clearable: ""
1298
1286
  }, {
1299
1287
  prefix: N(() => [
1300
- E(m, { type: "cvSvgCircleCheck" })
1288
+ E(w, { type: "cvSvgCircleCheck" })
1301
1289
  ]),
1302
1290
  append: N(() => [
1303
1291
  f("div", {
1304
1292
  class: "login-code-end",
1305
- onClick: a[6] || (a[6] = (...w) => d.refreshCode && d.refreshCode(...w))
1293
+ onClick: a[6] || (a[6] = (...v) => g.refreshCode && g.refreshCode(...v))
1306
1294
  }, [
1307
- h.codeLoad > 0 ? (y(), I("div", ke, [
1295
+ c.codeLoad > 0 ? (b(), P("div", De, [
1308
1296
  E(L)
1309
- ])) : h.codeUrl === "error" ? (y(), I("span", De, b(n.$t("加载失败")), 1)) : (y(), I("img", {
1297
+ ])) : c.codeUrl === "error" ? (b(), P("span", Ie, T(n.$t("加载失败")), 1)) : (b(), P("img", {
1310
1298
  key: 2,
1311
- src: h.codeUrl
1299
+ src: c.codeUrl
1312
1300
  }, null, 8, Pe))
1313
1301
  ])
1314
1302
  ]),
1315
1303
  _: 1
1316
1304
  }, 8, ["modelValue", "placeholder"])) : B("", !0)
1317
1305
  ]),
1318
- E(P, {
1306
+ E(I, {
1319
1307
  type: "primary",
1320
- loading: h.loadOngoing || h.loginJump,
1308
+ loading: c.loadOngoing || c.loginJump,
1321
1309
  size: "large",
1322
1310
  style: { width: "100%", "margin-bottom": "15px" },
1323
- onClick: d.accessLoginFunc
1311
+ onClick: g.accessLoginFunc
1324
1312
  }, {
1325
1313
  default: N(() => [
1326
- R(b(h.loginJump ? "登录成功" : "登录"), 1)
1314
+ R(T(c.loginJump ? "登录成功" : "登录"), 1)
1327
1315
  ]),
1328
1316
  _: 1
1329
1317
  }, 8, ["loading", "onClick"]),
1330
- f("div", Ie, [
1318
+ f("div", Me, [
1331
1319
  E(O, {
1332
- modelValue: h.cache_privacy,
1333
- "onUpdate:modelValue": a[8] || (a[8] = (w) => h.cache_privacy = w),
1320
+ modelValue: c.cache_privacy,
1321
+ "onUpdate:modelValue": a[9] || (a[9] = (v) => c.cache_privacy = v),
1334
1322
  "true-value": "on",
1335
1323
  "false-value": "off",
1336
- onChange: d.handleRrivacy
1324
+ onChange: g.handleRrivacy
1337
1325
  }, {
1338
1326
  default: N(() => [
1339
- a[16] || (a[16] = R(" 同意 ")),
1327
+ a[17] || (a[17] = R(" 同意 ")),
1340
1328
  f("a", {
1341
- href: d.openCasePrivacyUrl,
1329
+ onClick: a[8] || (a[8] = (v) => n.jumpsXieyi("privacy")),
1342
1330
  target: "_blank"
1343
- }, "《隐私条款》", 8, Me)
1331
+ }, "《隐私条款》")
1344
1332
  ]),
1345
- _: 1
1333
+ _: 1,
1334
+ __: [17]
1346
1335
  }, 8, ["modelValue", "onChange"]),
1347
1336
  f("a", {
1348
1337
  href: "javascript:void(0)",
1349
- onClick: a[9] || (a[9] = (...w) => d.handleForgot && d.handleForgot(...w))
1350
- }, b(n.$t("忘记密码了?")), 1)
1338
+ onClick: a[10] || (a[10] = (...v) => g.handleForgot && g.handleForgot(...v))
1339
+ }, T(n.$t("忘记密码了?")), 1)
1351
1340
  ]),
1352
1341
  f("div", Be, [
1353
- n.systemConfig.open_business_reg == "on" ? (y(), I("div", Oe, [
1354
- R(b(n.$t("还没有帐号?")) + " ", 1),
1342
+ n.systemConfig.open_business_reg == "on" ? (b(), P("div", Oe, [
1343
+ R(T(n.$t("还没有帐号?")) + " ", 1),
1355
1344
  f("a", {
1356
1345
  href: "javascript:void(0)",
1357
- onClick: a[10] || (a[10] = (w) => d.switchLoginMode("reg"))
1358
- }, b(n.$t("注册帐号")), 1)
1346
+ onClick: a[11] || (a[11] = (v) => g.switchLoginMode("reg"))
1347
+ }, T(n.$t("注册帐号")), 1)
1359
1348
  ])) : B("", !0),
1360
- n.systemConfig.open_business_oauth2 == "on" ? (y(), I("div", Ne, [
1349
+ n.systemConfig.open_business_oauth2 == "on" ? (b(), P("div", Ne, [
1361
1350
  f("a", {
1362
1351
  href: "javascript:void(0)",
1363
- onClick: a[11] || (a[11] = (w) => d.switchLoginMode("oauth2"))
1364
- }, b(n.$t("OAuth2授权登陆")), 1)
1352
+ onClick: a[12] || (a[12] = (v) => g.switchLoginMode("oauth2"))
1353
+ }, T(n.$t("OAuth2授权登陆")), 1)
1365
1354
  ])) : B("", !0)
1366
1355
  ])
1367
1356
  ])
1368
1357
  ])) : B("", !0),
1369
- h.loginMode == "qrcode" ? (y(), I("div", xe, [
1358
+ c.loginMode == "qrcode" ? (b(), P("div", xe, [
1370
1359
  f("div", Ue, [
1371
1360
  f("div", Re, [
1372
1361
  E(C, {
@@ -1376,9 +1365,9 @@ function Je(n, a, v, _, h, d) {
1376
1365
  default: N(() => [
1377
1366
  f("span", {
1378
1367
  class: "login-mode-switch-icon",
1379
- onClick: a[12] || (a[12] = (w) => d.switchLoginMode("access"))
1368
+ onClick: a[13] || (a[13] = (v) => g.switchLoginMode("access"))
1380
1369
  }, [
1381
- E(m, {
1370
+ E(w, {
1382
1371
  type: "cvSvgBasePc",
1383
1372
  size: "45"
1384
1373
  })
@@ -1388,46 +1377,46 @@ function Je(n, a, v, _, h, d) {
1388
1377
  })
1389
1378
  ])
1390
1379
  ]),
1391
- f("div", Ve, b(n.$t("扫码登录")), 1),
1380
+ f("div", Ve, T(n.$t("扫码登录")), 1),
1392
1381
  f("div", He, [
1393
- E(m, {
1382
+ E(w, {
1394
1383
  type: "cvSvgActionScan",
1395
1384
  size: "20",
1396
1385
  style: { "margin-right": "10px" }
1397
1386
  }),
1398
- R(" " + b(n.$t(`请使用【${d.loginLastTitle}】移动端扫描二维码`)), 1)
1387
+ R(" " + T(n.$t(`请使用【${n.openCaseInfo.LAST_IP_BRAND}】移动端扫描二维码`)), 1)
1399
1388
  ]),
1400
1389
  f("div", {
1401
1390
  class: "login-qrcode",
1402
- onClick: a[13] || (a[13] = (...w) => d.scanQrcodeRefresh && d.scanQrcodeRefresh(...w))
1391
+ onClick: a[14] || (a[14] = (...v) => g.scanQrcodeRefresh && g.scanQrcodeRefresh(...v))
1403
1392
  }, [
1404
1393
  f("div", Fe, null, 512)
1405
1394
  ])
1406
1395
  ])) : B("", !0),
1407
- h.loginMode == "oauth2" ? (y(), I("div", Qe, [
1408
- f("div", qe, b(d.loginLastTitle), 1),
1409
- f("div", Ge, b(n.$t("输入您的信息以创建帐户。")), 1),
1410
- f("div", $e, [
1396
+ c.loginMode == "oauth2" ? (b(), P("div", Qe, [
1397
+ f("div", $e, T(n.openCaseInfo.LAST_IP_TITLE), 1),
1398
+ f("div", Ge, T(n.$t("输入您的信息以创建帐户。")), 1),
1399
+ f("div", qe, [
1411
1400
  f("div", Ke, [
1412
1401
  f("a", {
1413
1402
  href: "javascript:void(0)",
1414
- onClick: a[14] || (a[14] = (w) => d.switchLoginMode("access"))
1415
- }, b(n.$t("帐号登录")), 1)
1403
+ onClick: a[15] || (a[15] = (v) => g.switchLoginMode("access"))
1404
+ }, T(n.$t("帐号登录")), 1)
1416
1405
  ])
1417
1406
  ])
1418
1407
  ])) : B("", !0)
1419
1408
  ])),
1420
- h.chainShowFlag ? (y(), G(A, {
1409
+ c.chainShowFlag ? (b(), G(y, {
1421
1410
  key: 1,
1422
- modelValue: h.chainAccountList,
1423
- "onUpdate:modelValue": a[15] || (a[15] = (w) => h.chainAccountList = w),
1411
+ modelValue: c.chainAccountList,
1412
+ "onUpdate:modelValue": a[16] || (a[16] = (v) => c.chainAccountList = v),
1424
1413
  reselectTitle: "重新登录",
1425
- onReselectFunc: d.chainReselection,
1426
- onSelectFunc: d.loginBusinessCheck
1414
+ onReselectFunc: g.chainReselection,
1415
+ onSelectFunc: g.loginBusinessCheck
1427
1416
  }, null, 8, ["modelValue", "onReselectFunc", "onSelectFunc"])) : B("", !0)
1428
1417
  ]);
1429
1418
  }
1430
- const We = /* @__PURE__ */ ee(de, [["render", Je]]);
1419
+ const We = /* @__PURE__ */ te(ge, [["render", Je]]);
1431
1420
  export {
1432
1421
  We as default
1433
1422
  };