@rebilly/revel 13.4.0 → 13.4.1

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/revel.mjs CHANGED
@@ -1,5 +1,6 @@
1
- import { Fragment as e, Teleport as t, Transition as n, cloneVNode as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, h as m, inject as h, isRef as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeMount as C, onBeforeUnmount as w, onMounted as T, onUnmounted as E, openBlock as D, provide as O, reactive as k, ref as A, render as j, renderList as M, renderSlot as N, resolveComponent as P, resolveDirective as F, resolveDynamicComponent as ee, shallowRef as te, toDisplayString as I, toHandlers as ne, toRef as L, toRefs as R, unref as z, useAttrs as B, useModel as re, useSlots as ie, useTemplateRef as ae, vModelText as V, vShow as oe, watch as H, watchEffect as se, withCtx as U, withDirectives as W, withKeys as G, withModifiers as K } from "vue";
2
- import q, * as ce from "moment";
1
+ import { Fragment as e, Teleport as t, Transition as n, cloneVNode as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createSlots as l, createTextVNode as u, createVNode as d, defineComponent as f, guardReactiveProps as p, h as m, inject as h, isRef as g, mergeModels as _, mergeProps as v, nextTick as y, normalizeClass as b, normalizeProps as x, normalizeStyle as S, onBeforeMount as C, onBeforeUnmount as w, onMounted as T, onUnmounted as E, openBlock as D, provide as O, reactive as k, ref as A, render as j, renderList as M, renderSlot as N, resolveComponent as P, resolveDirective as F, resolveDynamicComponent as ee, shallowRef as te, toDisplayString as I, toHandlers as ne, toRef as L, toRefs as R, unref as z, useAttrs as B, useModel as re, useSlots as ie, useTemplateRef as ae, vModelText as V, vShow as H, watch as U, watchEffect as oe, withCtx as W, withDirectives as G, withKeys as se, withModifiers as K } from "vue";
2
+ import * as ce from "moment";
3
+ import q from "moment";
3
4
  //#region \0rolldown/runtime.js
4
5
  var le = Object.create, ue = Object.defineProperty, de = Object.getOwnPropertyDescriptor, fe = Object.getOwnPropertyNames, pe = Object.getPrototypeOf, me = Object.prototype.hasOwnProperty, he = (e, t, n) => () => {
5
6
  if (n) throw n[0];
@@ -8,7 +9,7 @@ var le = Object.create, ue = Object.defineProperty, de = Object.getOwnPropertyDe
8
9
  } catch (e) {
9
10
  throw n = [e], e;
10
11
  }
11
- }, ge = (e, t) => () => (t || (e((t = { exports: {} }).exports, t, t.exports), e = null), t.exports), _e = (e, t) => {
12
+ }, ge = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), _e = (e, t) => {
12
13
  let n = {};
13
14
  for (var r in e) ue(n, r, {
14
15
  get: e[r],
@@ -769,11 +770,11 @@ function tn(e) {
769
770
  var k = b === "y" ? "top" : Ce, A = b === "y" ? xe : Se, j = b === "y" ? "height" : "width", M = S[b], N = M + g[k], P = M - g[A], F = p ? -w[j] / 2 : 0, ee = v === "start" ? C[j] : w[j], te = v === "start" ? -w[j] : -C[j], I = t.elements.arrow, ne = p && I ? Ye(I) : {
770
771
  width: 0,
771
772
  height: 0
772
- }, L = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : st(), R = L[k], z = L[A], B = at(0, C[j], ne[j]), re = y ? C[j] / 2 - F - B - R - E.mainAxis : ee - B - R - E.mainAxis, ie = y ? -C[j] / 2 + F + B + z + E.mainAxis : te + B + z + E.mainAxis, ae = t.elements.arrow && rt(t.elements.arrow), V = ae ? b === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, oe = D?.[b] ?? 0, H = M + re - oe - V, se = M + ie - oe, U = at(p ? We(N, H) : N, M, p ? Ue(P, se) : P);
773
- S[b] = U, O[b] = U - M;
773
+ }, L = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : st(), R = L[k], z = L[A], B = at(0, C[j], ne[j]), re = y ? C[j] / 2 - F - B - R - E.mainAxis : ee - B - R - E.mainAxis, ie = y ? -C[j] / 2 + F + B + z + E.mainAxis : te + B + z + E.mainAxis, ae = t.elements.arrow && rt(t.elements.arrow), V = ae ? b === "y" ? ae.clientTop || 0 : ae.clientLeft || 0 : 0, H = D?.[b] ?? 0, U = M + re - H - V, oe = M + ie - H, W = at(p ? We(N, U) : N, M, p ? Ue(P, oe) : P);
774
+ S[b] = W, O[b] = W - M;
774
775
  }
775
776
  if (s) {
776
- var W = b === "x" ? "top" : Ce, G = b === "x" ? xe : Se, K = S[x], q = x === "y" ? "height" : "width", ce = K + g[W], le = K - g[G], ue = ["top", Ce].indexOf(_) !== -1, de = D?.[x] ?? 0, fe = ue ? ce : K - C[q] - w[q] - de + E.altAxis, pe = ue ? K + C[q] + w[q] - de - E.altAxis : le, me = p && ue ? ot(fe, K, pe) : at(p ? fe : ce, K, p ? pe : le);
777
+ var G = b === "x" ? "top" : Ce, se = b === "x" ? xe : Se, K = S[x], ce = x === "y" ? "height" : "width", q = K + g[G], le = K - g[se], ue = ["top", Ce].indexOf(_) !== -1, de = D?.[x] ?? 0, fe = ue ? q : K - C[ce] - w[ce] - de + E.altAxis, pe = ue ? K + C[ce] + w[ce] - de - E.altAxis : le, me = p && ue ? ot(fe, K, pe) : at(p ? fe : q, K, p ? pe : le);
777
778
  S[x] = me, O[x] = me - K;
778
779
  }
779
780
  t.modifiersData[r] = O;
@@ -925,8 +926,11 @@ function mn(e) {
925
926
  }, i.reset = !1, i.placement = i.options.placement, i.orderedModifiers.forEach(function(e) {
926
927
  return i.modifiersData[e.name] = Object.assign({}, e.data);
927
928
  });
928
- for (var r = 0; r < i.orderedModifiers.length; r++) if (i.reset === !0) i.reset = !1, r = -1;
929
- else {
929
+ for (var r = 0; r < i.orderedModifiers.length; r++) {
930
+ if (i.reset === !0) {
931
+ i.reset = !1, r = -1;
932
+ continue;
933
+ }
930
934
  var a = i.orderedModifiers[r], o = a.fn, l = a.options, u = l === void 0 ? {} : l, d = a.name;
931
935
  typeof o == "function" && (i = o({
932
936
  state: i,
@@ -1912,15 +1916,16 @@ function pm(e) {
1912
1916
  var mm = pm, hm = Dp, gm = Op, _m = Np, vm = Fp, ym = Wp, bm = eo, xm = Cn, Sm = Jp, Cm = wc, wm = hr, Tm = sr, Em = am, Dm = ol, Om = sm, km = mm;
1913
1917
  function Am(e, t, n, r, i, a, o) {
1914
1918
  var s = Om(e, n), c = Om(t, n), l = o.get(c);
1915
- if (l) hm(e, n, l);
1916
- else {
1917
- var u = a ? a(s, c, n + "", e, t, o) : void 0, d = u === void 0;
1918
- if (d) {
1919
- var f = xm(c), p = !f && Cm(c), m = !f && !p && Dm(c);
1920
- u = c, f || p || m ? xm(s) ? u = s : Sm(s) ? u = vm(s) : p ? (d = !1, u = gm(c, !0)) : m ? (d = !1, u = _m(c, !0)) : u = [] : Em(c) || bm(c) ? (u = s, bm(s) ? u = km(s) : (!Tm(s) || wm(s)) && (u = ym(c))) : d = !1;
1921
- }
1922
- d && (o.set(c, u), i(u, c, r, a, o), o.delete(c)), hm(e, n, u);
1919
+ if (l) {
1920
+ hm(e, n, l);
1921
+ return;
1922
+ }
1923
+ var u = a ? a(s, c, n + "", e, t, o) : void 0, d = u === void 0;
1924
+ if (d) {
1925
+ var f = xm(c), p = !f && Cm(c), m = !f && !p && Dm(c);
1926
+ u = c, f || p || m ? xm(s) ? u = s : Sm(s) ? u = vm(s) : p ? (d = !1, u = gm(c, !0)) : m ? (d = !1, u = _m(c, !0)) : u = [] : Em(c) || bm(c) ? (u = s, bm(s) ? u = km(s) : (!Tm(s) || wm(s)) && (u = ym(c))) : d = !1;
1923
1927
  }
1928
+ d && (o.set(c, u), i(u, c, r, a, o), o.delete(c)), hm(e, n, u);
1924
1929
  }
1925
1930
  var jm = Am, Mm = ms, Nm = Dp, Pm = Ud, Fm = jm, Im = sr, Lm = gp, Rm = sm;
1926
1931
  function zm(e, t, n, r, i) {
@@ -3140,7 +3145,11 @@ var a_ = class {
3140
3145
  if (!dh(e)) return [];
3141
3146
  let t = [];
3142
3147
  return e.forEach((e) => {
3143
- this.validator(e) ? t.push(e) : console.error(`Component value ${e} in invalid for "${this.type}" rule. This rule will be skipped.`);
3148
+ if (!this.validator(e)) {
3149
+ console.error(`Component value ${e} in invalid for "${this.type}" rule. This rule will be skipped.`);
3150
+ return;
3151
+ }
3152
+ t.push(e);
3144
3153
  }), t;
3145
3154
  }
3146
3155
  passes(e) {
@@ -3811,7 +3820,7 @@ function Av(e) {
3811
3820
  let n = typeof e.value;
3812
3821
  n === "string" && e.value.toLowerCase() === "system" ? s() : n === "object" ? l(e.value) : t.value = !!e.value;
3813
3822
  }
3814
- let d = H(() => e.value, () => u(), { immediate: !0 });
3823
+ let d = U(() => e.value, () => u(), { immediate: !0 });
3815
3824
  function f() {
3816
3825
  r &&= (r.removeEventListener("change", o), void 0), a &&= (a.disconnect(), void 0);
3817
3826
  }
@@ -4115,12 +4124,12 @@ function Zv(e, { slots: t, emit: n }) {
4115
4124
  }, R = () => {
4116
4125
  s.value = !1, n("transition-end"), p &&= (p.resolve(!0), null);
4117
4126
  }, z = (e, t, n = u.value) => Lg(e, t, n, v.value), B = (e) => Ig(e, u.value, v.value), re = (e) => {
4118
- S.value && W.value && (e.isDisabled = W.value.cellExists(S.value.key, e.dayIndex));
4127
+ S.value && G.value && (e.isDisabled = G.value.cellExists(S.value.key, e.dayIndex));
4119
4128
  }, ie = (e) => {
4120
4129
  e.isFocusable = e.inMonth && e.day === o.value;
4121
4130
  }, ae = (e, t) => {
4122
4131
  for (let n of e) for (let e of n.days) if (t(e) === !1) return;
4123
- }, V = i(() => d.value.reduce((e, t) => (e.push(...t.viewDays), e), [])), oe = i(() => {
4132
+ }, V = i(() => d.value.reduce((e, t) => (e.push(...t.viewDays), e), [])), H = i(() => {
4124
4133
  let t = [];
4125
4134
  return (e.attributes || []).forEach((e, n) => {
4126
4135
  e && e.dates && t.push(new gv({
@@ -4128,28 +4137,28 @@ function Zv(e, { slots: t, emit: n }) {
4128
4137
  order: e.order || 0
4129
4138
  }, h.value, v.value));
4130
4139
  }), S.value && t.push(S.value), t;
4131
- }), U = i(() => fh(oe.value)), W = i(() => {
4140
+ }), W = i(() => fh(H.value)), G = i(() => {
4132
4141
  let e = new Yg();
4133
- return oe.value.forEach((t) => {
4142
+ return H.value.forEach((t) => {
4134
4143
  t.ranges.forEach((n) => {
4135
4144
  e.render(t, n, V.value);
4136
4145
  });
4137
4146
  }), e;
4138
- }), G = i(() => V.value.reduce((e, t) => (e[t.dayIndex] = {
4147
+ }), se = i(() => V.value.reduce((e, t) => (e[t.dayIndex] = {
4139
4148
  day: t,
4140
4149
  cells: []
4141
- }, e[t.dayIndex].cells.push(...W.value.getCells(t)), e), {})), K = (t, n) => {
4150
+ }, e[t.dayIndex].cells.push(...G.value.getCells(t)), e), {})), K = (t, n) => {
4142
4151
  let r = e.showWeeknumbers || e.showIsoWeeknumbers;
4143
4152
  return r == null ? "" : _f(r) ? r ? "left" : "" : r.startsWith("right") ? n > 1 ? "right" : r : t > 1 ? "left" : r;
4144
- }, q = () => {
4145
- if (!U.value) return null;
4146
- let e = oe.value.find((e) => e.pinPage) || oe.value[0];
4153
+ }, ce = () => {
4154
+ if (!W.value) return null;
4155
+ let e = H.value.find((e) => e.pinPage) || H.value[0];
4147
4156
  if (!e || !e.hasRanges) return null;
4148
4157
  let [t] = e.ranges, n = t.start?.date || t.end?.date;
4149
4158
  return n ? B(n) : null;
4150
- }, ce = () => {
4159
+ }, q = () => {
4151
4160
  if (Rg(k.value)) return k.value;
4152
- let e = q();
4161
+ let e = ce();
4153
4162
  return Rg(e) ? e : B(/* @__PURE__ */ new Date());
4154
4163
  }, le = (e, t = {}) => {
4155
4164
  let { view: n = u.value, position: r = 1, force: i } = t, a = r > 0 ? 1 - r : -(w.value + r), o = z(e, a, n), s = z(o, w.value - 1, n);
@@ -4163,7 +4172,7 @@ function Zv(e, { slots: t, emit: n }) {
4163
4172
  let r = Bg(t, e), i = zg(t, e);
4164
4173
  return !r && !i ? "fade" : n === "slide-v" ? i ? "slide-down" : "slide-up" : i ? "slide-right" : "slide-left";
4165
4174
  }, de = (t = {}) => new Promise((n, r) => {
4166
- let { position: i = 1, force: a = !1, transition: o } = t, s = Rg(t.page) ? t.page : ce(), { fromPage: c } = le(s, {
4175
+ let { position: i = 1, force: a = !1, transition: o } = t, s = Rg(t.page) ? t.page : q(), { fromPage: c } = le(s, {
4167
4176
  position: i,
4168
4177
  force: a
4169
4178
  }), l = [];
@@ -4265,15 +4274,15 @@ function Zv(e, { slots: t, emit: n }) {
4265
4274
  }, e_("touch")));
4266
4275
  }), E(() => {
4267
4276
  d.value = [], m && m();
4268
- }), H(() => v.value, () => {
4277
+ }), U(() => v.value, () => {
4269
4278
  de();
4270
- }), H(() => w.value, () => de()), H(() => e.view, () => u.value = e.view), H(() => u.value, () => {
4279
+ }), U(() => w.value, () => de()), U(() => e.view, () => u.value = e.view), U(() => u.value, () => {
4271
4280
  Dv("view", () => {
4272
4281
  de();
4273
4282
  }), n("update:view", u.value);
4274
- }), H(() => o.value, () => {
4283
+ }), U(() => o.value, () => {
4275
4284
  ae(d.value, (e) => ie(e));
4276
- }), se(() => {
4285
+ }), oe(() => {
4277
4286
  n("update:pages", d.value), ae(d.value, (e) => {
4278
4287
  re(e), ie(e);
4279
4288
  });
@@ -4293,12 +4302,12 @@ function Zv(e, { slots: t, emit: n }) {
4293
4302
  displayMode: _,
4294
4303
  locale: v,
4295
4304
  masks: y,
4296
- attributes: oe,
4305
+ attributes: H,
4297
4306
  disabledAttribute: S,
4298
4307
  disabledDates: C,
4299
- attributeContext: W,
4308
+ attributeContext: G,
4300
4309
  days: V,
4301
- dayCells: G,
4310
+ dayCells: se,
4302
4311
  count: w,
4303
4312
  step: D,
4304
4313
  firstPage: k,
@@ -4508,11 +4517,11 @@ var $v = f({
4508
4517
  function z() {
4509
4518
  a != null && (a.disconnect(), a = null);
4510
4519
  }
4511
- return H(() => r.value, (e) => {
4520
+ return U(() => r.value, (e) => {
4512
4521
  z(), e && (a = new ResizeObserver(() => {
4513
4522
  o && o.update();
4514
4523
  }), a.observe(e));
4515
- }), H(() => s.placement, c, { immediate: !0 }), T(() => {
4524
+ }), U(() => s.placement, c, { immediate: !0 }), T(() => {
4516
4525
  O();
4517
4526
  }), E(() => {
4518
4527
  f(), z(), j();
@@ -4555,7 +4564,7 @@ function ty(e, t, r, i, a, l) {
4555
4564
  onBeforeLeave: e.beforeLeave,
4556
4565
  onAfterLeave: e.afterLeave
4557
4566
  }, {
4558
- default: U(() => [e.isVisible ? (D(), s("div", v({
4567
+ default: W(() => [e.isVisible ? (D(), s("div", v({
4559
4568
  key: 0,
4560
4569
  tabindex: "-1",
4561
4570
  class: `vc-popover-content direction-${e.direction}`
@@ -4616,7 +4625,7 @@ var ny = /* @__PURE__ */ ey($v, [["render", ty]]), ry = { class: "vc-day-popover
4616
4625
  id: z(n),
4617
4626
  class: b([`vc-${z(i)}`, `vc-${z(r)}`])
4618
4627
  }, {
4619
- default: U(({ data: { day: t, attributes: n }, hide: r }) => [d(sy, {
4628
+ default: W(({ data: { day: t, attributes: n }, hide: r }) => [d(sy, {
4620
4629
  name: "day-popover",
4621
4630
  day: t,
4622
4631
  "day-title": p(t),
@@ -4625,7 +4634,7 @@ var ny = /* @__PURE__ */ ey($v, [["render", ty]]), ry = { class: "vc-day-popover
4625
4634
  masks: z(l),
4626
4635
  hide: r
4627
4636
  }, {
4628
- default: U(() => [c("div", cy, [z(l).dayPopover ? (D(), s("div", ly, I(p(t)), 1)) : o("", !0), (D(!0), s(e, null, M(n, (e) => (D(), a(oy, {
4637
+ default: W(() => [c("div", cy, [z(l).dayPopover ? (D(), s("div", ly, I(p(t)), 1)) : o("", !0), (D(!0), s(e, null, M(n, (e) => (D(), a(oy, {
4629
4638
  key: e.key,
4630
4639
  attribute: e
4631
4640
  }, null, 8, ["attribute"]))), 128))])]),
@@ -4767,23 +4776,23 @@ var Ay = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4767
4776
  class: "vc-arrow vc-prev vc-focus",
4768
4777
  disabled: !z(a),
4769
4778
  onClick: n[0] ||= (...e) => z(l) && z(l)(...e),
4770
- onKeydown: n[1] ||= G((...e) => z(l) && z(l)(...e), ["space", "enter"])
4779
+ onKeydown: n[1] ||= se((...e) => z(l) && z(l)(...e), ["space", "enter"])
4771
4780
  }, [d(sy, {
4772
4781
  name: "header-prev-button",
4773
4782
  disabled: !z(a)
4774
4783
  }, {
4775
- default: U(() => [d(jy, {
4784
+ default: W(() => [d(jy, {
4776
4785
  name: "ChevronLeft",
4777
4786
  size: "24"
4778
4787
  })]),
4779
4788
  _: 1
4780
4789
  }, 8, ["disabled"])], 40, My)) : o("", !0),
4781
4790
  z(v).title ? (D(), s("div", Ny, [d(sy, { name: "header-title-wrapper" }, {
4782
- default: U(() => [W((D(), s("button", Py, [d(sy, {
4791
+ default: W(() => [G((D(), s("button", Py, [d(sy, {
4783
4792
  name: "header-title",
4784
4793
  title: e.page.title
4785
4794
  }, {
4786
- default: U(() => [c("span", null, I(e.page.title), 1)]),
4795
+ default: W(() => [c("span", null, I(e.page.title), 1)]),
4787
4796
  _: 1
4788
4797
  }, 8, ["title"])])), [[z(Cv), z(m)]])]),
4789
4798
  _: 1
@@ -4794,12 +4803,12 @@ var Ay = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4794
4803
  class: "vc-arrow vc-next vc-focus",
4795
4804
  disabled: !z(u),
4796
4805
  onClick: n[2] ||= (...e) => z(f) && z(f)(...e),
4797
- onKeydown: n[3] ||= G((...e) => z(f) && z(f)(...e), ["space", "enter"])
4806
+ onKeydown: n[3] ||= se((...e) => z(f) && z(f)(...e), ["space", "enter"])
4798
4807
  }, [d(sy, {
4799
4808
  name: "header-next-button",
4800
4809
  disabled: !z(u)
4801
4810
  }, {
4802
- default: U(() => [d(jy, {
4811
+ default: W(() => [d(jy, {
4803
4812
  name: "ChevronRight",
4804
4813
  size: "24"
4805
4814
  })]),
@@ -4918,10 +4927,10 @@ var By = { class: "vc-nav-header" }, Vy = ["disabled"], Hy = ["disabled"], Uy =
4918
4927
  click: () => {
4919
4928
  f.value = e.year, u.value = !0, h();
4920
4929
  }
4921
- }))), te = i(() => l(v(p.value - 1), y(p.value - 1))), ne = i(() => te.value.some((e) => !e.isDisabled)), L = i(() => l(v(p.value + 1), y(p.value + 1))), R = i(() => L.value.some((e) => !e.isDisabled)), B = i(() => u.value ? k.value : ee.value), re = i(() => u.value ? N.value : ne.value), ie = i(() => u.value ? F.value : R.value), ae = i(() => rh(ee.value.map((e) => e.year))), V = i(() => ah(ee.value.map((e) => e.year))), oe = i(() => u.value ? f.value : `${ae.value} - ${V.value}`);
4922
- return se(() => {
4930
+ }))), te = i(() => l(v(p.value - 1), y(p.value - 1))), ne = i(() => te.value.some((e) => !e.isDisabled)), L = i(() => l(v(p.value + 1), y(p.value + 1))), R = i(() => L.value.some((e) => !e.isDisabled)), B = i(() => u.value ? k.value : ee.value), re = i(() => u.value ? N.value : ne.value), ie = i(() => u.value ? F.value : R.value), ae = i(() => rh(ee.value.map((e) => e.year))), V = i(() => ah(ee.value.map((e) => e.year))), H = i(() => u.value ? f.value : `${ae.value} - ${V.value}`);
4931
+ return oe(() => {
4923
4932
  f.value = a.value.year, h();
4924
- }), H(() => f.value, (e) => p.value = g(e)), T(() => h()), (t, n) => (D(), s("div", {
4933
+ }), U(() => f.value, (e) => p.value = g(e)), T(() => h()), (t, n) => (D(), s("div", {
4925
4934
  class: "vc-nav-container",
4926
4935
  ref_key: "navContainer",
4927
4936
  ref: m
@@ -4937,7 +4946,7 @@ var By = { class: "vc-nav-header" }, Vy = ["disabled"], Hy = ["disabled"], Uy =
4937
4946
  move: x,
4938
4947
  disabled: !z(re)
4939
4948
  }, {
4940
- default: U(() => [d(jy, {
4949
+ default: W(() => [d(jy, {
4941
4950
  name: "ChevronLeft",
4942
4951
  width: "22px",
4943
4952
  height: "24px"
@@ -4949,7 +4958,7 @@ var By = { class: "vc-nav-header" }, Vy = ["disabled"], Hy = ["disabled"], Uy =
4949
4958
  class: "vc-nav-title vc-focus",
4950
4959
  onClick: _,
4951
4960
  onKeydown: n[1] ||= (e) => z(_h)(e, _)
4952
- }, I(z(oe)), 33),
4961
+ }, I(z(H)), 33),
4953
4962
  c("button", {
4954
4963
  type: "button",
4955
4964
  class: "vc-nav-arrow is-right vc-focus",
@@ -4961,7 +4970,7 @@ var By = { class: "vc-nav-header" }, Vy = ["disabled"], Hy = ["disabled"], Uy =
4961
4970
  move: S,
4962
4971
  disabled: !z(ie)
4963
4972
  }, {
4964
- default: U(() => [d(jy, {
4973
+ default: W(() => [d(jy, {
4965
4974
  name: "ChevronRight",
4966
4975
  width: "22px",
4967
4976
  height: "24px"
@@ -4997,9 +5006,9 @@ var By = { class: "vc-nav-header" }, Vy = ["disabled"], Hy = ["disabled"], Uy =
4997
5006
  `vc-${z(r)}`
4998
5007
  ])
4999
5008
  }, {
5000
- default: U(({ data: e }) => [d(Ky, { page: e.page }, {
5001
- default: U(() => [d(sy, { name: "nav" }, {
5002
- default: U(() => [d(Gy)]),
5009
+ default: W(({ data: e }) => [d(Ky, { page: e.page }, {
5010
+ default: W(() => [d(sy, { name: "nav" }, {
5011
+ default: W(() => [d(Gy)]),
5003
5012
  _: 1
5004
5013
  })]),
5005
5014
  _: 2
@@ -5138,7 +5147,7 @@ function eb(t, n, r, i, a, l) {
5138
5147
  dayEvents: t.dayContentEvents,
5139
5148
  locale: t.locale
5140
5149
  }, {
5141
- default: U(() => [W((D(), s("div", v(t.dayContentProps, ne(t.dayContentEvents, !0)), [u(I(t.day.label), 1)], 16)), [[p, t.dayPopover]])]),
5150
+ default: W(() => [G((D(), s("div", v(t.dayContentProps, ne(t.dayContentEvents, !0)), [u(I(t.day.label), 1)], 16)), [[p, t.dayPopover]])]),
5142
5151
  _: 1
5143
5152
  }, 8, [
5144
5153
  "day",
@@ -5242,7 +5251,7 @@ function ob(t, r, i, l, u, f) {
5242
5251
  onBeforeEnter: t.onTransitionBeforeEnter,
5243
5252
  onAfterEnter: t.onTransitionAfterEnter
5244
5253
  }, {
5245
- default: U(() => [(D(), s("div", {
5254
+ default: W(() => [(D(), s("div", {
5246
5255
  key: t.pages[0].id,
5247
5256
  class: "vc-pane-layout",
5248
5257
  style: S({ gridTemplateColumns: `repeat(${t.columns}, 1fr)` })
@@ -5250,11 +5259,11 @@ function ob(t, r, i, l, u, f) {
5250
5259
  key: e.id,
5251
5260
  page: e
5252
5261
  }, {
5253
- default: U(() => [d(h, {
5262
+ default: W(() => [d(h, {
5254
5263
  name: "page",
5255
5264
  page: e
5256
5265
  }, {
5257
- default: U(() => [d(m)]),
5266
+ default: W(() => [d(m)]),
5258
5267
  _: 2
5259
5268
  }, 1032, ["page"])]),
5260
5269
  _: 2
@@ -5356,7 +5365,7 @@ function db(e, { emit: t, slots: n }) {
5356
5365
  end: t[1]
5357
5366
  } : t[0];
5358
5367
  }), ne = i(() => {
5359
- if (!se(u.value)) return null;
5368
+ if (!oe(u.value)) return null;
5360
5369
  let t = {
5361
5370
  key: "select-drag",
5362
5371
  ...e.selectAttribute,
@@ -5365,7 +5374,7 @@ function db(e, { emit: t, slots: n }) {
5365
5374
  }, { dot: n, bar: r, highlight: i, content: a } = t;
5366
5375
  return !n && !r && !i && !a && (t.highlight = !0), t;
5367
5376
  }), R = i(() => {
5368
- if (!v.value || !se(d.value)) return null;
5377
+ if (!v.value || !oe(d.value)) return null;
5369
5378
  let t = {
5370
5379
  key: "select-drag",
5371
5380
  ...e.dragAttribute,
@@ -5417,23 +5426,23 @@ function db(e, { emit: t, slots: n }) {
5417
5426
  function V(e) {
5418
5427
  return e == null ? !1 : Sf(e) ? !isNaN(e) : sh(e) ? !isNaN(e.getTime()) : Uo(e) ? e !== "" : G_(e);
5419
5428
  }
5420
- function oe(e) {
5429
+ function H(e) {
5421
5430
  return ch(e) && "start" in e && "end" in e && V(e.start ?? null) && V(e.end ?? null);
5422
5431
  }
5423
- function se(e) {
5424
- return oe(e) || V(e);
5432
+ function oe(e) {
5433
+ return H(e) || V(e);
5425
5434
  }
5426
- function U(e, t) {
5435
+ function W(e, t) {
5427
5436
  if (e == null && t == null) return !0;
5428
5437
  if (e == null || t == null) return !1;
5429
5438
  let n = sh(e), r = sh(t);
5430
- return n && r ? e.getTime() === t.getTime() : n || r ? !1 : U(e.start, t.start) && U(e.end, t.end);
5439
+ return n && r ? e.getTime() === t.getTime() : n || r ? !1 : W(e.start, t.start) && W(e.end, t.end);
5431
5440
  }
5432
- function W(e) {
5433
- return !se(e) || !s.value ? !1 : s.value.intersectsRange(a.value.range(e));
5441
+ function G(e) {
5442
+ return !oe(e) || !s.value ? !1 : s.value.intersectsRange(a.value.range(e));
5434
5443
  }
5435
- function G(e, t, n, r) {
5436
- return se(e) ? oe(e) ? De({
5444
+ function se(e, t, n, r) {
5445
+ return oe(e) ? H(e) ? De({
5437
5446
  start: a.value.toDate(e.start, {
5438
5447
  ...t[0],
5439
5448
  fillDate: b.value ?? void 0,
@@ -5451,26 +5460,26 @@ function db(e, { emit: t, slots: n }) {
5451
5460
  }) : null;
5452
5461
  }
5453
5462
  function K(e, t) {
5454
- return oe(e) ? {
5463
+ return H(e) ? {
5455
5464
  start: a.value.fromDate(e.start, t[0]),
5456
5465
  end: a.value.fromDate(e.end, t[1])
5457
5466
  } : v.value ? null : a.value.fromDate(e, t[0]);
5458
5467
  }
5459
- function q(e, t = {}) {
5468
+ function ce(e, t = {}) {
5460
5469
  return clearTimeout(h), new Promise((n) => {
5461
5470
  let { debounce: r = 0, ...i } = t;
5462
5471
  r > 0 ? h = window.setTimeout(() => {
5463
- n(ce(e, i));
5464
- }, r) : n(ce(e, i));
5472
+ n(q(e, i));
5473
+ }, r) : n(q(e, i));
5465
5474
  });
5466
5475
  }
5467
- function ce(n, { config: r = D.value, patch: i = "dateTime", clearIfEqual: a = !1, formatInput: o = !0, hidePopover: s = !1, dragging: c = E.value, targetPriority: l, moveToValue: f = !1 } = {}) {
5468
- let p = G(n, ae(r), i, l);
5469
- if (W(p)) {
5476
+ function q(n, { config: r = D.value, patch: i = "dateTime", clearIfEqual: a = !1, formatInput: o = !0, hidePopover: s = !1, dragging: c = E.value, targetPriority: l, moveToValue: f = !1 } = {}) {
5477
+ let p = se(n, ae(r), i, l);
5478
+ if (G(p)) {
5470
5479
  if (c) return null;
5471
5480
  p = u.value, s = !1;
5472
- } else p == null && e.isRequired ? p = u.value : p != null && U(u.value, p) && a && (p = null);
5473
- let m = c ? d : u, h = !U(m.value, p);
5481
+ } else p == null && e.isRequired ? p = u.value : p != null && W(u.value, p) && a && (p = null);
5482
+ let m = c ? d : u, h = !W(m.value, p);
5474
5483
  m.value = p, c || (d.value = null);
5475
5484
  let g = K(p, D.value);
5476
5485
  return h && (_ = !1, t(c ? "drag" : "update:modelValue", g), y(() => _ = !0)), s && !c && Te(), o && le(), f && y(() => Ae(l ?? "start")), g;
@@ -5493,7 +5502,7 @@ function db(e, { emit: t, slots: n }) {
5493
5502
  type: "string",
5494
5503
  mask: j.value
5495
5504
  };
5496
- q(r, {
5505
+ ce(r, {
5497
5506
  ...n,
5498
5507
  config: i,
5499
5508
  patch: P.value,
@@ -5519,7 +5528,7 @@ function db(e, { emit: t, slots: n }) {
5519
5528
  };
5520
5529
  }
5521
5530
  function pe(e) {
5522
- e.key === "Escape" && q(u.value, {
5531
+ e.key === "Escape" && ce(u.value, {
5523
5532
  formatInput: !0,
5524
5533
  hidePopover: !0
5525
5534
  });
@@ -5553,11 +5562,11 @@ function db(e, { emit: t, slots: n }) {
5553
5562
  e ? g = {
5554
5563
  start: t.startDate,
5555
5564
  end: t.endDate
5556
- } : g != null && (g.end = t.date), q(g, {
5565
+ } : g != null && (g.end = t.date), ce(g, {
5557
5566
  ...n,
5558
5567
  dragging: e
5559
5568
  });
5560
- } else q(t.date, {
5569
+ } else ce(t.date, {
5561
5570
  ...n,
5562
5571
  clearIfEqual: !e.isRequired
5563
5572
  });
@@ -5576,7 +5585,7 @@ function db(e, { emit: t, slots: n }) {
5576
5585
  t("daykeydown", e, n);
5577
5586
  }
5578
5587
  function Ce(e, t) {
5579
- E.value && g != null && (g.end = e.date, q(De(g), {
5588
+ E.value && g != null && (g.end = e.date, ce(De(g), {
5580
5589
  patch: "date",
5581
5590
  formatInput: !0
5582
5591
  }));
@@ -5635,33 +5644,33 @@ function db(e, { emit: t, slots: n }) {
5635
5644
  }
5636
5645
  async function Ae(e, t = {}) {
5637
5646
  let n = u.value;
5638
- if (m.value == null || !se(n)) return !1;
5639
- let r = e !== "end", i = r ? 1 : -1, o = Ig(oe(n) ? r ? n.start : n.end : n, "monthly", a.value);
5647
+ if (m.value == null || !oe(n)) return !1;
5648
+ let r = e !== "end", i = r ? 1 : -1, o = Ig(H(n) ? r ? n.start : n.end : n, "monthly", a.value);
5640
5649
  return m.value.move(o, {
5641
5650
  position: i,
5642
5651
  ...t
5643
5652
  });
5644
5653
  }
5645
- H(() => e.isRange, (e) => {
5654
+ U(() => e.isRange, (e) => {
5646
5655
  e && console.warn("The `is-range` prop will be deprecated in future releases. Please use the `range` modifier.");
5647
- }, { immediate: !0 }), H(() => v.value, () => {
5648
- ce(null, { formatInput: !0 });
5649
- }), H(() => j.value, () => le()), H(() => e.modelValue, (e) => {
5650
- _ && ce(e, {
5656
+ }, { immediate: !0 }), U(() => v.value, () => {
5657
+ q(null, { formatInput: !0 });
5658
+ }), U(() => j.value, () => le()), U(() => e.modelValue, (e) => {
5659
+ _ && q(e, {
5651
5660
  formatInput: !0,
5652
5661
  hidePopover: !1
5653
5662
  });
5654
- }), H(() => B.value, () => {
5655
- ch(e.rules) && ce(e.modelValue, {
5663
+ }), U(() => B.value, () => {
5664
+ ch(e.rules) && q(e.modelValue, {
5656
5665
  formatInput: !0,
5657
5666
  hidePopover: !1
5658
5667
  });
5659
- }), H(() => e.timezone, () => {
5660
- ce(u.value, { formatInput: !0 });
5668
+ }), U(() => e.timezone, () => {
5669
+ q(u.value, { formatInput: !0 });
5661
5670
  });
5662
5671
  let je = ie(D.value);
5663
- u.value = G(e.modelValue ?? null, je, "dateTime"), T(() => {
5664
- ce(e.modelValue, {
5672
+ u.value = se(e.modelValue ?? null, je, "dateTime"), T(() => {
5673
+ q(e.modelValue, {
5665
5674
  formatInput: !0,
5666
5675
  hidePopover: !1
5667
5676
  });
@@ -5688,7 +5697,7 @@ function db(e, { emit: t, slots: n }) {
5688
5697
  move: Oe,
5689
5698
  moveBy: ke,
5690
5699
  moveToValue: Ae,
5691
- updateValue: q,
5700
+ updateValue: ce,
5692
5701
  showPopover: we,
5693
5702
  hidePopover: Te,
5694
5703
  togglePopover: Ee,
@@ -5945,7 +5954,7 @@ var gb = ["value"], _b = ["value", "disabled"], vb = {
5945
5954
  "vc-invalid": !z(l),
5946
5955
  "vc-attached": !z(y)
5947
5956
  }]]) }, [d(sy, { name: "time-header" }, {
5948
- default: U(() => [z(w) && z(u) ? (D(), s("div", bb, [
5957
+ default: W(() => [z(w) && z(u) ? (D(), s("div", bb, [
5949
5958
  c("span", xb, I(z(i).formatDate(z(u), "WWW")), 1),
5950
5959
  c("span", Sb, I(z(i).formatDate(z(u), "MMM")), 1),
5951
5960
  c("span", Cb, I(z(i).formatDate(z(u), "D")), 1),
@@ -6024,7 +6033,7 @@ var gb = ["value"], _b = ["value", "disabled"], vb = {
6024
6033
  onDaymouseenter: z(m),
6025
6034
  onDaykeydown: z(h)
6026
6035
  }, {
6027
- footer: U(() => [z(l) ? (D(!0), s(e, { key: 0 }, M(z(g), (e) => (D(), a(kb, {
6036
+ footer: W(() => [z(l) ? (D(!0), s(e, { key: 0 }, M(z(g), (e) => (D(), a(kb, {
6028
6037
  key: e,
6029
6038
  position: e
6030
6039
  }, null, 8, ["position"]))), 128)) : o("", !0), d(sy, { name: "dp-footer" })]),
@@ -6058,7 +6067,7 @@ var gb = ["value"], _b = ["value", "disabled"], vb = {
6058
6067
  onBeforeHide: z(c),
6059
6068
  onAfterHide: z(l)
6060
6069
  }, {
6061
- default: U(() => [d(Ab, x(p(e.$attrs)), null, 16)]),
6070
+ default: W(() => [d(Ab, x(p(e.$attrs)), null, 16)]),
6062
6071
  _: 1
6063
6072
  }, 8, [
6064
6073
  "id",
@@ -6503,11 +6512,11 @@ function Ox(e, t = 0, n = {}) {
6503
6512
  //#endregion
6504
6513
  //#region builtin:esm-external-require-moment
6505
6514
  var kx = /* @__PURE__ */ ge(((e, t) => {
6506
- t.exports = Object.prototype.hasOwnProperty.call(ce, "module.exports") ? ce["module.exports"] : { ...ce };
6507
- })), Ax = /* @__PURE__ */ ge(((e, t, n) => {
6515
+ t.exports = { ...ce };
6516
+ })), Ax = /* @__PURE__ */ ge(((e, t) => {
6508
6517
  (function(e, n) {
6509
6518
  typeof t == "object" && t.exports ? t.exports = n(kx()) : typeof define == "function" && define.amd ? define(["moment"], n) : n(e.moment);
6510
- })(n, function(e) {
6519
+ })(e, function(e) {
6511
6520
  e.version === void 0 && e.default && (e = e.default);
6512
6521
  var t = "0.5.48", n = {}, r = {}, i = {}, a = {}, o = {}, s;
6513
6522
  (!e || typeof e.version != "string") && R("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
@@ -6776,7 +6785,11 @@ function Vx(e, t, { signal: n, edges: r = ["leading", "trailing"] } = {}) {
6776
6785
  signal: n,
6777
6786
  edges: r
6778
6787
  }), o = function(...n) {
6779
- i ??= Date.now(), Date.now() - i >= t ? (i = Date.now(), e.apply(this, n), a.cancel(), a.schedule()) : a.apply(this, n);
6788
+ if (i ??= Date.now(), Date.now() - i >= t) {
6789
+ i = Date.now(), e.apply(this, n), a.cancel(), a.schedule();
6790
+ return;
6791
+ }
6792
+ a.apply(this, n);
6780
6793
  };
6781
6794
  return o.cancel = a.cancel, o.flush = a.flush, o;
6782
6795
  }
@@ -6961,10 +6974,10 @@ var $x = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", eS
6961
6974
  function d() {
6962
6975
  l.value = !1, n("onerror");
6963
6976
  }
6964
- return (t, n) => (D(), s("figure", v({ class: "r-component r-img" }, a.value, { role: "img" }), [W(c("img", v({ class: "r-img-image" }, o.value, {
6977
+ return (t, n) => (D(), s("figure", v({ class: "r-component r-img" }, a.value, { role: "img" }), [G(c("img", v({ class: "r-img-image" }, o.value, {
6965
6978
  onLoad: u,
6966
6979
  onError: d
6967
- }), null, 16), [[z(iS), e.lazy]]), N(t.$slots, "loading", {}, () => [W(c("div", oS, null, 512), [[oe, l.value]])])], 16));
6980
+ }), null, 16), [[z(iS), e.lazy]]), N(t.$slots, "loading", {}, () => [G(c("div", oS, null, 512), [[H, l.value]])])], 16));
6968
6981
  }
6969
6982
  }), cS = { class: "r-avatar-main" }, lS = { class: "r-avatar-initials-value" }, uS = {
6970
6983
  key: 1,
@@ -7039,7 +7052,7 @@ var $x = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", eS
7039
7052
  "aria-hidden": "true",
7040
7053
  class: "r-icon-gray r-badge-icon r-cursor-pointer",
7041
7054
  icon: "close-s",
7042
- onKeypress: n[0] ||= G(K((e) => r("close"), ["prevent"]), ["enter"]),
7055
+ onKeypress: n[0] ||= se(K((e) => r("close"), ["prevent"]), ["enter"]),
7043
7056
  onClickCapture: n[1] ||= K((e) => r("close"), ["stop"])
7044
7057
  })) : o("", !0)], 2));
7045
7058
  }
@@ -7208,7 +7221,11 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
7208
7221
  mask: "YYYY-MM-DD",
7209
7222
  ...n.modelConfig
7210
7223
  }), h = (e) => {
7211
- e ? r("update:modelValue", e) : n.allowEmpty && r("update:modelValue", null);
7224
+ if (!e) {
7225
+ n.allowEmpty && r("update:modelValue", null);
7226
+ return;
7227
+ }
7228
+ r("update:modelValue", e);
7212
7229
  }, g = (e) => {
7213
7230
  let t = new Date(e);
7214
7231
  return t instanceof Date && !isNaN(t.getTime());
@@ -7235,7 +7252,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
7235
7252
  masks: e.masks,
7236
7253
  "onUpdate:modelValue": h
7237
7254
  }), l({
7238
- default: U(({ inputValue: s, inputEvents: c }) => [d(i, {
7255
+ default: W(({ inputValue: s, inputEvents: c }) => [d(i, {
7239
7256
  name: t.$attrs.name,
7240
7257
  value: s,
7241
7258
  "input-events": c,
@@ -7245,7 +7262,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
7245
7262
  onFocus: _,
7246
7263
  onRightIconClick: c.click
7247
7264
  }, {
7248
- "right-button": U(() => [e.modelValue && e.allowEmpty ? (D(), a(r, {
7265
+ "right-button": W(() => [e.modelValue && e.allowEmpty ? (D(), a(r, {
7249
7266
  key: 0,
7250
7267
  icon: "trash",
7251
7268
  class: "r-flex-none",
@@ -7264,11 +7281,11 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
7264
7281
  _: 2
7265
7282
  }, [e.hideSelectToday ? void 0 : {
7266
7283
  name: "footer",
7267
- fn: U(() => [c("div", DS, [d(r, {
7284
+ fn: W(() => [c("div", DS, [d(r, {
7268
7285
  fluid: "",
7269
7286
  onClick: b
7270
7287
  }, {
7271
- default: U(() => [...n[1] ||= [u("Today", -1)]]),
7288
+ default: W(() => [...n[1] ||= [u("Today", -1)]]),
7272
7289
  _: 1
7273
7290
  })])]),
7274
7291
  key: "0"
@@ -7478,14 +7495,14 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
7478
7495
  return (n, r) => {
7479
7496
  let i = P("r-button"), l = P("r-popper"), u = P("r-button-group");
7480
7497
  return D(), a(u, { class: b({ "r-button-group-single": !t.showPresets }) }, {
7481
- default: U(() => [d(i, {
7498
+ default: W(() => [d(i, {
7482
7499
  "icon-left": "calendar",
7483
7500
  "capitalize-first-letter": !1,
7484
7501
  disabled: t.disabled,
7485
7502
  class: b({ "r-date-range-button": t.showPresets }),
7486
7503
  onClick: r[0] ||= (e) => t.calendarToggle()
7487
7504
  }, {
7488
- default: U(() => [C.value ? (D(), s("span", MS, I(C.value), 1)) : (D(), s("span", NS, I(t.placeholder), 1))]),
7505
+ default: W(() => [C.value ? (D(), s("span", MS, I(C.value), 1)) : (D(), s("span", NS, I(t.placeholder), 1))]),
7489
7506
  _: 1
7490
7507
  }, 8, ["disabled", "class"]), t.showPresets ? (D(), a(l, {
7491
7508
  key: 0,
@@ -7496,12 +7513,12 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
7496
7513
  offset: 6,
7497
7514
  disabled: t.disabled
7498
7515
  }, {
7499
- trigger: U(() => [d(i, {
7516
+ trigger: W(() => [d(i, {
7500
7517
  disabled: t.disabled,
7501
7518
  icon: "actions",
7502
7519
  onClick: O
7503
7520
  }, null, 8, ["disabled"])]),
7504
- content: U(() => [c("div", PS, [c("div", FS, [c("div", IS, [(D(!0), s(e, null, M(p.value, (e) => (D(), s("a", {
7521
+ content: W(() => [c("div", PS, [c("div", FS, [c("div", IS, [(D(!0), s(e, null, M(p.value, (e) => (D(), s("a", {
7505
7522
  key: e,
7506
7523
  class: "r-popover-menu-item r-range-picker-item",
7507
7524
  onClick: (t) => j(e)
@@ -7573,10 +7590,10 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
7573
7590
  };
7574
7591
  return (t, n) => {
7575
7592
  let r = P("r-input");
7576
- return D(), s("div", BS, [W(d(r, {
7593
+ return D(), s("div", BS, [G(d(r, {
7577
7594
  disabled: e.disabled,
7578
7595
  "right-icon": "calendar"
7579
- }, null, 8, ["disabled"]), [[oe, e.disabled]]), d(z(Nb), v({
7596
+ }, null, 8, ["disabled"]), [[H, e.disabled]]), d(z(Nb), v({
7580
7597
  "is-range": "",
7581
7598
  "model-value": p.value
7582
7599
  }, t.$attrs, {
@@ -7590,7 +7607,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
7590
7607
  mode: m.value,
7591
7608
  "onUpdate:modelValue": h
7592
7609
  }), {
7593
- default: U(({ togglePopover: t }) => [d(zS, {
7610
+ default: W(({ togglePopover: t }) => [d(zS, {
7594
7611
  "model-value": f.value,
7595
7612
  "calendar-toggle": t,
7596
7613
  disabled: e.disabled,
@@ -7655,7 +7672,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
7655
7672
  },
7656
7673
  setup(t) {
7657
7674
  let n = t;
7658
- return se(() => {
7675
+ return oe(() => {
7659
7676
  n.required && n.optional && console.warn("'required' and 'optional' are exclusive; neither marker is shown");
7660
7677
  }), (t, r) => (D(), s("label", {
7661
7678
  class: "r-field-label",
@@ -7749,7 +7766,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
7749
7766
  required: e.required,
7750
7767
  optional: e.optional
7751
7768
  }, {
7752
- default: U(() => [u(I(e.label), 1)]),
7769
+ default: W(() => [u(I(e.label), 1)]),
7753
7770
  _: 1
7754
7771
  }, 8, [
7755
7772
  "for",
@@ -8003,11 +8020,11 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8003
8020
  }
8004
8021
  return T(ie), w(() => {
8005
8022
  l.hideTimer && clearInterval(l.hideTimer), l.activePopper === l.id && C(null), re();
8006
- }), H(() => a.state, (e) => {
8023
+ }), U(() => a.state, (e) => {
8007
8024
  e !== null && E(e);
8008
- }, { immediate: !0 }), H(() => l.activePopper, (e) => {
8025
+ }, { immediate: !0 }), U(() => l.activePopper, (e) => {
8009
8026
  e !== null && e !== l.id && a.globalAutoHide && te();
8010
- }, { immediate: !0 }), (t, r) => W((D(), s("div", {
8027
+ }, { immediate: !0 }), (t, r) => G((D(), s("div", {
8011
8028
  ref_key: "popperElement",
8012
8029
  ref: u,
8013
8030
  class: b(["r-popper", {
@@ -8015,7 +8032,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8015
8032
  "r-popover-fixed": e.strategy === "fixed",
8016
8033
  "r-popover-absolute": e.strategy === "absolute"
8017
8034
  }]),
8018
- onKeydown: G(I, ["esc"])
8035
+ onKeydown: se(I, ["esc"])
8019
8036
  }, [N(t.$slots, "trigger", { popper: S.value }), c("div", {
8020
8037
  ref_key: "popperContentElement",
8021
8038
  ref: f,
@@ -8025,7 +8042,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8025
8042
  name: e.slideFrom,
8026
8043
  duration: _.value
8027
8044
  }, {
8028
- default: U(() => [l.isPopperVisible ? (D(), s("div", YS, [N(t.$slots, "content", { popper: S.value })])) : o("", !0)]),
8045
+ default: W(() => [l.isPopperVisible ? (D(), s("div", YS, [N(t.$slots, "content", { popper: S.value })])) : o("", !0)]),
8029
8046
  _: 3
8030
8047
  }, 8, ["name", "duration"])], 512)], 34)), [[z(Gb), ee]]);
8031
8048
  }
@@ -8190,11 +8207,11 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8190
8207
  let n = e >= 12 ? "PM" : "AM";
8191
8208
  return `${l(e % 12 || 12)} : ${l(t)} ${n}`;
8192
8209
  }
8193
- H(() => r.startDate, (e) => {
8210
+ U(() => r.startDate, (e) => {
8194
8211
  e ? (f.value = l(e.getMonth() + 1), p.value = l(e.getDate()), m.value = e.getFullYear().toString()) : (f.value = "", p.value = "", m.value = "");
8195
- }, { immediate: !0 }), H(() => r.endDate, (e) => {
8212
+ }, { immediate: !0 }), U(() => r.endDate, (e) => {
8196
8213
  e ? (h.value = l(e.getMonth() + 1), g.value = l(e.getDate()), _.value = e.getFullYear().toString()) : (h.value = "", g.value = "", _.value = "");
8197
- }, { immediate: !0 }), H(() => r.startTime, (e) => {
8214
+ }, { immediate: !0 }), U(() => r.startTime, (e) => {
8198
8215
  if (r.is24hr) v.value = l(e.hours);
8199
8216
  else {
8200
8217
  let t = e.hours % 12 || 12;
@@ -8204,7 +8221,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8204
8221
  }, {
8205
8222
  immediate: !0,
8206
8223
  deep: !0
8207
- }), H(() => r.endTime, (e) => {
8224
+ }), U(() => r.endTime, (e) => {
8208
8225
  if (r.is24hr) C.value = l(e.hours);
8209
8226
  else {
8210
8227
  let t = e.hours % 12 || 12;
@@ -8217,11 +8234,19 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8217
8234
  });
8218
8235
  function L() {
8219
8236
  let e = u(f.value, p.value, m.value);
8220
- e ? a("update:startDate", e) : r.startDate ? (f.value = l(r.startDate.getMonth() + 1), p.value = l(r.startDate.getDate()), m.value = r.startDate.getFullYear().toString()) : (f.value = "", p.value = "", m.value = "", a("update:startDate", null));
8237
+ if (e) {
8238
+ a("update:startDate", e);
8239
+ return;
8240
+ }
8241
+ r.startDate ? (f.value = l(r.startDate.getMonth() + 1), p.value = l(r.startDate.getDate()), m.value = r.startDate.getFullYear().toString()) : (f.value = "", p.value = "", m.value = "", a("update:startDate", null));
8221
8242
  }
8222
8243
  function R() {
8223
8244
  let e = u(h.value, g.value, _.value);
8224
- e ? a("update:endDate", e) : r.endDate ? (h.value = l(r.endDate.getMonth() + 1), g.value = l(r.endDate.getDate()), _.value = r.endDate.getFullYear().toString()) : (h.value = "", g.value = "", _.value = "", a("update:endDate", null));
8245
+ if (e) {
8246
+ a("update:endDate", e);
8247
+ return;
8248
+ }
8249
+ r.endDate ? (h.value = l(r.endDate.getMonth() + 1), g.value = l(r.endDate.getDate()), _.value = r.endDate.getFullYear().toString()) : (h.value = "", g.value = "", _.value = "", a("update:endDate", null));
8225
8250
  }
8226
8251
  function z() {
8227
8252
  let e = parseInt(v.value, 10), t = parseInt(x.value, 10);
@@ -8258,30 +8283,30 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8258
8283
  function ae() {
8259
8284
  h.value.length >= 2 && y(() => N.value?.focus());
8260
8285
  }
8261
- function oe() {
8286
+ function H() {
8262
8287
  g.value.length >= 2 && y(() => P.value?.focus());
8263
8288
  }
8264
- function se() {
8289
+ function oe() {
8265
8290
  v.value.length >= 2 && y(() => F.value?.focus());
8266
8291
  }
8267
- function U() {
8292
+ function W() {
8268
8293
  C.value.length >= 2 && y(() => ee.value?.focus());
8269
8294
  }
8270
- function G() {
8295
+ function se() {
8271
8296
  S.value = S.value === "AM" ? "PM" : "AM", z();
8272
8297
  }
8273
- function q() {
8298
+ function ce() {
8274
8299
  O.value = O.value === "AM" ? "PM" : "AM", B();
8275
8300
  }
8276
- let ce = A(!1), le = A(!1), ue = A(null), de = A(null);
8301
+ let q = A(!1), le = A(!1), ue = A(null), de = A(null);
8277
8302
  function fe() {
8278
- ce.value = !0, le.value = !1;
8303
+ q.value = !0, le.value = !1;
8279
8304
  }
8280
8305
  function pe() {
8281
- le.value = !0, ce.value = !1;
8306
+ le.value = !0, q.value = !1;
8282
8307
  }
8283
8308
  function me() {
8284
- ce.value = !1;
8309
+ q.value = !1;
8285
8310
  }
8286
8311
  function he() {
8287
8312
  le.value = !1;
@@ -8290,7 +8315,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8290
8315
  a("update:startTime", {
8291
8316
  hours: e.hours,
8292
8317
  minutes: e.minutes
8293
- }), ce.value = !1;
8318
+ }), q.value = !1;
8294
8319
  }
8295
8320
  function _e(e) {
8296
8321
  a("update:endTime", {
@@ -8306,7 +8331,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8306
8331
  }
8307
8332
  function be(e) {
8308
8333
  let t = e.target;
8309
- ue.value && !ue.value.contains(t) && (ce.value = !1), de.value && !de.value.contains(t) && (le.value = !1);
8334
+ ue.value && !ue.value.contains(t) && (q.value = !1), de.value && !de.value.contains(t) && (le.value = !1);
8310
8335
  }
8311
8336
  function xe(e) {
8312
8337
  !/^\d$/.test(e.key) && ![
@@ -8323,7 +8348,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8323
8348
  document.removeEventListener("click", be);
8324
8349
  }), (t, n) => (D(), s("div", aC, [
8325
8350
  c("div", oC, [n[18] ||= c("label", { class: "r-date-range-input-label" }, "Start date", -1), c("div", sC, [c("div", cC, [
8326
- W(c("input", {
8351
+ G(c("input", {
8327
8352
  "onUpdate:modelValue": n[0] ||= (e) => f.value = e,
8328
8353
  type: "text",
8329
8354
  class: "r-date-range-segment r-date-range-segment-month",
@@ -8334,7 +8359,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8334
8359
  onKeydown: xe
8335
8360
  }, null, 544), [[V, f.value]]),
8336
8361
  n[14] ||= c("span", { class: "r-date-range-segment-separator" }, "/", -1),
8337
- W(c("input", {
8362
+ G(c("input", {
8338
8363
  ref_key: "startDayRef",
8339
8364
  ref: k,
8340
8365
  "onUpdate:modelValue": n[1] ||= (e) => p.value = e,
@@ -8347,7 +8372,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8347
8372
  onKeydown: xe
8348
8373
  }, null, 544), [[V, p.value]]),
8349
8374
  n[15] ||= c("span", { class: "r-date-range-segment-separator" }, "/", -1),
8350
- W(c("input", {
8375
+ G(c("input", {
8351
8376
  ref_key: "startYearRef",
8352
8377
  ref: j,
8353
8378
  "onUpdate:modelValue": n[2] ||= (e) => m.value = e,
@@ -8368,13 +8393,13 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8368
8393
  ref: ue,
8369
8394
  class: "r-date-range-time-dropdown"
8370
8395
  }, [c("div", lC, [
8371
- W(c("input", {
8396
+ G(c("input", {
8372
8397
  "onUpdate:modelValue": n[3] ||= (e) => v.value = e,
8373
8398
  type: "text",
8374
8399
  class: "r-date-range-segment r-date-range-segment-hour",
8375
8400
  placeholder: r.is24hr ? "HH" : "hh",
8376
8401
  maxlength: "2",
8377
- onInput: se,
8402
+ onInput: oe,
8378
8403
  onFocus: fe,
8379
8404
  onBlur: n[4] ||= (e) => {
8380
8405
  z(), me();
@@ -8382,7 +8407,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8382
8407
  onKeydown: xe
8383
8408
  }, null, 40, uC), [[V, v.value]]),
8384
8409
  n[16] ||= c("span", { class: "r-date-range-segment-separator" }, ":", -1),
8385
- W(c("input", {
8410
+ G(c("input", {
8386
8411
  ref_key: "startMinuteRef",
8387
8412
  ref: F,
8388
8413
  "onUpdate:modelValue": n[5] ||= (e) => x.value = e,
@@ -8400,7 +8425,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8400
8425
  key: 0,
8401
8426
  type: "button",
8402
8427
  class: "r-date-range-period-toggle",
8403
- onClick: G
8428
+ onClick: se
8404
8429
  }, I(S.value), 1)),
8405
8430
  n[17] ||= c("svg", {
8406
8431
  class: "r-date-range-time-clock-icon r-icon-20",
@@ -8420,7 +8445,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8420
8445
  "stroke-width": "1.5",
8421
8446
  "stroke-linecap": "round"
8422
8447
  })], -1)
8423
- ]), ce.value ? (D(), s("div", dC, [(D(!0), s(e, null, M(te.value, (e) => (D(), s("button", {
8448
+ ]), q.value ? (D(), s("div", dC, [(D(!0), s(e, null, M(te.value, (e) => (D(), s("button", {
8424
8449
  key: `start-${e.hours}-${e.minutes}`,
8425
8450
  type: "button",
8426
8451
  class: b(["r-date-range-time-dropdown-item", { "r-is-selected": ve(e) }]),
@@ -8428,7 +8453,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8428
8453
  }, I(e.label), 43, fC))), 128))])) : o("", !0)], 512)) : o("", !0)])]),
8429
8454
  r.showTimePicker ? (D(), s("span", pC, "-")) : o("", !0),
8430
8455
  c("div", mC, [n[23] ||= c("label", { class: "r-date-range-input-label" }, "End date", -1), c("div", hC, [c("div", gC, [
8431
- W(c("input", {
8456
+ G(c("input", {
8432
8457
  "onUpdate:modelValue": n[7] ||= (e) => h.value = e,
8433
8458
  type: "text",
8434
8459
  class: "r-date-range-segment r-date-range-segment-month",
@@ -8439,7 +8464,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8439
8464
  onKeydown: xe
8440
8465
  }, null, 544), [[V, h.value]]),
8441
8466
  n[19] ||= c("span", { class: "r-date-range-segment-separator" }, "/", -1),
8442
- W(c("input", {
8467
+ G(c("input", {
8443
8468
  ref_key: "endDayRef",
8444
8469
  ref: N,
8445
8470
  "onUpdate:modelValue": n[8] ||= (e) => g.value = e,
@@ -8447,12 +8472,12 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8447
8472
  class: "r-date-range-segment r-date-range-segment-day",
8448
8473
  placeholder: "DD",
8449
8474
  maxlength: "2",
8450
- onInput: oe,
8475
+ onInput: H,
8451
8476
  onBlur: R,
8452
8477
  onKeydown: xe
8453
8478
  }, null, 544), [[V, g.value]]),
8454
8479
  n[20] ||= c("span", { class: "r-date-range-segment-separator" }, "/", -1),
8455
- W(c("input", {
8480
+ G(c("input", {
8456
8481
  ref_key: "endYearRef",
8457
8482
  ref: P,
8458
8483
  "onUpdate:modelValue": n[9] ||= (e) => _.value = e,
@@ -8473,13 +8498,13 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8473
8498
  ref: de,
8474
8499
  class: "r-date-range-time-dropdown"
8475
8500
  }, [c("div", _C, [
8476
- W(c("input", {
8501
+ G(c("input", {
8477
8502
  "onUpdate:modelValue": n[10] ||= (e) => C.value = e,
8478
8503
  type: "text",
8479
8504
  class: "r-date-range-segment r-date-range-segment-hour",
8480
8505
  placeholder: r.is24hr ? "HH" : "hh",
8481
8506
  maxlength: "2",
8482
- onInput: U,
8507
+ onInput: W,
8483
8508
  onFocus: pe,
8484
8509
  onBlur: n[11] ||= (e) => {
8485
8510
  B(), he();
@@ -8487,7 +8512,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8487
8512
  onKeydown: xe
8488
8513
  }, null, 40, vC), [[V, C.value]]),
8489
8514
  n[21] ||= c("span", { class: "r-date-range-segment-separator" }, ":", -1),
8490
- W(c("input", {
8515
+ G(c("input", {
8491
8516
  ref_key: "endMinuteRef",
8492
8517
  ref: ee,
8493
8518
  "onUpdate:modelValue": n[12] ||= (e) => w.value = e,
@@ -8505,7 +8530,7 @@ var vS = ["aria-checked"], yS = ["for"], bS = [
8505
8530
  key: 0,
8506
8531
  type: "button",
8507
8532
  class: "r-date-range-period-toggle",
8508
- onClick: q
8533
+ onClick: ce
8509
8534
  }, I(O.value), 1)),
8510
8535
  n[22] ||= c("svg", {
8511
8536
  class: "r-date-range-time-clock-icon r-icon-20",
@@ -8696,7 +8721,7 @@ var kC = { class: "r-date-range-calendar-header" }, AC = { class: "r-date-range-
8696
8721
  maxDate: L(r, "maxDate"),
8697
8722
  columns: L(r, "columns")
8698
8723
  });
8699
- H(() => r.navigateToDate, (e) => {
8724
+ U(() => r.navigateToDate, (e) => {
8700
8725
  e && m(e);
8701
8726
  });
8702
8727
  function h(e) {
@@ -8887,17 +8912,17 @@ var kC = { class: "r-date-range-calendar-header" }, AC = { class: "r-date-range-
8887
8912
  type: "plain",
8888
8913
  onClick: x
8889
8914
  }, {
8890
- default: U(() => [...t[0] ||= [u("Clear", -1)]]),
8915
+ default: W(() => [...t[0] ||= [u("Clear", -1)]]),
8891
8916
  _: 1
8892
8917
  }), c("div", RC, [d(Bb, { onClick: y }, {
8893
- default: U(() => [...t[1] ||= [u("Cancel", -1)]]),
8918
+ default: W(() => [...t[1] ||= [u("Cancel", -1)]]),
8894
8919
  _: 1
8895
8920
  }), d(Bb, {
8896
8921
  type: "primary",
8897
8922
  disabled: S.value,
8898
8923
  onClick: v
8899
8924
  }, {
8900
- default: U(() => [...t[2] ||= [u("Apply", -1)]]),
8925
+ default: W(() => [...t[2] ||= [u("Apply", -1)]]),
8901
8926
  _: 1
8902
8927
  }, 8, ["disabled"])])])
8903
8928
  ])], 2));
@@ -8976,21 +9001,22 @@ function VC(e = {}) {
8976
9001
  };
8977
9002
  }
8978
9003
  function x(e) {
8979
- if (!e) C();
8980
- else {
8981
- if (e.relativeFilterValue) {
8982
- let n = jS(t), r = Object.entries(n).find(([, t]) => t.relativeFilterValue === e.relativeFilterValue);
8983
- if (r) {
8984
- let [e, t] = r;
8985
- v(t), l.value = "start", u.value = e;
8986
- return;
8987
- }
9004
+ if (!e) {
9005
+ C();
9006
+ return;
9007
+ }
9008
+ if (e.relativeFilterValue) {
9009
+ let n = jS(t), r = Object.entries(n).find(([, t]) => t.relativeFilterValue === e.relativeFilterValue);
9010
+ if (r) {
9011
+ let [e, t] = r;
9012
+ v(t), l.value = "start", u.value = e;
9013
+ return;
8988
9014
  }
8989
- v({
8990
- start: (0, Rx.default)(e.start).tz(t),
8991
- end: (0, Rx.default)(e.end).tz(t)
8992
- }), l.value = "start", u.value = null;
8993
9015
  }
9016
+ v({
9017
+ start: (0, Rx.default)(e.start).tz(t),
9018
+ end: (0, Rx.default)(e.end).tz(t)
9019
+ }), l.value = "start", u.value = null;
8994
9020
  }
8995
9021
  function S() {
8996
9022
  r.value = null, a.value = null, o.value = {
@@ -9121,7 +9147,7 @@ var WC = 900, GC = /* @__PURE__ */ f({
9121
9147
  let n = jS(r.timezone);
9122
9148
  return e.filter((e) => n[e].end.diff(n[e].start, "days") < t);
9123
9149
  }), O = i(() => HC(C.value, x.startDate.value, x.selectionMode.value === "end", r.maxDate)), k = i(() => UC(C.value, x.startDate.value, x.selectionMode.value === "end", r.minDate));
9124
- H(n, (e) => {
9150
+ U(n, (e) => {
9125
9151
  p.value || x.setFromDateRange(e);
9126
9152
  }, { immediate: !0 });
9127
9153
  function j() {
@@ -9173,13 +9199,13 @@ var WC = 900, GC = /* @__PURE__ */ f({
9173
9199
  onToggleOn: t[0] ||= (e) => p.value = !0,
9174
9200
  onToggleOff: t[1] ||= (e) => p.value = !1
9175
9201
  }, {
9176
- trigger: U(() => [r.label ? (D(), a(KS, {
9202
+ trigger: W(() => [r.label ? (D(), a(KS, {
9177
9203
  key: 0,
9178
9204
  for: r.id,
9179
9205
  required: r.required,
9180
9206
  optional: r.optional
9181
9207
  }, {
9182
- default: U(() => [u(I(r.label), 1)]),
9208
+ default: W(() => [u(I(r.label), 1)]),
9183
9209
  _: 1
9184
9210
  }, 8, [
9185
9211
  "for",
@@ -9207,7 +9233,7 @@ var WC = 900, GC = /* @__PURE__ */ f({
9207
9233
  "timezone",
9208
9234
  "is-invalid"
9209
9235
  ])]),
9210
- content: U(() => [d(zC, {
9236
+ content: W(() => [d(zC, {
9211
9237
  "start-date": z(x).startDate.value,
9212
9238
  "end-date": z(x).endDate.value,
9213
9239
  "start-time": z(x).startTime.value,
@@ -9305,8 +9331,11 @@ var QC = { class: "r-file-dropzone-gallery-item" }, $C = {
9305
9331
  let n = e, r = t, a = A(""), o = i(() => !a.value);
9306
9332
  function l() {
9307
9333
  if (a.value &&= "", n.file.name) {
9308
- if (ZC(n.file)) a.value = n.file.url;
9309
- else if (n.file.image && n.file.image instanceof File && n.file.image.type.startsWith("image/")) {
9334
+ if (ZC(n.file)) {
9335
+ a.value = n.file.url;
9336
+ return;
9337
+ }
9338
+ if (n.file.image && n.file.image instanceof File && n.file.image.type.startsWith("image/")) {
9310
9339
  let e = new FileReader();
9311
9340
  e.readAsDataURL(n.file.image), e.onload = (e) => {
9312
9341
  (e.target?.result).includes("image") && (a.value = e.target?.result);
@@ -9314,7 +9343,7 @@ var QC = { class: "r-file-dropzone-gallery-item" }, $C = {
9314
9343
  }
9315
9344
  }
9316
9345
  }
9317
- return T(l), H(() => n.file, l), (t, n) => {
9346
+ return T(l), U(() => n.file, l), (t, n) => {
9318
9347
  let i = P("r-icon"), l = P("r-button");
9319
9348
  return D(), s("div", QC, [o.value ? (D(), s("div", tw, [c("span", null, [d(i, {
9320
9349
  icon: "file",
@@ -9519,7 +9548,7 @@ var uw = { class: "r-file-dropzone-fields" }, dw = { class: "r-file-dropzone-hea
9519
9548
  c("hr")
9520
9549
  ], -1),
9521
9550
  d(Bb, null, {
9522
- default: U(() => [...n[0] ||= [u("Browse files", -1)]]),
9551
+ default: W(() => [...n[0] ||= [u("Browse files", -1)]]),
9523
9552
  _: 1
9524
9553
  })
9525
9554
  ])]),
@@ -9929,19 +9958,21 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
9929
9958
  let t = e.target, n = t.selectionStart === 0 && t.selectionEnd === t.value.length;
9930
9959
  if (t.selectionStart === 0 && (!t.value.includes("-") || n)) return;
9931
9960
  e.preventDefault();
9932
- } else if (/^\d$/.test(e.key) || e.preventDefault(), /^\d$/.test(e.key)) {
9961
+ return;
9962
+ }
9963
+ if (/^\d$/.test(e.key) || e.preventDefault(), /^\d$/.test(e.key)) {
9933
9964
  let t = e.target;
9934
9965
  t.selectionStart === 0 && t.value.startsWith("-") && e.preventDefault();
9935
9966
  }
9936
9967
  }
9937
9968
  }
9938
- function oe(e) {
9969
+ function H(e) {
9939
9970
  if (!l.integer) return;
9940
9971
  let t = e.clipboardData?.getData("text") ?? "";
9941
9972
  /^-?\d+$/.test(t) || e.preventDefault();
9942
9973
  }
9943
- function H(e) {
9944
- oe(e), l.onPaste?.(e);
9974
+ function U(e) {
9975
+ H(e), l.onPaste?.(e);
9945
9976
  }
9946
9977
  return n({
9947
9978
  focus: te,
@@ -9957,7 +9988,7 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
9957
9988
  required: t.required,
9958
9989
  optional: t.optional
9959
9990
  }, {
9960
- default: U(() => [u(I(t.label), 1)]),
9991
+ default: W(() => [u(I(t.label), 1)]),
9961
9992
  _: 1
9962
9993
  }, 8, [
9963
9994
  "for",
@@ -9976,9 +10007,9 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
9976
10007
  name: t.name
9977
10008
  }, n.$attrs, {
9978
10009
  onInput: O,
9979
- onKeydown: [G(K(j, ["exact", "prevent"]), ["enter"]), P],
10010
+ onKeydown: [se(K(j, ["exact", "prevent"]), ["enter"]), P],
9980
10011
  onKeyup: M,
9981
- onPaste: H
10012
+ onPaste: U
9982
10013
  }, ne(t.inputEvents, !0)), " ", 16, Mw)) : t.multiline && !t.submitOnEnter ? (D(), s("textarea", v({
9983
10014
  key: 2,
9984
10015
  id: t.name,
@@ -9991,9 +10022,9 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
9991
10022
  name: t.name
9992
10023
  }, n.$attrs, {
9993
10024
  onInput: O,
9994
- onKeydown: [G(j, ["enter"]), P],
10025
+ onKeydown: [se(j, ["enter"]), P],
9995
10026
  onKeyup: M,
9996
- onPaste: H
10027
+ onPaste: U
9997
10028
  }), null, 16, Nw)) : o("", !0) : (D(), s("input", v({
9998
10029
  key: 0,
9999
10030
  id: t.name,
@@ -10007,16 +10038,16 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
10007
10038
  autocomplete: w.value
10008
10039
  }, n.$attrs, {
10009
10040
  onInput: O,
10010
- onKeyup: [G(j, ["enter"]), M],
10041
+ onKeyup: [se(j, ["enter"]), M],
10011
10042
  onKeydown: P,
10012
10043
  onFocus: te,
10013
10044
  onBlur: r[0] ||= (e) => f("blur"),
10014
10045
  onClick: L,
10015
- onPaste: H,
10046
+ onPaste: U,
10016
10047
  onWheelPassive: R
10017
10048
  }, ne(t.inputEvents, !0)), null, 16, jw))], 64)),
10018
10049
  x.value ? (D(), a(Aw, { key: 2 }, {
10019
- default: U(() => [
10050
+ default: W(() => [
10020
10051
  t.leftLabel ? (D(), s("div", Pw, I(t.leftLabel), 1)) : o("", !0),
10021
10052
  c("div", { class: b(["r-field-control", S.value]) }, [
10022
10053
  t.leftIcon ? (D(), a(Q, {
@@ -10040,12 +10071,12 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
10040
10071
  autocomplete: w.value
10041
10072
  }, n.$attrs, {
10042
10073
  onInput: k,
10043
- onKeyup: [G(j, ["enter"]), M],
10074
+ onKeyup: [se(j, ["enter"]), M],
10044
10075
  onKeydown: P,
10045
10076
  onFocus: te,
10046
10077
  onBlur: r[2] ||= (e) => f("blur"),
10047
10078
  onClick: L,
10048
- onPaste: H,
10079
+ onPaste: U,
10049
10080
  onWheelPassive: R
10050
10081
  }, ne(t.inputEvents, !0)), null, 16, Fw),
10051
10082
  t.password ? (D(), a(Q, {
@@ -10197,7 +10228,7 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
10197
10228
  onEnter: _,
10198
10229
  onLeave: v
10199
10230
  }, {
10200
- default: U(() => [e.show ? (D(), s("div", {
10231
+ default: W(() => [e.show ? (D(), s("div", {
10201
10232
  key: 0,
10202
10233
  ref_key: "containerElement",
10203
10234
  ref: f,
@@ -10206,7 +10237,7 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
10206
10237
  style: S(p.value),
10207
10238
  "aria-label": e.title ? e.title : "Modal",
10208
10239
  onMousedown: g,
10209
- onKeyup: [G(g, ["esc"]), G(h, ["enter"])]
10240
+ onKeyup: [se(g, ["esc"]), se(h, ["enter"])]
10210
10241
  }, [t.$slots.content || t.$slots.contents ? (D(), s("div", {
10211
10242
  key: 0,
10212
10243
  class: b(["r-modal-overlay", { "r-is-scrollable": e.scroll }])
@@ -10238,7 +10269,7 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
10238
10269
  class: b({ "r-inline-3": t.$slots.actions }),
10239
10270
  onClick: g
10240
10271
  }, {
10241
- default: U(() => [u(I(e.cancelLabel), 1)]),
10272
+ default: W(() => [u(I(e.cancelLabel), 1)]),
10242
10273
  _: 1
10243
10274
  }, 8, ["class"]), N(t.$slots, "actions", {
10244
10275
  submit: h,
@@ -10340,14 +10371,14 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
10340
10371
  ref: f,
10341
10372
  position: t.position
10342
10373
  }, {
10343
- trigger: U(() => [
10374
+ trigger: W(() => [
10344
10375
  t.label ? (D(), a(KS, {
10345
10376
  key: 0,
10346
10377
  for: t.id,
10347
10378
  required: t.required,
10348
10379
  optional: t.optional
10349
10380
  }, {
10350
- default: U(() => [u(I(t.label), 1)]),
10381
+ default: W(() => [u(I(t.label), 1)]),
10351
10382
  _: 1
10352
10383
  }, 8, [
10353
10384
  "for",
@@ -10361,12 +10392,12 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
10361
10392
  "capitalize-first-letter": !1,
10362
10393
  onClick: g
10363
10394
  }, {
10364
- default: U(() => [c("span", $w, [t.modelValue ? (D(), s("span", eT, I(p.value), 1)) : (D(), s("span", tT, I(t.placeholder), 1))])]),
10395
+ default: W(() => [c("span", $w, [t.modelValue ? (D(), s("span", eT, I(p.value), 1)) : (D(), s("span", tT, I(t.placeholder), 1))])]),
10365
10396
  _: 1
10366
10397
  }, 8, ["id"]),
10367
10398
  t.caption ? (D(), s("span", nT, I(t.caption), 1)) : o("", !0)
10368
10399
  ]),
10369
- content: U(() => [c("div", rT, [c("div", iT, [c("div", aT, [c("div", oT, [c("div", sT, [
10400
+ content: W(() => [c("div", rT, [c("div", iT, [c("div", aT, [c("div", oT, [c("div", sT, [
10370
10401
  d(i, {
10371
10402
  "aria-label": "decrement button",
10372
10403
  class: "r-month-picker-year-left",
@@ -10430,7 +10461,11 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
10430
10461
  hasPrevious: C.value
10431
10462
  }));
10432
10463
  function E(e) {
10433
- T.value.modelValue ? e.content && T.value.modelValue(e.content) : console.warn("'paginationNavigate' has not been provided");
10464
+ if (!T.value.modelValue) {
10465
+ console.warn("'paginationNavigate' has not been provided");
10466
+ return;
10467
+ }
10468
+ e.content && T.value.modelValue(e.content);
10434
10469
  }
10435
10470
  return (t, n) => (D(), s("div", null, [N(t.$slots, "override", { override: T.value }, () => [c("div", dT, [c("div", fT, [
10436
10471
  d(Bb, {
@@ -10438,7 +10473,7 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
10438
10473
  disabled: !T.value.hasPrevious,
10439
10474
  onClick: T.value.previous
10440
10475
  }, {
10441
- default: U(() => [d(Q, { icon: "arrow-left" }), n[0] ||= u(" Prev ", -1)]),
10476
+ default: W(() => [d(Q, { icon: "arrow-left" }), n[0] ||= u(" Prev ", -1)]),
10442
10477
  _: 1
10443
10478
  }, 8, ["disabled", "onClick"]),
10444
10479
  (D(!0), s(e, null, M(T.value.items, (t, n) => (D(), s(e, null, [t.breakView ? (D(), s("span", {
@@ -10449,7 +10484,7 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
10449
10484
  class: b(["r-pagination-control-button", { "r-button-type-primary": t.selected }]),
10450
10485
  onClick: (e) => E(t)
10451
10486
  }, {
10452
- default: U(() => [u(I(t.content), 1)]),
10487
+ default: W(() => [u(I(t.content), 1)]),
10453
10488
  _: 2
10454
10489
  }, 1032, ["class", "onClick"]))], 64))), 256)),
10455
10490
  d(Bb, {
@@ -10457,7 +10492,7 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
10457
10492
  disabled: !T.value.hasNext,
10458
10493
  onClick: T.value.next
10459
10494
  }, {
10460
- default: U(() => [n[1] ||= u(" Next ", -1), d(Q, { icon: "arrow-right" })]),
10495
+ default: W(() => [n[1] ||= u(" Next ", -1), d(Q, { icon: "arrow-right" })]),
10461
10496
  _: 1
10462
10497
  }, 8, ["disabled", "onClick"])
10463
10498
  ])])])]));
@@ -10606,7 +10641,7 @@ var Aw = /*#__PURE__*/ Ew(Dw, [["render", kw]]), jw = [
10606
10641
  }
10607
10642
  return T(() => {
10608
10643
  l();
10609
- }), H(() => n.watcher, l, { deep: !0 }), (n, i) => (D(), s("div", xT, [r.isLoading ? (D(), a(Hw, {
10644
+ }), U(() => n.watcher, l, { deep: !0 }), (n, i) => (D(), s("div", xT, [r.isLoading ? (D(), a(Hw, {
10610
10645
  key: 0,
10611
10646
  fullscreen: t.isLoaderFullscreen,
10612
10647
  type: t.loaderType
@@ -11412,7 +11447,7 @@ function ZT(t, r, i, l, f, p) {
11412
11447
  optional: t.optional,
11413
11448
  onClick: t.activate
11414
11449
  }, {
11415
- default: U(() => [u(I(t.label), 1)]),
11450
+ default: W(() => [u(I(t.label), 1)]),
11416
11451
  _: 1
11417
11452
  }, 8, [
11418
11453
  "id",
@@ -11439,9 +11474,9 @@ function ZT(t, r, i, l, f, p) {
11439
11474
  "aria-expanded": t.isOpen,
11440
11475
  onFocus: r[22] ||= (e) => t.activate(),
11441
11476
  onBlur: r[23] ||= (e) => !t.searchable && t.deactivate(),
11442
- onKeydown: [r[24] ||= G(K((e) => t.pointerForward(), ["self", "prevent"]), ["down"]), r[25] ||= G(K((e) => t.pointerBackward(), ["self", "prevent"]), ["up"])],
11443
- onKeypress: r[26] ||= G(K((e) => t.addPointerElement(e), ["stop", "self"]), ["enter", "tab"]),
11444
- onKeyup: r[27] ||= G((e) => t.deactivate(), ["esc"])
11477
+ onKeydown: [r[24] ||= se(K((e) => t.pointerForward(), ["self", "prevent"]), ["down"]), r[25] ||= se(K((e) => t.pointerBackward(), ["self", "prevent"]), ["up"])],
11478
+ onKeypress: r[26] ||= se(K((e) => t.addPointerElement(e), ["stop", "self"]), ["enter", "tab"]),
11479
+ onKeyup: r[27] ||= se((e) => t.deactivate(), ["esc"])
11445
11480
  }, [
11446
11481
  t.showRemoveIcon ? N(t.$slots, "remove", { remove: t.removeLastElement }, () => [d(h, {
11447
11482
  icon: "close-s",
@@ -11468,7 +11503,7 @@ function ZT(t, r, i, l, f, p) {
11468
11503
  remove: t.removeElement,
11469
11504
  values: t.computedValue,
11470
11505
  isOpen: t.isOpen
11471
- }, () => [t.multiple ? W((D(), s("div", {
11506
+ }, () => [t.multiple ? G((D(), s("div", {
11472
11507
  key: 0,
11473
11508
  class: "r-select-tags-wrap",
11474
11509
  onMousedown: r[6] ||= K(() => {}, ["prevent"])
@@ -11482,20 +11517,20 @@ function ZT(t, r, i, l, f, p) {
11482
11517
  close: !0,
11483
11518
  onClose: (n) => t.removeElement(e)
11484
11519
  }, {
11485
- default: U(() => [c("span", {
11520
+ default: W(() => [c("span", {
11486
11521
  class: "r-select-tag-text",
11487
11522
  onMousedown: r[5] ||= K((e) => t.toggle(), ["prevent"])
11488
11523
  }, I(t.getOptionLabel(e)), 33)]),
11489
11524
  _: 2
11490
- }, 1032, ["onClose"])])), 256))], 544)), [[oe, t.visibleValues.length > 0]]) : o("", !0), t.internalValue && t.internalValue.length > t.limit ? N(t.$slots, "limit", {}, () => [c("strong", {
11525
+ }, 1032, ["onClose"])])), 256))], 544)), [[H, t.visibleValues.length > 0]]) : o("", !0), t.internalValue && t.internalValue.length > t.limit ? N(t.$slots, "limit", {}, () => [c("strong", {
11491
11526
  class: "r-select-limit",
11492
11527
  textContent: I(t.limitText(t.internalValue.length - t.limit))
11493
11528
  }, null, 8, NT)], void 0, 1) : o("", !0)], void 0, 0) : o("", !0),
11494
11529
  d(n, { name: "r-select-loading" }, {
11495
- default: U(() => [N(t.$slots, "loading", {}, () => [W(c("div", PT, null, 512), [[oe, t.loading]])])]),
11530
+ default: W(() => [N(t.$slots, "loading", {}, () => [G(c("div", PT, null, 512), [[H, t.loading]])])]),
11496
11531
  _: 3
11497
11532
  }),
11498
- t.searchable ? W((D(), s("input", {
11533
+ t.searchable ? G((D(), s("input", {
11499
11534
  key: 1,
11500
11535
  id: t.id,
11501
11536
  ref: "searchElement",
@@ -11514,13 +11549,13 @@ function ZT(t, r, i, l, f, p) {
11514
11549
  "on:update:modelValue": r[8] ||= (...e) => t.updateSearch && t.updateSearch(...e),
11515
11550
  onFocus: r[9] ||= K((e) => t.activate(), ["prevent"]),
11516
11551
  onBlur: r[10] ||= K((e) => t.deactivate(), ["prevent"]),
11517
- onKeyup: r[11] ||= G((e) => t.deactivate(), ["esc"]),
11552
+ onKeyup: r[11] ||= se((e) => t.deactivate(), ["esc"]),
11518
11553
  onKeydown: [
11519
- r[12] ||= G(K((e) => t.pointerForward(), ["prevent"]), ["down"]),
11520
- r[13] ||= G(K((e) => t.pointerBackward(), ["prevent"]), ["up"]),
11521
- r[15] ||= G(K((e) => t.removeLastElement(), ["stop"]), ["delete"])
11554
+ r[12] ||= se(K((e) => t.pointerForward(), ["prevent"]), ["down"]),
11555
+ r[13] ||= se(K((e) => t.pointerBackward(), ["prevent"]), ["up"]),
11556
+ r[15] ||= se(K((e) => t.removeLastElement(), ["stop"]), ["delete"])
11522
11557
  ],
11523
- onKeypress: r[14] ||= G(K((e) => t.addPointerElement(e), [
11558
+ onKeypress: r[14] ||= se(K((e) => t.addPointerElement(e), [
11524
11559
  "prevent",
11525
11560
  "stop",
11526
11561
  "self"
@@ -11538,7 +11573,7 @@ function ZT(t, r, i, l, f, p) {
11538
11573
  }, [N(t.$slots, "placeholder", {}, () => [u(I(t.computedPlaceholder), 1)])], 32)) : o("", !0)
11539
11574
  ], 544),
11540
11575
  d(n, { name: "r-select" }, {
11541
- default: U(() => [W(c("div", {
11576
+ default: W(() => [G(c("div", {
11542
11577
  ref: "listElement",
11543
11578
  class: "r-select-content-wrapper",
11544
11579
  tabindex: "-1",
@@ -11559,7 +11594,7 @@ function ZT(t, r, i, l, f, p) {
11559
11594
  "icon-right": "caret-up",
11560
11595
  onClick: t.handleAsyncLoadPrev
11561
11596
  }, {
11562
- default: U(() => [...r[28] ||= [u(" Get prev ", -1)]]),
11597
+ default: W(() => [...r[28] ||= [u(" Get prev ", -1)]]),
11563
11598
  _: 1
11564
11599
  }, 8, ["disabled", "onClick"])])) : o("", !0)]),
11565
11600
  t.multiple && t.max === t.internalValue.length ? (D(), s("li", zT, [c("span", BT, [N(t.$slots, "maxElements", {}, () => [u(I(t.messages.max(t.max)), 1)])])])) : o("", !0),
@@ -11580,8 +11615,8 @@ function ZT(t, r, i, l, f, p) {
11580
11615
  key: 0,
11581
11616
  icon: "check-s"
11582
11617
  })) : o("", !0)]))])], 42, HT)], 8, VT))), 128)),
11583
- W(c("li", GT, [c("span", KT, [N(t.$slots, "noResult", { search: t.search }, () => [u(I(t.messages.noResult), 1)])])], 512), [[oe, t.displayNoResultsMessage]]),
11584
- W(c("li", qT, [c("span", JT, [N(t.$slots, "noOptions", {}, () => [u(I(t.computedNoOptionsMessage), 1)])])], 512), [[oe, t.showNoOptions && t.computedOptions.length === 0 && !t.search && !t.loading && !t.computedIsLoading]]),
11618
+ G(c("li", GT, [c("span", KT, [N(t.$slots, "noResult", { search: t.search }, () => [u(I(t.messages.noResult), 1)])])], 512), [[H, t.displayNoResultsMessage]]),
11619
+ G(c("li", qT, [c("span", JT, [N(t.$slots, "noOptions", {}, () => [u(I(t.computedNoOptionsMessage), 1)])])], 512), [[H, t.showNoOptions && t.computedOptions.length === 0 && !t.search && !t.loading && !t.computedIsLoading]]),
11585
11620
  N(t.$slots, "afterList", {}, () => [t.computedAsyncHasNextOptions ? (D(), s("li", YT, [d(_, {
11586
11621
  type: "default",
11587
11622
  size: "small",
@@ -11590,10 +11625,10 @@ function ZT(t, r, i, l, f, p) {
11590
11625
  "icon-right": "caret-down",
11591
11626
  onClick: t.handleAsyncLoadNext
11592
11627
  }, {
11593
- default: U(() => [...r[29] ||= [u(" Load more... ", -1)]]),
11628
+ default: W(() => [...r[29] ||= [u(" Load more... ", -1)]]),
11594
11629
  _: 1
11595
11630
  }, 8, ["disabled", "onClick"])])) : o("", !0)])
11596
- ], 12, IT)], 36), [[oe, t.isOpen && t.hasContent]])]),
11631
+ ], 12, IT)], 36), [[H, t.isOpen && t.hasContent]])]),
11597
11632
  _: 3
11598
11633
  })
11599
11634
  ], 42, MT),
@@ -11647,13 +11682,13 @@ var QT = /*#__PURE__*/ Ew(jT, [["render", ZT]]), $T = f({
11647
11682
  },
11648
11683
  setup(e) {
11649
11684
  let t = h("addItemToTabsList"), n = h("removeItemFromTabsList"), r = h("visibleTabs"), a = h("tabsLazy"), { name: o, panelId: s, hidden: c, active: l, value: u } = R(e), d = te(e.to);
11650
- H(() => JSON.stringify(e.to), () => {
11685
+ U(() => JSON.stringify(e.to), () => {
11651
11686
  d.value = e.to;
11652
11687
  });
11653
11688
  let f = e.validate.map((e) => _S(() => e)), p = i(() => f.map((e) => e.validateErrorMessages.value).reduce((e, t) => e.concat(t), [])), m = i(() => f.some((e) => e.isInvalid.value)), g = i(() => s.value || eS()), _ = i(() => `tab-${g.value}`), v = i(() => {
11654
11689
  if (r) return r.value.find(({ tabId: e }) => e === _.value)?.isActive;
11655
11690
  }), y = i(() => `tabpanel-${g.value}`), b = i(() => e.lazy ?? a?.value ?? !0), x = A(e.active);
11656
- H(v, (e) => {
11691
+ U(v, (e) => {
11657
11692
  e && (x.value = !0);
11658
11693
  });
11659
11694
  let S = A(l.value);
@@ -11687,17 +11722,17 @@ var QT = /*#__PURE__*/ Ew(jT, [["render", ZT]]), $T = f({
11687
11722
  }
11688
11723
  }), eE = ["id", "aria-labelledby"], tE = ["id", "aria-labelledby"];
11689
11724
  function nE(t, n, r, i, a, c) {
11690
- return t.resolvedLazy ? (D(), s(e, { key: 0 }, [t.$slots.default && t.hasBeenVisited ? W((D(), s("div", {
11725
+ return t.resolvedLazy ? (D(), s(e, { key: 0 }, [t.$slots.default && t.hasBeenVisited ? G((D(), s("div", {
11691
11726
  key: 0,
11692
11727
  id: t.tabPanelId,
11693
11728
  role: "tabpanel",
11694
11729
  "aria-labelledby": t.tabId
11695
- }, [N(t.$slots, "default", {}, () => [n[0] ||= u("Default tab content", -1)])], 8, eE)), [[oe, t.shouldShowThisTab]]) : o("", !0)], 64)) : W((D(), s("div", {
11730
+ }, [N(t.$slots, "default", {}, () => [n[0] ||= u("Default tab content", -1)])], 8, eE)), [[H, t.shouldShowThisTab]]) : o("", !0)], 64)) : G((D(), s("div", {
11696
11731
  key: 1,
11697
11732
  id: t.tabPanelId,
11698
11733
  role: "tabpanel",
11699
11734
  "aria-labelledby": t.tabId
11700
- }, [N(t.$slots, "default", {}, () => [n[1] ||= u("Default tab content", -1)])], 8, tE)), [[oe, t.$slots.default && t.shouldShowThisTab]]);
11735
+ }, [N(t.$slots, "default", {}, () => [n[1] ||= u("Default tab content", -1)])], 8, tE)), [[H, t.$slots.default && t.shouldShowThisTab]]);
11701
11736
  }
11702
11737
  var rE = /*#__PURE__*/ Ew($T, [["render", nE]]), iE = f({
11703
11738
  name: "RTabs",
@@ -11798,16 +11833,20 @@ var rE = /*#__PURE__*/ Ew($T, [["render", nE]]), iE = f({
11798
11833
  return e.name ? e.name.includes(" ") ? Kb(e.name) : Gx(e.name) ? Kb(e.name.split("-").join(" ")) : e.name : `Tab ${t + 1}`;
11799
11834
  },
11800
11835
  selectTab({ name: e, value: t, to: n, tabId: r }, i = null) {
11801
- (i !== null || r !== null) && this.$emit("tab-selected", {
11836
+ if ((i !== null || r !== null) && this.$emit("tab-selected", {
11802
11837
  name: e,
11803
11838
  value: t,
11804
11839
  index: i,
11805
11840
  tabId: r
11806
- }), n && !this.goingToSameRoute(n) ? this.$router.push(n) : (i !== null || r !== null ? this.tabs.forEach((e) => {
11841
+ }), n && !this.goingToSameRoute(n)) {
11842
+ this.$router.push(n);
11843
+ return;
11844
+ }
11845
+ i !== null || r !== null ? this.tabs.forEach((e) => {
11807
11846
  e.isActive = r === e.tabId;
11808
11847
  }) : this.tabs.forEach((t) => {
11809
11848
  t.isActive = t.name === e;
11810
- }), this.$nextTick(() => this.recomputeIndicator()));
11849
+ }), this.$nextTick(() => this.recomputeIndicator());
11811
11850
  },
11812
11851
  getRouteTab() {
11813
11852
  return this.tabs.filter((e) => e.to).find((e) => this.goingToSameRoute(e.to));
@@ -11827,7 +11866,11 @@ var rE = /*#__PURE__*/ Ew($T, [["render", nE]]), iE = f({
11827
11866
  if (!this.tabs.length) throw Error("<r-tabs> must contain multiple <r-tab> in its required slot");
11828
11867
  if (this.tabs.find((e) => e.active)) return;
11829
11868
  let e = this.getRouteTab();
11830
- e ? e.isActive = !0 : this.selectTab(this.visibleTabs[this.preselectedTab]);
11869
+ if (e) {
11870
+ e.isActive = !0;
11871
+ return;
11872
+ }
11873
+ this.selectTab(this.visibleTabs[this.preselectedTab]);
11831
11874
  }
11832
11875
  }
11833
11876
  }), aE = [
@@ -11848,7 +11891,7 @@ function sE(t, n, r, i, a, o) {
11848
11891
  ref: "tablistRef",
11849
11892
  class: b(["r-tab", [{ "r-tab-divided": t.divided }, t.menuClass]]),
11850
11893
  role: "tablist"
11851
- }, [(D(!0), s(e, null, M(t.visibleTabs, (e, n) => W((D(), s("div", {
11894
+ }, [(D(!0), s(e, null, M(t.visibleTabs, (e, n) => G((D(), s("div", {
11852
11895
  key: e.tabId,
11853
11896
  class: "r-tab-item"
11854
11897
  }, [e.to ? (D(), s("button", {
@@ -11886,13 +11929,13 @@ function sE(t, n, r, i, a, o) {
11886
11929
  }, [N(t.$slots, "label", {
11887
11930
  tab: e,
11888
11931
  index: n
11889
- }, () => [u(I(t.getTabName(e, n)), 1)])], 10, oE))])), [[l, { text: e.isInvalid && t.showValidateMessages ? e.validateErrorMessages.join("\n") : null }]])), 128)), W(c("div", {
11932
+ }, () => [u(I(t.getTabName(e, n)), 1)])], 10, oE))])), [[l, { text: e.isInvalid && t.showValidateMessages ? e.validateErrorMessages.join("\n") : null }]])), 128)), G(c("div", {
11890
11933
  class: b(["r-tab-item-indicator", { "r-is-error": t.isInvalidTab }]),
11891
11934
  style: S({
11892
11935
  width: t.visibleTabIndicatorWidth + "px",
11893
11936
  left: t.visibleTabIndicatorPosition + "px"
11894
11937
  })
11895
- }, null, 6), [[oe, t.isIndicatorReady]])], 2), c("div", { class: b(["r-tab-content", t.contentClass]) }, [N(t.$slots, "default")], 2)]);
11938
+ }, null, 6), [[H, t.isIndicatorReady]])], 2), c("div", { class: b(["r-tab-content", t.contentClass]) }, [N(t.$slots, "default")], 2)]);
11896
11939
  }
11897
11940
  var cE = /*#__PURE__*/ Ew(iE, [["render", sE]]), lE = {
11898
11941
  key: 0,
@@ -11997,7 +12040,7 @@ var cE = /*#__PURE__*/ Ew(iE, [["render", sE]]), lE = {
11997
12040
  function _() {
11998
12041
  h(), r.isVisible = !1, u("hide");
11999
12042
  }
12000
- return H(() => n.visible, (e) => {
12043
+ return U(() => n.visible, (e) => {
12001
12044
  r.isVisible = e;
12002
12045
  }), C(() => {
12003
12046
  p();