@selfeesas/shared-components 0.3.6 → 0.3.7

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.
@@ -282,7 +282,7 @@ function Qn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
282
282
  } : {}), y = c(() => {
283
283
  if (u.value === !1)
284
284
  return -1;
285
- const { matched: b } = v.value, { length: O } = b, E = b[O - 1];
285
+ const { matched: b } = v.value, { length: R } = b, E = b[R - 1];
286
286
  if (E === void 0)
287
287
  return -1;
288
288
  const L = n.$route.matched;
@@ -293,11 +293,11 @@ function Qn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
293
293
  );
294
294
  if (T !== -1)
295
295
  return T;
296
- const B = da(b[O - 2]);
296
+ const B = da(b[R - 2]);
297
297
  return (
298
298
  // we are dealing with nested routes
299
- O > 1 && da(E) === B && L[L.length - 1].path !== B ? L.findIndex(
300
- fa.bind(null, b[O - 2])
299
+ R > 1 && da(E) === B && L[L.length - 1].path !== B ? L.findIndex(
300
+ fa.bind(null, b[R - 2])
301
301
  ) : T
302
302
  );
303
303
  }), q = c(
@@ -312,7 +312,7 @@ function Qn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
312
312
  }
313
313
  return null;
314
314
  }
315
- function V(b, { returnRouterError: O, to: E = a.to, replace: L = a.replace } = {}) {
315
+ function V(b, { returnRouterError: R, to: E = a.to, replace: L = a.replace } = {}) {
316
316
  if (a.disable === !0)
317
317
  return b.preventDefault(), Promise.resolve(!1);
318
318
  if (
@@ -323,14 +323,14 @@ function Qn({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
323
323
  return Promise.resolve(!1);
324
324
  b.preventDefault();
325
325
  const T = n.$router[L === !0 ? "replace" : "push"](E);
326
- return O === !0 ? T : T.then(() => {
326
+ return R === !0 ? T : T.then(() => {
327
327
  }).catch(() => {
328
328
  });
329
329
  }
330
330
  function _(b) {
331
331
  if (u.value === !0) {
332
- const O = (E) => V(b, E);
333
- o("click", b, O), b.defaultPrevented !== !0 && O();
332
+ const R = (E) => V(b, E);
333
+ o("click", b, R), b.defaultPrevented !== !0 && R();
334
334
  } else
335
335
  o("click", b);
336
336
  }
@@ -913,8 +913,8 @@ const Le = de({
913
913
  onMousedown: B
914
914
  };
915
915
  if (a.$q.platform.has.touch === !0) {
916
- const R = e.onTouchstart !== void 0 ? "" : "Passive";
917
- C[`onTouchstart${R}`] = T;
916
+ const O = e.onTouchstart !== void 0 ? "" : "Passive";
917
+ C[`onTouchstart${O}`] = T;
918
918
  }
919
919
  return C;
920
920
  }
@@ -922,7 +922,7 @@ const Le = de({
922
922
  // needed; especially for disabled <a> tags
923
923
  onClick: Fe
924
924
  };
925
- }), O = c(() => ({
925
+ }), R = c(() => ({
926
926
  ref: S,
927
927
  class: "q-btn q-btn-item non-selectable no-outline " + n.value,
928
928
  style: o.value,
@@ -933,8 +933,8 @@ const Le = de({
933
933
  if (S.value !== null) {
934
934
  if (C !== void 0) {
935
935
  if (C.defaultPrevented === !0) return;
936
- const R = document.activeElement;
937
- if (e.type === "submit" && R !== document.body && S.value.contains(R) === !1 && R.contains(S.value) === !1) {
936
+ const O = document.activeElement;
937
+ if (e.type === "submit" && O !== document.body && S.value.contains(O) === !1 && O.contains(S.value) === !1) {
938
938
  C.qAvoidFocus !== !0 && S.value.focus();
939
939
  const H = () => {
940
940
  var X;
@@ -961,8 +961,8 @@ const Le = de({
961
961
  if (S.value !== null && !((C == null ? void 0 : C.type) === "blur" && document.activeElement === S.value)) {
962
962
  if ((C == null ? void 0 : C.type) === "keyup") {
963
963
  if (nl === S.value && Rt(C, [13, 32]) === !0) {
964
- const R = new MouseEvent("click", C);
965
- R.qKeyEvent = !0, C.defaultPrevented === !0 && Ke(R), C.cancelBubble === !0 && nt(R), S.value.dispatchEvent(R), Fe(C), C.qKeyEvent = !0;
964
+ const O = new MouseEvent("click", C);
965
+ O.qKeyEvent = !0, C.defaultPrevented === !0 && Ke(O), C.cancelBubble === !0 && nt(O), S.value.dispatchEvent(O), Fe(C), C.qKeyEvent = !0;
966
966
  }
967
967
  l("keyup", C);
968
968
  }
@@ -971,8 +971,8 @@ const Le = de({
971
971
  }
972
972
  function z(C) {
973
973
  var H, X;
974
- const R = h.value;
975
- C !== !0 && (ll === S.value || al === S.value) && R !== null && R !== document.activeElement && (R.setAttribute("tabindex", -1), R.focus()), ll === S.value && (y !== null && (y.removeEventListener("touchcancel", A, ct), y.removeEventListener("touchend", A, ct)), ll = y = null), al === S.value && (document.removeEventListener("mouseup", A, ct), al = null), nl === S.value && (document.removeEventListener("keyup", A, !0), (H = S.value) == null || H.removeEventListener("blur", A, ct), nl = null), (X = S.value) == null || X.classList.remove("q-btn--active");
974
+ const O = h.value;
975
+ C !== !0 && (ll === S.value || al === S.value) && O !== null && O !== document.activeElement && (O.setAttribute("tabindex", -1), O.focus()), ll === S.value && (y !== null && (y.removeEventListener("touchcancel", A, ct), y.removeEventListener("touchend", A, ct)), ll = y = null), al === S.value && (document.removeEventListener("mouseup", A, ct), al = null), nl === S.value && (document.removeEventListener("keyup", A, !0), (H = S.value) == null || H.removeEventListener("blur", A, ct), nl = null), (X = S.value) == null || X.classList.remove("q-btn--active");
976
976
  }
977
977
  function U(C) {
978
978
  Fe(C), C.qSkipRipple = !0;
@@ -1000,13 +1000,13 @@ const Le = de({
1000
1000
  role: "img"
1001
1001
  })
1002
1002
  );
1003
- const R = [
1003
+ const O = [
1004
1004
  d("span", {
1005
1005
  class: "q-focus-helper",
1006
1006
  ref: h
1007
1007
  })
1008
1008
  ];
1009
- return e.loading === !0 && e.percentage !== void 0 && R.push(
1009
+ return e.loading === !0 && e.percentage !== void 0 && O.push(
1010
1010
  d("span", {
1011
1011
  class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
1012
1012
  }, [
@@ -1015,11 +1015,11 @@ const Le = de({
1015
1015
  style: _.value
1016
1016
  })
1017
1017
  ])
1018
- ), R.push(
1018
+ ), O.push(
1019
1019
  d("span", {
1020
1020
  class: "q-btn__content text-center col items-center q-anchor--skip " + r.value
1021
1021
  }, C)
1022
- ), e.loading !== null && R.push(
1022
+ ), e.loading !== null && O.push(
1023
1023
  d(wt, {
1024
1024
  name: "q-transition--fade"
1025
1025
  }, () => e.loading === !0 ? [
@@ -1031,8 +1031,8 @@ const Le = de({
1031
1031
  ), dl(
1032
1032
  d(
1033
1033
  v.value,
1034
- O.value,
1035
- R
1034
+ R.value,
1035
+ O
1036
1036
  ),
1037
1037
  [[
1038
1038
  zo,
@@ -1198,7 +1198,7 @@ function gi(e, t) {
1198
1198
  name: l.name,
1199
1199
  value: S.value === !0 ? l.val : l.trueValue
1200
1200
  }), z;
1201
- }), b = Do(_), O = c(() => {
1201
+ }), b = Do(_), R = c(() => {
1202
1202
  const z = {
1203
1203
  tabindex: F.value,
1204
1204
  role: "checkbox",
@@ -1258,7 +1258,7 @@ function gi(e, t) {
1258
1258
  ), d("div", {
1259
1259
  ref: s,
1260
1260
  class: M.value,
1261
- ...O.value,
1261
+ ...R.value,
1262
1262
  onClick: E,
1263
1263
  onKeydown: T,
1264
1264
  onKeyup: B
@@ -1971,8 +1971,8 @@ const qa = ["vertical", "horizontal"], dn = {
1971
1971
  const C = i.vertical.size.value - r.vertical.value;
1972
1972
  if (C <= 0)
1973
1973
  return 0;
1974
- const R = wl(i.vertical.position.value / C, 0, 1);
1975
- return Math.round(R * 1e4) / 1e4;
1974
+ const O = wl(i.vertical.position.value / C, 0, 1);
1975
+ return Math.round(O * 1e4) / 1e4;
1976
1976
  }), i.vertical.thumbHidden = c(() => (e.visible === null ? o.value : e.visible) !== !0 && a.value === !1 && n.value === !1 || i.vertical.size.value <= r.vertical.value + 1), i.vertical.thumbStart = c(() => e.verticalOffset[0] + i.vertical.percentage.value * (r.verticalInner.value - i.vertical.thumbSize.value)), i.vertical.thumbSize = c(
1977
1977
  () => Math.round(
1978
1978
  wl(
@@ -1991,8 +1991,8 @@ const qa = ["vertical", "horizontal"], dn = {
1991
1991
  const C = i.horizontal.size.value - r.horizontal.value;
1992
1992
  if (C <= 0)
1993
1993
  return 0;
1994
- const R = wl(Math.abs(i.horizontal.position.value) / C, 0, 1);
1995
- return Math.round(R * 1e4) / 1e4;
1994
+ const O = wl(Math.abs(i.horizontal.position.value) / C, 0, 1);
1995
+ return Math.round(O * 1e4) / 1e4;
1996
1996
  }), i.horizontal.thumbHidden = c(() => (e.visible === null ? o.value : e.visible) !== !0 && a.value === !1 && n.value === !1 || i.horizontal.size.value <= r.horizontal.value + 1), i.horizontal.thumbStart = c(() => e.horizontalOffset[0] + i.horizontal.percentage.value * (r.horizontalInner.value - i.horizontal.thumbSize.value)), i.horizontal.thumbSize = c(
1997
1997
  () => Math.round(
1998
1998
  wl(
@@ -2011,14 +2011,14 @@ const qa = ["vertical", "horizontal"], dn = {
2011
2011
  const y = c(() => i.vertical.thumbHidden.value === !0 && i.horizontal.thumbHidden.value === !0 ? e.contentStyle : e.contentActiveStyle);
2012
2012
  function q() {
2013
2013
  const C = {};
2014
- return qa.forEach((R) => {
2015
- const H = i[R];
2014
+ return qa.forEach((O) => {
2015
+ const H = i[O];
2016
2016
  Object.assign(C, {
2017
- [R + "Position"]: H.position.value,
2018
- [R + "Percentage"]: H.percentage.value,
2019
- [R + "Size"]: H.size.value,
2020
- [R + "ContainerSize"]: r[R].value,
2021
- [R + "ContainerInnerSize"]: r[R + "Inner"].value
2017
+ [O + "Position"]: H.position.value,
2018
+ [O + "Percentage"]: H.percentage.value,
2019
+ [O + "Size"]: H.size.value,
2020
+ [O + "ContainerSize"]: r[O].value,
2021
+ [O + "ContainerInnerSize"]: r[O + "Inner"].value
2022
2022
  });
2023
2023
  }), C;
2024
2024
  }
@@ -2026,42 +2026,42 @@ const qa = ["vertical", "horizontal"], dn = {
2026
2026
  const C = q();
2027
2027
  C.ref = s, l("scroll", C);
2028
2028
  }, 0);
2029
- function F(C, R, H) {
2029
+ function F(C, O, H) {
2030
2030
  if (qa.includes(C) === !1) {
2031
2031
  console.error("[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)");
2032
2032
  return;
2033
2033
  }
2034
- (C === "vertical" ? wa : sn)(S.value, R, H);
2034
+ (C === "vertical" ? wa : sn)(S.value, O, H);
2035
2035
  }
2036
- function M({ height: C, width: R }) {
2036
+ function M({ height: C, width: O }) {
2037
2037
  let H = !1;
2038
- r.vertical.value !== C && (r.vertical.value = C, H = !0), r.horizontal.value !== R && (r.horizontal.value = R, H = !0), H === !0 && E();
2038
+ r.vertical.value !== C && (r.vertical.value = C, H = !0), r.horizontal.value !== O && (r.horizontal.value = O, H = !0), H === !0 && E();
2039
2039
  }
2040
2040
  function V({ position: C }) {
2041
- let R = !1;
2042
- i.vertical.position.value !== C.top && (i.vertical.position.value = C.top, R = !0), i.horizontal.position.value !== C.left && (i.horizontal.position.value = C.left, R = !0), R === !0 && E();
2041
+ let O = !1;
2042
+ i.vertical.position.value !== C.top && (i.vertical.position.value = C.top, O = !0), i.horizontal.position.value !== C.left && (i.horizontal.position.value = C.left, O = !0), O === !0 && E();
2043
2043
  }
2044
- function _({ height: C, width: R }) {
2045
- i.horizontal.size.value !== R && (i.horizontal.size.value = R, E()), i.vertical.size.value !== C && (i.vertical.size.value = C, E());
2044
+ function _({ height: C, width: O }) {
2045
+ i.horizontal.size.value !== O && (i.horizontal.size.value = O, E()), i.vertical.size.value !== C && (i.vertical.size.value = C, E());
2046
2046
  }
2047
- function b(C, R) {
2048
- const H = i[R];
2047
+ function b(C, O) {
2048
+ const H = i[O];
2049
2049
  if (C.isFirst === !0) {
2050
2050
  if (H.thumbHidden.value === !0) return;
2051
2051
  m = H.position.value, n.value = !0;
2052
2052
  } else if (n.value !== !0)
2053
2053
  return;
2054
2054
  C.isFinal === !0 && (n.value = !1);
2055
- const X = dn[R], j = (H.size.value - r[R].value) / (r[R + "Inner"].value - H.thumbSize.value), G = C.distance[X.dist], re = m + (C.direction === X.dir ? 1 : -1) * G * j;
2056
- L(re, R);
2055
+ const X = dn[O], j = (H.size.value - r[O].value) / (r[O + "Inner"].value - H.thumbSize.value), G = C.distance[X.dist], re = m + (C.direction === X.dir ? 1 : -1) * G * j;
2056
+ L(re, O);
2057
2057
  }
2058
- function O(C, R) {
2059
- const H = i[R];
2058
+ function R(C, O) {
2059
+ const H = i[O];
2060
2060
  if (H.thumbHidden.value !== !0) {
2061
- const X = R === "vertical" ? e.verticalOffset[0] : e.horizontalOffset[0], j = C[dn[R].offset] - X, G = H.thumbStart.value - X;
2061
+ const X = O === "vertical" ? e.verticalOffset[0] : e.horizontalOffset[0], j = C[dn[O].offset] - X, G = H.thumbStart.value - X;
2062
2062
  if (j < G || j > G + H.thumbSize.value) {
2063
- const re = j - H.thumbSize.value / 2, x = wl(re / (r[R + "Inner"].value - H.thumbSize.value), 0, 1);
2064
- L(x * Math.max(0, H.size.value - r[R].value), R);
2063
+ const re = j - H.thumbSize.value / 2, x = wl(re / (r[O + "Inner"].value - H.thumbSize.value), 0, 1);
2064
+ L(x * Math.max(0, H.size.value - r[O].value), O);
2065
2065
  }
2066
2066
  H.ref.value !== null && H.ref.value.dispatchEvent(new MouseEvent(C.type, C));
2067
2067
  }
@@ -2071,8 +2071,8 @@ const qa = ["vertical", "horizontal"], dn = {
2071
2071
  u = null, a.value = !1;
2072
2072
  }, e.delay), e.onScroll !== void 0 && g();
2073
2073
  }
2074
- function L(C, R) {
2075
- S.value[dn[R].scroll] = C;
2074
+ function L(C, O) {
2075
+ S.value[dn[O].scroll] = C;
2076
2076
  }
2077
2077
  let T = null;
2078
2078
  function B() {
@@ -2110,10 +2110,10 @@ const qa = ["vertical", "horizontal"], dn = {
2110
2110
  left: i.horizontal.percentage.value
2111
2111
  }),
2112
2112
  setScrollPosition: F,
2113
- setScrollPercentage(C, R, H) {
2113
+ setScrollPercentage(C, O, H) {
2114
2114
  F(
2115
2115
  C,
2116
- R * (i[C].size.value - r[C].value) * (C === "horizontal" && s.$q.lang.rtl === !0 ? -1 : 1),
2116
+ O * (i[C].size.value - r[C].value) * (C === "horizontal" && s.$q.lang.rtl === !0 ? -1 : 1),
2117
2117
  H
2118
2118
  );
2119
2119
  }
@@ -2137,10 +2137,10 @@ const qa = ["vertical", "horizontal"], dn = {
2137
2137
  { horizontal: !0, ...xa }
2138
2138
  ]],
2139
2139
  onVerticalMousedown(C) {
2140
- O(C, "vertical");
2140
+ R(C, "vertical");
2141
2141
  },
2142
2142
  onHorizontalMousedown(C) {
2143
- O(C, "horizontal");
2143
+ R(C, "horizontal");
2144
2144
  }
2145
2145
  };
2146
2146
  return () => d("div", {
@@ -2701,8 +2701,8 @@ function tr(e, t = 0) {
2701
2701
  maxWidth: m
2702
2702
  } = e;
2703
2703
  if (He.is.ios === !0 && window.visualViewport !== void 0) {
2704
- const O = document.body.style, { offsetLeft: E, offsetTop: L } = window.visualViewport;
2705
- E !== Da && (O.setProperty("--q-pe-left", E + "px"), Da = E), L !== Ta && (O.setProperty("--q-pe-top", L + "px"), Ta = L);
2704
+ const R = document.body.style, { offsetLeft: E, offsetTop: L } = window.visualViewport;
2705
+ E !== Da && (R.setProperty("--q-pe-left", E + "px"), Da = E), L !== Ta && (R.setProperty("--q-pe-top", L + "px"), Ta = L);
2706
2706
  }
2707
2707
  const { scrollLeft: S, scrollTop: h } = l, y = i === void 0 ? Wi(n, v === !0 ? [0, 0] : a) : Xi(n, i, a);
2708
2708
  Object.assign(l.style, {
@@ -2722,10 +2722,10 @@ function tr(e, t = 0) {
2722
2722
  if (i === void 0 || a === void 0)
2723
2723
  fn(b, y, _, o, r);
2724
2724
  else {
2725
- const { top: O, left: E } = b;
2725
+ const { top: R, left: E } = b;
2726
2726
  fn(b, y, _, o, r);
2727
2727
  let L = !1;
2728
- if (b.top !== O) {
2728
+ if (b.top !== R) {
2729
2729
  L = !0;
2730
2730
  const T = 2 * a[1];
2731
2731
  y.center = y.top -= T, y.bottom -= T + 2;
@@ -2823,7 +2823,7 @@ const tn = de({
2823
2823
  let n = null, o, r, i;
2824
2824
  const s = fe(), { proxy: v } = s, { $q: u } = v, m = P(null), S = P(!1), h = c(
2825
2825
  () => e.persistent !== !0 && e.noRouteDismiss !== !0
2826
- ), y = it(e, u), { registerTick: q, removeTick: g } = Wo(), { registerTimeout: F } = Xo(), { transitionProps: M, transitionStyle: V } = Ko(e), { localScrollTarget: _, changeScrollEvent: b, unconfigureScrollTarget: O } = Vi(e, Z), { anchorEl: E, canShow: L } = Fo({ showing: S }), { hide: T } = jo({
2826
+ ), y = it(e, u), { registerTick: q, removeTick: g } = Wo(), { registerTimeout: F } = Xo(), { transitionProps: M, transitionStyle: V } = Ko(e), { localScrollTarget: _, changeScrollEvent: b, unconfigureScrollTarget: R } = Vi(e, Z), { anchorEl: E, canShow: L } = Fo({ showing: S }), { hide: T } = jo({
2827
2827
  showing: S,
2828
2828
  canShow: L,
2829
2829
  handleShow: re,
@@ -2843,7 +2843,7 @@ const tn = de({
2843
2843
  e.anchor || (e.cover === !0 ? "center middle" : "bottom start"),
2844
2844
  u.lang.rtl
2845
2845
  )
2846
- ), R = c(() => e.cover === !0 ? C.value : Ba(e.self || "top start", u.lang.rtl)), H = c(
2846
+ ), O = c(() => e.cover === !0 ? C.value : Ba(e.self || "top start", u.lang.rtl)), H = c(
2847
2847
  () => (e.square === !0 ? " q-menu--square" : "") + (y.value === !0 ? " q-menu--dark q-dark" : "")
2848
2848
  ), X = c(() => e.autoClose === !0 ? { onClick: Y } : {}), j = c(
2849
2849
  () => S.value === !0 && e.persistent !== !0
@@ -2881,7 +2881,7 @@ const tn = de({
2881
2881
  }, e.transitionDuration);
2882
2882
  }
2883
2883
  function k(I) {
2884
- o = void 0, r !== void 0 && (r(), r = void 0), (I === !0 || S.value === !0) && (Tn(ae), O(), za(U), Yl(te)), I !== !0 && (n = null);
2884
+ o = void 0, r !== void 0 && (r(), r = void 0), (I === !0 || S.value === !0) && (Tn(ae), R(), za(U), Yl(te)), I !== !0 && (n = null);
2885
2885
  }
2886
2886
  function Z() {
2887
2887
  (E.value !== null || e.scrollTarget !== void 0) && (_.value = Wn(E.value, e.scrollTarget), b(_.value, ne));
@@ -2901,7 +2901,7 @@ const tn = de({
2901
2901
  offset: e.offset,
2902
2902
  anchorEl: E.value,
2903
2903
  anchorOrigin: C.value,
2904
- selfOrigin: R.value,
2904
+ selfOrigin: O.value,
2905
2905
  absoluteOffset: o,
2906
2906
  fit: e.fit,
2907
2907
  cover: e.cover,
@@ -3076,24 +3076,24 @@ function iu(e, t) {
3076
3076
  const M = ++i, V = t.value !== !0 ? () => {
3077
3077
  r.value = !0;
3078
3078
  } : () => {
3079
- }, _ = (O, E) => {
3080
- O === !0 && V(), n.value = O, o.value = E || null, t.value = !1;
3079
+ }, _ = (R, E) => {
3080
+ R === !0 && V(), n.value = R, o.value = E || null, t.value = !1;
3081
3081
  }, b = [];
3082
- for (let O = 0; O < l.rules.length; O++) {
3083
- const E = l.rules[O];
3082
+ for (let R = 0; R < l.rules.length; R++) {
3083
+ const E = l.rules[R];
3084
3084
  let L;
3085
3085
  if (typeof E == "function" ? L = E(F, mn) : typeof E == "string" && mn[E] !== void 0 && (L = mn[E](F)), L === !1 || typeof L == "string")
3086
3086
  return _(!0, L), !1;
3087
3087
  L !== !0 && L !== void 0 && b.push(L);
3088
3088
  }
3089
3089
  return b.length === 0 ? (_(!1), !0) : (t.value = !0, Promise.all(b).then(
3090
- (O) => {
3091
- if (O === void 0 || Array.isArray(O) === !1 || O.length === 0)
3090
+ (R) => {
3091
+ if (R === void 0 || Array.isArray(R) === !1 || R.length === 0)
3092
3092
  return M === i && _(!1), !0;
3093
- const E = O.find((L) => L === !1 || typeof L == "string");
3093
+ const E = R.find((L) => L === !1 || typeof L == "string");
3094
3094
  return M === i && _(E !== void 0, E), E === void 0;
3095
3095
  },
3096
- (O) => (M === i && (console.error(O), _(!0)), !1)
3096
+ (R) => (M === i && (console.error(R), _(!0)), !1)
3097
3097
  ));
3098
3098
  }
3099
3099
  const g = Gn(q, 0);
@@ -3233,17 +3233,17 @@ function la(e) {
3233
3233
  const j = {};
3234
3234
  return e.targetUid.value && (j.for = e.targetUid.value), t.disable === !0 && (j["aria-disabled"] = "true"), j;
3235
3235
  });
3236
- function O() {
3236
+ function R() {
3237
3237
  var re;
3238
3238
  const j = document.activeElement;
3239
3239
  let G = (re = e.targetRef) == null ? void 0 : re.value;
3240
3240
  G && (j === null || j.id !== e.targetUid.value) && (G.hasAttribute("tabindex") === !0 || (G = G.querySelector("[tabindex]")), G !== j && (G == null || G.focus({ preventScroll: !0 })));
3241
3241
  }
3242
3242
  function E() {
3243
- en(O);
3243
+ en(R);
3244
3244
  }
3245
3245
  function L() {
3246
- Ri(O);
3246
+ Ri(R);
3247
3247
  const j = document.activeElement;
3248
3248
  j !== null && e.rootRef.value.contains(j) && j.blur();
3249
3249
  }
@@ -3337,7 +3337,7 @@ function la(e) {
3337
3337
  }, t.suffix)
3338
3338
  ), j.concat(ze(a.default));
3339
3339
  }
3340
- function R() {
3340
+ function O() {
3341
3341
  let j, G;
3342
3342
  u.value === !0 ? m.value !== null ? (j = [d("div", { role: "alert" }, m.value)], G = `q--slot-error-${m.value}`) : (j = ze(a.error), G = "q--slot-error") : (t.hideHint !== !0 || e.focused.value === !0) && (t.hint !== void 0 ? (j = [d("div", t.hint)], G = `q--slot-hint-${t.hint}`) : (j = ze(a.hint), G = "q--slot-hint"));
3343
3343
  const re = t.counter === !0 || a.counter !== void 0;
@@ -3399,7 +3399,7 @@ function la(e) {
3399
3399
  tabindex: -1,
3400
3400
  ...e.controlEvents
3401
3401
  }, U()),
3402
- y.value === !0 ? R() : null
3402
+ y.value === !0 ? O() : null
3403
3403
  ]),
3404
3404
  a.after !== void 0 ? d("div", {
3405
3405
  class: "q-field__after q-field__marginal row no-wrap items-center",
@@ -3770,7 +3770,7 @@ const yu = {
3770
3770
  e,
3771
3771
  () => Ua[e.position][0],
3772
3772
  () => Ua[e.position][1]
3773
- ), V = c(() => M.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: _, hidePortal: b, portalIsAccessible: O, renderPortal: E } = Qo(
3773
+ ), V = c(() => M.value + (e.backdropFilter !== void 0 ? `;backdrop-filter:${e.backdropFilter};-webkit-backdrop-filter:${e.backdropFilter}` : "")), { showPortal: _, hidePortal: b, portalIsAccessible: R, renderPortal: E } = Qo(
3774
3774
  n,
3775
3775
  o,
3776
3776
  Z,
@@ -3796,7 +3796,7 @@ const yu = {
3796
3796
  });
3797
3797
  function U(Y) {
3798
3798
  var ae;
3799
- v = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, G(e.maximized), _(), i.value = !0, e.noFocus !== !0 ? ((ae = document.activeElement) == null || ae.blur(), q(R)) : g(), y(() => {
3799
+ v = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, G(e.maximized), _(), i.value = !0, e.noFocus !== !0 ? ((ae = document.activeElement) == null || ae.blur(), q(O)) : g(), y(() => {
3800
3800
  if (n.proxy.$q.platform.is.ios === !0) {
3801
3801
  if (e.seamless !== !0 && document.activeElement) {
3802
3802
  const { top: te, bottom: ne } = document.activeElement.getBoundingClientRect(), { innerHeight: ye } = window, I = window.visualViewport !== void 0 ? window.visualViewport.height : ye;
@@ -3815,7 +3815,7 @@ const yu = {
3815
3815
  b(!0), i.value = !1, l("hide", Y);
3816
3816
  }, e.transitionDuration);
3817
3817
  }
3818
- function R(Y) {
3818
+ function O(Y) {
3819
3819
  en(() => {
3820
3820
  let ae = o.value;
3821
3821
  if (ae !== null) {
@@ -3831,10 +3831,10 @@ const yu = {
3831
3831
  });
3832
3832
  }
3833
3833
  function H(Y) {
3834
- Y && typeof Y.focus == "function" ? Y.focus({ preventScroll: !0 }) : R(), l("shake");
3834
+ Y && typeof Y.focus == "function" ? Y.focus({ preventScroll: !0 }) : O(), l("shake");
3835
3835
  const ae = o.value;
3836
3836
  ae !== null && (ae.classList.remove("q-animate--scale"), ae.classList.add("q-animate--scale"), s !== null && clearTimeout(s), s = setTimeout(() => {
3837
- s = null, o.value !== null && (ae.classList.remove("q-animate--scale"), R());
3837
+ s = null, o.value !== null && (ae.classList.remove("q-animate--scale"), O());
3838
3838
  }, 170));
3839
3839
  }
3840
3840
  function X() {
@@ -3853,11 +3853,11 @@ const yu = {
3853
3853
  e.persistent !== !0 && e.noBackdropDismiss !== !0 ? L(Y) : e.noShake !== !0 && H();
3854
3854
  }
3855
3855
  function k(Y) {
3856
- e.allowFocusOutside !== !0 && O.value === !0 && $o(o.value, Y.target) !== !0 && R('[tabindex]:not([tabindex="-1"])');
3856
+ e.allowFocusOutside !== !0 && R.value === !0 && $o(o.value, Y.target) !== !0 && O('[tabindex]:not([tabindex="-1"])');
3857
3857
  }
3858
3858
  Object.assign(n.proxy, {
3859
3859
  // expose public methods
3860
- focus: R,
3860
+ focus: O,
3861
3861
  shake: H,
3862
3862
  // private but needed by QSelect
3863
3863
  __updateRefocusTarget(Y) {
@@ -4005,17 +4005,17 @@ function rr({
4005
4005
  let v, u, m, S = [], h;
4006
4006
  const y = P(0), q = P(0), g = P({}), F = P(null), M = P(null), V = P(null), _ = P({ from: 0, to: 0 }), b = c(() => o.tableColspan !== void 0 ? o.tableColspan : 100);
4007
4007
  a === void 0 && (a = c(() => o.virtualScrollItemSize));
4008
- const O = c(() => a.value + ";" + o.virtualScrollHorizontal), E = c(
4009
- () => O.value + ";" + o.virtualScrollSliceRatioBefore + ";" + o.virtualScrollSliceRatioAfter
4008
+ const R = c(() => a.value + ";" + o.virtualScrollHorizontal), E = c(
4009
+ () => R.value + ";" + o.virtualScrollSliceRatioBefore + ";" + o.virtualScrollSliceRatioAfter
4010
4010
  );
4011
4011
  J(E, () => {
4012
4012
  H();
4013
- }), J(O, L);
4013
+ }), J(R, L);
4014
4014
  function L() {
4015
- R(u, !0);
4015
+ O(u, !0);
4016
4016
  }
4017
4017
  function T(x) {
4018
- R(x === void 0 ? u : x);
4018
+ O(x === void 0 ? u : x);
4019
4019
  }
4020
4020
  function B(x, k) {
4021
4021
  const Z = t();
@@ -4138,7 +4138,7 @@ function rr({
4138
4138
  var x;
4139
4139
  (x = V.value) == null || x.focus();
4140
4140
  }
4141
- function R(x, k) {
4141
+ function O(x, k) {
4142
4142
  const Z = 1 * a.value;
4143
4143
  (k === !0 || Array.isArray(h) === !1) && (h = []);
4144
4144
  const Y = h.length;
@@ -4269,7 +4269,7 @@ function rr({
4269
4269
  virtualScrollSliceSizeComputed: g,
4270
4270
  setVirtualScrollSize: H,
4271
4271
  onVirtualScrollEvt: G,
4272
- localResetVirtualScroll: R,
4272
+ localResetVirtualScroll: O,
4273
4273
  padVirtualScroll: X,
4274
4274
  scrollTo: B,
4275
4275
  reset: L,
@@ -4457,9 +4457,9 @@ const na = de({
4457
4457
  setup(e, { slots: t, emit: l }) {
4458
4458
  const { proxy: a } = fe(), { $q: n } = a, o = P(!1), r = P(!1), i = P(-1), s = P(""), v = P(!1), u = P(!1);
4459
4459
  let m = null, S = null, h, y, q, g = null, F, M, V, _;
4460
- const b = P(null), O = P(null), E = P(null), L = P(null), T = P(null), B = To(e), A = ir($), z = c(() => Array.isArray(e.options) ? e.options.length : 0), U = c(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
4460
+ const b = P(null), R = P(null), E = P(null), L = P(null), T = P(null), B = To(e), A = ir($), z = c(() => Array.isArray(e.options) ? e.options.length : 0), U = c(() => e.virtualScrollItemSize === void 0 ? e.optionsDense === !0 ? 24 : 48 : e.virtualScrollItemSize), {
4461
4461
  virtualScrollSliceRange: C,
4462
- virtualScrollSliceSizeComputed: R,
4462
+ virtualScrollSliceSizeComputed: O,
4463
4463
  localResetVirtualScroll: H,
4464
4464
  padVirtualScroll: X,
4465
4465
  onVirtualScrollEvt: j,
@@ -4613,7 +4613,7 @@ const na = de({
4613
4613
  e.fillInput === !0 ? je.value(p) : "",
4614
4614
  !0,
4615
4615
  !0
4616
- ), be()), (Ve = O.value) == null || Ve.focus(), (k.value.length === 0 || Vt(Qe.value(k.value[0]), ee) !== !0) && l("update:modelValue", e.emitValue === !0 ? ee : p);
4616
+ ), be()), (Ve = R.value) == null || Ve.focus(), (k.value.length === 0 || Vt(Qe.value(k.value[0]), ee) !== !0) && l("update:modelValue", e.emitValue === !0 ? ee : p);
4617
4617
  return;
4618
4618
  }
4619
4619
  if ((y !== !0 || v.value === !0) && x.focus(), Lt(), k.value.length === 0) {
@@ -4661,7 +4661,7 @@ const na = de({
4661
4661
  return gt.value.find((ee) => Vt(ee, W)) !== void 0;
4662
4662
  }
4663
4663
  function Lt(p) {
4664
- e.useInput === !0 && O.value !== null && (p === void 0 || O.value === p.target && p.target.value === I.value) && O.value.select();
4664
+ e.useInput === !0 && R.value !== null && (p === void 0 || R.value === p.target && p.target.value === I.value) && R.value.select();
4665
4665
  }
4666
4666
  function Jt(p) {
4667
4667
  Rt(p, 27) === !0 && o.value === !0 && (nt(p), be(), st()), l("keyup", p);
@@ -4706,11 +4706,11 @@ const na = de({
4706
4706
  e.multiple === !0 && Array.isArray(e.modelValue) === !0 ? bt(e.modelValue.length - 1) : e.multiple !== !0 && e.modelValue !== null && l("update:modelValue", null);
4707
4707
  return;
4708
4708
  }
4709
- (p.keyCode === 35 || p.keyCode === 36) && (typeof s.value != "string" || s.value.length === 0) && (Fe(p), i.value = -1, Xe(p.keyCode === 36 ? 1 : -1, e.multiple)), (p.keyCode === 33 || p.keyCode === 34) && R.value !== void 0 && (Fe(p), i.value = Math.max(
4709
+ (p.keyCode === 35 || p.keyCode === 36) && (typeof s.value != "string" || s.value.length === 0) && (Fe(p), i.value = -1, Xe(p.keyCode === 36 ? 1 : -1, e.multiple)), (p.keyCode === 33 || p.keyCode === 34) && O.value !== void 0 && (Fe(p), i.value = Math.max(
4710
4710
  -1,
4711
4711
  Math.min(
4712
4712
  z.value,
4713
- i.value + (p.keyCode === 33 ? -1 : 1) * R.value.view
4713
+ i.value + (p.keyCode === 33 ? -1 : 1) * O.value.view
4714
4714
  )
4715
4715
  ), Xe(p.keyCode === 33 ? 1 : -1, e.multiple)), (p.keyCode === 38 || p.keyCode === 40) && (Fe(p), Xe(p.keyCode === 38 ? -1 : 1, e.multiple));
4716
4716
  const ve = z.value;
@@ -4742,7 +4742,7 @@ const na = de({
4742
4742
  } else
4743
4743
  ke = e.newValueMode;
4744
4744
  if (ie("", e.multiple !== !0, !0), Ve == null) return;
4745
- (ke === "toggle" ? Ue : At)(Ve, ke === "add-unique"), e.multiple !== !0 && ((el = O.value) == null || el.focus(), be());
4745
+ (ke === "toggle" ? Ue : At)(Ve, ke === "add-unique"), e.multiple !== !0 && ((el = R.value) == null || el.focus(), be());
4746
4746
  };
4747
4747
  if (e.onNewValue !== void 0 ? l("newValue", s.value, Ce) : Ce(s.value), e.multiple !== !0) return;
4748
4748
  }
@@ -4795,7 +4795,7 @@ const na = de({
4795
4795
  }
4796
4796
  function Ht(p, W) {
4797
4797
  const ee = W === !0 ? { ...et.value, ...x.splitAttrs.attributes.value } : void 0, ve = {
4798
- ref: W === !0 ? O : void 0,
4798
+ ref: W === !0 ? R : void 0,
4799
4799
  key: "i_t",
4800
4800
  class: te.value,
4801
4801
  style: e.inputStyle,
@@ -4885,7 +4885,7 @@ const na = de({
4885
4885
  }
4886
4886
  function f(p) {
4887
4887
  var W;
4888
- nt(p), (W = O.value) == null || W.focus(), v.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
4888
+ nt(p), (W = R.value) == null || W.focus(), v.value = !0, window.scrollTo(window.pageXOffset || window.scrollX || document.body.scrollLeft || 0, 0);
4889
4889
  }
4890
4890
  function w(p) {
4891
4891
  nt(p), xe(() => {
@@ -4949,7 +4949,7 @@ const na = de({
4949
4949
  }
4950
4950
  function ce() {
4951
4951
  const p = document.activeElement;
4952
- (p === null || p.id !== x.targetUid.value) && O.value !== null && O.value !== p && O.value.focus(), re();
4952
+ (p === null || p.id !== x.targetUid.value) && R.value !== null && R.value !== p && R.value.focus(), re();
4953
4953
  }
4954
4954
  function le() {
4955
4955
  r.value !== !0 && (i.value = -1, o.value === !0 && (o.value = !1), x.focused.value === !1 && (g !== null && (clearTimeout(g), g = null), x.innerLoading.value === !0 && (l("filterAbort"), x.innerLoading.value = !1, u.value = !1)));
@@ -5022,7 +5022,7 @@ const na = de({
5022
5022
  () => `q-select q-field--auto-height q-select--with${e.useInput !== !0 ? "out" : ""}-input q-select--with${e.useChips !== !0 ? "out" : ""}-chips q-select--${e.multiple === !0 ? "multiple" : "single"}`
5023
5023
  ),
5024
5024
  inputRef: b,
5025
- targetRef: O,
5025
+ targetRef: R,
5026
5026
  hasValue: ae,
5027
5027
  showPopup: ue,
5028
5028
  floatingLabel: c(
@@ -5045,7 +5045,7 @@ const na = de({
5045
5045
  onClick(p) {
5046
5046
  var W;
5047
5047
  if (Ke(p), y !== !0 && o.value === !0) {
5048
- le(), (W = O.value) == null || W.focus();
5048
+ le(), (W = R.value) == null || W.focus();
5049
5049
  return;
5050
5050
  }
5051
5051
  ue(p);
@@ -5059,7 +5059,7 @@ const na = de({
5059
5059
  const Ce = ee === !0 ? et.value : void 0;
5060
5060
  W.push(
5061
5061
  d("input", {
5062
- ref: ee === !0 ? O : void 0,
5062
+ ref: ee === !0 ? R : void 0,
5063
5063
  key: "d_t",
5064
5064
  class: "q-select__focus-target",
5065
5065
  id: ee === !0 ? x.targetUid.value : void 0,
@@ -5488,22 +5488,22 @@ const na = de({
5488
5488
  ), h = c(
5489
5489
  () => "q-footer q-layout__section--marginal " + (s.value === !0 ? "fixed" : "absolute") + "-bottom" + (e.bordered === !0 ? " q-footer--bordered" : "") + (m.value === !0 ? " q-footer--hidden" : "") + (e.modelValue !== !0 ? " q-layout--prevent-focus" + (s.value !== !0 ? " hidden" : "") : "")
5490
5490
  ), y = c(() => {
5491
- const b = n.rows.value.bottom, O = {};
5492
- return b[0] === "l" && n.left.space === !0 && (O[a.lang.rtl === !0 ? "right" : "left"] = `${n.left.size}px`), b[2] === "r" && n.right.space === !0 && (O[a.lang.rtl === !0 ? "left" : "right"] = `${n.right.size}px`), O;
5491
+ const b = n.rows.value.bottom, R = {};
5492
+ return b[0] === "l" && n.left.space === !0 && (R[a.lang.rtl === !0 ? "right" : "left"] = `${n.left.size}px`), b[2] === "r" && n.right.space === !0 && (R[a.lang.rtl === !0 ? "left" : "right"] = `${n.right.size}px`), R;
5493
5493
  });
5494
- function q(b, O) {
5495
- n.update("footer", b, O);
5494
+ function q(b, R) {
5495
+ n.update("footer", b, R);
5496
5496
  }
5497
- function g(b, O) {
5498
- b.value !== O && (b.value = O);
5497
+ function g(b, R) {
5498
+ b.value !== R && (b.value = R);
5499
5499
  }
5500
5500
  function F({ height: b }) {
5501
5501
  g(o, b), q("size", b);
5502
5502
  }
5503
5503
  function M() {
5504
5504
  if (e.reveal !== !0) return;
5505
- const { direction: b, position: O, inflectionPoint: E } = n.scroll.value;
5506
- g(r, b === "up" || O - E < 100 || n.height.value - v.value - O - o.value < 300);
5505
+ const { direction: b, position: R, inflectionPoint: E } = n.scroll.value;
5506
+ g(r, b === "up" || R - E < 100 || n.height.value - v.value - R - o.value < 300);
5507
5507
  }
5508
5508
  function V(b) {
5509
5509
  S.value === !0 && g(r, !0), l("focusin", b);
@@ -5733,9 +5733,9 @@ const na = de({
5733
5733
  }
5734
5734
  }
5735
5735
  function q(_) {
5736
- const { height: b, width: O } = _;
5736
+ const { height: b, width: R } = _;
5737
5737
  let E = !1;
5738
- o.value !== b && (E = !0, o.value = b, e.onScrollHeight !== void 0 && l("scrollHeight", b), F()), r.value !== O && (E = !0, r.value = O), E === !0 && e.onResize !== void 0 && l("resize", _);
5738
+ o.value !== b && (E = !0, o.value = b, e.onScrollHeight !== void 0 && l("scrollHeight", b), F()), r.value !== R && (E = !0, r.value = R), E === !0 && e.onResize !== void 0 && l("resize", _);
5739
5739
  }
5740
5740
  function g({ height: _ }) {
5741
5741
  s.value !== _ && (s.value = _, F());
@@ -5774,8 +5774,8 @@ const na = de({
5774
5774
  M = null, document.body.classList.remove("q-body--layout-animate");
5775
5775
  }, 155);
5776
5776
  },
5777
- update(_, b, O) {
5778
- V[_][b] = O;
5777
+ update(_, b, R) {
5778
+ V[_][b] = R;
5779
5779
  }
5780
5780
  };
5781
5781
  if (go(ln, V), Fl() > 0) {
@@ -5788,15 +5788,15 @@ const na = de({
5788
5788
  } else
5789
5789
  clearTimeout(E);
5790
5790
  E = setTimeout(_, 300);
5791
- }, O = function(T) {
5791
+ }, R = function(T) {
5792
5792
  E !== null && T === "remove" && (clearTimeout(E), _()), window[`${T}EventListener`]("resize", b);
5793
5793
  }, E = null;
5794
5794
  const L = document.body;
5795
5795
  J(
5796
5796
  () => e.container !== !0 ? "add" : "remove",
5797
- O
5798
- ), e.container !== !0 && O("add"), mo(() => {
5799
- O("remove");
5797
+ R
5798
+ ), e.container !== !0 && R("add"), mo(() => {
5799
+ R("remove");
5800
5800
  });
5801
5801
  }
5802
5802
  return () => {
@@ -6641,10 +6641,10 @@ const yr = de({
6641
6641
  setup(e, { slots: t, emit: l }) {
6642
6642
  const { proxy: a } = fe(), { $q: n } = a, o = it(e, n), { getCache: r } = Nu(), { tabindex: i, headerClass: s, getLocale: v, getCurrentDate: u } = Ju(e, n);
6643
6643
  let m;
6644
- const S = fi(e), h = Do(S), y = P(null), q = P(At()), g = P(v()), F = c(() => At()), M = c(() => v()), V = c(() => u()), _ = P(Ye(q.value, g.value)), b = P(e.defaultView), O = c(() => n.lang.rtl === !0 ? "right" : "left"), E = P(O.value), L = P(O.value), T = _.value.year, B = P(T - T % kt - (T < 0 ? kt : 0)), A = P(null), z = c(() => {
6644
+ const S = fi(e), h = Do(S), y = P(null), q = P(At()), g = P(v()), F = c(() => At()), M = c(() => v()), V = c(() => u()), _ = P(Ye(q.value, g.value)), b = P(e.defaultView), R = c(() => n.lang.rtl === !0 ? "right" : "left"), E = P(R.value), L = P(R.value), T = _.value.year, B = P(T - T % kt - (T < 0 ? kt : 0)), A = P(null), z = c(() => {
6645
6645
  const f = e.landscape === !0 ? "landscape" : "portrait";
6646
6646
  return `q-date q-date--${f} q-date--${f}-${e.minimal === !0 ? "minimal" : "standard"}` + (o.value === !0 ? " q-date--dark q-dark" : "") + (e.bordered === !0 ? " q-date--bordered" : "") + (e.square === !0 ? " q-date--square no-border-radius" : "") + (e.flat === !0 ? " q-date--flat no-shadow" : "") + (e.disable === !0 ? " disabled" : e.readonly === !0 ? " q-date--readonly" : "");
6647
- }), U = c(() => e.color || "primary"), C = c(() => e.textColor || "white"), R = c(
6647
+ }), U = c(() => e.color || "primary"), C = c(() => e.textColor || "white"), O = c(
6648
6648
  () => e.emitImmediately === !0 && e.multiple !== !0 && e.range !== !0
6649
6649
  ), H = c(() => Array.isArray(e.modelValue) === !0 ? e.modelValue : e.modelValue !== null && e.modelValue !== void 0 ? [e.modelValue] : []), X = c(
6650
6650
  () => H.value.filter((f) => typeof f == "string").map((f) => Ue(f, q.value, g.value)).filter(
@@ -6978,17 +6978,17 @@ const yr = de({
6978
6978
  }
6979
6979
  function Zt(f) {
6980
6980
  let w = _.value.year, D = Number(_.value.month) + f;
6981
- D === 13 ? (D = 1, w++) : D === 0 && (D = 12, w--), Ze(w, D), R.value === !0 && $t("month");
6981
+ D === 13 ? (D = 1, w++) : D === 0 && (D = 12, w--), Ze(w, D), O.value === !0 && $t("month");
6982
6982
  }
6983
6983
  function yt(f) {
6984
6984
  const w = Number(_.value.year) + f;
6985
- Ze(w, _.value.month), R.value === !0 && $t("year");
6985
+ Ze(w, _.value.month), O.value === !0 && $t("year");
6986
6986
  }
6987
6987
  function Lt(f) {
6988
- Ze(f, _.value.month), b.value = e.defaultView === "Years" ? "Months" : "Calendar", R.value === !0 && $t("year");
6988
+ Ze(f, _.value.month), b.value = e.defaultView === "Years" ? "Months" : "Calendar", O.value === !0 && $t("year");
6989
6989
  }
6990
6990
  function Jt(f) {
6991
- Ze(_.value.year, f), b.value = "Calendar", R.value === !0 && $t("month");
6991
+ Ze(_.value.year, f), b.value = "Calendar", O.value === !0 && $t("month");
6992
6992
  }
6993
6993
  function Et(f, w) {
6994
6994
  const D = et.value[w];
@@ -7550,11 +7550,11 @@ function us(e, t, l, a) {
7550
7550
  return;
7551
7551
  }
7552
7552
  const T = no[e.mask] === void 0 ? e.mask : no[e.mask], B = typeof e.fillMask == "string" && e.fillMask.length !== 0 ? e.fillMask.slice(0, 1) : "_", A = B.replace(ao, "\\$&"), z = [], U = [], C = [];
7553
- let R = e.reverseFillMask === !0, H = "", X = "";
7553
+ let O = e.reverseFillMask === !0, H = "", X = "";
7554
7554
  T.replace(rs, (x, k, Z, Y, ae) => {
7555
7555
  if (Y !== void 0) {
7556
7556
  const te = Wl[Y];
7557
- C.push(te), X = te.negate, R === !0 && (U.push("(?:" + X + "+)?(" + te.pattern + "+)?(?:" + X + "+)?(" + te.pattern + "+)?"), R = !1), U.push("(?:" + X + "+)?(" + te.pattern + ")?");
7557
+ C.push(te), X = te.negate, O === !0 && (U.push("(?:" + X + "+)?(" + te.pattern + "+)?(?:" + X + "+)?(" + te.pattern + "+)?"), O = !1), U.push("(?:" + X + "+)?(" + te.pattern + ")?");
7558
7558
  } else if (Z !== void 0)
7559
7559
  H = "\\" + (Z === "\\" ? "" : Z), C.push(Z), z.push("([^" + H + "]+)?" + H + "?");
7560
7560
  else {
@@ -7581,9 +7581,9 @@ function us(e, t, l, a) {
7581
7581
  }, n = C.map((x) => typeof x == "string" ? x : Pe).join(""), o = n.split(Pe).join(B);
7582
7582
  }
7583
7583
  function g(T, B, A) {
7584
- const z = a.value, U = z.selectionEnd, C = z.value.length - U, R = E(T);
7584
+ const z = a.value, U = z.selectionEnd, C = z.value.length - U, O = E(T);
7585
7585
  B === !0 && q();
7586
- const H = b(R), X = e.fillMask !== !1 ? L(H) : H, j = m.value !== X;
7586
+ const H = b(O), X = e.fillMask !== !1 ? L(H) : H, j = m.value !== X;
7587
7587
  z.value !== X && (z.value = X), j === !0 && (m.value = X), document.activeElement === z && xe(() => {
7588
7588
  if (X === o) {
7589
7589
  const re = e.reverseFillMask === !0 ? o.length : 0;
@@ -7696,32 +7696,32 @@ function us(e, t, l, a) {
7696
7696
  if (T == null || T === "")
7697
7697
  return "";
7698
7698
  if (e.reverseFillMask === !0)
7699
- return O(T);
7699
+ return R(T);
7700
7700
  const B = r;
7701
7701
  let A = 0, z = "";
7702
7702
  for (let U = 0; U < B.length; U++) {
7703
- const C = T[A], R = B[U];
7704
- if (typeof R == "string")
7705
- z += R, C === R && A++;
7706
- else if (C !== void 0 && R.regex.test(C))
7707
- z += R.transform !== void 0 ? R.transform(C) : C, A++;
7703
+ const C = T[A], O = B[U];
7704
+ if (typeof O == "string")
7705
+ z += O, C === O && A++;
7706
+ else if (C !== void 0 && O.regex.test(C))
7707
+ z += O.transform !== void 0 ? O.transform(C) : C, A++;
7708
7708
  else
7709
7709
  return z;
7710
7710
  }
7711
7711
  return z;
7712
7712
  }
7713
- function O(T) {
7713
+ function R(T) {
7714
7714
  const B = r, A = n.indexOf(Pe);
7715
7715
  let z = T.length - 1, U = "";
7716
7716
  for (let C = B.length - 1; C >= 0 && z !== -1; C--) {
7717
- const R = B[C];
7717
+ const O = B[C];
7718
7718
  let H = T[z];
7719
- if (typeof R == "string")
7720
- U = R + U, H === R && z--;
7721
- else if (H !== void 0 && R.regex.test(H))
7719
+ if (typeof O == "string")
7720
+ U = O + U, H === O && z--;
7721
+ else if (H !== void 0 && O.regex.test(H))
7722
7722
  do
7723
- U = (R.transform !== void 0 ? R.transform(H) : H) + U, z--, H = T[z];
7724
- while (A === C && H !== void 0 && R.regex.test(H));
7723
+ U = (O.transform !== void 0 ? O.transform(H) : H) + U, z--, H = T[z];
7724
+ while (A === C && H !== void 0 && O.regex.test(H));
7725
7725
  else
7726
7726
  return U;
7727
7727
  }
@@ -7803,13 +7803,13 @@ const Hn = de({
7803
7803
  onMaskedClick: M
7804
7804
  } = us(e, t, H, m), V = ss(
7805
7805
  e
7806
- ), _ = c(() => El(h.value)), b = ir(C), O = ta({ changeEvent: !0 }), E = c(
7806
+ ), _ = c(() => El(h.value)), b = ir(C), R = ta({ changeEvent: !0 }), E = c(
7807
7807
  () => e.type === "textarea" || e.autogrow === !0
7808
7808
  ), L = c(
7809
7809
  () => E.value === !0 || ["text", "search", "url", "tel", "password"].includes(e.type)
7810
7810
  ), T = c(() => {
7811
7811
  const k = {
7812
- ...O.splitAttrs.listeners.value,
7812
+ ...R.splitAttrs.listeners.value,
7813
7813
  onInput: C,
7814
7814
  onPaste: U,
7815
7815
  // Safari < 10.2 & UIWebView doesn't fire compositionend when
@@ -7820,7 +7820,7 @@ const Hn = de({
7820
7820
  onBlur: G,
7821
7821
  onFocus: nt
7822
7822
  };
7823
- return k.onCompositionstart = k.onCompositionupdate = k.onCompositionend = b, y.value === !0 && (k.onKeydown = F, k.onClick = M), e.autogrow === !0 && (k.onAnimationend = R), k;
7823
+ return k.onCompositionstart = k.onCompositionupdate = k.onCompositionend = b, y.value === !0 && (k.onKeydown = F, k.onClick = M), e.autogrow === !0 && (k.onAnimationend = O), k;
7824
7824
  }), B = c(() => {
7825
7825
  const k = {
7826
7826
  tabindex: 0,
@@ -7828,8 +7828,8 @@ const Hn = de({
7828
7828
  rows: e.type === "textarea" ? 6 : void 0,
7829
7829
  "aria-label": e.label,
7830
7830
  name: S.value,
7831
- ...O.splitAttrs.attributes.value,
7832
- id: O.targetUid.value,
7831
+ ...R.splitAttrs.attributes.value,
7832
+ id: R.targetUid.value,
7833
7833
  maxlength: e.maxlength,
7834
7834
  disabled: e.disable === !0,
7835
7835
  readonly: e.readonly === !0
@@ -7853,7 +7853,7 @@ const Hn = de({
7853
7853
  function A() {
7854
7854
  en(() => {
7855
7855
  const k = document.activeElement;
7856
- m.value !== null && m.value !== k && (k === null || k.id !== O.targetUid.value) && m.value.focus({ preventScroll: !0 });
7856
+ m.value !== null && m.value !== k && (k === null || k.id !== R.targetUid.value) && m.value.focus({ preventScroll: !0 });
7857
7857
  });
7858
7858
  }
7859
7859
  function z() {
@@ -7888,7 +7888,7 @@ const Hn = de({
7888
7888
  }
7889
7889
  e.autogrow === !0 && X();
7890
7890
  }
7891
- function R(k) {
7891
+ function O(k) {
7892
7892
  t("animationend", k), X();
7893
7893
  }
7894
7894
  function H(k, Z) {
@@ -7922,7 +7922,7 @@ const Hn = de({
7922
7922
  G();
7923
7923
  }), ft(() => {
7924
7924
  e.autogrow === !0 && X();
7925
- }), Object.assign(O, {
7925
+ }), Object.assign(R, {
7926
7926
  innerValue: h,
7927
7927
  fieldClass: c(
7928
7928
  () => `q-${E.value === !0 ? "textarea" : "input"}` + (e.autogrow === !0 ? " q-textarea--autogrow" : "")
@@ -7954,7 +7954,7 @@ const Hn = de({
7954
7954
  d("span", e.shadowText)
7955
7955
  ])
7956
7956
  });
7957
- const x = la(O);
7957
+ const x = la(R);
7958
7958
  return Object.assign(a, {
7959
7959
  focus: A,
7960
7960
  select: z,
@@ -8809,8 +8809,8 @@ function Ls(e, t, l, a, n, o) {
8809
8809
  })));
8810
8810
  J(h, (_, b) => {
8811
8811
  if (_ === b) return;
8812
- const O = l.value.page;
8813
- _ && !O ? n({ page: 1 }) : _ < O && n({ page: _ });
8812
+ const R = l.value.page;
8813
+ _ && !R ? n({ page: 1 }) : _ < R && n({ page: _ });
8814
8814
  });
8815
8815
  function g() {
8816
8816
  n({ page: 1 });
@@ -9063,7 +9063,7 @@ const Ks = de({
9063
9063
  isServerSide: F,
9064
9064
  requestServerInteraction: M,
9065
9065
  setPagination: V
9066
- } = As(a, Ye), { computedFilterMethod: _ } = Rs(e, V), { isRowExpanded: b, setExpanded: O, updateExpanded: E } = Ys(e, l), L = c(() => {
9066
+ } = As(a, Ye), { computedFilterMethod: _ } = Rs(e, V), { isRowExpanded: b, setExpanded: R, updateExpanded: E } = Ys(e, l), L = c(() => {
9067
9067
  let $ = e.rows;
9068
9068
  if (F.value === !0 || $.length === 0)
9069
9069
  return $;
@@ -9084,7 +9084,7 @@ const Ks = de({
9084
9084
  singleSelection: z,
9085
9085
  multipleSelection: U,
9086
9086
  allRowsSelected: C,
9087
- someRowsSelected: R,
9087
+ someRowsSelected: O,
9088
9088
  rowsSelectedNumber: H,
9089
9089
  isRowSelected: X,
9090
9090
  clearSelection: j,
@@ -9309,7 +9309,7 @@ const Ks = de({
9309
9309
  )), pe.length !== 0)
9310
9310
  return d("div", { class: _e }, pe);
9311
9311
  }
9312
- const yt = c(() => R.value === !0 ? null : C.value);
9312
+ const yt = c(() => O.value === !0 ? null : C.value);
9313
9313
  function Lt() {
9314
9314
  const $ = Jt();
9315
9315
  return e.loading === !0 && t.loading === void 0 && $.push(
@@ -9375,7 +9375,7 @@ const Ks = de({
9375
9375
  ), $;
9376
9376
  }
9377
9377
  function tt($) {
9378
- R.value === !0 && ($ = !1), G(
9378
+ O.value === !0 && ($ = !1), G(
9379
9379
  B.value.map(s.value),
9380
9380
  B.value,
9381
9381
  $
@@ -9582,7 +9582,7 @@ const Ks = de({
9582
9582
  isRowSelected: X,
9583
9583
  clearSelection: j,
9584
9584
  isRowExpanded: b,
9585
- setExpanded: O,
9585
+ setExpanded: R,
9586
9586
  sort: te,
9587
9587
  resetVirtualScroll: Ct,
9588
9588
  scrollTo: je,
@@ -9606,13 +9606,13 @@ const Ks = de({
9606
9606
  }
9607
9607
  }), Ws = {
9608
9608
  shouldShowExpandButton: () => !0,
9609
- shouldShowMoveButton: (e) => e.rowKey === "prm",
9609
+ shouldShowMoveButton: (e) => e === "prm",
9610
9610
  shouldShowArchiveButton: (e) => !!e.archived,
9611
9611
  shouldShowUnarchiveButton: (e) => {
9612
9612
  var t;
9613
9613
  return !e.archived && !((t = e.portfolios) != null && t.length) && !!e.portfolios;
9614
9614
  },
9615
- shouldShowCancelButton: (e) => e.rowKey === "uuid" && e.affaire_statut !== "CANCELLING" && e.affaire_statut !== "ANNUL",
9615
+ shouldShowCancelButton: (e, t) => t === "uuid" && e.affaire_statut !== "CANCELLING" && e.affaire_statut !== "ANNUL",
9616
9616
  isCancelButtonDisabled: (e) => e.affaire_statut !== "COURS"
9617
9617
  };
9618
9618
  function co(e, t) {
@@ -9655,14 +9655,14 @@ const Xs = {
9655
9655
  ...Ws,
9656
9656
  ...l.conditionals
9657
9657
  })
9658
- ), v = (b) => s.value.shouldShowExpandButton(b), u = (b) => s.value.shouldShowMoveButton(b), m = (b) => s.value.shouldShowArchiveButton(b), S = (b) => s.value.shouldShowUnarchiveButton(b), h = (b) => s.value.shouldShowCancelButton(b), y = (b) => s.value.isCancelButtonDisabled(b), q = (b) => n.value.includes(b[l.rowKey]);
9659
- function g(b, O = !1) {
9658
+ ), v = (b) => s.value.shouldShowExpandButton(b), u = (b) => s.value.shouldShowMoveButton(b), m = (b) => s.value.shouldShowArchiveButton(b), S = (b) => s.value.shouldShowUnarchiveButton(b), h = (b, R) => s.value.shouldShowCancelButton(b, R), y = (b) => s.value.isCancelButtonDisabled(b), q = (b) => n.value.includes(b[l.rowKey]);
9659
+ async function g(b, R = !1) {
9660
9660
  const E = b[l.rowKey];
9661
- if (q(b) || O)
9661
+ if (q(b) || R)
9662
9662
  n.value = n.value.filter((L) => L !== E);
9663
9663
  else if (n.value = [E], l.rowKey === "uuid" && l.services.fetchDetails)
9664
9664
  try {
9665
- b.details = l.services.fetchDetails(b);
9665
+ b.details = await l.services.fetchDetails(b);
9666
9666
  } catch (L) {
9667
9667
  console.error("Error fetching details:", L);
9668
9668
  }
@@ -9679,7 +9679,7 @@ const Xs = {
9679
9679
  function _(b) {
9680
9680
  l.services.redirectToPrm && l.services.redirectToPrm(b);
9681
9681
  }
9682
- return (b, O) => (ge(), Ae(Ks, {
9682
+ return (b, R) => (ge(), Ae(Ks, {
9683
9683
  columns: b.columns,
9684
9684
  rows: b.results,
9685
9685
  filter: b.filter,
@@ -9687,7 +9687,7 @@ const Xs = {
9687
9687
  "binary-state-sort": "",
9688
9688
  onRequest: F,
9689
9689
  pagination: i.value,
9690
- "onUpdate:pagination": O[0] || (O[0] = (E) => i.value = E),
9690
+ "onUpdate:pagination": R[0] || (R[0] = (E) => i.value = E),
9691
9691
  "rows-per-page-options": i.value.rowsPerPageOptions,
9692
9692
  loading: b.loading
9693
9693
  }, {
@@ -9708,7 +9708,7 @@ const Xs = {
9708
9708
  _: 2
9709
9709
  }, 1032, ["props"]))), 128)),
9710
9710
  b.showActionsColumn ? (ge(), Ae(Il, { key: 1 }, {
9711
- default: me(() => O[1] || (O[1] = [
9711
+ default: me(() => R[1] || (R[1] = [
9712
9712
  $l("Actions")
9713
9713
  ])),
9714
9714
  _: 1,
@@ -9798,7 +9798,7 @@ const Xs = {
9798
9798
  return (L = b.onCancel) == null ? void 0 : L.call(b, E.row);
9799
9799
  }
9800
9800
  }, () => [
9801
- u(E.row) ? (ge(), Ae($e, {
9801
+ u(b.rowKey) ? (ge(), Ae($e, {
9802
9802
  key: 0,
9803
9803
  class: "cursor-pointer q-mr-sm",
9804
9804
  name: "mdi-swap-horizontal",
@@ -9839,7 +9839,7 @@ const Xs = {
9839
9839
  },
9840
9840
  "data-cy": "details-button"
9841
9841
  }, null, 8, ["class", "color", "onClick"]),
9842
- h(E.row) ? (ge(), Ae(Le, {
9842
+ h(E.row, b.rowKey) ? (ge(), Ae(Le, {
9843
9843
  key: 3,
9844
9844
  onClick: (L) => {
9845
9845
  var T;
@@ -9850,7 +9850,7 @@ const Xs = {
9850
9850
  disabled: y(E.row),
9851
9851
  "data-cy": `cancel-button-affaire-${E.row.uuid}`
9852
9852
  }, {
9853
- default: me(() => O[2] || (O[2] = [
9853
+ default: me(() => R[2] || (R[2] = [
9854
9854
  $l(" Annuler ")
9855
9855
  ])),
9856
9856
  _: 2,