@yetuzi/vue3-query-components 1.0.0 → 1.0.2

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/index.js CHANGED
@@ -1,32 +1,2133 @@
1
- import { defineComponent, useAttrs, reactive, provide, watchEffect, renderSlot, useTemplateRef, createElementBlock, openBlock, Fragment, renderList, normalizeClass, createBlock, withDirectives, unref, isRef, createSlots, withCtx, mergeProps, mergeModels, useCssVars, useModel, withModifiers, createVNode, resolveDynamicComponent, h, createTextVNode, toDisplayString, watch, computed, withKeys, normalizeProps, guardReactiveProps, inject, ref, useSlots } from "vue";
2
- import { useRequest } from "vue-hooks-plus";
3
- import { ElLoading, ElForm, ElFormItem, ElButton, ElTable, ElTableColumn, ElEmpty, ElPagination, ElSelect, ElOption, ElInput, ElDatePicker, ElRadioGroup, ElCheckboxGroup, ElSwitch } from "element-plus";
4
- import { merge, cloneDeep, kebabCase, camelCase } from "lodash-es";
5
- import dayjs from "dayjs";
6
- const _sfc_main$a = /* @__PURE__ */ defineComponent({
7
- ...{
8
- name: "CommonConfigProvider",
9
- inheritAttrs: false
10
- },
1
+ var Er = Object.defineProperty, Pr = Object.defineProperties;
2
+ var jr = Object.getOwnPropertyDescriptors;
3
+ var Le = Object.getOwnPropertySymbols;
4
+ var Bt = Object.prototype.hasOwnProperty, Ut = Object.prototype.propertyIsEnumerable;
5
+ var zt = Math.pow, Vt = (e, t, n) => t in e ? Er(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, S = (e, t) => {
6
+ for (var n in t || (t = {}))
7
+ Bt.call(t, n) && Vt(e, n, t[n]);
8
+ if (Le)
9
+ for (var n of Le(t))
10
+ Ut.call(t, n) && Vt(e, n, t[n]);
11
+ return e;
12
+ }, W = (e, t) => Pr(e, jr(t));
13
+ var He = (e, t) => {
14
+ var n = {};
15
+ for (var r in e)
16
+ Bt.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
17
+ if (e != null && Le)
18
+ for (var r of Le(e))
19
+ t.indexOf(r) < 0 && Ut.call(e, r) && (n[r] = e[r]);
20
+ return n;
21
+ };
22
+ var at = (e, t, n) => new Promise((r, o) => {
23
+ var i = (u) => {
24
+ try {
25
+ s(n.next(u));
26
+ } catch (l) {
27
+ o(l);
28
+ }
29
+ }, a = (u) => {
30
+ try {
31
+ s(n.throw(u));
32
+ } catch (l) {
33
+ o(l);
34
+ }
35
+ }, s = (u) => u.done ? r(u.value) : Promise.resolve(u.value).then(i, a);
36
+ s((n = n.apply(e, t)).next());
37
+ });
38
+ import { defineComponent as J, useAttrs as Ar, reactive as Be, provide as Rr, watchEffect as ae, renderSlot as Q, ref as I, unref as h, watch as Se, onScopeDispose as St, computed as re, onUnmounted as jn, inject as An, isRef as Tt, toRefs as Mr, readonly as Dr, isVNode as Nr, cloneVNode as Fr, useTemplateRef as Ct, createElementBlock as he, openBlock as N, Fragment as Qe, renderList as le, normalizeClass as Ir, createBlock as H, withDirectives as Vr, createSlots as Re, withCtx as k, mergeProps as G, mergeModels as te, useCssVars as Br, useModel as oe, withModifiers as Ur, createVNode as Me, resolveDynamicComponent as Lt, h as Ht, createTextVNode as ft, toDisplayString as dt, withKeys as zr, normalizeProps as Lr, guardReactiveProps as Hr, useSlots as Wr } from "vue";
39
+ import { ElLoading as Yr, ElForm as qr, ElFormItem as Wt, ElButton as Yt, ElTable as kr, ElTableColumn as Gr, ElEmpty as Zr, ElPagination as Xr, ElSelect as Jr, ElOption as Qr, ElInput as Kr, ElDatePicker as eo, ElRadioGroup as to, ElCheckboxGroup as no, ElSwitch as ro } from "element-plus";
40
+ var Rn = typeof global == "object" && global && global.Object === Object && global, oo = typeof self == "object" && self && self.Object === Object && self, K = Rn || oo || Function("return this")(), ce = K.Symbol, Mn = Object.prototype, ao = Mn.hasOwnProperty, io = Mn.toString, je = ce ? ce.toStringTag : void 0;
41
+ function so(e) {
42
+ var t = ao.call(e, je), n = e[je];
43
+ try {
44
+ e[je] = void 0;
45
+ var r = !0;
46
+ } catch (i) {
47
+ }
48
+ var o = io.call(e);
49
+ return r && (t ? e[je] = n : delete e[je]), o;
50
+ }
51
+ var uo = Object.prototype, lo = uo.toString;
52
+ function co(e) {
53
+ return lo.call(e);
54
+ }
55
+ var fo = "[object Null]", po = "[object Undefined]", qt = ce ? ce.toStringTag : void 0;
56
+ function be(e) {
57
+ return e == null ? e === void 0 ? po : fo : qt && qt in Object(e) ? so(e) : co(e);
58
+ }
59
+ function fe(e) {
60
+ return e != null && typeof e == "object";
61
+ }
62
+ var mo = "[object Symbol]";
63
+ function Dn(e) {
64
+ return typeof e == "symbol" || fe(e) && be(e) == mo;
65
+ }
66
+ function ho(e, t) {
67
+ for (var n = -1, r = e == null ? 0 : e.length, o = Array(r); ++n < r; )
68
+ o[n] = t(e[n], n, e);
69
+ return o;
70
+ }
71
+ var Te = Array.isArray, kt = ce ? ce.prototype : void 0, Gt = kt ? kt.toString : void 0;
72
+ function Nn(e) {
73
+ if (typeof e == "string")
74
+ return e;
75
+ if (Te(e))
76
+ return ho(e, Nn) + "";
77
+ if (Dn(e))
78
+ return Gt ? Gt.call(e) : "";
79
+ var t = e + "";
80
+ return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
81
+ }
82
+ var go = /\s/;
83
+ function vo(e) {
84
+ for (var t = e.length; t-- && go.test(e.charAt(t)); )
85
+ ;
86
+ return t;
87
+ }
88
+ var bo = /^\s+/;
89
+ function yo(e) {
90
+ return e && e.slice(0, vo(e) + 1).replace(bo, "");
91
+ }
92
+ function X(e) {
93
+ var t = typeof e;
94
+ return e != null && (t == "object" || t == "function");
95
+ }
96
+ var Zt = NaN, wo = /^[-+]0x[0-9a-f]+$/i, _o = /^0b[01]+$/i, xo = /^0o[0-7]+$/i, $o = parseInt;
97
+ function Xt(e) {
98
+ if (typeof e == "number")
99
+ return e;
100
+ if (Dn(e))
101
+ return Zt;
102
+ if (X(e)) {
103
+ var t = typeof e.valueOf == "function" ? e.valueOf() : e;
104
+ e = X(t) ? t + "" : t;
105
+ }
106
+ if (typeof e != "string")
107
+ return e === 0 ? e : +e;
108
+ e = yo(e);
109
+ var n = _o.test(e);
110
+ return n || xo.test(e) ? $o(e.slice(2), n ? 2 : 8) : wo.test(e) ? Zt : +e;
111
+ }
112
+ function Fn(e) {
113
+ return e;
114
+ }
115
+ var So = "[object AsyncFunction]", To = "[object Function]", Co = "[object GeneratorFunction]", Oo = "[object Proxy]";
116
+ function Ot(e) {
117
+ if (!X(e))
118
+ return !1;
119
+ var t = be(e);
120
+ return t == To || t == Co || t == So || t == Oo;
121
+ }
122
+ var it = K["__core-js_shared__"], Jt = (function() {
123
+ var e = /[^.]+$/.exec(it && it.keys && it.keys.IE_PROTO || "");
124
+ return e ? "Symbol(src)_1." + e : "";
125
+ })();
126
+ function Eo(e) {
127
+ return !!Jt && Jt in e;
128
+ }
129
+ var Po = Function.prototype, jo = Po.toString;
130
+ function ye(e) {
131
+ if (e != null) {
132
+ try {
133
+ return jo.call(e);
134
+ } catch (t) {
135
+ }
136
+ try {
137
+ return e + "";
138
+ } catch (t) {
139
+ }
140
+ }
141
+ return "";
142
+ }
143
+ var Ao = /[\\^$.*+?()[\]{}|]/g, Ro = /^\[object .+?Constructor\]$/, Mo = Function.prototype, Do = Object.prototype, No = Mo.toString, Fo = Do.hasOwnProperty, Io = RegExp(
144
+ "^" + No.call(Fo).replace(Ao, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
145
+ );
146
+ function Vo(e) {
147
+ if (!X(e) || Eo(e))
148
+ return !1;
149
+ var t = Ot(e) ? Io : Ro;
150
+ return t.test(ye(e));
151
+ }
152
+ function Bo(e, t) {
153
+ return e == null ? void 0 : e[t];
154
+ }
155
+ function we(e, t) {
156
+ var n = Bo(e, t);
157
+ return Vo(n) ? n : void 0;
158
+ }
159
+ var pt = we(K, "WeakMap"), Qt = Object.create, Uo = /* @__PURE__ */ (function() {
160
+ function e() {
161
+ }
162
+ return function(t) {
163
+ if (!X(t))
164
+ return {};
165
+ if (Qt)
166
+ return Qt(t);
167
+ e.prototype = t;
168
+ var n = new e();
169
+ return e.prototype = void 0, n;
170
+ };
171
+ })();
172
+ function zo(e, t, n) {
173
+ switch (n.length) {
174
+ case 0:
175
+ return e.call(t);
176
+ case 1:
177
+ return e.call(t, n[0]);
178
+ case 2:
179
+ return e.call(t, n[0], n[1]);
180
+ case 3:
181
+ return e.call(t, n[0], n[1], n[2]);
182
+ }
183
+ return e.apply(t, n);
184
+ }
185
+ function Lo(e, t) {
186
+ var n = -1, r = e.length;
187
+ for (t || (t = Array(r)); ++n < r; )
188
+ t[n] = e[n];
189
+ return t;
190
+ }
191
+ var Ho = 800, Wo = 16, Yo = Date.now;
192
+ function qo(e) {
193
+ var t = 0, n = 0;
194
+ return function() {
195
+ var r = Yo(), o = Wo - (r - n);
196
+ if (n = r, o > 0) {
197
+ if (++t >= Ho)
198
+ return arguments[0];
199
+ } else
200
+ t = 0;
201
+ return e.apply(void 0, arguments);
202
+ };
203
+ }
204
+ function ko(e) {
205
+ return function() {
206
+ return e;
207
+ };
208
+ }
209
+ var Je = (function() {
210
+ try {
211
+ var e = we(Object, "defineProperty");
212
+ return e({}, "", {}), e;
213
+ } catch (t) {
214
+ }
215
+ })(), Go = Je ? function(e, t) {
216
+ return Je(e, "toString", {
217
+ configurable: !0,
218
+ enumerable: !1,
219
+ value: ko(t),
220
+ writable: !0
221
+ });
222
+ } : Fn, Zo = qo(Go);
223
+ function Xo(e, t) {
224
+ for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
225
+ ;
226
+ return e;
227
+ }
228
+ var Jo = 9007199254740991, Qo = /^(?:0|[1-9]\d*)$/;
229
+ function In(e, t) {
230
+ var n = typeof e;
231
+ return t = t == null ? Jo : t, !!t && (n == "number" || n != "symbol" && Qo.test(e)) && e > -1 && e % 1 == 0 && e < t;
232
+ }
233
+ function Et(e, t, n) {
234
+ t == "__proto__" && Je ? Je(e, t, {
235
+ configurable: !0,
236
+ enumerable: !0,
237
+ value: n,
238
+ writable: !0
239
+ }) : e[t] = n;
240
+ }
241
+ function Ke(e, t) {
242
+ return e === t || e !== e && t !== t;
243
+ }
244
+ var Ko = Object.prototype, ea = Ko.hasOwnProperty;
245
+ function Vn(e, t, n) {
246
+ var r = e[t];
247
+ (!(ea.call(e, t) && Ke(r, n)) || n === void 0 && !(t in e)) && Et(e, t, n);
248
+ }
249
+ function ta(e, t, n, r) {
250
+ var o = !n;
251
+ n || (n = {});
252
+ for (var i = -1, a = t.length; ++i < a; ) {
253
+ var s = t[i], u = void 0;
254
+ u === void 0 && (u = e[s]), o ? Et(n, s, u) : Vn(n, s, u);
255
+ }
256
+ return n;
257
+ }
258
+ var Kt = Math.max;
259
+ function na(e, t, n) {
260
+ return t = Kt(t === void 0 ? e.length - 1 : t, 0), function() {
261
+ for (var r = arguments, o = -1, i = Kt(r.length - t, 0), a = Array(i); ++o < i; )
262
+ a[o] = r[t + o];
263
+ o = -1;
264
+ for (var s = Array(t + 1); ++o < t; )
265
+ s[o] = r[o];
266
+ return s[t] = n(a), zo(e, this, s);
267
+ };
268
+ }
269
+ function ra(e, t) {
270
+ return Zo(na(e, t, Fn), e + "");
271
+ }
272
+ var oa = 9007199254740991;
273
+ function Bn(e) {
274
+ return typeof e == "number" && e > -1 && e % 1 == 0 && e <= oa;
275
+ }
276
+ function et(e) {
277
+ return e != null && Bn(e.length) && !Ot(e);
278
+ }
279
+ function aa(e, t, n) {
280
+ if (!X(n))
281
+ return !1;
282
+ var r = typeof t;
283
+ return (r == "number" ? et(n) && In(t, n.length) : r == "string" && t in n) ? Ke(n[t], e) : !1;
284
+ }
285
+ function ia(e) {
286
+ return ra(function(t, n) {
287
+ var r = -1, o = n.length, i = o > 1 ? n[o - 1] : void 0, a = o > 2 ? n[2] : void 0;
288
+ for (i = e.length > 3 && typeof i == "function" ? (o--, i) : void 0, a && aa(n[0], n[1], a) && (i = o < 3 ? void 0 : i, o = 1), t = Object(t); ++r < o; ) {
289
+ var s = n[r];
290
+ s && e(t, s, r, i);
291
+ }
292
+ return t;
293
+ });
294
+ }
295
+ var sa = Object.prototype;
296
+ function Pt(e) {
297
+ var t = e && e.constructor, n = typeof t == "function" && t.prototype || sa;
298
+ return e === n;
299
+ }
300
+ function ua(e, t) {
301
+ for (var n = -1, r = Array(e); ++n < e; )
302
+ r[n] = t(n);
303
+ return r;
304
+ }
305
+ var la = "[object Arguments]";
306
+ function en(e) {
307
+ return fe(e) && be(e) == la;
308
+ }
309
+ var Un = Object.prototype, ca = Un.hasOwnProperty, fa = Un.propertyIsEnumerable, mt = en(/* @__PURE__ */ (function() {
310
+ return arguments;
311
+ })()) ? en : function(e) {
312
+ return fe(e) && ca.call(e, "callee") && !fa.call(e, "callee");
313
+ };
314
+ function da() {
315
+ return !1;
316
+ }
317
+ var zn = typeof exports == "object" && exports && !exports.nodeType && exports, tn = zn && typeof module == "object" && module && !module.nodeType && module, pa = tn && tn.exports === zn, nn = pa ? K.Buffer : void 0, ma = nn ? nn.isBuffer : void 0, jt = ma || da, ha = "[object Arguments]", ga = "[object Array]", va = "[object Boolean]", ba = "[object Date]", ya = "[object Error]", wa = "[object Function]", _a = "[object Map]", xa = "[object Number]", $a = "[object Object]", Sa = "[object RegExp]", Ta = "[object Set]", Ca = "[object String]", Oa = "[object WeakMap]", Ea = "[object ArrayBuffer]", Pa = "[object DataView]", ja = "[object Float32Array]", Aa = "[object Float64Array]", Ra = "[object Int8Array]", Ma = "[object Int16Array]", Da = "[object Int32Array]", Na = "[object Uint8Array]", Fa = "[object Uint8ClampedArray]", Ia = "[object Uint16Array]", Va = "[object Uint32Array]", M = {};
318
+ M[ja] = M[Aa] = M[Ra] = M[Ma] = M[Da] = M[Na] = M[Fa] = M[Ia] = M[Va] = !0;
319
+ M[ha] = M[ga] = M[Ea] = M[va] = M[Pa] = M[ba] = M[ya] = M[wa] = M[_a] = M[xa] = M[$a] = M[Sa] = M[Ta] = M[Ca] = M[Oa] = !1;
320
+ function Ba(e) {
321
+ return fe(e) && Bn(e.length) && !!M[be(e)];
322
+ }
323
+ function At(e) {
324
+ return function(t) {
325
+ return e(t);
326
+ };
327
+ }
328
+ var Ln = typeof exports == "object" && exports && !exports.nodeType && exports, De = Ln && typeof module == "object" && module && !module.nodeType && module, Ua = De && De.exports === Ln, st = Ua && Rn.process, Ce = (function() {
329
+ try {
330
+ var e = De && De.require && De.require("util").types;
331
+ return e || st && st.binding && st.binding("util");
332
+ } catch (t) {
333
+ }
334
+ })(), rn = Ce && Ce.isTypedArray, Hn = rn ? At(rn) : Ba, za = Object.prototype, La = za.hasOwnProperty;
335
+ function Wn(e, t) {
336
+ var n = Te(e), r = !n && mt(e), o = !n && !r && jt(e), i = !n && !r && !o && Hn(e), a = n || r || o || i, s = a ? ua(e.length, String) : [], u = s.length;
337
+ for (var l in e)
338
+ (t || La.call(e, l)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
339
+ (l == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
340
+ o && (l == "offset" || l == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
341
+ i && (l == "buffer" || l == "byteLength" || l == "byteOffset") || // Skip index properties.
342
+ In(l, u))) && s.push(l);
343
+ return s;
344
+ }
345
+ function Yn(e, t) {
346
+ return function(n) {
347
+ return e(t(n));
348
+ };
349
+ }
350
+ var Ha = Yn(Object.keys, Object), Wa = Object.prototype, Ya = Wa.hasOwnProperty;
351
+ function qa(e) {
352
+ if (!Pt(e))
353
+ return Ha(e);
354
+ var t = [];
355
+ for (var n in Object(e))
356
+ Ya.call(e, n) && n != "constructor" && t.push(n);
357
+ return t;
358
+ }
359
+ function ka(e) {
360
+ return et(e) ? Wn(e) : qa(e);
361
+ }
362
+ function Ga(e) {
363
+ var t = [];
364
+ if (e != null)
365
+ for (var n in Object(e))
366
+ t.push(n);
367
+ return t;
368
+ }
369
+ var Za = Object.prototype, Xa = Za.hasOwnProperty;
370
+ function Ja(e) {
371
+ if (!X(e))
372
+ return Ga(e);
373
+ var t = Pt(e), n = [];
374
+ for (var r in e)
375
+ r == "constructor" && (t || !Xa.call(e, r)) || n.push(r);
376
+ return n;
377
+ }
378
+ function qn(e) {
379
+ return et(e) ? Wn(e, !0) : Ja(e);
380
+ }
381
+ var Ie = we(Object, "create");
382
+ function Qa() {
383
+ this.__data__ = Ie ? Ie(null) : {}, this.size = 0;
384
+ }
385
+ function Ka(e) {
386
+ var t = this.has(e) && delete this.__data__[e];
387
+ return this.size -= t ? 1 : 0, t;
388
+ }
389
+ var ei = "__lodash_hash_undefined__", ti = Object.prototype, ni = ti.hasOwnProperty;
390
+ function ri(e) {
391
+ var t = this.__data__;
392
+ if (Ie) {
393
+ var n = t[e];
394
+ return n === ei ? void 0 : n;
395
+ }
396
+ return ni.call(t, e) ? t[e] : void 0;
397
+ }
398
+ var oi = Object.prototype, ai = oi.hasOwnProperty;
399
+ function ii(e) {
400
+ var t = this.__data__;
401
+ return Ie ? t[e] !== void 0 : ai.call(t, e);
402
+ }
403
+ var si = "__lodash_hash_undefined__";
404
+ function ui(e, t) {
405
+ var n = this.__data__;
406
+ return this.size += this.has(e) ? 0 : 1, n[e] = Ie && t === void 0 ? si : t, this;
407
+ }
408
+ function ge(e) {
409
+ var t = -1, n = e == null ? 0 : e.length;
410
+ for (this.clear(); ++t < n; ) {
411
+ var r = e[t];
412
+ this.set(r[0], r[1]);
413
+ }
414
+ }
415
+ ge.prototype.clear = Qa;
416
+ ge.prototype.delete = Ka;
417
+ ge.prototype.get = ri;
418
+ ge.prototype.has = ii;
419
+ ge.prototype.set = ui;
420
+ function li() {
421
+ this.__data__ = [], this.size = 0;
422
+ }
423
+ function tt(e, t) {
424
+ for (var n = e.length; n--; )
425
+ if (Ke(e[n][0], t))
426
+ return n;
427
+ return -1;
428
+ }
429
+ var ci = Array.prototype, fi = ci.splice;
430
+ function di(e) {
431
+ var t = this.__data__, n = tt(t, e);
432
+ if (n < 0)
433
+ return !1;
434
+ var r = t.length - 1;
435
+ return n == r ? t.pop() : fi.call(t, n, 1), --this.size, !0;
436
+ }
437
+ function pi(e) {
438
+ var t = this.__data__, n = tt(t, e);
439
+ return n < 0 ? void 0 : t[n][1];
440
+ }
441
+ function mi(e) {
442
+ return tt(this.__data__, e) > -1;
443
+ }
444
+ function hi(e, t) {
445
+ var n = this.__data__, r = tt(n, e);
446
+ return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
447
+ }
448
+ function ie(e) {
449
+ var t = -1, n = e == null ? 0 : e.length;
450
+ for (this.clear(); ++t < n; ) {
451
+ var r = e[t];
452
+ this.set(r[0], r[1]);
453
+ }
454
+ }
455
+ ie.prototype.clear = li;
456
+ ie.prototype.delete = di;
457
+ ie.prototype.get = pi;
458
+ ie.prototype.has = mi;
459
+ ie.prototype.set = hi;
460
+ var Ve = we(K, "Map");
461
+ function gi() {
462
+ this.size = 0, this.__data__ = {
463
+ hash: new ge(),
464
+ map: new (Ve || ie)(),
465
+ string: new ge()
466
+ };
467
+ }
468
+ function vi(e) {
469
+ var t = typeof e;
470
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
471
+ }
472
+ function nt(e, t) {
473
+ var n = e.__data__;
474
+ return vi(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
475
+ }
476
+ function bi(e) {
477
+ var t = nt(this, e).delete(e);
478
+ return this.size -= t ? 1 : 0, t;
479
+ }
480
+ function yi(e) {
481
+ return nt(this, e).get(e);
482
+ }
483
+ function wi(e) {
484
+ return nt(this, e).has(e);
485
+ }
486
+ function _i(e, t) {
487
+ var n = nt(this, e), r = n.size;
488
+ return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
489
+ }
490
+ function Oe(e) {
491
+ var t = -1, n = e == null ? 0 : e.length;
492
+ for (this.clear(); ++t < n; ) {
493
+ var r = e[t];
494
+ this.set(r[0], r[1]);
495
+ }
496
+ }
497
+ Oe.prototype.clear = gi;
498
+ Oe.prototype.delete = bi;
499
+ Oe.prototype.get = yi;
500
+ Oe.prototype.has = wi;
501
+ Oe.prototype.set = _i;
502
+ function rt(e) {
503
+ return e == null ? "" : Nn(e);
504
+ }
505
+ function xi(e, t) {
506
+ for (var n = -1, r = t.length, o = e.length; ++n < r; )
507
+ e[o + n] = t[n];
508
+ return e;
509
+ }
510
+ var kn = Yn(Object.getPrototypeOf, Object), $i = "[object Object]", Si = Function.prototype, Ti = Object.prototype, Gn = Si.toString, Ci = Ti.hasOwnProperty, Oi = Gn.call(Object);
511
+ function Ei(e) {
512
+ if (!fe(e) || be(e) != $i)
513
+ return !1;
514
+ var t = kn(e);
515
+ if (t === null)
516
+ return !0;
517
+ var n = Ci.call(t, "constructor") && t.constructor;
518
+ return typeof n == "function" && n instanceof n && Gn.call(n) == Oi;
519
+ }
520
+ function Pi(e, t, n) {
521
+ var r = -1, o = e.length;
522
+ t < 0 && (t = -t > o ? 0 : o + t), n = n > o ? o : n, n < 0 && (n += o), o = t > n ? 0 : n - t >>> 0, t >>>= 0;
523
+ for (var i = Array(o); ++r < o; )
524
+ i[r] = e[r + t];
525
+ return i;
526
+ }
527
+ function ji(e, t, n) {
528
+ var r = e.length;
529
+ return n = n === void 0 ? r : n, !t && n >= r ? e : Pi(e, t, n);
530
+ }
531
+ var Ai = "\\ud800-\\udfff", Ri = "\\u0300-\\u036f", Mi = "\\ufe20-\\ufe2f", Di = "\\u20d0-\\u20ff", Ni = Ri + Mi + Di, Fi = "\\ufe0e\\ufe0f", Ii = "\\u200d", Vi = RegExp("[" + Ii + Ai + Ni + Fi + "]");
532
+ function Zn(e) {
533
+ return Vi.test(e);
534
+ }
535
+ function Bi(e) {
536
+ return e.split("");
537
+ }
538
+ var Xn = "\\ud800-\\udfff", Ui = "\\u0300-\\u036f", zi = "\\ufe20-\\ufe2f", Li = "\\u20d0-\\u20ff", Hi = Ui + zi + Li, Wi = "\\ufe0e\\ufe0f", Yi = "[" + Xn + "]", ht = "[" + Hi + "]", gt = "\\ud83c[\\udffb-\\udfff]", qi = "(?:" + ht + "|" + gt + ")", Jn = "[^" + Xn + "]", Qn = "(?:\\ud83c[\\udde6-\\uddff]){2}", Kn = "[\\ud800-\\udbff][\\udc00-\\udfff]", ki = "\\u200d", er = qi + "?", tr = "[" + Wi + "]?", Gi = "(?:" + ki + "(?:" + [Jn, Qn, Kn].join("|") + ")" + tr + er + ")*", Zi = tr + er + Gi, Xi = "(?:" + [Jn + ht + "?", ht, Qn, Kn, Yi].join("|") + ")", Ji = RegExp(gt + "(?=" + gt + ")|" + Xi + Zi, "g");
539
+ function Qi(e) {
540
+ return e.match(Ji) || [];
541
+ }
542
+ function Ki(e) {
543
+ return Zn(e) ? Qi(e) : Bi(e);
544
+ }
545
+ function es(e) {
546
+ return function(t) {
547
+ t = rt(t);
548
+ var n = Zn(t) ? Ki(t) : void 0, r = n ? n[0] : t.charAt(0), o = n ? ji(n, 1).join("") : t.slice(1);
549
+ return r[e]() + o;
550
+ };
551
+ }
552
+ var ts = es("toUpperCase");
553
+ function ns(e) {
554
+ return ts(rt(e).toLowerCase());
555
+ }
556
+ function rs(e, t, n, r) {
557
+ for (var o = -1, i = e == null ? 0 : e.length; ++o < i; )
558
+ n = t(n, e[o], o, e);
559
+ return n;
560
+ }
561
+ function os(e) {
562
+ return function(t) {
563
+ return e == null ? void 0 : e[t];
564
+ };
565
+ }
566
+ var as = {
567
+ // Latin-1 Supplement block.
568
+ À: "A",
569
+ Á: "A",
570
+ Â: "A",
571
+ Ã: "A",
572
+ Ä: "A",
573
+ Å: "A",
574
+ à: "a",
575
+ á: "a",
576
+ â: "a",
577
+ ã: "a",
578
+ ä: "a",
579
+ å: "a",
580
+ Ç: "C",
581
+ ç: "c",
582
+ Ð: "D",
583
+ ð: "d",
584
+ È: "E",
585
+ É: "E",
586
+ Ê: "E",
587
+ Ë: "E",
588
+ è: "e",
589
+ é: "e",
590
+ ê: "e",
591
+ ë: "e",
592
+ Ì: "I",
593
+ Í: "I",
594
+ Î: "I",
595
+ Ï: "I",
596
+ ì: "i",
597
+ í: "i",
598
+ î: "i",
599
+ ï: "i",
600
+ Ñ: "N",
601
+ ñ: "n",
602
+ Ò: "O",
603
+ Ó: "O",
604
+ Ô: "O",
605
+ Õ: "O",
606
+ Ö: "O",
607
+ Ø: "O",
608
+ ò: "o",
609
+ ó: "o",
610
+ ô: "o",
611
+ õ: "o",
612
+ ö: "o",
613
+ ø: "o",
614
+ Ù: "U",
615
+ Ú: "U",
616
+ Û: "U",
617
+ Ü: "U",
618
+ ù: "u",
619
+ ú: "u",
620
+ û: "u",
621
+ ü: "u",
622
+ Ý: "Y",
623
+ ý: "y",
624
+ ÿ: "y",
625
+ Æ: "Ae",
626
+ æ: "ae",
627
+ Þ: "Th",
628
+ þ: "th",
629
+ ß: "ss",
630
+ // Latin Extended-A block.
631
+ Ā: "A",
632
+ Ă: "A",
633
+ Ą: "A",
634
+ ā: "a",
635
+ ă: "a",
636
+ ą: "a",
637
+ Ć: "C",
638
+ Ĉ: "C",
639
+ Ċ: "C",
640
+ Č: "C",
641
+ ć: "c",
642
+ ĉ: "c",
643
+ ċ: "c",
644
+ č: "c",
645
+ Ď: "D",
646
+ Đ: "D",
647
+ ď: "d",
648
+ đ: "d",
649
+ Ē: "E",
650
+ Ĕ: "E",
651
+ Ė: "E",
652
+ Ę: "E",
653
+ Ě: "E",
654
+ ē: "e",
655
+ ĕ: "e",
656
+ ė: "e",
657
+ ę: "e",
658
+ ě: "e",
659
+ Ĝ: "G",
660
+ Ğ: "G",
661
+ Ġ: "G",
662
+ Ģ: "G",
663
+ ĝ: "g",
664
+ ğ: "g",
665
+ ġ: "g",
666
+ ģ: "g",
667
+ Ĥ: "H",
668
+ Ħ: "H",
669
+ ĥ: "h",
670
+ ħ: "h",
671
+ Ĩ: "I",
672
+ Ī: "I",
673
+ Ĭ: "I",
674
+ Į: "I",
675
+ İ: "I",
676
+ ĩ: "i",
677
+ ī: "i",
678
+ ĭ: "i",
679
+ į: "i",
680
+ ı: "i",
681
+ Ĵ: "J",
682
+ ĵ: "j",
683
+ Ķ: "K",
684
+ ķ: "k",
685
+ ĸ: "k",
686
+ Ĺ: "L",
687
+ Ļ: "L",
688
+ Ľ: "L",
689
+ Ŀ: "L",
690
+ Ł: "L",
691
+ ĺ: "l",
692
+ ļ: "l",
693
+ ľ: "l",
694
+ ŀ: "l",
695
+ ł: "l",
696
+ Ń: "N",
697
+ Ņ: "N",
698
+ Ň: "N",
699
+ Ŋ: "N",
700
+ ń: "n",
701
+ ņ: "n",
702
+ ň: "n",
703
+ ŋ: "n",
704
+ Ō: "O",
705
+ Ŏ: "O",
706
+ Ő: "O",
707
+ ō: "o",
708
+ ŏ: "o",
709
+ ő: "o",
710
+ Ŕ: "R",
711
+ Ŗ: "R",
712
+ Ř: "R",
713
+ ŕ: "r",
714
+ ŗ: "r",
715
+ ř: "r",
716
+ Ś: "S",
717
+ Ŝ: "S",
718
+ Ş: "S",
719
+ Š: "S",
720
+ ś: "s",
721
+ ŝ: "s",
722
+ ş: "s",
723
+ š: "s",
724
+ Ţ: "T",
725
+ Ť: "T",
726
+ Ŧ: "T",
727
+ ţ: "t",
728
+ ť: "t",
729
+ ŧ: "t",
730
+ Ũ: "U",
731
+ Ū: "U",
732
+ Ŭ: "U",
733
+ Ů: "U",
734
+ Ű: "U",
735
+ Ų: "U",
736
+ ũ: "u",
737
+ ū: "u",
738
+ ŭ: "u",
739
+ ů: "u",
740
+ ű: "u",
741
+ ų: "u",
742
+ Ŵ: "W",
743
+ ŵ: "w",
744
+ Ŷ: "Y",
745
+ ŷ: "y",
746
+ Ÿ: "Y",
747
+ Ź: "Z",
748
+ Ż: "Z",
749
+ Ž: "Z",
750
+ ź: "z",
751
+ ż: "z",
752
+ ž: "z",
753
+ IJ: "IJ",
754
+ ij: "ij",
755
+ Œ: "Oe",
756
+ œ: "oe",
757
+ ʼn: "'n",
758
+ ſ: "s"
759
+ }, is = os(as), ss = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, us = "\\u0300-\\u036f", ls = "\\ufe20-\\ufe2f", cs = "\\u20d0-\\u20ff", fs = us + ls + cs, ds = "[" + fs + "]", ps = RegExp(ds, "g");
760
+ function ms(e) {
761
+ return e = rt(e), e && e.replace(ss, is).replace(ps, "");
762
+ }
763
+ var hs = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;
764
+ function gs(e) {
765
+ return e.match(hs) || [];
766
+ }
767
+ var vs = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;
768
+ function bs(e) {
769
+ return vs.test(e);
770
+ }
771
+ var nr = "\\ud800-\\udfff", ys = "\\u0300-\\u036f", ws = "\\ufe20-\\ufe2f", _s = "\\u20d0-\\u20ff", xs = ys + ws + _s, rr = "\\u2700-\\u27bf", or = "a-z\\xdf-\\xf6\\xf8-\\xff", $s = "\\xac\\xb1\\xd7\\xf7", Ss = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", Ts = "\\u2000-\\u206f", Cs = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", ar = "A-Z\\xc0-\\xd6\\xd8-\\xde", Os = "\\ufe0e\\ufe0f", ir = $s + Ss + Ts + Cs, sr = "['’]", on = "[" + ir + "]", Es = "[" + xs + "]", ur = "\\d+", Ps = "[" + rr + "]", lr = "[" + or + "]", cr = "[^" + nr + ir + ur + rr + or + ar + "]", js = "\\ud83c[\\udffb-\\udfff]", As = "(?:" + Es + "|" + js + ")", Rs = "[^" + nr + "]", fr = "(?:\\ud83c[\\udde6-\\uddff]){2}", dr = "[\\ud800-\\udbff][\\udc00-\\udfff]", $e = "[" + ar + "]", Ms = "\\u200d", an = "(?:" + lr + "|" + cr + ")", Ds = "(?:" + $e + "|" + cr + ")", sn = "(?:" + sr + "(?:d|ll|m|re|s|t|ve))?", un = "(?:" + sr + "(?:D|LL|M|RE|S|T|VE))?", pr = As + "?", mr = "[" + Os + "]?", Ns = "(?:" + Ms + "(?:" + [Rs, fr, dr].join("|") + ")" + mr + pr + ")*", Fs = "\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])", Is = "\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])", Vs = mr + pr + Ns, Bs = "(?:" + [Ps, fr, dr].join("|") + ")" + Vs, Us = RegExp([
772
+ $e + "?" + lr + "+" + sn + "(?=" + [on, $e, "$"].join("|") + ")",
773
+ Ds + "+" + un + "(?=" + [on, $e + an, "$"].join("|") + ")",
774
+ $e + "?" + an + "+" + sn,
775
+ $e + "+" + un,
776
+ Is,
777
+ Fs,
778
+ ur,
779
+ Bs
780
+ ].join("|"), "g");
781
+ function zs(e) {
782
+ return e.match(Us) || [];
783
+ }
784
+ function Ls(e, t, n) {
785
+ return e = rt(e), t = t, t === void 0 ? bs(e) ? zs(e) : gs(e) : e.match(t) || [];
786
+ }
787
+ var Hs = "['’]", Ws = RegExp(Hs, "g");
788
+ function hr(e) {
789
+ return function(t) {
790
+ return rs(Ls(ms(t).replace(Ws, "")), e, "");
791
+ };
792
+ }
793
+ var Ys = hr(function(e, t, n) {
794
+ return t = t.toLowerCase(), e + (n ? ns(t) : t);
795
+ });
796
+ function qs() {
797
+ this.__data__ = new ie(), this.size = 0;
798
+ }
799
+ function ks(e) {
800
+ var t = this.__data__, n = t.delete(e);
801
+ return this.size = t.size, n;
802
+ }
803
+ function Gs(e) {
804
+ return this.__data__.get(e);
805
+ }
806
+ function Zs(e) {
807
+ return this.__data__.has(e);
808
+ }
809
+ var Xs = 200;
810
+ function Js(e, t) {
811
+ var n = this.__data__;
812
+ if (n instanceof ie) {
813
+ var r = n.__data__;
814
+ if (!Ve || r.length < Xs - 1)
815
+ return r.push([e, t]), this.size = ++n.size, this;
816
+ n = this.__data__ = new Oe(r);
817
+ }
818
+ return n.set(e, t), this.size = n.size, this;
819
+ }
820
+ function _e(e) {
821
+ var t = this.__data__ = new ie(e);
822
+ this.size = t.size;
823
+ }
824
+ _e.prototype.clear = qs;
825
+ _e.prototype.delete = ks;
826
+ _e.prototype.get = Gs;
827
+ _e.prototype.has = Zs;
828
+ _e.prototype.set = Js;
829
+ var gr = typeof exports == "object" && exports && !exports.nodeType && exports, ln = gr && typeof module == "object" && module && !module.nodeType && module, Qs = ln && ln.exports === gr, cn = Qs ? K.Buffer : void 0, fn = cn ? cn.allocUnsafe : void 0;
830
+ function vr(e, t) {
831
+ if (t)
832
+ return e.slice();
833
+ var n = e.length, r = fn ? fn(n) : new e.constructor(n);
834
+ return e.copy(r), r;
835
+ }
836
+ function Ks(e, t) {
837
+ for (var n = -1, r = e == null ? 0 : e.length, o = 0, i = []; ++n < r; ) {
838
+ var a = e[n];
839
+ t(a, n, e) && (i[o++] = a);
840
+ }
841
+ return i;
842
+ }
843
+ function eu() {
844
+ return [];
845
+ }
846
+ var tu = Object.prototype, nu = tu.propertyIsEnumerable, dn = Object.getOwnPropertySymbols, ru = dn ? function(e) {
847
+ return e == null ? [] : (e = Object(e), Ks(dn(e), function(t) {
848
+ return nu.call(e, t);
849
+ }));
850
+ } : eu;
851
+ function ou(e, t, n) {
852
+ var r = t(e);
853
+ return Te(e) ? r : xi(r, n(e));
854
+ }
855
+ function au(e) {
856
+ return ou(e, ka, ru);
857
+ }
858
+ var vt = we(K, "DataView"), bt = we(K, "Promise"), yt = we(K, "Set"), pn = "[object Map]", iu = "[object Object]", mn = "[object Promise]", hn = "[object Set]", gn = "[object WeakMap]", vn = "[object DataView]", su = ye(vt), uu = ye(Ve), lu = ye(bt), cu = ye(yt), fu = ye(pt), ne = be;
859
+ (vt && ne(new vt(new ArrayBuffer(1))) != vn || Ve && ne(new Ve()) != pn || bt && ne(bt.resolve()) != mn || yt && ne(new yt()) != hn || pt && ne(new pt()) != gn) && (ne = function(e) {
860
+ var t = be(e), n = t == iu ? e.constructor : void 0, r = n ? ye(n) : "";
861
+ if (r)
862
+ switch (r) {
863
+ case su:
864
+ return vn;
865
+ case uu:
866
+ return pn;
867
+ case lu:
868
+ return mn;
869
+ case cu:
870
+ return hn;
871
+ case fu:
872
+ return gn;
873
+ }
874
+ return t;
875
+ });
876
+ var du = Object.prototype, pu = du.hasOwnProperty;
877
+ function mu(e) {
878
+ var t = e.length, n = new e.constructor(t);
879
+ return t && typeof e[0] == "string" && pu.call(e, "index") && (n.index = e.index, n.input = e.input), n;
880
+ }
881
+ var bn = K.Uint8Array;
882
+ function Rt(e) {
883
+ var t = new e.constructor(e.byteLength);
884
+ return new bn(t).set(new bn(e)), t;
885
+ }
886
+ function hu(e, t) {
887
+ var n = Rt(e.buffer);
888
+ return new e.constructor(n, e.byteOffset, e.byteLength);
889
+ }
890
+ var gu = /\w*$/;
891
+ function vu(e) {
892
+ var t = new e.constructor(e.source, gu.exec(e));
893
+ return t.lastIndex = e.lastIndex, t;
894
+ }
895
+ var yn = ce ? ce.prototype : void 0, wn = yn ? yn.valueOf : void 0;
896
+ function bu(e) {
897
+ return wn ? Object(wn.call(e)) : {};
898
+ }
899
+ function br(e, t) {
900
+ var n = t ? Rt(e.buffer) : e.buffer;
901
+ return new e.constructor(n, e.byteOffset, e.length);
902
+ }
903
+ var yu = "[object Boolean]", wu = "[object Date]", _u = "[object Map]", xu = "[object Number]", $u = "[object RegExp]", Su = "[object Set]", Tu = "[object String]", Cu = "[object Symbol]", Ou = "[object ArrayBuffer]", Eu = "[object DataView]", Pu = "[object Float32Array]", ju = "[object Float64Array]", Au = "[object Int8Array]", Ru = "[object Int16Array]", Mu = "[object Int32Array]", Du = "[object Uint8Array]", Nu = "[object Uint8ClampedArray]", Fu = "[object Uint16Array]", Iu = "[object Uint32Array]";
904
+ function Vu(e, t, n) {
905
+ var r = e.constructor;
906
+ switch (t) {
907
+ case Ou:
908
+ return Rt(e);
909
+ case yu:
910
+ case wu:
911
+ return new r(+e);
912
+ case Eu:
913
+ return hu(e);
914
+ case Pu:
915
+ case ju:
916
+ case Au:
917
+ case Ru:
918
+ case Mu:
919
+ case Du:
920
+ case Nu:
921
+ case Fu:
922
+ case Iu:
923
+ return br(e, n);
924
+ case _u:
925
+ return new r();
926
+ case xu:
927
+ case Tu:
928
+ return new r(e);
929
+ case $u:
930
+ return vu(e);
931
+ case Su:
932
+ return new r();
933
+ case Cu:
934
+ return bu(e);
935
+ }
936
+ }
937
+ function yr(e) {
938
+ return typeof e.constructor == "function" && !Pt(e) ? Uo(kn(e)) : {};
939
+ }
940
+ var Bu = "[object Map]";
941
+ function Uu(e) {
942
+ return fe(e) && ne(e) == Bu;
943
+ }
944
+ var _n = Ce && Ce.isMap, zu = _n ? At(_n) : Uu, Lu = "[object Set]";
945
+ function Hu(e) {
946
+ return fe(e) && ne(e) == Lu;
947
+ }
948
+ var xn = Ce && Ce.isSet, Wu = xn ? At(xn) : Hu, Yu = 1, wr = "[object Arguments]", qu = "[object Array]", ku = "[object Boolean]", Gu = "[object Date]", Zu = "[object Error]", _r = "[object Function]", Xu = "[object GeneratorFunction]", Ju = "[object Map]", Qu = "[object Number]", xr = "[object Object]", Ku = "[object RegExp]", el = "[object Set]", tl = "[object String]", nl = "[object Symbol]", rl = "[object WeakMap]", ol = "[object ArrayBuffer]", al = "[object DataView]", il = "[object Float32Array]", sl = "[object Float64Array]", ul = "[object Int8Array]", ll = "[object Int16Array]", cl = "[object Int32Array]", fl = "[object Uint8Array]", dl = "[object Uint8ClampedArray]", pl = "[object Uint16Array]", ml = "[object Uint32Array]", A = {};
949
+ A[wr] = A[qu] = A[ol] = A[al] = A[ku] = A[Gu] = A[il] = A[sl] = A[ul] = A[ll] = A[cl] = A[Ju] = A[Qu] = A[xr] = A[Ku] = A[el] = A[tl] = A[nl] = A[fl] = A[dl] = A[pl] = A[ml] = !0;
950
+ A[Zu] = A[_r] = A[rl] = !1;
951
+ function qe(e, t, n, r, o, i) {
952
+ var a, s = t & Yu;
953
+ if (a !== void 0)
954
+ return a;
955
+ if (!X(e))
956
+ return e;
957
+ var u = Te(e);
958
+ if (u)
959
+ a = mu(e);
960
+ else {
961
+ var l = ne(e), c = l == _r || l == Xu;
962
+ if (jt(e))
963
+ return vr(e, s);
964
+ if (l == xr || l == wr || c && !o)
965
+ a = c ? {} : yr(e);
966
+ else {
967
+ if (!A[l])
968
+ return o ? e : {};
969
+ a = Vu(e, l, s);
970
+ }
971
+ }
972
+ i || (i = new _e());
973
+ var f = i.get(e);
974
+ if (f)
975
+ return f;
976
+ i.set(e, a), Wu(e) ? e.forEach(function(w) {
977
+ a.add(qe(w, t, n, w, e, i));
978
+ }) : zu(e) && e.forEach(function(w, P) {
979
+ a.set(P, qe(w, t, n, P, e, i));
980
+ });
981
+ var v = au, g = u ? void 0 : v(e);
982
+ return Xo(g || e, function(w, P) {
983
+ g && (P = w, w = e[P]), Vn(a, P, qe(w, t, n, P, e, i));
984
+ }), a;
985
+ }
986
+ var hl = 1, gl = 4;
987
+ function ve(e) {
988
+ return qe(e, hl | gl);
989
+ }
990
+ function vl(e) {
991
+ return function(t, n, r) {
992
+ for (var o = -1, i = Object(t), a = r(t), s = a.length; s--; ) {
993
+ var u = a[++o];
994
+ if (n(i[u], u, i) === !1)
995
+ break;
996
+ }
997
+ return t;
998
+ };
999
+ }
1000
+ var bl = vl(), ut = function() {
1001
+ return K.Date.now();
1002
+ }, yl = "Expected a function", wl = Math.max, _l = Math.min;
1003
+ function $r(e, t, n) {
1004
+ var r, o, i, a, s, u, l = 0, c = !1, f = !1, v = !0;
1005
+ if (typeof e != "function")
1006
+ throw new TypeError(yl);
1007
+ t = Xt(t) || 0, X(n) && (c = !!n.leading, f = "maxWait" in n, i = f ? wl(Xt(n.maxWait) || 0, t) : i, v = "trailing" in n ? !!n.trailing : v);
1008
+ function g(C) {
1009
+ var B = r, D = o;
1010
+ return r = o = void 0, l = C, a = e.apply(D, B), a;
1011
+ }
1012
+ function w(C) {
1013
+ return l = C, s = setTimeout(R, t), c ? g(C) : a;
1014
+ }
1015
+ function P(C) {
1016
+ var B = C - u, D = C - l, z = t - B;
1017
+ return f ? _l(z, i - D) : z;
1018
+ }
1019
+ function _(C) {
1020
+ var B = C - u, D = C - l;
1021
+ return u === void 0 || B >= t || B < 0 || f && D >= i;
1022
+ }
1023
+ function R() {
1024
+ var C = ut();
1025
+ if (_(C))
1026
+ return T(C);
1027
+ s = setTimeout(R, P(C));
1028
+ }
1029
+ function T(C) {
1030
+ return s = void 0, v && r ? g(C) : (r = o = void 0, a);
1031
+ }
1032
+ function ee() {
1033
+ s !== void 0 && clearTimeout(s), l = 0, r = u = o = s = void 0;
1034
+ }
1035
+ function se() {
1036
+ return s === void 0 ? a : T(ut());
1037
+ }
1038
+ function U() {
1039
+ var C = ut(), B = _(C);
1040
+ if (r = arguments, o = this, u = C, B) {
1041
+ if (s === void 0)
1042
+ return w(u);
1043
+ if (f)
1044
+ return clearTimeout(s), s = setTimeout(R, t), g(u);
1045
+ }
1046
+ return s === void 0 && (s = setTimeout(R, t)), a;
1047
+ }
1048
+ return U.cancel = ee, U.flush = se, U;
1049
+ }
1050
+ function wt(e, t, n) {
1051
+ (n !== void 0 && !Ke(e[t], n) || n === void 0 && !(t in e)) && Et(e, t, n);
1052
+ }
1053
+ function xl(e) {
1054
+ return fe(e) && et(e);
1055
+ }
1056
+ function _t(e, t) {
1057
+ if (!(t === "constructor" && typeof e[t] == "function") && t != "__proto__")
1058
+ return e[t];
1059
+ }
1060
+ function $l(e) {
1061
+ return ta(e, qn(e));
1062
+ }
1063
+ function Sl(e, t, n, r, o, i, a) {
1064
+ var s = _t(e, n), u = _t(t, n), l = a.get(u);
1065
+ if (l) {
1066
+ wt(e, n, l);
1067
+ return;
1068
+ }
1069
+ var c = i ? i(s, u, n + "", e, t, a) : void 0, f = c === void 0;
1070
+ if (f) {
1071
+ var v = Te(u), g = !v && jt(u), w = !v && !g && Hn(u);
1072
+ c = u, v || g || w ? Te(s) ? c = s : xl(s) ? c = Lo(s) : g ? (f = !1, c = vr(u, !0)) : w ? (f = !1, c = br(u, !0)) : c = [] : Ei(u) || mt(u) ? (c = s, mt(s) ? c = $l(s) : (!X(s) || Ot(s)) && (c = yr(u))) : f = !1;
1073
+ }
1074
+ f && (a.set(u, c), o(c, u, r, i, a), a.delete(u)), wt(e, n, c);
1075
+ }
1076
+ function Sr(e, t, n, r, o) {
1077
+ e !== t && bl(t, function(i, a) {
1078
+ if (o || (o = new _e()), X(i))
1079
+ Sl(e, t, a, n, Sr, r, o);
1080
+ else {
1081
+ var s = r ? r(_t(e, a), i, a + "", e, t, o) : void 0;
1082
+ s === void 0 && (s = i), wt(e, a, s);
1083
+ }
1084
+ }, qn);
1085
+ }
1086
+ var Tl = hr(function(e, t, n) {
1087
+ return e + (n ? "-" : "") + t.toLowerCase();
1088
+ }), xt = ia(function(e, t, n) {
1089
+ Sr(e, t, n);
1090
+ }), Cl = "Expected a function";
1091
+ function Ol(e, t, n) {
1092
+ var r = !0, o = !0;
1093
+ if (typeof e != "function")
1094
+ throw new TypeError(Cl);
1095
+ return X(n) && (r = "leading" in n ? !!n.leading : r, o = "trailing" in n ? !!n.trailing : o), $r(e, t, {
1096
+ leading: r,
1097
+ maxWait: t,
1098
+ trailing: o
1099
+ });
1100
+ }
1101
+ const kc = /* @__PURE__ */ J({
1102
+ name: "CommonConfigProvider",
1103
+ inheritAttrs: !1,
11
1104
  __name: "index",
12
- setup(__props) {
13
- const config2 = getCommonProviderConfig();
14
- const attrs = useAttrs();
15
- const currentConfig = reactive(merge(cloneDeep(config2), attrs));
16
- provide(configInjectKey, currentConfig);
17
- watchEffect(() => {
18
- Object.assign(currentConfig, merge(cloneDeep(config2), attrs));
1105
+ setup(e) {
1106
+ const t = ot(), n = Ar(), r = Be(xt(ve(t), n));
1107
+ return Rr(Or, r), ae(() => {
1108
+ Object.assign(r, xt(ve(t), n));
1109
+ }), (o, i) => Q(o.$slots, "default");
1110
+ }
1111
+ }), Tr = (e, { manual: t, ready: n = !0, refreshDeps: r = [], refreshDepsAction: o }) => {
1112
+ const i = I(!1);
1113
+ return ae(() => {
1114
+ !t && e.options.refreshDeps !== !0 && (i.value = h(n));
1115
+ }), r instanceof Array ? Se(
1116
+ [i, ...r],
1117
+ ([a]) => {
1118
+ a && !t && a && (o ? o() : e.refresh());
1119
+ },
1120
+ {
1121
+ deep: !0,
1122
+ immediate: !1
1123
+ }
1124
+ ) : Se(i, (a) => {
1125
+ !t && a && (o ? o() : e.refresh());
1126
+ }), {
1127
+ name: "autoRunPlugin",
1128
+ onBefore: () => {
1129
+ if (!h(n))
1130
+ return {
1131
+ stopNow: !0
1132
+ };
1133
+ }
1134
+ };
1135
+ };
1136
+ Tr.onInit = ({ ready: e = !0, manual: t }) => ({
1137
+ loading: !t && h(e)
1138
+ });
1139
+ const ke = /* @__PURE__ */ new Map(), El = (e, t, n) => {
1140
+ const r = ke.get(e);
1141
+ r != null && r.timer && clearTimeout(r.timer);
1142
+ let o;
1143
+ t > -1 && (o = setTimeout(() => {
1144
+ ke.delete(e);
1145
+ }, t)), ke.set(e, W(S({}, n), {
1146
+ timer: o
1147
+ }));
1148
+ }, Pl = (e) => ke.get(e), Ge = /* @__PURE__ */ new Map(), jl = (e) => Ge.get(e), Al = (e, t) => {
1149
+ Ge.set(e, t), t.then((n) => (Ge.delete(e), n)).catch((n) => {
1150
+ throw Ge.delete(e), n;
1151
+ });
1152
+ }, me = {}, Rl = [], Ml = (e, t) => {
1153
+ me[e] && (me[e].forEach((n) => n(t)), Rl.forEach((n) => n({
1154
+ type: e,
1155
+ data: t
1156
+ })));
1157
+ }, lt = (e, t) => (me[e] || (me[e] = []), me[e].push(t), function() {
1158
+ const r = me[e].indexOf(t);
1159
+ me[e].splice(r, 1);
1160
+ }), Dl = (e, {
1161
+ cacheKey: t,
1162
+ cacheTime: n = 300 * 1e3,
1163
+ staleTime: r = 0,
1164
+ setCache: o,
1165
+ getCache: i
1166
+ }) => {
1167
+ const a = I(), s = I(), u = (c, f) => {
1168
+ o ? o(f) : El(c, n, f), Ml(c, f.data);
1169
+ }, l = (c, f = []) => i ? i(f) : Pl(c);
1170
+ return ae(() => {
1171
+ if (!t)
1172
+ return;
1173
+ const c = l(t);
1174
+ c && Object.hasOwnProperty.call(c, "data") && (e.state.data = c.data, e.state.params = c.params, (r === -1 || (/* @__PURE__ */ new Date()).getTime() - c.time <= r) && (e.state.loading = !1)), a.value = lt(t, (f) => {
1175
+ e.setState({ data: f });
19
1176
  });
20
- return (_ctx, _cache) => {
21
- return renderSlot(_ctx.$slots, "default");
1177
+ }), St(() => {
1178
+ var c;
1179
+ (c = a.value) == null || c.call(a);
1180
+ }), t ? {
1181
+ name: "cachePlugin",
1182
+ onBefore: (c) => {
1183
+ const f = l(t, c);
1184
+ return !f || !Object.hasOwnProperty.call(f, "data") ? {} : r === -1 || (/* @__PURE__ */ new Date()).getTime() - f.time <= r ? {
1185
+ loading: !1,
1186
+ data: f == null ? void 0 : f.data,
1187
+ returnNow: !0
1188
+ } : {
1189
+ data: f == null ? void 0 : f.data
1190
+ };
1191
+ },
1192
+ onRequest: (c, f) => {
1193
+ let v = jl(t);
1194
+ return v && v !== s.value ? { servicePromise: v } : (v = c(...f), s.value = v, Al(t, v), { servicePromise: v });
1195
+ },
1196
+ onSuccess: (c, f) => {
1197
+ var v;
1198
+ t && ((v = a.value) == null || v.call(a), u(t, {
1199
+ data: c,
1200
+ params: f,
1201
+ time: (/* @__PURE__ */ new Date()).getTime()
1202
+ }), a.value = lt(t, (g) => {
1203
+ e.setState({ data: g });
1204
+ }));
1205
+ },
1206
+ onMutate: (c) => {
1207
+ var f;
1208
+ t && ((f = a.value) == null || f.call(a), u(t, {
1209
+ data: c,
1210
+ params: e.state.params,
1211
+ time: (/* @__PURE__ */ new Date()).getTime()
1212
+ }), a.value = lt(t, (v) => {
1213
+ e.setState({ data: v });
1214
+ }));
1215
+ }
1216
+ } : {};
1217
+ }, Nl = (e, { debounceWait: t, debounceLeading: n, debounceTrailing: r, debounceMaxWait: o }) => {
1218
+ const i = I(), a = re(() => {
1219
+ const s = {}, u = h(n), l = h(r), c = h(o);
1220
+ return u !== void 0 && (s.leading = u), l !== void 0 && (s.trailing = l), c !== void 0 && (s.maxWait = c), s;
1221
+ });
1222
+ return ae((s) => {
1223
+ if (h(t)) {
1224
+ const u = e.runAsync.bind(e);
1225
+ i.value = $r(
1226
+ (l) => {
1227
+ l();
1228
+ },
1229
+ h(t),
1230
+ a.value
1231
+ ), e.runAsync = (...l) => new Promise((c, f) => {
1232
+ var v;
1233
+ (v = i.value) == null || v.call(i, () => {
1234
+ u(...l).then(c).catch(f);
1235
+ });
1236
+ }), s(() => {
1237
+ var l;
1238
+ (l = i.value) == null || l.cancel(), e.runAsync = u;
1239
+ });
1240
+ }
1241
+ }), h(t) ? {
1242
+ name: "debouncePlugin",
1243
+ onCancel: () => {
1244
+ var s;
1245
+ (s = i.value) == null || s.cancel();
1246
+ }
1247
+ } : {};
1248
+ };
1249
+ var Fl = Object.defineProperty, Il = (e, t, n) => t in e ? Fl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, $n = (e, t, n) => (Il(e, typeof t != "symbol" ? t + "" : t, n), n);
1250
+ class Vl {
1251
+ constructor() {
1252
+ $n(this, "table", {}), $n(this, "hashTable", {});
1253
+ }
1254
+ insert(t) {
1255
+ const n = Symbol(t);
1256
+ return this.table[t] = !0, this.hashTable[n] = t, n;
1257
+ }
1258
+ find(t) {
1259
+ return this.hashTable[t];
1260
+ }
1261
+ }
1262
+ new Vl();
1263
+ function Bl(e) {
1264
+ const n = e.toString().match(/^function\s+([^\s(]+)/);
1265
+ return n ? n[1] : "";
1266
+ }
1267
+ function Ul(e) {
1268
+ const t = e.toString(), n = /([a-zA-Z$_][a-zA-Z0-9$_]*)\s*\(/, r = t.match(n);
1269
+ return r ? r[1].trim() : "";
1270
+ }
1271
+ var zl = Object.defineProperty, Ll = (e, t, n) => t in e ? zl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Sn = (e, t, n) => (Ll(e, typeof t != "symbol" ? t + "" : t, n), n);
1272
+ class Hl {
1273
+ constructor() {
1274
+ Sn(this, "requestInstances", /* @__PURE__ */ new Map()), Sn(this, "listeners", []);
1275
+ }
1276
+ emit(t) {
1277
+ this.listeners.forEach((n) => n(t));
1278
+ }
1279
+ subscribe(t) {
1280
+ return this.listeners.push(t), () => {
1281
+ const n = this.listeners.indexOf(t);
1282
+ this.listeners.splice(n, 1);
22
1283
  };
23
1284
  }
24
- });
25
- const _hoisted_1$1 = { class: "common-query-table" };
26
- const _sfc_main$9 = /* @__PURE__ */ defineComponent({
27
- ...{
28
- name: "CommonQueryTable"
1285
+ insert(t, n) {
1286
+ this.requestInstances.set(t, S({}, n)), this.emit(S({
1287
+ key: t
1288
+ }, n));
1289
+ }
1290
+ update(t, n) {
1291
+ this.has(t) && this.requestInstances.set(t, S(S({}, this.requestInstances.get(t)), n));
1292
+ }
1293
+ has(t) {
1294
+ return this.requestInstances.has(t);
1295
+ }
1296
+ reset(t) {
1297
+ if (this.requestInstances.has(t)) {
1298
+ const n = this.requestInstances.get(t);
1299
+ this.requestInstances.clear(), this.insert(t, n);
1300
+ } else
1301
+ this.requestInstances.clear();
1302
+ }
1303
+ getAll() {
1304
+ return this.requestInstances;
1305
+ }
1306
+ }
1307
+ const q = new Hl(), Wl = (e, o) => {
1308
+ var i = o, { ready: t = !0, debugKey: n } = i, r = He(i, ["ready", "debugKey"]);
1309
+ const a = () => {
1310
+ if (n && !q.has(n)) {
1311
+ const u = e.serviceRef.value.toString().includes("function") ? Bl(e.serviceRef.value.toString()) : Ul(e.serviceRef.value.toString());
1312
+ q.insert(n, {
1313
+ instance: e,
1314
+ requestName: u,
1315
+ time: Date.now()
1316
+ });
1317
+ }
1318
+ }, s = re(
1319
+ () => Object.fromEntries(
1320
+ Object.entries(S({ ready: t }, r)).map(([u, l]) => [u, h(l)])
1321
+ )
1322
+ );
1323
+ return ae(() => {
1324
+ n && q.has(n) && q.emit(W(S({}, e), {
1325
+ options: S(S({}, e.options), s.value)
1326
+ }));
1327
+ }), {
1328
+ name: "devtoolsPlugin",
1329
+ onBefore: (u) => {
1330
+ a(), n && q.has(n) && q.emit(W(S({}, e.state), {
1331
+ key: n,
1332
+ params: u,
1333
+ loading: !0,
1334
+ time: Date.now(),
1335
+ type: "pending"
1336
+ }));
1337
+ },
1338
+ onSuccess(u, l) {
1339
+ a(), n && q.has(n) && q.emit(W(S({}, e.state), {
1340
+ key: n,
1341
+ data: u,
1342
+ params: l,
1343
+ loading: !1,
1344
+ time: Date.now(),
1345
+ type: "done"
1346
+ }));
1347
+ },
1348
+ onCancel() {
1349
+ a(), n && q.has(n) && q.emit(W(S({}, e.state), {
1350
+ key: n,
1351
+ loading: !1,
1352
+ time: Date.now(),
1353
+ type: "cancel"
1354
+ }));
1355
+ },
1356
+ onError(u, l) {
1357
+ a(), n && q.has(n) && q.emit(W(S({}, e.state), {
1358
+ key: n,
1359
+ params: l,
1360
+ loading: !1,
1361
+ error: u,
1362
+ time: Date.now(),
1363
+ type: "error"
1364
+ }));
1365
+ },
1366
+ onMutate(u) {
1367
+ a(), n && q.has(n) && q.emit(W(S({}, e.state), {
1368
+ key: n,
1369
+ data: u,
1370
+ loading: !1,
1371
+ time: Date.now(),
1372
+ type: "mutate"
1373
+ }));
1374
+ }
1375
+ };
1376
+ }, Yl = (e, { loadingDelay: t }) => {
1377
+ const n = I(), r = () => {
1378
+ n.value && (clearTimeout(h(n.value)), n.value = void 0);
1379
+ };
1380
+ return {
1381
+ name: "loadingDelayPlugin",
1382
+ onFinally: () => {
1383
+ r();
1384
+ const o = h(t);
1385
+ o && (e.setState({
1386
+ loading: !0
1387
+ }), n.value = setTimeout(() => {
1388
+ e.setState({
1389
+ loading: !1
1390
+ });
1391
+ }, o));
1392
+ },
1393
+ onError: () => {
1394
+ r();
1395
+ }
1396
+ };
1397
+ };
1398
+ function Mt() {
1399
+ return !!(typeof window != "undefined" && window.document && window.document.createElement);
1400
+ }
1401
+ const ql = !!(typeof window != "undefined" && window.document && window.document.createElement);
1402
+ function Dt() {
1403
+ return Mt() ? document.visibilityState !== "hidden" : !0;
1404
+ }
1405
+ const Ne = [];
1406
+ function kl(e) {
1407
+ return Ne.push(e), function() {
1408
+ const n = Ne.indexOf(e);
1409
+ Ne.splice(n, 1);
1410
+ };
1411
+ }
1412
+ if (Mt()) {
1413
+ const e = () => {
1414
+ if (Dt())
1415
+ for (let t = 0; t < Ne.length; t++) {
1416
+ const n = Ne[t];
1417
+ n();
1418
+ }
1419
+ };
1420
+ window.addEventListener("visibilitychange", e, !1);
1421
+ }
1422
+ const Gl = (e, { pollingInterval: t, pollingWhenHidden: n = !0, pollingErrorRetryCount: r = -1 }) => {
1423
+ let o;
1424
+ const i = I(), a = I(0), s = () => {
1425
+ var u;
1426
+ o && clearTimeout(o), (u = i.value) == null || u.call(i);
1427
+ };
1428
+ return ae(() => {
1429
+ h(t) || s();
1430
+ }), h(t) ? {
1431
+ name: "pollingPlugin",
1432
+ onBefore: () => {
1433
+ s();
1434
+ },
1435
+ onError: () => {
1436
+ a.value += 1;
1437
+ },
1438
+ onSuccess: () => {
1439
+ a.value = 0;
1440
+ },
1441
+ onFinally: () => {
1442
+ r === -1 || r !== -1 && a.value <= r ? o = setTimeout(() => {
1443
+ !n && !Dt() ? i.value = kl(() => {
1444
+ e.refresh();
1445
+ }) : e.refresh();
1446
+ }, h(t)) : a.value = 0;
1447
+ },
1448
+ onCancel: () => {
1449
+ s();
1450
+ }
1451
+ } : {};
1452
+ };
1453
+ function Zl(e, t) {
1454
+ let n = !1;
1455
+ return (...r) => {
1456
+ n || (n = !0, e(...r), setTimeout(() => {
1457
+ n = !1;
1458
+ }, t));
1459
+ };
1460
+ }
1461
+ function Xl() {
1462
+ return Mt() && typeof navigator.onLine != "undefined" ? navigator.onLine : !0;
1463
+ }
1464
+ const Fe = [];
1465
+ function Jl(e) {
1466
+ return Fe.push(e), function() {
1467
+ const n = Fe.indexOf(e);
1468
+ n > -1 && Fe.splice(n, 1);
1469
+ };
1470
+ }
1471
+ if (ql) {
1472
+ const e = () => {
1473
+ if (!(!Dt() || !Xl()))
1474
+ for (let t = 0; t < Fe.length; t++) {
1475
+ const n = Fe[t];
1476
+ n();
1477
+ }
1478
+ };
1479
+ window.addEventListener("visibilitychange", e, !1), window.addEventListener("focus", e, !1);
1480
+ }
1481
+ const Ql = (e, { refreshOnWindowFocus: t, focusTimespan: n = 5e3 }) => {
1482
+ const r = I(), o = () => {
1483
+ var i;
1484
+ (i = r.value) == null || i.call(r);
1485
+ };
1486
+ return ae((i) => {
1487
+ if (h(t)) {
1488
+ const a = Zl(
1489
+ e.refresh.bind(e),
1490
+ h(n)
1491
+ );
1492
+ r.value = Jl(() => {
1493
+ a();
1494
+ });
1495
+ }
1496
+ i(() => {
1497
+ o();
1498
+ });
1499
+ }), St(() => {
1500
+ o();
1501
+ }), {
1502
+ name: "refreshOnWindowFocusPlugin"
1503
+ };
1504
+ }, Kl = (e, { retryInterval: t, retryCount: n }) => {
1505
+ const r = I(), o = I(0), i = I(!1);
1506
+ return n ? {
1507
+ name: "retryPlugin",
1508
+ onBefore: () => {
1509
+ i.value || (o.value = 0), i.value = !1, r.value && clearTimeout(r.value);
1510
+ },
1511
+ onSuccess: () => {
1512
+ o.value = 0;
1513
+ },
1514
+ onError: () => {
1515
+ if (o.value += 1, n === -1 || o.value <= n) {
1516
+ const a = t != null ? t : Math.min(1e3 * zt(2, o.value), 3e4);
1517
+ r.value = setTimeout(() => {
1518
+ i.value = !0, e.refresh();
1519
+ }, a);
1520
+ } else
1521
+ o.value = 0;
1522
+ },
1523
+ onCancel: () => {
1524
+ o.value = 0, r.value && clearTimeout(r.value);
1525
+ }
1526
+ } : {};
1527
+ }, ec = (e, { throttleWait: t, throttleLeading: n, throttleTrailing: r }) => {
1528
+ let o = null;
1529
+ const i = re(() => {
1530
+ const l = {};
1531
+ return h(n) !== void 0 && (l.leading = h(n)), h(r) !== void 0 && (l.trailing = h(r)), l;
1532
+ }), a = e.runAsync.bind(e), s = I(), u = re(() => h(t));
1533
+ return Se([u, i], (l) => {
1534
+ o && (o.cancel(), e.runAsync = a);
1535
+ const [c, f] = l, v = Ol(
1536
+ (g) => {
1537
+ g();
1538
+ },
1539
+ h(c),
1540
+ f
1541
+ );
1542
+ o = v, s.value = v, e.runAsync = (...g) => new Promise((w, P) => {
1543
+ var _;
1544
+ (_ = s.value) == null || _.call(s, () => {
1545
+ a(...g).then(w).catch(P);
1546
+ });
1547
+ });
1548
+ }, {
1549
+ immediate: !0
1550
+ }), h(t) ? (jn(() => {
1551
+ var l;
1552
+ (l = s.value) == null || l.cancel();
1553
+ }), {
1554
+ name: "throttlePlugin",
1555
+ onCancel: () => {
1556
+ var l;
1557
+ (l = s.value) == null || l.cancel();
1558
+ }
1559
+ }) : {};
1560
+ }, Tn = (e) => typeof e == "function", tc = (e) => typeof e == "boolean";
1561
+ var nc = Object.defineProperty, rc = (e, t, n) => t in e ? nc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, We = (e, t, n) => (rc(e, typeof t != "symbol" ? t + "" : t, n), n);
1562
+ class oc {
1563
+ constructor(t, n, r, o = {}) {
1564
+ We(this, "pluginImpls"), We(this, "count", 0), We(this, "state", {
1565
+ loading: !1,
1566
+ params: void 0,
1567
+ data: void 0,
1568
+ error: void 0
1569
+ }), We(this, "previousValidData"), this.serviceRef = t, this.options = n, this.setUpdateData = r, this.initState = o, this.state = S(W(S({}, this.state), {
1570
+ loading: !n.manual
1571
+ }), o);
1572
+ }
1573
+ setState(t = {}) {
1574
+ this.state = S(S({}, this.state), t), this.setUpdateData(this.state);
1575
+ }
1576
+ setData(t, n) {
1577
+ console.warn("Please use 'setFetchState' instead of 'setData'"), n instanceof Array ? n.forEach((r) => {
1578
+ this.state[r] = t, this.setUpdateData(t, r);
1579
+ }) : (this.state[n] = t, this.setUpdateData(t, n));
1580
+ }
1581
+ setFetchState(t, n) {
1582
+ n instanceof Array ? n.forEach((r) => {
1583
+ this.state[r] = t, this.setUpdateData(t, r);
1584
+ }) : (this.state[n] = t, this.setUpdateData(t, n));
1585
+ }
1586
+ runPluginHandler(t, ...n) {
1587
+ var r, o, i;
1588
+ const a = (i = (o = (r = this.pluginImpls) == null ? void 0 : r.map((s) => {
1589
+ var u;
1590
+ return (u = s[t]) == null ? void 0 : u.call(s, ...n);
1591
+ })) != null ? o : []) == null ? void 0 : i.filter(Boolean);
1592
+ return Object.assign({}, ...a);
1593
+ }
1594
+ runAsync(...t) {
1595
+ return at(this, null, function* () {
1596
+ var n, r, o, i, a, s, u, l, c, f, v;
1597
+ this.count += 1;
1598
+ const g = this.count, R = this.runPluginHandler(
1599
+ "onBefore",
1600
+ t
1601
+ ), { stopNow: w = !1, returnNow: P = !1 } = R, _ = He(R, ["stopNow", "returnNow"]);
1602
+ if (w)
1603
+ return new Promise(() => {
1604
+ });
1605
+ if (this.setState(S({
1606
+ loading: !0,
1607
+ params: t
1608
+ }, _)), P)
1609
+ return Promise.resolve(_.data);
1610
+ try {
1611
+ (r = (n = this.options).onBefore) == null || r.call(n, t);
1612
+ } catch (T) {
1613
+ return this.setState({
1614
+ error: T,
1615
+ loading: !1
1616
+ }), (i = (o = this.options).onError) == null || i.call(o, T, t), this.runPluginHandler("onError", T, t), new Promise(() => {
1617
+ });
1618
+ }
1619
+ try {
1620
+ let { servicePromise: T } = this.runPluginHandler("onRequest", this.serviceRef.value, t);
1621
+ const ee = (U) => {
1622
+ var C, B, D, z;
1623
+ if (!this.options.concurrent && g !== this.count)
1624
+ return new Promise(() => {
1625
+ });
1626
+ const O = this.options.formatResult ? this.options.formatResult(U) : U, E = {
1627
+ data: U
1628
+ };
1629
+ return this.setState({
1630
+ data: O,
1631
+ error: void 0,
1632
+ loading: !1
1633
+ }), (B = (C = this.options).onSuccess) == null || B.call(C, O, t), this.runPluginHandler("onSuccess", O, t, E), this.previousValidData = O, (z = (D = this.options).onFinally) == null || z.call(D, t, O, void 0), (this.options.concurrent || g === this.count) && this.runPluginHandler("onFinally", t, O, void 0), O;
1634
+ };
1635
+ T || (T = this.serviceRef.value(...t));
1636
+ const se = yield T;
1637
+ return ee(se);
1638
+ } catch (T) {
1639
+ if (!this.options.concurrent && g !== this.count)
1640
+ return new Promise(() => {
1641
+ });
1642
+ throw this.setState({
1643
+ error: T,
1644
+ loading: !1
1645
+ }), (s = (a = this.options).onError) == null || s.call(a, T, t), this.runPluginHandler("onError", T, t), (Tn((u = this.options) == null ? void 0 : u.rollbackOnError) && ((l = this.options) != null && l.rollbackOnError(t)) || tc((c = this.options) == null ? void 0 : c.rollbackOnError) && this.options.rollbackOnError) && this.setState({
1646
+ data: this.previousValidData
1647
+ }), (v = (f = this.options).onFinally) == null || v.call(f, t, void 0, T), (this.options.concurrent || g === this.count) && this.runPluginHandler("onFinally", t, void 0, T), T;
1648
+ }
1649
+ });
1650
+ }
1651
+ run(...t) {
1652
+ this.runAsync(...t).catch((n) => {
1653
+ this.options.onError || console.error(n);
1654
+ });
1655
+ }
1656
+ cancel() {
1657
+ this.count += 1, this.setState({
1658
+ loading: !1
1659
+ }), this.runPluginHandler("onCancel");
1660
+ }
1661
+ refresh() {
1662
+ this.run(...this.state.params || []);
1663
+ }
1664
+ refreshAsync() {
1665
+ return this.runAsync(...this.state.params || []);
1666
+ }
1667
+ mutate(t) {
1668
+ const n = Tn(t) ? t(this.state.data) : t;
1669
+ this.runPluginHandler("onMutate", n), this.setState({
1670
+ data: n
1671
+ });
1672
+ }
1673
+ }
1674
+ const ac = Symbol(
1675
+ "USEREQUEST_GLOBAL_OPTIONS_PROVIDE_KEY"
1676
+ );
1677
+ function ic(e) {
1678
+ return Object.keys(e).filter((n) => ["data", "loading", "params", "error"].includes(n)).length === 4;
1679
+ }
1680
+ function sc(e, t = {}, n = []) {
1681
+ const r = An(
1682
+ ac,
1683
+ {}
1684
+ ), P = S(S({}, r != null ? r : {}), t != null ? t : {}), { initialData: o = void 0, manual: i = !1, ready: a = !0 } = P, s = He(P, ["initialData", "manual", "ready"]), u = S({
1685
+ manual: i,
1686
+ ready: a,
1687
+ initialData: o
1688
+ }, s), l = I(e), c = Be({
1689
+ data: o,
1690
+ loading: !1,
1691
+ params: void 0,
1692
+ error: void 0
1693
+ }), f = (_, R) => {
1694
+ R ? c[R] = _ : ic(_) && (c.data = _.data, c.loading = _.loading, c.error = _.error, c.params = _.params);
1695
+ }, v = n.map((_) => {
1696
+ var R;
1697
+ return (R = _ == null ? void 0 : _.onInit) == null ? void 0 : R.call(_, u);
1698
+ }).filter(Boolean), g = new oc(
1699
+ l,
1700
+ u,
1701
+ f,
1702
+ Object.assign({}, ...v, c)
1703
+ );
1704
+ g.options = u, g.pluginImpls = n.map((_) => _(g, u));
1705
+ const w = re(() => Tt(a) ? a.value : a);
1706
+ if (ae(() => {
1707
+ if (!i) {
1708
+ const _ = g.state.params || t.defaultParams || [];
1709
+ w.value && g.options.refreshDeps === !0 && l.value && g.run(..._);
1710
+ }
1711
+ }), !i && g.options.refreshDeps !== !0) {
1712
+ const _ = g.state.params || t.defaultParams || [];
1713
+ h(a) && g.run(..._);
1714
+ }
1715
+ return St(() => {
1716
+ g.cancel();
1717
+ }), W(S({}, Mr(c)), {
1718
+ cancel: g.cancel.bind(g),
1719
+ refresh: g.refresh.bind(g),
1720
+ refreshAsync: g.refreshAsync.bind(g),
1721
+ run: g.run.bind(g),
1722
+ runAsync: g.runAsync.bind(g),
1723
+ mutate: g.mutate.bind(g)
1724
+ });
1725
+ }
1726
+ const uc = (e, t) => function(r, o = {}, i = []) {
1727
+ let a = e;
1728
+ const s = t || [];
1729
+ for (let u = s.length; u--; )
1730
+ a = s[u](a);
1731
+ return a(r, o, i);
1732
+ };
1733
+ function lc(e, t, n) {
1734
+ var r;
1735
+ const o = (r = [
1736
+ process.env.NODE_ENV === "development" ? Wl : null,
1737
+ Nl,
1738
+ Yl,
1739
+ Gl,
1740
+ Ql,
1741
+ ec,
1742
+ Tr,
1743
+ Dl,
1744
+ Kl
1745
+ ]) == null ? void 0 : r.filter(Boolean);
1746
+ return uc(sc, t == null ? void 0 : t.use)(
1747
+ e,
1748
+ t,
1749
+ [...o]
1750
+ );
1751
+ }
1752
+ /*! js-cookie v3.0.5 | MIT */
1753
+ function Ye(e) {
1754
+ for (var t = 1; t < arguments.length; t++) {
1755
+ var n = arguments[t];
1756
+ for (var r in n)
1757
+ e[r] = n[r];
1758
+ }
1759
+ return e;
1760
+ }
1761
+ var cc = {
1762
+ read: function(e) {
1763
+ return e[0] === '"' && (e = e.slice(1, -1)), e.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent);
29
1764
  },
1765
+ write: function(e) {
1766
+ return encodeURIComponent(e).replace(
1767
+ /%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,
1768
+ decodeURIComponent
1769
+ );
1770
+ }
1771
+ };
1772
+ function $t(e, t) {
1773
+ function n(o, i, a) {
1774
+ if (typeof document != "undefined") {
1775
+ a = Ye({}, t, a), typeof a.expires == "number" && (a.expires = new Date(Date.now() + a.expires * 864e5)), a.expires && (a.expires = a.expires.toUTCString()), o = encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
1776
+ var s = "";
1777
+ for (var u in a)
1778
+ a[u] && (s += "; " + u, a[u] !== !0 && (s += "=" + a[u].split(";")[0]));
1779
+ return document.cookie = o + "=" + e.write(i, o) + s;
1780
+ }
1781
+ }
1782
+ function r(o) {
1783
+ if (!(typeof document == "undefined" || arguments.length && !o)) {
1784
+ for (var i = document.cookie ? document.cookie.split("; ") : [], a = {}, s = 0; s < i.length; s++) {
1785
+ var u = i[s].split("="), l = u.slice(1).join("=");
1786
+ try {
1787
+ var c = decodeURIComponent(u[0]);
1788
+ if (a[c] = e.read(l, c), o === c)
1789
+ break;
1790
+ } catch (f) {
1791
+ }
1792
+ }
1793
+ return o ? a[o] : a;
1794
+ }
1795
+ }
1796
+ return Object.create(
1797
+ {
1798
+ set: n,
1799
+ get: r,
1800
+ remove: function(o, i) {
1801
+ n(
1802
+ o,
1803
+ "",
1804
+ Ye({}, i, {
1805
+ expires: -1
1806
+ })
1807
+ );
1808
+ },
1809
+ withAttributes: function(o) {
1810
+ return $t(this.converter, Ye({}, this.attributes, o));
1811
+ },
1812
+ withConverter: function(o) {
1813
+ return $t(Ye({}, this.converter, o), this.attributes);
1814
+ }
1815
+ },
1816
+ {
1817
+ attributes: { value: Object.freeze(t) },
1818
+ converter: { value: Object.freeze(e) }
1819
+ }
1820
+ );
1821
+ }
1822
+ $t(cc, { path: "/" });
1823
+ const fc = !!(typeof window != "undefined" && window.document && window.document.createElement);
1824
+ function Nt(e, t) {
1825
+ var n, r;
1826
+ if (!fc)
1827
+ return;
1828
+ if (!e)
1829
+ return t;
1830
+ let o;
1831
+ return typeof e == "function" ? o = e() : Tt(e) ? o = (r = (n = e.value) == null ? void 0 : n.$el) != null ? r : e.value : o = e, o;
1832
+ }
1833
+ function Cn(e, t) {
1834
+ if (e === t)
1835
+ return !0;
1836
+ for (let n = 0; n < e.length; n++)
1837
+ if (!Object.is(e[n], t[n]))
1838
+ return !1;
1839
+ return !0;
1840
+ }
1841
+ const dc = (e) => (n, r, o) => {
1842
+ const i = I(!1), a = I([]), s = I([]), u = I();
1843
+ e(() => {
1844
+ var l;
1845
+ const f = (Array.isArray(o) ? o : [o]).map((v) => Nt(v));
1846
+ if (!i.value) {
1847
+ i.value = !0, a.value = f, s.value = r, u.value = n();
1848
+ return;
1849
+ }
1850
+ (f.length !== a.value.length || !Cn(f, a.value) || !Cn(r, s.value)) && ((l = u.value) == null || l.call(u), a.value = f, s.value = r, u.value = n());
1851
+ }), jn(() => {
1852
+ var l;
1853
+ (l = u.value) == null || l.call(u), i.value = !1;
1854
+ });
1855
+ }, pc = dc(ae);
1856
+ function mc(e, t, n = {}) {
1857
+ const r = I(t);
1858
+ pc(
1859
+ () => {
1860
+ const o = Nt(n.target, window);
1861
+ if (!(o != null && o.addEventListener))
1862
+ return;
1863
+ const i = (a) => r.value(a);
1864
+ return o.addEventListener(e, i, {
1865
+ capture: n.capture,
1866
+ once: n.once,
1867
+ passive: n.passive
1868
+ }), () => {
1869
+ o.removeEventListener(e, i, {
1870
+ capture: n.capture
1871
+ });
1872
+ };
1873
+ },
1874
+ [e, n.capture, n.once, n.passive],
1875
+ n.target
1876
+ );
1877
+ }
1878
+ var hc = Object.defineProperty, gc = (e, t, n) => t in e ? hc(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ze = (e, t, n) => (gc(e, typeof t != "symbol" ? t + "" : t, n), n);
1879
+ const Ae = class {
1880
+ constructor(e) {
1881
+ Ze(this, "subscriptions", /* @__PURE__ */ new Map()), Ze(this, "emitEffectCache", /* @__PURE__ */ new Map()), Ze(this, "isGlobal"), this.isGlobal = !!(e != null && e.global), this.clear();
1882
+ }
1883
+ static getInstance() {
1884
+ return Ae.instance || (Ae.instance = new Ae({ global: !0 })), Ae.instance;
1885
+ }
1886
+ subscribe(e, t) {
1887
+ this.subscriptions.has(e) || this.subscriptions.set(e, /* @__PURE__ */ new Set());
1888
+ const n = this.subscriptions.get(e);
1889
+ return n.add(t), this.isGlobal || this.emitEffect(e), () => {
1890
+ n.delete(t), n.size === 0 && this.subscriptions.delete(e);
1891
+ };
1892
+ }
1893
+ emit(e, ...t) {
1894
+ if (typeof e == "string" || typeof e == "number") {
1895
+ const n = this.subscriptions.get(e);
1896
+ n == null || n.forEach((r) => {
1897
+ r == null || r({
1898
+ params: ve(t.length === 1 ? t[0] : t),
1899
+ event: e
1900
+ });
1901
+ }), this.isGlobal || this.emitEffectCache.set(e, {
1902
+ params: ve(t.length === 1 ? t[0] : t),
1903
+ event: e
1904
+ });
1905
+ } else
1906
+ throw new TypeError("event must be string or number!");
1907
+ }
1908
+ emitEffect(e) {
1909
+ if (this.isGlobal)
1910
+ return;
1911
+ const t = this.emitEffectCache.get(e), n = this.subscriptions.get(e);
1912
+ t && (n == null || n.forEach((r) => {
1913
+ r == null || r(S({}, t));
1914
+ }));
1915
+ }
1916
+ removeListener(e, t) {
1917
+ if (!t)
1918
+ this.subscriptions.delete(e);
1919
+ else {
1920
+ const n = this.subscriptions.get(e);
1921
+ n == null || n.delete(t), n && n.size === 0 && this.subscriptions.delete(e);
1922
+ }
1923
+ }
1924
+ clear() {
1925
+ this.subscriptions.clear(), this.emitEffectCache.clear();
1926
+ }
1927
+ };
1928
+ let Cr = Ae;
1929
+ Ze(Cr, "instance", null);
1930
+ Cr.getInstance();
1931
+ function vc(e) {
1932
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
1933
+ }
1934
+ var ct = { exports: {} };
1935
+ /*!
1936
+ * screenfull
1937
+ * v5.2.0 - 2021-11-03
1938
+ * (c) Sindre Sorhus; MIT License
1939
+ */
1940
+ var On;
1941
+ function bc() {
1942
+ return On || (On = 1, (function(e) {
1943
+ (function() {
1944
+ var t = typeof window != "undefined" && typeof window.document != "undefined" ? window.document : {}, n = e.exports, r = (function() {
1945
+ for (var a, s = [
1946
+ [
1947
+ "requestFullscreen",
1948
+ "exitFullscreen",
1949
+ "fullscreenElement",
1950
+ "fullscreenEnabled",
1951
+ "fullscreenchange",
1952
+ "fullscreenerror"
1953
+ ],
1954
+ // New WebKit
1955
+ [
1956
+ "webkitRequestFullscreen",
1957
+ "webkitExitFullscreen",
1958
+ "webkitFullscreenElement",
1959
+ "webkitFullscreenEnabled",
1960
+ "webkitfullscreenchange",
1961
+ "webkitfullscreenerror"
1962
+ ],
1963
+ // Old WebKit
1964
+ [
1965
+ "webkitRequestFullScreen",
1966
+ "webkitCancelFullScreen",
1967
+ "webkitCurrentFullScreenElement",
1968
+ "webkitCancelFullScreen",
1969
+ "webkitfullscreenchange",
1970
+ "webkitfullscreenerror"
1971
+ ],
1972
+ [
1973
+ "mozRequestFullScreen",
1974
+ "mozCancelFullScreen",
1975
+ "mozFullScreenElement",
1976
+ "mozFullScreenEnabled",
1977
+ "mozfullscreenchange",
1978
+ "mozfullscreenerror"
1979
+ ],
1980
+ [
1981
+ "msRequestFullscreen",
1982
+ "msExitFullscreen",
1983
+ "msFullscreenElement",
1984
+ "msFullscreenEnabled",
1985
+ "MSFullscreenChange",
1986
+ "MSFullscreenError"
1987
+ ]
1988
+ ], u = 0, l = s.length, c = {}; u < l; u++)
1989
+ if (a = s[u], a && a[1] in t) {
1990
+ for (u = 0; u < a.length; u++)
1991
+ c[s[0][u]] = a[u];
1992
+ return c;
1993
+ }
1994
+ return !1;
1995
+ })(), o = {
1996
+ change: r.fullscreenchange,
1997
+ error: r.fullscreenerror
1998
+ }, i = {
1999
+ request: function(a, s) {
2000
+ return new Promise((function(u, l) {
2001
+ var c = (function() {
2002
+ this.off("change", c), u();
2003
+ }).bind(this);
2004
+ this.on("change", c), a = a || t.documentElement;
2005
+ var f = a[r.requestFullscreen](s);
2006
+ f instanceof Promise && f.then(c).catch(l);
2007
+ }).bind(this));
2008
+ },
2009
+ exit: function() {
2010
+ return new Promise((function(a, s) {
2011
+ if (!this.isFullscreen) {
2012
+ a();
2013
+ return;
2014
+ }
2015
+ var u = (function() {
2016
+ this.off("change", u), a();
2017
+ }).bind(this);
2018
+ this.on("change", u);
2019
+ var l = t[r.exitFullscreen]();
2020
+ l instanceof Promise && l.then(u).catch(s);
2021
+ }).bind(this));
2022
+ },
2023
+ toggle: function(a, s) {
2024
+ return this.isFullscreen ? this.exit() : this.request(a, s);
2025
+ },
2026
+ onchange: function(a) {
2027
+ this.on("change", a);
2028
+ },
2029
+ onerror: function(a) {
2030
+ this.on("error", a);
2031
+ },
2032
+ on: function(a, s) {
2033
+ var u = o[a];
2034
+ u && t.addEventListener(u, s, !1);
2035
+ },
2036
+ off: function(a, s) {
2037
+ var u = o[a];
2038
+ u && t.removeEventListener(u, s, !1);
2039
+ },
2040
+ raw: r
2041
+ };
2042
+ if (!r) {
2043
+ n ? e.exports = { isEnabled: !1 } : window.screenfull = { isEnabled: !1 };
2044
+ return;
2045
+ }
2046
+ Object.defineProperties(i, {
2047
+ isFullscreen: {
2048
+ get: function() {
2049
+ return !!t[r.fullscreenElement];
2050
+ }
2051
+ },
2052
+ element: {
2053
+ enumerable: !0,
2054
+ get: function() {
2055
+ return t[r.fullscreenElement];
2056
+ }
2057
+ },
2058
+ isEnabled: {
2059
+ enumerable: !0,
2060
+ get: function() {
2061
+ return !!t[r.fullscreenEnabled];
2062
+ }
2063
+ }
2064
+ }), n ? e.exports = i : window.screenfull = i;
2065
+ })();
2066
+ })(ct)), ct.exports;
2067
+ }
2068
+ bc();
2069
+ const yc = {
2070
+ screenX: NaN,
2071
+ screenY: NaN,
2072
+ clientX: NaN,
2073
+ clientY: NaN,
2074
+ pageX: NaN,
2075
+ pageY: NaN,
2076
+ elementX: NaN,
2077
+ elementY: NaN,
2078
+ elementH: NaN,
2079
+ elementW: NaN,
2080
+ elementPosX: NaN,
2081
+ elementPosY: NaN
2082
+ };
2083
+ function wc(e) {
2084
+ const t = I(yc);
2085
+ return mc(
2086
+ "mousemove",
2087
+ (n) => {
2088
+ const { screenX: r, screenY: o, clientX: i, clientY: a, pageX: s, pageY: u } = n, l = {
2089
+ screenX: r,
2090
+ screenY: o,
2091
+ clientX: i,
2092
+ clientY: a,
2093
+ pageX: s,
2094
+ pageY: u,
2095
+ elementX: NaN,
2096
+ elementY: NaN,
2097
+ elementH: NaN,
2098
+ elementW: NaN,
2099
+ elementPosX: NaN,
2100
+ elementPosY: NaN
2101
+ }, c = Nt(e);
2102
+ if (c) {
2103
+ const { left: f, top: v, width: g, height: w } = c.getBoundingClientRect();
2104
+ l.elementPosX = f + window.pageXOffset, l.elementPosY = v + window.pageYOffset, l.elementX = s - l.elementPosX, l.elementY = u - l.elementPosY, l.elementW = g, l.elementH = w;
2105
+ }
2106
+ t.value = l;
2107
+ },
2108
+ {
2109
+ target: document
2110
+ }
2111
+ ), Dr(t);
2112
+ }
2113
+ J({
2114
+ name: "UseMouse",
2115
+ slots: Object,
2116
+ setup(e, { slots: t }) {
2117
+ const n = I(), r = wc(n);
2118
+ return () => {
2119
+ var o;
2120
+ const i = (o = t.target) == null ? void 0 : o.call(t);
2121
+ let a = null;
2122
+ return i && i.length === 1 && Nr(i[0]) && (a = Fr(i[0], { ref: n })), [
2123
+ a,
2124
+ t.default && t.default(re(() => r.value).value)
2125
+ ];
2126
+ };
2127
+ }
2128
+ });
2129
+ const _c = { class: "common-query-table" }, xc = /* @__PURE__ */ J({
2130
+ name: "CommonQueryTable",
30
2131
  __name: "index",
31
2132
  props: {
32
2133
  fetch: {},
@@ -38,24 +2139,14 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
38
2139
  return ["form", "table", "pagination"];
39
2140
  } }
40
2141
  },
41
- setup(__props) {
42
- const vLoading = ElLoading.directive;
43
- const props = __props;
44
- const CommonFormRef = useTemplateRef("CommonFormRef");
45
- const childrenSlots = useGetComponentsChildrenSlots(["table", "form", "pagination"]);
46
- const initFetchParams = Object.fromEntries(props.form.map((item) => [item.prop, item.initialValue]));
47
- const config2 = getCommonProviderConfig();
48
- const [page, resetPage] = useResettableReactive({
49
- pageNo: config2.component.pagination.defaultPageCount,
50
- pageSize: config2.component.pagination.defaultPageSize
51
- });
52
- const { data, loading, run } = useRequest(props.fetch, {
2142
+ setup(e) {
2143
+ const t = Yr.directive, n = e, r = Ct("CommonFormRef"), o = Lc(["table", "form", "pagination"]), i = Object.fromEntries(n.form.map((_) => [_.prop, _.initialValue])), a = ot(), [s, u] = zc({
2144
+ pageNo: a.component.pagination.defaultPageCount,
2145
+ pageSize: a.component.pagination.defaultPageSize
2146
+ }), { data: l, loading: c, run: f } = lc(n.fetch, {
53
2147
  /** 默认请求参数,包含分页和表单初始值 */
54
2148
  defaultParams: [
55
- {
56
- ...page,
57
- ...initFetchParams
58
- }
2149
+ S(S({}, s), i)
59
2150
  ],
60
2151
  /** 初始数据,避免undefined问题 */
61
2152
  initialData: {
@@ -64,120 +2155,94 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
64
2155
  },
65
2156
  /** 错误处理,重置数据 */
66
2157
  onError() {
67
- data.value.total = 0;
68
- data.value.list = [];
2158
+ l.value.total = 0, l.value.list = [];
69
2159
  }
70
2160
  });
71
- function handleFormSubmit() {
72
- fetchListData();
73
- }
74
- function handleFormReset() {
75
- if (page.pageNo === config2.component.pagination.defaultPageCount && page.pageSize === config2.component.pagination.defaultPageSize) {
76
- fetchListData();
77
- } else {
78
- resetPage();
79
- }
2161
+ function v() {
2162
+ P();
80
2163
  }
81
- function handlePaginationChange(event) {
82
- page.pageNo = event.pageNo;
83
- page.pageSize = event.pageSize;
84
- fetchListData();
85
- }
86
- function fetchListData() {
87
- var _a, _b;
88
- const formData = ((_b = (_a = CommonFormRef.value) == null ? void 0 : _a[0]) == null ? void 0 : _b.formData) || {};
89
- run(
90
- filterNullAndUndefined({
91
- ...page,
92
- ...formData
93
- })
2164
+ function g() {
2165
+ s.pageNo === a.component.pagination.defaultPageCount && s.pageSize === a.component.pagination.defaultPageSize ? P() : u();
2166
+ }
2167
+ function w(_) {
2168
+ s.pageNo = _.pageNo, s.pageSize = _.pageSize, P();
2169
+ }
2170
+ function P() {
2171
+ var R, T;
2172
+ const _ = ((T = (R = r.value) == null ? void 0 : R[0]) == null ? void 0 : T.formData) || {};
2173
+ f(
2174
+ Uc(S(S({}, s), _))
94
2175
  );
95
2176
  }
96
- return (_ctx, _cache) => {
97
- return openBlock(), createElementBlock("div", _hoisted_1$1, [
98
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.layouts, (layout) => {
99
- return openBlock(), createElementBlock("div", {
100
- class: normalizeClass([`common-query-table-${layout}`]),
101
- key: layout
102
- }, [
103
- renderSlot(_ctx.$slots, layout, {}, () => {
104
- var _a, _b, _c, _d, _e;
105
- return [
106
- layout === "form" ? (openBlock(), createBlock(unref(index$1), {
107
- key: 0,
108
- ref_for: true,
109
- ref_key: "CommonFormRef",
110
- ref: CommonFormRef,
111
- inline: "",
112
- form: __props.form,
113
- loading: unref(loading),
114
- "onUpdate:loading": _cache[0] || (_cache[0] = ($event) => isRef(loading) ? loading.value = $event : null),
115
- onSubmit: handleFormSubmit,
116
- onReset: handleFormReset
117
- }, createSlots({ _: 2 }, [
118
- renderList((_a = unref(childrenSlots)) == null ? void 0 : _a[layout], (name, key) => {
119
- return {
120
- name: key,
121
- fn: withCtx((scoped) => [
122
- renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, scoped), void 0, true)
123
- ])
124
- };
125
- })
126
- ]), 1032, ["form", "loading"])) : layout === "table" ? withDirectives((openBlock(), createBlock(unref(index), {
127
- key: 1,
128
- columns: __props.columns,
129
- data: (_b = unref(data)) == null ? void 0 : _b.list
130
- }, createSlots({ _: 2 }, [
131
- renderList((_c = unref(childrenSlots)) == null ? void 0 : _c[layout], (name, key) => {
132
- return {
133
- name: key,
134
- fn: withCtx((scoped) => [
135
- renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, scoped), void 0, true)
136
- ])
137
- };
138
- })
139
- ]), 1032, ["columns", "data"])), [
140
- [unref(vLoading), unref(loading)]
141
- ]) : layout === "pagination" ? (openBlock(), createBlock(unref(_sfc_main$6), {
142
- key: 2,
143
- "page-no": unref(page).pageNo,
144
- "onUpdate:pageNo": _cache[1] || (_cache[1] = ($event) => unref(page).pageNo = $event),
145
- "page-size": unref(page).pageSize,
146
- "onUpdate:pageSize": _cache[2] || (_cache[2] = ($event) => unref(page).pageSize = $event),
147
- total: Number((_d = unref(data)) == null ? void 0 : _d.total),
148
- onChange: handlePaginationChange
149
- }, createSlots({ _: 2 }, [
150
- renderList((_e = unref(childrenSlots)) == null ? void 0 : _e[layout], (name, key) => {
151
- return {
152
- name: key,
153
- fn: withCtx((scoped) => [
154
- renderSlot(_ctx.$slots, name, mergeProps({ ref_for: true }, scoped), void 0, true)
155
- ])
156
- };
157
- })
158
- ]), 1032, ["page-no", "page-size", "total"])) : renderSlot(_ctx.$slots, layout, { key: 3 }, void 0, true)
159
- ];
160
- }, true)
161
- ], 2);
162
- }), 128))
163
- ]);
164
- };
2177
+ return (_, R) => (N(), he("div", _c, [
2178
+ (N(!0), he(Qe, null, le(e.layouts, (T) => (N(), he("div", {
2179
+ class: Ir(["common-query-table-".concat(T)]),
2180
+ key: T
2181
+ }, [
2182
+ Q(_.$slots, T, {}, () => {
2183
+ var ee, se, U, C, B;
2184
+ return [
2185
+ T === "form" ? (N(), H(h(Sc), {
2186
+ key: 0,
2187
+ ref_for: !0,
2188
+ ref_key: "CommonFormRef",
2189
+ ref: r,
2190
+ inline: "",
2191
+ form: e.form,
2192
+ loading: h(c),
2193
+ "onUpdate:loading": R[0] || (R[0] = (D) => Tt(c) ? c.value = D : null),
2194
+ onSubmit: v,
2195
+ onReset: g
2196
+ }, Re({ _: 2 }, [
2197
+ le((ee = h(o)) == null ? void 0 : ee[T], (D, z) => ({
2198
+ name: z,
2199
+ fn: k((O) => [
2200
+ Q(_.$slots, D, G({ ref_for: !0 }, O), void 0, !0)
2201
+ ])
2202
+ }))
2203
+ ]), 1032, ["form", "loading"])) : T === "table" ? Vr((N(), H(h(Ac), {
2204
+ key: 1,
2205
+ columns: e.columns,
2206
+ data: (se = h(l)) == null ? void 0 : se.list
2207
+ }, Re({ _: 2 }, [
2208
+ le((U = h(o)) == null ? void 0 : U[T], (D, z) => ({
2209
+ name: z,
2210
+ fn: k((O) => [
2211
+ Q(_.$slots, D, G({ ref_for: !0 }, O), void 0, !0)
2212
+ ])
2213
+ }))
2214
+ ]), 1032, ["columns", "data"])), [
2215
+ [h(t), h(c)]
2216
+ ]) : T === "pagination" ? (N(), H(h(Rc), {
2217
+ key: 2,
2218
+ "page-no": h(s).pageNo,
2219
+ "onUpdate:pageNo": R[1] || (R[1] = (D) => h(s).pageNo = D),
2220
+ "page-size": h(s).pageSize,
2221
+ "onUpdate:pageSize": R[2] || (R[2] = (D) => h(s).pageSize = D),
2222
+ total: Number((C = h(l)) == null ? void 0 : C.total),
2223
+ onChange: w
2224
+ }, Re({ _: 2 }, [
2225
+ le((B = h(o)) == null ? void 0 : B[T], (D, z) => ({
2226
+ name: z,
2227
+ fn: k((O) => [
2228
+ Q(_.$slots, D, G({ ref_for: !0 }, O), void 0, !0)
2229
+ ])
2230
+ }))
2231
+ ]), 1032, ["page-no", "page-size", "total"])) : Q(_.$slots, T, { key: 3 }, void 0, !0)
2232
+ ];
2233
+ }, !0)
2234
+ ], 2))), 128))
2235
+ ]));
165
2236
  }
166
- });
167
- const _export_sfc = (sfc, props) => {
168
- const target = sfc.__vccOpts || sfc;
169
- for (const [key, val] of props) {
170
- target[key] = val;
171
- }
172
- return target;
173
- };
174
- const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__scopeId", "data-v-36a95823"]]);
175
- const _sfc_main$8 = /* @__PURE__ */ defineComponent({
176
- ...{
177
- name: "CommonForm"
178
- },
2237
+ }), Ft = (e, t) => {
2238
+ const n = e.__vccOpts || e;
2239
+ for (const [r, o] of t)
2240
+ n[r] = o;
2241
+ return n;
2242
+ }, Gc = /* @__PURE__ */ Ft(xc, [["__scopeId", "data-v-36a95823"]]), $c = /* @__PURE__ */ J({
2243
+ name: "CommonForm",
179
2244
  __name: "index",
180
- props: /* @__PURE__ */ mergeModels({
2245
+ props: /* @__PURE__ */ te({
181
2246
  form: { default() {
182
2247
  return [];
183
2248
  } },
@@ -198,131 +2263,392 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
198
2263
  size: {},
199
2264
  disabled: {}
200
2265
  }, {
201
- "loading": {
202
- default: false
2266
+ loading: {
2267
+ default: !1
203
2268
  },
204
- "loadingModifiers": {}
2269
+ loadingModifiers: {}
205
2270
  }),
206
- emits: /* @__PURE__ */ mergeModels(["submit", "reset"], ["update:loading"]),
207
- setup(__props, { expose: __expose, emit: __emit }) {
208
- useCssVars((_ctx) => ({
209
- "v58512696": unref(config2).component.form.formItem.components.width
2271
+ emits: /* @__PURE__ */ te(["submit", "reset"], ["update:loading"]),
2272
+ setup(e, { expose: t, emit: n }) {
2273
+ Br((v) => ({
2274
+ v58512696: h(s).component.form.formItem.components.width
210
2275
  }));
211
- const props = __props;
212
- const emit = __emit;
213
- const elFormRef = useTemplateRef("elFormRef");
214
- const formData = reactive(
215
- Object.fromEntries(props.form.map((item) => [item.prop, item.initialValue]))
216
- );
217
- const config2 = getCommonProviderConfig();
218
- const loading = useModel(__props, "loading");
219
- const commonComponents = {
220
- select: _sfc_main$5,
221
- input: _sfc_main$4,
222
- "date-picker": _sfc_main$3,
223
- radio: _sfc_main$2,
224
- "check-box": _sfc_main$1,
225
- switch: _sfc_main
2276
+ const r = e, o = n, i = Ct("elFormRef"), a = Be(
2277
+ Object.fromEntries(r.form.map((v) => [v.prop, v.initialValue]))
2278
+ ), s = ot(), u = oe(e, "loading"), l = {
2279
+ select: Mc,
2280
+ input: Dc,
2281
+ "date-picker": Nc,
2282
+ radio: Fc,
2283
+ "check-box": Ic,
2284
+ switch: Vc
226
2285
  };
227
- async function handleSubmit() {
228
- var _a;
229
- await ((_a = elFormRef.value) == null ? void 0 : _a.validate());
230
- emit("submit", formData);
231
- }
232
- function handleReset() {
233
- var _a;
234
- (_a = elFormRef.value) == null ? void 0 : _a.resetFields();
235
- emit("reset", formData);
236
- }
237
- __expose({
238
- formData
239
- });
240
- return (_ctx, _cache) => {
241
- return openBlock(), createBlock(unref(ElForm), mergeProps({
242
- ref_key: "elFormRef",
243
- ref: elFormRef
244
- }, props, {
245
- model: formData,
246
- onSubmit: _cache[0] || (_cache[0] = withModifiers(() => {
247
- }, ["prevent"]))
248
- }), {
249
- default: withCtx(() => [
250
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.form, (item) => {
251
- return openBlock(), createBlock(unref(ElFormItem), mergeProps({ ref_for: true }, item.formItem, {
252
- prop: String(item.prop),
253
- key: item.prop
254
- }), {
255
- default: withCtx(() => [
256
- typeof item.is === "string" ? (openBlock(), createBlock(resolveDynamicComponent(
257
- h(commonComponents[item.is], {
258
- ...item.props || {},
259
- modelValue: formData[item.prop],
260
- "onUpdate:modelValue": (val) => formData[item.prop] = val
261
- })
262
- ), { key: 0 })) : (openBlock(), createBlock(resolveDynamicComponent(
263
- h(item.is, {
264
- ...item.props || {},
265
- modelValue: formData[item.prop],
266
- "onUpdate:modelValue": (val) => formData[item.prop] = val
267
- })
268
- ), { key: 1 }))
2286
+ function c() {
2287
+ return at(this, null, function* () {
2288
+ var v;
2289
+ yield (v = i.value) == null ? void 0 : v.validate(), o("submit", a);
2290
+ });
2291
+ }
2292
+ function f() {
2293
+ var v;
2294
+ (v = i.value) == null || v.resetFields(), o("reset", a);
2295
+ }
2296
+ return t({
2297
+ formData: a
2298
+ }), (v, g) => (N(), H(h(qr), G({
2299
+ ref_key: "elFormRef",
2300
+ ref: i
2301
+ }, r, {
2302
+ model: a,
2303
+ onSubmit: g[0] || (g[0] = Ur(() => {
2304
+ }, ["prevent"]))
2305
+ }), {
2306
+ default: k(() => [
2307
+ (N(!0), he(Qe, null, le(e.form, (w) => (N(), H(h(Wt), G({ ref_for: !0 }, w.formItem, {
2308
+ prop: String(w.prop),
2309
+ key: w.prop
2310
+ }), {
2311
+ default: k(() => [
2312
+ typeof w.is == "string" ? (N(), H(Lt(
2313
+ Ht(l[w.is], W(S({}, w.props || {}), {
2314
+ modelValue: a[w.prop],
2315
+ "onUpdate:modelValue": (P) => a[w.prop] = P
2316
+ }))
2317
+ ), { key: 0 })) : (N(), H(Lt(
2318
+ Ht(w.is, W(S({}, w.props || {}), {
2319
+ modelValue: a[w.prop],
2320
+ "onUpdate:modelValue": (P) => a[w.prop] = P
2321
+ }))
2322
+ ), { key: 1 }))
2323
+ ]),
2324
+ _: 2
2325
+ }, 1040, ["prop"]))), 128)),
2326
+ Me(h(Wt), { label: "" }, {
2327
+ default: k(() => [
2328
+ Me(h(Yt), {
2329
+ type: "primary",
2330
+ loading: u.value,
2331
+ onClick: c
2332
+ }, {
2333
+ default: k(() => [
2334
+ ft(dt(h(s).component.form.submitText), 1)
269
2335
  ]),
270
- _: 2
271
- }, 1040, ["prop"]);
272
- }), 128)),
273
- createVNode(unref(ElFormItem), { label: "" }, {
274
- default: withCtx(() => [
275
- createVNode(unref(ElButton), {
276
- type: "primary",
277
- loading: loading.value,
278
- onClick: handleSubmit
279
- }, {
280
- default: withCtx(() => [
281
- createTextVNode(toDisplayString(unref(config2).component.form.submitText), 1)
282
- ]),
283
- _: 1
284
- }, 8, ["loading"]),
285
- createVNode(unref(ElButton), {
286
- loading: loading.value,
287
- onClick: handleReset
288
- }, {
289
- default: withCtx(() => [
290
- createTextVNode(toDisplayString(unref(config2).component.form.resetText), 1)
291
- ]),
292
- _: 1
293
- }, 8, ["loading"])
294
- ]),
295
- _: 1
296
- })
297
- ]),
298
- _: 1
299
- }, 16, ["model"]);
300
- };
2336
+ _: 1
2337
+ }, 8, ["loading"]),
2338
+ Me(h(Yt), {
2339
+ loading: u.value,
2340
+ onClick: f
2341
+ }, {
2342
+ default: k(() => [
2343
+ ft(dt(h(s).component.form.resetText), 1)
2344
+ ]),
2345
+ _: 1
2346
+ }, 8, ["loading"])
2347
+ ]),
2348
+ _: 1
2349
+ })
2350
+ ]),
2351
+ _: 1
2352
+ }, 16, ["model"]));
301
2353
  }
302
- });
303
- const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-6b862115"]]);
304
- const columnSupplementType = {
2354
+ }), Sc = /* @__PURE__ */ Ft($c, [["__scopeId", "data-v-6b862115"]]);
2355
+ var Xe = { exports: {} }, Tc = Xe.exports, En;
2356
+ function Cc() {
2357
+ return En || (En = 1, (function(e, t) {
2358
+ (function(n, r) {
2359
+ e.exports = r();
2360
+ })(Tc, (function() {
2361
+ var n = 1e3, r = 6e4, o = 36e5, i = "millisecond", a = "second", s = "minute", u = "hour", l = "day", c = "week", f = "month", v = "quarter", g = "year", w = "date", P = "Invalid Date", _ = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, R = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, T = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(y) {
2362
+ var m = ["th", "st", "nd", "rd"], d = y % 100;
2363
+ return "[" + y + (m[(d - 20) % 10] || m[d] || m[0]) + "]";
2364
+ } }, ee = function(y, m, d) {
2365
+ var b = String(y);
2366
+ return !b || b.length >= m ? y : "" + Array(m + 1 - b.length).join(d) + y;
2367
+ }, se = { s: ee, z: function(y) {
2368
+ var m = -y.utcOffset(), d = Math.abs(m), b = Math.floor(d / 60), p = d % 60;
2369
+ return (m <= 0 ? "+" : "-") + ee(b, 2, "0") + ":" + ee(p, 2, "0");
2370
+ }, m: function y(m, d) {
2371
+ if (m.date() < d.date()) return -y(d, m);
2372
+ var b = 12 * (d.year() - m.year()) + (d.month() - m.month()), p = m.clone().add(b, f), x = d - p < 0, $ = m.clone().add(b + (x ? -1 : 1), f);
2373
+ return +(-(b + (d - p) / (x ? p - $ : $ - p)) || 0);
2374
+ }, a: function(y) {
2375
+ return y < 0 ? Math.ceil(y) || 0 : Math.floor(y);
2376
+ }, p: function(y) {
2377
+ return { M: f, y: g, w: c, d: l, D: w, h: u, m: s, s: a, ms: i, Q: v }[y] || String(y || "").toLowerCase().replace(/s$/, "");
2378
+ }, u: function(y) {
2379
+ return y === void 0;
2380
+ } }, U = "en", C = {};
2381
+ C[U] = T;
2382
+ var B = "$isDayjsObject", D = function(y) {
2383
+ return y instanceof Ue || !(!y || !y[B]);
2384
+ }, z = function y(m, d, b) {
2385
+ var p;
2386
+ if (!m) return U;
2387
+ if (typeof m == "string") {
2388
+ var x = m.toLowerCase();
2389
+ C[x] && (p = x), d && (C[x] = d, p = x);
2390
+ var $ = m.split("-");
2391
+ if (!p && $.length > 1) return y($[0]);
2392
+ } else {
2393
+ var j = m.name;
2394
+ C[j] = m, p = j;
2395
+ }
2396
+ return !b && p && (U = p), p || !b && U;
2397
+ }, O = function(y, m) {
2398
+ if (D(y)) return y.clone();
2399
+ var d = typeof m == "object" ? m : {};
2400
+ return d.date = y, d.args = arguments, new Ue(d);
2401
+ }, E = se;
2402
+ E.l = z, E.i = D, E.w = function(y, m) {
2403
+ return O(y, { locale: m.$L, utc: m.$u, x: m.$x, $offset: m.$offset });
2404
+ };
2405
+ var Ue = (function() {
2406
+ function y(d) {
2407
+ this.$L = z(d.locale, null, !0), this.parse(d), this.$x = this.$x || d.x || {}, this[B] = !0;
2408
+ }
2409
+ var m = y.prototype;
2410
+ return m.parse = function(d) {
2411
+ this.$d = (function(b) {
2412
+ var p = b.date, x = b.utc;
2413
+ if (p === null) return /* @__PURE__ */ new Date(NaN);
2414
+ if (E.u(p)) return /* @__PURE__ */ new Date();
2415
+ if (p instanceof Date) return new Date(p);
2416
+ if (typeof p == "string" && !/Z$/i.test(p)) {
2417
+ var $ = p.match(_);
2418
+ if ($) {
2419
+ var j = $[2] - 1 || 0, F = ($[7] || "0").substring(0, 3);
2420
+ return x ? new Date(Date.UTC($[1], j, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, F)) : new Date($[1], j, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, F);
2421
+ }
2422
+ }
2423
+ return new Date(p);
2424
+ })(d), this.init();
2425
+ }, m.init = function() {
2426
+ var d = this.$d;
2427
+ this.$y = d.getFullYear(), this.$M = d.getMonth(), this.$D = d.getDate(), this.$W = d.getDay(), this.$H = d.getHours(), this.$m = d.getMinutes(), this.$s = d.getSeconds(), this.$ms = d.getMilliseconds();
2428
+ }, m.$utils = function() {
2429
+ return E;
2430
+ }, m.isValid = function() {
2431
+ return this.$d.toString() !== P;
2432
+ }, m.isSame = function(d, b) {
2433
+ var p = O(d);
2434
+ return this.startOf(b) <= p && p <= this.endOf(b);
2435
+ }, m.isAfter = function(d, b) {
2436
+ return O(d) < this.startOf(b);
2437
+ }, m.isBefore = function(d, b) {
2438
+ return this.endOf(b) < O(d);
2439
+ }, m.$g = function(d, b, p) {
2440
+ return E.u(d) ? this[b] : this.set(p, d);
2441
+ }, m.unix = function() {
2442
+ return Math.floor(this.valueOf() / 1e3);
2443
+ }, m.valueOf = function() {
2444
+ return this.$d.getTime();
2445
+ }, m.startOf = function(d, b) {
2446
+ var p = this, x = !!E.u(b) || b, $ = E.p(d), j = function(pe, Y) {
2447
+ var ue = E.w(p.$u ? Date.UTC(p.$y, Y, pe) : new Date(p.$y, Y, pe), p);
2448
+ return x ? ue : ue.endOf(l);
2449
+ }, F = function(pe, Y) {
2450
+ return E.w(p.toDate()[pe].apply(p.toDate("s"), (x ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Y)), p);
2451
+ }, V = this.$W, L = this.$M, Z = this.$D, xe = "set" + (this.$u ? "UTC" : "");
2452
+ switch ($) {
2453
+ case g:
2454
+ return x ? j(1, 0) : j(31, 11);
2455
+ case f:
2456
+ return x ? j(1, L) : j(0, L + 1);
2457
+ case c:
2458
+ var de = this.$locale().weekStart || 0, Ee = (V < de ? V + 7 : V) - de;
2459
+ return j(x ? Z - Ee : Z + (6 - Ee), L);
2460
+ case l:
2461
+ case w:
2462
+ return F(xe + "Hours", 0);
2463
+ case u:
2464
+ return F(xe + "Minutes", 1);
2465
+ case s:
2466
+ return F(xe + "Seconds", 2);
2467
+ case a:
2468
+ return F(xe + "Milliseconds", 3);
2469
+ default:
2470
+ return this.clone();
2471
+ }
2472
+ }, m.endOf = function(d) {
2473
+ return this.startOf(d, !1);
2474
+ }, m.$set = function(d, b) {
2475
+ var p, x = E.p(d), $ = "set" + (this.$u ? "UTC" : ""), j = (p = {}, p[l] = $ + "Date", p[w] = $ + "Date", p[f] = $ + "Month", p[g] = $ + "FullYear", p[u] = $ + "Hours", p[s] = $ + "Minutes", p[a] = $ + "Seconds", p[i] = $ + "Milliseconds", p)[x], F = x === l ? this.$D + (b - this.$W) : b;
2476
+ if (x === f || x === g) {
2477
+ var V = this.clone().set(w, 1);
2478
+ V.$d[j](F), V.init(), this.$d = V.set(w, Math.min(this.$D, V.daysInMonth())).$d;
2479
+ } else j && this.$d[j](F);
2480
+ return this.init(), this;
2481
+ }, m.set = function(d, b) {
2482
+ return this.clone().$set(d, b);
2483
+ }, m.get = function(d) {
2484
+ return this[E.p(d)]();
2485
+ }, m.add = function(d, b) {
2486
+ var p, x = this;
2487
+ d = Number(d);
2488
+ var $ = E.p(b), j = function(L) {
2489
+ var Z = O(x);
2490
+ return E.w(Z.date(Z.date() + Math.round(L * d)), x);
2491
+ };
2492
+ if ($ === f) return this.set(f, this.$M + d);
2493
+ if ($ === g) return this.set(g, this.$y + d);
2494
+ if ($ === l) return j(1);
2495
+ if ($ === c) return j(7);
2496
+ var F = (p = {}, p[s] = r, p[u] = o, p[a] = n, p)[$] || 1, V = this.$d.getTime() + d * F;
2497
+ return E.w(V, this);
2498
+ }, m.subtract = function(d, b) {
2499
+ return this.add(-1 * d, b);
2500
+ }, m.format = function(d) {
2501
+ var b = this, p = this.$locale();
2502
+ if (!this.isValid()) return p.invalidDate || P;
2503
+ var x = d || "YYYY-MM-DDTHH:mm:ssZ", $ = E.z(this), j = this.$H, F = this.$m, V = this.$M, L = p.weekdays, Z = p.months, xe = p.meridiem, de = function(Y, ue, Pe, ze) {
2504
+ return Y && (Y[ue] || Y(b, x)) || Pe[ue].slice(0, ze);
2505
+ }, Ee = function(Y) {
2506
+ return E.s(j % 12 || 12, Y, "0");
2507
+ }, pe = xe || function(Y, ue, Pe) {
2508
+ var ze = Y < 12 ? "AM" : "PM";
2509
+ return Pe ? ze.toLowerCase() : ze;
2510
+ };
2511
+ return x.replace(R, (function(Y, ue) {
2512
+ return ue || (function(Pe) {
2513
+ switch (Pe) {
2514
+ case "YY":
2515
+ return String(b.$y).slice(-2);
2516
+ case "YYYY":
2517
+ return E.s(b.$y, 4, "0");
2518
+ case "M":
2519
+ return V + 1;
2520
+ case "MM":
2521
+ return E.s(V + 1, 2, "0");
2522
+ case "MMM":
2523
+ return de(p.monthsShort, V, Z, 3);
2524
+ case "MMMM":
2525
+ return de(Z, V);
2526
+ case "D":
2527
+ return b.$D;
2528
+ case "DD":
2529
+ return E.s(b.$D, 2, "0");
2530
+ case "d":
2531
+ return String(b.$W);
2532
+ case "dd":
2533
+ return de(p.weekdaysMin, b.$W, L, 2);
2534
+ case "ddd":
2535
+ return de(p.weekdaysShort, b.$W, L, 3);
2536
+ case "dddd":
2537
+ return L[b.$W];
2538
+ case "H":
2539
+ return String(j);
2540
+ case "HH":
2541
+ return E.s(j, 2, "0");
2542
+ case "h":
2543
+ return Ee(1);
2544
+ case "hh":
2545
+ return Ee(2);
2546
+ case "a":
2547
+ return pe(j, F, !0);
2548
+ case "A":
2549
+ return pe(j, F, !1);
2550
+ case "m":
2551
+ return String(F);
2552
+ case "mm":
2553
+ return E.s(F, 2, "0");
2554
+ case "s":
2555
+ return String(b.$s);
2556
+ case "ss":
2557
+ return E.s(b.$s, 2, "0");
2558
+ case "SSS":
2559
+ return E.s(b.$ms, 3, "0");
2560
+ case "Z":
2561
+ return $;
2562
+ }
2563
+ return null;
2564
+ })(Y) || $.replace(":", "");
2565
+ }));
2566
+ }, m.utcOffset = function() {
2567
+ return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
2568
+ }, m.diff = function(d, b, p) {
2569
+ var x, $ = this, j = E.p(b), F = O(d), V = (F.utcOffset() - this.utcOffset()) * r, L = this - F, Z = function() {
2570
+ return E.m($, F);
2571
+ };
2572
+ switch (j) {
2573
+ case g:
2574
+ x = Z() / 12;
2575
+ break;
2576
+ case f:
2577
+ x = Z();
2578
+ break;
2579
+ case v:
2580
+ x = Z() / 3;
2581
+ break;
2582
+ case c:
2583
+ x = (L - V) / 6048e5;
2584
+ break;
2585
+ case l:
2586
+ x = (L - V) / 864e5;
2587
+ break;
2588
+ case u:
2589
+ x = L / o;
2590
+ break;
2591
+ case s:
2592
+ x = L / r;
2593
+ break;
2594
+ case a:
2595
+ x = L / n;
2596
+ break;
2597
+ default:
2598
+ x = L;
2599
+ }
2600
+ return p ? x : E.a(x);
2601
+ }, m.daysInMonth = function() {
2602
+ return this.endOf(f).$D;
2603
+ }, m.$locale = function() {
2604
+ return C[this.$L];
2605
+ }, m.locale = function(d, b) {
2606
+ if (!d) return this.$L;
2607
+ var p = this.clone(), x = z(d, b, !0);
2608
+ return x && (p.$L = x), p;
2609
+ }, m.clone = function() {
2610
+ return E.w(this.$d, this);
2611
+ }, m.toDate = function() {
2612
+ return new Date(this.valueOf());
2613
+ }, m.toJSON = function() {
2614
+ return this.isValid() ? this.toISOString() : null;
2615
+ }, m.toISOString = function() {
2616
+ return this.$d.toISOString();
2617
+ }, m.toString = function() {
2618
+ return this.$d.toUTCString();
2619
+ }, y;
2620
+ })(), It = Ue.prototype;
2621
+ return O.prototype = It, [["$ms", i], ["$s", a], ["$m", s], ["$H", u], ["$W", l], ["$M", f], ["$y", g], ["$D", w]].forEach((function(y) {
2622
+ It[y[1]] = function(m) {
2623
+ return this.$g(m, y[0], y[1]);
2624
+ };
2625
+ })), O.extend = function(y, m) {
2626
+ return y.$i || (y(m, Ue, O), y.$i = !0), O;
2627
+ }, O.locale = z, O.isDayjs = D, O.unix = function(y) {
2628
+ return O(1e3 * y);
2629
+ }, O.en = C[U], O.Ls = C, O.p = {}, O;
2630
+ }));
2631
+ })(Xe)), Xe.exports;
2632
+ }
2633
+ var Oc = Cc();
2634
+ const Pn = /* @__PURE__ */ vc(Oc), Ec = {
305
2635
  index: {},
306
2636
  selection: {},
307
2637
  expand: {},
308
2638
  date: {
309
2639
  width: "140px",
310
- formatter(row, column, cellValue) {
311
- return dayjs(cellValue).format("YYYY-MM-DD");
2640
+ formatter(e, t, n) {
2641
+ return Pn(n).format("YYYY-MM-DD");
312
2642
  }
313
2643
  },
314
2644
  dateTime: {
315
2645
  width: "180px",
316
- formatter(row, column, cellValue) {
317
- return dayjs(cellValue).format("YYYY-MM-DD HH:mm:ss");
2646
+ formatter(e, t, n) {
2647
+ return Pn(n).format("YYYY-MM-DD HH:mm:ss");
318
2648
  }
319
2649
  }
320
- };
321
- const _hoisted_1 = { class: "common-table" };
322
- const _sfc_main$7 = /* @__PURE__ */ defineComponent({
323
- ...{
324
- name: "ConnomTable"
325
- },
2650
+ }, Pc = { class: "common-table" }, jc = /* @__PURE__ */ J({
2651
+ name: "ConnomTable",
326
2652
  __name: "index",
327
2653
  props: {
328
2654
  columns: {},
@@ -374,90 +2700,67 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
374
2700
  scrollbarTabindex: {},
375
2701
  nativeScrollbar: {}
376
2702
  },
377
- setup(__props) {
378
- const config2 = getCommonProviderConfig();
379
- const props = __props;
380
- const ElTableRef = useTemplateRef("ElTableRef");
381
- watch(props.data, () => {
382
- var _a;
383
- (_a = ElTableRef.value) == null ? void 0 : _a.scrollTo({
2703
+ setup(e) {
2704
+ const t = ot(), n = e, r = Ct("ElTableRef");
2705
+ Se(n.data, () => {
2706
+ var i;
2707
+ (i = r.value) == null || i.scrollTo({
384
2708
  top: 0,
385
2709
  left: 0,
386
2710
  behavior: "smooth"
387
2711
  });
388
2712
  });
389
- const arrayColumns = computed(() => {
390
- let columns = cloneDeep(props.columns);
391
- if (!Array.isArray(columns)) {
392
- columns = Object.entries(columns).map(([key, value]) => {
393
- return {
394
- ...value,
395
- prop: key
396
- };
397
- });
398
- }
399
- return columns.map((item) => {
400
- if ("type" in item) {
401
- return Object.assign(columnSupplementType[item.type], {
402
- ...item,
403
- prop: item.prop
404
- });
405
- }
406
- return {
407
- ...item,
408
- prop: item.prop
409
- };
410
- });
2713
+ const o = re(() => {
2714
+ let i = ve(n.columns);
2715
+ return Array.isArray(i) || (i = Object.entries(i).map(([a, s]) => W(S({}, s), {
2716
+ prop: a
2717
+ }))), i.map((a) => "type" in a ? Object.assign(Ec[a.type], W(S({}, a), {
2718
+ prop: a.prop
2719
+ })) : W(S({}, a), {
2720
+ prop: a.prop
2721
+ }));
411
2722
  });
412
- return (_ctx, _cache) => {
413
- return openBlock(), createElementBlock("div", _hoisted_1, [
414
- createVNode(unref(ElTable), mergeProps(props, {
415
- headerCellStyle: unref(config2).component.table.headerCellStyle,
416
- height: "100%",
417
- ref_key: "ElTableRef",
418
- ref: ElTableRef
419
- }), {
420
- empty: withCtx(() => [
421
- renderSlot(_ctx.$slots, "empty", {}, () => [
422
- createVNode(unref(ElEmpty), { description: "暂无数据" })
423
- ], true)
424
- ]),
425
- default: withCtx(() => [
426
- (openBlock(true), createElementBlock(Fragment, null, renderList(arrayColumns.value, (column) => {
427
- return openBlock(), createBlock(unref(ElTableColumn), mergeProps({
428
- key: column.prop,
429
- ref_for: true
430
- }, column), createSlots({ _: 2 }, [
431
- !column.formatter ? {
432
- name: "default",
433
- fn: withCtx((scoped) => [
434
- renderSlot(_ctx.$slots, column.prop, {
435
- row: scoped.row,
436
- column: scoped.column,
437
- index: scoped.$index,
438
- value: scoped.row[column.prop]
439
- }, () => [
440
- createTextVNode(toDisplayString(unref(getFirstValidValue)(scoped.row[column.prop], unref(config2).component.placeholder)), 1)
441
- ], true)
442
- ]),
443
- key: "0"
444
- } : void 0
445
- ]), 1040);
446
- }), 128))
447
- ]),
448
- _: 3
449
- }, 16, ["headerCellStyle"])
450
- ]);
451
- };
2723
+ return (i, a) => (N(), he("div", Pc, [
2724
+ Me(h(kr), G(n, {
2725
+ headerCellStyle: h(t).component.table.headerCellStyle,
2726
+ height: "100%",
2727
+ ref_key: "ElTableRef",
2728
+ ref: r
2729
+ }), {
2730
+ empty: k(() => [
2731
+ Q(i.$slots, "empty", {}, () => [
2732
+ Me(h(Zr), { description: "暂无数据" })
2733
+ ], !0)
2734
+ ]),
2735
+ default: k(() => [
2736
+ (N(!0), he(Qe, null, le(o.value, (s) => (N(), H(h(Gr), G({
2737
+ key: s.prop,
2738
+ ref_for: !0
2739
+ }, s), Re({ _: 2 }, [
2740
+ s.formatter ? void 0 : {
2741
+ name: "default",
2742
+ fn: k((u) => [
2743
+ Q(i.$slots, s.prop, {
2744
+ row: u.row,
2745
+ column: u.column,
2746
+ index: u.$index,
2747
+ value: u.row[s.prop]
2748
+ }, () => [
2749
+ ft(dt(h(Bc)(u.row[s.prop], h(t).component.placeholder)), 1)
2750
+ ], !0)
2751
+ ]),
2752
+ key: "0"
2753
+ }
2754
+ ]), 1040))), 128))
2755
+ ]),
2756
+ _: 3
2757
+ }, 16, ["headerCellStyle"])
2758
+ ]));
452
2759
  }
453
- });
454
- const index = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__scopeId", "data-v-5da80890"]]);
455
- const _sfc_main$6 = /* @__PURE__ */ defineComponent({
456
- ...{
457
- name: "CommonPagination"
458
- },
2760
+ }), Ac = /* @__PURE__ */ Ft(jc, [["__scopeId", "data-v-5da80890"]]), Rc = /* @__PURE__ */ J({
2761
+ name: "CommonPagination",
459
2762
  __name: "index",
460
- props: /* @__PURE__ */ mergeModels({
2763
+ props: /* @__PURE__ */ te({
461
2764
  pageSize: {},
462
2765
  defaultPageSize: {},
463
2766
  total: { default: 0 },
@@ -473,71 +2776,61 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
473
2776
  prevIcon: {},
474
2777
  nextText: {},
475
2778
  nextIcon: {},
476
- teleported: { type: Boolean, default: true },
2779
+ teleported: { type: Boolean, default: !0 },
477
2780
  small: { type: Boolean },
478
2781
  size: {},
479
- background: { type: Boolean, default: true },
2782
+ background: { type: Boolean, default: !0 },
480
2783
  disabled: { type: Boolean },
481
2784
  hideOnSinglePage: { type: Boolean },
482
2785
  appendSizeTo: {}
483
2786
  }, {
484
- "pageNo": {
2787
+ pageNo: {
485
2788
  /** 数值类型 */
486
2789
  type: Number,
487
2790
  /** 必填项 */
488
- required: true
2791
+ required: !0
489
2792
  },
490
- "pageNoModifiers": {},
491
- "pageSize": {
2793
+ pageNoModifiers: {},
2794
+ pageSize: {
492
2795
  /** 数值类型 */
493
2796
  type: Number,
494
2797
  /** 必填项 */
495
- required: true
2798
+ required: !0
496
2799
  },
497
- "pageSizeModifiers": {}
2800
+ pageSizeModifiers: {}
498
2801
  }),
499
- emits: /* @__PURE__ */ mergeModels(["change"], ["update:pageNo", "update:pageSize"]),
500
- setup(__props, { emit: __emit }) {
501
- const props = __props;
502
- const emit = __emit;
503
- const pageNo = useModel(__props, "pageNo");
504
- const pageSize = useModel(__props, "pageSize");
505
- watch(
506
- () => pageSize.value,
2802
+ emits: /* @__PURE__ */ te(["change"], ["update:pageNo", "update:pageSize"]),
2803
+ setup(e, { emit: t }) {
2804
+ const n = e, r = t, o = oe(e, "pageNo"), i = oe(e, "pageSize");
2805
+ return Se(
2806
+ () => i.value,
507
2807
  () => {
508
- pageNo.value = 1;
2808
+ o.value = 1;
509
2809
  }
510
- );
511
- watch(
512
- () => pageNo.value,
2810
+ ), Se(
2811
+ () => o.value,
513
2812
  () => {
514
- emit("change", {
515
- pageNo: pageNo.value,
516
- pageSize: pageSize.value
2813
+ r("change", {
2814
+ pageNo: o.value,
2815
+ pageSize: i.value
517
2816
  });
518
2817
  }
519
- );
520
- return (_ctx, _cache) => {
521
- return openBlock(), createBlock(unref(ElPagination), mergeProps(props, {
522
- "page-size": pageSize.value,
523
- "onUpdate:pageSize": _cache[0] || (_cache[0] = ($event) => pageSize.value = $event),
524
- "current-page": pageNo.value,
525
- "onUpdate:currentPage": _cache[1] || (_cache[1] = ($event) => pageNo.value = $event)
526
- }), {
527
- default: withCtx(() => [
528
- renderSlot(_ctx.$slots, "default")
529
- ]),
530
- _: 3
531
- }, 16, ["page-size", "current-page"]);
532
- };
2818
+ ), (a, s) => (N(), H(h(Xr), G(n, {
2819
+ "page-size": i.value,
2820
+ "onUpdate:pageSize": s[0] || (s[0] = (u) => i.value = u),
2821
+ "current-page": o.value,
2822
+ "onUpdate:currentPage": s[1] || (s[1] = (u) => o.value = u)
2823
+ }), {
2824
+ default: k(() => [
2825
+ Q(a.$slots, "default")
2826
+ ]),
2827
+ _: 3
2828
+ }, 16, ["page-size", "current-page"]));
533
2829
  }
534
- });
535
- const _sfc_main$5 = /* @__PURE__ */ defineComponent({
536
- ...{
537
- name: "CommonSelect"
538
- },
2830
+ }), Mc = /* @__PURE__ */ J({
2831
+ name: "CommonSelect",
539
2832
  __name: "index",
540
- props: /* @__PURE__ */ mergeModels({
2833
+ props: /* @__PURE__ */ te({
541
2834
  ariaLabel: {},
542
2835
  emptyValues: {},
543
2836
  valueOnClear: {},
@@ -549,7 +2842,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
549
2842
  size: {},
550
2843
  effect: {},
551
2844
  disabled: { type: Boolean },
552
- clearable: { type: Boolean, default: true },
2845
+ clearable: { type: Boolean, default: !0 },
553
2846
  filterable: { type: Boolean },
554
2847
  allowCreate: { type: Boolean },
555
2848
  loading: { type: Boolean },
@@ -579,7 +2872,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
579
2872
  suffixIcon: {},
580
2873
  tagType: {},
581
2874
  tagEffect: {},
582
- validateEvent: { type: Boolean, default: true },
2875
+ validateEvent: { type: Boolean, default: !0 },
583
2876
  remoteShowSuffix: { type: Boolean },
584
2877
  showArrow: { type: Boolean },
585
2878
  offset: {},
@@ -592,88 +2885,70 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
592
2885
  } },
593
2886
  props: {}
594
2887
  }, {
595
- "modelValue": {},
596
- "modelModifiers": {}
2888
+ modelValue: {},
2889
+ modelModifiers: {}
597
2890
  }),
598
2891
  emits: ["update:modelValue"],
599
- setup(__props) {
600
- const props = __props;
601
- const model = useModel(__props, "modelValue");
602
- return (_ctx, _cache) => {
603
- return openBlock(), createBlock(unref(ElSelect), mergeProps(props, {
604
- modelValue: model.value,
605
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event)
606
- }), {
607
- default: withCtx(() => [
608
- renderSlot(_ctx.$slots, "default", {}, () => [
609
- (openBlock(true), createElementBlock(Fragment, null, renderList(props.options, (item) => {
610
- return openBlock(), createBlock(unref(ElOption), {
611
- key: item.label,
612
- value: item.value,
613
- label: item.label,
614
- disabled: item.disabled
615
- }, null, 8, ["value", "label", "disabled"]);
616
- }), 128))
617
- ])
618
- ]),
619
- _: 3
620
- }, 16, ["modelValue"]);
621
- };
2892
+ setup(e) {
2893
+ const t = e, n = oe(e, "modelValue");
2894
+ return (r, o) => (N(), H(h(Jr), G(t, {
2895
+ modelValue: n.value,
2896
+ "onUpdate:modelValue": o[0] || (o[0] = (i) => n.value = i)
2897
+ }), {
2898
+ default: k(() => [
2899
+ Q(r.$slots, "default", {}, () => [
2900
+ (N(!0), he(Qe, null, le(t.options, (i) => (N(), H(h(Qr), {
2901
+ key: i.label,
2902
+ value: i.value,
2903
+ label: i.label,
2904
+ disabled: i.disabled
2905
+ }, null, 8, ["value", "label", "disabled"]))), 128))
2906
+ ])
2907
+ ]),
2908
+ _: 3
2909
+ }, 16, ["modelValue"]));
622
2910
  }
623
- });
624
- const _sfc_main$4 = /* @__PURE__ */ defineComponent({
625
- ...{
626
- name: "CommonInput"
627
- },
2911
+ }), Dc = /* @__PURE__ */ J({
2912
+ name: "CommonInput",
628
2913
  __name: "index",
629
2914
  props: {
630
- "modelValue": {
2915
+ modelValue: {
631
2916
  /** 默认空字符串 */
632
2917
  default: ""
633
2918
  },
634
- "modelModifiers": {}
2919
+ modelModifiers: {}
635
2920
  },
636
- emits: /* @__PURE__ */ mergeModels(["enter"], ["update:modelValue"]),
637
- setup(__props, { emit: __emit }) {
638
- const props = __props;
639
- const emit = __emit;
640
- const modelValue = useModel(__props, "modelValue");
641
- function handleEnter(e) {
642
- if ("isComposing" in e) {
643
- if (e.isComposing) return;
644
- } else {
2921
+ emits: /* @__PURE__ */ te(["enter"], ["update:modelValue"]),
2922
+ setup(e, { emit: t }) {
2923
+ const n = e, r = t, o = oe(e, "modelValue");
2924
+ function i(a) {
2925
+ if ("isComposing" in a) {
2926
+ if (a.isComposing) return;
2927
+ } else
645
2928
  return;
646
- }
647
- emit("enter", e);
648
- }
649
- return (_ctx, _cache) => {
650
- return openBlock(), createBlock(unref(ElInput), mergeProps(props, {
651
- modelValue: modelValue.value,
652
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
653
- onKeydown: withKeys(handleEnter, ["enter"])
654
- }), createSlots({ _: 2 }, [
655
- renderList(_ctx.$slots, (_, name) => {
656
- return {
657
- name,
658
- fn: withCtx((scoped) => [
659
- renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(scoped)))
660
- ])
661
- };
662
- })
663
- ]), 1040, ["modelValue"]);
664
- };
2929
+ r("enter", a);
2930
+ }
2931
+ return (a, s) => (N(), H(h(Kr), G(n, {
2932
+ modelValue: o.value,
2933
+ "onUpdate:modelValue": s[0] || (s[0] = (u) => o.value = u),
2934
+ onKeydown: zr(i, ["enter"])
2935
+ }), Re({ _: 2 }, [
2936
+ le(a.$slots, (u, l) => ({
2937
+ name: l,
2938
+ fn: k((c) => [
2939
+ Q(a.$slots, l, Lr(Hr(c)))
2940
+ ])
2941
+ }))
2942
+ ]), 1040, ["modelValue"]));
665
2943
  }
666
- });
667
- const _sfc_main$3 = /* @__PURE__ */ defineComponent({
668
- ...{
669
- name: "CommonDatePicker"
670
- },
2944
+ }), Nc = /* @__PURE__ */ J({
2945
+ name: "CommonDatePicker",
671
2946
  __name: "index",
672
- props: /* @__PURE__ */ mergeModels({
2947
+ props: /* @__PURE__ */ te({
673
2948
  type: {},
674
2949
  showNow: { type: Boolean },
675
2950
  showConfirm: { type: Boolean },
676
- showFooter: { type: Boolean, default: true },
2951
+ showFooter: { type: Boolean, default: !0 },
677
2952
  showWeekNumber: { type: Boolean },
678
2953
  ariaLabel: {},
679
2954
  emptyValues: {},
@@ -683,7 +2958,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
683
2958
  shortcuts: {},
684
2959
  arrowControl: { type: Boolean },
685
2960
  tabindex: {},
686
- validateEvent: { type: Boolean, default: true },
2961
+ validateEvent: { type: Boolean, default: !0 },
687
2962
  unlinkPanels: { type: Boolean },
688
2963
  placement: {},
689
2964
  fallbackPlacements: {},
@@ -699,7 +2974,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
699
2974
  valueFormat: { default: "YYYY-MM-DD" },
700
2975
  dateFormat: {},
701
2976
  timeFormat: {},
702
- clearable: { type: Boolean, default: true },
2977
+ clearable: { type: Boolean, default: !0 },
703
2978
  clearIcon: {},
704
2979
  editable: { type: Boolean },
705
2980
  prefixIcon: {},
@@ -716,27 +2991,21 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
716
2991
  defaultTime: {},
717
2992
  isRange: { type: Boolean }
718
2993
  }, {
719
- "modelValue": {},
720
- "modelModifiers": {}
2994
+ modelValue: {},
2995
+ modelModifiers: {}
721
2996
  }),
722
2997
  emits: ["update:modelValue"],
723
- setup(__props) {
724
- const props = __props;
725
- const modelValue = useModel(__props, "modelValue");
726
- return (_ctx, _cache) => {
727
- return openBlock(), createBlock(unref(ElDatePicker), mergeProps(props, {
728
- modelValue: modelValue.value,
729
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
730
- }), null, 16, ["modelValue"]);
731
- };
2998
+ setup(e) {
2999
+ const t = e, n = oe(e, "modelValue");
3000
+ return (r, o) => (N(), H(h(eo), G(t, {
3001
+ modelValue: n.value,
3002
+ "onUpdate:modelValue": o[0] || (o[0] = (i) => n.value = i)
3003
+ }), null, 16, ["modelValue"]));
732
3004
  }
733
- });
734
- const _sfc_main$2 = /* @__PURE__ */ defineComponent({
735
- ...{
736
- name: "CommonRadio"
737
- },
3005
+ }), Fc = /* @__PURE__ */ J({
3006
+ name: "CommonRadio",
738
3007
  __name: "index",
739
- props: /* @__PURE__ */ mergeModels({
3008
+ props: /* @__PURE__ */ te({
740
3009
  ariaLabel: {},
741
3010
  id: {},
742
3011
  size: {},
@@ -750,27 +3019,21 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
750
3019
  props: {},
751
3020
  type: {}
752
3021
  }, {
753
- "modelValue": {},
754
- "modelModifiers": {}
3022
+ modelValue: {},
3023
+ modelModifiers: {}
755
3024
  }),
756
3025
  emits: ["update:modelValue"],
757
- setup(__props) {
758
- const props = __props;
759
- const modelValue = useModel(__props, "modelValue");
760
- return (_ctx, _cache) => {
761
- return openBlock(), createBlock(unref(ElRadioGroup), mergeProps(props, {
762
- modelValue: modelValue.value,
763
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
764
- }), null, 16, ["modelValue"]);
765
- };
3026
+ setup(e) {
3027
+ const t = e, n = oe(e, "modelValue");
3028
+ return (r, o) => (N(), H(h(to), G(t, {
3029
+ modelValue: n.value,
3030
+ "onUpdate:modelValue": o[0] || (o[0] = (i) => n.value = i)
3031
+ }), null, 16, ["modelValue"]));
766
3032
  }
767
- });
768
- const _sfc_main$1 = /* @__PURE__ */ defineComponent({
769
- ...{
770
- name: "CommonCheckbox"
771
- },
3033
+ }), Ic = /* @__PURE__ */ J({
3034
+ name: "CommonCheckbox",
772
3035
  __name: "index",
773
- props: /* @__PURE__ */ mergeModels({
3036
+ props: /* @__PURE__ */ te({
774
3037
  ariaLabel: {},
775
3038
  modelValue: {},
776
3039
  disabled: {},
@@ -785,27 +3048,21 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
785
3048
  props: {},
786
3049
  type: {}
787
3050
  }, {
788
- "modelValue": {},
789
- "modelModifiers": {}
3051
+ modelValue: {},
3052
+ modelModifiers: {}
790
3053
  }),
791
3054
  emits: ["update:modelValue"],
792
- setup(__props) {
793
- const props = __props;
794
- const modelValue = useModel(__props, "modelValue");
795
- return (_ctx, _cache) => {
796
- return openBlock(), createBlock(unref(ElCheckboxGroup), mergeProps(props, {
797
- modelValue: modelValue.value,
798
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event)
799
- }), null, 16, ["modelValue"]);
800
- };
3055
+ setup(e) {
3056
+ const t = e, n = oe(e, "modelValue");
3057
+ return (r, o) => (N(), H(h(no), G(t, {
3058
+ modelValue: n.value,
3059
+ "onUpdate:modelValue": o[0] || (o[0] = (i) => n.value = i)
3060
+ }), null, 16, ["modelValue"]));
801
3061
  }
802
- });
803
- const _sfc_main = /* @__PURE__ */ defineComponent({
804
- ...{
805
- name: "CommonCheckbox"
806
- },
3062
+ }), Vc = /* @__PURE__ */ J({
3063
+ name: "CommonCheckbox",
807
3064
  __name: "index",
808
- props: /* @__PURE__ */ mergeModels({
3065
+ props: /* @__PURE__ */ te({
809
3066
  activeColor: {},
810
3067
  inactiveColor: {},
811
3068
  borderColor: {},
@@ -830,90 +3087,70 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
830
3087
  id: {},
831
3088
  tabindex: {}
832
3089
  }, {
833
- "modelValue": {},
834
- "modelModifiers": {}
3090
+ modelValue: {},
3091
+ modelModifiers: {}
835
3092
  }),
836
3093
  emits: ["update:modelValue"],
837
- setup(__props) {
838
- const props = __props;
839
- const modelValue = useModel(__props, "modelValue");
840
- const style = computed(() => {
841
- const css = {};
842
- if (props.activeColor) {
843
- css["--el-switch-on-color"] = props.activeColor;
844
- }
845
- if (props.inactiveColor) {
846
- css["--el-switch-off-color"] = props.inactiveColor;
847
- }
848
- if (props.borderColor) {
849
- css["--el-switch-border-color"] = props.borderColor;
850
- }
851
- return css;
3094
+ setup(e) {
3095
+ const t = e, n = oe(e, "modelValue"), r = re(() => {
3096
+ const o = {};
3097
+ return t.activeColor && (o["--el-switch-on-color"] = t.activeColor), t.inactiveColor && (o["--el-switch-off-color"] = t.inactiveColor), t.borderColor && (o["--el-switch-border-color"] = t.borderColor), o;
852
3098
  });
853
- return (_ctx, _cache) => {
854
- return openBlock(), createBlock(unref(ElSwitch), mergeProps({ class: "common-switch" }, props, {
855
- modelValue: modelValue.value,
856
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modelValue.value = $event),
857
- style: style.value
858
- }), null, 16, ["modelValue", "style"]);
859
- };
3099
+ return (o, i) => (N(), H(h(ro), G({ class: "common-switch" }, t, {
3100
+ modelValue: n.value,
3101
+ "onUpdate:modelValue": i[0] || (i[0] = (a) => n.value = a),
3102
+ style: r.value
3103
+ }), null, 16, ["modelValue", "style"]));
860
3104
  }
861
3105
  });
862
- function getFirstValidValue(...args) {
863
- return args.find((arg) => arg !== null && arg !== void 0 && arg !== "");
3106
+ function Bc(...e) {
3107
+ return e.find((t) => t != null && t !== "");
864
3108
  }
865
- function filterNullAndUndefined(obj) {
3109
+ function Uc(e) {
866
3110
  return Object.fromEntries(
867
- Object.entries(obj).filter(
868
- ([_, value]) => value !== null && value !== void 0 && value !== ""
3111
+ Object.entries(e).filter(
3112
+ ([t, n]) => n != null && n !== ""
869
3113
  )
870
3114
  );
871
3115
  }
872
- const configInjectKey = Symbol();
873
- function getCommonProviderConfig() {
874
- return inject(configInjectKey, config);
3116
+ const Or = Symbol();
3117
+ function ot() {
3118
+ return An(Or, Hc);
875
3119
  }
876
- function useResettableRef(value, clone = cloneDeep) {
877
- const initialValue = clone(value);
878
- const state = ref(value);
879
- const reset = () => {
880
- state.value = clone(initialValue);
881
- };
882
- return [state, reset];
3120
+ function Zc(e, t = ve) {
3121
+ const n = t(e), r = I(e);
3122
+ return [r, () => {
3123
+ r.value = t(n);
3124
+ }];
883
3125
  }
884
- function useResettableReactive(value, clone = cloneDeep) {
885
- const state = reactive(clone(value));
886
- const reset = () => {
887
- Object.keys(state).forEach((key) => {
888
- Reflect.deleteProperty(state, key);
889
- });
890
- Object.assign(state, clone(value));
891
- };
892
- return [state, reset];
893
- }
894
- function useGetComponentsChildrenSlots(keys) {
895
- const slots = useSlots();
896
- return computed(() => {
897
- const o = Object.fromEntries(keys.map((item) => [item, {}]));
898
- for (const key in slots) {
899
- if (!Object.prototype.hasOwnProperty.call(slots, key) && !keys.some((i) => i.startsWith(key)))
3126
+ function zc(e, t = ve) {
3127
+ const n = Be(t(e));
3128
+ return [n, () => {
3129
+ Object.keys(n).forEach((o) => {
3130
+ Reflect.deleteProperty(n, o);
3131
+ }), Object.assign(n, t(e));
3132
+ }];
3133
+ }
3134
+ function Lc(e) {
3135
+ const t = Wr();
3136
+ return re(() => {
3137
+ const n = Object.fromEntries(e.map((r) => [r, {}]));
3138
+ for (const r in t) {
3139
+ if (!Object.prototype.hasOwnProperty.call(t, r) && !e.some((l) => l.startsWith(r)))
900
3140
  continue;
901
- const k = kebabCase(key);
902
- const value = slots[key];
903
- const index2 = k.indexOf("-");
904
- if (index2 === -1 && !value) return;
905
- const name = k.slice(0, index2);
906
- const slotKey = k.slice(index2 + 1);
907
- merge(o, {
908
- [name]: {
909
- [camelCase(slotKey)]: key
3141
+ const o = Tl(r), i = t[r], a = o.indexOf("-");
3142
+ if (a === -1 && !i) return;
3143
+ const s = o.slice(0, a), u = o.slice(a + 1);
3144
+ xt(n, {
3145
+ [s]: {
3146
+ [Ys(u)]: r
910
3147
  }
911
3148
  });
912
3149
  }
913
- return o;
3150
+ return n;
914
3151
  });
915
3152
  }
916
- const config = reactive({
3153
+ const Hc = Be({
917
3154
  component: {
918
3155
  placeholder: "-",
919
3156
  pagination: {
@@ -940,24 +3177,24 @@ const config = reactive({
940
3177
  }
941
3178
  });
942
3179
  export {
943
- _sfc_main$1 as CommonCheckbox,
944
- _sfc_main$a as CommonConfigProvider,
945
- _sfc_main$3 as CommonDatePicker,
946
- index$1 as CommonForm,
947
- _sfc_main$4 as CommonInput,
948
- _sfc_main$6 as CommonPagination,
949
- index$2 as CommonQueryTable,
950
- _sfc_main$2 as CommonRadio,
951
- _sfc_main$5 as CommonSelect,
952
- _sfc_main as CommonSwitch,
953
- index as CommonTable,
954
- config,
955
- configInjectKey,
956
- filterNullAndUndefined,
957
- getCommonProviderConfig,
958
- getFirstValidValue,
959
- useGetComponentsChildrenSlots,
960
- useResettableReactive,
961
- useResettableRef
3180
+ Ic as CommonCheckbox,
3181
+ kc as CommonConfigProvider,
3182
+ Nc as CommonDatePicker,
3183
+ Sc as CommonForm,
3184
+ Dc as CommonInput,
3185
+ Rc as CommonPagination,
3186
+ Gc as CommonQueryTable,
3187
+ Fc as CommonRadio,
3188
+ Mc as CommonSelect,
3189
+ Vc as CommonSwitch,
3190
+ Ac as CommonTable,
3191
+ Hc as config,
3192
+ Or as configInjectKey,
3193
+ Uc as filterNullAndUndefined,
3194
+ ot as getCommonProviderConfig,
3195
+ Bc as getFirstValidValue,
3196
+ Lc as useGetComponentsChildrenSlots,
3197
+ zc as useResettableReactive,
3198
+ Zc as useResettableRef
962
3199
  };
963
3200
  //# sourceMappingURL=index.js.map