@fox-js/foxui 4.0.1-90 → 4.0.1-91

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.esm.js CHANGED
@@ -2761,12 +2761,12 @@ function fu(e, t, a) {
2761
2761
  context: o
2762
2762
  }, n.prop ?? n.name), s = ou(r, { type: n.type }), i = sa();
2763
2763
  ua(!0);
2764
- const c = n.rollingDisplay ? iu() : null, h = L(null), u = k(() => n.rollingDisplay ? c && !c.disabled : !1), v = k(() => i && r ? ca(r, !0).value : null), m = (J, de = !1) => {
2765
- r.componentPublicExposed && typeof r.componentPublicExposed.setNameValidateRules == "function" && r.componentPublicExposed.setNameValidateRules(J, !0, de);
2764
+ const c = n.rollingDisplay ? iu() : null, h = L(null), u = k(() => n.rollingDisplay ? c && !c.disabled : !1), v = k(() => i && r ? ca(r, !0).value : null), m = (ee, de = !1) => {
2765
+ r.componentPublicExposed && typeof r.componentPublicExposed.setNameValidateRules == "function" && r.componentPublicExposed.setNameValidateRules(ee, !0, de);
2766
2766
  };
2767
- ve([() => n.rules, () => n.pureDataRules], ([J, de], [W, Q]) => {
2768
- if (J && W) {
2769
- const E = _e(W), q = _e(J), U = q ? Reflect.ownKeys(q) : [];
2767
+ ve([() => n.rules, () => n.pureDataRules], ([ee, de], [W, Q]) => {
2768
+ if (ee && W) {
2769
+ const E = _e(W), q = _e(ee), U = q ? Reflect.ownKeys(q) : [];
2770
2770
  (E ? Reflect.ownKeys(E) : []).forEach((le) => {
2771
2771
  U.includes(le) || (q[le] = []);
2772
2772
  }), m(q);
@@ -2779,61 +2779,61 @@ function fu(e, t, a) {
2779
2779
  }
2780
2780
  }, { deep: !0 });
2781
2781
  const C = e, S = k(() => {
2782
- const J = {};
2783
- if (J.height = F.value, n.width)
2784
- n.width !== "auto" && (J.width = Ee(n.width));
2782
+ const ee = {};
2783
+ if (ee.height = F.value, n.width)
2784
+ n.width !== "auto" && (ee.width = Ee(n.width));
2785
2785
  else {
2786
2786
  const de = i ? da(r, !0) : null;
2787
2787
  if (v.value && de) {
2788
2788
  if (v.value.type === "grid") {
2789
2789
  const W = va(de, v.value, n.span, n.offset);
2790
- Object.assign(J, W);
2790
+ Object.assign(ee, W);
2791
2791
  } else if (v.value.type === "flow") {
2792
2792
  const W = fa(de, v.value, n.span, n.offset, n.width);
2793
- Object.assign(J, W);
2793
+ Object.assign(ee, W);
2794
2794
  }
2795
2795
  }
2796
2796
  }
2797
- return J;
2797
+ return ee;
2798
2798
  }), w = k(() => {
2799
- const J = s.layout.value.type;
2800
- return J === "grid" || J === "flow" ? {
2801
- [`${C}--${J}`]: !0,
2802
- [`${C}--${J}-justify-${n.justify}`]: !0,
2803
- [`${C}--${J}-align-${n.align}`]: !0,
2799
+ const ee = s.layout.value.type;
2800
+ return ee === "grid" || ee === "flow" ? {
2801
+ [`${C}--${ee}`]: !0,
2802
+ [`${C}--${ee}-justify-${n.justify}`]: !0,
2803
+ [`${C}--${ee}-align-${n.align}`]: !0,
2804
2804
  [`${C}--gutter`]: !0
2805
2805
  } : {
2806
- [`${C}--${J}`]: !0,
2806
+ [`${C}--${ee}`]: !0,
2807
2807
  [`${C}--gutter`]: !0
2808
2808
  };
2809
2809
  }), y = k(() => {
2810
2810
  if (s.layout.value.type === "grid") {
2811
- let J = "";
2812
- if (n.columnWidth) J = `repeat(auto-fill, ${n.columnWidth})`;
2811
+ let ee = "";
2812
+ if (n.columnWidth) ee = `repeat(auto-fill, ${n.columnWidth})`;
2813
2813
  else {
2814
2814
  const de = uu(V.value, s.layout.value.column, s.layout.value.gutter);
2815
- J = `repeat(${s.layout.value.column}, ${de})`;
2815
+ ee = `repeat(${s.layout.value.column}, ${de})`;
2816
2816
  }
2817
2817
  return {
2818
2818
  "column-gap": `${s.layout.value.gutter}px`,
2819
- "grid-template-columns": J
2819
+ "grid-template-columns": ee
2820
2820
  };
2821
2821
  }
2822
- }), d = Sn(n, "gutter"), f = Sn(n, "column"), b = k(() => i || u.value ? !0 : Fe(n.isWrap)), $ = [], p = (J) => {
2823
- $.push(J);
2822
+ }), d = Sn(n, "gutter"), f = Sn(n, "column"), b = k(() => i || u.value ? !0 : Fe(n.isWrap)), $ = [], p = (ee) => {
2823
+ $.push(ee);
2824
2824
  }, g = () => {
2825
- let J = $.length;
2826
- $.splice(0, J);
2827
- }, V = L(-1), N = (J) => {
2828
- const de = vl(J).width;
2825
+ let ee = $.length;
2826
+ $.splice(0, ee);
2827
+ }, V = L(-1), N = (ee) => {
2828
+ const de = vl(ee).width;
2829
2829
  de > 0 && de !== V.value && (V.value = de);
2830
2830
  };
2831
2831
  wa(r, V.value, f.value, d.value, !0, n.minItemWidth, n.maxItemWidth, n.type), n.autoLayout && ve([
2832
2832
  V,
2833
2833
  f,
2834
2834
  d
2835
- ], ([J, de, W]) => {
2836
- s.order.index = 0, wa(r, J, de, W, !1, n.minItemWidth, n.maxItemWidth, n.type);
2835
+ ], ([ee, de, W]) => {
2836
+ s.order.index = 0, wa(r, ee, de, W, !1, n.minItemWidth, n.maxItemWidth, n.type);
2837
2837
  });
2838
2838
  const T = k(() => R.value ? n.expandText ?? "" : n.collapseText ?? ""), A = k(() => ({ [`${e}__header-collapse-text`]: !0 })), O = k(() => ({
2839
2839
  [`${e}__header-collapse-icon`]: !0,
@@ -2841,35 +2841,35 @@ function fu(e, t, a) {
2841
2841
  "is-collapse": R.value
2842
2842
  })), X = L(), I = L(), F = k(() => z.value || Ee(n.height) || ""), R = L(!1), z = L(""), K = L(!1);
2843
2843
  let Z = -1;
2844
- const M = (J, de = !0) => {
2844
+ const M = (ee, de = !0) => {
2845
2845
  const W = X.value;
2846
- if (W && R.value !== J) {
2846
+ if (W && R.value !== ee) {
2847
2847
  if (Z = Z <= 0 ? su(W) : Z, K.value = !0, de)
2848
2848
  if (W.style["will-change"] = "height", W.ontransitionend = function() {
2849
- W.ontransitionend = null, this.style["will-change"] = "auto", J || (z.value = "", K.value = !1);
2850
- }, J) {
2849
+ W.ontransitionend = null, this.style["will-change"] = "auto", ee || (z.value = "", K.value = !1);
2850
+ }, ee) {
2851
2851
  let Q = 0;
2852
2852
  n.collapseHeight ? Q = n.collapseHeight : I.value && I.value.classList.contains(`${e}__header`) && (Q = I.value.offsetHeight), z.value = `${Z}px`, ze(() => {
2853
2853
  z.value = `${Q}px`;
2854
2854
  });
2855
2855
  } else z.value = `${Z}px`;
2856
- else if (J) {
2856
+ else if (ee) {
2857
2857
  let Q = 0;
2858
2858
  n.collapseHeight ? Q = n.collapseHeight : I.value && I.value.classList.contains(`${e}__header`) && (Q = I.value.offsetHeight), z.value = `${Q}px`;
2859
2859
  } else
2860
2860
  K.value = !1, z.value = `${Z}px`;
2861
- R.value = J, o.emit("update:collapse", J);
2861
+ R.value = ee, o.emit("update:collapse", ee);
2862
2862
  }
2863
2863
  };
2864
- ve(() => n.collapse, (J) => {
2865
- M(J);
2864
+ ve(() => n.collapse, (ee) => {
2865
+ M(ee);
2866
2866
  });
2867
- const ne = (J) => {
2868
- o.emit("header-click", J);
2867
+ const ne = (ee) => {
2868
+ o.emit("header-click", ee);
2869
2869
  }, ie = () => {
2870
2870
  pe();
2871
- }, pe = (J) => {
2872
- J = J ?? !R.value, M(J);
2871
+ }, pe = (ee) => {
2872
+ ee = ee ?? !R.value, M(ee);
2873
2873
  };
2874
2874
  l({
2875
2875
  toggleCollapse: pe,
@@ -2878,8 +2878,8 @@ function fu(e, t, a) {
2878
2878
  }
2879
2879
  });
2880
2880
  let ae = null, H = !0;
2881
- const ce = (J) => {
2882
- if (n.rules && m(_e(n.rules)), n.pureDataRules && m(_e(n.pureDataRules), !0), !!zt && (J && M(Fe(n.collapse), !1), n.autoLayout && Array.isArray($) && $.length > 0)) {
2881
+ const ce = (ee) => {
2882
+ if (n.rules && m(_e(n.rules)), n.pureDataRules && m(_e(n.pureDataRules), !0), !!zt && (ee && M(Fe(n.collapse), !1), n.autoLayout && Array.isArray($) && $.length > 0)) {
2883
2883
  const de = $[0];
2884
2884
  if (N(de), window.ResizeObserver) {
2885
2885
  const W = ct(() => N(de), 120);
@@ -2891,15 +2891,15 @@ function fu(e, t, a) {
2891
2891
  }, B = !u.value || c?.acquire();
2892
2892
  B && (h.value = u.value ? !0 : null), ke(() => {
2893
2893
  if (B && (ce(H), H = !1), u.value && c) {
2894
- let J = null, de = c.initialHeight;
2894
+ let ee = null, de = c.initialHeight;
2895
2895
  c.observe(X.value, (W) => {
2896
2896
  if (W !== h.value)
2897
2897
  if (W)
2898
- h.value = !0, R.value || (z.value = ""), J = setTimeout(() => {
2899
- J = null, h.value !== !1 && (ce(H), H = !1);
2898
+ h.value = !0, R.value || (z.value = ""), ee = setTimeout(() => {
2899
+ ee = null, h.value !== !1 && (ce(H), H = !1);
2900
2900
  }, 100);
2901
2901
  else {
2902
- if (J !== null && clearTimeout(J), h.value = !1, !R.value) if (H) z.value = c.initialHeight;
2902
+ if (ee !== null && clearTimeout(ee), h.value = !1, !R.value) if (H) z.value = c.initialHeight;
2903
2903
  else {
2904
2904
  let Q = Oa(X.value);
2905
2905
  Q <= 0 ? z.value = de : (z.value = `${Q}px`, de = z.value);
@@ -2911,7 +2911,7 @@ function fu(e, t, a) {
2911
2911
  }), Je(() => {
2912
2912
  ae?.disconnect(), c && c.unobserve(X.value);
2913
2913
  });
2914
- const _ = (J = "right") => {
2914
+ const _ = (ee = "right") => {
2915
2915
  const de = [];
2916
2916
  if (T.value) {
2917
2917
  const E = P("span", { class: A.value }, [T.value]);
@@ -2921,11 +2921,11 @@ function fu(e, t, a) {
2921
2921
  return de.push(Q), de.length > 0 ? P("div", {
2922
2922
  class: {
2923
2923
  [`${C}__header-collapse`]: !0,
2924
- [`is-${J}`]: !0
2924
+ [`is-${ee}`]: !0
2925
2925
  },
2926
2926
  onClick: ie
2927
2927
  }, de) : null;
2928
- }, G = (J, de, W, Q) => {
2928
+ }, G = (ee, de, W, Q) => {
2929
2929
  const E = { ...w.value };
2930
2930
  if (de === 0 && (E[`${C}__first`] = !0), W >= Q - 1 && (E[`${C}__last`] = !0), b.value === !1) {
2931
2931
  const q = o.attrs.class;
@@ -2936,13 +2936,13 @@ function fu(e, t, a) {
2936
2936
  key: `${de}`,
2937
2937
  class: E,
2938
2938
  style: y.value
2939
- }, J);
2939
+ }, ee);
2940
2940
  };
2941
2941
  return () => {
2942
- const J = n.prop ?? n.name;
2942
+ const ee = n.prop ?? n.name;
2943
2943
  if (u.value && h.value !== !0) return P(n.tag || "div", {
2944
2944
  ref: X,
2945
- prop: J,
2945
+ prop: ee,
2946
2946
  class: {
2947
2947
  [`${C}`]: !0,
2948
2948
  "is-collapse": K.value
@@ -3015,7 +3015,7 @@ function fu(e, t, a) {
3015
3015
  }
3016
3016
  return b.value ? P(n.tag || "div", {
3017
3017
  ref: X,
3018
- prop: J,
3018
+ prop: ee,
3019
3019
  class: {
3020
3020
  [`${C}`]: !0,
3021
3021
  "is-collapse": K.value
@@ -3279,8 +3279,8 @@ var nr = /* @__PURE__ */ me(Cu, [["render", xu]]), { componentName: Aa, create:
3279
3279
  left: null
3280
3280
  }, ie = [];
3281
3281
  for (let pe = 0; pe < M.length; pe++) {
3282
- const ee = M[pe];
3283
- if (ie[0] = ee, Z[1] && (ie[1] = Z[1]), ee === "top") {
3282
+ const J = M[pe];
3283
+ if (ie[0] = J, Z[1] && (ie[1] = Z[1]), J === "top") {
3284
3284
  const ae = O.y - R - e.arrowSize - e.offset;
3285
3285
  if (ae >= 0) {
3286
3286
  ne.top = ae;
@@ -3290,7 +3290,7 @@ var nr = /* @__PURE__ */ me(Cu, [["render", xu]]), { componentName: Aa, create:
3290
3290
  ce < 0 ? (H += ce, u.value = -ce) : u.value = 0, ne.left = H < 0 ? 0 : H;
3291
3291
  break;
3292
3292
  }
3293
- } else if (ee === "bottom") {
3293
+ } else if (J === "bottom") {
3294
3294
  const ae = O.y + I + e.arrowSize + e.offset;
3295
3295
  if (ae + R <= K) {
3296
3296
  ne.top = ae;
@@ -3300,7 +3300,7 @@ var nr = /* @__PURE__ */ me(Cu, [["render", xu]]), { componentName: Aa, create:
3300
3300
  ce < 0 ? (H += ce, u.value = -ce) : u.value = 0, ne.left = H < 0 ? 0 : H;
3301
3301
  break;
3302
3302
  }
3303
- } else if (ee === "left") {
3303
+ } else if (J === "left") {
3304
3304
  const ae = O.x - F - e.arrowSize - e.offset;
3305
3305
  if (ae >= 0) {
3306
3306
  ne.left = ae;
@@ -3308,7 +3308,7 @@ var nr = /* @__PURE__ */ me(Cu, [["render", xu]]), { componentName: Aa, create:
3308
3308
  Z[1] === "start" ? H = O.y : Z[1] === "end" ? H = O.y + I - R : H = O.y + I / 2 - R / 2, ne.top = H < 0 ? 0 : H;
3309
3309
  break;
3310
3310
  }
3311
- } else if (ee === "right") {
3311
+ } else if (J === "right") {
3312
3312
  const ae = O.x + X + e.arrowSize + e.offset;
3313
3313
  if (ae + F <= z) {
3314
3314
  ne.left = ae;
@@ -3590,7 +3590,7 @@ function Mu(e, t, a, n = !1) {
3590
3590
  S.value = q;
3591
3591
  }
3592
3592
  });
3593
- const I = k(() => o.infoTip || X.infoTip), F = k(() => o.infoIcon || X.infoIcon), R = k(() => o.warnTip || X.warnTip), z = k(() => o.warnIcon || X.warnIcon), K = k(() => o.errorTip || X.errorTip), Z = k(() => o.errorIcon || X.errorIcon), M = k(() => K.value ? "error" : R.value ? "warn" : I.value ? "info" : ""), ne = () => M.value.length > 0, ie = k(() => M.value === "error" ? K.value : M.value === "warn" ? R.value : M.value === "info" ? I.value : ""), pe = k(() => M.value === "error" ? Z.value : M.value === "warn" ? z.value : M.value === "info" ? F.value : null), ee = k(() => {
3593
+ const I = k(() => o.infoTip || X.infoTip), F = k(() => o.infoIcon || X.infoIcon), R = k(() => o.warnTip || X.warnTip), z = k(() => o.warnIcon || X.warnIcon), K = k(() => o.errorTip || X.errorTip), Z = k(() => o.errorIcon || X.errorIcon), M = k(() => K.value ? "error" : R.value ? "warn" : I.value ? "info" : ""), ne = () => M.value.length > 0, ie = k(() => M.value === "error" ? K.value : M.value === "warn" ? R.value : M.value === "info" ? I.value : ""), pe = k(() => M.value === "error" ? Z.value : M.value === "warn" ? z.value : M.value === "info" ? F.value : null), J = k(() => {
3594
3594
  const q = {
3595
3595
  [`${v}__tip`]: !0,
3596
3596
  [`${v}__tip--${M.value}`]: !0,
@@ -3646,7 +3646,7 @@ function Mu(e, t, a, n = !1) {
3646
3646
  class: g.value,
3647
3647
  style: N.value
3648
3648
  }, q);
3649
- }, J = () => {
3649
+ }, ee = () => {
3650
3650
  const q = [];
3651
3651
  if (r.slots.prepend) {
3652
3652
  const U = r.slots.prepend();
@@ -3681,14 +3681,14 @@ function Mu(e, t, a, n = !1) {
3681
3681
  U && q.push(U);
3682
3682
  const le = W();
3683
3683
  return le && q.push(le), P("div", {
3684
- class: ee.value,
3684
+ class: J.value,
3685
3685
  style: ae.value
3686
3686
  }, q);
3687
3687
  }, E = () => r.slots?.hide?.() ?? null;
3688
3688
  return () => {
3689
3689
  const q = [], U = [], le = G();
3690
3690
  le && U.push(le);
3691
- const he = J();
3691
+ const he = ee();
3692
3692
  he && U.push(he);
3693
3693
  const ge = P("div", { class: p.value }, U);
3694
3694
  q.push(ge);
@@ -3732,6 +3732,11 @@ var { componentName: Ou, create: Ru, scope: Lu } = re("item"), Fu = Ru(Mu(Ou, Lu
3732
3732
  gutter: {
3733
3733
  type: [String, Number],
3734
3734
  required: !1
3735
+ },
3736
+ wrap: {
3737
+ type: [String],
3738
+ required: !1,
3739
+ default: "nowrap"
3735
3740
  }
3736
3741
  };
3737
3742
  function Ku(e, t) {
@@ -3760,7 +3765,7 @@ function Ku(e, t) {
3760
3765
  }
3761
3766
  }
3762
3767
  }
3763
- return a.gutter && (c.gap = Ee(a.gutter)), c;
3768
+ return a.gutter && (c.gap = Ee(a.gutter)), a.wrap && (c["flex-wrap"] = a.wrap), c;
3764
3769
  });
3765
3770
  return () => {
3766
3771
  const c = [];
@@ -4090,7 +4095,7 @@ function tc(e, t, a = !1) {
4090
4095
  right: null,
4091
4096
  bottom: null,
4092
4097
  left: null
4093
- }), i = L(0), c = L(0), h = L(0), u = L(0), v = L(n.placement), m = L(!1), C = L(!1), S = L(null), w = () => typeof n.reference == "string" ? document.querySelector(n.reference) : n.reference, y = (M, ne, ie, pe, ee, ae, H, ce = !0) => {
4098
+ }), i = L(0), c = L(0), h = L(0), u = L(0), v = L(n.placement), m = L(!1), C = L(!1), S = L(null), w = () => typeof n.reference == "string" ? document.querySelector(n.reference) : n.reference, y = (M, ne, ie, pe, J, ae, H, ce = !0) => {
4094
4099
  const Y = document.documentElement.clientWidth || document.body.clientWidth, B = document.documentElement.clientHeight || document.body.clientHeight, _ = M.split("-");
4095
4100
  let G = [];
4096
4101
  ce ? _[0] === "top" ? G = [
@@ -4114,7 +4119,7 @@ function tc(e, t, a = !1) {
4114
4119
  "bottom",
4115
4120
  "left"
4116
4121
  ]) : G = [M[0]];
4117
- const J = {
4122
+ const ee = {
4118
4123
  top: null,
4119
4124
  right: null,
4120
4125
  bottom: null,
@@ -4125,44 +4130,44 @@ function tc(e, t, a = !1) {
4125
4130
  if (de[0] = Q, _[1] && (de[1] = _[1]), Q === "top") {
4126
4131
  const E = ie - H - n.arrowSize / 2 - n.offset;
4127
4132
  if (E >= 0) {
4128
- J.top = E;
4133
+ ee.top = E;
4129
4134
  let q = 0;
4130
4135
  _[1] === "start" ? q = ne : _[1] === "end" ? q = ne + pe - ae : q = ne + pe / 2 - ae / 2;
4131
4136
  const U = Y - q - ae;
4132
- U < 0 ? (q += U, f.value = -U) : f.value = 0, J.left = q < 0 ? 0 : q;
4137
+ U < 0 ? (q += U, f.value = -U) : f.value = 0, ee.left = q < 0 ? 0 : q;
4133
4138
  break;
4134
4139
  }
4135
4140
  } else if (Q === "bottom") {
4136
- const E = ie + ee + n.arrowSize / 2 + n.offset;
4141
+ const E = ie + J + n.arrowSize / 2 + n.offset;
4137
4142
  if (E + H <= B) {
4138
- J.top = E;
4143
+ ee.top = E;
4139
4144
  let q = 0;
4140
4145
  _[1] === "start" ? q = ne : _[1] === "end" ? q = ne + pe - ae : q = ne + pe / 2 - ae / 2;
4141
4146
  const U = Y - q - ae;
4142
- U < 0 ? (q += U, f.value = -U) : f.value = 0, J.left = q < 0 ? 0 : q;
4147
+ U < 0 ? (q += U, f.value = -U) : f.value = 0, ee.left = q < 0 ? 0 : q;
4143
4148
  break;
4144
4149
  }
4145
4150
  } else if (Q === "left") {
4146
4151
  const E = ne - ae - n.arrowSize / 2 - n.offset;
4147
4152
  if (E >= 0) {
4148
- J.left = E;
4153
+ ee.left = E;
4149
4154
  let q = 0;
4150
- _[1] === "start" ? q = ie : _[1] === "end" ? q = ie + ee - H : q = ie + ee / 2 - H / 2, J.top = q < 0 ? 0 : q;
4155
+ _[1] === "start" ? q = ie : _[1] === "end" ? q = ie + J - H : q = ie + J / 2 - H / 2, ee.top = q < 0 ? 0 : q;
4151
4156
  break;
4152
4157
  }
4153
4158
  } else if (Q === "right") {
4154
4159
  const E = ne + pe + n.arrowSize / 2 + n.offset;
4155
4160
  if (E + ae <= Y) {
4156
- J.left = E;
4161
+ ee.left = E;
4157
4162
  let q = 0;
4158
- _[1] === "start" ? q = ie : _[1] === "end" ? q = ie + ee - H : q = ie + ee / 2 - H / 2, J.top = q < 0 ? 0 : q;
4163
+ _[1] === "start" ? q = ie : _[1] === "end" ? q = ie + J - H : q = ie + J / 2 - H / 2, ee.top = q < 0 ? 0 : q;
4159
4164
  break;
4160
4165
  }
4161
4166
  }
4162
4167
  }
4163
4168
  return {
4164
4169
  bestPlacement: de.join("-"),
4165
- bestInsetRect: J
4170
+ bestInsetRect: ee
4166
4171
  };
4167
4172
  }, d = () => {
4168
4173
  const M = n.visible, ne = n.autoFit;
@@ -4171,8 +4176,8 @@ function tc(e, t, a = !1) {
4171
4176
  const H = w(), ce = er(H);
4172
4177
  i.value = ce.x, c.value = ce.y, h.value = H.offsetWidth, u.value = H.offsetHeight;
4173
4178
  } else n.referenceInset && (i.value = n.referenceInset.left, c.value = n.referenceInset.top, h.value = n.referenceInset.right - n.referenceInset.left, u.value = n.referenceInset.bottom - n.referenceInset.top);
4174
- const ie = S.value.offsetWidth, pe = S.value.offsetHeight, { bestPlacement: ee, bestInsetRect: ae } = y(n.placement, i.value, c.value, h.value, u.value, ie, pe, ne);
4175
- v.value = ee, s.value = ae;
4179
+ const ie = S.value.offsetWidth, pe = S.value.offsetHeight, { bestPlacement: J, bestInsetRect: ae } = y(n.placement, i.value, c.value, h.value, u.value, ie, pe, ne);
4180
+ v.value = J, s.value = ae;
4176
4181
  }, f = L(0), b = ct(() => {
4177
4182
  d();
4178
4183
  }, 10), $ = L(n.visible);
@@ -4228,8 +4233,8 @@ function tc(e, t, a = !1) {
4228
4233
  const ce = r.default();
4229
4234
  ie.push(ce);
4230
4235
  }
4231
- const ee = z();
4232
- ee && ie.push(ee);
4236
+ const J = z();
4237
+ J && ie.push(J);
4233
4238
  const ae = {
4234
4239
  ref: S,
4235
4240
  class: T.value,
@@ -4678,22 +4683,22 @@ function Ic(e, t, a, n, o) {
4678
4683
  onBlur: A
4679
4684
  }, ie = [], pe = P("input", ne);
4680
4685
  ie.push(pe);
4681
- const ee = [];
4686
+ const J = [];
4682
4687
  if (K.value) {
4683
4688
  const Y = P(o, { class: ["action-icon"] }), B = P("view", {
4684
4689
  class: M.value,
4685
4690
  onClick: z
4686
4691
  }, { default: () => [Y] });
4687
- ee.push(B);
4692
+ J.push(B);
4688
4693
  }
4689
4694
  if (I.value) {
4690
4695
  const Y = P("view", { class: R.value }, [r.unit]);
4691
- ee.push(Y);
4696
+ J.push(Y);
4692
4697
  }
4693
4698
  const ae = P("view", {
4694
4699
  class: O.value,
4695
4700
  style: X.value
4696
- }, { default: () => ee });
4701
+ }, { default: () => J });
4697
4702
  ie.push(ae);
4698
4703
  const H = { default: () => ie };
4699
4704
  H.label = l.slots.default, H.prepend = l.slots.prepend, H.append = l.slots.append, H.fixedPreTip = l.slots.fixedPreTip, H.fixedTip = l.slots.fixedTip;
@@ -4969,7 +4974,7 @@ function Rc(e, t, a, n, o) {
4969
4974
  }, ie = k(() => Fe(r.clearable) && !c.value && !u.value), pe = k(() => {
4970
4975
  let H = He(w.value) > 0;
4971
4976
  return Fe(r.clearable) && H && S.value;
4972
- }), ee = k(() => ({
4977
+ }), J = k(() => ({
4973
4978
  action: !0,
4974
4979
  hidden: !pe.value
4975
4980
  }));
@@ -5003,7 +5008,7 @@ function Rc(e, t, a, n, o) {
5003
5008
  let B = [];
5004
5009
  if (ie.value) {
5005
5010
  const de = P(o, { class: ["action-icon"] }), W = P("view", {
5006
- class: ee.value,
5011
+ class: J.value,
5007
5012
  onClick: ne
5008
5013
  }, { default: () => [de] });
5009
5014
  B.push(W);
@@ -5019,7 +5024,7 @@ function Rc(e, t, a, n, o) {
5019
5024
  ce.push(_);
5020
5025
  const G = { default: () => ce };
5021
5026
  G.label = l.slots.default, G.prepend = l.slots.prepend, G.append = l.slots.append, G.fixedPreTip = l.slots.fixedPreTip, G.fixedTip = l.slots.fixedTip;
5022
- const J = {
5027
+ const ee = {
5023
5028
  ...Ut(r, ur),
5024
5029
  ref: s,
5025
5030
  errorTip: T.value,
@@ -5027,7 +5032,7 @@ function Rc(e, t, a, n, o) {
5027
5032
  hintVisible: O.value,
5028
5033
  hintType: "number"
5029
5034
  };
5030
- return r.prop && (J.prop = `${r.prop}_item`), a(J, G);
5035
+ return r.prop && (ee.prop = `${r.prop}_item`), a(ee, G);
5031
5036
  };
5032
5037
  }
5033
5038
  };
@@ -6041,7 +6046,7 @@ var Qe = /* @__PURE__ */ me(Dd, [["render", qd]]), Pd = Ot({
6041
6046
  if (typeof Z[0] == "string") {
6042
6047
  let M = K, ne = [];
6043
6048
  M.forEach((ie) => {
6044
- let pe = ie.map((ee) => eo(ee));
6049
+ let pe = ie.map((J) => eo(J));
6045
6050
  ne.push(pe);
6046
6051
  }), u.value = ne;
6047
6052
  } else u.value = K;
@@ -6100,8 +6105,8 @@ var Qe = /* @__PURE__ */ me(Dd, [["render", qd]]), Pd = Ot({
6100
6105
  let R = [], z = 0, K = v.value[0], Z = 0;
6101
6106
  for (; ; ) {
6102
6107
  let M = K.map((pe) => {
6103
- let ee = Object.assign({}, pe);
6104
- return sd(e, ee, null), ee;
6108
+ let J = Object.assign({}, pe);
6109
+ return sd(e, J, null), J;
6105
6110
  });
6106
6111
  R.push(M), z >= y.value.length ? Z = 0 : Z = y.value[z], (Z < 0 || Z >= K.length) && (Z = 0);
6107
6112
  let ne = K[Z];
@@ -6351,10 +6356,10 @@ function Hd(e, t, a, n, o, r, l, s = !0) {
6351
6356
  [`${V}__append`]: !0,
6352
6357
  "is-disabled": v.value,
6353
6358
  "is-readonly": C.value
6354
- })), ne = k(() => He(i.unit) > 0), ie = k(() => He(i.unit) > 0 && !b.value), pe = k(() => ({ hidden: !ie.value })), ee = (_) => {
6359
+ })), ne = k(() => He(i.unit) > 0), ie = k(() => He(i.unit) > 0 && !b.value), pe = k(() => ({ hidden: !ie.value })), J = (_) => {
6355
6360
  $.value = "", w("update:modelValue", "", _), w("change", "", _), w("clear", "");
6356
6361
  }, ae = k(() => i.clearable && !v.value && !C.value), H = k(() => He($.value) > 0 && b.value), ce = (_) => {
6357
- H.value ? ee(_) : X();
6362
+ H.value ? J(_) : X();
6358
6363
  }, Y = k(() => H.value && ae.value ? o : r), B = k(() => ({ action: !0 }));
6359
6364
  return y({
6360
6365
  setDisabled: (_) => {
@@ -6379,8 +6384,8 @@ function Hd(e, t, a, n, o, r, l, s = !0) {
6379
6384
  onBlur: K
6380
6385
  };
6381
6386
  s && (_.disabled = !0);
6382
- const G = [], J = P("input", _);
6383
- G.push(J);
6387
+ const G = [], ee = P("input", _);
6388
+ G.push(ee);
6384
6389
  const de = [], W = P(Y.value, { class: ["action-icon"] }), Q = P("view", {
6385
6390
  class: B.value,
6386
6391
  onClick: ce
@@ -6672,7 +6677,7 @@ function af(e, t, a, n, o, r = !1) {
6672
6677
  key: I(E, q),
6673
6678
  onClick: K(E, q)
6674
6679
  }, le);
6675
- }, ee = () => {
6680
+ }, J = () => {
6676
6681
  const E = h.default ? h.default() : [];
6677
6682
  if (E.length === 0) for (let q = 0; q < R.value.length; q++) {
6678
6683
  const U = R.value[q], le = pe(U, q);
@@ -6741,14 +6746,14 @@ function af(e, t, a, n, o, r = !1) {
6741
6746
  q !== Y.value && (Y.value = q);
6742
6747
  let U = E.scrollWidth - E.scrollLeft > E.offsetWidth;
6743
6748
  U !== B.value && (B.value = U);
6744
- }, 50), J = (E) => {
6749
+ }, 50), ee = (E) => {
6745
6750
  G();
6746
6751
  }, de = () => {
6747
6752
  const E = p.value;
6748
- E && (G(), E.addEventListener("scroll", J));
6753
+ E && (G(), E.addEventListener("scroll", ee));
6749
6754
  }, W = () => {
6750
6755
  const E = p.value;
6751
- E && E.removeEventListener("scroll", J);
6756
+ E && E.removeEventListener("scroll", ee);
6752
6757
  }, Q = (E) => {
6753
6758
  if (E === "left" && Y.value !== !0 || E === "right" && B.value !== !0) return null;
6754
6759
  let q = null;
@@ -6760,7 +6765,7 @@ function af(e, t, a, n, o, r = !1) {
6760
6765
  }, [q]);
6761
6766
  };
6762
6767
  return () => {
6763
- const E = [], q = ee();
6768
+ const E = [], q = J();
6764
6769
  if (E.push(q), ce()) {
6765
6770
  const U = Q("left");
6766
6771
  U && E.push(U);
@@ -7686,7 +7691,7 @@ function zf(e, t, a, n, o, r, l, s = !1) {
7686
7691
  [`${A}__append`]: !0,
7687
7692
  "is-disabled": v.value,
7688
7693
  "is-readonly": C.value
7689
- })), pe = k(() => He(i.unit) > 0), ee = k(() => He(i.unit) > 0 && !b.value), ae = k(() => ({ hidden: !ee.value })), H = (Q) => {
7694
+ })), pe = k(() => He(i.unit) > 0), J = k(() => He(i.unit) > 0 && !b.value), ae = k(() => ({ hidden: !J.value })), H = (Q) => {
7690
7695
  T.value = [], g.value = [], N.value = [], w("update:modelValue", []), w("change", [], Q), w("clear", []), w("update:pathNodes", []);
7691
7696
  }, ce = k(() => i.clearable && !v.value && !C.value), Y = k(() => {
7692
7697
  let Q = N.value && N.value.length > 0;
@@ -7694,8 +7699,8 @@ function zf(e, t, a, n, o, r, l, s = !1) {
7694
7699
  }), B = (Q) => {
7695
7700
  Y.value ? H(Q) : R();
7696
7701
  }, _ = k(() => Y.value && ce.value ? o : r), G = k(() => ({ action: !0 }));
7697
- let J = null;
7698
- const de = () => typeof J == "function" ? J : typeof i.lazyLoad == "function" ? i.lazyLoad : (J = async (Q, E) => {
7702
+ let ee = null;
7703
+ const de = () => typeof ee == "function" ? ee : typeof i.lazyLoad == "function" ? i.lazyLoad : (ee = async (Q, E) => {
7699
7704
  const q = [], U = [];
7700
7705
  let le = 0;
7701
7706
  if (!Q.root) {
@@ -7712,7 +7717,7 @@ function zf(e, t, a, n, o, r, l, s = !1) {
7712
7717
  pathLabels: U,
7713
7718
  pathValues: q
7714
7719
  }, !0));
7715
- }, J), W = L();
7720
+ }, ee), W = L();
7716
7721
  return y({
7717
7722
  focus: () => {
7718
7723
  W?.value.focus();
@@ -7913,15 +7918,15 @@ var { componentName: Uf, create: Hf, scope: _f } = re("cascader-item"), jf = Hf(
7913
7918
  59,
7914
7919
  999
7915
7920
  ]).slice(_)), K);
7916
- }, pe = this.$W, ee = this.$M, ae = this.$D, H = "set" + (this.$u ? "UTC" : "");
7921
+ }, pe = this.$W, J = this.$M, ae = this.$D, H = "set" + (this.$u ? "UTC" : "");
7917
7922
  switch (M) {
7918
7923
  case m:
7919
7924
  return Z ? ne(1, 0) : ne(31, 11);
7920
7925
  case u:
7921
- return Z ? ne(1, ee) : ne(0, ee + 1);
7926
+ return Z ? ne(1, J) : ne(0, J + 1);
7922
7927
  case h:
7923
7928
  var ce = this.$locale().weekStart || 0, Y = (pe < ce ? pe + 7 : pe) - ce;
7924
- return ne(Z ? ae - Y : ae + (6 - Y), ee);
7929
+ return ne(Z ? ae - Y : ae + (6 - Y), J);
7925
7930
  case c:
7926
7931
  case C:
7927
7932
  return ie(H + "Hours", 0);
@@ -7950,9 +7955,9 @@ var { componentName: Uf, create: Hf, scope: _f } = re("cascader-item"), jf = Hf(
7950
7955
  }, F.add = function(R, z) {
7951
7956
  var K, Z = this;
7952
7957
  R = Number(R);
7953
- var M = A.p(z), ne = function(ee) {
7958
+ var M = A.p(z), ne = function(J) {
7954
7959
  var ae = T(Z);
7955
- return A.w(ae.date(ae.date() + Math.round(ee * R)), Z);
7960
+ return A.w(ae.date(ae.date() + Math.round(J * R)), Z);
7956
7961
  };
7957
7962
  if (M === u) return this.set(u, this.$M + R);
7958
7963
  if (M === m) return this.set(m, this.$y + R);
@@ -7965,17 +7970,17 @@ var { componentName: Uf, create: Hf, scope: _f } = re("cascader-item"), jf = Hf(
7965
7970
  }, F.format = function(R) {
7966
7971
  var z = this, K = this.$locale();
7967
7972
  if (!this.isValid()) return K.invalidDate || S;
7968
- var Z = R || "YYYY-MM-DDTHH:mm:ssZ", M = A.z(this), ne = this.$H, ie = this.$m, pe = this.$M, ee = K.weekdays, ae = K.months, H = K.meridiem, ce = function(_, G, J, de) {
7969
- return _ && (_[G] || _(z, Z)) || J[G].slice(0, de);
7973
+ var Z = R || "YYYY-MM-DDTHH:mm:ssZ", M = A.z(this), ne = this.$H, ie = this.$m, pe = this.$M, J = K.weekdays, ae = K.months, H = K.meridiem, ce = function(_, G, ee, de) {
7974
+ return _ && (_[G] || _(z, Z)) || ee[G].slice(0, de);
7970
7975
  }, Y = function(_) {
7971
7976
  return A.s(ne % 12 || 12, _, "0");
7972
- }, B = H || function(_, G, J) {
7977
+ }, B = H || function(_, G, ee) {
7973
7978
  var de = _ < 12 ? "AM" : "PM";
7974
- return J ? de.toLowerCase() : de;
7979
+ return ee ? de.toLowerCase() : de;
7975
7980
  };
7976
7981
  return Z.replace(y, (function(_, G) {
7977
- return G || (function(J) {
7978
- switch (J) {
7982
+ return G || (function(ee) {
7983
+ switch (ee) {
7979
7984
  case "YY":
7980
7985
  return String(z.$y).slice(-2);
7981
7986
  case "YYYY":
@@ -7995,11 +8000,11 @@ var { componentName: Uf, create: Hf, scope: _f } = re("cascader-item"), jf = Hf(
7995
8000
  case "d":
7996
8001
  return String(z.$W);
7997
8002
  case "dd":
7998
- return ce(K.weekdaysMin, z.$W, ee, 2);
8003
+ return ce(K.weekdaysMin, z.$W, J, 2);
7999
8004
  case "ddd":
8000
- return ce(K.weekdaysShort, z.$W, ee, 3);
8005
+ return ce(K.weekdaysShort, z.$W, J, 3);
8001
8006
  case "dddd":
8002
- return ee[z.$W];
8007
+ return J[z.$W];
8003
8008
  case "H":
8004
8009
  return String(ne);
8005
8010
  case "HH":
@@ -8031,7 +8036,7 @@ var { componentName: Uf, create: Hf, scope: _f } = re("cascader-item"), jf = Hf(
8031
8036
  }, F.utcOffset = function() {
8032
8037
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
8033
8038
  }, F.diff = function(R, z, K) {
8034
- var Z, M = this, ne = A.p(z), ie = T(R), pe = (ie.utcOffset() - this.utcOffset()) * n, ee = this - ie, ae = function() {
8039
+ var Z, M = this, ne = A.p(z), ie = T(R), pe = (ie.utcOffset() - this.utcOffset()) * n, J = this - ie, ae = function() {
8035
8040
  return A.m(M, ie);
8036
8041
  };
8037
8042
  switch (ne) {
@@ -8045,22 +8050,22 @@ var { componentName: Uf, create: Hf, scope: _f } = re("cascader-item"), jf = Hf(
8045
8050
  Z = ae() / 3;
8046
8051
  break;
8047
8052
  case h:
8048
- Z = (ee - pe) / 6048e5;
8053
+ Z = (J - pe) / 6048e5;
8049
8054
  break;
8050
8055
  case c:
8051
- Z = (ee - pe) / 864e5;
8056
+ Z = (J - pe) / 864e5;
8052
8057
  break;
8053
8058
  case i:
8054
- Z = ee / o;
8059
+ Z = J / o;
8055
8060
  break;
8056
8061
  case s:
8057
- Z = ee / n;
8062
+ Z = J / n;
8058
8063
  break;
8059
8064
  case l:
8060
- Z = ee / a;
8065
+ Z = J / a;
8061
8066
  break;
8062
8067
  default:
8063
- Z = ee;
8068
+ Z = J;
8064
8069
  }
8065
8070
  return K ? Z : A.a(Z);
8066
8071
  }, F.daysInMonth = function() {
@@ -8238,10 +8243,10 @@ var { componentName: Uf, create: Hf, scope: _f } = re("cascader-item"), jf = Hf(
8238
8243
  A && (X = V[2]), i = this.$locale(), !T && X && (i = d.Ls[X]), this.$d = (function(z, K, Z, M) {
8239
8244
  try {
8240
8245
  if (["x", "X"].indexOf(K) > -1) return /* @__PURE__ */ new Date((K === "X" ? 1e3 : 1) * z);
8241
- var ne = S(K)(z), ie = ne.year, pe = ne.month, ee = ne.day, ae = ne.hours, H = ne.minutes, ce = ne.seconds, Y = ne.milliseconds, B = ne.zone, _ = ne.week, G = /* @__PURE__ */ new Date(), J = ee || (ie || pe ? 1 : G.getDate()), de = ie || G.getFullYear(), W = 0;
8246
+ var ne = S(K)(z), ie = ne.year, pe = ne.month, J = ne.day, ae = ne.hours, H = ne.minutes, ce = ne.seconds, Y = ne.milliseconds, B = ne.zone, _ = ne.week, G = /* @__PURE__ */ new Date(), ee = J || (ie || pe ? 1 : G.getDate()), de = ie || G.getFullYear(), W = 0;
8242
8247
  ie && !pe || (W = pe > 0 ? pe - 1 : G.getMonth());
8243
8248
  var Q, E = ae || 0, q = H || 0, U = ce || 0, le = Y || 0;
8244
- return B ? new Date(Date.UTC(de, W, J, E, q, U, le + 60 * B.offset * 1e3)) : Z ? new Date(Date.UTC(de, W, J, E, q, U, le)) : (Q = new Date(de, W, J, E, q, U, le), _ && (Q = M(Q).week(_).toDate()), Q);
8249
+ return B ? new Date(Date.UTC(de, W, ee, E, q, U, le + 60 * B.offset * 1e3)) : Z ? new Date(Date.UTC(de, W, ee, E, q, U, le)) : (Q = new Date(de, W, ee, E, q, U, le), _ && (Q = M(Q).week(_).toDate()), Q);
8245
8250
  } catch {
8246
8251
  return /* @__PURE__ */ new Date("");
8247
8252
  }
@@ -8967,12 +8972,12 @@ function yv(e, t, a, n, o, r, l, s = !1) {
8967
8972
  "is-readonly": C.value
8968
8973
  })), M = k(() => He(i.unit) > 0), ne = k(() => He(i.unit) > 0 && !b.value), ie = k(() => ({ hidden: !ne.value })), pe = (B) => {
8969
8974
  p.value = "", w("update:modelValue", "", B), w("change", "", B), w("clear", ""), I();
8970
- }, ee = k(() => i.clearable && !v.value && !C.value), ae = k(() => {
8975
+ }, J = k(() => i.clearable && !v.value && !C.value), ae = k(() => {
8971
8976
  let B = He(p.value) > 0;
8972
8977
  return i.clearable && B && b.value;
8973
8978
  }), H = (B) => {
8974
8979
  ae.value ? pe(B) : X();
8975
- }, ce = k(() => ae.value && ee.value ? o : r), Y = k(() => ({ action: !0 }));
8980
+ }, ce = k(() => ae.value && J.value ? o : r), Y = k(() => ({ action: !0 }));
8976
8981
  return y({
8977
8982
  setDisabled: (B) => {
8978
8983
  u.value = B;
@@ -8998,15 +9003,15 @@ function yv(e, t, a, n, o, r, l, s = !1) {
8998
9003
  s && (B.disabled = !0);
8999
9004
  const _ = [], G = P("input", B);
9000
9005
  _.push(G);
9001
- const J = [], de = P(ce.value, { class: ["action-icon"] }), W = P("view", {
9006
+ const ee = [], de = P(ce.value, { class: ["action-icon"] }), W = P("view", {
9002
9007
  class: Y.value,
9003
9008
  onClick: H
9004
9009
  }, { default: () => [de] });
9005
- if (J.push(W), M.value) {
9010
+ if (ee.push(W), M.value) {
9006
9011
  const ge = P("view", { class: ie.value }, [i.unit]);
9007
- J.push(ge);
9012
+ ee.push(ge);
9008
9013
  }
9009
- const Q = P("view", { class: Z.value }, { default: () => J });
9014
+ const Q = P("view", { class: Z.value }, { default: () => ee });
9010
9015
  _.push(Q);
9011
9016
  const E = { default: () => _ };
9012
9017
  E.label = c.slots.default, E.prepend = c.slots.prepend, E.append = c.slots.append, E.fixedPreTip = c.slots.fixedPreTip, E.fixedTip = c.slots.fixedTip;
@@ -9233,7 +9238,7 @@ var { create: bv, componentName: Sv, scope: wv } = re("date-item"), Av = bv(yv(S
9233
9238
  }, T = (Y, B, _ = !1) => {
9234
9239
  if (V(Y, B) != `${d.dayPrefix}--disabled`) {
9235
9240
  const { type: G } = e;
9236
- let [J, de] = B.curData, W = [...B.curData];
9241
+ let [ee, de] = B.curData, W = [...B.curData];
9237
9242
  if (W[2] = we.getNumTwoBit(Number(Y.day)), W[3] = `${W[0]}-${W[1]}-${W[2]}`, W[4] = we.getWhatDay(+W[0], +W[1], +W[2]), G == "multiple") if (d.currDate?.length > 0) {
9238
9243
  let Q;
9239
9244
  d.currDate?.forEach((E, q) => {
@@ -9245,7 +9250,7 @@ var { create: bv, componentName: Sv, scope: wv } = re("date-item"), Av = bv(yv(S
9245
9250
  let Q = Object.values(d.currDate).length;
9246
9251
  Q == 2 || Q == 0 ? d.currDate = [W[3]] : we.compareDate(d.currDate[0], W[3]) ? Array.isArray(d.currDate) && d.currDate.push(W[3]) : Array.isArray(d.currDate) && d.currDate.unshift(W[3]), d.chooseData.length == 2 || !d.chooseData.length ? d.chooseData = [[...W]] : we.compareDate(d.chooseData[0][3], W[3]) ? d.chooseData = [...d.chooseData, [...W]] : d.chooseData = [[...W], ...d.chooseData];
9247
9252
  } else if (G == "week") {
9248
- let Q = we.getWeekDate(J, de, Y.day, e.firstDayOfWeek);
9253
+ let Q = we.getWeekDate(ee, de, Y.day, e.firstDayOfWeek);
9249
9254
  d.propStartDate && we.compareDate(Q[0], d.propStartDate) && Q.splice(0, 1, d.propStartDate), d.propEndDate && we.compareDate(d.propEndDate, Q[1]) && Q.splice(1, 1, d.propEndDate), d.currDate = Q, d.chooseData = [we.formatResultDate(Q[0]), we.formatResultDate(Q[1])];
9250
9255
  } else
9251
9256
  d.currDate = W[3], d.chooseData = [...W];
@@ -9278,27 +9283,27 @@ var { create: bv, componentName: Sv, scope: wv } = re("date-item"), Av = bv(yv(S
9278
9283
  we.getMonthDays(String(_), String(G)) + ""
9279
9284
  ];
9280
9285
  }, X = (Y, B, _) => {
9281
- let { year: G, month: J } = _;
9286
+ let { year: G, month: ee } = _;
9282
9287
  return B == "prev" && Y >= 7 && (Y -= 7), Array.from(Array(Y), (de, W) => ({
9283
9288
  day: String(W + 1),
9284
9289
  type: B,
9285
9290
  year: G,
9286
- month: J
9291
+ month: ee
9287
9292
  }));
9288
9293
  }, I = (Y, B, _, G) => {
9289
9294
  Y = Y - e.firstDayOfWeek;
9290
- let { year: J, month: de } = _;
9295
+ let { year: ee, month: de } = _;
9291
9296
  return B == "prev" && Y >= 7 && (Y -= 7), Array.from(Array(G), (W, Q) => ({
9292
9297
  day: String(Q + 1),
9293
9298
  type: B,
9294
- year: J,
9299
+ year: ee,
9295
9300
  month: de
9296
9301
  })).slice(G - Y);
9297
9302
  }, F = (Y, B) => {
9298
9303
  const _ = we.getMonthPreDay(+Y[0], +Y[1]);
9299
- let G = Number(Y[1]) - 1, J = Number(Y[0]);
9300
- G <= 0 && (G = 12, J += 1);
9301
- const de = we.getMonthDays(String(Y[0]), String(Y[1])), W = we.getMonthDays(J + "", G + ""), Q = {
9304
+ let G = Number(Y[1]) - 1, ee = Number(Y[0]);
9305
+ G <= 0 && (G = 12, ee += 1);
9306
+ const de = we.getMonthDays(String(Y[0]), String(Y[1])), W = we.getMonthDays(ee + "", G + ""), Q = {
9302
9307
  year: Y[0],
9303
9308
  month: Y[1]
9304
9309
  }, E = {
@@ -9309,7 +9314,7 @@ var { create: bv, componentName: Sv, scope: wv } = re("date-item"), Av = bv(yv(S
9309
9314
  }),
9310
9315
  monthData: [...I(_, "prev", {
9311
9316
  month: String(G),
9312
- year: String(J)
9317
+ year: String(ee)
9313
9318
  }, W), ...X(de, "curr", Q)],
9314
9319
  cssHeight: 0,
9315
9320
  cssScrollHeight: 0
@@ -9327,13 +9332,13 @@ var { create: bv, componentName: Sv, scope: wv } = re("date-item"), Av = bv(yv(S
9327
9332
  year: Number(d.endData[0]),
9328
9333
  month: Number(d.endData[1])
9329
9334
  };
9330
- let J = G.month - _.month;
9331
- G.year - _.year > 0 && (J = J + 12 * (G.year - _.year)), J <= 0 && (J = 1), F(d.startData, "next");
9335
+ let ee = G.month - _.month;
9336
+ G.year - _.year > 0 && (ee = ee + 12 * (G.year - _.year)), ee <= 0 && (ee = 1), F(d.startData, "next");
9332
9337
  let de = 1;
9333
9338
  do
9334
9339
  F(O("next"), "next");
9335
- while (de++ < J);
9336
- if (d.monthsNum = J, e.type == "range" && Array.isArray(d.currDate))
9340
+ while (de++ < ee);
9341
+ if (d.monthsNum = ee, e.type == "range" && Array.isArray(d.currDate))
9337
9342
  d.currDate.length > 0 && (Y && we.compareDate(d.currDate[0], Y) && d.currDate.splice(0, 1, Y), B && we.compareDate(B, d.currDate[1]) && d.currDate.splice(1, 1, B), d.defaultData = [...f(d.currDate[0]), ...f(d.currDate[1])]);
9338
9343
  else if (e.type == "multiple" && Array.isArray(d.currDate)) {
9339
9344
  if (d.currDate.length > 0) {
@@ -9358,11 +9363,11 @@ var { create: bv, componentName: Sv, scope: wv } = re("date-item"), Av = bv(yv(S
9358
9363
  year: B[0],
9359
9364
  month: B[1]
9360
9365
  }) && c.value) {
9361
- let J = d.monthsData[G].cssScrollHeight - c.value.scrollTop;
9366
+ let ee = d.monthsData[G].cssScrollHeight - c.value.scrollTop;
9362
9367
  if (e.toDateAnimation) {
9363
9368
  let de = 0, W = setInterval(() => {
9364
9369
  if (de++, c.value) {
9365
- let Q = J / 10;
9370
+ let Q = ee / 10;
9366
9371
  c.value.scrollTop = c.value.scrollTop + Q;
9367
9372
  }
9368
9373
  de >= 10 && (clearInterval(W), c.value && (c.value.scrollTop = d.monthsData[G].cssScrollHeight));
@@ -9376,11 +9381,11 @@ var { create: bv, componentName: Sv, scope: wv } = re("date-item"), Av = bv(yv(S
9376
9381
  },
9377
9382
  doLayout: () => {
9378
9383
  let Y = 0, B = 0;
9379
- d.defaultData.length > 0 && d.monthsData.forEach((J, de) => {
9380
- J.title == r("monthTitle", {
9384
+ d.defaultData.length > 0 && d.monthsData.forEach((ee, de) => {
9385
+ ee.title == r("monthTitle", {
9381
9386
  year: d.defaultData[0],
9382
9387
  month: d.defaultData[1]
9383
- }) && (Y = de), (e.type == "range" || e.type == "week") && J.title == r("monthTitle", {
9388
+ }) && (Y = de), (e.type == "range" || e.type == "week") && ee.title == r("monthTitle", {
9384
9389
  year: d.defaultData[3],
9385
9390
  month: d.defaultData[4]
9386
9391
  }) && (B = de);
@@ -9393,8 +9398,8 @@ var { create: bv, componentName: Sv, scope: wv } = re("date-item"), Av = bv(yv(S
9393
9398
  }, d.monthsData[B], !0)) : e.type == "week" ? T({
9394
9399
  day: d.defaultData[2],
9395
9400
  type: "curr"
9396
- }, d.monthsData[d.currentIndex], !0) : e.type == "multiple" ? [...d.currDate].forEach((J) => {
9397
- let de = f(J), W = d.currentIndex;
9401
+ }, d.monthsData[d.currentIndex], !0) : e.type == "multiple" ? [...d.currDate].forEach((ee) => {
9402
+ let de = f(ee), W = d.currentIndex;
9398
9403
  d.monthsData.forEach((Q, E) => {
9399
9404
  Q.title == r("monthTitle", {
9400
9405
  year: de[0],
@@ -9416,7 +9421,7 @@ var { create: bv, componentName: Sv, scope: wv } = re("date-item"), Av = bv(yv(S
9416
9421
  });
9417
9422
  const M = (Y, B) => {
9418
9423
  Y >= 3 ? B > 0 && B < Y ? d.defaultRange = [B - 1, B + 3] : B == 0 ? d.defaultRange = [B, B + 4] : B == Y && (d.defaultRange = [B - 2, B + 2]) : d.defaultRange = [0, Y + 2], d.translateY = d.monthsData[d.defaultRange[0]].cssScrollHeight;
9419
- }, ne = (Y, B) => (e.type == "range" || e.type == "week") && Y.type == "curr" && V(Y, B) == "fox-calendar__day--active", ie = (Y, B) => ne(Y, B) && b(g(Y, B)), pe = (Y, B) => d.currDate.length >= 2 && $(g(Y, B)) ? ne(Y, B) : !1, ee = () => {
9424
+ }, ne = (Y, B) => (e.type == "range" || e.type == "week") && Y.type == "curr" && V(Y, B) == "fox-calendar__day--active", ie = (Y, B) => ne(Y, B) && b(g(Y, B)), pe = (Y, B) => d.currDate.length >= 2 && $(g(Y, B)) ? ne(Y, B) : !1, J = () => {
9420
9425
  if (d.currDate.length >= 2) return we.isEqual(d.currDate[0], d.currDate[1]);
9421
9426
  }, ae = (Y) => {
9422
9427
  const B = `${Y.year}-${Y.month}-${Number(Y.day) < 10 ? "0" + Y.day : Y.day}`;
@@ -9445,7 +9450,7 @@ var { create: bv, componentName: Sv, scope: wv } = re("date-item"), Av = bv(yv(S
9445
9450
  showTopBtn: S,
9446
9451
  topInfo: w,
9447
9452
  bottomInfo: y,
9448
- rangeTip: ee,
9453
+ rangeTip: J,
9449
9454
  mothsViewScroll: H,
9450
9455
  getClass: V,
9451
9456
  isStartTip: ie,
@@ -9854,15 +9859,15 @@ function Gv(e, t, a, n, o, { CloseIcon: r, MarkIcon: l }, s = !1) {
9854
9859
  return;
9855
9860
  }
9856
9861
  if (f.value && Array.isArray(B) && B.length == 2) {
9857
- let J, de;
9858
- typeof B[0] == "string" ? (J = Ca(B[0], G), de = Ca(B[1], G)) : (J = B[0], de = B[1]);
9859
- let W = Yt(J), Q = Yt(de);
9860
- (b.startDate === null || b.startDate.getTime() !== J.getTime() || b.endDate?.getTime() !== de.getTime()) && (b.startDate = J, b.startArray = W, b.endDate = de, b.endArray = Q);
9862
+ let ee, de;
9863
+ typeof B[0] == "string" ? (ee = Ca(B[0], G), de = Ca(B[1], G)) : (ee = B[0], de = B[1]);
9864
+ let W = Yt(ee), Q = Yt(de);
9865
+ (b.startDate === null || b.startDate.getTime() !== ee.getTime() || b.endDate?.getTime() !== de.getTime()) && (b.startDate = ee, b.startArray = W, b.endDate = de, b.endArray = Q);
9861
9866
  } else {
9862
- let J;
9863
- typeof B == "string" ? J = Ca(B, G) : J = B;
9864
- let de = Yt(J);
9865
- (b.startDate === null || b.startDate.getTime() !== J.getTime()) && (b.startDate = J, b.startArray = de);
9867
+ let ee;
9868
+ typeof B == "string" ? ee = Ca(B, G) : ee = B;
9869
+ let de = Yt(ee);
9870
+ (b.startDate === null || b.startDate.getTime() !== ee.getTime()) && (b.startDate = ee, b.startArray = de);
9866
9871
  }
9867
9872
  };
9868
9873
  p(i.modelValue, i.type, i.valueFormat), ve(() => i.modelValue, (B) => {
@@ -9891,12 +9896,12 @@ function Gv(e, t, a, n, o, { CloseIcon: r, MarkIcon: l }, s = !1) {
9891
9896
  }, R = (B) => {
9892
9897
  if (B) {
9893
9898
  if (f.value && Array.isArray(B)) {
9894
- let _ = B[0], G = Ie(_[0]), J = Ie(_[1]), de = Ie(_[2]), W = new Date(G, J - 1, de), Q = B[1];
9895
- G = Ie(Q[0]), J = Ie(Q[1]), de = Ie(Q[2]);
9896
- let E = new Date(G, J - 1, de);
9899
+ let _ = B[0], G = Ie(_[0]), ee = Ie(_[1]), de = Ie(_[2]), W = new Date(G, ee - 1, de), Q = B[1];
9900
+ G = Ie(Q[0]), ee = Ie(Q[1]), de = Ie(Q[2]);
9901
+ let E = new Date(G, ee - 1, de);
9897
9902
  b.startDate = W, b.startArray = Yt(W), b.endDate = E, b.endArray = Yt(E), i.valueFormat ? C("update:modelValue", [Wt(i, W, i.valueFormat), Wt(i, E, i.valueFormat)], {}) : C("update:modelValue", [W, E], {});
9898
9903
  } else {
9899
- let _ = B, G = Ie(_[0]), J = Ie(_[1]), de = Ie(_[2]), W = new Date(G, J - 1, de);
9904
+ let _ = B, G = Ie(_[0]), ee = Ie(_[1]), de = Ie(_[2]), W = new Date(G, ee - 1, de);
9900
9905
  b.startDate = W, b.startArray = Yt(W), i.valueFormat ? C("update:modelValue", Wt(i, W, i.valueFormat), {}) : C("update:modelValue", W, {});
9901
9906
  }
9902
9907
  C("change", B, {});
@@ -9916,12 +9921,12 @@ function Gv(e, t, a, n, o, { CloseIcon: r, MarkIcon: l }, s = !1) {
9916
9921
  "is-readonly": v.value
9917
9922
  })), M = k(() => He(i.unit) > 0), ne = k(() => He(i.unit) > 0 && !d.value), ie = k(() => ({ hidden: !ne.value })), pe = (B) => {
9918
9923
  $(), C("update:modelValue", null, B), C("change", "", B), C("clear", "");
9919
- }, ee = k(() => i.clearable && !u.value && !v.value), ae = k(() => {
9924
+ }, J = k(() => i.clearable && !u.value && !v.value), ae = k(() => {
9920
9925
  let B = He(g.value) > 0;
9921
9926
  return i.clearable && B && d.value;
9922
9927
  }), H = (B) => {
9923
9928
  ae.value ? pe(B) : I();
9924
- }, ce = k(() => ae.value && ee.value ? r : l), Y = k(() => ({ action: !0 }));
9929
+ }, ce = k(() => ae.value && J.value ? r : l), Y = k(() => ({ action: !0 }));
9925
9930
  return S(), () => {
9926
9931
  if (m.value === "on" && (v.value || u.value)) return o(g.value, c.slots);
9927
9932
  const B = {
@@ -9940,15 +9945,15 @@ function Gv(e, t, a, n, o, { CloseIcon: r, MarkIcon: l }, s = !1) {
9940
9945
  s && (B.disabled = !0);
9941
9946
  const _ = [], G = P("input", B);
9942
9947
  _.push(G);
9943
- const J = [], de = P(ce.value, { class: ["action-icon"] }), W = P("view", {
9948
+ const ee = [], de = P(ce.value, { class: ["action-icon"] }), W = P("view", {
9944
9949
  class: Y.value,
9945
9950
  onClick: H
9946
9951
  }, { default: () => [de] });
9947
- if (J.push(W), M.value) {
9952
+ if (ee.push(W), M.value) {
9948
9953
  const ge = P("view", { class: ie.value }, [i.unit]);
9949
- J.push(ge);
9954
+ ee.push(ge);
9950
9955
  }
9951
- const Q = P("view", { class: Z.value }, { default: () => J });
9956
+ const Q = P("view", { class: Z.value }, { default: () => ee });
9952
9957
  _.push(Q);
9953
9958
  const E = { default: () => _ };
9954
9959
  E.label = c.slots.default, E.prepend = c.slots.prepend, E.append = c.slots.append, E.fixedPreTip = c.slots.fixedPreTip, E.fixedTip = c.slots.fixedTip;
@@ -11027,7 +11032,7 @@ function op(e, t, a, n) {
11027
11032
  } else {
11028
11033
  const ie = [];
11029
11034
  if (d.value) {
11030
- const ee = {
11035
+ const J = {
11031
11036
  tabIndex: 0,
11032
11037
  class: S.value,
11033
11038
  style: y.value,
@@ -11035,10 +11040,10 @@ function op(e, t, a, n) {
11035
11040
  onBlur: V
11036
11041
  };
11037
11042
  let ae = null;
11038
- r.slots.main ? ae = P("view", ee, [r.slots.main(f.value)]) : ae = P("view", ee, [f.value]), ie.push(ae);
11043
+ r.slots.main ? ae = P("view", J, [r.slots.main(f.value)]) : ae = P("view", J, [f.value]), ie.push(ae);
11039
11044
  }
11040
11045
  if (b.value) {
11041
- const ee = {
11046
+ const J = {
11042
11047
  tabIndex: 0,
11043
11048
  class: $.value,
11044
11049
  style: p.value,
@@ -11046,7 +11051,7 @@ function op(e, t, a, n) {
11046
11051
  onBlur: V
11047
11052
  };
11048
11053
  let ae = null;
11049
- r.slots.sub ? ae = P("view", ee, [r.slots.sub(o.desc)]) : ae = P("view", ee, [o.desc]), ie.push(ae);
11054
+ r.slots.sub ? ae = P("view", J, [r.slots.sub(o.desc)]) : ae = P("view", J, [o.desc]), ie.push(ae);
11050
11055
  }
11051
11056
  const pe = P("view", {
11052
11057
  class: C.value,
@@ -11956,7 +11961,7 @@ function Qp(e, t, a, n, o, r, l, s, i, c, h) {
11956
11961
  m("update:modelValue", W.value), m("update:text", W.text), m("change", W.value, W.item, W.text);
11957
11962
  }, pe = () => {
11958
11963
  K && (z.value = K);
11959
- }, ee = (W) => {
11964
+ }, J = (W) => {
11960
11965
  const Q = z.value.indexOf(W);
11961
11966
  u.multiple ? Q === -1 ? z.value.push(W) : z.value.splice(Q, 1) : Q === -1 ? z.value = [W] : z.value = [], (R.value || !u.poppable && !u.showFooter) && ce();
11962
11967
  }, ae = (W) => {
@@ -12035,7 +12040,7 @@ function Qp(e, t, a, n, o, r, l, s, i, c, h) {
12035
12040
  width: E,
12036
12041
  height: E,
12037
12042
  class: ["fox-actionsheet__list-item-icon"]
12038
- }), J = () => {
12043
+ }), ee = () => {
12039
12044
  const W = [];
12040
12045
  for (let Q = 0; Q < f.value.length; Q++) {
12041
12046
  const E = f.value[Q], q = Un(u, E), U = po(u, E), le = ["fox-actionsheet__list-item"], he = {};
@@ -12049,7 +12054,7 @@ function Qp(e, t, a, n, o, r, l, s, i, c, h) {
12049
12054
  style: he,
12050
12055
  key: `${Q}`,
12051
12056
  onClick: () => {
12052
- ge || ee(Q);
12057
+ ge || J(Q);
12053
12058
  }
12054
12059
  };
12055
12060
  let ft = [];
@@ -12111,7 +12116,7 @@ function Qp(e, t, a, n, o, r, l, s, i, c, h) {
12111
12116
  let Q = null;
12112
12117
  if (S.content) Q = S.content();
12113
12118
  else {
12114
- const ge = J();
12119
+ const ge = ee();
12115
12120
  Q = P(n, {
12116
12121
  hasMore: A.value,
12117
12122
  loadText: y.loadText.value,
@@ -12231,27 +12236,27 @@ function nm(e, t, a, n, o, r, l, s) {
12231
12236
  O.value = G;
12232
12237
  }, F = (G) => {
12233
12238
  $.value = G, w("update:modelValue", G);
12234
- }, R = (G, J) => {
12235
- w("change", G, J);
12239
+ }, R = (G, ee) => {
12240
+ w("change", G, ee);
12236
12241
  }, z = (G) => {
12237
- let J = G.target.value;
12238
- b.value = !0, w("focus", J, G);
12242
+ let ee = G.target.value;
12243
+ b.value = !0, w("focus", ee, G);
12239
12244
  }, K = (G) => {
12240
12245
  setTimeout(() => {
12241
12246
  b.value = !1;
12242
12247
  }, 0);
12243
- let J = G.target.value;
12244
- i.maxLength && J.length > Number(i.maxLength) && (J = J.slice(0, Number(i.maxLength))), w("blur", J, G);
12248
+ let ee = G.target.value;
12249
+ i.maxLength && ee.length > Number(i.maxLength) && (ee = ee.slice(0, Number(i.maxLength))), w("blur", ee, G);
12245
12250
  }, Z = (G) => {
12246
12251
  p.value = G, w("update:text", G);
12247
12252
  }, M = k(() => ({
12248
12253
  [`${V}__append`]: !0,
12249
12254
  "is-disabled": v.value,
12250
12255
  "is-readonly": C.value
12251
- })), ne = k(() => He(i.unit) > 0), ie = k(() => He(i.unit) > 0 && !b.value), pe = k(() => ({ hidden: !ie.value })), ee = (G) => {
12256
+ })), ne = k(() => He(i.unit) > 0), ie = k(() => He(i.unit) > 0 && !b.value), pe = k(() => ({ hidden: !ie.value })), J = (G) => {
12252
12257
  $.value = "", w("update:modelValue", "", G), w("change", "", G), w("clear", "");
12253
12258
  }, ae = k(() => i.clearable && !v.value && !C.value), H = k(() => He($.value) > 0 && b.value), ce = (G) => {
12254
- H.value ? ee(G) : X();
12259
+ H.value ? J(G) : X();
12255
12260
  }, Y = k(() => H.value && ae.value ? o : r), B = k(() => ({ action: !0 })), _ = L(null);
12256
12261
  return y({
12257
12262
  search: (G) => {
@@ -12288,8 +12293,8 @@ function nm(e, t, a, n, o, r, l, s) {
12288
12293
  onBlur: K
12289
12294
  };
12290
12295
  s && (G.disabled = !0);
12291
- const J = [], de = P("input", G);
12292
- J.push(de);
12296
+ const ee = [], de = P("input", G);
12297
+ ee.push(de);
12293
12298
  const W = [], Q = P(Y.value, { class: ["action-icon"] }), E = P("view", {
12294
12299
  class: B.value,
12295
12300
  onClick: ce
@@ -12299,8 +12304,8 @@ function nm(e, t, a, n, o, r, l, s) {
12299
12304
  W.push(Ne);
12300
12305
  }
12301
12306
  const q = P("view", { class: M.value }, { default: () => W });
12302
- J.push(q);
12303
- const U = { default: () => J };
12307
+ ee.push(q);
12308
+ const U = { default: () => ee };
12304
12309
  U.label = c.slots.default, U.prepend = c.slots.prepend, U.append = c.slots.append, U.fixedPreTip = c.slots.fixedPreTip, U.fixedTip = c.slots.fixedTip;
12305
12310
  const le = Le(i, Zn);
12306
12311
  le.ref = _, le.class = i.actionSheetClass, le.disabled = v.value || C.value, le.visible = O.value, le["onUpdate:visible"] = I, le.modelValue = $.value, le["onUpdate:modelValue"] = F, le.text = p.value, le["onUpdate:text"] = Z, le.onChange = R, le.poppable = !0, le["text-position"] = i.textPosition;
@@ -12749,60 +12754,60 @@ function qm(e, t, a, n) {
12749
12754
  "click"
12750
12755
  ],
12751
12756
  setup(o, r) {
12752
- const { emitEvent: l, exposeApi: s } = Tt({ context: r }, o.prop), i = e, c = Dm(), h = L([]), u = k(() => h.value.filter((ee) => Vm(o, ee) !== !1)), v = L(-1), m = () => {
12753
- const ee = o.modelValue, ae = u.value.findIndex((H) => mo(o, H) === ee);
12757
+ const { emitEvent: l, exposeApi: s } = Tt({ context: r }, o.prop), i = e, c = Dm(), h = L([]), u = k(() => h.value.filter((J) => Vm(o, J) !== !1)), v = L(-1), m = () => {
12758
+ const J = o.modelValue, ae = u.value.findIndex((H) => mo(o, H) === J);
12754
12759
  v.value !== ae && (v.value = ae, o.scroll && ie(ae, !1));
12755
12760
  };
12756
12761
  ve([() => o.modelValue, u], () => {
12757
12762
  m();
12758
12763
  });
12759
- const C = (ee) => v.value === ee, S = (ee) => {
12760
- if (ee < 0 && ee >= u.value.length) return !1;
12761
- const ae = u.value[ee], H = ($a(o, ae, ee) ?? {}).status ?? Ta(o, ae);
12762
- return C(ee) || H;
12764
+ const C = (J) => v.value === J, S = (J) => {
12765
+ if (J < 0 && J >= u.value.length) return !1;
12766
+ const ae = u.value[J], H = ($a(o, ae, J) ?? {}).status ?? Ta(o, ae);
12767
+ return C(J) || H;
12763
12768
  }, w = k(() => {
12764
- const ee = { [i]: !0 };
12765
- return o.mode ? ee[`is-${o.mode}`] = !0 : o.direction && (ee[`is-${o.direction}`] = !0), o.scroll && (ee["is-scroll"] = !0), ee;
12766
- }), y = k(() => ({})), d = (ee, ae, H, ce, Y) => {
12769
+ const J = { [i]: !0 };
12770
+ return o.mode ? J[`is-${o.mode}`] = !0 : o.direction && (J[`is-${o.direction}`] = !0), o.scroll && (J["is-scroll"] = !0), J;
12771
+ }), y = k(() => ({})), d = (J, ae, H, ce, Y) => {
12767
12772
  const B = { [`${i}__step`]: !0 };
12768
- return Y && (B[`${Y}`] = !0), B[`${f.value}`] = !0, ce && (B["is-doit"] = !0), ee === v.value ? B["is-active"] = !0 : ae === "done" ? B["is-done"] = !0 : ae === "error" ? B["is-error"] = !0 : ae === "half" ? B["is-half"] = !0 : H ? B["is-disabled"] = !0 : B["is-normal"] = !0, B;
12773
+ return Y && (B[`${Y}`] = !0), B[`${f.value}`] = !0, ce && (B["is-doit"] = !0), J === v.value ? B["is-active"] = !0 : ae === "done" ? B["is-done"] = !0 : ae === "error" ? B["is-error"] = !0 : ae === "half" ? B["is-half"] = !0 : H ? B["is-disabled"] = !0 : B["is-normal"] = !0, B;
12769
12774
  }, f = k(() => {
12770
- let ee = o.align;
12771
- if (!ee) {
12775
+ let J = o.align;
12776
+ if (!J) {
12772
12777
  if (o.mode === "simple") return "start";
12773
- o.direction === "vertical" ? ee = "start" : ee = "center";
12778
+ o.direction === "vertical" ? J = "start" : J = "center";
12774
12779
  }
12775
- return ee;
12776
- }), b = (ee, ae = {}) => {
12780
+ return J;
12781
+ }), b = (J, ae = {}) => {
12777
12782
  const H = { ...ae };
12778
- if (f.value === "start" && ee === u.value.length - 1) H.flex = "0 0 auto";
12783
+ if (f.value === "start" && J === u.value.length - 1) H.flex = "0 0 auto";
12779
12784
  else if (o.step) {
12780
12785
  const ce = typeof o.step == "number" || rl(o.step) ? Ee(o.step) : o.step;
12781
12786
  o.direction === "vertical" ? H.height = ce : H.width = ce;
12782
12787
  } else H.flex = "1 1 100%";
12783
12788
  return H;
12784
- }, $ = (ee, ae) => {
12789
+ }, $ = (J, ae) => {
12785
12790
  let H = {};
12786
12791
  if (ae < u.value.length - 1) {
12787
12792
  const ce = ae + 1;
12788
12793
  S(ae) && S(ce) ? o.direction === "vertical" ? H.height = "100%" : H.width = "100%" : H.opacity = "0";
12789
12794
  }
12790
12795
  return H;
12791
- }, p = (ee) => u.value.length - 1 === ee, g = (ee, ae) => {
12796
+ }, p = (J) => u.value.length - 1 === J, g = (J, ae) => {
12792
12797
  if (o.clickNavigatePolicy === "disabled" || (o.clickNavigatePolicy === "only-back" || o.clickNavigatePolicy === "only-back-reset") && ae > v.value || v.value === ae) return;
12793
12798
  const H = v.value, ce = ae;
12794
12799
  v.value = ae, o.scroll && ie(ae, !1);
12795
- const Y = mo(o, ee);
12800
+ const Y = mo(o, J);
12796
12801
  l("update:modelValue", Y), l("change", Y, {
12797
12802
  fromIndex: H,
12798
12803
  currentIndex: ce,
12799
- item: ee,
12804
+ item: J,
12800
12805
  items: u.value,
12801
12806
  clickNavigatePolicy: o.clickNavigatePolicy
12802
12807
  });
12803
- }, V = L(!0), N = async (ee, ae) => {
12808
+ }, V = L(!0), N = async (J, ae) => {
12804
12809
  try {
12805
- const H = await c.load("stesbar", ee, ae);
12810
+ const H = await c.load("stesbar", J, ae);
12806
12811
  Array.isArray(H) && (h.value = H), V.value = !1;
12807
12812
  } catch (H) {
12808
12813
  console.error("[FoxUI] Load StepsBar Data Fail", H), h.value = [];
@@ -12811,105 +12816,109 @@ function qm(e, t, a, n) {
12811
12816
  l("loaded-data");
12812
12817
  }, 250);
12813
12818
  };
12814
- ve([() => o.data, () => o.params], async ([ee, ae]) => {
12815
- ee && N(ee, ae);
12819
+ ve([() => o.data, () => o.params], async ([J, ae]) => {
12820
+ J && N(J, ae);
12816
12821
  }, { immediate: !0 }), s({});
12817
- const T = (ee, ae, H, ce, Y, B) => {
12822
+ const T = (J, ae, H, ce, Y, B) => {
12818
12823
  const _ = [];
12819
12824
  let G = null;
12820
12825
  if (!B) if (r.slots.icon) G = r.slots.icon({
12821
- item: ee,
12826
+ item: J,
12822
12827
  index: ae,
12823
12828
  status: ce
12824
12829
  });
12825
12830
  else if (ce === "done") {
12826
- const J = {};
12827
- o.iconSize && (J.width = o.iconSize, J.height = o.iconSize), G = P(o.icon ?? a, J);
12831
+ const ee = {};
12832
+ o.iconSize && (ee.width = o.iconSize, ee.height = o.iconSize), G = P(o.icon ?? a, ee);
12828
12833
  } else G = P("span", {}, [H ?? `${ae + 1}`]);
12829
12834
  return G && _.push(G), P("view", {
12830
12835
  class: "fox-steps-bar__icon",
12831
12836
  onClick: () => {
12832
12837
  l("click", {
12833
- item: ee,
12838
+ item: J,
12834
12839
  index: ae
12835
- }), !Y && g(ee, ae);
12840
+ }), !Y && g(J, ae);
12836
12841
  }
12837
12842
  }, _);
12838
- }, A = (ee, ae, H) => P("view", { class: "fox-steps-bar__line" }, [P("i", {
12843
+ }, A = (J, ae, H) => P("view", { class: "fox-steps-bar__line" }, [P("i", {
12839
12844
  class: "fox-steps-bar__line-inner",
12840
- style: $(ee, ae)
12845
+ style: $(J, ae)
12841
12846
  })]), O = () => {
12842
- let ee = null;
12843
- if (r.slots.markIcon) ee = r.slots.markIcon();
12847
+ let J = null;
12848
+ if (r.slots.markIcon) J = r.slots.markIcon();
12844
12849
  else {
12845
12850
  const ae = {};
12846
- o.iconSize && (ae.width = o.markIconSize, ae.height = o.markIconSize), ee = P(o.markIcon ?? n, ae);
12851
+ o.iconSize && (ae.width = o.markIconSize, ae.height = o.markIconSize), J = P(o.markIcon ?? n, ae);
12847
12852
  }
12848
- return P("view", { class: "fox-steps-bar__mark" }, [ee]);
12849
- }, X = (ee, ae, H, ce, Y, B) => {
12853
+ return P("view", { class: "fox-steps-bar__mark" }, [J]);
12854
+ }, X = (J, ae, H, ce, Y, B) => {
12850
12855
  const _ = [];
12851
12856
  if (!p(ae)) {
12852
- const J = A(ee, ae, ce);
12853
- _.push(J);
12857
+ const ee = A(J, ae, ce);
12858
+ _.push(ee);
12854
12859
  }
12855
- const G = T(ee, ae, H, ce, Y, B);
12860
+ const G = T(J, ae, H, ce, Y, B);
12856
12861
  return _.push(G), P("view", { class: "fox-steps-bar__head" }, _);
12857
- }, I = (ee, ae, H, ce) => {
12862
+ }, I = (J, ae, H, ce) => {
12858
12863
  let Y = null;
12859
12864
  return r.slots.main ? Y = r.slots.main({
12860
- item: ee,
12865
+ item: J,
12861
12866
  index: ae,
12862
12867
  status: H
12863
- }) : Y = Nm(o, ee), P("view", {
12868
+ }) : Y = Nm(o, J), P("view", {
12864
12869
  class: "fox-steps-bar__main",
12865
12870
  onClick: () => {
12866
12871
  l("click", {
12867
- item: ee,
12872
+ item: J,
12868
12873
  index: ae
12869
- }), !ce && g(ee, ae);
12874
+ }), !ce && g(J, ae);
12870
12875
  }
12871
12876
  }, [Y]);
12872
- }, F = (ee, ae, H) => {
12877
+ }, F = (J, ae, H) => {
12873
12878
  let ce = null;
12874
12879
  return r.slots.sub ? (ce = r.slots.sub({
12875
- item: ee,
12880
+ item: J,
12876
12881
  index: ae,
12877
12882
  status: H
12878
12883
  }), P("view", { class: "fox-steps-bar__sub" }, [ce])) : null;
12879
- }, R = (ee, ae) => {
12880
- const H = $a(o, ee, ae) ?? {}, ce = H.status ?? Ta(o, ee);
12881
- let Y = go(o, ee);
12884
+ }, R = (J, ae) => {
12885
+ const H = $a(o, J, ae) ?? {}, ce = H.status ?? Ta(o, J);
12886
+ let Y = go(o, J);
12882
12887
  H.disabled === !0 && (Y = !0), o.disabled === !0 && (Y = !0);
12883
- let B = yo(o, ee);
12888
+ let B = yo(o, J);
12884
12889
  H.doit === !0 && (B = !0);
12885
- const _ = H.label ?? bo(o, ee), G = [], J = T(ee, ae, _, ce, Y, B);
12886
- J && G.push(J);
12887
- const de = I(ee, ae, ce, Y);
12890
+ const _ = H.label ?? bo(o, J), G = [], ee = T(J, ae, _, ce, Y, B);
12891
+ ee && G.push(ee);
12892
+ const de = I(J, ae, ce, Y);
12888
12893
  if (de && G.push(de), !p(ae)) {
12889
- const q = A(ee, ae, ce);
12890
- q && G.push(q);
12894
+ const le = A(J, ae, ce);
12895
+ le && G.push(le);
12891
12896
  }
12892
- const W = P("view", { class: "fox-steps-bar__head" }, G), Q = H.class, E = H.style ?? {};
12897
+ const W = [], Q = P("view", { class: "fox-steps-bar__head" }, G);
12898
+ W.push(Q);
12899
+ const E = F(J, ae, ce);
12900
+ E && W.push(E);
12901
+ const q = H.class, U = H.style ?? {};
12893
12902
  return P("view", {
12894
12903
  ref: ne(ae),
12895
- class: d(ae, ce, Y, B, Q),
12896
- style: b(ae, E)
12897
- }, [W]);
12898
- }, z = (ee, ae) => {
12899
- const H = $a(o, ee, ae) ?? {}, ce = H.status ?? Ta(o, ee);
12900
- let Y = go(o, ee);
12904
+ class: d(ae, ce, Y, B, q),
12905
+ style: b(ae, U)
12906
+ }, W);
12907
+ }, z = (J, ae) => {
12908
+ const H = $a(o, J, ae) ?? {}, ce = H.status ?? Ta(o, J);
12909
+ let Y = go(o, J);
12901
12910
  H.disabled === !0 && (Y = !0), o.disabled === !0 && (Y = !0);
12902
- let B = yo(o, ee);
12911
+ let B = yo(o, J);
12903
12912
  H.doit === !0 && (B = !0);
12904
- const _ = H.label ?? bo(o, ee), G = [], J = o.layout;
12905
- for (let Q of J) if (Q === "head") {
12906
- const E = X(ee, ae, _, ce, Y, B);
12913
+ const _ = H.label ?? bo(o, J), G = [], ee = o.layout;
12914
+ for (let Q of ee) if (Q === "head") {
12915
+ const E = X(J, ae, _, ce, Y, B);
12907
12916
  G.push(E);
12908
12917
  } else if (Q === "main") {
12909
- const E = I(ee, ae, ce, Y);
12918
+ const E = I(J, ae, ce, Y);
12910
12919
  G.push(E);
12911
12920
  } else if (Q === "sub") {
12912
- const E = F(ee, ae, ce);
12921
+ const E = F(J, ae, ce);
12913
12922
  G.push(E);
12914
12923
  } else if (Q === "mark") {
12915
12924
  const E = O();
@@ -12921,40 +12930,40 @@ function qm(e, t, a, n) {
12921
12930
  class: d(ae, ce, Y, B, de),
12922
12931
  style: b(ae, W)
12923
12932
  }, G);
12924
- }, K = L(), Z = L([]), M = (ee, ae) => {
12925
- Z.value[ae] = ee;
12926
- }, ne = (ee) => (ae) => {
12927
- M(ae, ee);
12928
- }, ie = (ee, ae) => {
12933
+ }, K = L(), Z = L([]), M = (J, ae) => {
12934
+ Z.value[ae] = J;
12935
+ }, ne = (J) => (ae) => {
12936
+ M(ae, J);
12937
+ }, ie = (J, ae) => {
12929
12938
  const H = K.value, ce = Z.value;
12930
- if (!H || !ce || !ce[ee]) return;
12931
- const Y = ce[ee];
12939
+ if (!H || !ce || !ce[J]) return;
12940
+ const Y = ce[J];
12932
12941
  let B = 0;
12933
12942
  o.direction === "vertical" ? B = Y.offsetTop - (H.offsetHeight - Y.offsetHeight) / 2 : B = Y.offsetLeft - (H.offsetWidth - Y.offsetWidth) / 2, pe(H, B, ae ? 0 : 0.3, o.direction);
12934
- }, pe = (ee, ae, H, ce) => {
12943
+ }, pe = (J, ae, H, ce) => {
12935
12944
  let Y = 0;
12936
- const B = ce === "horizontal" ? ee.scrollLeft : ee.scrollTop, _ = H === 0 ? 1 : Math.round(H * 1e3 / 16);
12945
+ const B = ce === "horizontal" ? J.scrollLeft : J.scrollTop, _ = H === 0 ? 1 : Math.round(H * 1e3 / 16);
12937
12946
  function G() {
12938
- ce === "horizontal" ? ee.scrollLeft += (ae - B) / _ : ee.scrollTop += (ae - B) / _, ++Y < _ && $t(G);
12947
+ ce === "horizontal" ? J.scrollLeft += (ae - B) / _ : J.scrollTop += (ae - B) / _, ++Y < _ && $t(G);
12939
12948
  }
12940
12949
  G();
12941
12950
  };
12942
12951
  return () => {
12943
- let ee = [];
12952
+ let J = [];
12944
12953
  if (o.mode === "simple") for (let H = 0; H < u.value.length; H++) {
12945
12954
  const ce = u.value[H], Y = R(ce, H);
12946
- ee.push(Y);
12955
+ J.push(Y);
12947
12956
  }
12948
12957
  else for (let H = 0; H < u.value.length; H++) {
12949
12958
  const ce = u.value[H], Y = z(ce, H);
12950
- ee.push(Y);
12959
+ J.push(Y);
12951
12960
  }
12952
12961
  const ae = {
12953
12962
  ref: K,
12954
12963
  class: w.value,
12955
12964
  style: y.value
12956
12965
  };
12957
- return ee.length === 0 && typeof r.slots.default == "function" && (ee = r.slots.default()), P("view", ae, ee);
12966
+ return J.length === 0 && typeof r.slots.default == "function" && (J = r.slots.default()), P("view", ae, J);
12958
12967
  };
12959
12968
  }
12960
12969
  };
@@ -19393,12 +19402,12 @@ var bA = /* @__PURE__ */ me(uA, [["render", yA]]), Qr = Symbol("fox-swiper"), {
19393
19402
  const { active: ne } = r, ie = $(K), pe = b(ie, Z);
19394
19403
  if (e.loop) {
19395
19404
  if (s.value[0] && pe !== y.value) {
19396
- const ee = pe < y.value;
19397
- s.value[0].setOffset(ee ? w.value : 0);
19405
+ const J = pe < y.value;
19406
+ s.value[0].setOffset(J ? w.value : 0);
19398
19407
  }
19399
19408
  if (s.value[S.value - 1] && pe !== 0) {
19400
- const ee = pe > 0;
19401
- s.value[S.value - 1].setOffset(ee ? -w.value : 0);
19409
+ const J = pe > 0;
19410
+ s.value[S.value - 1].setOffset(J ? -w.value : 0);
19402
19411
  }
19403
19412
  }
19404
19413
  r.active = ie, r.offset = pe, M && ne !== r.active && t("change", d.value), f();