gds-plus-design-vue 1.1.63 → 1.1.71

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