yuyeon 0.3.6 → 0.3.7-beta.0

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/yuyeon.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Vl = Object.defineProperty;
2
2
  var Rl = (e, t, n) => t in e ? Vl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var be = (e, t, n) => Rl(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { getCurrentInstance as ne, capitalize as Fl, inject as oe, computed as S, shallowRef as X, watchEffect as Ke, provide as ce, ref as Y, h as de, watch as R, onScopeDispose as De, effectScope as en, toRaw as jl, toRef as re, onBeforeUnmount as Pe, reactive as Oe, onMounted as pt, nextTick as se, resolveDynamicComponent as Kl, createVNode as d, withDirectives as Me, mergeProps as H, resolveDirective as Ct, unref as ve, readonly as jt, onBeforeMount as tn, Fragment as J, createTextVNode as kt, withKeys as Wl, Transition as _t, toRefs as Hl, withModifiers as nn, Teleport as zl, vShow as nt, watchPostEffect as Ul, defineComponent as an, resolveComponent as Gl, onBeforeUpdate as ql, useTemplateRef as Xl, isVNode as at } from "vue";
4
+ import { getCurrentInstance as ne, capitalize as Fl, inject as oe, computed as S, shallowRef as X, watchEffect as Ke, provide as ce, ref as M, h as de, watch as R, onScopeDispose as De, effectScope as en, toRaw as jl, toRef as re, onBeforeUnmount as Pe, reactive as Oe, onMounted as pt, nextTick as se, resolveDynamicComponent as Kl, createVNode as d, withDirectives as Me, mergeProps as H, resolveDirective as Ct, unref as ve, readonly as jt, onBeforeMount as tn, Fragment as J, createTextVNode as kt, withKeys as Wl, Transition as _t, toRefs as Hl, withModifiers as nn, Teleport as zl, vShow as nt, watchPostEffect as Ul, defineComponent as an, resolveComponent as Gl, onBeforeUpdate as ql, useTemplateRef as Xl, isVNode as at } from "vue";
5
5
  function ot(e, t) {
6
6
  return e ? Object.hasOwn(e, t) : !1;
7
7
  }
@@ -152,7 +152,7 @@ function ni(e, t) {
152
152
  }
153
153
  const ht = Symbol.for("yuyeon.defaults");
154
154
  function ai(e) {
155
- return Y(e);
155
+ return M(e);
156
156
  }
157
157
  function li(e) {
158
158
  return ai(e);
@@ -280,7 +280,7 @@ function ln(e, t) {
280
280
  });
281
281
  }
282
282
  function G(e, t = "modelValue", n, a = (i) => i, l = (i) => i) {
283
- const i = ne(), o = Dt(t), r = o === t ? ia(t) : t, s = Y(
283
+ const i = ne(), o = Dt(t), r = o === t ? ia(t) : t, s = M(
284
284
  e[r] !== void 0 ? e[r] : n
285
285
  );
286
286
  function c() {
@@ -1018,7 +1018,7 @@ function Ai() {
1018
1018
  return window.matchMedia("(prefers-color-scheme)").media !== "not all";
1019
1019
  }
1020
1020
  function Yi(e) {
1021
- const t = en(), n = Oe(Oi(e)), a = Y(n.scheme), l = Y(n.theme), i = Y(n.themes), o = Y(n.palette), r = Y(!0), s = Y("");
1021
+ const t = en(), n = Oe(Oi(e)), a = M(n.scheme), l = M(n.theme), i = M(n.themes), o = M(n.palette), r = M(!0), s = M("");
1022
1022
  function c(h) {
1023
1023
  s.value = h.matches ? "dark" : "light";
1024
1024
  }
@@ -1034,8 +1034,8 @@ function Yi(e) {
1034
1034
  ...qe(":root", ct(b.value, "palette"))
1035
1035
  );
1036
1036
  for (const [g, _] of Object.entries(x.value)) {
1037
- const { colors: M, variables: E, isDark: P } = _, O = {
1038
- ...M,
1037
+ const { colors: Y, variables: E, isDark: P } = _, O = {
1038
+ ...Y,
1039
1039
  ...E
1040
1040
  }, A = P ? "dark" : "light";
1041
1041
  a.value === "auto" ? v.push(
@@ -1176,7 +1176,7 @@ const ha = Symbol.for("yuyeon.form"), Mi = K(
1176
1176
  "form"
1177
1177
  );
1178
1178
  function Ii(e) {
1179
- const t = G(e), n = X(!1), a = Y([]), l = Y([]), i = S(() => e.readonly), o = S(() => e.disabled), r = S(() => e.loading);
1179
+ const t = G(e), n = X(!1), a = M([]), l = M([]), i = S(() => e.readonly), o = S(() => e.disabled), r = S(() => e.loading);
1180
1180
  async function s() {
1181
1181
  var w;
1182
1182
  const x = [];
@@ -1262,7 +1262,7 @@ const Pi = K(
1262
1262
  function $i(e, t, n = We()) {
1263
1263
  const a = S(() => e.name ?? n), l = G(e, "modelValue"), i = S(
1264
1264
  () => e.validationValue === void 0 ? l.value : e.validationValue
1265
- ), o = ne(), r = Bi(), s = Y(!1), c = S(() => {
1265
+ ), o = ne(), r = Bi(), s = M(!1), c = S(() => {
1266
1266
  let h = e.validateOn || "input";
1267
1267
  h === "lazy" && (h = "input,lazy");
1268
1268
  const v = new Set((h == null ? void 0 : h.split(",")) ?? []);
@@ -1272,7 +1272,7 @@ function $i(e, t, n = We()) {
1272
1272
  lazy: v.has("lazy"),
1273
1273
  submit: v.has("submit")
1274
1274
  };
1275
- }), u = Y(), y = Y([]), b = S(() => e.readonly || (r == null ? void 0 : r.isReadonly.value)), x = S(() => e.disabled || (r == null ? void 0 : r.isDisabled.value)), D = S(() => e.loading || (r == null ? void 0 : r.isLoading.value)), w = S(() => e.status === "error" || y.value.length > 0), m = S(() => !w.value && e.status === "success");
1275
+ }), u = M(), y = M([]), b = S(() => e.readonly || (r == null ? void 0 : r.isReadonly.value)), x = S(() => e.disabled || (r == null ? void 0 : r.isDisabled.value)), D = S(() => e.loading || (r == null ? void 0 : r.isLoading.value)), w = S(() => e.status === "error" || y.value.length > 0), m = S(() => !w.value && e.status === "success");
1276
1276
  ln(
1277
1277
  () => c.value.input,
1278
1278
  () => {
@@ -1444,14 +1444,14 @@ const we = "y-input", lt = K({
1444
1444
  isSuccess: f,
1445
1445
  errors: C,
1446
1446
  errorResult: T
1447
- } = $i(e, we, i), h = Y(), v = Y(), g = Y();
1448
- Y();
1449
- const _ = X(!1), M = S(() => e.variation ? e.variation.split(",").map(($) => $.trim()) : []), E = S(() => e.floated || !!e.placeholder || !e.placeholder && r.value || !!g.value), P = S(() => ({
1447
+ } = $i(e, we, i), h = M(), v = M(), g = M();
1448
+ M();
1449
+ const _ = X(!1), Y = S(() => e.variation ? e.variation.split(",").map(($) => $.trim()) : []), E = S(() => e.floated || !!e.placeholder || !e.placeholder && r.value || !!g.value), P = S(() => ({
1450
1450
  // Style
1451
1451
  [o.value]: !0,
1452
1452
  "y-input--ceramic": !!e.ceramic,
1453
- "y-input--outlined": !e.ceramic && (M.value.includes("outlined") || !!e.outlined),
1454
- "y-input--filled": M.value.includes("filled") || !!e.filled,
1453
+ "y-input--outlined": !e.ceramic && (Y.value.includes("outlined") || !!e.outlined),
1454
+ "y-input--filled": Y.value.includes("filled") || !!e.filled,
1455
1455
  // Value
1456
1456
  "y-input--loading": x.value,
1457
1457
  "y-input--has-value": !!g.value,
@@ -1619,11 +1619,11 @@ const we = "y-input", lt = K({
1619
1619
  emit: a,
1620
1620
  slots: l
1621
1621
  }) {
1622
- const i = Y(), o = Y(), {
1622
+ const i = M(), o = M(), {
1623
1623
  focused: r,
1624
1624
  whenFocus: s,
1625
1625
  whenBlur: c
1626
- } = on(e, "y-field-input"), u = Y(""), y = Y(""), b = re(e, "type"), x = S(() => ({
1626
+ } = on(e, "y-field-input"), u = M(""), y = M(""), b = re(e, "type"), x = S(() => ({
1627
1627
  [st]: !0,
1628
1628
  [`${st}--inline-label`]: !!e.inlineLabel
1629
1629
  }));
@@ -1660,7 +1660,7 @@ const we = "y-input", lt = K({
1660
1660
  var p;
1661
1661
  (p = o.value) == null || p.focus();
1662
1662
  }
1663
- function M() {
1663
+ function Y() {
1664
1664
  var p;
1665
1665
  (p = o.value) == null || p.select();
1666
1666
  }
@@ -1689,7 +1689,7 @@ const we = "y-input", lt = K({
1689
1689
  });
1690
1690
  const O = {
1691
1691
  focus: _,
1692
- select: M,
1692
+ select: Y,
1693
1693
  clear: E
1694
1694
  };
1695
1695
  n({
@@ -1833,7 +1833,7 @@ const we = "y-input", lt = K({
1833
1833
  slots: a,
1834
1834
  expose: l
1835
1835
  }) {
1836
- const i = We(), o = Y(), r = Y(), s = Y(""), c = Y(""), {
1836
+ const i = We(), o = M(), r = M(), s = M(""), c = M(""), {
1837
1837
  focused: u,
1838
1838
  whenFocus: y,
1839
1839
  whenBlur: b
@@ -1846,9 +1846,9 @@ const we = "y-input", lt = K({
1846
1846
  displayText: _
1847
1847
  } = e;
1848
1848
  if (_ !== void 0) {
1849
- let M = s.value;
1850
- typeof _ == "string" && (M = _), _ && typeof _ == "function" && (M = _.call(g, M)), se(() => {
1851
- c.value = M;
1849
+ let Y = s.value;
1850
+ typeof _ == "string" && (Y = _), _ && typeof _ == "function" && (Y = _.call(g, Y)), se(() => {
1851
+ c.value = Y;
1852
1852
  });
1853
1853
  }
1854
1854
  }
@@ -1900,12 +1900,12 @@ const we = "y-input", lt = K({
1900
1900
  "onMousedown:display": (_) => n("mousedown:display", _)
1901
1901
  }), {
1902
1902
  default: (_) => {
1903
- var M, E;
1903
+ var Y, E;
1904
1904
  return d("div", {
1905
1905
  class: [`${Nn}__field`],
1906
1906
  "data-id": _.attrId,
1907
1907
  ref: "field"
1908
- }, [e.floating ? (E = (M = o.value) == null ? void 0 : M.createLabel) == null ? void 0 : E.call(M) : void 0, a.default ? () => a.default(_) : void 0, d("textarea", H({
1908
+ }, [e.floating ? (E = (Y = o.value) == null ? void 0 : Y.createLabel) == null ? void 0 : E.call(Y) : void 0, a.default ? () => a.default(_) : void 0, d("textarea", H({
1909
1909
  ref: r,
1910
1910
  value: c.value,
1911
1911
  id: `y-input--${i}`,
@@ -1951,7 +1951,7 @@ const we = "y-input", lt = K({
1951
1951
  slots: n,
1952
1952
  expose: a
1953
1953
  }) {
1954
- const l = Ii(e), i = Y();
1954
+ const l = Ii(e), i = M();
1955
1955
  function o(s) {
1956
1956
  const c = l.validate(), u = Jl(s, c);
1957
1957
  t("submit", u), u.defaultPrevented || c.then(({
@@ -2026,7 +2026,7 @@ function ba(e, t, n) {
2026
2026
  };
2027
2027
  }
2028
2028
  function ji(e) {
2029
- const t = X((e == null ? void 0 : e.locale) ?? "en"), n = X((e == null ? void 0 : e.fallbackLocale) ?? "en"), a = Y({
2029
+ const t = X((e == null ? void 0 : e.locale) ?? "en"), n = X((e == null ? void 0 : e.fallbackLocale) ?? "en"), a = M({
2030
2030
  en: Fi,
2031
2031
  ...e == null ? void 0 : e.messages
2032
2032
  }), l = ba(t, n, a);
@@ -2125,7 +2125,7 @@ const Wi = {
2125
2125
  zhHant: !1
2126
2126
  }, wa = Symbol.for("yuyeon.i18n");
2127
2127
  function zi(e, t) {
2128
- const n = Y(
2128
+ const n = M(
2129
2129
  (t == null ? void 0 : t.rtlOptions) ?? Hi
2130
2130
  ), a = S(() => n.value[e.locale.value] ?? !1), l = S(() => `y-i18n--${a.value ? "rtl" : "ltr"}`);
2131
2131
  return {
@@ -2683,7 +2683,7 @@ const Rn = typeof window < "u", pa = {
2683
2683
  canUseResizeObserver: Rn && "ResizeObserver" in window
2684
2684
  };
2685
2685
  function Be(e) {
2686
- const t = Y(), n = Y();
2686
+ const t = M(), n = M();
2687
2687
  if (pa.canUseResizeObserver) {
2688
2688
  const a = new ResizeObserver((l, i) => {
2689
2689
  e == null || e(l, i), l.length && (n.value = l[0].contentRect);
@@ -2704,7 +2704,7 @@ function Be(e) {
2704
2704
  };
2705
2705
  }
2706
2706
  function er(e, t) {
2707
- const n = Y(!1), a = Y();
2707
+ const n = M(!1), a = M();
2708
2708
  a.value = t.value;
2709
2709
  const l = S(() => e.value ? t.value : a.value);
2710
2710
  R(t, () => {
@@ -2722,7 +2722,7 @@ function er(e, t) {
2722
2722
  function tr(e, t, n) {
2723
2723
  const { tickDuration: a } = {};
2724
2724
  let l = a ?? 100, i = -1;
2725
- const o = Y(0), r = Y(ve(t)), s = Y(!1);
2725
+ const o = M(0), r = M(ve(t)), s = M(!1);
2726
2726
  function c() {
2727
2727
  const x = Date.now(), D = x - o.value;
2728
2728
  let w = l;
@@ -2958,19 +2958,19 @@ function sn(e, t = 0, n = {
2958
2958
  throw new TypeError("NOT Function");
2959
2959
  t = +t || 0, Zl(n) && (u = !!n.leading, y = "maxWait" in n, i = y ? Math.max(+((n == null ? void 0 : n.maxWait) || 0), t) : i, b = "trailing" in n ? !!n.trailing : b);
2960
2960
  function x(g) {
2961
- const _ = a, M = l;
2962
- return a = l = void 0, c = g, o = e.apply(M, _), o;
2961
+ const _ = a, Y = l;
2962
+ return a = l = void 0, c = g, o = e.apply(Y, _), o;
2963
2963
  }
2964
2964
  function D(g) {
2965
2965
  return c = g, r = window.setTimeout(f, t), u ? x(g) : o;
2966
2966
  }
2967
2967
  function w(g) {
2968
- var _ = g - (s ?? 0), M = g - (c ?? 0), E = t - _;
2969
- return y ? Math.min(E, (i ?? 0) - M) : E;
2968
+ var _ = g - (s ?? 0), Y = g - (c ?? 0), E = t - _;
2969
+ return y ? Math.min(E, (i ?? 0) - Y) : E;
2970
2970
  }
2971
2971
  function m(g) {
2972
- var _ = g - (s ?? 0), M = g - (c ?? 0);
2973
- return s === void 0 || _ >= t || _ < 0 || y && M >= (i ?? 0);
2972
+ var _ = g - (s ?? 0), Y = g - (c ?? 0);
2973
+ return s === void 0 || _ >= t || _ < 0 || y && Y >= (i ?? 0);
2974
2974
  }
2975
2975
  function f() {
2976
2976
  const g = Date.now();
@@ -3327,7 +3327,7 @@ const Oa = K({
3327
3327
  emit: t,
3328
3328
  slots: n
3329
3329
  }) {
3330
- const l = `input-${(We() ?? "").toString()}`, i = Y(), o = G(e), r = Y(!1), s = Y(!1), c = S(() => Array.isArray(o.value)), u = S(() => c.value ? o.value.findIndex((h) => h === e.value) : -1), y = S(() => ({
3330
+ const l = `input-${(We() ?? "").toString()}`, i = M(), o = G(e), r = M(!1), s = M(!1), c = S(() => Array.isArray(o.value)), u = S(() => c.value ? o.value.findIndex((h) => h === e.value) : -1), y = S(() => ({
3331
3331
  "y-switch--active": r.value,
3332
3332
  "y-switch--focused": s.value,
3333
3333
  "y-switch--disabled": !!e.disabled,
@@ -3462,7 +3462,7 @@ function zn(e, t) {
3462
3462
  );
3463
3463
  }
3464
3464
  function gr(e, t, n, a) {
3465
- const { contentEl: l, base: i } = t, o = Y(!1), r = Y([!1, !1]), [s, c, u, y] = ["minWidth", "minHeight", "maxWidth", "maxHeight"].map((h) => S(() => {
3465
+ const { contentEl: l, base: i } = t, o = M(!1), r = M([!1, !1]), [s, c, u, y] = ["minWidth", "minHeight", "maxWidth", "maxHeight"].map((h) => S(() => {
3466
3466
  const v = parseFloat(e[h]);
3467
3467
  return Number.isNaN(v) ? 1 / 0 : v;
3468
3468
  })), { preferredAnchor: b, preferredOrigin: x } = rr(() => {
@@ -3505,9 +3505,9 @@ function gr(e, t, n, a) {
3505
3505
  y: (h == null ? void 0 : h[1]) ?? 0,
3506
3506
  width: 0,
3507
3507
  height: 0
3508
- }) : h.getBoundingClientRect(), _ = C(v), M = wt(v);
3509
- M.length < 1 && M.push(document.documentElement);
3510
- const E = M.reduce(
3508
+ }) : h.getBoundingClientRect(), _ = C(v), Y = wt(v);
3509
+ Y.length < 1 && Y.push(document.documentElement);
3510
+ const E = Y.reduce(
3511
3511
  (N, L) => {
3512
3512
  const $ = L.getBoundingClientRect(), j = new Xe({
3513
3513
  x: L === document.documentElement ? 0 : $.x,
@@ -3702,7 +3702,7 @@ const br = {
3702
3702
  "Coordinate"
3703
3703
  );
3704
3704
  function wr(e, t) {
3705
- const n = Y(), a = Y({
3705
+ const n = M(), a = M({
3706
3706
  side: "",
3707
3707
  align: "",
3708
3708
  offset: [0, 0],
@@ -3712,7 +3712,7 @@ function wr(e, t) {
3712
3712
  width: 0,
3713
3713
  height: 0
3714
3714
  }
3715
- }), l = Y({});
3715
+ }), l = M({});
3716
3716
  ln(
3717
3717
  () => !!(t.active.value && e.coordinateStrategy),
3718
3718
  (o) => {
@@ -3881,7 +3881,7 @@ const _r = {
3881
3881
  "YLayer.base"
3882
3882
  );
3883
3883
  function Er(e) {
3884
- const t = ne(), n = Y(), a = Y(), l = Y(), i = S(() => {
3884
+ const t = ne(), n = M(), a = M(), l = M(), i = S(() => {
3885
3885
  var s, c;
3886
3886
  const r = (c = (s = a.value) == null ? void 0 : s[0]) == null ? void 0 : c.el;
3887
3887
  if (r && r.nodeType === Node.ELEMENT_NODE)
@@ -4136,7 +4136,7 @@ const Ue = K({
4136
4136
  attrs: a,
4137
4137
  slots: l
4138
4138
  }) {
4139
- const i = ne(), o = Y(), r = Y(), s = Y(), c = G(e), u = S({
4139
+ const i = ne(), o = M(), r = M(), s = M(), c = G(e), u = S({
4140
4140
  get: () => !!c.value,
4141
4141
  set: (le) => {
4142
4142
  le && e.disabled || (c.value = le);
@@ -4161,9 +4161,9 @@ const Ue = K({
4161
4161
  dimensionStyles: g
4162
4162
  } = xr(e), {
4163
4163
  lazyValue: _,
4164
- onAfterUpdate: M
4165
- } = er(re(e, "eager"), u), E = X(!1), P = Y(!1);
4166
- Y(!1);
4164
+ onAfterUpdate: Y
4165
+ } = er(re(e, "eager"), u), E = X(!1), P = M(!1);
4166
+ M(!1);
4167
4167
  const O = re(e, "disabled");
4168
4168
  re(e, "maximized");
4169
4169
  const A = S(() => !O.value && (_.value || u.value)), {
@@ -4197,7 +4197,7 @@ const Ue = K({
4197
4197
  E.value = !0, t("afterEnter");
4198
4198
  }
4199
4199
  function $() {
4200
- M(), E.value = !1, t("afterLeave");
4200
+ Y(), E.value = !1, t("afterLeave");
4201
4201
  }
4202
4202
  function j() {
4203
4203
  e.closeClickScrim && (u.value = !1);
@@ -4235,7 +4235,7 @@ const Ue = K({
4235
4235
  content$: S(() => r.value),
4236
4236
  baseEl: x,
4237
4237
  active: u,
4238
- onAfterUpdate: M,
4238
+ onAfterUpdate: Y,
4239
4239
  updateCoordinate: I,
4240
4240
  hovered: P,
4241
4241
  finish: E,
@@ -4324,7 +4324,7 @@ const Ue = K({
4324
4324
  finish: E,
4325
4325
  rendered: A,
4326
4326
  lazyValue: _,
4327
- onAfterUpdate: M,
4327
+ onAfterUpdate: Y,
4328
4328
  scrim$: o,
4329
4329
  content$: r,
4330
4330
  base: y,
@@ -4415,15 +4415,15 @@ const $a = K({
4415
4415
  })), r = S(() => ({
4416
4416
  ...e.contentStyles ?? {},
4417
4417
  paddingTop: U(e.offset)
4418
- })), s = Y(), {
4418
+ })), s = M(), {
4419
4419
  children: c
4420
4420
  } = Pa(s, i, X(!0));
4421
4421
  function u(T) {
4422
- var M, E, P, O;
4422
+ var Y, E, P, O;
4423
4423
  if (e.focusTrap === !1)
4424
4424
  return;
4425
4425
  const h = T.relatedTarget, v = T.target, g = e.focusTrap;
4426
- if (typeof g == "string" && ((M = document.querySelector(g)) != null && M.isSameNode(v)))
4426
+ if (typeof g == "string" && ((Y = document.querySelector(g)) != null && Y.isSameNode(v)))
4427
4427
  return;
4428
4428
  if (typeof g == "object") {
4429
4429
  if (Array.isArray(g)) {
@@ -4456,27 +4456,27 @@ const $a = K({
4456
4456
  function b() {
4457
4457
  document.removeEventListener("focusin", u);
4458
4458
  }
4459
- const x = Y(0), D = Y(0);
4459
+ const x = M(0), D = M(0);
4460
4460
  function w(T) {
4461
4461
  var g;
4462
4462
  const h = l.root, v = (g = s.value) == null ? void 0 : g.getActiveLayers();
4463
4463
  if (T) {
4464
4464
  e.maximized && document.documentElement.classList.add("y-dialog--prevent-scroll");
4465
- const _ = v == null ? void 0 : v.filter((M) => M.ctx.modal);
4465
+ const _ = v == null ? void 0 : v.filter((Y) => Y.ctx.modal);
4466
4466
  if (_ && !_.length || !h.classList.contains("y-dialog--virtual-scroll")) {
4467
- const M = document.documentElement.scrollTop, E = document.documentElement.scrollLeft;
4468
- x.value = M, D.value = E, h.classList.add("y-dialog--virtual-scroll"), h.style.top = U(-1 * M) || "", h.style.left = U(-1 * E) || "";
4467
+ const Y = document.documentElement.scrollTop, E = document.documentElement.scrollLeft;
4468
+ x.value = Y, D.value = E, h.classList.add("y-dialog--virtual-scroll"), h.style.top = U(-1 * Y) || "", h.style.left = U(-1 * E) || "";
4469
4469
  }
4470
4470
  } else {
4471
- const _ = v == null ? void 0 : v.filter((M) => {
4471
+ const _ = v == null ? void 0 : v.filter((Y) => {
4472
4472
  var E;
4473
- return !((E = s.value) != null && E.isMe(M)) && M.ctx.modal;
4473
+ return !((E = s.value) != null && E.isMe(Y)) && Y.ctx.modal;
4474
4474
  });
4475
4475
  !(_ != null && _.length) && h ? (document.documentElement.classList.remove("y-dialog--prevent-scroll"), h.classList.remove("y-dialog--virtual-scroll"), h.style.top = "", h.style.left = "", requestAnimationFrame(() => {
4476
4476
  document.documentElement.scrollTop = x.value, document.documentElement.scrollLeft = D.value;
4477
- })) : _.every((M) => {
4477
+ })) : _.every((Y) => {
4478
4478
  var E;
4479
- return !((E = M.ctx) != null && E.maximized);
4479
+ return !((E = Y.ctx) != null && E.maximized);
4480
4480
  }) && document.documentElement.classList.remove("y-dialog--prevent-scroll");
4481
4481
  }
4482
4482
  }
@@ -4619,7 +4619,7 @@ const je = /* @__PURE__ */ F({
4619
4619
  emit: t,
4620
4620
  slots: n
4621
4621
  }) {
4622
- const a = G(e), l = Y(!1), i = re(e, "duration"), o = S(() => ({
4622
+ const a = G(e), l = M(!1), i = re(e, "duration"), o = S(() => ({
4623
4623
  "y-snackbar": !0
4624
4624
  })), r = S(() => ({
4625
4625
  ...Ae(e.contentClasses),
@@ -4757,7 +4757,7 @@ const Vr = "YTooltip", Rr = {
4757
4757
  emit: n,
4758
4758
  expose: a
4759
4759
  }) {
4760
- const l = Y(), i = Y(), o = S(() => {
4760
+ const l = M(), i = M(), o = S(() => {
4761
4761
  var f;
4762
4762
  return (f = l.value) == null ? void 0 : f.baseEl;
4763
4763
  }), r = S(() => ({
@@ -4905,7 +4905,7 @@ function Fa(e = !1) {
4905
4905
  relay: Boolean
4906
4906
  },
4907
4907
  setup(o, { slots: r }) {
4908
- const s = Y();
4908
+ const s = M();
4909
4909
  return () => de(
4910
4910
  _t,
4911
4911
  {
@@ -4923,7 +4923,7 @@ const ja = Fa(!1), jr = Fa(!0), Kr = /* @__PURE__ */ an({
4923
4923
  setup(e, {
4924
4924
  slots: t
4925
4925
  }) {
4926
- const n = Y(50), a = Y(!1), l = Y(), i = Y(!1), o = Y();
4926
+ const n = M(50), a = M(!1), l = M(), i = M(!1), o = M();
4927
4927
  R(l, (D) => {
4928
4928
  i.value = !!D;
4929
4929
  });
@@ -5005,7 +5005,7 @@ const ja = Fa(!1), jr = Fa(!0), Kr = /* @__PURE__ */ an({
5005
5005
  "abstract.items"
5006
5006
  ), Ka = Symbol.for("YTreeView");
5007
5007
  function Wr(e) {
5008
- const t = Y({}), n = G(e, "expanded"), a = G(e, "active"), l = G(e, "selected"), i = Y(/* @__PURE__ */ new Set()), o = Y(/* @__PURE__ */ new Set()), r = Y(/* @__PURE__ */ new Set()), s = X(!1), c = Y(/* @__PURE__ */ new Set()), u = S(() => {
5008
+ const t = M({}), n = G(e, "expanded"), a = G(e, "active"), l = G(e, "selected"), i = M(/* @__PURE__ */ new Set()), o = M(/* @__PURE__ */ new Set()), r = M(/* @__PURE__ */ new Set()), s = X(!1), c = M(/* @__PURE__ */ new Set()), u = S(() => {
5009
5009
  let E = !1, P = !1;
5010
5010
  return (O, A) => (E = A.every((p) => o.value.has(p)), P = y(O).some((p) => o.value.has(p)), {
5011
5011
  all: E,
@@ -5121,11 +5121,11 @@ function Wr(e) {
5121
5121
  const E = [...o.value];
5122
5122
  l.value = e.returnItem ? E.map((P) => t.value[P].item) : E;
5123
5123
  }
5124
- function M(E, P) {
5124
+ function Y(E, P) {
5125
5125
  t.value[E] && (t.value[E].vnode = P), x(E);
5126
5126
  }
5127
5127
  return ce(Ka, {
5128
- register: M,
5128
+ register: Y,
5129
5129
  updateExpanded: D,
5130
5130
  updateActive: w,
5131
5131
  updateSelected: m,
@@ -5443,7 +5443,7 @@ const _e = /* @__PURE__ */ F({
5443
5443
  slots: t,
5444
5444
  expose: n
5445
5445
  }) {
5446
- const a = Gl("YTreeViewNode", !0), l = Hr(), i = Y(), o = Y(!1), r = Y(!1), s = Y(!1), c = Y(!1), u = S(() => Z(e.item, e.itemKey)), y = S(() => (Z(e.item, e.itemChildren) ?? []).slice()), b = S(() => y.value.length < 1), x = S(() => l.searchLoading.value), D = S(() => y.value.filter((B) => !l.isExcluded(Z(B, e.itemKey)))), w = S(() => l.selectedState.value(u.value, y.value.map((B) => Z(B, e.itemKey)))), m = S(() => {
5446
+ const a = Gl("YTreeViewNode", !0), l = Hr(), i = M(), o = M(!1), r = M(!1), s = M(!1), c = M(!1), u = S(() => Z(e.item, e.itemKey)), y = S(() => (Z(e.item, e.itemChildren) ?? []).slice()), b = S(() => y.value.length < 1), x = S(() => l.searchLoading.value), D = S(() => y.value.filter((B) => !l.isExcluded(Z(B, e.itemKey)))), w = S(() => l.selectedState.value(u.value, y.value.map((B) => Z(B, e.itemKey)))), m = S(() => {
5447
5447
  var B;
5448
5448
  return !!((B = y.value) != null && B.length) && w.value.all;
5449
5449
  }), f = S(() => {
@@ -5465,17 +5465,17 @@ const _e = /* @__PURE__ */ F({
5465
5465
  }), _ = S(() => ({
5466
5466
  level: e.level,
5467
5467
  imLeaf: b.value,
5468
- toggleActive: M
5468
+ toggleActive: Y
5469
5469
  }));
5470
5470
  R(f, (B) => {
5471
5471
  c.value = B;
5472
5472
  });
5473
- function M(B) {
5473
+ function Y(B) {
5474
5474
  const N = !r.value;
5475
5475
  r.value = N, l.updateActive(u.value, N, B), l.emitActive();
5476
5476
  }
5477
5477
  function E(B) {
5478
- M(B);
5478
+ Y(B);
5479
5479
  }
5480
5480
  function P(B) {
5481
5481
  B.stopPropagation();
@@ -5691,7 +5691,7 @@ const ea = hn(), qr = /* @__PURE__ */ an({
5691
5691
  slots: t,
5692
5692
  expose: n
5693
5693
  }) {
5694
- const a = X(sn(g, e.searchDebounceWait)), l = Y([]), {
5694
+ const a = X(sn(g, e.searchDebounceWait)), l = M([]), {
5695
5695
  nodes: i,
5696
5696
  expanded: o,
5697
5697
  active: r,
@@ -5730,7 +5730,7 @@ const ea = hn(), qr = /* @__PURE__ */ an({
5730
5730
  function _(k) {
5731
5731
  return e.returnItem ? Z(k, e.itemKey) : k;
5732
5732
  }
5733
- function M(k, I = null, V = 0) {
5733
+ function Y(k, I = null, V = 0) {
5734
5734
  var B, N, L;
5735
5735
  for (const $ of k) {
5736
5736
  const j = Z($, e.itemKey), ie = Z($, e.itemChildren) ?? [], ue = Object.hasOwn(i.value, j) ? i.value[j] : {
@@ -5750,7 +5750,7 @@ const ea = hn(), qr = /* @__PURE__ */ an({
5750
5750
  indeterminate: ue.indeterminate,
5751
5751
  selected: ue.selected
5752
5752
  };
5753
- M(ie, j, V + 1), i.value[j] = q, i.value[j].expanded && c.value.add(j), i.value[j].selected && u.value.add(j), i.value[j].active && y.value.add(j), D(j);
5753
+ Y(ie, j, V + 1), i.value[j] = q, i.value[j].expanded && c.value.add(j), i.value[j].selected && u.value.add(j), i.value[j].active && y.value.add(j), D(j);
5754
5754
  }
5755
5755
  }
5756
5756
  R(c, (k) => {
@@ -5785,11 +5785,11 @@ const ea = hn(), qr = /* @__PURE__ */ an({
5785
5785
  delete i.value[$];
5786
5786
  });
5787
5787
  const N = [...u.value], L = [...y.value];
5788
- u.value.clear(), c.value.clear(), y.value.clear(), M(k), ke(N, [...u.value]) || h(), ke(L, [...y.value]) || T(), a.value(k, e.search, e.filter);
5788
+ u.value.clear(), c.value.clear(), y.value.clear(), Y(k), ke(N, [...u.value]) || h(), ke(L, [...y.value]) || T(), a.value(k, e.search, e.filter);
5789
5789
  }, {
5790
5790
  deep: !0,
5791
5791
  flush: "sync"
5792
- }), M(e.items);
5792
+ }), Y(e.items);
5793
5793
  const O = S(() => e.items.slice().filter((k) => !v(Z(k, e.itemKey)))), A = S(() => ({
5794
5794
  "y-tree-view": !0
5795
5795
  })), p = S(() => {
@@ -5895,7 +5895,7 @@ const ea = hn(), qr = /* @__PURE__ */ an({
5895
5895
  slots: t,
5896
5896
  attrs: n
5897
5897
  }) {
5898
- const a = Y(), {
5898
+ const a = M(), {
5899
5899
  themeClasses: l
5900
5900
  } = ze(e), i = X(!1);
5901
5901
  function o(u) {
@@ -5926,7 +5926,7 @@ const ea = hn(), qr = /* @__PURE__ */ an({
5926
5926
  }
5927
5927
  });
5928
5928
  function Xr() {
5929
- const e = Y(), t = Y(), n = X(), a = X(), l = X(), i = sn(r, 100), { resizeObservedRef: o } = Be((s) => {
5929
+ const e = M(), t = M(), n = X(), a = X(), l = X(), i = sn(r, 100), { resizeObservedRef: o } = Be((s) => {
5930
5930
  i(s);
5931
5931
  });
5932
5932
  function r(s) {
@@ -6091,7 +6091,7 @@ const Jr = K(
6091
6091
  "YDataTable--header"
6092
6092
  ), qt = Symbol.for("yuyeon.data-table.header");
6093
6093
  function Qa(e, t) {
6094
- const n = Y([]), a = Y([]);
6094
+ const n = M([]), a = M([]);
6095
6095
  Ke(() => {
6096
6096
  var x, D;
6097
6097
  const i = (x = e.headers) != null && x.length ? [e.headers] : [], o = i.flatMap(
@@ -6182,7 +6182,7 @@ const Qr = K(
6182
6182
  "YDataTable--items"
6183
6183
  );
6184
6184
  function eo(e, t, n, a) {
6185
- const l = Y(null), i = Ce(t, e.itemKey), o = e.returnItem ? t : i;
6185
+ const l = M(null), i = Ce(t, e.itemKey), o = e.returnItem ? t : i;
6186
6186
  let r;
6187
6187
  typeof e.itemSelectable == "function" ? r = !!e.itemSelectable(t) : r = Ce(t, e.itemSelectable, !0);
6188
6188
  const s = a.reduce(
@@ -6649,9 +6649,9 @@ const St = /* @__PURE__ */ F({
6649
6649
  }, ...T.value]
6650
6650
  }, h), {
6651
6651
  default: () => {
6652
- var _, M;
6652
+ var _, Y;
6653
6653
  const g = `item.${w.key}`;
6654
- return t[g] ? (_ = t[g]) == null ? void 0 : _.call(t, C) : w.key === "data-table-select" ? ((M = t["item.data-table-select"]) == null ? void 0 : M.call(t, C)) ?? d(ee, {
6654
+ return t[g] ? (_ = t[g]) == null ? void 0 : _.call(t, C) : w.key === "data-table-select" ? ((Y = t["item.data-table-select"]) == null ? void 0 : Y.call(t, C)) ?? d(ee, {
6655
6655
  variation: "text,small",
6656
6656
  disabled: !f.selectable,
6657
6657
  onClick: (E) => {
@@ -6794,7 +6794,7 @@ const St = /* @__PURE__ */ F({
6794
6794
  }
6795
6795
  });
6796
6796
  function fo() {
6797
- const e = Y([]);
6797
+ const e = M([]);
6798
6798
  ql(() => e.value = []);
6799
6799
  function t(n, a) {
6800
6800
  e.value[a] = n;
@@ -7159,8 +7159,8 @@ const dl = K({
7159
7159
  return t[T] ? (v = t[T]) == null ? void 0 : v.call(t, h) : m.key === "data-table-select" ? ((g = t["header.data-table-select"]) == null ? void 0 : g.call(t, h)) ?? (s && d(ee, {
7160
7160
  variation: "text,small",
7161
7161
  disabled: c.value.length < 1,
7162
- onClick: (M) => {
7163
- M.stopPropagation(), r(!o.value);
7162
+ onClick: (Y) => {
7163
+ Y.stopPropagation(), r(!o.value);
7164
7164
  }
7165
7165
  }, {
7166
7166
  default: () => [d(_e, {
@@ -7176,8 +7176,8 @@ const dl = K({
7176
7176
  class: ["y-data-table-header__sorting-icon", {
7177
7177
  "y-data-table-header__sorting-icon--disabled": !m.sortable
7178
7178
  }],
7179
- onClick: m.sortable ? (M) => {
7180
- M.stopPropagation(), n(m);
7179
+ onClick: m.sortable ? (Y) => {
7180
+ Y.stopPropagation(), n(m);
7181
7181
  } : void 0
7182
7182
  }, [d(mn, {
7183
7183
  disabled: !m.sortable,
@@ -7253,7 +7253,7 @@ const dl = K({
7253
7253
  slots: t,
7254
7254
  emit: n
7255
7255
  }) {
7256
- const a = Y(), {
7256
+ const a = M(), {
7257
7257
  page: l,
7258
7258
  pageSize: i
7259
7259
  } = nl(e), {
@@ -7296,7 +7296,7 @@ const dl = K({
7296
7296
  select: v,
7297
7297
  selectAll: g,
7298
7298
  toggleSelect: _,
7299
- someSelected: M,
7299
+ someSelected: Y,
7300
7300
  allSelected: E
7301
7301
  } = rl(e, {
7302
7302
  allItems: u,
@@ -7328,7 +7328,7 @@ const dl = K({
7328
7328
  isExpanded: P,
7329
7329
  toggleExpand: O,
7330
7330
  // selection
7331
- someSelected: M.value,
7331
+ someSelected: Y.value,
7332
7332
  allSelected: E.value,
7333
7333
  isSelected: h,
7334
7334
  select: v,
@@ -7421,7 +7421,7 @@ const dl = K({
7421
7421
  slots: t,
7422
7422
  emit: n
7423
7423
  }) {
7424
- const a = Y(), {
7424
+ const a = M(), {
7425
7425
  page: l,
7426
7426
  pageSize: i
7427
7427
  } = nl(e), {
@@ -7461,7 +7461,7 @@ const dl = K({
7461
7461
  }), {
7462
7462
  isExpanded: g,
7463
7463
  toggleExpand: _
7464
- } = Za(e), M = Y(), E = sn(A, 100), {
7464
+ } = Za(e), Y = M(), E = sn(A, 100), {
7465
7465
  resizeObservedRef: P
7466
7466
  } = Be((p) => {
7467
7467
  E(p);
@@ -7500,12 +7500,12 @@ const dl = K({
7500
7500
  TableBodyRef: a
7501
7501
  }));
7502
7502
  function A(p) {
7503
- M.value = p == null ? void 0 : p[0].contentRect;
7503
+ Y.value = p == null ? void 0 : p[0].contentRect;
7504
7504
  }
7505
7505
  ce(wn, {
7506
7506
  toggleSort: b,
7507
7507
  sortBy: o,
7508
- headRect: M
7508
+ headRect: Y
7509
7509
  }), W(() => {
7510
7510
  var V;
7511
7511
  const p = Q(e, Je.props), k = Q(e, Ve.props), I = Q(e, Le.props);
@@ -7515,7 +7515,7 @@ const dl = K({
7515
7515
  }]
7516
7516
  }, I, {
7517
7517
  style: {
7518
- "--y-table-head-height": U((V = M.value) == null ? void 0 : V.height)
7518
+ "--y-table-head-height": U((V = Y.value) == null ? void 0 : V.height)
7519
7519
  }
7520
7520
  }), {
7521
7521
  top: () => {
@@ -7567,7 +7567,7 @@ const dl = K({
7567
7567
  setup(e, {
7568
7568
  slots: t
7569
7569
  }) {
7570
- const n = X(null), a = Xl("layerRowRef"), l = X(null), i = X(!1), o = Y(), r = S(() => {
7570
+ const n = X(null), a = Xl("layerRowRef"), l = X(null), i = X(!1), o = M(), r = S(() => {
7571
7571
  var u, y, b, x, D, w, m;
7572
7572
  const c = ((b = e.styles) == null ? void 0 : b.call(e, e.item, {
7573
7573
  width: e.width,
@@ -7703,7 +7703,7 @@ const _n = {
7703
7703
  expose: a
7704
7704
  }) {
7705
7705
  ne();
7706
- const l = Y(), i = S(() => ({
7706
+ const l = M(), i = S(() => ({
7707
7707
  ...Ae(e.menuClasses),
7708
7708
  "y-menu": !0
7709
7709
  })), o = G(e), r = S(() => {
@@ -7749,8 +7749,8 @@ const _n = {
7749
7749
  }
7750
7750
  if (o.value) {
7751
7751
  c.value.length === 0 && (o.value = !1);
7752
- const M = (g = u == null ? void 0 : u.$el.value) == null ? void 0 : g.content$, E = (_ = u == null ? void 0 : u.$el.value) == null ? void 0 : _.modal;
7753
- !(M && !lr(v, M)) && !E && !e.preventCloseBubble && (u == null || u.clear());
7752
+ const Y = (g = u == null ? void 0 : u.$el.value) == null ? void 0 : g.content$, E = (_ = u == null ? void 0 : u.$el.value) == null ? void 0 : _.modal;
7753
+ !(Y && !lr(v, Y)) && !E && !e.preventCloseBubble && (u == null || u.clear());
7754
7754
  }
7755
7755
  }
7756
7756
  }
@@ -7931,7 +7931,7 @@ const _n = {
7931
7931
  emit: t,
7932
7932
  slots: n
7933
7933
  }) {
7934
- const a = Y(!1), l = Y(!1), i = (We() ?? "").toString(), o = `input-${i}`;
7934
+ const a = M(!1), l = M(!1), i = (We() ?? "").toString(), o = `input-${i}`;
7935
7935
  function r(w) {
7936
7936
  a.value = !0, t("focus", w);
7937
7937
  }
@@ -8162,7 +8162,7 @@ const Sl = K({
8162
8162
  attrs: t,
8163
8163
  slots: n
8164
8164
  }) {
8165
- const a = Y(), {
8165
+ const a = M(), {
8166
8166
  themeClasses: l
8167
8167
  } = ze(e), {
8168
8168
  iconData: i
@@ -8387,7 +8387,7 @@ const kl = K({
8387
8387
  expose: a,
8388
8388
  emit: l
8389
8389
  }) {
8390
- const i = Y(), o = Y(), r = Y(), s = Y(), c = G(e, "opened"), u = X(!1), {
8390
+ const i = M(), o = M(), r = M(), s = M(), c = G(e, "opened"), u = X(!1), {
8391
8391
  items: y,
8392
8392
  toRefineItems: b,
8393
8393
  toEmitItems: x
@@ -8426,7 +8426,7 @@ const kl = K({
8426
8426
  V != null && V.contains(document.activeElement) || c.value && e.closeOnBlur && (c.value = !1);
8427
8427
  });
8428
8428
  }
8429
- function M(I, V) {
8429
+ function Y(I, V) {
8430
8430
  I.disabled || (O(I, V), e.multiple || setTimeout(() => {
8431
8431
  c.value = !1;
8432
8432
  }, 40));
@@ -8548,7 +8548,7 @@ const kl = K({
8548
8548
  }
8549
8549
  };
8550
8550
  return Me(d(gn, {
8551
- onClick: (q) => M(te, q),
8551
+ onClick: (q) => Y(te, q),
8552
8552
  class: [{
8553
8553
  "y-list-item--active": h(te)
8554
8554
  }],
@@ -8627,7 +8627,7 @@ const kl = K({
8627
8627
  slots: t,
8628
8628
  attrs: n
8629
8629
  }) {
8630
- const a = X(!1), l = Y(), i = S(() => ({})), o = S(() => ({
8630
+ const a = X(!1), l = M(), i = S(() => ({})), o = S(() => ({
8631
8631
  role: "tab",
8632
8632
  "aria-selected": `${String(a.value)}`,
8633
8633
  tabindex: a.value ? 0 : -1
@@ -8731,7 +8731,7 @@ const kl = K({
8731
8731
  setup(e, {
8732
8732
  slots: t
8733
8733
  }) {
8734
- const n = Y(), a = S(() => {
8734
+ const n = M(), a = S(() => {
8735
8735
  const {
8736
8736
  variation: i
8737
8737
  } = e;
@@ -8804,7 +8804,7 @@ const kl = K({
8804
8804
  slots: t,
8805
8805
  emit: n
8806
8806
  }) {
8807
- const a = Tt(), l = it(), i = Y(), o = Y([]), r = G(e, "modelValue", [], (h) => h == null ? [] : Te(h)), s = S(() => r.value.length > 0 ? a.date(r.value[0]) : e.min ? a.date(e.min) : Array.isArray(e.allowedDates) ? a.date(e.allowedDates[0]) : a.date()), c = G(e, "year", void 0, (h) => {
8807
+ const a = Tt(), l = it(), i = M(), o = M([]), r = G(e, "modelValue", [], (h) => h == null ? [] : Te(h)), s = S(() => r.value.length > 0 ? a.date(r.value[0]) : e.min ? a.date(e.min) : Array.isArray(e.allowedDates) ? a.date(e.allowedDates[0]) : a.date()), c = G(e, "year", void 0, (h) => {
8808
8808
  const v = h != null ? Number(h) : a.getYear(s.value);
8809
8809
  return a.startOfYear(a.setYear(a.date(), v));
8810
8810
  }, (h) => a.getYear(h)), u = G(e, "month", void 0, (h) => {
@@ -8815,36 +8815,36 @@ const kl = K({
8815
8815
  const h = a.getWeekArray(u.value), v = h.flat(), g = 6 * 7;
8816
8816
  if (v.length < g) {
8817
8817
  const _ = v[v.length - 1];
8818
- let M = [];
8818
+ let Y = [];
8819
8819
  for (let E = 1; E <= g - v.length; E++)
8820
- M.push(a.addDays(_, E)), E % 7 === 0 && (h.push(M), M = []);
8820
+ Y.push(a.addDays(_, E)), E % 7 === 0 && (h.push(Y), Y = []);
8821
8821
  }
8822
8822
  return h;
8823
8823
  }), b = S(() => {
8824
8824
  const h = y.value, v = a.date();
8825
- return h.map((g, _) => g.map((M, E) => {
8825
+ return h.map((g, _) => g.map((Y, E) => {
8826
8826
  var p;
8827
- const P = a.toISO(M), O = !a.isSameMonth(M, u.value), A = !!((p = r.value) != null && p.find((k) => k != null && a.isSameDay(M, k)));
8827
+ const P = a.toISO(Y), O = !a.isSameMonth(Y, u.value), A = !!((p = r.value) != null && p.find((k) => k != null && a.isSameDay(Y, k)));
8828
8828
  return {
8829
- date: M,
8829
+ date: Y,
8830
8830
  isoDate: P,
8831
- formatted: a.format(M, "keyboardDate"),
8832
- year: a.getYear(M),
8833
- month: a.getMonth(M),
8834
- day: a.getDay(M),
8835
- disabled: f(M),
8831
+ formatted: a.format(Y, "keyboardDate"),
8832
+ year: a.getYear(Y),
8833
+ month: a.getMonth(Y),
8834
+ day: a.getDay(Y),
8835
+ disabled: f(Y),
8836
8836
  weekStart: E % 7 === 0,
8837
8837
  weekEnd: E % 7 === 6,
8838
- rangeStart: A && r.value.length > 1 && e.range && a.isSameDay(w.value, M),
8839
- rangeEnd: A && r.value.length === 2 && e.range && a.isSameDay(m.value, M),
8838
+ rangeStart: A && r.value.length > 1 && e.range && a.isSameDay(w.value, Y),
8839
+ rangeEnd: A && r.value.length === 2 && e.range && a.isSameDay(m.value, Y),
8840
8840
  weekIndex: _,
8841
8841
  selected: A,
8842
- interval: C(M),
8843
- today: a.isSameDay(M, v),
8842
+ interval: C(Y),
8843
+ today: a.isSameDay(Y, v),
8844
8844
  adjacent: O,
8845
8845
  hidden: O && !e.showAdjacentMonthDates,
8846
8846
  hovered: !1,
8847
- localized: a.format(M, "dayOfMonth")
8847
+ localized: a.format(Y, "dayOfMonth")
8848
8848
  };
8849
8849
  }));
8850
8850
  }), x = S(() => l.locale && a.getWeekdays()), D = S(() => a.format(u.value, "monthAndYear")), w = S(() => {
@@ -8880,8 +8880,8 @@ const kl = K({
8880
8880
  const g = r.value.findIndex((_) => a.isSameDay(_, v));
8881
8881
  if (e.range)
8882
8882
  if (r.value.length === 1) {
8883
- const _ = a.date(r.value[0]), M = a.date(v);
8884
- a.isAfter(_, M) ? r.value = [M, a.endOfDay(r.value[0])] : r.value = [a.startOfDay(r.value[0]), a.endOfDay(v)];
8883
+ const _ = a.date(r.value[0]), Y = a.date(v);
8884
+ a.isAfter(_, Y) ? r.value = [Y, a.endOfDay(r.value[0])] : r.value = [a.startOfDay(r.value[0]), a.endOfDay(v)];
8885
8885
  } else
8886
8886
  r.value = [v];
8887
8887
  else if (g === -1)
@@ -8916,7 +8916,7 @@ const kl = K({
8916
8916
  "aria-rowindex": v
8917
8917
  }, [h.map((g, _) => {
8918
8918
  var E;
8919
- const M = {
8919
+ const Y = {
8920
8920
  props: {
8921
8921
  onClick: () => {
8922
8922
  T(g);
@@ -8937,11 +8937,11 @@ const kl = K({
8937
8937
  "y-date-calendar__day--range-end": g.rangeEnd
8938
8938
  }],
8939
8939
  "data-date": g.disabled ? void 0 : g.isoDate
8940
- }, [(e.showAdjacentMonthDates || !g.adjacent) && d(J, null, [((E = t.day) == null ? void 0 : E.call(t, M)) ?? d(ee, H({
8940
+ }, [(e.showAdjacentMonthDates || !g.adjacent) && d(J, null, [((E = t.day) == null ? void 0 : E.call(t, Y)) ?? d(ee, H({
8941
8941
  color: (g.selected || g.today) && !g.disabled ? e.color : void 0,
8942
8942
  disabled: g.disabled,
8943
8943
  variation: ["rounded", g.selected ? "filled" : g.today ? "outlined" : "text"].join(",")
8944
- }, M.props), {
8944
+ }, Y.props), {
8945
8945
  default: () => [g.day]
8946
8946
  })])]);
8947
8947
  })])
@@ -9098,7 +9098,7 @@ const kl = K({
9098
9098
  emit: t,
9099
9099
  expose: n
9100
9100
  }) {
9101
- const a = Tt(), l = G(e, "modelValue"), i = l.value, o = Y(i - i % ft - (i < 0 ? ft : 0)), r = S(() => {
9101
+ const a = Tt(), l = G(e, "modelValue"), i = l.value, o = M(i - i % ft - (i < 0 ? ft : 0)), r = S(() => {
9102
9102
  let u = a.startOfYear(a.date());
9103
9103
  return Ee(ft + 1, o.value).map((y) => (u = a.setYear(u, y), {
9104
9104
  text: a.format(u, "year"),
@@ -9138,13 +9138,19 @@ const kl = K({
9138
9138
  setup(e, {
9139
9139
  emit: t
9140
9140
  }) {
9141
- const n = Y(), a = Tt(), l = G(e, "modelValue"), i = G(e, "mode"), o = Y(a.getMonth(a.date())), r = Y(a.getYear(a.date())), s = Number(e.month);
9142
- isNaN(s) || (o.value = s);
9143
- const c = Number(e.year);
9144
- isNaN(c) || (r.value = c);
9145
- const u = S(() => {
9141
+ const n = M(), a = Tt(), l = G(e, "modelValue"), i = G(e, "mode"), o = G(e, "month"), r = G(e, "year"), s = S({
9142
+ get: () => o.value != null || !Number.isNaN(Number(o.value)) ? Number(o.value) : a.getMonth(a.date()),
9143
+ set: (v) => {
9144
+ s.value = v;
9145
+ }
9146
+ }), c = S({
9147
+ get: () => r.value != null || !Number.isNaN(Number(r.value)) ? Number(r.value) : a.getYear(a.date()),
9148
+ set: (v) => {
9149
+ c.value = v;
9150
+ }
9151
+ }), u = S(() => {
9146
9152
  let v = a.startOfMonth(a.date());
9147
- return v = a.setYear(v, +r.value), a.setMonth(v, +o.value);
9153
+ return v = a.setYear(v, +c.value), a.setMonth(v, +s.value);
9148
9154
  }), y = S(() => a.format(u.value, "month")), b = S(() => a.format(u.value, "year"));
9149
9155
  function x() {
9150
9156
  i.value = i.value === "month" ? "date" : "month";
@@ -9161,15 +9167,15 @@ const kl = K({
9161
9167
  function f(v) {
9162
9168
  var _;
9163
9169
  if (i.value === "month") {
9164
- r.value = r.value + v;
9170
+ c.value = c.value + v;
9165
9171
  return;
9166
9172
  }
9167
9173
  if (i.value === "year") {
9168
9174
  (_ = n.value) == null || _.changePage(v);
9169
9175
  return;
9170
9176
  }
9171
- const g = o.value + v;
9172
- g > 11 ? (r.value += 1, o.value = 0) : g < 0 ? (r.value -= 1, o.value = 11) : o.value = g;
9177
+ const g = s.value + v;
9178
+ g > 11 ? (c.value += 1, s.value = 0) : g < 0 ? (c.value -= 1, s.value = 11) : s.value = g;
9173
9179
  }
9174
9180
  function C() {
9175
9181
  f(-1);
@@ -9180,10 +9186,10 @@ const kl = K({
9180
9186
  function h(v) {
9181
9187
  t("click:day", v.date);
9182
9188
  }
9183
- R(o, () => {
9184
- i.value === "month" && x(), t("update:month", o.value);
9185
- }), R(r, () => {
9186
- i.value === "year" && (i.value = "month"), t("update:year", r.value);
9189
+ R(s, () => {
9190
+ i.value === "month" && x(), t("update:month", s.value);
9191
+ }), R(c, () => {
9192
+ i.value === "year" && (i.value = "month"), t("update:year", c.value);
9187
9193
  }), W(() => d("div", {
9188
9194
  class: ["y-date-picker"]
9189
9195
  }, [d(ta, H(Q(e, ta.props), {
@@ -9198,14 +9204,14 @@ const kl = K({
9198
9204
  mode: "out-in"
9199
9205
  }, {
9200
9206
  default: () => [i.value === "month" ? d(Ml, {
9201
- modelValue: o.value,
9202
- "onUpdate:modelValue": (v) => o.value = v,
9207
+ modelValue: s.value,
9208
+ "onUpdate:modelValue": (v) => s.value = v,
9203
9209
  onMode: () => {
9204
9210
  i.value = "date";
9205
9211
  }
9206
9212
  }, null) : i.value === "year" ? d(Bl, {
9207
- modelValue: r.value,
9208
- "onUpdate:modelValue": (v) => r.value = v,
9213
+ modelValue: c.value,
9214
+ "onUpdate:modelValue": (v) => c.value = v,
9209
9215
  ref: n,
9210
9216
  onMode: () => {
9211
9217
  i.value = "month";
@@ -9214,10 +9220,10 @@ const kl = K({
9214
9220
  hideHeader: !0,
9215
9221
  modelValue: l.value,
9216
9222
  "onUpdate:modelValue": (v) => l.value = v,
9217
- month: o.value,
9218
- "onUpdate:month": (v) => o.value = v,
9219
- year: r.value,
9220
- "onUpdate:year": (v) => r.value = v,
9223
+ month: s.value,
9224
+ "onUpdate:month": (v) => s.value = v,
9225
+ year: c.value,
9226
+ "onUpdate:year": (v) => c.value = v,
9221
9227
  "onClick:day": h
9222
9228
  }), null)]
9223
9229
  })]));
@@ -9317,7 +9323,7 @@ const $l = K({
9317
9323
  const {
9318
9324
  resizeObservedRef: t,
9319
9325
  contentRect: n
9320
- } = Be(), a = Y(!1), l = S(() => {
9326
+ } = Be(), a = M(!1), l = S(() => {
9321
9327
  var s;
9322
9328
  return (s = n.value) == null ? void 0 : s.width;
9323
9329
  }), i = S(() => e.text), o = S(() => {
@@ -9368,7 +9374,7 @@ const $l = K({
9368
9374
  slots: t,
9369
9375
  emit: n
9370
9376
  }) {
9371
- const a = Y(), l = Y(), i = Y([]), o = G(e), r = Oe({
9377
+ const a = M(), l = M(), i = M([]), o = G(e), r = Oe({
9372
9378
  0: "",
9373
9379
  1: "",
9374
9380
  2: "",
@@ -9380,13 +9386,13 @@ const $l = K({
9380
9386
  2: "",
9381
9387
  3: "",
9382
9388
  4: ""
9383
- }), c = Y(!1), u = Y([]);
9389
+ }), c = M(!1), u = M([]);
9384
9390
  function y(O) {
9385
9391
  return !/[^0-9]/.test(O) && Number(O) < 33 && Number(O) > -1;
9386
9392
  }
9387
9393
  function b(O, A) {
9388
9394
  const p = A.target, k = (p == null ? void 0 : p.value) || "", I = s[O], V = O < 4 ? aa.test(k) : y(k), B = k !== "" ? Number(k).toString() : "";
9389
- r[O] = B, !V && k !== "" ? v(O, I) : (k.length > 2 && g(O), s[O] = B, M());
9395
+ r[O] = B, !V && k !== "" ? v(O, I) : (k.length > 2 && g(O), s[O] = B, Y());
9390
9396
  }
9391
9397
  function x(O, A) {
9392
9398
  c.value = !0, u.value.push(O);
@@ -9438,7 +9444,7 @@ const $l = K({
9438
9444
  const k = A[p];
9439
9445
  k !== void 0 && aa.test(k) ? r[p] = k : r[p] = "";
9440
9446
  }
9441
- M();
9447
+ Y();
9442
9448
  }
9443
9449
  }
9444
9450
  }
@@ -9447,11 +9453,11 @@ const $l = K({
9447
9453
  isNaN(Number(A)) && (O.preventDefault(), C(A));
9448
9454
  }
9449
9455
  function h() {
9450
- e.autoFillSubnet && r[0] && r[1] && r[2] && r[3] && !r[4] && (typeof e.autoFillSubnet == "boolean" ? r[4] = "32" : r[4] = e.autoFillSubnet.toString(), M());
9456
+ e.autoFillSubnet && r[0] && r[1] && r[2] && r[3] && !r[4] && (typeof e.autoFillSubnet == "boolean" ? r[4] = "32" : r[4] = e.autoFillSubnet.toString(), Y());
9451
9457
  }
9452
9458
  function v(O, A) {
9453
9459
  se(() => {
9454
- r[O] = A, M();
9460
+ r[O] = A, Y();
9455
9461
  });
9456
9462
  }
9457
9463
  function g(O) {
@@ -9468,7 +9474,7 @@ const $l = K({
9468
9474
  p.focus(), p.selectionStart = p.value.length + 1;
9469
9475
  }
9470
9476
  }
9471
- function M() {
9477
+ function Y() {
9472
9478
  o.value = E();
9473
9479
  }
9474
9480
  function E() {
@@ -9569,7 +9575,7 @@ const $l = K({
9569
9575
  startCloseDelay: i
9570
9576
  } = nr(e, (r) => {
9571
9577
  e.disabled || (a.value = r);
9572
- }), o = Y();
9578
+ }), o = M();
9573
9579
  R(a, (r) => {
9574
9580
  n("hover", r, o);
9575
9581
  }), W(() => {
@@ -9647,7 +9653,7 @@ const Ll = K({
9647
9653
  attrs: n,
9648
9654
  emit: a
9649
9655
  }) {
9650
- const l = ne(), i = Y(), o = X(e.eager ? "loading" : "idle"), r = X(""), s = X(), c = X(), {
9656
+ const l = ne(), i = M(), o = X(e.eager ? "loading" : "idle"), r = X(""), s = X(), c = X(), {
9651
9657
  polyTransitionBindProps: u
9652
9658
  } = Ca(e), y = S(() => ({
9653
9659
  src: e.src
@@ -9696,7 +9702,7 @@ const Ll = K({
9696
9702
  }
9697
9703
  const C = (g) => {
9698
9704
  let _;
9699
- const M = d("img", {
9705
+ const Y = d("img", {
9700
9706
  ref: i,
9701
9707
  src: y.value.src,
9702
9708
  crossorigin: e.crossorigin,
@@ -9709,24 +9715,24 @@ const Ll = K({
9709
9715
  }, null);
9710
9716
  return d(et, H(u.value, {
9711
9717
  appear: !0
9712
- }), Ro(_ = Me(M, [[nt, g.status === "loaded"]])) ? _ : {
9718
+ }), Ro(_ = Me(Y, [[nt, g.status === "loaded"]])) ? _ : {
9713
9719
  default: () => [_]
9714
9720
  });
9715
9721
  };
9716
9722
  let T = -1;
9717
9723
  function h(g, _ = 100) {
9718
- const M = () => {
9719
- clearTimeout(T), !l.isUnmounted && !D(g) && _ != null && (T = window.setTimeout(M, _));
9724
+ const Y = () => {
9725
+ clearTimeout(T), !l.isUnmounted && !D(g) && _ != null && (T = window.setTimeout(Y, _));
9720
9726
  };
9721
- M();
9727
+ Y();
9722
9728
  }
9723
9729
  function v(g) {
9724
9730
  e.eager, !(pa.canUseIntersectionObserver && !g && !e.eager) && (o.value = "loading", y.value.src && se(() => {
9725
9731
  var _;
9726
9732
  a("load", ((_ = i.value) == null ? void 0 : _.currentSrc) || y.value.src), setTimeout(() => {
9727
- var M, E;
9733
+ var Y, E;
9728
9734
  if (!l.isUnmounted)
9729
- if ((M = i.value) != null && M.complete) {
9735
+ if ((Y = i.value) != null && Y.complete) {
9730
9736
  if ((E = i.value) != null && E.naturalWidth || f(), o.value === "error") return;
9731
9737
  h(i.value, null), o.value === "loading" && m();
9732
9738
  } else i.value && (h(i.value), x());