@billgangcom/theme-lib 1.124.8 → 1.125.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/{builder-Da7TEF-Q.js → builder-BKLQ3SCp.js} +372 -348
  2. package/dist/{builder-B_VHcbLD.cjs → builder-C-s2Z9Tg.cjs} +12 -12
  3. package/dist/{builder-components-Cp8Zqx_S.js → builder-components-B3-2dDXj.js} +134 -131
  4. package/dist/{builder-components-iEhF2Pbf.cjs → builder-components-Ibl3RH1Z.cjs} +2 -2
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +23 -23
  7. package/dist/{charge-JIFfQW47.js → charge-BQMwaI0v.js} +6 -6
  8. package/dist/{charge-PbrSlzq2.cjs → charge-Df_uiA44.cjs} +1 -1
  9. package/dist/{checkout-DqtDf6g1.js → checkout-MKBU4y44.js} +5 -5
  10. package/dist/{checkout-BUYeNvtd.cjs → checkout-kkuEduhR.cjs} +1 -1
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-wBb3CwJ1.js → index--cDPD5qI.js} +5 -5
  14. package/dist/{index-DFnipeuV.js → index-BXGq59ru.js} +5 -5
  15. package/dist/{index-DlAAHfEI.cjs → index-BlI-8eaC.cjs} +1 -1
  16. package/dist/{index-BTDlV9jN.js → index-Bs-Lksb2.js} +5 -5
  17. package/dist/{index-DqhgfGZj.js → index-BsQLyFRc.js} +2 -2
  18. package/dist/{index-BMA4a_O3.js → index-CHOPkBPg.js} +5 -5
  19. package/dist/{index-AnMmiW23.cjs → index-DLQGIro9.cjs} +1 -1
  20. package/dist/{index-BJCYi1GY.cjs → index-DLr8rI1h.cjs} +1 -1
  21. package/dist/{index-BkSjxDPp.cjs → index-DMc4GFGv.cjs} +1 -1
  22. package/dist/{index-DiAipax-.cjs → index-DqcTiYSB.cjs} +1 -1
  23. package/dist/{index-ChL-8xQO.js → index-WgsjPsG8.js} +1 -1
  24. package/dist/{index-ZHeSdR1d.cjs → index-gZPytw2A.cjs} +1 -1
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.es.js +6 -6
  27. package/dist/{order-dz_UgvGB.cjs → order-B788Vz5S.cjs} +1 -1
  28. package/dist/{order-7agEr47O.js → order-Q1YK_kd9.js} +5 -5
  29. package/dist/src/abstractions/PageContext.d.ts +1 -0
  30. package/dist/src/builder/api/fetchData.d.ts +1 -0
  31. package/dist/{subscription-BNkw4ae-.cjs → subscription-8Fl-uEmU.cjs} +1 -1
  32. package/dist/{subscription-JT7LtnI_.js → subscription-C9XFvG3Q.js} +5 -5
  33. package/dist/{ticket-CUj-mxgQ.js → ticket-BKRtcUte.js} +9 -7
  34. package/dist/{ticket-nM6Hb7qw.cjs → ticket-DCSFgepS.cjs} +3 -3
  35. package/dist/{top-up-CqoCBzK9.js → top-up-Cmcs3JV8.js} +5 -5
  36. package/dist/{top-up-vR4oqVTR.cjs → top-up-Dz4FoWe7.cjs} +1 -1
  37. package/dist/{ui-components-BpioK3SF.js → ui-components-D5xoCtdU.js} +4 -4
  38. package/dist/{ui-components-DxzPkQcO.cjs → ui-components-DedfwzFM.cjs} +1 -1
  39. package/dist/ui.cjs.js +1 -1
  40. package/dist/ui.es.js +1 -1
  41. package/dist/{validation-BRmHHm4X.js → validation-B7VBE5sN.js} +5 -5
  42. package/dist/{validation-Cfgi2DqP.cjs → validation-xaQ15AlC.cjs} +1 -1
  43. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  import { jsxs as w, jsx as c, Fragment as Pe } from "react/jsx-runtime";
2
2
  import A, { useLayoutEffect as Mr, useEffect as U, useRef as V, useMemo as H, useCallback as te, useState as he, memo as Rr, useReducer as Or, createContext as Pt, useContext as nt } from "react";
3
- import { u as ne, a as Je, b as J, c as se, d as Po, e as Un, f as E, v as en, T as vt, g as $r, h as Vn, i as Fe, j as Lo, r as Fo, k as un, l as Et, m as X, n as zo, L as ot, o as Kn, p as rt, q as Pr, s as Gn, t as tt, w as dn, x as Yn, y as jo, A as Lr, S as Fr, C as zr, z as Ho, B as ft, D as jr, E as Ee, F as Lt, R as bn, G as _n, H as Wo, I as tn, J as we, P as go, K as Hr } from "./builder-Da7TEF-Q.js";
4
- import { I as R, u as Wr, B as qe, E as nn, c as ue, S as Ce, d as In, T as Ur } from "./ui-components-BpioK3SF.js";
5
- import "./charge-JIFfQW47.js";
3
+ import { u as ne, a as Je, b as J, c as se, d as Po, e as Un, f as E, v as en, T as vt, g as $r, h as Vn, i as Fe, j as Lo, r as Fo, k as un, l as Et, m as X, n as zo, L as ot, o as Kn, p as rt, q as Pr, s as Gn, t as tt, w as dn, x as Yn, y as jo, A as Lr, S as Fr, C as zr, z as Ho, B as ft, D as jr, E as Ee, F as Lt, R as bn, G as _n, H as Wo, I as tn, J as we, P as go, K as Hr } from "./builder-BKLQ3SCp.js";
4
+ import { I as R, u as Wr, B as qe, E as nn, c as ue, S as Ce, d as In, T as Ur } from "./ui-components-D5xoCtdU.js";
5
+ import "./charge-BQMwaI0v.js";
6
6
  import { unstable_batchedUpdates as Vt, createPortal as Vr } from "react-dom";
7
- import "./ticket-CUj-mxgQ.js";
7
+ import "./ticket-BKRtcUte.js";
8
8
  const Xn = ({ render: e, block: t }) => e(t), Uo = ({ settings: e, pageContext: t }) => {
9
9
  const { footer: n } = ne(), { settings: o } = Je(), { pageContext: r } = J(), { footer: s } = se();
10
10
  if (!s || !n) return null;
@@ -374,8 +374,8 @@ function ds(e, t, n, {
374
374
  }
375
375
  }
376
376
  y = -1;
377
- let C = [], v = 1, k = u + f;
378
- const S = 1 << u - 1;
377
+ let S = [], v = 1, k = u + f;
378
+ const C = 1 << u - 1;
379
379
  for (let b = 0; b < u; b += 1) {
380
380
  let N = 0, O = k;
381
381
  for (; N < O; )
@@ -391,7 +391,7 @@ function ds(e, t, n, {
391
391
  T[$ + 1] = (1 << b) - 1;
392
392
  for (let M = $; M >= z; M -= 1) {
393
393
  let W = M - 1, oe = n[e.charAt(W)];
394
- if (h && (m[W] = +!!oe), T[M] = (T[M + 1] << 1 | 1) & oe, b && (T[M] |= (C[M + 1] | C[M]) << 1 | 1 | C[M + 1]), T[M] & S && (v = Kt(t, {
394
+ if (h && (m[W] = +!!oe), T[M] = (T[M + 1] << 1 | 1) & oe, b && (T[M] |= (S[M + 1] | S[M]) << 1 | 1 | S[M + 1]), T[M] & C && (v = Kt(t, {
395
395
  errors: b,
396
396
  currentLocation: W,
397
397
  expectedLocation: p,
@@ -411,7 +411,7 @@ function ds(e, t, n, {
411
411
  ignoreLocation: d
412
412
  }) > g)
413
413
  break;
414
- C = T;
414
+ S = T;
415
415
  }
416
416
  const x = {
417
417
  isMatch: y >= 0,
@@ -495,7 +495,7 @@ class Qo {
495
495
  } = this.options;
496
496
  let f = [], p = 0, g = !1;
497
497
  this.chunks.forEach(({ pattern: h, alphabet: m, startIndex: _ }) => {
498
- const { isMatch: C, score: v, indices: k } = ds(t, h, m, {
498
+ const { isMatch: S, score: v, indices: k } = ds(t, h, m, {
499
499
  location: s + _,
500
500
  distance: i,
501
501
  threshold: a,
@@ -504,7 +504,7 @@ class Qo {
504
504
  includeMatches: r,
505
505
  ignoreLocation: u
506
506
  });
507
- C && (g = !0), p += v, C && k && (f = [...f, ...k]);
507
+ S && (g = !0), p += v, S && k && (f = [...f, ...k]);
508
508
  });
509
509
  let y = {
510
510
  isMatch: g,
@@ -804,8 +804,8 @@ class Ss {
804
804
  const y = f[p], { isMatch: h, indices: m, score: _ } = y.search(t);
805
805
  if (h) {
806
806
  if (i += 1, l += _, o) {
807
- const C = y.constructor.type;
808
- Cs.has(C) ? a = [...a, ...m] : a.push(m);
807
+ const S = y.constructor.type;
808
+ Cs.has(S) ? a = [...a, ...m] : a.push(m);
809
809
  }
810
810
  } else {
811
811
  l = 0, i = 0, a.length = 0;
@@ -1956,17 +1956,17 @@ class fr {
1956
1956
  for (const h of y) {
1957
1957
  const m = t.code, {
1958
1958
  isTop: _,
1959
- isRight: C,
1959
+ isRight: S,
1960
1960
  isLeft: v,
1961
1961
  isBottom: k,
1962
- maxScroll: S,
1962
+ maxScroll: C,
1963
1963
  minScroll: x
1964
1964
  } = ur(h), b = ci(h), N = {
1965
1965
  x: Math.min(m === L.Right ? b.right - b.width / 2 : b.right, Math.max(m === L.Right ? b.left : b.left + b.width / 2, f.x)),
1966
1966
  y: Math.min(m === L.Down ? b.bottom - b.height / 2 : b.bottom, Math.max(m === L.Down ? b.top : b.top + b.height / 2, f.y))
1967
- }, O = m === L.Right && !C || m === L.Left && !v, z = m === L.Down && !k || m === L.Up && !_;
1967
+ }, O = m === L.Right && !S || m === L.Left && !v, z = m === L.Down && !k || m === L.Up && !_;
1968
1968
  if (O && N.x !== f.x) {
1969
- const $ = h.scrollLeft + p.x, T = m === L.Right && $ <= S.x || m === L.Left && $ >= x.x;
1969
+ const $ = h.scrollLeft + p.x, T = m === L.Right && $ <= C.x || m === L.Left && $ >= x.x;
1970
1970
  if (T && !p.y) {
1971
1971
  h.scrollTo({
1972
1972
  left: $,
@@ -1974,13 +1974,13 @@ class fr {
1974
1974
  });
1975
1975
  return;
1976
1976
  }
1977
- T ? g.x = h.scrollLeft - $ : g.x = m === L.Right ? h.scrollLeft - S.x : h.scrollLeft - x.x, g.x && h.scrollBy({
1977
+ T ? g.x = h.scrollLeft - $ : g.x = m === L.Right ? h.scrollLeft - C.x : h.scrollLeft - x.x, g.x && h.scrollBy({
1978
1978
  left: -g.x,
1979
1979
  behavior: a
1980
1980
  });
1981
1981
  break;
1982
1982
  } else if (z && N.y !== f.y) {
1983
- const $ = h.scrollTop + p.y, T = m === L.Down && $ <= S.y || m === L.Up && $ >= x.y;
1983
+ const $ = h.scrollTop + p.y, T = m === L.Down && $ <= C.y || m === L.Up && $ >= x.y;
1984
1984
  if (T && !p.x) {
1985
1985
  h.scrollTo({
1986
1986
  top: $,
@@ -1988,7 +1988,7 @@ class fr {
1988
1988
  });
1989
1989
  return;
1990
1990
  }
1991
- T ? g.y = h.scrollTop - $ : g.y = m === L.Down ? h.scrollTop - S.y : h.scrollTop - x.y, g.y && h.scrollBy({
1991
+ T ? g.y = h.scrollTop - $ : g.y = m === L.Down ? h.scrollTop - C.y : h.scrollTop - x.y, g.y && h.scrollBy({
1992
1992
  top: -g.y,
1993
1993
  behavior: a
1994
1994
  });
@@ -2296,7 +2296,7 @@ function yi(e) {
2296
2296
  }), _ = V({
2297
2297
  x: 0,
2298
2298
  y: 0
2299
- }), C = H(() => {
2299
+ }), S = H(() => {
2300
2300
  switch (n) {
2301
2301
  case Tt.Pointer:
2302
2302
  return l ? {
@@ -2314,14 +2314,14 @@ function yi(e) {
2314
2314
  return;
2315
2315
  const b = m.current.x * _.current.x, N = m.current.y * _.current.y;
2316
2316
  x.scrollBy(b, N);
2317
- }, []), S = H(() => a === ln.TreeOrder ? [...d].reverse() : d, [a, d]);
2317
+ }, []), C = H(() => a === ln.TreeOrder ? [...d].reverse() : d, [a, d]);
2318
2318
  U(
2319
2319
  () => {
2320
- if (!s || !d.length || !C) {
2320
+ if (!s || !d.length || !S) {
2321
2321
  h();
2322
2322
  return;
2323
2323
  }
2324
- for (const x of S) {
2324
+ for (const x of C) {
2325
2325
  if ((o == null ? void 0 : o(x)) === !1)
2326
2326
  continue;
2327
2327
  const b = d.indexOf(x), N = u[b];
@@ -2330,7 +2330,7 @@ function yi(e) {
2330
2330
  const {
2331
2331
  direction: O,
2332
2332
  speed: z
2333
- } = ai(x, N, C, t, p);
2333
+ } = ai(x, N, S, t, p);
2334
2334
  for (const $ of ["x", "y"])
2335
2335
  g[$][O[$]] || (z[$] = 0, O[$] = 0);
2336
2336
  if (z.x > 0 || z.y > 0) {
@@ -2355,12 +2355,12 @@ function yi(e) {
2355
2355
  s,
2356
2356
  i,
2357
2357
  // eslint-disable-next-line react-hooks/exhaustive-deps
2358
- JSON.stringify(C),
2358
+ JSON.stringify(S),
2359
2359
  // eslint-disable-next-line react-hooks/exhaustive-deps
2360
2360
  JSON.stringify(g),
2361
2361
  y,
2362
2362
  d,
2363
- S,
2363
+ C,
2364
2364
  u,
2365
2365
  // eslint-disable-next-line react-hooks/exhaustive-deps
2366
2366
  JSON.stringify(p)
@@ -2440,23 +2440,23 @@ function ki(e, t) {
2440
2440
  measure: l,
2441
2441
  strategy: d
2442
2442
  } = r, u = V(e), f = m(), p = Rt(f), g = te(function(_) {
2443
- _ === void 0 && (_ = []), !p.current && i((C) => C === null ? _ : C.concat(_.filter((v) => !C.includes(v))));
2443
+ _ === void 0 && (_ = []), !p.current && i((S) => S === null ? _ : S.concat(_.filter((v) => !S.includes(v))));
2444
2444
  }, [p]), y = V(null), h = zt((_) => {
2445
2445
  if (f && !n)
2446
2446
  return ko;
2447
2447
  if (!_ || _ === ko || u.current !== e || s != null) {
2448
- const C = /* @__PURE__ */ new Map();
2448
+ const S = /* @__PURE__ */ new Map();
2449
2449
  for (let v of e) {
2450
2450
  if (!v)
2451
2451
  continue;
2452
2452
  if (s && s.length > 0 && !s.includes(v.id) && v.rect.current) {
2453
- C.set(v.id, v.rect.current);
2453
+ S.set(v.id, v.rect.current);
2454
2454
  continue;
2455
2455
  }
2456
- const k = v.node.current, S = k ? new no(l(k), k) : null;
2457
- v.rect.current = S, S && C.set(v.id, S);
2456
+ const k = v.node.current, C = k ? new no(l(k), k) : null;
2457
+ v.rect.current = C, C && S.set(v.id, C);
2458
2458
  }
2459
- return C;
2459
+ return S;
2460
2460
  }
2461
2461
  return _;
2462
2462
  }, [e, s, n, f, l]);
@@ -3039,7 +3039,7 @@ const Gi = /* @__PURE__ */ Rr(function(t) {
3039
3039
  modifiers: g,
3040
3040
  ...y
3041
3041
  } = t;
3042
- const h = Or(Hi, void 0, ji), [m, _] = h, [C, v] = js(), [k, S] = he(Xe.Uninitialized), x = k === Xe.Initialized, {
3042
+ const h = Or(Hi, void 0, ji), [m, _] = h, [S, v] = js(), [k, C] = he(Xe.Uninitialized), x = k === Xe.Initialized, {
3043
3043
  draggable: {
3044
3044
  active: b,
3045
3045
  nodes: N,
@@ -3140,7 +3140,7 @@ const Gi = /* @__PURE__ */ Rr(function(t) {
3140
3140
  } = ve.current, Oe = {
3141
3141
  id: q
3142
3142
  };
3143
- Ne == null || Ne(Oe), C({
3143
+ Ne == null || Ne(Oe), S({
3144
3144
  type: "onDragAbort",
3145
3145
  event: Oe
3146
3146
  });
@@ -3156,7 +3156,7 @@ const Gi = /* @__PURE__ */ Rr(function(t) {
3156
3156
  initialCoordinates: Ne,
3157
3157
  offset: Oe
3158
3158
  };
3159
- xt == null || xt(Ke), C({
3159
+ xt == null || xt(Ke), S({
3160
3160
  type: "onDragPending",
3161
3161
  event: Ke
3162
3162
  });
@@ -3179,11 +3179,11 @@ const Gi = /* @__PURE__ */ Rr(function(t) {
3179
3179
  }
3180
3180
  };
3181
3181
  Vt(() => {
3182
- Oe == null || Oe(St), S(Xe.Initializing), _({
3182
+ Oe == null || Oe(St), C(Xe.Initializing), _({
3183
3183
  type: G.DragStart,
3184
3184
  initialCoordinates: q,
3185
3185
  active: Ve
3186
- }), C({
3186
+ }), S({
3187
3187
  type: "onDragStart",
3188
3188
  event: St
3189
3189
  }), oe(vn.current), K(le);
@@ -3223,11 +3223,11 @@ const Gi = /* @__PURE__ */ Rr(function(t) {
3223
3223
  M.current = null, Vt(() => {
3224
3224
  _({
3225
3225
  type: q
3226
- }), S(Xe.Uninitialized), uo(null), oe(null), K(null), vn.current = null;
3226
+ }), C(Xe.Uninitialized), uo(null), oe(null), K(null), vn.current = null;
3227
3227
  const kt = q === G.DragEnd ? "onDragEnd" : "onDragCancel";
3228
3228
  if (Ke) {
3229
3229
  const mn = ve.current[kt];
3230
- mn == null || mn(Ke), C({
3230
+ mn == null || mn(Ke), S({
3231
3231
  type: kt,
3232
3232
  event: Ke
3233
3233
  });
@@ -3255,7 +3255,7 @@ const Gi = /* @__PURE__ */ Rr(function(t) {
3255
3255
  }, M.current = Ue, ho(ce, ae));
3256
3256
  }, [N, ho]), fo = xi(u, Br);
3257
3257
  Ti(u), Te(() => {
3258
- j && k === Xe.Initializing && S(Xe.Initialized);
3258
+ j && k === Xe.Initializing && C(Xe.Initialized);
3259
3259
  }, [j, k]), U(
3260
3260
  () => {
3261
3261
  const {
@@ -3279,7 +3279,7 @@ const Gi = /* @__PURE__ */ Rr(function(t) {
3279
3279
  over: fe
3280
3280
  };
3281
3281
  Vt(() => {
3282
- Z == null || Z(le), C({
3282
+ Z == null || Z(le), S({
3283
3283
  type: "onDragMove",
3284
3284
  event: le
3285
3285
  });
@@ -3316,7 +3316,7 @@ const Gi = /* @__PURE__ */ Rr(function(t) {
3316
3316
  over: ht
3317
3317
  };
3318
3318
  Vt(() => {
3319
- uo(ht), le == null || le(q), C({
3319
+ uo(ht), le == null || le(q), S({
3320
3320
  type: "onDragOver",
3321
3321
  event: q
3322
3322
  });
@@ -3425,12 +3425,12 @@ function qi(e) {
3425
3425
  role: g = Eo,
3426
3426
  roleDescription: y = "draggable",
3427
3427
  tabIndex: h = 0
3428
- } = r ?? {}, m = (l == null ? void 0 : l.id) === t, _ = nt(m ? mr : Yi), [C, v] = sn(), [k, S] = sn(), x = Mi(i, t), b = Rt(n);
3428
+ } = r ?? {}, m = (l == null ? void 0 : l.id) === t, _ = nt(m ? mr : Yi), [S, v] = sn(), [k, C] = sn(), x = Mi(i, t), b = Rt(n);
3429
3429
  Te(
3430
3430
  () => (f.set(t, {
3431
3431
  id: t,
3432
3432
  key: s,
3433
- node: C,
3433
+ node: S,
3434
3434
  activatorNode: k,
3435
3435
  data: b
3436
3436
  }), () => {
@@ -3455,10 +3455,10 @@ function qi(e) {
3455
3455
  attributes: N,
3456
3456
  isDragging: m,
3457
3457
  listeners: o ? void 0 : x,
3458
- node: C,
3458
+ node: S,
3459
3459
  over: p,
3460
3460
  setNodeRef: v,
3461
- setActivatorNodeRef: S,
3461
+ setActivatorNodeRef: C,
3462
3462
  transform: _
3463
3463
  };
3464
3464
  }
@@ -3489,7 +3489,7 @@ function ea(e) {
3489
3489
  } = {
3490
3490
  ...Zi,
3491
3491
  ...r
3492
- }, _ = Rt(h ?? o), C = te(
3492
+ }, _ = Rt(h ?? o), S = te(
3493
3493
  () => {
3494
3494
  if (!f.current) {
3495
3495
  f.current = !0;
@@ -3502,21 +3502,21 @@ function ea(e) {
3502
3502
  //eslint-disable-next-line react-hooks/exhaustive-deps
3503
3503
  [m]
3504
3504
  ), v = fn({
3505
- callback: C,
3505
+ callback: S,
3506
3506
  disabled: y || !i
3507
3507
  }), k = te((N, O) => {
3508
3508
  v && (O && (v.unobserve(O), f.current = !1), N && v.observe(N));
3509
- }, [v]), [S, x] = sn(k), b = Rt(t);
3509
+ }, [v]), [C, x] = sn(k), b = Rt(t);
3510
3510
  return U(() => {
3511
- !v || !S.current || (v.disconnect(), f.current = !1, v.observe(S.current));
3512
- }, [S, v]), U(
3511
+ !v || !C.current || (v.disconnect(), f.current = !1, v.observe(C.current));
3512
+ }, [C, v]), U(
3513
3513
  () => (a({
3514
3514
  type: G.RegisterDroppable,
3515
3515
  element: {
3516
3516
  id: o,
3517
3517
  key: s,
3518
3518
  disabled: n,
3519
- node: S,
3519
+ node: C,
3520
3520
  rect: p,
3521
3521
  data: b
3522
3522
  }
@@ -3538,7 +3538,7 @@ function ea(e) {
3538
3538
  active: i,
3539
3539
  rect: p,
3540
3540
  isOver: (l == null ? void 0 : l.id) === o,
3541
- node: S,
3541
+ node: C,
3542
3542
  over: l,
3543
3543
  setNodeRef: x
3544
3544
  };
@@ -3656,13 +3656,13 @@ function ia(e) {
3656
3656
  droppableRects: l,
3657
3657
  over: d,
3658
3658
  measureDroppableContainers: u
3659
- } = Ji(), f = jt(yr, n), p = a.rect !== null, g = H(() => o.map((x) => typeof x == "object" && "id" in x ? x.id : x), [o]), y = i != null, h = i ? g.indexOf(i.id) : -1, m = d ? g.indexOf(d.id) : -1, _ = V(g), C = !na(g, _.current), v = m !== -1 && h === -1 || C, k = oa(s);
3659
+ } = Ji(), f = jt(yr, n), p = a.rect !== null, g = H(() => o.map((x) => typeof x == "object" && "id" in x ? x.id : x), [o]), y = i != null, h = i ? g.indexOf(i.id) : -1, m = d ? g.indexOf(d.id) : -1, _ = V(g), S = !na(g, _.current), v = m !== -1 && h === -1 || S, k = oa(s);
3660
3660
  Te(() => {
3661
- C && y && u(g);
3662
- }, [C, g, y, u]), U(() => {
3661
+ S && y && u(g);
3662
+ }, [S, g, y, u]), U(() => {
3663
3663
  _.current = g;
3664
3664
  }, [g]);
3665
- const S = H(
3665
+ const C = H(
3666
3666
  () => ({
3667
3667
  activeIndex: h,
3668
3668
  containerId: f,
@@ -3678,7 +3678,7 @@ function ia(e) {
3678
3678
  [h, f, k.draggable, k.droppable, v, g, m, l, p, r]
3679
3679
  );
3680
3680
  return A.createElement(wr.Provider, {
3681
- value: S
3681
+ value: C
3682
3682
  }, t);
3683
3683
  }
3684
3684
  const aa = (e) => {
@@ -3761,8 +3761,8 @@ function fa(e) {
3761
3761
  sortedRects: h,
3762
3762
  overIndex: m,
3763
3763
  useDragOverlay: _,
3764
- strategy: C
3765
- } = nt(wr), v = ga(o, g), k = u.indexOf(i), S = H(() => ({
3764
+ strategy: S
3765
+ } = nt(wr), v = ga(o, g), k = u.indexOf(i), C = H(() => ({
3766
3766
  sortable: {
3767
3767
  containerId: f,
3768
3768
  index: k,
@@ -3776,7 +3776,7 @@ function fa(e) {
3776
3776
  setNodeRef: z
3777
3777
  } = ea({
3778
3778
  id: i,
3779
- data: S,
3779
+ data: C,
3780
3780
  disabled: v.droppable,
3781
3781
  resizeObserverConfig: {
3782
3782
  updateMeasurementsFor: x,
@@ -3795,13 +3795,13 @@ function fa(e) {
3795
3795
  transform: ze
3796
3796
  } = qi({
3797
3797
  id: i,
3798
- data: S,
3798
+ data: C,
3799
3799
  attributes: {
3800
3800
  ...da,
3801
3801
  ...n
3802
3802
  },
3803
3803
  disabled: v.draggable
3804
- }), st = Is(z, W), Q = !!$, me = Q && !y && Gt(p) && Gt(m), xe = !_ && I, Ze = xe && me ? ze : null, it = me ? Ze ?? (a ?? C)({
3804
+ }), st = Is(z, W), Q = !!$, me = Q && !y && Gt(p) && Gt(m), xe = !_ && I, Ze = xe && me ? ze : null, it = me ? Ze ?? (a ?? S)({
3805
3805
  rects: h,
3806
3806
  activeNodeRect: P,
3807
3807
  activeIndex: p,
@@ -3853,7 +3853,7 @@ function fa(e) {
3853
3853
  active: $,
3854
3854
  activeIndex: p,
3855
3855
  attributes: M,
3856
- data: S,
3856
+ data: C,
3857
3857
  rect: b,
3858
3858
  index: k,
3859
3859
  newIndex: je,
@@ -4103,7 +4103,7 @@ const pa = "_header_17vny_1", va = "_left_17vny_14", ma = "_right_17vny_15", Xt
4103
4103
  a(!1);
4104
4104
  }, 300);
4105
4105
  }, [h]);
4106
- const C = (v) => v ? v.replace(/_/g, " ").split(" ").map((k) => k.charAt(0).toUpperCase() + k.slice(1)).join(" ") : "";
4106
+ const S = (v) => v ? v.replace(/_/g, " ").split(" ").map((k) => k.charAt(0).toUpperCase() + k.slice(1)).join(" ") : "";
4107
4107
  return /* @__PURE__ */ w(
4108
4108
  "div",
4109
4109
  {
@@ -4127,7 +4127,7 @@ const pa = "_header_17vny_1", va = "_left_17vny_14", ma = "_right_17vny_15", Xt
4127
4127
  height: 20
4128
4128
  }
4129
4129
  ),
4130
- /* @__PURE__ */ c("span", { className: be.text, children: o && o[e] && Et.includes(o[e].path) ? `${C(o[e].name)} page` : o && o[e] && o[e].name }),
4130
+ /* @__PURE__ */ c("span", { className: be.text, children: o && o[e] && Et.includes(o[e].path) ? `${S(o[e].name)} page` : o && o[e] && o[e].name }),
4131
4131
  /* @__PURE__ */ c(
4132
4132
  "div",
4133
4133
  {
@@ -4178,15 +4178,15 @@ const pa = "_header_17vny_1", va = "_left_17vny_14", ma = "_right_17vny_15", Xt
4178
4178
  fill: "#252525"
4179
4179
  }
4180
4180
  ),
4181
- /* @__PURE__ */ c("span", { className: be.text, children: Et.includes(k.path) ? `${C(k.name)} page` : k.name }),
4181
+ /* @__PURE__ */ c("span", { className: be.text, children: Et.includes(k.path) ? `${S(k.name)} page` : k.name }),
4182
4182
  u === v && /* @__PURE__ */ w(Pe, { children: [
4183
4183
  /* @__PURE__ */ c(
4184
4184
  R,
4185
4185
  {
4186
4186
  name: "Gear",
4187
4187
  fill: "#757575",
4188
- onClick: (S) => {
4189
- S.stopPropagation(), r(!0), s(v), n(!0);
4188
+ onClick: (C) => {
4189
+ C.stopPropagation(), r(!0), s(v), n(!0);
4190
4190
  }
4191
4191
  }
4192
4192
  ),
@@ -4195,11 +4195,11 @@ const pa = "_header_17vny_1", va = "_left_17vny_14", ma = "_right_17vny_15", Xt
4195
4195
  {
4196
4196
  name: "Trash",
4197
4197
  fill: "#C12A2A",
4198
- onClick: (S) => {
4199
- S.stopPropagation(), p("Delete Page"), g(
4198
+ onClick: (C) => {
4199
+ C.stopPropagation(), p("Delete Page"), g(
4200
4200
  `Are you sure you want to delete ${k.name || "this"} page? Once you delete this page, any content visible will also be deleted. This is irreversible.`
4201
4201
  ), y(() => {
4202
- S.stopPropagation(), o[e].path === k.path && t(Object.keys(o)[0]), i(v), l(k.name), Sr(k.path);
4202
+ C.stopPropagation(), o[e].path === k.path && t(Object.keys(o)[0]), i(v), l(k.name), Sr(k.path);
4203
4203
  });
4204
4204
  }
4205
4205
  }
@@ -4381,37 +4381,40 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4381
4381
  r && clearTimeout(r);
4382
4382
  else {
4383
4383
  e(!0);
4384
- const C = Object.keys(g).map((S) => {
4385
- const x = Ja(S, h);
4386
- return g[S] && g[S].data && (x != null && x.path) ? {
4387
- id: x ? x.id : S,
4388
- name: x ? x.name : S,
4384
+ const S = Object.keys(g).map((C) => {
4385
+ const x = Ja(C, h);
4386
+ return g[C] && g[C].data && (x != null && x.path) ? {
4387
+ id: x ? x.id : C,
4388
+ name: x ? x.name : C,
4389
4389
  path: x.path,
4390
4390
  layout: {
4391
- ...g[S]
4391
+ ...g[C]
4392
4392
  },
4393
- neededProductIds: [...Nt("ProductId", Object.values(g[S].data))],
4394
- neededCategoryIds: [...Nt("CategoryId", Object.values(g[S].data))],
4393
+ neededProductIds: [...Nt("ProductId", Object.values(g[C].data))],
4394
+ neededCategoryIds: [...Nt("CategoryId", Object.values(g[C].data))],
4395
4395
  neededAnnouncementIds: [
4396
- ...Nt("AnnouncementId", Object.values(g[S].data))
4396
+ ...Nt("AnnouncementId", Object.values(g[C].data))
4397
4397
  ],
4398
- neededListingIds: [...Nt("ListingIds", Object.values(g[S].data))],
4399
- neededFaqIds: [...Nt("FaqsIds", Object.values(g[S].data))],
4398
+ neededListingIds: [...Nt("ListingIds", Object.values(g[C].data))],
4399
+ neededFaqIds: [...Nt("FaqsIds", Object.values(g[C].data))],
4400
4400
  neededReviewCount: Xa(
4401
4401
  "ReviewCount",
4402
- Object.values(g[S].data),
4402
+ Object.values(g[C].data),
4403
4403
  y
4404
4404
  ),
4405
- neededVouchCount: Object.values(g[S].data).some(
4405
+ neededVouchCount: Object.values(g[C].data).some(
4406
4406
  (b) => b.name === "Vouches"
4407
4407
  ) ? 1e3 : void 0,
4408
+ includeLiveStats: Object.values(g[C].data).some(
4409
+ (b) => b.name === "LiveActivity"
4410
+ ),
4408
4411
  seo: {
4409
4412
  pageTitle: x && x.seo && x.seo.pageTitle ? x.seo.pageTitle : "",
4410
4413
  pageDescription: x && x.seo && x.seo.pageDescription ? x.seo.pageDescription : ""
4411
4414
  },
4412
4415
  isPrivate: !!(x && x.visibility === "private")
4413
4416
  } : null;
4414
- }).filter((S) => S), v = {
4417
+ }).filter((C) => C), v = {
4415
4418
  settings: {
4416
4419
  ...o
4417
4420
  },
@@ -4421,7 +4424,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4421
4424
  }, { status: k } = await Ya("post", "save", {
4422
4425
  themeSettings: n,
4423
4426
  settings: v,
4424
- updatedPages: C
4427
+ updatedPages: S
4425
4428
  });
4426
4429
  l([
4427
4430
  ...d,
@@ -4637,8 +4640,8 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4637
4640
  moveButton: Rc,
4638
4641
  deleteButton: Oc
4639
4642
  }, $c = () => {
4640
- var S;
4641
- const { activeBlock: e, setActiveBlock: t } = Fe(), { blocks: n, removeBlock: o, moveBlock: r, duplicateBlock: s, setCurrentBlock: i } = ne(), { currentPage: a, pages: l } = J(), { setTitle: d, setDescription: u, setOnConfirm: f } = un(), { setActiveBlock: p } = se(), g = (S = l == null ? void 0 : l[a]) == null ? void 0 : S.path, y = g ? n[g] : null, h = (y == null ? void 0 : y.order) || [], m = h.indexOf(e.id), _ = (x) => {
4643
+ var C;
4644
+ const { activeBlock: e, setActiveBlock: t } = Fe(), { blocks: n, removeBlock: o, moveBlock: r, duplicateBlock: s, setCurrentBlock: i } = ne(), { currentPage: a, pages: l } = J(), { setTitle: d, setDescription: u, setOnConfirm: f } = un(), { setActiveBlock: p } = se(), g = (C = l == null ? void 0 : l[a]) == null ? void 0 : C.path, y = g ? n[g] : null, h = (y == null ? void 0 : y.order) || [], m = h.indexOf(e.id), _ = (x) => {
4642
4645
  x.stopPropagation(), m > 0 && g && (r(g, m, m - 1), t({
4643
4646
  id: e.id,
4644
4647
  neededScroll: !0
@@ -4648,7 +4651,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4648
4651
  neededScroll: !1
4649
4652
  });
4650
4653
  }, 100));
4651
- }, C = (x) => {
4654
+ }, S = (x) => {
4652
4655
  x.stopPropagation(), m < h.length - 1 && g && (r(g, m, m + 1), t({
4653
4656
  id: e.id,
4654
4657
  neededScroll: !0
@@ -4679,7 +4682,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4679
4682
  /* @__PURE__ */ c(
4680
4683
  "button",
4681
4684
  {
4682
- onClick: C,
4685
+ onClick: S,
4683
4686
  className: E(Be.button, Be.moveButton),
4684
4687
  disabled: m === h.length - 1,
4685
4688
  children: /* @__PURE__ */ c(R, { name: "ArrowDown" })
@@ -4720,7 +4723,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4720
4723
  currentBlock: l,
4721
4724
  setPositionBlock: d,
4722
4725
  announcement: u
4723
- } = ne(), { settings: f } = Je(), { currentPage: p, pages: g, pageContext: y } = J(), { activeBlock: h, setActiveBlock: m } = X(), { setError: _ } = Gn(), { setActiveBlock: C } = se(), v = A.useRef(n.id), k = A.useRef({});
4726
+ } = ne(), { settings: f } = Je(), { currentPage: p, pages: g, pageContext: y } = J(), { activeBlock: h, setActiveBlock: m } = X(), { setError: _ } = Gn(), { setActiveBlock: S } = se(), v = A.useRef(n.id), k = A.useRef({});
4724
4727
  A.useEffect(() => {
4725
4728
  if (n.id && n.neededScroll && k.current[n.id]) {
4726
4729
  const b = k.current[n.id];
@@ -4733,7 +4736,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4733
4736
  }
4734
4737
  }
4735
4738
  }, [n, e]);
4736
- const S = rt();
4739
+ const C = rt();
4737
4740
  A.useEffect(() => {
4738
4741
  v.current = n.id;
4739
4742
  }, [n.id]);
@@ -4776,7 +4779,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4776
4779
  {
4777
4780
  ref: (N) => k.current[b] = N,
4778
4781
  onClick: (N) => {
4779
- N.stopPropagation(), C(null), h && m(null), t({
4782
+ N.stopPropagation(), S(null), h && m(null), t({
4780
4783
  id: b,
4781
4784
  neededScroll: !0
4782
4785
  }), setTimeout(() => {
@@ -4822,7 +4825,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4822
4825
  N.stopPropagation(), d(b, !0), a(null), t({
4823
4826
  id: null,
4824
4827
  neededScroll: !1
4825
- }), C(null), S("/admin/builder/add");
4828
+ }), S(null), C("/admin/builder/add");
4826
4829
  },
4827
4830
  children: "Add Section"
4828
4831
  }
@@ -4838,7 +4841,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4838
4841
  N.stopPropagation(), d(b, !1), a(null), t({
4839
4842
  id: null,
4840
4843
  neededScroll: !1
4841
- }), C(null), S("/admin/builder/add");
4844
+ }), S(null), C("/admin/builder/add");
4842
4845
  },
4843
4846
  children: "Add Section"
4844
4847
  }
@@ -4888,9 +4891,9 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
4888
4891
  n(""), r(m), s("keyBlock");
4889
4892
  }
4890
4893
  function y(m, _) {
4891
- const C = window.innerHeight, v = 400, k = 10;
4892
- let S = _.clientY - 120;
4893
- S + v > C && (S = C - v - k), S < k && (S = k), i || s("keyBlock"), l(m, "keyBlock"), u(), p(S);
4894
+ const S = window.innerHeight, v = 400, k = 10;
4895
+ let C = _.clientY - 120;
4896
+ C + v > S && (C = S - v - k), C < k && (C = k), i || s("keyBlock"), l(m, "keyBlock"), u(), p(C);
4894
4897
  }
4895
4898
  function h() {
4896
4899
  a ? f("keyBlock") : d("keyBlock"), p(null);
@@ -4979,7 +4982,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
4979
4982
  return "100%";
4980
4983
  }
4981
4984
  }
4982
- const { isOpenSelectModal: m } = J(), _ = A.useRef(null), C = (v) => {
4985
+ const { isOpenSelectModal: m } = J(), _ = A.useRef(null), S = (v) => {
4983
4986
  _.current && (_.current.scrollTop += v.deltaY);
4984
4987
  };
4985
4988
  return /* @__PURE__ */ w(
@@ -4988,7 +4991,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
4988
4991
  className: Dt.preview,
4989
4992
  style: { zIndex: d && !m ? 5e3 : 500 },
4990
4993
  onWheel: (v) => {
4991
- v.stopPropagation(), C(v);
4994
+ v.stopPropagation(), S(v);
4992
4995
  },
4993
4996
  children: [
4994
4997
  r && /* @__PURE__ */ c(Lr, { children: /* @__PURE__ */ c(xr, {}) }),
@@ -5147,7 +5150,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5147
5150
  startHideTimeout: p,
5148
5151
  hoverBlockId: g,
5149
5152
  isModalVisible: y
5150
- } = dn(), { setPositionBlock: h } = ne(), [m, _] = A.useState(!1), [C, v] = A.useState(!1), [k, S] = A.useState(!1), [x, b] = A.useState(!1), [N, O] = A.useState(null), z = A.useRef(null), { attributes: $, listeners: T, setNodeRef: P, transform: M, transition: W } = fa({
5153
+ } = dn(), { setPositionBlock: h } = ne(), [m, _] = A.useState(!1), [S, v] = A.useState(!1), [k, C] = A.useState(!1), [x, b] = A.useState(!1), [N, O] = A.useState(null), z = A.useRef(null), { attributes: $, listeners: T, setNodeRef: P, transform: M, transition: W } = fa({
5151
5154
  id: e
5152
5155
  }), oe = {
5153
5156
  transform: Ot.Transform.toString(M),
@@ -5166,7 +5169,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5166
5169
  }), y ? p() : l();
5167
5170
  };
5168
5171
  return A.useEffect(() => {
5169
- S(!1), _(!1), v(!1), b(!1);
5172
+ C(!1), _(!1), v(!1), b(!1);
5170
5173
  }, [o]), A.useEffect(() => {
5171
5174
  y || (v(!1), _(!1));
5172
5175
  }, [y]), /* @__PURE__ */ w(
@@ -5212,7 +5215,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5212
5215
  "div",
5213
5216
  {
5214
5217
  className: E(ee.addTop, {
5215
- [ee.visible]: C
5218
+ [ee.visible]: S
5216
5219
  }),
5217
5220
  onMouseEnter: () => {
5218
5221
  v(!0);
@@ -5267,12 +5270,12 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5267
5270
  onClick: (F) => xe(F),
5268
5271
  onMouseEnter: () => {
5269
5272
  const F = setTimeout(() => {
5270
- o || S(!0);
5273
+ o || C(!0);
5271
5274
  }, 200);
5272
5275
  O(F);
5273
5276
  },
5274
5277
  onMouseLeave: () => {
5275
- N && clearTimeout(N), S(!1);
5278
+ N && clearTimeout(N), C(!1);
5276
5279
  },
5277
5280
  children: [
5278
5281
  /* @__PURE__ */ c(
@@ -5343,9 +5346,9 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5343
5346
  y(!0);
5344
5347
  }, m = (_) => {
5345
5348
  y(!1);
5346
- const { active: C, over: v } = _;
5347
- if (v && C.id !== v.id && a && a[i]) {
5348
- const k = a[i].path, S = e[k].order, x = S.indexOf(C.id), b = S.indexOf(v.id);
5349
+ const { active: S, over: v } = _;
5350
+ if (v && S.id !== v.id && a && a[i]) {
5351
+ const k = a[i].path, C = e[k].order, x = C.indexOf(S.id), b = C.indexOf(v.id);
5349
5352
  x !== -1 && b !== -1 && o(k, x, b);
5350
5353
  }
5351
5354
  };
@@ -5363,7 +5366,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5363
5366
  {
5364
5367
  items: e[a[i].path].order,
5365
5368
  strategy: ra,
5366
- children: e[a[i].path].order.map((_, C) => /* @__PURE__ */ c(
5369
+ children: e[a[i].path].order.map((_, S) => /* @__PURE__ */ c(
5367
5370
  cl,
5368
5371
  {
5369
5372
  id: _,
@@ -5371,7 +5374,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5371
5374
  e[a[i].path].data[_].name,
5372
5375
  u
5373
5376
  ),
5374
- index: C,
5377
+ index: S,
5375
5378
  onClick: f,
5376
5379
  isDragging: g,
5377
5380
  icon: Yn[e[a[i].path].data[_].name]
@@ -5555,8 +5558,8 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5555
5558
  colorChange: u,
5556
5559
  setIsGradientActive: f,
5557
5560
  setIsBlockSettings: p
5558
- } = jo(), { updateColor: g } = X(), y = (_, C) => (v) => {
5559
- g(_, C, v);
5561
+ } = jo(), { updateColor: g } = X(), y = (_, S) => (v) => {
5562
+ g(_, S, v);
5560
5563
  };
5561
5564
  A.useEffect(() => {
5562
5565
  const _ = () => {
@@ -5569,11 +5572,11 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5569
5572
  };
5570
5573
  }, []);
5571
5574
  const h = (_) => {
5572
- const C = t.split("/")[0], v = C.split(" ")[0].toLowerCase(), k = C.split(" ")[1].toLowerCase();
5575
+ const S = t.split("/")[0], v = S.split(" ")[0].toLowerCase(), k = S.split(" ")[1].toLowerCase();
5573
5576
  _.stopPropagation(), i(!0), d(u), a((b) => y(k, v)(b)), s(n), l(n), p(!0), f(k === "surface");
5574
- const { top: S, left: x } = jr(_, 550, 288, 10, 20, 230, 80);
5577
+ const { top: C, left: x } = jr(_, 550, 288, 10, 20, 230, 80);
5575
5578
  r({
5576
- top: k === "surface" ? S : S + 125,
5579
+ top: k === "surface" ? C : C + 125,
5577
5580
  left: x - 200
5578
5581
  });
5579
5582
  };
@@ -5671,10 +5674,10 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5671
5674
  // setFooter,
5672
5675
  // setAnnouncement,
5673
5676
  header: _,
5674
- footer: C,
5677
+ footer: S,
5675
5678
  announcement: v,
5676
5679
  isLoadingLayers: k
5677
- } = ne(), { currentPage: S, pages: x } = J(), { past: b, future: N } = Po();
5680
+ } = ne(), { currentPage: C, pages: x } = J(), { past: b, future: N } = Po();
5678
5681
  function O(T = !1) {
5679
5682
  if (x && d && h && !["header", "footer", "announcement"].includes(h) && !T) {
5680
5683
  const P = {
@@ -5682,8 +5685,8 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5682
5685
  };
5683
5686
  Object.keys(d.blockSettings).filter((M) => !["displayName", "isAddable"].includes(M)).map((M) => {
5684
5687
  P.blockSettings[M] = d.blockSettings[M];
5685
- }), y(x[S].path, h, {
5686
- name: p[x[S].path].data[h].name,
5688
+ }), y(x[C].path, h, {
5689
+ name: p[x[C].path].data[h].name,
5687
5690
  value: P
5688
5691
  });
5689
5692
  }
@@ -5696,7 +5699,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5696
5699
  }
5697
5700
  function z(T) {
5698
5701
  var oe;
5699
- if (!x || !S || !T) return null;
5702
+ if (!x || !C || !T) return null;
5700
5703
  if (T === "header") {
5701
5704
  const I = new o();
5702
5705
  return Object.keys(I.blockSettings).forEach((K) => {
@@ -5708,9 +5711,9 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5708
5711
  if (T === "footer") {
5709
5712
  const I = new r();
5710
5713
  return Object.keys(I.blockSettings).forEach((K) => {
5711
- I.blockSettings[K] = C == null ? void 0 : C.blockSettings[K];
5714
+ I.blockSettings[K] = S == null ? void 0 : S.blockSettings[K];
5712
5715
  }), Object.keys(I.blockColors).forEach((K) => {
5713
- I.blockColors[K] = C == null ? void 0 : C.blockColors[K];
5716
+ I.blockColors[K] = S == null ? void 0 : S.blockColors[K];
5714
5717
  }), I;
5715
5718
  }
5716
5719
  if (T === "announcement") {
@@ -5721,7 +5724,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5721
5724
  I.blockColors[K] = v == null ? void 0 : v.blockColors[K];
5722
5725
  }), I;
5723
5726
  }
5724
- const P = p[x[S].path];
5727
+ const P = p[x[C].path];
5725
5728
  if (!P || !P.data[T]) return null;
5726
5729
  const M = P.data[T];
5727
5730
  return !M || !i[M.name] ? null : new i[M.name]((oe = M.value) == null ? void 0 : oe.blockSettings);
@@ -5743,7 +5746,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5743
5746
  }), Object.keys(P.blockColors).filter((W) => !["displayName", "isAddable"].includes(W)).map((W) => {
5744
5747
  T.blockColors[W] = P.blockColors[W];
5745
5748
  });
5746
- const M = g(x[S].path, {
5749
+ const M = g(x[C].path, {
5747
5750
  name: a,
5748
5751
  value: T
5749
5752
  });
@@ -5757,7 +5760,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5757
5760
  if (!i)
5758
5761
  return "unknown name";
5759
5762
  if (!i[T])
5760
- return h === "header" ? _ == null ? void 0 : _.blockSettings.displayName : h === "footer" ? C == null ? void 0 : C.blockSettings.displayName : h === "announcement" ? v == null ? void 0 : v.blockSettings.displayName : "unknown name";
5763
+ return h === "header" ? _ == null ? void 0 : _.blockSettings.displayName : h === "footer" ? S == null ? void 0 : S.blockSettings.displayName : h === "announcement" ? v == null ? void 0 : v.blockSettings.displayName : "unknown name";
5761
5764
  const P = new i[T]();
5762
5765
  return !P.blockSettings || !P.blockSettings.displayName ? "unknown name" : P.blockSettings.displayName;
5763
5766
  }
@@ -6768,17 +6771,17 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
6768
6771
  editedPage: i,
6769
6772
  setEditedPage: a,
6770
6773
  pageContext: l
6771
- } = J(), { setIsOpen: d } = Hr(), { isAntistock: u } = Ho(), { createPage: f, updatePage: p } = ne(), [g, y] = A.useState(i ? t && ((z = t[i]) == null ? void 0 : z.path) : ""), [h, m] = A.useState(i ? t && (($ = t[i]) == null ? void 0 : $.name) : ""), [_, C] = A.useState(
6774
+ } = J(), { setIsOpen: d } = Hr(), { isAntistock: u } = Ho(), { createPage: f, updatePage: p } = ne(), [g, y] = A.useState(i ? t && ((z = t[i]) == null ? void 0 : z.path) : ""), [h, m] = A.useState(i ? t && (($ = t[i]) == null ? void 0 : $.name) : ""), [_, S] = A.useState(
6772
6775
  i ? t && ((T = t[i]) == null ? void 0 : T.seo) && ((M = (P = t[i]) == null ? void 0 : P.seo) == null ? void 0 : M.pageDescription) || "" : `${l.general.info.name} is powered by the ${u ? "Antistock.io" : "Billgang.com"} platform which allows them to sell their digital products online for free.`
6773
6776
  ), [v, k] = A.useState(
6774
6777
  i && t && (W = t[i]) != null && W.isPrivate ? "private" : "public"
6775
6778
  );
6776
- function S() {
6777
- y(""), m(""), C(""), k("public"), s(!1), a(null);
6779
+ function C() {
6780
+ y(""), m(""), S(""), k("public"), s(!1), a(null);
6778
6781
  }
6779
6782
  function x() {
6780
6783
  d(!1), setTimeout(() => {
6781
- S(), e(!1), d(!0);
6784
+ C(), e(!1), d(!0);
6782
6785
  }, 300);
6783
6786
  }
6784
6787
  A.useEffect(() => () => {
@@ -6857,7 +6860,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
6857
6860
  Ur,
6858
6861
  {
6859
6862
  label: "Description",
6860
- onChange: (I) => C(I),
6863
+ onChange: (I) => S(I),
6861
6864
  value: _,
6862
6865
  placeholder: `${l.general.info.name} is powered by the ${u ? "Antistock.io" : "Billgang.com"} platform which allows them to sell their digital products online for free.`,
6863
6866
  maxLength: 150