fj-form 0.0.10 → 0.0.11

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/fj-form.js CHANGED
@@ -1,11 +1,11 @@
1
- import { getCurrentInstance as pe, inject as K, ref as P, computed as v, unref as x, watch as ae, shallowRef as qe, watchEffect as ho, readonly as or, getCurrentScope as bo, onScopeDispose as _o, onMounted as it, isRef as Se, warn as wo, provide as st, defineComponent as N, openBlock as I, createElementBlock as M, mergeProps as Ee, renderSlot as ne, createElementVNode as H, normalizeClass as Z, createVNode as L, Transition as ar, withCtx as U, withDirectives as ir, normalizeStyle as Be, createTextVNode as ke, toDisplayString as gt, vShow as sr, createBlock as te, resolveDynamicComponent as lt, reactive as At, toRefs as lr, onBeforeUnmount as ur, onUpdated as xo, Fragment as _t, nextTick as Ht, useSlots as To, createCommentVNode as De, TransitionGroup as $o, shallowReactive as cr, withModifiers as Oo, isVNode as fr, render as yn, useModel as me, resolveComponent as ie, renderList as dr, h as W } from "vue";
1
+ import { getCurrentInstance as pe, inject as K, ref as P, computed as v, unref as x, watch as ae, shallowRef as qe, watchEffect as yo, readonly as or, getCurrentScope as bo, onScopeDispose as _o, onMounted as it, isRef as Se, warn as wo, provide as st, defineComponent as N, openBlock as I, createElementBlock as M, mergeProps as Ee, renderSlot as ne, createElementVNode as H, normalizeClass as Z, createVNode as L, Transition as ar, withCtx as U, withDirectives as ir, normalizeStyle as Be, createTextVNode as ke, toDisplayString as gt, vShow as sr, createBlock as te, resolveDynamicComponent as lt, reactive as At, toRefs as lr, onBeforeUnmount as ur, onUpdated as xo, Fragment as _t, nextTick as Ht, useSlots as To, createCommentVNode as De, TransitionGroup as $o, shallowReactive as cr, withModifiers as Oo, isVNode as dr, render as hn, useModel as me, resolveComponent as ie, renderList as fr, h as W } from "vue";
2
2
  const pr = /* @__PURE__ */ Symbol(), pt = "el", So = "is-", we = (e, t, n, r, o) => {
3
3
  let i = `${e}-${t}`;
4
4
  return n && (i += `-${n}`), r && (i += `__${r}`), o && (i += `--${o}`), i;
5
5
  }, mr = /* @__PURE__ */ Symbol("namespaceContextKey"), vr = (e) => {
6
6
  const t = e || (pe() ? K(mr, P(pt)) : P(pt));
7
7
  return v(() => x(t) || pt);
8
- }, ye = (e, t) => {
8
+ }, he = (e, t) => {
9
9
  const n = vr(t);
10
10
  return {
11
11
  namespace: n,
@@ -40,7 +40,7 @@ process.env.NODE_ENV !== "production" && Object.freeze({});
40
40
  process.env.NODE_ENV !== "production" && Object.freeze([]);
41
41
  const Eo = () => {
42
42
  }, Io = Object.prototype.hasOwnProperty, Pt = (e, t) => Io.call(e, t), et = Array.isArray, ze = (e) => typeof e == "function", ve = (e) => typeof e == "string", Zt = (e) => e !== null && typeof e == "object";
43
- var gr = typeof global == "object" && global && global.Object === Object && global, Co = typeof self == "object" && self && self.Object === Object && self, se = gr || Co || Function("return this")(), ge = se.Symbol, yr = Object.prototype, Fo = yr.hasOwnProperty, jo = yr.toString, Ye = ge ? ge.toStringTag : void 0;
43
+ var gr = typeof global == "object" && global && global.Object === Object && global, Co = typeof self == "object" && self && self.Object === Object && self, se = gr || Co || Function("return this")(), ge = se.Symbol, hr = Object.prototype, Fo = hr.hasOwnProperty, jo = hr.toString, Ye = ge ? ge.toStringTag : void 0;
44
44
  function Ao(e) {
45
45
  var t = Fo.call(e, Ye), n = e[Ye];
46
46
  try {
@@ -55,9 +55,9 @@ var Po = Object.prototype, Vo = Po.toString;
55
55
  function No(e) {
56
56
  return Vo.call(e);
57
57
  }
58
- var Lo = "[object Null]", Mo = "[object Undefined]", hn = ge ? ge.toStringTag : void 0;
58
+ var Lo = "[object Null]", Mo = "[object Undefined]", yn = ge ? ge.toStringTag : void 0;
59
59
  function Ue(e) {
60
- return e == null ? e === void 0 ? Mo : Lo : hn && hn in Object(e) ? Ao(e) : No(e);
60
+ return e == null ? e === void 0 ? Mo : Lo : yn && yn in Object(e) ? Ao(e) : No(e);
61
61
  }
62
62
  function Ke(e) {
63
63
  return e != null && typeof e == "object";
@@ -71,12 +71,12 @@ function ko(e, t) {
71
71
  o[n] = t(e[n], n, e);
72
72
  return o;
73
73
  }
74
- var he = Array.isArray, bn = ge ? ge.prototype : void 0, _n = bn ? bn.toString : void 0;
75
- function hr(e) {
74
+ var ye = Array.isArray, bn = ge ? ge.prototype : void 0, _n = bn ? bn.toString : void 0;
75
+ function yr(e) {
76
76
  if (typeof e == "string")
77
77
  return e;
78
- if (he(e))
79
- return ko(e, hr) + "";
78
+ if (ye(e))
79
+ return ko(e, yr) + "";
80
80
  if (Jt(e))
81
81
  return _n ? _n.call(e) : "";
82
82
  var t = e + "";
@@ -203,14 +203,14 @@ function tn(e) {
203
203
  var t = e && e.constructor, n = typeof t == "function" && t.prototype || ca;
204
204
  return e === n;
205
205
  }
206
- function fa(e, t) {
206
+ function da(e, t) {
207
207
  for (var n = -1, r = Array(e); ++n < e; )
208
208
  r[n] = t(n);
209
209
  return r;
210
210
  }
211
- var da = "[object Arguments]";
211
+ var fa = "[object Arguments]";
212
212
  function $n(e) {
213
- return Ke(e) && Ue(e) == da;
213
+ return Ke(e) && Ue(e) == fa;
214
214
  }
215
215
  var Tr = Object.prototype, pa = Tr.hasOwnProperty, ma = Tr.propertyIsEnumerable, $r = $n(/* @__PURE__ */ (function() {
216
216
  return arguments;
@@ -220,9 +220,9 @@ var Tr = Object.prototype, pa = Tr.hasOwnProperty, ma = Tr.propertyIsEnumerable,
220
220
  function va() {
221
221
  return !1;
222
222
  }
223
- var Or = typeof exports == "object" && exports && !exports.nodeType && exports, On = Or && typeof module == "object" && module && !module.nodeType && module, ga = On && On.exports === Or, Sn = ga ? se.Buffer : void 0, ya = Sn ? Sn.isBuffer : void 0, Sr = ya || va, ha = "[object Arguments]", ba = "[object Array]", _a = "[object Boolean]", wa = "[object Date]", xa = "[object Error]", Ta = "[object Function]", $a = "[object Map]", Oa = "[object Number]", Sa = "[object Object]", Ea = "[object RegExp]", Ia = "[object Set]", Ca = "[object String]", Fa = "[object WeakMap]", ja = "[object ArrayBuffer]", Aa = "[object DataView]", Pa = "[object Float32Array]", Va = "[object Float64Array]", Na = "[object Int8Array]", La = "[object Int16Array]", Ma = "[object Int32Array]", qa = "[object Uint8Array]", ka = "[object Uint8ClampedArray]", Da = "[object Uint16Array]", Ra = "[object Uint32Array]", A = {};
223
+ var Or = typeof exports == "object" && exports && !exports.nodeType && exports, On = Or && typeof module == "object" && module && !module.nodeType && module, ga = On && On.exports === Or, Sn = ga ? se.Buffer : void 0, ha = Sn ? Sn.isBuffer : void 0, Sr = ha || va, ya = "[object Arguments]", ba = "[object Array]", _a = "[object Boolean]", wa = "[object Date]", xa = "[object Error]", Ta = "[object Function]", $a = "[object Map]", Oa = "[object Number]", Sa = "[object Object]", Ea = "[object RegExp]", Ia = "[object Set]", Ca = "[object String]", Fa = "[object WeakMap]", ja = "[object ArrayBuffer]", Aa = "[object DataView]", Pa = "[object Float32Array]", Va = "[object Float64Array]", Na = "[object Int8Array]", La = "[object Int16Array]", Ma = "[object Int32Array]", qa = "[object Uint8Array]", ka = "[object Uint8ClampedArray]", Da = "[object Uint16Array]", Ra = "[object Uint32Array]", A = {};
224
224
  A[Pa] = A[Va] = A[Na] = A[La] = A[Ma] = A[qa] = A[ka] = A[Da] = A[Ra] = !0;
225
- A[ha] = A[ba] = A[ja] = A[_a] = A[Aa] = A[wa] = A[xa] = A[Ta] = A[$a] = A[Oa] = A[Sa] = A[Ea] = A[Ia] = A[Ca] = A[Fa] = !1;
225
+ A[ya] = A[ba] = A[ja] = A[_a] = A[Aa] = A[wa] = A[xa] = A[Ta] = A[$a] = A[Oa] = A[Sa] = A[Ea] = A[Ia] = A[Ca] = A[Fa] = !1;
226
226
  function Ba(e) {
227
227
  return Ke(e) && en(e.length) && !!A[Ue(e)];
228
228
  }
@@ -239,13 +239,13 @@ var Er = typeof exports == "object" && exports && !exports.nodeType && exports,
239
239
  }
240
240
  })(), En = We && We.isTypedArray, Wa = En ? nn(En) : Ba, Ua = Object.prototype, Ka = Ua.hasOwnProperty;
241
241
  function Ir(e, t) {
242
- var n = he(e), r = !n && $r(e), o = !n && !r && Sr(e), i = !n && !r && !o && Wa(e), a = n || r || o || i, s = a ? fa(e.length, String) : [], c = s.length;
243
- for (var d in e)
244
- (t || Ka.call(e, d)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
245
- (d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
246
- o && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
247
- i && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
248
- Xt(d, c))) && s.push(d);
242
+ var n = ye(e), r = !n && $r(e), o = !n && !r && Sr(e), i = !n && !r && !o && Wa(e), a = n || r || o || i, s = a ? da(e.length, String) : [], c = s.length;
243
+ for (var f in e)
244
+ (t || Ka.call(e, f)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
245
+ (f == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
246
+ o && (f == "offset" || f == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
247
+ i && (f == "buffer" || f == "byteLength" || f == "byteOffset") || // Skip index properties.
248
+ Xt(f, c))) && s.push(f);
249
249
  return s;
250
250
  }
251
251
  function Cr(e, t) {
@@ -286,7 +286,7 @@ function on(e) {
286
286
  }
287
287
  var ti = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ni = /^\w*$/;
288
288
  function ri(e, t) {
289
- if (he(e))
289
+ if (ye(e))
290
290
  return !1;
291
291
  var n = typeof e;
292
292
  return n == "number" || n == "symbol" || n == "boolean" || e == null || Jt(e) ? !0 : ni.test(e) || !ti.test(e) || t != null && e in Object(t);
@@ -308,10 +308,10 @@ function ui(e) {
308
308
  }
309
309
  return li.call(t, e) ? t[e] : void 0;
310
310
  }
311
- var ci = Object.prototype, fi = ci.hasOwnProperty;
312
- function di(e) {
311
+ var ci = Object.prototype, di = ci.hasOwnProperty;
312
+ function fi(e) {
313
313
  var t = this.__data__;
314
- return tt ? t[e] !== void 0 : fi.call(t, e);
314
+ return tt ? t[e] !== void 0 : di.call(t, e);
315
315
  }
316
316
  var pi = "__lodash_hash_undefined__";
317
317
  function mi(e, t) {
@@ -328,7 +328,7 @@ function $e(e) {
328
328
  $e.prototype.clear = oi;
329
329
  $e.prototype.delete = ai;
330
330
  $e.prototype.get = ui;
331
- $e.prototype.has = di;
331
+ $e.prototype.has = fi;
332
332
  $e.prototype.set = mi;
333
333
  function vi() {
334
334
  this.__data__ = [], this.size = 0;
@@ -339,13 +339,13 @@ function xt(e, t) {
339
339
  return n;
340
340
  return -1;
341
341
  }
342
- var gi = Array.prototype, yi = gi.splice;
343
- function hi(e) {
342
+ var gi = Array.prototype, hi = gi.splice;
343
+ function yi(e) {
344
344
  var t = this.__data__, n = xt(t, e);
345
345
  if (n < 0)
346
346
  return !1;
347
347
  var r = t.length - 1;
348
- return n == r ? t.pop() : yi.call(t, n, 1), --this.size, !0;
348
+ return n == r ? t.pop() : hi.call(t, n, 1), --this.size, !0;
349
349
  }
350
350
  function bi(e) {
351
351
  var t = this.__data__, n = xt(t, e);
@@ -358,23 +358,23 @@ function wi(e, t) {
358
358
  var n = this.__data__, r = xt(n, e);
359
359
  return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
360
360
  }
361
- function de(e) {
361
+ function fe(e) {
362
362
  var t = -1, n = e == null ? 0 : e.length;
363
363
  for (this.clear(); ++t < n; ) {
364
364
  var r = e[t];
365
365
  this.set(r[0], r[1]);
366
366
  }
367
367
  }
368
- de.prototype.clear = vi;
369
- de.prototype.delete = hi;
370
- de.prototype.get = bi;
371
- de.prototype.has = _i;
372
- de.prototype.set = wi;
368
+ fe.prototype.clear = vi;
369
+ fe.prototype.delete = yi;
370
+ fe.prototype.get = bi;
371
+ fe.prototype.has = _i;
372
+ fe.prototype.set = wi;
373
373
  var nt = Ce(se, "Map");
374
374
  function xi() {
375
375
  this.size = 0, this.__data__ = {
376
376
  hash: new $e(),
377
- map: new (nt || de)(),
377
+ map: new (nt || fe)(),
378
378
  string: new $e()
379
379
  };
380
380
  }
@@ -440,10 +440,10 @@ var ji = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=
440
440
  }), t;
441
441
  });
442
442
  function Vi(e) {
443
- return e == null ? "" : hr(e);
443
+ return e == null ? "" : yr(e);
444
444
  }
445
445
  function sn(e, t) {
446
- return he(e) ? e : ri(e, t) ? [e] : Pi(Vi(e));
446
+ return ye(e) ? e : ri(e, t) ? [e] : Pi(Vi(e));
447
447
  }
448
448
  function ln(e) {
449
449
  if (typeof e == "string" || Jt(e))
@@ -471,10 +471,10 @@ function Nt() {
471
471
  if (!arguments.length)
472
472
  return [];
473
473
  var e = arguments[0];
474
- return he(e) ? e : [e];
474
+ return ye(e) ? e : [e];
475
475
  }
476
476
  function Li() {
477
- this.__data__ = new de(), this.size = 0;
477
+ this.__data__ = new fe(), this.size = 0;
478
478
  }
479
479
  function Mi(e) {
480
480
  var t = this.__data__, n = t.delete(e);
@@ -489,7 +489,7 @@ function ki(e) {
489
489
  var Di = 200;
490
490
  function Ri(e, t) {
491
491
  var n = this.__data__;
492
- if (n instanceof de) {
492
+ if (n instanceof fe) {
493
493
  var r = n.__data__;
494
494
  if (!nt || r.length < Di - 1)
495
495
  return r.push([e, t]), this.size = ++n.size, this;
@@ -498,7 +498,7 @@ function Ri(e, t) {
498
498
  return n.set(e, t), this.size = n.size, this;
499
499
  }
500
500
  function Ge(e) {
501
- var t = this.__data__ = new de(e);
501
+ var t = this.__data__ = new fe(e);
502
502
  this.size = t.size;
503
503
  }
504
504
  Ge.prototype.clear = Li;
@@ -547,7 +547,7 @@ function Ji(e, t) {
547
547
  }
548
548
  function Lr(e, t, n) {
549
549
  var r = t(e);
550
- return he(e) ? r : jr(r, n(e));
550
+ return ye(e) ? r : jr(r, n(e));
551
551
  }
552
552
  function Xi(e) {
553
553
  return Lr(e, rn, un);
@@ -588,19 +588,19 @@ function us(e, t) {
588
588
  return new e.constructor(n, e.byteOffset, e.byteLength);
589
589
  }
590
590
  var cs = /\w*$/;
591
- function fs(e) {
591
+ function ds(e) {
592
592
  var t = new e.constructor(e.source, cs.exec(e));
593
593
  return t.lastIndex = e.lastIndex, t;
594
594
  }
595
595
  var qn = ge ? ge.prototype : void 0, kn = qn ? qn.valueOf : void 0;
596
- function ds(e) {
596
+ function fs(e) {
597
597
  return kn ? Object(kn.call(e)) : {};
598
598
  }
599
599
  function ps(e, t) {
600
600
  var n = t ? cn(e.buffer) : e.buffer;
601
601
  return new e.constructor(n, e.byteOffset, e.length);
602
602
  }
603
- var ms = "[object Boolean]", vs = "[object Date]", gs = "[object Map]", ys = "[object Number]", hs = "[object RegExp]", bs = "[object Set]", _s = "[object String]", ws = "[object Symbol]", xs = "[object ArrayBuffer]", Ts = "[object DataView]", $s = "[object Float32Array]", Os = "[object Float64Array]", Ss = "[object Int8Array]", Es = "[object Int16Array]", Is = "[object Int32Array]", Cs = "[object Uint8Array]", Fs = "[object Uint8ClampedArray]", js = "[object Uint16Array]", As = "[object Uint32Array]";
603
+ var ms = "[object Boolean]", vs = "[object Date]", gs = "[object Map]", hs = "[object Number]", ys = "[object RegExp]", bs = "[object Set]", _s = "[object String]", ws = "[object Symbol]", xs = "[object ArrayBuffer]", Ts = "[object DataView]", $s = "[object Float32Array]", Os = "[object Float64Array]", Ss = "[object Int8Array]", Es = "[object Int16Array]", Is = "[object Int32Array]", Cs = "[object Uint8Array]", Fs = "[object Uint8ClampedArray]", js = "[object Uint16Array]", As = "[object Uint32Array]";
604
604
  function Ps(e, t, n) {
605
605
  var r = e.constructor;
606
606
  switch (t) {
@@ -623,15 +623,15 @@ function Ps(e, t, n) {
623
623
  return ps(e, n);
624
624
  case gs:
625
625
  return new r();
626
- case ys:
626
+ case hs:
627
627
  case _s:
628
628
  return new r(e);
629
- case hs:
630
- return fs(e);
629
+ case ys:
630
+ return ds(e);
631
631
  case bs:
632
632
  return new r();
633
633
  case ws:
634
- return ds(e);
634
+ return fs(e);
635
635
  }
636
636
  }
637
637
  function Vs(e) {
@@ -645,17 +645,17 @@ var Dn = We && We.isMap, Ms = Dn ? nn(Dn) : Ls, qs = "[object Set]";
645
645
  function ks(e) {
646
646
  return Ke(e) && ce(e) == qs;
647
647
  }
648
- var Rn = We && We.isSet, Ds = Rn ? nn(Rn) : ks, Rs = 1, Bs = 2, zs = 4, Mr = "[object Arguments]", Ws = "[object Array]", Us = "[object Boolean]", Ks = "[object Date]", Gs = "[object Error]", qr = "[object Function]", Ys = "[object GeneratorFunction]", Hs = "[object Map]", Zs = "[object Number]", kr = "[object Object]", Js = "[object RegExp]", Xs = "[object Set]", Qs = "[object String]", el = "[object Symbol]", tl = "[object WeakMap]", nl = "[object ArrayBuffer]", rl = "[object DataView]", ol = "[object Float32Array]", al = "[object Float64Array]", il = "[object Int8Array]", sl = "[object Int16Array]", ll = "[object Int32Array]", ul = "[object Uint8Array]", cl = "[object Uint8ClampedArray]", fl = "[object Uint16Array]", dl = "[object Uint32Array]", j = {};
649
- j[Mr] = j[Ws] = j[nl] = j[rl] = j[Us] = j[Ks] = j[ol] = j[al] = j[il] = j[sl] = j[ll] = j[Hs] = j[Zs] = j[kr] = j[Js] = j[Xs] = j[Qs] = j[el] = j[ul] = j[cl] = j[fl] = j[dl] = !0;
648
+ var Rn = We && We.isSet, Ds = Rn ? nn(Rn) : ks, Rs = 1, Bs = 2, zs = 4, Mr = "[object Arguments]", Ws = "[object Array]", Us = "[object Boolean]", Ks = "[object Date]", Gs = "[object Error]", qr = "[object Function]", Ys = "[object GeneratorFunction]", Hs = "[object Map]", Zs = "[object Number]", kr = "[object Object]", Js = "[object RegExp]", Xs = "[object Set]", Qs = "[object String]", el = "[object Symbol]", tl = "[object WeakMap]", nl = "[object ArrayBuffer]", rl = "[object DataView]", ol = "[object Float32Array]", al = "[object Float64Array]", il = "[object Int8Array]", sl = "[object Int16Array]", ll = "[object Int32Array]", ul = "[object Uint8Array]", cl = "[object Uint8ClampedArray]", dl = "[object Uint16Array]", fl = "[object Uint32Array]", j = {};
649
+ j[Mr] = j[Ws] = j[nl] = j[rl] = j[Us] = j[Ks] = j[ol] = j[al] = j[il] = j[sl] = j[ll] = j[Hs] = j[Zs] = j[kr] = j[Js] = j[Xs] = j[Qs] = j[el] = j[ul] = j[cl] = j[dl] = j[fl] = !0;
650
650
  j[Gs] = j[qr] = j[tl] = !1;
651
651
  function Je(e, t, n, r, o, i) {
652
- var a, s = t & Rs, c = t & Bs, d = t & zs;
652
+ var a, s = t & Rs, c = t & Bs, f = t & zs;
653
653
  if (a !== void 0)
654
654
  return a;
655
655
  if (!Te(e))
656
656
  return e;
657
- var f = he(e);
658
- if (f) {
657
+ var d = ye(e);
658
+ if (d) {
659
659
  if (a = ls(e), !s)
660
660
  return ra(e, a);
661
661
  } else {
@@ -680,7 +680,7 @@ function Je(e, t, n, r, o, i) {
680
680
  }) : Ms(e) && e.forEach(function(m, l) {
681
681
  a.set(l, Je(m, t, n, l, e, i));
682
682
  });
683
- var y = d ? c ? Qi : Xi : c ? on : rn, u = f ? void 0 : y(e);
683
+ var h = f ? c ? Qi : Xi : c ? on : rn, u = d ? void 0 : h(e);
684
684
  return oa(u || e, function(m, l) {
685
685
  u && (l = m, m = e[l]), Qt(a, l, Je(m, t, n, l, e, i));
686
686
  }), a;
@@ -690,7 +690,7 @@ function Ft(e) {
690
690
  return Je(e, pl);
691
691
  }
692
692
  var ml = 1, vl = 4;
693
- function yt(e) {
693
+ function ht(e) {
694
694
  return Je(e, ml | vl);
695
695
  }
696
696
  function gl(e, t, n) {
@@ -701,16 +701,16 @@ function gl(e, t, n) {
701
701
  break;
702
702
  e = e[a];
703
703
  }
704
- return i || ++r != o ? i : (o = e == null ? 0 : e.length, !!o && en(o) && Xt(a, o) && (he(e) || $r(e)));
704
+ return i || ++r != o ? i : (o = e == null ? 0 : e.length, !!o && en(o) && Xt(a, o) && (ye(e) || $r(e)));
705
705
  }
706
- function yl(e) {
706
+ function hl(e) {
707
707
  for (var t = -1, n = e == null ? 0 : e.length, r = {}; ++t < n; ) {
708
708
  var o = e[t];
709
709
  r[o[0]] = o[1];
710
710
  }
711
711
  return r;
712
712
  }
713
- var hl = Object.prototype, bl = hl.hasOwnProperty;
713
+ var yl = Object.prototype, bl = yl.hasOwnProperty;
714
714
  function _l(e, t) {
715
715
  return e != null && bl.call(e, t);
716
716
  }
@@ -722,32 +722,32 @@ function xl(e, t, n, r) {
722
722
  return e;
723
723
  t = sn(t, e);
724
724
  for (var o = -1, i = t.length, a = i - 1, s = e; s != null && ++o < i; ) {
725
- var c = ln(t[o]), d = n;
725
+ var c = ln(t[o]), f = n;
726
726
  if (c === "__proto__" || c === "constructor" || c === "prototype")
727
727
  return e;
728
728
  if (o != a) {
729
- var f = s[c];
730
- d = void 0, d === void 0 && (d = Te(f) ? f : Xt(t[o + 1]) ? [] : {});
729
+ var d = s[c];
730
+ f = void 0, f === void 0 && (f = Te(d) ? d : Xt(t[o + 1]) ? [] : {});
731
731
  }
732
- Qt(s, c, d), s = s[c];
732
+ Qt(s, c, f), s = s[c];
733
733
  }
734
734
  return e;
735
735
  }
736
736
  function Tl(e, t, n) {
737
737
  return e == null ? e : xl(e, t, n);
738
738
  }
739
- const Xe = (e) => typeof e == "boolean", fe = (e) => typeof e == "number", $l = (e) => typeof Element > "u" ? !1 : e instanceof Element, Ol = (e) => ve(e) ? !Number.isNaN(Number(e)) : !1;
739
+ const Xe = (e) => typeof e == "boolean", de = (e) => typeof e == "number", $l = (e) => typeof Element > "u" ? !1 : e instanceof Element, Ol = (e) => ve(e) ? !Number.isNaN(Number(e)) : !1;
740
740
  function Sl(e, t) {
741
741
  var n;
742
742
  const r = qe();
743
- return ho(() => {
743
+ return yo(() => {
744
744
  r.value = e();
745
745
  }, {
746
746
  ...t,
747
747
  flush: (n = void 0) != null ? n : "sync"
748
748
  }), or(r);
749
749
  }
750
- function fn(e) {
750
+ function dn(e) {
751
751
  return bo() ? (_o(e), !0) : !1;
752
752
  }
753
753
  function rt(e) {
@@ -771,12 +771,12 @@ function Fl(e, t = {}) {
771
771
  clearTimeout(s), o(), o = kt;
772
772
  };
773
773
  return (s) => {
774
- const c = rt(e), d = rt(t.maxWait);
775
- return n && i(n), c <= 0 || d !== void 0 && d <= 0 ? (r && (i(r), r = null), Promise.resolve(s())) : new Promise((f, p) => {
776
- o = t.rejectOnCancel ? p : f, d && !r && (r = setTimeout(() => {
777
- n && i(n), r = null, f(s());
778
- }, d)), n = setTimeout(() => {
779
- r && i(r), r = null, f(s());
774
+ const c = rt(e), f = rt(t.maxWait);
775
+ return n && i(n), c <= 0 || f !== void 0 && f <= 0 ? (r && (i(r), r = null), Promise.resolve(s())) : new Promise((d, p) => {
776
+ o = t.rejectOnCancel ? p : d, f && !r && (r = setTimeout(() => {
777
+ n && i(n), r = null, d(s());
778
+ }, f)), n = setTimeout(() => {
779
+ r && i(r), r = null, d(s());
780
780
  }, c);
781
781
  });
782
782
  };
@@ -804,12 +804,12 @@ function Pl(e, t, n = {}) {
804
804
  function s() {
805
805
  o.value = !1, a();
806
806
  }
807
- function c(...d) {
807
+ function c(...f) {
808
808
  a(), o.value = !0, i = setTimeout(() => {
809
- o.value = !1, i = null, e(...d);
809
+ o.value = !1, i = null, e(...f);
810
810
  }, rt(t));
811
811
  }
812
- return r && (o.value = !0, Fe && c()), fn(s), {
812
+ return r && (o.value = !0, Fe && c()), dn(s), {
813
813
  isPending: or(o),
814
814
  start: c,
815
815
  stop: s
@@ -827,22 +827,22 @@ function Vl(...e) {
827
827
  return kt;
828
828
  Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
829
829
  const i = [], a = () => {
830
- i.forEach((f) => f()), i.length = 0;
831
- }, s = (f, p, g, _) => (f.addEventListener(p, g, _), () => f.removeEventListener(p, g, _)), c = ae(
830
+ i.forEach((d) => d()), i.length = 0;
831
+ }, s = (d, p, g, _) => (d.addEventListener(p, g, _), () => d.removeEventListener(p, g, _)), c = ae(
832
832
  () => [Dt(t), rt(o)],
833
- ([f, p]) => {
834
- if (a(), !f)
833
+ ([d, p]) => {
834
+ if (a(), !d)
835
835
  return;
836
836
  const g = Il(p) ? { ...p } : p;
837
837
  i.push(
838
- ...n.flatMap((_) => r.map((y) => s(f, _, y, g)))
838
+ ...n.flatMap((_) => r.map((h) => s(d, _, h, g)))
839
839
  );
840
840
  },
841
841
  { immediate: !0, flush: "post" }
842
- ), d = () => {
842
+ ), f = () => {
843
843
  c(), a();
844
844
  };
845
- return fn(d), d;
845
+ return dn(f), f;
846
846
  }
847
847
  function Nl() {
848
848
  const e = P(!1), t = pe();
@@ -859,7 +859,7 @@ function Rr(e, t, n = {}) {
859
859
  let i;
860
860
  const a = Ll(() => r && "ResizeObserver" in r), s = () => {
861
861
  i && (i.disconnect(), i = void 0);
862
- }, c = v(() => Array.isArray(e) ? e.map((p) => Dt(p)) : [Dt(e)]), d = ae(
862
+ }, c = v(() => Array.isArray(e) ? e.map((p) => Dt(p)) : [Dt(e)]), f = ae(
863
863
  c,
864
864
  (p) => {
865
865
  if (s(), a.value && r) {
@@ -869,12 +869,12 @@ function Rr(e, t, n = {}) {
869
869
  }
870
870
  },
871
871
  { immediate: !0, flush: "post" }
872
- ), f = () => {
873
- s(), d();
872
+ ), d = () => {
873
+ s(), f();
874
874
  };
875
- return fn(f), {
875
+ return dn(d), {
876
876
  isSupported: a,
877
- stop: f
877
+ stop: d
878
878
  };
879
879
  }
880
880
  class Br extends Error {
@@ -896,7 +896,7 @@ const Bn = {
896
896
  }, zn = P(0), zr = 2e3, Wn = /* @__PURE__ */ Symbol("elZIndexContextKey"), Wr = /* @__PURE__ */ Symbol("zIndexContextKey"), ql = (e) => {
897
897
  const t = pe() ? K(Wn, Bn) : Bn, n = e || (pe() ? K(Wr, void 0) : void 0), r = v(() => {
898
898
  const a = x(n);
899
- return fe(a) ? a : zr;
899
+ return de(a) ? a : zr;
900
900
  }), o = v(() => r.value + zn.value), i = () => (t.current++, zn.value = t.current, o.value);
901
901
  return !Fe && !K(Wn) && Q(
902
902
  "ZIndexInjection",
@@ -1124,29 +1124,29 @@ const Dl = (e) => (t, n) => Rl(t, n, x(e)), Rl = (e, t, n) => Fr(n, e, e).replac
1124
1124
  const { values: n, required: r, default: o, type: i, validator: a } = e, c = {
1125
1125
  type: i,
1126
1126
  required: !!r,
1127
- validator: n || a ? (d) => {
1128
- let f = !1, p = [];
1129
- if (n && (p = Array.from(n), Pt(e, "default") && p.push(o), f || (f = p.includes(d))), a && (f || (f = a(d))), !f && p.length > 0) {
1127
+ validator: n || a ? (f) => {
1128
+ let d = !1, p = [];
1129
+ if (n && (p = Array.from(n), Pt(e, "default") && p.push(o), d || (d = p.includes(f))), a && (d || (d = a(f))), !d && p.length > 0) {
1130
1130
  const g = [...new Set(p)].map((_) => JSON.stringify(_)).join(", ");
1131
1131
  wo(
1132
1132
  `Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${g}], got value ${JSON.stringify(
1133
- d
1133
+ f
1134
1134
  )}.`
1135
1135
  );
1136
1136
  }
1137
- return f;
1137
+ return d;
1138
1138
  } : void 0,
1139
1139
  [Kr]: !0
1140
1140
  };
1141
1141
  return Pt(e, "default") && (c.default = o), c;
1142
- }, le = (e) => yl(
1142
+ }, le = (e) => hl(
1143
1143
  Object.entries(e).map(([t, n]) => [
1144
1144
  t,
1145
1145
  Gr(n, t)
1146
1146
  ])
1147
- ), dn = ["", "default", "small", "large"], Ul = Gr({
1147
+ ), fn = ["", "default", "small", "large"], Ul = Gr({
1148
1148
  type: String,
1149
- values: dn,
1149
+ values: fn,
1150
1150
  required: !1
1151
1151
  }), Yr = /* @__PURE__ */ Symbol("size"), Kl = () => {
1152
1152
  const e = K(Yr, {});
@@ -1170,12 +1170,12 @@ const Dl = (e) => (t, n) => Rl(t, n, x(e)), Rl = (e, t, n) => Fr(n, e, e).replac
1170
1170
  set value(r) {
1171
1171
  Tl(e, t, r);
1172
1172
  }
1173
- }), ht = P();
1173
+ }), yt = P();
1174
1174
  function Hr(e, t = void 0) {
1175
- return pe() ? K(pr, ht) : ht;
1175
+ return pe() ? K(pr, yt) : yt;
1176
1176
  }
1177
1177
  function Hl(e, t) {
1178
- const n = Hr(), r = ye(
1178
+ const n = Hr(), r = he(
1179
1179
  e,
1180
1180
  v(() => {
1181
1181
  var s;
@@ -1231,7 +1231,7 @@ const Zr = (e, t, n = !1) => {
1231
1231
  emptyValues: s.value.emptyValues,
1232
1232
  valueOnClear: s.value.valueOnClear
1233
1233
  }))
1234
- ), (n || !ht.value) && (ht.value = s.value), s;
1234
+ ), (n || !yt.value) && (yt.value = s.value), s;
1235
1235
  }, Zl = (e, t) => {
1236
1236
  const n = [.../* @__PURE__ */ new Set([...Un(e), ...Un(t)])], r = {};
1237
1237
  for (const o of n)
@@ -1258,7 +1258,7 @@ const ut = (e, t) => {
1258
1258
  function ot(e, t = "px") {
1259
1259
  if (!e && e !== 0)
1260
1260
  return "";
1261
- if (fe(e) || Ol(e))
1261
+ if (de(e) || Ol(e))
1262
1262
  return `${e}${t}`;
1263
1263
  if (ve(e))
1264
1264
  return e;
@@ -1277,7 +1277,7 @@ const eu = le({
1277
1277
  __name: "icon",
1278
1278
  props: eu,
1279
1279
  setup(e) {
1280
- const t = e, n = ye("icon"), r = v(() => {
1280
+ const t = e, n = he("icon"), r = v(() => {
1281
1281
  const { size: o, color: i } = t, a = ot(o);
1282
1282
  return !a && !i ? {} : {
1283
1283
  fontSize: a,
@@ -1369,8 +1369,8 @@ var ru = /* @__PURE__ */ N({
1369
1369
  })
1370
1370
  ]));
1371
1371
  }
1372
- }), fu = cu;
1373
- const du = V([
1372
+ }), du = cu;
1373
+ const fu = V([
1374
1374
  String,
1375
1375
  Object,
1376
1376
  Function
@@ -1379,13 +1379,13 @@ const du = V([
1379
1379
  }, Yn = {
1380
1380
  primary: Gn,
1381
1381
  success: uu,
1382
- warning: fu,
1382
+ warning: du,
1383
1383
  error: ou,
1384
1384
  info: Gn
1385
1385
  }, mu = () => Fe && /android/i.test(window.navigator.userAgent), Me = (e) => e, Rt = {
1386
1386
  prefix: Math.floor(Math.random() * 1e4),
1387
1387
  current: 0
1388
- }, vu = /* @__PURE__ */ Symbol("elIdInjection"), gu = () => pe() ? K(vu, Rt) : Rt, yu = (e) => {
1388
+ }, vu = /* @__PURE__ */ Symbol("elIdInjection"), gu = () => pe() ? K(vu, Rt) : Rt, hu = (e) => {
1389
1389
  const t = gu();
1390
1390
  !Fe && t === Rt && Q(
1391
1391
  "IdInjection",
@@ -1399,14 +1399,14 @@ usage: app.provide(ID_INJECTION_KEY, {
1399
1399
  return Sl(
1400
1400
  () => x(e) || `${n.value}-id-${t.prefix}-${t.current++}`
1401
1401
  );
1402
- }, $t = /* @__PURE__ */ Symbol("formContextKey"), bt = /* @__PURE__ */ Symbol("formItemContextKey"), hu = (e) => {
1402
+ }, $t = /* @__PURE__ */ Symbol("formContextKey"), bt = /* @__PURE__ */ Symbol("formItemContextKey"), yu = (e) => {
1403
1403
  const t = pe();
1404
1404
  return v(() => {
1405
1405
  var n, r;
1406
1406
  return (r = (n = t?.proxy) == null ? void 0 : n.$props) == null ? void 0 : r[e];
1407
1407
  });
1408
1408
  }, Jr = (e, t = {}) => {
1409
- const n = P(void 0), r = t.prop ? n : hu("size"), o = t.global ? n : Kl(), i = t.form ? { size: void 0 } : K($t, void 0), a = t.formItem ? { size: void 0 } : K(bt, void 0);
1409
+ const n = P(void 0), r = t.prop ? n : yu("size"), o = t.global ? n : Kl(), i = t.form ? { size: void 0 } : K($t, void 0), a = t.formItem ? { size: void 0 } : K(bt, void 0);
1410
1410
  return v(
1411
1411
  () => r.value || x(e) || a?.size || i?.size || o.value || ""
1412
1412
  );
@@ -1474,7 +1474,7 @@ usage: app.provide(ID_INJECTION_KEY, {
1474
1474
  __name: "badge",
1475
1475
  props: wu,
1476
1476
  setup(e, { expose: t }) {
1477
- const n = e, r = ye("badge"), o = v(() => n.isDot ? "" : fe(n.value) && fe(n.max) ? n.max < n.value ? `${n.max}+` : `${n.value}` : `${n.value}`), i = v(() => {
1477
+ const n = e, r = he("badge"), o = v(() => n.isDot ? "" : de(n.value) && de(n.max) ? n.max < n.value ? `${n.max}+` : `${n.value}` : `${n.value}`), i = v(() => {
1478
1478
  var a;
1479
1479
  return [
1480
1480
  {
@@ -1579,18 +1579,18 @@ const $u = ut(Tu), Ou = le({
1579
1579
  __name: "col",
1580
1580
  props: Ou,
1581
1581
  setup(e) {
1582
- const t = e, { gutter: n } = K(Xr, { gutter: v(() => 0) }), r = ye("col"), o = v(() => {
1582
+ const t = e, { gutter: n } = K(Xr, { gutter: v(() => 0) }), r = he("col"), o = v(() => {
1583
1583
  const a = {};
1584
1584
  return n.value && (a.paddingLeft = a.paddingRight = `${n.value / 2}px`), a;
1585
1585
  }), i = v(() => {
1586
1586
  const a = [];
1587
- return ["span", "offset", "pull", "push"].forEach((d) => {
1588
- const f = t[d];
1589
- fe(f) && (d === "span" ? a.push(r.b(`${t[d]}`)) : f > 0 && a.push(r.b(`${d}-${t[d]}`)));
1590
- }), ["xs", "sm", "md", "lg", "xl"].forEach((d) => {
1591
- fe(t[d]) ? a.push(r.b(`${d}-${t[d]}`)) : Zt(t[d]) && Object.entries(t[d]).forEach(([f, p]) => {
1587
+ return ["span", "offset", "pull", "push"].forEach((f) => {
1588
+ const d = t[f];
1589
+ de(d) && (f === "span" ? a.push(r.b(`${t[f]}`)) : d > 0 && a.push(r.b(`${f}-${t[f]}`)));
1590
+ }), ["xs", "sm", "md", "lg", "xl"].forEach((f) => {
1591
+ de(t[f]) ? a.push(r.b(`${f}-${t[f]}`)) : Zt(t[f]) && Object.entries(t[f]).forEach(([d, p]) => {
1592
1592
  a.push(
1593
- f !== "span" ? r.b(`${d}-${f}-${p}`) : r.b(`${d}-${p}`)
1593
+ d !== "span" ? r.b(`${f}-${d}-${p}`) : r.b(`${f}-${p}`)
1594
1594
  );
1595
1595
  });
1596
1596
  }), n.value && a.push(r.is("guttered")), [r.b(), a];
@@ -1665,7 +1665,7 @@ N({
1665
1665
  const Cu = le({
1666
1666
  size: {
1667
1667
  type: String,
1668
- values: dn
1668
+ values: fn
1669
1669
  },
1670
1670
  disabled: Boolean
1671
1671
  }), Fu = le({
@@ -1739,7 +1739,7 @@ function Pu() {
1739
1739
  deregisterLabelWidth: o
1740
1740
  };
1741
1741
  }
1742
- const ft = (e, t) => {
1742
+ const dt = (e, t) => {
1743
1743
  const n = Nt(t).map(
1744
1744
  (r) => et(r) ? r.join(".") : r
1745
1745
  );
@@ -1752,26 +1752,26 @@ const ft = (e, t) => {
1752
1752
  props: Fu,
1753
1753
  emits: ju,
1754
1754
  setup(e, { expose: t, emit: n }) {
1755
- const r = e, o = n, i = P(), a = At([]), s = Jr(), c = ye("form"), d = v(() => {
1756
- const { labelPosition: h, inline: $ } = r;
1755
+ const r = e, o = n, i = P(), a = At([]), s = Jr(), c = he("form"), f = v(() => {
1756
+ const { labelPosition: y, inline: $ } = r;
1757
1757
  return [
1758
1758
  c.b(),
1759
1759
  c.m(s.value || "default"),
1760
1760
  {
1761
- [c.m(`label-${h}`)]: h,
1761
+ [c.m(`label-${y}`)]: y,
1762
1762
  [c.m("inline")]: $
1763
1763
  }
1764
1764
  ];
1765
- }), f = (h) => ft(a, [h])[0], p = (h) => {
1766
- a.push(h);
1767
- }, g = (h) => {
1768
- h.prop && a.splice(a.indexOf(h), 1);
1769
- }, _ = (h) => {
1765
+ }), d = (y) => dt(a, [y])[0], p = (y) => {
1766
+ a.push(y);
1767
+ }, g = (y) => {
1768
+ y.prop && a.splice(a.indexOf(y), 1);
1769
+ }, _ = (y) => {
1770
1770
  if (!r.model) {
1771
1771
  Q(Ne, "model is required for setInitialValues to work.");
1772
1772
  return;
1773
1773
  }
1774
- if (!h) {
1774
+ if (!y) {
1775
1775
  Q(
1776
1776
  Ne,
1777
1777
  "initModel is required for setInitialValues to work."
@@ -1779,31 +1779,31 @@ const ft = (e, t) => {
1779
1779
  return;
1780
1780
  }
1781
1781
  a.forEach(($) => {
1782
- if ($.prop && wl(h, $.prop)) {
1783
- const C = mt(h, $.prop).value;
1782
+ if ($.prop && wl(y, $.prop)) {
1783
+ const C = mt(y, $.prop).value;
1784
1784
  $.setInitialValue(C);
1785
1785
  }
1786
1786
  });
1787
- }, y = (h = []) => {
1787
+ }, h = (y = []) => {
1788
1788
  if (!r.model) {
1789
1789
  Q(Ne, "model is required for resetFields to work.");
1790
1790
  return;
1791
1791
  }
1792
- ft(a, h).forEach(($) => $.resetField());
1793
- }, u = (h = []) => {
1794
- ft(a, h).forEach(($) => $.clearValidate());
1792
+ dt(a, y).forEach(($) => $.resetField());
1793
+ }, u = (y = []) => {
1794
+ dt(a, y).forEach(($) => $.clearValidate());
1795
1795
  }, m = v(() => {
1796
- const h = !!r.model;
1797
- return h || Q(Ne, "model is required for validate to work."), h;
1798
- }), l = (h) => {
1796
+ const y = !!r.model;
1797
+ return y || Q(Ne, "model is required for validate to work."), y;
1798
+ }), l = (y) => {
1799
1799
  if (a.length === 0)
1800
1800
  return [];
1801
- const $ = ft(a, h);
1801
+ const $ = dt(a, y);
1802
1802
  return $.length ? $ : (Q(Ne, "please pass correct props!"), []);
1803
- }, w = async (h) => E(void 0, h), T = async (h = []) => {
1803
+ }, w = async (y) => E(void 0, y), T = async (y = []) => {
1804
1804
  if (!m.value)
1805
1805
  return !1;
1806
- const $ = l(h);
1806
+ const $ = l(y);
1807
1807
  if ($.length === 0)
1808
1808
  return !0;
1809
1809
  let C = {};
@@ -1817,11 +1817,11 @@ const ft = (e, t) => {
1817
1817
  };
1818
1818
  }
1819
1819
  return Object.keys(C).length === 0 ? !0 : Promise.reject(C);
1820
- }, E = async (h = [], $) => {
1820
+ }, E = async (y = [], $) => {
1821
1821
  let C = !1;
1822
1822
  const k = !ze($);
1823
1823
  try {
1824
- return C = await T(h), C === !0 && await $?.(C), C;
1824
+ return C = await T(y), C === !0 && await $?.(C), C;
1825
1825
  } catch (X) {
1826
1826
  if (X instanceof Error)
1827
1827
  throw X;
@@ -1832,15 +1832,15 @@ const ft = (e, t) => {
1832
1832
  }
1833
1833
  return !C && await $?.(!1, J), k && Promise.reject(J);
1834
1834
  }
1835
- }, q = (h) => {
1835
+ }, q = (y) => {
1836
1836
  var $;
1837
- const C = f(h);
1837
+ const C = d(y);
1838
1838
  C && (($ = C.$el) == null || $.scrollIntoView(r.scrollIntoViewOptions));
1839
1839
  };
1840
1840
  return ae(
1841
1841
  () => r.rules,
1842
1842
  () => {
1843
- r.validateOnRuleChange && w().catch((h) => Q(h));
1843
+ r.validateOnRuleChange && w().catch((y) => Q(y));
1844
1844
  },
1845
1845
  { deep: !0, flush: "post" }
1846
1846
  ), st(
@@ -1848,10 +1848,10 @@ const ft = (e, t) => {
1848
1848
  At({
1849
1849
  ...lr(r),
1850
1850
  emit: o,
1851
- resetFields: y,
1851
+ resetFields: h,
1852
1852
  clearValidate: u,
1853
1853
  validateField: E,
1854
- getField: f,
1854
+ getField: d,
1855
1855
  addField: p,
1856
1856
  removeField: g,
1857
1857
  setInitialValues: _,
@@ -1860,21 +1860,21 @@ const ft = (e, t) => {
1860
1860
  ), t({
1861
1861
  validate: w,
1862
1862
  validateField: E,
1863
- resetFields: y,
1863
+ resetFields: h,
1864
1864
  clearValidate: u,
1865
1865
  scrollToField: q,
1866
- getField: f,
1866
+ getField: d,
1867
1867
  fields: a,
1868
1868
  setInitialValues: _
1869
- }), (h, $) => (I(), M(
1869
+ }), (y, $) => (I(), M(
1870
1870
  "form",
1871
1871
  {
1872
1872
  ref_key: "formRef",
1873
1873
  ref: i,
1874
- class: Z(d.value)
1874
+ class: Z(f.value)
1875
1875
  },
1876
1876
  [
1877
- ne(h.$slots, "default")
1877
+ ne(y.$slots, "default")
1878
1878
  ],
1879
1879
  2
1880
1880
  ));
@@ -1918,8 +1918,8 @@ function vt(e, t, n) {
1918
1918
  return Mu() ? vt = Reflect.construct.bind() : vt = function(o, i, a) {
1919
1919
  var s = [null];
1920
1920
  s.push.apply(s, i);
1921
- var c = Function.bind.apply(o, s), d = new c();
1922
- return a && at(d, a.prototype), d;
1921
+ var c = Function.bind.apply(o, s), f = new c();
1922
+ return a && at(f, a.prototype), f;
1923
1923
  }, vt.apply(null, arguments);
1924
1924
  }
1925
1925
  function qu(e) {
@@ -2039,23 +2039,23 @@ var Jn = /* @__PURE__ */ (function(e) {
2039
2039
  function zu(e, t, n, r, o) {
2040
2040
  if (t.first) {
2041
2041
  var i = new Promise(function(g, _) {
2042
- var y = function(l) {
2042
+ var h = function(l) {
2043
2043
  return r(l), l.length ? _(new Jn(l, Ut(l))) : g(o);
2044
2044
  }, u = Bu(e);
2045
- Zn(u, n, y);
2045
+ Zn(u, n, h);
2046
2046
  });
2047
2047
  return i.catch(function(g) {
2048
2048
  return g;
2049
2049
  }), i;
2050
2050
  }
2051
- var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), c = s.length, d = 0, f = [], p = new Promise(function(g, _) {
2052
- var y = function(m) {
2053
- if (f.push.apply(f, m), d++, d === c)
2054
- return r(f), f.length ? _(new Jn(f, Ut(f))) : g(o);
2051
+ var a = t.firstFields === !0 ? Object.keys(e) : t.firstFields || [], s = Object.keys(e), c = s.length, f = 0, d = [], p = new Promise(function(g, _) {
2052
+ var h = function(m) {
2053
+ if (d.push.apply(d, m), f++, f === c)
2054
+ return r(d), d.length ? _(new Jn(d, Ut(d))) : g(o);
2055
2055
  };
2056
- s.length || (r(f), g(o)), s.forEach(function(u) {
2056
+ s.length || (r(d), g(o)), s.forEach(function(u) {
2057
2057
  var m = e[u];
2058
- a.indexOf(u) !== -1 ? Zn(m, n, y) : Ru(m, n, y);
2058
+ a.indexOf(u) !== -1 ? Zn(m, n, h) : Ru(m, n, h);
2059
2059
  });
2060
2060
  });
2061
2061
  return p.catch(function(g) {
@@ -2097,9 +2097,9 @@ var eo = function(t, n, r, o, i, a) {
2097
2097
  t.required && (!r.hasOwnProperty(t.field) || D(n, a || t.type)) && o.push(ee(i.messages.required, t.fullField));
2098
2098
  }, Ku = function(t, n, r, o, i) {
2099
2099
  (/^\s+$/.test(n) || n === "") && o.push(ee(i.messages.whitespace, t.fullField));
2100
- }, dt, Gu = (function() {
2101
- if (dt)
2102
- return dt;
2100
+ }, ft, Gu = (function() {
2101
+ if (ft)
2102
+ return ft;
2103
2103
  var e = "[a-fA-F\\d:]", t = function(E) {
2104
2104
  return E && E.includeBoundaries ? "(?:(?<=\\s|^)(?=" + e + ")|(?<=" + e + ")(?=\\s|$))" : "";
2105
2105
  }, n = "(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}", r = "[a-fA-F\\d]{1,4}", o = (`
@@ -2121,8 +2121,8 @@ var eo = function(t, n, r, o, i, a) {
2121
2121
  }, c.v6 = function(T) {
2122
2122
  return T && T.exact ? s : new RegExp("" + t(T) + o + t(T), "g");
2123
2123
  };
2124
- var d = "(?:(?:[a-z]+:)?//)", f = "(?:\\S+(?::\\S*)?@)?", p = c.v4().source, g = c.v6().source, _ = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", y = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", u = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", m = "(?::\\d{2,5})?", l = '(?:[/?#][^\\s"]*)?', w = "(?:" + d + "|www\\.)" + f + "(?:localhost|" + p + "|" + g + "|" + _ + y + u + ")" + m + l;
2125
- return dt = new RegExp("(?:^" + w + "$)", "i"), dt;
2124
+ var f = "(?:(?:[a-z]+:)?//)", d = "(?:\\S+(?::\\S*)?@)?", p = c.v4().source, g = c.v6().source, _ = "(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)", h = "(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*", u = "(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))", m = "(?::\\d{2,5})?", l = '(?:[/?#][^\\s"]*)?', w = "(?:" + f + "|www\\.)" + d + "(?:localhost|" + p + "|" + g + "|" + _ + h + u + ")" + m + l;
2125
+ return ft = new RegExp("(?:^" + w + "$)", "i"), ft;
2126
2126
  }), er = {
2127
2127
  // http://emailregex.com/
2128
2128
  email: /^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,
@@ -2179,10 +2179,10 @@ var eo = function(t, n, r, o, i, a) {
2179
2179
  var a = ["integer", "float", "array", "regexp", "object", "method", "email", "number", "date", "url", "hex"], s = t.type;
2180
2180
  a.indexOf(s) > -1 ? He[s](n) || o.push(ee(i.messages.types[s], t.fullField, t.type)) : s && typeof n !== t.type && o.push(ee(i.messages.types[s], t.fullField, t.type));
2181
2181
  }, Hu = function(t, n, r, o, i) {
2182
- var a = typeof t.len == "number", s = typeof t.min == "number", c = typeof t.max == "number", d = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, f = n, p = null, g = typeof n == "number", _ = typeof n == "string", y = Array.isArray(n);
2183
- if (g ? p = "number" : _ ? p = "string" : y && (p = "array"), !p)
2182
+ var a = typeof t.len == "number", s = typeof t.min == "number", c = typeof t.max == "number", f = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, d = n, p = null, g = typeof n == "number", _ = typeof n == "string", h = Array.isArray(n);
2183
+ if (g ? p = "number" : _ ? p = "string" : h && (p = "array"), !p)
2184
2184
  return !1;
2185
- y && (f = n.length), _ && (f = n.replace(d, "_").length), a ? f !== t.len && o.push(ee(i.messages[p].len, t.fullField, t.len)) : s && !c && f < t.min ? o.push(ee(i.messages[p].min, t.fullField, t.min)) : c && !s && f > t.max ? o.push(ee(i.messages[p].max, t.fullField, t.max)) : s && c && (f < t.min || f > t.max) && o.push(ee(i.messages[p].range, t.fullField, t.min, t.max));
2185
+ h && (d = n.length), _ && (d = n.replace(f, "_").length), a ? d !== t.len && o.push(ee(i.messages[p].len, t.fullField, t.len)) : s && !c && d < t.min ? o.push(ee(i.messages[p].min, t.fullField, t.min)) : c && !s && d > t.max ? o.push(ee(i.messages[p].max, t.fullField, t.max)) : s && c && (d < t.min || d > t.max) && o.push(ee(i.messages[p].range, t.fullField, t.min, t.max));
2186
2186
  }, Le = "enum", Zu = function(t, n, r, o, i) {
2187
2187
  t[Le] = Array.isArray(t[Le]) ? t[Le] : [], t[Le].indexOf(n) === -1 && o.push(ee(i.messages[Le], t.fullField, t[Le].join(", ")));
2188
2188
  }, Ju = function(t, n, r, o, i) {
@@ -2300,7 +2300,7 @@ var eo = function(t, n, r, o, i, a) {
2300
2300
  }
2301
2301
  }
2302
2302
  r(a);
2303
- }, fc = function(t, n, r, o, i) {
2303
+ }, dc = function(t, n, r, o, i) {
2304
2304
  var a = [], s = Array.isArray(n) ? "array" : typeof n;
2305
2305
  S.required(t, n, o, a, i, s), r(a);
2306
2306
  }, jt = function(t, n, r, o, i) {
@@ -2311,7 +2311,7 @@ var eo = function(t, n, r, o, i, a) {
2311
2311
  S.required(t, n, o, s, i, a), D(n, a) || S.type(t, n, o, s, i);
2312
2312
  }
2313
2313
  r(s);
2314
- }, dc = function(t, n, r, o, i) {
2314
+ }, fc = function(t, n, r, o, i) {
2315
2315
  var a = [], s = t.required || !t.required && o.hasOwnProperty(t.field);
2316
2316
  if (s) {
2317
2317
  if (D(n) && !t.required)
@@ -2335,8 +2335,8 @@ var eo = function(t, n, r, o, i, a) {
2335
2335
  url: jt,
2336
2336
  hex: jt,
2337
2337
  email: jt,
2338
- required: fc,
2339
- any: dc
2338
+ required: dc,
2339
+ any: fc
2340
2340
  };
2341
2341
  function Kt() {
2342
2342
  return {
@@ -2412,10 +2412,10 @@ var Gt = Kt(), ct = /* @__PURE__ */ (function() {
2412
2412
  var a = this;
2413
2413
  o === void 0 && (o = {}), i === void 0 && (i = function() {
2414
2414
  });
2415
- var s = r, c = o, d = i;
2416
- if (typeof c == "function" && (d = c, c = {}), !this.rules || Object.keys(this.rules).length === 0)
2417
- return d && d(null, s), Promise.resolve(s);
2418
- function f(u) {
2415
+ var s = r, c = o, f = i;
2416
+ if (typeof c == "function" && (f = c, c = {}), !this.rules || Object.keys(this.rules).length === 0)
2417
+ return f && f(null, s), Promise.resolve(s);
2418
+ function d(u) {
2419
2419
  var m = [], l = {};
2420
2420
  function w(E) {
2421
2421
  if (Array.isArray(E)) {
@@ -2426,7 +2426,7 @@ var Gt = Kt(), ct = /* @__PURE__ */ (function() {
2426
2426
  }
2427
2427
  for (var T = 0; T < u.length; T++)
2428
2428
  w(u[T]);
2429
- m.length ? (l = Ut(m), d(m, l)) : d(null, s);
2429
+ m.length ? (l = Ut(m), f(m, l)) : f(null, s);
2430
2430
  }
2431
2431
  if (c.messages) {
2432
2432
  var p = this.messages();
@@ -2448,23 +2448,23 @@ var Gt = Kt(), ct = /* @__PURE__ */ (function() {
2448
2448
  }));
2449
2449
  });
2450
2450
  });
2451
- var y = {};
2451
+ var h = {};
2452
2452
  return zu(g, c, function(u, m) {
2453
2453
  var l = u.rule, w = (l.type === "object" || l.type === "array") && (typeof l.fields == "object" || typeof l.defaultField == "object");
2454
2454
  w = w && (l.required || !l.required && u.value), l.field = u.field;
2455
- function T(h, $) {
2455
+ function T(y, $) {
2456
2456
  return xe({}, $, {
2457
- fullField: l.fullField + "." + h,
2458
- fullFields: l.fullFields ? [].concat(l.fullFields, [h]) : [h]
2457
+ fullField: l.fullField + "." + y,
2458
+ fullFields: l.fullFields ? [].concat(l.fullFields, [y]) : [y]
2459
2459
  });
2460
2460
  }
2461
- function E(h) {
2462
- h === void 0 && (h = []);
2463
- var $ = Array.isArray(h) ? h : [h];
2461
+ function E(y) {
2462
+ y === void 0 && (y = []);
2463
+ var $ = Array.isArray(y) ? y : [y];
2464
2464
  !c.suppressWarning && $.length && e.warning("async-validator:", $), $.length && l.message !== void 0 && ($ = [].concat(l.message));
2465
2465
  var C = $.map(Xn(l, s));
2466
2466
  if (c.first && C.length)
2467
- return y[l.field] = 1, m(C);
2467
+ return h[l.field] = 1, m(C);
2468
2468
  if (!w)
2469
2469
  m(C);
2470
2470
  else {
@@ -2492,20 +2492,20 @@ var Gt = Kt(), ct = /* @__PURE__ */ (function() {
2492
2492
  else if (l.validator) {
2493
2493
  try {
2494
2494
  q = l.validator(l, u.value, E, u.source, c);
2495
- } catch (h) {
2496
- console.error?.(h), c.suppressValidatorError || setTimeout(function() {
2497
- throw h;
2498
- }, 0), E(h.message);
2495
+ } catch (y) {
2496
+ console.error?.(y), c.suppressValidatorError || setTimeout(function() {
2497
+ throw y;
2498
+ }, 0), E(y.message);
2499
2499
  }
2500
2500
  q === !0 ? E() : q === !1 ? E(typeof l.message == "function" ? l.message(l.fullField || l.field) : l.message || (l.fullField || l.field) + " fails") : q instanceof Array ? E(q) : q instanceof Error && E(q.message);
2501
2501
  }
2502
2502
  q && q.then && q.then(function() {
2503
2503
  return E();
2504
- }, function(h) {
2505
- return E(h);
2504
+ }, function(y) {
2505
+ return E(y);
2506
2506
  });
2507
2507
  }, function(u) {
2508
- f(u);
2508
+ d(u);
2509
2509
  }, s);
2510
2510
  }, t.getType = function(r) {
2511
2511
  if (r.type === void 0 && r.pattern instanceof RegExp && (r.type = "pattern"), typeof r.validator != "function" && r.type && !Qe.hasOwnProperty(r.type))
@@ -2567,7 +2567,7 @@ const pc = [
2567
2567
  },
2568
2568
  size: {
2569
2569
  type: String,
2570
- values: dn
2570
+ values: fn
2571
2571
  }
2572
2572
  }), tr = "ElLabelWrap";
2573
2573
  var vc = N({
@@ -2581,37 +2581,37 @@ var vc = N({
2581
2581
  }) {
2582
2582
  const n = K($t, void 0), r = K(bt);
2583
2583
  r || Ml(tr, "usage: <el-form-item><label-wrap /></el-form-item>");
2584
- const o = ye("form"), i = P(), a = P(0), s = () => {
2585
- var f;
2586
- if ((f = i.value) != null && f.firstElementChild) {
2584
+ const o = he("form"), i = P(), a = P(0), s = () => {
2585
+ var d;
2586
+ if ((d = i.value) != null && d.firstElementChild) {
2587
2587
  const p = window.getComputedStyle(i.value.firstElementChild).width;
2588
2588
  return Math.ceil(Number.parseFloat(p));
2589
2589
  } else
2590
2590
  return 0;
2591
- }, c = (f = "update") => {
2591
+ }, c = (d = "update") => {
2592
2592
  Ht(() => {
2593
- t.default && e.isAutoWidth && (f === "update" ? a.value = s() : f === "remove" && n?.deregisterLabelWidth(a.value));
2593
+ t.default && e.isAutoWidth && (d === "update" ? a.value = s() : d === "remove" && n?.deregisterLabelWidth(a.value));
2594
2594
  });
2595
- }, d = () => c("update");
2595
+ }, f = () => c("update");
2596
2596
  return it(() => {
2597
- d();
2597
+ f();
2598
2598
  }), ur(() => {
2599
2599
  c("remove");
2600
- }), xo(() => d()), ae(a, (f, p) => {
2601
- e.updateAll && n?.registerLabelWidth(f, p);
2600
+ }), xo(() => f()), ae(a, (d, p) => {
2601
+ e.updateAll && n?.registerLabelWidth(d, p);
2602
2602
  }), Rr(v(() => {
2603
- var f, p;
2604
- return (p = (f = i.value) == null ? void 0 : f.firstElementChild) != null ? p : null;
2605
- }), d), () => {
2606
- var f, p;
2603
+ var d, p;
2604
+ return (p = (d = i.value) == null ? void 0 : d.firstElementChild) != null ? p : null;
2605
+ }), f), () => {
2606
+ var d, p;
2607
2607
  if (!t)
2608
2608
  return null;
2609
2609
  const {
2610
2610
  isAutoWidth: g
2611
2611
  } = e;
2612
2612
  if (g) {
2613
- const _ = n?.autoLabelWidth, y = r?.hasLabel, u = {};
2614
- if (y && _ && _ !== "auto") {
2613
+ const _ = n?.autoLabelWidth, h = r?.hasLabel, u = {};
2614
+ if (h && _ && _ !== "auto") {
2615
2615
  const m = Math.max(0, Number.parseInt(_, 10) - a.value), w = (r.labelPosition || n.labelPosition) === "left" ? "marginRight" : "marginLeft";
2616
2616
  m && (u[w] = `${m}px`);
2617
2617
  }
@@ -2619,7 +2619,7 @@ var vc = N({
2619
2619
  ref: i,
2620
2620
  class: [o.be("item", "label-wrap")],
2621
2621
  style: u
2622
- }, [(f = t.default) == null ? void 0 : f.call(t)]);
2622
+ }, [(d = t.default) == null ? void 0 : d.call(t)]);
2623
2623
  } else
2624
2624
  return L(_t, {
2625
2625
  ref: i
@@ -2627,13 +2627,13 @@ var vc = N({
2627
2627
  };
2628
2628
  }
2629
2629
  });
2630
- const gc = ["role", "aria-labelledby"], yc = N({
2630
+ const gc = ["role", "aria-labelledby"], hc = N({
2631
2631
  name: "ElFormItem",
2632
2632
  __name: "form-item",
2633
2633
  props: mc,
2634
2634
  setup(e, { expose: t }) {
2635
- const n = e, r = To(), o = K($t, void 0), i = K(bt, void 0), a = Jr(void 0, { formItem: !1 }), s = ye("form-item"), c = yu().value, d = P([]), f = P(""), p = Al(f, 100), g = P(""), _ = P();
2636
- let y, u = !1;
2635
+ const n = e, r = To(), o = K($t, void 0), i = K(bt, void 0), a = Jr(void 0, { formItem: !1 }), s = he("form-item"), c = hu().value, f = P([]), d = P(""), p = Al(d, 100), g = P(""), _ = P();
2636
+ let h, u = !1;
2637
2637
  const m = v(
2638
2638
  () => n.labelPosition || o?.labelPosition
2639
2639
  ), l = v(() => {
@@ -2650,9 +2650,9 @@ const gc = ["role", "aria-labelledby"], yc = N({
2650
2650
  }), T = v(() => [
2651
2651
  s.b(),
2652
2652
  s.m(a.value),
2653
- s.is("error", f.value === "error"),
2654
- s.is("validating", f.value === "validating"),
2655
- s.is("success", f.value === "success"),
2653
+ s.is("error", d.value === "error"),
2654
+ s.is("validating", d.value === "validating"),
2655
+ s.is("success", d.value === "success"),
2656
2656
  s.is("required", Ot.value || n.required),
2657
2657
  s.is("no-asterisk", o?.hideRequiredAsterisk),
2658
2658
  o?.requireAsteriskPosition === "right" ? "asterisk-right" : "asterisk-left",
@@ -2665,9 +2665,9 @@ const gc = ["role", "aria-labelledby"], yc = N({
2665
2665
  ), q = v(() => [
2666
2666
  s.e("error"),
2667
2667
  { [s.em("error", "inline")]: E.value }
2668
- ]), h = v(() => n.prop ? et(n.prop) ? n.prop.join(".") : n.prop : ""), $ = v(() => !!(n.label || r.label)), C = v(() => {
2668
+ ]), y = v(() => n.prop ? et(n.prop) ? n.prop.join(".") : n.prop : ""), $ = v(() => !!(n.label || r.label)), C = v(() => {
2669
2669
  var b;
2670
- return (b = n.for) != null ? b : d.value.length === 1 ? d.value[0] : void 0;
2670
+ return (b = n.for) != null ? b : f.value.length === 1 ? f.value[0] : void 0;
2671
2671
  }), k = v(() => !C.value && $.value), X = !!i, J = v(() => {
2672
2672
  const b = o?.model;
2673
2673
  if (!(!b || !n.prop))
@@ -2702,7 +2702,7 @@ const gc = ["role", "aria-labelledby"], yc = N({
2702
2702
  ), pn = v(
2703
2703
  () => `${n.label || ""}${o?.labelSuffix || ""}`
2704
2704
  ), Pe = (b) => {
2705
- f.value = b;
2705
+ d.value = b;
2706
2706
  }, po = (b) => {
2707
2707
  var F, z;
2708
2708
  const { errors: B, fields: oe } = b;
@@ -2710,7 +2710,7 @@ const gc = ["role", "aria-labelledby"], yc = N({
2710
2710
  }, mo = () => {
2711
2711
  Pe("success"), o?.emit("validate", n.prop, !0, "");
2712
2712
  }, vo = async (b) => {
2713
- const F = h.value;
2713
+ const F = y.value;
2714
2714
  return new ct({
2715
2715
  [F]: b
2716
2716
  }).validate({ [F]: J.value }, { firstFields: !0 }).then(() => (mo(), !0)).catch((B) => (po(B), Promise.reject(B)));
@@ -2732,13 +2732,13 @@ const gc = ["role", "aria-labelledby"], yc = N({
2732
2732
  if (!b || !n.prop)
2733
2733
  return;
2734
2734
  const F = mt(b, n.prop);
2735
- u = !0, F.value = Ft(y), await Ht(), St(), u = !1;
2735
+ u = !0, F.value = Ft(h), await Ht(), St(), u = !1;
2736
2736
  }, go = (b) => {
2737
- d.value.includes(b) || d.value.push(b);
2738
- }, yo = (b) => {
2739
- d.value = d.value.filter((F) => F !== b);
2737
+ f.value.includes(b) || f.value.push(b);
2738
+ }, ho = (b) => {
2739
+ f.value = f.value.filter((F) => F !== b);
2740
2740
  }, gn = (b) => {
2741
- y = Ft(b);
2741
+ h = Ft(b);
2742
2742
  };
2743
2743
  ae(
2744
2744
  () => n.error,
@@ -2755,28 +2755,28 @@ const gc = ["role", "aria-labelledby"], yc = N({
2755
2755
  $el: _,
2756
2756
  size: a,
2757
2757
  validateMessage: g,
2758
- validateState: f,
2758
+ validateState: d,
2759
2759
  labelId: c,
2760
- inputIds: d,
2760
+ inputIds: f,
2761
2761
  isGroup: k,
2762
2762
  hasLabel: $,
2763
2763
  fieldValue: J,
2764
2764
  addInputId: go,
2765
- removeInputId: yo,
2765
+ removeInputId: ho,
2766
2766
  resetField: vn,
2767
2767
  clearValidate: St,
2768
2768
  validate: mn,
2769
- propString: h,
2769
+ propString: y,
2770
2770
  setInitialValue: gn
2771
2771
  });
2772
2772
  return st(bt, Et), it(() => {
2773
- n.prop && (o?.addField(Et), y = Ft(J.value));
2773
+ n.prop && (o?.addField(Et), h = Ft(J.value));
2774
2774
  }), ur(() => {
2775
2775
  o?.removeField(Et);
2776
2776
  }), t({
2777
2777
  size: a,
2778
2778
  validateMessage: g,
2779
- validateState: f,
2779
+ validateState: d,
2780
2780
  validate: mn,
2781
2781
  clearValidate: St,
2782
2782
  resetField: vn,
@@ -2850,8 +2850,8 @@ const gc = ["role", "aria-labelledby"], yc = N({
2850
2850
  };
2851
2851
  }
2852
2852
  });
2853
- var to = /* @__PURE__ */ je(yc, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);
2854
- const hc = ut(Nu, {
2853
+ var to = /* @__PURE__ */ je(hc, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/form/src/form-item.vue"]]);
2854
+ const yc = ut(Nu, {
2855
2855
  FormItem: to
2856
2856
  }), bc = Xl(to), _c = [
2857
2857
  "start",
@@ -2883,7 +2883,7 @@ const hc = ut(Nu, {
2883
2883
  __name: "row",
2884
2884
  props: xc,
2885
2885
  setup(e) {
2886
- const t = e, n = ye("row"), r = v(() => t.gutter);
2886
+ const t = e, n = he("row"), r = v(() => t.gutter);
2887
2887
  st(Xr, {
2888
2888
  gutter: r
2889
2889
  });
@@ -2951,7 +2951,7 @@ const nr = ut($c), no = [
2951
2951
  default: G.duration
2952
2952
  },
2953
2953
  icon: {
2954
- type: du,
2954
+ type: fu,
2955
2955
  default: G.icon
2956
2956
  },
2957
2957
  id: {
@@ -3021,8 +3021,8 @@ const nr = ut($c), no = [
3021
3021
  props: Oc,
3022
3022
  emits: Sc,
3023
3023
  setup(e, { expose: t, emit: n }) {
3024
- const { Close: r } = pu, o = e, i = n, a = P(!1), { ns: s, zIndex: c } = Hl("message"), { currentZIndex: d, nextZIndex: f } = c, p = P(), g = P(!1), _ = P(0);
3025
- let y;
3024
+ const { Close: r } = pu, o = e, i = n, a = P(!1), { ns: s, zIndex: c } = Hl("message"), { currentZIndex: f, nextZIndex: d } = c, p = P(), g = P(!1), _ = P(0);
3025
+ let h;
3026
3026
  const u = v(
3027
3027
  () => o.type ? o.type === "error" ? "danger" : o.type : "info"
3028
3028
  ), m = v(() => {
@@ -3030,19 +3030,19 @@ const nr = ut($c), no = [
3030
3030
  return { [s.bm("icon", O)]: O && Yn[O] };
3031
3031
  }), l = v(
3032
3032
  () => o.icon || Yn[o.type] || ""
3033
- ), w = v(() => o.placement || Re), T = v(() => Cc(o.id, w.value)), E = v(() => Fc(o.id, o.offset, w.value) + T.value), q = v(() => _.value + E.value), h = v(() => w.value.includes("left") ? s.is("left") : w.value.includes("right") ? s.is("right") : s.is("center")), $ = v(
3033
+ ), w = v(() => o.placement || Re), T = v(() => Cc(o.id, w.value)), E = v(() => Fc(o.id, o.offset, w.value) + T.value), q = v(() => _.value + E.value), y = v(() => w.value.includes("left") ? s.is("left") : w.value.includes("right") ? s.is("right") : s.is("center")), $ = v(
3034
3034
  () => w.value.startsWith("top") ? "top" : "bottom"
3035
3035
  ), C = v(() => ({
3036
3036
  [$.value]: `${E.value}px`,
3037
- zIndex: d.value
3037
+ zIndex: f.value
3038
3038
  }));
3039
3039
  function k() {
3040
- o.duration !== 0 && ({ stop: y } = Pl(() => {
3040
+ o.duration !== 0 && ({ stop: h } = Pl(() => {
3041
3041
  J();
3042
3042
  }, o.duration));
3043
3043
  }
3044
3044
  function X() {
3045
- y?.();
3045
+ h?.();
3046
3046
  }
3047
3047
  function J() {
3048
3048
  g.value = !1, Ht(() => {
@@ -3054,7 +3054,7 @@ const nr = ut($c), no = [
3054
3054
  bu(O) === Bt.esc && J();
3055
3055
  }
3056
3056
  return it(() => {
3057
- k(), f(), g.value = !0;
3057
+ k(), d(), g.value = !0;
3058
3058
  }), ae(
3059
3059
  () => o.repeatNum,
3060
3060
  () => {
@@ -3084,7 +3084,7 @@ const nr = ut($c), no = [
3084
3084
  x(s).is("closable", O.showClose),
3085
3085
  x(s).is("plain", O.plain),
3086
3086
  x(s).is("bottom", $.value === "bottom"),
3087
- h.value,
3087
+ y.value,
3088
3088
  O.customClass
3089
3089
  ]),
3090
3090
  style: Be(C.value),
@@ -3165,11 +3165,11 @@ const Lc = (e) => {
3165
3165
  `Invalid placement: ${e.placement}. Falling back to '${Re}'.`
3166
3166
  ), e.placement = Re);
3167
3167
  }, oo = (e) => {
3168
- const t = !e || ve(e) || fr(e) || ze(e) ? { message: e } : e, n = {
3168
+ const t = !e || ve(e) || dr(e) || ze(e) ? { message: e } : e, n = {
3169
3169
  ...G,
3170
3170
  ...t
3171
3171
  };
3172
- return Lc(n), Mc(n), Xe(Y.grouping) && !n.grouping && (n.grouping = Y.grouping), fe(Y.duration) && n.duration === 3e3 && (n.duration = Y.duration), fe(Y.offset) && n.offset === 16 && (n.offset = Y.offset), Xe(Y.showClose) && !n.showClose && (n.showClose = Y.showClose), Xe(Y.plain) && !n.plain && (n.plain = Y.plain), n;
3172
+ return Lc(n), Mc(n), Xe(Y.grouping) && !n.grouping && (n.grouping = Y.grouping), de(Y.duration) && n.duration === 3e3 && (n.duration = Y.duration), de(Y.offset) && n.offset === 16 && (n.offset = Y.offset), Xe(Y.showClose) && !n.showClose && (n.showClose = Y.showClose), Xe(Y.plain) && !n.plain && (n.plain = Y.plain), n;
3173
3173
  }, qc = (e) => {
3174
3174
  const t = e.props.placement || Re, n = re[t], r = n.indexOf(e);
3175
3175
  if (r === -1)
@@ -3182,20 +3182,20 @@ const Lc = (e) => {
3182
3182
  ...t,
3183
3183
  id: r,
3184
3184
  onClose: () => {
3185
- o?.(), qc(f);
3185
+ o?.(), qc(d);
3186
3186
  },
3187
3187
  onDestroy: () => {
3188
- yn(null, i);
3188
+ hn(null, i);
3189
3189
  }
3190
3190
  }, s = L(
3191
3191
  Vc,
3192
3192
  a,
3193
- ze(a.message) || fr(a.message) ? {
3193
+ ze(a.message) || dr(a.message) ? {
3194
3194
  default: ze(a.message) ? a.message : () => a.message
3195
3195
  } : null
3196
3196
  );
3197
- s.appContext = n || Oe._context, yn(s, i), e.appendChild(i.firstElementChild);
3198
- const c = s.component, f = {
3197
+ s.appContext = n || Oe._context, hn(s, i), e.appendChild(i.firstElementChild);
3198
+ const c = s.component, d = {
3199
3199
  id: r,
3200
3200
  vnode: s,
3201
3201
  vm: c,
@@ -3206,7 +3206,7 @@ const Lc = (e) => {
3206
3206
  },
3207
3207
  props: s.component.props
3208
3208
  };
3209
- return f;
3209
+ return d;
3210
3210
  }, Oe = (e = {}, t) => {
3211
3211
  if (!Fe)
3212
3212
  return { close: () => {
@@ -3224,7 +3224,7 @@ const Lc = (e) => {
3224
3224
  if (i)
3225
3225
  return i.props.repeatNum += 1, i.props.type = n.type, i.handler;
3226
3226
  }
3227
- if (fe(Y.max) && r.length >= Y.max)
3227
+ if (de(Y.max) && r.length >= Y.max)
3228
3228
  return { close: () => {
3229
3229
  } };
3230
3230
  const o = kc(n, t);
@@ -3261,8 +3261,8 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3261
3261
  },
3262
3262
  setup(e) {
3263
3263
  const t = e, n = me(t, "modelValue"), r = v(() => {
3264
- const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, maxlength: d, minlength: f, showWordLimit: p, type: g, initValue: _ } = t.data;
3265
- return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, maxlength: d, minlength: f, showWordLimit: p, type: g, initValue: _ };
3264
+ const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, maxlength: f, minlength: d, showWordLimit: p, type: g, initValue: _ } = t.data;
3265
+ return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, maxlength: f, minlength: d, showWordLimit: p, type: g, initValue: _ };
3266
3266
  });
3267
3267
  return (o, i) => {
3268
3268
  const a = ie("el-input");
@@ -3288,22 +3288,22 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3288
3288
  },
3289
3289
  setup(e) {
3290
3290
  const t = e, n = K("dictList"), r = me(t, "modelValue"), o = v(() => {
3291
- const { clearable: a, disabled: s, required: c, readonly: d, placeholder: f, options: p = [], multiple: g, multipleLimit: _, initValue: y } = t.data;
3292
- return { clearable: a, disabled: s, required: c, readonly: d, placeholder: f, options: p, multiple: g, multipleLimit: _, initValue: y };
3291
+ const { clearable: a, disabled: s, required: c, readonly: f, placeholder: d, options: p = [], multiple: g, multipleLimit: _, initValue: h } = t.data;
3292
+ return { clearable: a, disabled: s, required: c, readonly: f, placeholder: d, options: p, multiple: g, multipleLimit: _, initValue: h };
3293
3293
  }), i = v(() => n && t.data.dictId ? n.map((a) => (a.value = a.id, a)) || [] : o.value.options && o.value.options.length > 0 ? o.value.options : []);
3294
3294
  return (a, s) => {
3295
- const c = ie("el-option"), d = ie("el-select");
3295
+ const c = ie("el-option"), f = ie("el-select");
3296
3296
  return I(), M("div", Uc, [
3297
- L(d, Ee({
3297
+ L(f, Ee({
3298
3298
  modelValue: x(r),
3299
- "onUpdate:modelValue": s[0] || (s[0] = (f) => Se(r) ? r.value = f : null)
3299
+ "onUpdate:modelValue": s[0] || (s[0] = (d) => Se(r) ? r.value = d : null)
3300
3300
  }, o.value), {
3301
3301
  default: U(() => [
3302
- (I(!0), M(_t, null, dr(i.value, (f) => (I(), te(c, {
3303
- key: f.value,
3304
- label: f.label,
3305
- value: f.value,
3306
- disabled: f.disabled
3302
+ (I(!0), M(_t, null, fr(i.value, (d) => (I(), te(c, {
3303
+ key: d.value,
3304
+ label: d.label,
3305
+ value: d.value,
3306
+ disabled: d.disabled
3307
3307
  }, null, 8, ["label", "value", "disabled"]))), 128))
3308
3308
  ]),
3309
3309
  _: 1
@@ -3320,8 +3320,8 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3320
3320
  },
3321
3321
  setup(e) {
3322
3322
  const t = e, n = me(t, "modelValue"), r = v(() => {
3323
- const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, min: d, max: f, step: p, precision: g, controls: _, initValue: y } = t.data;
3324
- return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, min: d, max: f, step: p, precision: g, controls: _, initValue: y };
3323
+ const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, min: f, max: d, step: p, precision: g, controls: _, initValue: h } = t.data;
3324
+ return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, min: f, max: d, step: p, precision: g, controls: _, initValue: h };
3325
3325
  });
3326
3326
  return (o, i) => {
3327
3327
  const a = ie("el-input-number");
@@ -3342,8 +3342,8 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3342
3342
  },
3343
3343
  setup(e) {
3344
3344
  const t = e, n = me(t, "modelValue"), r = v(() => {
3345
- const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, loading: d, width: f, activeText: p, inactiveText: g, activeValue: _, inactiveValue: y, initValue: u } = t.data;
3346
- return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, loading: d, width: f, activeText: p, inactiveText: g, activeValue: _, inactiveValue: y, initValue: u };
3345
+ const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, loading: f, width: d, activeText: p, inactiveText: g, activeValue: _, inactiveValue: h, initValue: u } = t.data;
3346
+ return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, loading: f, width: d, activeText: p, inactiveText: g, activeValue: _, inactiveValue: h, initValue: u };
3347
3347
  });
3348
3348
  return (o, i) => {
3349
3349
  const a = ie("el-switch");
@@ -3364,8 +3364,8 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3364
3364
  },
3365
3365
  setup(e) {
3366
3366
  const t = e, n = me(t, "modelValue"), r = v(() => {
3367
- const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, type: d, defaultValue: f, defaultTime: p, dateFormat: g, timeFormat: _, valueFormat: y = "YYYY-MM-DDTHH:mm:ss[Z]", initValue: u } = t.data;
3368
- return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, type: d, defaultValue: f, defaultTime: p, dateFormat: g, timeFormat: _, valueFormat: y, initValue: u };
3367
+ const { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, type: f, defaultValue: d, defaultTime: p, dateFormat: g, timeFormat: _, valueFormat: h = "YYYY-MM-DDTHH:mm:ss[Z]", initValue: u } = t.data;
3368
+ return { clearable: o, disabled: i, required: a, readonly: s, placeholder: c, type: f, defaultValue: d, defaultTime: p, dateFormat: g, timeFormat: _, valueFormat: h, initValue: u };
3369
3369
  });
3370
3370
  return (o, i) => {
3371
3371
  const a = ie("el-date-picker");
@@ -3377,7 +3377,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3377
3377
  ]);
3378
3378
  };
3379
3379
  }
3380
- }), uo = /* @__PURE__ */ _e(Xc, [["__scopeId", "data-v-18ca05b4"]]), Qc = { class: "item-content" }, ef = /* @__PURE__ */ N({
3380
+ }), uo = /* @__PURE__ */ _e(Xc, [["__scopeId", "data-v-18ca05b4"]]), Qc = { class: "item-content" }, ed = /* @__PURE__ */ N({
3381
3381
  name: "RadioItem",
3382
3382
  __name: "radio",
3383
3383
  props: {
@@ -3386,22 +3386,22 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3386
3386
  },
3387
3387
  setup(e) {
3388
3388
  const t = e, n = K("dictList"), r = me(t, "modelValue"), o = v(() => {
3389
- const { clearable: a, disabled: s, required: c, readonly: d, placeholder: f, options: p, border: g, textColor: _, fill: y, type: u, initValue: m } = t.data;
3390
- return { clearable: a, disabled: s, required: c, readonly: d, placeholder: f, options: p, border: g, textColor: _, fill: y, type: u, initValue: m };
3389
+ const { clearable: a, disabled: s, required: c, readonly: f, placeholder: d, options: p, border: g, textColor: _, fill: h, type: u, initValue: m } = t.data;
3390
+ return { clearable: a, disabled: s, required: c, readonly: f, placeholder: d, options: p, border: g, textColor: _, fill: h, type: u, initValue: m };
3391
3391
  }), i = v(() => n && t.data.dictId ? t.data.dictId === "all" ? n.map((a) => (a.value = a.id, a)) || [] : n.find((a) => a.id === t.data.dictId)?.children || [] : o.value.options && o.value.options.length > 0 ? o.value.options : []);
3392
3392
  return (a, s) => {
3393
- const c = ie("el-radio"), d = ie("el-radio-group");
3393
+ const c = ie("el-radio"), f = ie("el-radio-group");
3394
3394
  return I(), M("div", Qc, [
3395
- L(d, Ee({
3395
+ L(f, Ee({
3396
3396
  modelValue: x(r),
3397
- "onUpdate:modelValue": s[0] || (s[0] = (f) => Se(r) ? r.value = f : null)
3397
+ "onUpdate:modelValue": s[0] || (s[0] = (d) => Se(r) ? r.value = d : null)
3398
3398
  }, o.value), {
3399
3399
  default: U(() => [
3400
- (I(!0), M(_t, null, dr(i.value, (f) => (I(), te(c, {
3401
- key: f.value,
3402
- value: f.value,
3403
- label: f.label,
3404
- disabled: f.disabled,
3400
+ (I(!0), M(_t, null, fr(i.value, (d) => (I(), te(c, {
3401
+ key: d.value,
3402
+ value: d.value,
3403
+ label: d.label,
3404
+ disabled: d.disabled,
3405
3405
  border: o.value.border
3406
3406
  }, null, 8, ["value", "label", "disabled", "border"]))), 128))
3407
3407
  ]),
@@ -3410,7 +3410,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3410
3410
  ]);
3411
3411
  };
3412
3412
  }
3413
- }), co = /* @__PURE__ */ _e(ef, [["__scopeId", "data-v-daf21d6d"]]), tf = { class: "fj-form-container" }, nf = /* @__PURE__ */ N({
3413
+ }), co = /* @__PURE__ */ _e(ed, [["__scopeId", "data-v-daf21d6d"]]), td = { class: "fj-form-container" }, nd = /* @__PURE__ */ N({
3414
3414
  name: "FjForm",
3415
3415
  __name: "index",
3416
3416
  props: {
@@ -3432,23 +3432,23 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3432
3432
  }, {
3433
3433
  deep: !0
3434
3434
  }), it(() => {
3435
- c.value = yt(a.value);
3435
+ c.value = ht(a.value);
3436
3436
  });
3437
- function d() {
3438
- return W(hc, { model: a.value, ref: i, style: "width: 100%" }, {
3437
+ function f() {
3438
+ return W(yc, { model: a.value, ref: i, style: "width: 100%" }, {
3439
3439
  default: () => W(nr, { id: "dragzone" }, {
3440
- default: () => s.value.map((l) => f(l))
3440
+ default: () => s.value.map((l) => d(l))
3441
3441
  })
3442
3442
  });
3443
3443
  }
3444
- function f(l) {
3444
+ function d(l) {
3445
3445
  return l.formType === "block" ? p(l) : g(l);
3446
3446
  }
3447
3447
  function p(l) {
3448
3448
  return W(Hn, { span: 24 }, {
3449
3449
  default: () => W("div", { class: "fj-block" }, {
3450
3450
  default: () => [W("div", { class: "block-title" }, l.label), W(nr, {}, {
3451
- default: () => l?.children?.length ? l.children.map((w) => f(w)) : null
3451
+ default: () => l?.children?.length ? l.children.map((w) => d(w)) : null
3452
3452
  })]
3453
3453
  })
3454
3454
  });
@@ -3458,7 +3458,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3458
3458
  default: () => W("div", { class: "fj-form-item" }, {
3459
3459
  default: () => [W(bc, { prop: l.key, rules: l.rules, label: l.label, style: "width: 100%" }, {
3460
3460
  default: () => _(l)
3461
- }), o.edit ? W("div", { class: "remove", onClick: () => y(l) }, { default: () => null }) : null]
3461
+ }), o.edit ? W("div", { class: "remove", onClick: () => h(l) }, { default: () => null }) : null]
3462
3462
  })
3463
3463
  });
3464
3464
  }
@@ -3516,11 +3516,11 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3516
3516
  return W("div", {}, { default: () => "invalid node" });
3517
3517
  }
3518
3518
  }
3519
- function y(l) {
3519
+ function h(l) {
3520
3520
  r("remove", l);
3521
3521
  }
3522
3522
  function u() {
3523
- a.value = yt(c.value);
3523
+ a.value = ht(c.value);
3524
3524
  }
3525
3525
  function m() {
3526
3526
  return new Promise((l, w) => {
@@ -3532,11 +3532,11 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3532
3532
  return t({
3533
3533
  submit: m,
3534
3534
  reset: u
3535
- }), (l, w) => (I(), M("div", tf, [
3536
- (I(), te(lt(d())))
3535
+ }), (l, w) => (I(), M("div", td, [
3536
+ (I(), te(lt(f())))
3537
3537
  ]));
3538
3538
  }
3539
- }), Yt = /* @__PURE__ */ _e(nf, [["__scopeId", "data-v-103aecbc"]]), rf = [{
3539
+ }), Yt = /* @__PURE__ */ _e(nd, [["__scopeId", "data-v-103aecbc"]]), rd = [{
3540
3540
  label: "text",
3541
3541
  value: "text"
3542
3542
  }, {
@@ -3560,7 +3560,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3560
3560
  }, {
3561
3561
  label: "url",
3562
3562
  value: "url"
3563
- }], of = [{
3563
+ }], od = [{
3564
3564
  label: "6",
3565
3565
  value: 6
3566
3566
  }, {
@@ -3578,7 +3578,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3578
3578
  }, {
3579
3579
  label: "24",
3580
3580
  value: 24
3581
- }], af = [{
3581
+ }], ad = [{
3582
3582
  label: "input",
3583
3583
  value: "input"
3584
3584
  }, {
@@ -3596,7 +3596,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3596
3596
  }, {
3597
3597
  label: "radio",
3598
3598
  value: "radio"
3599
- }], sf = {
3599
+ }], id = {
3600
3600
  formItemType: "input",
3601
3601
  key: "",
3602
3602
  label: "",
@@ -3611,7 +3611,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3611
3611
  maxlength: 64,
3612
3612
  minlength: 0,
3613
3613
  inputType: "text"
3614
- }, lf = [
3614
+ }, sd = [
3615
3615
  {
3616
3616
  formType: "block",
3617
3617
  span: 24,
@@ -3636,7 +3636,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3636
3636
  },
3637
3637
  children: [],
3638
3638
  initValue: "",
3639
- options: af,
3639
+ options: ad,
3640
3640
  multiple: !1,
3641
3641
  multipleLimit: 1024,
3642
3642
  placeholder: "请选择formItemType"
@@ -3708,7 +3708,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3708
3708
  readonly: !1,
3709
3709
  children: [],
3710
3710
  initValue: "",
3711
- options: of,
3711
+ options: od,
3712
3712
  border: !0,
3713
3713
  type: "button",
3714
3714
  placeholder: "请选择span"
@@ -3848,7 +3848,7 @@ const Bc = Jl(Oe, "$message"), zc = { class: "item-content" }, Wc = /* @__PURE__
3848
3848
  readonly: !1,
3849
3849
  children: [],
3850
3850
  initValue: "",
3851
- options: rf,
3851
+ options: rd,
3852
3852
  multiple: !1,
3853
3853
  multipleLimit: 1024,
3854
3854
  placeholder: "请选择inputType"
@@ -3871,7 +3871,7 @@ class Ae {
3871
3871
  children;
3872
3872
  initValue;
3873
3873
  constructor(t) {
3874
- this.span = t.span || 24, this.key = t.key, this.label = t.label || "", this.clearable = t.clearable || !0, this.disabled = t.disabled || !1, this.readonly = t.readonly || !1, this.children = t.children || [], this.initValue = t.initValue || "", t.required && !t.rules && (this.rules = { required: !0, message: `请输入${t.key}`, trigger: "change" }), t.rules && (this.rules = t.rules);
3874
+ this.span = t.span || 24, this.key = t.key, this.label = t.label || "", this.dictId = t.dictId || "", this.clearable = t.clearable || !0, this.disabled = t.disabled || !1, this.readonly = t.readonly || !1, this.children = t.children || [], this.initValue = t.initValue || "", t.required && !t.rules && (this.rules = { required: !0, message: `请输入${t.key}`, trigger: "change" }), t.rules && (this.rules = t.rules);
3875
3875
  }
3876
3876
  }
3877
3877
  class rr extends Ae {
@@ -3881,7 +3881,7 @@ class rr extends Ae {
3881
3881
  super(t);
3882
3882
  }
3883
3883
  }
3884
- class uf extends Ae {
3884
+ class ld extends Ae {
3885
3885
  formType = "input";
3886
3886
  maxlength;
3887
3887
  minlength;
@@ -3893,7 +3893,7 @@ class uf extends Ae {
3893
3893
  super(t), this.maxlength = t.maxlength || 1024, this.minlength = t.minlength || 0, this.showWordLimit = t.showWordLimit || !1, this.type = t.type || "text", this.placeholder = `请输入${t.key}`;
3894
3894
  }
3895
3895
  }
3896
- class cf extends Ae {
3896
+ class ud extends Ae {
3897
3897
  formType = "number";
3898
3898
  min;
3899
3899
  max;
@@ -3906,7 +3906,7 @@ class cf extends Ae {
3906
3906
  super(t), this.min = t.min || 0, this.max = t.max, this.step = t.step || 1, this.precision = t.precision || 0, this.controls = t.controls || !0, this.placeholder = `请输入${t.key}`;
3907
3907
  }
3908
3908
  }
3909
- class ff extends Ae {
3909
+ class cd extends Ae {
3910
3910
  formType = "select";
3911
3911
  options;
3912
3912
  multiple;
@@ -3917,7 +3917,7 @@ class ff extends Ae {
3917
3917
  super(t), this.options = t.options || [], this.multiple = t.multiple || !1, this.multipleLimit = t.multipleLimit || 1024, this.placeholder = `请选择${t.key}`;
3918
3918
  }
3919
3919
  }
3920
- class df extends Ae {
3920
+ class dd extends Ae {
3921
3921
  formType = "switch";
3922
3922
  loading;
3923
3923
  width;
@@ -3930,7 +3930,7 @@ class df extends Ae {
3930
3930
  super(t), this.loading = t.loading || !1, this.width = t.width, this.activeText = t.activeText, this.inactiveText = t.inactiveText, this.activeValue = t.activeValue || !0, this.inactiveValue = t.inactiveValue || !1, this.placeholder = `请选择${t.key}`;
3931
3931
  }
3932
3932
  }
3933
- class pf extends Ae {
3933
+ class fd extends Ae {
3934
3934
  formType = "date";
3935
3935
  type = "datetime";
3936
3936
  defaultValue;
@@ -3943,7 +3943,7 @@ class pf extends Ae {
3943
3943
  super(t), this.type = t.type || "datetime", this.defaultValue = t.defaultValue, this.defaultTime = t.defaultTime, this.valueFormat = t.valueFormat || "YYYY-MM-DDTHH:mm:ss[Z]", this.dateFormat = t.dateFormat || "YYYY-MM-DD", this.timeFormat = t.timeFormat || "HH:mm:ss", this.placeholder = `请选择${t.key}`;
3944
3944
  }
3945
3945
  }
3946
- class mf extends Ae {
3946
+ class pd extends Ae {
3947
3947
  formType = "radio";
3948
3948
  options = [];
3949
3949
  border = !0;
@@ -3955,49 +3955,49 @@ class mf extends Ae {
3955
3955
  super(t), this.options = t.options || [], this.border = t.border || !0, this.textColor = t.textColor, this.fill = t.fill, this.type = t.type || "button", this.placeholder = `请选择${t.key}`;
3956
3956
  }
3957
3957
  }
3958
- const vf = { class: "edit-container" }, gf = { class: "aside" }, yf = { class: "form" }, hf = { class: "btn-content" }, bf = { class: "section" }, _f = { class: "main" }, wf = { class: "footer" }, xf = /* @__PURE__ */ N({
3958
+ const md = { class: "edit-container" }, vd = { class: "aside" }, gd = { class: "form" }, hd = { class: "btn-content" }, yd = { class: "section" }, bd = { class: "main" }, _d = { class: "footer" }, wd = /* @__PURE__ */ N({
3959
3959
  name: "EditComp",
3960
3960
  __name: "index",
3961
3961
  props: {
3962
3962
  dictList: {}
3963
3963
  },
3964
3964
  setup(e) {
3965
- const t = e, n = P(), r = qe([new rr({ key: "root", label: "生成结果,输入内容设置默认值" })]), o = qe({}), i = qe(sf), a = qe(lf), s = {
3966
- input: { comp: ao, ins: uf },
3967
- select: { comp: io, ins: ff },
3968
- number: { comp: so, ins: cf },
3969
- switch: { comp: lo, ins: df },
3970
- date: { comp: uo, ins: pf },
3971
- radio: { comp: co, ins: mf }
3965
+ const t = e, n = P(), r = qe([new rr({ key: "root", label: "生成结果,输入内容设置默认值" })]), o = qe({}), i = qe(id), a = qe(sd), s = {
3966
+ input: { comp: ao, ins: ld },
3967
+ select: { comp: io, ins: cd },
3968
+ number: { comp: so, ins: ud },
3969
+ switch: { comp: lo, ins: dd },
3970
+ date: { comp: uo, ins: fd },
3971
+ radio: { comp: co, ins: pd }
3972
3972
  };
3973
3973
  function c() {
3974
3974
  r.value = [new rr({ key: "root", label: "生成结果,输入内容设置默认值" })], o.value = {};
3975
3975
  }
3976
- function d() {
3977
- n.value?.submit().then((y) => {
3978
- if (Object.keys(o.value).includes(y.key)) {
3979
- Bc.error(`重复key: ${y.key}`);
3976
+ function f() {
3977
+ n.value?.submit().then((h) => {
3978
+ if (Object.keys(o.value).includes(h.key)) {
3979
+ Bc.error(`重复key: ${h.key}`);
3980
3980
  return;
3981
3981
  } else {
3982
- const u = s[y.formItemType].ins;
3982
+ const u = s[h.formItemType].ins;
3983
3983
  if (u) {
3984
- const m = new u(y);
3985
- o.value = { ...o.value, [y.key]: m.initValue }, r.value.forEach((l) => {
3986
- l.children && y.key && l.children.push(m);
3984
+ const m = new u(h);
3985
+ o.value = { ...o.value, [h.key]: m.initValue }, r.value.forEach((l) => {
3986
+ l.children && h.key && l.children.push(m);
3987
3987
  });
3988
3988
  }
3989
3989
  }
3990
3990
  });
3991
3991
  }
3992
- function f(y) {
3993
- console.log(y);
3992
+ function d(h) {
3993
+ console.log(h);
3994
3994
  }
3995
- function p(y) {
3996
- console.log(y);
3997
- const u = yt(r.value), m = yt(o.value);
3998
- if (y?.key && u?.[0]?.children) {
3999
- const l = u[0].children.filter((w) => w.key != y.key) || [];
4000
- console.log(l), u[0].children = l, r.value = u, delete m[y.key], o.value = m;
3995
+ function p(h) {
3996
+ console.log(h);
3997
+ const u = ht(r.value), m = ht(o.value);
3998
+ if (h?.key && u?.[0]?.children) {
3999
+ const l = u[0].children.filter((w) => w.key != h.key) || [];
4000
+ console.log(l), u[0].children = l, r.value = u, delete m[h.key], o.value = m;
4001
4001
  }
4002
4002
  }
4003
4003
  function g() {
@@ -4006,23 +4006,23 @@ const vf = { class: "edit-container" }, gf = { class: "aside" }, yf = { class: "
4006
4006
  function _() {
4007
4007
  n.value?.reset();
4008
4008
  }
4009
- return (y, u) => {
4009
+ return (h, u) => {
4010
4010
  const m = ie("el-button"), l = ie("el-button-group");
4011
- return I(), M("div", vf, [
4012
- H("div", gf, [
4013
- H("div", yf, [
4011
+ return I(), M("div", md, [
4012
+ H("div", vd, [
4013
+ H("div", gd, [
4014
4014
  L(x(Yt), {
4015
4015
  config: r.value,
4016
4016
  "onUpdate:config": u[0] || (u[0] = (w) => r.value = w),
4017
4017
  data: o.value,
4018
4018
  "onUpdate:data": u[1] || (u[1] = (w) => o.value = w),
4019
4019
  edit: !0,
4020
- onChange: f,
4020
+ onChange: d,
4021
4021
  onRemove: p,
4022
4022
  "dict-list": t.dictList
4023
4023
  }, null, 8, ["config", "data", "dict-list"])
4024
4024
  ]),
4025
- H("div", hf, [
4025
+ H("div", hd, [
4026
4026
  L(l, null, {
4027
4027
  default: U(() => [
4028
4028
  L(m, {
@@ -4039,8 +4039,8 @@ const vf = { class: "edit-container" }, gf = { class: "aside" }, yf = { class: "
4039
4039
  })
4040
4040
  ])
4041
4041
  ]),
4042
- H("div", bf, [
4043
- H("div", _f, [
4042
+ H("div", yd, [
4043
+ H("div", bd, [
4044
4044
  L(x(Yt), {
4045
4045
  ref_key: "formRef",
4046
4046
  ref: n,
@@ -4051,12 +4051,12 @@ const vf = { class: "edit-container" }, gf = { class: "aside" }, yf = { class: "
4051
4051
  "dict-list": t.dictList
4052
4052
  }, null, 8, ["config", "data", "dict-list"])
4053
4053
  ]),
4054
- H("div", wf, [
4054
+ H("div", _d, [
4055
4055
  L(l, null, {
4056
4056
  default: U(() => [
4057
4057
  L(m, {
4058
4058
  type: "warning",
4059
- onClick: d
4059
+ onClick: f
4060
4060
  }, {
4061
4061
  default: U(() => [...u[5] || (u[5] = [
4062
4062
  ke("添加", -1)
@@ -4089,13 +4089,13 @@ const vf = { class: "edit-container" }, gf = { class: "aside" }, yf = { class: "
4089
4089
  ]);
4090
4090
  };
4091
4091
  }
4092
- }), Tf = /* @__PURE__ */ _e(xf, [["__scopeId", "data-v-016de242"]]);
4093
- function Of(e) {
4094
- e.component("FjForm", Yt), e.component("EditForm", Tf);
4092
+ }), xd = /* @__PURE__ */ _e(wd, [["__scopeId", "data-v-016de242"]]);
4093
+ function $d(e) {
4094
+ e.component("FjForm", Yt), e.component("EditForm", xd);
4095
4095
  }
4096
4096
  export {
4097
- Tf as EditForm,
4097
+ xd as EditForm,
4098
4098
  Yt as FjForm,
4099
- Of as default,
4100
- Of as install
4099
+ $d as default,
4100
+ $d as install
4101
4101
  };