yc-vep-ui 0.3.32 → 0.3.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{entry-Dat2GpzA.js → entry-BjSI8IPH.js} +475 -476
- package/dist/hooks/index.js +2 -2
- package/dist/vep-ui.js +2 -2
- package/package.json +1 -1
|
@@ -45,14 +45,7 @@ var le = Object.defineProperty, L = (e, t) => {
|
|
|
45
45
|
let n = e.__vccOpts || e;
|
|
46
46
|
for (let [e, r] of t) n[e] = r;
|
|
47
47
|
return n;
|
|
48
|
-
}, fe = /* @__PURE__ */ L({ default: () => pe }), pe = /* @__PURE__ */ R(de, [["__scopeId", "data-v-6ebb01d7"]])
|
|
49
|
-
//#endregion
|
|
50
|
-
//#region src/components/utils/components.ts
|
|
51
|
-
function me() {
|
|
52
|
-
let e = Ui();
|
|
53
|
-
return console.log("[Debug getMessage]", e ? "found" : "null", e), e;
|
|
54
|
-
}
|
|
55
|
-
var z = {
|
|
48
|
+
}, fe = /* @__PURE__ */ L({ default: () => pe }), pe = /* @__PURE__ */ R(de, [["__scopeId", "data-v-6ebb01d7"]]), z = {
|
|
56
49
|
get Button() {
|
|
57
50
|
return $()?.resolveComponent?.("el-button") || "el-button";
|
|
58
51
|
},
|
|
@@ -138,7 +131,7 @@ var z = {
|
|
|
138
131
|
return $()?.resolveComponent?.("el-descriptions-item") || "el-descriptions-item";
|
|
139
132
|
},
|
|
140
133
|
get Message() {
|
|
141
|
-
return
|
|
134
|
+
return Hi() || {
|
|
142
135
|
error: (e) => console.error("[Message.error]", e),
|
|
143
136
|
success: (e) => console.log("[Message.success]", e),
|
|
144
137
|
warning: (e) => console.warn("[Message.warning]", e)
|
|
@@ -153,7 +146,7 @@ function B() {
|
|
|
153
146
|
return console.warn("[yc-vep-ui] Vue not initialized. Call setHostVue(Vue) before using components."), null;
|
|
154
147
|
};
|
|
155
148
|
}
|
|
156
|
-
function
|
|
149
|
+
function me(e) {
|
|
157
150
|
let t = B();
|
|
158
151
|
return t ? t("div", { style: {
|
|
159
152
|
display: "flex",
|
|
@@ -170,7 +163,7 @@ function he(e) {
|
|
|
170
163
|
}, () => n);
|
|
171
164
|
})) : null;
|
|
172
165
|
}
|
|
173
|
-
function
|
|
166
|
+
function he(e) {
|
|
174
167
|
let t = B();
|
|
175
168
|
return t ? Array.isArray(e) ? t("div", { style: {
|
|
176
169
|
display: "flex",
|
|
@@ -191,7 +184,7 @@ function ge(e) {
|
|
|
191
184
|
type: e.type || "primary"
|
|
192
185
|
}, () => e.prop)) : null;
|
|
193
186
|
}
|
|
194
|
-
function
|
|
187
|
+
function ge(e) {
|
|
195
188
|
let t = B();
|
|
196
189
|
return t ? t("div", { style: {
|
|
197
190
|
display: "flex",
|
|
@@ -200,11 +193,11 @@ function _e(e) {
|
|
|
200
193
|
flexWrap: "wrap"
|
|
201
194
|
} }, (Array.isArray(e.prop) ? e.prop : [e.prop]).map((n) => t(z.Tag, e, () => n))) : null;
|
|
202
195
|
}
|
|
203
|
-
function
|
|
196
|
+
function _e(e) {
|
|
204
197
|
let t = B();
|
|
205
198
|
return t ? t(z.Tag, { ...e }) : null;
|
|
206
199
|
}
|
|
207
|
-
function
|
|
200
|
+
function ve(e) {
|
|
208
201
|
let t = B();
|
|
209
202
|
return t ? t(z.Select, {
|
|
210
203
|
style: { minWidth: "160px" },
|
|
@@ -213,7 +206,7 @@ function ye(e) {
|
|
|
213
206
|
filterable: !0
|
|
214
207
|
}) : null;
|
|
215
208
|
}
|
|
216
|
-
function
|
|
209
|
+
function ye(e) {
|
|
217
210
|
let t = B();
|
|
218
211
|
if (!t) return null;
|
|
219
212
|
let n = e?.type === "datetime" ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD";
|
|
@@ -227,7 +220,7 @@ function be(e) {
|
|
|
227
220
|
"onUpdate:modelValue": (t) => e?.onChange?.(t)
|
|
228
221
|
});
|
|
229
222
|
}
|
|
230
|
-
function
|
|
223
|
+
function be(e) {
|
|
231
224
|
let t = B();
|
|
232
225
|
if (!t) return null;
|
|
233
226
|
let { start: n = "00:00", end: r = "23:30", ...i } = e;
|
|
@@ -239,14 +232,14 @@ function xe(e) {
|
|
|
239
232
|
filterable: !0
|
|
240
233
|
});
|
|
241
234
|
}
|
|
242
|
-
function
|
|
235
|
+
function xe(e) {
|
|
243
236
|
let t = B();
|
|
244
237
|
return t ? t(z.Input, {
|
|
245
238
|
...e,
|
|
246
239
|
placeholder: "请输入"
|
|
247
240
|
}) : null;
|
|
248
241
|
}
|
|
249
|
-
function
|
|
242
|
+
function Se(e) {
|
|
250
243
|
let t = B();
|
|
251
244
|
if (!t) return null;
|
|
252
245
|
let { align: n = "left", controlsPosition: r = "right", ...i } = e, a = {
|
|
@@ -261,7 +254,7 @@ function Ce(e) {
|
|
|
261
254
|
...i
|
|
262
255
|
});
|
|
263
256
|
}
|
|
264
|
-
function
|
|
257
|
+
function Ce(e) {
|
|
265
258
|
let t = B();
|
|
266
259
|
if (!t) return null;
|
|
267
260
|
let { rows: n = 1, ...r } = e;
|
|
@@ -272,7 +265,7 @@ function we(e) {
|
|
|
272
265
|
type: "textarea"
|
|
273
266
|
});
|
|
274
267
|
}
|
|
275
|
-
function
|
|
268
|
+
function we(e) {
|
|
276
269
|
let t = B();
|
|
277
270
|
return t ? t(z.InputTag, {
|
|
278
271
|
placeholder: "请输入",
|
|
@@ -280,48 +273,48 @@ function Te(e) {
|
|
|
280
273
|
clearable: !1
|
|
281
274
|
}) : null;
|
|
282
275
|
}
|
|
283
|
-
function
|
|
276
|
+
function Te(e) {
|
|
284
277
|
let t = B();
|
|
285
|
-
return t ? t(
|
|
278
|
+
return t ? t(Bt || zt, e) : null;
|
|
286
279
|
}
|
|
287
|
-
function
|
|
280
|
+
function Ee(e) {
|
|
288
281
|
let t = B();
|
|
289
282
|
return t ? t(z.RadioGroup, e) : null;
|
|
290
283
|
}
|
|
291
|
-
function
|
|
284
|
+
function De(e) {
|
|
292
285
|
let t = B();
|
|
293
286
|
return t ? t(z.Text, e, () => typeof e == "string" ? e : e.prop ?? "") : null;
|
|
294
287
|
}
|
|
295
|
-
function
|
|
288
|
+
function Oe(e) {
|
|
296
289
|
let t = B();
|
|
297
|
-
return t ? t(
|
|
290
|
+
return t ? t(On || Dn, {
|
|
298
291
|
placeholder: "请选择",
|
|
299
292
|
...e,
|
|
300
293
|
searchable: !0
|
|
301
294
|
}) : null;
|
|
302
295
|
}
|
|
303
|
-
function
|
|
296
|
+
function ke(e) {
|
|
304
297
|
let t = B();
|
|
305
|
-
return t ? t(
|
|
298
|
+
return t ? t(Pn || Nn, e) : null;
|
|
306
299
|
}
|
|
307
|
-
var
|
|
308
|
-
button:
|
|
309
|
-
link:
|
|
310
|
-
tag:
|
|
311
|
-
switch:
|
|
312
|
-
select:
|
|
313
|
-
datePicker:
|
|
314
|
-
timeSelect:
|
|
315
|
-
input:
|
|
316
|
-
inputNumber:
|
|
317
|
-
textarea:
|
|
318
|
-
inputTag:
|
|
319
|
-
editor:
|
|
320
|
-
radio:
|
|
321
|
-
text:
|
|
322
|
-
staffSelect:
|
|
323
|
-
upload:
|
|
324
|
-
},
|
|
300
|
+
var Ae = {
|
|
301
|
+
button: me,
|
|
302
|
+
link: he,
|
|
303
|
+
tag: ge,
|
|
304
|
+
switch: _e,
|
|
305
|
+
select: ve,
|
|
306
|
+
datePicker: ye,
|
|
307
|
+
timeSelect: be,
|
|
308
|
+
input: xe,
|
|
309
|
+
inputNumber: Se,
|
|
310
|
+
textarea: Ce,
|
|
311
|
+
inputTag: we,
|
|
312
|
+
editor: Te,
|
|
313
|
+
radio: Ee,
|
|
314
|
+
text: De,
|
|
315
|
+
staffSelect: Oe,
|
|
316
|
+
upload: ke
|
|
317
|
+
}, je = /* @__PURE__ */ u({
|
|
325
318
|
name: "UiColumn",
|
|
326
319
|
__name: "UiColumn",
|
|
327
320
|
props: {
|
|
@@ -336,7 +329,7 @@ var je = {
|
|
|
336
329
|
let a = r, o = t;
|
|
337
330
|
function s(e, t, n) {
|
|
338
331
|
let r = {};
|
|
339
|
-
Object.keys(
|
|
332
|
+
Object.keys(Ae).forEach((i) => {
|
|
340
333
|
let o = i;
|
|
341
334
|
r[o] = (r) => {
|
|
342
335
|
let i = Array.isArray(r) ? r : {
|
|
@@ -348,7 +341,7 @@ var je = {
|
|
|
348
341
|
onChange: r?.onChange || ((e) => a("update:data", t, n.prop, e)),
|
|
349
342
|
onInput: r?.onInput || ((e) => a("update:data", t, n.prop, e))
|
|
350
343
|
};
|
|
351
|
-
return
|
|
344
|
+
return Ae[o](i);
|
|
352
345
|
};
|
|
353
346
|
});
|
|
354
347
|
let i = n.render ? n.render({
|
|
@@ -406,7 +399,7 @@ var je = {
|
|
|
406
399
|
]));
|
|
407
400
|
};
|
|
408
401
|
}
|
|
409
|
-
}),
|
|
402
|
+
}), Me = /* @__PURE__ */ u({
|
|
410
403
|
__name: "index",
|
|
411
404
|
props: {
|
|
412
405
|
loading: {
|
|
@@ -497,7 +490,7 @@ var je = {
|
|
|
497
490
|
"column-key": "index_1",
|
|
498
491
|
align: a.align
|
|
499
492
|
}, null, 8, ["align"])) : r("", !0),
|
|
500
|
-
(S(!0), i(e, null, T(p.value, (e, t) => (S(), n(
|
|
493
|
+
(S(!0), i(e, null, T(p.value, (e, t) => (S(), n(je, {
|
|
501
494
|
key: t + "column_" + e?.prop?.toString(),
|
|
502
495
|
column: e,
|
|
503
496
|
data: a.data,
|
|
@@ -541,7 +534,7 @@ var je = {
|
|
|
541
534
|
]);
|
|
542
535
|
};
|
|
543
536
|
}
|
|
544
|
-
}),
|
|
537
|
+
}), Ne = /* @__PURE__ */ L({ default: () => Pe }), Pe = /* @__PURE__ */ R(Me, [["__scopeId", "data-v-adf869c1"]]), Fe = ["src"], Ie = /* @__PURE__ */ u({
|
|
545
538
|
__name: "Icon",
|
|
546
539
|
props: {
|
|
547
540
|
name: {},
|
|
@@ -559,9 +552,9 @@ var je = {
|
|
|
559
552
|
width: e.size,
|
|
560
553
|
height: e.size
|
|
561
554
|
})
|
|
562
|
-
}, null, 12,
|
|
555
|
+
}, null, 12, Fe)) : r("", !0);
|
|
563
556
|
}
|
|
564
|
-
}),
|
|
557
|
+
}), Le = {
|
|
565
558
|
style: {
|
|
566
559
|
width: "100%",
|
|
567
560
|
height: "100%"
|
|
@@ -572,30 +565,30 @@ var je = {
|
|
|
572
565
|
version: "1.1",
|
|
573
566
|
xmlns: "http://www.w3.org/2000/svg",
|
|
574
567
|
"p-id": "8979"
|
|
575
|
-
},
|
|
568
|
+
}, Re = /* @__PURE__ */ u({
|
|
576
569
|
__name: "Search",
|
|
577
570
|
setup(e) {
|
|
578
|
-
return (e, t) => (S(), i("svg",
|
|
571
|
+
return (e, t) => (S(), i("svg", Le, [...t[0] ||= [a("path", {
|
|
579
572
|
d: "M896 870.4l-128-128c55.467-68.267 89.6-149.333 89.6-238.933 0-98.134-38.4-192-110.933-264.534-149.334-149.333-384-149.333-533.334-4.266-145.066 145.066-145.066 384 0 529.066 72.534 72.534 166.4 110.934 264.534 110.934 89.6 0 174.933-29.867 238.933-89.6l128 128c4.267 4.266 12.8 8.533 21.333 8.533s17.067-4.267 21.334-8.533c17.066-8.534 17.066-29.867 8.533-42.667zM260.267 721.067c-119.467-123.734-119.467-320 0-439.467 59.733-59.733 140.8-89.6 217.6-89.6 81.066 0 157.866 29.867 217.6 89.6 59.733 59.733 89.6 136.533 89.6 217.6 0 81.067-34.134 162.133-89.6 217.6-55.467 59.733-132.267 93.867-217.6 93.867-81.067 0-157.867-34.134-217.6-89.6z",
|
|
580
573
|
"p-id": "8980"
|
|
581
574
|
}, null, -1)]]));
|
|
582
575
|
}
|
|
583
|
-
}),
|
|
576
|
+
}), ze = {
|
|
584
577
|
style: {
|
|
585
578
|
width: "100%",
|
|
586
579
|
height: "100%"
|
|
587
580
|
},
|
|
588
581
|
viewBox: "0 0 1024 1024",
|
|
589
582
|
xmlns: "http://www.w3.org/2000/svg"
|
|
590
|
-
},
|
|
583
|
+
}, Be = /* @__PURE__ */ u({
|
|
591
584
|
__name: "CloseBold",
|
|
592
585
|
setup(e) {
|
|
593
|
-
return (e, t) => (S(), i("svg",
|
|
586
|
+
return (e, t) => (S(), i("svg", ze, [...t[0] ||= [a("path", {
|
|
594
587
|
d: "M512 476.25l256-256 33.75 33.75-256 256 256 256-33.75 33.75-256-256-256 256-33.75-33.75 256-256-256-256L256 220.25l256 256z",
|
|
595
588
|
fill: "currentColor"
|
|
596
589
|
}, null, -1)]]));
|
|
597
590
|
}
|
|
598
|
-
}),
|
|
591
|
+
}), Ve = {
|
|
599
592
|
style: {
|
|
600
593
|
width: "100%",
|
|
601
594
|
height: "100%"
|
|
@@ -606,10 +599,10 @@ var je = {
|
|
|
606
599
|
version: "1.1",
|
|
607
600
|
xmlns: "http://www.w3.org/2000/svg",
|
|
608
601
|
"p-id": "10092"
|
|
609
|
-
},
|
|
602
|
+
}, He = /* @__PURE__ */ u({
|
|
610
603
|
__name: "User",
|
|
611
604
|
setup(e) {
|
|
612
|
-
return (e, t) => (S(), i("svg",
|
|
605
|
+
return (e, t) => (S(), i("svg", Ve, [...t[0] ||= [a("path", {
|
|
613
606
|
d: "M512 512c141.385 0 256-114.615 256-256S653.385 0 512 0 256 114.615 256 256s114.615 256 256 256zM366.336 110.336C405.244 71.428 456.976 50 512 50s106.756 21.428 145.664 60.336S718 200.976 718 256s-21.428 106.756-60.336 145.664S567.024 462 512 462s-106.756-21.428-145.664-60.336S306 311.024 306 256s21.428-106.756 60.336-145.664z",
|
|
614
607
|
fill: "#999999",
|
|
615
608
|
"p-id": "10093"
|
|
@@ -619,7 +612,7 @@ var je = {
|
|
|
619
612
|
"p-id": "10094"
|
|
620
613
|
}, null, -1)]]));
|
|
621
614
|
}
|
|
622
|
-
}),
|
|
615
|
+
}), Ue = {
|
|
623
616
|
style: {
|
|
624
617
|
width: "100%",
|
|
625
618
|
height: "100%"
|
|
@@ -630,16 +623,16 @@ var je = {
|
|
|
630
623
|
version: "1.1",
|
|
631
624
|
xmlns: "http://www.w3.org/2000/svg",
|
|
632
625
|
"p-id": "11055"
|
|
633
|
-
},
|
|
626
|
+
}, We = /* @__PURE__ */ u({
|
|
634
627
|
__name: "Plus",
|
|
635
628
|
setup(e) {
|
|
636
|
-
return (e, t) => (S(), i("svg",
|
|
629
|
+
return (e, t) => (S(), i("svg", Ue, [...t[0] ||= [a("path", {
|
|
637
630
|
d: "M489.244444 489.244444v295.822223c0 18.850702-15.282631 34.133333-34.133333 34.133333s-34.133333-15.282631-34.133333-34.133333v-295.822223h-295.822222c-18.850702 0-34.133333-15.282631-34.133334-34.133333s15.282631-34.133333 34.133334-34.133333h295.822222v-295.822222c0-18.850702 15.282631-34.133333 34.133333-34.133334s34.133333 15.282631 34.133333 34.133334v295.822222h295.822223c18.850702 0 34.133333 15.282631 34.133333 34.133333s-15.282631 34.133333-34.133333 34.133333h-295.822223z",
|
|
638
631
|
fill: "#323233",
|
|
639
632
|
"p-id": "11056"
|
|
640
633
|
}, null, -1)]]));
|
|
641
634
|
}
|
|
642
|
-
}),
|
|
635
|
+
}), Ge = {}, Ke = {
|
|
643
636
|
style: {
|
|
644
637
|
width: "100%",
|
|
645
638
|
height: "100%"
|
|
@@ -651,14 +644,14 @@ var je = {
|
|
|
651
644
|
xmlns: "http://www.w3.org/2000/svg",
|
|
652
645
|
"p-id": "4859"
|
|
653
646
|
};
|
|
654
|
-
function
|
|
655
|
-
return S(), i("svg",
|
|
647
|
+
function qe(e, t) {
|
|
648
|
+
return S(), i("svg", Ke, [...t[0] ||= [a("path", {
|
|
656
649
|
d: "M731.733333 480l-384-341.333333c-17.066667-14.933333-44.8-14.933333-59.733333 4.266666-14.933333 17.066667-14.933333 44.8 4.266667 59.733334L640 512 292.266667 821.333333c-17.066667 14.933333-19.2 42.666667-4.266667 59.733334 8.533333 8.533333 19.2 14.933333 32 14.933333 10.666667 0 19.2-4.266667 27.733333-10.666667l384-341.333333c8.533333-8.533333 14.933333-19.2 14.933334-32s-4.266667-23.466667-14.933334-32z",
|
|
657
650
|
fill: "#666666",
|
|
658
651
|
"p-id": "4860"
|
|
659
652
|
}, null, -1)]]);
|
|
660
653
|
}
|
|
661
|
-
var
|
|
654
|
+
var Je = /* @__PURE__ */ R(Ge, [["render", qe]]), Ye = {}, Xe = {
|
|
662
655
|
style: {
|
|
663
656
|
width: "100%",
|
|
664
657
|
height: "100%"
|
|
@@ -670,13 +663,13 @@ var Ye = /* @__PURE__ */ R(Ke, [["render", Je]]), Xe = {}, Ze = {
|
|
|
670
663
|
xmlns: "http://www.w3.org/2000/svg",
|
|
671
664
|
"p-id": "6029"
|
|
672
665
|
};
|
|
673
|
-
function
|
|
674
|
-
return S(), i("svg",
|
|
666
|
+
function Ze(e, t) {
|
|
667
|
+
return S(), i("svg", Xe, [...t[0] ||= [a("path", {
|
|
675
668
|
d: "M897.96 728.3c-18.8 18.8-49.1 18.801-67.901 0l-318-318-318 318c-18.8 18.8-49.2 18.8-67.901 0-18.8-18.8-18.801-49.1 0-67.901l352-352c18.8-18.8 49.2-18.8 67.901 0l352 352c9.4 9.4 14 21.7 14 34-0.1 12.2-4.7 24.501-14.1 33.9z",
|
|
676
669
|
"p-id": "6030"
|
|
677
670
|
}, null, -1)]]);
|
|
678
671
|
}
|
|
679
|
-
var
|
|
672
|
+
var Qe = /* @__PURE__ */ R(Ye, [["render", Ze]]), $e = {}, et = {
|
|
680
673
|
style: {
|
|
681
674
|
width: "100%",
|
|
682
675
|
height: "100%"
|
|
@@ -688,8 +681,8 @@ var $e = /* @__PURE__ */ R(Xe, [["render", Qe]]), et = {}, tt = {
|
|
|
688
681
|
xmlns: "http://www.w3.org/2000/svg",
|
|
689
682
|
"p-id": "6997"
|
|
690
683
|
};
|
|
691
|
-
function
|
|
692
|
-
return S(), i("svg",
|
|
684
|
+
function tt(e, t) {
|
|
685
|
+
return S(), i("svg", et, [...t[0] ||= [a("path", {
|
|
693
686
|
d: "M512.34133333 931.38488889c-49.94844445 0-98.87288889-8.64711111-145.29422222-25.82755556-44.94222222-16.61155555-86.35733333-40.61866667-123.22133333-71.45244444-74.29688889-61.89511111-125.15555555-148.02488889-143.24622223-242.34666667l71.45244445-13.76711111c31.28888889 162.58844445 174.42133333 280.576 340.30933333 280.576 70.08711111 0 137.55733333-20.82133333 195.12888889-60.07466666 56.32-38.45688889 99.66933333-91.93244445 125.49688889-154.73777778l67.35644444 27.648c-31.28888889 76.00355555-83.74044445 140.74311111-151.77955555 187.16444444-69.85955555 47.67288889-151.43822222 72.81777778-236.20266667 72.81777778zM846.848 421.43288889C827.392 349.29777778 783.92888889 284.33066667 724.65066667 238.13688889c-61.21244445-47.55911111-134.59911111-72.704-212.30933334-72.704-69.97333333 0-137.44355555 20.70755555-194.90133333 59.96088889-56.32 38.57066667-99.78311111 91.93244445-125.61066667 154.624l-67.35644444-27.76177778c31.28888889-75.88977778 83.74044445-140.40177778 151.77955556-186.82311111 69.74577778-47.55911111 151.32444445-72.704 235.9751111-72.704 47.33155555 0 93.86666667 7.85066667 138.12622223 23.32444444 42.89422222 14.90488889 82.83022222 36.75022222 118.784 64.62577778 35.61244445 27.648 66.33244445 60.64355555 91.47733333 98.07644444 25.48622222 38.00177778 44.48711111 79.64444445 56.32 123.67644445l-70.08711111 19.00088889z",
|
|
694
687
|
"p-id": "6998"
|
|
695
688
|
}, null, -1), a("path", {
|
|
@@ -697,7 +690,7 @@ function nt(e, t) {
|
|
|
697
690
|
"p-id": "6999"
|
|
698
691
|
}, null, -1)]]);
|
|
699
692
|
}
|
|
700
|
-
var
|
|
693
|
+
var nt = /* @__PURE__ */ R($e, [["render", tt]]), rt = {}, it = {
|
|
701
694
|
style: {
|
|
702
695
|
width: "100%",
|
|
703
696
|
height: "100%"
|
|
@@ -709,13 +702,13 @@ var rt = /* @__PURE__ */ R(et, [["render", nt]]), it = {}, at = {
|
|
|
709
702
|
xmlns: "http://www.w3.org/2000/svg",
|
|
710
703
|
"p-id": "9850"
|
|
711
704
|
};
|
|
712
|
-
function
|
|
713
|
-
return S(), i("svg",
|
|
705
|
+
function at(e, t) {
|
|
706
|
+
return S(), i("svg", it, [...t[0] ||= [a("path", {
|
|
714
707
|
d: "M64 448l832-320-128 704-446.016-243.008L832 192 243.008 544.96 64 448z m256 512v-303.04L512 768l-192 192z",
|
|
715
708
|
"p-id": "9851"
|
|
716
709
|
}, null, -1)]]);
|
|
717
710
|
}
|
|
718
|
-
var
|
|
711
|
+
var ot = /* @__PURE__ */ R(rt, [["render", at]]), st = {}, ct = {
|
|
719
712
|
style: {
|
|
720
713
|
width: "100%",
|
|
721
714
|
height: "100%"
|
|
@@ -727,13 +720,13 @@ var st = /* @__PURE__ */ R(it, [["render", ot]]), ct = {}, lt = {
|
|
|
727
720
|
xmlns: "http://www.w3.org/2000/svg",
|
|
728
721
|
"p-id": "2958"
|
|
729
722
|
};
|
|
730
|
-
function
|
|
731
|
-
return S(), i("svg",
|
|
723
|
+
function lt(e, t) {
|
|
724
|
+
return S(), i("svg", ct, [...t[0] ||= [a("path", {
|
|
732
725
|
d: "M512 97.52381c228.912762 0 414.47619 185.563429 414.47619 414.47619s-185.563429 414.47619-414.47619 414.47619S97.52381 740.912762 97.52381 512 283.087238 97.52381 512 97.52381z m0 73.142857C323.486476 170.666667 170.666667 323.486476 170.666667 512s152.81981 341.333333 341.333333 341.333333 341.333333-152.81981 341.333333-341.333333S700.513524 170.666667 512 170.666667z m36.571429 268.190476v292.571428h-73.142858V438.857143h73.142858z m0-121.904762v73.142857h-73.142858v-73.142857h73.142858z",
|
|
733
726
|
"p-id": "2959"
|
|
734
727
|
}, null, -1)]]);
|
|
735
728
|
}
|
|
736
|
-
var
|
|
729
|
+
var ut = /* @__PURE__ */ R(st, [["render", lt]]), dt = {}, ft = {
|
|
737
730
|
style: {
|
|
738
731
|
width: "100%",
|
|
739
732
|
height: "100%"
|
|
@@ -745,14 +738,14 @@ var dt = /* @__PURE__ */ R(ct, [["render", ut]]), ft = {}, pt = {
|
|
|
745
738
|
xmlns: "http://www.w3.org/2000/svg",
|
|
746
739
|
"p-id": "5846"
|
|
747
740
|
};
|
|
748
|
-
function
|
|
749
|
-
return S(), i("svg",
|
|
741
|
+
function pt(e, t) {
|
|
742
|
+
return S(), i("svg", ft, [...t[0] ||= [a("path", {
|
|
750
743
|
d: "M768.73106 703.537712c-35.606921 0-67.945574 14.793214-91.167479 38.359147l-309.109357-171.670082c9.116748-17.545439 14.621199-37.155048 14.621199-58.312783 0-12.55703-2.408198-24.426004-5.676466-35.950949l304.63699-189.215522c22.705863 20.469679 52.464304 33.198723 85.146985 33.198723 70.525785 0 127.978498-57.452713 127.978498-127.978498S837.708718 63.989249 767.182933 63.989249s-127.978498 57.452713-127.978498 127.978498c0 14.621199 2.92424 28.382328 7.396607 41.455401L344.716278 420.746514c-23.049891-22.705863-54.700487-36.983034-89.791366-36.983034-70.525785 0-127.978498 57.452713-127.978498 127.978498s57.452713 127.978498 127.978498 127.978498c25.630102 0 49.540064-7.740635 69.493701-20.813707l321.150344 178.378633c-3.096254 11.008903-5.160423 22.18982-5.160423 34.058794 0 70.525785 57.452713 127.978498 127.978498 127.978498s127.978498-57.452713 127.978498-127.978498S839.256845 703.537712 768.73106 703.537712zM767.182933 127.978498c35.262893 0 63.989249 28.726356 63.989249 63.989249s-28.726356 63.989249-63.989249 63.989249-63.989249-28.726356-63.989249-63.989249S731.92004 127.978498 767.182933 127.978498zM191.107677 511.913993c0-35.262893 28.726356-63.989249 63.989249-63.989249s63.989249 28.726356 63.989249 63.989249-28.726356 63.989249-63.989249 63.989249S191.107677 547.176886 191.107677 511.913993zM768.73106 895.505459c-35.262893 0-63.989249-28.726356-63.989249-63.989249s28.726356-63.989249 63.989249-63.989249 63.989249 28.726356 63.989249 63.989249C832.720309 866.951117 803.993953 895.505459 768.73106 895.505459z",
|
|
751
744
|
fill: "#575B66",
|
|
752
745
|
"p-id": "5847"
|
|
753
746
|
}, null, -1)]]);
|
|
754
747
|
}
|
|
755
|
-
var
|
|
748
|
+
var mt = /* @__PURE__ */ R(dt, [["render", pt]]), ht = {}, gt = {
|
|
756
749
|
style: {
|
|
757
750
|
width: "100%",
|
|
758
751
|
height: "100%"
|
|
@@ -764,14 +757,14 @@ var ht = /* @__PURE__ */ R(ft, [["render", mt]]), gt = {}, _t = {
|
|
|
764
757
|
xmlns: "http://www.w3.org/2000/svg",
|
|
765
758
|
"p-id": "7726"
|
|
766
759
|
};
|
|
767
|
-
function
|
|
768
|
-
return S(), i("svg",
|
|
760
|
+
function _t(e, t) {
|
|
761
|
+
return S(), i("svg", gt, [...t[0] ||= [a("path", {
|
|
769
762
|
d: "M501.84 393.44h16a16 16 0 0 1 16 16v151.584a16 16 0 0 1-6.768 13.072l-84.928 59.952a16 16 0 0 1-22.304-3.84l-9.216-13.072a16 16 0 0 1 3.84-22.304l71.376-50.4V409.44a16 16 0 0 1 16-16z m3.552 458.96C332.304 852.4 192 712.08 192 539.008s140.32-313.392 313.392-313.392c173.088 0 313.392 140.32 313.392 313.392 0 173.088-140.32 313.392-313.392 313.392z m0-48c146.56 0 265.392-118.816 265.392-265.392 0-146.56-118.816-265.392-265.392-265.392-146.56 0-265.392 118.832-265.392 265.392 0 146.576 118.816 265.392 265.392 265.392z m-100.288-617.6l4.752 17.36c4.224 13.632-4.48 17.712-8.784 19.088a333.824 333.824 0 0 0-156.72 106.448c-4.032 4.912-11.408 13.952-26.24 4.528l-11.952-8.688c-11.472-9.088-5.648-17.904-2.176-22.24a381.792 381.792 0 0 1 183.44-126.08c4.608-1.456 13.968-3.344 17.68 9.568z m396.768 137.376l-13.184 9.696c-13.04 8.912-19.84 0.48-23.424-3.904a333.84 333.84 0 0 0-155.12-106.032c-5.44-1.76-15.936-5.376-11.664-23.04l3.728-13.856c5.104-14.64 15.328-11.136 21.008-9.328a381.808 381.808 0 0 1 180.608 123.6c3.616 4.48 11.136 14.288-1.952 22.864z",
|
|
770
763
|
fill: "#000000",
|
|
771
764
|
"p-id": "7727"
|
|
772
765
|
}, null, -1)]]);
|
|
773
766
|
}
|
|
774
|
-
var
|
|
767
|
+
var vt = /* @__PURE__ */ R(ht, [["render", _t]]), yt = {}, bt = {
|
|
775
768
|
style: {
|
|
776
769
|
width: "100%",
|
|
777
770
|
height: "100%"
|
|
@@ -783,37 +776,37 @@ var yt = /* @__PURE__ */ R(gt, [["render", vt]]), bt = {}, xt = {
|
|
|
783
776
|
xmlns: "http://www.w3.org/2000/svg",
|
|
784
777
|
"p-id": "8719"
|
|
785
778
|
};
|
|
786
|
-
function
|
|
787
|
-
return S(), i("svg",
|
|
779
|
+
function xt(e, t) {
|
|
780
|
+
return S(), i("svg", bt, [...t[0] ||= [a("path", {
|
|
788
781
|
d: "M938.666667 682.666667c-46.933333 0-85.333333-38.4-85.333334-85.333334V384c0-187.733333-153.6-341.333333-341.333333-341.333333S170.666667 196.266667 170.666667 384v213.333333c0 46.933333-38.4 85.333333-85.333334 85.333334-25.6 0-42.666667 17.066667-42.666666 42.666666s17.066667 42.666667 42.666666 42.666667h853.333334c25.6 0 42.666667-17.066667 42.666666-42.666667s-17.066667-42.666667-42.666666-42.666666zM234.666667 682.666667c12.8-25.6 21.333333-55.466667 21.333333-85.333334V384c0-140.8 115.2-256 256-256s256 115.2 256 256v213.333333c0 29.866667 8.533333 59.733333 21.333333 85.333334h-554.666666zM605.866667 857.6c-21.333333-12.8-46.933333-4.266667-59.733334 17.066667-4.266667 12.8-17.066667 21.333333-34.133333 21.333333s-29.866667-8.533333-38.4-21.333333c-12.8-21.333333-38.4-25.6-59.733333-17.066667-21.333333 12.8-25.6 38.4-17.066667 59.733333 34.133333 59.733333 115.2 81.066667 174.933333 46.933334 17.066667-12.8 34.133333-25.6 46.933334-46.933334 17.066667-21.333333 8.533333-46.933333-12.8-59.733333z",
|
|
789
782
|
"p-id": "8720"
|
|
790
783
|
}, null, -1)]]);
|
|
791
784
|
}
|
|
792
|
-
var
|
|
793
|
-
ArrowRight: () =>
|
|
794
|
-
ArrowUp: () =>
|
|
795
|
-
Bell: () =>
|
|
796
|
-
Clock: () =>
|
|
797
|
-
CloseBold: () =>
|
|
798
|
-
Info: () =>
|
|
799
|
-
Plus: () =>
|
|
800
|
-
Promotion: () =>
|
|
801
|
-
Refresh: () =>
|
|
802
|
-
Search: () =>
|
|
803
|
-
Share: () =>
|
|
804
|
-
User: () =>
|
|
805
|
-
YcIcon: () =>
|
|
785
|
+
var St = /* @__PURE__ */ R(yt, [["render", xt]]), Ct = /* @__PURE__ */ L({
|
|
786
|
+
ArrowRight: () => Je,
|
|
787
|
+
ArrowUp: () => Qe,
|
|
788
|
+
Bell: () => St,
|
|
789
|
+
Clock: () => vt,
|
|
790
|
+
CloseBold: () => Be,
|
|
791
|
+
Info: () => ut,
|
|
792
|
+
Plus: () => We,
|
|
793
|
+
Promotion: () => ot,
|
|
794
|
+
Refresh: () => nt,
|
|
795
|
+
Search: () => Re,
|
|
796
|
+
Share: () => mt,
|
|
797
|
+
User: () => He,
|
|
798
|
+
YcIcon: () => Ie
|
|
806
799
|
});
|
|
807
800
|
//#endregion
|
|
808
801
|
//#region src/components/utils/tools.ts
|
|
809
|
-
function
|
|
802
|
+
function wt(e) {
|
|
810
803
|
return typeof e == "number" ? e + "px" : e || "100px";
|
|
811
804
|
}
|
|
812
|
-
function
|
|
805
|
+
function Tt(e) {
|
|
813
806
|
return typeof e == "number" ? e + "px" : e || "180px";
|
|
814
807
|
}
|
|
815
|
-
function
|
|
816
|
-
let n = Object.fromEntries(Object.entries(
|
|
808
|
+
function Et(e, t) {
|
|
809
|
+
let n = Object.fromEntries(Object.entries(Ae).map(([n, r]) => [n, (i = {}) => ({
|
|
817
810
|
props: {
|
|
818
811
|
data: t,
|
|
819
812
|
prop: e.prop,
|
|
@@ -830,17 +823,17 @@ function Dt(e, t) {
|
|
|
830
823
|
function V(e, t) {
|
|
831
824
|
let n = e.prop;
|
|
832
825
|
n && typeof t == "object" && t && t[n];
|
|
833
|
-
let r =
|
|
826
|
+
let r = Et(e, t);
|
|
834
827
|
return typeof r != "object" || !r ? r ?? "" : (r.component, r);
|
|
835
828
|
}
|
|
836
829
|
//#endregion
|
|
837
830
|
//#region src/components/Filter/index.vue?vue&type=script&setup=true&lang.ts
|
|
838
|
-
var
|
|
831
|
+
var Dt = { style: {
|
|
839
832
|
display: "flex",
|
|
840
833
|
"justify-content": "end",
|
|
841
834
|
"align-items": "center",
|
|
842
835
|
width: "100%"
|
|
843
|
-
} },
|
|
836
|
+
} }, Ot = /* @__PURE__ */ u({
|
|
844
837
|
name: "UiDefaultFilter",
|
|
845
838
|
__name: "index",
|
|
846
839
|
props: {
|
|
@@ -876,7 +869,7 @@ var Ot = { style: {
|
|
|
876
869
|
}), m = C({}), h = t(() => s.fields.slice(0, p.expand ? s.fields.length : p.expandNum)), _ = t(() => 24 - h.value?.reduce((e, t) => e + (t.span || 24 / s.column), 0) % 24 - 24 / s.column);
|
|
877
870
|
b(() => {
|
|
878
871
|
p.expandNum = f?.expandNum ?? 2 * s.column - 1, s.fields.forEach((e) => {
|
|
879
|
-
let t =
|
|
872
|
+
let t = Et(e, m)?.props?.defaultValue;
|
|
880
873
|
t !== void 0 && (m[e.prop] = t);
|
|
881
874
|
});
|
|
882
875
|
});
|
|
@@ -915,16 +908,16 @@ var Ot = { style: {
|
|
|
915
908
|
default: I(() => [(S(), n(d, {
|
|
916
909
|
key: e.prop,
|
|
917
910
|
label: e.label,
|
|
918
|
-
"label-width": N(
|
|
919
|
-
"value-width": N(
|
|
911
|
+
"label-width": N(wt)(e?.labelWidth || s.labelWidth),
|
|
912
|
+
"value-width": N(Tt)(e?.valueWidth || s.valueWidth)
|
|
920
913
|
}, {
|
|
921
|
-
default: I(() => [e.render ? (S(), n(k(N(
|
|
914
|
+
default: I(() => [e.render ? (S(), n(k(N(Et)(e, m).component), g({
|
|
922
915
|
key: 0,
|
|
923
916
|
modelValue: m[e.prop],
|
|
924
917
|
"onUpdate:modelValue": (t) => m[e.prop] = t
|
|
925
|
-
}, { ref_for: !0 }, N(
|
|
918
|
+
}, { ref_for: !0 }, N(Et)(e, m).props, {
|
|
926
919
|
clearable: !0,
|
|
927
|
-
style: { width: N(
|
|
920
|
+
style: { width: N(Tt)(e?.valueWidth || s.valueWidth) }
|
|
928
921
|
}), null, 16, [
|
|
929
922
|
"modelValue",
|
|
930
923
|
"onUpdate:modelValue",
|
|
@@ -935,7 +928,7 @@ var Ot = { style: {
|
|
|
935
928
|
"onUpdate:modelValue": (t) => m[e.prop] = t,
|
|
936
929
|
placeholder: "请输入",
|
|
937
930
|
clearable: !0,
|
|
938
|
-
style: y({ width: N(
|
|
931
|
+
style: y({ width: N(Tt)(e?.valueWidth || s.valueWidth) })
|
|
939
932
|
}, null, 8, [
|
|
940
933
|
"modelValue",
|
|
941
934
|
"onUpdate:modelValue",
|
|
@@ -956,19 +949,19 @@ var Ot = { style: {
|
|
|
956
949
|
label: "",
|
|
957
950
|
"label-width": "30px"
|
|
958
951
|
}, {
|
|
959
|
-
default: I(() => [a("div",
|
|
952
|
+
default: I(() => [a("div", Dt, [
|
|
960
953
|
E(t.$slots, "left", { form: m }, void 0, !0),
|
|
961
954
|
s.fields.length >= 2 * s.column ? (S(), n(b, {
|
|
962
955
|
key: 0,
|
|
963
956
|
text: "",
|
|
964
|
-
icon: p.expand ? N(
|
|
957
|
+
icon: p.expand ? N(Qe) : N(Je),
|
|
965
958
|
onClick: o[0] ||= (e) => p.expand = !p.expand
|
|
966
959
|
}, {
|
|
967
960
|
default: I(() => [c(j(p.expand ? "收起" : "展开"), 1)]),
|
|
968
961
|
_: 1
|
|
969
962
|
}, 8, ["icon"])) : r("", !0),
|
|
970
963
|
l(b, {
|
|
971
|
-
icon: N(
|
|
964
|
+
icon: N(Re),
|
|
972
965
|
type: "primary",
|
|
973
966
|
onClick: v
|
|
974
967
|
}, {
|
|
@@ -976,7 +969,7 @@ var Ot = { style: {
|
|
|
976
969
|
_: 1
|
|
977
970
|
}, 8, ["icon"]),
|
|
978
971
|
l(b, {
|
|
979
|
-
icon: N(
|
|
972
|
+
icon: N(nt),
|
|
980
973
|
onClick: x
|
|
981
974
|
}, {
|
|
982
975
|
default: I(() => [...o[2] ||= [c("重置", -1)]]),
|
|
@@ -995,16 +988,16 @@ var Ot = { style: {
|
|
|
995
988
|
}, 16, ["model", "size"]);
|
|
996
989
|
};
|
|
997
990
|
}
|
|
998
|
-
}),
|
|
991
|
+
}), kt = /* @__PURE__ */ L({ default: () => At }), At = /* @__PURE__ */ R(Ot, [["__scopeId", "data-v-0e3c7086"]]), jt = {
|
|
999
992
|
key: 2,
|
|
1000
993
|
style: { display: "inline-block" }
|
|
1001
|
-
},
|
|
994
|
+
}, Mt = {
|
|
1002
995
|
key: 2,
|
|
1003
996
|
style: { display: "inline-block" }
|
|
1004
|
-
},
|
|
997
|
+
}, Nt = {
|
|
1005
998
|
key: 0,
|
|
1006
999
|
class: "ui-form-buttons"
|
|
1007
|
-
},
|
|
1000
|
+
}, Pt = /* @__PURE__ */ u({
|
|
1008
1001
|
__name: "index",
|
|
1009
1002
|
props: {
|
|
1010
1003
|
fields: {},
|
|
@@ -1118,7 +1111,7 @@ var Ot = { style: {
|
|
|
1118
1111
|
"modelValue",
|
|
1119
1112
|
"onUpdate:modelValue",
|
|
1120
1113
|
"class"
|
|
1121
|
-
])) : (S(), i("span",
|
|
1114
|
+
])) : (S(), i("span", jt, j(N(V)(r, F.value) || "-"), 1)), (S(!0), i(e, null, T(r.slots, (e) => E(t.$slots, "default", { form: F.value }, () => [m(N(V)(e, F.value)) ? (S(), n(k(N(V)(e, F.value)), {
|
|
1122
1115
|
key: 0,
|
|
1123
1116
|
style: { display: "inline-block" }
|
|
1124
1117
|
})) : N(V)(e, F.value).component ? (S(), n(k(N(V)(e, F.value).component), g({
|
|
@@ -1143,7 +1136,7 @@ var Ot = { style: {
|
|
|
1143
1136
|
"placeholder",
|
|
1144
1137
|
"style",
|
|
1145
1138
|
"class"
|
|
1146
|
-
])) : (S(), i("span",
|
|
1139
|
+
])) : (S(), i("span", Mt, j(N(V)(e, F.value) || "-"), 1))], !0)), 256))], 64)) : (S(), n(o, {
|
|
1147
1140
|
key: 1,
|
|
1148
1141
|
modelValue: F.value[r.prop],
|
|
1149
1142
|
"onUpdate:modelValue": (e) => F.value[r.prop] = e,
|
|
@@ -1170,10 +1163,10 @@ var Ot = { style: {
|
|
|
1170
1163
|
"inline",
|
|
1171
1164
|
"label-position",
|
|
1172
1165
|
"class"
|
|
1173
|
-
]), t.$attrs?.hideHandle ? r("", !0) : (S(), i("div",
|
|
1166
|
+
]), t.$attrs?.hideHandle ? r("", !0) : (S(), i("div", Nt, [
|
|
1174
1167
|
E(t.$slots, "handle", { form: F.value }, void 0, !0),
|
|
1175
1168
|
l(d, {
|
|
1176
|
-
icon: N(
|
|
1169
|
+
icon: N(nt),
|
|
1177
1170
|
onClick: ce,
|
|
1178
1171
|
size: t.$props.size
|
|
1179
1172
|
}, {
|
|
@@ -1181,7 +1174,7 @@ var Ot = { style: {
|
|
|
1181
1174
|
_: 1
|
|
1182
1175
|
}, 8, ["icon", "size"]),
|
|
1183
1176
|
l(d, {
|
|
1184
|
-
icon: N(
|
|
1177
|
+
icon: N(ot),
|
|
1185
1178
|
type: "primary",
|
|
1186
1179
|
onClick: se,
|
|
1187
1180
|
size: t.$props.size
|
|
@@ -1192,7 +1185,7 @@ var Ot = { style: {
|
|
|
1192
1185
|
]))], 64);
|
|
1193
1186
|
};
|
|
1194
1187
|
}
|
|
1195
|
-
}),
|
|
1188
|
+
}), Ft = /* @__PURE__ */ L({ default: () => It }), It = /* @__PURE__ */ R(Pt, [["__scopeId", "data-v-539b7aeb"]]), Lt = ["disabled"], Rt = /* @__PURE__ */ u({
|
|
1196
1189
|
__name: "index",
|
|
1197
1190
|
props: /* @__PURE__ */ h({
|
|
1198
1191
|
defaultValue: { default: "" },
|
|
@@ -1230,9 +1223,9 @@ var Ot = { style: {
|
|
|
1230
1223
|
ref: n,
|
|
1231
1224
|
style: { height: "500px" },
|
|
1232
1225
|
disabled: e.disabled
|
|
1233
|
-
}, null, 8,
|
|
1226
|
+
}, null, 8, Lt));
|
|
1234
1227
|
}
|
|
1235
|
-
}),
|
|
1228
|
+
}), zt = /* @__PURE__ */ L({ default: () => Bt }), Bt = Rt, Vt = { class: "ui-tree-wrapper" }, Ht = {
|
|
1236
1229
|
key: 0,
|
|
1237
1230
|
style: {
|
|
1238
1231
|
display: "flex",
|
|
@@ -1241,10 +1234,10 @@ var Ot = { style: {
|
|
|
1241
1234
|
"align-items": "center",
|
|
1242
1235
|
gap: "10px"
|
|
1243
1236
|
}
|
|
1244
|
-
},
|
|
1237
|
+
}, Ut = {
|
|
1245
1238
|
key: 0,
|
|
1246
1239
|
class: "custom-tree-node"
|
|
1247
|
-
},
|
|
1240
|
+
}, Wt = { class: "node-label" }, Gt = { key: 0 }, Kt = ["onClick"], qt = /* @__PURE__ */ u({
|
|
1248
1241
|
__name: "index",
|
|
1249
1242
|
props: {
|
|
1250
1243
|
id: {},
|
|
@@ -1314,8 +1307,8 @@ var Ot = { style: {
|
|
|
1314
1307
|
}
|
|
1315
1308
|
return (t, o) => {
|
|
1316
1309
|
let s = D("el-input"), u = D("el-button"), d = D("el-dropdown-item"), f = D("el-dropdown-menu"), h = D("el-dropdown"), v = D("el-tree-v2");
|
|
1317
|
-
return S(), i("div",
|
|
1318
|
-
e.filterable ? (S(), i("div",
|
|
1310
|
+
return S(), i("div", Vt, [
|
|
1311
|
+
e.filterable ? (S(), i("div", Ht, [l(s, {
|
|
1319
1312
|
modelValue: m.value,
|
|
1320
1313
|
"onUpdate:modelValue": o[0] ||= (e) => m.value = e,
|
|
1321
1314
|
placeholder: e.placeholder ?? "请输入",
|
|
@@ -1345,7 +1338,7 @@ var Ot = { style: {
|
|
|
1345
1338
|
"highlight-current": !0,
|
|
1346
1339
|
"filter-method": b
|
|
1347
1340
|
}), {
|
|
1348
|
-
default: I((s) => [s?.data ? (S(), i("div",
|
|
1341
|
+
default: I((s) => [s?.data ? (S(), i("div", Ut, [a("div", Wt, [s.data?.children?.length ? (S(), i("span", Gt, "📁")) : r("", !0), c(" " + j(s.data?.[e.props?.label || "label"]) + " " + j(y.value && s.data?.children?.length ? `(${s.data.children.length})` : ""), 1)]), p.hideNodeHandle ? r("", !0) : (S(), n(h, {
|
|
1349
1342
|
key: 0,
|
|
1350
1343
|
trigger: "click"
|
|
1351
1344
|
}, {
|
|
@@ -1382,7 +1375,7 @@ var Ot = { style: {
|
|
|
1382
1375
|
padding: "4px",
|
|
1383
1376
|
"font-weight": "bold"
|
|
1384
1377
|
}
|
|
1385
|
-
}, "⋮", 8,
|
|
1378
|
+
}, "⋮", 8, Kt)]),
|
|
1386
1379
|
_: 2
|
|
1387
1380
|
}, 1024))])) : r("", !0)]),
|
|
1388
1381
|
_: 3
|
|
@@ -1390,13 +1383,13 @@ var Ot = { style: {
|
|
|
1390
1383
|
]);
|
|
1391
1384
|
};
|
|
1392
1385
|
}
|
|
1393
|
-
}),
|
|
1386
|
+
}), Jt = /* @__PURE__ */ L({ default: () => Yt }), Yt = /* @__PURE__ */ R(qt, [["__scopeId", "data-v-7858d79e"]]), Xt = { style: { height: "100%" } }, Zt = { style: {
|
|
1394
1387
|
display: "flex",
|
|
1395
1388
|
"flex-direction": "row",
|
|
1396
1389
|
"justify-content": "space-between",
|
|
1397
1390
|
"align-items": "center",
|
|
1398
1391
|
gap: "10px"
|
|
1399
|
-
} },
|
|
1392
|
+
} }, Qt = { style: { margin: "10px 0px" } }, $t = ["onClick"], en = { key: 0 }, tn = /* @__PURE__ */ u({
|
|
1400
1393
|
__name: "index",
|
|
1401
1394
|
props: {
|
|
1402
1395
|
loading: { default: () => w(!1) },
|
|
@@ -1417,14 +1410,14 @@ var Ot = { style: {
|
|
|
1417
1410
|
}
|
|
1418
1411
|
return (t, s) => {
|
|
1419
1412
|
let c = D("el-input");
|
|
1420
|
-
return S(), i("div",
|
|
1421
|
-
a("div",
|
|
1413
|
+
return S(), i("div", Xt, [
|
|
1414
|
+
a("div", Zt, [o.filterable ? (S(), n(c, {
|
|
1422
1415
|
key: 0,
|
|
1423
1416
|
modelValue: l.value,
|
|
1424
1417
|
"onUpdate:modelValue": s[0] ||= (e) => l.value = e,
|
|
1425
1418
|
placeholder: o.placeholder ?? "请输入"
|
|
1426
1419
|
}, null, 8, ["modelValue", "placeholder"])) : r("", !0), E(t.$slots, "plus", {}, void 0, !0)]),
|
|
1427
|
-
a("div",
|
|
1420
|
+
a("div", Qt, [E(t.$slots, "handle", {}, void 0, !0)]),
|
|
1428
1421
|
ae((S(), i("ul", g({
|
|
1429
1422
|
class: "infinite-list",
|
|
1430
1423
|
"infinite-scroll-immediate": !1
|
|
@@ -1435,19 +1428,19 @@ var Ot = { style: {
|
|
|
1435
1428
|
active: e === u.value
|
|
1436
1429
|
}),
|
|
1437
1430
|
onClick: (t) => f(e)
|
|
1438
|
-
}, [a("span", null, j(e[o.props?.label || "label"]), 1), E(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10,
|
|
1439
|
-
o.loading.value ? (S(), i("p",
|
|
1431
|
+
}, [a("span", null, j(e[o.props?.label || "label"]), 1), E(t.$slots, "itemHandle", { data: e }, void 0, !0)], 10, $t))), 128))], 16)), [[N(o.vInfiniteScroll), o.vInfiniteScroll]]),
|
|
1432
|
+
o.loading.value ? (S(), i("p", en, "loading...")) : r("", !0)
|
|
1440
1433
|
]);
|
|
1441
1434
|
};
|
|
1442
1435
|
}
|
|
1443
|
-
}),
|
|
1436
|
+
}), nn = /* @__PURE__ */ L({ default: () => rn }), rn = /* @__PURE__ */ R(tn, [["__scopeId", "data-v-0ab5cd97"]]), an = {
|
|
1444
1437
|
key: 0,
|
|
1445
1438
|
style: {
|
|
1446
1439
|
padding: "10px 0px",
|
|
1447
1440
|
"margin-bottom": "10px",
|
|
1448
1441
|
"border-bottom": "1px solid #e5e5e5"
|
|
1449
1442
|
}
|
|
1450
|
-
},
|
|
1443
|
+
}, on = { key: 1 }, sn = /* @__PURE__ */ u({
|
|
1451
1444
|
__name: "index",
|
|
1452
1445
|
props: {
|
|
1453
1446
|
data: {},
|
|
@@ -1465,7 +1458,7 @@ var Ot = { style: {
|
|
|
1465
1458
|
return (o, s) => {
|
|
1466
1459
|
let c = D("el-descriptions-item"), u = D("el-descriptions");
|
|
1467
1460
|
return S(), i(e, null, [
|
|
1468
|
-
t.title ? (S(), i("h4",
|
|
1461
|
+
t.title ? (S(), i("h4", an, j(t.title), 1)) : r("", !0),
|
|
1469
1462
|
E(o.$slots, "title", {}, void 0, !0),
|
|
1470
1463
|
l(u, g({ column: t.column }, a, { class: "ui-descriptions" }), {
|
|
1471
1464
|
default: I(() => [(S(!0), i(e, null, T(t.fields, (e) => (S(), n(c, {
|
|
@@ -1473,15 +1466,15 @@ var Ot = { style: {
|
|
|
1473
1466
|
label: e.label,
|
|
1474
1467
|
span: e.span || 2
|
|
1475
1468
|
}, {
|
|
1476
|
-
default: I(() => [e.render ? (S(), n(k(N(
|
|
1469
|
+
default: I(() => [e.render ? (S(), n(k(N(Et)(e, t.data).component), g({
|
|
1477
1470
|
key: 0,
|
|
1478
1471
|
modelValue: t.data[e.prop],
|
|
1479
1472
|
"onUpdate:modelValue": (n) => t.data[e.prop] = n
|
|
1480
|
-
}, { ref_for: !0 }, N(
|
|
1473
|
+
}, { ref_for: !0 }, N(Et)(e, t.data).props, {
|
|
1481
1474
|
clearable: !0,
|
|
1482
1475
|
key: e.prop,
|
|
1483
1476
|
style: { display: "inline-block" }
|
|
1484
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (S(), i("span",
|
|
1477
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue"])) : (S(), i("span", on, j(t.data[e.prop] || "-"), 1))]),
|
|
1485
1478
|
_: 2
|
|
1486
1479
|
}, 1032, ["label", "span"]))), 128))]),
|
|
1487
1480
|
_: 1
|
|
@@ -1489,14 +1482,14 @@ var Ot = { style: {
|
|
|
1489
1482
|
], 64);
|
|
1490
1483
|
};
|
|
1491
1484
|
}
|
|
1492
|
-
}),
|
|
1485
|
+
}), cn = /* @__PURE__ */ L({ default: () => ln }), ln = /* @__PURE__ */ R(sn, [["__scopeId", "data-v-f02c30f9"]]), un = {
|
|
1493
1486
|
key: 0,
|
|
1494
1487
|
style: {
|
|
1495
1488
|
display: "flex",
|
|
1496
1489
|
"margin-top": "12px",
|
|
1497
1490
|
"justify-content": "end"
|
|
1498
1491
|
}
|
|
1499
|
-
},
|
|
1492
|
+
}, dn = /* @__PURE__ */ u({
|
|
1500
1493
|
__name: "index",
|
|
1501
1494
|
props: {
|
|
1502
1495
|
visible: { type: Boolean },
|
|
@@ -1536,7 +1529,7 @@ var Ot = { style: {
|
|
|
1536
1529
|
}, o.componentProps, {
|
|
1537
1530
|
onClose: u,
|
|
1538
1531
|
onSubmit: d
|
|
1539
|
-
}), null, 16)), o.disabled ? r("", !0) : (S(), i("div",
|
|
1532
|
+
}), null, 16)), o.disabled ? r("", !0) : (S(), i("div", un, [l(a, { onClick: u }, {
|
|
1540
1533
|
default: I(() => [...t[1] ||= [c("取消", -1)]]),
|
|
1541
1534
|
_: 1
|
|
1542
1535
|
}), l(a, {
|
|
@@ -1554,11 +1547,11 @@ var Ot = { style: {
|
|
|
1554
1547
|
]);
|
|
1555
1548
|
};
|
|
1556
1549
|
}
|
|
1557
|
-
}),
|
|
1558
|
-
function
|
|
1550
|
+
}), fn = /* @__PURE__ */ L({ default: () => pn }), pn = dn, mn = window.origin?.includes("localhost") || window.origin?.includes("127.0.0.1") ? "/api" : "/intellicit-service";
|
|
1551
|
+
function hn(e) {
|
|
1559
1552
|
return Array.from(new Set(e));
|
|
1560
1553
|
}
|
|
1561
|
-
function
|
|
1554
|
+
function gn(e, t) {
|
|
1562
1555
|
let n = /* @__PURE__ */ new Set();
|
|
1563
1556
|
return e.filter((e) => {
|
|
1564
1557
|
let r = typeof t == "function" ? t(e) : e[t];
|
|
@@ -1567,7 +1560,7 @@ function _n(e, t) {
|
|
|
1567
1560
|
}
|
|
1568
1561
|
//#endregion
|
|
1569
1562
|
//#region src/components/StaffSelect/default.vue
|
|
1570
|
-
var
|
|
1563
|
+
var _n = /* @__PURE__ */ u({
|
|
1571
1564
|
__name: "default",
|
|
1572
1565
|
props: {
|
|
1573
1566
|
multiple: { type: Boolean },
|
|
@@ -1591,7 +1584,7 @@ var vn = /* @__PURE__ */ u({
|
|
|
1591
1584
|
o.modelValue && p(o.modelValue);
|
|
1592
1585
|
});
|
|
1593
1586
|
async function p(e = "") {
|
|
1594
|
-
f.value = ((await fetch(
|
|
1587
|
+
f.value = ((await fetch(mn + "/user/pageQueryUser", {
|
|
1595
1588
|
method: "POST",
|
|
1596
1589
|
headers: u,
|
|
1597
1590
|
body: JSON.stringify({
|
|
@@ -1621,7 +1614,7 @@ var vn = /* @__PURE__ */ u({
|
|
|
1621
1614
|
"remote-method": m
|
|
1622
1615
|
}, t.$attrs), {
|
|
1623
1616
|
prefix: I(() => [l(a, null, {
|
|
1624
|
-
default: I(() => [l(N(
|
|
1617
|
+
default: I(() => [l(N(He))]),
|
|
1625
1618
|
_: 1
|
|
1626
1619
|
})]),
|
|
1627
1620
|
default: I(() => [(S(!0), i(e, null, T(f.value, (e) => (S(), n(o, {
|
|
@@ -1633,26 +1626,26 @@ var vn = /* @__PURE__ */ u({
|
|
|
1633
1626
|
}, 16, ["modelValue"]);
|
|
1634
1627
|
};
|
|
1635
1628
|
}
|
|
1636
|
-
}),
|
|
1629
|
+
}), vn = { style: {
|
|
1637
1630
|
display: "flex",
|
|
1638
1631
|
"max-width": "100%",
|
|
1639
1632
|
gap: "20px",
|
|
1640
1633
|
"overflow-y": "scroll",
|
|
1641
1634
|
height: "400px"
|
|
1642
|
-
} },
|
|
1635
|
+
} }, yn = { style: { flex: "1" } }, bn = { style: { width: "320px" } }, xn = { style: {
|
|
1643
1636
|
display: "flex",
|
|
1644
1637
|
"justify-content": "space-between",
|
|
1645
1638
|
"align-items": "center",
|
|
1646
1639
|
"margin-bottom": "8px",
|
|
1647
1640
|
height: "30px"
|
|
1648
|
-
} },
|
|
1641
|
+
} }, Sn = { key: 0 }, Cn = { style: {
|
|
1649
1642
|
"overflow-y": "auto",
|
|
1650
1643
|
height: "90%"
|
|
1651
|
-
} },
|
|
1644
|
+
} }, wn = { style: {
|
|
1652
1645
|
display: "flex",
|
|
1653
1646
|
"justify-content": "end",
|
|
1654
1647
|
"align-items": "center"
|
|
1655
|
-
} },
|
|
1648
|
+
} }, Tn = /* @__PURE__ */ R(/* @__PURE__ */ u({
|
|
1656
1649
|
__name: "dialog",
|
|
1657
1650
|
props: {
|
|
1658
1651
|
modelValue: {},
|
|
@@ -1679,19 +1672,19 @@ var vn = /* @__PURE__ */ u({
|
|
|
1679
1672
|
requiredVisible: !1
|
|
1680
1673
|
}), b = w([]), x = w([]), E = t(() => y.searchData?.length ? y.searchData : y.staffData), O = t(() => f.required ?? d?.required ?? !1);
|
|
1681
1674
|
F(() => {
|
|
1682
|
-
x.value =
|
|
1675
|
+
x.value = hn(f.modelValue || []);
|
|
1683
1676
|
}), F(() => {
|
|
1684
1677
|
h.value && k();
|
|
1685
1678
|
});
|
|
1686
1679
|
async function k() {
|
|
1687
|
-
let e = await fetch(
|
|
1680
|
+
let e = await fetch(mn + "/department/queryDepartmentTree", {
|
|
1688
1681
|
method: "GET",
|
|
1689
1682
|
headers: v
|
|
1690
1683
|
}).then((e) => e.json());
|
|
1691
1684
|
y.staffData = e.data || [], e.data?.[0] && A(e.data?.[0]);
|
|
1692
1685
|
}
|
|
1693
1686
|
async function ee(e) {
|
|
1694
|
-
return fetch(
|
|
1687
|
+
return fetch(mn + "/user/pageQueryUser", {
|
|
1695
1688
|
method: "POST",
|
|
1696
1689
|
headers: v,
|
|
1697
1690
|
body: JSON.stringify(e)
|
|
@@ -1709,7 +1702,7 @@ var vn = /* @__PURE__ */ u({
|
|
|
1709
1702
|
...e,
|
|
1710
1703
|
code: e.account
|
|
1711
1704
|
}));
|
|
1712
|
-
n ? e.data.children =
|
|
1705
|
+
n ? e.data.children = gn([...r, ...e.data.children || []], "code") : e.children = gn([...r, ...e.children || []], "code"), y.loading = !1;
|
|
1713
1706
|
}), t?.(e?.children || []));
|
|
1714
1707
|
}
|
|
1715
1708
|
function te(e, { data: t }) {
|
|
@@ -1717,7 +1710,7 @@ var vn = /* @__PURE__ */ u({
|
|
|
1717
1710
|
return t?.account ? e("div", { style: { display: "flex" } }, [e("el-icon", { style: {
|
|
1718
1711
|
width: "14px",
|
|
1719
1712
|
height: "14px"
|
|
1720
|
-
} }, e(
|
|
1713
|
+
} }, e(He)), n ? t.fullName : t.name]) : n ? t.fullName : t.name;
|
|
1721
1714
|
}
|
|
1722
1715
|
function M() {
|
|
1723
1716
|
h.value = !0, y.filterText = "", y.searchData = [];
|
|
@@ -1745,7 +1738,7 @@ var vn = /* @__PURE__ */ u({
|
|
|
1745
1738
|
}
|
|
1746
1739
|
function P(e, t) {
|
|
1747
1740
|
let n = t?.checkedNodes?.map((e) => `${e.name}(${e.account ?? e.code})`);
|
|
1748
|
-
x.value =
|
|
1741
|
+
x.value = hn([...x.value, ...n]);
|
|
1749
1742
|
}
|
|
1750
1743
|
function ae() {
|
|
1751
1744
|
let e = p === "all" ? x.value : x.value?.map((e) => {
|
|
@@ -1801,12 +1794,12 @@ var vn = /* @__PURE__ */ u({
|
|
|
1801
1794
|
"close-on-click-modal": !1,
|
|
1802
1795
|
"destroy-on-close": ""
|
|
1803
1796
|
}, {
|
|
1804
|
-
default: I(() => [a("div",
|
|
1797
|
+
default: I(() => [a("div", vn, [a("div", yn, [l(s, {
|
|
1805
1798
|
placeholder: "请输入",
|
|
1806
1799
|
modelValue: y.filterText,
|
|
1807
1800
|
"onUpdate:modelValue": n[2] ||= (e) => y.filterText = e,
|
|
1808
1801
|
clearable: "",
|
|
1809
|
-
"prefix-icon": N(
|
|
1802
|
+
"prefix-icon": N(Re),
|
|
1810
1803
|
onKeydown: oe(ie, ["enter"])
|
|
1811
1804
|
}, null, 8, ["modelValue", "prefix-icon"]), l(u, {
|
|
1812
1805
|
loading: y.loading,
|
|
@@ -1823,16 +1816,16 @@ var vn = /* @__PURE__ */ u({
|
|
|
1823
1816
|
ref_key: "staffDialogRef",
|
|
1824
1817
|
ref: m,
|
|
1825
1818
|
"node-key": "code"
|
|
1826
|
-
}, null, 8, ["loading", "data"])]), a("div",
|
|
1819
|
+
}, null, 8, ["loading", "data"])]), a("div", bn, [a("div", xn, [n[4] ||= a("h3", null, "已选择", -1), x.value.length ? (S(), i("span", Sn, "已选择" + j(x.value.length) + "个用户", 1)) : r("", !0)]), a("div", Cn, [(S(!0), i(e, null, T(x.value, (e) => (S(), i("li", {
|
|
1827
1820
|
key: e,
|
|
1828
1821
|
class: "staff-item"
|
|
1829
1822
|
}, [a("span", null, j(e), 1), l(d, {
|
|
1830
1823
|
color: "red",
|
|
1831
1824
|
onClick: se((t) => re(e), ["stop"])
|
|
1832
1825
|
}, {
|
|
1833
|
-
default: I(() => [l(N(
|
|
1826
|
+
default: I(() => [l(N(Be))]),
|
|
1834
1827
|
_: 1
|
|
1835
|
-
}, 8, ["onClick"])]))), 128))])])]), a("div",
|
|
1828
|
+
}, 8, ["onClick"])]))), 128))])])]), a("div", wn, [l(p, { onClick: ce }, {
|
|
1836
1829
|
default: I(() => [...n[5] ||= [c("取消", -1)]]),
|
|
1837
1830
|
_: 1
|
|
1838
1831
|
}), l(p, {
|
|
@@ -1846,7 +1839,7 @@ var vn = /* @__PURE__ */ u({
|
|
|
1846
1839
|
}, 8, ["modelValue"])], 64);
|
|
1847
1840
|
};
|
|
1848
1841
|
}
|
|
1849
|
-
}), [["__scopeId", "data-v-094dabe3"]]),
|
|
1842
|
+
}), [["__scopeId", "data-v-094dabe3"]]), En = /* @__PURE__ */ u({
|
|
1850
1843
|
__name: "index",
|
|
1851
1844
|
props: {
|
|
1852
1845
|
multiple: { type: Boolean },
|
|
@@ -1857,7 +1850,7 @@ var vn = /* @__PURE__ */ u({
|
|
|
1857
1850
|
},
|
|
1858
1851
|
setup(e, { expose: t }) {
|
|
1859
1852
|
let r = e, i = w();
|
|
1860
|
-
return t({ validate: () => i.value?.validate?.() }), (e, t) => (S(), n(k(r?.type === "dialog" ?
|
|
1853
|
+
return t({ validate: () => i.value?.validate?.() }), (e, t) => (S(), n(k(r?.type === "dialog" ? Tn : _n), g({
|
|
1861
1854
|
ref_key: "staffSelectRef",
|
|
1862
1855
|
ref: i
|
|
1863
1856
|
}, {
|
|
@@ -1865,7 +1858,7 @@ var vn = /* @__PURE__ */ u({
|
|
|
1865
1858
|
...r
|
|
1866
1859
|
}), null, 16));
|
|
1867
1860
|
}
|
|
1868
|
-
}),
|
|
1861
|
+
}), Dn = /* @__PURE__ */ L({ default: () => On }), On = En, kn = /* @__PURE__ */ R(/* @__PURE__ */ u({
|
|
1869
1862
|
__name: "file",
|
|
1870
1863
|
props: {
|
|
1871
1864
|
icon: {},
|
|
@@ -1928,7 +1921,7 @@ var vn = /* @__PURE__ */ u({
|
|
|
1928
1921
|
]);
|
|
1929
1922
|
};
|
|
1930
1923
|
}
|
|
1931
|
-
}), [["__scopeId", "data-v-43d34dc4"]]),
|
|
1924
|
+
}), [["__scopeId", "data-v-43d34dc4"]]), An = ["src"], jn = /* @__PURE__ */ u({
|
|
1932
1925
|
__name: "image",
|
|
1933
1926
|
props: {
|
|
1934
1927
|
icon: {},
|
|
@@ -1964,7 +1957,7 @@ var vn = /* @__PURE__ */ u({
|
|
|
1964
1957
|
"onUpdate:fileList": n[0] ||= (e) => d.value = e
|
|
1965
1958
|
}), {
|
|
1966
1959
|
default: I(() => [l(r, null, {
|
|
1967
|
-
default: I(() => [l(N(
|
|
1960
|
+
default: I(() => [l(N(We))]),
|
|
1968
1961
|
_: 1
|
|
1969
1962
|
})]),
|
|
1970
1963
|
_: 1
|
|
@@ -1976,12 +1969,12 @@ var vn = /* @__PURE__ */ u({
|
|
|
1976
1969
|
"w-full": "",
|
|
1977
1970
|
src: s.value.url,
|
|
1978
1971
|
alt: "预览"
|
|
1979
|
-
}, null, 8,
|
|
1972
|
+
}, null, 8, An)]),
|
|
1980
1973
|
_: 1
|
|
1981
1974
|
}, 8, ["modelValue"])], 64);
|
|
1982
1975
|
};
|
|
1983
1976
|
}
|
|
1984
|
-
}),
|
|
1977
|
+
}), Mn = /* @__PURE__ */ u({
|
|
1985
1978
|
__name: "index",
|
|
1986
1979
|
props: {
|
|
1987
1980
|
icon: {},
|
|
@@ -2006,7 +1999,7 @@ var vn = /* @__PURE__ */ u({
|
|
|
2006
1999
|
"remove"
|
|
2007
2000
|
],
|
|
2008
2001
|
setup(e, { emit: r }) {
|
|
2009
|
-
let i = r, a = e, { type: o = "file", onChange: s, limit: c, action: l, data: u, prop: d, fileList: f, ...p } = a, m = l ||
|
|
2002
|
+
let i = r, a = e, { type: o = "file", onChange: s, limit: c, action: l, data: u, prop: d, fileList: f, ...p } = a, m = l || mn + "/attachment/uploadAttachment", h = { token: localStorage.getItem("TOKEN") || "" }, _ = t(() => u && d && u[d] ? u[d] : a.fileList || []), v = t(() => _.value.length);
|
|
2010
2003
|
function y(e) {
|
|
2011
2004
|
i("update:fileList", e);
|
|
2012
2005
|
}
|
|
@@ -2023,7 +2016,7 @@ var vn = /* @__PURE__ */ u({
|
|
|
2023
2016
|
function w(e, t) {
|
|
2024
2017
|
let n = [...a.fileList || []];
|
|
2025
2018
|
if (e?.code !== "ok") return z.Message.error(e?.message);
|
|
2026
|
-
let r =
|
|
2019
|
+
let r = mn + `/attachment/downloadAttachment?objectKey=${e.data?.objectKey}&fileName=${e.data?.fileName}&token=${h.token}`;
|
|
2027
2020
|
n.some((t) => t?.objectKey === e.data?.objectKey) || n.push({
|
|
2028
2021
|
name: t.name,
|
|
2029
2022
|
uid: t.uid,
|
|
@@ -2036,7 +2029,7 @@ var vn = /* @__PURE__ */ u({
|
|
|
2036
2029
|
function T(e, t, n) {
|
|
2037
2030
|
i("update:fileList", n), i("update:modelValue", n);
|
|
2038
2031
|
}
|
|
2039
|
-
return (e, t) => (S(), n(k(N(o) === "image" ?
|
|
2032
|
+
return (e, t) => (S(), n(k(N(o) === "image" ? jn : kn), g({
|
|
2040
2033
|
ref: "uploadInstance",
|
|
2041
2034
|
name: "file",
|
|
2042
2035
|
action: N(m),
|
|
@@ -2057,43 +2050,43 @@ var vn = /* @__PURE__ */ u({
|
|
|
2057
2050
|
"limit"
|
|
2058
2051
|
]));
|
|
2059
2052
|
}
|
|
2060
|
-
}),
|
|
2053
|
+
}), Nn = /* @__PURE__ */ L({ default: () => Pn }), Pn = Mn, Fn = new Headers({
|
|
2061
2054
|
"Content-Type": "application/json",
|
|
2062
2055
|
token: localStorage.getItem("TOKEN") || ""
|
|
2063
2056
|
});
|
|
2064
|
-
async function
|
|
2065
|
-
let n = `${
|
|
2057
|
+
async function In(e, t) {
|
|
2058
|
+
let n = `${mn}${e}`;
|
|
2066
2059
|
if (t) {
|
|
2067
2060
|
let e = new URLSearchParams(t).toString();
|
|
2068
2061
|
e && (n = `${n}?${e}`);
|
|
2069
2062
|
}
|
|
2070
2063
|
return (await fetch(n, {
|
|
2071
|
-
headers:
|
|
2064
|
+
headers: Fn,
|
|
2072
2065
|
method: "GET"
|
|
2073
2066
|
})).json();
|
|
2074
2067
|
}
|
|
2075
|
-
async function
|
|
2076
|
-
return (await fetch(`${
|
|
2077
|
-
headers:
|
|
2068
|
+
async function Ln(e, t) {
|
|
2069
|
+
return (await fetch(`${mn}${e}`, {
|
|
2070
|
+
headers: Fn,
|
|
2078
2071
|
method: "POST",
|
|
2079
2072
|
body: JSON.stringify(t)
|
|
2080
2073
|
})).json();
|
|
2081
2074
|
}
|
|
2082
|
-
async function
|
|
2083
|
-
return (await fetch(`${
|
|
2084
|
-
headers:
|
|
2075
|
+
async function Rn(e, t) {
|
|
2076
|
+
return (await fetch(`${mn}${e}`, {
|
|
2077
|
+
headers: Fn,
|
|
2085
2078
|
method: "POST",
|
|
2086
2079
|
body: JSON.stringify(t)
|
|
2087
2080
|
})).blob();
|
|
2088
2081
|
}
|
|
2089
|
-
var
|
|
2090
|
-
get:
|
|
2091
|
-
post:
|
|
2092
|
-
blob:
|
|
2082
|
+
var zn = {
|
|
2083
|
+
get: In,
|
|
2084
|
+
post: Ln,
|
|
2085
|
+
blob: Rn
|
|
2093
2086
|
};
|
|
2094
2087
|
//#endregion
|
|
2095
2088
|
//#region src/hooks/useFetch.ts
|
|
2096
|
-
function
|
|
2089
|
+
function Bn(e, t = {}) {
|
|
2097
2090
|
let { immediate: n = !0, method: r = "GET", onBefore: i, onSuccess: a, onError: o, onFinally: s, ...c } = t, l = localStorage.getItem("TOKEN"), u = {
|
|
2098
2091
|
method: r,
|
|
2099
2092
|
headers: new Headers({
|
|
@@ -2107,7 +2100,7 @@ function Vn(e, t = {}) {
|
|
|
2107
2100
|
g = !0, d.value = !0, m.value = null;
|
|
2108
2101
|
try {
|
|
2109
2102
|
b = JSON.stringify(te(h)), x = p(t.ready) ? t.ready.value : t.ready ?? !0;
|
|
2110
|
-
let n =
|
|
2103
|
+
let n = mn + e;
|
|
2111
2104
|
if (i?.(u) === !1) return Promise.reject(/* @__PURE__ */ Error("请求被 onBefore 钩子取消"));
|
|
2112
2105
|
if (r === "GET") {
|
|
2113
2106
|
let e = new URLSearchParams(te(h)).toString();
|
|
@@ -2145,7 +2138,7 @@ function Vn(e, t = {}) {
|
|
|
2145
2138
|
}
|
|
2146
2139
|
//#endregion
|
|
2147
2140
|
//#region src/hooks/useTable/default.ts
|
|
2148
|
-
function
|
|
2141
|
+
function Vn(e, t) {
|
|
2149
2142
|
let n = C({
|
|
2150
2143
|
ignoreAttrs: [
|
|
2151
2144
|
"tableName",
|
|
@@ -2169,7 +2162,7 @@ function Hn(e, t) {
|
|
|
2169
2162
|
data: r,
|
|
2170
2163
|
pagination: i
|
|
2171
2164
|
};
|
|
2172
|
-
let s =
|
|
2165
|
+
let s = Bn(e, {
|
|
2173
2166
|
...t,
|
|
2174
2167
|
defaultParams: o,
|
|
2175
2168
|
onSuccess: (e) => {
|
|
@@ -2211,8 +2204,8 @@ function Hn(e, t) {
|
|
|
2211
2204
|
}
|
|
2212
2205
|
//#endregion
|
|
2213
2206
|
//#region src/hooks/useTable/common.ts
|
|
2214
|
-
function
|
|
2215
|
-
let { defaultParams: r, ...i } = n, a = p(r) ? r : w(r || {}), o =
|
|
2207
|
+
function Hn(e, n) {
|
|
2208
|
+
let { defaultParams: r, ...i } = n, a = p(r) ? r : w(r || {}), o = Vn(e, {
|
|
2216
2209
|
...i,
|
|
2217
2210
|
ready: t(() => {
|
|
2218
2211
|
let e = p(n.ready) ? n.ready.value : n.ready, t = !!a.value?.tableId;
|
|
@@ -2244,27 +2237,27 @@ function Un(e, n) {
|
|
|
2244
2237
|
}
|
|
2245
2238
|
async function c(e) {
|
|
2246
2239
|
let t = M(a);
|
|
2247
|
-
return
|
|
2240
|
+
return zn.post("/common/insert", {
|
|
2248
2241
|
params: { ...e },
|
|
2249
2242
|
tableId: t?.tableId
|
|
2250
2243
|
});
|
|
2251
2244
|
}
|
|
2252
2245
|
async function l(e) {
|
|
2253
2246
|
let t = M(a);
|
|
2254
|
-
return
|
|
2247
|
+
return zn.post("/common/update", {
|
|
2255
2248
|
params: { ...e },
|
|
2256
2249
|
tableId: t?.tableId
|
|
2257
2250
|
});
|
|
2258
2251
|
}
|
|
2259
2252
|
async function u(e) {
|
|
2260
2253
|
let t = M(a);
|
|
2261
|
-
return
|
|
2254
|
+
return zn.post("/common/delete", {
|
|
2262
2255
|
idList: e,
|
|
2263
2256
|
tableId: t?.tableId
|
|
2264
2257
|
});
|
|
2265
2258
|
}
|
|
2266
2259
|
async function d(t) {
|
|
2267
|
-
let { title: n = "export" } = t || {}, r = M(a), i = await
|
|
2260
|
+
let { title: n = "export" } = t || {}, r = M(a), i = await zn.blob(e ?? "/common/exportExcel", {
|
|
2268
2261
|
tableId: r?.tableId,
|
|
2269
2262
|
type: "all"
|
|
2270
2263
|
}), o = new Blob([i]), s = document.createElement("a");
|
|
@@ -2285,8 +2278,8 @@ function Un(e, n) {
|
|
|
2285
2278
|
}
|
|
2286
2279
|
//#endregion
|
|
2287
2280
|
//#region src/hooks/useTable/index.ts
|
|
2288
|
-
function
|
|
2289
|
-
return e?.includes("/common/pageQuery") || t?.template === "common" ?
|
|
2281
|
+
function Un(e, t) {
|
|
2282
|
+
return e?.includes("/common/pageQuery") || t?.template === "common" ? Hn(e, t) : Vn(e, t);
|
|
2290
2283
|
}
|
|
2291
2284
|
//#endregion
|
|
2292
2285
|
//#region src/hooks/useRoute.ts
|
|
@@ -2296,7 +2289,7 @@ var H = C({
|
|
|
2296
2289
|
path: "",
|
|
2297
2290
|
mode: "hash"
|
|
2298
2291
|
});
|
|
2299
|
-
function
|
|
2292
|
+
function Wn() {
|
|
2300
2293
|
if (H.hash = window.location.hash, H.mode = H.hash.startsWith("#/") || H.hash.startsWith("#!") ? "hash" : "history", H.mode === "hash") {
|
|
2301
2294
|
let e = H.hash.startsWith("#") ? H.hash.slice(1) : H.hash;
|
|
2302
2295
|
e.startsWith("/") || (e = "/" + e);
|
|
@@ -2304,8 +2297,8 @@ function Gn() {
|
|
|
2304
2297
|
t === -1 ? (H.path = e, H.query = {}) : (H.path = e.slice(0, t), H.query = Object.fromEntries(new URLSearchParams(e.slice(t + 1))));
|
|
2305
2298
|
} else H.path = window.location.pathname, H.query = Object.fromEntries(new URLSearchParams(window.location.search));
|
|
2306
2299
|
}
|
|
2307
|
-
|
|
2308
|
-
function
|
|
2300
|
+
Wn(), window.addEventListener("popstate", Wn);
|
|
2301
|
+
function Gn(e) {
|
|
2309
2302
|
let t = {}, n = e.split("/").filter(Boolean);
|
|
2310
2303
|
for (let e = 0; e < n.length - 1; e += 2) {
|
|
2311
2304
|
let r = n[e]?.replace(/^:/, "") || "", i = n[e + 1] || "";
|
|
@@ -2313,22 +2306,22 @@ function Kn(e) {
|
|
|
2313
2306
|
}
|
|
2314
2307
|
return t;
|
|
2315
2308
|
}
|
|
2316
|
-
function
|
|
2309
|
+
function Kn() {
|
|
2317
2310
|
return {
|
|
2318
2311
|
hash: H.hash,
|
|
2319
2312
|
query: H.query,
|
|
2320
2313
|
path: H.path,
|
|
2321
2314
|
mode: H.mode,
|
|
2322
2315
|
fullPath: window.location.href,
|
|
2323
|
-
params:
|
|
2316
|
+
params: Gn(H.path)
|
|
2324
2317
|
};
|
|
2325
2318
|
}
|
|
2326
|
-
function
|
|
2319
|
+
function qn() {
|
|
2327
2320
|
function e(e) {
|
|
2328
|
-
window.history.pushState({}, "", e),
|
|
2321
|
+
window.history.pushState({}, "", e), Wn();
|
|
2329
2322
|
}
|
|
2330
2323
|
function t(e) {
|
|
2331
|
-
window.history.replaceState({}, "", e),
|
|
2324
|
+
window.history.replaceState({}, "", e), Wn();
|
|
2332
2325
|
}
|
|
2333
2326
|
function n() {
|
|
2334
2327
|
window.history.back();
|
|
@@ -2341,11 +2334,11 @@ function Jn() {
|
|
|
2341
2334
|
}
|
|
2342
2335
|
//#endregion
|
|
2343
2336
|
//#region src/hooks/useDictionary.ts
|
|
2344
|
-
function
|
|
2345
|
-
return
|
|
2337
|
+
function Jn(e) {
|
|
2338
|
+
return zn.post("/dictionary/mergeDictionaryValue", e);
|
|
2346
2339
|
}
|
|
2347
|
-
function
|
|
2348
|
-
let { page: t = 1, pageSize: n = 10 } = e || {}, r = A([]), i = A([]), { loading: a, execute: o } =
|
|
2340
|
+
function Yn(e) {
|
|
2341
|
+
let { page: t = 1, pageSize: n = 10 } = e || {}, r = A([]), i = A([]), { loading: a, execute: o } = Bn("/dictionary/pageQueryDictionaryValue", {
|
|
2349
2342
|
method: "POST",
|
|
2350
2343
|
defaultParams: {
|
|
2351
2344
|
dictionaryCode: e.code,
|
|
@@ -2361,7 +2354,7 @@ function Xn(e) {
|
|
|
2361
2354
|
}
|
|
2362
2355
|
});
|
|
2363
2356
|
async function s(e) {
|
|
2364
|
-
let t = await
|
|
2357
|
+
let t = await Jn(e);
|
|
2365
2358
|
return t.code === "ok" ? t : z.Message.error(t.message);
|
|
2366
2359
|
}
|
|
2367
2360
|
return C({
|
|
@@ -2374,82 +2367,82 @@ function Xn(e) {
|
|
|
2374
2367
|
}
|
|
2375
2368
|
//#endregion
|
|
2376
2369
|
//#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/util.js
|
|
2377
|
-
var
|
|
2378
|
-
function
|
|
2379
|
-
return
|
|
2370
|
+
var Xn = "0123456789abcdefghijklmnopqrstuvwxyz";
|
|
2371
|
+
function Zn(e) {
|
|
2372
|
+
return Xn.charAt(e);
|
|
2380
2373
|
}
|
|
2381
|
-
function
|
|
2374
|
+
function Qn(e, t) {
|
|
2382
2375
|
return e & t;
|
|
2383
2376
|
}
|
|
2384
|
-
function
|
|
2377
|
+
function $n(e, t) {
|
|
2385
2378
|
return e | t;
|
|
2386
2379
|
}
|
|
2387
|
-
function
|
|
2380
|
+
function er(e, t) {
|
|
2388
2381
|
return e ^ t;
|
|
2389
2382
|
}
|
|
2390
|
-
function
|
|
2383
|
+
function tr(e, t) {
|
|
2391
2384
|
return e & ~t;
|
|
2392
2385
|
}
|
|
2393
|
-
function
|
|
2386
|
+
function nr(e) {
|
|
2394
2387
|
if (e == 0) return -1;
|
|
2395
2388
|
var t = 0;
|
|
2396
2389
|
return e & 65535 || (e >>= 16, t += 16), e & 255 || (e >>= 8, t += 8), e & 15 || (e >>= 4, t += 4), e & 3 || (e >>= 2, t += 2), e & 1 || ++t, t;
|
|
2397
2390
|
}
|
|
2398
|
-
function
|
|
2391
|
+
function rr(e) {
|
|
2399
2392
|
for (var t = 0; e != 0;) e &= e - 1, ++t;
|
|
2400
2393
|
return t;
|
|
2401
2394
|
}
|
|
2402
2395
|
//#endregion
|
|
2403
2396
|
//#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/base64.js
|
|
2404
|
-
var
|
|
2405
|
-
function
|
|
2397
|
+
var ir = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", ar = "=";
|
|
2398
|
+
function or(e) {
|
|
2406
2399
|
var t, n, r = "";
|
|
2407
|
-
for (t = 0; t + 3 <= e.length; t += 3) n = parseInt(e.substring(t, t + 3), 16), r +=
|
|
2408
|
-
for (t + 1 == e.length ? (n = parseInt(e.substring(t, t + 1), 16), r +=
|
|
2400
|
+
for (t = 0; t + 3 <= e.length; t += 3) n = parseInt(e.substring(t, t + 3), 16), r += ir.charAt(n >> 6) + ir.charAt(n & 63);
|
|
2401
|
+
for (t + 1 == e.length ? (n = parseInt(e.substring(t, t + 1), 16), r += ir.charAt(n << 2)) : t + 2 == e.length && (n = parseInt(e.substring(t, t + 2), 16), r += ir.charAt(n >> 2) + ir.charAt((n & 3) << 4)); (r.length & 3) > 0;) r += ar;
|
|
2409
2402
|
return r;
|
|
2410
2403
|
}
|
|
2411
|
-
function
|
|
2404
|
+
function sr(e) {
|
|
2412
2405
|
var t = "", n, r = 0, i = 0;
|
|
2413
|
-
for (n = 0; n < e.length && e.charAt(n) !=
|
|
2414
|
-
var a =
|
|
2415
|
-
a < 0 || (r == 0 ? (t +=
|
|
2406
|
+
for (n = 0; n < e.length && e.charAt(n) != ar; ++n) {
|
|
2407
|
+
var a = ir.indexOf(e.charAt(n));
|
|
2408
|
+
a < 0 || (r == 0 ? (t += Zn(a >> 2), i = a & 3, r = 1) : r == 1 ? (t += Zn(i << 2 | a >> 4), i = a & 15, r = 2) : r == 2 ? (t += Zn(i), t += Zn(a >> 2), i = a & 3, r = 3) : (t += Zn(i << 2 | a >> 4), t += Zn(a & 15), r = 0));
|
|
2416
2409
|
}
|
|
2417
|
-
return r == 1 && (t +=
|
|
2410
|
+
return r == 1 && (t += Zn(i << 2)), t;
|
|
2418
2411
|
}
|
|
2419
2412
|
//#endregion
|
|
2420
2413
|
//#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/asn1js/hex.js
|
|
2421
|
-
var
|
|
2414
|
+
var cr, lr = { decode: function(e) {
|
|
2422
2415
|
var t;
|
|
2423
|
-
if (
|
|
2416
|
+
if (cr === void 0) {
|
|
2424
2417
|
var n = "0123456789ABCDEF", r = " \f\n\r \xA0\u2028\u2029";
|
|
2425
|
-
for (
|
|
2426
|
-
for (n = n.toLowerCase(), t = 10; t < 16; ++t)
|
|
2427
|
-
for (t = 0; t < r.length; ++t)
|
|
2418
|
+
for (cr = {}, t = 0; t < 16; ++t) cr[n.charAt(t)] = t;
|
|
2419
|
+
for (n = n.toLowerCase(), t = 10; t < 16; ++t) cr[n.charAt(t)] = t;
|
|
2420
|
+
for (t = 0; t < r.length; ++t) cr[r.charAt(t)] = -1;
|
|
2428
2421
|
}
|
|
2429
2422
|
var i = [], a = 0, o = 0;
|
|
2430
2423
|
for (t = 0; t < e.length; ++t) {
|
|
2431
2424
|
var s = e.charAt(t);
|
|
2432
2425
|
if (s == "=") break;
|
|
2433
|
-
if (s =
|
|
2426
|
+
if (s = cr[s], s != -1) {
|
|
2434
2427
|
if (s === void 0) throw Error("Illegal character at offset " + t);
|
|
2435
2428
|
a |= s, ++o >= 2 ? (i[i.length] = a, a = 0, o = 0) : a <<= 4;
|
|
2436
2429
|
}
|
|
2437
2430
|
}
|
|
2438
2431
|
if (o) throw Error("Hex encoding incomplete: 4 bits missing");
|
|
2439
2432
|
return i;
|
|
2440
|
-
} },
|
|
2433
|
+
} }, ur, dr = {
|
|
2441
2434
|
decode: function(e) {
|
|
2442
2435
|
var t;
|
|
2443
|
-
if (
|
|
2436
|
+
if (ur === void 0) {
|
|
2444
2437
|
var n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", r = "= \f\n\r \xA0\u2028\u2029";
|
|
2445
|
-
for (
|
|
2446
|
-
for (
|
|
2438
|
+
for (ur = Object.create(null), t = 0; t < 64; ++t) ur[n.charAt(t)] = t;
|
|
2439
|
+
for (ur["-"] = 62, ur._ = 63, t = 0; t < r.length; ++t) ur[r.charAt(t)] = -1;
|
|
2447
2440
|
}
|
|
2448
2441
|
var i = [], a = 0, o = 0;
|
|
2449
2442
|
for (t = 0; t < e.length; ++t) {
|
|
2450
2443
|
var s = e.charAt(t);
|
|
2451
2444
|
if (s == "=") break;
|
|
2452
|
-
if (s =
|
|
2445
|
+
if (s = ur[s], s != -1) {
|
|
2453
2446
|
if (s === void 0) throw Error("Illegal character at offset " + t);
|
|
2454
2447
|
a |= s, ++o >= 4 ? (i[i.length] = a >> 16, i[i.length] = a >> 8 & 255, i[i.length] = a & 255, a = 0, o = 0) : a <<= 6;
|
|
2455
2448
|
}
|
|
@@ -2467,40 +2460,40 @@ var lr, ur = { decode: function(e) {
|
|
|
2467
2460
|
},
|
|
2468
2461
|
re: /-----BEGIN [^-]+-----([A-Za-z0-9+\/=\s]+)-----END [^-]+-----|begin-base64[^\n]+\n([A-Za-z0-9+\/=\s]+)====/,
|
|
2469
2462
|
unarmor: function(e) {
|
|
2470
|
-
var t =
|
|
2463
|
+
var t = dr.re.exec(e);
|
|
2471
2464
|
if (t) if (t[1]) e = t[1];
|
|
2472
2465
|
else if (t[2]) e = t[2];
|
|
2473
2466
|
else throw Error("RegExp out of sync");
|
|
2474
|
-
return
|
|
2467
|
+
return dr.decode(e);
|
|
2475
2468
|
}
|
|
2476
|
-
},
|
|
2469
|
+
}, fr = 0x9184e72a000, pr = function() {
|
|
2477
2470
|
function e(e) {
|
|
2478
2471
|
this.buf = [+e || 0];
|
|
2479
2472
|
}
|
|
2480
2473
|
return e.prototype.mulAdd = function(e, t) {
|
|
2481
2474
|
var n = this.buf, r = n.length, i, a;
|
|
2482
|
-
for (i = 0; i < r; ++i) a = n[i] * e + t, a <
|
|
2475
|
+
for (i = 0; i < r; ++i) a = n[i] * e + t, a < fr ? t = 0 : (t = 0 | a / fr, a -= t * fr), n[i] = a;
|
|
2483
2476
|
t > 0 && (n[i] = t);
|
|
2484
2477
|
}, e.prototype.sub = function(e) {
|
|
2485
2478
|
var t = this.buf, n = t.length, r, i;
|
|
2486
|
-
for (r = 0; r < n; ++r) i = t[r] - e, i < 0 ? (i +=
|
|
2479
|
+
for (r = 0; r < n; ++r) i = t[r] - e, i < 0 ? (i += fr, e = 1) : e = 0, t[r] = i;
|
|
2487
2480
|
for (; t[t.length - 1] === 0;) t.pop();
|
|
2488
2481
|
}, e.prototype.toString = function(e) {
|
|
2489
2482
|
if ((e || 10) != 10) throw Error("only base 10 is supported");
|
|
2490
|
-
for (var t = this.buf, n = t[t.length - 1].toString(), r = t.length - 2; r >= 0; --r) n += (
|
|
2483
|
+
for (var t = this.buf, n = t[t.length - 1].toString(), r = t.length - 2; r >= 0; --r) n += (fr + t[r]).toString().substring(1);
|
|
2491
2484
|
return n;
|
|
2492
2485
|
}, e.prototype.valueOf = function() {
|
|
2493
|
-
for (var e = this.buf, t = 0, n = e.length - 1; n >= 0; --n) t = t *
|
|
2486
|
+
for (var e = this.buf, t = 0, n = e.length - 1; n >= 0; --n) t = t * fr + e[n];
|
|
2494
2487
|
return t;
|
|
2495
2488
|
}, e.prototype.simplify = function() {
|
|
2496
2489
|
var e = this.buf;
|
|
2497
2490
|
return e.length == 1 ? e[0] : this;
|
|
2498
2491
|
}, e;
|
|
2499
|
-
}(),
|
|
2500
|
-
function
|
|
2501
|
-
return e.length > t && (e = e.substring(0, t) +
|
|
2492
|
+
}(), mr = "…", hr = /^(\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/, gr = /^(\d\d\d\d)(0[1-9]|1[0-2])(0[1-9]|[12]\d|3[01])([01]\d|2[0-3])(?:([0-5]\d)(?:([0-5]\d)(?:[.,](\d{1,3}))?)?)?(Z|[-+](?:[0]\d|1[0-2])([0-5]\d)?)?$/;
|
|
2493
|
+
function _r(e, t) {
|
|
2494
|
+
return e.length > t && (e = e.substring(0, t) + mr), e;
|
|
2502
2495
|
}
|
|
2503
|
-
var
|
|
2496
|
+
var vr = function() {
|
|
2504
2497
|
function e(t, n) {
|
|
2505
2498
|
this.hexDigits = "0123456789ABCDEF", t instanceof e ? (this.enc = t.enc, this.pos = t.pos) : (this.enc = t, this.pos = n);
|
|
2506
2499
|
}
|
|
@@ -2539,7 +2532,7 @@ var yr = function() {
|
|
|
2539
2532
|
for (var n = "", r, i, a = e; a < t;) r = this.get(a++), i = this.get(a++), n += String.fromCharCode(r << 8 | i);
|
|
2540
2533
|
return n;
|
|
2541
2534
|
}, e.prototype.parseTime = function(e, t, n) {
|
|
2542
|
-
var r = this.parseStringISO(e, t), i = (n ?
|
|
2535
|
+
var r = this.parseStringISO(e, t), i = (n ? hr : gr).exec(r);
|
|
2543
2536
|
return i ? (n && (i[1] = +i[1], i[1] += +i[1] < 70 ? 2e3 : 1900), r = i[1] + "-" + i[2] + "-" + i[3] + " " + i[4], i[5] && (r += ":" + i[5], i[6] && (r += ":" + i[6], i[7] && (r += "." + i[7]))), i[8] && (r += " UTC", i[8] != "Z" && (r += i[8], i[9] && (r += ":" + i[9]))), r) : "Unrecognized time: " + r;
|
|
2544
2537
|
}, e.prototype.parseInteger = function(e, t) {
|
|
2545
2538
|
for (var n = this.get(e), r = n > 127, i = r ? 255 : 0, a, o = ""; n == i && ++e < t;) n = this.get(e);
|
|
@@ -2549,39 +2542,39 @@ var yr = function() {
|
|
|
2549
2542
|
o = "(" + a + " bit)\n";
|
|
2550
2543
|
}
|
|
2551
2544
|
r && (n -= 256);
|
|
2552
|
-
for (var s = new
|
|
2545
|
+
for (var s = new pr(n), c = e + 1; c < t; ++c) s.mulAdd(256, this.get(c));
|
|
2553
2546
|
return o + s.toString();
|
|
2554
2547
|
}, e.prototype.parseBitString = function(e, t, n) {
|
|
2555
2548
|
for (var r = this.get(e), i = "(" + ((t - e - 1 << 3) - r) + " bit)\n", a = "", o = e + 1; o < t; ++o) {
|
|
2556
2549
|
for (var s = this.get(o), c = o == t - 1 ? r : 0, l = 7; l >= c; --l) a += s >> l & 1 ? "1" : "0";
|
|
2557
|
-
if (a.length > n) return i +
|
|
2550
|
+
if (a.length > n) return i + _r(a, n);
|
|
2558
2551
|
}
|
|
2559
2552
|
return i + a;
|
|
2560
2553
|
}, e.prototype.parseOctetString = function(e, t, n) {
|
|
2561
|
-
if (this.isASCII(e, t)) return
|
|
2554
|
+
if (this.isASCII(e, t)) return _r(this.parseStringISO(e, t), n);
|
|
2562
2555
|
var r = t - e, i = "(" + r + " byte)\n";
|
|
2563
2556
|
n /= 2, r > n && (t = e + n);
|
|
2564
2557
|
for (var a = e; a < t; ++a) i += this.hexByte(this.get(a));
|
|
2565
|
-
return r > n && (i +=
|
|
2558
|
+
return r > n && (i += mr), i;
|
|
2566
2559
|
}, e.prototype.parseOID = function(e, t, n) {
|
|
2567
|
-
for (var r = "", i = new
|
|
2560
|
+
for (var r = "", i = new pr(), a = 0, o = e; o < t; ++o) {
|
|
2568
2561
|
var s = this.get(o);
|
|
2569
2562
|
if (i.mulAdd(128, s & 127), a += 7, !(s & 128)) {
|
|
2570
|
-
if (r === "") if (i = i.simplify(), i instanceof
|
|
2563
|
+
if (r === "") if (i = i.simplify(), i instanceof pr) i.sub(80), r = "2." + i.toString();
|
|
2571
2564
|
else {
|
|
2572
2565
|
var c = i < 80 ? i < 40 ? 0 : 1 : 2;
|
|
2573
2566
|
r = c + "." + (i - c * 40);
|
|
2574
2567
|
}
|
|
2575
2568
|
else r += "." + i.toString();
|
|
2576
|
-
if (r.length > n) return
|
|
2577
|
-
i = new
|
|
2569
|
+
if (r.length > n) return _r(r, n);
|
|
2570
|
+
i = new pr(), a = 0;
|
|
2578
2571
|
}
|
|
2579
2572
|
}
|
|
2580
2573
|
return a > 0 && (r += ".incomplete"), r;
|
|
2581
2574
|
}, e;
|
|
2582
|
-
}(),
|
|
2575
|
+
}(), yr = function() {
|
|
2583
2576
|
function e(e, t, n, r, i) {
|
|
2584
|
-
if (!(r instanceof
|
|
2577
|
+
if (!(r instanceof br)) throw Error("Invalid tag value.");
|
|
2585
2578
|
this.stream = e, this.header = t, this.length = n, this.tag = r, this.sub = i;
|
|
2586
2579
|
}
|
|
2587
2580
|
return e.prototype.typeName = function() {
|
|
@@ -2634,14 +2627,14 @@ var yr = function() {
|
|
|
2634
2627
|
case 6: return this.stream.parseOID(t, t + n, e);
|
|
2635
2628
|
case 16:
|
|
2636
2629
|
case 17: return this.sub === null ? "(no elem)" : "(" + this.sub.length + " elem)";
|
|
2637
|
-
case 12: return
|
|
2630
|
+
case 12: return _r(this.stream.parseStringUTF(t, t + n), e);
|
|
2638
2631
|
case 18:
|
|
2639
2632
|
case 19:
|
|
2640
2633
|
case 20:
|
|
2641
2634
|
case 21:
|
|
2642
2635
|
case 22:
|
|
2643
|
-
case 26: return
|
|
2644
|
-
case 30: return
|
|
2636
|
+
case 26: return _r(this.stream.parseStringISO(t, t + n), e);
|
|
2637
|
+
case 30: return _r(this.stream.parseStringBMP(t, t + n), e);
|
|
2645
2638
|
case 23:
|
|
2646
2639
|
case 24: return this.stream.parseTime(t, t + n, this.tag.tagNumber == 23);
|
|
2647
2640
|
}
|
|
@@ -2676,7 +2669,7 @@ var yr = function() {
|
|
|
2676
2669
|
var e = this.toHexString(), t = this.header * 2, n = this.length * 2;
|
|
2677
2670
|
return e.substring(t, t + n);
|
|
2678
2671
|
}, e.decode = function(t) {
|
|
2679
|
-
var n = t instanceof
|
|
2672
|
+
var n = t instanceof vr ? t : new vr(t, 0), r = new vr(n), i = new br(n), a = e.decodeLength(n), o = n.pos, s = o - r.pos, c = null, l = function() {
|
|
2680
2673
|
var t = [];
|
|
2681
2674
|
if (a !== null) {
|
|
2682
2675
|
for (var r = o + a; n.pos < r;) t[t.length] = e.decode(n);
|
|
@@ -2707,11 +2700,11 @@ var yr = function() {
|
|
|
2707
2700
|
}
|
|
2708
2701
|
return new e(r, s, a, i, c);
|
|
2709
2702
|
}, e;
|
|
2710
|
-
}(),
|
|
2703
|
+
}(), br = function() {
|
|
2711
2704
|
function e(e) {
|
|
2712
2705
|
var t = e.get();
|
|
2713
2706
|
if (this.tagClass = t >> 6, this.tagConstructed = (t & 32) != 0, this.tagNumber = t & 31, this.tagNumber == 31) {
|
|
2714
|
-
var n = new
|
|
2707
|
+
var n = new pr();
|
|
2715
2708
|
do
|
|
2716
2709
|
t = e.get(), n.mulAdd(128, t & 127);
|
|
2717
2710
|
while (t & 128);
|
|
@@ -2723,7 +2716,7 @@ var yr = function() {
|
|
|
2723
2716
|
}, e.prototype.isEOC = function() {
|
|
2724
2717
|
return this.tagClass === 0 && this.tagNumber === 0;
|
|
2725
2718
|
}, e;
|
|
2726
|
-
}(),
|
|
2719
|
+
}(), xr, Sr = !0, U = [
|
|
2727
2720
|
2,
|
|
2728
2721
|
3,
|
|
2729
2722
|
5,
|
|
@@ -2892,7 +2885,7 @@ var yr = function() {
|
|
|
2892
2885
|
983,
|
|
2893
2886
|
991,
|
|
2894
2887
|
997
|
|
2895
|
-
],
|
|
2888
|
+
], Cr = (1 << 26) / U[U.length - 1], W = function() {
|
|
2896
2889
|
function e(e, t, n) {
|
|
2897
2890
|
e != null && (typeof e == "number" ? this.fromNumber(e, t, n) : t == null && typeof e != "string" ? this.fromString(e, 256) : this.fromString(e, t));
|
|
2898
2891
|
}
|
|
@@ -2906,7 +2899,7 @@ var yr = function() {
|
|
|
2906
2899
|
else if (e == 4) t = 2;
|
|
2907
2900
|
else return this.toRadix(e);
|
|
2908
2901
|
var n = (1 << t) - 1, r, i = !1, a = "", o = this.t, s = this.DB - o * this.DB % t;
|
|
2909
|
-
if (o-- > 0) for (s < this.DB && (r = this[o] >> s) > 0 && (i = !0, a =
|
|
2902
|
+
if (o-- > 0) for (s < this.DB && (r = this[o] >> s) > 0 && (i = !0, a = Zn(r)); o >= 0;) s < t ? (r = (this[o] & (1 << s) - 1) << t - s, r |= this[--o] >> (s += this.DB - t)) : (r = this[o] >> (s -= t) & n, s <= 0 && (s += this.DB, --o)), r > 0 && (i = !0), i && (a += Zn(r));
|
|
2910
2903
|
return i ? a : "0";
|
|
2911
2904
|
}, e.prototype.negate = function() {
|
|
2912
2905
|
var t = G();
|
|
@@ -2921,12 +2914,12 @@ var yr = function() {
|
|
|
2921
2914
|
for (; --n >= 0;) if ((t = this[n] - e[n]) != 0) return t;
|
|
2922
2915
|
return 0;
|
|
2923
2916
|
}, e.prototype.bitLength = function() {
|
|
2924
|
-
return this.t <= 0 ? 0 : this.DB * (this.t - 1) +
|
|
2917
|
+
return this.t <= 0 ? 0 : this.DB * (this.t - 1) + Pr(this[this.t - 1] ^ this.s & this.DM);
|
|
2925
2918
|
}, e.prototype.mod = function(t) {
|
|
2926
2919
|
var n = G();
|
|
2927
2920
|
return this.abs().divRemTo(t, null, n), this.s < 0 && n.compareTo(e.ZERO) > 0 && t.subTo(n, n), n;
|
|
2928
2921
|
}, e.prototype.modPowInt = function(e, t) {
|
|
2929
|
-
var n = e < 256 || t.isEven() ? new
|
|
2922
|
+
var n = e < 256 || t.isEven() ? new Tr(t) : new Er(t);
|
|
2930
2923
|
return this.exp(e, n);
|
|
2931
2924
|
}, e.prototype.clone = function() {
|
|
2932
2925
|
var e = G();
|
|
@@ -2958,16 +2951,16 @@ var yr = function() {
|
|
|
2958
2951
|
return this.compareTo(e) > 0 ? this : e;
|
|
2959
2952
|
}, e.prototype.and = function(e) {
|
|
2960
2953
|
var t = G();
|
|
2961
|
-
return this.bitwiseTo(e,
|
|
2954
|
+
return this.bitwiseTo(e, Qn, t), t;
|
|
2962
2955
|
}, e.prototype.or = function(e) {
|
|
2963
2956
|
var t = G();
|
|
2964
|
-
return this.bitwiseTo(e,
|
|
2957
|
+
return this.bitwiseTo(e, $n, t), t;
|
|
2965
2958
|
}, e.prototype.xor = function(e) {
|
|
2966
2959
|
var t = G();
|
|
2967
|
-
return this.bitwiseTo(e,
|
|
2960
|
+
return this.bitwiseTo(e, er, t), t;
|
|
2968
2961
|
}, e.prototype.andNot = function(e) {
|
|
2969
2962
|
var t = G();
|
|
2970
|
-
return this.bitwiseTo(e,
|
|
2963
|
+
return this.bitwiseTo(e, tr, t), t;
|
|
2971
2964
|
}, e.prototype.not = function() {
|
|
2972
2965
|
for (var e = G(), t = 0; t < this.t; ++t) e[t] = this.DM & ~this[t];
|
|
2973
2966
|
return e.t = this.t, e.s = ~this.s, e;
|
|
@@ -2978,20 +2971,20 @@ var yr = function() {
|
|
|
2978
2971
|
var t = G();
|
|
2979
2972
|
return e < 0 ? this.lShiftTo(-e, t) : this.rShiftTo(e, t), t;
|
|
2980
2973
|
}, e.prototype.getLowestSetBit = function() {
|
|
2981
|
-
for (var e = 0; e < this.t; ++e) if (this[e] != 0) return e * this.DB +
|
|
2974
|
+
for (var e = 0; e < this.t; ++e) if (this[e] != 0) return e * this.DB + nr(this[e]);
|
|
2982
2975
|
return this.s < 0 ? this.t * this.DB : -1;
|
|
2983
2976
|
}, e.prototype.bitCount = function() {
|
|
2984
|
-
for (var e = 0, t = this.s & this.DM, n = 0; n < this.t; ++n) e +=
|
|
2977
|
+
for (var e = 0, t = this.s & this.DM, n = 0; n < this.t; ++n) e += rr(this[n] ^ t);
|
|
2985
2978
|
return e;
|
|
2986
2979
|
}, e.prototype.testBit = function(e) {
|
|
2987
2980
|
var t = Math.floor(e / this.DB);
|
|
2988
2981
|
return t >= this.t ? this.s != 0 : (this[t] & 1 << e % this.DB) != 0;
|
|
2989
2982
|
}, e.prototype.setBit = function(e) {
|
|
2990
|
-
return this.changeBit(e,
|
|
2983
|
+
return this.changeBit(e, $n);
|
|
2991
2984
|
}, e.prototype.clearBit = function(e) {
|
|
2992
|
-
return this.changeBit(e, nr);
|
|
2993
|
-
}, e.prototype.flipBit = function(e) {
|
|
2994
2985
|
return this.changeBit(e, tr);
|
|
2986
|
+
}, e.prototype.flipBit = function(e) {
|
|
2987
|
+
return this.changeBit(e, er);
|
|
2995
2988
|
}, e.prototype.add = function(e) {
|
|
2996
2989
|
var t = G();
|
|
2997
2990
|
return this.addTo(e, t), t;
|
|
@@ -3011,16 +3004,16 @@ var yr = function() {
|
|
|
3011
3004
|
var t = G(), n = G();
|
|
3012
3005
|
return this.divRemTo(e, t, n), [t, n];
|
|
3013
3006
|
}, e.prototype.modPow = function(e, t) {
|
|
3014
|
-
var n = e.bitLength(), r, i =
|
|
3007
|
+
var n = e.bitLength(), r, i = Nr(1), a;
|
|
3015
3008
|
if (n <= 0) return i;
|
|
3016
|
-
r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, a = n < 8 ? new
|
|
3009
|
+
r = n < 18 ? 1 : n < 48 ? 3 : n < 144 ? 4 : n < 768 ? 5 : 6, a = n < 8 ? new Tr(t) : t.isEven() ? new Dr(t) : new Er(t);
|
|
3017
3010
|
var o = [], s = 3, c = r - 1, l = (1 << r) - 1;
|
|
3018
3011
|
if (o[1] = a.convert(this), r > 1) {
|
|
3019
3012
|
var u = G();
|
|
3020
3013
|
for (a.sqrTo(o[1], u); s <= l;) o[s] = G(), a.mulTo(u, o[s - 2], o[s]), s += 2;
|
|
3021
3014
|
}
|
|
3022
3015
|
var d = e.t - 1, f, p = !0, m = G(), h;
|
|
3023
|
-
for (n =
|
|
3016
|
+
for (n = Pr(e[d]) - 1; d >= 0;) {
|
|
3024
3017
|
for (n >= c ? f = e[d] >> n - c & l : (f = (e[d] & (1 << n + 1) - 1) << c - n, d > 0 && (f |= e[d - 1] >> this.DB + n - c)), s = r; !(f & 1);) f >>= 1, --s;
|
|
3025
3018
|
if ((n -= s) < 0 && (n += this.DB, --d), p) o[f].copyTo(i), p = !1;
|
|
3026
3019
|
else {
|
|
@@ -3033,7 +3026,7 @@ var yr = function() {
|
|
|
3033
3026
|
}, e.prototype.modInverse = function(t) {
|
|
3034
3027
|
var n = t.isEven();
|
|
3035
3028
|
if (this.isEven() && n || t.signum() == 0) return e.ZERO;
|
|
3036
|
-
for (var r = t.clone(), i = this.clone(), a =
|
|
3029
|
+
for (var r = t.clone(), i = this.clone(), a = Nr(1), o = Nr(0), s = Nr(0), c = Nr(1); r.signum() != 0;) {
|
|
3037
3030
|
for (; r.isEven();) r.rShiftTo(1, r), n ? ((!a.isEven() || !o.isEven()) && (a.addTo(this, a), o.subTo(t, o)), a.rShiftTo(1, a)) : o.isEven() || o.subTo(t, o), o.rShiftTo(1, o);
|
|
3038
3031
|
for (; i.isEven();) i.rShiftTo(1, i), n ? ((!s.isEven() || !c.isEven()) && (s.addTo(this, s), c.subTo(t, c)), s.rShiftTo(1, s)) : c.isEven() || c.subTo(t, c), c.rShiftTo(1, c);
|
|
3039
3032
|
r.compareTo(i) >= 0 ? (r.subTo(i, r), n && a.subTo(s, a), o.subTo(c, o)) : (i.subTo(r, i), n && s.subTo(a, s), c.subTo(o, c));
|
|
@@ -3044,7 +3037,7 @@ var yr = function() {
|
|
|
3044
3037
|
else return c;
|
|
3045
3038
|
return c.signum() < 0 ? c.add(t) : c;
|
|
3046
3039
|
}, e.prototype.pow = function(e) {
|
|
3047
|
-
return this.exp(e, new
|
|
3040
|
+
return this.exp(e, new wr());
|
|
3048
3041
|
}, e.prototype.gcd = function(e) {
|
|
3049
3042
|
var t = this.s < 0 ? this.negate() : this.clone(), n = e.s < 0 ? e.negate() : e.clone();
|
|
3050
3043
|
if (t.compareTo(n) < 0) {
|
|
@@ -3063,7 +3056,7 @@ var yr = function() {
|
|
|
3063
3056
|
}
|
|
3064
3057
|
if (n.isEven()) return !1;
|
|
3065
3058
|
for (t = 1; t < U.length;) {
|
|
3066
|
-
for (var r = U[t], i = t + 1; i < U.length && r <
|
|
3059
|
+
for (var r = U[t], i = t + 1; i < U.length && r < Cr;) r *= U[i++];
|
|
3067
3060
|
for (r = n.modInt(r); t < i;) if (r % U[t++] == 0) return !1;
|
|
3068
3061
|
}
|
|
3069
3062
|
return n.millerRabin(e);
|
|
@@ -3086,7 +3079,7 @@ var yr = function() {
|
|
|
3086
3079
|
}
|
|
3087
3080
|
this.t = 0, this.s = 0;
|
|
3088
3081
|
for (var i = t.length, a = !1, o = 0; --i >= 0;) {
|
|
3089
|
-
var s = r == 8 ? t[i] & 255 :
|
|
3082
|
+
var s = r == 8 ? t[i] & 255 : Mr(t, i);
|
|
3090
3083
|
if (s < 0) {
|
|
3091
3084
|
t.charAt(i) == "-" && (a = !0);
|
|
3092
3085
|
continue;
|
|
@@ -3150,7 +3143,7 @@ var yr = function() {
|
|
|
3150
3143
|
return;
|
|
3151
3144
|
}
|
|
3152
3145
|
r ??= G();
|
|
3153
|
-
var o = G(), s = this.s, c = t.s, l = this.DB -
|
|
3146
|
+
var o = G(), s = this.s, c = t.s, l = this.DB - Pr(i[i.t - 1]);
|
|
3154
3147
|
l > 0 ? (i.lShiftTo(l, o), a.lShiftTo(l, r)) : (i.copyTo(o), a.copyTo(r));
|
|
3155
3148
|
var u = o.t, d = o[u - 1];
|
|
3156
3149
|
if (d != 0) {
|
|
@@ -3173,7 +3166,7 @@ var yr = function() {
|
|
|
3173
3166
|
return (this.t > 0 ? this[0] & 1 : this.s) == 0;
|
|
3174
3167
|
}, e.prototype.exp = function(t, n) {
|
|
3175
3168
|
if (t > 4294967295 || t < 1) return e.ONE;
|
|
3176
|
-
var r = G(), i = G(), a = n.convert(this), o =
|
|
3169
|
+
var r = G(), i = G(), a = n.convert(this), o = Pr(t) - 1;
|
|
3177
3170
|
for (a.copyTo(r); --o >= 0;) if (n.sqrTo(r, i), (t & 1 << o) > 0) n.mulTo(i, a, r);
|
|
3178
3171
|
else {
|
|
3179
3172
|
var s = r;
|
|
@@ -3184,13 +3177,13 @@ var yr = function() {
|
|
|
3184
3177
|
return Math.floor(Math.LN2 * this.DB / Math.log(e));
|
|
3185
3178
|
}, e.prototype.toRadix = function(e) {
|
|
3186
3179
|
if (e ??= 10, this.signum() == 0 || e < 2 || e > 36) return "0";
|
|
3187
|
-
var t = this.chunkSize(e), n = e ** +t, r =
|
|
3180
|
+
var t = this.chunkSize(e), n = e ** +t, r = Nr(n), i = G(), a = G(), o = "";
|
|
3188
3181
|
for (this.divRemTo(r, i, a); i.signum() > 0;) o = (n + a.intValue()).toString(e).substring(1) + o, i.divRemTo(r, i, a);
|
|
3189
3182
|
return a.intValue().toString(e) + o;
|
|
3190
3183
|
}, e.prototype.fromRadix = function(t, n) {
|
|
3191
3184
|
this.fromInt(0), n ??= 10;
|
|
3192
3185
|
for (var r = this.chunkSize(n), i = n ** +r, a = !1, o = 0, s = 0, c = 0; c < t.length; ++c) {
|
|
3193
|
-
var l =
|
|
3186
|
+
var l = Mr(t, c);
|
|
3194
3187
|
if (l < 0) {
|
|
3195
3188
|
t.charAt(c) == "-" && this.signum() == 0 && (a = !0);
|
|
3196
3189
|
continue;
|
|
@@ -3200,7 +3193,7 @@ var yr = function() {
|
|
|
3200
3193
|
o > 0 && (this.dMultiply(n ** +o), this.dAddOffset(s, 0)), a && e.ZERO.subTo(this, this);
|
|
3201
3194
|
}, e.prototype.fromNumber = function(t, n, r) {
|
|
3202
3195
|
if (typeof n == "number") if (t < 2) this.fromInt(1);
|
|
3203
|
-
else for (this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1),
|
|
3196
|
+
else for (this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), $n, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(n);) this.dAddOffset(2, 0), this.bitLength() > t && this.subTo(e.ONE.shiftLeft(t - 1), this);
|
|
3204
3197
|
else {
|
|
3205
3198
|
var i = [], a = t & 7;
|
|
3206
3199
|
i.length = (t >> 3) + 1, n.nextBytes(i), a > 0 ? i[0] &= (1 << a) - 1 : i[0] = 0, this.fromString(i, 256);
|
|
@@ -3292,7 +3285,7 @@ var yr = function() {
|
|
|
3292
3285
|
}, e.prototype.fromNumberAsync = function(t, n, r, i) {
|
|
3293
3286
|
if (typeof n == "number") if (t < 2) this.fromInt(1);
|
|
3294
3287
|
else {
|
|
3295
|
-
this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1),
|
|
3288
|
+
this.fromNumber(t, r), this.testBit(t - 1) || this.bitwiseTo(e.ONE.shiftLeft(t - 1), $n, this), this.isEven() && this.dAddOffset(1, 0);
|
|
3296
3289
|
var a = this, o = function() {
|
|
3297
3290
|
a.dAddOffset(2, 0), a.bitLength() > t && a.subTo(e.ONE.shiftLeft(t - 1), a), a.isProbablePrime(n) ? setTimeout(function() {
|
|
3298
3291
|
i();
|
|
@@ -3305,7 +3298,7 @@ var yr = function() {
|
|
|
3305
3298
|
s.length = (t >> 3) + 1, n.nextBytes(s), c > 0 ? s[0] &= (1 << c) - 1 : s[0] = 0, this.fromString(s, 256);
|
|
3306
3299
|
}
|
|
3307
3300
|
}, e;
|
|
3308
|
-
}(),
|
|
3301
|
+
}(), wr = function() {
|
|
3309
3302
|
function e() {}
|
|
3310
3303
|
return e.prototype.convert = function(e) {
|
|
3311
3304
|
return e;
|
|
@@ -3316,7 +3309,7 @@ var yr = function() {
|
|
|
3316
3309
|
}, e.prototype.sqrTo = function(e, t) {
|
|
3317
3310
|
e.squareTo(t);
|
|
3318
3311
|
}, e;
|
|
3319
|
-
}(),
|
|
3312
|
+
}(), Tr = function() {
|
|
3320
3313
|
function e(e) {
|
|
3321
3314
|
this.m = e;
|
|
3322
3315
|
}
|
|
@@ -3331,7 +3324,7 @@ var yr = function() {
|
|
|
3331
3324
|
}, e.prototype.sqrTo = function(e, t) {
|
|
3332
3325
|
e.squareTo(t), this.reduce(t);
|
|
3333
3326
|
}, e;
|
|
3334
|
-
}(),
|
|
3327
|
+
}(), Er = function() {
|
|
3335
3328
|
function e(e) {
|
|
3336
3329
|
this.m = e, this.mp = e.invDigit(), this.mpl = this.mp & 32767, this.mph = this.mp >> 15, this.um = (1 << e.DB - 15) - 1, this.mt2 = 2 * e.t;
|
|
3337
3330
|
}
|
|
@@ -3353,7 +3346,7 @@ var yr = function() {
|
|
|
3353
3346
|
}, e.prototype.sqrTo = function(e, t) {
|
|
3354
3347
|
e.squareTo(t), this.reduce(t);
|
|
3355
3348
|
}, e;
|
|
3356
|
-
}(),
|
|
3349
|
+
}(), Dr = function() {
|
|
3357
3350
|
function e(e) {
|
|
3358
3351
|
this.m = e, this.r2 = G(), this.q3 = G(), W.ONE.dlShiftTo(2 * e.t, this.r2), this.mu = this.r2.divide(e);
|
|
3359
3352
|
}
|
|
@@ -3379,47 +3372,47 @@ function G() {
|
|
|
3379
3372
|
function K(e, t) {
|
|
3380
3373
|
return new W(e, t);
|
|
3381
3374
|
}
|
|
3382
|
-
var
|
|
3383
|
-
|
|
3375
|
+
var Or = typeof navigator < "u";
|
|
3376
|
+
Or && Sr && navigator.appName == "Microsoft Internet Explorer" ? (W.prototype.am = function(e, t, n, r, i, a) {
|
|
3384
3377
|
for (var o = t & 32767, s = t >> 15; --a >= 0;) {
|
|
3385
3378
|
var c = this[e] & 32767, l = this[e++] >> 15, u = s * c + l * o;
|
|
3386
3379
|
c = o * c + ((u & 32767) << 15) + n[r] + (i & 1073741823), i = (c >>> 30) + (u >>> 15) + s * l + (i >>> 30), n[r++] = c & 1073741823;
|
|
3387
3380
|
}
|
|
3388
3381
|
return i;
|
|
3389
|
-
},
|
|
3382
|
+
}, xr = 30) : Or && Sr && navigator.appName != "Netscape" ? (W.prototype.am = function(e, t, n, r, i, a) {
|
|
3390
3383
|
for (; --a >= 0;) {
|
|
3391
3384
|
var o = t * this[e++] + n[r] + i;
|
|
3392
3385
|
i = Math.floor(o / 67108864), n[r++] = o & 67108863;
|
|
3393
3386
|
}
|
|
3394
3387
|
return i;
|
|
3395
|
-
},
|
|
3388
|
+
}, xr = 26) : (W.prototype.am = function(e, t, n, r, i, a) {
|
|
3396
3389
|
for (var o = t & 16383, s = t >> 14; --a >= 0;) {
|
|
3397
3390
|
var c = this[e] & 16383, l = this[e++] >> 14, u = s * c + l * o;
|
|
3398
3391
|
c = o * c + ((u & 16383) << 14) + n[r] + i, i = (c >> 28) + (u >> 14) + s * l, n[r++] = c & 268435455;
|
|
3399
3392
|
}
|
|
3400
3393
|
return i;
|
|
3401
|
-
},
|
|
3402
|
-
var
|
|
3403
|
-
W.prototype.FV = 2 **
|
|
3404
|
-
var
|
|
3405
|
-
for (q = 0; q <= 9; ++q) jr
|
|
3406
|
-
for (
|
|
3407
|
-
for (
|
|
3408
|
-
function
|
|
3409
|
-
return
|
|
3394
|
+
}, xr = 28), W.prototype.DB = xr, W.prototype.DM = (1 << xr) - 1, W.prototype.DV = 1 << xr;
|
|
3395
|
+
var kr = 52;
|
|
3396
|
+
W.prototype.FV = 2 ** kr, W.prototype.F1 = kr - xr, W.prototype.F2 = 2 * xr - kr;
|
|
3397
|
+
var Ar = [], jr = 48, q;
|
|
3398
|
+
for (q = 0; q <= 9; ++q) Ar[jr++] = q;
|
|
3399
|
+
for (jr = 97, q = 10; q < 36; ++q) Ar[jr++] = q;
|
|
3400
|
+
for (jr = 65, q = 10; q < 36; ++q) Ar[jr++] = q;
|
|
3401
|
+
function Mr(e, t) {
|
|
3402
|
+
return Ar[e.charCodeAt(t)] ?? -1;
|
|
3410
3403
|
}
|
|
3411
|
-
function
|
|
3404
|
+
function Nr(e) {
|
|
3412
3405
|
var t = G();
|
|
3413
3406
|
return t.fromInt(e), t;
|
|
3414
3407
|
}
|
|
3415
|
-
function
|
|
3408
|
+
function Pr(e) {
|
|
3416
3409
|
var t = 1, n;
|
|
3417
3410
|
return (n = e >>> 16) != 0 && (e = n, t += 16), (n = e >> 8) != 0 && (e = n, t += 8), (n = e >> 4) != 0 && (e = n, t += 4), (n = e >> 2) != 0 && (e = n, t += 2), (n = e >> 1) != 0 && (e = n, t += 1), t;
|
|
3418
3411
|
}
|
|
3419
|
-
W.ZERO =
|
|
3412
|
+
W.ZERO = Nr(0), W.ONE = Nr(1);
|
|
3420
3413
|
//#endregion
|
|
3421
3414
|
//#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/prng4.js
|
|
3422
|
-
var
|
|
3415
|
+
var Fr = function() {
|
|
3423
3416
|
function e() {
|
|
3424
3417
|
this.i = 0, this.j = 0, this.S = [];
|
|
3425
3418
|
}
|
|
@@ -3433,70 +3426,70 @@ var Ir = function() {
|
|
|
3433
3426
|
return this.i = this.i + 1 & 255, this.j = this.j + this.S[this.i] & 255, e = this.S[this.i], this.S[this.i] = this.S[this.j], this.S[this.j] = e, this.S[e + this.S[this.i] & 255];
|
|
3434
3427
|
}, e;
|
|
3435
3428
|
}();
|
|
3436
|
-
function
|
|
3437
|
-
return new
|
|
3429
|
+
function Ir() {
|
|
3430
|
+
return new Fr();
|
|
3438
3431
|
}
|
|
3439
3432
|
//#endregion
|
|
3440
3433
|
//#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/rng.js
|
|
3441
|
-
var
|
|
3442
|
-
if (
|
|
3443
|
-
|
|
3444
|
-
var
|
|
3434
|
+
var Lr, Rr = null, J;
|
|
3435
|
+
if (Rr == null) {
|
|
3436
|
+
Rr = [], J = 0;
|
|
3437
|
+
var zr = void 0;
|
|
3445
3438
|
if (typeof window < "u" && self.crypto && self.crypto.getRandomValues) {
|
|
3446
|
-
var
|
|
3447
|
-
for (self.crypto.getRandomValues(
|
|
3439
|
+
var Br = new Uint32Array(256);
|
|
3440
|
+
for (self.crypto.getRandomValues(Br), zr = 0; zr < Br.length; ++zr) Rr[J++] = Br[zr] & 255;
|
|
3448
3441
|
}
|
|
3449
|
-
var
|
|
3450
|
-
if (
|
|
3451
|
-
self.removeEventListener ? self.removeEventListener("mousemove",
|
|
3442
|
+
var Vr = 0, Hr = function(e) {
|
|
3443
|
+
if (Vr ||= 0, Vr >= 256 || J >= 256) {
|
|
3444
|
+
self.removeEventListener ? self.removeEventListener("mousemove", Hr, !1) : self.detachEvent && self.detachEvent("onmousemove", Hr);
|
|
3452
3445
|
return;
|
|
3453
3446
|
}
|
|
3454
3447
|
try {
|
|
3455
3448
|
var t = e.x + e.y;
|
|
3456
|
-
|
|
3449
|
+
Rr[J++] = t & 255, Vr += 1;
|
|
3457
3450
|
} catch {}
|
|
3458
3451
|
};
|
|
3459
|
-
typeof window < "u" && (self.addEventListener ? self.addEventListener("mousemove",
|
|
3452
|
+
typeof window < "u" && (self.addEventListener ? self.addEventListener("mousemove", Hr, !1) : self.attachEvent && self.attachEvent("onmousemove", Hr));
|
|
3460
3453
|
}
|
|
3461
|
-
function
|
|
3462
|
-
if (
|
|
3463
|
-
for (
|
|
3454
|
+
function Ur() {
|
|
3455
|
+
if (Lr == null) {
|
|
3456
|
+
for (Lr = Ir(); J < 256;) {
|
|
3464
3457
|
var e = Math.floor(65536 * Math.random());
|
|
3465
|
-
|
|
3458
|
+
Rr[J++] = e & 255;
|
|
3466
3459
|
}
|
|
3467
|
-
for (
|
|
3460
|
+
for (Lr.init(Rr), J = 0; J < Rr.length; ++J) Rr[J] = 0;
|
|
3468
3461
|
J = 0;
|
|
3469
3462
|
}
|
|
3470
|
-
return
|
|
3463
|
+
return Lr.next();
|
|
3471
3464
|
}
|
|
3472
|
-
var
|
|
3465
|
+
var Wr = function() {
|
|
3473
3466
|
function e() {}
|
|
3474
3467
|
return e.prototype.nextBytes = function(e) {
|
|
3475
|
-
for (var t = 0; t < e.length; ++t) e[t] =
|
|
3468
|
+
for (var t = 0; t < e.length; ++t) e[t] = Ur();
|
|
3476
3469
|
}, e;
|
|
3477
3470
|
}();
|
|
3478
3471
|
//#endregion
|
|
3479
3472
|
//#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsbn/sha256.js
|
|
3480
|
-
function
|
|
3481
|
-
return
|
|
3473
|
+
function Gr(e) {
|
|
3474
|
+
return Jr(ii(qr(e), e.length * 8));
|
|
3482
3475
|
}
|
|
3483
|
-
function
|
|
3476
|
+
function Kr(e) {
|
|
3484
3477
|
for (var t = "0123456789abcdef", n = "", r = 0; r < e.length; r++) {
|
|
3485
3478
|
var i = e.charCodeAt(r);
|
|
3486
3479
|
n += t.charAt(i >>> 4 & 15) + t.charAt(i & 15);
|
|
3487
3480
|
}
|
|
3488
3481
|
return n;
|
|
3489
3482
|
}
|
|
3490
|
-
function
|
|
3483
|
+
function qr(e) {
|
|
3491
3484
|
for (var t = Array(e.length >> 2), n = 0; n < t.length; n++) t[n] = 0;
|
|
3492
3485
|
for (var n = 0; n < e.length * 8; n += 8) t[n >> 5] |= (e.charCodeAt(n / 8) & 255) << 24 - n % 32;
|
|
3493
3486
|
return t;
|
|
3494
3487
|
}
|
|
3495
|
-
function
|
|
3488
|
+
function Jr(e) {
|
|
3496
3489
|
for (var t = "", n = 0; n < e.length * 32; n += 8) t += String.fromCharCode(e[n >> 5] >>> 24 - n % 32 & 255);
|
|
3497
3490
|
return t;
|
|
3498
3491
|
}
|
|
3499
|
-
function
|
|
3492
|
+
function Yr(e, t) {
|
|
3500
3493
|
return e >>> t | e << 32 - t;
|
|
3501
3494
|
}
|
|
3502
3495
|
function Xr(e, t) {
|
|
@@ -3509,16 +3502,16 @@ function Qr(e, t, n) {
|
|
|
3509
3502
|
return e & t ^ e & n ^ t & n;
|
|
3510
3503
|
}
|
|
3511
3504
|
function $r(e) {
|
|
3512
|
-
return
|
|
3505
|
+
return Yr(e, 2) ^ Yr(e, 13) ^ Yr(e, 22);
|
|
3513
3506
|
}
|
|
3514
3507
|
function ei(e) {
|
|
3515
|
-
return
|
|
3508
|
+
return Yr(e, 6) ^ Yr(e, 11) ^ Yr(e, 25);
|
|
3516
3509
|
}
|
|
3517
3510
|
function ti(e) {
|
|
3518
|
-
return
|
|
3511
|
+
return Yr(e, 7) ^ Yr(e, 18) ^ Xr(e, 3);
|
|
3519
3512
|
}
|
|
3520
3513
|
function ni(e) {
|
|
3521
|
-
return
|
|
3514
|
+
return Yr(e, 17) ^ Yr(e, 19) ^ Xr(e, 10);
|
|
3522
3515
|
}
|
|
3523
3516
|
var ri = [
|
|
3524
3517
|
1116352408,
|
|
@@ -3598,12 +3591,12 @@ function ii(e, t) {
|
|
|
3598
3591
|
1541459225
|
|
3599
3592
|
], r = Array(64), i, a, o, s, c, l, u, d, f, p, m, h;
|
|
3600
3593
|
for (e[t >> 5] |= 128 << 24 - t % 32, e[(t + 64 >> 9 << 4) + 15] = t, f = 0; f < e.length; f += 16) {
|
|
3601
|
-
for (i = n[0], a = n[1], o = n[2], s = n[3], c = n[4], l = n[5], u = n[6], d = n[7], p = 0; p < 64; p++) p < 16 ? r[p] = e[p + f] : r[p] =
|
|
3602
|
-
n[0] =
|
|
3594
|
+
for (i = n[0], a = n[1], o = n[2], s = n[3], c = n[4], l = n[5], u = n[6], d = n[7], p = 0; p < 64; p++) p < 16 ? r[p] = e[p + f] : r[p] = Y(Y(Y(ni(r[p - 2]), r[p - 7]), ti(r[p - 15])), r[p - 16]), m = Y(Y(Y(Y(d, ei(c)), Zr(c, l, u)), ri[p]), r[p]), h = Y($r(i), Qr(i, a, o)), d = u, u = l, l = c, c = Y(s, m), s = o, o = a, a = i, i = Y(m, h);
|
|
3595
|
+
n[0] = Y(i, n[0]), n[1] = Y(a, n[1]), n[2] = Y(o, n[2]), n[3] = Y(s, n[3]), n[4] = Y(c, n[4]), n[5] = Y(l, n[5]), n[6] = Y(u, n[6]), n[7] = Y(d, n[7]);
|
|
3603
3596
|
}
|
|
3604
3597
|
return n;
|
|
3605
3598
|
}
|
|
3606
|
-
function
|
|
3599
|
+
function Y(e, t) {
|
|
3607
3600
|
var n = (e & 65535) + (t & 65535);
|
|
3608
3601
|
return (e >> 16) + (t >> 16) + (n >> 16) << 16 | n & 65535;
|
|
3609
3602
|
}
|
|
@@ -3621,7 +3614,7 @@ function oi(e, t) {
|
|
|
3621
3614
|
i < 128 ? n[--t] = i : i > 127 && i < 2048 ? (n[--t] = i & 63 | 128, n[--t] = i >> 6 | 192) : (n[--t] = i & 63 | 128, n[--t] = i >> 6 & 63 | 128, n[--t] = i >> 12 | 224);
|
|
3622
3615
|
}
|
|
3623
3616
|
n[--t] = 0;
|
|
3624
|
-
for (var a = new
|
|
3617
|
+
for (var a = new Wr(), o = []; t > 2;) {
|
|
3625
3618
|
for (o[0] = 0; o[0] == 0;) a.nextBytes(o);
|
|
3626
3619
|
n[--t] = o[0];
|
|
3627
3620
|
}
|
|
@@ -3638,12 +3631,12 @@ function si(e, t, n) {
|
|
|
3638
3631
|
}
|
|
3639
3632
|
var ci = 32;
|
|
3640
3633
|
function li(e, t) {
|
|
3641
|
-
var n = ci, r =
|
|
3634
|
+
var n = ci, r = Gr;
|
|
3642
3635
|
if (e.length + 2 * n + 2 > t) throw "Message too long for RSA";
|
|
3643
3636
|
var i = "", a;
|
|
3644
3637
|
for (a = 0; a < t - e.length - 2 * n - 2; a += 1) i += "\0";
|
|
3645
3638
|
var o = r("") + i + "" + e, s = Array(n);
|
|
3646
|
-
new
|
|
3639
|
+
new Wr().nextBytes(s);
|
|
3647
3640
|
var c = si(s, o.length, r), l = [];
|
|
3648
3641
|
for (a = 0; a < o.length; a += 1) l[a] = o.charCodeAt(a) ^ c.charCodeAt(a);
|
|
3649
3642
|
var u = si(l, s.length, r), d = [0];
|
|
@@ -3675,7 +3668,7 @@ var ui = function() {
|
|
|
3675
3668
|
}, e.prototype.setPrivateEx = function(e, t, n, r, i, a, o, s) {
|
|
3676
3669
|
e != null && t != null && e.length > 0 && t.length > 0 ? (this.n = K(e, 16), this.e = parseInt(t, 16), this.d = K(n, 16), this.p = K(r, 16), this.q = K(i, 16), this.dmp1 = K(a, 16), this.dmq1 = K(o, 16), this.coeff = K(s, 16)) : console.error("Invalid RSA private key");
|
|
3677
3670
|
}, e.prototype.generate = function(e, t) {
|
|
3678
|
-
var n = new
|
|
3671
|
+
var n = new Wr(), r = e >> 1;
|
|
3679
3672
|
this.e = parseInt(t, 16);
|
|
3680
3673
|
for (var i = new W(t, 16);;) {
|
|
3681
3674
|
for (; this.p = new W(e - r, 1, n), !(this.p.subtract(W.ONE).gcd(i).compareTo(W.ONE) == 0 && this.p.isProbablePrime(10)););
|
|
@@ -3694,7 +3687,7 @@ var ui = function() {
|
|
|
3694
3687
|
var t = K(e, 16), n = this.doPrivate(t);
|
|
3695
3688
|
return n == null ? null : di(n, this.n.bitLength() + 7 >> 3);
|
|
3696
3689
|
}, e.prototype.generateAsync = function(e, t, n) {
|
|
3697
|
-
var r = new
|
|
3690
|
+
var r = new Wr(), i = e >> 1;
|
|
3698
3691
|
this.e = parseInt(t, 16);
|
|
3699
3692
|
var a = new W(t, 16), o = this, s = function() {
|
|
3700
3693
|
var t = function() {
|
|
@@ -3766,7 +3759,7 @@ function mi(e) {
|
|
|
3766
3759
|
}
|
|
3767
3760
|
//#endregion
|
|
3768
3761
|
//#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/lib/jsrsasign/asn1-1.0.js
|
|
3769
|
-
function
|
|
3762
|
+
function X(e, t, n) {
|
|
3770
3763
|
if (!t || !e) throw Error("extend failed, please check that all dependencies are included.");
|
|
3771
3764
|
var r = function() {};
|
|
3772
3765
|
if (r.prototype = t.prototype, e.prototype = new r(), e.prototype.constructor = e, e.superclass = t.prototype, t.prototype.constructor == Object.prototype.constructor && (t.prototype.constructor = t), n) {
|
|
@@ -3783,8 +3776,8 @@ function Z(e, t, n) {
|
|
|
3783
3776
|
a(e.prototype, n);
|
|
3784
3777
|
}
|
|
3785
3778
|
}
|
|
3786
|
-
var
|
|
3787
|
-
(
|
|
3779
|
+
var Z = {};
|
|
3780
|
+
(Z.asn1 === void 0 || !Z.asn1) && (Z.asn1 = {}), Z.asn1.ASN1Util = new function() {
|
|
3788
3781
|
this.integerToByteHex = function(e) {
|
|
3789
3782
|
var t = e.toString(16);
|
|
3790
3783
|
return t.length % 2 == 1 && (t = "0" + t), t;
|
|
@@ -3801,7 +3794,7 @@ var Q = {};
|
|
|
3801
3794
|
}, this.getPEMStringFromHex = function(e, t) {
|
|
3802
3795
|
return hextopem(e, t);
|
|
3803
3796
|
}, this.newObject = function(e) {
|
|
3804
|
-
var t =
|
|
3797
|
+
var t = Z.asn1, n = t.DERBoolean, r = t.DERInteger, i = t.DERBitString, a = t.DEROctetString, o = t.DERNull, s = t.DERObjectIdentifier, c = t.DEREnumerated, l = t.DERUTF8String, u = t.DERNumericString, d = t.DERPrintableString, f = t.DERTeletexString, p = t.DERIA5String, m = t.DERUTCTime, h = t.DERGeneralizedTime, g = t.DERSequence, _ = t.DERSet, v = t.DERTaggedObject, y = t.ASN1Util.newObject, b = Object.keys(e);
|
|
3805
3798
|
if (b.length != 1) throw "key of param shall be only one.";
|
|
3806
3799
|
var x = b[0];
|
|
3807
3800
|
if (":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:".indexOf(":" + x + ":") == -1) throw "undefined key: " + x;
|
|
@@ -3851,7 +3844,7 @@ var Q = {};
|
|
|
3851
3844
|
}, this.jsonToASN1HEX = function(e) {
|
|
3852
3845
|
return this.newObject(e).getEncodedHex();
|
|
3853
3846
|
};
|
|
3854
|
-
}(),
|
|
3847
|
+
}(), Z.asn1.ASN1Util.oidHexToInt = function(e) {
|
|
3855
3848
|
for (var t = "", n = parseInt(e.substring(0, 2), 16), r = Math.floor(n / 40), i = n % 40, t = r + "." + i, a = "", o = 2; o < e.length; o += 2) {
|
|
3856
3849
|
var s = ("00000000" + parseInt(e.substring(o, o + 2), 16).toString(2)).slice(-8);
|
|
3857
3850
|
if (a += s.substring(1, 8), s.substring(0, 1) == "0") {
|
|
@@ -3860,7 +3853,7 @@ var Q = {};
|
|
|
3860
3853
|
}
|
|
3861
3854
|
}
|
|
3862
3855
|
return t;
|
|
3863
|
-
},
|
|
3856
|
+
}, Z.asn1.ASN1Util.oidIntToHex = function(e) {
|
|
3864
3857
|
var t = function(e) {
|
|
3865
3858
|
var t = e.toString(16);
|
|
3866
3859
|
return t.length == 1 && (t = "0" + t), t;
|
|
@@ -3880,7 +3873,7 @@ var Q = {};
|
|
|
3880
3873
|
r += t(a), i.splice(0, 2);
|
|
3881
3874
|
for (var o = 0; o < i.length; o++) r += n(i[o]);
|
|
3882
3875
|
return r;
|
|
3883
|
-
},
|
|
3876
|
+
}, Z.asn1.ASN1Object = function() {
|
|
3884
3877
|
var e = "";
|
|
3885
3878
|
this.getLengthHexFromValue = function() {
|
|
3886
3879
|
if (this.hV === void 0 || this.hV == null) throw "this.hV is null or undefined.";
|
|
@@ -3897,8 +3890,8 @@ var Q = {};
|
|
|
3897
3890
|
}, this.getFreshValueHex = function() {
|
|
3898
3891
|
return "";
|
|
3899
3892
|
};
|
|
3900
|
-
},
|
|
3901
|
-
|
|
3893
|
+
}, Z.asn1.DERAbstractString = function(e) {
|
|
3894
|
+
Z.asn1.DERAbstractString.superclass.constructor.call(this), this.getString = function() {
|
|
3902
3895
|
return this.s;
|
|
3903
3896
|
}, this.setString = function(e) {
|
|
3904
3897
|
this.hTLV = null, this.isModified = !0, this.s = e, this.hV = stohex(this.s);
|
|
@@ -3907,8 +3900,8 @@ var Q = {};
|
|
|
3907
3900
|
}, this.getFreshValueHex = function() {
|
|
3908
3901
|
return this.hV;
|
|
3909
3902
|
}, e !== void 0 && (typeof e == "string" ? this.setString(e) : e.str === void 0 ? e.hex !== void 0 && this.setStringHex(e.hex) : this.setString(e.str));
|
|
3910
|
-
}, Z
|
|
3911
|
-
|
|
3903
|
+
}, X(Z.asn1.DERAbstractString, Z.asn1.ASN1Object), Z.asn1.DERAbstractTime = function(e) {
|
|
3904
|
+
Z.asn1.DERAbstractTime.superclass.constructor.call(this), this.localDateToUTC = function(e) {
|
|
3912
3905
|
return utc = e.getTime() + e.getTimezoneOffset() * 6e4, new Date(utc);
|
|
3913
3906
|
}, this.formatDate = function(e, t, n) {
|
|
3914
3907
|
var r = this.zeroPadding, i = this.localDateToUTC(e), a = String(i.getFullYear());
|
|
@@ -3934,17 +3927,17 @@ var Q = {};
|
|
|
3934
3927
|
}, this.getFreshValueHex = function() {
|
|
3935
3928
|
return this.hV;
|
|
3936
3929
|
};
|
|
3937
|
-
}, Z
|
|
3938
|
-
|
|
3930
|
+
}, X(Z.asn1.DERAbstractTime, Z.asn1.ASN1Object), Z.asn1.DERAbstractStructured = function(e) {
|
|
3931
|
+
Z.asn1.DERAbstractString.superclass.constructor.call(this), this.setByASN1ObjectArray = function(e) {
|
|
3939
3932
|
this.hTLV = null, this.isModified = !0, this.asn1Array = e;
|
|
3940
3933
|
}, this.appendASN1Object = function(e) {
|
|
3941
3934
|
this.hTLV = null, this.isModified = !0, this.asn1Array.push(e);
|
|
3942
3935
|
}, this.asn1Array = [], e !== void 0 && e.array !== void 0 && (this.asn1Array = e.array);
|
|
3943
|
-
}, Z
|
|
3944
|
-
|
|
3945
|
-
}, Z
|
|
3946
|
-
|
|
3947
|
-
this.hTLV = null, this.isModified = !0, this.hV =
|
|
3936
|
+
}, X(Z.asn1.DERAbstractStructured, Z.asn1.ASN1Object), Z.asn1.DERBoolean = function() {
|
|
3937
|
+
Z.asn1.DERBoolean.superclass.constructor.call(this), this.hT = "01", this.hTLV = "0101ff";
|
|
3938
|
+
}, X(Z.asn1.DERBoolean, Z.asn1.ASN1Object), Z.asn1.DERInteger = function(e) {
|
|
3939
|
+
Z.asn1.DERInteger.superclass.constructor.call(this), this.hT = "02", this.setByBigInteger = function(e) {
|
|
3940
|
+
this.hTLV = null, this.isModified = !0, this.hV = Z.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e);
|
|
3948
3941
|
}, this.setByInteger = function(e) {
|
|
3949
3942
|
var t = new W(String(e), 10);
|
|
3950
3943
|
this.setByBigInteger(t);
|
|
@@ -3953,8 +3946,8 @@ var Q = {};
|
|
|
3953
3946
|
}, this.getFreshValueHex = function() {
|
|
3954
3947
|
return this.hV;
|
|
3955
3948
|
}, e !== void 0 && (e.bigint === void 0 ? e.int === void 0 ? typeof e == "number" ? this.setByInteger(e) : e.hex !== void 0 && this.setValueHex(e.hex) : this.setByInteger(e.int) : this.setByBigInteger(e.bigint));
|
|
3956
|
-
}, Z
|
|
3957
|
-
e !== void 0 && e.obj !== void 0 && (e.hex = "00" +
|
|
3949
|
+
}, X(Z.asn1.DERInteger, Z.asn1.ASN1Object), Z.asn1.DERBitString = function(e) {
|
|
3950
|
+
e !== void 0 && e.obj !== void 0 && (e.hex = "00" + Z.asn1.ASN1Util.newObject(e.obj).getEncodedHex()), Z.asn1.DERBitString.superclass.constructor.call(this), this.hT = "03", this.setHexValueIncludingUnusedBits = function(e) {
|
|
3958
3951
|
this.hTLV = null, this.isModified = !0, this.hV = e;
|
|
3959
3952
|
}, this.setUnusedBitsAndHexValue = function(e, t) {
|
|
3960
3953
|
if (e < 0 || 7 < e) throw "unused bits shall be from 0 to 7: u = " + e;
|
|
@@ -3979,11 +3972,11 @@ var Q = {};
|
|
|
3979
3972
|
}, this.getFreshValueHex = function() {
|
|
3980
3973
|
return this.hV;
|
|
3981
3974
|
}, e !== void 0 && (typeof e == "string" && e.toLowerCase().match(/^[0-9a-f]+$/) ? this.setHexValueIncludingUnusedBits(e) : e.hex === void 0 ? e.bin === void 0 ? e.array !== void 0 && this.setByBooleanArray(e.array) : this.setByBinaryString(e.bin) : this.setHexValueIncludingUnusedBits(e.hex));
|
|
3982
|
-
}, Z
|
|
3983
|
-
e !== void 0 && e.obj !== void 0 && (e.hex =
|
|
3984
|
-
}, Z
|
|
3985
|
-
|
|
3986
|
-
}, Z
|
|
3975
|
+
}, X(Z.asn1.DERBitString, Z.asn1.ASN1Object), Z.asn1.DEROctetString = function(e) {
|
|
3976
|
+
e !== void 0 && e.obj !== void 0 && (e.hex = Z.asn1.ASN1Util.newObject(e.obj).getEncodedHex()), Z.asn1.DEROctetString.superclass.constructor.call(this, e), this.hT = "04";
|
|
3977
|
+
}, X(Z.asn1.DEROctetString, Z.asn1.DERAbstractString), Z.asn1.DERNull = function() {
|
|
3978
|
+
Z.asn1.DERNull.superclass.constructor.call(this), this.hT = "05", this.hTLV = "0500";
|
|
3979
|
+
}, X(Z.asn1.DERNull, Z.asn1.ASN1Object), Z.asn1.DERObjectIdentifier = function(e) {
|
|
3987
3980
|
var t = function(e) {
|
|
3988
3981
|
var t = e.toString(16);
|
|
3989
3982
|
return t.length == 1 && (t = "0" + t), t;
|
|
@@ -3998,7 +3991,7 @@ var Q = {};
|
|
|
3998
3991
|
}
|
|
3999
3992
|
return n;
|
|
4000
3993
|
};
|
|
4001
|
-
|
|
3994
|
+
Z.asn1.DERObjectIdentifier.superclass.constructor.call(this), this.hT = "06", this.setValueHex = function(e) {
|
|
4002
3995
|
this.hTLV = null, this.isModified = !0, this.s = null, this.hV = e;
|
|
4003
3996
|
}, this.setValueOidString = function(e) {
|
|
4004
3997
|
if (!e.match(/^[0-9.]+$/)) throw "malformed oid string: " + e;
|
|
@@ -4007,15 +4000,15 @@ var Q = {};
|
|
|
4007
4000
|
for (var o = 0; o < i.length; o++) r += n(i[o]);
|
|
4008
4001
|
this.hTLV = null, this.isModified = !0, this.s = null, this.hV = r;
|
|
4009
4002
|
}, this.setValueName = function(e) {
|
|
4010
|
-
var t =
|
|
4003
|
+
var t = Z.asn1.x509.OID.name2oid(e);
|
|
4011
4004
|
if (t !== "") this.setValueOidString(t);
|
|
4012
4005
|
else throw "DERObjectIdentifier oidName undefined: " + e;
|
|
4013
4006
|
}, this.getFreshValueHex = function() {
|
|
4014
4007
|
return this.hV;
|
|
4015
4008
|
}, e !== void 0 && (typeof e == "string" ? e.match(/^[0-2].[0-9.]+$/) ? this.setValueOidString(e) : this.setValueName(e) : e.oid === void 0 ? e.hex === void 0 ? e.name !== void 0 && this.setValueName(e.name) : this.setValueHex(e.hex) : this.setValueOidString(e.oid));
|
|
4016
|
-
}, Z
|
|
4017
|
-
|
|
4018
|
-
this.hTLV = null, this.isModified = !0, this.hV =
|
|
4009
|
+
}, X(Z.asn1.DERObjectIdentifier, Z.asn1.ASN1Object), Z.asn1.DEREnumerated = function(e) {
|
|
4010
|
+
Z.asn1.DEREnumerated.superclass.constructor.call(this), this.hT = "0a", this.setByBigInteger = function(e) {
|
|
4011
|
+
this.hTLV = null, this.isModified = !0, this.hV = Z.asn1.ASN1Util.bigIntToMinTwosComplementsHex(e);
|
|
4019
4012
|
}, this.setByInteger = function(e) {
|
|
4020
4013
|
var t = new W(String(e), 10);
|
|
4021
4014
|
this.setByBigInteger(t);
|
|
@@ -4024,51 +4017,51 @@ var Q = {};
|
|
|
4024
4017
|
}, this.getFreshValueHex = function() {
|
|
4025
4018
|
return this.hV;
|
|
4026
4019
|
}, e !== void 0 && (e.int === void 0 ? typeof e == "number" ? this.setByInteger(e) : e.hex !== void 0 && this.setValueHex(e.hex) : this.setByInteger(e.int));
|
|
4027
|
-
}, Z
|
|
4028
|
-
|
|
4029
|
-
}, Z
|
|
4030
|
-
|
|
4031
|
-
}, Z
|
|
4032
|
-
|
|
4033
|
-
}, Z
|
|
4034
|
-
|
|
4035
|
-
}, Z
|
|
4036
|
-
|
|
4037
|
-
}, Z
|
|
4038
|
-
|
|
4020
|
+
}, X(Z.asn1.DEREnumerated, Z.asn1.ASN1Object), Z.asn1.DERUTF8String = function(e) {
|
|
4021
|
+
Z.asn1.DERUTF8String.superclass.constructor.call(this, e), this.hT = "0c";
|
|
4022
|
+
}, X(Z.asn1.DERUTF8String, Z.asn1.DERAbstractString), Z.asn1.DERNumericString = function(e) {
|
|
4023
|
+
Z.asn1.DERNumericString.superclass.constructor.call(this, e), this.hT = "12";
|
|
4024
|
+
}, X(Z.asn1.DERNumericString, Z.asn1.DERAbstractString), Z.asn1.DERPrintableString = function(e) {
|
|
4025
|
+
Z.asn1.DERPrintableString.superclass.constructor.call(this, e), this.hT = "13";
|
|
4026
|
+
}, X(Z.asn1.DERPrintableString, Z.asn1.DERAbstractString), Z.asn1.DERTeletexString = function(e) {
|
|
4027
|
+
Z.asn1.DERTeletexString.superclass.constructor.call(this, e), this.hT = "14";
|
|
4028
|
+
}, X(Z.asn1.DERTeletexString, Z.asn1.DERAbstractString), Z.asn1.DERIA5String = function(e) {
|
|
4029
|
+
Z.asn1.DERIA5String.superclass.constructor.call(this, e), this.hT = "16";
|
|
4030
|
+
}, X(Z.asn1.DERIA5String, Z.asn1.DERAbstractString), Z.asn1.DERUTCTime = function(e) {
|
|
4031
|
+
Z.asn1.DERUTCTime.superclass.constructor.call(this, e), this.hT = "17", this.setByDate = function(e) {
|
|
4039
4032
|
this.hTLV = null, this.isModified = !0, this.date = e, this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s);
|
|
4040
4033
|
}, this.getFreshValueHex = function() {
|
|
4041
4034
|
return this.date === void 0 && this.s === void 0 && (this.date = /* @__PURE__ */ new Date(), this.s = this.formatDate(this.date, "utc"), this.hV = stohex(this.s)), this.hV;
|
|
4042
4035
|
}, e !== void 0 && (e.str === void 0 ? typeof e == "string" && e.match(/^[0-9]{12}Z$/) ? this.setString(e) : e.hex === void 0 ? e.date !== void 0 && this.setByDate(e.date) : this.setStringHex(e.hex) : this.setString(e.str));
|
|
4043
|
-
}, Z
|
|
4044
|
-
|
|
4036
|
+
}, X(Z.asn1.DERUTCTime, Z.asn1.DERAbstractTime), Z.asn1.DERGeneralizedTime = function(e) {
|
|
4037
|
+
Z.asn1.DERGeneralizedTime.superclass.constructor.call(this, e), this.hT = "18", this.withMillis = !1, this.setByDate = function(e) {
|
|
4045
4038
|
this.hTLV = null, this.isModified = !0, this.date = e, this.s = this.formatDate(this.date, "gen", this.withMillis), this.hV = stohex(this.s);
|
|
4046
4039
|
}, this.getFreshValueHex = function() {
|
|
4047
4040
|
return this.date === void 0 && this.s === void 0 && (this.date = /* @__PURE__ */ new Date(), this.s = this.formatDate(this.date, "gen", this.withMillis), this.hV = stohex(this.s)), this.hV;
|
|
4048
4041
|
}, e !== void 0 && (e.str === void 0 ? typeof e == "string" && e.match(/^[0-9]{14}Z$/) ? this.setString(e) : e.hex === void 0 ? e.date !== void 0 && this.setByDate(e.date) : this.setStringHex(e.hex) : this.setString(e.str), e.millis === !0 && (this.withMillis = !0));
|
|
4049
|
-
}, Z
|
|
4050
|
-
|
|
4042
|
+
}, X(Z.asn1.DERGeneralizedTime, Z.asn1.DERAbstractTime), Z.asn1.DERSequence = function(e) {
|
|
4043
|
+
Z.asn1.DERSequence.superclass.constructor.call(this, e), this.hT = "30", this.getFreshValueHex = function() {
|
|
4051
4044
|
for (var e = "", t = 0; t < this.asn1Array.length; t++) {
|
|
4052
4045
|
var n = this.asn1Array[t];
|
|
4053
4046
|
e += n.getEncodedHex();
|
|
4054
4047
|
}
|
|
4055
4048
|
return this.hV = e, this.hV;
|
|
4056
4049
|
};
|
|
4057
|
-
}, Z
|
|
4058
|
-
|
|
4050
|
+
}, X(Z.asn1.DERSequence, Z.asn1.DERAbstractStructured), Z.asn1.DERSet = function(e) {
|
|
4051
|
+
Z.asn1.DERSet.superclass.constructor.call(this, e), this.hT = "31", this.sortFlag = !0, this.getFreshValueHex = function() {
|
|
4059
4052
|
for (var e = [], t = 0; t < this.asn1Array.length; t++) {
|
|
4060
4053
|
var n = this.asn1Array[t];
|
|
4061
4054
|
e.push(n.getEncodedHex());
|
|
4062
4055
|
}
|
|
4063
4056
|
return this.sortFlag == 1 && e.sort(), this.hV = e.join(""), this.hV;
|
|
4064
4057
|
}, e !== void 0 && e.sortflag !== void 0 && e.sortflag == 0 && (this.sortFlag = !1);
|
|
4065
|
-
}, Z
|
|
4066
|
-
|
|
4058
|
+
}, X(Z.asn1.DERSet, Z.asn1.DERAbstractStructured), Z.asn1.DERTaggedObject = function(e) {
|
|
4059
|
+
Z.asn1.DERTaggedObject.superclass.constructor.call(this), this.hT = "a0", this.hV = "", this.isExplicit = !0, this.asn1Object = null, this.setASN1Object = function(e, t, n) {
|
|
4067
4060
|
this.hT = t, this.isExplicit = e, this.asn1Object = n, this.isExplicit ? (this.hV = this.asn1Object.getEncodedHex(), this.hTLV = null, this.isModified = !0) : (this.hV = null, this.hTLV = n.getEncodedHex(), this.hTLV = this.hTLV.replace(/^../, t), this.isModified = !1);
|
|
4068
4061
|
}, this.getFreshValueHex = function() {
|
|
4069
4062
|
return this.hV;
|
|
4070
4063
|
}, e !== void 0 && (e.tag !== void 0 && (this.hT = e.tag), e.explicit !== void 0 && (this.isExplicit = e.explicit), e.obj !== void 0 && (this.asn1Object = e.obj, this.setASN1Object(this.isExplicit, this.hT, this.asn1Object)));
|
|
4071
|
-
}, Z
|
|
4064
|
+
}, X(Z.asn1.DERTaggedObject, Z.asn1.ASN1Object);
|
|
4072
4065
|
//#endregion
|
|
4073
4066
|
//#region ../../node_modules/.pnpm/jsencrypt@3.5.4/node_modules/jsencrypt/lib/JSEncryptRSAKey.js
|
|
4074
4067
|
var hi = (function() {
|
|
@@ -4095,7 +4088,7 @@ var hi = (function() {
|
|
|
4095
4088
|
}
|
|
4096
4089
|
return t.prototype.parseKey = function(e) {
|
|
4097
4090
|
try {
|
|
4098
|
-
var t = 0, n = 0, r = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e) ?
|
|
4091
|
+
var t = 0, n = 0, r = /^\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\s*)+$/.test(e) ? lr.decode(e) : dr.unarmor(e), i = yr.decode(r);
|
|
4099
4092
|
if (i.sub.length === 3 && (i = i.sub[2].sub[0]), i.sub.length === 9) {
|
|
4100
4093
|
t = i.sub[1].getHexStringValue(), this.n = K(t, 16), n = i.sub[2].getHexStringValue(), this.e = parseInt(n, 16);
|
|
4101
4094
|
var a = i.sub[3].getHexStringValue();
|
|
@@ -4121,24 +4114,24 @@ var hi = (function() {
|
|
|
4121
4114
|
}
|
|
4122
4115
|
}, t.prototype.getPrivateBaseKey = function() {
|
|
4123
4116
|
var e = { array: [
|
|
4124
|
-
new
|
|
4125
|
-
new
|
|
4126
|
-
new
|
|
4127
|
-
new
|
|
4128
|
-
new
|
|
4129
|
-
new
|
|
4130
|
-
new
|
|
4131
|
-
new
|
|
4132
|
-
new
|
|
4117
|
+
new Z.asn1.DERInteger({ int: 0 }),
|
|
4118
|
+
new Z.asn1.DERInteger({ bigint: this.n }),
|
|
4119
|
+
new Z.asn1.DERInteger({ int: this.e }),
|
|
4120
|
+
new Z.asn1.DERInteger({ bigint: this.d }),
|
|
4121
|
+
new Z.asn1.DERInteger({ bigint: this.p }),
|
|
4122
|
+
new Z.asn1.DERInteger({ bigint: this.q }),
|
|
4123
|
+
new Z.asn1.DERInteger({ bigint: this.dmp1 }),
|
|
4124
|
+
new Z.asn1.DERInteger({ bigint: this.dmq1 }),
|
|
4125
|
+
new Z.asn1.DERInteger({ bigint: this.coeff })
|
|
4133
4126
|
] };
|
|
4134
|
-
return new
|
|
4127
|
+
return new Z.asn1.DERSequence(e).getEncodedHex();
|
|
4135
4128
|
}, t.prototype.getPrivateBaseKeyB64 = function() {
|
|
4136
|
-
return
|
|
4129
|
+
return or(this.getPrivateBaseKey());
|
|
4137
4130
|
}, t.prototype.getPublicBaseKey = function() {
|
|
4138
|
-
var e = new
|
|
4139
|
-
return new
|
|
4131
|
+
var e = new Z.asn1.DERSequence({ array: [new Z.asn1.DERObjectIdentifier({ oid: "1.2.840.113549.1.1.1" }), new Z.asn1.DERNull()] }), t = new Z.asn1.DERSequence({ array: [new Z.asn1.DERInteger({ bigint: this.n }), new Z.asn1.DERInteger({ int: this.e })] }), n = new Z.asn1.DERBitString({ hex: "00" + t.getEncodedHex() });
|
|
4132
|
+
return new Z.asn1.DERSequence({ array: [e, n] }).getEncodedHex();
|
|
4140
4133
|
}, t.prototype.getPublicBaseKeyB64 = function() {
|
|
4141
|
-
return
|
|
4134
|
+
return or(this.getPublicBaseKey());
|
|
4142
4135
|
}, t.wordwrap = function(e, t) {
|
|
4143
4136
|
if (t ||= 64, !e) return e;
|
|
4144
4137
|
var n = "(.{1," + t + "})( +|$\n?)|(.{1," + t + "})";
|
|
@@ -4168,19 +4161,19 @@ var hi = (function() {
|
|
|
4168
4161
|
this.setKey(e);
|
|
4169
4162
|
}, e.prototype.decrypt = function(e) {
|
|
4170
4163
|
try {
|
|
4171
|
-
return this.getKey().decrypt(
|
|
4164
|
+
return this.getKey().decrypt(sr(e));
|
|
4172
4165
|
} catch {
|
|
4173
4166
|
return !1;
|
|
4174
4167
|
}
|
|
4175
4168
|
}, e.prototype.encrypt = function(e) {
|
|
4176
4169
|
try {
|
|
4177
|
-
return
|
|
4170
|
+
return or(this.getKey().encrypt(e));
|
|
4178
4171
|
} catch {
|
|
4179
4172
|
return !1;
|
|
4180
4173
|
}
|
|
4181
4174
|
}, e.prototype.encryptOAEP = function(e) {
|
|
4182
4175
|
try {
|
|
4183
|
-
return
|
|
4176
|
+
return or(this.getKey().encrypt(e, li));
|
|
4184
4177
|
} catch {
|
|
4185
4178
|
return !1;
|
|
4186
4179
|
}
|
|
@@ -4189,26 +4182,26 @@ var hi = (function() {
|
|
|
4189
4182
|
return e;
|
|
4190
4183
|
}), n === void 0 && (n = "");
|
|
4191
4184
|
try {
|
|
4192
|
-
return
|
|
4185
|
+
return or(this.getKey().sign(e, t, n));
|
|
4193
4186
|
} catch {
|
|
4194
4187
|
return !1;
|
|
4195
4188
|
}
|
|
4196
4189
|
}, e.prototype.signSha256 = function(e) {
|
|
4197
4190
|
return this.sign(e, function(e) {
|
|
4198
|
-
return
|
|
4191
|
+
return Kr(Gr(e));
|
|
4199
4192
|
}, "sha256");
|
|
4200
4193
|
}, e.prototype.verify = function(e, t, n) {
|
|
4201
4194
|
n === void 0 && (n = function(e) {
|
|
4202
4195
|
return e;
|
|
4203
4196
|
});
|
|
4204
4197
|
try {
|
|
4205
|
-
return this.getKey().verify(e,
|
|
4198
|
+
return this.getKey().verify(e, sr(t), n);
|
|
4206
4199
|
} catch {
|
|
4207
4200
|
return !1;
|
|
4208
4201
|
}
|
|
4209
4202
|
}, e.prototype.verifySha256 = function(e, t) {
|
|
4210
4203
|
return this.verify(e, t, function(e) {
|
|
4211
|
-
return
|
|
4204
|
+
return Kr(Gr(e));
|
|
4212
4205
|
});
|
|
4213
4206
|
}, e.prototype.getKey = function(e) {
|
|
4214
4207
|
if (!this.key) {
|
|
@@ -4272,20 +4265,20 @@ function xi() {
|
|
|
4272
4265
|
//#endregion
|
|
4273
4266
|
//#region src/hooks/index.ts
|
|
4274
4267
|
var Si = /* @__PURE__ */ L({
|
|
4275
|
-
useDictionary: () =>
|
|
4276
|
-
useFetch: () =>
|
|
4277
|
-
useRoute: () =>
|
|
4278
|
-
useRouter: () =>
|
|
4279
|
-
useTable: () =>
|
|
4268
|
+
useDictionary: () => Yn,
|
|
4269
|
+
useFetch: () => Bn,
|
|
4270
|
+
useRoute: () => Kn,
|
|
4271
|
+
useRouter: () => qn,
|
|
4272
|
+
useTable: () => Un,
|
|
4280
4273
|
useUser: () => xi
|
|
4281
4274
|
});
|
|
4282
4275
|
//#endregion
|
|
4283
4276
|
//#region src/components/YcApproval/useDetail.ts
|
|
4284
4277
|
function Ci(e) {
|
|
4285
|
-
return
|
|
4278
|
+
return zn.post("/process/operateProcess", e);
|
|
4286
4279
|
}
|
|
4287
4280
|
function wi(e) {
|
|
4288
|
-
let n =
|
|
4281
|
+
let n = Kn(), { userInfo: r } = xi(), i = w(), a = w(), o = w({}), s = w(!1), c = C({
|
|
4289
4282
|
code: "",
|
|
4290
4283
|
confirmVisible: !1,
|
|
4291
4284
|
nextAssigneeVisible: !1,
|
|
@@ -4357,7 +4350,7 @@ function wi(e) {
|
|
|
4357
4350
|
render: ({ data: e }) => e?.assigneeName || ""
|
|
4358
4351
|
}
|
|
4359
4352
|
]);
|
|
4360
|
-
|
|
4353
|
+
Bn("/process/queryProcessDetail", {
|
|
4361
4354
|
defaultParams: {
|
|
4362
4355
|
processCode: e.processCode,
|
|
4363
4356
|
instanceId: n.query?.instanceId || ""
|
|
@@ -4458,7 +4451,7 @@ function wi(e) {
|
|
|
4458
4451
|
//#endregion
|
|
4459
4452
|
//#region src/components/YcApproval/useBtnActive.ts
|
|
4460
4453
|
function Ti({ processCode: e }) {
|
|
4461
|
-
let n = localStorage.getItem("TOkEN"), r =
|
|
4454
|
+
let n = localStorage.getItem("TOkEN"), r = Yn({
|
|
4462
4455
|
code: "ApprovalButtonActive",
|
|
4463
4456
|
pageSize: 100
|
|
4464
4457
|
}), i = t(() => {
|
|
@@ -4486,7 +4479,7 @@ var Ei = { key: 0 }, Di = /* @__PURE__ */ u({
|
|
|
4486
4479
|
},
|
|
4487
4480
|
setup(e, { expose: r }) {
|
|
4488
4481
|
let s = o(e, ["formData"]), { userInfo: u } = xi(), d = w([]), f = w([]);
|
|
4489
|
-
|
|
4482
|
+
Bn("/process/queryProcessActivity", {
|
|
4490
4483
|
defaultParams: t(() => ({ processId: e.formData?.processInfo?.processId })),
|
|
4491
4484
|
ready: t(() => !!e.formData?.processInfo?.processId && e.formData?.processInfo?.activityCode === "ACT_START"),
|
|
4492
4485
|
onSuccess: (t) => {
|
|
@@ -4553,7 +4546,7 @@ var Ei = { key: 0 }, Di = /* @__PURE__ */ u({
|
|
|
4553
4546
|
}), (e, t) => {
|
|
4554
4547
|
let r = D("el-table-column"), o = D("YcStaffSelect"), u = D("el-table"), p = D("yc-card");
|
|
4555
4548
|
return S(), n(p, {
|
|
4556
|
-
icon: N(
|
|
4549
|
+
icon: N(St),
|
|
4557
4550
|
title: "流程提醒",
|
|
4558
4551
|
hideBorder: !0,
|
|
4559
4552
|
style: { "margin-bottom": "15px" }
|
|
@@ -4607,7 +4600,7 @@ var Ei = { key: 0 }, Di = /* @__PURE__ */ u({
|
|
|
4607
4600
|
}), t({ formData: i }), (e, t) => {
|
|
4608
4601
|
let a = D("YcStaffSelect"), o = D("el-form-item"), s = D("el-form"), c = D("yc-card");
|
|
4609
4602
|
return S(), n(c, {
|
|
4610
|
-
icon: N(
|
|
4603
|
+
icon: N(He),
|
|
4611
4604
|
title: "阅读范围",
|
|
4612
4605
|
hideBorder: !0,
|
|
4613
4606
|
style: { "margin-bottom": "15px" }
|
|
@@ -4667,7 +4660,7 @@ var Ei = { key: 0 }, Di = /* @__PURE__ */ u({
|
|
|
4667
4660
|
return (e, i) => {
|
|
4668
4661
|
let a = D("yc-table"), o = D("yc-card");
|
|
4669
4662
|
return S(), n(o, {
|
|
4670
|
-
icon: N(
|
|
4663
|
+
icon: N(vt),
|
|
4671
4664
|
title: "审批历史",
|
|
4672
4665
|
hideBorder: !0,
|
|
4673
4666
|
style: { "margin-bottom": "15px" }
|
|
@@ -4688,7 +4681,7 @@ var Ei = { key: 0 }, Di = /* @__PURE__ */ u({
|
|
|
4688
4681
|
getData: { type: Function }
|
|
4689
4682
|
},
|
|
4690
4683
|
setup(t) {
|
|
4691
|
-
let o = t, s = o.processCode ||
|
|
4684
|
+
let o = t, s = o.processCode || Kn().params.processCode, u = {
|
|
4692
4685
|
IntegratedApprovalProcess: "手工构建流程",
|
|
4693
4686
|
SoftwareReleaseProcess: "软件释放流程"
|
|
4694
4687
|
}, { btnActiveMaps: d, toFlowchart: f } = Ti({ processCode: s }), { processInfoRef: p, readScopeRef: m, remindRef: h, disabled: g, formData: _, states: v, confirmFields: y, baseFields: b, buttonClick: x, onConfirmSubmit: C } = wi(o);
|
|
@@ -4704,14 +4697,14 @@ var Ei = { key: 0 }, Di = /* @__PURE__ */ u({
|
|
|
4704
4697
|
default: I(() => [c(j(e.name), 1)]),
|
|
4705
4698
|
_: 2
|
|
4706
4699
|
}, 1032, ["type", "onClick"]))), 128)), l(w, {
|
|
4707
|
-
icon: N(
|
|
4700
|
+
icon: N(mt),
|
|
4708
4701
|
onClick: N(f)
|
|
4709
4702
|
}, {
|
|
4710
4703
|
default: I(() => [...o[1] ||= [c("流程图", -1)]]),
|
|
4711
4704
|
_: 1
|
|
4712
4705
|
}, 8, ["icon", "onClick"])])) : r("", !0), a("h3", null, j(u[N(s)]), 1)])), [[M]]),
|
|
4713
4706
|
l(ee, {
|
|
4714
|
-
icon: N(
|
|
4707
|
+
icon: N(ut),
|
|
4715
4708
|
title: "基本信息",
|
|
4716
4709
|
style: { margin: "20px 0px 15px 0px" },
|
|
4717
4710
|
hideBorder: !0
|
|
@@ -4792,29 +4785,35 @@ var Ei = { key: 0 }, Di = /* @__PURE__ */ u({
|
|
|
4792
4785
|
sticky: () => Fi
|
|
4793
4786
|
}), Ri = "Yc", zi = {
|
|
4794
4787
|
UiCard: fe,
|
|
4795
|
-
UiTable:
|
|
4796
|
-
UiFilter:
|
|
4797
|
-
UiForm:
|
|
4798
|
-
UiEditor:
|
|
4799
|
-
UiTree:
|
|
4800
|
-
UiInfiniteScroll:
|
|
4801
|
-
UiDescriptions:
|
|
4802
|
-
UiDialog:
|
|
4803
|
-
UiStaffSelect:
|
|
4804
|
-
UiUpload:
|
|
4788
|
+
UiTable: Ne,
|
|
4789
|
+
UiFilter: kt,
|
|
4790
|
+
UiForm: Ft,
|
|
4791
|
+
UiEditor: zt,
|
|
4792
|
+
UiTree: Jt,
|
|
4793
|
+
UiInfiniteScroll: nn,
|
|
4794
|
+
UiDescriptions: cn,
|
|
4795
|
+
UiDialog: fn,
|
|
4796
|
+
UiStaffSelect: Dn,
|
|
4797
|
+
UiUpload: Nn,
|
|
4805
4798
|
YcApproval: Ni
|
|
4806
|
-
},
|
|
4807
|
-
function
|
|
4808
|
-
|
|
4799
|
+
}, Q = {};
|
|
4800
|
+
function Bi(e) {
|
|
4801
|
+
e.ElMessage && (Q.ElMessage = e.ElMessage), e.app && (Q.app = e.app), e.vue && (Q.vue = e.vue);
|
|
4802
|
+
}
|
|
4803
|
+
function Vi(e) {
|
|
4804
|
+
Q.vue = e;
|
|
4809
4805
|
}
|
|
4810
4806
|
function $() {
|
|
4811
|
-
return
|
|
4807
|
+
return Q.vue;
|
|
4808
|
+
}
|
|
4809
|
+
function Hi() {
|
|
4810
|
+
return Q.ElMessage ? Q.ElMessage : Q.app?.config?.globalProperties?.$message ? Q.app.config.globalProperties.$message : Q.vue?.config?.globalProperties?.$message ? Q.vue.config.globalProperties.$message : null;
|
|
4812
4811
|
}
|
|
4813
4812
|
function Ui() {
|
|
4814
|
-
return
|
|
4813
|
+
return Hi();
|
|
4815
4814
|
}
|
|
4816
4815
|
var Wi = { install(e, t) {
|
|
4817
|
-
|
|
4816
|
+
Q.hostVue ||= e, t?.ElMessage && (Q.ElMessage = t.ElMessage);
|
|
4818
4817
|
for (let [t, n] of Object.entries(zi)) {
|
|
4819
4818
|
let r = n?.default || n;
|
|
4820
4819
|
if (r && (typeof r == "function" || typeof r == "object")) {
|
|
@@ -4824,8 +4823,8 @@ var Wi = { install(e, t) {
|
|
|
4824
4823
|
i !== n && e.component(i, r);
|
|
4825
4824
|
}
|
|
4826
4825
|
}
|
|
4827
|
-
for (let [t, n] of Object.entries(
|
|
4826
|
+
for (let [t, n] of Object.entries(Ct)) e.component(t, n), e.component(t.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), n);
|
|
4828
4827
|
for (let [t, n] of Object.entries(Li)) (typeof n == "function" || typeof n == "object") && e.directive(t, n);
|
|
4829
4828
|
} };
|
|
4830
4829
|
//#endregion
|
|
4831
|
-
export {
|
|
4830
|
+
export { kt as C, fe as E, Ft as S, z as T, fn as _, Vi as a, Jt as b, Si as c, Kn as d, qn as f, Dn as g, Nn as h, Bi as i, xi as l, Bn as m, $ as n, Wi as o, Un as p, Hi as r, Ni as s, Ui as t, Yn as u, cn as v, Ne as w, zt as x, nn as y };
|