gds-plus-design-vue 1.1.2 → 1.1.7

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 (68) hide show
  1. package/lib/chartbi.48631362.mjs +44076 -0
  2. package/lib/chartbi.afd83839.js +80 -0
  3. package/lib/element-theme-chalk.ae828c17.js +2 -0
  4. package/lib/gd-initial.js +34 -0
  5. package/lib/gd-initial.mjs +80300 -16
  6. package/lib/main.60763eae.js +1 -0
  7. package/lib/main.f2b00b70.mjs +939 -0
  8. package/lib/messages.083c4ede.js +9 -0
  9. package/lib/messages.7e85146d.mjs +5802 -0
  10. package/lib/style.css +2 -2
  11. package/lib/system.account.65b2f7d4.js +216 -0
  12. package/lib/system.account.93b7df36.mjs +2536 -0
  13. package/lib/system.config.327aded6.js +1 -0
  14. package/lib/system.config.9c46f279.mjs +373 -0
  15. package/lib/system.datasource.4b0951ba.mjs +511 -0
  16. package/lib/system.datasource.8a0c7e0f.js +1 -0
  17. package/lib/system.dict.65f25e4e.mjs +996 -0
  18. package/lib/system.dict.72594c98.js +1 -0
  19. package/lib/system.duplicatechecking.0d47a5ca.js +1 -0
  20. package/lib/system.duplicatechecking.ad111272.mjs +2130 -0
  21. package/lib/system.email.54722948.js +41 -0
  22. package/lib/system.email.923697c6.mjs +7432 -0
  23. package/lib/system.fieldsecurity.7de4ee1d.mjs +1745 -0
  24. package/lib/system.fieldsecurity.d57edb47.js +1 -0
  25. package/lib/system.file.b3558a8b.js +1 -0
  26. package/lib/system.file.f152d4fe.mjs +489 -0
  27. package/lib/system.log.30e5157c.mjs +1450 -0
  28. package/lib/system.log.f243e7d0.js +1 -0
  29. package/lib/system.machine.325b256e.mjs +94 -0
  30. package/lib/system.machine.332fb31c.js +1 -0
  31. package/lib/system.notice.93c4691c.js +1 -0
  32. package/lib/system.notice.e0b84103.mjs +636 -0
  33. package/lib/system.noticereceived.a28ba643.js +1 -0
  34. package/lib/system.noticereceived.c0a19336.mjs +158 -0
  35. package/lib/system.onlineuser.90c08aef.mjs +184 -0
  36. package/lib/system.onlineuser.e0c261ed.js +1 -0
  37. package/lib/system.org.65452f67.js +1 -0
  38. package/lib/system.org.b8d59e5d.mjs +421 -0
  39. package/lib/system.permissions.b8a5f79d.mjs +212 -0
  40. package/lib/system.permissions.c34f44a3.js +9 -0
  41. package/lib/system.plugin.07b3c38e.js +1 -0
  42. package/lib/system.plugin.4911a33d.mjs +946 -0
  43. package/lib/system.pos.6ed35c39.js +1 -0
  44. package/lib/system.pos.c274f13c.mjs +312 -0
  45. package/lib/system.promptmanagement.5a4930b1.js +1 -0
  46. package/lib/system.promptmanagement.fe8b0913.mjs +789 -0
  47. package/lib/system.role.ceb5ed2d.mjs +1509 -0
  48. package/lib/system.role.daedd959.js +1 -0
  49. package/lib/system.timers.69f1792a.mjs +3160 -0
  50. package/lib/system.timers.ef6b6796.js +38 -0
  51. package/lib/system.translation.6351f189.mjs +661 -0
  52. package/lib/system.translation.8905eb73.js +1 -0
  53. package/lib/system.user.12a4e490.mjs +1425 -0
  54. package/lib/system.user.d668538b.js +14 -0
  55. package/lib/system.useraffiliation.b8be03db.js +1 -0
  56. package/lib/system.useraffiliation.c272e688.mjs +1025 -0
  57. package/lib/system.webresource.5049d97b.js +1 -0
  58. package/lib/system.webresource.e9518d87.mjs +723 -0
  59. package/lib/system.welcome.3f1cce96.mjs +45 -0
  60. package/lib/system.welcome.b109df88.js +1 -0
  61. package/locale/en_US.js +258 -18
  62. package/locale/id_ID.js +257 -18
  63. package/locale/vi_VN.js +256 -16
  64. package/locale/zh_CN.js +267 -25
  65. package/package.json +105 -110
  66. package/lib/gd-initial.umd.js +0 -440
  67. package/lib/index.d50ecf4b.mjs +0 -143931
  68. package/lib/main.305313fd.mjs +0 -919
@@ -0,0 +1,2536 @@
1
+ import { m as W, n as M } from "./chartbi.48631362.mjs";
2
+ import j from "vue";
3
+ import { s as V, a as X } from "./messages.7e85146d.mjs";
4
+ function Ye(s) {
5
+ return window.axios({
6
+ url: "/login",
7
+ method: "post",
8
+ data: s
9
+ });
10
+ }
11
+ function Ne(s) {
12
+ return window.axios({
13
+ url: "/logout",
14
+ method: "get",
15
+ params: s
16
+ });
17
+ }
18
+ function G(s) {
19
+ return window.axios({
20
+ url: "/getLoginUser",
21
+ method: "get",
22
+ params: s
23
+ });
24
+ }
25
+ function ze(s) {
26
+ return window.axios({
27
+ url: "/sysBookmark/page",
28
+ method: "post",
29
+ data: s
30
+ });
31
+ }
32
+ function De(s) {
33
+ return window.axios({
34
+ url: "/sysBookmark/delete",
35
+ method: "post",
36
+ data: s
37
+ });
38
+ }
39
+ function je(s) {
40
+ return window.axios({
41
+ url: "/sysBookmark/add",
42
+ method: "post",
43
+ data: s
44
+ });
45
+ }
46
+ function Ve(s) {
47
+ return window.axios({
48
+ url: "/getLoginUser2",
49
+ method: "get",
50
+ params: s
51
+ });
52
+ }
53
+ function q(s) {
54
+ return window.axios({
55
+ url: "/sysApp/list",
56
+ method: "get",
57
+ params: s
58
+ });
59
+ }
60
+ function Ge(s) {
61
+ return window.axios({
62
+ url: "/sysApp/listByAppsId",
63
+ method: "get",
64
+ params: s
65
+ });
66
+ }
67
+ function qe(s) {
68
+ return window.axios({
69
+ url: "/sysApp/add",
70
+ method: "post",
71
+ data: s
72
+ });
73
+ }
74
+ function Ze(s) {
75
+ return window.axios({
76
+ url: "/sysApp/edit",
77
+ method: "post",
78
+ data: s
79
+ });
80
+ }
81
+ function Je(s) {
82
+ return window.axios({
83
+ url: "/sysApp/delete",
84
+ method: "post",
85
+ data: s
86
+ });
87
+ }
88
+ function Ke(s) {
89
+ return window.axios({
90
+ url: "/sysApp/changeStatus",
91
+ method: "post",
92
+ data: s
93
+ });
94
+ }
95
+ const Y = [{
96
+ key: "gd.theme.twilight",
97
+ color: "#F5222D"
98
+ }, {
99
+ key: "gd.theme.volcano",
100
+ color: "#FA541C"
101
+ }, {
102
+ key: "gd.theme.nightfall",
103
+ color: "#FAAD14"
104
+ }, {
105
+ key: "gd.theme.mingQing",
106
+ color: "#13C2C2"
107
+ }, {
108
+ key: "gd.theme.auroragreen",
109
+ color: "#52C41A"
110
+ }, {
111
+ key: "gd.theme.dawnBlue",
112
+ color: "#1890FF"
113
+ }, {
114
+ key: "gd.theme.soypurple",
115
+ color: "#722ED1"
116
+ }];
117
+ const Z = {
118
+ props: {
119
+ keepAlive: {
120
+ type: Boolean,
121
+ default: !0
122
+ },
123
+ height: {
124
+ type: Number,
125
+ default: 0
126
+ }
127
+ },
128
+ name: "GdAccountSettings",
129
+ data() {
130
+ return {
131
+ mode: "inline",
132
+ openKeys: [],
133
+ selectedKeys: [],
134
+ activeIndex: "/account/settings/base",
135
+ preview: {},
136
+ option: {
137
+ img: "/avatar2.jpg",
138
+ info: !0,
139
+ size: 1,
140
+ outputType: "jpeg",
141
+ canScale: !1,
142
+ autoCrop: !0,
143
+ autoCropWidth: 180,
144
+ autoCropHeight: 180,
145
+ fixedBox: !0,
146
+ fixed: !0,
147
+ fixedNumber: [1, 1]
148
+ },
149
+ pageTitle: ""
150
+ };
151
+ },
152
+ components: {},
153
+ computed: {
154
+ fadeColord() {
155
+ return this.fadeColor(this.primaryColor, 0.1);
156
+ },
157
+ style() {
158
+ return this.crumbsState ? "margin:0 4px 4px;height: 100%;" : "margin: 4px;height: 100%;";
159
+ },
160
+ getHeight() {
161
+ return "overflow:auto;height:" + (this.screenHeight - 24 - 20 - 10 - 5) + "px;";
162
+ },
163
+ getTitle() {
164
+ let s = "", e = this.$route.meta.title;
165
+ return e === "\u57FA\u672C\u8BBE\u7F6E" ? s = "basicSettings" : e === "\u5B89\u5168\u8BBE\u7F6E" ? s = "securitySetting" : e === "\u4E2A\u6027\u5316\u8BBE\u7F6E" ? s = "personalization" : e === "\u65B0\u6D88\u606F\u901A\u77E5" ? s = "notify" : e === "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1" && (s = "bindenterpriseWechat"), s === "" ? e : this.$i18nt("gd.account." + s);
166
+ },
167
+ ...W(["userInfo", "screenHeight", "primaryColor", "multiTab"])
168
+ },
169
+ mounted() {
170
+ this.updateMenu();
171
+ },
172
+ methods: {
173
+ onOpenChange(s, e) {
174
+ this.openKeys = openKeys;
175
+ },
176
+ updateMenu() {
177
+ const s = this.$route.matched.concat();
178
+ this.activeIndex = s.pop().path;
179
+ },
180
+ clickWx(s, e) {
181
+ const r = this.$route.matched.concat();
182
+ this.activeIndex = r.pop().path;
183
+ },
184
+ fadeColor(s, e) {
185
+ let r = parseInt(s.substring(1, 3), 16), a = parseInt(s.substring(3, 5), 16), d = parseInt(s.substring(5, 7), 16);
186
+ return `rgba(${r},${a},${d},${e})`;
187
+ }
188
+ },
189
+ watch: {
190
+ $route(s) {
191
+ this.updateMenu();
192
+ }
193
+ }
194
+ };
195
+ var J = function() {
196
+ var e = this, r = e._self._c;
197
+ return r("div", { staticClass: "page-header-index-wide", style: e.style }, [r("el-card", { style: e.getHeight, attrs: { bordered: !1, bodyStyle: { padding: "16px 0", height: e.getHeight + "px" } } }, [r("div", { staticClass: "account-settings-info-main" }, [r("div", { staticClass: "account-settings-info-left", style: { "--dilute": e.fadeColord } }, [r("el-menu", { staticClass: "el-menu-vertical-demo", attrs: { router: "", "default-active": e.$route.path, mode: "vertical" }, on: { select: e.clickWx } }, [r("el-menu-item", { attrs: { index: "/account/settings/base" } }, [e._v(e._s(e.$i18nt("gd.account.basicSettings")))]), r("el-menu-item", { attrs: { index: "/account/settings/security" } }, [e._v(e._s(e.$i18nt("gd.account.securitySetting")))]), r("el-menu-item", { attrs: { index: "/account/settings/custom" } }, [e._v(e._s(e.$i18nt("gd.account.personalization")))])], 1)], 1), r("div", { staticClass: "account-settings-info-right" }, [r("div", { staticClass: "account-settings-info-title" }, [r("span", [e._v(e._s(e.getTitle))])]), e.multiTab ? r("keep-alive", [r("router-view", { key: e.$route.fullPath })], 1) : r("router-view", { key: e.$route.fullPath })], 1)])])], 1);
198
+ }, K = [], Q = /* @__PURE__ */ M(
199
+ Z,
200
+ J,
201
+ K,
202
+ !1,
203
+ null,
204
+ "2a9f8bc3",
205
+ null,
206
+ null
207
+ );
208
+ const U = Q.exports;
209
+ U.install = function(s) {
210
+ s.component(U.name, U);
211
+ };
212
+ function Qe(s) {
213
+ return window.axios({
214
+ url: "/sysUser/page",
215
+ method: "get",
216
+ params: s
217
+ });
218
+ }
219
+ function et(s) {
220
+ return window.axios({
221
+ url: "/sysUser/add",
222
+ method: "post",
223
+ data: s
224
+ });
225
+ }
226
+ function tt(s) {
227
+ return window.axios({
228
+ url: "/sysUser/edit",
229
+ method: "post",
230
+ data: s
231
+ });
232
+ }
233
+ function nt(s) {
234
+ return window.axios({
235
+ url: "/sysUser/ownRole",
236
+ method: "get",
237
+ params: s
238
+ });
239
+ }
240
+ function rt(s) {
241
+ return window.axios({
242
+ url: "/sysUser/grantRole",
243
+ method: "post",
244
+ data: s
245
+ });
246
+ }
247
+ function st(s) {
248
+ return window.axios({
249
+ url: "/sysUser/changeStatus",
250
+ method: "post",
251
+ data: s
252
+ });
253
+ }
254
+ function ot(s) {
255
+ return window.axios({
256
+ url: "/sysUser/resetPwd",
257
+ method: "post",
258
+ data: s
259
+ });
260
+ }
261
+ function it(s) {
262
+ return window.axios({
263
+ url: "/sysUser/selector",
264
+ method: "get",
265
+ params: s
266
+ });
267
+ }
268
+ function ee(s) {
269
+ return window.axios({
270
+ url: "/sysUser/updateAvatar",
271
+ method: "post",
272
+ data: s
273
+ });
274
+ }
275
+ function te(s) {
276
+ return window.axios({
277
+ url: "/sysUser/updateInfo",
278
+ method: "post",
279
+ data: s
280
+ });
281
+ }
282
+ function at(s) {
283
+ return window.axios({
284
+ url: "/sysUser/export",
285
+ method: "get",
286
+ data: s,
287
+ responseType: "blob"
288
+ });
289
+ }
290
+ function ct(s) {
291
+ return window.axios({
292
+ url: "/sysUser/import",
293
+ method: "post",
294
+ data: s
295
+ });
296
+ }
297
+ function ne(s) {
298
+ return window.axios({
299
+ url: "/sysUser/updateConfigTheme",
300
+ method: "post",
301
+ data: s
302
+ });
303
+ }
304
+ function re(s) {
305
+ return window.axios({
306
+ url: "/sysConfig/GetPasswordRules",
307
+ method: "get",
308
+ params: s
309
+ });
310
+ }
311
+ function se(s) {
312
+ return window.axios({
313
+ url: "/sysUser/updatePwdByAccount",
314
+ method: "post",
315
+ data: s
316
+ });
317
+ }
318
+ function lt(s) {
319
+ return window.axios({
320
+ url: "/sysUser/resetPwdByAccount",
321
+ method: "post",
322
+ data: s
323
+ });
324
+ }
325
+ function oe(s) {
326
+ return window.axios({
327
+ url: "/sysConfig/GetConfigInfoByCode",
328
+ method: "get",
329
+ params: s
330
+ });
331
+ }
332
+ function ut(s) {
333
+ return window.axios({
334
+ url: "/sysUser/ApplyResetPassword",
335
+ method: "post",
336
+ data: s
337
+ });
338
+ }
339
+ function dt(s) {
340
+ return window.axios({
341
+ url: "/sysUserPRC/CheckPRCValidation",
342
+ method: "post",
343
+ data: s
344
+ });
345
+ }
346
+ function ht(s) {
347
+ return window.axios({
348
+ url: "/wechatwork/LoginByWeChatWork",
349
+ method: "get",
350
+ params: s
351
+ });
352
+ }
353
+ function pt(s) {
354
+ return window.axios({
355
+ url: "/wechatwork/BindWechatWorkAccount",
356
+ method: "get",
357
+ params: s
358
+ });
359
+ }
360
+ function ie(s) {
361
+ return window.axios({
362
+ url: "/wechatwork/BindWechatWorkAccountByCode",
363
+ method: "get",
364
+ params: s
365
+ });
366
+ }
367
+ function ae(s) {
368
+ return window.axios({
369
+ url: "/sysConfig/GetConfigsByCode",
370
+ method: "get",
371
+ params: s
372
+ });
373
+ }
374
+ function gt(s) {
375
+ return window.axios({
376
+ url: "/sysUser/ChangeUserBUJob",
377
+ method: "post",
378
+ data: s
379
+ });
380
+ }
381
+ function ft(s) {
382
+ return window.axios({
383
+ url: "/getUserListByRoleId",
384
+ method: "get",
385
+ params: s
386
+ });
387
+ }
388
+ function mt(s) {
389
+ return window.axios({
390
+ url: "/bindUsersToRole",
391
+ method: "post",
392
+ data: s
393
+ });
394
+ }
395
+ function vt(s) {
396
+ return window.axios({
397
+ url: "/unbindUsersFromRole",
398
+ method: "post",
399
+ data: s
400
+ });
401
+ }
402
+ var wt = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
403
+ function yt(s) {
404
+ return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
405
+ }
406
+ function xt(s) {
407
+ var e = s.default;
408
+ if (typeof e == "function") {
409
+ var r = function() {
410
+ return e.apply(this, arguments);
411
+ };
412
+ r.prototype = e.prototype;
413
+ } else
414
+ r = {};
415
+ return Object.defineProperty(r, "__esModule", { value: !0 }), Object.keys(s).forEach(function(a) {
416
+ var d = Object.getOwnPropertyDescriptor(s, a);
417
+ Object.defineProperty(r, a, d.get ? d : {
418
+ enumerable: !0,
419
+ get: function() {
420
+ return s[a];
421
+ }
422
+ });
423
+ }), r;
424
+ }
425
+ var N = { exports: {} };
426
+ (function(s, e) {
427
+ (function(r, a) {
428
+ s.exports = a();
429
+ })(window, function() {
430
+ return function(r) {
431
+ var a = {};
432
+ function d(h) {
433
+ if (a[h])
434
+ return a[h].exports;
435
+ var y = a[h] = { i: h, l: !1, exports: {} };
436
+ return r[h].call(y.exports, y, y.exports, d), y.l = !0, y.exports;
437
+ }
438
+ return d.m = r, d.c = a, d.d = function(h, y, $) {
439
+ d.o(h, y) || Object.defineProperty(h, y, { enumerable: !0, get: $ });
440
+ }, d.r = function(h) {
441
+ typeof Symbol < "u" && Symbol.toStringTag && Object.defineProperty(h, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(h, "__esModule", { value: !0 });
442
+ }, d.t = function(h, y) {
443
+ if (1 & y && (h = d(h)), 8 & y || 4 & y && typeof h == "object" && h && h.__esModule)
444
+ return h;
445
+ var $ = /* @__PURE__ */ Object.create(null);
446
+ if (d.r($), Object.defineProperty($, "default", { enumerable: !0, value: h }), 2 & y && typeof h != "string")
447
+ for (var I in h)
448
+ d.d($, I, function(A) {
449
+ return h[A];
450
+ }.bind(null, I));
451
+ return $;
452
+ }, d.n = function(h) {
453
+ var y = h && h.__esModule ? function() {
454
+ return h.default;
455
+ } : function() {
456
+ return h;
457
+ };
458
+ return d.d(y, "a", y), y;
459
+ }, d.o = function(h, y) {
460
+ return Object.prototype.hasOwnProperty.call(h, y);
461
+ }, d.p = "", d(d.s = 6);
462
+ }([function(r, a, d) {
463
+ var h = d(2);
464
+ typeof h == "string" && (h = [[r.i, h, ""]]);
465
+ var y = { hmr: !0, transform: void 0, insertInto: void 0 };
466
+ d(4)(h, y), h.locals && (r.exports = h.locals);
467
+ }, function(r, a, d) {
468
+ var h = d(0);
469
+ d.n(h).a;
470
+ }, function(r, a, d) {
471
+ (r.exports = d(3)(!1)).push([r.i, `
472
+ .vue-cropper[data-v-6dae58fd] {
473
+ position: relative;
474
+ width: 100%;
475
+ height: 100%;
476
+ box-sizing: border-box;
477
+ user-select: none;
478
+ -webkit-user-select: none;
479
+ -moz-user-select: none;
480
+ -ms-user-select: none;
481
+ direction: ltr;
482
+ touch-action: none;
483
+ text-align: left;
484
+ background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAQMAAAAlPW0iAAAAA3NCSVQICAjb4U/gAAAABlBMVEXMzMz////TjRV2AAAACXBIWXMAAArrAAAK6wGCiw1aAAAAHHRFWHRTb2Z0d2FyZQBBZG9iZSBGaXJld29ya3MgQ1M26LyyjAAAABFJREFUCJlj+M/AgBVhF/0PAH6/D/HkDxOGAAAAAElFTkSuQmCC");
485
+ }
486
+ .cropper-box[data-v-6dae58fd],
487
+ .cropper-box-canvas[data-v-6dae58fd],
488
+ .cropper-drag-box[data-v-6dae58fd],
489
+ .cropper-crop-box[data-v-6dae58fd],
490
+ .cropper-face[data-v-6dae58fd] {
491
+ position: absolute;
492
+ top: 0;
493
+ right: 0;
494
+ bottom: 0;
495
+ left: 0;
496
+ user-select: none;
497
+ }
498
+ .cropper-box-canvas img[data-v-6dae58fd] {
499
+ position: relative;
500
+ text-align: left;
501
+ user-select: none;
502
+ transform: none;
503
+ max-width: none;
504
+ max-height: none;
505
+ }
506
+ .cropper-box[data-v-6dae58fd] {
507
+ overflow: hidden;
508
+ }
509
+ .cropper-move[data-v-6dae58fd] {
510
+ cursor: move;
511
+ }
512
+ .cropper-crop[data-v-6dae58fd] {
513
+ cursor: crosshair;
514
+ }
515
+ .cropper-modal[data-v-6dae58fd] {
516
+ background: rgba(0, 0, 0, 0.5);
517
+ }
518
+ .cropper-crop-box[data-v-6dae58fd] {
519
+ /*border: 2px solid #39f;*/
520
+ }
521
+ .cropper-view-box[data-v-6dae58fd] {
522
+ display: block;
523
+ overflow: hidden;
524
+ width: 100%;
525
+ height: 100%;
526
+ outline: 1px solid #39f;
527
+ outline-color: rgba(51, 153, 255, 0.75);
528
+ user-select: none;
529
+ }
530
+ .cropper-view-box img[data-v-6dae58fd] {
531
+ user-select: none;
532
+ text-align: left;
533
+ max-width: none;
534
+ max-height: none;
535
+ }
536
+ .cropper-face[data-v-6dae58fd] {
537
+ top: 0;
538
+ left: 0;
539
+ background-color: #fff;
540
+ opacity: 0.1;
541
+ }
542
+ .crop-info[data-v-6dae58fd] {
543
+ position: absolute;
544
+ left: 0px;
545
+ min-width: 65px;
546
+ text-align: center;
547
+ color: white;
548
+ line-height: 20px;
549
+ background-color: rgba(0, 0, 0, 0.8);
550
+ font-size: 12px;
551
+ }
552
+ .crop-line[data-v-6dae58fd] {
553
+ position: absolute;
554
+ display: block;
555
+ width: 100%;
556
+ height: 100%;
557
+ opacity: 0.1;
558
+ }
559
+ .line-w[data-v-6dae58fd] {
560
+ top: -3px;
561
+ left: 0;
562
+ height: 5px;
563
+ cursor: n-resize;
564
+ }
565
+ .line-a[data-v-6dae58fd] {
566
+ top: 0;
567
+ left: -3px;
568
+ width: 5px;
569
+ cursor: w-resize;
570
+ }
571
+ .line-s[data-v-6dae58fd] {
572
+ bottom: -3px;
573
+ left: 0;
574
+ height: 5px;
575
+ cursor: s-resize;
576
+ }
577
+ .line-d[data-v-6dae58fd] {
578
+ top: 0;
579
+ right: -3px;
580
+ width: 5px;
581
+ cursor: e-resize;
582
+ }
583
+ .crop-point[data-v-6dae58fd] {
584
+ position: absolute;
585
+ width: 8px;
586
+ height: 8px;
587
+ opacity: 0.75;
588
+ background-color: #39f;
589
+ border-radius: 100%;
590
+ }
591
+ .point1[data-v-6dae58fd] {
592
+ top: -4px;
593
+ left: -4px;
594
+ cursor: nw-resize;
595
+ }
596
+ .point2[data-v-6dae58fd] {
597
+ top: -5px;
598
+ left: 50%;
599
+ margin-left: -3px;
600
+ cursor: n-resize;
601
+ }
602
+ .point3[data-v-6dae58fd] {
603
+ top: -4px;
604
+ right: -4px;
605
+ cursor: ne-resize;
606
+ }
607
+ .point4[data-v-6dae58fd] {
608
+ top: 50%;
609
+ left: -4px;
610
+ margin-top: -3px;
611
+ cursor: w-resize;
612
+ }
613
+ .point5[data-v-6dae58fd] {
614
+ top: 50%;
615
+ right: -4px;
616
+ margin-top: -3px;
617
+ cursor: e-resize;
618
+ }
619
+ .point6[data-v-6dae58fd] {
620
+ bottom: -5px;
621
+ left: -4px;
622
+ cursor: sw-resize;
623
+ }
624
+ .point7[data-v-6dae58fd] {
625
+ bottom: -5px;
626
+ left: 50%;
627
+ margin-left: -3px;
628
+ cursor: s-resize;
629
+ }
630
+ .point8[data-v-6dae58fd] {
631
+ bottom: -5px;
632
+ right: -4px;
633
+ cursor: se-resize;
634
+ }
635
+ @media screen and (max-width: 500px) {
636
+ .crop-point[data-v-6dae58fd] {
637
+ position: absolute;
638
+ width: 20px;
639
+ height: 20px;
640
+ opacity: 0.45;
641
+ background-color: #39f;
642
+ border-radius: 100%;
643
+ }
644
+ .point1[data-v-6dae58fd] {
645
+ top: -10px;
646
+ left: -10px;
647
+ }
648
+ .point2[data-v-6dae58fd],
649
+ .point4[data-v-6dae58fd],
650
+ .point5[data-v-6dae58fd],
651
+ .point7[data-v-6dae58fd] {
652
+ display: none;
653
+ }
654
+ .point3[data-v-6dae58fd] {
655
+ top: -10px;
656
+ right: -10px;
657
+ }
658
+ .point4[data-v-6dae58fd] {
659
+ top: 0;
660
+ left: 0;
661
+ }
662
+ .point6[data-v-6dae58fd] {
663
+ bottom: -10px;
664
+ left: -10px;
665
+ }
666
+ .point8[data-v-6dae58fd] {
667
+ bottom: -10px;
668
+ right: -10px;
669
+ }
670
+ }
671
+ `, ""]);
672
+ }, function(r, a) {
673
+ r.exports = function(d) {
674
+ var h = [];
675
+ return h.toString = function() {
676
+ return this.map(function(y) {
677
+ var $ = function(I, A) {
678
+ var k = I[1] || "", L = I[3];
679
+ if (!L)
680
+ return k;
681
+ if (A && typeof btoa == "function") {
682
+ var n = function(i) {
683
+ return "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(i)))) + " */";
684
+ }(L), t = L.sources.map(function(i) {
685
+ return "/*# sourceURL=" + L.sourceRoot + i + " */";
686
+ });
687
+ return [k].concat(t).concat([n]).join(`
688
+ `);
689
+ }
690
+ return [k].join(`
691
+ `);
692
+ }(y, d);
693
+ return y[2] ? "@media " + y[2] + "{" + $ + "}" : $;
694
+ }).join("");
695
+ }, h.i = function(y, $) {
696
+ typeof y == "string" && (y = [[null, y, ""]]);
697
+ for (var I = {}, A = 0; A < this.length; A++) {
698
+ var k = this[A][0];
699
+ typeof k == "number" && (I[k] = !0);
700
+ }
701
+ for (A = 0; A < y.length; A++) {
702
+ var L = y[A];
703
+ typeof L[0] == "number" && I[L[0]] || ($ && !L[2] ? L[2] = $ : $ && (L[2] = "(" + L[2] + ") and (" + $ + ")"), h.push(L));
704
+ }
705
+ }, h;
706
+ };
707
+ }, function(r, a, d) {
708
+ var h = {}, y = function(c) {
709
+ var u;
710
+ return function() {
711
+ return u === void 0 && (u = c.apply(this, arguments)), u;
712
+ };
713
+ }(function() {
714
+ return window && document && document.all && !window.atob;
715
+ }), $ = function(c) {
716
+ var u = {};
717
+ return function(p, g) {
718
+ if (typeof p == "function")
719
+ return p();
720
+ if (u[p] === void 0) {
721
+ var w = function(v, C) {
722
+ return C ? C.querySelector(v) : document.querySelector(v);
723
+ }.call(this, p, g);
724
+ if (window.HTMLIFrameElement && w instanceof window.HTMLIFrameElement)
725
+ try {
726
+ w = w.contentDocument.head;
727
+ } catch {
728
+ w = null;
729
+ }
730
+ u[p] = w;
731
+ }
732
+ return u[p];
733
+ };
734
+ }(), I = null, A = 0, k = [], L = d(5);
735
+ function n(c, u) {
736
+ for (var p = 0; p < c.length; p++) {
737
+ var g = c[p], w = h[g.id];
738
+ if (w) {
739
+ w.refs++;
740
+ for (var v = 0; v < w.parts.length; v++)
741
+ w.parts[v](g.parts[v]);
742
+ for (; v < g.parts.length; v++)
743
+ w.parts.push(m(g.parts[v], u));
744
+ } else {
745
+ var C = [];
746
+ for (v = 0; v < g.parts.length; v++)
747
+ C.push(m(g.parts[v], u));
748
+ h[g.id] = { id: g.id, refs: 1, parts: C };
749
+ }
750
+ }
751
+ }
752
+ function t(c, u) {
753
+ for (var p = [], g = {}, w = 0; w < c.length; w++) {
754
+ var v = c[w], C = u.base ? v[0] + u.base : v[0], _ = { css: v[1], media: v[2], sourceMap: v[3] };
755
+ g[C] ? g[C].parts.push(_) : p.push(g[C] = { id: C, parts: [_] });
756
+ }
757
+ return p;
758
+ }
759
+ function i(c, u) {
760
+ var p = $(c.insertInto);
761
+ if (!p)
762
+ throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");
763
+ var g = k[k.length - 1];
764
+ if (c.insertAt === "top")
765
+ g ? g.nextSibling ? p.insertBefore(u, g.nextSibling) : p.appendChild(u) : p.insertBefore(u, p.firstChild), k.push(u);
766
+ else if (c.insertAt === "bottom")
767
+ p.appendChild(u);
768
+ else {
769
+ if (typeof c.insertAt != "object" || !c.insertAt.before)
770
+ throw new Error(`[Style Loader]
771
+
772
+ Invalid value for parameter 'insertAt' ('options.insertAt') found.
773
+ Must be 'top', 'bottom', or Object.
774
+ (https://github.com/webpack-contrib/style-loader#insertat)
775
+ `);
776
+ var w = $(c.insertAt.before, p);
777
+ p.insertBefore(u, w);
778
+ }
779
+ }
780
+ function o(c) {
781
+ if (c.parentNode === null)
782
+ return !1;
783
+ c.parentNode.removeChild(c);
784
+ var u = k.indexOf(c);
785
+ u >= 0 && k.splice(u, 1);
786
+ }
787
+ function l(c) {
788
+ var u = document.createElement("style");
789
+ if (c.attrs.type === void 0 && (c.attrs.type = "text/css"), c.attrs.nonce === void 0) {
790
+ var p = function() {
791
+ return d.nc;
792
+ }();
793
+ p && (c.attrs.nonce = p);
794
+ }
795
+ return f(u, c.attrs), i(c, u), u;
796
+ }
797
+ function f(c, u) {
798
+ Object.keys(u).forEach(function(p) {
799
+ c.setAttribute(p, u[p]);
800
+ });
801
+ }
802
+ function m(c, u) {
803
+ var p, g, w, v;
804
+ if (u.transform && c.css) {
805
+ if (!(v = typeof u.transform == "function" ? u.transform(c.css) : u.transform.default(c.css)))
806
+ return function() {
807
+ };
808
+ c.css = v;
809
+ }
810
+ if (u.singleton) {
811
+ var C = A++;
812
+ p = I || (I = l(u)), g = x.bind(null, p, C, !1), w = x.bind(null, p, C, !0);
813
+ } else
814
+ c.sourceMap && typeof URL == "function" && typeof URL.createObjectURL == "function" && typeof URL.revokeObjectURL == "function" && typeof Blob == "function" && typeof btoa == "function" ? (p = function(_) {
815
+ var S = document.createElement("link");
816
+ return _.attrs.type === void 0 && (_.attrs.type = "text/css"), _.attrs.rel = "stylesheet", f(S, _.attrs), i(_, S), S;
817
+ }(u), g = function(_, S, E) {
818
+ var T = E.css, O = E.sourceMap, H = S.convertToAbsoluteUrls === void 0 && O;
819
+ (S.convertToAbsoluteUrls || H) && (T = L(T)), O && (T += `
820
+ /*# sourceMappingURL=data:application/json;base64,` + btoa(unescape(encodeURIComponent(JSON.stringify(O)))) + " */");
821
+ var D = new Blob([T], { type: "text/css" }), R = _.href;
822
+ _.href = URL.createObjectURL(D), R && URL.revokeObjectURL(R);
823
+ }.bind(null, p, u), w = function() {
824
+ o(p), p.href && URL.revokeObjectURL(p.href);
825
+ }) : (p = l(u), g = function(_, S) {
826
+ var E = S.css, T = S.media;
827
+ if (T && _.setAttribute("media", T), _.styleSheet)
828
+ _.styleSheet.cssText = E;
829
+ else {
830
+ for (; _.firstChild; )
831
+ _.removeChild(_.firstChild);
832
+ _.appendChild(document.createTextNode(E));
833
+ }
834
+ }.bind(null, p), w = function() {
835
+ o(p);
836
+ });
837
+ return g(c), function(_) {
838
+ if (_) {
839
+ if (_.css === c.css && _.media === c.media && _.sourceMap === c.sourceMap)
840
+ return;
841
+ g(c = _);
842
+ } else
843
+ w();
844
+ };
845
+ }
846
+ r.exports = function(c, u) {
847
+ if (typeof DEBUG < "u" && DEBUG && typeof document != "object")
848
+ throw new Error("The style-loader cannot be used in a non-browser environment");
849
+ (u = u || {}).attrs = typeof u.attrs == "object" ? u.attrs : {}, u.singleton || typeof u.singleton == "boolean" || (u.singleton = y()), u.insertInto || (u.insertInto = "head"), u.insertAt || (u.insertAt = "bottom");
850
+ var p = t(c, u);
851
+ return n(p, u), function(g) {
852
+ for (var w = [], v = 0; v < p.length; v++) {
853
+ var C = p[v];
854
+ (_ = h[C.id]).refs--, w.push(_);
855
+ }
856
+ for (g && n(t(g, u), u), v = 0; v < w.length; v++) {
857
+ var _;
858
+ if ((_ = w[v]).refs === 0) {
859
+ for (var S = 0; S < _.parts.length; S++)
860
+ _.parts[S]();
861
+ delete h[_.id];
862
+ }
863
+ }
864
+ };
865
+ };
866
+ var b = function() {
867
+ var c = [];
868
+ return function(u, p) {
869
+ return c[u] = p, c.filter(Boolean).join(`
870
+ `);
871
+ };
872
+ }();
873
+ function x(c, u, p, g) {
874
+ var w = p ? "" : g.css;
875
+ if (c.styleSheet)
876
+ c.styleSheet.cssText = b(u, w);
877
+ else {
878
+ var v = document.createTextNode(w), C = c.childNodes;
879
+ C[u] && c.removeChild(C[u]), C.length ? c.insertBefore(v, C[u]) : c.appendChild(v);
880
+ }
881
+ }
882
+ }, function(r, a) {
883
+ r.exports = function(d) {
884
+ var h = typeof window < "u" && window.location;
885
+ if (!h)
886
+ throw new Error("fixUrls requires window.location");
887
+ if (!d || typeof d != "string")
888
+ return d;
889
+ var y = h.protocol + "//" + h.host, $ = y + h.pathname.replace(/\/[^\/]*$/, "/");
890
+ return d.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi, function(I, A) {
891
+ var k, L = A.trim().replace(/^"(.*)"$/, function(n, t) {
892
+ return t;
893
+ }).replace(/^'(.*)'$/, function(n, t) {
894
+ return t;
895
+ });
896
+ return /^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(L) ? I : (k = L.indexOf("//") === 0 ? L : L.indexOf("/") === 0 ? y + L : $ + L.replace(/^\.\//, ""), "url(" + JSON.stringify(k) + ")");
897
+ });
898
+ };
899
+ }, function(r, a, d) {
900
+ d.r(a);
901
+ var h = function() {
902
+ var n = this, t = n.$createElement, i = n._self._c || t;
903
+ return i("div", { ref: "cropper", staticClass: "vue-cropper", on: { mouseover: n.scaleImg, mouseout: n.cancelScale } }, [n.imgs ? i("div", { staticClass: "cropper-box" }, [i("div", { directives: [{ name: "show", rawName: "v-show", value: !n.loading, expression: "!loading" }], staticClass: "cropper-box-canvas", style: { width: n.trueWidth + "px", height: n.trueHeight + "px", transform: "scale(" + n.scale + "," + n.scale + ") translate3d(" + n.x / n.scale + "px," + n.y / n.scale + "px,0)rotateZ(" + 90 * n.rotate + "deg)" } }, [i("img", { ref: "cropperImg", attrs: { src: n.imgs, alt: "cropper-img" } })])]) : n._e(), n._v(" "), i("div", { staticClass: "cropper-drag-box", class: { "cropper-move": n.move && !n.crop, "cropper-crop": n.crop, "cropper-modal": n.cropping }, on: { mousedown: n.startMove, touchstart: n.startMove } }), n._v(" "), i("div", { directives: [{ name: "show", rawName: "v-show", value: n.cropping, expression: "cropping" }], staticClass: "cropper-crop-box", style: { width: n.cropW + "px", height: n.cropH + "px", transform: "translate3d(" + n.cropOffsertX + "px," + n.cropOffsertY + "px,0)" } }, [i("span", { staticClass: "cropper-view-box" }, [i("img", { style: { width: n.trueWidth + "px", height: n.trueHeight + "px", transform: "scale(" + n.scale + "," + n.scale + ") translate3d(" + (n.x - n.cropOffsertX) / n.scale + "px," + (n.y - n.cropOffsertY) / n.scale + "px,0)rotateZ(" + 90 * n.rotate + "deg)" }, attrs: { src: n.imgs, alt: "cropper-img" } })]), n._v(" "), i("span", { staticClass: "cropper-face cropper-move", on: { mousedown: n.cropMove, touchstart: n.cropMove } }), n._v(" "), n.info ? i("span", { staticClass: "crop-info", style: { top: n.cropInfo.top } }, [n._v(n._s(this.cropInfo.width) + " \xD7 " + n._s(this.cropInfo.height))]) : n._e(), n._v(" "), n.fixedBox ? n._e() : i("span", [i("span", { staticClass: "crop-line line-w", on: { mousedown: function(o) {
904
+ n.changeCropSize(o, !1, !0, 0, 1);
905
+ }, touchstart: function(o) {
906
+ n.changeCropSize(o, !1, !0, 0, 1);
907
+ } } }), n._v(" "), i("span", { staticClass: "crop-line line-a", on: { mousedown: function(o) {
908
+ n.changeCropSize(o, !0, !1, 1, 0);
909
+ }, touchstart: function(o) {
910
+ n.changeCropSize(o, !0, !1, 1, 0);
911
+ } } }), n._v(" "), i("span", { staticClass: "crop-line line-s", on: { mousedown: function(o) {
912
+ n.changeCropSize(o, !1, !0, 0, 2);
913
+ }, touchstart: function(o) {
914
+ n.changeCropSize(o, !1, !0, 0, 2);
915
+ } } }), n._v(" "), i("span", { staticClass: "crop-line line-d", on: { mousedown: function(o) {
916
+ n.changeCropSize(o, !0, !1, 2, 0);
917
+ }, touchstart: function(o) {
918
+ n.changeCropSize(o, !0, !1, 2, 0);
919
+ } } }), n._v(" "), i("span", { staticClass: "crop-point point1", on: { mousedown: function(o) {
920
+ n.changeCropSize(o, !0, !0, 1, 1);
921
+ }, touchstart: function(o) {
922
+ n.changeCropSize(o, !0, !0, 1, 1);
923
+ } } }), n._v(" "), i("span", { staticClass: "crop-point point2", on: { mousedown: function(o) {
924
+ n.changeCropSize(o, !1, !0, 0, 1);
925
+ }, touchstart: function(o) {
926
+ n.changeCropSize(o, !1, !0, 0, 1);
927
+ } } }), n._v(" "), i("span", { staticClass: "crop-point point3", on: { mousedown: function(o) {
928
+ n.changeCropSize(o, !0, !0, 2, 1);
929
+ }, touchstart: function(o) {
930
+ n.changeCropSize(o, !0, !0, 2, 1);
931
+ } } }), n._v(" "), i("span", { staticClass: "crop-point point4", on: { mousedown: function(o) {
932
+ n.changeCropSize(o, !0, !1, 1, 0);
933
+ }, touchstart: function(o) {
934
+ n.changeCropSize(o, !0, !1, 1, 0);
935
+ } } }), n._v(" "), i("span", { staticClass: "crop-point point5", on: { mousedown: function(o) {
936
+ n.changeCropSize(o, !0, !1, 2, 0);
937
+ }, touchstart: function(o) {
938
+ n.changeCropSize(o, !0, !1, 2, 0);
939
+ } } }), n._v(" "), i("span", { staticClass: "crop-point point6", on: { mousedown: function(o) {
940
+ n.changeCropSize(o, !0, !0, 1, 2);
941
+ }, touchstart: function(o) {
942
+ n.changeCropSize(o, !0, !0, 1, 2);
943
+ } } }), n._v(" "), i("span", { staticClass: "crop-point point7", on: { mousedown: function(o) {
944
+ n.changeCropSize(o, !1, !0, 0, 2);
945
+ }, touchstart: function(o) {
946
+ n.changeCropSize(o, !1, !0, 0, 2);
947
+ } } }), n._v(" "), i("span", { staticClass: "crop-point point8", on: { mousedown: function(o) {
948
+ n.changeCropSize(o, !0, !0, 2, 2);
949
+ }, touchstart: function(o) {
950
+ n.changeCropSize(o, !0, !0, 2, 2);
951
+ } } })])])]);
952
+ };
953
+ h._withStripped = !0;
954
+ var y = {};
955
+ y.getData = function(n) {
956
+ return new Promise(function(t, i) {
957
+ var o = {};
958
+ (function(l) {
959
+ var f = null;
960
+ return new Promise(function(m, b) {
961
+ if (l.src)
962
+ if (/^data\:/i.test(l.src))
963
+ f = function(u) {
964
+ u = u.replace(/^data\:([^\;]+)\;base64,/gim, "");
965
+ for (var p = atob(u), g = p.length, w = new ArrayBuffer(g), v = new Uint8Array(w), C = 0; C < g; C++)
966
+ v[C] = p.charCodeAt(C);
967
+ return w;
968
+ }(l.src), m(f);
969
+ else if (/^blob\:/i.test(l.src)) {
970
+ var x = new FileReader();
971
+ x.onload = function(u) {
972
+ f = u.target.result, m(f);
973
+ }, function(u, p) {
974
+ var g = new XMLHttpRequest();
975
+ g.open("GET", u, !0), g.responseType = "blob", g.onload = function(w) {
976
+ this.status != 200 && this.status !== 0 || p(this.response);
977
+ }, g.send();
978
+ }(l.src, function(u) {
979
+ x.readAsArrayBuffer(u);
980
+ });
981
+ } else {
982
+ var c = new XMLHttpRequest();
983
+ c.onload = function() {
984
+ if (this.status != 200 && this.status !== 0)
985
+ throw "Could not load image";
986
+ f = c.response, m(f), c = null;
987
+ }, c.open("GET", l.src, !0), c.responseType = "arraybuffer", c.send(null);
988
+ }
989
+ else
990
+ b("img error");
991
+ });
992
+ })(n).then(function(l) {
993
+ o.arrayBuffer = l, o.orientation = function(f) {
994
+ var m, b, x, c, u, p, g, w, v, C = new DataView(f), _ = C.byteLength;
995
+ if (C.getUint8(0) === 255 && C.getUint8(1) === 216)
996
+ for (w = 2; w < _; ) {
997
+ if (C.getUint8(w) === 255 && C.getUint8(w + 1) === 225) {
998
+ p = w;
999
+ break;
1000
+ }
1001
+ w++;
1002
+ }
1003
+ if (p && (b = p + 10, function(S, E, T) {
1004
+ var O, H = "";
1005
+ for (O = E, T += E; O < T; O++)
1006
+ H += String.fromCharCode(S.getUint8(O));
1007
+ return H;
1008
+ }(C, p + 4, 4) === "Exif" && (u = C.getUint16(b), ((c = u === 18761) || u === 19789) && C.getUint16(b + 2, c) === 42 && (x = C.getUint32(b + 4, c)) >= 8 && (g = b + x))), g) {
1009
+ for (_ = C.getUint16(g, c), v = 0; v < _; v++)
1010
+ if (w = g + 12 * v + 2, C.getUint16(w, c) === 274) {
1011
+ w += 8, m = C.getUint16(w, c);
1012
+ break;
1013
+ }
1014
+ }
1015
+ return m;
1016
+ }(l), t(o);
1017
+ }).catch(function(l) {
1018
+ i(l);
1019
+ });
1020
+ });
1021
+ };
1022
+ var $ = y, I = { data: function() {
1023
+ return { w: 0, h: 0, scale: 1, x: 0, y: 0, loading: !0, trueWidth: 0, trueHeight: 0, move: !0, moveX: 0, moveY: 0, crop: !1, cropping: !1, cropW: 0, cropH: 0, cropOldW: 0, cropOldH: 0, canChangeX: !1, canChangeY: !1, changeCropTypeX: 1, changeCropTypeY: 1, cropX: 0, cropY: 0, cropChangeX: 0, cropChangeY: 0, cropOffsertX: 0, cropOffsertY: 0, support: "", touches: [], touchNow: !1, rotate: 0, isIos: !1, orientation: 0, imgs: "", coe: 0.2, scaling: !1, scalingSet: "", coeStatus: "", isCanShow: !0 };
1024
+ }, props: { img: { type: [String, Blob, null, File], default: "" }, outputSize: { type: Number, default: 1 }, outputType: { type: String, default: "jpeg" }, info: { type: Boolean, default: !0 }, canScale: { type: Boolean, default: !0 }, autoCrop: { type: Boolean, default: !1 }, autoCropWidth: { type: [Number, String], default: 0 }, autoCropHeight: { type: [Number, String], default: 0 }, fixed: { type: Boolean, default: !1 }, fixedNumber: { type: Array, default: function() {
1025
+ return [1, 1];
1026
+ } }, fixedBox: { type: Boolean, default: !1 }, full: { type: Boolean, default: !1 }, canMove: { type: Boolean, default: !0 }, canMoveBox: { type: Boolean, default: !0 }, original: { type: Boolean, default: !1 }, centerBox: { type: Boolean, default: !1 }, high: { type: Boolean, default: !0 }, infoTrue: { type: Boolean, default: !1 }, maxImgSize: { type: [Number, String], default: 2e3 }, enlarge: { type: [Number, String], default: 1 }, preW: { type: [Number, String], default: 0 }, mode: { type: String, default: "contain" }, limitMinSize: { type: [Number, Array, String], default: function() {
1027
+ return 10;
1028
+ } } }, computed: { cropInfo: function() {
1029
+ var n = {};
1030
+ if (n.top = this.cropOffsertY > 21 ? "-21px" : "0px", n.width = this.cropW > 0 ? this.cropW : 0, n.height = this.cropH > 0 ? this.cropH : 0, this.infoTrue) {
1031
+ var t = 1;
1032
+ this.high && !this.full && (t = window.devicePixelRatio), this.enlarge !== 1 & !this.full && (t = Math.abs(Number(this.enlarge))), n.width = n.width * t, n.height = n.height * t, this.full && (n.width = n.width / this.scale, n.height = n.height / this.scale);
1033
+ }
1034
+ return n.width = n.width.toFixed(0), n.height = n.height.toFixed(0), n;
1035
+ }, isIE: function() {
1036
+ var n = !!window.ActiveXObject || "ActiveXObject" in window;
1037
+ return n;
1038
+ }, passive: function() {
1039
+ return this.isIE ? null : { passive: !1 };
1040
+ } }, watch: { img: function() {
1041
+ this.checkedImg();
1042
+ }, imgs: function(n) {
1043
+ n !== "" && this.reload();
1044
+ }, cropW: function() {
1045
+ this.showPreview();
1046
+ }, cropH: function() {
1047
+ this.showPreview();
1048
+ }, cropOffsertX: function() {
1049
+ this.showPreview();
1050
+ }, cropOffsertY: function() {
1051
+ this.showPreview();
1052
+ }, scale: function(n, t) {
1053
+ this.showPreview();
1054
+ }, x: function() {
1055
+ this.showPreview();
1056
+ }, y: function() {
1057
+ this.showPreview();
1058
+ }, autoCrop: function(n) {
1059
+ n && this.goAutoCrop();
1060
+ }, autoCropWidth: function() {
1061
+ this.autoCrop && this.goAutoCrop();
1062
+ }, autoCropHeight: function() {
1063
+ this.autoCrop && this.goAutoCrop();
1064
+ }, mode: function() {
1065
+ this.checkedImg();
1066
+ }, rotate: function() {
1067
+ this.showPreview(), this.autoCrop ? this.goAutoCrop(this.cropW, this.cropH) : (this.cropW > 0 || this.cropH > 0) && this.goAutoCrop(this.cropW, this.cropH);
1068
+ } }, methods: { getVersion: function(n) {
1069
+ for (var t = navigator.userAgent.split(" "), i = "", o = new RegExp(n, "i"), l = 0; l < t.length; l++)
1070
+ o.test(t[l]) && (i = t[l]);
1071
+ return i ? i.split("/")[1].split(".") : ["0", "0", "0"];
1072
+ }, checkOrientationImage: function(n, t, i, o) {
1073
+ var l = this;
1074
+ if (this.getVersion("chrome")[0] >= 81)
1075
+ t = -1;
1076
+ else if (this.getVersion("safari")[0] >= 605) {
1077
+ var f = this.getVersion("version");
1078
+ f[0] > 13 && f[1] > 1 && (t = -1);
1079
+ } else {
1080
+ var m = navigator.userAgent.toLowerCase().match(/cpu iphone os (.*?) like mac os/);
1081
+ if (m) {
1082
+ var b = m[1];
1083
+ ((b = b.split("_"))[0] > 13 || b[0] >= 13 && b[1] >= 4) && (t = -1);
1084
+ }
1085
+ }
1086
+ var x = document.createElement("canvas"), c = x.getContext("2d");
1087
+ switch (c.save(), t) {
1088
+ case 2:
1089
+ x.width = i, x.height = o, c.translate(i, 0), c.scale(-1, 1);
1090
+ break;
1091
+ case 3:
1092
+ x.width = i, x.height = o, c.translate(i / 2, o / 2), c.rotate(180 * Math.PI / 180), c.translate(-i / 2, -o / 2);
1093
+ break;
1094
+ case 4:
1095
+ x.width = i, x.height = o, c.translate(0, o), c.scale(1, -1);
1096
+ break;
1097
+ case 5:
1098
+ x.height = i, x.width = o, c.rotate(0.5 * Math.PI), c.scale(1, -1);
1099
+ break;
1100
+ case 6:
1101
+ x.width = o, x.height = i, c.translate(o / 2, i / 2), c.rotate(90 * Math.PI / 180), c.translate(-i / 2, -o / 2);
1102
+ break;
1103
+ case 7:
1104
+ x.height = i, x.width = o, c.rotate(0.5 * Math.PI), c.translate(i, -o), c.scale(-1, 1);
1105
+ break;
1106
+ case 8:
1107
+ x.height = i, x.width = o, c.translate(o / 2, i / 2), c.rotate(-90 * Math.PI / 180), c.translate(-i / 2, -o / 2);
1108
+ break;
1109
+ default:
1110
+ x.width = i, x.height = o;
1111
+ }
1112
+ c.drawImage(n, 0, 0, i, o), c.restore(), x.toBlob(function(u) {
1113
+ var p = URL.createObjectURL(u);
1114
+ URL.revokeObjectURL(l.imgs), l.imgs = p;
1115
+ }, "image/" + this.outputType, 1);
1116
+ }, checkedImg: function() {
1117
+ var n = this;
1118
+ if (this.img === null || this.img === "")
1119
+ return this.imgs = "", void this.clearCrop();
1120
+ this.loading = !0, this.scale = 1, this.rotate = 0, this.clearCrop();
1121
+ var t = new Image();
1122
+ if (t.onload = function() {
1123
+ if (n.img === "")
1124
+ return n.$emit("imgLoad", "error"), n.$emit("img-load", "error"), !1;
1125
+ var o = t.width, l = t.height;
1126
+ $.getData(t).then(function(f) {
1127
+ n.orientation = f.orientation || 1;
1128
+ var m = n.maxImgSize;
1129
+ !n.orientation && o < m & l < m ? n.imgs = n.img : (o > m && (l = l / o * m, o = m), l > m && (o = o / l * m, l = m), n.checkOrientationImage(t, n.orientation, o, l));
1130
+ });
1131
+ }, t.onerror = function() {
1132
+ n.$emit("imgLoad", "error"), n.$emit("img-load", "error");
1133
+ }, this.img.substr(0, 4) !== "data" && (t.crossOrigin = ""), this.isIE) {
1134
+ var i = new XMLHttpRequest();
1135
+ i.onload = function() {
1136
+ var o = URL.createObjectURL(this.response);
1137
+ t.src = o;
1138
+ }, i.open("GET", this.img, !0), i.responseType = "blob", i.send();
1139
+ } else
1140
+ t.src = this.img;
1141
+ }, startMove: function(n) {
1142
+ if (n.preventDefault(), this.move && !this.crop) {
1143
+ if (!this.canMove)
1144
+ return !1;
1145
+ this.moveX = (n.clientX ? n.clientX : n.touches[0].clientX) - this.x, this.moveY = (n.clientY ? n.clientY : n.touches[0].clientY) - this.y, n.touches ? (window.addEventListener("touchmove", this.moveImg), window.addEventListener("touchend", this.leaveImg), n.touches.length == 2 && (this.touches = n.touches, window.addEventListener("touchmove", this.touchScale), window.addEventListener("touchend", this.cancelTouchScale))) : (window.addEventListener("mousemove", this.moveImg), window.addEventListener("mouseup", this.leaveImg)), this.$emit("imgMoving", { moving: !0, axis: this.getImgAxis() }), this.$emit("img-moving", { moving: !0, axis: this.getImgAxis() });
1146
+ } else
1147
+ this.cropping = !0, window.addEventListener("mousemove", this.createCrop), window.addEventListener("mouseup", this.endCrop), window.addEventListener("touchmove", this.createCrop), window.addEventListener("touchend", this.endCrop), this.cropOffsertX = n.offsetX ? n.offsetX : n.touches[0].pageX - this.$refs.cropper.offsetLeft, this.cropOffsertY = n.offsetY ? n.offsetY : n.touches[0].pageY - this.$refs.cropper.offsetTop, this.cropX = n.clientX ? n.clientX : n.touches[0].clientX, this.cropY = n.clientY ? n.clientY : n.touches[0].clientY, this.cropChangeX = this.cropOffsertX, this.cropChangeY = this.cropOffsertY, this.cropW = 0, this.cropH = 0;
1148
+ }, touchScale: function(n) {
1149
+ var t = this;
1150
+ n.preventDefault();
1151
+ var i = this.scale, o = this.touches[0].clientX, l = this.touches[0].clientY, f = n.touches[0].clientX, m = n.touches[0].clientY, b = this.touches[1].clientX, x = this.touches[1].clientY, c = n.touches[1].clientX, u = n.touches[1].clientY, p = Math.sqrt(Math.pow(o - b, 2) + Math.pow(l - x, 2)), g = Math.sqrt(Math.pow(f - c, 2) + Math.pow(m - u, 2)) - p, w = 1, v = (w = (w = w / this.trueWidth > w / this.trueHeight ? w / this.trueHeight : w / this.trueWidth) > 0.1 ? 0.1 : w) * g;
1152
+ if (!this.touchNow) {
1153
+ if (this.touchNow = !0, g > 0 ? i += Math.abs(v) : g < 0 && i > Math.abs(v) && (i -= Math.abs(v)), this.touches = n.touches, setTimeout(function() {
1154
+ t.touchNow = !1;
1155
+ }, 8), !this.checkoutImgAxis(this.x, this.y, i))
1156
+ return !1;
1157
+ this.scale = i;
1158
+ }
1159
+ }, cancelTouchScale: function(n) {
1160
+ window.removeEventListener("touchmove", this.touchScale);
1161
+ }, moveImg: function(n) {
1162
+ var t = this;
1163
+ if (n.preventDefault(), n.touches && n.touches.length === 2)
1164
+ return this.touches = n.touches, window.addEventListener("touchmove", this.touchScale), window.addEventListener("touchend", this.cancelTouchScale), window.removeEventListener("touchmove", this.moveImg), !1;
1165
+ var i, o, l = n.clientX ? n.clientX : n.touches[0].clientX, f = n.clientY ? n.clientY : n.touches[0].clientY;
1166
+ i = l - this.moveX, o = f - this.moveY, this.$nextTick(function() {
1167
+ if (t.centerBox) {
1168
+ var m, b, x, c, u = t.getImgAxis(i, o, t.scale), p = t.getCropAxis(), g = t.trueHeight * t.scale, w = t.trueWidth * t.scale;
1169
+ switch (t.rotate) {
1170
+ case 1:
1171
+ case -1:
1172
+ case 3:
1173
+ case -3:
1174
+ m = t.cropOffsertX - t.trueWidth * (1 - t.scale) / 2 + (g - w) / 2, b = t.cropOffsertY - t.trueHeight * (1 - t.scale) / 2 + (w - g) / 2, x = m - g + t.cropW, c = b - w + t.cropH;
1175
+ break;
1176
+ default:
1177
+ m = t.cropOffsertX - t.trueWidth * (1 - t.scale) / 2, b = t.cropOffsertY - t.trueHeight * (1 - t.scale) / 2, x = m - w + t.cropW, c = b - g + t.cropH;
1178
+ }
1179
+ u.x1 >= p.x1 && (i = m), u.y1 >= p.y1 && (o = b), u.x2 <= p.x2 && (i = x), u.y2 <= p.y2 && (o = c);
1180
+ }
1181
+ t.x = i, t.y = o, t.$emit("imgMoving", { moving: !0, axis: t.getImgAxis() }), t.$emit("img-moving", { moving: !0, axis: t.getImgAxis() });
1182
+ });
1183
+ }, leaveImg: function(n) {
1184
+ window.removeEventListener("mousemove", this.moveImg), window.removeEventListener("touchmove", this.moveImg), window.removeEventListener("mouseup", this.leaveImg), window.removeEventListener("touchend", this.leaveImg), this.$emit("imgMoving", { moving: !1, axis: this.getImgAxis() }), this.$emit("img-moving", { moving: !1, axis: this.getImgAxis() });
1185
+ }, scaleImg: function() {
1186
+ this.canScale && window.addEventListener(this.support, this.changeSize, this.passive);
1187
+ }, cancelScale: function() {
1188
+ this.canScale && window.removeEventListener(this.support, this.changeSize);
1189
+ }, changeSize: function(n) {
1190
+ var t = this;
1191
+ n.preventDefault();
1192
+ var i = this.scale, o = n.deltaY || n.wheelDelta;
1193
+ o = navigator.userAgent.indexOf("Firefox") > 0 ? 30 * o : o, this.isIE && (o = -o);
1194
+ var l = this.coe, f = (l = l / this.trueWidth > l / this.trueHeight ? l / this.trueHeight : l / this.trueWidth) * o;
1195
+ f < 0 ? i += Math.abs(f) : i > Math.abs(f) && (i -= Math.abs(f));
1196
+ var m = f < 0 ? "add" : "reduce";
1197
+ if (m !== this.coeStatus && (this.coeStatus = m, this.coe = 0.2), this.scaling || (this.scalingSet = setTimeout(function() {
1198
+ t.scaling = !1, t.coe = t.coe += 0.01;
1199
+ }, 50)), this.scaling = !0, !this.checkoutImgAxis(this.x, this.y, i))
1200
+ return !1;
1201
+ this.scale = i;
1202
+ }, changeScale: function(n) {
1203
+ var t = this.scale;
1204
+ n = n || 1;
1205
+ var i = 20;
1206
+ if ((n *= i = i / this.trueWidth > i / this.trueHeight ? i / this.trueHeight : i / this.trueWidth) > 0 ? t += Math.abs(n) : t > Math.abs(n) && (t -= Math.abs(n)), !this.checkoutImgAxis(this.x, this.y, t))
1207
+ return !1;
1208
+ this.scale = t;
1209
+ }, createCrop: function(n) {
1210
+ var t = this;
1211
+ n.preventDefault();
1212
+ var i = n.clientX ? n.clientX : n.touches ? n.touches[0].clientX : 0, o = n.clientY ? n.clientY : n.touches ? n.touches[0].clientY : 0;
1213
+ this.$nextTick(function() {
1214
+ var l = i - t.cropX, f = o - t.cropY;
1215
+ if (l > 0 ? (t.cropW = l + t.cropChangeX > t.w ? t.w - t.cropChangeX : l, t.cropOffsertX = t.cropChangeX) : (t.cropW = t.w - t.cropChangeX + Math.abs(l) > t.w ? t.cropChangeX : Math.abs(l), t.cropOffsertX = t.cropChangeX + l > 0 ? t.cropChangeX + l : 0), t.fixed) {
1216
+ var m = t.cropW / t.fixedNumber[0] * t.fixedNumber[1];
1217
+ m + t.cropOffsertY > t.h ? (t.cropH = t.h - t.cropOffsertY, t.cropW = t.cropH / t.fixedNumber[1] * t.fixedNumber[0], t.cropOffsertX = l > 0 ? t.cropChangeX : t.cropChangeX - t.cropW) : t.cropH = m, t.cropOffsertY = t.cropOffsertY;
1218
+ } else
1219
+ f > 0 ? (t.cropH = f + t.cropChangeY > t.h ? t.h - t.cropChangeY : f, t.cropOffsertY = t.cropChangeY) : (t.cropH = t.h - t.cropChangeY + Math.abs(f) > t.h ? t.cropChangeY : Math.abs(f), t.cropOffsertY = t.cropChangeY + f > 0 ? t.cropChangeY + f : 0);
1220
+ });
1221
+ }, changeCropSize: function(n, t, i, o, l) {
1222
+ n.preventDefault(), window.addEventListener("mousemove", this.changeCropNow), window.addEventListener("mouseup", this.changeCropEnd), window.addEventListener("touchmove", this.changeCropNow), window.addEventListener("touchend", this.changeCropEnd), this.canChangeX = t, this.canChangeY = i, this.changeCropTypeX = o, this.changeCropTypeY = l, this.cropX = n.clientX ? n.clientX : n.touches[0].clientX, this.cropY = n.clientY ? n.clientY : n.touches[0].clientY, this.cropOldW = this.cropW, this.cropOldH = this.cropH, this.cropChangeX = this.cropOffsertX, this.cropChangeY = this.cropOffsertY, this.fixed && this.canChangeX && this.canChangeY && (this.canChangeY = 0), this.$emit("change-crop-size", { width: this.cropW, height: this.cropH });
1223
+ }, changeCropNow: function(n) {
1224
+ var t = this;
1225
+ n.preventDefault();
1226
+ var i = n.clientX ? n.clientX : n.touches ? n.touches[0].clientX : 0, o = n.clientY ? n.clientY : n.touches ? n.touches[0].clientY : 0, l = this.w, f = this.h, m = 0, b = 0;
1227
+ if (this.centerBox) {
1228
+ var x = this.getImgAxis(), c = x.x2, u = x.y2;
1229
+ m = x.x1 > 0 ? x.x1 : 0, b = x.y1 > 0 ? x.y1 : 0, l > c && (l = c), f > u && (f = u);
1230
+ }
1231
+ this.$nextTick(function() {
1232
+ var p = i - t.cropX, g = o - t.cropY;
1233
+ if (t.canChangeX && (t.changeCropTypeX === 1 ? t.cropOldW - p > 0 ? (t.cropW = l - t.cropChangeX - p <= l - m ? t.cropOldW - p : t.cropOldW + t.cropChangeX - m, t.cropOffsertX = l - t.cropChangeX - p <= l - m ? t.cropChangeX + p : m) : (t.cropW = Math.abs(p) + t.cropChangeX <= l ? Math.abs(p) - t.cropOldW : l - t.cropOldW - t.cropChangeX, t.cropOffsertX = t.cropChangeX + t.cropOldW) : t.changeCropTypeX === 2 && (t.cropOldW + p > 0 ? (t.cropW = t.cropOldW + p + t.cropOffsertX <= l ? t.cropOldW + p : l - t.cropOffsertX, t.cropOffsertX = t.cropChangeX) : (t.cropW = l - t.cropChangeX + Math.abs(p + t.cropOldW) <= l - m ? Math.abs(p + t.cropOldW) : t.cropChangeX - m, t.cropOffsertX = l - t.cropChangeX + Math.abs(p + t.cropOldW) <= l - m ? t.cropChangeX - Math.abs(p + t.cropOldW) : m))), t.canChangeY && (t.changeCropTypeY === 1 ? t.cropOldH - g > 0 ? (t.cropH = f - t.cropChangeY - g <= f - b ? t.cropOldH - g : t.cropOldH + t.cropChangeY - b, t.cropOffsertY = f - t.cropChangeY - g <= f - b ? t.cropChangeY + g : b) : (t.cropH = Math.abs(g) + t.cropChangeY <= f ? Math.abs(g) - t.cropOldH : f - t.cropOldH - t.cropChangeY, t.cropOffsertY = t.cropChangeY + t.cropOldH) : t.changeCropTypeY === 2 && (t.cropOldH + g > 0 ? (t.cropH = t.cropOldH + g + t.cropOffsertY <= f ? t.cropOldH + g : f - t.cropOffsertY, t.cropOffsertY = t.cropChangeY) : (t.cropH = f - t.cropChangeY + Math.abs(g + t.cropOldH) <= f - b ? Math.abs(g + t.cropOldH) : t.cropChangeY - b, t.cropOffsertY = f - t.cropChangeY + Math.abs(g + t.cropOldH) <= f - b ? t.cropChangeY - Math.abs(g + t.cropOldH) : b))), t.canChangeX && t.fixed) {
1234
+ var w = t.cropW / t.fixedNumber[0] * t.fixedNumber[1];
1235
+ w + t.cropOffsertY > f ? (t.cropH = f - t.cropOffsertY, t.cropW = t.cropH / t.fixedNumber[1] * t.fixedNumber[0]) : t.cropH = w;
1236
+ }
1237
+ if (t.canChangeY && t.fixed) {
1238
+ var v = t.cropH / t.fixedNumber[1] * t.fixedNumber[0];
1239
+ v + t.cropOffsertX > l ? (t.cropW = l - t.cropOffsertX, t.cropH = t.cropW / t.fixedNumber[0] * t.fixedNumber[1]) : t.cropW = v;
1240
+ }
1241
+ });
1242
+ }, checkCropLimitSize: function() {
1243
+ this.cropW, this.cropH;
1244
+ var n = this.limitMinSize, t = new Array();
1245
+ return t = Array.isArray[n] ? n : [n, n], [parseFloat(t[0]), parseFloat(t[1])];
1246
+ }, changeCropEnd: function(n) {
1247
+ window.removeEventListener("mousemove", this.changeCropNow), window.removeEventListener("mouseup", this.changeCropEnd), window.removeEventListener("touchmove", this.changeCropNow), window.removeEventListener("touchend", this.changeCropEnd);
1248
+ }, endCrop: function() {
1249
+ this.cropW === 0 && this.cropH === 0 && (this.cropping = !1), window.removeEventListener("mousemove", this.createCrop), window.removeEventListener("mouseup", this.endCrop), window.removeEventListener("touchmove", this.createCrop), window.removeEventListener("touchend", this.endCrop);
1250
+ }, startCrop: function() {
1251
+ this.crop = !0;
1252
+ }, stopCrop: function() {
1253
+ this.crop = !1;
1254
+ }, clearCrop: function() {
1255
+ this.cropping = !1, this.cropW = 0, this.cropH = 0;
1256
+ }, cropMove: function(n) {
1257
+ if (n.preventDefault(), !this.canMoveBox)
1258
+ return this.crop = !1, this.startMove(n), !1;
1259
+ if (n.touches && n.touches.length === 2)
1260
+ return this.crop = !1, this.startMove(n), this.leaveCrop(), !1;
1261
+ window.addEventListener("mousemove", this.moveCrop), window.addEventListener("mouseup", this.leaveCrop), window.addEventListener("touchmove", this.moveCrop), window.addEventListener("touchend", this.leaveCrop);
1262
+ var t, i, o = n.clientX ? n.clientX : n.touches[0].clientX, l = n.clientY ? n.clientY : n.touches[0].clientY;
1263
+ t = o - this.cropOffsertX, i = l - this.cropOffsertY, this.cropX = t, this.cropY = i, this.$emit("cropMoving", { moving: !0, axis: this.getCropAxis() }), this.$emit("crop-moving", { moving: !0, axis: this.getCropAxis() });
1264
+ }, moveCrop: function(n, t) {
1265
+ var i = this, o = 0, l = 0;
1266
+ n && (n.preventDefault(), o = n.clientX ? n.clientX : n.touches[0].clientX, l = n.clientY ? n.clientY : n.touches[0].clientY), this.$nextTick(function() {
1267
+ var f, m, b = o - i.cropX, x = l - i.cropY;
1268
+ if (t && (b = i.cropOffsertX, x = i.cropOffsertY), f = b <= 0 ? 0 : b + i.cropW > i.w ? i.w - i.cropW : b, m = x <= 0 ? 0 : x + i.cropH > i.h ? i.h - i.cropH : x, i.centerBox) {
1269
+ var c = i.getImgAxis();
1270
+ f <= c.x1 && (f = c.x1), f + i.cropW > c.x2 && (f = c.x2 - i.cropW), m <= c.y1 && (m = c.y1), m + i.cropH > c.y2 && (m = c.y2 - i.cropH);
1271
+ }
1272
+ i.cropOffsertX = f, i.cropOffsertY = m, i.$emit("cropMoving", { moving: !0, axis: i.getCropAxis() }), i.$emit("crop-moving", { moving: !0, axis: i.getCropAxis() });
1273
+ });
1274
+ }, getImgAxis: function(n, t, i) {
1275
+ n = n || this.x, t = t || this.y, i = i || this.scale;
1276
+ var o = { x1: 0, x2: 0, y1: 0, y2: 0 }, l = this.trueWidth * i, f = this.trueHeight * i;
1277
+ switch (this.rotate) {
1278
+ case 0:
1279
+ o.x1 = n + this.trueWidth * (1 - i) / 2, o.x2 = o.x1 + this.trueWidth * i, o.y1 = t + this.trueHeight * (1 - i) / 2, o.y2 = o.y1 + this.trueHeight * i;
1280
+ break;
1281
+ case 1:
1282
+ case -1:
1283
+ case 3:
1284
+ case -3:
1285
+ o.x1 = n + this.trueWidth * (1 - i) / 2 + (l - f) / 2, o.x2 = o.x1 + this.trueHeight * i, o.y1 = t + this.trueHeight * (1 - i) / 2 + (f - l) / 2, o.y2 = o.y1 + this.trueWidth * i;
1286
+ break;
1287
+ default:
1288
+ o.x1 = n + this.trueWidth * (1 - i) / 2, o.x2 = o.x1 + this.trueWidth * i, o.y1 = t + this.trueHeight * (1 - i) / 2, o.y2 = o.y1 + this.trueHeight * i;
1289
+ }
1290
+ return o;
1291
+ }, getCropAxis: function() {
1292
+ var n = { x1: 0, x2: 0, y1: 0, y2: 0 };
1293
+ return n.x1 = this.cropOffsertX, n.x2 = n.x1 + this.cropW, n.y1 = this.cropOffsertY, n.y2 = n.y1 + this.cropH, n;
1294
+ }, leaveCrop: function(n) {
1295
+ window.removeEventListener("mousemove", this.moveCrop), window.removeEventListener("mouseup", this.leaveCrop), window.removeEventListener("touchmove", this.moveCrop), window.removeEventListener("touchend", this.leaveCrop), this.$emit("cropMoving", { moving: !1, axis: this.getCropAxis() }), this.$emit("crop-moving", { moving: !1, axis: this.getCropAxis() });
1296
+ }, getCropChecked: function(n) {
1297
+ var t = this, i = document.createElement("canvas"), o = new Image(), l = this.rotate, f = this.trueWidth, m = this.trueHeight, b = this.cropOffsertX, x = this.cropOffsertY;
1298
+ function c(u, p) {
1299
+ i.width = Math.round(u), i.height = Math.round(p);
1300
+ }
1301
+ o.onload = function() {
1302
+ if (t.cropW !== 0) {
1303
+ var u = i.getContext("2d"), p = 1;
1304
+ t.high & !t.full && (p = window.devicePixelRatio), t.enlarge !== 1 & !t.full && (p = Math.abs(Number(t.enlarge)));
1305
+ var g = t.cropW * p, w = t.cropH * p, v = f * t.scale * p, C = m * t.scale * p, _ = (t.x - b + t.trueWidth * (1 - t.scale) / 2) * p, S = (t.y - x + t.trueHeight * (1 - t.scale) / 2) * p;
1306
+ switch (c(g, w), u.save(), l) {
1307
+ case 0:
1308
+ t.full ? (c(g / t.scale, w / t.scale), u.drawImage(o, _ / t.scale, S / t.scale, v / t.scale, C / t.scale)) : u.drawImage(o, _, S, v, C);
1309
+ break;
1310
+ case 1:
1311
+ case -3:
1312
+ t.full ? (c(g / t.scale, w / t.scale), _ = _ / t.scale + (v / t.scale - C / t.scale) / 2, S = S / t.scale + (C / t.scale - v / t.scale) / 2, u.rotate(90 * l * Math.PI / 180), u.drawImage(o, S, -_ - C / t.scale, v / t.scale, C / t.scale)) : (_ += (v - C) / 2, S += (C - v) / 2, u.rotate(90 * l * Math.PI / 180), u.drawImage(o, S, -_ - C, v, C));
1313
+ break;
1314
+ case 2:
1315
+ case -2:
1316
+ t.full ? (c(g / t.scale, w / t.scale), u.rotate(90 * l * Math.PI / 180), _ /= t.scale, S /= t.scale, u.drawImage(o, -_ - v / t.scale, -S - C / t.scale, v / t.scale, C / t.scale)) : (u.rotate(90 * l * Math.PI / 180), u.drawImage(o, -_ - v, -S - C, v, C));
1317
+ break;
1318
+ case 3:
1319
+ case -1:
1320
+ t.full ? (c(g / t.scale, w / t.scale), _ = _ / t.scale + (v / t.scale - C / t.scale) / 2, S = S / t.scale + (C / t.scale - v / t.scale) / 2, u.rotate(90 * l * Math.PI / 180), u.drawImage(o, -S - v / t.scale, _, v / t.scale, C / t.scale)) : (_ += (v - C) / 2, S += (C - v) / 2, u.rotate(90 * l * Math.PI / 180), u.drawImage(o, -S - v, _, v, C));
1321
+ break;
1322
+ default:
1323
+ t.full ? (c(g / t.scale, w / t.scale), u.drawImage(o, _ / t.scale, S / t.scale, v / t.scale, C / t.scale)) : u.drawImage(o, _, S, v, C);
1324
+ }
1325
+ u.restore();
1326
+ } else {
1327
+ var E = f * t.scale, T = m * t.scale, O = i.getContext("2d");
1328
+ switch (O.save(), l) {
1329
+ case 0:
1330
+ c(E, T), O.drawImage(o, 0, 0, E, T);
1331
+ break;
1332
+ case 1:
1333
+ case -3:
1334
+ c(T, E), O.rotate(90 * l * Math.PI / 180), O.drawImage(o, 0, -T, E, T);
1335
+ break;
1336
+ case 2:
1337
+ case -2:
1338
+ c(E, T), O.rotate(90 * l * Math.PI / 180), O.drawImage(o, -E, -T, E, T);
1339
+ break;
1340
+ case 3:
1341
+ case -1:
1342
+ c(T, E), O.rotate(90 * l * Math.PI / 180), O.drawImage(o, -E, 0, E, T);
1343
+ break;
1344
+ default:
1345
+ c(E, T), O.drawImage(o, 0, 0, E, T);
1346
+ }
1347
+ O.restore();
1348
+ }
1349
+ n(i);
1350
+ }, this.img.substr(0, 4) !== "data" && (o.crossOrigin = "Anonymous"), o.src = this.imgs;
1351
+ }, getCropData: function(n) {
1352
+ var t = this;
1353
+ this.getCropChecked(function(i) {
1354
+ n(i.toDataURL("image/" + t.outputType, t.outputSize));
1355
+ });
1356
+ }, getCropBlob: function(n) {
1357
+ var t = this;
1358
+ this.getCropChecked(function(i) {
1359
+ i.toBlob(function(o) {
1360
+ return n(o);
1361
+ }, "image/" + t.outputType, t.outputSize);
1362
+ });
1363
+ }, showPreview: function() {
1364
+ var n = this;
1365
+ if (!this.isCanShow)
1366
+ return !1;
1367
+ this.isCanShow = !1, setTimeout(function() {
1368
+ n.isCanShow = !0;
1369
+ }, 16);
1370
+ var t = this.cropW, i = this.cropH, o = this.scale, l = {};
1371
+ l.div = { width: "".concat(t, "px"), height: "".concat(i, "px") };
1372
+ var f = (this.x - this.cropOffsertX) / o, m = (this.y - this.cropOffsertY) / o;
1373
+ l.w = t, l.h = i, l.url = this.imgs, l.img = { width: "".concat(this.trueWidth, "px"), height: "".concat(this.trueHeight, "px"), transform: "scale(".concat(o, ")translate3d(").concat(f, "px, ").concat(m, "px, ").concat(0, "px)rotateZ(").concat(90 * this.rotate, "deg)") }, l.html = `
1374
+ <div class="show-preview" style="width: `.concat(l.w, "px; height: ").concat(l.h, `px,; overflow: hidden">
1375
+ <div style="width: `).concat(t, "px; height: ").concat(i, `px">
1376
+ <img src=`).concat(l.url, ' style="width: ').concat(this.trueWidth, "px; height: ").concat(this.trueHeight, `px; transform:
1377
+ scale(`).concat(o, ")translate3d(").concat(f, "px, ").concat(m, "px, ").concat(0, "px)rotateZ(").concat(90 * this.rotate, `deg)">
1378
+ </div>
1379
+ </div>`), this.$emit("realTime", l), this.$emit("real-time", l);
1380
+ }, reload: function() {
1381
+ var n = this, t = new Image();
1382
+ t.onload = function() {
1383
+ n.w = parseFloat(window.getComputedStyle(n.$refs.cropper).width), n.h = parseFloat(window.getComputedStyle(n.$refs.cropper).height), n.trueWidth = t.width, n.trueHeight = t.height, n.original ? n.scale = 1 : n.scale = n.checkedMode(), n.$nextTick(function() {
1384
+ n.x = -(n.trueWidth - n.trueWidth * n.scale) / 2 + (n.w - n.trueWidth * n.scale) / 2, n.y = -(n.trueHeight - n.trueHeight * n.scale) / 2 + (n.h - n.trueHeight * n.scale) / 2, n.loading = !1, n.autoCrop && n.goAutoCrop(), n.$emit("img-load", "success"), n.$emit("imgLoad", "success"), setTimeout(function() {
1385
+ n.showPreview();
1386
+ }, 20);
1387
+ });
1388
+ }, t.onerror = function() {
1389
+ n.$emit("imgLoad", "error"), n.$emit("img-load", "error");
1390
+ }, t.src = this.imgs;
1391
+ }, checkedMode: function() {
1392
+ var n = 1, t = (this.trueWidth, this.trueHeight), i = this.mode.split(" ");
1393
+ switch (i[0]) {
1394
+ case "contain":
1395
+ this.trueWidth > this.w && (n = this.w / this.trueWidth), this.trueHeight * n > this.h && (n = this.h / this.trueHeight);
1396
+ break;
1397
+ case "cover":
1398
+ (t *= n = this.w / this.trueWidth) < this.h && (n = (t = this.h) / this.trueHeight);
1399
+ break;
1400
+ default:
1401
+ try {
1402
+ var o = i[0];
1403
+ if (o.search("px") !== -1 && (o = o.replace("px", ""), n = parseFloat(o) / this.trueWidth), o.search("%") !== -1 && (o = o.replace("%", ""), n = parseFloat(o) / 100 * this.w / this.trueWidth), i.length === 2 && o === "auto") {
1404
+ var l = i[1];
1405
+ l.search("px") !== -1 && (l = l.replace("px", ""), n = (t = parseFloat(l)) / this.trueHeight), l.search("%") !== -1 && (l = l.replace("%", ""), n = (t = parseFloat(l) / 100 * this.h) / this.trueHeight);
1406
+ }
1407
+ } catch {
1408
+ n = 1;
1409
+ }
1410
+ }
1411
+ return n;
1412
+ }, goAutoCrop: function(n, t) {
1413
+ if (this.imgs !== "" && this.imgs !== null) {
1414
+ this.clearCrop(), this.cropping = !0;
1415
+ var i = this.w, o = this.h;
1416
+ if (this.centerBox) {
1417
+ var l = this.trueWidth * this.scale, f = this.trueHeight * this.scale;
1418
+ i = l < i ? l : i, o = f < o ? f : o;
1419
+ }
1420
+ var m = n || parseFloat(this.autoCropWidth), b = t || parseFloat(this.autoCropHeight);
1421
+ m !== 0 && b !== 0 || (m = 0.8 * i, b = 0.8 * o), m = m > i ? i : m, b = b > o ? o : b, this.fixed && (b = m / this.fixedNumber[0] * this.fixedNumber[1]), b > this.h && (m = (b = this.h) / this.fixedNumber[1] * this.fixedNumber[0]), this.changeCrop(m, b);
1422
+ }
1423
+ }, changeCrop: function(n, t) {
1424
+ var i = this;
1425
+ if (this.centerBox) {
1426
+ var o = this.getImgAxis();
1427
+ n > o.x2 - o.x1 && (t = (n = o.x2 - o.x1) / this.fixedNumber[0] * this.fixedNumber[1]), t > o.y2 - o.y1 && (n = (t = o.y2 - o.y1) / this.fixedNumber[1] * this.fixedNumber[0]);
1428
+ }
1429
+ this.cropW = n, this.cropH = t, this.checkCropLimitSize(), this.$nextTick(function() {
1430
+ i.cropOffsertX = (i.w - i.cropW) / 2, i.cropOffsertY = (i.h - i.cropH) / 2, i.centerBox && i.moveCrop(null, !0);
1431
+ });
1432
+ }, refresh: function() {
1433
+ var n = this;
1434
+ this.img, this.imgs = "", this.scale = 1, this.crop = !1, this.rotate = 0, this.w = 0, this.h = 0, this.trueWidth = 0, this.trueHeight = 0, this.clearCrop(), this.$nextTick(function() {
1435
+ n.checkedImg();
1436
+ });
1437
+ }, rotateLeft: function() {
1438
+ this.rotate = this.rotate <= -3 ? 0 : this.rotate - 1;
1439
+ }, rotateRight: function() {
1440
+ this.rotate = this.rotate >= 3 ? 0 : this.rotate + 1;
1441
+ }, rotateClear: function() {
1442
+ this.rotate = 0;
1443
+ }, checkoutImgAxis: function(n, t, i) {
1444
+ n = n || this.x, t = t || this.y, i = i || this.scale;
1445
+ var o = !0;
1446
+ if (this.centerBox) {
1447
+ var l = this.getImgAxis(n, t, i), f = this.getCropAxis();
1448
+ l.x1 >= f.x1 && (o = !1), l.x2 <= f.x2 && (o = !1), l.y1 >= f.y1 && (o = !1), l.y2 <= f.y2 && (o = !1);
1449
+ }
1450
+ return o;
1451
+ } }, mounted: function() {
1452
+ this.support = "onwheel" in document.createElement("div") ? "wheel" : document.onmousewheel !== void 0 ? "mousewheel" : "DOMMouseScroll";
1453
+ var n = this, t = navigator.userAgent;
1454
+ this.isIOS = !!t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), HTMLCanvasElement.prototype.toBlob || Object.defineProperty(HTMLCanvasElement.prototype, "toBlob", { value: function(i, o, l) {
1455
+ for (var f = atob(this.toDataURL(o, l).split(",")[1]), m = f.length, b = new Uint8Array(m), x = 0; x < m; x++)
1456
+ b[x] = f.charCodeAt(x);
1457
+ i(new Blob([b], { type: n.type || "image/png" }));
1458
+ } }), this.showPreview(), this.checkedImg();
1459
+ }, destroyed: function() {
1460
+ window.removeEventListener("mousemove", this.moveCrop), window.removeEventListener("mouseup", this.leaveCrop), window.removeEventListener("touchmove", this.moveCrop), window.removeEventListener("touchend", this.leaveCrop);
1461
+ } };
1462
+ d(1);
1463
+ var A = function(n, t, i, o, l, f, m, b) {
1464
+ var x, c = typeof n == "function" ? n.options : n;
1465
+ if (t && (c.render = t, c.staticRenderFns = i, c._compiled = !0), o && (c.functional = !0), f && (c._scopeId = "data-v-" + f), m ? (x = function(g) {
1466
+ (g = g || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) || typeof __VUE_SSR_CONTEXT__ > "u" || (g = __VUE_SSR_CONTEXT__), l && l.call(this, g), g && g._registeredComponents && g._registeredComponents.add(m);
1467
+ }, c._ssrRegister = x) : l && (x = b ? function() {
1468
+ l.call(this, this.$root.$options.shadowRoot);
1469
+ } : l), x)
1470
+ if (c.functional) {
1471
+ c._injectStyles = x;
1472
+ var u = c.render;
1473
+ c.render = function(g, w) {
1474
+ return x.call(w), u(g, w);
1475
+ };
1476
+ } else {
1477
+ var p = c.beforeCreate;
1478
+ c.beforeCreate = p ? [].concat(p, x) : [x];
1479
+ }
1480
+ return { exports: n, options: c };
1481
+ }(I, h, [], !1, null, "6dae58fd", null);
1482
+ A.options.__file = "src/vue-cropper.vue";
1483
+ var k = A.exports;
1484
+ d.d(a, "VueCropper", function() {
1485
+ return k;
1486
+ });
1487
+ var L = function(n) {
1488
+ n.component("VueCropper", k);
1489
+ };
1490
+ typeof window < "u" && window.Vue && L(window.Vue), a.default = { version: "0.5.5", install: L, VueCropper: k, vueCropper: k };
1491
+ }]);
1492
+ });
1493
+ })(N);
1494
+ const ce = {
1495
+ data() {
1496
+ return {
1497
+ width: "800px",
1498
+ visible: !1,
1499
+ id: null,
1500
+ confirmLoading: !1,
1501
+ fileList: [],
1502
+ uploading: !1,
1503
+ options: {
1504
+ img: "",
1505
+ autoCrop: !0,
1506
+ autoCropWidth: 200,
1507
+ autoCropHeight: 200,
1508
+ fixedBox: !0
1509
+ },
1510
+ previews: {},
1511
+ fullscreen: !1
1512
+ };
1513
+ },
1514
+ computed: {
1515
+ modalStyle() {
1516
+ return this.fullscreen ? {
1517
+ width: "100%",
1518
+ dialogStyle: {
1519
+ top: "0px"
1520
+ }
1521
+ } : {
1522
+ width: this.width,
1523
+ dialogStyle: {
1524
+ top: "40px"
1525
+ }
1526
+ };
1527
+ }
1528
+ },
1529
+ components: {
1530
+ VueCropper: N.exports.VueCropper
1531
+ },
1532
+ methods: {
1533
+ toggleFullscreen() {
1534
+ this.fullscreen = !this.fullscreen;
1535
+ },
1536
+ edit(s) {
1537
+ this.fullscreen = !1, this.visible = !0, this.id = s;
1538
+ },
1539
+ close() {
1540
+ this.id = null, this.visible = !1;
1541
+ },
1542
+ cancelHandel() {
1543
+ this.close();
1544
+ },
1545
+ changeScale(s) {
1546
+ s = s || 1, this.$refs.cropper.changeScale(s);
1547
+ },
1548
+ rotateLeft() {
1549
+ this.$refs.cropper.rotateLeft();
1550
+ },
1551
+ rotateRight() {
1552
+ this.$refs.cropper.rotateRight();
1553
+ },
1554
+ beforeUpload(s) {
1555
+ this.fileList = s;
1556
+ const e = new FileReader();
1557
+ return e.readAsDataURL(s), e.onload = () => {
1558
+ this.options.img = e.result;
1559
+ }, !1;
1560
+ },
1561
+ finish(s) {
1562
+ s === "blob" ? (this.uploading = !0, this.$refs.cropper.getCropBlob((e) => {
1563
+ const r = new window.File([e], this.fileList.name, {
1564
+ type: this.fileList.type
1565
+ }), a = new FormData();
1566
+ a.append("file", r), V(a).then((d) => {
1567
+ d.success ? this.updateAvatar(d.data) : (this.uploading = !1, this.$message.error(d.message));
1568
+ });
1569
+ })) : this.$refs.cropper.getCropData((e) => {
1570
+ });
1571
+ },
1572
+ updateAvatar(s) {
1573
+ const e = {
1574
+ id: this.id,
1575
+ avatar: s
1576
+ };
1577
+ ee(e).then((r) => {
1578
+ this.uploading = !1, r.success ? (this.visible = !1, this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F"))) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message), this.$emit("ok", s);
1579
+ }).catch((r) => {
1580
+ this.$emit("ok", s);
1581
+ });
1582
+ },
1583
+ realTime(s) {
1584
+ this.previews = s;
1585
+ },
1586
+ doEvent(s) {
1587
+ let e = s.item.functionName;
1588
+ this[e] && this[e]();
1589
+ }
1590
+ }
1591
+ };
1592
+ var le = function() {
1593
+ var e = this, r = e._self._c;
1594
+ return r("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.modalStyle.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(a) {
1595
+ e.visible = a;
1596
+ }, closed: e.cancelHandel } }, [r("gd-modal-title", { attrs: { slot: "title", title: e.$i18nt("gd.account.modifyavatar", "\u4FEE\u6539\u5934\u50CF"), fullscreen: e.fullscreen, buttons: [], confirmLoading: e.confirmLoading, showClose: !0, closed: "cancelHandel" }, on: { changeEvent: e.doEvent }, slot: "title" }), r("div", { staticClass: "gd-model-body", class: e.fullscreen ? "modal-bodyq" : "modal-body" }, [r("el-row", [r("el-col", { style: { height: "350px" }, attrs: { xs: 24, md: 12 } }, [r("vue-cropper", { ref: "cropper", attrs: { img: e.options.img, info: !0, autoCrop: e.options.autoCrop, autoCropWidth: e.options.autoCropWidth, autoCropHeight: e.options.autoCropHeight, fixedBox: e.options.fixedBox }, on: { realTime: e.realTime } })], 1), r("el-col", { style: { height: "350px" }, attrs: { xs: 24, md: 12 } }, [r("div", { staticClass: "avatar-upload-preview" }, [r("img", { style: e.previews.img, attrs: { src: e.previews.url } })])])], 1), r("br"), r("el-row", [r("el-col", { attrs: { lg: 3, md: 3 } }, [r("el-upload", { attrs: { name: "file", action: "", beforeUpload: e.beforeUpload, showUploadList: !1 } }, [r("el-button", { staticClass: "el-icon-upload2" }, [e._v(e._s(e.$i18nt("gd.account.selectPicture", "\u9009\u62E9\u56FE\u7247")))])], 1)], 1), r("el-col", { attrs: { lg: { span: 1, offset: 2 }, md: 2 } }, [r("el-button", { staticClass: "el-icon-plus", on: { click: function(a) {
1597
+ return e.changeScale(1);
1598
+ } } })], 1), r("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [r("el-button", { staticClass: "el-icon-minus", on: { click: function(a) {
1599
+ return e.changeScale(-1);
1600
+ } } })], 1), r("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [r("el-button", { staticClass: "el-icon-refresh-left", on: { click: e.rotateLeft } })], 1), r("el-col", { attrs: { lg: { span: 1, offset: 1 }, md: 2 } }, [r("el-button", { staticClass: "el-icon-refresh-right", on: { click: e.rotateRight } })], 1), r("el-col", { attrs: { lg: { span: 2, offset: 6 }, md: 2 } }, [r("el-button", { attrs: { type: "primary", loading: e.uploading }, on: { click: function(a) {
1601
+ return e.finish("blob");
1602
+ } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.save")) + " ")])], 1)], 1)], 1)], 1);
1603
+ }, ue = [], de = /* @__PURE__ */ M(
1604
+ ce,
1605
+ le,
1606
+ ue,
1607
+ !1,
1608
+ null,
1609
+ "9ef46bcd",
1610
+ null,
1611
+ null
1612
+ );
1613
+ const he = de.exports;
1614
+ function pe(s) {
1615
+ return window.axios({
1616
+ url: "/sysLanguage/page",
1617
+ method: "get",
1618
+ params: s
1619
+ });
1620
+ }
1621
+ function ge(s) {
1622
+ return window.axios({
1623
+ url: "/sysCurrency/page",
1624
+ method: "get",
1625
+ params: s
1626
+ });
1627
+ }
1628
+ function fe(s) {
1629
+ return window.axios({
1630
+ url: "/sysTimezone/page",
1631
+ method: "get",
1632
+ params: s
1633
+ });
1634
+ }
1635
+ const me = {
1636
+ props: {
1637
+ height: {
1638
+ type: Number,
1639
+ default: 100
1640
+ }
1641
+ },
1642
+ name: "GdBaseSettings",
1643
+ components: {
1644
+ AvatarModal: he
1645
+ },
1646
+ data() {
1647
+ return {
1648
+ preview: {},
1649
+ sexData: [],
1650
+ langData: [
1651
+ {
1652
+ id: 1,
1653
+ name: "\u7B80\u4F53\u4E2D\u6587",
1654
+ transKey: "gd.settings.chineseLanguage"
1655
+ },
1656
+ {
1657
+ id: 2,
1658
+ name: "\u82F1\u8BED(\u7F8E\u56FD)",
1659
+ transKey: "gd.settings.englishLanguage"
1660
+ }
1661
+ ],
1662
+ timezoneData: [],
1663
+ currencyData: [],
1664
+ option: {
1665
+ img: null,
1666
+ info: !0,
1667
+ size: 1,
1668
+ outputType: "jpeg",
1669
+ canScale: !1,
1670
+ autoCrop: !0,
1671
+ autoCropWidth: 180,
1672
+ autoCropHeight: 180,
1673
+ fixedBox: !0,
1674
+ fixed: !0,
1675
+ fixedNumber: [1, 1],
1676
+ birthdayString: ""
1677
+ },
1678
+ spinning: !1,
1679
+ ruleForm: {},
1680
+ rules: {}
1681
+ };
1682
+ },
1683
+ computed: {
1684
+ getHeight() {
1685
+ return this.height;
1686
+ },
1687
+ ...W(["userInfo", "locale", "language"])
1688
+ },
1689
+ mounted() {
1690
+ this.initUserInfo();
1691
+ },
1692
+ methods: {
1693
+ changeLanguage(s) {
1694
+ let e = this.langData.filter((r) => r.id == s)[0];
1695
+ this.$store.dispatch("Language", e.code);
1696
+ },
1697
+ initUserInfo() {
1698
+ this.spinning = !0, setTimeout(() => {
1699
+ this.languageChange(), this.timezoneChange(), this.currencyChange(), this.ruleForm = {
1700
+ birthday: this.userInfo.birthday ? this.userInfo.birthday : void 0,
1701
+ nickName: this.userInfo.nickname,
1702
+ gender: this.userInfo.gender.toString(),
1703
+ email: this.userInfo.email,
1704
+ phone: this.userInfo.phone,
1705
+ tel: this.userInfo.tel,
1706
+ languageId: this.userInfo.languageid,
1707
+ currencyId: this.userInfo.currencyid,
1708
+ timezoneId: this.userInfo.timezoneid
1709
+ }, this.birthdayString = this.userInfo.birthday, this.userInfo.avatar != null ? X({
1710
+ id: this.userInfo.avatar
1711
+ }).then((s) => {
1712
+ this.option.img = window.URL.createObjectURL(new Blob([s]));
1713
+ }).catch((s) => {
1714
+ this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + s.message);
1715
+ }) : this.option.img = "/avatar2.jpg", this.getSexData(), this.spinning = !1;
1716
+ }, 100);
1717
+ },
1718
+ onChange(s, e) {
1719
+ console.log(s), this.birthdayString = s;
1720
+ },
1721
+ currencyChange() {
1722
+ ge().then((s) => {
1723
+ s.success && (this.currencyData = s.data.rows, j.ls.set("currencyData", s.data.rows));
1724
+ });
1725
+ },
1726
+ timezoneChange() {
1727
+ fe().then((s) => {
1728
+ s.success && (this.timezoneData = s.data.rows);
1729
+ });
1730
+ },
1731
+ languageChange() {
1732
+ pe().then((s) => {
1733
+ s.success && (this.langData = s.data.rows);
1734
+ });
1735
+ },
1736
+ submitUserInfo() {
1737
+ this.spinning || this.$refs.ruleForm.validate((s) => {
1738
+ s && (this.spinning = !0, this.ruleForm.birthday = this.birthdayString, this.ruleForm.id = this.userInfo.id, te(this.ruleForm).then((e) => {
1739
+ if (e.success) {
1740
+ let r = this.langData.filter((a) => a.id == this.ruleForm.languageId)[0];
1741
+ this.$store.dispatch("Language", r.code), this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), setTimeout(() => {
1742
+ this.$store.dispatch("GetInfo").then(() => {
1743
+ });
1744
+ }, 500);
1745
+ } else
1746
+ this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + e.message);
1747
+ this.spinning = !1;
1748
+ }));
1749
+ });
1750
+ },
1751
+ getSexData() {
1752
+ this.sexData = this.$options.filters.dictData("gender");
1753
+ },
1754
+ setavatar(s) {
1755
+ X({
1756
+ id: s
1757
+ }).then((e) => {
1758
+ this.option.img = window.URL.createObjectURL(new Blob([e]));
1759
+ }).catch((e) => {
1760
+ this.$message.error("\u9884\u89C8\u9519\u8BEF\uFF1A" + e.message);
1761
+ }), this.$store.dispatch("GetInfo").then(() => {
1762
+ });
1763
+ }
1764
+ }
1765
+ };
1766
+ var ve = function() {
1767
+ var e = this, r = e._self._c;
1768
+ return r("div", { staticClass: "account-settings-info-view", staticStyle: { height: "100px" } }, [r("el-row", { attrs: { gutter: 16 } }, [r("el-col", { attrs: { md: 24, lg: 16 } }, [r("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "110px", "label-position": "top" }, nativeOn: { submit: function(a) {
1769
+ a.preventDefault();
1770
+ } } }, [r("el-form-item", { attrs: { label: e.$i18nt("gd.account.nickname", "\u6635\u79F0"), prop: "nickName" } }, [r("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.nickName, callback: function(a) {
1771
+ e.$set(e.ruleForm, "nickName", a);
1772
+ }, expression: "ruleForm.nickName" } })], 1), r("el-form-item", { attrs: { label: e.$i18nt("gd.account.birthday", "\u751F\u65E5"), prop: "birthday", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }] } }, [r("el-date-picker", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.onChange }, model: { value: e.ruleForm.birthday, callback: function(a) {
1773
+ e.$set(e.ruleForm, "birthday", a);
1774
+ }, expression: "ruleForm.birthday" } })], 1), r("el-form-item", { attrs: { label: e.$i18nt("gd.account.sex", "\u6027\u522B"), prop: "gender", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }] } }, [r("el-radio-group", { model: { value: e.ruleForm.gender, callback: function(a) {
1775
+ e.$set(e.ruleForm, "gender", a);
1776
+ }, expression: "ruleForm.gender" } }, e._l(e.sexData, function(a, d) {
1777
+ return r("el-radio", { key: d, attrs: { label: a.code } }, [e._v(" " + e._s(a.name) + " ")]);
1778
+ }), 1)], 1), r("el-form-item", { attrs: { label: e.$i18nt("gd.account.phone", "\u624B\u673A\u53F7"), prop: "phone", rules: [
1779
+ { required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") },
1780
+ {
1781
+ pattern: /^1[3-9]\d{9}$/,
1782
+ message: this.$i18nt("gd.account.phoneInvalid", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u624B\u673A\u53F7\u7801"),
1783
+ trigger: "blur"
1784
+ }
1785
+ ] } }, [r("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.phone, callback: function(a) {
1786
+ e.$set(e.ruleForm, "phone", a);
1787
+ }, expression: "ruleForm.phone" } })], 1), r("el-form-item", { staticStyle: { "margin-bottom": "12px" }, attrs: { label: e.$i18nt("gd.account.tel", "\u7535\u8BDD"), prop: "tel" } }, [r("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.tel, callback: function(a) {
1788
+ e.$set(e.ruleForm, "tel", a);
1789
+ }, expression: "ruleForm.tel" } })], 1), r("el-form-item", { attrs: { label: e.$i18nt("gd.account.email", "\u7535\u5B50\u90AE\u4EF6"), prop: "email", rules: [
1790
+ { required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), trigger: "blur" },
1791
+ { type: "email", message: e.$i18nt("gd.account.emailTip", "\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u90AE\u7BB1\u53F7!"), trigger: ["blur", "change"] }
1792
+ ] } }, [r("el-input", { attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.email, callback: function(a) {
1793
+ e.$set(e.ruleForm, "email", a);
1794
+ }, expression: "ruleForm.email" } })], 1), r("el-form-item", { attrs: { label: e.$i18nt("gd.account.language", "\u9ED8\u8BA4\u8BED\u8A00"), prop: "languageId", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }] } }, [r("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { select: e.changeLanguage }, model: { value: e.ruleForm.languageId, callback: function(a) {
1795
+ e.$set(e.ruleForm, "languageId", a);
1796
+ }, expression: "ruleForm.languageId" } }, e._l(e.langData, function(a, d) {
1797
+ return r("el-option", { key: d, attrs: { value: a.id, label: a.name } });
1798
+ }), 1)], 1), r("el-form-item", { attrs: { label: e.$i18nt("gd.account.currency", "\u9ED8\u8BA4\u8D27\u5E01"), prop: "currencyId", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }] } }, [r("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleForm.currencyId, callback: function(a) {
1799
+ e.$set(e.ruleForm, "currencyId", a);
1800
+ }, expression: "ruleForm.currencyId" } }, e._l(e.currencyData, function(a, d) {
1801
+ return r("el-option", { key: d, attrs: { value: a.id, label: a.name } });
1802
+ }), 1)], 1), r("el-form-item", { attrs: { label: e.$i18nt("gd.account.timeZone", "\u9ED8\u8BA4\u65F6\u533A"), prop: "timezoneId", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }] } }, [r("el-select", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.ruleForm.timezoneId, callback: function(a) {
1803
+ e.$set(e.ruleForm, "timezoneId", a);
1804
+ }, expression: "ruleForm.timezoneId" } }, e._l(e.timezoneData, function(a, d) {
1805
+ return r("el-option", { key: d, attrs: { value: a.id, label: a.name } });
1806
+ }), 1)], 1), r("el-form-item", [r("el-button", { attrs: { type: "primary" }, on: { click: e.submitUserInfo } }, [e._v(" " + e._s(e.$i18nt("gd.account.updateInformation", "\u66F4\u65B0\u57FA\u672C\u4FE1\u606F")) + " ")])], 1)], 1)], 1), r("el-col", { style: { minHeight: "180px" }, attrs: { md: 24, lg: 8 } }, [r("div", { staticClass: "ant-upload-preview", on: { click: function(a) {
1807
+ return e.$refs.modal.edit(e.userInfo.id);
1808
+ } } }, [r("i", { staticClass: "el-icon-upload upload-icon" }), r("div", { staticClass: "mask" }, [r("i", { staticClass: "el-icon-plus" })]), r("img", { attrs: { src: e.option.img } })])])], 1), r("avatar-modal", { ref: "modal", on: { ok: e.setavatar } })], 1);
1809
+ }, we = [], ye = /* @__PURE__ */ M(
1810
+ me,
1811
+ ve,
1812
+ we,
1813
+ !1,
1814
+ null,
1815
+ "af06f359",
1816
+ null,
1817
+ null
1818
+ );
1819
+ const P = ye.exports;
1820
+ P.install = function(s) {
1821
+ s.component(P.name, P);
1822
+ };
1823
+ function xe(s) {
1824
+ return window.axios({
1825
+ url: "/sysMenu/list",
1826
+ method: "get",
1827
+ params: s
1828
+ });
1829
+ }
1830
+ function Ct(s) {
1831
+ return window.axios({
1832
+ url: "/sysMenu/v2/add",
1833
+ method: "post",
1834
+ data: s
1835
+ });
1836
+ }
1837
+ function bt(s) {
1838
+ return window.axios({
1839
+ url: "/sysMenu/delete",
1840
+ method: "post",
1841
+ data: s
1842
+ });
1843
+ }
1844
+ function _t(s) {
1845
+ return window.axios({
1846
+ url: "/sysMenu/detail",
1847
+ method: "post",
1848
+ data: s
1849
+ });
1850
+ }
1851
+ function $t(s) {
1852
+ return window.axios({
1853
+ url: "/sysMenu/edit",
1854
+ method: "post",
1855
+ data: s
1856
+ });
1857
+ }
1858
+ function It(s) {
1859
+ return window.axios({
1860
+ url: "/sysMenu/treeForGrant",
1861
+ method: "get",
1862
+ params: s
1863
+ });
1864
+ }
1865
+ function Ce(s) {
1866
+ return window.axios({
1867
+ url: "/sysMenu/change",
1868
+ method: "post",
1869
+ data: s
1870
+ });
1871
+ }
1872
+ function St(s) {
1873
+ return window.axios({
1874
+ url: "/sysMenu/listByAppsId",
1875
+ method: "post",
1876
+ params: s
1877
+ });
1878
+ }
1879
+ const be = {
1880
+ name: "GdCustomSettings",
1881
+ data() {
1882
+ return {
1883
+ colorList: Y,
1884
+ options: [],
1885
+ homePage: ["uvgsxjpu", "ujhmcamph", "uwcscihbx"],
1886
+ account: "",
1887
+ echartsList: [],
1888
+ value: 0,
1889
+ primaryColors: this.primaryColor,
1890
+ propOptions: [],
1891
+ propOptionsOld: [],
1892
+ list: null,
1893
+ listOptions: [],
1894
+ listOptionsOld: [],
1895
+ presentText: []
1896
+ };
1897
+ },
1898
+ computed: {
1899
+ predefine() {
1900
+ let s = [];
1901
+ return Y.forEach((e) => {
1902
+ s.push(e.color);
1903
+ }), s;
1904
+ },
1905
+ ...W(["userInfo", "addRouters", "theme", "primaryColor", "echartsColor", "systemInfo"])
1906
+ },
1907
+ watch: {
1908
+ primaryColor() {
1909
+ this.primaryColors = this.primaryColor;
1910
+ }
1911
+ },
1912
+ methods: {
1913
+ okColor(s) {
1914
+ this.$store.dispatch("EchartsColor", s), this.echartsList = [...s];
1915
+ },
1916
+ getColor() {
1917
+ this.echartsList = [...this.echartsColor];
1918
+ },
1919
+ renew() {
1920
+ let s = this, e = this.homePage, r = !1;
1921
+ if (e.length == 0 && (r = !0), e.length > 1 && (r = !0), !r) {
1922
+ s.$message.error(s.$i18nt("gd.field.replenishData", "\u8BF7\u8865\u5145\u6570\u636E"));
1923
+ return;
1924
+ }
1925
+ this.$confirm(
1926
+ this.$i18nt("gd.https.configThemeContent", "\u662F\u5426\u66F4\u65B0\u4E2A\u4EBA\u9996\u9875\u914D\u7F6E?"),
1927
+ this.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
1928
+ {
1929
+ confirmButtonText: this.$i18nt("gd.https.saveOk", "\u786E\u5B9A\u4FDD\u5B58"),
1930
+ cancelButtonText: this.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
1931
+ showClose: !1,
1932
+ confirmButtonLoading: !1,
1933
+ cancelButtonLoading: !1,
1934
+ closeOnClickModal: !1,
1935
+ type: "warning",
1936
+ confirmButtonClass: "el-button--danger",
1937
+ customClass: "custom-alert",
1938
+ callback: () => {
1939
+ },
1940
+ beforeClose: (a, d, h) => {
1941
+ this.renewHand(a, d, h, this.homePage);
1942
+ }
1943
+ }
1944
+ );
1945
+ },
1946
+ renewHand(s, e, r, a) {
1947
+ if (s !== "confirm") {
1948
+ r();
1949
+ return;
1950
+ }
1951
+ let d = [], h = ne({
1952
+ configTheme: a.join(",")
1953
+ }).then((y) => y);
1954
+ d.push(h), e.confirmButtonLoading = !0, e.cancelButtonLoading = !0, e.showCancelButton = !1, Promise.all(d).then((y) => {
1955
+ r(), e.confirmButtonLoading = !1, e.cancelButtonLoading = !1, e.showCancelButton = !0;
1956
+ const $ = y.filter((I) => !I.success);
1957
+ $.length === 0 ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.$store.dispatch("GetInfo").then(() => {
1958
+ })) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + $[0].message);
1959
+ });
1960
+ },
1961
+ init() {
1962
+ this.value = this.theme == "dark" ? 1 : 0, this.homePage = this.userInfo.configtheme ? this.userInfo.configtheme.split(",") : [], this.systemInfo.id ? this.systemInfo : window.$systemInfo;
1963
+ },
1964
+ lazyLoad(s, e) {
1965
+ const { level: r, value: a } = s;
1966
+ if (this.options.length === 0) {
1967
+ this.geData().then(() => {
1968
+ if (this.presentText.length < this.homePage.length) {
1969
+ const d = this.options.filter((h) => h.code === this.homePage[0])[0];
1970
+ this.presentText = d ? this.presentText.concat([d.label]) : this.presentText;
1971
+ }
1972
+ e(this.options);
1973
+ });
1974
+ return;
1975
+ }
1976
+ this.getMenuListAll(a).then((d) => {
1977
+ if (this.presentText.length < this.homePage.length && r === 2) {
1978
+ this.presentText = this.presentText.concat([s.label]);
1979
+ const y = s.children.filter(($) => $.value === this.homePage[r])[0];
1980
+ this.presentText = y ? this.presentText.concat([y.label]) : this.presentText;
1981
+ }
1982
+ const h = this.$refs.cascader.presentText;
1983
+ this.presentText.length === this.homePage.length && h === null && (this.$refs.cascader.presentText = this.presentText.join(" / ")), e(d);
1984
+ });
1985
+ },
1986
+ geData() {
1987
+ return q({}).then((s) => {
1988
+ if (s.success) {
1989
+ let e = s.data.map((r) => {
1990
+ let a = this.userInfo.apps.filter((d) => d.code == r.code)[0];
1991
+ if (a != null)
1992
+ return r.leaf = a == null, r.value = r.code, r.label = this.$i18nt(`Dynamics.${r.transkey}`, r.name), r.loading = !1, r;
1993
+ });
1994
+ return e = e.filter((r) => r !== void 0), this.options = [...e], this.listOptionsOld = JSON.stringify(e), new Promise((r) => {
1995
+ r();
1996
+ });
1997
+ }
1998
+ });
1999
+ },
2000
+ getMenuListAll(s) {
2001
+ return Promise.all([this.getMenuList({ application: s }), this.sysMenuChange({ application: s })]).then((e) => {
2002
+ let r = e[0].data, a = e[1].data;
2003
+ return r.map((d, h) => {
2004
+ let y = a.filter(($) => $.path == d.router);
2005
+ return r[h].value = d.router, r[h].label = this.$i18nt(`Dynamics.${d.transkey}`, d.name), r[h].leaf = d.children.length == 0, r[h].disabled = y.length == 0, d.children.length == 0 ? r[h].children = null : d.children.map(($, I) => {
2006
+ let A = a.filter((k) => k.path == $.router);
2007
+ r[h].children[I].value = $.router, r[h].children[I].label = this.$i18nt(`Dynamics.${$.transkey}`, $.name), r[h].children[I].children = [], r[h].children[I].leaf = !0, r[h].children[I].disabled = A.length == 0;
2008
+ }), d;
2009
+ }), r.map((d) => {
2010
+ d.children = d.children ? d.children.filter((h) => h.disabled == !1) : [];
2011
+ }), r;
2012
+ });
2013
+ },
2014
+ getMenuList(s) {
2015
+ return xe(s).then((e) => e);
2016
+ },
2017
+ sysMenuChange(s) {
2018
+ return Ce(s).then((e) => e);
2019
+ },
2020
+ onChangeCascader(s) {
2021
+ const e = this.$refs.cascader.presentText;
2022
+ this.presentText = e !== null ? e.split(" / ") : [];
2023
+ },
2024
+ onChange(s) {
2025
+ s ? this.$store.dispatch("ToggleTheme", "dark") : this.$store.dispatch("ToggleTheme", "light");
2026
+ },
2027
+ async changeColor(s) {
2028
+ const e = this, r = this.primaryColor;
2029
+ if (typeof s != "string")
2030
+ return;
2031
+ const a = this.$message({
2032
+ message: e.$i18nt("gd.theme.switchingTopics"),
2033
+ duration: 0,
2034
+ iconClass: "el-icon-loading"
2035
+ }), d = this.getThemeCluster(s.replace("#", "")), h = this.getThemeCluster(r.replace("#", "")), y = (A, k) => () => {
2036
+ const L = this.getThemeCluster(this.primaryColor.replace("#", "")), n = this.updateStyle(this[A], L, d);
2037
+ let t = document.getElementById(k);
2038
+ t || (t = document.createElement("style"), t.setAttribute("id", k), document.head.appendChild(t)), t.innerText = n;
2039
+ };
2040
+ this.chalk || await import("./element-theme-chalk.35b1f600.mjs").then((A) => {
2041
+ this.chalk = A.default;
2042
+ }), y("chalk", "chalk-style")(), [].slice.call(document.querySelectorAll("style")).filter((A) => {
2043
+ const k = A.innerText;
2044
+ return new RegExp(r, "i").test(k) && !/Chalk Variables/.test(k);
2045
+ }).forEach((A) => {
2046
+ const { innerText: k } = A;
2047
+ typeof k == "string" && (A.innerText = this.updateStyle(k, h, d));
2048
+ }), this.$store.dispatch("ToggleColor", s), window.document.body.style = `--color:${s}`, this.$nextTick(() => {
2049
+ setTimeout(() => {
2050
+ a.close();
2051
+ }, 200);
2052
+ });
2053
+ },
2054
+ updateStyle(s, e, r) {
2055
+ let a = s;
2056
+ return e.forEach((d, h) => {
2057
+ a = a.replace(new RegExp(d, "ig"), r[h]);
2058
+ }), a;
2059
+ },
2060
+ getThemeCluster(s) {
2061
+ const e = (d, h) => {
2062
+ let y = parseInt(d.slice(0, 2), 16), $ = parseInt(d.slice(2, 4), 16), I = parseInt(d.slice(4, 6), 16);
2063
+ return h === 0 ? [y, $, I].join(",") : (y += Math.round(h * (255 - y)), $ += Math.round(h * (255 - $)), I += Math.round(h * (255 - I)), y = y.toString(16), $ = $.toString(16), I = I.toString(16), `#${y}${$}${I}`);
2064
+ }, r = (d, h) => {
2065
+ let y = parseInt(d.slice(0, 2), 16), $ = parseInt(d.slice(2, 4), 16), I = parseInt(d.slice(4, 6), 16);
2066
+ return y = Math.round((1 - h) * y), $ = Math.round((1 - h) * $), I = Math.round((1 - h) * I), y = y.toString(16), $ = $.toString(16), I = I.toString(16), `#${y}${$}${I}`;
2067
+ }, a = [s];
2068
+ for (let d = 0; d <= 9; d++)
2069
+ a.push(e(s, Number((d / 10).toFixed(2))));
2070
+ return a.push(r(s, 0.1)), a;
2071
+ },
2072
+ traverse(s, e) {
2073
+ let r = null;
2074
+ const a = (d) => (d = d.filter((h, y) => (h.children && h.children.length > 0 && a(h.children), h.value == s && (r = {
2075
+ ...h
2076
+ }), !0)), d);
2077
+ return a(this.propOptions), r;
2078
+ }
2079
+ },
2080
+ mounted() {
2081
+ this.getColor(), this.init(), this.primaryColor && (this.primaryColors = this.primaryColor);
2082
+ }
2083
+ };
2084
+ var _e = function() {
2085
+ var e = this, r = e._self._c;
2086
+ return r("div", { staticStyle: { "padding-top": "12px" } }, [r("el-row", { attrs: { gutter: 20 } }, [r("el-col", { attrs: { span: 24 } }, [r("div", [e._v(e._s(e.$i18nt("gd.settings.overallStyle", "\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E")))])])], 1), r("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [r("el-col", { attrs: { span: 8 } }, [r("div", { staticClass: "grid-content strength", staticStyle: { color: "rgba(0, 0, 0, 0.45)" } }, [e._v(" " + e._s(e.$i18nt("gd.settings.overallStyleTip", "\u6574\u4F53\u98CE\u683C\u8BBE\u7F6E")) + " ")])]), r("el-col", { attrs: { span: 16 } }, [r("div", { staticClass: "grid-content paw grid-flex" }, [r("el-switch", { attrs: { "active-text": e.$i18nt("gd.settings.darkness", "\u767D\u8272"), "active-color": e.primaryColor, "inactive-text": e.$i18nt("gd.settings.white", "\u6697\u8272"), "active-value": 1, "inactive-value": 0 }, on: { change: e.onChange }, model: { value: e.value, callback: function(a) {
2087
+ e.value = a;
2088
+ }, expression: "value" } })], 1)])], 1), r("el-divider"), r("el-row", { attrs: { gutter: 20 } }, [r("el-col", { attrs: { span: 24 } }, [r("div", [e._v(e._s(e.$i18nt("gd.settings.theme", "\u4E3B\u9898\u8272")))])])], 1), r("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [r("el-col", { attrs: { span: 8 } }, [r("div", { staticClass: "grid-content strength", staticStyle: { color: "rgba(0, 0, 0, 0.45)" } }, [e._v(" " + e._s(e.$i18nt("gd.settings.themeTip", "\u9875\u9762\u4E3B\u9898\u914D\u8272")) + " ")])]), r("el-col", { attrs: { span: 16 } }, [r("div", { staticClass: "grid-content paw grid-flex" }, [r("el-color-picker", { ref: "colorPicker", staticClass: "theme-picker", attrs: { size: "small", predefine: e.predefine, "popper-class": "theme-picker-dropdown" }, on: { change: e.changeColor }, model: { value: e.primaryColors, callback: function(a) {
2089
+ e.primaryColors = a;
2090
+ }, expression: "primaryColors" } })], 1)])], 1), r("el-divider"), r("el-row", { attrs: { gutter: 20 } }, [r("el-col", { attrs: { span: 24 } }, [r("div", [e._v(e._s(e.$i18nt("gd.settings.echartsColor", "\u56FE\u8868\u8272")))])])], 1), r("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [r("el-col", { attrs: { span: 8 } }, [r("div", { staticClass: "grid-content strength", staticStyle: { color: "rgba(0, 0, 0, 0.45)" } }, [e._v(" " + e._s(e.$i18nt("gd.settings.echartsColorStyle", "\u56FE\u8868\u98CE\u683C\u914D\u8272")) + " ")])]), r("el-col", { attrs: { span: 16 } }, [r("div", { staticClass: "grid-flex" }, [e._l(e.echartsList, function(a, d) {
2091
+ return [r("el-tooltip", { staticClass: "setting-drawer-theme-color-colorBlock", attrs: { content: a === 0 ? e.$i18nt("gd.settings.followTheme", "\u8DDF\u968F\u7CFB\u7EDF\u4E3B\u9898\u8272") : a } }, [r("el-tag", { attrs: { color: a === 0 ? e.primaryColor : a } })], 1)];
2092
+ }), r("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: function(a) {
2093
+ return e.$refs.echartsTheme.open();
2094
+ } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")])], 2)])], 1), r("el-divider"), r("el-row", { attrs: { gutter: 20 } }, [r("el-col", { attrs: { span: 24 } }, [r("div", [e._v(e._s(e.$i18nt("gd.settings.homepage", "\u4E2A\u4EBA\u9996\u9875")))])])], 1), r("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [r("el-col", { attrs: { span: 8 } }, [r("div", { staticClass: "grid-content strength", staticStyle: { color: "rgba(0, 0, 0, 0.45)" } }, [e._v(" " + e._s(e.$i18nt("gd.settings.homepageTip", "\u914D\u7F6E\u540E\u7528\u6237\u767B\u5F55\u76F4\u63A5\u8FDB\u5165\u4E2A\u4EBA\u9996\u9875")) + " ")])]), r("el-col", { attrs: { span: 16 } }, [r("div", { staticClass: "grid-flex" }, [r("el-cascader", { ref: "cascader", staticStyle: { width: "240px" }, attrs: { clearable: "", props: { lazy: !0, lazyLoad: e.lazyLoad } }, on: { change: e.onChangeCascader }, model: { value: e.homePage, callback: function(a) {
2095
+ e.homePage = a;
2096
+ }, expression: "homePage" } }), r("span", { staticClass: "active-color", staticStyle: { "margin-left": "10px", cursor: "pointer" }, on: { click: e.renew } }, [e._v(" " + e._s(e.$i18nt("gd.btn.update", "\u66F4\u65B0")) + " ")])], 1)])], 1), r("el-divider"), r("gd-color-editor", { ref: "echartsTheme", on: { ok: e.okColor } })], 1);
2097
+ }, $e = [], Ie = /* @__PURE__ */ M(
2098
+ be,
2099
+ _e,
2100
+ $e,
2101
+ !1,
2102
+ null,
2103
+ "731b5c2d",
2104
+ null,
2105
+ null
2106
+ );
2107
+ const F = Ie.exports;
2108
+ F.install = function(s) {
2109
+ s.component(F.name, F);
2110
+ };
2111
+ const Se = {
2112
+ props: {
2113
+ isShow: {
2114
+ type: Boolean,
2115
+ default() {
2116
+ return !1;
2117
+ }
2118
+ }
2119
+ },
2120
+ data() {
2121
+ return {
2122
+ sysViewButtons: [
2123
+ {
2124
+ displayName: "\u786E\u5B9A",
2125
+ functionName: "handleSubmit",
2126
+ show: !0,
2127
+ transKey: "gd.btn.confirm",
2128
+ icon: "el-icon-document-checked"
2129
+ }
2130
+ ],
2131
+ confirmLoading: !1,
2132
+ visible: !1,
2133
+ userId: "",
2134
+ width: "600px",
2135
+ min: 0,
2136
+ messageTip: "",
2137
+ messageTipErr: "",
2138
+ lenMax: 0,
2139
+ lenMin: 0,
2140
+ maskValue: "",
2141
+ pattern: null,
2142
+ fullscreen: !1,
2143
+ disabled: !0,
2144
+ code: "",
2145
+ num: 0,
2146
+ ruleForm: {}
2147
+ };
2148
+ },
2149
+ computed: {
2150
+ modalStyle() {
2151
+ return this.fullscreen ? {
2152
+ width: "100%",
2153
+ dialogStyle: {
2154
+ top: "0px"
2155
+ }
2156
+ } : {
2157
+ width: this.width,
2158
+ dialogStyle: {
2159
+ top: "40px"
2160
+ }
2161
+ };
2162
+ },
2163
+ title() {
2164
+ return this.num == 1 ? this.$i18nt("gd.account.changePaw", "\u4FEE\u6539\u5BC6\u7801") : this.$i18nt("gd.account.userBinding", "\u7528\u6237\u7ED1\u5B9A");
2165
+ },
2166
+ ...W(["labelPosition"])
2167
+ },
2168
+ methods: {
2169
+ toggleFullscreen() {
2170
+ this.fullscreen = !this.fullscreen;
2171
+ },
2172
+ open(s, e, r) {
2173
+ this.fullscreen = !1, this.userId = s, this.code = e, this.num = r, this.num == 1 ? this.getConfigInfo() : this.$nextTick(() => {
2174
+ this.formUpdPwd.setFieldsValue({
2175
+ account: this.userId
2176
+ });
2177
+ }), this.visible = !0;
2178
+ },
2179
+ getConfigInfo(s) {
2180
+ re().then((e) => {
2181
+ this.min = parseInt(e.data.lengthrule.value), this.lenMin = parseInt(e.data.lengthrule.value), this.messageTip = e.data.lengthrule.remark, this.maskValue = e.data.combinationrule.value, this.lenMax = 16, this.maskValue.includes("AL") && this.maskValue.includes("NU") && this.maskValue.includes("SC") ? this.pattern = new RegExp(
2182
+ `^(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])(?=.*[~!@#$%^&*])[\\da-zA-Z~!@#$%^&*]{${this.lenMin},${this.lenMax}}$`
2183
+ ) : this.maskValue.includes("AL") && this.maskValue.includes("NU") ? this.pattern = new RegExp("(?=.*\\d)(?=.*?[a-z])(?=.*?[A-Z])") : this.maskValue.includes("AL") && this.maskValue.includes("SC") ? this.pattern = new RegExp("(?=.*[~!@#$%^&*])(?=.*?[a-z])(?=.*?[A-Z]))") : this.maskValue.includes("NU") && this.maskValue.includes("SC") ? this.pattern = new RegExp("(?=.*\\d)(?=.*[~!@#$%^&*])") : this.maskValue.includes("AL") ? this.pattern = new RegExp("^(?=.*?[a-z])(?=.*?[A-Z])") : this.maskValue.includes("NU") ? this.pattern = new RegExp("\\d") : this.maskValue.includes("SC") && (this.pattern = new RegExp("[^a-zA-Z0-9]")), this.messageTipErr = e.data.combinationrule.remark;
2184
+ });
2185
+ },
2186
+ handleSubmit() {
2187
+ this.$refs.ruleForm.validate((s) => {
2188
+ if (s) {
2189
+ this.confirmLoading = !0;
2190
+ let e;
2191
+ this.num == 1 ? e = {
2192
+ accountName: this.userId,
2193
+ passWord: this.ruleForm.password,
2194
+ newPassword: this.ruleForm.newPassword
2195
+ } : e = {
2196
+ account: this.ruleForm.account,
2197
+ password: this.ruleForm.password,
2198
+ corpCode: this.code
2199
+ }, (this.num == 1 ? se : ie)(e).then((a) => {
2200
+ a.success ? (this.$message.success(this.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.handleCancel()) : this.$message.error(this.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + a.message);
2201
+ }).finally((a) => {
2202
+ this.confirmLoading = !1;
2203
+ });
2204
+ }
2205
+ });
2206
+ },
2207
+ handleCancel() {
2208
+ this.$refs.ruleForm.resetFields(), this.visible = !1;
2209
+ },
2210
+ compareToFirstPassword(s, e, r) {
2211
+ e && e !== this.ruleForm.newPassword ? r(this.$i18nt("gd.account.repeatPawTiperr", " \u8BF7\u786E\u8BA4\u4E24\u6B21\u8F93\u5165\u5BC6\u7801\u7684\u4E00\u81F4\u6027")) : r();
2212
+ },
2213
+ oldtPassword(s, e, r) {
2214
+ e && e === this.ruleForm.password ? r(this.$i18nt("gd.account.repeatPawTipodl", "\u65B0\u5BC6\u7801\u4E0D\u80FD\u4E0E\u539F\u5BC6\u7801\u91CD\u590D")) : r();
2215
+ },
2216
+ doEvent(s) {
2217
+ let e = s.item.functionName;
2218
+ this[e] && this[e]();
2219
+ }
2220
+ }
2221
+ };
2222
+ var ke = function() {
2223
+ var e = this, r = e._self._c;
2224
+ return r("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.modalStyle.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(a) {
2225
+ e.visible = a;
2226
+ }, closed: e.handleCancel } }, [r("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0, closed: "handleCancel" }, on: { changeEvent: e.doEvent }, slot: "title" }), r("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], staticClass: "gd-model-body", class: e.fullscreen ? "modal-bodyq" : "modal-body", staticStyle: { margin: "10px 10px 10px" } }, [r("el-form", { ref: "ruleForm", attrs: { model: e.ruleForm, "label-width": "110px", "label-position": e.labelPosition }, nativeOn: { submit: function(a) {
2227
+ a.preventDefault();
2228
+ } } }, [e.num == 1 ? r("div", [r("el-form-item", { attrs: { label: e.$i18nt("gd.account.originalPaw", "\u539F\u5BC6\u7801"), prop: "password", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.input") }] } }, [r("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.password, callback: function(a) {
2229
+ e.$set(e.ruleForm, "password", a);
2230
+ }, expression: "ruleForm.password" } })], 1), r("el-form-item", { attrs: { label: e.$i18nt("gd.account.newPaw", "\u65B0\u5BC6\u7801"), prop: "newPassword", rules: [
2231
+ { required: !0, min: e.min, message: e.messageTip },
2232
+ {
2233
+ pattern: e.pattern,
2234
+ message: e.messageTipErr
2235
+ },
2236
+ { validator: e.oldtPassword }
2237
+ ] } }, [r("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.newPassword, callback: function(a) {
2238
+ e.$set(e.ruleForm, "newPassword", a);
2239
+ }, expression: "ruleForm.newPassword" } })], 1), r("el-form-item", { attrs: { label: e.$i18nt("gd.account.repeatPaw", "\u91CD\u590D\u65B0\u5BC6\u7801"), prop: "confirm", rules: [
2240
+ { required: !0, message: e.$i18nt("gd.account.repeatPawTip", "\u8BF7\u518D\u6B21\u8F93\u5165\u65B0\u5BC6\u7801") },
2241
+ { validator: e.compareToFirstPassword }
2242
+ ] } }, [r("el-input", { attrs: { maxlength: 18, "show-password": "", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.ruleForm.confirm, callback: function(a) {
2243
+ e.$set(e.ruleForm, "confirm", a);
2244
+ }, expression: "ruleForm.confirm" } })], 1)], 1) : r("div", [r("el-form-item", { attrs: { label: e.$i18nt("gd.account.loginID", "\u8D26\u53F7"), prop: "account", rules: [
2245
+ {
2246
+ required: !0,
2247
+ message: this.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165")
2248
+ }
2249
+ ] } }, [r("el-input", { attrs: { placeholder: e.$i18nt("gd.login.account", "\u8BF7\u8F93\u5165\u8D26\u53F7"), disabled: e.disabled }, model: { value: e.ruleForm.account, callback: function(a) {
2250
+ e.$set(e.ruleForm, "account", a);
2251
+ }, expression: "ruleForm.account" } })], 1), r("el-form-item", { attrs: { label: e.$i18nt("gd.login.password", "\u5BC6\u7801"), prop: "password", rules: [{ required: !0, message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }] } }, [r("el-input", { attrs: { maxlength: 18, placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), "show-password": "" }, model: { value: e.ruleForm.password, callback: function(a) {
2252
+ e.$set(e.ruleForm, "password", a);
2253
+ }, expression: "ruleForm.password" } })], 1)], 1)])], 1)], 1);
2254
+ }, Ae = [], Le = /* @__PURE__ */ M(
2255
+ Se,
2256
+ ke,
2257
+ Ae,
2258
+ !1,
2259
+ null,
2260
+ "a3f94a75",
2261
+ null,
2262
+ null
2263
+ );
2264
+ const z = Le.exports;
2265
+ const Te = {
2266
+ props: {
2267
+ isClear: {
2268
+ type: Number,
2269
+ default: 1
2270
+ }
2271
+ },
2272
+ components: {
2273
+ UpdPwd: z
2274
+ },
2275
+ data() {
2276
+ return {
2277
+ visible: !1,
2278
+ qrCodeUrl: "//login.work.weixin.qq.com/wwlogin/sso/qrcode?key=ae88c122560120a2",
2279
+ code: "",
2280
+ logTitle: "",
2281
+ num: 1,
2282
+ wwLogin: null,
2283
+ confirmLoading: !1,
2284
+ isInitialize: null,
2285
+ pwdExpiration: "",
2286
+ setDate: void 0,
2287
+ currentTime: void 0,
2288
+ diff: void 0,
2289
+ diffDate: void 0,
2290
+ state: "",
2291
+ isWeComLogin: !1,
2292
+ wxUserId: null,
2293
+ appId: "",
2294
+ agentId: "",
2295
+ redirectURL: "",
2296
+ titleWidth: "504px",
2297
+ num1: 0
2298
+ };
2299
+ },
2300
+ computed: {
2301
+ style() {
2302
+ return {
2303
+ "--color": this.primaryColor
2304
+ };
2305
+ },
2306
+ titleTip() {
2307
+ return this.num == 1 ? $i18nt("gd.account.loading") : "";
2308
+ },
2309
+ ...W(["userInfo", "language", "primaryColor"])
2310
+ },
2311
+ mounted() {
2312
+ },
2313
+ methods: {
2314
+ open(s, e) {
2315
+ this.num = e, this.visible = !0, this.titleWidth = this.language == "zh_CN" ? 350 + "px" : 504 + "px", this.num == 1 && this.getWeChat(s);
2316
+ },
2317
+ getWeChat(s) {
2318
+ let e = this;
2319
+ s.data.forEach((r, a) => {
2320
+ r.code == "GDS_ENTERPRISE_WECHAT_CropID" && (e.appId = r.value), r.code == "GDS_ENTERPRISE_WECHAT_AgentId" && (e.agentId = r.value), r.code == "GDS_ENTERPRISE_WECHAT_Redirect_URL" && (e.redirectURL = r.value);
2321
+ }), setTimeout(() => {
2322
+ e.wwLogin = ww.createWWLoginPanel({
2323
+ el: "#wx_qrcode",
2324
+ params: {
2325
+ login_type: "CorpApp",
2326
+ appid: e.appId,
2327
+ agentid: e.agentId,
2328
+ redirect_uri: e.redirectURL,
2329
+ state: "loginState",
2330
+ redirect_type: "callback",
2331
+ panel_size: e.language == "zh_CN" ? "small" : "middle",
2332
+ lang: e.language == "zh_CN" ? "zh" : "en"
2333
+ },
2334
+ onCheckWeComLogin({ isWeComLogin: r }) {
2335
+ e.isWeComLogin = r, e.num1 = e.isWeComLogin == !0 ? 1 : 0;
2336
+ },
2337
+ onLoginSuccess({ code: r }) {
2338
+ e.code = r, e.$refs.updPwd.open(e.userInfo.account, r, 2), e.visible = !1;
2339
+ },
2340
+ onLoginFail(r) {
2341
+ }
2342
+ });
2343
+ }, 500);
2344
+ },
2345
+ handleCancel() {
2346
+ this.confirmLoading = !1, this.visible = !1, this.$refs.wx_qrcode.innerHTML = "";
2347
+ }
2348
+ }
2349
+ };
2350
+ var Ee = function() {
2351
+ var e = this, r = e._self._c;
2352
+ return r("div", [r("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", attrs: { visible: e.visible, width: e.titleWidth, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px" }, on: { "update:visible": function(a) {
2353
+ e.visible = a;
2354
+ }, closed: e.handleCancel } }, [r("div", { staticClass: "main", style: e.style }, [e.num == 1 ? r("div", [r("div", { ref: "wx_qrcode", style: e.num1 == 0 ? "height: 290px;" : "height: 290px", attrs: { id: "wx_qrcode" } }), r("div", { class: e.num1 == 0 ? "div_top" : "div_topno" }), r("div", { class: e.num1 == 0 ? "div_bottom" : "" })]) : e._e()])]), r("upd-pwd", { ref: "updPwd" })], 1);
2355
+ }, Oe = [], Me = /* @__PURE__ */ M(
2356
+ Te,
2357
+ Ee,
2358
+ Oe,
2359
+ !1,
2360
+ null,
2361
+ "078e179f",
2362
+ null,
2363
+ null
2364
+ );
2365
+ const We = Me.exports;
2366
+ const He = {
2367
+ name: "GdSecuritySettings",
2368
+ components: {
2369
+ UpdPwd: z,
2370
+ weChatBind: We
2371
+ },
2372
+ data() {
2373
+ return {
2374
+ isShow: !1,
2375
+ num: 0,
2376
+ wxUserId: null,
2377
+ obj: {},
2378
+ appId: "",
2379
+ agentId: "",
2380
+ redirectURL: "",
2381
+ enterpriseNum: 0,
2382
+ bindTitle: "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1",
2383
+ dicsTitle: ""
2384
+ };
2385
+ },
2386
+ watch: {
2387
+ language(s, e) {
2388
+ this.changeLanguage();
2389
+ },
2390
+ userInfo(s, e) {
2391
+ this.changUserInfo();
2392
+ }
2393
+ },
2394
+ created() {
2395
+ this.init();
2396
+ },
2397
+ mounted() {
2398
+ },
2399
+ computed: {
2400
+ ...W(["userInfo", "language"])
2401
+ },
2402
+ methods: {
2403
+ updPwd() {
2404
+ this.$refs.updPwd.open(this.userInfo.account, null, 1);
2405
+ },
2406
+ bind() {
2407
+ this.$refs.weChatBind.open(this.obj, 1);
2408
+ },
2409
+ getConfigInfo() {
2410
+ oe({
2411
+ code: "GDS_ENTERPRISE_WECHAT_LOGIN"
2412
+ }).then((e) => {
2413
+ this.enterpriseNum = e.data.value;
2414
+ });
2415
+ },
2416
+ getConfigsBy() {
2417
+ ae({
2418
+ strCodes: "GDS_ENTERPRISE_WECHAT_CropID,GDS_ENTERPRISE_WECHAT_AgentId,GDS_ENTERPRISE_WECHAT_Redirect_URL"
2419
+ }).then((e) => {
2420
+ e.success && (this.obj = e);
2421
+ });
2422
+ },
2423
+ getData() {
2424
+ G().then((s) => {
2425
+ this.wxuserid = s.data.wxuserid;
2426
+ });
2427
+ },
2428
+ changeLanguage() {
2429
+ this.init();
2430
+ },
2431
+ changUserInfo() {
2432
+ this.init();
2433
+ },
2434
+ init() {
2435
+ this.wxuserid = this.userInfo.wxuserid, this.getConfigInfo(), this.getData(), this.getConfigsBy();
2436
+ },
2437
+ getWeChat(s, e) {
2438
+ let r = this;
2439
+ s.data.forEach((a, d) => {
2440
+ a.code == "GDS_ENTERPRISE_WECHAT_CropID" && (r.appId = a.value), a.code == "GDS_ENTERPRISE_WECHAT_AgentId" && (r.agentId = a.value), a.code == "GDS_ENTERPRISE_WECHAT_Redirect_URL" && (r.redirectURL = a.value);
2441
+ }), setTimeout(() => {
2442
+ r.wwLogin = ww.createWWLoginPanel({
2443
+ el: "#wx_qrcode",
2444
+ params: {
2445
+ login_type: "CorpApp",
2446
+ appid: r.appId,
2447
+ agentid: r.agentId,
2448
+ redirect_uri: r.redirectURL,
2449
+ state: "loginState",
2450
+ redirect_type: "callback",
2451
+ panel_size: "middle",
2452
+ lang: e == "zh_CN" ? "zh" : "en"
2453
+ },
2454
+ onCheckWeComLogin({ isWeComLogin: a }) {
2455
+ console.log(a);
2456
+ },
2457
+ onLoginSuccess({ code: a }) {
2458
+ r.code = a, r.$refs.updPwd.open(r.userInfo.account, a, 2), console.log(a);
2459
+ },
2460
+ onLoginFail(a) {
2461
+ }
2462
+ });
2463
+ }, 500);
2464
+ },
2465
+ bindCode(s) {
2466
+ s == 1 || s == 0 ? this.getData() : s == -1 ? this.getConfigsBy() : s == 2 && this.getConfigsBy();
2467
+ }
2468
+ }
2469
+ };
2470
+ var Ue = function() {
2471
+ var e = this, r = e._self._c;
2472
+ return r("div", { staticStyle: { "padding-top": "12px" } }, [r("el-row", { attrs: { gutter: 20 } }, [r("el-col", { attrs: { span: 24 } }, [r("div", { staticClass: "grid-content bg-purple" }, [e._v(" " + e._s(e.$i18nt("gd.account.passWord", "\u8D26\u6237\u5BC6\u7801")) + " ")])])], 1), r("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [r("el-col", { attrs: { span: 8 } }, [r("div", { staticClass: "grid-content strength", staticStyle: { color: "rgba(0, 0, 0, .45)" } }, [e._v(" " + e._s(e.$i18nt("gd.account.strength", "\u5F53\u524D\u5BC6\u7801\u5F3A\u5EA6")) + ":" + e._s(e.$i18nt("gd.account.strong", "\u5F3A")) + " ")])]), r("el-col", { attrs: { span: 16 } }, [r("div", { staticClass: "grid-content paw grid-flex" }, [r("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: e.updPwd } }, [e._v(" " + e._s(e.$i18nt("gd.account.changePaw", "\u4FEE\u6539\u5BC6\u7801")) + " ")])])])], 1), r("el-divider"), r("el-row", { attrs: { gutter: 20 } }, [r("el-col", { attrs: { span: 24 } }, [r("div", { staticClass: "grid-content bd", staticStyle: { color: "rgba(0, 0, 0, .45)" } }, [e._v(" " + e._s(e.$i18nt("gd.account.bindenterpriseWechat", "\u7ED1\u5B9A\u4F01\u4E1A\u5FAE\u4FE1")) + " ")])])], 1), r("el-row", { staticStyle: { "margin-top": "6px" }, attrs: { gutter: 20 } }, [r("el-col", { attrs: { span: 8 } }, [r("div", { staticClass: "grid-content state" }, [e._v(" " + e._s(e.$i18nt("gd.account.currentState", "\u5F53\u524D\u72B6\u6001")) + ":" + e._s(e.wxUserId == null || e.wxUserId == "" ? e.$i18nt("gd.state.no", "\u5426") : e.$i18nt("gd.state.yes", "\u662F")) + " ")])]), e.wxUserId == null || e.wxUserId == "" ? r("el-col", { attrs: { span: 16 } }, [r("div", { staticClass: "grid-content paw grid-flex" }, [r("span", { staticClass: "active-color", staticStyle: { cursor: "pointer" }, on: { click: e.bind } }, [e._v(e._s(e.$i18nt("gd.account.bind", "\u7ED1\u5B9A")))])])]) : e._e()], 1), r("upd-pwd", { ref: "updPwd", attrs: { isShow: e.isShow }, on: { bindCode: e.bindCode } }), r("weChatBind", { ref: "weChatBind", on: { bindCode: e.bindCode } })], 1);
2473
+ }, Pe = [], Fe = /* @__PURE__ */ M(
2474
+ He,
2475
+ Ue,
2476
+ Pe,
2477
+ !1,
2478
+ null,
2479
+ "6ac33441",
2480
+ null,
2481
+ null
2482
+ );
2483
+ const B = Fe.exports;
2484
+ B.install = function(s) {
2485
+ s.component(B.name, B);
2486
+ };
2487
+ export {
2488
+ ze as A,
2489
+ Y as B,
2490
+ xt as C,
2491
+ P as D,
2492
+ B as E,
2493
+ F,
2494
+ U as G,
2495
+ Ct as H,
2496
+ _t as I,
2497
+ $t as J,
2498
+ Je as K,
2499
+ bt as L,
2500
+ Ze as M,
2501
+ qe as N,
2502
+ Ke as O,
2503
+ dt as P,
2504
+ se as Q,
2505
+ lt as R,
2506
+ It as S,
2507
+ ht as T,
2508
+ pt as U,
2509
+ ae as V,
2510
+ nt as a,
2511
+ St as b,
2512
+ wt as c,
2513
+ vt as d,
2514
+ rt as e,
2515
+ gt as f,
2516
+ ft as g,
2517
+ yt as h,
2518
+ ut as i,
2519
+ Qe as j,
2520
+ ct as k,
2521
+ at as l,
2522
+ st as m,
2523
+ oe as n,
2524
+ re as o,
2525
+ mt as p,
2526
+ tt as q,
2527
+ et as r,
2528
+ it as s,
2529
+ ot as t,
2530
+ Ye as u,
2531
+ Ge as v,
2532
+ Ve as w,
2533
+ Ne as x,
2534
+ je as y,
2535
+ De as z
2536
+ };