@stock-in-the-channel/sinch-vue-components 0.0.367 → 0.0.368

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -2589,7 +2589,7 @@ var ri = Se({
2589
2589
  handleHide: te,
2590
2590
  hideOnRouteChange: f,
2591
2591
  processOnMount: !0
2592
- }), { showPortal: E, hidePortal: M, renderPortal: P } = Gc(s, d, U, "menu"), D = {
2592
+ }), { showPortal: E, hidePortal: M, renderPortal: P } = Gc(s, d, j, "menu"), D = {
2593
2593
  anchorEl: A,
2594
2594
  innerRef: d,
2595
2595
  onClickOutside(Q) {
@@ -2608,7 +2608,7 @@ var ri = Se({
2608
2608
  () => v.value === !0 && e.persistent !== !0
2609
2609
  );
2610
2610
  pe(oe, (Q) => {
2611
- Q === !0 ? (Ep(j), Op(D)) : (Fl(j), Ul(D));
2611
+ Q === !0 ? (Ep(U), Op(D)) : (Fl(U), Ul(D));
2612
2612
  });
2613
2613
  function ce() {
2614
2614
  Ji(() => {
@@ -2620,17 +2620,17 @@ var ri = Se({
2620
2620
  if (a = e.noRefocus === !1 ? document.activeElement : null, Ip(Ce), E(), le(), i = void 0, Q !== void 0 && (e.touchPosition || e.contextMenu)) {
2621
2621
  const Y = Un(Q);
2622
2622
  if (Y.left !== void 0) {
2623
- const { top: ge, left: re } = A.value.getBoundingClientRect();
2624
- i = { left: Y.left - re, top: Y.top - ge };
2623
+ const { top: be, left: re } = A.value.getBoundingClientRect();
2624
+ i = { left: Y.left - re, top: Y.top - be };
2625
2625
  }
2626
2626
  }
2627
2627
  o === void 0 && (o = pe(
2628
2628
  () => u.screen.width + "|" + u.screen.height + "|" + e.self + "|" + e.anchor + "|" + u.lang.rtl,
2629
- Z
2629
+ G
2630
2630
  )), e.noFocus !== !0 && document.activeElement.blur(), g(() => {
2631
- Z(), e.noFocus !== !0 && ce();
2631
+ G(), e.noFocus !== !0 && ce();
2632
2632
  }), _(() => {
2633
- u.platform.is.ios === !0 && (l = e.autoClose, d.value.click()), Z(), E(!0), n("show", Q);
2633
+ u.platform.is.ios === !0 && (l = e.autoClose, d.value.click()), G(), E(!0), n("show", Q);
2634
2634
  }, e.transitionDuration);
2635
2635
  }
2636
2636
  function te(Q) {
@@ -2640,10 +2640,10 @@ var ri = Se({
2640
2640
  }, e.transitionDuration);
2641
2641
  }
2642
2642
  function V(Q) {
2643
- i = void 0, o !== void 0 && (o(), o = void 0), (Q === !0 || v.value === !0) && (Hu(Ce), x(), Ul(D), Fl(j)), Q !== !0 && (a = null);
2643
+ i = void 0, o !== void 0 && (o(), o = void 0), (Q === !0 || v.value === !0) && (Hu(Ce), x(), Ul(D), Fl(U)), Q !== !0 && (a = null);
2644
2644
  }
2645
2645
  function le() {
2646
- (A.value !== null || e.scrollTarget !== void 0) && (y.value = Ir(A.value, e.scrollTarget), k(y.value, Z));
2646
+ (A.value !== null || e.scrollTarget !== void 0) && (y.value = Ir(A.value, e.scrollTarget), k(y.value, G));
2647
2647
  }
2648
2648
  function ie(Q) {
2649
2649
  l !== !0 ? (Sp(c, Q), n("click", Q)) : l = !1;
@@ -2651,10 +2651,10 @@ var ri = Se({
2651
2651
  function Ce(Q) {
2652
2652
  oe.value === !0 && e.noFocus !== !0 && fp(d.value, Q.target) !== !0 && ce();
2653
2653
  }
2654
- function j(Q) {
2654
+ function U(Q) {
2655
2655
  n("escapeKey"), I(Q);
2656
2656
  }
2657
- function Z() {
2657
+ function G() {
2658
2658
  Xc({
2659
2659
  targetEl: d.value,
2660
2660
  offset: e.offset,
@@ -2668,7 +2668,7 @@ var ri = Se({
2668
2668
  maxWidth: e.maxWidth
2669
2669
  });
2670
2670
  }
2671
- function U() {
2671
+ function j() {
2672
2672
  return w(
2673
2673
  hn,
2674
2674
  C.value,
@@ -2689,7 +2689,7 @@ var ri = Se({
2689
2689
  }, We(t.default)) : null
2690
2690
  );
2691
2691
  }
2692
- return bt(V), Object.assign(c, { focus: ce, updatePosition: Z }), P;
2692
+ return bt(V), Object.assign(c, { focus: ce, updatePosition: G }), P;
2693
2693
  }
2694
2694
  }), zs, nl = 0, Pn = new Array(256);
2695
2695
  for (let e = 0; e < 256; e++)
@@ -4372,7 +4372,7 @@ function Up({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
4372
4372
  return (Ee) => Ee;
4373
4373
  const de = (String(a.step).trim().split(".")[1] || "").length;
4374
4374
  return (Ee) => parseFloat(Ee.toFixed(de));
4375
- }), k = b(() => a.step === 0 ? 1 : a.step), x = b(() => h.value === !0 ? a.tabindex || 0 : -1), A = b(() => a.max - a.min), $ = b(() => C.value - _.value), I = b(() => ge(_.value)), E = b(() => ge(C.value)), M = b(() => a.vertical === !0 ? p.value === !0 ? "bottom" : "top" : p.value === !0 ? "right" : "left"), P = b(() => a.vertical === !0 ? "height" : "width"), D = b(() => a.vertical === !0 ? "width" : "height"), O = b(() => a.vertical === !0 ? "vertical" : "horizontal"), B = b(() => {
4375
+ }), k = b(() => a.step === 0 ? 1 : a.step), x = b(() => h.value === !0 ? a.tabindex || 0 : -1), A = b(() => a.max - a.min), $ = b(() => C.value - _.value), I = b(() => be(_.value)), E = b(() => be(C.value)), M = b(() => a.vertical === !0 ? p.value === !0 ? "bottom" : "top" : p.value === !0 ? "right" : "left"), P = b(() => a.vertical === !0 ? "height" : "width"), D = b(() => a.vertical === !0 ? "width" : "height"), O = b(() => a.vertical === !0 ? "vertical" : "horizontal"), B = b(() => {
4376
4376
  const de = {
4377
4377
  role: "slider",
4378
4378
  "aria-valuemin": _.value,
@@ -4397,12 +4397,12 @@ function Up({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
4397
4397
  return "q-slider__selection absolute" + (de !== void 0 ? ` text-${de}` : "");
4398
4398
  }), Pe = b(() => oe("markers") + " absolute overflow-hidden"), te = b(() => oe("track-container")), V = b(() => ee("pin")), le = b(() => ee("label")), ie = b(() => ee("text-container")), Ce = b(
4399
4399
  () => ee("marker-labels-container") + (a.markerLabelsClass !== void 0 ? ` ${a.markerLabelsClass}` : "")
4400
- ), j = b(
4400
+ ), U = b(
4401
4401
  () => "q-slider__track relative-position no-outline" + (a.trackColor !== void 0 ? ` bg-${a.trackColor}` : "")
4402
- ), Z = b(() => {
4402
+ ), G = b(() => {
4403
4403
  const de = { [D.value]: a.trackSize };
4404
4404
  return a.trackImg !== void 0 && (de.backgroundImage = `url(${a.trackImg}) !important`), de;
4405
- }), U = b(
4405
+ }), j = b(
4406
4406
  () => "q-slider__inner absolute" + (a.innerTrackColor !== void 0 ? ` bg-${a.innerTrackColor}` : "")
4407
4407
  ), Q = b(() => {
4408
4408
  const de = E.value - I.value, Ee = {
@@ -4420,7 +4420,7 @@ function Up({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
4420
4420
  }
4421
4421
  return ze = y.value(ze), Lt(ze, _.value, C.value);
4422
4422
  }
4423
- function ge(de) {
4423
+ function be(de) {
4424
4424
  return A.value === 0 ? 0 : (de - a.min) / A.value;
4425
4425
  }
4426
4426
  function re(de, Ee) {
@@ -4431,10 +4431,10 @@ function Up({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
4431
4431
  E.value
4432
4432
  );
4433
4433
  }
4434
- const ye = b(
4434
+ const ge = b(
4435
4435
  () => Eo(a.markers) === !0 ? a.markers : k.value
4436
4436
  ), ue = b(() => {
4437
- const de = [], Ee = ye.value, je = a.max;
4437
+ const de = [], Ee = ge.value, je = a.max;
4438
4438
  let lt = a.min;
4439
4439
  do
4440
4440
  de.push(lt), lt += Ee;
@@ -4459,7 +4459,7 @@ function Up({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
4459
4459
  // TODO ts definition
4460
4460
  getStyle: H
4461
4461
  })), Ze = b(() => {
4462
- const de = $.value === 0 ? "2px" : 100 * ye.value / $.value;
4462
+ const de = $.value === 0 ? "2px" : 100 * ge.value / $.value;
4463
4463
  return {
4464
4464
  ...Q.value,
4465
4465
  backgroundSize: a.vertical === !0 ? `2px ${de}%` : `${de}% 2px`
@@ -4492,7 +4492,7 @@ function Up({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
4492
4492
  de[Ee.value] = Ee;
4493
4493
  }), de;
4494
4494
  });
4495
- function G() {
4495
+ function X() {
4496
4496
  if (o["marker-label-group"] !== void 0)
4497
4497
  return o["marker-label-group"]($e.value);
4498
4498
  const de = o["marker-label"] || Y_;
@@ -4501,7 +4501,7 @@ function Up({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
4501
4501
  ...$e.value
4502
4502
  }));
4503
4503
  }
4504
- const X = b(() => [[
4504
+ const Z = b(() => [[
4505
4505
  ir,
4506
4506
  ke,
4507
4507
  void 0,
@@ -4525,7 +4525,7 @@ function Up({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
4525
4525
  function se() {
4526
4526
  d.value = !1, u.value = !1, e(!0), Le(), document.removeEventListener("mouseup", se, !0);
4527
4527
  }
4528
- function be(de) {
4528
+ function ye(de) {
4529
4529
  t(de, n(de)), e(!0);
4530
4530
  }
4531
4531
  function Ke(de) {
@@ -4587,7 +4587,7 @@ function Up({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
4587
4587
  a.innerTrackColor !== "transparent" && ze.push(
4588
4588
  w("div", {
4589
4589
  key: "inner",
4590
- class: U.value,
4590
+ class: j.value,
4591
4591
  style: Q.value
4592
4592
  })
4593
4593
  ), a.selectionColor !== "transparent" && ze.push(
@@ -4614,13 +4614,13 @@ function Up({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
4614
4614
  },
4615
4615
  [
4616
4616
  w("div", {
4617
- class: j.value,
4618
- style: Z.value
4617
+ class: U.value,
4618
+ style: G.value
4619
4619
  }, ze)
4620
4620
  ],
4621
4621
  "slide",
4622
4622
  h.value,
4623
- () => X.value
4623
+ () => Z.value
4624
4624
  )
4625
4625
  ];
4626
4626
  if (a.markerLabels !== !1) {
@@ -4629,7 +4629,7 @@ function Up({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
4629
4629
  w("div", {
4630
4630
  key: "markerL",
4631
4631
  class: Ce.value
4632
- }, G())
4632
+ }, X())
4633
4633
  );
4634
4634
  }
4635
4635
  return gt;
@@ -4659,13 +4659,13 @@ function Up({ updateValue: e, updatePosition: t, getDragging: n, formAttrs: r })
4659
4659
  },
4660
4660
  methods: {
4661
4661
  onActivate: Be,
4662
- onMobileClick: be,
4662
+ onMobileClick: ye,
4663
4663
  onBlur: Le,
4664
4664
  onKeyup: Ke,
4665
4665
  getContent: Oe,
4666
4666
  getThumbRenderFn: me,
4667
4667
  convertRatioToModel: Y,
4668
- convertModelToRatio: ge,
4668
+ convertModelToRatio: be,
4669
4669
  getDraggingRatio: re
4670
4670
  }
4671
4671
  };
@@ -4894,9 +4894,9 @@ var X_ = ["left", "center", "right", "justify"], Li = Se({
4894
4894
  inlineLabel: e.inlineLabel,
4895
4895
  noCaps: e.noCaps
4896
4896
  })), E = b(() => {
4897
- const G = y.value, X = m.value;
4898
- for (let ke = 0; ke < G; ke++)
4899
- if (h[ke].name.value === X)
4897
+ const X = y.value, Z = m.value;
4898
+ for (let ke = 0; ke < X; ke++)
4899
+ if (h[ke].name.value === Z)
4900
4900
  return !0;
4901
4901
  return !1;
4902
4902
  }), M = b(() => `q-tabs__content--align-${g.value === !0 ? "left" : C.value === !0 ? "justify" : e.align}`), P = b(
@@ -4904,11 +4904,11 @@ var X_ = ["left", "center", "right", "justify"], Li = Se({
4904
4904
  ), D = b(
4905
4905
  () => "q-tabs__content scroll--mobile row no-wrap items-center self-stretch hide-scrollbar relative-position " + M.value + (e.contentClass !== void 0 ? ` ${e.contentClass}` : "")
4906
4906
  ), O = b(() => e.vertical === !0 ? { container: "height", content: "offsetHeight", scroll: "scrollHeight" } : { container: "width", content: "offsetWidth", scroll: "scrollWidth" }), B = b(() => e.vertical !== !0 && a.lang.rtl === !0), K = b(() => Oo === !1 && B.value === !0);
4907
- pe(B, V), pe(() => e.modelValue, (G) => {
4908
- ee({ name: G, setCurrent: !0, skipEmit: !0 });
4907
+ pe(B, V), pe(() => e.modelValue, (X) => {
4908
+ ee({ name: X, setCurrent: !0, skipEmit: !0 });
4909
4909
  }), pe(() => e.outsideArrows, oe);
4910
- function ee({ name: G, setCurrent: X, skipEmit: ke }) {
4911
- m.value !== G && (ke !== !0 && e["onUpdate:modelValue"] !== void 0 && n("update:modelValue", G), (X === !0 || e["onUpdate:modelValue"] === void 0) && (Pe(m.value, G), m.value = G));
4910
+ function ee({ name: X, setCurrent: Z, skipEmit: ke }) {
4911
+ m.value !== X && (ke !== !0 && e["onUpdate:modelValue"] !== void 0 && n("update:modelValue", X), (Z === !0 || e["onUpdate:modelValue"] === void 0) && (Pe(m.value, X), m.value = X));
4912
4912
  }
4913
4913
  function oe() {
4914
4914
  i(() => {
@@ -4918,28 +4918,28 @@ var X_ = ["left", "center", "right", "justify"], Li = Se({
4918
4918
  });
4919
4919
  });
4920
4920
  }
4921
- function ce(G) {
4921
+ function ce(X) {
4922
4922
  if (O.value === void 0 || f.value === null)
4923
4923
  return;
4924
- const X = G[O.value.container], ke = Math.min(
4924
+ const Z = X[O.value.container], ke = Math.min(
4925
4925
  f.value[O.value.scroll],
4926
4926
  Array.prototype.reduce.call(
4927
4927
  f.value.children,
4928
4928
  (Be, se) => Be + (se[O.value.content] || 0),
4929
4929
  0
4930
4930
  )
4931
- ), Le = X > 0 && ke > X;
4932
- g.value = Le, Le === !0 && o(V), C.value = X < parseInt(e.breakpoint, 10);
4931
+ ), Le = Z > 0 && ke > Z;
4932
+ g.value = Le, Le === !0 && o(V), C.value = Z < parseInt(e.breakpoint, 10);
4933
4933
  }
4934
- function Pe(G, X) {
4935
- const ke = G != null && G !== "" ? h.find((Be) => Be.name.value === G) : null, Le = X != null && X !== "" ? h.find((Be) => Be.name.value === X) : null;
4934
+ function Pe(X, Z) {
4935
+ const ke = X != null && X !== "" ? h.find((Be) => Be.name.value === X) : null, Le = Z != null && Z !== "" ? h.find((Be) => Be.name.value === Z) : null;
4936
4936
  if (W === !0)
4937
4937
  W = !1;
4938
4938
  else if (ke && Le) {
4939
4939
  const Be = ke.tabIndicatorRef.value, se = Le.tabIndicatorRef.value;
4940
4940
  x !== null && (clearTimeout(x), x = null), Be.style.transition = "none", Be.style.transform = "none", se.style.transition = "none", se.style.transform = "none";
4941
- const be = Be.getBoundingClientRect(), Ke = se.getBoundingClientRect();
4942
- se.style.transform = e.vertical === !0 ? `translate3d(0,${be.top - Ke.top}px,0) scale3d(1,${Ke.height ? be.height / Ke.height : 1},1)` : `translate3d(${be.left - Ke.left}px,0,0) scale3d(${Ke.width ? be.width / Ke.width : 1},1,1)`, l(() => {
4941
+ const ye = Be.getBoundingClientRect(), Ke = se.getBoundingClientRect();
4942
+ se.style.transform = e.vertical === !0 ? `translate3d(0,${ye.top - Ke.top}px,0) scale3d(1,${Ke.height ? ye.height / Ke.height : 1},1)` : `translate3d(${ye.left - Ke.left}px,0,0) scale3d(${Ke.width ? ye.width / Ke.width : 1},1,1)`, l(() => {
4943
4943
  x = setTimeout(() => {
4944
4944
  x = null, se.style.transition = "transform .25s cubic-bezier(.4, 0, .2, 1)", se.style.transform = "none";
4945
4945
  }, 70);
@@ -4947,25 +4947,25 @@ var X_ = ["left", "center", "right", "justify"], Li = Se({
4947
4947
  }
4948
4948
  Le && g.value === !0 && te(Le.rootRef.value);
4949
4949
  }
4950
- function te(G) {
4951
- const { left: X, width: ke, top: Le, height: Be } = f.value.getBoundingClientRect(), se = G.getBoundingClientRect();
4952
- let be = e.vertical === !0 ? se.top - Le : se.left - X;
4953
- if (be < 0) {
4954
- f.value[e.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.floor(be), V();
4950
+ function te(X) {
4951
+ const { left: Z, width: ke, top: Le, height: Be } = f.value.getBoundingClientRect(), se = X.getBoundingClientRect();
4952
+ let ye = e.vertical === !0 ? se.top - Le : se.left - Z;
4953
+ if (ye < 0) {
4954
+ f.value[e.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.floor(ye), V();
4955
4955
  return;
4956
4956
  }
4957
- be += e.vertical === !0 ? se.height - Be : se.width - ke, be > 0 && (f.value[e.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.ceil(be), V());
4957
+ ye += e.vertical === !0 ? se.height - Be : se.width - ke, ye > 0 && (f.value[e.vertical === !0 ? "scrollTop" : "scrollLeft"] += Math.ceil(ye), V());
4958
4958
  }
4959
4959
  function V() {
4960
- const G = f.value;
4961
- if (G === null)
4960
+ const X = f.value;
4961
+ if (X === null)
4962
4962
  return;
4963
- const X = G.getBoundingClientRect(), ke = e.vertical === !0 ? G.scrollTop : Math.abs(G.scrollLeft);
4964
- B.value === !0 ? (p.value = Math.ceil(ke + X.width) < G.scrollWidth - 1, _.value = ke > 0) : (p.value = ke > 0, _.value = e.vertical === !0 ? Math.ceil(ke + X.height) < G.scrollHeight : Math.ceil(ke + X.width) < G.scrollWidth);
4963
+ const Z = X.getBoundingClientRect(), ke = e.vertical === !0 ? X.scrollTop : Math.abs(X.scrollLeft);
4964
+ B.value === !0 ? (p.value = Math.ceil(ke + Z.width) < X.scrollWidth - 1, _.value = ke > 0) : (p.value = ke > 0, _.value = e.vertical === !0 ? Math.ceil(ke + Z.height) < X.scrollHeight : Math.ceil(ke + Z.width) < X.scrollWidth);
4965
4965
  }
4966
- function le(G) {
4966
+ function le(X) {
4967
4967
  A !== null && clearInterval(A), A = setInterval(() => {
4968
- Q(G) === !0 && j();
4968
+ Q(X) === !0 && U();
4969
4969
  }, 5);
4970
4970
  }
4971
4971
  function ie() {
@@ -4974,57 +4974,57 @@ var X_ = ["left", "center", "right", "justify"], Li = Se({
4974
4974
  function Ce() {
4975
4975
  le(K.value === !0 ? 0 : Number.MAX_SAFE_INTEGER);
4976
4976
  }
4977
- function j() {
4977
+ function U() {
4978
4978
  A !== null && (clearInterval(A), A = null);
4979
4979
  }
4980
- function Z(G, X) {
4980
+ function G(X, Z) {
4981
4981
  const ke = Array.prototype.filter.call(
4982
4982
  f.value.children,
4983
- (Ke) => Ke === X || Ke.matches && Ke.matches(".q-tab.q-focusable") === !0
4983
+ (Ke) => Ke === Z || Ke.matches && Ke.matches(".q-tab.q-focusable") === !0
4984
4984
  ), Le = ke.length;
4985
4985
  if (Le === 0)
4986
4986
  return;
4987
- if (G === 36)
4987
+ if (X === 36)
4988
4988
  return te(ke[0]), ke[0].focus(), !0;
4989
- if (G === 35)
4989
+ if (X === 35)
4990
4990
  return te(ke[Le - 1]), ke[Le - 1].focus(), !0;
4991
- const Be = G === (e.vertical === !0 ? 38 : 37), se = G === (e.vertical === !0 ? 40 : 39), be = Be === !0 ? -1 : se === !0 ? 1 : void 0;
4992
- if (be !== void 0) {
4993
- const Ke = B.value === !0 ? -1 : 1, nt = ke.indexOf(X) + be * Ke;
4991
+ const Be = X === (e.vertical === !0 ? 38 : 37), se = X === (e.vertical === !0 ? 40 : 39), ye = Be === !0 ? -1 : se === !0 ? 1 : void 0;
4992
+ if (ye !== void 0) {
4993
+ const Ke = B.value === !0 ? -1 : 1, nt = ke.indexOf(Z) + ye * Ke;
4994
4994
  return nt >= 0 && nt < Le && (te(ke[nt]), ke[nt].focus({ preventScroll: !0 })), !0;
4995
4995
  }
4996
4996
  }
4997
- const U = b(() => K.value === !0 ? { get: (G) => Math.abs(G.scrollLeft), set: (G, X) => {
4998
- G.scrollLeft = -X;
4999
- } } : e.vertical === !0 ? { get: (G) => G.scrollTop, set: (G, X) => {
5000
- G.scrollTop = X;
5001
- } } : { get: (G) => G.scrollLeft, set: (G, X) => {
5002
- G.scrollLeft = X;
4997
+ const j = b(() => K.value === !0 ? { get: (X) => Math.abs(X.scrollLeft), set: (X, Z) => {
4998
+ X.scrollLeft = -Z;
4999
+ } } : e.vertical === !0 ? { get: (X) => X.scrollTop, set: (X, Z) => {
5000
+ X.scrollTop = Z;
5001
+ } } : { get: (X) => X.scrollLeft, set: (X, Z) => {
5002
+ X.scrollLeft = Z;
5003
5003
  } });
5004
- function Q(G) {
5005
- const X = f.value, { get: ke, set: Le } = U.value;
5006
- let Be = !1, se = ke(X);
5007
- const be = G < se ? -1 : 1;
5008
- return se += be * 5, se < 0 ? (Be = !0, se = 0) : (be === -1 && se <= G || be === 1 && se >= G) && (Be = !0, se = G), Le(X, se), V(), Be;
5009
- }
5010
- function Y(G, X) {
5011
- for (const ke in G)
5012
- if (G[ke] !== X[ke])
5004
+ function Q(X) {
5005
+ const Z = f.value, { get: ke, set: Le } = j.value;
5006
+ let Be = !1, se = ke(Z);
5007
+ const ye = X < se ? -1 : 1;
5008
+ return se += ye * 5, se < 0 ? (Be = !0, se = 0) : (ye === -1 && se <= X || ye === 1 && se >= X) && (Be = !0, se = X), Le(Z, se), V(), Be;
5009
+ }
5010
+ function Y(X, Z) {
5011
+ for (const ke in X)
5012
+ if (X[ke] !== Z[ke])
5013
5013
  return !1;
5014
5014
  return !0;
5015
5015
  }
5016
- function ge() {
5017
- let G = null, X = { matchedLen: 0, queryDiff: 9999, hrefLen: 0 };
5018
- const ke = h.filter((be) => be.routeData !== void 0 && be.routeData.hasRouterLink.value === !0), { hash: Le, query: Be } = r.$route, se = Object.keys(Be).length;
5019
- for (const be of ke) {
5020
- const Ke = be.routeData.exact.value === !0;
5021
- if (be.routeData[Ke === !0 ? "linkIsExactActive" : "linkIsActive"].value !== !0)
5016
+ function be() {
5017
+ let X = null, Z = { matchedLen: 0, queryDiff: 9999, hrefLen: 0 };
5018
+ const ke = h.filter((ye) => ye.routeData !== void 0 && ye.routeData.hasRouterLink.value === !0), { hash: Le, query: Be } = r.$route, se = Object.keys(Be).length;
5019
+ for (const ye of ke) {
5020
+ const Ke = ye.routeData.exact.value === !0;
5021
+ if (ye.routeData[Ke === !0 ? "linkIsExactActive" : "linkIsActive"].value !== !0)
5022
5022
  continue;
5023
- const { hash: nt, query: me, matched: Oe, href: de } = be.routeData.resolvedLink.value, Ee = Object.keys(me).length;
5023
+ const { hash: nt, query: me, matched: Oe, href: de } = ye.routeData.resolvedLink.value, Ee = Object.keys(me).length;
5024
5024
  if (Ke === !0) {
5025
5025
  if (nt !== Le || Ee !== se || Y(Be, me) === !1)
5026
5026
  continue;
5027
- G = be.name.value;
5027
+ X = ye.name.value;
5028
5028
  break;
5029
5029
  }
5030
5030
  if (nt !== "" && nt !== Le || Ee !== 0 && Y(me, Be) === !1)
@@ -5034,55 +5034,55 @@ var X_ = ["left", "center", "right", "justify"], Li = Se({
5034
5034
  queryDiff: se - Ee,
5035
5035
  hrefLen: de.length - nt.length
5036
5036
  };
5037
- if (je.matchedLen > X.matchedLen) {
5038
- G = be.name.value, X = je;
5037
+ if (je.matchedLen > Z.matchedLen) {
5038
+ X = ye.name.value, Z = je;
5039
5039
  continue;
5040
- } else if (je.matchedLen !== X.matchedLen)
5040
+ } else if (je.matchedLen !== Z.matchedLen)
5041
5041
  continue;
5042
- if (je.queryDiff < X.queryDiff)
5043
- G = be.name.value, X = je;
5044
- else if (je.queryDiff !== X.queryDiff)
5042
+ if (je.queryDiff < Z.queryDiff)
5043
+ X = ye.name.value, Z = je;
5044
+ else if (je.queryDiff !== Z.queryDiff)
5045
5045
  continue;
5046
- je.hrefLen > X.hrefLen && (G = be.name.value, X = je);
5046
+ je.hrefLen > Z.hrefLen && (X = ye.name.value, Z = je);
5047
5047
  }
5048
- if (G === null && h.some((be) => be.routeData === void 0 && be.name.value === m.value) === !0) {
5048
+ if (X === null && h.some((ye) => ye.routeData === void 0 && ye.name.value === m.value) === !0) {
5049
5049
  W = !1;
5050
5050
  return;
5051
5051
  }
5052
- ee({ name: G, setCurrent: !0 });
5052
+ ee({ name: X, setCurrent: !0 });
5053
5053
  }
5054
- function re(G) {
5055
- if (c(), k.value !== !0 && v.value !== null && G.target && typeof G.target.closest == "function") {
5056
- const X = G.target.closest(".q-tab");
5057
- X && v.value.contains(X) === !0 && (k.value = !0, g.value === !0 && te(X));
5054
+ function re(X) {
5055
+ if (c(), k.value !== !0 && v.value !== null && X.target && typeof X.target.closest == "function") {
5056
+ const Z = X.target.closest(".q-tab");
5057
+ Z && v.value.contains(Z) === !0 && (k.value = !0, g.value === !0 && te(Z));
5058
5058
  }
5059
5059
  }
5060
- function ye() {
5060
+ function ge() {
5061
5061
  s(() => {
5062
5062
  k.value = !1;
5063
5063
  }, 30);
5064
5064
  }
5065
5065
  function ue() {
5066
- Ze.avoidRouteWatcher === !1 ? u(ge) : d();
5066
+ Ze.avoidRouteWatcher === !1 ? u(be) : d();
5067
5067
  }
5068
5068
  function Ie() {
5069
5069
  if ($ === void 0) {
5070
- const G = pe(() => r.$route.fullPath, ue);
5070
+ const X = pe(() => r.$route.fullPath, ue);
5071
5071
  $ = () => {
5072
- G(), $ = void 0;
5072
+ X(), $ = void 0;
5073
5073
  };
5074
5074
  }
5075
5075
  }
5076
- function Xe(G) {
5077
- h.push(G), y.value++, oe(), G.routeData === void 0 || r.$route === void 0 ? u(() => {
5076
+ function Xe(X) {
5077
+ h.push(X), y.value++, oe(), X.routeData === void 0 || r.$route === void 0 ? u(() => {
5078
5078
  if (g.value === !0) {
5079
- const X = m.value, ke = X != null && X !== "" ? h.find((Le) => Le.name.value === X) : null;
5079
+ const Z = m.value, ke = Z != null && Z !== "" ? h.find((Le) => Le.name.value === Z) : null;
5080
5080
  ke && te(ke.rootRef.value);
5081
5081
  }
5082
- }) : (Ie(), G.routeData.hasRouterLink.value === !0 && ue());
5082
+ }) : (Ie(), X.routeData.hasRouterLink.value === !0 && ue());
5083
5083
  }
5084
- function $e(G) {
5085
- h.splice(h.indexOf(G), 1), y.value--, oe(), $ !== void 0 && G.routeData !== void 0 && (h.every((X) => X.routeData === void 0) === !0 && $(), ue());
5084
+ function $e(X) {
5085
+ h.splice(h.indexOf(X), 1), y.value--, oe(), $ !== void 0 && X.routeData !== void 0 && (h.every((Z) => Z.routeData === void 0) === !0 && $(), ue());
5086
5086
  }
5087
5087
  const Ze = {
5088
5088
  currentModel: m,
@@ -5093,13 +5093,13 @@ var X_ = ["left", "center", "right", "justify"], Li = Se({
5093
5093
  unregisterTab: $e,
5094
5094
  verifyRouteModel: ue,
5095
5095
  updateModel: ee,
5096
- onKbdNavigate: Z,
5096
+ onKbdNavigate: G,
5097
5097
  avoidRouteWatcher: !1
5098
5098
  // false | string (uid)
5099
5099
  };
5100
5100
  _a(np, Ze);
5101
5101
  function ot() {
5102
- x !== null && clearTimeout(x), j(), $ !== void 0 && $();
5102
+ x !== null && clearTimeout(x), U(), $ !== void 0 && $();
5103
5103
  }
5104
5104
  let H, W;
5105
5105
  return bt(ot), Hr(() => {
@@ -5111,7 +5111,7 @@ var X_ = ["left", "center", "right", "justify"], Li = Se({
5111
5111
  class: P.value,
5112
5112
  role: "tablist",
5113
5113
  onFocusin: re,
5114
- onFocusout: ye
5114
+ onFocusout: ge
5115
5115
  }, [
5116
5116
  w(Ha, { onResize: ce }),
5117
5117
  w("div", {
@@ -5124,18 +5124,18 @@ var X_ = ["left", "center", "right", "justify"], Li = Se({
5124
5124
  name: e.leftIcon || a.iconSet.tabs[e.vertical === !0 ? "up" : "left"],
5125
5125
  onMousedownPassive: ie,
5126
5126
  onTouchstartPassive: ie,
5127
- onMouseupPassive: j,
5128
- onMouseleavePassive: j,
5129
- onTouchendPassive: j
5127
+ onMouseupPassive: U,
5128
+ onMouseleavePassive: U,
5129
+ onTouchendPassive: U
5130
5130
  }),
5131
5131
  w(mt, {
5132
5132
  class: "q-tabs__arrow q-tabs__arrow--right absolute q-tab__icon" + (_.value === !0 ? "" : " q-tabs__arrow--faded"),
5133
5133
  name: e.rightIcon || a.iconSet.tabs[e.vertical === !0 ? "down" : "right"],
5134
5134
  onMousedownPassive: Ce,
5135
5135
  onTouchstartPassive: Ce,
5136
- onMouseupPassive: j,
5137
- onMouseleavePassive: j,
5138
- onTouchendPassive: j
5136
+ onMouseupPassive: U,
5137
+ onMouseleavePassive: U,
5138
+ onTouchendPassive: U
5139
5139
  })
5140
5140
  ]);
5141
5141
  }
@@ -5562,21 +5562,21 @@ Se({
5562
5562
  { prevent: !0, stop: !0, mouse: !0 }
5563
5563
  ]]);
5564
5564
  pe(() => e.modelValue, (re) => {
5565
- const ye = P(re || e.defaultValue);
5566
- ye.hex !== v.value.hex && (v.value = ye);
5565
+ const ge = P(re || e.defaultValue);
5566
+ ge.hex !== v.value.hex && (v.value = ge);
5567
5567
  }), pe(() => e.defaultValue, (re) => {
5568
5568
  if (!e.modelValue && re) {
5569
- const ye = P(re);
5570
- ye.hex !== v.value.hex && (v.value = ye);
5569
+ const ge = P(re);
5570
+ ge.hex !== v.value.hex && (v.value = ge);
5571
5571
  }
5572
5572
  });
5573
- function M(re, ye) {
5573
+ function M(re, ge) {
5574
5574
  v.value.hex = rv(re), v.value.rgb = av(re), v.value.r = re.r, v.value.g = re.g, v.value.b = re.b, v.value.a = re.a;
5575
5575
  const ue = v.value[g.value === !0 ? "hex" : "rgb"];
5576
- t("update:modelValue", ue), ye === !0 && t("change", ue);
5576
+ t("update:modelValue", ue), ge === !0 && t("change", ue);
5577
5577
  }
5578
5578
  function P(re) {
5579
- const ye = c.value !== void 0 ? c.value : e.formatModel === "auto" ? null : e.formatModel.indexOf("a") !== -1;
5579
+ const ge = c.value !== void 0 ? c.value : e.formatModel === "auto" ? null : e.formatModel.indexOf("a") !== -1;
5580
5580
  if (typeof re != "string" || re.length === 0 || Cl.anyColor(re.replace(/ /g, "")) !== !0)
5581
5581
  return {
5582
5582
  h: 0,
@@ -5585,41 +5585,41 @@ Se({
5585
5585
  r: 0,
5586
5586
  g: 0,
5587
5587
  b: 0,
5588
- a: ye === !0 ? 100 : void 0,
5588
+ a: ge === !0 ? 100 : void 0,
5589
5589
  hex: void 0,
5590
5590
  rgb: void 0
5591
5591
  };
5592
5592
  const ue = Yp(re);
5593
- return ye === !0 && ue.a === void 0 && (ue.a = 100), ue.hex = rv(ue), ue.rgb = av(ue), Object.assign(ue, Qs(ue));
5593
+ return ge === !0 && ue.a === void 0 && (ue.a = 100), ue.hex = rv(ue), ue.rgb = av(ue), Object.assign(ue, Qs(ue));
5594
5594
  }
5595
- function D(re, ye, ue) {
5595
+ function D(re, ge, ue) {
5596
5596
  const Ie = o.value;
5597
5597
  if (Ie === null)
5598
5598
  return;
5599
5599
  const Xe = Ie.clientWidth, $e = Ie.clientHeight, Ze = Ie.getBoundingClientRect();
5600
5600
  let ot = Math.min(Xe, Math.max(0, re - Ze.left));
5601
5601
  r.lang.rtl === !0 && (ot = Xe - ot);
5602
- const H = Math.min($e, Math.max(0, ye - Ze.top)), W = Math.round(100 * ot / Xe), G = Math.round(100 * Math.max(0, Math.min(1, -(H / $e) + 1))), X = iv({
5602
+ const H = Math.min($e, Math.max(0, ge - Ze.top)), W = Math.round(100 * ot / Xe), X = Math.round(100 * Math.max(0, Math.min(1, -(H / $e) + 1))), Z = iv({
5603
5603
  h: v.value.h,
5604
5604
  s: W,
5605
- v: G,
5605
+ v: X,
5606
5606
  a: C.value === !0 ? v.value.a : void 0
5607
5607
  });
5608
- v.value.s = W, v.value.v = G, M(X, ue);
5608
+ v.value.s = W, v.value.v = X, M(Z, ue);
5609
5609
  }
5610
- function O(re, ye) {
5610
+ function O(re, ge) {
5611
5611
  const ue = Math.round(re), Ie = iv({
5612
5612
  h: ue,
5613
5613
  s: v.value.s,
5614
5614
  v: v.value.v,
5615
5615
  a: C.value === !0 ? v.value.a : void 0
5616
5616
  });
5617
- v.value.h = ue, M(Ie, ye);
5617
+ v.value.h = ue, M(Ie, ge);
5618
5618
  }
5619
5619
  function B(re) {
5620
5620
  O(re, !0);
5621
5621
  }
5622
- function K(re, ye, ue, Ie, Xe) {
5622
+ function K(re, ge, ue, Ie, Xe) {
5623
5623
  if (Ie !== void 0 && en(Ie), !/^[0-9]+$/.test(re)) {
5624
5624
  Xe === !0 && n.$forceUpdate();
5625
5625
  return;
@@ -5630,12 +5630,12 @@ Se({
5630
5630
  return;
5631
5631
  }
5632
5632
  const Ze = {
5633
- r: ye === "r" ? $e : v.value.r,
5634
- g: ye === "g" ? $e : v.value.g,
5635
- b: ye === "b" ? $e : v.value.b,
5636
- a: C.value === !0 ? ye === "a" ? $e : v.value.a : void 0
5633
+ r: ge === "r" ? $e : v.value.r,
5634
+ g: ge === "g" ? $e : v.value.g,
5635
+ b: ge === "b" ? $e : v.value.b,
5636
+ a: C.value === !0 ? ge === "a" ? $e : v.value.a : void 0
5637
5637
  };
5638
- if (ye !== "a") {
5638
+ if (ge !== "a") {
5639
5639
  const ot = Qs(Ze);
5640
5640
  v.value.h = ot.h, v.value.s = ot.s, v.value.v = ot.v;
5641
5641
  }
@@ -5646,7 +5646,7 @@ Se({
5646
5646
  });
5647
5647
  }
5648
5648
  }
5649
- function ee(re, ye) {
5649
+ function ee(re, ge) {
5650
5650
  let ue;
5651
5651
  const Ie = re.target.value;
5652
5652
  if (en(re), u.value === "hex") {
@@ -5686,7 +5686,7 @@ Se({
5686
5686
  };
5687
5687
  }
5688
5688
  const Xe = Qs(ue);
5689
- if (v.value.h = Xe.h, v.value.s = Xe.s, v.value.v = Xe.v, M(ue, ye), ye !== !0) {
5689
+ if (v.value.h = Xe.h, v.value.s = Xe.s, v.value.v = Xe.v, M(ue, ge), ge !== !0) {
5690
5690
  const $e = re.target.selectionEnd;
5691
5691
  ht(() => {
5692
5692
  re.target.setSelectionRange($e, $e);
@@ -5694,8 +5694,8 @@ Se({
5694
5694
  }
5695
5695
  }
5696
5696
  function oe(re) {
5697
- const ye = P(re), ue = { r: ye.r, g: ye.g, b: ye.b, a: ye.a };
5698
- ue.a === void 0 && (ue.a = v.value.a), v.value.h = ye.h, v.value.s = ye.s, v.value.v = ye.v, M(ue, !0);
5697
+ const ge = P(re), ue = { r: ge.r, g: ge.g, b: ge.b, a: ge.a };
5698
+ ue.a === void 0 && (ue.a = v.value.a), v.value.h = ge.h, v.value.s = ge.s, v.value.v = ge.v, M(ue, !0);
5699
5699
  }
5700
5700
  function ce(re) {
5701
5701
  re.isFinal ? D(
@@ -5759,12 +5759,12 @@ Se({
5759
5759
  value: v.value[u.value],
5760
5760
  ...f.value !== !0 ? { readonly: !0 } : {},
5761
5761
  ...i("topIn", {
5762
- onInput: (ye) => {
5763
- le(ee(ye) === !0);
5762
+ onInput: (ge) => {
5763
+ le(ee(ge) === !0);
5764
5764
  },
5765
5765
  onChange: en,
5766
- onBlur: (ye) => {
5767
- ee(ye, !0) === !0 && n.$forceUpdate(), le(!1);
5766
+ onBlur: (ge) => {
5767
+ ee(ge, !0) === !0 && n.$forceUpdate(), le(!1);
5768
5768
  }
5769
5769
  })
5770
5770
  }),
@@ -5784,7 +5784,7 @@ Se({
5784
5784
  }, re)
5785
5785
  ]);
5786
5786
  }
5787
- function j() {
5787
+ function U() {
5788
5788
  return w(Qo, {
5789
5789
  modelValue: d.value,
5790
5790
  animated: !0
@@ -5800,13 +5800,13 @@ Se({
5800
5800
  w(Rn, {
5801
5801
  class: "q-color-picker__palette-tab",
5802
5802
  name: "palette"
5803
- }, ge)
5803
+ }, be)
5804
5804
  ]);
5805
5805
  }
5806
- function Z(re) {
5806
+ function G(re) {
5807
5807
  d.value = re;
5808
5808
  }
5809
- function U() {
5809
+ function j() {
5810
5810
  return w("div", {
5811
5811
  class: "q-color-picker__footer relative-position overflow-hidden"
5812
5812
  }, [
@@ -5815,7 +5815,7 @@ Se({
5815
5815
  modelValue: d.value,
5816
5816
  dense: !0,
5817
5817
  align: "justify",
5818
- "onUpdate:modelValue": Z
5818
+ "onUpdate:modelValue": G
5819
5819
  }, () => [
5820
5820
  w(Bn, {
5821
5821
  icon: r.iconSet.colorPicker.spectrum,
@@ -5844,7 +5844,7 @@ Se({
5844
5844
  onClick: te,
5845
5845
  onMousedown: V
5846
5846
  } : {}
5847
- }, ye = [
5847
+ }, ge = [
5848
5848
  w("div", { style: { paddingBottom: "100%" } }),
5849
5849
  w("div", { class: "q-color-picker__spectrum-white absolute-full" }),
5850
5850
  w("div", { class: "q-color-picker__spectrum-black absolute-full" }),
@@ -5889,7 +5889,7 @@ Se({
5889
5889
  })
5890
5890
  })
5891
5891
  ), [
5892
- sr("div", re, ye, "spec", f.value, () => E.value),
5892
+ sr("div", re, ge, "spec", f.value, () => E.value),
5893
5893
  w("div", { class: "q-color-picker__sliders" }, ue)
5894
5894
  ];
5895
5895
  }
@@ -5995,13 +5995,13 @@ Se({
5995
5995
  ]) : null
5996
5996
  ];
5997
5997
  }
5998
- function ge() {
5999
- const re = (ye) => w("div", {
5998
+ function be() {
5999
+ const re = (ge) => w("div", {
6000
6000
  class: "q-color-picker__cube col-auto",
6001
- style: { backgroundColor: ye },
6002
- ...f.value === !0 ? i("palette#" + ye, {
6001
+ style: { backgroundColor: ge },
6002
+ ...f.value === !0 ? i("palette#" + ge, {
6003
6003
  onClick: () => {
6004
- oe(ye);
6004
+ oe(ge);
6005
6005
  }
6006
6006
  }) : {}
6007
6007
  });
@@ -6012,11 +6012,11 @@ Se({
6012
6012
  ];
6013
6013
  }
6014
6014
  return () => {
6015
- const re = [j()];
6015
+ const re = [U()];
6016
6016
  return e.name !== void 0 && e.disable !== !0 && _(re, "push"), e.noHeader !== !0 && re.unshift(
6017
6017
  Ce()
6018
6018
  ), e.noFooter !== !0 && re.push(
6019
- U()
6019
+ j()
6020
6020
  ), w("div", {
6021
6021
  class: $.value,
6022
6022
  ...I.value
@@ -6660,7 +6660,7 @@ var Mi = Se({
6660
6660
  setup(e, { slots: t, emit: n }) {
6661
6661
  const { proxy: r } = De(), { $q: a } = r, i = Et(e, a), { getCache: o } = Ho(), { tabindex: l, headerClass: s, getLocale: c, getCurrentDate: u } = Zp(e, a);
6662
6662
  let d;
6663
- const v = zo(e), f = Sa(v), m = R(null), g = R(be()), p = R(c()), _ = b(() => be()), C = b(() => c()), h = b(() => u()), y = R(nt(g.value, p.value)), k = R(e.defaultView), x = b(() => a.lang.rtl === !0 ? "right" : "left"), A = R(x.value), $ = R(x.value), I = y.value.year, E = R(I - I % Ea - (I < 0 ? Ea : 0)), M = R(null), P = b(() => {
6663
+ const v = zo(e), f = Sa(v), m = R(null), g = R(ye()), p = R(c()), _ = b(() => ye()), C = b(() => c()), h = b(() => u()), y = R(nt(g.value, p.value)), k = R(e.defaultView), x = b(() => a.lang.rtl === !0 ? "right" : "left"), A = R(x.value), $ = R(x.value), I = y.value.year, E = R(I - I % Ea - (I < 0 ? Ea : 0)), M = R(null), P = b(() => {
6664
6664
  const z = e.landscape === !0 ? "landscape" : "portrait";
6665
6665
  return `q-date q-date--${z} q-date--${z}-${e.minimal === !0 ? "minimal" : "standard"}` + (i.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" : "");
6666
6666
  }), D = b(() => e.color || "primary"), O = b(() => e.textColor || "white"), B = b(
@@ -6720,16 +6720,16 @@ var Mi = Se({
6720
6720
  return he[z.month - 1] + (z.year !== ae.year ? " " + z.year + ci + he[ae.month - 1] + " " : z.month !== ae.month ? ci + he[ae.month - 1] : "") + " " + ae.year;
6721
6721
  }
6722
6722
  return ee.value[0].year;
6723
- }), j = b(() => {
6723
+ }), U = b(() => {
6724
6724
  const z = [a.iconSet.datetime.arrowLeft, a.iconSet.datetime.arrowRight];
6725
6725
  return a.lang.rtl === !0 ? z.reverse() : z;
6726
- }), Z = b(() => e.firstDayOfWeek !== void 0 ? Number(e.firstDayOfWeek) : p.value.firstDayOfWeek), U = b(() => {
6727
- const z = p.value.daysShort, ae = Z.value;
6726
+ }), G = b(() => e.firstDayOfWeek !== void 0 ? Number(e.firstDayOfWeek) : p.value.firstDayOfWeek), j = b(() => {
6727
+ const z = p.value.daysShort, ae = G.value;
6728
6728
  return ae > 0 ? z.slice(ae, 7).concat(z.slice(0, ae)) : z;
6729
6729
  }), Q = b(() => {
6730
6730
  const z = y.value;
6731
6731
  return e.calendar !== "persian" ? new Date(z.year, z.month, 0).getDate() : Tl(z.year, z.month);
6732
- }), Y = b(() => typeof e.eventColor == "function" ? e.eventColor : () => e.eventColor), ge = b(() => {
6732
+ }), Y = b(() => typeof e.eventColor == "function" ? e.eventColor : () => e.eventColor), be = b(() => {
6733
6733
  if (e.navigationMinYearMonth === void 0)
6734
6734
  return null;
6735
6735
  const z = e.navigationMinYearMonth.split("/");
@@ -6739,12 +6739,12 @@ var Mi = Se({
6739
6739
  return null;
6740
6740
  const z = e.navigationMaxYearMonth.split("/");
6741
6741
  return { year: parseInt(z[0], 10), month: parseInt(z[1], 10) };
6742
- }), ye = b(() => {
6742
+ }), ge = b(() => {
6743
6743
  const z = {
6744
6744
  month: { prev: !0, next: !0 },
6745
6745
  year: { prev: !0, next: !0 }
6746
6746
  };
6747
- return ge.value !== null && ge.value.year >= y.value.year && (z.year.prev = !1, ge.value.year === y.value.year && ge.value.month >= y.value.month && (z.month.prev = !1)), re.value !== null && re.value.year <= y.value.year && (z.year.next = !1, re.value.year === y.value.year && re.value.month <= y.value.month && (z.month.next = !1)), z;
6747
+ return be.value !== null && be.value.year >= y.value.year && (z.year.prev = !1, be.value.year === y.value.year && be.value.month >= y.value.month && (z.month.prev = !1)), re.value !== null && re.value.year <= y.value.year && (z.year.next = !1, re.value.year === y.value.year && re.value.month <= y.value.month && (z.month.next = !1)), z;
6748
6748
  }), ue = b(() => {
6749
6749
  const z = {};
6750
6750
  return ee.value.forEach((ae) => {
@@ -6816,7 +6816,7 @@ var Mi = Se({
6816
6816
  xt === 0 && (xt = 12, tt--), ae = Tl(tt, xt);
6817
6817
  }
6818
6818
  return {
6819
- days: z.getDay() - Z.value - 1,
6819
+ days: z.getDay() - G.value - 1,
6820
6820
  endDay: ae
6821
6821
  };
6822
6822
  }), W = b(() => {
@@ -6895,7 +6895,7 @@ var Mi = Se({
6895
6895
  let dt = "q-date__calendar-item ";
6896
6896
  tt.fill === !0 ? dt += "q-date__calendar-item--fill" : (dt += `q-date__calendar-item--${tt.in === !0 ? "in" : "out"}`, tt.range !== void 0 && (dt += ` q-date__range${tt.rangeTo === !0 ? "-to" : tt.rangeFrom === !0 ? "-from" : ""}`), tt.editRange === !0 && (dt += ` q-date__edit-range${tt.editRangeFrom === !0 ? "-from" : ""}${tt.editRangeTo === !0 ? "-to" : ""}`), (tt.range !== void 0 || tt.editRange === !0) && (dt += ` text-${tt.color}`)), tt.classes = dt;
6897
6897
  }), z;
6898
- }), G = b(() => e.disable === !0 ? { "aria-disabled": "true" } : {});
6898
+ }), X = b(() => e.disable === !0 ? { "aria-disabled": "true" } : {});
6899
6899
  pe(() => e.modelValue, (z) => {
6900
6900
  if (d === z)
6901
6901
  d = 0;
@@ -6912,7 +6912,7 @@ var Mi = Se({
6912
6912
  }), pe(C, (z) => {
6913
6913
  _e(g.value, z, "locale"), p.value = z;
6914
6914
  });
6915
- function X() {
6915
+ function Z() {
6916
6916
  const { year: z, month: ae, day: he } = h.value, Me = {
6917
6917
  // contains more props than needed (hour, minute, second, millisecond)
6918
6918
  // but those aren't used in the processing of this "date" variable
@@ -6946,7 +6946,7 @@ var Mi = Se({
6946
6946
  finalHash: Rr(Me)
6947
6947
  }, Be(he.year, he.month);
6948
6948
  }
6949
- function be() {
6949
+ function ye() {
6950
6950
  return e.calendar === "persian" ? "YYYY/MM/DD" : e.mask;
6951
6951
  }
6952
6952
  function Ke(z, ae, he) {
@@ -7016,7 +7016,7 @@ var Mi = Se({
7016
7016
  return { year: z.year, month: z.month, day: z.day };
7017
7017
  }
7018
7018
  function gt(z, ae, he) {
7019
- if (ge.value !== null && z <= ge.value.year && ((ae < ge.value.month || z < ge.value.year) && (ae = ge.value.month), z = ge.value.year), re.value !== null && z >= re.value.year && ((ae > re.value.month || z > re.value.year) && (ae = re.value.month), z = re.value.year), he !== void 0) {
7019
+ if (be.value !== null && z <= be.value.year && ((ae < be.value.month || z < be.value.year) && (ae = be.value.month), z = be.value.year), re.value !== null && z >= re.value.year && ((ae > re.value.month || z > re.value.year) && (ae = re.value.month), z = re.value.year), he !== void 0) {
7020
7020
  const { hour: Ve, minute: xt, second: tt, millisecond: dt, timezoneOffset: Dt, timeHash: Xn } = he;
7021
7021
  Object.assign(y.value, { hour: Ve, minute: xt, second: tt, millisecond: dt, timezoneOffset: Dt, timeHash: Xn });
7022
7022
  }
@@ -7147,7 +7147,7 @@ var Mi = Se({
7147
7147
  size: "sm",
7148
7148
  round: !0,
7149
7149
  tabindex: l.value,
7150
- onClick: X
7150
+ onClick: Z
7151
7151
  }) : null
7152
7152
  ])
7153
7153
  ]);
@@ -7162,7 +7162,7 @@ var Mi = Se({
7162
7162
  dense: !0,
7163
7163
  size: "sm",
7164
7164
  flat: !0,
7165
- icon: j.value[0],
7165
+ icon: U.value[0],
7166
7166
  tabindex: l.value,
7167
7167
  disable: xt.prev === !1,
7168
7168
  ...o("go-#" + ae, { onClick() {
@@ -7196,7 +7196,7 @@ var Mi = Se({
7196
7196
  dense: !0,
7197
7197
  size: "sm",
7198
7198
  flat: !0,
7199
- icon: j.value[1],
7199
+ icon: U.value[1],
7200
7200
  tabindex: l.value,
7201
7201
  disable: xt.next === !1,
7202
7202
  ...o("go+#" + ae, { onClick() {
@@ -7220,7 +7220,7 @@ var Mi = Se({
7220
7220
  key: y.value.month,
7221
7221
  dir: A.value,
7222
7222
  goTo: Oe,
7223
- boundaries: ye.value.month,
7223
+ boundaries: ge.value.month,
7224
7224
  cls: " col"
7225
7225
  }).concat(et({
7226
7226
  label: y.value.year,
@@ -7228,12 +7228,12 @@ var Mi = Se({
7228
7228
  key: y.value.year,
7229
7229
  dir: $.value,
7230
7230
  goTo: de,
7231
- boundaries: ye.value.year,
7231
+ boundaries: ge.value.year,
7232
7232
  cls: ""
7233
7233
  }))),
7234
7234
  w("div", {
7235
7235
  class: "q-date__calendar-weekdays row items-center no-wrap"
7236
- }, U.value.map((z) => w("div", { class: "q-date__calendar-item" }, [w("div", z)]))),
7236
+ }, j.value.map((z) => w("div", { class: "q-date__calendar-item" }, [w("div", z)]))),
7237
7237
  w("div", {
7238
7238
  class: "q-date__calendar-days-container relative-position overflow-hidden"
7239
7239
  }, [
@@ -7270,7 +7270,7 @@ var Mi = Se({
7270
7270
  ])
7271
7271
  ],
7272
7272
  Months() {
7273
- const z = y.value.year === h.value.year, ae = (Me) => ge.value !== null && y.value.year === ge.value.year && ge.value.month > Me || re.value !== null && y.value.year === re.value.year && re.value.month < Me, he = p.value.monthsShort.map((Me, Ve) => {
7273
+ const z = y.value.year === h.value.year, ae = (Me) => be.value !== null && y.value.year === be.value.year && be.value.month > Me || re.value !== null && y.value.year === re.value.year && re.value.month < Me, he = p.value.monthsShort.map((Me, Ve) => {
7274
7274
  const xt = y.value.month === Ve + 1;
7275
7275
  return w("div", {
7276
7276
  class: "q-date__months-item flex flex-center"
@@ -7298,7 +7298,7 @@ var Mi = Se({
7298
7298
  key: y.value.year,
7299
7299
  dir: $.value,
7300
7300
  goTo: de,
7301
- boundaries: ye.value.year,
7301
+ boundaries: ge.value.year,
7302
7302
  cls: " col"
7303
7303
  })
7304
7304
  ])
@@ -7308,7 +7308,7 @@ var Mi = Se({
7308
7308
  }, he);
7309
7309
  },
7310
7310
  Years() {
7311
- const z = E.value, ae = z + Ea, he = [], Me = (Ve) => ge.value !== null && ge.value.year > Ve || re.value !== null && re.value.year < Ve;
7311
+ const z = E.value, ae = z + Ea, he = [], Me = (Ve) => be.value !== null && be.value.year > Ve || re.value !== null && re.value.year < Ve;
7312
7312
  for (let Ve = z; Ve <= ae; Ve++) {
7313
7313
  const xt = y.value.year === Ve;
7314
7314
  he.push(
@@ -7343,7 +7343,7 @@ var Mi = Se({
7343
7343
  round: !0,
7344
7344
  dense: !0,
7345
7345
  flat: !0,
7346
- icon: j.value[0],
7346
+ icon: U.value[0],
7347
7347
  tabindex: l.value,
7348
7348
  disable: Me(z),
7349
7349
  ...o("y-", { onClick: () => {
@@ -7361,7 +7361,7 @@ var Mi = Se({
7361
7361
  round: !0,
7362
7362
  dense: !0,
7363
7363
  flat: !0,
7364
- icon: j.value[1],
7364
+ icon: U.value[1],
7365
7365
  tabindex: l.value,
7366
7366
  disable: Me(ae),
7367
7367
  ...o("y+", { onClick: () => {
@@ -7413,7 +7413,7 @@ var Mi = Se({
7413
7413
  }
7414
7414
  }
7415
7415
  return Object.assign(r, {
7416
- setToday: X,
7416
+ setToday: Z,
7417
7417
  setView: ke,
7418
7418
  offsetCalendar: Le,
7419
7419
  setCalendarTo: Be,
@@ -7432,7 +7432,7 @@ var Mi = Se({
7432
7432
  w("div", { class: "q-date__actions" }, ae)
7433
7433
  ), e.name !== void 0 && e.disable !== !0 && f(z, "push"), w("div", {
7434
7434
  class: P.value,
7435
- ...G.value
7435
+ ...X.value
7436
7436
  }, [
7437
7437
  Fe(),
7438
7438
  w("div", {
@@ -7592,78 +7592,78 @@ var ll = 0, gw = {
7592
7592
  `q-dialog fullscreen no-pointer-events q-dialog--${P.value === !0 ? "modal" : "seamless"}`,
7593
7593
  r.class
7594
7594
  ]);
7595
- pe(() => e.maximized, (j) => {
7596
- o.value === !0 && te(j);
7597
- }), pe(P, (j) => {
7598
- f(j), j === !0 ? (Ip(ie), Ep(ce)) : (Hu(ie), Fl(ce));
7595
+ pe(() => e.maximized, (U) => {
7596
+ o.value === !0 && te(U);
7597
+ }), pe(P, (U) => {
7598
+ f(U), U === !0 ? (Ip(ie), Ep(ce)) : (Hu(ie), Fl(ce));
7599
7599
  });
7600
- function B(j) {
7600
+ function B(U) {
7601
7601
  I(), c = e.noRefocus === !1 && document.activeElement !== null ? document.activeElement : null, te(e.maximized), y(), l.value = !0, e.noFocus !== !0 ? (document.activeElement !== null && document.activeElement.blur(), g(ee)) : p(), m(() => {
7602
7602
  if (a.proxy.$q.platform.is.ios === !0) {
7603
7603
  if (e.seamless !== !0 && document.activeElement) {
7604
- const { top: Z, bottom: U } = document.activeElement.getBoundingClientRect(), { innerHeight: Q } = window, Y = window.visualViewport !== void 0 ? window.visualViewport.height : Q;
7605
- Z > 0 && U > Y / 2 && (document.scrollingElement.scrollTop = Math.min(
7604
+ const { top: G, bottom: j } = document.activeElement.getBoundingClientRect(), { innerHeight: Q } = window, Y = window.visualViewport !== void 0 ? window.visualViewport.height : Q;
7605
+ G > 0 && j > Y / 2 && (document.scrollingElement.scrollTop = Math.min(
7606
7606
  document.scrollingElement.scrollHeight - Y,
7607
- U >= Q ? 1 / 0 : Math.ceil(document.scrollingElement.scrollTop + U - Y / 2)
7607
+ j >= Q ? 1 / 0 : Math.ceil(document.scrollingElement.scrollTop + j - Y / 2)
7608
7608
  )), document.activeElement.scrollIntoView();
7609
7609
  }
7610
7610
  d = !0, i.value.click(), d = !1;
7611
7611
  }
7612
- y(!0), l.value = !1, n("show", j);
7612
+ y(!0), l.value = !1, n("show", U);
7613
7613
  }, e.transitionDuration);
7614
7614
  }
7615
- function K(j) {
7616
- p(), E(), Pe(!0), l.value = !0, k(), c !== null && (((j && j.type.indexOf("key") === 0 ? c.closest('[tabindex]:not([tabindex^="-"])') : void 0) || c).focus(), c = null), m(() => {
7617
- k(!0), l.value = !1, n("hide", j);
7615
+ function K(U) {
7616
+ p(), E(), Pe(!0), l.value = !0, k(), c !== null && (((U && U.type.indexOf("key") === 0 ? c.closest('[tabindex]:not([tabindex^="-"])') : void 0) || c).focus(), c = null), m(() => {
7617
+ k(!0), l.value = !1, n("hide", U);
7618
7618
  }, e.transitionDuration);
7619
7619
  }
7620
- function ee(j) {
7620
+ function ee(U) {
7621
7621
  Ji(() => {
7622
- let Z = i.value;
7623
- if (Z !== null) {
7624
- if (j !== void 0) {
7625
- const U = Z.querySelector(j);
7626
- if (U !== null) {
7627
- U.focus({ preventScroll: !0 });
7622
+ let G = i.value;
7623
+ if (G !== null) {
7624
+ if (U !== void 0) {
7625
+ const j = G.querySelector(U);
7626
+ if (j !== null) {
7627
+ j.focus({ preventScroll: !0 });
7628
7628
  return;
7629
7629
  }
7630
7630
  }
7631
- Z.contains(document.activeElement) !== !0 && (Z = Z.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || Z.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || Z.querySelector("[autofocus], [data-autofocus]") || Z, Z.focus({ preventScroll: !0 }));
7631
+ G.contains(document.activeElement) !== !0 && (G = G.querySelector("[autofocus][tabindex], [data-autofocus][tabindex]") || G.querySelector("[autofocus] [tabindex], [data-autofocus] [tabindex]") || G.querySelector("[autofocus], [data-autofocus]") || G, G.focus({ preventScroll: !0 }));
7632
7632
  }
7633
7633
  });
7634
7634
  }
7635
- function oe(j) {
7636
- j && typeof j.focus == "function" ? j.focus({ preventScroll: !0 }) : ee(), n("shake");
7637
- const Z = i.value;
7638
- Z !== null && (Z.classList.remove("q-animate--scale"), Z.classList.add("q-animate--scale"), s !== null && clearTimeout(s), s = setTimeout(() => {
7639
- s = null, i.value !== null && (Z.classList.remove("q-animate--scale"), ee());
7635
+ function oe(U) {
7636
+ U && typeof U.focus == "function" ? U.focus({ preventScroll: !0 }) : ee(), n("shake");
7637
+ const G = i.value;
7638
+ G !== null && (G.classList.remove("q-animate--scale"), G.classList.add("q-animate--scale"), s !== null && clearTimeout(s), s = setTimeout(() => {
7639
+ s = null, i.value !== null && (G.classList.remove("q-animate--scale"), ee());
7640
7640
  }, 170));
7641
7641
  }
7642
7642
  function ce() {
7643
7643
  e.seamless !== !0 && (e.persistent === !0 || e.noEscDismiss === !0 ? e.maximized !== !0 && e.noShake !== !0 && oe() : (n("escapeKey"), $()));
7644
7644
  }
7645
- function Pe(j) {
7646
- s !== null && (clearTimeout(s), s = null), (j === !0 || o.value === !0) && (te(!1), e.seamless !== !0 && (f(!1), Hu(ie), Fl(ce))), j !== !0 && (c = null);
7645
+ function Pe(U) {
7646
+ s !== null && (clearTimeout(s), s = null), (U === !0 || o.value === !0) && (te(!1), e.seamless !== !0 && (f(!1), Hu(ie), Fl(ce))), U !== !0 && (c = null);
7647
7647
  }
7648
- function te(j) {
7649
- j === !0 ? u !== !0 && (ll < 1 && document.body.classList.add("q-body--dialog"), ll++, u = !0) : u === !0 && (ll < 2 && document.body.classList.remove("q-body--dialog"), ll--, u = !1);
7648
+ function te(U) {
7649
+ U === !0 ? u !== !0 && (ll < 1 && document.body.classList.add("q-body--dialog"), ll++, u = !0) : u === !0 && (ll < 2 && document.body.classList.remove("q-body--dialog"), ll--, u = !1);
7650
7650
  }
7651
- function V(j) {
7652
- d !== !0 && ($(j), n("click", j));
7651
+ function V(U) {
7652
+ d !== !0 && ($(U), n("click", U));
7653
7653
  }
7654
- function le(j) {
7655
- e.persistent !== !0 && e.noBackdropDismiss !== !0 ? $(j) : e.noShake !== !0 && oe();
7654
+ function le(U) {
7655
+ e.persistent !== !0 && e.noBackdropDismiss !== !0 ? $(U) : e.noShake !== !0 && oe();
7656
7656
  }
7657
- function ie(j) {
7658
- e.allowFocusOutside !== !0 && x.value === !0 && fp(i.value, j.target) !== !0 && ee('[tabindex]:not([tabindex="-1"])');
7657
+ function ie(U) {
7658
+ e.allowFocusOutside !== !0 && x.value === !0 && fp(i.value, U.target) !== !0 && ee('[tabindex]:not([tabindex="-1"])');
7659
7659
  }
7660
7660
  Object.assign(a.proxy, {
7661
7661
  // expose public methods
7662
7662
  focus: ee,
7663
7663
  shake: oe,
7664
7664
  // private but needed by QSelect
7665
- __updateRefocusTarget(j) {
7666
- c = j || null;
7665
+ __updateRefocusTarget(U) {
7666
+ c = U || null;
7667
7667
  }
7668
7668
  }), bt(Pe);
7669
7669
  function Ce() {
@@ -7758,19 +7758,19 @@ Se({
7758
7758
  ), C = b(
7759
7759
  () => e.persistent !== !0 && (m.value === !0 || Pe.value === !0)
7760
7760
  );
7761
- function h(X, ke) {
7762
- if (A(), X !== !1 && u.animate(), ye(0), m.value === !0) {
7761
+ function h(Z, ke) {
7762
+ if (A(), Z !== !1 && u.animate(), ge(0), m.value === !0) {
7763
7763
  const Le = u.instances[K.value];
7764
7764
  Le !== void 0 && Le.belowBreakpoint === !0 && Le.hide(!1), ue(1), u.isContainer.value !== !0 && l(!0);
7765
7765
  } else
7766
- ue(0), X !== !1 && Ie(!1);
7766
+ ue(0), Z !== !1 && Ie(!1);
7767
7767
  s(() => {
7768
- X !== !1 && Ie(!0), ke !== !0 && n("show", X);
7768
+ Z !== !1 && Ie(!0), ke !== !0 && n("show", Z);
7769
7769
  }, gv);
7770
7770
  }
7771
- function y(X, ke) {
7772
- $(), X !== !1 && u.animate(), ue(0), ye(M.value * p.value), ot(), ke !== !0 ? s(() => {
7773
- n("hide", X);
7771
+ function y(Z, ke) {
7772
+ $(), Z !== !1 && u.animate(), ue(0), ge(M.value * p.value), ot(), ke !== !0 ? s(() => {
7773
+ n("hide", Z);
7774
7774
  }, gv) : c();
7775
7775
  }
7776
7776
  const { show: k, hide: x } = Yi({
@@ -7797,48 +7797,48 @@ Se({
7797
7797
  ), V = b(() => ({
7798
7798
  backgroundColor: `rgba(0,0,0,${P.value * 0.4})`
7799
7799
  })), le = b(() => E.value === !0 ? u.rows.value.top[2] === "r" : u.rows.value.top[0] === "l"), ie = b(() => E.value === !0 ? u.rows.value.bottom[2] === "r" : u.rows.value.bottom[0] === "l"), Ce = b(() => {
7800
- const X = {};
7801
- return u.header.space === !0 && le.value === !1 && (oe.value === !0 ? X.top = `${u.header.offset}px` : u.header.space === !0 && (X.top = `${u.header.size}px`)), u.footer.space === !0 && ie.value === !1 && (oe.value === !0 ? X.bottom = `${u.footer.offset}px` : u.footer.space === !0 && (X.bottom = `${u.footer.size}px`)), X;
7802
- }), j = b(() => {
7803
- const X = {
7800
+ const Z = {};
7801
+ return u.header.space === !0 && le.value === !1 && (oe.value === !0 ? Z.top = `${u.header.offset}px` : u.header.space === !0 && (Z.top = `${u.header.size}px`)), u.footer.space === !0 && ie.value === !1 && (oe.value === !0 ? Z.bottom = `${u.footer.offset}px` : u.footer.space === !0 && (Z.bottom = `${u.footer.size}px`)), Z;
7802
+ }), U = b(() => {
7803
+ const Z = {
7804
7804
  width: `${p.value}px`,
7805
7805
  transform: `translateX(${B.value}px)`
7806
7806
  };
7807
- return m.value === !0 ? X : Object.assign(X, Ce.value);
7808
- }), Z = b(
7807
+ return m.value === !0 ? Z : Object.assign(Z, Ce.value);
7808
+ }), G = b(
7809
7809
  () => "q-drawer__content fit " + (u.isContainer.value !== !0 ? "scroll" : "overflow-auto")
7810
- ), U = b(
7810
+ ), j = b(
7811
7811
  () => `q-drawer q-drawer--${e.side}` + (O.value === !0 ? " q-drawer--mini-animate" : "") + (e.bordered === !0 ? " q-drawer--bordered" : "") + (o.value === !0 ? " q-drawer--dark q-dark" : "") + (D.value === !0 ? " no-transition" : _.value === !0 ? "" : " q-layout--prevent-focus") + (m.value === !0 ? " fixed q-drawer--on-top q-drawer--mobile q-drawer--top-padding" : ` q-drawer--${g.value === !0 ? "mini" : "standard"}` + (oe.value === !0 || ce.value !== !0 ? " fixed" : "") + (e.overlay === !0 || e.miniToOverlay === !0 ? " q-drawer--on-top" : "") + (le.value === !0 ? " q-drawer--top-padding" : ""))
7812
7812
  ), Q = b(() => {
7813
- const X = i.lang.rtl === !0 ? e.side : K.value;
7813
+ const Z = i.lang.rtl === !0 ? e.side : K.value;
7814
7814
  return [[
7815
7815
  ir,
7816
7816
  $e,
7817
7817
  void 0,
7818
7818
  {
7819
- [X]: !0,
7819
+ [Z]: !0,
7820
7820
  mouse: !0
7821
7821
  }
7822
7822
  ]];
7823
7823
  }), Y = b(() => {
7824
- const X = i.lang.rtl === !0 ? K.value : e.side;
7824
+ const Z = i.lang.rtl === !0 ? K.value : e.side;
7825
7825
  return [[
7826
7826
  ir,
7827
7827
  Ze,
7828
7828
  void 0,
7829
7829
  {
7830
- [X]: !0,
7830
+ [Z]: !0,
7831
7831
  mouse: !0
7832
7832
  }
7833
7833
  ]];
7834
- }), ge = b(() => {
7835
- const X = i.lang.rtl === !0 ? K.value : e.side;
7834
+ }), be = b(() => {
7835
+ const Z = i.lang.rtl === !0 ? K.value : e.side;
7836
7836
  return [[
7837
7837
  ir,
7838
7838
  Ze,
7839
7839
  void 0,
7840
7840
  {
7841
- [X]: !0,
7841
+ [Z]: !0,
7842
7842
  mouse: !0,
7843
7843
  mouseAllDir: !0
7844
7844
  }
@@ -7847,46 +7847,46 @@ Se({
7847
7847
  function re() {
7848
7848
  W(m, e.behavior === "mobile" || e.behavior !== "desktop" && u.totalWidth.value <= e.breakpoint);
7849
7849
  }
7850
- pe(m, (X) => {
7851
- X === !0 ? (d = _.value, _.value === !0 && x(!1)) : e.overlay === !1 && e.behavior !== "mobile" && d !== !1 && (_.value === !0 ? (ye(0), ue(0), ot()) : k(!1));
7852
- }), pe(() => e.side, (X, ke) => {
7853
- u.instances[ke] === I && (u.instances[ke] = void 0, u[ke].space = !1, u[ke].offset = 0), u.instances[X] = I, u[X].size = p.value, u[X].space = ce.value, u[X].offset = ee.value;
7850
+ pe(m, (Z) => {
7851
+ Z === !0 ? (d = _.value, _.value === !0 && x(!1)) : e.overlay === !1 && e.behavior !== "mobile" && d !== !1 && (_.value === !0 ? (ge(0), ue(0), ot()) : k(!1));
7852
+ }), pe(() => e.side, (Z, ke) => {
7853
+ u.instances[ke] === I && (u.instances[ke] = void 0, u[ke].space = !1, u[ke].offset = 0), u.instances[Z] = I, u[Z].size = p.value, u[Z].space = ce.value, u[Z].offset = ee.value;
7854
7854
  }), pe(u.totalWidth, () => {
7855
7855
  (u.isContainer.value === !0 || document.qScrollPrevented !== !0) && re();
7856
7856
  }), pe(
7857
7857
  () => e.behavior + e.breakpoint,
7858
7858
  re
7859
- ), pe(u.isContainer, (X) => {
7860
- _.value === !0 && l(X !== !0), X === !0 && re();
7859
+ ), pe(u.isContainer, (Z) => {
7860
+ _.value === !0 && l(Z !== !0), Z === !0 && re();
7861
7861
  }), pe(u.scrollbarWidth, () => {
7862
- ye(_.value === !0 ? 0 : void 0);
7863
- }), pe(ee, (X) => {
7864
- H("offset", X);
7865
- }), pe(ce, (X) => {
7866
- n("onLayout", X), H("space", X);
7862
+ ge(_.value === !0 ? 0 : void 0);
7863
+ }), pe(ee, (Z) => {
7864
+ H("offset", Z);
7865
+ }), pe(ce, (Z) => {
7866
+ n("onLayout", Z), H("space", Z);
7867
7867
  }), pe(E, () => {
7868
- ye();
7869
- }), pe(p, (X) => {
7870
- ye(), G(e.miniToOverlay, X);
7871
- }), pe(() => e.miniToOverlay, (X) => {
7872
- G(X, p.value);
7868
+ ge();
7869
+ }), pe(p, (Z) => {
7870
+ ge(), X(e.miniToOverlay, Z);
7871
+ }), pe(() => e.miniToOverlay, (Z) => {
7872
+ X(Z, p.value);
7873
7873
  }), pe(() => i.lang.rtl, () => {
7874
- ye();
7874
+ ge();
7875
7875
  }), pe(() => e.mini, () => {
7876
7876
  e.noMiniAnimation || e.modelValue === !0 && (Xe(), u.animate());
7877
- }), pe(g, (X) => {
7878
- n("miniState", X);
7877
+ }), pe(g, (Z) => {
7878
+ n("miniState", Z);
7879
7879
  });
7880
- function ye(X) {
7881
- X === void 0 ? ht(() => {
7882
- X = _.value === !0 ? 0 : p.value, ye(M.value * X);
7883
- }) : (u.isContainer.value === !0 && E.value === !0 && (m.value === !0 || Math.abs(X) === p.value) && (X += M.value * u.scrollbarWidth.value), B.value = X);
7880
+ function ge(Z) {
7881
+ Z === void 0 ? ht(() => {
7882
+ Z = _.value === !0 ? 0 : p.value, ge(M.value * Z);
7883
+ }) : (u.isContainer.value === !0 && E.value === !0 && (m.value === !0 || Math.abs(Z) === p.value) && (Z += M.value * u.scrollbarWidth.value), B.value = Z);
7884
7884
  }
7885
- function ue(X) {
7886
- P.value = X;
7885
+ function ue(Z) {
7886
+ P.value = Z;
7887
7887
  }
7888
- function Ie(X) {
7889
- const ke = X === !0 ? "remove" : u.isContainer.value !== !0 ? "add" : "";
7888
+ function Ie(Z) {
7889
+ const ke = Z === !0 ? "remove" : u.isContainer.value !== !0 ? "add" : "";
7890
7890
  ke !== "" && document.body.classList[ke]("q-body--drawer-toggle");
7891
7891
  }
7892
7892
  function Xe() {
@@ -7894,59 +7894,59 @@ Se({
7894
7894
  v = null, O.value = !1, a && a.proxy && a.proxy.$el && a.proxy.$el.classList.remove("q-drawer--mini-animate");
7895
7895
  }, 150);
7896
7896
  }
7897
- function $e(X) {
7897
+ function $e(Z) {
7898
7898
  if (_.value !== !1)
7899
7899
  return;
7900
- const ke = p.value, Le = Lt(X.distance.x, 0, ke);
7901
- if (X.isFinal === !0) {
7902
- Le >= Math.min(75, ke) === !0 ? k() : (u.animate(), ue(0), ye(M.value * ke)), D.value = !1;
7900
+ const ke = p.value, Le = Lt(Z.distance.x, 0, ke);
7901
+ if (Z.isFinal === !0) {
7902
+ Le >= Math.min(75, ke) === !0 ? k() : (u.animate(), ue(0), ge(M.value * ke)), D.value = !1;
7903
7903
  return;
7904
7904
  }
7905
- ye(
7905
+ ge(
7906
7906
  (i.lang.rtl === !0 ? E.value !== !0 : E.value) ? Math.max(ke - Le, 0) : Math.min(0, Le - ke)
7907
7907
  ), ue(
7908
7908
  Lt(Le / ke, 0, 1)
7909
- ), X.isFirst === !0 && (D.value = !0);
7909
+ ), Z.isFirst === !0 && (D.value = !0);
7910
7910
  }
7911
- function Ze(X) {
7911
+ function Ze(Z) {
7912
7912
  if (_.value !== !0)
7913
7913
  return;
7914
- const ke = p.value, Le = X.direction === e.side, Be = (i.lang.rtl === !0 ? Le !== !0 : Le) ? Lt(X.distance.x, 0, ke) : 0;
7915
- if (X.isFinal === !0) {
7916
- Math.abs(Be) < Math.min(75, ke) === !0 ? (u.animate(), ue(1), ye(0)) : x(), D.value = !1;
7914
+ const ke = p.value, Le = Z.direction === e.side, Be = (i.lang.rtl === !0 ? Le !== !0 : Le) ? Lt(Z.distance.x, 0, ke) : 0;
7915
+ if (Z.isFinal === !0) {
7916
+ Math.abs(Be) < Math.min(75, ke) === !0 ? (u.animate(), ue(1), ge(0)) : x(), D.value = !1;
7917
7917
  return;
7918
7918
  }
7919
- ye(M.value * Be), ue(Lt(1 - Be / ke, 0, 1)), X.isFirst === !0 && (D.value = !0);
7919
+ ge(M.value * Be), ue(Lt(1 - Be / ke, 0, 1)), Z.isFirst === !0 && (D.value = !0);
7920
7920
  }
7921
7921
  function ot() {
7922
7922
  l(!1), Ie(!0);
7923
7923
  }
7924
- function H(X, ke) {
7925
- u.update(e.side, X, ke);
7924
+ function H(Z, ke) {
7925
+ u.update(e.side, Z, ke);
7926
7926
  }
7927
- function W(X, ke) {
7928
- X.value !== ke && (X.value = ke);
7927
+ function W(Z, ke) {
7928
+ Z.value !== ke && (Z.value = ke);
7929
7929
  }
7930
- function G(X, ke) {
7931
- H("size", X === !0 ? e.miniWidth : ke);
7930
+ function X(Z, ke) {
7931
+ H("size", Z === !0 ? e.miniWidth : ke);
7932
7932
  }
7933
- return u.instances[e.side] = I, G(e.miniToOverlay, p.value), H("space", ce.value), H("offset", ee.value), e.showIfAbove === !0 && e.modelValue !== !0 && _.value === !0 && e["onUpdate:modelValue"] !== void 0 && n("update:modelValue", !0), it(() => {
7933
+ return u.instances[e.side] = I, X(e.miniToOverlay, p.value), H("space", ce.value), H("offset", ee.value), e.showIfAbove === !0 && e.modelValue !== !0 && _.value === !0 && e["onUpdate:modelValue"] !== void 0 && n("update:modelValue", !0), it(() => {
7934
7934
  n("onLayout", ce.value), n("miniState", g.value), d = e.showIfAbove === !0;
7935
- const X = () => {
7935
+ const Z = () => {
7936
7936
  (_.value === !0 ? h : y)(!1, !0);
7937
7937
  };
7938
7938
  if (u.totalWidth.value !== 0) {
7939
- ht(X);
7939
+ ht(Z);
7940
7940
  return;
7941
7941
  }
7942
7942
  f = pe(u.totalWidth, () => {
7943
- f(), f = void 0, _.value === !1 && e.showIfAbove === !0 && m.value === !1 ? k(!1) : X();
7943
+ f(), f = void 0, _.value === !1 && e.showIfAbove === !0 && m.value === !1 ? k(!1) : Z();
7944
7944
  });
7945
7945
  }), bt(() => {
7946
7946
  f !== void 0 && f(), v !== null && (clearTimeout(v), v = null), _.value === !0 && ot(), u.instances[e.side] === I && (u.instances[e.side] = void 0, H("size", 0), H("offset", 0), H("space", !1));
7947
7947
  }), () => {
7948
- const X = [];
7949
- m.value === !0 && (e.noSwipeOpen === !1 && X.push(
7948
+ const Z = [];
7949
+ m.value === !0 && (e.noSwipeOpen === !1 && Z.push(
7950
7950
  Te(
7951
7951
  w("div", {
7952
7952
  key: "open",
@@ -7955,7 +7955,7 @@ Se({
7955
7955
  }),
7956
7956
  Q.value
7957
7957
  )
7958
- ), X.push(
7958
+ ), Z.push(
7959
7959
  sr(
7960
7960
  "div",
7961
7961
  {
@@ -7968,7 +7968,7 @@ Se({
7968
7968
  void 0,
7969
7969
  "backdrop",
7970
7970
  e.noSwipeBackdrop !== !0 && _.value === !0,
7971
- () => ge.value
7971
+ () => be.value
7972
7972
  )
7973
7973
  ));
7974
7974
  const ke = g.value === !0 && t.mini !== void 0, Le = [
@@ -7979,7 +7979,7 @@ Se({
7979
7979
  key: "" + ke,
7980
7980
  // required otherwise Vue will not diff correctly
7981
7981
  class: [
7982
- Z.value,
7982
+ G.value,
7983
7983
  r.class
7984
7984
  ]
7985
7985
  },
@@ -7990,16 +7990,16 @@ Se({
7990
7990
  w("div", {
7991
7991
  class: "q-layout__shadow absolute-full overflow-hidden no-pointer-events"
7992
7992
  })
7993
- ), X.push(
7993
+ ), Z.push(
7994
7994
  sr(
7995
7995
  "aside",
7996
- { ref: "content", class: U.value, style: j.value },
7996
+ { ref: "content", class: j.value, style: U.value },
7997
7997
  Le,
7998
7998
  "contentclose",
7999
7999
  e.noSwipeClose !== !0 && m.value === !0,
8000
8000
  () => Y.value
8001
8001
  )
8002
- ), w("div", { class: "q-drawer-container" }, X);
8002
+ ), w("div", { class: "q-drawer-container" }, Z);
8003
8003
  };
8004
8004
  }
8005
8005
  });
@@ -8284,7 +8284,7 @@ var yw = /^https?:\/\//, bw = class {
8284
8284
  function ee(le) {
8285
8285
  if (l.platform.is.mobile === !0) {
8286
8286
  gr(), document.body.classList.add("non-selectable");
8287
- const ie = k.value, Ce = ["touchmove", "touchcancel", "touchend", "click"].map((j) => [ie, j, "delayHide", "passiveCapture"]);
8287
+ const ie = k.value, Ce = ["touchmove", "touchcancel", "touchend", "click"].map((U) => [ie, U, "delayHide", "passiveCapture"]);
8288
8288
  nn(A, "tooltipTemp", Ce);
8289
8289
  }
8290
8290
  g(() => {
@@ -8699,53 +8699,53 @@ Se({
8699
8699
  disable: !f.value,
8700
8700
  size: "sm"
8701
8701
  })), h = b(() => {
8702
- const j = a.lang.editor, Z = a.iconSet.editor;
8702
+ const U = a.lang.editor, G = a.iconSet.editor;
8703
8703
  return {
8704
- bold: { cmd: "bold", icon: Z.bold, tip: j.bold, key: 66 },
8705
- italic: { cmd: "italic", icon: Z.italic, tip: j.italic, key: 73 },
8706
- strike: { cmd: "strikeThrough", icon: Z.strikethrough, tip: j.strikethrough, key: 83 },
8707
- underline: { cmd: "underline", icon: Z.underline, tip: j.underline, key: 85 },
8708
- unordered: { cmd: "insertUnorderedList", icon: Z.unorderedList, tip: j.unorderedList },
8709
- ordered: { cmd: "insertOrderedList", icon: Z.orderedList, tip: j.orderedList },
8710
- subscript: { cmd: "subscript", icon: Z.subscript, tip: j.subscript, htmlTip: "x<subscript>2</subscript>" },
8711
- superscript: { cmd: "superscript", icon: Z.superscript, tip: j.superscript, htmlTip: "x<superscript>2</superscript>" },
8712
- link: { cmd: "link", disable: (U) => U.caret && !U.caret.can("link"), icon: Z.hyperlink, tip: j.hyperlink, key: 76 },
8713
- fullscreen: { cmd: "fullscreen", icon: Z.toggleFullscreen, tip: j.toggleFullscreen, key: 70 },
8714
- viewsource: { cmd: "viewsource", icon: Z.viewSource, tip: j.viewSource },
8715
- quote: { cmd: "formatBlock", param: "BLOCKQUOTE", icon: Z.quote, tip: j.quote, key: 81 },
8716
- left: { cmd: "justifyLeft", icon: Z.left, tip: j.left },
8717
- center: { cmd: "justifyCenter", icon: Z.center, tip: j.center },
8718
- right: { cmd: "justifyRight", icon: Z.right, tip: j.right },
8719
- justify: { cmd: "justifyFull", icon: Z.justify, tip: j.justify },
8720
- print: { type: "no-state", cmd: "print", icon: Z.print, tip: j.print, key: 80 },
8721
- outdent: { type: "no-state", disable: (U) => U.caret && !U.caret.can("outdent"), cmd: "outdent", icon: Z.outdent, tip: j.outdent },
8722
- indent: { type: "no-state", disable: (U) => U.caret && !U.caret.can("indent"), cmd: "indent", icon: Z.indent, tip: j.indent },
8723
- removeFormat: { type: "no-state", cmd: "removeFormat", icon: Z.removeFormat, tip: j.removeFormat },
8724
- hr: { type: "no-state", cmd: "insertHorizontalRule", icon: Z.hr, tip: j.hr },
8725
- undo: { type: "no-state", cmd: "undo", icon: Z.undo, tip: j.undo, key: 90 },
8726
- redo: { type: "no-state", cmd: "redo", icon: Z.redo, tip: j.redo, key: 89 },
8727
- h1: { cmd: "formatBlock", param: "H1", icon: Z.heading1 || Z.heading, tip: j.heading1, htmlTip: `<h1 class="q-ma-none">${j.heading1}</h1>` },
8728
- h2: { cmd: "formatBlock", param: "H2", icon: Z.heading2 || Z.heading, tip: j.heading2, htmlTip: `<h2 class="q-ma-none">${j.heading2}</h2>` },
8729
- h3: { cmd: "formatBlock", param: "H3", icon: Z.heading3 || Z.heading, tip: j.heading3, htmlTip: `<h3 class="q-ma-none">${j.heading3}</h3>` },
8730
- h4: { cmd: "formatBlock", param: "H4", icon: Z.heading4 || Z.heading, tip: j.heading4, htmlTip: `<h4 class="q-ma-none">${j.heading4}</h4>` },
8731
- h5: { cmd: "formatBlock", param: "H5", icon: Z.heading5 || Z.heading, tip: j.heading5, htmlTip: `<h5 class="q-ma-none">${j.heading5}</h5>` },
8732
- h6: { cmd: "formatBlock", param: "H6", icon: Z.heading6 || Z.heading, tip: j.heading6, htmlTip: `<h6 class="q-ma-none">${j.heading6}</h6>` },
8733
- p: { cmd: "formatBlock", param: e.paragraphTag, icon: Z.heading, tip: j.paragraph },
8734
- code: { cmd: "formatBlock", param: "PRE", icon: Z.code, htmlTip: `<code>${j.code}</code>` },
8735
- "size-1": { cmd: "fontSize", param: "1", icon: Z.size1 || Z.size, tip: j.size1, htmlTip: `<font size="1">${j.size1}</font>` },
8736
- "size-2": { cmd: "fontSize", param: "2", icon: Z.size2 || Z.size, tip: j.size2, htmlTip: `<font size="2">${j.size2}</font>` },
8737
- "size-3": { cmd: "fontSize", param: "3", icon: Z.size3 || Z.size, tip: j.size3, htmlTip: `<font size="3">${j.size3}</font>` },
8738
- "size-4": { cmd: "fontSize", param: "4", icon: Z.size4 || Z.size, tip: j.size4, htmlTip: `<font size="4">${j.size4}</font>` },
8739
- "size-5": { cmd: "fontSize", param: "5", icon: Z.size5 || Z.size, tip: j.size5, htmlTip: `<font size="5">${j.size5}</font>` },
8740
- "size-6": { cmd: "fontSize", param: "6", icon: Z.size6 || Z.size, tip: j.size6, htmlTip: `<font size="6">${j.size6}</font>` },
8741
- "size-7": { cmd: "fontSize", param: "7", icon: Z.size7 || Z.size, tip: j.size7, htmlTip: `<font size="7">${j.size7}</font>` }
8704
+ bold: { cmd: "bold", icon: G.bold, tip: U.bold, key: 66 },
8705
+ italic: { cmd: "italic", icon: G.italic, tip: U.italic, key: 73 },
8706
+ strike: { cmd: "strikeThrough", icon: G.strikethrough, tip: U.strikethrough, key: 83 },
8707
+ underline: { cmd: "underline", icon: G.underline, tip: U.underline, key: 85 },
8708
+ unordered: { cmd: "insertUnorderedList", icon: G.unorderedList, tip: U.unorderedList },
8709
+ ordered: { cmd: "insertOrderedList", icon: G.orderedList, tip: U.orderedList },
8710
+ subscript: { cmd: "subscript", icon: G.subscript, tip: U.subscript, htmlTip: "x<subscript>2</subscript>" },
8711
+ superscript: { cmd: "superscript", icon: G.superscript, tip: U.superscript, htmlTip: "x<superscript>2</superscript>" },
8712
+ link: { cmd: "link", disable: (j) => j.caret && !j.caret.can("link"), icon: G.hyperlink, tip: U.hyperlink, key: 76 },
8713
+ fullscreen: { cmd: "fullscreen", icon: G.toggleFullscreen, tip: U.toggleFullscreen, key: 70 },
8714
+ viewsource: { cmd: "viewsource", icon: G.viewSource, tip: U.viewSource },
8715
+ quote: { cmd: "formatBlock", param: "BLOCKQUOTE", icon: G.quote, tip: U.quote, key: 81 },
8716
+ left: { cmd: "justifyLeft", icon: G.left, tip: U.left },
8717
+ center: { cmd: "justifyCenter", icon: G.center, tip: U.center },
8718
+ right: { cmd: "justifyRight", icon: G.right, tip: U.right },
8719
+ justify: { cmd: "justifyFull", icon: G.justify, tip: U.justify },
8720
+ print: { type: "no-state", cmd: "print", icon: G.print, tip: U.print, key: 80 },
8721
+ outdent: { type: "no-state", disable: (j) => j.caret && !j.caret.can("outdent"), cmd: "outdent", icon: G.outdent, tip: U.outdent },
8722
+ indent: { type: "no-state", disable: (j) => j.caret && !j.caret.can("indent"), cmd: "indent", icon: G.indent, tip: U.indent },
8723
+ removeFormat: { type: "no-state", cmd: "removeFormat", icon: G.removeFormat, tip: U.removeFormat },
8724
+ hr: { type: "no-state", cmd: "insertHorizontalRule", icon: G.hr, tip: U.hr },
8725
+ undo: { type: "no-state", cmd: "undo", icon: G.undo, tip: U.undo, key: 90 },
8726
+ redo: { type: "no-state", cmd: "redo", icon: G.redo, tip: U.redo, key: 89 },
8727
+ h1: { cmd: "formatBlock", param: "H1", icon: G.heading1 || G.heading, tip: U.heading1, htmlTip: `<h1 class="q-ma-none">${U.heading1}</h1>` },
8728
+ h2: { cmd: "formatBlock", param: "H2", icon: G.heading2 || G.heading, tip: U.heading2, htmlTip: `<h2 class="q-ma-none">${U.heading2}</h2>` },
8729
+ h3: { cmd: "formatBlock", param: "H3", icon: G.heading3 || G.heading, tip: U.heading3, htmlTip: `<h3 class="q-ma-none">${U.heading3}</h3>` },
8730
+ h4: { cmd: "formatBlock", param: "H4", icon: G.heading4 || G.heading, tip: U.heading4, htmlTip: `<h4 class="q-ma-none">${U.heading4}</h4>` },
8731
+ h5: { cmd: "formatBlock", param: "H5", icon: G.heading5 || G.heading, tip: U.heading5, htmlTip: `<h5 class="q-ma-none">${U.heading5}</h5>` },
8732
+ h6: { cmd: "formatBlock", param: "H6", icon: G.heading6 || G.heading, tip: U.heading6, htmlTip: `<h6 class="q-ma-none">${U.heading6}</h6>` },
8733
+ p: { cmd: "formatBlock", param: e.paragraphTag, icon: G.heading, tip: U.paragraph },
8734
+ code: { cmd: "formatBlock", param: "PRE", icon: G.code, htmlTip: `<code>${U.code}</code>` },
8735
+ "size-1": { cmd: "fontSize", param: "1", icon: G.size1 || G.size, tip: U.size1, htmlTip: `<font size="1">${U.size1}</font>` },
8736
+ "size-2": { cmd: "fontSize", param: "2", icon: G.size2 || G.size, tip: U.size2, htmlTip: `<font size="2">${U.size2}</font>` },
8737
+ "size-3": { cmd: "fontSize", param: "3", icon: G.size3 || G.size, tip: U.size3, htmlTip: `<font size="3">${U.size3}</font>` },
8738
+ "size-4": { cmd: "fontSize", param: "4", icon: G.size4 || G.size, tip: U.size4, htmlTip: `<font size="4">${U.size4}</font>` },
8739
+ "size-5": { cmd: "fontSize", param: "5", icon: G.size5 || G.size, tip: U.size5, htmlTip: `<font size="5">${U.size5}</font>` },
8740
+ "size-6": { cmd: "fontSize", param: "6", icon: G.size6 || G.size, tip: U.size6, htmlTip: `<font size="6">${U.size6}</font>` },
8741
+ "size-7": { cmd: "fontSize", param: "7", icon: G.size7 || G.size, tip: U.size7, htmlTip: `<font size="7">${U.size7}</font>` }
8742
8742
  };
8743
8743
  }), y = b(() => {
8744
- const j = e.definitions || {}, Z = e.definitions || e.fonts ? fg(
8744
+ const U = e.definitions || {}, G = e.definitions || e.fonts ? fg(
8745
8745
  !0,
8746
8746
  {},
8747
8747
  h.value,
8748
- j,
8748
+ U,
8749
8749
  Sw(
8750
8750
  m,
8751
8751
  a.lang.editor.defaultFont,
@@ -8754,7 +8754,7 @@ Se({
8754
8754
  )
8755
8755
  ) : h.value;
8756
8756
  return e.toolbar.map(
8757
- (U) => U.map((Q) => {
8757
+ (j) => j.map((Q) => {
8758
8758
  if (Q.options)
8759
8759
  return {
8760
8760
  type: "dropdown",
@@ -8766,10 +8766,10 @@ Se({
8766
8766
  fixedIcon: Q.fixedIcon,
8767
8767
  highlight: Q.highlight,
8768
8768
  list: Q.list,
8769
- options: Q.options.map((ge) => Z[ge])
8769
+ options: Q.options.map((be) => G[be])
8770
8770
  };
8771
- const Y = Z[Q];
8772
- return Y ? Y.type === "no-state" || j[Q] && (Y.cmd === void 0 || h.value[Y.cmd] && h.value[Y.cmd].type === "no-state") ? Y : Object.assign({ type: "toggle" }, Y) : {
8771
+ const Y = G[Q];
8772
+ return Y ? Y.type === "no-state" || U[Q] && (Y.cmd === void 0 || h.value[Y.cmd] && h.value[Y.cmd].type === "no-state") ? Y : Object.assign({ type: "toggle" }, Y) : {
8773
8773
  type: "slot",
8774
8774
  slot: Q
8775
8775
  };
@@ -8792,23 +8792,23 @@ Se({
8792
8792
  buttons: y,
8793
8793
  setContent: te
8794
8794
  };
8795
- pe(() => e.modelValue, (j) => {
8796
- p !== j && (p = j, te(j, !0));
8797
- }), pe(d, (j) => {
8798
- n(`link${j ? "Show" : "Hide"}`);
8795
+ pe(() => e.modelValue, (U) => {
8796
+ p !== U && (p = U, te(U, !0));
8797
+ }), pe(d, (U) => {
8798
+ n(`link${U ? "Show" : "Hide"}`);
8799
8799
  });
8800
8800
  const x = b(() => e.toolbar && e.toolbar.length !== 0), A = b(() => {
8801
- const j = {}, Z = (U) => {
8802
- U.key && (j[U.key] = {
8803
- cmd: U.cmd,
8804
- param: U.param
8801
+ const U = {}, G = (j) => {
8802
+ j.key && (U[j.key] = {
8803
+ cmd: j.cmd,
8804
+ param: j.param
8805
8805
  });
8806
8806
  };
8807
- return y.value.forEach((U) => {
8808
- U.forEach((Q) => {
8809
- Q.options ? Q.options.forEach(Z) : Z(Q);
8807
+ return y.value.forEach((j) => {
8808
+ j.forEach((Q) => {
8809
+ Q.options ? Q.options.forEach(G) : G(Q);
8810
8810
  });
8811
- }), j;
8811
+ }), U;
8812
8812
  }), $ = b(() => o.value ? e.contentStyle : [
8813
8813
  {
8814
8814
  minHeight: e.minHeight,
@@ -8825,63 +8825,63 @@ Se({
8825
8825
  ]), M = b(() => e.disable === !0 ? { "aria-disabled": "true" } : {});
8826
8826
  function P() {
8827
8827
  if (u.value !== null) {
8828
- const j = `inner${v.value === !0 ? "Text" : "HTML"}`, Z = u.value[j];
8829
- Z !== e.modelValue && (p = Z, n("update:modelValue", Z));
8828
+ const U = `inner${v.value === !0 ? "Text" : "HTML"}`, G = u.value[U];
8829
+ G !== e.modelValue && (p = G, n("update:modelValue", G));
8830
8830
  }
8831
8831
  }
8832
- function D(j) {
8833
- if (n("keydown", j), j.ctrlKey !== !0 || ei(j) === !0) {
8832
+ function D(U) {
8833
+ if (n("keydown", U), U.ctrlKey !== !0 || ei(U) === !0) {
8834
8834
  le();
8835
8835
  return;
8836
8836
  }
8837
- const Z = j.keyCode, U = A.value[Z];
8838
- if (U !== void 0) {
8839
- const { cmd: Q, param: Y } = U;
8840
- vt(j), V(Q, Y, !1);
8837
+ const G = U.keyCode, j = A.value[G];
8838
+ if (j !== void 0) {
8839
+ const { cmd: Q, param: Y } = j;
8840
+ vt(U), V(Q, Y, !1);
8841
8841
  }
8842
8842
  }
8843
- function O(j) {
8844
- le(), n("click", j);
8843
+ function O(U) {
8844
+ le(), n("click", U);
8845
8845
  }
8846
- function B(j) {
8846
+ function B(U) {
8847
8847
  if (u.value !== null) {
8848
- const { scrollTop: Z, scrollHeight: U } = u.value;
8849
- g = U - Z;
8848
+ const { scrollTop: G, scrollHeight: j } = u.value;
8849
+ g = j - G;
8850
8850
  }
8851
- k.caret.save(), n("blur", j);
8851
+ k.caret.save(), n("blur", U);
8852
8852
  }
8853
- function K(j) {
8853
+ function K(U) {
8854
8854
  ht(() => {
8855
8855
  u.value !== null && g !== void 0 && (u.value.scrollTop = u.value.scrollHeight - g);
8856
- }), n("focus", j);
8856
+ }), n("focus", U);
8857
8857
  }
8858
- function ee(j) {
8859
- const Z = c.value;
8860
- if (Z !== null && Z.contains(j.target) === !0 && (j.relatedTarget === null || Z.contains(j.relatedTarget) !== !0)) {
8861
- const U = `inner${v.value === !0 ? "Text" : "HTML"}`;
8862
- k.caret.restorePosition(u.value[U].length), le();
8858
+ function ee(U) {
8859
+ const G = c.value;
8860
+ if (G !== null && G.contains(U.target) === !0 && (U.relatedTarget === null || G.contains(U.relatedTarget) !== !0)) {
8861
+ const j = `inner${v.value === !0 ? "Text" : "HTML"}`;
8862
+ k.caret.restorePosition(u.value[j].length), le();
8863
8863
  }
8864
8864
  }
8865
- function oe(j) {
8866
- const Z = c.value;
8867
- Z !== null && Z.contains(j.target) === !0 && (j.relatedTarget === null || Z.contains(j.relatedTarget) !== !0) && (k.caret.savePosition(), le());
8865
+ function oe(U) {
8866
+ const G = c.value;
8867
+ G !== null && G.contains(U.target) === !0 && (U.relatedTarget === null || G.contains(U.relatedTarget) !== !0) && (k.caret.savePosition(), le());
8868
8868
  }
8869
8869
  function ce() {
8870
8870
  g = void 0;
8871
8871
  }
8872
- function Pe(j) {
8872
+ function Pe(U) {
8873
8873
  k.caret.save();
8874
8874
  }
8875
- function te(j, Z) {
8875
+ function te(U, G) {
8876
8876
  if (u.value !== null) {
8877
- Z === !0 && k.caret.savePosition();
8878
- const U = `inner${v.value === !0 ? "Text" : "HTML"}`;
8879
- u.value[U] = j, Z === !0 && (k.caret.restorePosition(u.value[U].length), le());
8877
+ G === !0 && k.caret.savePosition();
8878
+ const j = `inner${v.value === !0 ? "Text" : "HTML"}`;
8879
+ u.value[j] = U, G === !0 && (k.caret.restorePosition(u.value[j].length), le());
8880
8880
  }
8881
8881
  }
8882
- function V(j, Z, U = !0) {
8883
- ie(), k.caret.restore(), k.caret.apply(j, Z, () => {
8884
- ie(), k.caret.save(), U && le();
8882
+ function V(U, G, j = !0) {
8883
+ ie(), k.caret.restore(), k.caret.apply(U, G, () => {
8884
+ ie(), k.caret.save(), j && le();
8885
8885
  });
8886
8886
  }
8887
8887
  function le() {
@@ -8907,23 +8907,23 @@ Se({
8907
8907
  focus: ie,
8908
8908
  getContentEl: Ce
8909
8909
  }), () => {
8910
- let j;
8910
+ let U;
8911
8911
  if (x.value) {
8912
- const Z = [
8912
+ const G = [
8913
8913
  w("div", {
8914
8914
  key: "qedt_top",
8915
8915
  class: "q-editor__toolbar row no-wrap scroll-x" + _.value
8916
8916
  }, ww(k))
8917
8917
  ];
8918
- d.value !== null && Z.push(
8918
+ d.value !== null && G.push(
8919
8919
  w("div", {
8920
8920
  key: "qedt_btm",
8921
8921
  class: "q-editor__toolbar row no-wrap items-center scroll-x" + _.value
8922
8922
  }, kw(k))
8923
- ), j = w("div", {
8923
+ ), U = w("div", {
8924
8924
  key: "toolbar_ctainer",
8925
8925
  class: "q-editor__toolbars-container"
8926
- }, Z);
8926
+ }, G);
8927
8927
  }
8928
8928
  return w("div", {
8929
8929
  ref: c,
@@ -8933,7 +8933,7 @@ Se({
8933
8933
  onFocusin: ee,
8934
8934
  onFocusout: oe
8935
8935
  }, [
8936
- j,
8936
+ U,
8937
8937
  w("div", {
8938
8938
  ref: u,
8939
8939
  style: $.value,
@@ -10872,13 +10872,13 @@ function Bw(e, t, n, r) {
10872
10872
  let B = e.reverseFillMask === !0, K = "", ee = "";
10873
10873
  I.replace(Fw, (te, V, le, ie, Ce) => {
10874
10874
  if (ie !== void 0) {
10875
- const j = Kl[ie];
10876
- O.push(j), ee = j.negate, B === !0 && (D.push("(?:" + ee + "+)?(" + j.pattern + "+)?(?:" + ee + "+)?(" + j.pattern + "+)?"), B = !1), D.push("(?:" + ee + "+)?(" + j.pattern + ")?");
10875
+ const U = Kl[ie];
10876
+ O.push(U), ee = U.negate, B === !0 && (D.push("(?:" + ee + "+)?(" + U.pattern + "+)?(?:" + ee + "+)?(" + U.pattern + "+)?"), B = !1), D.push("(?:" + ee + "+)?(" + U.pattern + ")?");
10877
10877
  } else if (le !== void 0)
10878
10878
  K = "\\" + (le === "\\" ? "" : le), O.push(le), P.push("([^" + K + "]+)?" + K + "?");
10879
10879
  else {
10880
- const j = V !== void 0 ? V : Ce;
10881
- K = j === "\\" ? "\\\\\\\\" : j.replace(wv, "\\\\$&"), O.push(j), P.push("([^" + K + "]+)?" + K + "?");
10880
+ const U = V !== void 0 ? V : Ce;
10881
+ K = U === "\\" ? "\\\\\\\\" : U.replace(wv, "\\\\$&"), O.push(U), P.push("([^" + K + "]+)?" + K + "?");
10882
10882
  }
10883
10883
  });
10884
10884
  const oe = new RegExp(
@@ -10890,11 +10890,11 @@ function Bw(e, t, n, r) {
10890
10890
  const V = oe.exec(e.reverseFillMask === !0 ? te : te.slice(0, O.length + 1));
10891
10891
  V !== null && (te = V.slice(1).join(""));
10892
10892
  const le = [], ie = Pe.length;
10893
- for (let Ce = 0, j = te; Ce < ie; Ce++) {
10894
- const Z = Pe[Ce].exec(j);
10895
- if (Z === null)
10893
+ for (let Ce = 0, U = te; Ce < ie; Ce++) {
10894
+ const G = Pe[Ce].exec(U);
10895
+ if (G === null)
10896
10896
  break;
10897
- j = j.slice(Z.shift().length), le.push(...Z);
10897
+ U = U.slice(G.shift().length), le.push(...G);
10898
10898
  }
10899
10899
  return le.length !== 0 ? le.join("") : te;
10900
10900
  }, a = O.map((te) => typeof te == "string" ? te : fn).join(""), i = a.split(fn).join(E);
@@ -11217,8 +11217,8 @@ var $t = Se({
11217
11217
  requestAnimationFrame(() => {
11218
11218
  const V = d.value;
11219
11219
  if (V !== null) {
11220
- const le = V.parentNode.style, { scrollTop: ie } = V, { overflowY: Ce, maxHeight: j } = a.platform.is.firefox === !0 ? {} : window.getComputedStyle(V), Z = Ce !== void 0 && Ce !== "scroll";
11221
- Z === !0 && (V.style.overflowY = "hidden"), le.marginBottom = V.scrollHeight - 1 + "px", V.style.height = "1px", V.style.height = V.scrollHeight + "px", Z === !0 && (V.style.overflowY = parseInt(j, 10) < V.scrollHeight ? "auto" : "hidden"), le.marginBottom = "", V.scrollTop = ie;
11220
+ const le = V.parentNode.style, { scrollTop: ie } = V, { overflowY: Ce, maxHeight: U } = a.platform.is.firefox === !0 ? {} : window.getComputedStyle(V), G = Ce !== void 0 && Ce !== "scroll";
11221
+ G === !0 && (V.style.overflowY = "hidden"), le.marginBottom = V.scrollHeight - 1 + "px", V.style.height = "1px", V.style.height = V.scrollHeight + "px", G === !0 && (V.style.overflowY = parseInt(U, 10) < V.scrollHeight ? "auto" : "hidden"), le.marginBottom = "", V.scrollTop = ie;
11222
11222
  }
11223
11223
  });
11224
11224
  }
@@ -13792,36 +13792,36 @@ function qg({
13792
13792
  );
13793
13793
  return;
13794
13794
  }
13795
- let j = 0, Z = V.scrollStart - V.offsetStart, U = Z;
13796
- if (Z <= ie && Z + V.scrollViewSize >= m.value)
13797
- Z -= m.value, j = y.value.from, U = Z;
13795
+ let U = 0, G = V.scrollStart - V.offsetStart, j = G;
13796
+ if (G <= ie && G + V.scrollViewSize >= m.value)
13797
+ G -= m.value, U = y.value.from, j = G;
13798
13798
  else
13799
- for (let Q = 0; Z >= v[Q] && j < le; Q++)
13800
- Z -= v[Q], j += vr;
13801
- for (; Z > 0 && j < le; )
13802
- Z -= f[j], Z > -V.scrollViewSize ? (j++, U = Z) : U = f[j] + Z;
13799
+ for (let Q = 0; G >= v[Q] && U < le; Q++)
13800
+ G -= v[Q], U += vr;
13801
+ for (; G > 0 && U < le; )
13802
+ G -= f[U], G > -V.scrollViewSize ? (U++, j = G) : j = f[U] + G;
13803
13803
  P(
13804
13804
  te,
13805
13805
  V,
13806
- j,
13807
- U
13806
+ U,
13807
+ j
13808
13808
  );
13809
13809
  }
13810
13810
  function P(te, V, le, ie, Ce) {
13811
- const j = typeof Ce == "string" && Ce.indexOf("-force") !== -1, Z = j === !0 ? Ce.replace("-force", "") : Ce, U = Z !== void 0 ? Z : "start";
13812
- let Q = Math.max(0, le - p.value[U]), Y = Q + p.value.total;
13811
+ const U = typeof Ce == "string" && Ce.indexOf("-force") !== -1, G = U === !0 ? Ce.replace("-force", "") : Ce, j = G !== void 0 ? G : "start";
13812
+ let Q = Math.max(0, le - p.value[j]), Y = Q + p.value.total;
13813
13813
  Y > e.value && (Y = e.value, Q = Math.max(0, Y - p.value.total)), c = V.scrollStart;
13814
- const ge = Q !== y.value.from || Y !== y.value.to;
13815
- if (ge === !1 && Z === void 0) {
13814
+ const be = Q !== y.value.from || Y !== y.value.to;
13815
+ if (be === !1 && G === void 0) {
13816
13816
  oe(le);
13817
13817
  return;
13818
13818
  }
13819
- const { activeElement: re } = document, ye = h.value;
13820
- ge === !0 && ye !== null && ye !== re && ye.contains(re) === !0 && (ye.addEventListener("focusout", O), setTimeout(() => {
13821
- ye !== null && ye.removeEventListener("focusout", O);
13822
- })), iS(ye, le - Q);
13823
- const ue = Z !== void 0 ? f.slice(Q, le).reduce($i, 0) : 0;
13824
- if (ge === !0) {
13819
+ const { activeElement: re } = document, ge = h.value;
13820
+ be === !0 && ge !== null && ge !== re && ge.contains(re) === !0 && (ge.addEventListener("focusout", O), setTimeout(() => {
13821
+ ge !== null && ge.removeEventListener("focusout", O);
13822
+ })), iS(ge, le - Q);
13823
+ const ue = G !== void 0 ? f.slice(Q, le).reduce($i, 0) : 0;
13824
+ if (be === !0) {
13825
13825
  const Ie = Y >= y.value.from && Q <= y.value.to ? y.value.to : Y;
13826
13826
  y.value = { from: Q, to: Ie }, m.value = ao(v, f, 0, Q), g.value = ao(v, f, Y, e.value), requestAnimationFrame(() => {
13827
13827
  y.value.to !== Y && c === V.scrollStart && (y.value = { from: y.value.from, to: Y }, g.value = ao(v, f, Y, e.value));
@@ -13830,12 +13830,12 @@ function qg({
13830
13830
  requestAnimationFrame(() => {
13831
13831
  if (c !== V.scrollStart)
13832
13832
  return;
13833
- ge === !0 && D(Q);
13833
+ be === !0 && D(Q);
13834
13834
  const Ie = f.slice(Q, le).reduce($i, 0), Xe = Ie + V.offsetStart + m.value, $e = Xe + f[le];
13835
13835
  let Ze = Xe + ie;
13836
- if (Z !== void 0) {
13836
+ if (G !== void 0) {
13837
13837
  const ot = Ie - ue, H = V.scrollStart + ot;
13838
- Ze = j !== !0 && H < Xe && $e < H + V.scrollViewSize ? H : Z === "end" ? $e - V.scrollViewSize : Xe - (Z === "start" ? 0 : Math.round((V.scrollViewSize - f[le]) / 2));
13838
+ Ze = U !== !0 && H < Xe && $e < H + V.scrollViewSize ? H : G === "end" ? $e - V.scrollViewSize : Xe - (G === "start" ? 0 : Math.round((V.scrollViewSize - f[le]) / 2));
13839
13839
  }
13840
13840
  c = Ze, Pv(
13841
13841
  te,
@@ -13852,11 +13852,11 @@ function qg({
13852
13852
  V.children,
13853
13853
  (Q) => Q.classList && Q.classList.contains("q-virtual-scroll--skip") === !1
13854
13854
  ), ie = le.length, Ce = i.virtualScrollHorizontal === !0 ? (Q) => Q.getBoundingClientRect().width : (Q) => Q.offsetHeight;
13855
- let j = te, Z, U;
13855
+ let U = te, G, j;
13856
13856
  for (let Q = 0; Q < ie; ) {
13857
- for (Z = Ce(le[Q]), Q++; Q < ie && le[Q].classList.contains("q-virtual-scroll--with-prev") === !0; )
13858
- Z += Ce(le[Q]), Q++;
13859
- U = Z - f[j], U !== 0 && (f[j] += U, v[Math.floor(j / vr)] += U), j++;
13857
+ for (G = Ce(le[Q]), Q++; Q < ie && le[Q].classList.contains("q-virtual-scroll--with-prev") === !0; )
13858
+ G += Ce(le[Q]), Q++;
13859
+ j = G - f[U], j !== 0 && (f[U] += j, v[Math.floor(U / vr)] += j), U++;
13860
13860
  }
13861
13861
  }
13862
13862
  }
@@ -13868,16 +13868,16 @@ function qg({
13868
13868
  (V === !0 || Array.isArray(f) === !1) && (f = []);
13869
13869
  const ie = f.length;
13870
13870
  f.length = e.value;
13871
- for (let j = e.value - 1; j >= ie; j--)
13872
- f[j] = le;
13871
+ for (let U = e.value - 1; U >= ie; U--)
13872
+ f[U] = le;
13873
13873
  const Ce = Math.floor((e.value - 1) / vr);
13874
13874
  v = [];
13875
- for (let j = 0; j <= Ce; j++) {
13876
- let Z = 0;
13877
- const U = Math.min((j + 1) * vr, e.value);
13878
- for (let Q = j * vr; Q < U; Q++)
13879
- Z += f[Q];
13880
- v.push(Z);
13875
+ for (let U = 0; U <= Ce; U++) {
13876
+ let G = 0;
13877
+ const j = Math.min((U + 1) * vr, e.value);
13878
+ for (let Q = U * vr; Q < j; Q++)
13879
+ G += f[Q];
13880
+ v.push(G);
13881
13881
  }
13882
13882
  u = -1, c = void 0, m.value = ao(v, f, 0, y.value.from), g.value = ao(v, f, y.value.to, e.value), te >= 0 ? (D(y.value.from), ht(() => {
13883
13883
  E(te);
@@ -13885,9 +13885,9 @@ function qg({
13885
13885
  }
13886
13886
  function K(te) {
13887
13887
  if (te === void 0 && typeof window < "u") {
13888
- const Z = t();
13889
- Z != null && Z.nodeType !== 8 && (te = lu(
13890
- Z,
13888
+ const G = t();
13889
+ G != null && G.nodeType !== 8 && (te = lu(
13890
+ G,
13891
13891
  n(),
13892
13892
  _.value,
13893
13893
  C.value,
@@ -13898,16 +13898,16 @@ function qg({
13898
13898
  ).scrollViewSize);
13899
13899
  }
13900
13900
  d = te;
13901
- const V = parseFloat(i.virtualScrollSliceRatioBefore) || 0, le = parseFloat(i.virtualScrollSliceRatioAfter) || 0, ie = 1 + V + le, Ce = te === void 0 || te <= 0 ? 1 : Math.ceil(te / r.value), j = Math.max(
13901
+ const V = parseFloat(i.virtualScrollSliceRatioBefore) || 0, le = parseFloat(i.virtualScrollSliceRatioAfter) || 0, ie = 1 + V + le, Ce = te === void 0 || te <= 0 ? 1 : Math.ceil(te / r.value), U = Math.max(
13902
13902
  1,
13903
13903
  Ce,
13904
13904
  Math.ceil((i.virtualScrollSliceSize > 0 ? i.virtualScrollSliceSize : 10) / ie)
13905
13905
  );
13906
13906
  p.value = {
13907
- total: Math.ceil(j * ie),
13908
- start: Math.ceil(j * V),
13909
- center: Math.ceil(j * (0.5 + V)),
13910
- end: Math.ceil(j * (1 + V)),
13907
+ total: Math.ceil(U * ie),
13908
+ start: Math.ceil(U * V),
13909
+ center: Math.ceil(U * (0.5 + V)),
13910
+ end: Math.ceil(U * (1 + V)),
13911
13911
  view: Ce
13912
13912
  };
13913
13913
  }
@@ -14124,14 +14124,14 @@ var Dn = Se({
14124
14124
  const Qe = e[He];
14125
14125
  Qe !== void 0 && (ne[He] = Qe);
14126
14126
  }), ne;
14127
- }), ie = b(() => e.optionsDark === null ? te.isDark.value : e.optionsDark), Ce = b(() => Qa(V.value)), j = b(() => {
14127
+ }), ie = b(() => e.optionsDark === null ? te.isDark.value : e.optionsDark), Ce = b(() => Qa(V.value)), U = b(() => {
14128
14128
  let ne = "q-field__input q-placeholder col";
14129
14129
  return e.hideSelected === !0 || V.value.length === 0 ? [ne, e.inputClass] : (ne += " q-field__input--padding", e.inputClass === void 0 ? ne : [ne, e.inputClass]);
14130
- }), Z = b(
14130
+ }), G = b(
14131
14131
  () => (e.virtualScrollHorizontal === !0 ? "q-virtual-scroll--horizontal" : "") + (e.popupContentClass ? " " + e.popupContentClass : "")
14132
- ), U = b(() => P.value === 0), Q = b(
14133
- () => V.value.map((ne) => G.value(ne)).join(", ")
14134
- ), Y = b(() => e.displayValue !== void 0 ? e.displayValue : Q.value), ge = b(() => e.optionsHtml === !0 ? () => !0 : (ne) => ne != null && ne.html === !0), re = b(() => e.displayValueHtml === !0 || e.displayValue === void 0 && (e.optionsHtml === !0 || V.value.some(ge.value))), ye = b(() => te.focused.value === !0 ? e.tabindex : -1), ue = b(() => {
14132
+ ), j = b(() => P.value === 0), Q = b(
14133
+ () => V.value.map((ne) => X.value(ne)).join(", ")
14134
+ ), Y = b(() => e.displayValue !== void 0 ? e.displayValue : Q.value), be = b(() => e.optionsHtml === !0 ? () => !0 : (ne) => ne != null && ne.html === !0), re = b(() => e.displayValueHtml === !0 || e.displayValue === void 0 && (e.optionsHtml === !0 || V.value.some(be.value))), ge = b(() => te.focused.value === !0 ? e.tabindex : -1), ue = b(() => {
14135
14135
  const ne = {
14136
14136
  tabindex: e.tabindex,
14137
14137
  role: "combobox",
@@ -14149,17 +14149,17 @@ var Dn = Se({
14149
14149
  })), Xe = b(() => V.value.map((ne, He) => ({
14150
14150
  index: He,
14151
14151
  opt: ne,
14152
- html: ge.value(ne),
14152
+ html: be.value(ne),
14153
14153
  selected: !0,
14154
- removeAtIndex: be,
14154
+ removeAtIndex: ye,
14155
14155
  toggleOption: nt,
14156
- tabindex: ye.value
14156
+ tabindex: ge.value
14157
14157
  }))), $e = b(() => {
14158
14158
  if (P.value === 0)
14159
14159
  return [];
14160
14160
  const { from: ne, to: He } = O.value;
14161
14161
  return e.options.slice(ne, He).map((Qe, kt) => {
14162
- const Qt = X.value(Qe) === !0, Ut = Ee(Qe) === !0, In = ne + kt, un = {
14162
+ const Qt = Z.value(Qe) === !0, Ut = Ee(Qe) === !0, In = ne + kt, un = {
14163
14163
  clickable: !0,
14164
14164
  active: Ut,
14165
14165
  activeClass: H.value,
@@ -14181,8 +14181,8 @@ var Dn = Se({
14181
14181
  })), {
14182
14182
  index: In,
14183
14183
  opt: Qe,
14184
- html: ge.value(Qe),
14185
- label: G.value(Qe),
14184
+ html: be.value(Qe),
14185
+ label: X.value(Qe),
14186
14186
  selected: un.active,
14187
14187
  focused: un.focused,
14188
14188
  toggleOption: nt,
@@ -14192,7 +14192,7 @@ var Dn = Se({
14192
14192
  });
14193
14193
  }), Ze = b(() => e.dropdownIcon !== void 0 ? e.dropdownIcon : a.iconSet.arrow.dropdown), ot = b(
14194
14194
  () => e.optionsCover === !1 && e.outlined !== !0 && e.standout !== !0 && e.borderless !== !0 && e.rounded !== !0
14195
- ), H = b(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), W = b(() => su(e.optionValue, "value")), G = b(() => su(e.optionLabel, "label")), X = b(() => su(e.optionDisable, "disable")), ke = b(() => V.value.map(W.value)), Le = b(() => {
14195
+ ), H = b(() => e.optionsSelectedClass !== void 0 ? e.optionsSelectedClass : e.color !== void 0 ? `text-${e.color}` : ""), W = b(() => su(e.optionValue, "value")), X = b(() => su(e.optionLabel, "label")), Z = b(() => su(e.optionDisable, "disable")), ke = b(() => V.value.map(W.value)), Le = b(() => {
14196
14196
  const ne = {
14197
14197
  onInput: _e,
14198
14198
  // Safari < 10.2 & UIWebView doesn't fire compositionend when
@@ -14224,14 +14224,14 @@ var Dn = Se({
14224
14224
  } else
14225
14225
  n("update:modelValue", null);
14226
14226
  }
14227
- function be(ne) {
14227
+ function ye(ne) {
14228
14228
  se(ne), te.focus();
14229
14229
  }
14230
14230
  function Ke(ne, He) {
14231
14231
  const Qe = Be(ne);
14232
14232
  if (e.multiple !== !0) {
14233
14233
  e.fillInput === !0 && et(
14234
- G.value(ne),
14234
+ X.value(ne),
14235
14235
  !0,
14236
14236
  !0
14237
14237
  ), n("update:modelValue", Qe);
@@ -14247,12 +14247,12 @@ var Dn = Se({
14247
14247
  n("add", { index: kt.length, value: Qe }), kt.push(Qe), n("update:modelValue", kt);
14248
14248
  }
14249
14249
  function nt(ne, He) {
14250
- if (te.editable.value !== !0 || ne === void 0 || X.value(ne) === !0)
14250
+ if (te.editable.value !== !0 || ne === void 0 || Z.value(ne) === !0)
14251
14251
  return;
14252
14252
  const Qe = W.value(ne);
14253
14253
  if (e.multiple !== !0) {
14254
14254
  He !== !0 && (et(
14255
- e.fillInput === !0 ? G.value(ne) : "",
14255
+ e.fillInput === !0 ? X.value(ne) : "",
14256
14256
  !0,
14257
14257
  !0
14258
14258
  ), Xn()), x.value !== null && x.value.focus(), (V.value.length === 0 || hr(W.value(V.value[0]), Qe) !== !0) && n("update:modelValue", e.emitValue === !0 ? Qe : ne);
@@ -14289,9 +14289,9 @@ var Dn = Se({
14289
14289
  -1,
14290
14290
  P.value - 1
14291
14291
  );
14292
- while (Qe !== -1 && Qe !== l.value && X.value(e.options[Qe]) === !0);
14292
+ while (Qe !== -1 && Qe !== l.value && Z.value(e.options[Qe]) === !0);
14293
14293
  l.value !== Qe && (me(Qe), ce(Qe), He !== !0 && e.useInput === !0 && e.fillInput === !0 && Fe(
14294
- Qe >= 0 ? G.value(e.options[Qe]) : _,
14294
+ Qe >= 0 ? X.value(e.options[Qe]) : _,
14295
14295
  !0
14296
14296
  ));
14297
14297
  }
@@ -14321,7 +14321,7 @@ var Dn = Se({
14321
14321
  const In = e.options.find((un) => String(Ut.value(un)).toLocaleLowerCase() === Qe);
14322
14322
  return In === void 0 ? !1 : (V.value.indexOf(In) === -1 ? nt(In) : Xn(), !0);
14323
14323
  }, Qt = (Ut) => {
14324
- kt(W) !== !0 && Ut !== !0 && kt(G) !== !0 && rt(He, !0, () => Qt(!0));
14324
+ kt(W) !== !0 && Ut !== !0 && kt(X) !== !0 && rt(He, !0, () => Qt(!0));
14325
14325
  };
14326
14326
  Qt();
14327
14327
  } else
@@ -14366,12 +14366,12 @@ var Dn = Se({
14366
14366
  y = Date.now() + 1500, Ut === !1 && (vt(ne), h += Qt);
14367
14367
  const In = new RegExp("^" + h.split("").map((Ms) => oS.indexOf(Ms) !== -1 ? "\\" + Ms : Ms).join(".*"), "i");
14368
14368
  let un = l.value;
14369
- if (Ut === !0 || un < 0 || In.test(G.value(e.options[un])) !== !0)
14369
+ if (Ut === !0 || un < 0 || In.test(X.value(e.options[un])) !== !0)
14370
14370
  do
14371
14371
  un = Rl(un + 1, -1, kt - 1);
14372
- while (un !== l.value && (X.value(e.options[un]) === !0 || In.test(G.value(e.options[un])) !== !0));
14372
+ while (un !== l.value && (Z.value(e.options[un]) === !0 || In.test(X.value(e.options[un])) !== !0));
14373
14373
  l.value !== un && ht(() => {
14374
- me(un), ce(un), un >= 0 && e.useInput === !0 && e.fillInput === !0 && Fe(G.value(e.options[un]), !0);
14374
+ me(un), ce(un), un >= 0 && e.useInput === !0 && e.fillInput === !0 && Fe(X.value(e.options[un]), !0);
14375
14375
  });
14376
14376
  return;
14377
14377
  }
@@ -14406,16 +14406,16 @@ var Dn = Se({
14406
14406
  function tr() {
14407
14407
  return e.hideSelected === !0 ? [] : t["selected-item"] !== void 0 ? Xe.value.map((ne) => t["selected-item"](ne)).slice() : t.selected !== void 0 ? [].concat(t.selected()) : e.useChips === !0 ? Xe.value.map((ne, He) => w(Ap, {
14408
14408
  key: "option-" + He,
14409
- removable: te.editable.value === !0 && X.value(ne.opt) !== !0,
14409
+ removable: te.editable.value === !0 && Z.value(ne.opt) !== !0,
14410
14410
  dense: !0,
14411
14411
  textColor: e.color,
14412
- tabindex: ye.value,
14412
+ tabindex: ge.value,
14413
14413
  onRemove() {
14414
14414
  ne.removeAtIndex(He);
14415
14415
  }
14416
14416
  }, () => w("span", {
14417
14417
  class: "ellipsis",
14418
- [ne.html === !0 ? "innerHTML" : "textContent"]: G.value(ne.opt)
14418
+ [ne.html === !0 ? "innerHTML" : "textContent"]: X.value(ne.opt)
14419
14419
  }))) : [
14420
14420
  w("span", {
14421
14421
  [re.value === !0 ? "innerHTML" : "textContent"]: Y.value
@@ -14423,7 +14423,7 @@ var Dn = Se({
14423
14423
  ];
14424
14424
  }
14425
14425
  function Sr() {
14426
- if (U.value === !0)
14426
+ if (j.value === !0)
14427
14427
  return t["no-option"] !== void 0 ? t["no-option"]({ inputValue: s.value }) : void 0;
14428
14428
  const ne = t.option !== void 0 ? t.option : (Qe) => w(mn, {
14429
14429
  key: Qe.index,
@@ -14444,7 +14444,7 @@ var Dn = Se({
14444
14444
  const Qe = He === !0 ? { ...ue.value, ...te.splitAttrs.attributes.value } : void 0, kt = {
14445
14445
  ref: He === !0 ? x : void 0,
14446
14446
  key: "i_t",
14447
- class: j.value,
14447
+ class: U.value,
14448
14448
  style: e.inputStyle,
14449
14449
  value: s.value !== void 0 ? s.value : "",
14450
14450
  // required for Android in order to show ENTER key when in form
@@ -14476,7 +14476,7 @@ var Dn = Se({
14476
14476
  function rt(ne, He, Qe) {
14477
14477
  if (e.onFilter === void 0 || He !== !0 && te.focused.value !== !0)
14478
14478
  return;
14479
- te.innerLoading.value === !0 ? n("filterAbort") : (te.innerLoading.value = !0, u.value = !0), ne !== "" && e.multiple !== !0 && V.value.length !== 0 && g !== !0 && ne === G.value(V.value[0]) && (ne = "");
14479
+ te.innerLoading.value === !0 ? n("filterAbort") : (te.innerLoading.value = !0, u.value = !0), ne !== "" && e.multiple !== !0 && V.value.length !== 0 && g !== !0 && ne === X.value(V.value[0]) && (ne = "");
14480
14480
  const kt = setTimeout(() => {
14481
14481
  i.value === !0 && (i.value = !1);
14482
14482
  }, 10);
@@ -14500,11 +14500,11 @@ var Dn = Se({
14500
14500
  function _t() {
14501
14501
  return w(ri, {
14502
14502
  ref: A,
14503
- class: Z.value,
14503
+ class: G.value,
14504
14504
  style: e.popupContentStyle,
14505
14505
  modelValue: i.value,
14506
14506
  fit: e.menuShrink !== !0,
14507
- cover: e.optionsCover === !0 && U.value !== !0 && e.useInput !== !0,
14507
+ cover: e.optionsCover === !0 && j.value !== !0 && e.useInput !== !0,
14508
14508
  anchor: e.menuAnchor,
14509
14509
  self: e.menuSelf,
14510
14510
  offset: e.menuOffset,
@@ -14564,7 +14564,7 @@ var Dn = Se({
14564
14564
  return i.value === !0 && ne.push(
14565
14565
  w("div", {
14566
14566
  ref: I,
14567
- class: Z.value + " scroll",
14567
+ class: G.value + " scroll",
14568
14568
  style: e.popupContentStyle,
14569
14569
  ...Ie.value,
14570
14570
  onClick: gn,
@@ -14604,14 +14604,14 @@ var Dn = Se({
14604
14604
  function Dt(ne) {
14605
14605
  te.editable.value === !0 && (m === !0 ? (te.onControlFocusin(ne), o.value = !0, ht(() => {
14606
14606
  te.focus();
14607
- })) : te.focus(), e.onFilter !== void 0 ? rt(s.value) : (U.value !== !0 || t["no-option"] !== void 0) && (i.value = !0));
14607
+ })) : te.focus(), e.onFilter !== void 0 ? rt(s.value) : (j.value !== !0 || t["no-option"] !== void 0) && (i.value = !0));
14608
14608
  }
14609
14609
  function Xn() {
14610
14610
  o.value = !1, dt();
14611
14611
  }
14612
14612
  function ai() {
14613
14613
  e.useInput === !0 && et(
14614
- e.multiple !== !0 && e.fillInput === !0 && V.value.length !== 0 && G.value(V.value[0]) || "",
14614
+ e.multiple !== !0 && e.fillInput === !0 && V.value.length !== 0 && X.value(V.value[0]) || "",
14615
14615
  !0,
14616
14616
  !0
14617
14617
  );
@@ -14642,7 +14642,7 @@ var Dn = Se({
14642
14642
  ne !== void 0 && en(ne), n("popupHide", ne), te.hasPopupOpen = !1, te.onControlFocusout(ne);
14643
14643
  }
14644
14644
  function If() {
14645
- m = a.platform.is.mobile !== !0 && e.behavior !== "dialog" ? !1 : e.behavior !== "menu" && (e.useInput === !0 ? t["no-option"] !== void 0 || e.onFilter !== void 0 || U.value === !1 : !0), C = a.platform.is.ios === !0 && m === !0 && e.useInput === !0 ? "fade" : e.transitionShow;
14645
+ m = a.platform.is.mobile !== !0 && e.behavior !== "dialog" ? !1 : e.behavior !== "menu" && (e.useInput === !0 ? t["no-option"] !== void 0 || e.onFilter !== void 0 || j.value === !1 : !0), C = a.platform.is.ios === !0 && m === !0 && e.useInput === !0 ? "fade" : e.transitionShow;
14646
14646
  }
14647
14647
  return Bo(If), I0(Tf), If(), bt(() => {
14648
14648
  d !== null && clearTimeout(d), v !== null && clearTimeout(v);
@@ -14660,9 +14660,9 @@ var Dn = Se({
14660
14660
  updateInputValue: et,
14661
14661
  isOptionSelected: Ee,
14662
14662
  getEmittingOptionValue: Be,
14663
- isOptionDisabled: (...ne) => X.value.apply(null, ne) === !0,
14663
+ isOptionDisabled: (...ne) => Z.value.apply(null, ne) === !0,
14664
14664
  getOptionValue: (...ne) => W.value.apply(null, ne),
14665
- getOptionLabel: (...ne) => G.value.apply(null, ne)
14665
+ getOptionLabel: (...ne) => X.value.apply(null, ne)
14666
14666
  }), Object.assign(te, {
14667
14667
  innerValue: V,
14668
14668
  fieldClass: b(
@@ -14676,7 +14676,7 @@ var Dn = Se({
14676
14676
  () => e.hideSelected !== !0 && Ce.value === !0 || typeof s.value == "number" || s.value.length !== 0 || Qa(e.displayValue)
14677
14677
  ),
14678
14678
  getControlChild: () => {
14679
- if (te.editable.value !== !1 && (o.value === !0 || U.value !== !0 || t["no-option"] !== void 0))
14679
+ if (te.editable.value !== !1 && (o.value === !0 || j.value !== !0 || t["no-option"] !== void 0))
14680
14680
  return m === !0 ? Me() : _t();
14681
14681
  te.hasPopupOpen === !0 && (te.hasPopupOpen = !1);
14682
14682
  },
@@ -16236,7 +16236,7 @@ var jn = Se({
16236
16236
  if (_.value === !0)
16237
16237
  return _e;
16238
16238
  const { rowsPerPage: Fe } = p.value;
16239
- return Fe !== 0 && (Z.value === 0 && e.rows !== _e ? _e.length > U.value && (_e = _e.slice(0, U.value)) : _e = _e.slice(Z.value, U.value)), _e;
16239
+ return Fe !== 0 && (G.value === 0 && e.rows !== _e ? _e.length > j.value && (_e = _e.slice(0, j.value)) : _e = _e.slice(G.value, j.value)), _e;
16240
16240
  }), {
16241
16241
  hasSelectionMode: M,
16242
16242
  singleSelection: P,
@@ -16247,14 +16247,14 @@ var jn = Se({
16247
16247
  isRowSelected: ee,
16248
16248
  clearSelection: oe,
16249
16249
  updateSelection: ce
16250
- } = GS(e, n, E, s), { colList: Pe, computedCols: te, computedColsMap: V, computedColspan: le } = n1(e, p, M), { columnToSort: ie, computedSortMethod: Ce, sort: j } = US(e, p, Pe, h), {
16251
- firstRowIndex: Z,
16252
- lastRowIndex: U,
16250
+ } = GS(e, n, E, s), { colList: Pe, computedCols: te, computedColsMap: V, computedColspan: le } = n1(e, p, M), { columnToSort: ie, computedSortMethod: Ce, sort: U } = US(e, p, Pe, h), {
16251
+ firstRowIndex: G,
16252
+ lastRowIndex: j,
16253
16253
  isFirstPage: Q,
16254
16254
  isLastPage: Y,
16255
- pagesNumber: ge,
16255
+ pagesNumber: be,
16256
16256
  computedRowsPerPageOptions: re,
16257
- computedRowsNumber: ye,
16257
+ computedRowsNumber: ge,
16258
16258
  firstPage: ue,
16259
16259
  prevPage: Ie,
16260
16260
  nextPage: Xe,
@@ -16290,7 +16290,7 @@ var jn = Se({
16290
16290
  items: E.value,
16291
16291
  type: "__qtable",
16292
16292
  tableColspan: le.value,
16293
- onVirtualScroll: X
16293
+ onVirtualScroll: Z
16294
16294
  }, _t);
16295
16295
  }
16296
16296
  const Fe = [
@@ -16301,7 +16301,7 @@ var jn = Se({
16301
16301
  style: e.tableStyle
16302
16302
  }, Fe);
16303
16303
  }
16304
- function G(_e, Fe) {
16304
+ function X(_e, Fe) {
16305
16305
  if (u.value !== null) {
16306
16306
  u.value.scrollTo(_e, Fe);
16307
16307
  return;
@@ -16318,7 +16318,7 @@ var jn = Se({
16318
16318
  });
16319
16319
  }
16320
16320
  }
16321
- function X(_e) {
16321
+ function Z(_e) {
16322
16322
  n("virtualScroll", _e);
16323
16323
  }
16324
16324
  function ke() {
@@ -16345,7 +16345,7 @@ var jn = Se({
16345
16345
  );
16346
16346
  const Jt = t["body-cell"], z = te.value.map((he) => {
16347
16347
  const Me = t[`body-cell-${he.name}`], Ve = Me !== void 0 ? Me : Jt;
16348
- return Ve !== void 0 ? Ve(be({ key: rt, row: _e, pageIndex: et, col: he })) : w("td", {
16348
+ return Ve !== void 0 ? Ve(ye({ key: rt, row: _e, pageIndex: et, col: he })) : w("td", {
16349
16349
  class: he.__tdClass(_e),
16350
16350
  style: he.__tdStyle(_e)
16351
16351
  }, me(he, _e));
@@ -16387,7 +16387,7 @@ var jn = Se({
16387
16387
  (Fe) => pn({ ...Fe }, "value", () => me(Fe, _e.row))
16388
16388
  ), _e;
16389
16389
  }
16390
- function be(_e) {
16390
+ function ye(_e) {
16391
16391
  return nt(_e), pn(_e, "value", () => me(_e.col, _e.row)), _e;
16392
16392
  }
16393
16393
  function Ke(_e) {
@@ -16397,8 +16397,8 @@ var jn = Se({
16397
16397
  Object.assign(_e, {
16398
16398
  cols: te.value,
16399
16399
  colsMap: V.value,
16400
- sort: j,
16401
- rowIndex: Z.value + _e.pageIndex,
16400
+ sort: U,
16401
+ rowIndex: G.value + _e.pageIndex,
16402
16402
  color: e.color,
16403
16403
  dark: i.value,
16404
16404
  dense: e.dense
@@ -16424,7 +16424,7 @@ var jn = Se({
16424
16424
  }
16425
16425
  const Oe = b(() => ({
16426
16426
  pagination: p.value,
16427
- pagesNumber: ge.value,
16427
+ pagesNumber: be.value,
16428
16428
  isFirstPage: Q.value,
16429
16429
  isLastPage: Y.value,
16430
16430
  firstPage: ue,
@@ -16511,7 +16511,7 @@ var jn = Se({
16511
16511
  function ze(_e) {
16512
16512
  return Object.assign(_e, {
16513
16513
  cols: te.value,
16514
- sort: j,
16514
+ sort: U,
16515
16515
  colsMap: V.value,
16516
16516
  color: e.color,
16517
16517
  dark: i.value,
@@ -16605,16 +16605,16 @@ var jn = Se({
16605
16605
  Fe = _t(Oe.value);
16606
16606
  else if (Fe = [
16607
16607
  w("span", et !== 0 ? { class: "q-table__bottom-item" } : {}, [
16608
- et ? rt(Z.value + 1, Math.min(U.value, ye.value), ye.value) : rt(1, I.value, ye.value)
16608
+ et ? rt(G.value + 1, Math.min(j.value, ge.value), ge.value) : rt(1, I.value, ge.value)
16609
16609
  ])
16610
- ], et !== 0 && ge.value > 1) {
16610
+ ], et !== 0 && be.value > 1) {
16611
16611
  const z = {
16612
16612
  color: e.color,
16613
16613
  round: !0,
16614
16614
  dense: !0,
16615
16615
  flat: !0
16616
16616
  };
16617
- e.dense === !0 && (z.size = "sm"), ge.value > 2 && Fe.push(
16617
+ e.dense === !0 && (z.size = "sm"), be.value > 2 && Fe.push(
16618
16618
  w(Ae, {
16619
16619
  key: "pgFirst",
16620
16620
  ...z,
@@ -16637,7 +16637,7 @@ var jn = Se({
16637
16637
  disable: Y.value,
16638
16638
  onClick: Xe
16639
16639
  })
16640
- ), ge.value > 2 && Fe.push(
16640
+ ), be.value > 2 && Fe.push(
16641
16641
  w(Ae, {
16642
16642
  key: "pgLast",
16643
16643
  ...z,
@@ -16724,14 +16724,14 @@ var jn = Se({
16724
16724
  clearSelection: oe,
16725
16725
  isRowExpanded: k,
16726
16726
  setExpanded: x,
16727
- sort: j,
16727
+ sort: U,
16728
16728
  resetVirtualScroll: H,
16729
- scrollTo: G,
16729
+ scrollTo: X,
16730
16730
  getCellValue: me
16731
16731
  }), Kh(r.proxy, {
16732
16732
  filteredSortedRows: () => $.value,
16733
16733
  computedRows: () => E.value,
16734
- computedRowsNumber: () => ye.value
16734
+ computedRowsNumber: () => ge.value
16735
16735
  }), () => {
16736
16736
  const _e = [de()], Fe = { ref: c, class: m.value };
16737
16737
  return e.grid === !0 ? _e.push(Sr()) : Object.assign(Fe, {
@@ -16858,7 +16858,7 @@ Se({
16858
16858
  setup(e, { slots: t, emit: n }) {
16859
16859
  const r = De(), { $q: a } = r.proxy, i = Et(e, a), { tabindex: o, headerClass: l, getLocale: s, getCurrentDate: c } = Zp(e, a), u = zo(e), d = Sa(u);
16860
16860
  let v, f;
16861
- const m = R(null), g = b(() => Ce()), p = b(() => s()), _ = b(() => j()), C = mo(
16861
+ const m = R(null), g = b(() => Ce()), p = b(() => s()), _ = b(() => U()), C = mo(
16862
16862
  e.modelValue,
16863
16863
  g.value,
16864
16864
  // initial mask
@@ -16926,7 +16926,7 @@ Se({
16926
16926
  (Oe.dateHash !== y.value.dateHash || Oe.timeHash !== y.value.timeHash) && (y.value = Oe, Oe.hour === null ? h.value = "hour" : k.value = Oe.hour < 12);
16927
16927
  }), pe([g, p], () => {
16928
16928
  ht(() => {
16929
- be();
16929
+ ye();
16930
16930
  });
16931
16931
  });
16932
16932
  function te() {
@@ -16934,7 +16934,7 @@ Se({
16934
16934
  ...c(),
16935
16935
  ...a1()
16936
16936
  };
16937
- be(me), Object.assign(y.value, me), h.value = "hour";
16937
+ ye(me), Object.assign(y.value, me), h.value = "hour";
16938
16938
  }
16939
16939
  function V(me, Oe, de) {
16940
16940
  const Ee = Array.apply(null, { length: Oe + 1 }).map((je, lt) => {
@@ -16967,17 +16967,17 @@ Se({
16967
16967
  function Ce() {
16968
16968
  return e.calendar !== "persian" && e.mask !== null ? e.mask : `HH:mm${e.withSeconds === !0 ? ":ss" : ""}`;
16969
16969
  }
16970
- function j() {
16970
+ function U() {
16971
16971
  if (typeof e.defaultDate != "string") {
16972
16972
  const me = c(!0);
16973
16973
  return me.dateHash = Rr(me), me;
16974
16974
  }
16975
16975
  return mo(e.defaultDate, "YYYY/MM/DD", void 0, e.calendar);
16976
16976
  }
16977
- function Z() {
16977
+ function G() {
16978
16978
  return sa(r) === !0 || oe.value !== null && (oe.value.values.length === 0 || h.value === "hour" && $.value !== !0 && B.value[k.value === !0 ? "am" : "pm"].values.length === 0);
16979
16979
  }
16980
- function U() {
16980
+ function j() {
16981
16981
  const me = m.value, { top: Oe, left: de, width: Ee } = me.getBoundingClientRect(), je = Ee / 2;
16982
16982
  return {
16983
16983
  top: Oe + je,
@@ -16986,18 +16986,18 @@ Se({
16986
16986
  };
16987
16987
  }
16988
16988
  function Q(me) {
16989
- if (Z() !== !0) {
16989
+ if (G() !== !0) {
16990
16990
  if (me.isFirst === !0) {
16991
- v = U(), f = ge(me.evt, v);
16991
+ v = j(), f = be(me.evt, v);
16992
16992
  return;
16993
16993
  }
16994
- f = ge(me.evt, v, f), me.isFinal === !0 && (v = !1, f = null, Y());
16994
+ f = be(me.evt, v, f), me.isFinal === !0 && (v = !1, f = null, Y());
16995
16995
  }
16996
16996
  }
16997
16997
  function Y() {
16998
16998
  h.value === "hour" ? h.value = "minute" : e.withSeconds && h.value === "minute" && (h.value = "second");
16999
16999
  }
17000
- function ge(me, Oe, de) {
17000
+ function be(me, Oe, de) {
17001
17001
  const Ee = Un(me), je = Math.abs(Ee.top - Oe.top), lt = Math.sqrt(
17002
17002
  Math.pow(Math.abs(Ee.top - Oe.top), 2) + Math.pow(Math.abs(Ee.left - Oe.left), 2)
17003
17003
  );
@@ -17014,7 +17014,7 @@ Se({
17014
17014
  $.value === !0 && (k.value = ze < 12);
17015
17015
  } else
17016
17016
  ze = Math.round(gt / 6) % 60, h.value === "minute" && K.value !== null ? ze = ie(ze, K.value) : h.value === "second" && ee.value !== null && (ze = ie(ze, ee.value));
17017
- return de !== ze && X[h.value](ze), ze;
17017
+ return de !== ze && Z[h.value](ze), ze;
17018
17018
  }
17019
17019
  const re = {
17020
17020
  hour() {
@@ -17027,17 +17027,17 @@ Se({
17027
17027
  h.value = "second";
17028
17028
  }
17029
17029
  };
17030
- function ye(me) {
17030
+ function ge(me) {
17031
17031
  me.keyCode === 13 && ke();
17032
17032
  }
17033
17033
  function ue(me) {
17034
17034
  me.keyCode === 13 && Le();
17035
17035
  }
17036
17036
  function Ie(me) {
17037
- Z() !== !0 && (a.platform.is.desktop !== !0 && ge(me, U()), Y());
17037
+ G() !== !0 && (a.platform.is.desktop !== !0 && be(me, j()), Y());
17038
17038
  }
17039
17039
  function Xe(me) {
17040
- Z() !== !0 && ge(me, U());
17040
+ G() !== !0 && be(me, j());
17041
17041
  }
17042
17042
  function $e(me) {
17043
17043
  if (me.keyCode === 13)
@@ -17091,14 +17091,14 @@ Se({
17091
17091
  if (de.length === 0)
17092
17092
  return;
17093
17093
  if (y.value.seconds === null)
17094
- G(de[0]);
17094
+ X(de[0]);
17095
17095
  else {
17096
17096
  const Ee = (de.length + de.indexOf(y.value.second) + Oe) % de.length;
17097
- G(de[Ee]);
17097
+ X(de[Ee]);
17098
17098
  }
17099
17099
  } else {
17100
17100
  const de = y.value.second === null ? -Oe : y.value.second;
17101
- G((60 + de + Oe) % 60);
17101
+ X((60 + de + Oe) % 60);
17102
17102
  }
17103
17103
  }
17104
17104
  }
@@ -17108,13 +17108,13 @@ Se({
17108
17108
  function W(me) {
17109
17109
  y.value.minute !== me && (y.value.minute = me, se());
17110
17110
  }
17111
- function G(me) {
17111
+ function X(me) {
17112
17112
  y.value.second !== me && (y.value.second = me, se());
17113
17113
  }
17114
- const X = {
17114
+ const Z = {
17115
17115
  hour: H,
17116
17116
  minute: W,
17117
- second: G
17117
+ second: X
17118
17118
  };
17119
17119
  function ke() {
17120
17120
  k.value === !1 && (k.value = !0, y.value.hour !== null && (y.value.hour -= 12, se()));
@@ -17139,9 +17139,9 @@ Se({
17139
17139
  y.value.second = null, Be("second");
17140
17140
  return;
17141
17141
  }
17142
- y.value.hour === null || y.value.minute === null || e.withSeconds === !0 && y.value.second === null || be();
17142
+ y.value.hour === null || y.value.minute === null || e.withSeconds === !0 && y.value.second === null || ye();
17143
17143
  }
17144
- function be(me) {
17144
+ function ye(me) {
17145
17145
  const Oe = Object.assign({ ...y.value }, me), de = e.calendar === "persian" ? qt(Oe.hour) + ":" + qt(Oe.minute) + (e.withSeconds === !0 ? ":" + qt(Oe.second) : "") : ag(
17146
17146
  new Date(
17147
17147
  Oe.year,
@@ -17206,7 +17206,7 @@ Se({
17206
17206
  class: "q-time__link " + (k.value === !0 ? "q-time__link--active" : "cursor-pointer"),
17207
17207
  tabindex: o.value,
17208
17208
  onClick: ke,
17209
- onKeyup: ye
17209
+ onKeyup: ge
17210
17210
  }, "AM"),
17211
17211
  w("div", {
17212
17212
  class: "q-time__link " + (k.value !== !0 ? "q-time__link--active" : "cursor-pointer"),
@@ -17479,34 +17479,34 @@ Se({
17479
17479
  return V[e.labelKey] && V[e.labelKey].toLowerCase().indexOf(ie) !== -1;
17480
17480
  }), _ = b(() => {
17481
17481
  const V = {}, le = (ie, Ce) => {
17482
- const j = ie.tickStrategy || (Ce ? Ce.tickStrategy : e.tickStrategy), Z = ie[e.nodeKey], U = ie[e.childrenKey] && Array.isArray(ie[e.childrenKey]) && ie[e.childrenKey].length !== 0, Q = ie.disabled !== !0 && d.value === !0 && ie.selectable !== !1, Y = ie.disabled !== !0 && ie.expandable !== !1, ge = j !== "none", re = j === "strict", ye = j === "leaf-filtered", ue = j === "leaf" || j === "leaf-filtered";
17482
+ const U = ie.tickStrategy || (Ce ? Ce.tickStrategy : e.tickStrategy), G = ie[e.nodeKey], j = ie[e.childrenKey] && Array.isArray(ie[e.childrenKey]) && ie[e.childrenKey].length !== 0, Q = ie.disabled !== !0 && d.value === !0 && ie.selectable !== !1, Y = ie.disabled !== !0 && ie.expandable !== !1, be = U !== "none", re = U === "strict", ge = U === "leaf-filtered", ue = U === "leaf" || U === "leaf-filtered";
17483
17483
  let Ie = ie.disabled !== !0 && ie.tickable !== !1;
17484
17484
  ue === !0 && Ie === !0 && Ce && Ce.tickable !== !0 && (Ie = !1);
17485
17485
  let Xe = ie.lazy;
17486
- Xe === !0 && o.value[Z] !== void 0 && Array.isArray(ie[e.childrenKey]) === !0 && (Xe = o.value[Z]);
17486
+ Xe === !0 && o.value[G] !== void 0 && Array.isArray(ie[e.childrenKey]) === !0 && (Xe = o.value[G]);
17487
17487
  const $e = {
17488
- key: Z,
17488
+ key: G,
17489
17489
  parent: Ce,
17490
- isParent: U,
17490
+ isParent: j,
17491
17491
  lazy: Xe,
17492
17492
  disabled: ie.disabled,
17493
- link: ie.disabled !== !0 && (Q === !0 || Y === !0 && (U === !0 || Xe === !0)),
17493
+ link: ie.disabled !== !0 && (Q === !0 || Y === !0 && (j === !0 || Xe === !0)),
17494
17494
  children: [],
17495
17495
  matchesFilter: e.filter ? p.value(ie, e.filter) : !0,
17496
- selected: Z === e.selected && Q === !0,
17496
+ selected: G === e.selected && Q === !0,
17497
17497
  selectable: Q,
17498
- expanded: U === !0 ? s.value.includes(Z) : !1,
17498
+ expanded: j === !0 ? s.value.includes(G) : !1,
17499
17499
  expandable: Y,
17500
17500
  noTick: ie.noTick === !0 || re !== !0 && Xe && Xe !== "loaded",
17501
17501
  tickable: Ie,
17502
- tickStrategy: j,
17503
- hasTicking: ge,
17502
+ tickStrategy: U,
17503
+ hasTicking: be,
17504
17504
  strictTicking: re,
17505
- leafFilteredTicking: ye,
17505
+ leafFilteredTicking: ge,
17506
17506
  leafTicking: ue,
17507
- ticked: re === !0 ? l.value.includes(Z) : U === !0 ? !1 : l.value.includes(Z)
17507
+ ticked: re === !0 ? l.value.includes(G) : j === !0 ? !1 : l.value.includes(G)
17508
17508
  };
17509
- if (V[Z] = $e, U === !0 && ($e.children = ie[e.childrenKey].map((Ze) => le(Ze, $e)), e.filter && ($e.matchesFilter !== !0 ? $e.matchesFilter = $e.children.some((Ze) => Ze.matchesFilter) : $e.noTick !== !0 && $e.disabled !== !0 && $e.tickable === !0 && ye === !0 && $e.children.every((Ze) => Ze.matchesFilter !== !0 || Ze.noTick === !0 || Ze.tickable !== !0) === !0 && ($e.tickable = !1)), $e.matchesFilter === !0 && ($e.noTick !== !0 && re !== !0 && $e.children.every((Ze) => Ze.noTick) === !0 && ($e.noTick = !0), ue))) {
17509
+ if (V[G] = $e, j === !0 && ($e.children = ie[e.childrenKey].map((Ze) => le(Ze, $e)), e.filter && ($e.matchesFilter !== !0 ? $e.matchesFilter = $e.children.some((Ze) => Ze.matchesFilter) : $e.noTick !== !0 && $e.disabled !== !0 && $e.tickable === !0 && ge === !0 && $e.children.every((Ze) => Ze.matchesFilter !== !0 || Ze.noTick === !0 || Ze.tickable !== !0) === !0 && ($e.tickable = !1)), $e.matchesFilter === !0 && ($e.noTick !== !0 && re !== !0 && $e.children.every((Ze) => Ze.noTick) === !0 && ($e.noTick = !0), ue))) {
17510
17510
  if ($e.ticked = !1, $e.indeterminate = $e.children.some((Ze) => Ze.indeterminate === !0), $e.tickable = $e.tickable === !0 && $e.children.some((Ze) => Ze.tickable), $e.indeterminate !== !0) {
17511
17511
  const Ze = $e.children.reduce((ot, H) => H.ticked === !0 ? ot + 1 : ot, 0);
17512
17512
  Ze === $e.children.length ? $e.ticked = !0 : Ze > 0 && ($e.indeterminate = !0);
@@ -17523,15 +17523,15 @@ Se({
17523
17523
  s.value = V;
17524
17524
  });
17525
17525
  function C(V) {
17526
- const le = [].reduce, ie = (Ce, j) => {
17527
- if (Ce || !j)
17526
+ const le = [].reduce, ie = (Ce, U) => {
17527
+ if (Ce || !U)
17528
17528
  return Ce;
17529
- if (Array.isArray(j) === !0)
17530
- return le.call(Object(j), ie, Ce);
17531
- if (j[e.nodeKey] === V)
17532
- return j;
17533
- if (j[e.childrenKey])
17534
- return ie(null, j[e.childrenKey]);
17529
+ if (Array.isArray(U) === !0)
17530
+ return le.call(Object(U), ie, Ce);
17531
+ if (U[e.nodeKey] === V)
17532
+ return U;
17533
+ if (U[e.childrenKey])
17534
+ return ie(null, U[e.childrenKey]);
17535
17535
  };
17536
17536
  return ie(null, e.nodes);
17537
17537
  }
@@ -17560,10 +17560,10 @@ Se({
17560
17560
  o.value[V] = "loading", Array.isArray(ie[e.childrenKey]) !== !0 && (ie[e.childrenKey] = []), n("lazyLoad", {
17561
17561
  node: ie,
17562
17562
  key: V,
17563
- done: (j) => {
17564
- o.value[V] = "loaded", ie[e.childrenKey] = Array.isArray(j) === !0 ? j : [], ht(() => {
17565
- const Z = _.value[V];
17566
- Z && Z.isParent === !0 && I(V, !0);
17563
+ done: (U) => {
17564
+ o.value[V] = "loaded", ie[e.childrenKey] = Array.isArray(U) === !0 ? U : [], ht(() => {
17565
+ const G = _.value[V];
17566
+ G && G.isParent === !0 && I(V, !0);
17567
17567
  });
17568
17568
  },
17569
17569
  fail: () => {
@@ -17578,17 +17578,17 @@ Se({
17578
17578
  const Ce = e.expanded !== void 0;
17579
17579
  if (Ce === !0 && (ie = ie.slice()), le) {
17580
17580
  if (e.accordion && _.value[V]) {
17581
- const j = [];
17582
- _.value[V].parent ? _.value[V].parent.children.forEach((Z) => {
17583
- Z.key !== V && Z.expandable === !0 && j.push(Z.key);
17584
- }) : e.nodes.forEach((Z) => {
17585
- const U = Z[e.nodeKey];
17586
- U !== V && j.push(U);
17587
- }), j.length !== 0 && (ie = ie.filter((Z) => j.includes(Z) === !1));
17581
+ const U = [];
17582
+ _.value[V].parent ? _.value[V].parent.children.forEach((G) => {
17583
+ G.key !== V && G.expandable === !0 && U.push(G.key);
17584
+ }) : e.nodes.forEach((G) => {
17585
+ const j = G[e.nodeKey];
17586
+ j !== V && U.push(j);
17587
+ }), U.length !== 0 && (ie = ie.filter((G) => U.includes(G) === !1));
17588
17588
  }
17589
- ie = ie.concat([V]).filter((j, Z, U) => U.indexOf(j) === Z);
17589
+ ie = ie.concat([V]).filter((U, G, j) => j.indexOf(U) === G);
17590
17590
  } else
17591
- ie = ie.filter((j) => j !== V);
17591
+ ie = ie.filter((U) => U !== V);
17592
17592
  Ce === !0 ? n("update:expanded", ie) : s.value = ie;
17593
17593
  }
17594
17594
  function E(V) {
@@ -17597,7 +17597,7 @@ Se({
17597
17597
  function M(V, le) {
17598
17598
  let ie = l.value;
17599
17599
  const Ce = e.ticked !== void 0;
17600
- Ce === !0 && (ie = ie.slice()), le ? ie = ie.concat(V).filter((j, Z, U) => U.indexOf(j) === Z) : ie = ie.filter((j) => V.includes(j) === !1), Ce === !0 && n("update:ticked", ie);
17600
+ Ce === !0 && (ie = ie.slice()), le ? ie = ie.concat(V).filter((U, G, j) => j.indexOf(U) === G) : ie = ie.filter((U) => V.includes(U) === !1), Ce === !0 && n("update:ticked", ie);
17601
17601
  }
17602
17602
  function P(V, le, ie) {
17603
17603
  const Ce = { tree: r, node: V, key: ie, color: e.color, dark: i.value };
@@ -17605,15 +17605,15 @@ Se({
17605
17605
  Ce,
17606
17606
  "expanded",
17607
17607
  () => le.expanded,
17608
- (j) => {
17609
- j !== le.expanded && $(ie, j);
17608
+ (U) => {
17609
+ U !== le.expanded && $(ie, U);
17610
17610
  }
17611
17611
  ), pn(
17612
17612
  Ce,
17613
17613
  "ticked",
17614
17614
  () => le.ticked,
17615
- (j) => {
17616
- j !== le.ticked && M([ie], j);
17615
+ (U) => {
17616
+ U !== le.ticked && M([ie], U);
17617
17617
  }
17618
17618
  ), Ce;
17619
17619
  }
@@ -17641,21 +17641,21 @@ Se({
17641
17641
  n("afterHide");
17642
17642
  }
17643
17643
  function ee(V) {
17644
- const le = V[e.nodeKey], ie = _.value[le], Ce = V.header && t[`header-${V.header}`] || t["default-header"], j = ie.isParent === !0 ? D(V[e.childrenKey]) : [], Z = j.length !== 0 || ie.lazy && ie.lazy !== "loaded";
17645
- let U = V.body && t[`body-${V.body}`] || t["default-body"];
17646
- const Q = Ce !== void 0 || U !== void 0 ? P(V, ie, le) : null;
17647
- return U !== void 0 && (U = w("div", { class: "q-tree__node-body relative-position" }, [
17644
+ const le = V[e.nodeKey], ie = _.value[le], Ce = V.header && t[`header-${V.header}`] || t["default-header"], U = ie.isParent === !0 ? D(V[e.childrenKey]) : [], G = U.length !== 0 || ie.lazy && ie.lazy !== "loaded";
17645
+ let j = V.body && t[`body-${V.body}`] || t["default-body"];
17646
+ const Q = Ce !== void 0 || j !== void 0 ? P(V, ie, le) : null;
17647
+ return j !== void 0 && (j = w("div", { class: "q-tree__node-body relative-position" }, [
17648
17648
  w("div", { class: m.value }, [
17649
- U(Q)
17649
+ j(Q)
17650
17650
  ])
17651
17651
  ])), w("div", {
17652
17652
  key: le,
17653
- class: `q-tree__node relative-position q-tree__node--${Z === !0 ? "parent" : "child"}`
17653
+ class: `q-tree__node relative-position q-tree__node--${G === !0 ? "parent" : "child"}`
17654
17654
  }, [
17655
17655
  w("div", {
17656
17656
  class: "q-tree__node-header relative-position row no-wrap items-center" + (ie.link === !0 ? " q-tree__node--link q-hoverable q-focusable" : "") + (ie.selected === !0 ? " q-tree__node--selected" : "") + (ie.disabled === !0 ? " q-tree__node--disabled" : ""),
17657
17657
  tabindex: ie.link === !0 ? 0 : -1,
17658
- ariaExpanded: j.length > 0 ? ie.expanded : null,
17658
+ ariaExpanded: U.length > 0 ? ie.expanded : null,
17659
17659
  role: "treeitem",
17660
17660
  onClick: (Y) => {
17661
17661
  ce(V, ie, Y);
@@ -17674,7 +17674,7 @@ Se({
17674
17674
  ie.lazy === "loading" ? w(ur, {
17675
17675
  class: "q-tree__spinner",
17676
17676
  color: f.value
17677
- }) : Z === !0 ? w(mt, {
17677
+ }) : G === !0 ? w(mt, {
17678
17678
  class: "q-tree__arrow" + (ie.expanded === !0 ? " q-tree__arrow--rotate" : ""),
17679
17679
  name: v.value,
17680
17680
  onClick(Y) {
@@ -17703,15 +17703,15 @@ Se({
17703
17703
  ]
17704
17704
  ])
17705
17705
  ]),
17706
- Z === !0 ? e.noTransition === !0 ? ie.expanded === !0 ? w("div", {
17706
+ G === !0 ? e.noTransition === !0 ? ie.expanded === !0 ? w("div", {
17707
17707
  class: "q-tree__node-collapsible" + m.value,
17708
17708
  key: `${le}__q`
17709
17709
  }, [
17710
- U,
17710
+ j,
17711
17711
  w("div", {
17712
17712
  class: "q-tree__children" + (ie.disabled === !0 ? " q-tree__node--disabled" : ""),
17713
17713
  role: "group"
17714
- }, j)
17714
+ }, U)
17715
17715
  ]) : null : w(fd, {
17716
17716
  duration: e.duration,
17717
17717
  onShow: B,
@@ -17721,14 +17721,14 @@ Se({
17721
17721
  class: "q-tree__node-collapsible" + m.value,
17722
17722
  key: `${le}__q`
17723
17723
  }, [
17724
- U,
17724
+ j,
17725
17725
  w("div", {
17726
17726
  class: "q-tree__children" + (ie.disabled === !0 ? " q-tree__node--disabled" : ""),
17727
17727
  role: "group"
17728
- }, j)
17728
+ }, U)
17729
17729
  ]),
17730
17730
  [[Ne, ie.expanded]]
17731
- )) : U
17731
+ )) : j
17732
17732
  ]);
17733
17733
  }
17734
17734
  function oe(V) {
@@ -17745,8 +17745,8 @@ Se({
17745
17745
  if (V.indeterminate === !0 && (le = V.indeterminateNextState), V.strictTicking)
17746
17746
  M([V.key], le);
17747
17747
  else if (V.leafTicking) {
17748
- const ie = [], Ce = (j) => {
17749
- j.isParent ? (le !== !0 && j.noTick !== !0 && j.tickable === !0 && ie.push(j.key), j.leafTicking === !0 && j.children.forEach(Ce)) : j.noTick !== !0 && j.tickable === !0 && (j.leafFilteredTicking !== !0 || j.matchesFilter === !0) && ie.push(j.key);
17748
+ const ie = [], Ce = (U) => {
17749
+ U.isParent ? (le !== !0 && U.noTick !== !0 && U.tickable === !0 && ie.push(U.key), U.leafTicking === !0 && U.children.forEach(Ce)) : U.noTick !== !0 && U.tickable === !0 && (U.leafFilteredTicking !== !0 || U.matchesFilter === !0) && ie.push(U.key);
17750
17750
  };
17751
17751
  Ce(V), M(ie, le);
17752
17752
  }
@@ -17804,7 +17804,7 @@ var l1 = {
17804
17804
  ];
17805
17805
  function s1(e, t) {
17806
17806
  const n = De(), { props: r, slots: a, emit: i, proxy: o } = n, { $q: l } = o, s = Et(r, l);
17807
- function c(Q, Y, ge) {
17807
+ function c(Q, Y, be) {
17808
17808
  if (Q.__status = Y, Y === "idle") {
17809
17809
  Q.__uploaded = 0, Q.__progress = 0, Q.__sizeLabel = Vu(Q.size), Q.__progressLabel = "0.00%";
17810
17810
  return;
@@ -17813,7 +17813,7 @@ function s1(e, t) {
17813
17813
  o.$forceUpdate();
17814
17814
  return;
17815
17815
  }
17816
- Q.__uploaded = Y === "uploaded" ? Q.size : ge, Q.__progress = Y === "uploaded" ? 1 : Math.min(0.9999, Q.__uploaded / Q.size), Q.__progressLabel = Av(Q.__progress), o.$forceUpdate();
17816
+ Q.__uploaded = Y === "uploaded" ? Q.size : be, Q.__progress = Y === "uploaded" ? 1 : Math.min(0.9999, Q.__uploaded / Q.size), Q.__progressLabel = Av(Q.__progress), o.$forceUpdate();
17817
17817
  }
17818
17818
  const u = b(() => r.disable !== !0 && r.readonly !== !0), d = R(!1), v = R(null), f = R(null), m = {
17819
17819
  files: R([]),
@@ -17871,11 +17871,11 @@ function s1(e, t) {
17871
17871
  function oe(Q, Y) {
17872
17872
  if (r.disable === !0)
17873
17873
  return;
17874
- const ge = {
17874
+ const be = {
17875
17875
  files: [],
17876
17876
  size: 0
17877
- }, re = m.files.value.filter((ye) => Q.indexOf(ye.__status) === -1 ? !0 : (ge.size += ye.size, ge.files.push(ye), ye.__img !== void 0 && window.URL.revokeObjectURL(ye.__img.src), !1));
17878
- ge.files.length !== 0 && (m.files.value = re, Y(ge), i("removed", ge.files));
17877
+ }, re = m.files.value.filter((ge) => Q.indexOf(ge.__status) === -1 ? !0 : (be.size += ge.size, be.files.push(ge), ge.__img !== void 0 && window.URL.revokeObjectURL(ge.__img.src), !1));
17878
+ be.files.length !== 0 && (m.files.value = re, Y(be), i("removed", be.files));
17879
17879
  }
17880
17880
  function ce(Q) {
17881
17881
  r.disable || (Q.__status === "uploaded" ? m.uploadedFiles.value = m.uploadedFiles.value.filter((Y) => Y.__key !== Q.__key) : Q.__status === "uploading" ? Q.__abort() : A.value -= Q.size, m.files.value = m.files.value.filter((Y) => Y.__key !== Q.__key ? !0 : (Y.__img !== void 0 && window.URL.revokeObjectURL(Y.__img.src), !1)), m.queuedFiles.value = m.queuedFiles.value.filter((Y) => Y.__key !== Q.__key), i("removed", [Q]));
@@ -17889,18 +17889,18 @@ function s1(e, t) {
17889
17889
  return f.value || v.value.getElementsByClassName("q-uploader__input")[0];
17890
17890
  }
17891
17891
  function V(Q, Y) {
17892
- const ge = h(Q, Y, m.files.value, !0), re = te();
17893
- re != null && (re.value = ""), ge !== void 0 && (ge.forEach((ye) => {
17894
- if (m.updateFileStatus(ye, "idle"), A.value += ye.size, r.noThumbnails !== !0 && ye.type.toUpperCase().startsWith("IMAGE")) {
17892
+ const be = h(Q, Y, m.files.value, !0), re = te();
17893
+ re != null && (re.value = ""), be !== void 0 && (be.forEach((ge) => {
17894
+ if (m.updateFileStatus(ge, "idle"), A.value += ge.size, r.noThumbnails !== !0 && ge.type.toUpperCase().startsWith("IMAGE")) {
17895
17895
  const ue = new Image();
17896
- ue.src = window.URL.createObjectURL(ye), ye.__img = ue;
17896
+ ue.src = window.URL.createObjectURL(ge), ge.__img = ue;
17897
17897
  }
17898
- }), m.files.value = m.files.value.concat(ge), m.queuedFiles.value = m.queuedFiles.value.concat(ge), i("added", ge), r.autoUpload === !0 && m.upload());
17898
+ }), m.files.value = m.files.value.concat(be), m.queuedFiles.value = m.queuedFiles.value.concat(be), i("added", be), r.autoUpload === !0 && m.upload());
17899
17899
  }
17900
17900
  function le() {
17901
17901
  P.value === !0 && m.upload();
17902
17902
  }
17903
- function ie(Q, Y, ge) {
17903
+ function ie(Q, Y, be) {
17904
17904
  if (Q === !0) {
17905
17905
  const re = {
17906
17906
  type: "a",
@@ -17909,8 +17909,8 @@ function s1(e, t) {
17909
17909
  flat: !0,
17910
17910
  dense: !0
17911
17911
  };
17912
- let ye;
17913
- return Y === "add" ? (re.onClick = g, ye = Ce) : re.onClick = ge, w(Ae, re, ye);
17912
+ let ge;
17913
+ return Y === "add" ? (re.onClick = g, ge = Ce) : re.onClick = be, w(Ae, re, ge);
17914
17914
  }
17915
17915
  }
17916
17916
  function Ce() {
@@ -17930,8 +17930,8 @@ function s1(e, t) {
17930
17930
  onChange: V
17931
17931
  });
17932
17932
  }
17933
- function j() {
17934
- return a.header !== void 0 ? a.header(U) : [
17933
+ function U() {
17934
+ return a.header !== void 0 ? a.header(j) : [
17935
17935
  w("div", {
17936
17936
  class: "q-uploader__header-content column"
17937
17937
  }, [
@@ -17954,8 +17954,8 @@ function s1(e, t) {
17954
17954
  ])
17955
17955
  ];
17956
17956
  }
17957
- function Z() {
17958
- return a.list !== void 0 ? a.list(U) : m.files.value.map((Q) => w("div", {
17957
+ function G() {
17958
+ return a.list !== void 0 ? a.list(j) : m.files.value.map((Q) => w("div", {
17959
17959
  key: Q.__key,
17960
17960
  class: "q-uploader__file relative-position" + (r.noThumbnails !== !0 && Q.__img !== void 0 ? " q-uploader__file--img" : "") + (Q.__status === "failed" ? " q-uploader__file--failed" : Q.__status === "uploaded" ? " q-uploader__file--uploaded" : ""),
17961
17961
  style: r.noThumbnails !== !0 && Q.__img !== void 0 ? { backgroundImage: 'url("' + Q.__img.src + '")', backgroundSize: r.thumbnailFit } : null
@@ -17996,10 +17996,10 @@ function s1(e, t) {
17996
17996
  bt(() => {
17997
17997
  m.isUploading.value === !0 && m.abort(), m.files.value.length !== 0 && Pe();
17998
17998
  });
17999
- const U = {};
17999
+ const j = {};
18000
18000
  for (const Q in m)
18001
- Qh(m[Q]) === !0 ? pn(U, Q, () => m[Q].value) : U[Q] = m[Q];
18002
- return Object.assign(U, {
18001
+ Qh(m[Q]) === !0 ? pn(j, Q, () => m[Q].value) : j[Q] = m[Q];
18002
+ return Object.assign(j, {
18003
18003
  upload: le,
18004
18004
  reset: B,
18005
18005
  removeUploadedFiles: K,
@@ -18007,7 +18007,7 @@ function s1(e, t) {
18007
18007
  removeFile: ce,
18008
18008
  pickFiles: g,
18009
18009
  addFiles: p
18010
- }), Kh(U, {
18010
+ }), Kh(j, {
18011
18011
  canAddFiles: () => M.value,
18012
18012
  canUpload: () => P.value,
18013
18013
  uploadSizeLabel: () => E.value,
@@ -18027,8 +18027,8 @@ function s1(e, t) {
18027
18027
  uploadProgressLabel: I
18028
18028
  }), () => {
18029
18029
  const Q = [
18030
- w("div", { class: O.value }, j()),
18031
- w("div", { class: "q-uploader__list scroll" }, Z()),
18030
+ w("div", { class: O.value }, U()),
18031
+ w("div", { class: "q-uploader__list scroll" }, G()),
18032
18032
  y("uploader")
18033
18033
  ];
18034
18034
  m.isBusy.value === !0 && Q.push(
@@ -18428,32 +18428,32 @@ function C1(e) {
18428
18428
  const {
18429
18429
  borderWidth: ie,
18430
18430
  borderStyle: Ce,
18431
- borderColor: j,
18432
- borderRadius: Z,
18433
- backgroundColor: U,
18431
+ borderColor: U,
18432
+ borderRadius: G,
18433
+ backgroundColor: j,
18434
18434
  transform: Q,
18435
18435
  position: Y,
18436
- cssText: ge
18437
- } = Bv(D, ["borderWidth", "borderStyle", "borderColor", "borderRadius", "backgroundColor", "transform", "position", "cssText"]), re = D.classList.toString(), ye = D.style.cssText;
18438
- D.style.cssText = ge, D.style.transform = "none", D.style.animation = "none", D.style.transition = "none", D.className = re.split(" ").filter((Ee) => /^bg-/.test(Ee) === !1).join(" ");
18439
- const ue = Mv(D, i.resize), Ie = f.left - ue.left, Xe = f.top - ue.top, $e = f.width / (ue.width > 0 ? ue.width : 10), Ze = f.height / (ue.height > 0 ? ue.height : 100), ot = m - O, H = g - B, W = Pe - K, G = te - ee, X = Math.max(f.widthM, ot), ke = Math.max(f.heightM, H), Le = Math.max(ue.widthM, W), Be = Math.max(ue.heightM, G), se = o === D && ["absolute", "fixed"].includes(Y) === !1 && ["absolute", "fixed"].includes(x) === !1;
18440
- let be = Y === "fixed", Ke = ce;
18441
- for (; be !== !0 && Ke !== document; )
18442
- be = window.getComputedStyle(Ke).position === "fixed", Ke = Ke.parentNode;
18436
+ cssText: be
18437
+ } = Bv(D, ["borderWidth", "borderStyle", "borderColor", "borderRadius", "backgroundColor", "transform", "position", "cssText"]), re = D.classList.toString(), ge = D.style.cssText;
18438
+ D.style.cssText = be, D.style.transform = "none", D.style.animation = "none", D.style.transition = "none", D.className = re.split(" ").filter((Ee) => /^bg-/.test(Ee) === !1).join(" ");
18439
+ const ue = Mv(D, i.resize), Ie = f.left - ue.left, Xe = f.top - ue.top, $e = f.width / (ue.width > 0 ? ue.width : 10), Ze = f.height / (ue.height > 0 ? ue.height : 100), ot = m - O, H = g - B, W = Pe - K, X = te - ee, Z = Math.max(f.widthM, ot), ke = Math.max(f.heightM, H), Le = Math.max(ue.widthM, W), Be = Math.max(ue.heightM, X), se = o === D && ["absolute", "fixed"].includes(Y) === !1 && ["absolute", "fixed"].includes(x) === !1;
18440
+ let ye = Y === "fixed", Ke = ce;
18441
+ for (; ye !== !0 && Ke !== document; )
18442
+ ye = window.getComputedStyle(Ke).position === "fixed", Ke = Ke.parentNode;
18443
18443
  if (i.hideFromClone !== !0 && (E.style.display = "block", E.style.flex = "0 0 auto", E.style.opacity = 0, E.style.minWidth = "unset", E.style.maxWidth = "unset", E.style.minHeight = "unset", E.style.maxHeight = "unset", E.classList.remove("q-morph--internal")), i.keepToClone !== !0 && (V.style.display = "block", V.style.flex = "0 0 auto", V.style.opacity = 0, V.style.minWidth = "unset", V.style.maxWidth = "unset", V.style.minHeight = "unset", V.style.maxHeight = "unset"), V.classList.remove("q-morph--internal"), typeof i.classes == "string" && (D.className += " " + i.classes), typeof i.style == "string")
18444
18444
  D.style.cssText += " " + i.style;
18445
18445
  else if (Nn(i.style) === !0)
18446
18446
  for (const Ee in i.style)
18447
18447
  D.style[Ee] = i.style[Ee];
18448
- const nt = Uv(E), me = Uv(D), Oe = be === !0 ? document.documentElement : { scrollLeft: 0, scrollTop: 0 };
18449
- D.style.position = be === !0 ? "fixed" : "absolute", D.style.left = `${ue.left - Oe.scrollLeft}px`, D.style.right = "unset", D.style.top = `${ue.top - Oe.scrollTop}px`, D.style.margin = 0, i.resize === !0 && (D.style.minWidth = "unset", D.style.maxWidth = "unset", D.style.minHeight = "unset", D.style.maxHeight = "unset", D.style.overflow = "hidden", D.style.overflowX = "hidden", D.style.overflowY = "hidden"), document.body.appendChild(D), M !== void 0 && (M.style.cssText = A, M.style.transform = "none", M.style.animation = "none", M.style.transition = "none", M.style.position = D.style.position, M.style.left = `${f.left - Oe.scrollLeft}px`, M.style.right = "unset", M.style.top = `${f.top - Oe.scrollTop}px`, M.style.margin = 0, M.style.pointerEvents = "none", i.resize === !0 && (M.style.minWidth = "unset", M.style.maxWidth = "unset", M.style.minHeight = "unset", M.style.maxHeight = "unset", M.style.overflow = "hidden", M.style.overflowX = "hidden", M.style.overflowY = "hidden"), document.body.appendChild(M));
18448
+ const nt = Uv(E), me = Uv(D), Oe = ye === !0 ? document.documentElement : { scrollLeft: 0, scrollTop: 0 };
18449
+ D.style.position = ye === !0 ? "fixed" : "absolute", D.style.left = `${ue.left - Oe.scrollLeft}px`, D.style.right = "unset", D.style.top = `${ue.top - Oe.scrollTop}px`, D.style.margin = 0, i.resize === !0 && (D.style.minWidth = "unset", D.style.maxWidth = "unset", D.style.minHeight = "unset", D.style.maxHeight = "unset", D.style.overflow = "hidden", D.style.overflowX = "hidden", D.style.overflowY = "hidden"), document.body.appendChild(D), M !== void 0 && (M.style.cssText = A, M.style.transform = "none", M.style.animation = "none", M.style.transition = "none", M.style.position = D.style.position, M.style.left = `${f.left - Oe.scrollLeft}px`, M.style.right = "unset", M.style.top = `${f.top - Oe.scrollTop}px`, M.style.margin = 0, M.style.pointerEvents = "none", i.resize === !0 && (M.style.minWidth = "unset", M.style.maxWidth = "unset", M.style.minHeight = "unset", M.style.maxHeight = "unset", M.style.overflow = "hidden", M.style.overflowX = "hidden", M.style.overflowY = "hidden"), document.body.appendChild(M));
18450
18450
  const de = (Ee) => {
18451
- o === D && r !== !0 ? (D.style.cssText = I, D.className = $) : (D.style.cssText = ye, D.className = re), V.parentNode === ce && ce.insertBefore(D, V), E.remove(), V.remove(), M !== void 0 && M.remove(), t = () => !1, o.qMorphCancel = void 0, D.qMorphCancel = void 0, typeof i.onEnd == "function" && i.onEnd(r === !0 ? "to" : "from", Ee === !0);
18451
+ o === D && r !== !0 ? (D.style.cssText = I, D.className = $) : (D.style.cssText = ge, D.className = re), V.parentNode === ce && ce.insertBefore(D, V), E.remove(), V.remove(), M !== void 0 && M.remove(), t = () => !1, o.qMorphCancel = void 0, D.qMorphCancel = void 0, typeof i.onEnd == "function" && i.onEnd(r === !0 ? "to" : "from", Ee === !0);
18452
18452
  };
18453
18453
  if (i.useCSS !== !0 && typeof D.animate == "function") {
18454
18454
  const Ee = i.resize === !0 ? {
18455
18455
  transform: `translate(${Ie}px, ${Xe}px)`,
18456
- width: `${X}px`,
18456
+ width: `${Z}px`,
18457
18457
  height: `${ke}px`
18458
18458
  } : {
18459
18459
  transform: `translate(${Ie}px, ${Xe}px) scale(${$e}, ${Ze})`
@@ -18461,7 +18461,7 @@ function C1(e) {
18461
18461
  width: `${Le}px`,
18462
18462
  height: `${Be}px`
18463
18463
  } : {}, lt = i.resize === !0 ? {
18464
- width: `${X}px`,
18464
+ width: `${Z}px`,
18465
18465
  height: `${ke}px`
18466
18466
  } : {}, ze = i.resize === !0 ? {
18467
18467
  transform: `translate(${-1 * Ie}px, ${-1 * Xe}px)`,
@@ -18469,7 +18469,7 @@ function C1(e) {
18469
18469
  height: `${Be}px`
18470
18470
  } : {
18471
18471
  transform: `translate(${-1 * Ie}px, ${-1 * Xe}px) scale(${1 / $e}, ${1 / Ze})`
18472
- }, gt = M !== void 0 ? { opacity: i.tweenToOpacity } : { backgroundColor: y }, Ht = M !== void 0 ? { opacity: 1 } : { backgroundColor: U };
18472
+ }, gt = M !== void 0 ? { opacity: i.tweenToOpacity } : { backgroundColor: y }, Ht = M !== void 0 ? { opacity: 1 } : { backgroundColor: j };
18473
18473
  u = D.animate([
18474
18474
  {
18475
18475
  margin: 0,
@@ -18486,8 +18486,8 @@ function C1(e) {
18486
18486
  margin: 0,
18487
18487
  borderWidth: ie,
18488
18488
  borderStyle: Ce,
18489
- borderColor: j,
18490
- borderRadius: Z,
18489
+ borderColor: U,
18490
+ borderRadius: G,
18491
18491
  zIndex: me,
18492
18492
  transformOrigin: "0 0",
18493
18493
  transform: Q,
@@ -18517,8 +18517,8 @@ function C1(e) {
18517
18517
  margin: 0,
18518
18518
  borderWidth: ie,
18519
18519
  borderStyle: Ce,
18520
- borderColor: j,
18521
- borderRadius: Z,
18520
+ borderColor: U,
18521
+ borderRadius: G,
18522
18522
  zIndex: me,
18523
18523
  transformOrigin: "0 0",
18524
18524
  ...ze
@@ -18531,7 +18531,7 @@ function C1(e) {
18531
18531
  }), l = i.hideFromClone === !0 || se === !0 ? void 0 : E.animate([
18532
18532
  {
18533
18533
  margin: `${H < 0 ? H / 2 : 0}px ${ot < 0 ? ot / 2 : 0}px`,
18534
- width: `${X + f.marginH}px`,
18534
+ width: `${Z + f.marginH}px`,
18535
18535
  height: `${ke + f.marginV}px`
18536
18536
  },
18537
18537
  {
@@ -18547,7 +18547,7 @@ function C1(e) {
18547
18547
  }), c = i.keepToClone === !0 ? void 0 : V.animate([
18548
18548
  se === !0 ? {
18549
18549
  margin: `${H < 0 ? H / 2 : 0}px ${ot < 0 ? ot / 2 : 0}px`,
18550
- width: `${X + f.marginH}px`,
18550
+ width: `${Z + f.marginH}px`,
18551
18551
  height: `${ke + f.marginV}px`
18552
18552
  } : {
18553
18553
  margin: 0,
@@ -18555,7 +18555,7 @@ function C1(e) {
18555
18555
  height: 0
18556
18556
  },
18557
18557
  {
18558
- margin: `${G < 0 ? G / 2 : 0}px ${W < 0 ? W / 2 : 0}px`,
18558
+ margin: `${X < 0 ? X / 2 : 0}px ${W < 0 ? W / 2 : 0}px`,
18559
18559
  width: `${Le + ue.marginH}px`,
18560
18560
  height: `${Be + ue.marginV}px`
18561
18561
  }
@@ -18576,19 +18576,19 @@ function C1(e) {
18576
18576
  } else {
18577
18577
  const Ee = `q-morph-anim-${++y1}`, je = document.createElement("style"), lt = i.resize === !0 ? `
18578
18578
  transform: translate(${Ie}px, ${Xe}px);
18579
- width: ${X}px;
18579
+ width: ${Z}px;
18580
18580
  height: ${ke}px;
18581
18581
  ` : `transform: translate(${Ie}px, ${Xe}px) scale(${$e}, ${Ze});`, ze = i.resize === !0 ? `
18582
18582
  width: ${Le}px;
18583
18583
  height: ${Be}px;
18584
18584
  ` : "", gt = i.resize === !0 ? `
18585
- width: ${X}px;
18585
+ width: ${Z}px;
18586
18586
  height: ${ke}px;
18587
18587
  ` : "", Ht = i.resize === !0 ? `
18588
18588
  transform: translate(${-1 * Ie}px, ${-1 * Xe}px);
18589
18589
  width: ${Le}px;
18590
18590
  height: ${Be}px;
18591
- ` : `transform: translate(${-1 * Ie}px, ${-1 * Xe}px) scale(${1 / $e}, ${1 / Ze});`, Yt = M !== void 0 ? `opacity: ${i.tweenToOpacity};` : `background-color: ${y};`, Hn = M !== void 0 ? "opacity: 1;" : `background-color: ${U};`, tr = M === void 0 ? "" : `
18591
+ ` : `transform: translate(${-1 * Ie}px, ${-1 * Xe}px) scale(${1 / $e}, ${1 / Ze});`, Yt = M !== void 0 ? `opacity: ${i.tweenToOpacity};` : `background-color: ${y};`, Hn = M !== void 0 ? "opacity: 1;" : `background-color: ${j};`, tr = M === void 0 ? "" : `
18592
18592
  @keyframes ${Ee}-from-tween {
18593
18593
  0% {
18594
18594
  opacity: ${i.tweenFromOpacity};
@@ -18608,8 +18608,8 @@ function C1(e) {
18608
18608
  margin: 0;
18609
18609
  border-width: ${ie};
18610
18610
  border-style: ${Ce};
18611
- border-color: ${j};
18612
- border-radius: ${Z};
18611
+ border-color: ${U};
18612
+ border-radius: ${G};
18613
18613
  z-index: ${me};
18614
18614
  transform-origin: 0 0;
18615
18615
  ${Ht}
@@ -18619,7 +18619,7 @@ function C1(e) {
18619
18619
  @keyframes ${Ee}-from {
18620
18620
  0% {
18621
18621
  margin: ${H < 0 ? H / 2 : 0}px ${ot < 0 ? ot / 2 : 0}px;
18622
- width: ${X + f.marginH}px;
18622
+ width: ${Z + f.marginH}px;
18623
18623
  height: ${ke + f.marginV}px;
18624
18624
  }
18625
18625
 
@@ -18631,7 +18631,7 @@ function C1(e) {
18631
18631
  }
18632
18632
  `, Pr = se === !0 ? `
18633
18633
  margin: ${H < 0 ? H / 2 : 0}px ${ot < 0 ? ot / 2 : 0}px;
18634
- width: ${X + f.marginH}px;
18634
+ width: ${Z + f.marginH}px;
18635
18635
  height: ${ke + f.marginV}px;
18636
18636
  ` : `
18637
18637
  margin: 0;
@@ -18644,7 +18644,7 @@ function C1(e) {
18644
18644
  }
18645
18645
 
18646
18646
  100% {
18647
- margin: ${G < 0 ? G / 2 : 0}px ${W < 0 ? W / 2 : 0}px;
18647
+ margin: ${X < 0 ? X / 2 : 0}px ${W < 0 ? W / 2 : 0}px;
18648
18648
  width: ${Le + ue.marginH}px;
18649
18649
  height: ${Be + ue.marginV}px;
18650
18650
  }
@@ -18669,9 +18669,9 @@ function C1(e) {
18669
18669
  margin: 0;
18670
18670
  border-width: ${ie};
18671
18671
  border-style: ${Ce};
18672
- border-color: ${j};
18673
- border-radius: ${Z};
18674
- background-color: ${U};
18672
+ border-color: ${U};
18673
+ border-radius: ${G};
18674
+ background-color: ${j};
18675
18675
  z-index: ${me};
18676
18676
  transform-origin: 0 0;
18677
18677
  transform: ${Q};
@@ -20391,20 +20391,20 @@ function Ik(e, t = {}) {
20391
20391
  inLinked: !1,
20392
20392
  text: ""
20393
20393
  }, c = () => s, { onError: u } = t;
20394
- function d(H, W, G, ...X) {
20394
+ function d(H, W, X, ...Z) {
20395
20395
  const ke = c();
20396
- if (W.column += G, W.offset += G, u) {
20396
+ if (W.column += X, W.offset += X, u) {
20397
20397
  const Le = n ? Zl(ke.startLoc, W) : null, Be = Zi(H, Le, {
20398
20398
  domain: xk,
20399
- args: X
20399
+ args: Z
20400
20400
  });
20401
20401
  u(Be);
20402
20402
  }
20403
20403
  }
20404
- function v(H, W, G) {
20404
+ function v(H, W, X) {
20405
20405
  H.endLoc = i(), H.currentType = W;
20406
- const X = { type: W };
20407
- return n && (X.loc = Zl(H.startLoc, H.endLoc)), G != null && (X.value = G), X;
20406
+ const Z = { type: W };
20407
+ return n && (Z.loc = Zl(H.startLoc, H.endLoc)), X != null && (Z.value = X), Z;
20408
20408
  }
20409
20409
  const f = (H) => v(
20410
20410
  H,
@@ -20439,61 +20439,61 @@ function Ik(e, t = {}) {
20439
20439
  return W >= 48 && W <= 57;
20440
20440
  }
20441
20441
  function h(H, W) {
20442
- const { currentType: G } = W;
20443
- if (G !== 2)
20442
+ const { currentType: X } = W;
20443
+ if (X !== 2)
20444
20444
  return !1;
20445
20445
  g(H);
20446
- const X = _(H.currentPeek());
20447
- return H.resetPeek(), X;
20446
+ const Z = _(H.currentPeek());
20447
+ return H.resetPeek(), Z;
20448
20448
  }
20449
20449
  function y(H, W) {
20450
- const { currentType: G } = W;
20451
- if (G !== 2)
20450
+ const { currentType: X } = W;
20451
+ if (X !== 2)
20452
20452
  return !1;
20453
20453
  g(H);
20454
- const X = H.currentPeek() === "-" ? H.peek() : H.currentPeek(), ke = C(X);
20454
+ const Z = H.currentPeek() === "-" ? H.peek() : H.currentPeek(), ke = C(Z);
20455
20455
  return H.resetPeek(), ke;
20456
20456
  }
20457
20457
  function k(H, W) {
20458
- const { currentType: G } = W;
20459
- if (G !== 2)
20458
+ const { currentType: X } = W;
20459
+ if (X !== 2)
20460
20460
  return !1;
20461
20461
  g(H);
20462
- const X = H.currentPeek() === om;
20463
- return H.resetPeek(), X;
20462
+ const Z = H.currentPeek() === om;
20463
+ return H.resetPeek(), Z;
20464
20464
  }
20465
20465
  function x(H, W) {
20466
- const { currentType: G } = W;
20467
- if (G !== 8)
20466
+ const { currentType: X } = W;
20467
+ if (X !== 8)
20468
20468
  return !1;
20469
20469
  g(H);
20470
- const X = H.currentPeek() === ".";
20471
- return H.resetPeek(), X;
20470
+ const Z = H.currentPeek() === ".";
20471
+ return H.resetPeek(), Z;
20472
20472
  }
20473
20473
  function A(H, W) {
20474
- const { currentType: G } = W;
20475
- if (G !== 9)
20474
+ const { currentType: X } = W;
20475
+ if (X !== 9)
20476
20476
  return !1;
20477
20477
  g(H);
20478
- const X = _(H.currentPeek());
20479
- return H.resetPeek(), X;
20478
+ const Z = _(H.currentPeek());
20479
+ return H.resetPeek(), Z;
20480
20480
  }
20481
20481
  function $(H, W) {
20482
- const { currentType: G } = W;
20483
- if (!(G === 8 || G === 12))
20482
+ const { currentType: X } = W;
20483
+ if (!(X === 8 || X === 12))
20484
20484
  return !1;
20485
20485
  g(H);
20486
- const X = H.currentPeek() === ":";
20487
- return H.resetPeek(), X;
20486
+ const Z = H.currentPeek() === ":";
20487
+ return H.resetPeek(), Z;
20488
20488
  }
20489
20489
  function I(H, W) {
20490
- const { currentType: G } = W;
20491
- if (G !== 10)
20490
+ const { currentType: X } = W;
20491
+ if (X !== 10)
20492
20492
  return !1;
20493
- const X = () => {
20493
+ const Z = () => {
20494
20494
  const Le = H.currentPeek();
20495
- return Le === "{" ? _(H.peek()) : Le === "@" || Le === "%" || Le === "|" || Le === ":" || Le === "." || Le === qr || !Le ? !1 : Le === Fn ? (H.peek(), X()) : P(H, !1);
20496
- }, ke = X();
20495
+ return Le === "{" ? _(H.peek()) : Le === "@" || Le === "%" || Le === "|" || Le === ":" || Le === "." || Le === qr || !Le ? !1 : Le === Fn ? (H.peek(), Z()) : P(H, !1);
20496
+ }, ke = Z();
20497
20497
  return H.resetPeek(), ke;
20498
20498
  }
20499
20499
  function E(H) {
@@ -20502,22 +20502,22 @@ function Ik(e, t = {}) {
20502
20502
  return H.resetPeek(), W;
20503
20503
  }
20504
20504
  function M(H) {
20505
- const W = g(H), G = H.currentPeek() === "%" && H.peek() === "{";
20505
+ const W = g(H), X = H.currentPeek() === "%" && H.peek() === "{";
20506
20506
  return H.resetPeek(), {
20507
- isModulo: G,
20507
+ isModulo: X,
20508
20508
  hasSpace: W.length > 0
20509
20509
  };
20510
20510
  }
20511
20511
  function P(H, W = !0) {
20512
- const G = (ke = !1, Le = "", Be = !1) => {
20512
+ const X = (ke = !1, Le = "", Be = !1) => {
20513
20513
  const se = H.currentPeek();
20514
- return se === "{" ? Le === "%" ? !1 : ke : se === "@" || !se ? Le === "%" ? !0 : ke : se === "%" ? (H.peek(), G(ke, "%", !0)) : se === "|" ? Le === "%" || Be ? !0 : !(Le === qr || Le === Fn) : se === qr ? (H.peek(), G(!0, qr, Be)) : se === Fn ? (H.peek(), G(!0, Fn, Be)) : !0;
20515
- }, X = G();
20516
- return W && H.resetPeek(), X;
20514
+ return se === "{" ? Le === "%" ? !1 : ke : se === "@" || !se ? Le === "%" ? !0 : ke : se === "%" ? (H.peek(), X(ke, "%", !0)) : se === "|" ? Le === "%" || Be ? !0 : !(Le === qr || Le === Fn) : se === qr ? (H.peek(), X(!0, qr, Be)) : se === Fn ? (H.peek(), X(!0, Fn, Be)) : !0;
20515
+ }, Z = X();
20516
+ return W && H.resetPeek(), Z;
20517
20517
  }
20518
20518
  function D(H, W) {
20519
- const G = H.currentChar();
20520
- return G === Xr ? Xr : W(G) ? (H.next(), G) : null;
20519
+ const X = H.currentChar();
20520
+ return X === Xr ? Xr : W(X) ? (H.next(), X) : null;
20521
20521
  }
20522
20522
  function O(H) {
20523
20523
  const W = H.charCodeAt(0);
@@ -20559,10 +20559,10 @@ function Ik(e, t = {}) {
20559
20559
  return D(H, Pe);
20560
20560
  }
20561
20561
  function V(H) {
20562
- let W = "", G = "";
20562
+ let W = "", X = "";
20563
20563
  for (; W = ce(H); )
20564
- G += W;
20565
- return G;
20564
+ X += W;
20565
+ return X;
20566
20566
  }
20567
20567
  function le(H) {
20568
20568
  p(H);
@@ -20572,49 +20572,49 @@ function Ik(e, t = {}) {
20572
20572
  function ie(H) {
20573
20573
  let W = "";
20574
20574
  for (; ; ) {
20575
- const G = H.currentChar();
20576
- if (G === "{" || G === "}" || G === "@" || G === "|" || !G)
20575
+ const X = H.currentChar();
20576
+ if (X === "{" || X === "}" || X === "@" || X === "|" || !X)
20577
20577
  break;
20578
- if (G === "%")
20578
+ if (X === "%")
20579
20579
  if (P(H))
20580
- W += G, H.next();
20580
+ W += X, H.next();
20581
20581
  else
20582
20582
  break;
20583
- else if (G === qr || G === Fn)
20583
+ else if (X === qr || X === Fn)
20584
20584
  if (P(H))
20585
- W += G, H.next();
20585
+ W += X, H.next();
20586
20586
  else {
20587
20587
  if (E(H))
20588
20588
  break;
20589
- W += G, H.next();
20589
+ W += X, H.next();
20590
20590
  }
20591
20591
  else
20592
- W += G, H.next();
20592
+ W += X, H.next();
20593
20593
  }
20594
20594
  return W;
20595
20595
  }
20596
20596
  function Ce(H) {
20597
20597
  p(H);
20598
- let W = "", G = "";
20598
+ let W = "", X = "";
20599
20599
  for (; W = ee(H); )
20600
- G += W;
20601
- return H.currentChar() === Xr && d(st.UNTERMINATED_CLOSING_BRACE, i(), 0), G;
20600
+ X += W;
20601
+ return H.currentChar() === Xr && d(st.UNTERMINATED_CLOSING_BRACE, i(), 0), X;
20602
20602
  }
20603
- function j(H) {
20603
+ function U(H) {
20604
20604
  p(H);
20605
20605
  let W = "";
20606
20606
  return H.currentChar() === "-" ? (H.next(), W += `-${V(H)}`) : W += V(H), H.currentChar() === Xr && d(st.UNTERMINATED_CLOSING_BRACE, i(), 0), W;
20607
20607
  }
20608
- function Z(H) {
20608
+ function G(H) {
20609
20609
  return H !== om && H !== Fn;
20610
20610
  }
20611
- function U(H) {
20611
+ function j(H) {
20612
20612
  p(H), m(H, "'");
20613
- let W = "", G = "";
20614
- for (; W = D(H, Z); )
20615
- W === "\\" ? G += Q(H) : G += W;
20616
- const X = H.currentChar();
20617
- return X === Fn || X === Xr ? (d(st.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), X === Fn && (H.next(), m(H, "'")), G) : (m(H, "'"), G);
20613
+ let W = "", X = "";
20614
+ for (; W = D(H, G); )
20615
+ W === "\\" ? X += Q(H) : X += W;
20616
+ const Z = H.currentChar();
20617
+ return Z === Fn || Z === Xr ? (d(st.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, i(), 0), Z === Fn && (H.next(), m(H, "'")), X) : (m(H, "'"), X);
20618
20618
  }
20619
20619
  function Q(H) {
20620
20620
  const W = H.currentChar();
@@ -20630,39 +20630,39 @@ function Ik(e, t = {}) {
20630
20630
  return d(st.UNKNOWN_ESCAPE_SEQUENCE, i(), 0, W), "";
20631
20631
  }
20632
20632
  }
20633
- function Y(H, W, G) {
20633
+ function Y(H, W, X) {
20634
20634
  m(H, W);
20635
- let X = "";
20636
- for (let ke = 0; ke < G; ke++) {
20635
+ let Z = "";
20636
+ for (let ke = 0; ke < X; ke++) {
20637
20637
  const Le = te(H);
20638
20638
  if (!Le) {
20639
- d(st.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${W}${X}${H.currentChar()}`);
20639
+ d(st.INVALID_UNICODE_ESCAPE_SEQUENCE, i(), 0, `\\${W}${Z}${H.currentChar()}`);
20640
20640
  break;
20641
20641
  }
20642
- X += Le;
20642
+ Z += Le;
20643
20643
  }
20644
- return `\\${W}${X}`;
20644
+ return `\\${W}${Z}`;
20645
20645
  }
20646
- function ge(H) {
20646
+ function be(H) {
20647
20647
  return H !== "{" && H !== "}" && H !== qr && H !== Fn;
20648
20648
  }
20649
20649
  function re(H) {
20650
20650
  p(H);
20651
- let W = "", G = "";
20652
- for (; W = D(H, ge); )
20653
- G += W;
20654
- return G;
20651
+ let W = "", X = "";
20652
+ for (; W = D(H, be); )
20653
+ X += W;
20654
+ return X;
20655
20655
  }
20656
- function ye(H) {
20657
- let W = "", G = "";
20656
+ function ge(H) {
20657
+ let W = "", X = "";
20658
20658
  for (; W = B(H); )
20659
- G += W;
20660
- return G;
20659
+ X += W;
20660
+ return X;
20661
20661
  }
20662
20662
  function ue(H) {
20663
- const W = (G) => {
20664
- const X = H.currentChar();
20665
- return X === "{" || X === "%" || X === "@" || X === "|" || X === "(" || X === ")" || !X || X === qr ? G : (G += X, H.next(), W(G));
20663
+ const W = (X) => {
20664
+ const Z = H.currentChar();
20665
+ return Z === "{" || Z === "%" || Z === "@" || Z === "|" || Z === "(" || Z === ")" || !Z || Z === qr ? X : (X += Z, H.next(), W(X));
20666
20666
  };
20667
20667
  return W("");
20668
20668
  }
@@ -20676,55 +20676,55 @@ function Ik(e, t = {}) {
20676
20676
  return p(H), W;
20677
20677
  }
20678
20678
  function Xe(H, W) {
20679
- let G = null;
20679
+ let X = null;
20680
20680
  switch (H.currentChar()) {
20681
20681
  case "{":
20682
- return W.braceNest >= 1 && d(st.NOT_ALLOW_NEST_PLACEHOLDER, i(), 0), H.next(), G = v(
20682
+ return W.braceNest >= 1 && d(st.NOT_ALLOW_NEST_PLACEHOLDER, i(), 0), H.next(), X = v(
20683
20683
  W,
20684
20684
  2,
20685
20685
  "{"
20686
20686
  /* TokenChars.BraceLeft */
20687
- ), p(H), W.braceNest++, G;
20687
+ ), p(H), W.braceNest++, X;
20688
20688
  case "}":
20689
- return W.braceNest > 0 && W.currentType === 2 && d(st.EMPTY_PLACEHOLDER, i(), 0), H.next(), G = v(
20689
+ return W.braceNest > 0 && W.currentType === 2 && d(st.EMPTY_PLACEHOLDER, i(), 0), H.next(), X = v(
20690
20690
  W,
20691
20691
  3,
20692
20692
  "}"
20693
20693
  /* TokenChars.BraceRight */
20694
- ), W.braceNest--, W.braceNest > 0 && p(H), W.inLinked && W.braceNest === 0 && (W.inLinked = !1), G;
20694
+ ), W.braceNest--, W.braceNest > 0 && p(H), W.inLinked && W.braceNest === 0 && (W.inLinked = !1), X;
20695
20695
  case "@":
20696
- return W.braceNest > 0 && d(st.UNTERMINATED_CLOSING_BRACE, i(), 0), G = $e(H, W) || f(W), W.braceNest = 0, G;
20696
+ return W.braceNest > 0 && d(st.UNTERMINATED_CLOSING_BRACE, i(), 0), X = $e(H, W) || f(W), W.braceNest = 0, X;
20697
20697
  default: {
20698
20698
  let ke = !0, Le = !0, Be = !0;
20699
20699
  if (E(H))
20700
- return W.braceNest > 0 && d(st.UNTERMINATED_CLOSING_BRACE, i(), 0), G = v(W, 1, Ie(H)), W.braceNest = 0, W.inLinked = !1, G;
20700
+ return W.braceNest > 0 && d(st.UNTERMINATED_CLOSING_BRACE, i(), 0), X = v(W, 1, Ie(H)), W.braceNest = 0, W.inLinked = !1, X;
20701
20701
  if (W.braceNest > 0 && (W.currentType === 5 || W.currentType === 6 || W.currentType === 7))
20702
20702
  return d(st.UNTERMINATED_CLOSING_BRACE, i(), 0), W.braceNest = 0, Ze(H, W);
20703
20703
  if (ke = h(H, W))
20704
- return G = v(W, 5, Ce(H)), p(H), G;
20704
+ return X = v(W, 5, Ce(H)), p(H), X;
20705
20705
  if (Le = y(H, W))
20706
- return G = v(W, 6, j(H)), p(H), G;
20706
+ return X = v(W, 6, U(H)), p(H), X;
20707
20707
  if (Be = k(H, W))
20708
- return G = v(W, 7, U(H)), p(H), G;
20708
+ return X = v(W, 7, j(H)), p(H), X;
20709
20709
  if (!ke && !Le && !Be)
20710
- return G = v(W, 13, re(H)), d(st.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, G.value), p(H), G;
20710
+ return X = v(W, 13, re(H)), d(st.INVALID_TOKEN_IN_PLACEHOLDER, i(), 0, X.value), p(H), X;
20711
20711
  break;
20712
20712
  }
20713
20713
  }
20714
- return G;
20714
+ return X;
20715
20715
  }
20716
20716
  function $e(H, W) {
20717
- const { currentType: G } = W;
20718
- let X = null;
20717
+ const { currentType: X } = W;
20718
+ let Z = null;
20719
20719
  const ke = H.currentChar();
20720
- switch ((G === 8 || G === 9 || G === 12 || G === 10) && (ke === Fn || ke === qr) && d(st.INVALID_LINKED_FORMAT, i(), 0), ke) {
20720
+ switch ((X === 8 || X === 9 || X === 12 || X === 10) && (ke === Fn || ke === qr) && d(st.INVALID_LINKED_FORMAT, i(), 0), ke) {
20721
20721
  case "@":
20722
- return H.next(), X = v(
20722
+ return H.next(), Z = v(
20723
20723
  W,
20724
20724
  8,
20725
20725
  "@"
20726
20726
  /* TokenChars.LinkedAlias */
20727
- ), W.inLinked = !0, X;
20727
+ ), W.inLinked = !0, Z;
20728
20728
  case ".":
20729
20729
  return p(H), H.next(), v(
20730
20730
  W,
@@ -20740,11 +20740,11 @@ function Ik(e, t = {}) {
20740
20740
  /* TokenChars.LinkedDelimiter */
20741
20741
  );
20742
20742
  default:
20743
- return E(H) ? (X = v(W, 1, Ie(H)), W.braceNest = 0, W.inLinked = !1, X) : x(H, W) || $(H, W) ? (p(H), $e(H, W)) : A(H, W) ? (p(H), v(W, 12, ye(H))) : I(H, W) ? (p(H), ke === "{" ? Xe(H, W) || X : v(W, 11, ue(H))) : (G === 8 && d(st.INVALID_LINKED_FORMAT, i(), 0), W.braceNest = 0, W.inLinked = !1, Ze(H, W));
20743
+ return E(H) ? (Z = v(W, 1, Ie(H)), W.braceNest = 0, W.inLinked = !1, Z) : x(H, W) || $(H, W) ? (p(H), $e(H, W)) : A(H, W) ? (p(H), v(W, 12, ge(H))) : I(H, W) ? (p(H), ke === "{" ? Xe(H, W) || Z : v(W, 11, ue(H))) : (X === 8 && d(st.INVALID_LINKED_FORMAT, i(), 0), W.braceNest = 0, W.inLinked = !1, Ze(H, W));
20744
20744
  }
20745
20745
  }
20746
20746
  function Ze(H, W) {
20747
- let G = {
20747
+ let X = {
20748
20748
  type: 14
20749
20749
  /* TokenTypes.EOF */
20750
20750
  };
@@ -20766,7 +20766,7 @@ function Ik(e, t = {}) {
20766
20766
  return $e(H, W) || f(W);
20767
20767
  default: {
20768
20768
  if (E(H))
20769
- return G = v(W, 1, Ie(H)), W.braceNest = 0, W.inLinked = !1, G;
20769
+ return X = v(W, 1, Ie(H)), W.braceNest = 0, W.inLinked = !1, X;
20770
20770
  const { isModulo: ke, hasSpace: Le } = M(H);
20771
20771
  if (ke)
20772
20772
  return Le ? v(W, 0, ie(H)) : v(W, 4, le(H));
@@ -20775,11 +20775,11 @@ function Ik(e, t = {}) {
20775
20775
  break;
20776
20776
  }
20777
20777
  }
20778
- return G;
20778
+ return X;
20779
20779
  }
20780
20780
  function ot() {
20781
- const { currentType: H, offset: W, startLoc: G, endLoc: X } = s;
20782
- return s.lastType = H, s.lastOffset = W, s.lastStartLoc = G, s.lastEndLoc = X, s.offset = a(), s.startLoc = i(), r.currentChar() === Xr ? v(
20781
+ const { currentType: H, offset: W, startLoc: X, endLoc: Z } = s;
20782
+ return s.lastType = H, s.lastOffset = W, s.lastStartLoc = X, s.lastEndLoc = Z, s.offset = a(), s.startLoc = i(), r.currentChar() === Xr ? v(
20783
20783
  s,
20784
20784
  14
20785
20785
  /* TokenTypes.EOF */
@@ -22651,8 +22651,8 @@ function kd(e = {}, t) {
22651
22651
  __meta: { framework: "vue" }
22652
22652
  };
22653
22653
  se.datetimeFormats = v.value, se.numberFormats = f.value, se.__datetimeFormatters = ft(I) ? I.__datetimeFormatters : void 0, se.__numberFormatters = ft(I) ? I.__numberFormatters : void 0, process.env.NODE_ENV !== "production" && (se.__v_emitter = ft(I) ? I.__v_emitter : void 0);
22654
- const be = CC(se);
22655
- return a && hm(be), be;
22654
+ const ye = CC(se);
22655
+ return a && hm(ye), ye;
22656
22656
  })(), lo(I, c.value, u.value);
22657
22657
  function M() {
22658
22658
  return [
@@ -22686,10 +22686,10 @@ function kd(e = {}, t) {
22686
22686
  function Pe(se) {
22687
22687
  se !== null && (h = Om(se)), C = se, I.missing = h;
22688
22688
  }
22689
- function te(se, be) {
22690
- return se !== "translate" || !be.resolvedMessage;
22689
+ function te(se, ye) {
22690
+ return se !== "translate" || !ye.resolvedMessage;
22691
22691
  }
22692
- const V = (se, be, Ke, nt, me, Oe) => {
22692
+ const V = (se, ye, Ke, nt, me, Oe) => {
22693
22693
  M();
22694
22694
  let de;
22695
22695
  try {
@@ -22699,7 +22699,7 @@ function kd(e = {}, t) {
22699
22699
  }
22700
22700
  if (Ke !== "translate exists" && // for not `te` (e.g `t`)
22701
22701
  dn(de) && de === Ss || Ke === "translate exists" && !de) {
22702
- const [Ee, je] = be();
22702
+ const [Ee, je] = ye();
22703
22703
  if (process.env.NODE_ENV !== "production" && n && Ue(Ee) && te(Ke, je) && (p && (ks(g, Ee) || by(m, Ee)) && yn(Kn(Zt.FALLBACK_TO_ROOT, {
22704
22704
  key: Ee,
22705
22705
  type: Ke
@@ -22720,33 +22720,33 @@ function kd(e = {}, t) {
22720
22720
  }
22721
22721
  };
22722
22722
  function le(...se) {
22723
- return V((be) => Reflect.apply(bm, null, [be, ...se]), () => tc(...se), "translate", (be) => Reflect.apply(be.t, be, [...se]), (be) => be, (be) => Ue(be));
22723
+ return V((ye) => Reflect.apply(bm, null, [ye, ...se]), () => tc(...se), "translate", (ye) => Reflect.apply(ye.t, ye, [...se]), (ye) => ye, (ye) => Ue(ye));
22724
22724
  }
22725
22725
  function ie(...se) {
22726
- const [be, Ke, nt] = se;
22726
+ const [ye, Ke, nt] = se;
22727
22727
  if (nt && !Ot(nt))
22728
22728
  throw bn(Pt.INVALID_ARGUMENT);
22729
- return le(be, Ke, $n({ resolvedMessage: !0 }, nt || {}));
22729
+ return le(ye, Ke, $n({ resolvedMessage: !0 }, nt || {}));
22730
22730
  }
22731
22731
  function Ce(...se) {
22732
- return V((be) => Reflect.apply(wm, null, [be, ...se]), () => nc(...se), "datetime format", (be) => Reflect.apply(be.d, be, [...se]), () => es, (be) => Ue(be));
22732
+ return V((ye) => Reflect.apply(wm, null, [ye, ...se]), () => nc(...se), "datetime format", (ye) => Reflect.apply(ye.d, ye, [...se]), () => es, (ye) => Ue(ye));
22733
22733
  }
22734
- function j(...se) {
22735
- return V((be) => Reflect.apply(km, null, [be, ...se]), () => rc(...se), "number format", (be) => Reflect.apply(be.n, be, [...se]), () => es, (be) => Ue(be));
22734
+ function U(...se) {
22735
+ return V((ye) => Reflect.apply(km, null, [ye, ...se]), () => rc(...se), "number format", (ye) => Reflect.apply(ye.n, ye, [...se]), () => es, (ye) => Ue(ye));
22736
22736
  }
22737
- function Z(se) {
22738
- return se.map((be) => Ue(be) || dn(be) || wt(be) ? Tm(String(be)) : be);
22737
+ function G(se) {
22738
+ return se.map((ye) => Ue(ye) || dn(ye) || wt(ye) ? Tm(String(ye)) : ye);
22739
22739
  }
22740
22740
  const Q = {
22741
- normalize: Z,
22741
+ normalize: G,
22742
22742
  interpolate: (se) => se,
22743
22743
  type: "vnode"
22744
22744
  };
22745
22745
  function Y(...se) {
22746
22746
  return V(
22747
- (be) => {
22747
+ (ye) => {
22748
22748
  let Ke;
22749
- const nt = be;
22749
+ const nt = ye;
22750
22750
  try {
22751
22751
  nt.processor = Q, Ke = Reflect.apply(bm, null, [nt, ...se]);
22752
22752
  } finally {
@@ -22757,97 +22757,97 @@ function kd(e = {}, t) {
22757
22757
  () => tc(...se),
22758
22758
  "translate",
22759
22759
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
22760
- (be) => be[ic](...se),
22761
- (be) => [Tm(be)],
22762
- (be) => Kt(be)
22760
+ (ye) => ye[ic](...se),
22761
+ (ye) => [Tm(ye)],
22762
+ (ye) => Kt(ye)
22763
22763
  );
22764
22764
  }
22765
- function ge(...se) {
22765
+ function be(...se) {
22766
22766
  return V(
22767
- (be) => Reflect.apply(km, null, [be, ...se]),
22767
+ (ye) => Reflect.apply(km, null, [ye, ...se]),
22768
22768
  () => rc(...se),
22769
22769
  "number format",
22770
22770
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
22771
- (be) => be[lc](...se),
22771
+ (ye) => ye[lc](...se),
22772
22772
  xm,
22773
- (be) => Ue(be) || Kt(be)
22773
+ (ye) => Ue(ye) || Kt(ye)
22774
22774
  );
22775
22775
  }
22776
22776
  function re(...se) {
22777
22777
  return V(
22778
- (be) => Reflect.apply(wm, null, [be, ...se]),
22778
+ (ye) => Reflect.apply(wm, null, [ye, ...se]),
22779
22779
  () => nc(...se),
22780
22780
  "datetime format",
22781
22781
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
22782
- (be) => be[oc](...se),
22782
+ (ye) => ye[oc](...se),
22783
22783
  xm,
22784
- (be) => Ue(be) || Kt(be)
22784
+ (ye) => Ue(ye) || Kt(ye)
22785
22785
  );
22786
22786
  }
22787
- function ye(se) {
22787
+ function ge(se) {
22788
22788
  $ = se, I.pluralRules = $;
22789
22789
  }
22790
- function ue(se, be) {
22790
+ function ue(se, ye) {
22791
22791
  return V(() => {
22792
22792
  if (!se)
22793
22793
  return !1;
22794
- const Ke = Ue(be) ? be : c.value, nt = $e(Ke), me = I.messageResolver(nt, se);
22794
+ const Ke = Ue(ye) ? ye : c.value, nt = $e(Ke), me = I.messageResolver(nt, se);
22795
22795
  return l ? me != null : ma(me) || rr(me) || Ue(me);
22796
- }, () => [se], "translate exists", (Ke) => Reflect.apply(Ke.te, Ke, [se, be]), lT, (Ke) => wt(Ke));
22796
+ }, () => [se], "translate exists", (Ke) => Reflect.apply(Ke.te, Ke, [se, ye]), lT, (Ke) => wt(Ke));
22797
22797
  }
22798
22798
  function Ie(se) {
22799
- let be = null;
22799
+ let ye = null;
22800
22800
  const Ke = vy(I, u.value, c.value);
22801
22801
  for (let nt = 0; nt < Ke.length; nt++) {
22802
22802
  const me = d.value[Ke[nt]] || {}, Oe = I.messageResolver(me, se);
22803
22803
  if (Oe != null) {
22804
- be = Oe;
22804
+ ye = Oe;
22805
22805
  break;
22806
22806
  }
22807
22807
  }
22808
- return be;
22808
+ return ye;
22809
22809
  }
22810
22810
  function Xe(se) {
22811
- const be = Ie(se);
22812
- return be ?? (n ? n.tm(se) || {} : {});
22811
+ const ye = Ie(se);
22812
+ return ye ?? (n ? n.tm(se) || {} : {});
22813
22813
  }
22814
22814
  function $e(se) {
22815
22815
  return d.value[se] || {};
22816
22816
  }
22817
- function Ze(se, be) {
22817
+ function Ze(se, ye) {
22818
22818
  if (i) {
22819
- const Ke = { [se]: be };
22819
+ const Ke = { [se]: ye };
22820
22820
  for (const nt in Ke)
22821
22821
  pr(Ke, nt) && No(Ke[nt]);
22822
- be = Ke[se];
22822
+ ye = Ke[se];
22823
22823
  }
22824
- d.value[se] = be, I.messages = d.value;
22824
+ d.value[se] = ye, I.messages = d.value;
22825
22825
  }
22826
- function ot(se, be) {
22826
+ function ot(se, ye) {
22827
22827
  d.value[se] = d.value[se] || {};
22828
- const Ke = { [se]: be };
22828
+ const Ke = { [se]: ye };
22829
22829
  if (i)
22830
22830
  for (const nt in Ke)
22831
22831
  pr(Ke, nt) && No(Ke[nt]);
22832
- be = Ke[se], El(be, d.value[se]), I.messages = d.value;
22832
+ ye = Ke[se], El(ye, d.value[se]), I.messages = d.value;
22833
22833
  }
22834
22834
  function H(se) {
22835
22835
  return v.value[se] || {};
22836
22836
  }
22837
- function W(se, be) {
22838
- v.value[se] = be, I.datetimeFormats = v.value, Sm(I, se, be);
22837
+ function W(se, ye) {
22838
+ v.value[se] = ye, I.datetimeFormats = v.value, Sm(I, se, ye);
22839
22839
  }
22840
- function G(se, be) {
22841
- v.value[se] = $n(v.value[se] || {}, be), I.datetimeFormats = v.value, Sm(I, se, be);
22840
+ function X(se, ye) {
22841
+ v.value[se] = $n(v.value[se] || {}, ye), I.datetimeFormats = v.value, Sm(I, se, ye);
22842
22842
  }
22843
- function X(se) {
22843
+ function Z(se) {
22844
22844
  return f.value[se] || {};
22845
22845
  }
22846
- function ke(se, be) {
22847
- f.value[se] = be, I.numberFormats = f.value, Cm(I, se, be);
22846
+ function ke(se, ye) {
22847
+ f.value[se] = ye, I.numberFormats = f.value, Cm(I, se, ye);
22848
22848
  }
22849
- function Le(se, be) {
22850
- f.value[se] = $n(f.value[se] || {}, be), I.numberFormats = f.value, Cm(I, se, be);
22849
+ function Le(se, ye) {
22850
+ f.value[se] = $n(f.value[se] || {}, ye), I.numberFormats = f.value, Cm(I, se, ye);
22851
22851
  }
22852
22852
  Im++, n && br && (pe(n.locale, (se) => {
22853
22853
  s && (c.value = se, I.locale = se, lo(I, c.value, u.value));
@@ -22921,9 +22921,9 @@ function kd(e = {}, t) {
22921
22921
  setPostTranslationHandler: oe,
22922
22922
  getMissingHandler: ce,
22923
22923
  setMissingHandler: Pe,
22924
- [Ny]: ye
22924
+ [Ny]: ge
22925
22925
  };
22926
- return Be.datetimeFormats = B, Be.numberFormats = K, Be.rt = ie, Be.te = ue, Be.tm = Xe, Be.d = Ce, Be.n = j, Be.getDateTimeFormat = H, Be.setDateTimeFormat = W, Be.mergeDateTimeFormat = G, Be.getNumberFormat = X, Be.setNumberFormat = ke, Be.mergeNumberFormat = Le, Be[Dy] = r, Be[ic] = Y, Be[oc] = re, Be[lc] = ge, process.env.NODE_ENV !== "production" && (Be[Ya] = (se) => {
22926
+ return Be.datetimeFormats = B, Be.numberFormats = K, Be.rt = ie, Be.te = ue, Be.tm = Xe, Be.d = Ce, Be.n = U, Be.getDateTimeFormat = H, Be.setDateTimeFormat = W, Be.mergeDateTimeFormat = X, Be.getNumberFormat = Z, Be.setNumberFormat = ke, Be.mergeNumberFormat = Le, Be[Dy] = r, Be[ic] = Y, Be[oc] = re, Be[lc] = be, process.env.NODE_ENV !== "production" && (Be[Ya] = (se) => {
22927
22927
  I.__v_emitter = se;
22928
22928
  }, Be[qo] = () => {
22929
22929
  I.__v_emitter = void 0;
@@ -23933,13 +23933,13 @@ function BT(e, t, n, r = {}) {
23933
23933
  function Ce(ue, Ie) {
23934
23934
  i.value && i.value.mergeLocaleMessage(ue, Ie);
23935
23935
  }
23936
- function j(ue) {
23936
+ function U(ue) {
23937
23937
  return i.value ? i.value.getDateTimeFormat(ue) : {};
23938
23938
  }
23939
- function Z(ue, Ie) {
23939
+ function G(ue, Ie) {
23940
23940
  i.value && (i.value.setDateTimeFormat(ue, Ie), u.value[ue] = Ie);
23941
23941
  }
23942
- function U(ue, Ie) {
23942
+ function j(ue, Ie) {
23943
23943
  i.value && i.value.mergeDateTimeFormat(ue, Ie);
23944
23944
  }
23945
23945
  function Q(ue) {
@@ -23948,7 +23948,7 @@ function BT(e, t, n, r = {}) {
23948
23948
  function Y(ue, Ie) {
23949
23949
  i.value && (i.value.setNumberFormat(ue, Ie), d.value[ue] = Ie);
23950
23950
  }
23951
- function ge(ue, Ie) {
23951
+ function be(ue, Ie) {
23952
23952
  i.value && i.value.mergeNumberFormat(ue, Ie);
23953
23953
  }
23954
23954
  const re = {
@@ -24027,14 +24027,14 @@ function BT(e, t, n, r = {}) {
24027
24027
  getLocaleMessage: le,
24028
24028
  setLocaleMessage: ie,
24029
24029
  mergeLocaleMessage: Ce,
24030
- getDateTimeFormat: j,
24031
- setDateTimeFormat: Z,
24032
- mergeDateTimeFormat: U,
24030
+ getDateTimeFormat: U,
24031
+ setDateTimeFormat: G,
24032
+ mergeDateTimeFormat: j,
24033
24033
  getNumberFormat: Q,
24034
24034
  setNumberFormat: Y,
24035
- mergeNumberFormat: ge
24035
+ mergeNumberFormat: be
24036
24036
  };
24037
- function ye(ue) {
24037
+ function ge(ue) {
24038
24038
  ue.locale.value = l.value, ue.fallbackLocale.value = s.value, Object.keys(c.value).forEach((Ie) => {
24039
24039
  ue.mergeLocaleMessage(Ie, c.value[Ie]);
24040
24040
  }), Object.keys(u.value).forEach((Ie) => {
@@ -24047,7 +24047,7 @@ function BT(e, t, n, r = {}) {
24047
24047
  if (e.proxy == null || e.proxy.$i18n == null)
24048
24048
  throw bn(Pt.NOT_AVAILABLE_COMPOSITION_IN_LEGACY);
24049
24049
  const ue = i.value = e.proxy.$i18n.__composer;
24050
- t === "global" ? (l.value = ue.locale.value, s.value = ue.fallbackLocale.value, c.value = ue.messages.value, u.value = ue.datetimeFormats.value, d.value = ue.numberFormats.value) : a && ye(ue);
24050
+ t === "global" ? (l.value = ue.locale.value, s.value = ue.fallbackLocale.value, c.value = ue.messages.value, u.value = ue.datetimeFormats.value, d.value = ue.numberFormats.value) : a && ge(ue);
24051
24051
  }), re;
24052
24052
  }
24053
24053
  const UT = [
@@ -40134,15 +40134,15 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40134
40134
  }
40135
40135
  });
40136
40136
  }
40137
- function A(U) {
40138
- const Y = Object.keys(Wn).find((ge) => ge.toLowerCase() === U.toLowerCase());
40137
+ function A(j) {
40138
+ const Y = Object.keys(Wn).find((be) => be.toLowerCase() === j.toLowerCase());
40139
40139
  return Y ? Wn[Y] : void 0;
40140
40140
  }
40141
40141
  function $() {
40142
40142
  p.value = (/* @__PURE__ */ new Date()).getDate();
40143
40143
  }
40144
- function I(U) {
40145
- if (!U || U.totalQuantity == 0) {
40144
+ function I(j) {
40145
+ if (!j || j.totalQuantity == 0) {
40146
40146
  a.dialog({
40147
40147
  html: !0,
40148
40148
  title: i("LicensesAvailableForReductionTitle"),
@@ -40153,11 +40153,11 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40153
40153
  });
40154
40154
  return;
40155
40155
  }
40156
- const Q = U.details.map((Y) => {
40157
- const ge = new Date(Y.allowedUntilDateTime).toLocaleString();
40156
+ const Q = j.details.map((Y) => {
40157
+ const be = new Date(Y.allowedUntilDateTime).toLocaleString();
40158
40158
  return i("CancellationWindows", {
40159
40159
  quantity: Y.quantity,
40160
- date: ge
40160
+ date: be
40161
40161
  });
40162
40162
  }).join("<br>");
40163
40163
  a.dialog({
@@ -40165,16 +40165,16 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40165
40165
  title: i("LicensesAvailableForReductionTitle"),
40166
40166
  message: `
40167
40167
  <p>${i("LicensesAvailableForReductionMessage")}</p>
40168
- <strong>${i("TotalQuantity")}: ${U.totalQuantity}</strong>
40168
+ <strong>${i("TotalQuantity")}: ${j.totalQuantity}</strong>
40169
40169
  <ul>
40170
40170
  <li>${Q}</li>
40171
40171
  </ul>
40172
40172
  `
40173
40173
  });
40174
40174
  }
40175
- async function E(U, Q) {
40175
+ async function E(j, Q) {
40176
40176
  n.value = !0;
40177
- const Y = A(U);
40177
+ const Y = A(j);
40178
40178
  if (!Y) {
40179
40179
  a.dialog({
40180
40180
  title: i("Error getting subscription details"),
@@ -40183,7 +40183,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40183
40183
  return;
40184
40184
  }
40185
40185
  try {
40186
- const ge = await Nt.query({
40186
+ const be = await Nt.query({
40187
40187
  query: yt`
40188
40188
  query subscriptionDetailsBySystemAndId(
40189
40189
  $externalSystemType: ExternalSystemType!
@@ -40240,15 +40240,15 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40240
40240
  },
40241
40241
  fetchPolicy: "no-cache"
40242
40242
  });
40243
- if (ge && ge.data && ge.data.subscriptionDetailsBySystemAndId) {
40244
- let re = JSON.parse(JSON.stringify(ge.data.subscriptionDetailsBySystemAndId));
40245
- re.__typename = "SubscriptionModelGraphQlLocal", re.lines.forEach((ye) => {
40246
- ye.__typename = "SubscriptionLineLocal", ye.price = ye.price ?? ye.cost, ye.originalPrice = ye.price, ye.newQuantity = ye.quantity, ye.changeQuantity = 0, ee(ye);
40243
+ if (be && be.data && be.data.subscriptionDetailsBySystemAndId) {
40244
+ let re = JSON.parse(JSON.stringify(be.data.subscriptionDetailsBySystemAndId));
40245
+ re.__typename = "SubscriptionModelGraphQlLocal", re.lines.forEach((ge) => {
40246
+ ge.__typename = "SubscriptionLineLocal", ge.price = ge.price ?? ge.cost, ge.originalPrice = ge.price, ge.newQuantity = ge.quantity, ge.changeQuantity = 0, ee(ge);
40247
40247
  }), re.daysToRenewal != null && (re.renewalColour = b0(re.daysToRenewal)), u.value = re;
40248
40248
  }
40249
40249
  u.value && (u.value.sinchAccountId && (s.value = !0), u.value.hasPendingChanges === !1 && await M(Y, Q), l.value = !0), c.value = JSON.stringify(u.value);
40250
- } catch (ge) {
40251
- console.error(ge), a.dialog({
40250
+ } catch (be) {
40251
+ console.error(be), a.dialog({
40252
40252
  title: i("Error getting subscription details"),
40253
40253
  message: i("Please try again, if the problem persists contact our support team.")
40254
40254
  });
@@ -40256,7 +40256,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40256
40256
  n.value = !1;
40257
40257
  }
40258
40258
  }
40259
- async function M(U, Q) {
40259
+ async function M(j, Q) {
40260
40260
  o.value = !0;
40261
40261
  try {
40262
40262
  const Y = await Nt.query({
@@ -40281,16 +40281,16 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40281
40281
  }`,
40282
40282
  variables: {
40283
40283
  providerSubscriptionId: Q,
40284
- externalSystemType: U
40284
+ externalSystemType: j
40285
40285
  }
40286
40286
  });
40287
40287
  m.value = Y?.data?.subscriptionDetailsFromProvider?.providerData;
40288
- const ge = Y.data.subscriptionDetailsFromProvider;
40289
- if (ge && u.value) {
40290
- const re = JSON.parse(JSON.stringify({ ...u.value, hasPendingChanges: ge.hasPendingChanges, isAutoRenewalEnabled: ge.renewalStatus, providerData: JSON.parse(ge.providerData) }));
40291
- for (const ye of re.lines) {
40292
- const ue = ge.products?.find((Ie) => Ie.vendor == ye.vendor && Ie.manufacturerPartNumber == ye.sku);
40293
- ue && (ye.quantity = ue.quantity);
40288
+ const be = Y.data.subscriptionDetailsFromProvider;
40289
+ if (be && u.value) {
40290
+ const re = JSON.parse(JSON.stringify({ ...u.value, hasPendingChanges: be.hasPendingChanges, isAutoRenewalEnabled: be.renewalStatus, providerData: JSON.parse(be.providerData) }));
40291
+ for (const ge of re.lines) {
40292
+ const ue = be.products?.find((Ie) => Ie.vendor == ge.vendor && Ie.manufacturerPartNumber == ge.sku);
40293
+ ue && (ge.quantity = ue.quantity);
40294
40294
  }
40295
40295
  u.value = re;
40296
40296
  }
@@ -40307,46 +40307,46 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40307
40307
  async function D() {
40308
40308
  if (!c.value)
40309
40309
  return;
40310
- let U = "";
40310
+ let j = "";
40311
40311
  if (u.value?.lines)
40312
40312
  for (let Q = 0; Q < u.value.lines.length; Q++) {
40313
40313
  const Y = u.value.lines[Q];
40314
- (Y.quantity != Y.newQuantity || Y.isMainSubscription) && (U += `<li>${Y.name}: ${i("From")} ${Y.quantity} ${i("To")} ${Y.newQuantity}</li>`);
40314
+ (Y.quantity != Y.newQuantity || Y.isMainSubscription) && (j += `<li>${Y.name}: ${i("From")} ${Y.quantity} ${i("To")} ${Y.newQuantity}</li>`);
40315
40315
  }
40316
40316
  a.dialog({
40317
40317
  title: i("UpdateSubscription"),
40318
40318
  cancel: !0,
40319
40319
  ok: !0,
40320
40320
  html: !0,
40321
- message: i("AreYouSureYouWantToUpdateSubscription", { lines: U })
40321
+ message: i("AreYouSureYouWantToUpdateSubscription", { lines: j })
40322
40322
  }).onOk(O);
40323
40323
  }
40324
40324
  async function O() {
40325
40325
  if (!c.value)
40326
40326
  return;
40327
40327
  r.value = !0, v.value = !0, d.value = !0;
40328
- const U = JSON.parse(c.value);
40328
+ const j = JSON.parse(c.value);
40329
40329
  try {
40330
- if (U && U.lines && u.value?.lines) {
40330
+ if (j && j.lines && u.value?.lines) {
40331
40331
  const Q = [];
40332
40332
  for (let re = 0; re < u.value.lines.length; re++) {
40333
- const ye = u.value.lines[re];
40334
- (ye.quantity != ye.newQuantity || ye.isMainSubscription) && Q.push({
40335
- quantity: ye.newQuantity,
40336
- sku: ye.sku,
40337
- vendor: ye.vendor,
40338
- isMainSubscription: ye.isMainSubscription
40333
+ const ge = u.value.lines[re];
40334
+ (ge.quantity != ge.newQuantity || ge.isMainSubscription) && Q.push({
40335
+ quantity: ge.newQuantity,
40336
+ sku: ge.sku,
40337
+ vendor: ge.vendor,
40338
+ isMainSubscription: ge.isMainSubscription
40339
40339
  });
40340
40340
  }
40341
40341
  const Y = {
40342
40342
  cspSubscriptionId: u.value.cspSubscriptionId,
40343
40343
  lines: Q,
40344
40344
  externalSystemType: u.value.externalSystemType
40345
- }, ge = await Nt.mutate({
40345
+ }, be = await Nt.mutate({
40346
40346
  mutation: Mc,
40347
40347
  variables: { data: Y }
40348
40348
  });
40349
- if (ge.data.updateSubscription && ge.data.updateSubscription.boolean)
40349
+ if (be.data.updateSubscription && be.data.updateSubscription.boolean)
40350
40350
  switch (u.value.externalSystemType) {
40351
40351
  case Wn.Microsoft:
40352
40352
  a.dialog({
@@ -40370,16 +40370,16 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40370
40370
  r.value = !1, v.value = !1, d.value = !1;
40371
40371
  }
40372
40372
  }
40373
- async function B(U) {
40373
+ async function B(j) {
40374
40374
  let Q = null;
40375
- if (U) {
40375
+ if (j) {
40376
40376
  Q = [];
40377
- var Y = u.value?.lines.filter((ye) => ye.price != ye.originalPrice);
40378
- Y && (Q = Y.map((ye) => ({ price: ye.price, productMpn: ye.sku })));
40377
+ var Y = u.value?.lines.filter((ge) => ge.price != ge.originalPrice);
40378
+ Y && (Q = Y.map((ge) => ({ price: ge.price, productMpn: ge.sku })));
40379
40379
  }
40380
- const ge = {
40380
+ const be = {
40381
40381
  cspSubscriptionId: u.value?.cspSubscriptionId,
40382
- isAutoRenewalEnabled: U ? null : u.value?.isAutoRenewalEnabled,
40382
+ isAutoRenewalEnabled: j ? null : u.value?.isAutoRenewalEnabled,
40383
40383
  sinchAccountId: u.value?.sinchAccountId,
40384
40384
  providerSubscriptionId: u.value?.providerSubscriptionId,
40385
40385
  currency: u.value?.currency,
@@ -40392,63 +40392,63 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40392
40392
  errorMessage
40393
40393
  }
40394
40394
  }`,
40395
- variables: { input: ge }
40395
+ variables: { input: be }
40396
40396
  });
40397
40397
  if (re.data && re.data.patchIngramSubscripton && re.data.patchIngramSubscripton)
40398
40398
  return re.data.patchIngramSubscripton;
40399
40399
  }
40400
- function K(U, Q, Y) {
40400
+ function K(j, Q, Y) {
40401
40401
  if (!Y) {
40402
40402
  console.error("goToOrderDetailsFromProvider: The parameter SubscriptionGqlModel is required");
40403
40403
  return;
40404
40404
  }
40405
- const ge = {
40405
+ const be = {
40406
40406
  externalSystemType: Y.externalSystemType,
40407
- providerOrderId: U.id,
40407
+ providerOrderId: j.id,
40408
40408
  customerCompanyName: Y.customerName,
40409
40409
  providerCustomerId: Y.providerCustomerId,
40410
40410
  cspCentralisedCustomerId: Y.centralisedCustomerId,
40411
40411
  externalSystemClientId: Y.externalSystemClientId
40412
40412
  };
40413
- C("goToOrderDetails", ge, Q);
40413
+ C("goToOrderDetails", be, Q);
40414
40414
  }
40415
- function ee(U) {
40416
- U.newQuantity = U.newQuantity <= 0 ? 1 : U.newQuantity;
40417
- const Q = U.cost && U.price ? (U.price - U.cost) / U.price * 100 : void 0;
40418
- U.totalCost = U.cost && U.newQuantity ? U.cost * U.newQuantity : void 0, U.totalPrice = U.price && U.newQuantity ? U.price * U.newQuantity : void 0, U.margin = Q ? parseFloat(Q.toFixed(2)) : void 0, U.availableStock = U.stockLevel ? U.stockLevel - U.newQuantity : void 0;
40415
+ function ee(j) {
40416
+ j.newQuantity = j.newQuantity <= 0 ? 1 : j.newQuantity;
40417
+ const Q = j.cost && j.price ? (j.price - j.cost) / j.price * 100 : void 0;
40418
+ j.totalCost = j.cost && j.newQuantity ? j.cost * j.newQuantity : void 0, j.totalPrice = j.price && j.newQuantity ? j.price * j.newQuantity : void 0, j.margin = Q ? parseFloat(Q.toFixed(2)) : void 0, j.availableStock = j.stockLevel ? j.stockLevel - j.newQuantity : void 0;
40419
40419
  }
40420
- function oe(U, Q) {
40420
+ function oe(j, Q) {
40421
40421
  const Y = Q / 100;
40422
- return U / (1 - Y);
40422
+ return j / (1 - Y);
40423
40423
  }
40424
- function ce(U) {
40425
- U.cost && U.margin && (U.price = parseFloat(oe(U.cost, U.margin).toFixed(2)), U.totalCost = U.cost && U.newQuantity ? U.cost * U.newQuantity : void 0, U.totalPrice = U.price && U.newQuantity ? U.price * U.newQuantity : void 0, U.availableStock = U.stockLevel ? U.stockLevel - U.newQuantity : void 0);
40424
+ function ce(j) {
40425
+ j.cost && j.margin && (j.price = parseFloat(oe(j.cost, j.margin).toFixed(2)), j.totalCost = j.cost && j.newQuantity ? j.cost * j.newQuantity : void 0, j.totalPrice = j.price && j.newQuantity ? j.price * j.newQuantity : void 0, j.availableStock = j.stockLevel ? j.stockLevel - j.newQuantity : void 0);
40426
40426
  }
40427
40427
  function Pe() {
40428
40428
  f.value = !0;
40429
40429
  }
40430
40430
  function te() {
40431
40431
  if (f.value = !1, u.value && u.value.lines && c.value) {
40432
- const U = JSON.parse(c.value);
40432
+ const j = JSON.parse(c.value);
40433
40433
  for (let Q = 0; Q < u.value.lines.length; Q++)
40434
- u.value.lines[Q].margin = U.lines[Q].margin, u.value.lines[Q].price = U.lines[Q].price;
40434
+ u.value.lines[Q].margin = j.lines[Q].margin, u.value.lines[Q].price = j.lines[Q].price;
40435
40435
  }
40436
40436
  }
40437
40437
  async function V() {
40438
40438
  n.value = !0;
40439
40439
  try {
40440
- const U = await B(!0);
40441
- U && U.success ? a.dialog({
40440
+ const j = await B(!0);
40441
+ j && j.success ? a.dialog({
40442
40442
  title: i("Success"),
40443
40443
  message: i("The prices were changed")
40444
40444
  }).onDismiss(async () => {
40445
40445
  f.value = !1, await E(_.route.params.externalSystem?.toString(), _.route.params.providerSubscriptionId);
40446
- }) : U && U.errorMessage ? a.dialog({
40446
+ }) : j && j.errorMessage ? a.dialog({
40447
40447
  title: i("Error while trying to update subscription"),
40448
- message: i(U.errorMessage)
40448
+ message: i(j.errorMessage)
40449
40449
  }).onDismiss(async () => {
40450
40450
  await E(_.route.params.externalSystem?.toString(), _.route.params.providerSubscriptionId);
40451
- }) : U && U.success == !1 && a.dialog({
40451
+ }) : j && j.success == !1 && a.dialog({
40452
40452
  title: i("Error while trying to update subscription"),
40453
40453
  message: i("Please try again, if the problem persists contact our support team.")
40454
40454
  }).onDismiss(async () => {
@@ -40461,13 +40461,13 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40461
40461
  async function le() {
40462
40462
  d.value = !0;
40463
40463
  try {
40464
- var U = await B(!1);
40465
- U && U.errorMessage ? a.dialog({
40464
+ var j = await B(!1);
40465
+ j && j.errorMessage ? a.dialog({
40466
40466
  title: i("Error while trying to update subscription"),
40467
- message: i(U.errorMessage)
40467
+ message: i(j.errorMessage)
40468
40468
  }).onDismiss(async () => {
40469
40469
  await E(_.route.params.externalSystem?.toString(), _.route.params.providerSubscriptionId);
40470
- }) : U && U.success == !1 && a.dialog({
40470
+ }) : j && j.success == !1 && a.dialog({
40471
40471
  title: i("Error while trying to update subscription"),
40472
40472
  message: i("Please try again, if the problem persists contact our support team.")
40473
40473
  }).onDismiss(async () => {
@@ -40482,7 +40482,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40482
40482
  d.value = !1;
40483
40483
  }
40484
40484
  }
40485
- async function ie(U) {
40485
+ async function ie(j) {
40486
40486
  if (c.value) {
40487
40487
  r.value = !0, v.value = !0;
40488
40488
  try {
@@ -40498,17 +40498,17 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40498
40498
  isMainSubscription: Ie.isMainSubscription
40499
40499
  });
40500
40500
  }
40501
- let ge = Wn[u.value.externalSystem];
40501
+ let be = Wn[u.value.externalSystem];
40502
40502
  const re = {
40503
40503
  cspSubscriptionId: u.value.cspSubscriptionId,
40504
40504
  lines: Y,
40505
- externalSystemType: ge,
40506
- isAutoRenewalEnabled: U
40507
- }, ye = await Nt.mutate({
40505
+ externalSystemType: be,
40506
+ isAutoRenewalEnabled: j
40507
+ }, ge = await Nt.mutate({
40508
40508
  mutation: Mc,
40509
40509
  variables: { data: re }
40510
40510
  });
40511
- if (ye.data.updateSubscription && ye.data.updateSubscription.boolean == !1)
40511
+ if (ge.data.updateSubscription && ge.data.updateSubscription.boolean == !1)
40512
40512
  throw new Error(i("Unknown error changing autorenewal"));
40513
40513
  }
40514
40514
  } catch (Q) {
@@ -40518,11 +40518,11 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40518
40518
  }
40519
40519
  }
40520
40520
  }
40521
- function Ce(U) {
40521
+ function Ce(j) {
40522
40522
  var Q = [];
40523
- if (Array.isArray(U?.networkError?.result?.errors))
40524
- for (const ge of U?.networkError?.result?.errors) {
40525
- var Y = ge;
40523
+ if (Array.isArray(j?.networkError?.result?.errors))
40524
+ for (const be of j?.networkError?.result?.errors) {
40525
+ var Y = be;
40526
40526
  if (Y.extensions?.message)
40527
40527
  try {
40528
40528
  const re = JSON.parse(Y.extensions.message.toString());
@@ -40539,10 +40539,10 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40539
40539
  message: Q.join(";")
40540
40540
  });
40541
40541
  }
40542
- async function j() {
40542
+ async function U() {
40543
40543
  n.value = !0;
40544
40544
  try {
40545
- const U = await Nt.mutate({
40545
+ const j = await Nt.mutate({
40546
40546
  mutation: yt`mutation cancelIngramSubscription($input: CancelIngramSubscriptionInput!){
40547
40547
  cancelIngramSubscription(input: $input) {
40548
40548
  boolean
@@ -40560,7 +40560,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40560
40560
  }
40561
40561
  }
40562
40562
  });
40563
- U.data.cancelIngramSubscription.errors.length > 0 && (U.data.cancelIngramSubscription.errors[0].__typename === "CancellingSubscriptionNotAllowed" ? u.value?.isAutoRenewalEnabled ? a.dialog({
40563
+ j.data.cancelIngramSubscription.errors.length > 0 && (j.data.cancelIngramSubscription.errors[0].__typename === "CancellingSubscriptionNotAllowed" ? u.value?.isAutoRenewalEnabled ? a.dialog({
40564
40564
  title: i("Cancelling is not allowed"),
40565
40565
  message: i("Accordingly with terms & conditions you cannot cancel this subscription, you can disable auto-renewal and wait until it expires")
40566
40566
  }) : a.dialog({
@@ -40570,8 +40570,8 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40570
40570
  title: i("Error while trying to cancel subscription"),
40571
40571
  message: i("Please try again, if the problem persists contact our support team.")
40572
40572
  }));
40573
- } catch (U) {
40574
- console.error(U), a.dialog({
40573
+ } catch (j) {
40574
+ console.error(j), a.dialog({
40575
40575
  title: i("Error while trying to cancel subscription"),
40576
40576
  message: i("Please try again, if the problem persists contact our support team.")
40577
40577
  });
@@ -40579,22 +40579,17 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40579
40579
  n.value = !1;
40580
40580
  }
40581
40581
  }
40582
- function Z(U, Q, Y) {
40583
- let ge = 0;
40584
- if (Q = Y != null ? Y > U.changeQuantityTmp : Q, Q)
40585
- ge = Y !== void 0 ? Y : U.changeQuantity + 1, U.newQuantity = U.quantity + ge, ee(U);
40586
- else {
40587
- if (ge = Y !== void 0 ? Y : U.changeQuantity - 1, u.value && u.value.externalSystemType == Wn.Microsoft && (!u.value.providerData?.refundableQuantity || u.value.providerData?.refundableQuantity.totalQuantity < U.quantity - (U.newQuantity - 1))) {
40588
- a.dialog({
40589
- html: !0,
40590
- title: i("LicensesAvailableForReductionTitle"),
40591
- message: i("NoLicensesToReduceMessage")
40592
- }), ge++, U.changeQuantity = ge, U.changeQuantityTmp = ge;
40593
- return;
40594
- }
40595
- U.newQuantity > 1 ? (U.newQuantity = U.quantity + ge, ee(U)) : ge++;
40582
+ function G(j, Q, Y) {
40583
+ let be = 0;
40584
+ if (Q = Y != null ? Y > j.changeQuantity : Q, Q ? be = Y !== void 0 ? Y : j.changeQuantity + 1 : be = Y !== void 0 ? Y : j.changeQuantity - 1, u.value && u.value.externalSystemType == Wn.Microsoft && u.value.providerData?.refundableQuantity && u.value.providerData?.refundableQuantity.totalQuantity > be) {
40585
+ a.dialog({
40586
+ html: !0,
40587
+ title: i("LicensesAvailableForReductionTitle"),
40588
+ message: i("NoLicensesToReduceMessage")
40589
+ }), be++;
40590
+ return;
40596
40591
  }
40597
- U.changeQuantity = ge, U.changeQuantityTmp = ge;
40592
+ j.newQuantity = j.quantity + be, j.changeQuantity = be, ee(j);
40598
40593
  }
40599
40594
  return R(!1), R(""), it(async () => {
40600
40595
  switch (_.route.params && await E(_.route.params.externalSystem?.toString(), _.route.params.providerSubscriptionId), _.exibitionMode) {
@@ -40605,10 +40600,10 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40605
40600
  g.value = ["name", "quantity", "changeQuantity", "newQuantity", "cost", "price", "totalCost", "totalPrice", "margin"];
40606
40601
  break;
40607
40602
  }
40608
- }), (U, Q) => (L(), J(Je, null, [
40603
+ }), (j, Q) => (L(), J(Je, null, [
40609
40604
  S("div", aA, [
40610
40605
  S("div", iA, [
40611
- S("div", oA, N(U.$t("Subscription details")), 1),
40606
+ S("div", oA, N(j.$t("Subscription details")), 1),
40612
40607
  u.value && u.value.externalSystemType != T(Wn).Microsoft ? Te((L(), J("div", lA, [
40613
40608
  l.value && u.value?.cspSubscriptionId ? (L(), we(g0, {
40614
40609
  key: 0,
@@ -40631,7 +40626,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40631
40626
  [Ne, n.value]
40632
40627
  ]),
40633
40628
  Te(S("div", null, [
40634
- Te(S("div", { class: "text-h5 text-center status-progress text-yellow" }, N(U.$t("Subscription is in processing mode")), 513), [
40629
+ Te(S("div", { class: "text-h5 text-center status-progress text-yellow" }, N(j.$t("Subscription is in processing mode")), 513), [
40635
40630
  [Ne, u.value?.hasPendingChanges]
40636
40631
  ]),
40637
40632
  S("div", sA, [
@@ -40639,7 +40634,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40639
40634
  S("div", cA, N(u.value?.subscriptionName), 1),
40640
40635
  S("table", dA, [
40641
40636
  _.exibitionMode == T(It).ResellerInfo ? (L(), J("tr", fA, [
40642
- S("td", null, N(U.$t("Customer")), 1),
40637
+ S("td", null, N(j.$t("Customer")), 1),
40643
40638
  S("td", null, [
40644
40639
  _.router && u.value && u.value.centralisedCustomerId && u.value.providerCustomerId ? (L(), we(Tn, {
40645
40640
  key: 0,
@@ -40654,35 +40649,35 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40654
40649
  ])
40655
40650
  ])) : ve("", !0),
40656
40651
  S("tr", null, [
40657
- S("td", null, N(U.$t("CSP Provider")), 1),
40652
+ S("td", null, N(j.$t("CSP Provider")), 1),
40658
40653
  S("td", null, N(u.value?.externalSystem), 1)
40659
40654
  ]),
40660
40655
  S("tr", null, [
40661
- S("td", null, N(U.$t("Status")), 1),
40656
+ S("td", null, N(j.$t("Status")), 1),
40662
40657
  S("td", null, N(u.value?.status), 1)
40663
40658
  ]),
40664
40659
  S("tr", null, [
40665
- S("td", null, N(U.$t("Billing Period")), 1),
40666
- S("td", null, N(u.value?.billingPeriod && U.$t(u.value?.billingPeriod)), 1)
40660
+ S("td", null, N(j.$t("Billing Period")), 1),
40661
+ S("td", null, N(u.value?.billingPeriod && j.$t(u.value?.billingPeriod)), 1)
40667
40662
  ]),
40668
40663
  S("tr", null, [
40669
- S("td", null, N(U.$t("Subscription Period")), 1),
40670
- S("td", null, N(u.value?.subscriptionPeriod && U.$t(u.value?.subscriptionPeriod)), 1)
40664
+ S("td", null, N(j.$t("Subscription Period")), 1),
40665
+ S("td", null, N(u.value?.subscriptionPeriod && j.$t(u.value?.subscriptionPeriod)), 1)
40671
40666
  ]),
40672
40667
  S("tr", null, [
40673
- S("td", null, N(U.$t("Creation Date")), 1),
40674
- S("td", null, N(U.$formatDate(u.value?.createdAt)), 1)
40668
+ S("td", null, N(j.$t("Creation Date")), 1),
40669
+ S("td", null, N(j.$formatDate(u.value?.createdAt)), 1)
40675
40670
  ]),
40676
40671
  S("tr", null, [
40677
- S("td", null, N(U.$t("Last Modified")), 1),
40678
- S("td", null, N(U.$formatDate(u.value?.updatedAt)), 1)
40672
+ S("td", null, N(j.$t("Last Modified")), 1),
40673
+ S("td", null, N(j.$formatDate(u.value?.updatedAt)), 1)
40679
40674
  ]),
40680
40675
  S("tr", null, [
40681
- S("td", null, N(U.$t("Integration")), 1),
40676
+ S("td", null, N(j.$t("Integration")), 1),
40682
40677
  S("td", null, N(u.value?.externalSystemClientName), 1)
40683
40678
  ]),
40684
40679
  S("tr", null, [
40685
- S("td", null, N(U.$t("Notes")), 1),
40680
+ S("td", null, N(j.$t("Notes")), 1),
40686
40681
  S("td", null, [
40687
40682
  u.value ? (L(), we(Fc, {
40688
40683
  key: 0,
@@ -40693,16 +40688,16 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40693
40688
  ])
40694
40689
  ]),
40695
40690
  S("tr", null, [
40696
- S("td", null, N(U.$t("Renewal Date")), 1),
40691
+ S("td", null, N(j.$t("Renewal Date")), 1),
40697
40692
  S("td", null, [
40698
40693
  u.value?.renewalDate ? (L(), J("span", {
40699
40694
  key: 0,
40700
40695
  class: Wt([u.value?.renewalColour, "text-weight-bold"])
40701
- }, N(U.$formatDate(u.value?.renewalDate)), 3)) : ve("", !0)
40696
+ }, N(j.$formatDate(u.value?.renewalDate)), 3)) : ve("", !0)
40702
40697
  ])
40703
40698
  ]),
40704
40699
  u.value && y.includes(u.value?.externalSystemType) ? (L(), J("tr", vA, [
40705
- S("td", null, N(U.$t("Auto Renew")), 1),
40700
+ S("td", null, N(j.$t("Auto Renew")), 1),
40706
40701
  S("td", null, [
40707
40702
  q(T(Gu), {
40708
40703
  modelValue: u.value.isAutoRenewalEnabled,
@@ -40710,7 +40705,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40710
40705
  Q[1] || (Q[1] = (Y) => u.value.isAutoRenewalEnabled = Y),
40711
40706
  le
40712
40707
  ],
40713
- label: u.value.isAutoRenewalEnabled ? U.$t("Enabled") : U.$t("Disabled"),
40708
+ label: u.value.isAutoRenewalEnabled ? j.$t("Enabled") : j.$t("Disabled"),
40714
40709
  disable: d.value || u.value?.status?.toLowerCase() != "active"
40715
40710
  }, null, 8, ["modelValue", "label", "disable"]),
40716
40711
  Te(q(T(_o), {
@@ -40723,7 +40718,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40723
40718
  ])
40724
40719
  ])) : ve("", !0),
40725
40720
  u.value && k.includes(u.value?.externalSystemType) ? (L(), J("tr", mA, [
40726
- S("td", null, N(U.$t("Auto Renew")), 1),
40721
+ S("td", null, N(j.$t("Auto Renew")), 1),
40727
40722
  S("td", null, [
40728
40723
  q(T(Gu), {
40729
40724
  modelValue: u.value.isAutoRenewalEnabled,
@@ -40731,7 +40726,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40731
40726
  Q[2] || (Q[2] = (Y) => u.value.isAutoRenewalEnabled = Y),
40732
40727
  ie
40733
40728
  ],
40734
- label: u.value.isAutoRenewalEnabled ? U.$t("Enabled") : U.$t("Disabled"),
40729
+ label: u.value.isAutoRenewalEnabled ? j.$t("Enabled") : j.$t("Disabled"),
40735
40730
  disable: v.value || u.value?.status?.toLowerCase() != "active"
40736
40731
  }, null, 8, ["modelValue", "label", "disable"]),
40737
40732
  Te(q(T(_o), {
@@ -40757,7 +40752,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40757
40752
  S("div", hA, [
40758
40753
  u.value && u.value.externalSystemType == T(Wn).Microsoft ? (L(), J("div", pA, [
40759
40754
  q(Sf, {
40760
- title: U.$t("Subscription order requests"),
40755
+ title: j.$t("Subscription order requests"),
40761
40756
  "csp-subscription-id": u.value.cspSubscriptionId,
40762
40757
  "rows-per-page-options": _.rowsPerPageOptions,
40763
40758
  "trigger-update-hook": p.value
@@ -40771,10 +40766,10 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40771
40766
  "external-system-type": u.value?.externalSystemType,
40772
40767
  "provider-customer-id": u.value?.providerCustomerId,
40773
40768
  "provider-subscription-id": u.value?.providerSubscriptionId,
40774
- "table-title": U.$t("Subscription History"),
40769
+ "table-title": j.$t("Subscription History"),
40775
40770
  "rows-per-page-options": _.rowsPerPageOptions,
40776
40771
  router: _.router,
40777
- onGoToOrderDetails: Q[3] || (Q[3] = (Y, ge) => K(Y, ge, u.value))
40772
+ onGoToOrderDetails: Q[3] || (Q[3] = (Y, be) => K(Y, be, u.value))
40778
40773
  }, null, 8, ["sinch-account-id", "csp-centralised-customer-id", "customer-company-name", "external-system-type", "provider-customer-id", "provider-subscription-id", "table-title", "rows-per-page-options", "router"])
40779
40774
  ])) : ve("", !0)
40780
40775
  ]))
@@ -40784,7 +40779,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40784
40779
  [Ne, !n.value && u.value]
40785
40780
  ]),
40786
40781
  Te(S("div", null, [
40787
- S("h4", null, N(U.$t("Error fetching the subscription details.")), 1)
40782
+ S("h4", null, N(j.$t("Error fetching the subscription details.")), 1)
40788
40783
  ], 512), [
40789
40784
  [Ne, !n.value && !u.value]
40790
40785
  ])
@@ -40796,7 +40791,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40796
40791
  q(T(jn), {
40797
40792
  flat: "",
40798
40793
  loading: n.value,
40799
- title: U.$t("Main Subscription"),
40794
+ title: j.$t("Main Subscription"),
40800
40795
  rows: u.value?.lines.filter((Y) => Y.isMainSubscription) ?? [],
40801
40796
  "row-key": "manufacturerPartNumber",
40802
40797
  columns: h,
@@ -40831,23 +40826,23 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40831
40826
  key: 0,
40832
40827
  href: "javascript:void(0)",
40833
40828
  class: "text-center q-mr-sm",
40834
- onClick: Q[4] || (Q[4] = (ge) => I(u.value?.providerData?.refundableQuantity))
40835
- }, N(U.$t("ViewLicencesToReduce")), 1)) : ve("", !0),
40829
+ onClick: Q[4] || (Q[4] = (be) => I(u.value?.providerData?.refundableQuantity))
40830
+ }, N(j.$t("ViewLicencesToReduce")), 1)) : ve("", !0),
40836
40831
  S("div", wA, [
40837
40832
  q(T(Ae), {
40838
40833
  size: "sm",
40839
40834
  style: { "min-width": "46px" },
40840
40835
  dense: "",
40841
- label: U.$t("Reduce"),
40836
+ label: j.$t("Reduce"),
40842
40837
  color: "negative",
40843
- onClick: (ge) => Z(Y.row, !1),
40838
+ onClick: (be) => G(Y.row, !1),
40844
40839
  disable: o.value || f.value || r.value
40845
40840
  }, null, 8, ["label", "onClick", "disable"]),
40846
40841
  q(T($t), {
40847
40842
  style: { "min-width": "60px" },
40848
40843
  disable: o.value || f.value || r.value,
40849
40844
  modelValue: Y.row.changeQuantity,
40850
- "onUpdate:modelValue": [(ge) => Y.row.changeQuantity = ge, (ge) => Z(Y.row, (ge ?? Y.row.changeQuantity) > Y.row.changeQuantity, ge)],
40845
+ "onUpdate:modelValue": [(be) => Y.row.changeQuantity = be, (be) => G(Y.row, (be ?? Y.row.changeQuantity) > Y.row.changeQuantity, be)],
40851
40846
  modelModifiers: { number: !0 },
40852
40847
  outlined: "",
40853
40848
  dense: "",
@@ -40861,14 +40856,14 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40861
40856
  size: "sm",
40862
40857
  style: { "min-width": "46px" },
40863
40858
  dense: "",
40864
- label: U.$t("Increase"),
40859
+ label: j.$t("Increase"),
40865
40860
  color: "positive",
40866
- onClick: (ge) => Z(Y.row, !0),
40861
+ onClick: (be) => G(Y.row, !0),
40867
40862
  disable: o.value || f.value || r.value
40868
40863
  }, null, 8, ["label", "onClick", "disable"])
40869
40864
  ]),
40870
40865
  Y.row.availableStock ? (L(), J("div", SA, [
40871
- S("span", kA, N(`${Y.row.availableStock} ${U.$t("MoreAvailable")}`), 1)
40866
+ S("span", kA, N(`${Y.row.availableStock} ${j.$t("MoreAvailable")}`), 1)
40872
40867
  ])) : ve("", !0)
40873
40868
  ])
40874
40869
  ])) : (L(), J("div", CA, [
@@ -40885,7 +40880,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40885
40880
  }, 1024)) : ve("", !0),
40886
40881
  g.value.includes("cost") ? (L(), we(T(qe), { key: "cost" }, {
40887
40882
  default: F(() => [
40888
- Re(N(U.$formatCurrency(Y.row.cost, u.value?.currency)), 1)
40883
+ Re(N(j.$formatCurrency(Y.row.cost, u.value?.currency)), 1)
40889
40884
  ]),
40890
40885
  _: 2
40891
40886
  }, 1024)) : ve("", !0),
@@ -40893,7 +40888,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40893
40888
  default: F(() => [
40894
40889
  Te(q(T($t), {
40895
40890
  modelValue: Y.row.price,
40896
- "onUpdate:modelValue": [(ge) => Y.row.price = ge, (ge) => ee(Y.row)],
40891
+ "onUpdate:modelValue": [(be) => Y.row.price = be, (be) => ee(Y.row)],
40897
40892
  modelModifiers: { number: !0 },
40898
40893
  outlined: "",
40899
40894
  dense: "",
@@ -40904,7 +40899,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40904
40899
  }, null, 8, ["modelValue", "onUpdate:modelValue", "prefix"]), [
40905
40900
  [Ne, f.value]
40906
40901
  ]),
40907
- Te(S("span", null, N(U.$formatCurrency(Y.row.price, u.value?.currency)), 513), [
40902
+ Te(S("span", null, N(j.$formatCurrency(Y.row.price, u.value?.currency)), 513), [
40908
40903
  [Ne, !f.value]
40909
40904
  ])
40910
40905
  ]),
@@ -40914,7 +40909,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40914
40909
  default: F(() => [
40915
40910
  Te(q(T($t), {
40916
40911
  modelValue: Y.row.margin,
40917
- "onUpdate:modelValue": [(ge) => Y.row.margin = ge, (ge) => ce(Y.row)],
40912
+ "onUpdate:modelValue": [(be) => Y.row.margin = be, (be) => ce(Y.row)],
40918
40913
  modelModifiers: { number: !0 },
40919
40914
  outlined: "",
40920
40915
  dense: "",
@@ -40925,7 +40920,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40925
40920
  }, null, 8, ["modelValue", "onUpdate:modelValue"]), [
40926
40921
  [Ne, f.value]
40927
40922
  ]),
40928
- Te(S("span", null, N(Y.row.margin != null ? `${Y.row.margin?.toFixed(2)}%` : U.$t("n/a")), 513), [
40923
+ Te(S("span", null, N(Y.row.margin != null ? `${Y.row.margin?.toFixed(2)}%` : j.$t("n/a")), 513), [
40929
40924
  [Ne, !f.value]
40930
40925
  ])
40931
40926
  ]),
@@ -40933,13 +40928,13 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40933
40928
  }, 1024)) : ve("", !0),
40934
40929
  g.value.includes("totalCost") ? (L(), we(T(qe), { key: "totalCost" }, {
40935
40930
  default: F(() => [
40936
- Re(N(U.$formatCurrency(Y.row.totalCost, u.value?.currency)), 1)
40931
+ Re(N(j.$formatCurrency(Y.row.totalCost, u.value?.currency)), 1)
40937
40932
  ]),
40938
40933
  _: 2
40939
40934
  }, 1024)) : ve("", !0),
40940
40935
  g.value.includes("totalPrice") ? (L(), we(T(qe), { key: "totalPrice" }, {
40941
40936
  default: F(() => [
40942
- Re(N(U.$formatCurrency(Y.row.totalPrice, u.value?.currency)), 1)
40937
+ Re(N(j.$formatCurrency(Y.row.totalPrice, u.value?.currency)), 1)
40943
40938
  ]),
40944
40939
  _: 2
40945
40940
  }, 1024)) : ve("", !0)
@@ -40953,7 +40948,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40953
40948
  q(T(jn), {
40954
40949
  flat: "",
40955
40950
  loading: n.value,
40956
- title: U.$t("Add Ons"),
40951
+ title: j.$t("Add Ons"),
40957
40952
  rows: u.value?.lines.filter((Y) => !Y.isMainSubscription) ?? [],
40958
40953
  "row-key": "manufacturerPartNumber",
40959
40954
  columns: h,
@@ -40983,16 +40978,16 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
40983
40978
  size: "sm",
40984
40979
  style: { "min-width": "46px" },
40985
40980
  dense: "",
40986
- label: U.$t("Reduce"),
40981
+ label: j.$t("Reduce"),
40987
40982
  color: "negative",
40988
- onClick: (ge) => Y.row.quantity > 1 && Y.row.quantity-- && ee(Y.row),
40983
+ onClick: (be) => G(Y.row, !1),
40989
40984
  disable: o.value || f.value || r.value
40990
40985
  }, null, 8, ["label", "onClick", "disable"]),
40991
40986
  q(T($t), {
40992
40987
  style: { "min-width": "60px" },
40993
40988
  disable: o.value || f.value || r.value,
40994
- modelValue: Y.row.quantity,
40995
- "onUpdate:modelValue": [(ge) => Y.row.quantity = ge, (ge) => ee(Y.row)],
40989
+ modelValue: Y.row.changeQuantity,
40990
+ "onUpdate:modelValue": [(be) => Y.row.changeQuantity = be, (be) => G(Y.row, (be ?? Y.row.changeQuantity) > Y.row.changeQuantity, be)],
40996
40991
  modelModifiers: { number: !0 },
40997
40992
  outlined: "",
40998
40993
  dense: "",
@@ -41000,20 +40995,20 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
41000
40995
  "hide-bottom-space": "",
41001
40996
  type: "number",
41002
40997
  inputmode: "numeric",
41003
- min: "1"
41004
- }, null, 8, ["disable", "modelValue", "onUpdate:modelValue"]),
40998
+ min: Y.row.quantity * -1 + 1
40999
+ }, null, 8, ["disable", "modelValue", "onUpdate:modelValue", "min"]),
41005
41000
  q(T(Ae), {
41006
41001
  size: "sm",
41007
41002
  style: { "min-width": "46px" },
41008
41003
  dense: "",
41009
- label: U.$t("Increase"),
41004
+ label: j.$t("Increase"),
41010
41005
  color: "positive",
41011
- onClick: (ge) => Y.row.quantity++ && ee(Y.row),
41006
+ onClick: (be) => G(Y.row, !0),
41012
41007
  disable: o.value || f.value || r.value
41013
41008
  }, null, 8, ["label", "onClick", "disable"])
41014
41009
  ]),
41015
41010
  Y.row.availableStock ? (L(), J("div", IA, [
41016
- S("span", OA, N(`${Y.row.availableStock} ${U.$t("MoreAvailable")}`), 1)
41011
+ S("span", OA, N(`${Y.row.availableStock} ${j.$t("MoreAvailable")}`), 1)
41017
41012
  ])) : ve("", !0)
41018
41013
  ])
41019
41014
  ])) : (L(), J("div", PA, [
@@ -41024,7 +41019,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
41024
41019
  }, 1024)) : ve("", !0),
41025
41020
  g.value.includes("cost") ? (L(), we(T(qe), { key: "cost" }, {
41026
41021
  default: F(() => [
41027
- Re(N(U.$formatCurrency(Y.row.cost, u.value?.currency)), 1)
41022
+ Re(N(j.$formatCurrency(Y.row.cost, u.value?.currency)), 1)
41028
41023
  ]),
41029
41024
  _: 2
41030
41025
  }, 1024)) : ve("", !0),
@@ -41032,7 +41027,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
41032
41027
  default: F(() => [
41033
41028
  Te(q(T($t), {
41034
41029
  modelValue: Y.row.price,
41035
- "onUpdate:modelValue": [(ge) => Y.row.price = ge, (ge) => ee(Y.row)],
41030
+ "onUpdate:modelValue": [(be) => Y.row.price = be, (be) => ee(Y.row)],
41036
41031
  modelModifiers: { number: !0 },
41037
41032
  outlined: "",
41038
41033
  dense: "",
@@ -41043,7 +41038,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
41043
41038
  }, null, 8, ["modelValue", "onUpdate:modelValue", "prefix"]), [
41044
41039
  [Ne, f.value]
41045
41040
  ]),
41046
- Te(S("span", null, N(U.$formatCurrency(Y.row.price, u.value?.currency)), 513), [
41041
+ Te(S("span", null, N(j.$formatCurrency(Y.row.price, u.value?.currency)), 513), [
41047
41042
  [Ne, !f.value]
41048
41043
  ])
41049
41044
  ]),
@@ -41053,7 +41048,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
41053
41048
  default: F(() => [
41054
41049
  Te(q(T($t), {
41055
41050
  modelValue: Y.row.margin,
41056
- "onUpdate:modelValue": [(ge) => Y.row.margin = ge, (ge) => ce(Y.row)],
41051
+ "onUpdate:modelValue": [(be) => Y.row.margin = be, (be) => ce(Y.row)],
41057
41052
  modelModifiers: { number: !0 },
41058
41053
  outlined: "",
41059
41054
  dense: "",
@@ -41064,7 +41059,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
41064
41059
  }, null, 8, ["modelValue", "onUpdate:modelValue"]), [
41065
41060
  [Ne, f.value]
41066
41061
  ]),
41067
- Te(S("span", null, N(Y.row.margin != null ? `${Y.row.margin?.toFixed(2)}%` : U.$t("n/a")), 513), [
41062
+ Te(S("span", null, N(Y.row.margin != null ? `${Y.row.margin?.toFixed(2)}%` : j.$t("n/a")), 513), [
41068
41063
  [Ne, !f.value]
41069
41064
  ])
41070
41065
  ]),
@@ -41072,13 +41067,13 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
41072
41067
  }, 1024)) : ve("", !0),
41073
41068
  g.value.includes("totalCost") ? (L(), we(T(qe), { key: "totalCost" }, {
41074
41069
  default: F(() => [
41075
- Re(N(U.$formatCurrency(Y.row.totalCost, u.value?.currency)), 1)
41070
+ Re(N(j.$formatCurrency(Y.row.totalCost, u.value?.currency)), 1)
41076
41071
  ]),
41077
41072
  _: 2
41078
41073
  }, 1024)) : ve("", !0),
41079
41074
  g.value.includes("totalPrice") ? (L(), we(T(qe), { key: "totalPrice" }, {
41080
41075
  default: F(() => [
41081
- Re(N(U.$formatCurrency(Y.row.totalPrice, u.value?.currency)), 1)
41076
+ Re(N(j.$formatCurrency(Y.row.totalPrice, u.value?.currency)), 1)
41082
41077
  ]),
41083
41078
  _: 2
41084
41079
  }, 1024)) : ve("", !0)
@@ -41104,22 +41099,22 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
41104
41099
  disable: u.value?.hasPendingChanges || r.value || n.value || f.value,
41105
41100
  loading: n.value,
41106
41101
  color: "negative",
41107
- label: U.$t("CancelSubscription"),
41108
- onClick: j
41102
+ label: j.$t("CancelSubscription"),
41103
+ onClick: U
41109
41104
  }, null, 8, ["disable", "loading", "label"])) : ve("", !0)
41110
41105
  ]),
41111
41106
  S("div", $A, [
41112
41107
  !d.value && !n.value && !o.value && u.value && y.includes(u.value.externalSystemType) ? (L(), J("div", qA, [
41113
41108
  Te(q(T(Ae), {
41114
41109
  color: "primary",
41115
- label: U.$t("Adjust Prices"),
41110
+ label: j.$t("Adjust Prices"),
41116
41111
  onClick: Pe
41117
41112
  }, null, 8, ["label"]), [
41118
41113
  [Ne, !f.value]
41119
41114
  ]),
41120
41115
  Te(q(T(Ae), {
41121
41116
  color: "warning",
41122
- label: U.$t("Cancel"),
41117
+ label: j.$t("Cancel"),
41123
41118
  onClick: te
41124
41119
  }, null, 8, ["label"]), [
41125
41120
  [Ne, f.value]
@@ -41127,7 +41122,7 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
41127
41122
  Te(q(T(Ae), {
41128
41123
  class: "q-ml-sm",
41129
41124
  color: "primary",
41130
- label: U.$t("Apply"),
41125
+ label: j.$t("Apply"),
41131
41126
  onClick: V
41132
41127
  }, null, 8, ["label"]), [
41133
41128
  [Ne, f.value]
@@ -41136,12 +41131,12 @@ const zR = { class: "text-h6" }, HR = { class: "q-mb-md" }, QR = { class: "q-mt-
41136
41131
  S("div", NA, [
41137
41132
  q(T(Ae), {
41138
41133
  disabled: P.value || u.value?.hasPendingChanges,
41139
- label: U.$t("Update"),
41134
+ label: j.$t("Update"),
41140
41135
  color: "primary",
41141
41136
  onClick: D,
41142
41137
  loading: o.value || r.value || f.value || d.value
41143
41138
  }, null, 8, ["disabled", "label", "loading"]),
41144
- Te(S("span", { class: "q-ml-md" }, N(U.$t("Subscription is in processing mode and can't be changed at this moment")), 513), [
41139
+ Te(S("span", { class: "q-ml-md" }, N(j.$t("Subscription is in processing mode and can't be changed at this moment")), 513), [
41145
41140
  [Ne, u.value?.hasPendingChanges]
41146
41141
  ])
41147
41142
  ])