@bagelink/vue 1.20.21 → 1.20.23

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.mjs CHANGED
@@ -5647,22 +5647,22 @@ function YL(e, l = {}) {
5647
5647
  const E = k.charCodeAt(0);
5648
5648
  return E >= 97 && E <= 122 || E >= 65 && E <= 90 || E >= 48 && E <= 57 || E === 95 || E === 36;
5649
5649
  }
5650
- function H(k) {
5650
+ function K(k) {
5651
5651
  return j(k, U);
5652
5652
  }
5653
5653
  function te(k) {
5654
5654
  const E = k.charCodeAt(0);
5655
5655
  return E >= 97 && E <= 122 || E >= 65 && E <= 90 || E >= 48 && E <= 57 || E === 95 || E === 36 || E === 45;
5656
5656
  }
5657
- function K(k) {
5657
+ function P(k) {
5658
5658
  return j(k, te);
5659
5659
  }
5660
- function P(k) {
5660
+ function H(k) {
5661
5661
  const E = k.charCodeAt(0);
5662
5662
  return E >= 48 && E <= 57;
5663
5663
  }
5664
5664
  function ue(k) {
5665
- return j(k, P);
5665
+ return j(k, H);
5666
5666
  }
5667
5667
  function ye(k) {
5668
5668
  const E = k.charCodeAt(0);
@@ -5700,7 +5700,7 @@ function YL(e, l = {}) {
5700
5700
  function g(k) {
5701
5701
  Y(k);
5702
5702
  let E = "", Ge = "";
5703
- for (; E = K(k); ) Ge += E;
5703
+ for (; E = P(k); ) Ge += E;
5704
5704
  const Ve = k.currentChar();
5705
5705
  if (Ve && Ve !== "}" && Ve !== $a && Ve !== Ra && Ve !== yt && Ve !== " ") {
5706
5706
  const Qe = oe(k);
@@ -5761,7 +5761,7 @@ function YL(e, l = {}) {
5761
5761
  }
5762
5762
  function re(k) {
5763
5763
  let E = "", Ge = "";
5764
- for (; E = H(k); ) Ge += E;
5764
+ for (; E = K(k); ) Ge += E;
5765
5765
  return Ge;
5766
5766
  }
5767
5767
  function We(k) {
@@ -7391,11 +7391,11 @@ function so(e = {}) {
7391
7391
  set: (q) => {
7392
7392
  s.value = q, T.fallbackLocale = s.value, v(s.value);
7393
7393
  }
7394
- }), U = I(() => o.value), H = /* @__PURE__ */ I(() => m.value), te = /* @__PURE__ */ I(() => u.value);
7395
- function K() {
7394
+ }), U = I(() => o.value), K = /* @__PURE__ */ I(() => m.value), te = /* @__PURE__ */ I(() => u.value);
7395
+ function P() {
7396
7396
  return vl(W) ? W : null;
7397
7397
  }
7398
- function P(q) {
7398
+ function H(q) {
7399
7399
  W = q, T.postTranslation = q;
7400
7400
  }
7401
7401
  function ue() {
@@ -7613,13 +7613,13 @@ function so(e = {}) {
7613
7613
  getLocaleMessage: ee,
7614
7614
  setLocaleMessage: ae,
7615
7615
  mergeLocaleMessage: k,
7616
- getPostTranslationHandler: K,
7617
- setPostTranslationHandler: P,
7616
+ getPostTranslationHandler: P,
7617
+ setPostTranslationHandler: H,
7618
7618
  getMissingHandler: ue,
7619
7619
  setMissingHandler: ye,
7620
7620
  [S5]: We
7621
7621
  };
7622
- return Zl.datetimeFormats = H, Zl.numberFormats = te, Zl.rt = g, Zl.te = Le, Zl.tm = le, Zl.d = z, Zl.n = J, Zl.getDateTimeFormat = E, Zl.setDateTimeFormat = Ge, Zl.mergeDateTimeFormat = Ve, Zl.getNumberFormat = Qe, Zl.setNumberFormat = Ue, Zl.mergeNumberFormat = ul, Zl[v5] = t, Zl[e2] = Q, Zl[l2] = re, Zl[t2] = oe, process.env.NODE_ENV !== "production" && (Zl[rn] = (q) => {
7622
+ return Zl.datetimeFormats = K, Zl.numberFormats = te, Zl.rt = g, Zl.te = Le, Zl.tm = le, Zl.d = z, Zl.n = J, Zl.getDateTimeFormat = E, Zl.setDateTimeFormat = Ge, Zl.mergeDateTimeFormat = Ve, Zl.getNumberFormat = Qe, Zl.setNumberFormat = Ue, Zl.mergeNumberFormat = ul, Zl[v5] = t, Zl[e2] = Q, Zl[l2] = re, Zl[t2] = oe, process.env.NODE_ENV !== "production" && (Zl[rn] = (q) => {
7623
7623
  T.__v_emitter = q;
7624
7624
  }, Zl[Zi] = () => {
7625
7625
  T.__v_emitter = void 0;
@@ -10886,8 +10886,8 @@ var PV = ["width", "height"], BV = { key: 0 }, QV = ["id", "y2"], AV = ["stop-co
10886
10886
  areaPath: re
10887
10887
  };
10888
10888
  });
10889
- }), T = I(() => l.area || r.value), x = I(() => T.value && l.gradient !== !1), S = qo(), w = (z) => `${S}-grad-${z}`, v = I(() => Math.max(1, Math.ceil(Z.value.length / l.maxLabels))), j = I(() => (d.value + c.value) * 2), U = I(() => j.value * (1 - m.value)), H = C(null), te = C(0);
10890
- function K(z) {
10889
+ }), T = I(() => l.area || r.value), x = I(() => T.value && l.gradient !== !1), S = qo(), w = (z) => `${S}-grad-${z}`, v = I(() => Math.max(1, Math.ceil(Z.value.length / l.maxLabels))), j = I(() => (d.value + c.value) * 2), U = I(() => j.value * (1 - m.value)), K = C(null), te = C(0);
10890
+ function P(z) {
10891
10891
  if (!Z.value.length) return;
10892
10892
  Hc(z, te);
10893
10893
  const J = t.value;
@@ -10896,27 +10896,27 @@ var PV = ["width", "height"], BV = { key: 0 }, QV = ["id", "y2"], AV = ["stop-co
10896
10896
  let B = z.clientX - F.left - i.value.left;
10897
10897
  o.value && (B = d.value - B);
10898
10898
  const $ = Math.round(B / Math.max(1, d.value) * (Z.value.length - 1));
10899
- H.value = Math.min(Z.value.length - 1, Math.max(0, $));
10899
+ K.value = Math.min(Z.value.length - 1, Math.max(0, $));
10900
10900
  }
10901
- function P() {
10902
- H.value = null;
10901
+ function H() {
10902
+ K.value = null;
10903
10903
  }
10904
- const ue = I(() => H.value == null ? 0 : s(G.value(H.value))), ye = I(() => H.value == null ? [] : V.value.map((z) => z.coords[H.value]).filter(Boolean).map((z, J) => ({
10904
+ const ue = I(() => K.value == null ? 0 : s(G.value(K.value))), ye = I(() => K.value == null ? [] : V.value.map((z) => z.coords[K.value]).filter(Boolean).map((z, J) => ({
10905
10905
  x: z.x,
10906
10906
  y: z.y,
10907
10907
  color: V.value[J].color
10908
- }))), me = I(() => H.value == null ? [] : u.value.map((z, J) => ({
10908
+ }))), me = I(() => K.value == null ? [] : u.value.map((z, J) => ({
10909
10909
  name: z.name,
10910
10910
  color: pt(z.color, J),
10911
- value: nt(z.points[H.value]?.y ?? 0, b.value)
10912
- }))), he = I(() => H.value == null ? "" : mo(Z.value[H.value])), ie = I(() => H.value == null || !r.value ? null : nt(u.value.reduce((z, J) => z + (J.points[H.value]?.y ?? 0), 0), b.value)), g = H5(te, a);
10911
+ value: nt(z.points[K.value]?.y ?? 0, b.value)
10912
+ }))), he = I(() => K.value == null ? "" : mo(Z.value[K.value])), ie = I(() => K.value == null || !r.value ? null : nt(u.value.reduce((z, J) => z + (J.points[K.value]?.y ?? 0), 0), b.value)), g = H5(te, a);
10913
10913
  return (z, J) => (L(), M("div", {
10914
10914
  ref_key: "el",
10915
10915
  ref: t,
10916
10916
  class: "bgl-chart w-100p relative",
10917
10917
  style: Ie({ height: `${N(n)}px` }),
10918
- onMousemove: K,
10919
- onMouseleave: P
10918
+ onMousemove: P,
10919
+ onMouseleave: H
10920
10920
  }, [N(a) ? (L(), M("svg", {
10921
10921
  key: 0,
10922
10922
  width: N(a),
@@ -10982,7 +10982,7 @@ var PV = ["width", "height"], BV = { key: 0 }, QV = ["id", "y2"], AV = ["stop-co
10982
10982
  y: N(c) + 16,
10983
10983
  "text-anchor": "middle"
10984
10984
  }, ne(N(mo)(F)), 9, dT)), [[mi, B % v.value === 0]])), 128))]),
10985
- H.value != null ? (L(), M("g", cT, [R("line", {
10985
+ K.value != null ? (L(), M("g", cT, [R("line", {
10986
10986
  x1: ue.value,
10987
10987
  x2: ue.value,
10988
10988
  y1: 0,
@@ -10996,7 +10996,7 @@ var PV = ["width", "height"], BV = { key: 0 }, QV = ["id", "y2"], AV = ["stop-co
10996
10996
  fill: F.color,
10997
10997
  class: "bgl-chart__hoverpt"
10998
10998
  }, null, 8, oT))), 128))])) : f("", !0)
10999
- ], 8, $V)], 8, PV)) : f("", !0), H.value != null ? (L(), ce(Kc, {
10999
+ ], 8, $V)], 8, PV)) : f("", !0), K.value != null ? (L(), ce(Kc, {
11000
11000
  key: 1,
11001
11001
  prefer: "top",
11002
11002
  style: Ie(N(g)),
@@ -11103,11 +11103,11 @@ var PV = ["width", "height"], BV = { key: 0 }, QV = ["id", "y2"], AV = ["stop-co
11103
11103
  function U() {
11104
11104
  w.value = null;
11105
11105
  }
11106
- const H = I(() => w.value == null ? "" : mo(u.value[w.value])), te = I(() => w.value == null ? [] : m.value.map((ue, ye) => ({
11106
+ const K = I(() => w.value == null ? "" : mo(u.value[w.value])), te = I(() => w.value == null ? [] : m.value.map((ue, ye) => ({
11107
11107
  name: ue.name,
11108
11108
  color: pt(ue.color, ye),
11109
11109
  value: nt(ue.points[w.value]?.y ?? 0, b.value)
11110
- }))), K = I(() => w.value == null || !l.stacked ? null : nt(r.value[w.value] ?? 0, b.value)), P = H5(v, a);
11110
+ }))), P = I(() => w.value == null || !l.stacked ? null : nt(r.value[w.value] ?? 0, b.value)), H = H5(v, a);
11111
11111
  return (ue, ye) => (L(), M("div", uT, [R("div", {
11112
11112
  ref_key: "el",
11113
11113
  ref: t,
@@ -11168,10 +11168,10 @@ var PV = ["width", "height"], BV = { key: 0 }, QV = ["id", "y2"], AV = ["stop-co
11168
11168
  ], 8, WT)], 8, ZT)) : f("", !0), w.value != null ? (L(), ce(Kc, {
11169
11169
  key: 1,
11170
11170
  prefer: "top",
11171
- style: Ie(N(P)),
11172
- label: H.value,
11171
+ style: Ie(N(H)),
11172
+ label: K.value,
11173
11173
  rows: te.value,
11174
- total: K.value
11174
+ total: P.value
11175
11175
  }, null, 8, [
11176
11176
  "style",
11177
11177
  "label",
@@ -11279,17 +11279,17 @@ var IT = [
11279
11279
  const V = s.value, T = o.value, x = V, S = V, w = T + (V - T) * 0.68;
11280
11280
  let v = -Math.PI / 2;
11281
11281
  return l.data.map((j, U) => {
11282
- const H = Math.max(0, j.value) / c.value, te = H * Math.PI * 2 * n.value, K = v;
11282
+ const K = Math.max(0, j.value) / c.value, te = K * Math.PI * 2 * n.value, P = v;
11283
11283
  v += te;
11284
- const P = K + te / 2, ue = j.color ? pt(j.color) : l.mode === "multi" ? pt(void 0, U) : uZ(l.color, l.data.length, U), ye = H * 100, me = !!l.labels && H >= l.labelMinShare;
11284
+ const H = P + te / 2, ue = j.color ? pt(j.color) : l.mode === "multi" ? pt(void 0, U) : uZ(l.color, l.data.length, U), ye = K * 100, me = !!l.labels && K >= l.labelMinShare;
11285
11285
  return {
11286
- d: TT(x, S, V, T, K, te),
11286
+ d: TT(x, S, V, T, P, te),
11287
11287
  color: ue,
11288
11288
  label: j.label,
11289
11289
  value: j.value,
11290
11290
  pct: ye,
11291
- lx: x + w * Math.cos(P),
11292
- ly: S + w * Math.sin(P),
11291
+ lx: x + w * Math.cos(H),
11292
+ ly: S + w * Math.sin(H),
11293
11293
  tagged: me,
11294
11294
  tagName: me && l.labels === "full" ? j.label : "",
11295
11295
  tagValue: me && l.labels !== "pct" ? d(j.value) : "",
@@ -11446,16 +11446,16 @@ var IT = [
11446
11446
  currency: l.currency,
11447
11447
  prefix: l.prefix,
11448
11448
  suffix: l.suffix
11449
- })), i = qo("funnel"), d = I(() => !!l.series?.length), c = I(() => (l.series ?? []).map((U, H) => ({
11449
+ })), i = qo("funnel"), d = I(() => !!l.series?.length), c = I(() => (l.series ?? []).map((U, K) => ({
11450
11450
  name: U.name,
11451
- color: pt(U.color, H)
11452
- }))), s = I(() => d.value ? (l.stages ?? []).map((U, H) => ({
11451
+ color: pt(U.color, K)
11452
+ }))), s = I(() => d.value ? (l.stages ?? []).map((U, K) => ({
11453
11453
  label: String(U),
11454
- value: (l.series ?? []).reduce((te, K) => te + (K.data[H] ?? 0), 0)
11454
+ value: (l.series ?? []).reduce((te, P) => te + (P.data[K] ?? 0), 0)
11455
11455
  })) : l.data ?? []), o = I(() => {
11456
11456
  const U = s.value[0]?.value || 1;
11457
- return s.value.map((H, te) => {
11458
- const K = s.value[te - 1]?.value, P = H.color ? pt(H.color) : l.mode === "multi" ? pt(void 0, te) : uZ(l.color, s.value.length, te), ue = H.value / U * 100, ye = K ? H.value / K * 100 : 100, me = te === 0, he = [`<b>${nt(H.value, n.value)}</b>`];
11457
+ return s.value.map((K, te) => {
11458
+ const P = s.value[te - 1]?.value, H = K.color ? pt(K.color) : l.mode === "multi" ? pt(void 0, te) : uZ(l.color, s.value.length, te), ue = K.value / U * 100, ye = P ? K.value / P * 100 : 100, me = te === 0, he = [`<b>${nt(K.value, n.value)}</b>`];
11459
11459
  !me && l.fromTop && he.push(`${ue.toFixed(1)}% of top`), !me && l.fromPrev && he.push(`${ye.toFixed(1)}% from previous`), d.value && (l.series ?? []).forEach((g) => {
11460
11460
  const z = g.data[te] ?? 0;
11461
11461
  z > 0 && he.push(`<span style="opacity:.7">${g.name}:</span> ${nt(z, n.value)}`);
@@ -11466,59 +11466,59 @@ var IT = [
11466
11466
  value: nt(g.data[te] ?? 0, n.value),
11467
11467
  raw: g.data[te] ?? 0
11468
11468
  })).filter((g) => g.raw > 0) : [{
11469
- name: H.label,
11470
- color: P,
11471
- value: nt(H.value, n.value),
11472
- raw: H.value
11469
+ name: K.label,
11470
+ color: H,
11471
+ value: nt(K.value, n.value),
11472
+ raw: K.value
11473
11473
  }];
11474
11474
  return {
11475
- label: H.label,
11476
- value: H.value,
11477
- display: nt(H.value, n.value),
11478
- frac: H.value / U,
11475
+ label: K.label,
11476
+ value: K.value,
11477
+ display: nt(K.value, n.value),
11478
+ frac: K.value / U,
11479
11479
  fromTop: ue,
11480
11480
  fromPrev: ye,
11481
11481
  isFirst: me,
11482
- color: P,
11482
+ color: H,
11483
11483
  rows: ie,
11484
- tip: `<div style="text-align:center">${H.label}<br>${he.join("<br>")}</div>`,
11485
- barFill: l.gradient ? `linear-gradient(90deg, color-mix(in srgb, ${P} 82%, black), ${P})` : P
11484
+ tip: `<div style="text-align:center">${K.label}<br>${he.join("<br>")}</div>`,
11485
+ barFill: l.gradient ? `linear-gradient(90deg, color-mix(in srgb, ${H} 82%, black), ${H})` : H
11486
11486
  };
11487
11487
  });
11488
11488
  }), m = I(() => l.orientation === "horizontal"), u = I(() => o.value.length * l.bandHeight), Z = I(() => m.value ? u.value : bs), b = I(() => m.value ? bs : u.value);
11489
- function h(U, H) {
11490
- const te = bs / 2 + H;
11489
+ function h(U, K) {
11490
+ const te = bs / 2 + K;
11491
11491
  return m.value ? `${U} ${te}` : `${te} ${U}`;
11492
11492
  }
11493
11493
  function r(U) {
11494
11494
  return (bs / 2 - tI) * U * a.value + 0.4;
11495
11495
  }
11496
- function Y(U, H, te, K, P, ue) {
11497
- const ye = (U + H) / 2;
11498
- return `M ${h(U, te)} L ${h(U, K)} C ${h(ye, K)} ${h(ye, ue)} ${h(H, ue)} L ${h(H, P)} C ${h(ye, P)} ${h(ye, te)} ${h(U, te)} Z`;
11496
+ function Y(U, K, te, P, H, ue) {
11497
+ const ye = (U + K) / 2;
11498
+ return `M ${h(U, te)} L ${h(U, P)} C ${h(ye, P)} ${h(ye, ue)} ${h(K, ue)} L ${h(K, H)} C ${h(ye, H)} ${h(ye, te)} ${h(U, te)} Z`;
11499
11499
  }
11500
11500
  const p = I(() => {
11501
11501
  const U = l.bandHeight;
11502
- return o.value.map((H, te) => {
11503
- const K = o.value[te + 1] ?? H, P = te * U, ue = (te + 1) * U, ye = r(H.frac), me = r(K.frac);
11502
+ return o.value.map((K, te) => {
11503
+ const P = o.value[te + 1] ?? K, H = te * U, ue = (te + 1) * U, ye = r(K.frac), me = r(P.frac);
11504
11504
  return {
11505
- ...H,
11506
- path: Y(P, ue, -ye, ye, -me, me),
11505
+ ...K,
11506
+ path: Y(H, ue, -ye, ye, -me, me),
11507
11507
  gradId: `${i}-${te}`
11508
11508
  };
11509
11509
  });
11510
11510
  }), W = I(() => {
11511
11511
  if (!d.value) return [];
11512
- const U = l.bandHeight, H = l.series ?? [], te = [];
11513
- return o.value.forEach((K, P) => {
11514
- const ue = P === o.value.length - 1, ye = o.value[P + 1] ?? K, me = P * U, he = (P + 1) * U, ie = K.value || 1, g = ye.value || 1, z = -r(K.frac), J = r(K.frac) * 2, F = -r(ye.frac), B = r(ye.frac) * 2;
11512
+ const U = l.bandHeight, K = l.series ?? [], te = [];
11513
+ return o.value.forEach((P, H) => {
11514
+ const ue = H === o.value.length - 1, ye = o.value[H + 1] ?? P, me = H * U, he = (H + 1) * U, ie = P.value || 1, g = ye.value || 1, z = -r(P.frac), J = r(P.frac) * 2, F = -r(ye.frac), B = r(ye.frac) * 2;
11515
11515
  let $ = 0, Q = 0;
11516
- H.forEach((oe, re) => {
11517
- const We = (oe.data[P] ?? 0) / ie, Le = ue ? We : (oe.data[P + 1] ?? 0) / g, xe = z + $ * J, le = z + ($ + We) * J, ee = F + Q * B, ae = F + (Q + Le) * B;
11516
+ K.forEach((oe, re) => {
11517
+ const We = (oe.data[H] ?? 0) / ie, Le = ue ? We : (oe.data[H + 1] ?? 0) / g, xe = z + $ * J, le = z + ($ + We) * J, ee = F + Q * B, ae = F + (Q + Le) * B;
11518
11518
  $ += We, Q += Le, te.push({
11519
11519
  path: Y(me, he, xe, le, ee, ae),
11520
11520
  color: c.value[re].color,
11521
- key: `${P}-${re}`
11521
+ key: `${H}-${re}`
11522
11522
  });
11523
11523
  });
11524
11524
  }), te;
@@ -11535,19 +11535,19 @@ var IT = [
11535
11535
  const S = I(() => G.value == null ? null : o.value[G.value]), w = I(() => {
11536
11536
  const U = S.value;
11537
11537
  if (!U) return [];
11538
- const H = [];
11539
- return !U.isFirst && l.fromPrev && H.push({
11538
+ const K = [];
11539
+ return !U.isFirst && l.fromPrev && K.push({
11540
11540
  label: "From previous",
11541
11541
  value: `${U.fromPrev.toFixed(1)}%`
11542
- }), !U.isFirst && l.fromTop && H.push({
11542
+ }), !U.isFirst && l.fromTop && K.push({
11543
11543
  label: "Of top",
11544
11544
  value: `${U.fromTop.toFixed(1)}%`
11545
- }), H;
11545
+ }), K;
11546
11546
  }), v = I(() => {
11547
11547
  const U = S.value;
11548
11548
  return U && d.value ? U.display : null;
11549
11549
  }), j = VZ(y, X);
11550
- return (U, H) => {
11550
+ return (U, K) => {
11551
11551
  const te = et("tooltip");
11552
11552
  return L(), M("div", {
11553
11553
  ref_key: "el",
@@ -11565,36 +11565,36 @@ var IT = [
11565
11565
  viewBox: `0 0 ${Z.value} ${b.value}`,
11566
11566
  style: Ie(m.value ? { height: `${e.bandHeight * 3}px` } : { height: `${b.value}px` }),
11567
11567
  preserveAspectRatio: "none"
11568
- }, [e.gradient && !d.value ? (L(), M("defs", UT, [(L(!0), M(Xe, null, je(p.value, (K, P) => (L(), M("linearGradient", {
11569
- id: K.gradId,
11570
- key: P,
11568
+ }, [e.gradient && !d.value ? (L(), M("defs", UT, [(L(!0), M(Xe, null, je(p.value, (P, H) => (L(), M("linearGradient", {
11569
+ id: P.gradId,
11570
+ key: H,
11571
11571
  x1: 0,
11572
11572
  y1: 0,
11573
11573
  x2: m.value ? 0 : 1,
11574
11574
  y2: m.value ? 1 : 0
11575
11575
  }, [R("stop", {
11576
11576
  offset: "0%",
11577
- "stop-color": `color-mix(in srgb, ${K.color} 78%, black)`
11577
+ "stop-color": `color-mix(in srgb, ${P.color} 78%, black)`
11578
11578
  }, null, 8, ET), R("stop", {
11579
11579
  offset: "100%",
11580
- "stop-color": K.color
11581
- }, null, 8, KT)], 8, OT))), 128))])) : f("", !0), d.value ? (L(), M(Xe, { key: 2 }, [(L(!0), M(Xe, null, je(W.value, (K) => (L(), M("path", {
11582
- key: K.key,
11583
- d: K.path,
11584
- fill: K.color,
11580
+ "stop-color": P.color
11581
+ }, null, 8, KT)], 8, OT))), 128))])) : f("", !0), d.value ? (L(), M(Xe, { key: 2 }, [(L(!0), M(Xe, null, je(W.value, (P) => (L(), M("path", {
11582
+ key: P.key,
11583
+ d: P.path,
11584
+ fill: P.color,
11585
11585
  class: "bgl-funnel__sub"
11586
- }, null, 8, PT))), 128)), (L(!0), M(Xe, null, je(p.value, (K, P) => (L(), M("path", {
11587
- key: `hit${P}`,
11588
- d: K.path,
11586
+ }, null, 8, PT))), 128)), (L(!0), M(Xe, null, je(p.value, (P, H) => (L(), M("path", {
11587
+ key: `hit${H}`,
11588
+ d: P.path,
11589
11589
  fill: "transparent",
11590
11590
  class: "bgl-funnel__hit",
11591
- onMouseenter: (ue) => V(P)
11592
- }, null, 40, BT))), 128))], 64)) : (L(!0), M(Xe, { key: 1 }, je(p.value, (K, P) => (L(), M("path", {
11593
- key: P,
11594
- d: K.path,
11595
- fill: e.gradient ? `url(#${K.gradId})` : K.color,
11596
- class: Ze(["bgl-funnel__seg", { "opacity-5": G.value != null && G.value !== P }]),
11597
- onMouseenter: (ue) => V(P)
11591
+ onMouseenter: (ue) => V(H)
11592
+ }, null, 40, BT))), 128))], 64)) : (L(!0), M(Xe, { key: 1 }, je(p.value, (P, H) => (L(), M("path", {
11593
+ key: H,
11594
+ d: P.path,
11595
+ fill: e.gradient ? `url(#${P.gradId})` : P.color,
11596
+ class: Ze(["bgl-funnel__seg", { "opacity-5": G.value != null && G.value !== H }]),
11597
+ onMouseenter: (ue) => V(H)
11598
11598
  }, null, 42, HT))), 128))], 12, DT)),
11599
11599
  S.value ? (L(), ce(Kc, {
11600
11600
  key: 0,
@@ -11615,36 +11615,36 @@ var IT = [
11615
11615
  "total",
11616
11616
  "stats"
11617
11617
  ])) : f("", !0),
11618
- R("div", QT, [(L(!0), M(Xe, null, je(p.value, (K, P) => (L(), M("div", {
11619
- key: P,
11618
+ R("div", QT, [(L(!0), M(Xe, null, je(p.value, (P, H) => (L(), M("div", {
11619
+ key: H,
11620
11620
  class: "bgl-funnel__tick p-05",
11621
11621
  style: Ie(m.value ? { flex: "1 1 0" } : { height: `${e.bandHeight}px` })
11622
11622
  }, [R("span", {
11623
11623
  class: "bgl-funnel__name ellipsis-1 txt12 light opacity-6",
11624
- title: K.label
11625
- }, ne(K.label), 9, AT), R("span", _T, ne(K.display), 1)], 4))), 128))])
11624
+ title: P.label
11625
+ }, ne(P.label), 9, AT), R("span", _T, ne(P.display), 1)], 4))), 128))])
11626
11626
  ], 32)) : f("", !0),
11627
- e.flow && d.value ? (L(), M("ul", $T, [(L(!0), M(Xe, null, je(c.value, (K, P) => (L(), M("li", {
11628
- key: P,
11627
+ e.flow && d.value ? (L(), M("ul", $T, [(L(!0), M(Xe, null, je(c.value, (P, H) => (L(), M("li", {
11628
+ key: H,
11629
11629
  class: "flex align-items-center"
11630
11630
  }, [R("span", {
11631
11631
  class: "bgl-funnel__dot",
11632
- style: Ie({ background: K.color })
11633
- }, null, 4), Ae(ne(K.name), 1)]))), 128))])) : f("", !0),
11634
- e.flow ? f("", !0) : (L(!0), M(Xe, { key: 2 }, je(o.value, (K, P) => (L(), M("div", {
11635
- key: P,
11632
+ style: Ie({ background: P.color })
11633
+ }, null, 4), Ae(ne(P.name), 1)]))), 128))])) : f("", !0),
11634
+ e.flow ? f("", !0) : (L(!0), M(Xe, { key: 2 }, je(o.value, (P, H) => (L(), M("div", {
11635
+ key: H,
11636
11636
  class: "bgl-funnel__stage"
11637
11637
  }, [R("span", {
11638
11638
  class: "bgl-funnel__name txt-0875rem ellipsis-1",
11639
- title: K.label
11640
- }, ne(K.label), 9, qT), R("div", eI, [al((L(), M("div", {
11639
+ title: P.label
11640
+ }, ne(P.label), 9, qT), R("div", eI, [al((L(), M("div", {
11641
11641
  class: "bgl-funnel__bar flex flex-center",
11642
11642
  style: Ie({
11643
- width: `${Math.max(4, K.fromTop)}%`,
11644
- background: K.barFill
11643
+ width: `${Math.max(4, P.fromTop)}%`,
11644
+ background: P.barFill
11645
11645
  })
11646
- }, [R("span", lI, ne(K.display), 1)], 4)), [[te, {
11647
- content: K.tip,
11646
+ }, [R("span", lI, ne(P.display), 1)], 4)), [[te, {
11647
+ content: P.tip,
11648
11648
  html: !0
11649
11649
  }]])])]))), 128))
11650
11650
  ], 2);
@@ -12187,7 +12187,7 @@ var rI = ["transform"], bI = [
12187
12187
  color: W.value.fill,
12188
12188
  value: nt(W.value.value, d.value)
12189
12189
  }] : []), y = VZ(b, h), X = I(() => nt(0, d.value)), V = I(() => nt(s.value, d.value)), T = C(1), x = C(0), S = C(0), w = C(!1), v = C(null), j = I(() => `translate(${x.value} ${S.value}) scale(${T.value})`), U = I(() => T.value > gi + 1e-3);
12190
- function H(z, J, F) {
12190
+ function K(z, J, F) {
12191
12191
  return Math.min(F, Math.max(J, z));
12192
12192
  }
12193
12193
  function te(z, J) {
@@ -12209,23 +12209,23 @@ var rI = ["transform"], bI = [
12209
12209
  y: Q.y
12210
12210
  };
12211
12211
  }
12212
- function K(z, J, F) {
12213
- const B = H(F, gi, wb);
12212
+ function P(z, J, F) {
12213
+ const B = K(F, gi, wb);
12214
12214
  if (B === T.value) return;
12215
12215
  const { x: $, y: Q } = te(z, J), oe = B / T.value;
12216
12216
  x.value = $ - ($ - x.value) * oe, S.value = Q - (Q - S.value) * oe, T.value = B, B <= gi && (x.value = 0, S.value = 0, T.value = gi);
12217
12217
  }
12218
- function P(z) {
12218
+ function H(z) {
12219
12219
  if (!t.zoomable) return;
12220
12220
  z.preventDefault();
12221
12221
  const J = z.deltaY < 0 ? hs : 1 / hs;
12222
- K(z.clientX, z.clientY, T.value * J);
12222
+ P(z.clientX, z.clientY, T.value * J);
12223
12223
  }
12224
12224
  function ue(z) {
12225
12225
  const J = n.value;
12226
12226
  if (!J) return;
12227
12227
  const F = J.getBoundingClientRect();
12228
- K(F.left + F.width / 2, F.top + F.height / 2, T.value * z);
12228
+ P(F.left + F.width / 2, F.top + F.height / 2, T.value * z);
12229
12229
  }
12230
12230
  function ye() {
12231
12231
  T.value = gi, x.value = 0, S.value = 0;
@@ -12263,7 +12263,7 @@ var rI = ["transform"], bI = [
12263
12263
  style: Ie({ height: `${e.height}px` }),
12264
12264
  onMousemove: p,
12265
12265
  onMouseleave: Y,
12266
- onWheel: P,
12266
+ onWheel: H,
12267
12267
  onPointerdown: me,
12268
12268
  onPointermove: he,
12269
12269
  onPointerup: ie,
@@ -14281,7 +14281,7 @@ var jx = ["src", "title"], Jx = [
14281
14281
  });
14282
14282
  }), ie;
14283
14283
  });
14284
- function H(ie, g) {
14284
+ function K(ie, g) {
14285
14285
  if (!d.value || !V.value || !x.value) return;
14286
14286
  let z = -1;
14287
14287
  for (let $ = 0; $ < T.value.length; $++) {
@@ -14302,8 +14302,8 @@ var jx = ["src", "title"], Jx = [
14302
14302
  x: J.right - F.left,
14303
14303
  y: ie.clientY - F.top
14304
14304
  };
14305
- const B = P(ie.clientY, g);
14306
- c.value.startTime = B, document.addEventListener("mousemove", te), document.addEventListener("mouseup", K);
14305
+ const B = H(ie.clientY, g);
14306
+ c.value.startTime = B, document.addEventListener("mousemove", te), document.addEventListener("mouseup", P);
14307
14307
  }
14308
14308
  function te(ie) {
14309
14309
  if (!d.value || !c.value.isDragging || !c.value.start || !T.value.length || !V.value || !x.value) return;
@@ -14323,11 +14323,11 @@ var jx = ["src", "title"], Jx = [
14323
14323
  }, g >= 0 && g < m.value.length)) {
14324
14324
  const z = new Date(m.value[c.value.startDay]);
14325
14325
  z.setHours(0, 0, 0, 0);
14326
- const J = P(ie.clientY, z);
14326
+ const J = H(ie.clientY, z);
14327
14327
  c.value.endTime = J;
14328
14328
  }
14329
14329
  }
14330
- function K() {
14330
+ function P() {
14331
14331
  if (!d.value || !c.value.isDragging || !c.value.startTime || !c.value.endTime) return;
14332
14332
  let ie = new Date(c.value.startTime), g = new Date(c.value.endTime);
14333
14333
  g < ie && ([ie, g] = [g, ie]), a("eventCreate", {
@@ -14341,9 +14341,9 @@ var jx = ["src", "title"], Jx = [
14341
14341
  end: void 0,
14342
14342
  startTime: void 0,
14343
14343
  endTime: void 0
14344
- }, document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", K);
14344
+ }, document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", P);
14345
14345
  }
14346
- function P(ie, g) {
14346
+ function H(ie, g) {
14347
14347
  if (!x.value) return new Date(g);
14348
14348
  const z = ie - x.value.getBoundingClientRect().top, J = ea, F = z / ct, B = Math.floor(F * J), $ = new Date(g);
14349
14349
  $.setHours(Math.floor(B / 60));
@@ -14379,7 +14379,7 @@ var jx = ["src", "title"], Jx = [
14379
14379
  he(6);
14380
14380
  });
14381
14381
  }), Al(() => {
14382
- document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", K), document.removeEventListener("mousemove", Y), document.removeEventListener("mouseup", p), y.value && clearInterval(y.value);
14382
+ document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", P), document.removeEventListener("mousemove", Y), document.removeEventListener("mouseup", p), y.value && clearInterval(y.value);
14383
14383
  }), (ie, g) => (L(), M("div", xz, [
14384
14384
  R("div", {
14385
14385
  ref_key: "calendarGrid",
@@ -14419,7 +14419,7 @@ var jx = ["src", "title"], Jx = [
14419
14419
  ref_for: !0,
14420
14420
  ref: (F) => me(F, J),
14421
14421
  class: "day-column top bottom border-start relative",
14422
- onMousedown: (F) => t.availabilityEditable ? r(F, J) : H(F, z)
14422
+ onMousedown: (F) => t.availabilityEditable ? r(F, J) : K(F, z)
14423
14423
  }, [
14424
14424
  (L(!0), M(Xe, null, je(v.value, (F) => (L(), M(Xe, { key: `line-${F.time}` }, [
14425
14425
  R("div", {
@@ -14757,8 +14757,8 @@ ${u}}` : b.map(([h, r]) => `${h}: ${typeof r == "object" && r !== null ? i(r, m
14757
14757
  if (!ao(Z, b)) return;
14758
14758
  } else if (!b) return;
14759
14759
  }
14760
- const { $el: h, children: r, class: Y, id: p, transform: W, validate: G, onUpdate: y, slots: X, required: V, label: T, placeholder: x, disabled: S, defaultValue: w, ...v } = o, j = o.id ? "get" in (Z || {}) ? Z?.get(o.id) : ao(Z, o.id) : void 0, U = W ? p ? W(j, Z) : W(Z) : j, H = A1(v, j, Z), te = typeof u == "string" && Oz.has(u), K = typeof u == "string" && Ez.has(u), P = {
14761
- ...H,
14760
+ const { $el: h, children: r, class: Y, id: p, transform: W, validate: G, onUpdate: y, slots: X, required: V, label: T, placeholder: x, disabled: S, defaultValue: w, ...v } = o, j = o.id ? "get" in (Z || {}) ? Z?.get(o.id) : ao(Z, o.id) : void 0, U = W ? p ? W(j, Z) : W(Z) : j, K = A1(v, j, Z), te = typeof u == "string" && Oz.has(u), P = typeof u == "string" && Ez.has(u), H = {
14761
+ ...K,
14762
14762
  required: V,
14763
14763
  label: T,
14764
14764
  placeholder: x,
@@ -14771,42 +14771,42 @@ ${u}}` : b.map(([h, r]) => `${h}: ${typeof r == "object" && r !== null ? i(r, m
14771
14771
  };
14772
14772
  if (typeof o.onClick == "function") {
14773
14773
  const me = o.onClick;
14774
- P.onClick = () => {
14774
+ H.onClick = () => {
14775
14775
  p ? me(j, Z) : me(Z);
14776
14776
  };
14777
14777
  }
14778
- if (l === "form" ? (P.modelValue = j, P["onUpdate:modelValue"] = (me) => {
14778
+ if (l === "form" ? (H.modelValue = j, H["onUpdate:modelValue"] = (me) => {
14779
14779
  a?.(o, me);
14780
- }) : te || (K ? P.src = U : Hz(u) ? P.value = U != null ? String(U) : U : P.modelValue = U), Object.keys(P).forEach((me) => {
14781
- P[me] === void 0 && delete P[me];
14782
- }), o.options) if (Array.isArray(o.options)) P.options = o.options;
14780
+ }) : te || (P ? H.src = U : Hz(u) ? H.value = U != null ? String(U) : U : H.modelValue = U), Object.keys(H).forEach((me) => {
14781
+ H[me] === void 0 && delete H[me];
14782
+ }), o.options) if (Array.isArray(o.options)) H.options = o.options;
14783
14783
  else if (typeof o.options == "function") {
14784
14784
  const me = o.options;
14785
- u === Ut ? P.options = (he) => {
14785
+ u === Ut ? H.options = (he) => {
14786
14786
  const ie = t?.(), g = j;
14787
14787
  if (typeof me == "function" && me.length === 1) return me(he);
14788
14788
  if (typeof me == "function" && me.length >= 3) return me(he, g, ie);
14789
14789
  const z = me(g, ie);
14790
14790
  return Array.isArray(z) ? z : typeof z == "function" ? z(he) : z && typeof z.then == "function" ? z : [];
14791
- } : P.options = async () => {
14791
+ } : H.options = async () => {
14792
14792
  const he = t?.(), ie = j, g = me(ie, he);
14793
14793
  return Array.isArray(g) ? g : typeof g == "function" ? await g("") : g && typeof g.then == "function" ? await g : me.length >= 3 ? await me("", ie, he) : [];
14794
14794
  };
14795
- } else P.options = o.options;
14795
+ } else H.options = o.options;
14796
14796
  if (o.attrs) {
14797
14797
  const me = A1(o.attrs, j, Z);
14798
14798
  Object.entries(me).forEach(([he, ie]) => {
14799
14799
  if (he !== "$el")
14800
14800
  if (typeof ie == "function") if (he === "onClick") {
14801
14801
  const g = ie;
14802
- P.onClick = () => {
14802
+ H.onClick = () => {
14803
14803
  p ? g(j, Z) : g(Z);
14804
14804
  };
14805
- } else he.startsWith("on") ? P[he] = ie : P[he] = ie(j, Z);
14806
- else P[he] = ie;
14805
+ } else he.startsWith("on") ? H[he] = ie : H[he] = ie(j, Z);
14806
+ else H[he] = ie;
14807
14807
  });
14808
14808
  }
14809
- P.class = b8(j, Z, Y, P.class);
14809
+ H.class = b8(j, Z, Y, H.class);
14810
14810
  const ue = {};
14811
14811
  r && r.length > 0 && (ue.default = () => r.map((me) => c(me, m)).filter(Boolean)), te && U !== void 0 && (ue.default = () => String(U ?? "")), X && Object.entries(X).forEach(([me, he]) => {
14812
14812
  ue[me] = () => Array.isArray(he) ? he.map((ie) => typeof ie == "function" ? ie({
@@ -14819,7 +14819,7 @@ ${u}}` : b.map(([h, r]) => `${h}: ${typeof r == "object" && r !== null ? i(r, m
14819
14819
  field: o
14820
14820
  }) : void 0;
14821
14821
  if (l === "preview")
14822
- return !n && (U == null || typeof U == "string" && U.length === 0) ? void 0 : ol("div", { class: "preview-field" }, [ol("div", { class: "field-label" }, `${o.label || ts(o.id || "")}:`), ol("div", { class: "field-value" }, [ye || (typeof o.$el == "object" ? ol(u, P, ue) : typeof U == "object" && U !== null ? ol("pre", { style: "margin: 0; white-space: pre-wrap; font-family: inherit; font-size: inherit;" }, i(U)) : String(U ?? ""))])]);
14822
+ return !n && (U == null || typeof U == "string" && U.length === 0) ? void 0 : ol("div", { class: "preview-field" }, [ol("div", { class: "field-label" }, `${o.label || ts(o.id || "")}:`), ol("div", { class: "field-value" }, [ye || (typeof o.$el == "object" ? ol(u, H, ue) : typeof U == "object" && U !== null ? ol("pre", { style: "margin: 0; white-space: pre-wrap; font-family: inherit; font-size: inherit;" }, i(U)) : String(U ?? ""))])]);
14823
14823
  if (!ye && l === "table" && typeof U == "string") {
14824
14824
  const me = ko(U);
14825
14825
  if (m8(U)) return ol("div", {
@@ -14834,7 +14834,7 @@ ${u}}` : b.map(([h, r]) => `${h}: ${typeof r == "object" && r !== null ? i(r, m
14834
14834
  title: me
14835
14835
  }, me);
14836
14836
  }
14837
- return ye || ol(u, P, ue);
14837
+ return ye || ol(u, H, ue);
14838
14838
  }
14839
14839
  return {
14840
14840
  renderField: s,
@@ -15112,18 +15112,18 @@ function zZ(e = {}) {
15112
15112
  let Ve = le;
15113
15113
  return le === re ? k > Ge && (Ve += 1) : le === Y ? le > re ? k < E ? Ve = le : Ve = le + 1 : k > Ge ? Ve = le + 1 : Ve = le : k > ae * 0.6 && (Ve += 1), Y = Ve, p = Le, Ve;
15114
15114
  }
15115
- function H() {
15116
- d && (document.removeEventListener("mousemove", ie), document.removeEventListener("mouseup", g), document.removeEventListener("keydown", K), document.removeEventListener("touchmove", J), document.removeEventListener("touchend", F), document.removeEventListener("touchcancel", te), window.removeEventListener("blur", te), a.value && X(a.value), n.value && X(n.value), a.value = null, n.value = null, t.value && (t.value.__drag_list?.forEach((Q) => {
15115
+ function K() {
15116
+ d && (document.removeEventListener("mousemove", ie), document.removeEventListener("mouseup", g), document.removeEventListener("keydown", P), document.removeEventListener("touchmove", J), document.removeEventListener("touchend", F), document.removeEventListener("touchcancel", te), window.removeEventListener("blur", te), a.value && X(a.value), n.value && X(n.value), a.value = null, n.value = null, t.value && (t.value.__drag_list?.forEach((Q) => {
15117
15117
  Q.style.transition = "", Q.style.transform = "", Q.style.opacity = "";
15118
15118
  }), t.value.classList.remove(s.value.dragClass), t.value = null), l.value = !1, i.value = null, d && (document.body.style.userSelect = "", document.body.style.webkitUserSelect = "", document.body.style.cursor = ""), r && (cancelAnimationFrame(r), r = null), Y = -1, p = 0, G.clear());
15119
15119
  }
15120
15120
  function te() {
15121
- c.cancel(), H();
15121
+ c.cancel(), K();
15122
15122
  }
15123
- function K(Q) {
15123
+ function P(Q) {
15124
15124
  Q.key === "Escape" && l.value && te();
15125
15125
  }
15126
- function P(Q, oe, re, We) {
15126
+ function H(Q, oe, re, We) {
15127
15127
  l.value = !0, t.value = Q, o = oe, m = re;
15128
15128
  const Le = Q.getBoundingClientRect();
15129
15129
  u = Le.left, Z = Le.top, a.value = V(Q), a.value && (a.value.style.left = `${u}px`, a.value.style.top = `${Z}px`), s.value.mode === "line" && (n.value = T()), Q.classList.add(s.value.dragClass), b = s.value.mode === "ghost" ? w(Q) : v(Q), s.value.onStart?.(We);
@@ -15136,12 +15136,12 @@ function zZ(e = {}) {
15136
15136
  const re = Q.target.closest(s.value.handle);
15137
15137
  if (!re || !oe.contains(re)) return;
15138
15138
  }
15139
- P(oe, Q.clientX, Q.clientY, Q), c.start(Q, {
15139
+ H(oe, Q.clientX, Q.clientY, Q), c.start(Q, {
15140
15140
  cursor: "grabbing",
15141
15141
  target: oe,
15142
15142
  onMove: (re) => ie(re),
15143
15143
  onEnd: (re) => g(re),
15144
- onCancel: () => H()
15144
+ onCancel: () => K()
15145
15145
  });
15146
15146
  }
15147
15147
  }
@@ -15153,7 +15153,7 @@ function zZ(e = {}) {
15153
15153
  const re = Q.target.closest(s.value.handle);
15154
15154
  if (!re || !oe.contains(re)) return;
15155
15155
  }
15156
- Q.preventDefault(), P(oe, Q.clientX, Q.clientY, Q), d && (document.body.style.userSelect = "none", document.body.style.webkitUserSelect = "none", document.body.style.cursor = "grabbing", window.addEventListener("blur", te), document.addEventListener("mousemove", ie), document.addEventListener("mouseup", g), document.addEventListener("keydown", K));
15156
+ Q.preventDefault(), H(oe, Q.clientX, Q.clientY, Q), d && (document.body.style.userSelect = "none", document.body.style.webkitUserSelect = "none", document.body.style.cursor = "grabbing", window.addEventListener("blur", te), document.addEventListener("mousemove", ie), document.addEventListener("mouseup", g), document.addEventListener("keydown", P));
15157
15157
  }
15158
15158
  }
15159
15159
  function me(Q) {
@@ -15202,16 +15202,16 @@ function zZ(e = {}) {
15202
15202
  }
15203
15203
  function g(Q) {
15204
15204
  if (s.value.disabled) {
15205
- H();
15205
+ K();
15206
15206
  return;
15207
15207
  }
15208
15208
  if (l.value && (p = 0, ie(Q)), !l.value || !t.value || !i.value) {
15209
- H();
15209
+ K();
15210
15210
  return;
15211
15211
  }
15212
15212
  const oe = t.value.__drag_list;
15213
15213
  if (!oe || !oe.length) {
15214
- H();
15214
+ K();
15215
15215
  return;
15216
15216
  }
15217
15217
  const re = oe.filter((xe) => xe.dataset.draggable !== "false"), We = re.indexOf(t.value), Le = Fb(We, i.value.__intended_index, re.length);
@@ -15220,10 +15220,10 @@ function zZ(e = {}) {
15220
15220
  le.style.transition = "none", le.style.transform = "";
15221
15221
  }), document.body.offsetHeight;
15222
15222
  const xe = new MouseEvent("mouseup", Q);
15223
- xe.oldIndex = We, xe.newIndex = Le, xe.item = s.value.items?.[We] ?? t.value.__drag_data, H(), s.value.onEnd?.(xe);
15223
+ xe.oldIndex = We, xe.newIndex = Le, xe.item = s.value.items?.[We] ?? t.value.__drag_data, K(), s.value.onEnd?.(xe);
15224
15224
  return;
15225
15225
  }
15226
- H();
15226
+ K();
15227
15227
  }
15228
15228
  function z(Q) {
15229
15229
  if (!d || s.value.disabled || !Q.target) return;
@@ -15232,7 +15232,7 @@ function zZ(e = {}) {
15232
15232
  const re = Q.target, We = S(re);
15233
15233
  if (!We || Q.currentTarget !== We || l.value) return;
15234
15234
  const { handle: Le } = s.value;
15235
- Le && !re.closest(Le) || (Q.preventDefault(), P(We, oe.clientX, oe.clientY, Q), d && (document.body.style.userSelect = "none", document.body.style.webkitUserSelect = "none", document.body.style.cursor = "grabbing", window.addEventListener("blur", te), document.addEventListener("touchmove", J, { passive: !1 }), document.addEventListener("touchend", F), document.addEventListener("touchcancel", te), document.addEventListener("keydown", K)));
15235
+ Le && !re.closest(Le) || (Q.preventDefault(), H(We, oe.clientX, oe.clientY, Q), d && (document.body.style.userSelect = "none", document.body.style.webkitUserSelect = "none", document.body.style.cursor = "grabbing", window.addEventListener("blur", te), document.addEventListener("touchmove", J, { passive: !1 }), document.addEventListener("touchend", F), document.addEventListener("touchcancel", te), document.addEventListener("keydown", P)));
15236
15236
  }
15237
15237
  function J(Q) {
15238
15238
  Q.preventDefault();
@@ -15398,7 +15398,7 @@ var lg = { class: "row first-row" }, tg = {
15398
15398
  setup(e, { emit: l }) {
15399
15399
  Qh((g) => ({
15400
15400
  v7a739bef: ie.value,
15401
- v8eff354e: P.value,
15401
+ v8eff354e: H.value,
15402
15402
  f9098af8: he.value
15403
15403
  }));
15404
15404
  const t = e, a = l, n = zl(), i = Bl(e, "loading"), d = Bl(e, "itemHeight"), c = Bl(e, "fontSize"), s = Bl(e, "selectedItems"), { computedSchema: o, computedData: m, sortField: u, sortDirection: Z, toggleSort: b, cleanTransformedData: h } = sp({
@@ -15423,7 +15423,7 @@ var lg = { class: "row first-row" }, tg = {
15423
15423
  onLastItemVisible: () => {
15424
15424
  a("lastItemVisible"), t.onLastItemVisible?.();
15425
15425
  }
15426
- }), v = I(() => !!t.sortable), j = I(() => typeof t.sortable == "object" && t.sortable?.handle ? t.sortable.handle : ".drag-handle-col"), U = C(), { initDraggableContainer: H } = zZ({
15426
+ }), v = I(() => !!t.sortable), j = I(() => typeof t.sortable == "object" && t.sortable?.handle ? t.sortable.handle : ".drag-handle-col"), U = C(), { initDraggableContainer: K } = zZ({
15427
15427
  get handle() {
15428
15428
  return j.value;
15429
15429
  },
@@ -15448,13 +15448,13 @@ var lg = { class: "row first-row" }, tg = {
15448
15448
  });
15449
15449
  function te() {
15450
15450
  !v.value || !U.value || ml(() => {
15451
- U.value && H(U.value);
15451
+ U.value && K(U.value);
15452
15452
  });
15453
15453
  }
15454
15454
  we(X, te, { flush: "post" }), we(v, (g) => {
15455
15455
  g && ml(te);
15456
15456
  }), nl(te);
15457
- function K(g, z) {
15457
+ function P(g, z) {
15458
15458
  const { renderField: J } = cp({
15459
15459
  mode: "table",
15460
15460
  getFormData: () => z
@@ -15464,7 +15464,7 @@ var lg = { class: "row first-row" }, tg = {
15464
15464
  label: ""
15465
15465
  }, n);
15466
15466
  }
15467
- const P = I(() => `${d.value}px`);
15467
+ const H = I(() => `${d.value}px`);
15468
15468
  we(() => i.value, async (g, z) => {
15469
15469
  g !== z && (g || (w(), x(0), await ml(), x(0)));
15470
15470
  }, { immediate: !0 }), we(() => r.value.length, () => {
@@ -15528,7 +15528,7 @@ var lg = { class: "row first-row" }, tg = {
15528
15528
  }, [F.id && N(n)?.[F.id] ? Te(g.$slots, F.id, {
15529
15529
  row: J,
15530
15530
  field: F
15531
- }, void 0, !0, 0) : (L(), M("div", mg, [(L(), ce(Pl(K(F, J))))]))]))), 128))
15531
+ }, void 0, !0, 0) : (L(), M("div", mg, [(L(), ce(Pl(P(F, J))))]))]))), 128))
15532
15532
  ], 10, dg))), 128)), t.onLastItemVisible !== void 0 ? (L(), M("tr", {
15533
15533
  key: 0,
15534
15534
  ref_key: "lastItemEl",
@@ -15924,13 +15924,13 @@ var Mg = 50, Vg = async (e, l, t) => {
15924
15924
  }, b = RZ(n), h = wZ(b), r = await d.getDimensions(o), Y = b === "y", p = Y ? "top" : "left", W = Y ? "bottom" : "right", G = Y ? "clientHeight" : "clientWidth", y = i.reference[h] + i.reference[b] - Z[b] - i.floating[h], X = Z[b] - i.reference[b], V = await (d.getOffsetParent == null ? void 0 : d.getOffsetParent(o));
15925
15925
  let T = V ? V[G] : 0;
15926
15926
  (!T || !await (d.isElement == null ? void 0 : d.isElement(V))) && (T = c.floating[G] || i.floating[h]);
15927
- const x = y / 2 - X / 2, S = T / 2 - r[h] / 2 - 1, w = bi(u[p], S), v = bi(u[W], S), j = T - r[h] - v, U = T / 2 - r[h] / 2 + x, H = mp(w, U, j), te = !s.arrow && Ma(n) != null && U !== H && i.reference[h] / 2 - (U < w ? w : v) - r[h] / 2 < 0, K = te ? U < w ? U - w : U - j : 0;
15927
+ const x = y / 2 - X / 2, S = T / 2 - r[h] / 2 - 1, w = bi(u[p], S), v = bi(u[W], S), j = T - r[h] - v, U = T / 2 - r[h] / 2 + x, K = mp(w, U, j), te = !s.arrow && Ma(n) != null && U !== K && i.reference[h] / 2 - (U < w ? w : v) - r[h] / 2 < 0, P = te ? U < w ? U - w : U - j : 0;
15928
15928
  return {
15929
- [b]: Z[b] + K,
15929
+ [b]: Z[b] + P,
15930
15930
  data: {
15931
- [b]: H,
15932
- centerOffset: U - H - K,
15933
- ...te && { alignmentOffset: K }
15931
+ [b]: K,
15932
+ centerOffset: U - K - P,
15933
+ ...te && { alignmentOffset: P }
15934
15934
  },
15935
15935
  reset: te
15936
15936
  };
@@ -15993,42 +15993,42 @@ var xg = function(e) {
15993
15993
  const T = [c, ...X], x = await s.detectOverflow(l, Y), S = [];
15994
15994
  let w = ((a = i.flip) == null ? void 0 : a.overflows) || [];
15995
15995
  if (m && S.push(x[p]), u) {
15996
- const H = Zp(n, d, y);
15997
- S.push(x[H[0]], x[H[1]]);
15996
+ const K = Zp(n, d, y);
15997
+ S.push(x[K[0]], x[K[1]]);
15998
15998
  }
15999
15999
  if (w = [...w, {
16000
16000
  placement: n,
16001
16001
  overflows: S
16002
- }], !S.every((H) => H <= 0)) {
16002
+ }], !S.every((K) => K <= 0)) {
16003
16003
  var v, j;
16004
- const H = (((v = i.flip) == null ? void 0 : v.index) || 0) + 1, te = T[H];
16005
- if (te && (!(u === "alignment" && W !== nn(te)) || w.every((P) => nn(P.placement) === W ? P.overflows[0] > 0 : !0)))
16004
+ const K = (((v = i.flip) == null ? void 0 : v.index) || 0) + 1, te = T[K];
16005
+ if (te && (!(u === "alignment" && W !== nn(te)) || w.every((H) => nn(H.placement) === W ? H.overflows[0] > 0 : !0)))
16006
16006
  return {
16007
16007
  data: {
16008
- index: H,
16008
+ index: K,
16009
16009
  overflows: w
16010
16010
  },
16011
16011
  reset: { placement: te }
16012
16012
  };
16013
- let K = (j = w.filter((P) => P.overflows[0] <= 0).sort((P, ue) => P.overflows[1] - ue.overflows[1])[0]) == null ? void 0 : j.placement;
16014
- if (!K) switch (b) {
16013
+ let P = (j = w.filter((H) => H.overflows[0] <= 0).sort((H, ue) => H.overflows[1] - ue.overflows[1])[0]) == null ? void 0 : j.placement;
16014
+ if (!P) switch (b) {
16015
16015
  case "bestFit": {
16016
16016
  var U;
16017
- const P = (U = w.filter((ue) => {
16017
+ const H = (U = w.filter((ue) => {
16018
16018
  if (V) {
16019
16019
  const ye = nn(ue.placement);
16020
16020
  return ye === W || ye === "y";
16021
16021
  }
16022
16022
  return !0;
16023
16023
  }).map((ue) => [ue.placement, ue.overflows.filter((ye) => ye > 0).reduce((ye, me) => ye + me, 0)]).sort((ue, ye) => ue[1] - ye[1])[0]) == null ? void 0 : U[0];
16024
- P && (K = P);
16024
+ H && (P = H);
16025
16025
  break;
16026
16026
  }
16027
16027
  case "initialPlacement":
16028
- K = c;
16028
+ P = c;
16029
16029
  break;
16030
16030
  }
16031
- if (n !== K) return { reset: { placement: K } };
16031
+ if (n !== P) return { reset: { placement: P } };
16032
16032
  }
16033
16033
  return {};
16034
16034
  }
@@ -16592,7 +16592,7 @@ var qg = {
16592
16592
  function U() {
16593
16593
  return G.value ? j(G.value) : a.referenceEl ? a.referenceEl : s.value?.firstElementChild ?? s.value;
16594
16594
  }
16595
- async function H() {
16595
+ async function K() {
16596
16596
  const Je = U();
16597
16597
  if (!o.value || !Je || Y.value) return;
16598
16598
  const Ne = a.placement === "auto", { x: Fe, y: De } = await Vp(Je, o.value, {
@@ -16609,10 +16609,10 @@ var qg = {
16609
16609
  function te() {
16610
16610
  return !!o.value?.matches(":popover-open");
16611
16611
  }
16612
- async function K() {
16612
+ async function P() {
16613
16613
  if (a.disabled) return;
16614
16614
  if (te()) {
16615
- await H();
16615
+ await K();
16616
16616
  return;
16617
16617
  }
16618
16618
  c.value = !0;
@@ -16620,9 +16620,9 @@ var qg = {
16620
16620
  if (h.value = Je?.closest("dialog[open]") ?? b, a.showGroup && wi.has(a.showGroup) && wi.get(a.showGroup).forEach((Fe) => Fe()), await ml(), !o.value) return;
16621
16621
  o.value.dataset.bglId = Z;
16622
16622
  const Ne = Je?.closest("[data-bgl-id]");
16623
- Ne?.dataset.bglId ? o.value.dataset.bglOwner = Ne.dataset.bglId : delete o.value.dataset.bglOwner, o.value.style.opacity = "0", o.value.showPopover(), await H(), o.value.style.opacity = "", u && (g(), u = !1);
16623
+ Ne?.dataset.bglId ? o.value.dataset.bglOwner = Ne.dataset.bglId : delete o.value.dataset.bglOwner, o.value.style.opacity = "0", o.value.showPopover(), await K(), o.value.style.opacity = "", u && (g(), u = !1);
16624
16624
  }
16625
- function P(Je) {
16625
+ function H(Je) {
16626
16626
  te() && ((Je?.restoreFocus ?? !0) && !a.noAutoFocus && s.value?.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')?.focus(), o.value?.hidePopover());
16627
16627
  }
16628
16628
  function ue(Je) {
@@ -16631,10 +16631,10 @@ var qg = {
16631
16631
  y: Je.clientY,
16632
16632
  width: 0,
16633
16633
  height: 0
16634
- } : m.value = { ...Je }, K();
16634
+ } : m.value = { ...Je }, P();
16635
16635
  }
16636
16636
  function ye(Je) {
16637
- Je.disabled || (Je.action?.(), n("select", Je.value ?? Je.label ?? Je, Je), a.autoHide && P());
16637
+ Je.disabled || (Je.action?.(), n("select", Je.value ?? Je.label ?? Je, Je), a.autoHide && H());
16638
16638
  }
16639
16639
  const me = [
16640
16640
  "a[href]",
@@ -16673,12 +16673,12 @@ var qg = {
16673
16673
  break;
16674
16674
  }
16675
16675
  }
16676
- const J = K;
16676
+ const J = P;
16677
16677
  function F() {
16678
- P();
16678
+ H();
16679
16679
  }
16680
16680
  we(d, (Je) => {
16681
- Je && !te() ? K() : !Je && te() && P();
16681
+ Je && !te() ? P() : !Je && te() && H();
16682
16682
  }), we(() => [
16683
16683
  G.value?.x,
16684
16684
  G.value?.y,
@@ -16686,10 +16686,10 @@ var qg = {
16686
16686
  G.value?.height,
16687
16687
  a.referenceEl
16688
16688
  ], () => {
16689
- te() && H();
16689
+ te() && K();
16690
16690
  });
16691
16691
  function B(Je) {
16692
- Je.newState === "open" ? (Me(), d.value = !0, ml(H), n("show")) : (ll(), d.value = !1, n("hide"));
16692
+ Je.newState === "open" ? (Me(), d.value = !0, ml(K), n("show")) : (ll(), d.value = !1, n("hide"));
16693
16693
  }
16694
16694
  function $(Je) {
16695
16695
  if (!a.autoHide || !te()) return;
@@ -16699,23 +16699,23 @@ var qg = {
16699
16699
  for (const ge of Array.from(Fe))
16700
16700
  if (ge !== o.value && ge.contains(Ne) && De && ge.dataset.bglOwner === De)
16701
16701
  return;
16702
- P({ restoreFocus: !1 });
16702
+ H({ restoreFocus: !1 });
16703
16703
  }
16704
16704
  function Q() {
16705
- a.autoHide && te() && P({ restoreFocus: !1 });
16705
+ a.autoHide && te() && H({ restoreFocus: !1 });
16706
16706
  }
16707
- nr(() => P(), () => te());
16707
+ nr(() => H(), () => te());
16708
16708
  let oe, re;
16709
16709
  function We() {
16710
16710
  clearTimeout(oe), clearTimeout(re);
16711
16711
  }
16712
16712
  function Le() {
16713
- We(), P({ restoreFocus: !1 });
16713
+ We(), H({ restoreFocus: !1 });
16714
16714
  }
16715
16715
  let xe = 0;
16716
16716
  function le(Je = !1) {
16717
16717
  const Ne = Date.now();
16718
- Ne - xe < 50 || (xe = Ne, u = Je, te() ? P() : K());
16718
+ Ne - xe < 50 || (xe = Ne, u = Je, te() ? H() : P());
16719
16719
  }
16720
16720
  function ee(Je) {
16721
16721
  T.value && le(!!Je && Je.detail === 0);
@@ -16730,27 +16730,27 @@ var qg = {
16730
16730
  Je.preventDefault(), le(!0);
16731
16731
  break;
16732
16732
  case "ArrowDown":
16733
- Je.preventDefault(), u = !0, te() ? ie(0) : K();
16733
+ Je.preventDefault(), u = !0, te() ? ie(0) : P();
16734
16734
  break;
16735
16735
  case "ArrowUp":
16736
- Je.preventDefault(), u = !0, te() ? ie(-1) : K();
16736
+ Je.preventDefault(), u = !0, te() ? ie(-1) : P();
16737
16737
  break;
16738
16738
  }
16739
16739
  }
16740
16740
  function k() {
16741
- x.value && (clearTimeout(re), oe = setTimeout(K, v.value.show));
16741
+ x.value && (clearTimeout(re), oe = setTimeout(P, v.value.show));
16742
16742
  }
16743
16743
  function E() {
16744
- x.value && (clearTimeout(oe), re = setTimeout(() => P({ restoreFocus: !1 }), v.value.hide));
16744
+ x.value && (clearTimeout(oe), re = setTimeout(() => H({ restoreFocus: !1 }), v.value.hide));
16745
16745
  }
16746
16746
  function Ge() {
16747
16747
  S.value && clearTimeout(re);
16748
16748
  }
16749
16749
  function Ve() {
16750
- S.value && (re = setTimeout(() => P({ restoreFocus: !1 }), v.value.hide));
16750
+ S.value && (re = setTimeout(() => H({ restoreFocus: !1 }), v.value.hide));
16751
16751
  }
16752
16752
  function Qe() {
16753
- te() && H();
16753
+ te() && K();
16754
16754
  }
16755
16755
  let Ue = !1;
16756
16756
  const ul = /* @__PURE__ */ new Set();
@@ -16779,7 +16779,7 @@ var qg = {
16779
16779
  Ue && (document.removeEventListener("pointerdown", $, !0), document.removeEventListener("scroll", Qe, !0), q(), Ue = !1);
16780
16780
  }
16781
16781
  return nl(() => {
16782
- a.showGroup && (wi.has(a.showGroup) || wi.set(a.showGroup, /* @__PURE__ */ new Set()), wi.get(a.showGroup).add(Le)), d.value && K();
16782
+ a.showGroup && (wi.has(a.showGroup) || wi.set(a.showGroup, /* @__PURE__ */ new Set()), wi.get(a.showGroup).add(Le)), d.value && P();
16783
16783
  }), At(() => {
16784
16784
  ll(), We(), a.showGroup && wi.get(a.showGroup)?.delete(Le), te() && o.value?.hidePopover();
16785
16785
  }), l({
@@ -16787,7 +16787,7 @@ var qg = {
16787
16787
  hide: F,
16788
16788
  toggle: le,
16789
16789
  openAt: ue,
16790
- updatePosition: H,
16790
+ updatePosition: K,
16791
16791
  shown: d
16792
16792
  }), (Je, Ne) => (L(), M("div", tw, [X.value ? (L(), M("div", bl({
16793
16793
  key: 0,
@@ -18084,7 +18084,7 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18084
18084
  if (!k) return;
18085
18085
  const E = { ...k };
18086
18086
  if (ee.field !== void 0 && (E.field = ee.field), ee.op !== void 0 && (E.op = ee.op), ee.value !== void 0) {
18087
- const Ge = K(E.field);
18087
+ const Ge = P(E.field);
18088
18088
  E.value = Array.isArray(ee.value) ? ee.value.map((Ve) => v(Ve, Ge)) : v(ee.value, Ge);
18089
18089
  }
18090
18090
  ee.connector !== void 0 && (E.connector = ee.connector), ae[le] = E, i.value = ae, Z();
@@ -18098,7 +18098,7 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18098
18098
  };
18099
18099
  i.value = [...i.value, ae];
18100
18100
  }
18101
- function H(le) {
18101
+ function K(le) {
18102
18102
  const ee = [...i.value];
18103
18103
  ee.splice(le, 1), ee.length > 0 && ee[0].connector && (ee[0] = {
18104
18104
  ...ee[0],
@@ -18108,10 +18108,10 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18108
18108
  function te() {
18109
18109
  Y.clear(), i.value = [], n.value = [], a("change", []);
18110
18110
  }
18111
- function K(le) {
18111
+ function P(le) {
18112
18112
  return t.fields.find((ee) => ee.value === le)?.type || "string";
18113
18113
  }
18114
- function P(le) {
18114
+ function H(le) {
18115
18115
  return le !== "pr" && le !== "is_null";
18116
18116
  }
18117
18117
  function ue(le) {
@@ -18250,18 +18250,18 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18250
18250
  "onUpdate:modelValue"
18251
18251
  ])) : (L(), M(Xe, { key: 2 }, [_(N(Ut), {
18252
18252
  "model-value": ae.operator,
18253
- options: G(K(ae.field), !!X(ae.field), T(ae.field), ae.field),
18253
+ options: G(P(ae.field), !!X(ae.field), T(ae.field), ae.field),
18254
18254
  class: "m-0 light-input borderHover",
18255
18255
  "onUpdate:modelValue": (E) => oe(ae.id, E)
18256
18256
  }, null, 8, [
18257
18257
  "model-value",
18258
18258
  "options",
18259
18259
  "onUpdate:modelValue"
18260
- ]), P(ae.operator) ? (L(), M(Xe, { key: 0 }, [ye(ae.operator) ? (L(), M("div", {
18260
+ ]), H(ae.operator) ? (L(), M(Xe, { key: 0 }, [ye(ae.operator) ? (L(), M("div", {
18261
18261
  key: `${ae.id}-${ae.field}-between`,
18262
18262
  class: "flex gap-025 align-items-center between-inputs"
18263
18263
  }, [
18264
- K(ae.field) === "date" ? (L(), ce(N(ed), {
18264
+ P(ae.field) === "date" ? (L(), ce(N(ed), {
18265
18265
  key: 0,
18266
18266
  "model-value": J(ae, 0),
18267
18267
  placeholder: r.value.placeholders.from,
@@ -18275,7 +18275,7 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18275
18275
  key: 1,
18276
18276
  "model-value": J(ae, 0),
18277
18277
  placeholder: "0",
18278
- type: K(ae.field) === "number" ? "number" : "text",
18278
+ type: P(ae.field) === "number" ? "number" : "text",
18279
18279
  class: "m-0 light-input borderHover",
18280
18280
  "onUpdate:modelValue": (E) => F(ae.id, 0, E)
18281
18281
  }, null, 8, [
@@ -18284,7 +18284,7 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18284
18284
  "onUpdate:modelValue"
18285
18285
  ])),
18286
18286
  ee[1] || (ee[1] = R("span", { class: "opacity-4 txt-12" }, "–", -1)),
18287
- K(ae.field) === "date" ? (L(), ce(N(ed), {
18287
+ P(ae.field) === "date" ? (L(), ce(N(ed), {
18288
18288
  key: 2,
18289
18289
  "model-value": J(ae, 1),
18290
18290
  placeholder: r.value.placeholders.to,
@@ -18298,7 +18298,7 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18298
18298
  key: 3,
18299
18299
  "model-value": J(ae, 1),
18300
18300
  placeholder: "0",
18301
- type: K(ae.field) === "number" ? "number" : "text",
18301
+ type: P(ae.field) === "number" ? "number" : "text",
18302
18302
  class: "m-0 light-input borderHover",
18303
18303
  "onUpdate:modelValue": (E) => F(ae.id, 1, E)
18304
18304
  }, null, 8, [
@@ -18343,7 +18343,7 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18343
18343
  "options",
18344
18344
  "placeholder",
18345
18345
  "onUpdate:modelValue"
18346
- ])) : K(ae.field) === "boolean" ? (L(), ce(N(Ut), {
18346
+ ])) : P(ae.field) === "boolean" ? (L(), ce(N(Ut), {
18347
18347
  key: `${ae.id}-${ae.field}-bool`,
18348
18348
  "model-value": ie(ae.value),
18349
18349
  options: w.value,
@@ -18355,7 +18355,7 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18355
18355
  "options",
18356
18356
  "placeholder",
18357
18357
  "onUpdate:modelValue"
18358
- ])) : K(ae.field) === "date" ? (L(), ce(N(ed), {
18358
+ ])) : P(ae.field) === "date" ? (L(), ce(N(ed), {
18359
18359
  key: `${ae.id}-${ae.field}-date`,
18360
18360
  "model-value": ae.value,
18361
18361
  placeholder: r.value.placeholders.selectDate,
@@ -18365,7 +18365,7 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18365
18365
  "model-value",
18366
18366
  "placeholder",
18367
18367
  "onUpdate:modelValue"
18368
- ])) : K(ae.field) === "number" ? (L(), ce(N(Gl), {
18368
+ ])) : P(ae.field) === "number" ? (L(), ce(N(Gl), {
18369
18369
  key: `${ae.id}-${ae.field}-number`,
18370
18370
  "model-value": ae.value,
18371
18371
  placeholder: "0",
@@ -18389,7 +18389,7 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18389
18389
  flat: "",
18390
18390
  size: "sm",
18391
18391
  class: Ze({ "m_bg-gray-40 m_px-3 m_mx-auto": !t.inline && !t.desktopLayoutOnMobile }),
18392
- onClick: (E) => H(k)
18392
+ onClick: (E) => K(k)
18393
18393
  }, null, 8, ["class", "onClick"])
18394
18394
  ], 2))), 128))]),
18395
18395
  _: 1
@@ -18534,7 +18534,7 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18534
18534
  for (const z of b.value) URL.revokeObjectURL(z);
18535
18535
  b.value = [];
18536
18536
  }
18537
- async function H() {
18537
+ async function K() {
18538
18538
  if (U(), Z.value = "", !(!t.pdf || typeof window > "u")) {
18539
18539
  u.value = !0;
18540
18540
  try {
@@ -18599,11 +18599,11 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18599
18599
  }
18600
18600
  m.value = !0;
18601
18601
  }
18602
- async function K() {
18602
+ async function P() {
18603
18603
  const z = ++r;
18604
18604
  j(), await ml(), await te(z);
18605
18605
  }
18606
- function P() {
18606
+ function H() {
18607
18607
  !h || !G.value || (t.direction === "rtl" ? h.flipNext() : h.flipPrev());
18608
18608
  }
18609
18609
  function ue() {
@@ -18622,10 +18622,10 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18622
18622
  await ml(), h?.update();
18623
18623
  }
18624
18624
  function g(z) {
18625
- z.key === "ArrowLeft" && P(), z.key === "ArrowRight" && ue(), (z.key === "+" || z.key === "=") && ye(), z.key === "-" && me();
18625
+ z.key === "ArrowLeft" && H(), z.key === "ArrowRight" && ue(), (z.key === "+" || z.key === "=") && ye(), z.key === "-" && me();
18626
18626
  }
18627
18627
  return we(() => t.pages, async () => {
18628
- await w(), await K();
18628
+ await w(), await P();
18629
18629
  }, { deep: !0 }), we(() => [
18630
18630
  t.direction,
18631
18631
  t.layout,
@@ -18633,9 +18633,9 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18633
18633
  t.pageWidth,
18634
18634
  t.pageHeight
18635
18635
  ], async () => {
18636
- d.value = 1, await w(), await K();
18636
+ d.value = 1, await w(), await P();
18637
18637
  }), we(() => t.pdf, async () => {
18638
- await H(), await ml(), await w(), await K();
18638
+ await K(), await ml(), await w(), await P();
18639
18639
  }, { immediate: !0 }), nl(() => {
18640
18640
  t.pdf || w().then(() => te()), document.addEventListener("fullscreenchange", ie);
18641
18641
  }), At(() => {
@@ -18677,7 +18677,7 @@ var Ow = { class: "p-025 bg-bg radius-1 mb-05 m_max-h-300px m_overflow m_border"
18677
18677
  disabled: !G.value,
18678
18678
  "aria-label": e.labels.previous || "Previous page",
18679
18679
  title: e.labels.previous || "Previous page",
18680
- onClick: P
18680
+ onClick: H
18681
18681
  }, null, 8, [
18682
18682
  "disabled",
18683
18683
  "aria-label",
@@ -18873,8 +18873,8 @@ var sR = {
18873
18873
  if (v != null && typeof v == "object") for (const j of Z) {
18874
18874
  const U = v[j];
18875
18875
  if (typeof U == "string" && U.trim().length > 0) {
18876
- const H = ko(U);
18877
- if (H.length > 0) return H;
18876
+ const K = ko(U);
18877
+ if (K.length > 0) return K;
18878
18878
  }
18879
18879
  }
18880
18880
  return null;
@@ -18893,9 +18893,9 @@ var sR = {
18893
18893
  }));
18894
18894
  return Y.value ? v.reverse() : v;
18895
18895
  });
18896
- function W(v, j) {
18897
- const U = h(v.item);
18898
- return U != null ? `${j + 1}. ${U}` : `${u.value} ${j + 1}`;
18896
+ function W(v) {
18897
+ const j = h(v.item), U = v.index + 1;
18898
+ return j != null ? `${U}. ${j}` : `${u.value} ${U}`;
18899
18899
  }
18900
18900
  we(() => t.modelValue, (v) => {
18901
18901
  Array.isArray(v) && (s.value = [...v], o.value.length !== v.length && (o.value = Array.from({ length: v.length }, (j, U) => o.value[U] ?? !0)));
@@ -18913,8 +18913,8 @@ var sR = {
18913
18913
  function V(v) {
18914
18914
  const { oldIndex: j, newIndex: U } = v;
18915
18915
  if (U < 0 || U >= p.value.length || j === U) return;
18916
- const H = op(p.value, j, U), te = Y.value ? [...H].reverse() : H, K = o.value;
18917
- s.value = te.map((P) => P.item), o.value = te.map((P) => K[P.index] ?? !0), T();
18916
+ const K = op(p.value, j, U), te = Y.value ? [...K].reverse() : K, P = o.value;
18917
+ s.value = te.map((H) => H.item), o.value = te.map((H) => P[H.index] ?? !0), T();
18918
18918
  }
18919
18919
  function T() {
18920
18920
  i("update:modelValue", [...s.value]);
@@ -18968,13 +18968,13 @@ var sR = {
18968
18968
  class: "grid gap-05 mb-05",
18969
18969
  onEnd: V
18970
18970
  }, {
18971
- default: fe(({ item: H, index: te }) => [R("div", mR, [e.allowReorder ? al((L(), ce(N(pe), {
18971
+ default: fe(({ item: K }) => [R("div", mR, [e.allowReorder ? al((L(), ce(N(pe), {
18972
18972
  key: 0,
18973
18973
  flat: "",
18974
18974
  xs: "",
18975
18975
  icon: "drag_indicator",
18976
18976
  class: "grab"
18977
- }, null, 512)), [[U, N(_e)("Drag to reorder")]]) : f("", !0), R("p", uR, ne(h(H.item) ?? W(H, te)), 1)])]),
18977
+ }, null, 512)), [[U, N(_e)("Drag to reorder")]]) : f("", !0), R("p", uR, ne(h(K.item) ?? W(K)), 1)])]),
18978
18978
  _: 1
18979
18979
  }, 8, ["model-value", "disabled"])) : e.collapsible ? f("", !0) : (L(), ce(Dm, {
18980
18980
  key: 4,
@@ -18984,7 +18984,7 @@ var sR = {
18984
18984
  class: "grid gap-05 mb-05",
18985
18985
  onEnd: V
18986
18986
  }, {
18987
- default: fe(({ item: H, index: te }) => [R("div", { class: Ze(["array-input-row grid align-items-center", {
18987
+ default: fe(({ item: K }) => [R("div", { class: Ze(["array-input-row grid align-items-center", {
18988
18988
  "array-input-row-reorder": e.allowReorder,
18989
18989
  "simpleArray mb-025": S.value,
18990
18990
  "pb-1": !S.value
@@ -18997,8 +18997,8 @@ var sR = {
18997
18997
  class: "grab"
18998
18998
  }, null, 512)), [[U, N(_e)("Drag to reorder")]]) : f("", !0),
18999
18999
  Te(v.$slots, "default", {
19000
- item: w(H.index),
19001
- index: te
19000
+ item: w(K.index),
19001
+ index: K.index
19002
19002
  }),
19003
19003
  e.allowDelete ? (L(), M("div", {
19004
19004
  key: 1,
@@ -19006,7 +19006,7 @@ var sR = {
19006
19006
  }, [al(_(N(pe), {
19007
19007
  flat: "",
19008
19008
  icon: "delete",
19009
- onClick: (K) => y(H.index)
19009
+ onClick: (te) => y(K.index)
19010
19010
  }, null, 8, ["onClick"]), [[U, N(_e)(e.deleteTooltip || "Delete")]])], 2)) : f("", !0)
19011
19011
  ], 2)]),
19012
19012
  _: 3
@@ -19019,7 +19019,7 @@ var sR = {
19019
19019
  class: "grid gap-05 mb-05",
19020
19020
  onEnd: V
19021
19021
  }, {
19022
- default: fe(({ item: H, index: te }) => [R("div", ZR, [R("div", rR, [
19022
+ default: fe(({ item: K }) => [R("div", ZR, [R("div", rR, [
19023
19023
  e.allowReorder ? al((L(), ce(N(pe), {
19024
19024
  key: 0,
19025
19025
  flat: "",
@@ -19032,15 +19032,15 @@ var sR = {
19032
19032
  "align-txt": "start",
19033
19033
  class: "px-025 bg-transparent color-inherit w-100p overflow-hidden",
19034
19034
  ripple: !1,
19035
- icon: o.value[H.index] ? "expand_more" : "expand_less",
19036
- onClick: (K) => X(H.index)
19035
+ icon: o.value[K.index] ? "expand_more" : "expand_less",
19036
+ onClick: (te) => X(K.index)
19037
19037
  }, {
19038
- default: fe(() => [R("div", hR, [r(H.item) ? (L(), M("img", {
19038
+ default: fe(() => [R("div", hR, [r(K.item) ? (L(), M("img", {
19039
19039
  key: 0,
19040
- src: N(aa)(r(H.item)),
19040
+ src: N(aa)(r(K.item)),
19041
19041
  class: "array-item-thumb",
19042
- onError: j[0] || (j[0] = (K) => K.target.style.display = "none")
19043
- }, null, 40, pR)) : f("", !0), R("p", WR, ne(W(H, te)), 1)])]),
19042
+ onError: j[0] || (j[0] = (te) => te.target.style.display = "none")
19043
+ }, null, 40, pR)) : f("", !0), R("p", WR, ne(W(K)), 1)])]),
19044
19044
  _: 2
19045
19045
  }, 1032, ["icon", "onClick"]),
19046
19046
  e.allowDelete ? al((L(), ce(N(pe), {
@@ -19049,13 +19049,13 @@ var sR = {
19049
19049
  icon: "delete",
19050
19050
  thin: "",
19051
19051
  confirm: N(_e)("Are you sure you want to delete this item?"),
19052
- onClick: (K) => y(H.index),
19052
+ onClick: (te) => y(K.index),
19053
19053
  "icon-size": "0.8"
19054
19054
  }, null, 8, ["confirm", "onClick"])), [[U, N(_e)(e.deleteTooltip || "Delete")]]) : f("", !0)
19055
19055
  ]), _(Li, { name: "array-collapse" }, {
19056
- default: fe(() => [o.value[H.index] ? f("", !0) : (L(), M("div", GR, [Te(v.$slots, "default", {
19057
- item: w(H.index),
19058
- index: te
19056
+ default: fe(() => [o.value[K.index] ? f("", !0) : (L(), M("div", GR, [Te(v.$slots, "default", {
19057
+ item: w(K.index),
19058
+ index: K.index
19059
19059
  })]))]),
19060
19060
  _: 2
19061
19061
  }, 1024)])]),
@@ -19996,7 +19996,7 @@ var wp = class c2 {
19996
19996
  function x(le) {
19997
19997
  t.enableTime ? a("update:modelValue", le.toISOString()) : a("update:modelValue", dc.date(le));
19998
19998
  }
19999
- const { currentMonthDays: S, currentMonthValue: w, months: v, years: j, weekDays: U, isSelected: H, isRangeStart: te, isRangeEnd: K, isInRange: P, isToday: ue, isNotInMonth: ye, isHighlighted: me } = X(), { selectMonth: he, selectYear: ie, previousMonth: g, nextMonth: z, previousYear: J, nextYear: F } = V(), { hours: B, minutes: $, handleHourInput: Q, handleMinuteInput: oe } = T();
19999
+ const { currentMonthDays: S, currentMonthValue: w, months: v, years: j, weekDays: U, isSelected: K, isRangeStart: te, isRangeEnd: P, isInRange: H, isToday: ue, isNotInMonth: ye, isHighlighted: me } = X(), { selectMonth: he, selectYear: ie, previousMonth: g, nextMonth: z, previousYear: J, nextYear: F } = V(), { hours: B, minutes: $, handleHourInput: Q, handleMinuteInput: oe } = T();
20000
20000
  function re(le) {
20001
20001
  return dc.date(le);
20002
20002
  }
@@ -20081,10 +20081,10 @@ var wp = class c2 {
20081
20081
  key: ae?.toISOString(),
20082
20082
  type: "button",
20083
20083
  class: Ze(["day aspect-ratio-1 flex align-items-center justify-content-center pointer round txt14 p-0", {
20084
- selected: N(H)(ae),
20084
+ selected: N(K)(ae),
20085
20085
  "range-start": N(te)(ae),
20086
- "range-end": N(K)(ae),
20087
- "in-range": N(P)(ae),
20086
+ "range-end": N(P)(ae),
20087
+ "in-range": N(H)(ae),
20088
20088
  today: N(ue)(ae),
20089
20089
  disabled: N(h)(ae),
20090
20090
  "not-in-month": N(ye)(ae),
@@ -20211,20 +20211,20 @@ var wp = class c2 {
20211
20211
  const l = e, t = I(() => l.editMode && !l.disabled), { $t: a } = Fl(), { shellClass: n, shellStyle: i } = tt(l), d = Bl(e, "modelValue"), c = C(""), s = C(!0), o = C(!1), m = C(!1);
20212
20212
  let u = !1;
20213
20213
  const Z = C(null), b = C(null);
20214
- function h(K) {
20215
- return K === void 0 || K === "" ? "" : Hl(K, { format: l.enableTime ? "DD.MM.YY HH:mm" : "DD.MM.YY" });
20214
+ function h(P) {
20215
+ return P === void 0 || P === "" ? "" : Hl(P, { format: l.enableTime ? "DD.MM.YY HH:mm" : "DD.MM.YY" });
20216
20216
  }
20217
- function r(K) {
20217
+ function r(P) {
20218
20218
  if (l.range) {
20219
- const P = K ?? {}, ue = h(P.start), ye = h(P.end);
20219
+ const H = P ?? {}, ue = h(H.start), ye = h(H.end);
20220
20220
  return !ue && !ye ? "" : `${ue}${Em}${ye}`;
20221
20221
  }
20222
- return h(K);
20222
+ return h(P);
20223
20223
  }
20224
- function Y(K) {
20225
- const P = new Date(K);
20226
- if (!Number.isNaN(P.getTime())) return P;
20227
- const ue = K.split(/[/.-]/);
20224
+ function Y(P) {
20225
+ const H = new Date(P);
20226
+ if (!Number.isNaN(H.getTime())) return H;
20227
+ const ue = P.split(/[/.-]/);
20228
20228
  if (ue.length === 3) {
20229
20229
  const [ye, me, he] = ue.map((ie) => Number.parseInt(ie, 10));
20230
20230
  if (!Number.isNaN(ye) && !Number.isNaN(me) && !Number.isNaN(he)) {
@@ -20234,50 +20234,50 @@ var wp = class c2 {
20234
20234
  }
20235
20235
  return null;
20236
20236
  }
20237
- function p(K) {
20238
- return l.enableTime ? K.toISOString() : dc.date(K);
20237
+ function p(P) {
20238
+ return l.enableTime ? P.toISOString() : dc.date(P);
20239
20239
  }
20240
- function W(K) {
20241
- if (l.enableTime || l.range || K == null) return K;
20242
- if (typeof K == "string" && K.includes("T")) {
20243
- const P = /^(\d{4}-\d{2}-\d{2})/.exec(K)?.[1];
20244
- if (P) return P;
20245
- const ue = new Date(K);
20240
+ function W(P) {
20241
+ if (l.enableTime || l.range || P == null) return P;
20242
+ if (typeof P == "string" && P.includes("T")) {
20243
+ const H = /^(\d{4}-\d{2}-\d{2})/.exec(P)?.[1];
20244
+ if (H) return H;
20245
+ const ue = new Date(P);
20246
20246
  if (!Number.isNaN(ue.getTime())) return dc.date(ue);
20247
20247
  }
20248
- return K instanceof Date ? dc.date(K) : K;
20248
+ return P instanceof Date ? dc.date(P) : P;
20249
20249
  }
20250
20250
  function G() {
20251
20251
  if (l.range) {
20252
- const K = d.value;
20253
- return !!(K && (K.start || K.end));
20252
+ const P = d.value;
20253
+ return !!(P && (P.start || P.end));
20254
20254
  }
20255
20255
  return d.value !== void 0;
20256
20256
  }
20257
20257
  function y() {
20258
20258
  o.value || (c.value = G() ? r(d.value) : "");
20259
20259
  }
20260
- function X(K) {
20261
- const P = K.replace(/[^\d.]/g, "").split(".");
20262
- let ue = P.slice(0, 3).join(".");
20263
- return (ue.length === 2 && !ue.includes(".") || ue.length === 5 && P.length === 2) && (ue += "."), ue;
20260
+ function X(P) {
20261
+ const H = P.replace(/[^\d.]/g, "").split(".");
20262
+ let ue = H.slice(0, 3).join(".");
20263
+ return (ue.length === 2 && !ue.includes(".") || ue.length === 5 && H.length === 2) && (ue += "."), ue;
20264
20264
  }
20265
- function V(K) {
20266
- const P = K.target;
20265
+ function V(P) {
20266
+ const H = P.target;
20267
20267
  if (o.value = !0, l.range) {
20268
- T(P);
20268
+ T(H);
20269
20269
  return;
20270
20270
  }
20271
- const ue = X(P.value);
20272
- c.value = ue, P.value !== ue && (P.value = ue);
20271
+ const ue = X(H.value);
20272
+ c.value = ue, H.value !== ue && (H.value = ue);
20273
20273
  const ye = Y(ue);
20274
20274
  ye !== null ? (d.value = p(ye), s.value = !0) : ue.length === 0 ? (d.value = void 0, s.value = !0) : s.value = !1;
20275
20275
  }
20276
- function T(K) {
20277
- const [P = "", ue = ""] = K.value.split(/\s*-\s*/, 2), ye = X(P), me = X(ue), he = /-/.test(K.value), ie = me || he ? `${ye}${Em}${me}` : ye;
20278
- c.value = ie, K.value !== ie && (K.value = ie);
20279
- const g = P ? Y(ye) : null, z = ue ? Y(me) : null;
20280
- if (P && !g || ue && !z) {
20276
+ function T(P) {
20277
+ const [H = "", ue = ""] = P.value.split(/\s*-\s*/, 2), ye = X(H), me = X(ue), he = /-/.test(P.value), ie = me || he ? `${ye}${Em}${me}` : ye;
20278
+ c.value = ie, P.value !== ie && (P.value = ie);
20279
+ const g = H ? Y(ye) : null, z = ue ? Y(me) : null;
20280
+ if (H && !g || ue && !z) {
20281
20281
  s.value = !1;
20282
20282
  return;
20283
20283
  }
@@ -20301,15 +20301,15 @@ var wp = class c2 {
20301
20301
  }, 200));
20302
20302
  }, 100);
20303
20303
  }
20304
- function w(K) {
20305
- const { key: P, shiftKey: ue } = K;
20306
- if (P === "Escape")
20304
+ function w(P) {
20305
+ const { key: H, shiftKey: ue } = P;
20306
+ if (H === "Escape")
20307
20307
  m.value = !1, o.value = !1, c.value = G() ? r(d.value) : "", s.value = !0;
20308
- else if (P === "Enter")
20308
+ else if (H === "Enter")
20309
20309
  o.value = !1, G() && (c.value = r(d.value)), m.value = !1;
20310
- else if (!l.range && (P === "ArrowUp" || P === "ArrowDown")) {
20311
- K.preventDefault();
20312
- const ye = d.value !== void 0 ? new Date(d.value) : /* @__PURE__ */ new Date(), me = P === "ArrowUp" ? 1 : -1;
20310
+ else if (!l.range && (H === "ArrowUp" || H === "ArrowDown")) {
20311
+ P.preventDefault();
20312
+ const ye = d.value !== void 0 ? new Date(d.value) : /* @__PURE__ */ new Date(), me = H === "ArrowUp" ? 1 : -1;
20313
20313
  ue ? ye.setMonth(ye.getMonth() + me) : ye.setDate(ye.getDate() + me), d.value = p(ye), c.value = r(ye);
20314
20314
  }
20315
20315
  }
@@ -20322,17 +20322,17 @@ var wp = class c2 {
20322
20322
  function U() {
20323
20323
  o.value = !1, y(), m.value = !1;
20324
20324
  }
20325
- we(() => d.value, (K) => {
20326
- const P = W(K);
20327
- if (P !== K) {
20328
- d.value = P;
20325
+ we(() => d.value, (P) => {
20326
+ const H = W(P);
20327
+ if (H !== P) {
20328
+ d.value = H;
20329
20329
  return;
20330
20330
  }
20331
20331
  y();
20332
20332
  }, { immediate: !0 });
20333
- const H = I(() => c.value.length > 0), te = I(() => {
20334
- const K = l.enableTime ? "DD.MM.YY HH:mm" : "DD.MM.YY";
20335
- return l.range ? `${K}${Em}${K}` : K;
20333
+ const K = I(() => c.value.length > 0), te = I(() => {
20334
+ const P = l.enableTime ? "DD.MM.YY HH:mm" : "DD.MM.YY";
20335
+ return l.range ? `${P}${Em}${P}` : P;
20336
20336
  });
20337
20337
  return Ix(Z, () => {
20338
20338
  u = !0, m.value = !1, setTimeout(() => {
@@ -20340,12 +20340,12 @@ var wp = class c2 {
20340
20340
  }, 200);
20341
20341
  }, { ignore: [b] }), nl(() => {
20342
20342
  !l.range && d.value === void 0 && l.defaultValue !== void 0 && (d.value = l.defaultValue);
20343
- }), (K, P) => (L(), M("div", {
20343
+ }), (P, H) => (L(), M("div", {
20344
20344
  class: Ze(["bagel-input", [N(n), {
20345
20345
  small: e.small,
20346
20346
  "has-error": !!e.error || !s.value,
20347
20347
  underlined: e.underlined,
20348
- "has-value": H.value,
20348
+ "has-value": K.value,
20349
20349
  open: m.value
20350
20350
  }]]),
20351
20351
  style: Ie(N(i))
@@ -20362,7 +20362,7 @@ var wp = class c2 {
20362
20362
  class: "date-picker-container"
20363
20363
  }, [_(N(Gl), {
20364
20364
  modelValue: c.value,
20365
- "onUpdate:modelValue": P[0] || (P[0] = (ue) => c.value = ue),
20365
+ "onUpdate:modelValue": H[0] || (H[0] = (ue) => c.value = ue),
20366
20366
  iconStart: "calendar_month",
20367
20367
  placeholder: e.underlined ? " " : N(_e)(e.placeholder) || te.value,
20368
20368
  required: e.underlined ? !1 : e.required,
@@ -20370,7 +20370,7 @@ var wp = class c2 {
20370
20370
  error: s.value ? e.error : N(a)("date.invalidFormat"),
20371
20371
  class: Ze([{
20372
20372
  "txt-center": e.center,
20373
- "date-input-clearable": e.clearable && H.value
20373
+ "date-input-clearable": e.clearable && K.value
20374
20374
  }, "date-input m-0"]),
20375
20375
  underlined: e.underlined,
20376
20376
  frame: e.frame,
@@ -20382,7 +20382,7 @@ var wp = class c2 {
20382
20382
  onInput: V,
20383
20383
  onFocus: x,
20384
20384
  onBlur: S,
20385
- onClick: P[1] || (P[1] = el(() => {
20385
+ onClick: H[1] || (H[1] = el(() => {
20386
20386
  }, ["stop"])),
20387
20387
  onKeydown: w,
20388
20388
  onIconClick: v
@@ -20400,7 +20400,7 @@ var wp = class c2 {
20400
20400
  "max-width",
20401
20401
  "label-color",
20402
20402
  "label-active-color"
20403
- ]), e.clearable && H.value && t.value ? (L(), ce(N(pe), {
20403
+ ]), e.clearable && K.value && t.value ? (L(), ce(N(pe), {
20404
20404
  key: 0,
20405
20405
  flat: "",
20406
20406
  sm: "",
@@ -20408,7 +20408,7 @@ var wp = class c2 {
20408
20408
  icon: "clear",
20409
20409
  class: "date-input-clear absolute end me-05",
20410
20410
  "aria-label": e.range ? "Clear date range" : "Clear date",
20411
- onMousedown: P[2] || (P[2] = el(() => {
20411
+ onMousedown: H[2] || (H[2] = el(() => {
20412
20412
  }, ["prevent"])),
20413
20413
  onClick: el(j, ["stop"])
20414
20414
  }, null, 8, ["aria-label"])) : f("", !0)], 512)]),
@@ -20416,11 +20416,11 @@ var wp = class c2 {
20416
20416
  ref_key: "calendarRef",
20417
20417
  ref: b,
20418
20418
  class: "date-picker-popup",
20419
- onClick: P[4] || (P[4] = el(() => {
20419
+ onClick: H[4] || (H[4] = el(() => {
20420
20420
  }, ["stop"]))
20421
20421
  }, [_($R, {
20422
20422
  modelValue: d.value,
20423
- "onUpdate:modelValue": P[3] || (P[3] = (ue) => d.value = ue),
20423
+ "onUpdate:modelValue": H[3] || (H[3] = (ue) => d.value = ue),
20424
20424
  min: e.min,
20425
20425
  max: e.max,
20426
20426
  mode: e.mode,
@@ -20589,14 +20589,14 @@ var iS = ["title"], dS = ["for"], cS = {
20589
20589
  "nbmbb.com",
20590
20590
  "poplk.com"
20591
20591
  ], m = C(""), u = C(null), Z = C(""), b = C(!1), h = /* @__PURE__ */ new Map(), r = C();
20592
- function Y(H) {
20593
- if (H) {
20594
- if (!Ei.test(H)) return c("email.invalidEmail");
20595
- if (a.preventFakeEmails && H.includes("@")) {
20596
- const [, te] = H.split("@");
20592
+ function Y(K) {
20593
+ if (K) {
20594
+ if (!Ei.test(K)) return c("email.invalidEmail");
20595
+ if (a.preventFakeEmails && K.includes("@")) {
20596
+ const [, te] = K.split("@");
20597
20597
  if (te) {
20598
- const K = te.toLowerCase();
20599
- if (o.includes(K)) return c("email.disposableEmail");
20598
+ const P = te.toLowerCase();
20599
+ if (o.includes(P)) return c("email.disposableEmail");
20600
20600
  }
20601
20601
  }
20602
20602
  if (Z.value) return Z.value;
@@ -20607,46 +20607,46 @@ var iS = ["title"], dS = ["for"], cS = {
20607
20607
  }, 700);
20608
20608
  function W() {
20609
20609
  if (!r.value || (r.value.setCustomValidity(""), !m.value)) return;
20610
- const H = Y(m.value);
20611
- typeof H == "string" && r.value.setCustomValidity(H);
20610
+ const K = Y(m.value);
20611
+ typeof K == "string" && r.value.setCustomValidity(K);
20612
20612
  }
20613
- async function G(H) {
20614
- if (!(!a.serverValidate || !H || !Ei.test(H))) {
20615
- if (h.has(H)) {
20616
- h.get(H) || (Z.value = c("email.invalidDomain"), r.value?.setCustomValidity(Z.value));
20613
+ async function G(K) {
20614
+ if (!(!a.serverValidate || !K || !Ei.test(K))) {
20615
+ if (h.has(K)) {
20616
+ h.get(K) || (Z.value = c("email.invalidDomain"), r.value?.setCustomValidity(Z.value));
20617
20617
  return;
20618
20618
  }
20619
20619
  b.value = !0, Z.value = "";
20620
20620
  try {
20621
- const te = await fetch(`https://api.mailcheck.ai/domain/${H.split("@")[1]}`, {
20621
+ const te = await fetch(`https://api.mailcheck.ai/domain/${K.split("@")[1]}`, {
20622
20622
  method: "GET",
20623
20623
  headers: { "Content-Type": "application/json" }
20624
20624
  });
20625
20625
  if (!te.ok) throw new Error("Validation service unavailable");
20626
- const K = await te.json(), P = K.status === "valid" || K.has_mx === !0;
20627
- h.set(H, P), P ? r.value?.setCustomValidity("") : (Z.value = c("email.invalidDomain"), r.value?.setCustomValidity(Z.value));
20626
+ const P = await te.json(), H = P.status === "valid" || P.has_mx === !0;
20627
+ h.set(K, H), H ? r.value?.setCustomValidity("") : (Z.value = c("email.invalidDomain"), r.value?.setCustomValidity(Z.value));
20628
20628
  } catch {
20629
20629
  } finally {
20630
20630
  b.value = !1;
20631
20631
  }
20632
20632
  }
20633
20633
  }
20634
- function y(H) {
20635
- if (!a.autocorrect || !H) return;
20636
- if (H.includes("@") && !H.includes(".")) {
20637
- const [ue, ye] = H.split("@"), me = ye.toLowerCase();
20634
+ function y(K) {
20635
+ if (!a.autocorrect || !K) return;
20636
+ if (K.includes("@") && !K.includes(".")) {
20637
+ const [ue, ye] = K.split("@"), me = ye.toLowerCase();
20638
20638
  for (const he of s) if (he.startsWith(me)) {
20639
20639
  u.value = `${ue}@${he}`;
20640
20640
  return;
20641
20641
  }
20642
20642
  }
20643
- if (!H.includes("@")) return;
20644
- const [te, K] = H.split("@"), P = K.toLowerCase();
20645
- if (s.includes(P)) {
20643
+ if (!K.includes("@")) return;
20644
+ const [te, P] = K.split("@"), H = P.toLowerCase();
20645
+ if (s.includes(H)) {
20646
20646
  u.value = null;
20647
20647
  return;
20648
20648
  }
20649
- for (const ue of s) if (V(P, ue) <= 2) {
20649
+ for (const ue of s) if (V(H, ue) <= 2) {
20650
20650
  u.value = `${te}@${ue}`.toLowerCase();
20651
20651
  return;
20652
20652
  }
@@ -20655,25 +20655,25 @@ var iS = ["title"], dS = ["for"], cS = {
20655
20655
  function X() {
20656
20656
  u.value && (m.value = u.value, u.value = null, n("update:modelValue", m.value), p());
20657
20657
  }
20658
- function V(H, te) {
20659
- const K = [];
20660
- for (let P = 0; P <= H.length; P++) K[P] = [P];
20661
- for (let P = 0; P <= te.length; P++) K[0][P] = P;
20662
- for (let P = 1; P <= H.length; P++) for (let ue = 1; ue <= te.length; ue++) {
20663
- const ye = H[P - 1] === te[ue - 1] ? 0 : 1;
20664
- K[P][ue] = Math.min(K[P - 1][ue] + 1, K[P][ue - 1] + 1, K[P - 1][ue - 1] + ye);
20658
+ function V(K, te) {
20659
+ const P = [];
20660
+ for (let H = 0; H <= K.length; H++) P[H] = [H];
20661
+ for (let H = 0; H <= te.length; H++) P[0][H] = H;
20662
+ for (let H = 1; H <= K.length; H++) for (let ue = 1; ue <= te.length; ue++) {
20663
+ const ye = K[H - 1] === te[ue - 1] ? 0 : 1;
20664
+ P[H][ue] = Math.min(P[H - 1][ue] + 1, P[H][ue - 1] + 1, P[H - 1][ue - 1] + ye);
20665
20665
  }
20666
- return K[H.length][te.length];
20666
+ return P[K.length][te.length];
20667
20667
  }
20668
20668
  const T = /* @__PURE__ */ md(() => G(m.value), 1e3);
20669
20669
  function x() {
20670
20670
  a.disabled || (u.value = null, W(), a.serverValidate && T(), n("update:modelValue", m.value), p());
20671
20671
  }
20672
- function S(H) {
20673
- y(m.value), a.serverValidate && Ei.test(m.value) && G(m.value), a.onFocusout && a.onFocusout(H);
20672
+ function S(K) {
20673
+ y(m.value), a.serverValidate && Ei.test(m.value) && G(m.value), a.onFocusout && a.onFocusout(K);
20674
20674
  }
20675
- we(() => a.modelValue, (H) => {
20676
- H !== m.value && (m.value = H || "");
20675
+ we(() => a.modelValue, (K) => {
20676
+ K !== m.value && (m.value = K || "");
20677
20677
  }, { immediate: !0 }), we(() => m.value, () => {
20678
20678
  W();
20679
20679
  }, { immediate: !0 }), l({
@@ -20683,8 +20683,8 @@ var iS = ["title"], dS = ["for"], cS = {
20683
20683
  const j = I(() => m.value.length > 0), U = I(() => a.formatValidation ? j.value ? Ei.test(m.value) ? "format-valid" : "format-invalid" : "format-empty" : null);
20684
20684
  return nl(() => {
20685
20685
  a.autofocus && setTimeout(() => r.value?.focus(), 10);
20686
- }), (H, te) => {
20687
- const K = et("pattern");
20686
+ }), (K, te) => {
20687
+ const P = et("pattern");
20688
20688
  return L(), M("div", {
20689
20689
  class: Ze(["bagel-input text-input", [
20690
20690
  N(i),
@@ -20717,7 +20717,7 @@ var iS = ["title"], dS = ["for"], cS = {
20717
20717
  id: e.id,
20718
20718
  ref_key: "input",
20719
20719
  ref: r,
20720
- "onUpdate:modelValue": te[0] || (te[0] = (P) => m.value = P),
20720
+ "onUpdate:modelValue": te[0] || (te[0] = (H) => m.value = H),
20721
20721
  class: "ltr",
20722
20722
  name: e.name,
20723
20723
  title: e.title,
@@ -20728,10 +20728,10 @@ var iS = ["title"], dS = ["for"], cS = {
20728
20728
  required: e.required
20729
20729
  }, e.nativeInputAttrs, {
20730
20730
  onFocusout: S,
20731
- onFocus: te[1] || (te[1] = (...P) => e.onFocus && e.onFocus(...P)),
20731
+ onFocus: te[1] || (te[1] = (...H) => e.onFocus && e.onFocus(...H)),
20732
20732
  onInput: x
20733
20733
  }), null, 16, ZS), [[mc, m.value], [
20734
- K,
20734
+ P,
20735
20735
  void 0,
20736
20736
  "lower"
20737
20737
  ]]),
@@ -23640,7 +23640,7 @@ var C4 = { key: 0 }, D4 = { key: 0 }, U4 = { key: 2 }, O4 = {
23640
23640
  minChars: c(t.options) ? 0 : 2
23641
23641
  }), S = C(-1), w = I(() => S.value >= 0 ? `${m}-option-${S.value}` : void 0), v = (me, he) => {
23642
23642
  if (S.value >= 0) return S.value === he ? 0 : -1;
23643
- const ie = T.value.findIndex((g) => H(g));
23643
+ const ie = T.value.findIndex((g) => K(g));
23644
23644
  return (ie >= 0 ? ie : 0) === he ? 0 : -1;
23645
23645
  }, j = C();
23646
23646
  function U(me) {
@@ -23655,10 +23655,10 @@ var C4 = { key: 0 }, D4 = { key: 0 }, U4 = { key: 2 }, O4 = {
23655
23655
  he ? he.focus() : S.value = -1;
23656
23656
  }, 10);
23657
23657
  }
23658
- const H = (me) => Z.value.find((he) => b(me) === b(he)) !== void 0;
23658
+ const K = (me) => Z.value.find((he) => b(me) === b(he)) !== void 0;
23659
23659
  function te() {
23660
23660
  if (!j.value || h.value === 0) return;
23661
- const me = T.value.findIndex((ie) => H(ie));
23661
+ const me = T.value.findIndex((ie) => K(ie));
23662
23662
  if (me === -1) return;
23663
23663
  const he = j.value.children[me];
23664
23664
  he && he.scrollIntoView({
@@ -23666,10 +23666,10 @@ var C4 = { key: 0 }, D4 = { key: 0 }, U4 = { key: 2 }, O4 = {
23666
23666
  behavior: "instant"
23667
23667
  });
23668
23668
  }
23669
- function K() {
23669
+ function P() {
23670
23670
  W.value = !0;
23671
23671
  }
23672
- function P(me) {
23672
+ function H(me) {
23673
23673
  p.value = !0;
23674
23674
  const he = Z.value.findIndex((g) => b(g) === b(me));
23675
23675
  if (he > -1) Z.value.splice(he, 1);
@@ -23702,7 +23702,7 @@ var C4 = { key: 0 }, D4 = { key: 0 }, U4 = { key: 2 }, O4 = {
23702
23702
  Z.value.length > 0 && (Z.value = []);
23703
23703
  else {
23704
23704
  const he = Array.isArray(me) ? me[0] : me, ie = Array.isArray(t.options) ? t.options.find((g) => b(g) === b(he)) ?? he : he;
23705
- ie != null && (!H(ie) || Z.value[0] !== ie) && (Z.value = [ie]);
23705
+ ie != null && (!K(ie) || Z.value[0] !== ie) && (Z.value = [ie]);
23706
23706
  }
23707
23707
  }, { immediate: !0 }), we(() => W.value, (me) => {
23708
23708
  me && (S.value = -1, ml(() => {
@@ -23765,7 +23765,7 @@ var C4 = { key: 0 }, D4 = { key: 0 }, U4 = { key: 2 }, O4 = {
23765
23765
  icon: "search",
23766
23766
  thin: e.thin,
23767
23767
  onInput: he[1] || (he[1] = (ie) => p.value = !1),
23768
- onClick: K,
23768
+ onClick: P,
23769
23769
  role: "combobox",
23770
23770
  "aria-label": N(_e)(e.label) || G.value,
23771
23771
  "aria-expanded": "true",
@@ -23856,23 +23856,23 @@ var C4 = { key: 0 }, D4 = { key: 0 }, U4 = { key: 2 }, O4 = {
23856
23856
  }, [(L(!0), M(Xe, null, je(N(T), (ie, g) => (L(), M("div", {
23857
23857
  key: `${String(b(ie))}-${g}`,
23858
23858
  id: `${N(m)}-option-${g}`,
23859
- class: Ze(["selectinput-option hover gap-1 align-items-center", { selected: H(ie) }]),
23859
+ class: Ze(["selectinput-option hover gap-1 align-items-center", { selected: K(ie) }]),
23860
23860
  role: "option",
23861
23861
  tabindex: v(ie, g),
23862
23862
  "aria-label": N(Ki)(ie),
23863
- "aria-selected": H(ie),
23864
- onClick: (z) => P(ie),
23863
+ "aria-selected": K(ie),
23864
+ onClick: (z) => H(ie),
23865
23865
  onKeydown: [
23866
- Kl((z) => P(ie), ["enter"]),
23866
+ Kl((z) => H(ie), ["enter"]),
23867
23867
  he[8] || (he[8] = Kl(el((z) => U("down"), ["prevent"]), ["down"])),
23868
23868
  he[9] || (he[9] = Kl(el((z) => U("up"), ["prevent"]), ["up"]))
23869
23869
  ]
23870
- }, [e.multiselect ? (L(), M(Xe, { key: 0 }, [H(ie) ? (L(), ce(N(Ee), {
23870
+ }, [e.multiselect ? (L(), M(Xe, { key: 0 }, [K(ie) ? (L(), ce(N(Ee), {
23871
23871
  key: 0,
23872
23872
  size: 1.1,
23873
23873
  icon: "select_check_box",
23874
23874
  "aria-hidden": "true"
23875
- })) : f("", !0), H(ie) ? f("", !0) : (L(), ce(N(Ee), {
23875
+ })) : f("", !0), K(ie) ? f("", !0) : (L(), ce(N(Ee), {
23876
23876
  key: 1,
23877
23877
  class: "opacity-3",
23878
23878
  icon: "check_box_outline_blank",
@@ -25716,8 +25716,8 @@ var M0 = 64 * 1024, Vj = {
25716
25716
  return G ?? r(W);
25717
25717
  };
25718
25718
  return async (p) => {
25719
- let { url: W, method: G, data: y, signal: X, cancelToken: V, timeout: T, onDownloadProgress: x, onUploadProgress: S, responseType: w, headers: v, withCredentials: j = "same-origin", fetchOptions: U, maxContentLength: H, maxBodyLength: te, maxRedirects: K } = YW(p);
25720
- const P = be.isNumber(H) && H > -1, ue = be.isNumber(te) && te > -1, ye = (B) => be.hasOwnProp(p, B) ? p[B] : void 0;
25719
+ let { url: W, method: G, data: y, signal: X, cancelToken: V, timeout: T, onDownloadProgress: x, onUploadProgress: S, responseType: w, headers: v, withCredentials: j = "same-origin", fetchOptions: U, maxContentLength: K, maxBodyLength: te, maxRedirects: P } = YW(p);
25720
+ const H = be.isNumber(K) && K > -1, ue = be.isNumber(te) && te > -1, ye = (B) => be.hasOwnProp(p, B) ? p[B] : void 0;
25721
25721
  let me = n || fetch;
25722
25722
  w = w ? (w + "").toLowerCase() : "text";
25723
25723
  let he = bj([X, V && V.toAbortSignal()], T), ie = null;
@@ -25739,8 +25739,8 @@ var M0 = 64 * 1024, Vj = {
25739
25739
  password: V0(k.password)
25740
25740
  }), (k.username || k.password) && (k.username = "", k.password = "", W = k.href);
25741
25741
  }
25742
- if (B && (v.delete("authorization"), v.set("Authorization", "Basic " + btoa(Tj((B.username || "") + ":" + (B.password || ""))))), P && typeof W == "string" && W.startsWith("data:") && Mj(W) > H)
25743
- throw new qe("maxContentLength size of " + H + " exceeded", qe.ERR_BAD_RESPONSE, p, ie);
25742
+ if (B && (v.delete("authorization"), v.set("Authorization", "Basic " + btoa(Tj((B.username || "") + ":" + (B.password || ""))))), H && typeof W == "string" && W.startsWith("data:") && Mj(W) > K)
25743
+ throw new qe("maxContentLength size of " + K + " exceeded", qe.ERR_BAD_RESPONSE, p, ie);
25744
25744
  if (ue && G !== "get" && G !== "head") {
25745
25745
  const k = await r(y);
25746
25746
  if (typeof k == "number" && isFinite(k) && (z = k, k > te))
@@ -25783,15 +25783,15 @@ var M0 = 64 * 1024, Vj = {
25783
25783
  });
25784
25784
  s && (be.forEach(Vj, (k, E) => {
25785
25785
  Le[E] === void 0 && (Le[E] = k);
25786
- }), Le.signal === void 0 && (Le.signal = null), Le.body === void 0 && (Le.body = null)), K === 0 && (Le.redirect = "manual", We && (We.redirect = "manual")), ie = s && new i(W, Le);
25786
+ }), Le.signal === void 0 && (Le.signal = null), Le.body === void 0 && (Le.body = null)), P === 0 && (Le.redirect = "manual", We && (We.redirect = "manual")), ie = s && new i(W, Le);
25787
25787
  let xe = await (s ? me(ie, We) : me(W, Le));
25788
25788
  const le = Qt.from(xe.headers);
25789
- if (P) {
25789
+ if (H) {
25790
25790
  const k = be.toFiniteNumber(le.getContentLength());
25791
- if (k != null && k > H) throw new qe("maxContentLength size of " + H + " exceeded", qe.ERR_BAD_RESPONSE, p, ie);
25791
+ if (k != null && k > K) throw new qe("maxContentLength size of " + K + " exceeded", qe.ERR_BAD_RESPONSE, p, ie);
25792
25792
  }
25793
25793
  const ee = b && (w === "stream" || w === "response");
25794
- if (b && xe.body && (x || P || ee && g)) {
25794
+ if (b && xe.body && (x || H || ee && g)) {
25795
25795
  const k = {};
25796
25796
  [
25797
25797
  "status",
@@ -25803,8 +25803,8 @@ var M0 = 64 * 1024, Vj = {
25803
25803
  const E = be.toFiniteNumber(le.getContentLength()), [Ge, Ve] = x && W0(E, Go(G0(x), !0)) || [];
25804
25804
  let Qe = 0;
25805
25805
  const Ue = (ul) => {
25806
- if (P && (Qe = ul, Qe > H))
25807
- throw new qe("maxContentLength size of " + H + " exceeded", qe.ERR_BAD_RESPONSE, p, ie);
25806
+ if (H && (Qe = ul, Qe > K))
25807
+ throw new qe("maxContentLength size of " + K + " exceeded", qe.ERR_BAD_RESPONSE, p, ie);
25808
25808
  Ge && Ge(ul);
25809
25809
  };
25810
25810
  xe = new d(L0(xe.body, M0, Ue, () => {
@@ -25813,9 +25813,9 @@ var M0 = 64 * 1024, Vj = {
25813
25813
  }
25814
25814
  w = w || "text";
25815
25815
  let ae = await h[be.findKey(h, w) || "text"](xe, p);
25816
- if (P && !b && !ee) {
25816
+ if (H && !b && !ee) {
25817
25817
  let k;
25818
- if (ae != null && (typeof ae.byteLength == "number" ? k = ae.byteLength : typeof ae.size == "number" ? k = ae.size : typeof ae == "string" && (k = typeof a == "function" ? new a().encode(ae).byteLength : ae.length)), typeof k == "number" && k > H) throw new qe("maxContentLength size of " + H + " exceeded", qe.ERR_BAD_RESPONSE, p, ie);
25818
+ if (ae != null && (typeof ae.byteLength == "number" ? k = ae.byteLength : typeof ae.size == "number" ? k = ae.size : typeof ae == "string" && (k = typeof a == "function" ? new a().encode(ae).byteLength : ae.length)), typeof k == "number" && k > K) throw new qe("maxContentLength size of " + K + " exceeded", qe.ERR_BAD_RESPONSE, p, ie);
25819
25819
  }
25820
25820
  return !ee && g && g(), await new Promise((k, E) => {
25821
25821
  WW(k, E, {
@@ -26857,19 +26857,19 @@ var Uj = { class: "square-32 flex-shrink-0 flex-center overflow-hidden radius-1
26857
26857
  const v = I(() => Math.max(1, Math.round(h.value.w * s.value.w))), j = I(() => Math.max(1, Math.round(h.value.h * s.value.h))), U = I(() => {
26858
26858
  const J = Math.max(v.value, j.value), F = Math.min(1, t.outputSize / J);
26859
26859
  return Math.max(1, Math.round(v.value * F));
26860
- }), H = C(1), te = C(!1), K = I(() => Math.max(1, Math.round(H.value * (j.value / v.value))));
26861
- function P(J) {
26862
- J && (te.value = !0, H.value = Y(Math.round(J), 1, v.value));
26860
+ }), K = C(1), te = C(!1), P = I(() => Math.max(1, Math.round(K.value * (j.value / v.value))));
26861
+ function H(J) {
26862
+ J && (te.value = !0, K.value = Y(Math.round(J), 1, v.value));
26863
26863
  }
26864
26864
  function ue(J) {
26865
- J && (te.value = !0, H.value = Y(Math.round(J * (v.value / j.value)), 1, v.value));
26865
+ J && (te.value = !0, K.value = Y(Math.round(J * (v.value / j.value)), 1, v.value));
26866
26866
  }
26867
26867
  we([U, v], () => {
26868
26868
  if (!te.value) {
26869
- H.value = U.value;
26869
+ K.value = U.value;
26870
26870
  return;
26871
26871
  }
26872
- H.value > v.value && (H.value = v.value);
26872
+ K.value > v.value && (K.value = v.value);
26873
26873
  }, { immediate: !0 });
26874
26874
  const ye = I(() => a("upload.cropMax", {
26875
26875
  w: v.value.toLocaleString(),
@@ -26907,7 +26907,7 @@ var Uj = { class: "square-32 flex-shrink-0 flex-center overflow-hidden radius-1
26907
26907
  async function z() {
26908
26908
  const J = c.value, { w: F, h: B } = s.value;
26909
26909
  if (!J || !F || !B) return;
26910
- const $ = h.value, Q = Math.round($.x * F), oe = Math.round($.y * B), re = Math.max(1, Math.round($.w * F)), We = Math.max(1, Math.round($.h * B)), Le = Math.max(1, Math.min(v.value, Math.round(H.value))), xe = Math.max(1, Math.round(Le * (We / re))), le = document.createElement("canvas");
26910
+ const $ = h.value, Q = Math.round($.x * F), oe = Math.round($.y * B), re = Math.max(1, Math.round($.w * F)), We = Math.max(1, Math.round($.h * B)), Le = Math.max(1, Math.min(v.value, Math.round(K.value))), xe = Math.max(1, Math.round(Le * (We / re))), le = document.createElement("canvas");
26911
26911
  le.width = Le, le.height = xe;
26912
26912
  const ee = le.getContext("2d");
26913
26913
  if (!ee) return;
@@ -26977,7 +26977,7 @@ var Uj = { class: "square-32 flex-shrink-0 flex-center overflow-hidden radius-1
26977
26977
  ]),
26978
26978
  R("div", eJ, [R("span", lJ, ne(N(a)("upload.cropPixels")), 1), R("div", tJ, [
26979
26979
  _(N(da), {
26980
- "model-value": H.value,
26980
+ "model-value": K.value,
26981
26981
  min: 1,
26982
26982
  max: v.value,
26983
26983
  step: 1,
@@ -26985,7 +26985,7 @@ var Uj = { class: "square-32 flex-shrink-0 flex-center overflow-hidden radius-1
26985
26985
  placeholder: N(a)("upload.cropWidth"),
26986
26986
  "hide-label": "",
26987
26987
  "max-width": "6.5rem",
26988
- "onUpdate:modelValue": P,
26988
+ "onUpdate:modelValue": H,
26989
26989
  class: "mb-0"
26990
26990
  }, null, 8, [
26991
26991
  "model-value",
@@ -26994,7 +26994,7 @@ var Uj = { class: "square-32 flex-shrink-0 flex-center overflow-hidden radius-1
26994
26994
  ]),
26995
26995
  F[2] || (F[2] = R("span", { class: "opacity-6" }, "×", -1)),
26996
26996
  _(N(da), {
26997
- "model-value": K.value,
26997
+ "model-value": P.value,
26998
26998
  min: 1,
26999
26999
  max: j.value,
27000
27000
  step: 1,
@@ -27174,20 +27174,20 @@ var Uj = { class: "square-32 flex-shrink-0 flex-center overflow-hidden radius-1
27174
27174
  }, 1800);
27175
27175
  V.add(Fe);
27176
27176
  }
27177
- const x = I(() => !!t.crop), S = I(() => !!t.cropExisting), w = I(() => x.value || S.value), v = C(!1), j = C(""), U = C("queue"), H = C(null), te = C();
27178
- let K;
27179
- async function P(Ne) {
27177
+ const x = I(() => !!t.crop), S = I(() => !!t.cropExisting), w = I(() => x.value || S.value), v = C(!1), j = C(""), U = C("queue"), K = C(null), te = C();
27178
+ let P;
27179
+ async function H(Ne) {
27180
27180
  if (!x.value || !Ne.type.startsWith("image/")) return Ne;
27181
- U.value = "queue", H.value = null, j.value = URL.createObjectURL(Ne), v.value = !0;
27181
+ U.value = "queue", K.value = null, j.value = URL.createObjectURL(Ne), v.value = !0;
27182
27182
  const Fe = await new Promise((De) => {
27183
- K = De;
27183
+ P = De;
27184
27184
  });
27185
27185
  if (Fe)
27186
27186
  return new File([Fe], y(Ne.name, Fe), { type: Fe.type });
27187
27187
  }
27188
27188
  function ue(Ne) {
27189
- const Fe = K;
27190
- K = void 0, v.value = !1, U.value = "queue", H.value = null, j.value && URL.revokeObjectURL(j.value), j.value = "", Fe?.(Ne);
27189
+ const Fe = P;
27190
+ P = void 0, v.value = !1, U.value = "queue", K.value = null, j.value && URL.revokeObjectURL(j.value), j.value = "", Fe?.(Ne);
27191
27191
  }
27192
27192
  async function ye(Ne) {
27193
27193
  if (Ne.index === void 0 || !Ne.asset) return;
@@ -27200,10 +27200,10 @@ var Uj = { class: "square-32 flex-shrink-0 flex-center overflow-hidden radius-1
27200
27200
  De = URL.createObjectURL(await ge.blob());
27201
27201
  } catch {
27202
27202
  }
27203
- U.value = "existing", H.value = Ne.index, j.value = De, v.value = !0;
27203
+ U.value = "existing", K.value = Ne.index, j.value = De, v.value = !0;
27204
27204
  }
27205
27205
  async function me() {
27206
- const Ne = U.value, Fe = H.value, De = await te.value?.getFile();
27206
+ const Ne = U.value, Fe = K.value, De = await te.value?.getFile();
27207
27207
  if (Ne === "existing" && Fe !== null && De) {
27208
27208
  const ge = h.value[Fe];
27209
27209
  ue(), ge && await he(Fe, ge, De);
@@ -27264,7 +27264,7 @@ var Uj = { class: "square-32 flex-shrink-0 flex-center overflow-hidden radius-1
27264
27264
  continue;
27265
27265
  }
27266
27266
  }
27267
- const $t = await P(ge.file);
27267
+ const $t = await H(ge.file);
27268
27268
  if (!$t) {
27269
27269
  g([ge]);
27270
27270
  continue;
@@ -27919,8 +27919,8 @@ var Uj = { class: "square-32 flex-shrink-0 flex-center overflow-hidden radius-1
27919
27919
  if (j != null) {
27920
27920
  if (typeof j == "string") return j || void 0;
27921
27921
  if (typeof j == "object") {
27922
- const U = j, H = U.path_key ?? U.pathKey ?? U.imageURL ?? U.url ?? U.src;
27923
- return typeof H == "string" && H || void 0;
27922
+ const U = j, K = U.path_key ?? U.pathKey ?? U.imageURL ?? U.url ?? U.src;
27923
+ return typeof K == "string" && K || void 0;
27924
27924
  }
27925
27925
  }
27926
27926
  }
@@ -27953,14 +27953,14 @@ var Uj = { class: "square-32 flex-shrink-0 flex-center overflow-hidden radius-1
27953
27953
  return !j || typeof j != "string" ? "file" : j.split("/").pop() || "file";
27954
27954
  }
27955
27955
  return (j, U) => {
27956
- const H = et("tooltip"), te = et("lightbox");
27956
+ const K = et("tooltip"), te = et("lightbox");
27957
27957
  return e.assetMode ? (L(), ce(wJ, bl({ key: 0 }, t, {
27958
- "onUpdate:modelValue": U[0] || (U[0] = (K) => a("update:modelValue", K)),
27959
- onAddFileStart: U[1] || (U[1] = (K) => a("addFileStart")),
27960
- onUploadError: U[2] || (U[2] = (K, P) => a("uploadError", K, P))
27961
- }), nd({ _: 2 }, [je(N(i), (K, P) => ({
27962
- name: P,
27963
- fn: fe((ue) => [Te(j.$slots, P, xt(It(ue || {})), void 0, !0)])
27958
+ "onUpdate:modelValue": U[0] || (U[0] = (P) => a("update:modelValue", P)),
27959
+ onAddFileStart: U[1] || (U[1] = (P) => a("addFileStart")),
27960
+ onUploadError: U[2] || (U[2] = (P, H) => a("uploadError", P, H))
27961
+ }), nd({ _: 2 }, [je(N(i), (P, H) => ({
27962
+ name: H,
27963
+ fn: fe((ue) => [Te(j.$slots, H, xt(It(ue || {})), void 0, !0)])
27964
27964
  }))]), 1040)) : (L(), M("div", {
27965
27965
  key: 1,
27966
27966
  class: Ze(["bagel-input", [N(h), {
@@ -27991,40 +27991,40 @@ var Uj = { class: "square-32 flex-shrink-0 flex-center overflow-hidden radius-1
27991
27991
  icon: "upload",
27992
27992
  outline: "",
27993
27993
  value: e.btnPlaceholder || N(n)("upload.upload"),
27994
- onClick: U[3] || (U[3] = (K) => N(u)())
27994
+ onClick: U[3] || (U[3] = (P) => N(u)())
27995
27995
  }, null, 8, ["value"])) : f("", !0),
27996
27996
  N(d).length > 0 ? (L(), M("div", FJ, [_(N(pi), { size: "20" }), R("span", jJ, ne(N(n)("upload.uploading", {
27997
27997
  count: N(d).length,
27998
27998
  plural: N(d).length > 1 ? "s" : ""
27999
27999
  })), 1)])) : f("", !0),
28000
- (L(!0), M(Xe, null, je(N(c), (K) => (L(), M("div", {
28001
- key: K,
28000
+ (L(!0), M(Xe, null, je(N(c), (P) => (L(), M("div", {
28001
+ key: P,
28002
28002
  class: "txt-gray txt-12 flex"
28003
28003
  }, [R("div", JJ, [
28004
28004
  !e.readonly && !e.disabled ? (L(), M(Xe, { key: 0 }, [al(_(N(pe), {
28005
28005
  color: "gray",
28006
28006
  thin: "",
28007
28007
  icon: "delete",
28008
- onClick: (P) => N(s)(K)
28009
- }, null, 8, ["onClick"]), [[H, "Delete"]]), al(_(N(pe), {
28008
+ onClick: (H) => N(s)(P)
28009
+ }, null, 8, ["onClick"]), [[K, "Delete"]]), al(_(N(pe), {
28010
28010
  color: "gray",
28011
28011
  thin: "",
28012
28012
  icon: "autorenew",
28013
- onClick: U[4] || (U[4] = (P) => N(u)())
28014
- }, null, 512), [[H, "Replace"]])], 64)) : f("", !0),
28013
+ onClick: U[4] || (U[4] = (H) => N(u)())
28014
+ }, null, 512), [[K, "Replace"]])], 64)) : f("", !0),
28015
28015
  _(N(pe), {
28016
28016
  icon: "download",
28017
28017
  color: "gray",
28018
28018
  thin: "",
28019
28019
  target: "_blank",
28020
- href: N(aa)(K),
28021
- download: v(K)
28020
+ href: N(aa)(P),
28021
+ download: v(P)
28022
28022
  }, null, 8, ["href", "download"]),
28023
28023
  R("div", kJ, [_(N(Ee), {
28024
28024
  icon: "draft",
28025
28025
  size: 1.5
28026
- }), al((L(), M("p", CJ, [Ae(ne(v(K)), 1)])), [[te, {
28027
- src: N(aa)(K),
28026
+ }), al((L(), M("p", CJ, [Ae(ne(v(P)), 1)])), [[te, {
28027
+ src: N(aa)(P),
28028
28028
  download: !0
28029
28029
  }]])])
28030
28030
  ])]))), 128)),
@@ -28043,58 +28043,58 @@ var Uj = { class: "square-32 flex-shrink-0 flex-center overflow-hidden radius-1
28043
28043
  width: e.width,
28044
28044
  height: e.height
28045
28045
  }
28046
- }, dd(N(S), !0), { onClick: U[6] || (U[6] = (K) => N(u)()) }), [Te(j.$slots, "files", {
28046
+ }, dd(N(S), !0), { onClick: U[6] || (U[6] = (P) => N(u)()) }), [Te(j.$slots, "files", {
28047
28047
  files: N(c),
28048
28048
  fileQueue: N(d)
28049
- }, () => [e.multiple ? (L(), M("div", UJ, [(L(!0), M(Xe, null, je(N(c), (K) => al((L(), M("div", {
28050
- key: K,
28049
+ }, () => [e.multiple ? (L(), M("div", UJ, [(L(!0), M(Xe, null, je(N(c), (P) => al((L(), M("div", {
28050
+ key: P,
28051
28051
  class: Ze(["multi-image-item-preview", { "bgl_fill-image": e.fill }])
28052
28052
  }, [
28053
- V(K) ? (L(), ce(N(pc), {
28053
+ V(P) ? (L(), ce(N(pc), {
28054
28054
  key: 0,
28055
- pathKey: K,
28055
+ pathKey: P,
28056
28056
  class: "multi-preview"
28057
28057
  }, null, 8, ["pathKey"])) : (L(), ce(N(Ee), {
28058
28058
  key: 1,
28059
28059
  icon: "description",
28060
28060
  class: "multi-preview"
28061
28061
  })),
28062
- R("p", OJ, ne(v(K)), 1),
28062
+ R("p", OJ, ne(v(P)), 1),
28063
28063
  e.readonly ? f("", !0) : (L(), ce(N(pe), {
28064
28064
  key: 2,
28065
28065
  thin: "",
28066
28066
  flat: "",
28067
28067
  icon: "delete",
28068
28068
  color: "red",
28069
- onClick: (P) => N(s)(K)
28069
+ onClick: (H) => N(s)(P)
28070
28070
  }, null, 8, ["onClick"]))
28071
28071
  ], 2)), [[te, {
28072
- src: N(aa)(K),
28072
+ src: N(aa)(P),
28073
28073
  download: !0
28074
- }]])), 128)), (L(!0), M(Xe, null, je(N(d), (K) => (L(), M("div", {
28075
- key: K.name,
28074
+ }]])), 128)), (L(!0), M(Xe, null, je(N(d), (P) => (L(), M("div", {
28075
+ key: P.name,
28076
28076
  class: Ze(["multi-image-item-preview", { "bgl_fill-image": e.fill }])
28077
28077
  }, [
28078
- V(K.file.type) ? (L(), M("img", {
28078
+ V(P.file.type) ? (L(), M("img", {
28079
28079
  key: 0,
28080
28080
  class: "multi-preview",
28081
- src: K.url,
28081
+ src: P.url,
28082
28082
  alt: ""
28083
28083
  }, null, 8, EJ)) : (L(), ce(N(Ee), {
28084
28084
  key: 1,
28085
28085
  icon: "description",
28086
28086
  class: "multi-preview"
28087
28087
  })),
28088
- R("p", KJ, ne(K.name), 1),
28088
+ R("p", KJ, ne(P.name), 1),
28089
28089
  R("div", {
28090
- class: Ze(["pie", { complete: K.progress === 100 }]),
28091
- style: Ie([{ "--p": K.progress }, { "--b": "2px" }])
28092
- }, [K.progress < 100 ? (L(), M("span", HJ, ne(K.progress.toFixed(0)), 1)) : f("", !0), _(N(Ee), {
28090
+ class: Ze(["pie", { complete: P.progress === 100 }]),
28091
+ style: Ie([{ "--p": P.progress }, { "--b": "2px" }])
28092
+ }, [P.progress < 100 ? (L(), M("span", HJ, ne(P.progress.toFixed(0)), 1)) : f("", !0), _(N(Ee), {
28093
28093
  class: "success",
28094
28094
  icon: "check_circle"
28095
28095
  })], 6)
28096
- ], 2))), 128))])) : N(c).length > 0 || N(d).length > 0 ? (L(), M("div", PJ, [(L(!0), M(Xe, null, je(N(c), (K) => (L(), M("div", {
28097
- key: K,
28096
+ ], 2))), 128))])) : N(c).length > 0 || N(d).length > 0 ? (L(), M("div", PJ, [(L(!0), M(Xe, null, je(N(c), (P) => (L(), M("div", {
28097
+ key: P,
28098
28098
  class: Ze(["single-image-item-preview", { "bgl_fill-image": e.fill }])
28099
28099
  }, [R("div", { class: Ze(["flex opacity-8 z-90 gap-025 absolute top-0 start-0", {
28100
28100
  "mx-auto end-0 mt-1 justify-content-center": e.oval,
@@ -28106,31 +28106,31 @@ var Uj = { class: "square-32 flex-shrink-0 flex-center overflow-hidden radius-1
28106
28106
  frame: "",
28107
28107
  thin: "",
28108
28108
  icon: "delete",
28109
- onClick: (P) => N(s)(K)
28110
- }, null, 8, ["onClick"])), [[H, "Delete"]]) : f("", !0),
28109
+ onClick: (H) => N(s)(P)
28110
+ }, null, 8, ["onClick"])), [[K, "Delete"]]) : f("", !0),
28111
28111
  !e.readonly && !e.disabled ? al((L(), ce(N(pe), {
28112
28112
  key: 1,
28113
28113
  color: "white",
28114
28114
  frame: "",
28115
28115
  thin: "",
28116
28116
  icon: "autorenew",
28117
- onClick: U[5] || (U[5] = (P) => N(u)())
28118
- }, null, 512)), [[H, "Replace"]]) : f("", !0),
28117
+ onClick: U[5] || (U[5] = (H) => N(u)())
28118
+ }, null, 512)), [[K, "Replace"]]) : f("", !0),
28119
28119
  al(_(N(pe), {
28120
28120
  color: "white",
28121
28121
  frame: "",
28122
28122
  thin: "",
28123
28123
  target: "_blank",
28124
28124
  icon: "download",
28125
- href: N(aa)(K),
28126
- download: v(K)
28127
- }, null, 8, ["href", "download"]), [[H, "Download"]])
28128
- ], 2), V(K) ? (L(), M("div", BJ, [al(_(N(pc), {
28125
+ href: N(aa)(P),
28126
+ download: v(P)
28127
+ }, null, 8, ["href", "download"]), [[K, "Download"]])
28128
+ ], 2), V(P) ? (L(), M("div", BJ, [al(_(N(pc), {
28129
28129
  class: "single-preview",
28130
- pathKey: K,
28130
+ pathKey: P,
28131
28131
  alt: ""
28132
28132
  }, null, 8, ["pathKey"]), [[te, {
28133
- src: N(aa)(K),
28133
+ src: N(aa)(P),
28134
28134
  download: !0
28135
28135
  }]])])) : al((L(), ce(N(Ee), {
28136
28136
  key: 1,
@@ -28139,19 +28139,19 @@ var Uj = { class: "square-32 flex-shrink-0 flex-center overflow-hidden radius-1
28139
28139
  icon: "description",
28140
28140
  class: "color-primary w-100"
28141
28141
  }, null, 512)), [[te, {
28142
- src: N(aa)(K),
28142
+ src: N(aa)(P),
28143
28143
  download: !0
28144
- }]])], 2))), 128)), (L(!0), M(Xe, null, je(N(d), (K) => (L(), M("div", {
28145
- key: K.name,
28144
+ }]])], 2))), 128)), (L(!0), M(Xe, null, je(N(d), (P) => (L(), M("div", {
28145
+ key: P.name,
28146
28146
  class: Ze(["single-image-item-preview", { "bgl_fill-image": e.fill }])
28147
28147
  }, [_(N(pi), {
28148
28148
  type: "bar",
28149
- progress: K.progress,
28149
+ progress: P.progress,
28150
28150
  class: "absolute bottom-05 end start w-100px mx-auto rounded overflow-hidden"
28151
- }, null, 8, ["progress"]), V(K.file.type) ? (L(), M("img", {
28151
+ }, null, 8, ["progress"]), V(P.file.type) ? (L(), M("img", {
28152
28152
  key: 0,
28153
28153
  class: "single-preview opacity-5",
28154
- src: K.url,
28154
+ src: P.url,
28155
28155
  alt: ""
28156
28156
  }, null, 8, QJ)) : f("", !0)], 2))), 128))])) : f("", !0)], !0), W.value && N(i)["drop-placeholder"] ? Te(j.$slots, "drop-placeholder", {
28157
28157
  files: N(c),
@@ -30573,39 +30573,39 @@ function Ck(e) {
30573
30573
  if (v.nodeType === Node.ELEMENT_NODE) {
30574
30574
  const j = v, U = j.tagName.toLowerCase();
30575
30575
  if (y.has(U)) {
30576
- const H = p.createDocumentFragment();
30576
+ const K = p.createDocumentFragment();
30577
30577
  return Array.from(j.childNodes).forEach((te) => {
30578
- H.appendChild(T(te));
30579
- }), H;
30578
+ K.appendChild(T(te));
30579
+ }), K;
30580
30580
  }
30581
30581
  if (X.has(U)) {
30582
- const H = /^h[1-6]|blockquote$/.test(U) ? "p" : U, te = p.createElement(H);
30582
+ const K = /^h[1-6]|blockquote$/.test(U) ? "p" : U, te = p.createElement(K);
30583
30583
  if (j.dir && (te.dir = j.dir), U === "a" && j.hasAttribute("href"))
30584
30584
  te.setAttribute("href", j.getAttribute("href") || ""), j.hasAttribute("target") && te.setAttribute("target", j.getAttribute("target") || ""), j.hasAttribute("rel") && te.setAttribute("rel", j.getAttribute("rel") || "");
30585
30585
  else if (U === "img")
30586
- for (const K of [
30586
+ for (const P of [
30587
30587
  "src",
30588
30588
  "alt",
30589
30589
  "width",
30590
30590
  "height"
30591
- ]) j.hasAttribute(K) && te.setAttribute(K, j.getAttribute(K) || "");
30591
+ ]) j.hasAttribute(P) && te.setAttribute(P, j.getAttribute(P) || "");
30592
30592
  else if (U === "iframe")
30593
- for (const K of [
30593
+ for (const P of [
30594
30594
  "src",
30595
30595
  "width",
30596
30596
  "height",
30597
30597
  "frameborder",
30598
30598
  "allowfullscreen"
30599
- ]) j.hasAttribute(K) && te.setAttribute(K, j.getAttribute(K) || "");
30599
+ ]) j.hasAttribute(P) && te.setAttribute(P, j.getAttribute(P) || "");
30600
30600
  else if (U === "video" || U === "audio")
30601
- for (const K of [
30601
+ for (const P of [
30602
30602
  "src",
30603
30603
  "controls",
30604
30604
  "width",
30605
30605
  "height"
30606
- ]) j.hasAttribute(K) && te.setAttribute(K, j.getAttribute(K) || "");
30607
- return Array.from(j.childNodes).forEach((K) => {
30608
- te.appendChild(T(K));
30606
+ ]) j.hasAttribute(P) && te.setAttribute(P, j.getAttribute(P) || "");
30607
+ return Array.from(j.childNodes).forEach((P) => {
30608
+ te.appendChild(T(P));
30609
30609
  }), te;
30610
30610
  }
30611
30611
  }
@@ -31082,7 +31082,7 @@ var Pk = { key: 0 }, Bk = { class: "hide" }, Qk = {
31082
31082
  A.closest(ze) ? (ke.add(Ce.name), Ce.suppressesStyles?.forEach((ve) => ke.delete(ve))) : ke.delete(Ce.name);
31083
31083
  }), G.state.selectedStyles = ke;
31084
31084
  }
31085
- const p = oZ(), W = C(), G = Tk(), y = C(!1), X = C(!1), V = Uk(G.state, G.state.debug), T = I(() => (G.state.content, V4(s.value, G.state.doc))), x = I(() => T.value.characters), S = I(() => T.value.words), w = I(() => !!(a.maxLength && x.value > a.maxLength)), v = I(() => !!(a.maxWords && S.value > a.maxWords)), j = I(() => w.value || v.value), U = I(() => a.showCounter || !!a.maxLength || !!a.maxWords), H = I(() => `${a.maxLength ? `${x.value} / ${a.maxLength} characters` : `${x.value} characters`} · ${a.maxWords ? `${S.value} / ${a.maxWords} words` : `${S.value} words`}`);
31085
+ const p = oZ(), W = C(), G = Tk(), y = C(!1), X = C(!1), V = Uk(G.state, G.state.debug), T = I(() => (G.state.content, V4(s.value, G.state.doc))), x = I(() => T.value.characters), S = I(() => T.value.words), w = I(() => !!(a.maxLength && x.value > a.maxLength)), v = I(() => !!(a.maxWords && S.value > a.maxWords)), j = I(() => w.value || v.value), U = I(() => a.showCounter || !!a.maxLength || !!a.maxWords), K = I(() => `${a.maxLength ? `${x.value} / ${a.maxLength} characters` : `${x.value} characters`} · ${a.maxWords ? `${S.value} / ${a.maxWords} words` : `${S.value} words`}`);
31086
31086
  function te(D, O, de = []) {
31087
31087
  const { doc: A } = G.state;
31088
31088
  if (!A) return;
@@ -31100,14 +31100,14 @@ var Pk = { key: 0 }, Bk = { class: "hide" }, Qk = {
31100
31100
  const Se = A.createRange();
31101
31101
  Se.selectNodeContents(ve), Se.collapse(!1), ke?.removeAllRanges(), ke?.addRange(Se), G.state.range = Se.cloneRange(), Sl(A, !0), G.updateState.styles(), Y();
31102
31102
  }
31103
- const K = {
31103
+ const P = {
31104
31104
  execute: V.execute,
31105
31105
  setBlock: te
31106
- }, P = C(0), ue = I(() => (P.value, typeof document < "u" && getComputedStyle(document.documentElement).getPropertyValue("--bgl-input-color").trim() || "#000")), ye = I(() => (P.value, typeof document < "u" ? document.documentElement.classList.contains("bgl-dark-mode") : !1)), me = I(() => {
31106
+ }, H = C(0), ue = I(() => (H.value, typeof document < "u" && getComputedStyle(document.documentElement).getPropertyValue("--bgl-input-color").trim() || "#000")), ye = I(() => (H.value, typeof document < "u" ? document.documentElement.classList.contains("bgl-dark-mode") : !1)), me = I(() => {
31107
31107
  if (ye.value) return a.textColor || "#1a1a1a";
31108
31108
  const D = ue.value;
31109
31109
  return a.textColor || (D && D.length > 0 && D !== "#000" ? D : "inherit");
31110
- }), he = I(() => (P.value, typeof document < "u" && getComputedStyle(document.documentElement).getPropertyValue("--bgl-font").trim() || "sans-serif"));
31110
+ }), he = I(() => (H.value, typeof document < "u" && getComputedStyle(document.documentElement).getPropertyValue("--bgl-font").trim() || "sans-serif"));
31111
31111
  let ie = null;
31112
31112
  nl(() => {
31113
31113
  typeof document < "u" && (ie = new MutationObserver((D) => {
@@ -31117,7 +31117,7 @@ var Pk = { key: 0 }, Bk = { class: "hide" }, Qk = {
31117
31117
  const { attributeName: A } = de;
31118
31118
  (A === "data-theme" || A === "class" || A === "style") && (O = !0);
31119
31119
  }
31120
- }), O && (P.value++, X.value && setTimeout(() => {
31120
+ }), O && (H.value++, X.value && setTimeout(() => {
31121
31121
  fm();
31122
31122
  }, 50));
31123
31123
  }), ie.observe(document.documentElement, {
@@ -31134,7 +31134,7 @@ var Pk = { key: 0 }, Bk = { class: "hide" }, Qk = {
31134
31134
  }), At(() => {
31135
31135
  ie?.disconnect();
31136
31136
  }), a.debug && typeof window < "u" && (window.forceRichTextUpdate = () => {
31137
- P.value++;
31137
+ H.value++;
31138
31138
  }, window.debugRichText = Lr);
31139
31139
  const g = I(() => !(a.hideToolbar || a.basic)), z = I(() => !a.hideInlineToolbar), J = I(() => a.toolbarConfig), F = I(() => {
31140
31140
  const D = [...a.hide || []];
@@ -33023,7 +33023,7 @@ var Pk = { key: 0 }, Bk = { class: "hide" }, Qk = {
33023
33023
  "document-colors": r.value,
33024
33024
  onAction: N(V).execute
33025
33025
  }, {
33026
- end: fe(() => [Te(D.$slots, "toolbar-end", { api: K }, () => [(L(!0), M(Xe, null, je(Z.value, (A) => al((L(), ce(N(pe), {
33026
+ end: fe(() => [Te(D.$slots, "toolbar-end", { api: P }, () => [(L(!0), M(Xe, null, je(Z.value, (A) => al((L(), ce(N(pe), {
33027
33027
  key: A.name,
33028
33028
  icon: A.icon,
33029
33029
  value: A.value,
@@ -33035,7 +33035,7 @@ var Pk = { key: 0 }, Bk = { class: "hide" }, Qk = {
33035
33035
  tabindex: "-1",
33036
33036
  onMousedown: O[0] || (O[0] = el(() => {
33037
33037
  }, ["prevent"])),
33038
- onClick: (ke) => A.action(K)
33038
+ onClick: (ke) => A.action(P)
33039
33039
  }, null, 8, [
33040
33040
  "icon",
33041
33041
  "value",
@@ -33075,7 +33075,7 @@ var Pk = { key: 0 }, Bk = { class: "hide" }, Qk = {
33075
33075
  e.maxWords ? (L(), M(Xe, { key: 0 }, [Ae(" / " + ne(e.maxWords), 1)], 64)) : f("", !0),
33076
33076
  O[66] || (O[66] = Ae(" words", -1))
33077
33077
  ]),
33078
- R("span", Bk, ne(H.value), 1)
33078
+ R("span", Bk, ne(K.value), 1)
33079
33079
  ], 2)) : f("", !0),
33080
33080
  R("div", { class: Ze(["editor-container", { "split-view": N(G).state.isSplitView }]) }, [R("div", {
33081
33081
  class: "content-area radius-05",
@@ -34320,8 +34320,8 @@ var VC = {
34320
34320
  else try {
34321
34321
  const w = S.split(",")[1];
34322
34322
  if (!w) throw new Error("Invalid data URL format");
34323
- const v = atob(w), j = new Uint8Array(Array.from(v, (K) => K.charCodeAt(0))), U = t.format || "image/png", H = new Blob([j], { type: U }), te = U.split("/")[1];
34324
- m = new File([H], `signature.${te}`, { type: U }), d.value = m;
34323
+ const v = atob(w), j = new Uint8Array(Array.from(v, (P) => P.charCodeAt(0))), U = t.format || "image/png", K = new Blob([j], { type: U }), te = U.split("/")[1];
34324
+ m = new File([K], `signature.${te}`, { type: U }), d.value = m;
34325
34325
  } catch {
34326
34326
  }
34327
34327
  }
@@ -34391,8 +34391,8 @@ var VC = {
34391
34391
  function V() {
34392
34392
  const S = c.value, w = s.value;
34393
34393
  if (!S || !w) return;
34394
- const v = S.width, j = S.height, U = w.isEmpty(), H = U ? [] : w.toData(), te = !U && H.length === 0 ? Z() : void 0;
34395
- MC(S) && (S.width === v && S.height === j || (w.clear(), t.clearOnResize ? (o.value = !0, i.value = void 0) : H.length > 0 ? (w.fromData(H), o.value = !1) : te && (h(te), o.value = !1), t.waterMark && G(t.waterMark)));
34394
+ const v = S.width, j = S.height, U = w.isEmpty(), K = U ? [] : w.toData(), te = !U && K.length === 0 ? Z() : void 0;
34395
+ MC(S) && (S.width === v && S.height === j || (w.clear(), t.clearOnResize ? (o.value = !0, i.value = void 0) : K.length > 0 ? (w.fromData(K), o.value = !1) : te && (h(te), o.value = !1), t.waterMark && G(t.waterMark)));
34396
34396
  }
34397
34397
  const T = I(() => ({
34398
34398
  ...t.backgroundColor ? { background: t.backgroundColor } : {},
@@ -35222,18 +35222,18 @@ cl.prototype = /** @lends Sortable.prototype */
35222
35222
  vi !== a && (T = i[w], nc = !1, Vs = !S && c.invertSwap || x), V = t7(l, a, i, b, S ? 1 : c.swapThreshold, c.invertedSwapThreshold == null ? c.swapThreshold : c.invertedSwapThreshold, Vs, vi === a);
35223
35223
  var U;
35224
35224
  if (V !== 0) {
35225
- var H = ta(He);
35225
+ var K = ta(He);
35226
35226
  do
35227
- H -= V, U = Ol.children[H];
35227
+ K -= V, U = Ol.children[K];
35228
35228
  while (U && (dl(U, "display") === "none" || U === rl));
35229
35229
  }
35230
35230
  if (V === 0 || U === a) return W(!1);
35231
35231
  vi = a, ac = V;
35232
- var te = a.nextElementSibling, K = !1;
35233
- K = V === 1;
35234
- var P = Is(Jl, t, He, n, a, i, l, K);
35235
- if (P !== !1)
35236
- return (P === 1 || P === -1) && (K = P === 1), X2 = !0, setTimeout(qC, 30), p(), K && !te ? t.appendChild(He) : a.parentNode.insertBefore(He, K ? te : a), v && CW(v, 0, j - v.scrollTop), Ol = He.parentNode, T !== void 0 && !Vs && (As = Math.abs(T - at(a)[w])), G(), W(!0);
35232
+ var te = a.nextElementSibling, P = !1;
35233
+ P = V === 1;
35234
+ var H = Is(Jl, t, He, n, a, i, l, P);
35235
+ if (H !== !1)
35236
+ return (H === 1 || H === -1) && (P = H === 1), X2 = !0, setTimeout(qC, 30), p(), P && !te ? t.appendChild(He) : a.parentNode.insertBefore(He, P ? te : a), v && CW(v, 0, j - v.scrollTop), Ol = He.parentNode, T !== void 0 && !Vs && (As = Math.abs(T - at(a)[w])), G(), W(!0);
35237
35237
  }
35238
35238
  if (t.contains(He)) return W(!1);
35239
35239
  }
@@ -35531,11 +35531,11 @@ var pu = kW(function(e, l, t, a) {
35531
35531
  b === s ? (X = G < T && (S.overflowX === "auto" || S.overflowX === "scroll" || S.overflowX === "visible"), V = y < x && (S.overflowY === "auto" || S.overflowY === "scroll" || S.overflowY === "visible")) : (X = G < T && (S.overflowX === "auto" || S.overflowX === "scroll"), V = y < x && (S.overflowY === "auto" || S.overflowY === "scroll"));
35532
35532
  var j = X && (Math.abs(W - n) <= d && w + G < T) - (Math.abs(p - n) <= d && !!w), U = V && (Math.abs(Y - i) <= d && v + y < x) - (Math.abs(r - i) <= d && !!v);
35533
35533
  if (!$l[u])
35534
- for (var H = 0; H <= u; H++) $l[H] || ($l[H] = {});
35534
+ for (var K = 0; K <= u; K++) $l[K] || ($l[K] = {});
35535
35535
  ($l[u].vx != j || $l[u].vy != U || $l[u].el !== b) && ($l[u].el = b, $l[u].vx = j, $l[u].vy = U, clearInterval($l[u].pid), (j != 0 || U != 0) && (o = !0, $l[u].pid = setInterval((function() {
35536
35536
  a && this.layer === 0 && cl.active._onTouchMove(wo);
35537
- var te = $l[this.layer].vy ? $l[this.layer].vy * c : 0, K = $l[this.layer].vx ? $l[this.layer].vx * c : 0;
35538
- typeof m == "function" && m.call(cl.dragged.parentNode[Kt], K, te, e, wo, $l[this.layer].el) !== "continue" || CW($l[this.layer].el, K, te);
35537
+ var te = $l[this.layer].vy ? $l[this.layer].vy * c : 0, P = $l[this.layer].vx ? $l[this.layer].vx * c : 0;
35538
+ typeof m == "function" && m.call(cl.dragged.parentNode[Kt], P, te, e, wo, $l[this.layer].el) !== "continue" || CW($l[this.layer].el, P, te);
35539
35539
  }).bind({ layer: u }), 24))), u++;
35540
35540
  } while (l.bubbleScroll && Z !== s && (Z = xn(Z, !1)));
35541
35541
  T2 = o;
@@ -35759,11 +35759,11 @@ var I2 = [
35759
35759
  function U(g, z) {
35760
35760
  Object.prototype.hasOwnProperty.call(g, z) && (g[z] += d.value);
35761
35761
  }
35762
- function H(g) {
35762
+ function K(g) {
35763
35763
  return g.__draggable_component__;
35764
35764
  }
35765
35765
  function te({ to: g, related: z }) {
35766
- const J = H(g);
35766
+ const J = K(g);
35767
35767
  if (!J) return { component: J };
35768
35768
  const F = J.realList, B = {
35769
35769
  list: F,
@@ -35775,13 +35775,13 @@ var I2 = [
35775
35775
  }
35776
35776
  return B;
35777
35777
  }
35778
- function K(g, z) {
35778
+ function P(g, z) {
35779
35779
  const J = [...z.to.children].filter(($) => $.style.display !== "none");
35780
35780
  if (J.length === 0) return 0;
35781
35781
  const F = J.indexOf(z.related), B = g.component.getVmIndex(F);
35782
35782
  return J.indexOf(Wu) !== -1 || !z.willInsertAfter ? B : B + 1;
35783
35783
  }
35784
- const P = () => {
35784
+ const H = () => {
35785
35785
  const g = {};
35786
35786
  I2.forEach((B) => {
35787
35787
  g["on" + B] = ye(B);
@@ -35808,7 +35808,7 @@ var I2 = [
35808
35808
  function me(g, z) {
35809
35809
  const J = e.move;
35810
35810
  if (!J || !u.value) return !0;
35811
- const F = te(g), B = o.value, $ = K(F, g);
35811
+ const F = te(g), B = o.value, $ = P(F, g);
35812
35812
  return B && Object.assign(B, { futureIndex: $ }), J(Object.assign({}, g, {
35813
35813
  relatedContext: F,
35814
35814
  draggedContext: B
@@ -35826,7 +35826,7 @@ var I2 = [
35826
35826
  onDragEnd: he
35827
35827
  };
35828
35828
  return nl(() => {
35829
- P();
35829
+ H();
35830
35830
  }), e.list !== null && e.modelValue !== null && wC.error("list props are mutually exclusive! Please set one."), {
35831
35831
  getTag: b,
35832
35832
  realList: u,
@@ -35853,12 +35853,12 @@ var I2 = [
35853
35853
  updateProperty: U,
35854
35854
  onDragMove: me,
35855
35855
  onDragEnd: he,
35856
- mounted: P,
35856
+ mounted: H,
35857
35857
  context: o,
35858
35858
  sortableInstance: m,
35859
35859
  getRelatedContextFromMoveEvent: te,
35860
- getTargetedComponent: H,
35861
- computeFutureIndex: K
35860
+ getTargetedComponent: K,
35861
+ computeFutureIndex: P
35862
35862
  };
35863
35863
  },
35864
35864
  render() {
@@ -46713,7 +46713,7 @@ var JO = {
46713
46713
  return g ? u.value ? `+${u.value.dialCode}${g}` : `+${g}` : "";
46714
46714
  }
46715
46715
  function G(g) {
46716
- const z = H(), J = g.replace(/\D/g, "");
46716
+ const z = K(), J = g.replace(/\D/g, "");
46717
46717
  return J ? z ? (J.startsWith("0") ? "0" : "") + new fo(z).input(J.replace(/^0+/, "")) : J : "";
46718
46718
  }
46719
46719
  we([o, u], () => i("update:modelValue", W()));
@@ -46723,7 +46723,7 @@ var JO = {
46723
46723
  o.value = "";
46724
46724
  return;
46725
46725
  }
46726
- const J = f1(z, H());
46726
+ const J = f1(z, K());
46727
46727
  if (J) {
46728
46728
  const B = J.country ? w(J.country) : void 0;
46729
46729
  B && (u.value = B), o.value = G(J.nationalNumber);
@@ -46751,7 +46751,7 @@ var JO = {
46751
46751
  }
46752
46752
  return g;
46753
46753
  }), V = I(() => u.value?.iso2), T = I(() => {
46754
- const g = H();
46754
+ const g = K();
46755
46755
  if (!g) return "";
46756
46756
  try {
46757
46757
  const z = jO(g, JO);
@@ -46787,7 +46787,7 @@ var JO = {
46787
46787
  const g = v();
46788
46788
  g && S(g);
46789
46789
  }
46790
- function H() {
46790
+ function K() {
46791
46791
  return u.value?.iso2 ? u.value.iso2.toUpperCase() : void 0;
46792
46792
  }
46793
46793
  function te() {
@@ -46798,13 +46798,13 @@ var JO = {
46798
46798
  return;
46799
46799
  }
46800
46800
  try {
46801
- const z = f1(g, H()), J = !!(z && z.isValid());
46801
+ const z = f1(g, K()), J = !!(z && z.isValid());
46802
46802
  h.value.setCustomValidity(J ? "" : d("tel.invalidPhone")), r.value = J || !Y.value;
46803
46803
  } catch {
46804
46804
  h.value.setCustomValidity(d("tel.invalidPhone")), r.value = !Y.value;
46805
46805
  }
46806
46806
  }
46807
- async function K() {
46807
+ async function P() {
46808
46808
  if (t.modelValue) y(t.modelValue);
46809
46809
  else try {
46810
46810
  await j();
@@ -46813,7 +46813,7 @@ var JO = {
46813
46813
  }
46814
46814
  te();
46815
46815
  }
46816
- function P(g) {
46816
+ function H(g) {
46817
46817
  const z = g.target;
46818
46818
  z.value.trim().startsWith("+") ? y(z.value) : o.value = G(z.value), z.value = o.value, i("input", g), Y.value && te();
46819
46819
  }
@@ -46824,7 +46824,7 @@ var JO = {
46824
46824
  function ie() {
46825
46825
  setTimeout(() => Z.value?.focus(), 100);
46826
46826
  }
46827
- return nl(K), (g, z) => {
46827
+ return nl(P), (g, z) => {
46828
46828
  const J = et("pattern");
46829
46829
  return L(), M("div", {
46830
46830
  class: Ze(["bagel-input text-input", [N(a), {
@@ -46903,7 +46903,7 @@ var JO = {
46903
46903
  onBlur: z[3] || (z[3] = (F) => ue(F)),
46904
46904
  onFocus: z[4] || (z[4] = (F) => i("focus", F)),
46905
46905
  onKeydown: z[5] || (z[5] = (F) => i("keydown", F)),
46906
- onInput: z[6] || (z[6] = (F) => P(F)),
46906
+ onInput: z[6] || (z[6] = (F) => H(F)),
46907
46907
  onPaste: z[7] || (z[7] = (F) => i("paste", F))
46908
46908
  }, null, 40, PO), [[
46909
46909
  J,
@@ -47424,23 +47424,23 @@ var uE = {
47424
47424
  const Q = u.value[$];
47425
47425
  return ($ === "start" || $ === "end") && !v($) || !Q.present || j($) ? "0" : Q.open ? Q.size : Q.collapsedSize;
47426
47426
  }
47427
- function H($) {
47427
+ function K($) {
47428
47428
  const Q = u.value[$];
47429
47429
  return ($ === "start" || $ === "end") && !v($) ? !1 : Q.present && !j($);
47430
47430
  }
47431
- const te = I(() => ({ gridTemplateColumns: `${U("start")} minmax(0, 1fr) ${U("end")}` })), K = ["start", "end"];
47432
- function P($, Q) {
47431
+ const te = I(() => ({ gridTemplateColumns: `${U("start")} minmax(0, 1fr) ${U("end")}` })), P = ["start", "end"];
47432
+ function H($, Q) {
47433
47433
  if (!$) return Q;
47434
47434
  const oe = Number.parseFloat($);
47435
47435
  return Number.isFinite(oe) ? oe : Q;
47436
47436
  }
47437
47437
  function ue($) {
47438
47438
  const Q = u.value[$];
47439
- return !!Q.resizable && Q.open && H($);
47439
+ return !!Q.resizable && Q.open && K($);
47440
47440
  }
47441
47441
  const ye = tm(), me = C(!1);
47442
47442
  function he($, Q) {
47443
- const oe = u.value[$], re = `${Math.min(P(oe.maxSize, window.innerWidth), Math.max(P(oe.minSize, 0), Q))}px`;
47443
+ const oe = u.value[$], re = `${Math.min(H(oe.maxSize, window.innerWidth), Math.max(H(oe.minSize, 0), Q))}px`;
47444
47444
  r($, { size: re }), a("resize", {
47445
47445
  side: $,
47446
47446
  size: re
@@ -47452,7 +47452,7 @@ var uE = {
47452
47452
  function g($, Q) {
47453
47453
  if (Q.button !== 0 || Q.isPrimary === !1 || !ue($)) return;
47454
47454
  ye.cancel();
47455
- const oe = Q.currentTarget, re = u.value[$].size, We = oe.parentElement?.getBoundingClientRect().width ?? P(re, 0), Le = ie($, oe), xe = (le) => he($, We + (le.clientX - Q.clientX) * Le);
47455
+ const oe = Q.currentTarget, re = u.value[$].size, We = oe.parentElement?.getBoundingClientRect().width ?? H(re, 0), Le = ie($, oe), xe = (le) => he($, We + (le.clientX - Q.clientX) * Le);
47456
47456
  me.value = !0, ye.start(Q, {
47457
47457
  cursor: "ew-resize",
47458
47458
  onMove: xe,
@@ -47475,10 +47475,10 @@ var uE = {
47475
47475
  "End"
47476
47476
  ].includes(Q.key)) return;
47477
47477
  Q.preventDefault(), ye.cancel();
47478
- const oe = Q.currentTarget, re = u.value[$], We = oe.parentElement?.getBoundingClientRect().width ?? P(re.size, 0), Le = (Q.shiftKey ? 50 : 10) * (Q.key === "ArrowLeft" ? -1 : 1);
47479
- he($, Q.key === "Home" ? P(re.minSize, 0) : Q.key === "End" ? P(re.maxSize, window.innerWidth) : We + Le * ie($, oe));
47478
+ const oe = Q.currentTarget, re = u.value[$], We = oe.parentElement?.getBoundingClientRect().width ?? H(re.size, 0), Le = (Q.shiftKey ? 50 : 10) * (Q.key === "ArrowLeft" ? -1 : 1);
47479
+ he($, Q.key === "Home" ? H(re.minSize, 0) : Q.key === "End" ? H(re.maxSize, window.innerWidth) : We + Le * ie($, oe));
47480
47480
  }
47481
- we(() => JSON.stringify(K.map(($) => [
47481
+ we(() => JSON.stringify(P.map(($) => [
47482
47482
  u.value[$].open,
47483
47483
  u.value[$].present,
47484
47484
  u.value[$].mode,
@@ -47535,7 +47535,7 @@ var uE = {
47535
47535
  class: "overlay",
47536
47536
  onClick: S
47537
47537
  })) : f("", !0),
47538
- R("div", { class: Ze(["region-box region-box--start", { "region-box--flow": H("start") }]) }, [Te($.$slots, "start", xt(It({
47538
+ R("div", { class: Ze(["region-box region-box--start", { "region-box--flow": K("start") }]) }, [Te($.$slots, "start", xt(It({
47539
47539
  ...B.value,
47540
47540
  region: u.value.start,
47541
47541
  setRegion: Y
@@ -47545,14 +47545,14 @@ var uE = {
47545
47545
  tabindex: "0",
47546
47546
  "aria-orientation": "vertical",
47547
47547
  "aria-label": "Resize start panel",
47548
- "aria-valuenow": P(u.value.start.size, 0),
47549
- "aria-valuemin": P(u.value.start.minSize, 0),
47550
- "aria-valuemax": u.value.start.maxSize ? P(u.value.start.maxSize, 0) : void 0,
47548
+ "aria-valuenow": H(u.value.start.size, 0),
47549
+ "aria-valuemin": H(u.value.start.minSize, 0),
47550
+ "aria-valuemax": u.value.start.maxSize ? H(u.value.start.maxSize, 0) : void 0,
47551
47551
  onKeydown: Q[0] || (Q[0] = (oe) => z("start", oe)),
47552
47552
  onPointerdown: Q[1] || (Q[1] = el((oe) => g("start", oe), ["prevent"]))
47553
47553
  }, [...Q[4] || (Q[4] = [R("div", { class: "region-resize-bar" }, null, -1)])], 40, ZE), [[mi, ue("start")]])], 2),
47554
47554
  R("main", rE, [Te($.$slots, "header", xt(It(B.value)), void 0, !0), R("div", bE, [Te($.$slots, "default", xt(It(B.value)), void 0, !0)])]),
47555
- R("div", { class: Ze(["region-box region-box--end", { "region-box--flow": H("end") }]) }, [Te($.$slots, "end", xt(It({
47555
+ R("div", { class: Ze(["region-box region-box--end", { "region-box--flow": K("end") }]) }, [Te($.$slots, "end", xt(It({
47556
47556
  ...B.value,
47557
47557
  region: u.value.end,
47558
47558
  setRegion: p
@@ -47562,9 +47562,9 @@ var uE = {
47562
47562
  tabindex: "0",
47563
47563
  "aria-orientation": "vertical",
47564
47564
  "aria-label": "Resize end panel",
47565
- "aria-valuenow": P(u.value.end.size, 0),
47566
- "aria-valuemin": P(u.value.end.minSize, 0),
47567
- "aria-valuemax": u.value.end.maxSize ? P(u.value.end.maxSize, 0) : void 0,
47565
+ "aria-valuenow": H(u.value.end.size, 0),
47566
+ "aria-valuemin": H(u.value.end.minSize, 0),
47567
+ "aria-valuemax": u.value.end.maxSize ? H(u.value.end.maxSize, 0) : void 0,
47568
47568
  onKeydown: Q[2] || (Q[2] = (oe) => z("end", oe)),
47569
47569
  onPointerdown: Q[3] || (Q[3] = el((oe) => g("end", oe), ["prevent"]))
47570
47570
  }, [...Q[5] || (Q[5] = [R("div", { class: "region-resize-bar" }, null, -1)])], 40, hE), [[mi, ue("end")]])], 2)
@@ -49976,26 +49976,26 @@ var yH = ["value"], XH = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
49976
49976
  function d() {
49977
49977
  t("update:modelValue", i.value.map((re) => pH({ ...re })));
49978
49978
  }
49979
- const { columns: c, fixedColumns: s, scrollableColumns: o, columnOptions: m, visibleColumns: u, columnWidths: Z, isCellEditable: b, createEmptyRow: h, handleResizeStart: r } = GH(i, () => e.columnConfig), { sortColumn: Y, sortDirection: p, sortByColumn: W } = YH(i, c, u, d), { selectionStart: G, selectionEnd: y, handleMouseDown: X, handleMouseOver: V, handleMouseUp: T, selectEntireRow: x } = NH(c), { canUndo: S, canRedo: w, saveState: v, undo: j, redo: U } = LH(i, G, y, d), { copySelection: H, pasteSelection: te } = WH(i, c, G, y, v, b, h, d), K = C(null), P = C(null), ue = C(/* @__PURE__ */ new Map());
49979
+ const { columns: c, fixedColumns: s, scrollableColumns: o, columnOptions: m, visibleColumns: u, columnWidths: Z, isCellEditable: b, createEmptyRow: h, handleResizeStart: r } = GH(i, () => e.columnConfig), { sortColumn: Y, sortDirection: p, sortByColumn: W } = YH(i, c, u, d), { selectionStart: G, selectionEnd: y, handleMouseDown: X, handleMouseOver: V, handleMouseUp: T, selectEntireRow: x } = NH(c), { canUndo: S, canRedo: w, saveState: v, undo: j, redo: U } = LH(i, G, y, d), { copySelection: K, pasteSelection: te } = WH(i, c, G, y, v, b, h, d), P = C(null), H = C(null), ue = C(/* @__PURE__ */ new Map());
49980
49980
  function ye(re, We) {
49981
49981
  re?.$el instanceof HTMLInputElement ? ue.value.set(We, re.$el) : re instanceof HTMLInputElement ? ue.value.set(We, re) : ue.value.delete(We);
49982
49982
  }
49983
49983
  function me(re, We, Le) {
49984
49984
  const xe = c.value[We]?.key;
49985
- xe && (Le !== void 0 && !b(xe) || (K.value = {
49985
+ xe && (Le !== void 0 && !b(xe) || (P.value = {
49986
49986
  row: re,
49987
49987
  col: We
49988
- }, P.value = i.value[re][xe]?.toString() ?? "", Le !== void 0 && g(re, xe, Le), ml(() => {
49988
+ }, H.value = i.value[re][xe]?.toString() ?? "", Le !== void 0 && g(re, xe, Le), ml(() => {
49989
49989
  const le = ue.value.get(`cell-${re}-${We}`);
49990
49990
  le && (le.focus(), Le !== void 0 && (le.value = Le));
49991
49991
  })));
49992
49992
  }
49993
49993
  function he(re = !1) {
49994
- if (re && K.value && P.value !== null) {
49995
- const { row: We, col: Le } = K.value, xe = c.value[Le]?.key;
49996
- xe && (i.value[We][xe] = P.value);
49994
+ if (re && P.value && H.value !== null) {
49995
+ const { row: We, col: Le } = P.value, xe = c.value[Le]?.key;
49996
+ xe && (i.value[We][xe] = H.value);
49997
49997
  }
49998
- K.value = null, P.value = null;
49998
+ P.value = null, H.value = null;
49999
49999
  }
50000
50000
  function ie(re = !1) {
50001
50001
  ml(() => {
@@ -50025,13 +50025,13 @@ var yH = ["value"], XH = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
50025
50025
  c.value.length && (v("row"), i.value.push(h()), d());
50026
50026
  }
50027
50027
  function Q(re, We, Le) {
50028
- !(K.value?.row === We && K.value?.col === Le) && (re.key.length === 1 && !re.ctrlKey && !re.metaKey || re.key === "Enter") && (re.preventDefault(), me(We, Le, re.key.length === 1 ? re.key : void 0));
50028
+ !(P.value?.row === We && P.value?.col === Le) && (re.key.length === 1 && !re.ctrlKey && !re.metaKey || re.key === "Enter") && (re.preventDefault(), me(We, Le, re.key.length === 1 ? re.key : void 0));
50029
50029
  }
50030
50030
  function oe(re) {
50031
- if (!(K.value || F()) && (re.ctrlKey || re.metaKey))
50031
+ if (!(P.value || F()) && (re.ctrlKey || re.metaKey))
50032
50032
  switch (re.key.toLowerCase()) {
50033
50033
  case "c":
50034
- re.preventDefault(), H();
50034
+ re.preventDefault(), K();
50035
50035
  break;
50036
50036
  case "v":
50037
50037
  re.preventDefault(), te();
@@ -50070,7 +50070,7 @@ var yH = ["value"], XH = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
50070
50070
  _(N(ja), {
50071
50071
  title: "Copy",
50072
50072
  icon: "copy",
50073
- onClick: N(H)
50073
+ onClick: N(K)
50074
50074
  }, null, 8, ["onClick"]),
50075
50075
  _(N(ja), {
50076
50076
  title: "Undo",
@@ -50136,7 +50136,7 @@ var yH = ["value"], XH = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
50136
50136
  "sort-direction": N(p),
50137
50137
  "selection-start": N(G),
50138
50138
  "selection-end": N(y),
50139
- "editing-cell": K.value,
50139
+ "editing-cell": P.value,
50140
50140
  "base-column-index": 0,
50141
50141
  "wrap-text": N(n),
50142
50142
  class: "sticky z-2 start-0 bg-white",
@@ -50176,7 +50176,7 @@ var yH = ["value"], XH = { class: "spreadsheet-cell spreadsheetCellPlaceHolder"
50176
50176
  "sort-direction": N(p),
50177
50177
  "selection-start": N(G),
50178
50178
  "selection-end": N(y),
50179
- "editing-cell": K.value,
50179
+ "editing-cell": P.value,
50180
50180
  "base-column-index": N(s).length,
50181
50181
  "wrap-text": N(n),
50182
50182
  onSortColumn: N(W),
@@ -50704,7 +50704,7 @@ function iP({ swiper: e, extendParams: l, on: t, emit: a }) {
50704
50704
  "-prev",
50705
50705
  "-prev-prev",
50706
50706
  "-main"
50707
- ].map((H) => `${W.bulletActiveClass}${H}`)].map((H) => typeof H == "string" && H.includes(" ") ? H.split(" ") : H).flat();
50707
+ ].map((K) => `${W.bulletActiveClass}${K}`)].map((K) => typeof K == "string" && K.includes(" ") ? K.split(" ") : K).flat();
50708
50708
  j.classList.remove(...U);
50709
50709
  }), G.length > 1) x.forEach((j) => {
50710
50710
  const U = Jo(j);
@@ -50712,18 +50712,18 @@ function iP({ swiper: e, extendParams: l, on: t, emit: a }) {
50712
50712
  });
50713
50713
  else {
50714
50714
  const j = x[y];
50715
- if (j && j.classList.add(...W.bulletActiveClass.split(" ")), e.isElement && x.forEach((U, H) => {
50716
- U.setAttribute("part", H === y ? "bullet-active" : "bullet");
50715
+ if (j && j.classList.add(...W.bulletActiveClass.split(" ")), e.isElement && x.forEach((U, K) => {
50716
+ U.setAttribute("part", K === y ? "bullet-active" : "bullet");
50717
50717
  }), W.dynamicBullets) {
50718
- const U = x[S], H = x[w];
50718
+ const U = x[S], K = x[w];
50719
50719
  for (let te = S; te <= w; te += 1) x[te] && x[te].classList.add(...`${W.bulletActiveClass}-main`.split(" "));
50720
- s(U, "prev"), s(H, "next");
50720
+ s(U, "prev"), s(K, "next");
50721
50721
  }
50722
50722
  }
50723
50723
  if (W.dynamicBullets) {
50724
- const j = Math.min(x.length, W.dynamicMainBullets + 4), U = (i * j - i) / 2 - v * i, H = p ? "right" : "left";
50724
+ const j = Math.min(x.length, W.dynamicMainBullets + 4), U = (i * j - i) / 2 - v * i, K = p ? "right" : "left";
50725
50725
  x.forEach((te) => {
50726
- te.style[e.isHorizontal() ? H : "top"] = `${U}px`;
50726
+ te.style[e.isHorizontal() ? K : "top"] = `${U}px`;
50727
50727
  });
50728
50728
  }
50729
50729
  }
@@ -50737,8 +50737,8 @@ function iP({ swiper: e, extendParams: l, on: t, emit: a }) {
50737
50737
  W.progressbarOpposite ? w = e.isHorizontal() ? "vertical" : "horizontal" : w = e.isHorizontal() ? "horizontal" : "vertical";
50738
50738
  const v = (y + 1) / T;
50739
50739
  let j = 1, U = 1;
50740
- w === "horizontal" ? j = v : U = v, x.querySelectorAll(Cd(W.progressbarFillClass)).forEach((H) => {
50741
- H.style.transform = `translate3d(0,0,0) scaleX(${j}) scaleY(${U})`, H.style.transitionDuration = `${e.params.speed}ms`;
50740
+ w === "horizontal" ? j = v : U = v, x.querySelectorAll(Cd(W.progressbarFillClass)).forEach((K) => {
50741
+ K.style.transform = `translate3d(0,0,0) scaleX(${j}) scaleY(${U})`, K.style.transitionDuration = `${e.params.speed}ms`;
50742
50742
  });
50743
50743
  }
50744
50744
  W.type === "custom" && W.renderCustom ? (fc(x, W.renderCustom(e, y + 1, T)), S === 0 && a("paginationRender", x)) : (S === 0 && a("paginationRender", x), a("paginationUpdate", x)), e.params.watchOverflow && e.enabled && x.classList[e.isLocked ? "add" : "remove"](W.lockClass);
@@ -50839,28 +50839,28 @@ function dP({ swiper: e, extendParams: l, on: t, emit: a, params: n }) {
50839
50839
  pauseOnMouseEnter: !1
50840
50840
  } });
50841
50841
  let i, d, c = n && n.autoplay ? n.autoplay.delay : 3e3, s = n && n.autoplay ? n.autoplay.delay : 3e3, o, m = (/* @__PURE__ */ new Date()).getTime(), u, Z, b, h, r, Y;
50842
- function p(P) {
50843
- !e || e.destroyed || !e.wrapperEl || P.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", p), !(Y || P.detail && P.detail.bySwiperTouchMove) && S());
50842
+ function p(H) {
50843
+ !e || e.destroyed || !e.wrapperEl || H.target === e.wrapperEl && (e.wrapperEl.removeEventListener("transitionend", p), !(Y || H.detail && H.detail.bySwiperTouchMove) && S());
50844
50844
  }
50845
50845
  const W = () => {
50846
50846
  if (e.destroyed || !e.autoplay.running) return;
50847
50847
  e.autoplay.paused ? u = !0 : u && (s = o, u = !1);
50848
- const P = e.autoplay.paused ? o : m + s - (/* @__PURE__ */ new Date()).getTime();
50849
- e.autoplay.timeLeft = P, a("autoplayTimeLeft", P, P / c), d = requestAnimationFrame(() => {
50848
+ const H = e.autoplay.paused ? o : m + s - (/* @__PURE__ */ new Date()).getTime();
50849
+ e.autoplay.timeLeft = H, a("autoplayTimeLeft", H, H / c), d = requestAnimationFrame(() => {
50850
50850
  W();
50851
50851
  });
50852
50852
  }, G = () => {
50853
- let P;
50854
- if (e.virtual && e.params.virtual.enabled ? P = e.slides.find((ue) => ue.classList.contains("swiper-slide-active")) : P = e.slides[e.activeIndex], !!P)
50855
- return parseInt(P.getAttribute("data-swiper-autoplay"), 10);
50853
+ let H;
50854
+ if (e.virtual && e.params.virtual.enabled ? H = e.slides.find((ue) => ue.classList.contains("swiper-slide-active")) : H = e.slides[e.activeIndex], !!H)
50855
+ return parseInt(H.getAttribute("data-swiper-autoplay"), 10);
50856
50856
  }, y = () => {
50857
- let P = e.params.autoplay.delay;
50857
+ let H = e.params.autoplay.delay;
50858
50858
  const ue = G();
50859
- return !Number.isNaN(ue) && ue > 0 && (P = ue), P;
50860
- }, X = (P) => {
50859
+ return !Number.isNaN(ue) && ue > 0 && (H = ue), H;
50860
+ }, X = (H) => {
50861
50861
  if (e.destroyed || !e.autoplay.running) return;
50862
50862
  cancelAnimationFrame(d), W();
50863
- let ue = P;
50863
+ let ue = H;
50864
50864
  typeof ue > "u" && (ue = y(), c = ue, s = ue), o = ue;
50865
50865
  const ye = e.params.speed, me = () => {
50866
50866
  !e || e.destroyed || (e.params.autoplay.reverseDirection ? !e.isBeginning || e.params.loop || e.params.rewind ? (e.slidePrev(ye, !0, !0), a("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(e.slides.length - 1, ye, !0, !0), a("autoplay")) : !e.isEnd || e.params.loop || e.params.rewind ? (e.slideNext(ye, !0, !0), a("autoplay")) : e.params.autoplay.stopOnLastSlide || (e.slideTo(0, ye, !0, !0), a("autoplay")), e.params.cssMode && (m = (/* @__PURE__ */ new Date()).getTime(), requestAnimationFrame(() => {
@@ -50876,9 +50876,9 @@ function dP({ swiper: e, extendParams: l, on: t, emit: a, params: n }) {
50876
50876
  m = (/* @__PURE__ */ new Date()).getTime(), e.autoplay.running = !0, X(), a("autoplayStart");
50877
50877
  }, T = () => {
50878
50878
  e.autoplay.running = !1, clearTimeout(i), cancelAnimationFrame(d), a("autoplayStop");
50879
- }, x = (P, ue) => {
50879
+ }, x = (H, ue) => {
50880
50880
  if (e.destroyed || !e.autoplay.running) return;
50881
- clearTimeout(i), P || (r = !0);
50881
+ clearTimeout(i), H || (r = !0);
50882
50882
  const ye = () => {
50883
50883
  a("autoplayPause"), e.params.autoplay.waitForTransition ? e.wrapperEl.addEventListener("transitionend", p) : S();
50884
50884
  };
@@ -50891,30 +50891,30 @@ function dP({ swiper: e, extendParams: l, on: t, emit: a, params: n }) {
50891
50891
  e.isEnd && o < 0 && !e.params.loop || e.destroyed || !e.autoplay.running || (m = (/* @__PURE__ */ new Date()).getTime(), r ? (r = !1, X(o)) : X(), e.autoplay.paused = !1, a("autoplayResume"));
50892
50892
  }, w = () => {
50893
50893
  if (e.destroyed || !e.autoplay.running) return;
50894
- const P = Ua();
50895
- P.visibilityState === "hidden" && (r = !0, x(!0)), P.visibilityState === "visible" && S();
50896
- }, v = (P) => {
50897
- P.pointerType === "mouse" && (r = !0, Y = !0, !(e.animating || e.autoplay.paused) && x(!0));
50898
- }, j = (P) => {
50899
- P.pointerType === "mouse" && (Y = !1, e.autoplay.paused && S());
50894
+ const H = Ua();
50895
+ H.visibilityState === "hidden" && (r = !0, x(!0)), H.visibilityState === "visible" && S();
50896
+ }, v = (H) => {
50897
+ H.pointerType === "mouse" && (r = !0, Y = !0, !(e.animating || e.autoplay.paused) && x(!0));
50898
+ }, j = (H) => {
50899
+ H.pointerType === "mouse" && (Y = !1, e.autoplay.paused && S());
50900
50900
  }, U = () => {
50901
50901
  e.params.autoplay.pauseOnMouseEnter && (e.el.addEventListener("pointerenter", v), e.el.addEventListener("pointerleave", j));
50902
- }, H = () => {
50902
+ }, K = () => {
50903
50903
  e.el && typeof e.el != "string" && (e.el.removeEventListener("pointerenter", v), e.el.removeEventListener("pointerleave", j));
50904
50904
  }, te = () => {
50905
50905
  Ua().addEventListener("visibilitychange", w);
50906
- }, K = () => {
50906
+ }, P = () => {
50907
50907
  Ua().removeEventListener("visibilitychange", w);
50908
50908
  };
50909
50909
  t("init", () => {
50910
50910
  e.params.autoplay.enabled && (U(), te(), V());
50911
50911
  }), t("destroy", () => {
50912
- H(), K(), e.autoplay.running && T();
50912
+ K(), P(), e.autoplay.running && T();
50913
50913
  }), t("_freeModeStaticRelease", () => {
50914
50914
  (b || r) && S();
50915
50915
  }), t("_freeModeNoMomentumRelease", () => {
50916
50916
  e.params.autoplay.disableOnInteraction ? T() : x(!0, !0);
50917
- }), t("beforeTransitionStart", (P, ue, ye) => {
50917
+ }), t("beforeTransitionStart", (H, ue, ye) => {
50918
50918
  e.destroyed || !e.autoplay.running || (ye || !e.params.autoplay.disableOnInteraction ? x(!0, !0) : T());
50919
50919
  }), t("sliderFirstMove", () => {
50920
50920
  if (!(e.destroyed || !e.autoplay.running)) {
@@ -51056,9 +51056,9 @@ function sP({ swiper: e, extendParams: l, on: t }) {
51056
51056
  let S = x * 90, w = Math.floor(S / 360);
51057
51057
  Z && (S = -S, w = Math.floor(-S / 360));
51058
51058
  const v = Math.max(Math.min(T.progress, 1), -1);
51059
- let j = 0, U = 0, H = 0;
51060
- x % 4 === 0 ? (j = -w * 4 * b, H = 0) : (x - 1) % 4 === 0 ? (j = 0, H = -w * 4 * b) : (x - 2) % 4 === 0 ? (j = b + w * 4 * b, H = b) : (x - 3) % 4 === 0 && (j = -b, H = 3 * b + b * 4 * w), Z && (j = -j), p || (U = j, j = 0);
51061
- const te = `rotateX(${r(p ? 0 : -S)}deg) rotateY(${r(p ? S : 0)}deg) translate3d(${j}px, ${U}px, ${H}px)`;
51059
+ let j = 0, U = 0, K = 0;
51060
+ x % 4 === 0 ? (j = -w * 4 * b, K = 0) : (x - 1) % 4 === 0 ? (j = 0, K = -w * 4 * b) : (x - 2) % 4 === 0 ? (j = b + w * 4 * b, K = b) : (x - 3) % 4 === 0 && (j = -b, K = 3 * b + b * 4 * w), Z && (j = -j), p || (U = j, j = 0);
51061
+ const te = `rotateX(${r(p ? 0 : -S)}deg) rotateY(${r(p ? S : 0)}deg) translate3d(${j}px, ${U}px, ${K}px)`;
51062
51062
  v <= 1 && v > -1 && (G = x * 90 + v * 90, Z && (G = -x * 90 - v * 90)), T.style.transform = te, Y.slideShadows && a(T, v, p);
51063
51063
  }
51064
51064
  if (s.style.transformOrigin = `50% 50% -${b / 2}px`, s.style["-webkit-transform-origin"] = `50% 50% -${b / 2}px`, Y.shadow) if (p) y.style.transform = `translate3d(0px, ${m / 2 + Y.shadowOffset}px, ${-m / 2}px) rotateX(89.99deg) rotateZ(0deg) scale(${Y.shadowScale})`;
@@ -51179,10 +51179,10 @@ function mP({ swiper: e, extendParams: l, on: t }) {
51179
51179
  typeof S == "string" && S.indexOf("%") !== -1 && (S = parseFloat(o.stretch) / 100 * G);
51180
51180
  let w = m ? 0 : S * X, v = m ? S * X : 0, j = 1 - (1 - o.scale) * Math.abs(X);
51181
51181
  Math.abs(v) < 1e-3 && (v = 0), Math.abs(w) < 1e-3 && (w = 0), Math.abs(x) < 1e-3 && (x = 0), Math.abs(V) < 1e-3 && (V = 0), Math.abs(T) < 1e-3 && (T = 0), Math.abs(j) < 1e-3 && (j = 0);
51182
- const U = `translate3d(${v}px,${w}px,${x}px) rotateX(${r(T)}deg) rotateY(${r(V)}deg) scale(${j})`, H = Ym(o, W);
51183
- if (H.style.transform = U, W.style.zIndex = -Math.abs(Math.round(X)) + 1, o.slideShadows) {
51184
- let te = m ? W.querySelector(".swiper-slide-shadow-left") : W.querySelector(".swiper-slide-shadow-top"), K = m ? W.querySelector(".swiper-slide-shadow-right") : W.querySelector(".swiper-slide-shadow-bottom");
51185
- te || (te = Fc("coverflow", W, m ? "left" : "top")), K || (K = Fc("coverflow", W, m ? "right" : "bottom")), te && (te.style.opacity = X > 0 ? X : 0), K && (K.style.opacity = -X > 0 ? -X : 0);
51182
+ const U = `translate3d(${v}px,${w}px,${x}px) rotateX(${r(T)}deg) rotateY(${r(V)}deg) scale(${j})`, K = Ym(o, W);
51183
+ if (K.style.transform = U, W.style.zIndex = -Math.abs(Math.round(X)) + 1, o.slideShadows) {
51184
+ let te = m ? W.querySelector(".swiper-slide-shadow-left") : W.querySelector(".swiper-slide-shadow-top"), P = m ? W.querySelector(".swiper-slide-shadow-right") : W.querySelector(".swiper-slide-shadow-bottom");
51185
+ te || (te = Fc("coverflow", W, m ? "left" : "top")), P || (P = Fc("coverflow", W, m ? "right" : "bottom")), te && (te.style.opacity = X > 0 ? X : 0), P && (P.style.opacity = -X > 0 ? -X : 0);
51186
51186
  }
51187
51187
  }
51188
51188
  },
@@ -51486,17 +51486,17 @@ function NP() {
51486
51486
  t.virtual.slidesPerViewAutoSlideSize && (x = t.virtual.slidesPerViewAutoSlideSize), x && v && (t.roundLengths && (x = Math.floor(x)), v.style[e.getDirectionLabel("width")] = `${x}px`);
51487
51487
  else if (t.slidesPerView === "auto") {
51488
51488
  S && (v.style[e.getDirectionLabel("width")] = "");
51489
- const j = getComputedStyle(v), U = v.style.transform, H = v.style.webkitTransform;
51490
- if (U && (v.style.transform = "none"), H && (v.style.webkitTransform = "none"), t.roundLengths) x = e.isHorizontal() ? J2(v, "width", !0) : J2(v, "height", !0);
51489
+ const j = getComputedStyle(v), U = v.style.transform, K = v.style.webkitTransform;
51490
+ if (U && (v.style.transform = "none"), K && (v.style.webkitTransform = "none"), t.roundLengths) x = e.isHorizontal() ? J2(v, "width", !0) : J2(v, "height", !0);
51491
51491
  else {
51492
- const te = l(j, "width"), K = l(j, "padding-left"), P = l(j, "padding-right"), ue = l(j, "margin-left"), ye = l(j, "margin-right"), me = j.getPropertyValue("box-sizing");
51492
+ const te = l(j, "width"), P = l(j, "padding-left"), H = l(j, "padding-right"), ue = l(j, "margin-left"), ye = l(j, "margin-right"), me = j.getPropertyValue("box-sizing");
51493
51493
  if (me && me === "border-box") x = te + ue + ye;
51494
51494
  else {
51495
51495
  const { clientWidth: he, offsetWidth: ie } = v;
51496
- x = te + K + P + ue + ye + (ie - he);
51496
+ x = te + P + H + ue + ye + (ie - he);
51497
51497
  }
51498
51498
  }
51499
- U && (v.style.transform = U), H && (v.style.webkitTransform = H), t.roundLengths && (x = Math.floor(x));
51499
+ U && (v.style.transform = U), K && (v.style.webkitTransform = K), t.roundLengths && (x = Math.floor(x));
51500
51500
  } else
51501
51501
  x = (W - (t.slidesPerView - 1) * G) / t.slidesPerView, t.roundLengths && (x = Math.floor(x)), v && (v.style[e.getDirectionLabel("width")] = `${x}px`);
51502
51502
  v && (v.swiperSlideSize = x), b.push(x), t.centeredSlides ? (y = y + x / 2 + X / 2 + G, X === 0 && w !== 0 && (y = y - W / 2 - G), w === 0 && (y = y - W / 2 - G), Math.abs(y) < 1 / 1e3 && (y = 0), t.roundLengths && (y = Math.floor(y)), V % t.slidesPerGroup === 0 && u.push(y), Z.push(y)) : (t.roundLengths && (y = Math.floor(y)), (V - Math.min(e.params.slidesPerGroupSkip, V)) % e.params.slidesPerGroup === 0 && u.push(y), Z.push(y), y = y + x + G), e.virtualSize += x + G, X = x, V += 1;
@@ -51506,19 +51506,19 @@ function NP() {
51506
51506
  const w = t.slidesPerView !== "auto" && t.slidesPerView % 1 !== 0, v = t.snapToSlideEdge && !t.loop && (t.slidesPerView === "auto" || w);
51507
51507
  let j = u.length;
51508
51508
  if (v) {
51509
- let H;
51509
+ let K;
51510
51510
  if (t.slidesPerView === "auto") {
51511
- H = 1;
51511
+ K = 1;
51512
51512
  let te = 0;
51513
- for (let K = b.length - 1; K >= 0 && (te += b[K] + (K < b.length - 1 ? G : 0), te <= W); K -= 1)
51514
- H = b.length - K;
51515
- } else H = Math.floor(t.slidesPerView);
51516
- j = Math.max(m - H, 0);
51513
+ for (let P = b.length - 1; P >= 0 && (te += b[P] + (P < b.length - 1 ? G : 0), te <= W); P -= 1)
51514
+ K = b.length - P;
51515
+ } else K = Math.floor(t.slidesPerView);
51516
+ j = Math.max(m - K, 0);
51517
51517
  }
51518
51518
  const U = [];
51519
- for (let H = 0; H < u.length; H += 1) {
51520
- let te = u[H];
51521
- t.roundLengths && (te = Math.floor(te)), v ? H <= j && U.push(te) : u[H] <= e.virtualSize - W && U.push(te);
51519
+ for (let K = 0; K < u.length; K += 1) {
51520
+ let te = u[K];
51521
+ t.roundLengths && (te = Math.floor(te)), v ? K <= j && U.push(te) : u[K] <= e.virtualSize - W && U.push(te);
51522
51522
  }
51523
51523
  u = U, Math.floor(e.virtualSize - W) - Math.floor(u[u.length - 1]) > 1 && (v || u.push(e.virtualSize - W));
51524
51524
  }
@@ -52079,23 +52079,23 @@ function BP({ slideRealIndex: e, slideTo: l = !0, direction: t, setTranslate: a,
52079
52079
  o.length < G + X || s.params.effect === "cards" && o.length < G + X * 2 ? jo("Swiper Loop Warning: The number of slides is not enough for loop mode, it will be disabled or not function properly. You need to add more slides (or make duplicates) or lower the values of slidesPerView and slidesPerGroup parameters") : V && b.grid.fill === "row" && jo("Swiper Loop Warning: Loop mode is not compatible with grid.fill = `row`");
52080
52080
  const T = [], x = [], S = V ? Math.ceil(o.length / b.grid.rows) : o.length, w = i && S - p < G && !W;
52081
52081
  let v = w ? p : s.activeIndex;
52082
- typeof n > "u" ? n = s.getSlideIndex(o.find((P) => P.classList.contains(b.slideActiveClass))) : v = n;
52082
+ typeof n > "u" ? n = s.getSlideIndex(o.find((H) => H.classList.contains(b.slideActiveClass))) : v = n;
52083
52083
  const j = t === "next" || !t, U = t === "prev" || !t;
52084
- let H = 0, te = 0;
52085
- const K = (V ? o[n].column : n) + (W && typeof a > "u" ? -G / 2 + 0.5 : 0);
52086
- if (K < X) {
52087
- H = Math.max(X - K, y);
52088
- for (let P = 0; P < X - K; P += 1) {
52089
- const ue = P - Math.floor(P / S) * S;
52084
+ let K = 0, te = 0;
52085
+ const P = (V ? o[n].column : n) + (W && typeof a > "u" ? -G / 2 + 0.5 : 0);
52086
+ if (P < X) {
52087
+ K = Math.max(X - P, y);
52088
+ for (let H = 0; H < X - P; H += 1) {
52089
+ const ue = H - Math.floor(H / S) * S;
52090
52090
  if (V) {
52091
52091
  const ye = S - ue - 1;
52092
52092
  for (let me = o.length - 1; me >= 0; me -= 1) o[me].column === ye && T.push(me);
52093
52093
  } else T.push(S - ue - 1);
52094
52094
  }
52095
- } else if (K + G > S - X) {
52096
- te = Math.max(K - (S - X * 2), y), w && (te = Math.max(te, G - S + p + 1));
52097
- for (let P = 0; P < te; P += 1) {
52098
- const ue = P - Math.floor(P / S) * S;
52095
+ } else if (P + G > S - X) {
52096
+ te = Math.max(P - (S - X * 2), y), w && (te = Math.max(te, G - S + p + 1));
52097
+ for (let H = 0; H < te; H += 1) {
52098
+ const ue = H - Math.floor(H / S) * S;
52099
52099
  V ? o.forEach((ye, me) => {
52100
52100
  ye.column === ue && x.push(me);
52101
52101
  }) : x.push(ue);
@@ -52103,31 +52103,31 @@ function BP({ slideRealIndex: e, slideTo: l = !0, direction: t, setTranslate: a,
52103
52103
  }
52104
52104
  if (s.__preventObserver__ = !0, requestAnimationFrame(() => {
52105
52105
  s.__preventObserver__ = !1;
52106
- }), s.params.effect === "cards" && o.length < G + X * 2 && (x.includes(n) && x.splice(x.indexOf(n), 1), T.includes(n) && T.splice(T.indexOf(n), 1)), U && T.forEach((P) => {
52107
- o[P].swiperLoopMoveDOM = !0, Z.prepend(o[P]), o[P].swiperLoopMoveDOM = !1;
52108
- }), j && x.forEach((P) => {
52109
- o[P].swiperLoopMoveDOM = !0, Z.append(o[P]), o[P].swiperLoopMoveDOM = !1;
52110
- }), s.recalcSlides(), b.slidesPerView === "auto" ? s.updateSlides() : V && (T.length > 0 && U || x.length > 0 && j) && s.slides.forEach((P, ue) => {
52111
- s.grid.updateSlide(ue, P, s.slides);
52106
+ }), s.params.effect === "cards" && o.length < G + X * 2 && (x.includes(n) && x.splice(x.indexOf(n), 1), T.includes(n) && T.splice(T.indexOf(n), 1)), U && T.forEach((H) => {
52107
+ o[H].swiperLoopMoveDOM = !0, Z.prepend(o[H]), o[H].swiperLoopMoveDOM = !1;
52108
+ }), j && x.forEach((H) => {
52109
+ o[H].swiperLoopMoveDOM = !0, Z.append(o[H]), o[H].swiperLoopMoveDOM = !1;
52110
+ }), s.recalcSlides(), b.slidesPerView === "auto" ? s.updateSlides() : V && (T.length > 0 && U || x.length > 0 && j) && s.slides.forEach((H, ue) => {
52111
+ s.grid.updateSlide(ue, H, s.slides);
52112
52112
  }), b.watchSlidesProgress && s.updateSlidesOffset(), l) {
52113
52113
  if (T.length > 0 && U) {
52114
52114
  if (typeof e > "u") {
52115
- const P = s.slidesGrid[v], ue = s.slidesGrid[v + H] - P;
52116
- c ? s.setTranslate(s.translate - ue) : (s.slideTo(v + Math.ceil(H), 0, !1, !0), a && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - ue, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - ue));
52115
+ const H = s.slidesGrid[v], ue = s.slidesGrid[v + K] - H;
52116
+ c ? s.setTranslate(s.translate - ue) : (s.slideTo(v + Math.ceil(K), 0, !1, !0), a && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - ue, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - ue));
52117
52117
  } else if (a) {
52118
- const P = V ? T.length / b.grid.rows : T.length;
52119
- s.slideTo(s.activeIndex + P, 0, !1, !0), s.touchEventsData.currentTranslate = s.translate;
52118
+ const H = V ? T.length / b.grid.rows : T.length;
52119
+ s.slideTo(s.activeIndex + H, 0, !1, !0), s.touchEventsData.currentTranslate = s.translate;
52120
52120
  }
52121
52121
  } else if (x.length > 0 && j) if (typeof e > "u") {
52122
- const P = s.slidesGrid[v], ue = s.slidesGrid[v - te] - P;
52122
+ const H = s.slidesGrid[v], ue = s.slidesGrid[v - te] - H;
52123
52123
  c ? s.setTranslate(s.translate - ue) : (s.slideTo(v - te, 0, !1, !0), a && (s.touchEventsData.startTranslate = s.touchEventsData.startTranslate - ue, s.touchEventsData.currentTranslate = s.touchEventsData.currentTranslate - ue));
52124
52124
  } else {
52125
- const P = V ? x.length / b.grid.rows : x.length;
52126
- s.slideTo(s.activeIndex - P, 0, !1, !0);
52125
+ const H = V ? x.length / b.grid.rows : x.length;
52126
+ s.slideTo(s.activeIndex - H, 0, !1, !0);
52127
52127
  }
52128
52128
  }
52129
52129
  if (s.allowSlidePrev = m, s.allowSlideNext = u, s.controller && s.controller.control && !d) {
52130
- const P = {
52130
+ const H = {
52131
52131
  slideRealIndex: e,
52132
52132
  direction: t,
52133
52133
  setTranslate: a,
@@ -52136,11 +52136,11 @@ function BP({ slideRealIndex: e, slideTo: l = !0, direction: t, setTranslate: a,
52136
52136
  };
52137
52137
  Array.isArray(s.controller.control) ? s.controller.control.forEach((ue) => {
52138
52138
  !ue.destroyed && ue.params.loop && ue.loopFix({
52139
- ...P,
52139
+ ...H,
52140
52140
  slideTo: ue.params.slidesPerView === b.slidesPerView ? l : !1
52141
52141
  });
52142
52142
  }) : s.controller.control instanceof s.constructor && s.controller.control.params.loop && s.controller.control.loopFix({
52143
- ...P,
52143
+ ...H,
52144
52144
  slideTo: s.controller.control.params.slidesPerView === b.slidesPerView ? l : !1
52145
52145
  });
52146
52146
  }
@@ -54032,7 +54032,7 @@ var IB = {
54032
54032
  const w = {};
54033
54033
  return a.slideWidth !== void 0 && (w.width = typeof a.slideWidth == "number" ? `${a.slideWidth}px` : a.slideWidth), w;
54034
54034
  }), b = I(() => i[a.variant]), h = I(() => a.slidesPerView !== void 0 ? a.slidesPerView : b.value.slidesPerView !== void 0 ? b.value.slidesPerView : a.slideWidth !== void 0 ? "auto" : 1), r = I(() => {
54035
- const w = (te, K, P) => te !== void 0 ? te : b.value[K] !== void 0 ? b.value[K] : P, v = {
54035
+ const w = (te, P, H) => te !== void 0 ? te : b.value[P] !== void 0 ? b.value[P] : H, v = {
54036
54036
  modules: [
54037
54037
  nP,
54038
54038
  iP,
@@ -54067,8 +54067,8 @@ var IB = {
54067
54067
  ...b.value.coverflowEffect,
54068
54068
  ...a.coverflowEffect
54069
54069
  });
54070
- const H = w(a.breakpoints, "breakpoints", void 0);
54071
- return H && (v.breakpoints = H), a.advancedOptions ? {
54070
+ const K = w(a.breakpoints, "breakpoints", void 0);
54071
+ return K && (v.breakpoints = K), a.advancedOptions ? {
54072
54072
  ...v,
54073
54073
  ...a.advancedOptions
54074
54074
  } : v;
@@ -54124,10 +54124,10 @@ var IB = {
54124
54124
  }
54125
54125
  function x(w) {
54126
54126
  if (!u || u.id !== w.pointerId) return;
54127
- const { index: v, startX: j, startY: U } = u, H = u.dragged || Math.hypot(w.clientX - j, w.clientY - U) > 6;
54127
+ const { index: v, startX: j, startY: U } = u, K = u.dragged || Math.hypot(w.clientX - j, w.clientY - U) > 6;
54128
54128
  u = null;
54129
54129
  const te = a.items?.[v];
54130
- !H && te !== void 0 && n("item-activate", {
54130
+ !K && te !== void 0 && n("item-activate", {
54131
54131
  item: te,
54132
54132
  index: v,
54133
54133
  event: w
@@ -54320,7 +54320,7 @@ var D$ = /* @__PURE__ */ Ke(RB, [["render", vB]]), fB = class {
54320
54320
  set: (ee) => {
54321
54321
  b.value = ee, a("update:zoom", b.value);
54322
54322
  }
54323
- }), r = C(1), Y = C(0), p = C(0), W = C("y"), G = C(!1), y = C(-1), X = C(-1), V = C(0), T = C(!0), x = C(), S = C(), w = C(0), v = C(0), j = C(0), U = C(), H = I(() => ({
54323
+ }), r = C(1), Y = C(0), p = C(0), W = C("y"), G = C(!1), y = C(-1), X = C(-1), V = C(0), T = C(!0), x = C(), S = C(), w = C(0), v = C(0), j = C(0), U = C(), K = I(() => ({
54324
54324
  transform: [`translate(${i.value * m.value}px, ${d.value * Z.value}px)`, `scale(${r.value})`].join(" "),
54325
54325
  transformOrigin: "50% 50%"
54326
54326
  }));
@@ -54332,7 +54332,7 @@ var D$ = /* @__PURE__ */ Ke(RB, [["render", vB]]), fB = class {
54332
54332
  h.value = 1, T.value = !0, o.value = 0, u.value = 0;
54333
54333
  }
54334
54334
  l({ reset: te });
54335
- function K(ee) {
54335
+ function P(ee) {
54336
54336
  if (e.disabled) return;
54337
54337
  let ae = h.value * ee;
54338
54338
  if (e.zoomingElastic) {
@@ -54346,7 +54346,7 @@ var D$ = /* @__PURE__ */ Ke(RB, [["render", vB]]), fB = class {
54346
54346
  o.value = (0.5 + o.value - k) * ee + k - 0.5, u.value = (0.5 + u.value - E) * ee + E - 0.5;
54347
54347
  }
54348
54348
  }
54349
- function P() {
54349
+ function H() {
54350
54350
  y.value = c.value + i.value / 2, X.value = s.value + d.value / 2;
54351
54351
  }
54352
54352
  function ue(ee, ae) {
@@ -54373,7 +54373,7 @@ var D$ = /* @__PURE__ */ Ke(RB, [["render", vB]]), fB = class {
54373
54373
  he(), T.value = h.value === 1, !T.value && (Math.abs(w.value) > 0.1 || Math.abs(v.value) > 0.1) ? (U.value && cancelAnimationFrame(U.value), ye()) : (w.value = 0, v.value = 0);
54374
54374
  }, 50);
54375
54375
  function he() {
54376
- if (h.value < e.minScale ? h.value = e.minScale : h.value > e.maxScale && K(e.maxScale / h.value), e.limitTranslation) {
54376
+ if (h.value < e.minScale ? h.value = e.minScale : h.value > e.maxScale && P(e.maxScale / h.value), e.limitTranslation) {
54377
54377
  const ee = ie();
54378
54378
  Math.abs(o.value) > ee.x && (o.value *= ee.x / Math.abs(o.value)), Math.abs(u.value) > ee.y && (u.value *= ee.y / Math.abs(u.value));
54379
54379
  }
@@ -54392,7 +54392,7 @@ var D$ = /* @__PURE__ */ Ke(RB, [["render", vB]]), fB = class {
54392
54392
  Math.abs(ee.deltaY) === 120 ? ae - Y.value > 50 && (z(ee.deltaY), Y.value = ae) : (ae - p.value > 50 && (W.value = ee.deltaX > ee.deltaY ? "x" : "y", W.value === "y" && z(ee.deltaY)), p.value = ae);
54393
54393
  }
54394
54394
  function z(ee) {
54395
- K(1.15 ** (ee / 120)), me();
54395
+ P(1.15 ** (ee / 120)), me();
54396
54396
  }
54397
54397
  function J(ee) {
54398
54398
  re(), G.value = !0, y.value = ee.clientX, X.value = ee.clientY, j.value = Date.now(), w.value = 0, v.value = 0, U.value && (cancelAnimationFrame(U.value), U.value = void 0), document.addEventListener("mousemove", B), document.addEventListener("mouseup", F);
@@ -54422,7 +54422,7 @@ var D$ = /* @__PURE__ */ Ke(RB, [["render", vB]]), fB = class {
54422
54422
  else if (ee.touches.length === 2) {
54423
54423
  ee.stopPropagation();
54424
54424
  const ae = ee.touches[0].clientX - ee.touches[1].clientX, k = ee.touches[0].clientY - ee.touches[1].clientY, E = Math.sqrt(ae * ae + k * k);
54425
- K(E / V.value), V.value = E;
54425
+ P(E / V.value), V.value = E;
54426
54426
  }
54427
54427
  }
54428
54428
  function re() {
@@ -54446,12 +54446,12 @@ var D$ = /* @__PURE__ */ Ke(RB, [["render", vB]]), fB = class {
54446
54446
  function xe(ee) {
54447
54447
  ee.clientX > 0 && (y.value = ee.clientX, X.value = ee.clientY);
54448
54448
  const ae = Math.min(2.5, e.maxScale / 2 + 0.5), k = e.maxScale;
54449
- h.value === 1 ? K(ae) : h.value < k - 0.1 ? K(k / h.value) : te();
54449
+ h.value === 1 ? P(ae) : h.value < k - 0.1 ? P(k / h.value) : te();
54450
54450
  }
54451
54451
  function le() {
54452
54452
  if (n.value) {
54453
54453
  const ee = window.getComputedStyle(n.value);
54454
- i.value = Number.parseFloat(ee.width), d.value = Number.parseFloat(ee.height), P(), he();
54454
+ i.value = Number.parseFloat(ee.width), d.value = Number.parseFloat(ee.height), H(), he();
54455
54455
  }
54456
54456
  }
54457
54457
  return (ee, ae) => (L(), M("div", {
@@ -54462,13 +54462,13 @@ var D$ = /* @__PURE__ */ Ke(RB, [["render", vB]]), fB = class {
54462
54462
  onMousewheel: g,
54463
54463
  "on:DOMMouseScroll": g,
54464
54464
  onMousedown: J,
54465
- onMouseout: P,
54466
- onFocusout: P,
54465
+ onMouseout: H,
54466
+ onFocusout: H,
54467
54467
  onTouchstart: $,
54468
54468
  onTouchmove: oe
54469
54469
  }, [R("div", {
54470
54470
  class: "zoomer",
54471
- style: Ie(H.value)
54471
+ style: Ie(K.value)
54472
54472
  }, [Te(ee.$slots, "default", {}, void 0, !0)], 4)], 36));
54473
54473
  }
54474
54474
  }), jB = /* @__PURE__ */ Ke(FB, [["__scopeId", "data-v-ad08a6a1"]]);
@@ -57321,7 +57321,7 @@ var $8 = /* @__PURE__ */ Re({
57321
57321
  function U(g) {
57322
57322
  return d(b.value, g);
57323
57323
  }
57324
- function H(g, z) {
57324
+ function K(g, z) {
57325
57325
  return z._config.label != null ? z._config.label : g.split(/[._-]/).map((J) => J.charAt(0).toUpperCase() + J.slice(1)).join(" ");
57326
57326
  }
57327
57327
  function te(g) {
@@ -57356,7 +57356,7 @@ var $8 = /* @__PURE__ */ Re({
57356
57356
  range: FZ
57357
57357
  }[z] ?? Gl);
57358
57358
  }
57359
- const K = I(() => {
57359
+ const P = I(() => {
57360
57360
  const g = {
57361
57361
  ...h.value,
57362
57362
  ...a.errors || {}
@@ -57364,14 +57364,14 @@ var $8 = /* @__PURE__ */ Re({
57364
57364
  for (const [J, F] of Object.entries(g)) z[J] = _e(F) ?? F;
57365
57365
  return z;
57366
57366
  });
57367
- function P(g, z) {
57368
- const J = H(z, g), { helpText: F, ...B } = g._config, $ = a.schema._class?.split(/\s+/).includes("free-grid") ?? !1, Q = {
57367
+ function H(g, z) {
57368
+ const J = K(z, g), { helpText: F, ...B } = g._config, $ = a.schema._class?.split(/\s+/).includes("free-grid") ?? !1, Q = {
57369
57369
  label: J,
57370
57370
  modelValue: U(z),
57371
57371
  "onUpdate:modelValue": (oe) => {
57372
57372
  w(z, oe, g);
57373
57373
  },
57374
- error: K.value[z],
57374
+ error: P.value[z],
57375
57375
  ...B,
57376
57376
  formData: b.value,
57377
57377
  ...F != null ? { helptext: F } : {},
@@ -57393,7 +57393,7 @@ var $8 = /* @__PURE__ */ Re({
57393
57393
  function ue(g, z) {
57394
57394
  return {
57395
57395
  ...g._component?.props ?? {},
57396
- ...P(g, z)
57396
+ ...H(g, z)
57397
57397
  };
57398
57398
  }
57399
57399
  function ye(g) {
@@ -57494,7 +57494,7 @@ var $8 = /* @__PURE__ */ Re({
57494
57494
  }, () => [B._type === "array" && B._config.schema?._isSchema ? (L(), ce(Fd, bl({
57495
57495
  key: 0,
57496
57496
  ref_for: !0
57497
- }, P(B, F), { "create-item": () => u(B) }), {
57497
+ }, H(B, F), { "create-item": () => u(B) }), {
57498
57498
  default: fe(({ item: $ }) => [_(J, {
57499
57499
  "model-value": $.value,
57500
57500
  schema: B._config.schema,
@@ -57512,7 +57512,7 @@ var $8 = /* @__PURE__ */ Re({
57512
57512
  }, 1040, ["create-item"])) : B._type === "array" && typeof B._config.schema == "string" ? (L(), ce(Fd, bl({
57513
57513
  key: 1,
57514
57514
  ref_for: !0
57515
- }, P(B, F), { "create-item": () => "" }), {
57515
+ }, H(B, F), { "create-item": () => "" }), {
57516
57516
  default: fe(({ item: $ }) => [(L(), ce(Pl(te(B._config.schema)), {
57517
57517
  "model-value": $.value,
57518
57518
  "onUpdate:modelValue": (Q) => {
@@ -57523,7 +57523,7 @@ var $8 = /* @__PURE__ */ Re({
57523
57523
  }, 1040)) : B._type === "array" && B._config.schema ? (L(), ce(Fd, bl({
57524
57524
  key: 2,
57525
57525
  ref_for: !0
57526
- }, P(B, F), { "create-item": () => u(B) }), {
57526
+ }, H(B, F), { "create-item": () => u(B) }), {
57527
57527
  default: fe(({ item: $ }) => [(L(), ce(Pl(ye(B._config.schema)), {
57528
57528
  modelValue: $.value,
57529
57529
  "onUpdate:modelValue": (Q) => $.value = Q
@@ -57532,7 +57532,7 @@ var $8 = /* @__PURE__ */ Re({
57532
57532
  }, 1040, ["create-item"])) : B._type === "array" && B._config.itemType ? (L(), ce(Fd, bl({
57533
57533
  key: 3,
57534
57534
  ref_for: !0
57535
- }, P(B, F), { "create-item": () => "" }), {
57535
+ }, H(B, F), { "create-item": () => "" }), {
57536
57536
  default: fe(({ item: $ }) => [(L(), ce(Pl(te(B._config.itemType)), {
57537
57537
  "model-value": $.value,
57538
57538
  "onUpdate:modelValue": (Q) => {
@@ -57546,10 +57546,10 @@ var $8 = /* @__PURE__ */ Re({
57546
57546
  }, ue(B, F)), null, 16)) : (L(), ce(Pl(te(B)), bl({
57547
57547
  key: 5,
57548
57548
  ref_for: !0
57549
- }, P(B, F)), null, 16))])], 6))), 128)),
57549
+ }, H(B, F)), null, 16))])], 6))), 128)),
57550
57550
  Te(g.$slots, "errors", {
57551
- errors: K.value,
57552
- errorCount: Object.keys(K.value).filter((F) => K.value[F]).length,
57551
+ errors: P.value,
57552
+ errorCount: Object.keys(P.value).filter((F) => P.value[F]).length,
57553
57553
  visibleFields: x.value
57554
57554
  }),
57555
57555
  Y.value === "error" ? Te(g.$slots, "error", { formData: b.value }, void 0, void 0, 0) : f("", !0),
@@ -57557,7 +57557,7 @@ var $8 = /* @__PURE__ */ Re({
57557
57557
  submit: ie,
57558
57558
  validate: he,
57559
57559
  formData: b.value,
57560
- errors: K.value,
57560
+ errors: P.value,
57561
57561
  formState: Y.value
57562
57562
  })
57563
57563
  ], 64))], 34);
@@ -58953,19 +58953,19 @@ var MQ = { class: "multi-step-form" }, VQ = { class: "step-progress" }, TQ = ["o
58953
58953
  n("update:currentStep", j), n("stepChange", j);
58954
58954
  });
58955
58955
  function u(j, U) {
58956
- const H = U.split(".");
58956
+ const K = U.split(".");
58957
58957
  let te = j;
58958
- for (const K of H) te = te?.[K];
58958
+ for (const P of K) te = te?.[P];
58959
58959
  return te;
58960
58960
  }
58961
58961
  function Z(j, U) {
58962
58962
  if (!j) return !0;
58963
58963
  try {
58964
- const H = ho(j);
58965
- if (H.length === 0) return !0;
58966
- let te = !0, K = null;
58967
- for (let P = 0; P < H.length; P++) {
58968
- const ue = H[P], ye = u(U, ue.field), { op: me, value: he, connector: ie } = ue;
58964
+ const K = ho(j);
58965
+ if (K.length === 0) return !0;
58966
+ let te = !0, P = null;
58967
+ for (let H = 0; H < K.length; H++) {
58968
+ const ue = K[H], ye = u(U, ue.field), { op: me, value: he, connector: ie } = ue;
58969
58969
  let g = !1;
58970
58970
  switch (me) {
58971
58971
  case "eq":
@@ -59001,7 +59001,7 @@ var MQ = { class: "multi-step-form" }, VQ = { class: "step-progress" }, TQ = ["o
59001
59001
  default:
59002
59002
  g = !1;
59003
59003
  }
59004
- P === 0 ? (te = g, K = g) : (ie === "or" ? te = (K ?? !1) || g : ie === "and" && (te = (K ?? !1) && g), K = te);
59004
+ H === 0 ? (te = g, P = g) : (ie === "or" ? te = (P ?? !1) || g : ie === "and" && (te = (P ?? !1) && g), P = te);
59005
59005
  }
59006
59006
  return te;
59007
59007
  } catch {
@@ -59028,17 +59028,17 @@ var MQ = { class: "multi-step-form" }, VQ = { class: "step-progress" }, TQ = ["o
59028
59028
  function T() {
59029
59029
  if (!a.validateOnNext || W.value == null) return !0;
59030
59030
  const j = {}, U = W.value._fields;
59031
- for (const [H, te] of Object.entries(U)) {
59031
+ for (const [K, te] of Object.entries(U)) {
59032
59032
  if (te._type === "display" || !y(te)) continue;
59033
- const K = X(H), P = te._config;
59034
- if (P.required === !0 && V(K)) {
59035
- j[H] = `${typeof P.label == "string" ? P.label : H} is required`;
59033
+ const P = X(K), H = te._config;
59034
+ if (H.required === !0 && V(P)) {
59035
+ j[K] = `${typeof H.label == "string" ? H.label : K} is required`;
59036
59036
  continue;
59037
59037
  }
59038
- if (te._validations && !V(K)) for (const ue of te._validations) {
59039
- const ye = ue(K);
59038
+ if (te._validations && !V(P)) for (const ue of te._validations) {
59039
+ const ye = ue(P);
59040
59040
  if (ye !== !0) {
59041
- j[H] = ye;
59041
+ j[K] = ye;
59042
59042
  break;
59043
59043
  }
59044
59044
  }
@@ -59046,10 +59046,10 @@ var MQ = { class: "multi-step-form" }, VQ = { class: "step-progress" }, TQ = ["o
59046
59046
  return G.value = j, Object.keys(j).length > 0 ? (n("validationError", j), !1) : !0;
59047
59047
  }
59048
59048
  function x(j, U) {
59049
- return U._label != null ? U._label : j.split(/[._-]/).map((H) => H.charAt(0).toUpperCase() + H.slice(1)).join(" ");
59049
+ return U._label != null ? U._label : j.split(/[._-]/).map((K) => K.charAt(0).toUpperCase() + K.slice(1)).join(" ");
59050
59050
  }
59051
59051
  function S(j) {
59052
- const U = h.value.findIndex((H) => H.key === j);
59052
+ const U = h.value.findIndex((K) => K.key === j);
59053
59053
  if (U !== -1) {
59054
59054
  if (U < r.value) {
59055
59055
  o.value = j, G.value = {};
@@ -59085,17 +59085,17 @@ var MQ = { class: "multi-step-form" }, VQ = { class: "step-progress" }, TQ = ["o
59085
59085
  isFirstStep: Y,
59086
59086
  isLastStep: p
59087
59087
  }), (j, U) => (L(), M("div", MQ, [
59088
- R("div", VQ, [(L(!0), M(Xe, null, je(h.value, (H, te) => (L(), M("div", {
59089
- key: H.key,
59088
+ R("div", VQ, [(L(!0), M(Xe, null, je(h.value, (K, te) => (L(), M("div", {
59089
+ key: K.key,
59090
59090
  class: Ze(["step-indicator", {
59091
- active: H.key === o.value,
59091
+ active: K.key === o.value,
59092
59092
  completed: te < r.value
59093
59093
  }]),
59094
- onClick: (K) => S(H.key)
59095
- }, [R("div", IQ, ne(te + 1), 1), R("div", xQ, ne(x(H.key, H.schema)), 1)], 10, TQ))), 128))]),
59094
+ onClick: (P) => S(K.key)
59095
+ }, [R("div", IQ, ne(te + 1), 1), R("div", xQ, ne(x(K.key, K.schema)), 1)], 10, TQ))), 128))]),
59096
59096
  W.value != null ? (L(), M("div", zQ, [
59097
59097
  W.value._label ? (L(), M("h2", gQ, ne(W.value._label), 1)) : f("", !0),
59098
- Object.keys(G.value).length > 0 ? (L(), M("div", wQ, [R("ul", null, [(L(!0), M(Xe, null, je(G.value, (H, te) => (L(), M("li", { key: te }, ne(H), 1))), 128))])])) : f("", !0),
59098
+ Object.keys(G.value).length > 0 ? (L(), M("div", wQ, [R("ul", null, [(L(!0), M(Xe, null, je(G.value, (K, te) => (L(), M("li", { key: te }, ne(K), 1))), 128))])])) : f("", !0),
59099
59099
  Te(j.$slots, `step:${o.value}`, {
59100
59100
  schema: W.value,
59101
59101
  formData: s.value,
@@ -59103,13 +59103,13 @@ var MQ = { class: "multi-step-form" }, VQ = { class: "step-progress" }, TQ = ["o
59103
59103
  errors: G.value
59104
59104
  }, () => [_(br, {
59105
59105
  modelValue: s.value,
59106
- "onUpdate:modelValue": U[0] || (U[0] = (H) => s.value = H),
59106
+ "onUpdate:modelValue": U[0] || (U[0] = (K) => s.value = K),
59107
59107
  schema: W.value,
59108
59108
  components: e.components,
59109
59109
  errors: G.value
59110
- }, nd({ _: 2 }, [je(c.value, (H) => ({
59111
- name: H,
59112
- fn: fe((te) => [Te(j.$slots, H, xt(It(te)), void 0, !0)])
59110
+ }, nd({ _: 2 }, [je(c.value, (K) => ({
59111
+ name: K,
59112
+ fn: fe((te) => [Te(j.$slots, K, xt(It(te)), void 0, !0)])
59113
59113
  }))]), 1032, [
59114
59114
  "modelValue",
59115
59115
  "schema",
@@ -59350,18 +59350,18 @@ var CQ = {
59350
59350
  J || (w.value = !1);
59351
59351
  }
59352
59352
  }
59353
- const H = I(() => a.autoAdvance && JQ(r.value)), te = I(() => kQ(r.value));
59354
- let K = null;
59355
- const P = C(null);
59353
+ const K = I(() => a.autoAdvance && JQ(r.value)), te = I(() => kQ(r.value));
59354
+ let P = null;
59355
+ const H = C(null);
59356
59356
  function ue() {
59357
- K && (clearTimeout(K), K = null);
59357
+ P && (clearTimeout(P), P = null);
59358
59358
  }
59359
59359
  const ye = C(te.value ? m.value[te.value] : void 0);
59360
59360
  we(Z, () => {
59361
- ue(), P.value = null, ye.value = te.value ? m.value[te.value] : void 0;
59361
+ ue(), H.value = null, ye.value = te.value ? m.value[te.value] : void 0;
59362
59362
  }, { flush: "sync" }), we(() => te.value ? m.value[te.value] : void 0, (z) => {
59363
- H.value && P.value !== Z.value && (!(z != null && z !== "") || z === ye.value || (ue(), K = setTimeout(() => {
59364
- H.value && (P.value = Z.value ?? null, U());
59363
+ K.value && H.value !== Z.value && (!(z != null && z !== "") || z === ye.value || (ue(), P = setTimeout(() => {
59364
+ K.value && (H.value = Z.value ?? null, U());
59365
59365
  }, a.autoAdvanceDelay)));
59366
59366
  });
59367
59367
  function me() {
@@ -59464,7 +59464,7 @@ var CQ = {
59464
59464
  progress: V.value,
59465
59465
  currentKey: Z.value,
59466
59466
  primaryLabel: r.value?.primaryLabel,
59467
- autoAdvances: H.value
59467
+ autoAdvances: K.value
59468
59468
  }, () => [R("div", PQ, [
59469
59469
  _(pe, {
59470
59470
  class: "ffp-nav-btn icon-rtl-180",