@billgangcom/theme-lib 1.124.7 → 1.125.0

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 (44) hide show
  1. package/dist/{builder-BGSGUvbw.js → builder-BK0JYGiC.js} +1186 -1170
  2. package/dist/builder-DG_YlZHR.cjs +43 -0
  3. package/dist/{builder-components-Ce-GvvbU.cjs → builder-components-CPKR2dhR.cjs} +2 -2
  4. package/dist/{builder-components-uIH6kfbb.js → builder-components-g5oMQefu.js} +293 -287
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +23 -23
  7. package/dist/{charge-BlJi0xCO.js → charge-CV4AQEC_.js} +3405 -3407
  8. package/dist/{charge-w4kIp324.cjs → charge-CYaXl_RD.cjs} +38 -38
  9. package/dist/{checkout-B32zo5ao.js → checkout-B9qJmekA.js} +5 -5
  10. package/dist/{checkout-CtUeXuTx.cjs → checkout-Bb1a58D4.cjs} +1 -1
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-CoCTJ62P.js → index-B4NVLzvB.js} +5 -5
  14. package/dist/{index-BNJDqT-0.js → index-BhSez1jo.js} +5 -5
  15. package/dist/{index-fnVhuwC_.cjs → index-C01pM2yU.cjs} +1 -1
  16. package/dist/{index-BRdmeZZl.cjs → index-CbF_oFj_.cjs} +1 -1
  17. package/dist/{index-TvJTXZf9.js → index-Cc--vowQ.js} +1 -1
  18. package/dist/{index-BTyOlaxG.cjs → index-DDxrB9fg.cjs} +1 -1
  19. package/dist/{index-BuxbXdLp.js → index-DVBnv_Xy.js} +5 -5
  20. package/dist/{index-DAKSB_F0.js → index-DkwoNeqf.js} +2 -2
  21. package/dist/{index-z_-C0z77.js → index-DmDPPcot.js} +5 -5
  22. package/dist/{index-B3eXZddH.cjs → index-EY0xBilX.cjs} +1 -1
  23. package/dist/{index-SyO84kfM.cjs → index-oTiFfxGm.cjs} +1 -1
  24. package/dist/{index-RtcNex9r.cjs → index-pDrfjE_u.cjs} +1 -1
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.es.js +6 -6
  27. package/dist/{order-Amk-Jg5s.cjs → order-D5jY3dbd.cjs} +1 -1
  28. package/dist/{order-Nvdr1Xpq.js → order-Dzc05Ain.js} +5 -5
  29. package/dist/src/abstractions/PageContext.d.ts +1 -0
  30. package/dist/src/builder/api/fetchData.d.ts +3 -4
  31. package/dist/{subscription-BtN0ZLhW.js → subscription-BMypjr4e.js} +5 -5
  32. package/dist/{subscription-Dke5SI7x.cjs → subscription-DbBXmikF.cjs} +1 -1
  33. package/dist/{ticket-DR1de6DJ.js → ticket-DE_zreWv.js} +9 -7
  34. package/dist/{ticket-DpkxSuxR.cjs → ticket-xoHN8vwB.cjs} +3 -3
  35. package/dist/{top-up-Cma1nW3z.cjs → top-up-CZnSdOQk.cjs} +1 -1
  36. package/dist/{top-up-D2COqVbe.js → top-up-DaJ8rpm3.js} +5 -5
  37. package/dist/{ui-components-CaI7HLsm.cjs → ui-components-1V4PUnGv.cjs} +1 -1
  38. package/dist/{ui-components-BQyCaYte.js → ui-components-BQc66P4w.js} +4 -4
  39. package/dist/ui.cjs.js +1 -1
  40. package/dist/ui.es.js +1 -1
  41. package/dist/{validation-CYN2gbtD.cjs → validation-D5oSu3j3.cjs} +1 -1
  42. package/dist/{validation-BBKKW104.js → validation-DznfDY3X.js} +5 -5
  43. package/package.json +1 -1
  44. package/dist/builder-BoZFTb7G.cjs +0 -43
@@ -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-BGSGUvbw.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-BQyCaYte.js";
5
- import "./charge-BlJi0xCO.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-BK0JYGiC.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-BQc66P4w.js";
5
+ import "./charge-CV4AQEC_.js";
6
6
  import { unstable_batchedUpdates as Vt, createPortal as Vr } from "react-dom";
7
- import "./ticket-DR1de6DJ.js";
7
+ import "./ticket-DE_zreWv.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;
@@ -359,28 +359,28 @@ function ds(e, t, n, {
359
359
  const u = t.length, f = e.length, p = Math.max(0, Math.min(o, f));
360
360
  let g = s, y = p;
361
361
  const h = a > 1 || l, m = h ? Array(f) : [];
362
- let b;
363
- for (; (b = e.indexOf(t, y)) > -1; ) {
364
- let _ = Kt(t, {
365
- currentLocation: b,
362
+ let _;
363
+ for (; (_ = e.indexOf(t, y)) > -1; ) {
364
+ let b = Kt(t, {
365
+ currentLocation: _,
366
366
  expectedLocation: p,
367
367
  distance: r,
368
368
  ignoreLocation: d
369
369
  });
370
- if (g = Math.min(_, g), y = b + u, h) {
370
+ if (g = Math.min(b, g), y = _ + u, h) {
371
371
  let N = 0;
372
372
  for (; N < u; )
373
- m[b + N] = 1, N += 1;
373
+ m[_ + N] = 1, N += 1;
374
374
  }
375
375
  }
376
376
  y = -1;
377
- let C = [], v = 1, k = u + f;
378
- const x = 1 << u - 1;
379
- for (let _ = 0; _ < u; _ += 1) {
377
+ let S = [], v = 1, k = u + f;
378
+ const C = 1 << u - 1;
379
+ for (let b = 0; b < u; b += 1) {
380
380
  let N = 0, O = k;
381
381
  for (; N < O; )
382
382
  Kt(t, {
383
- errors: _,
383
+ errors: b,
384
384
  currentLocation: p + O,
385
385
  expectedLocation: p,
386
386
  distance: r,
@@ -388,11 +388,11 @@ function ds(e, t, n, {
388
388
  }) <= g ? N = O : k = O, O = Math.floor((k - N) / 2 + N);
389
389
  k = O;
390
390
  let z = Math.max(1, p - O + 1), $ = i ? f : Math.min(p + O, f) + u, T = Array($ + 2);
391
- T[$ + 1] = (1 << _) - 1;
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, _ && (T[M] |= (C[M + 1] | C[M]) << 1 | 1 | C[M + 1]), T[M] & x && (v = Kt(t, {
395
- errors: _,
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
+ errors: b,
396
396
  currentLocation: W,
397
397
  expectedLocation: p,
398
398
  distance: r,
@@ -404,25 +404,25 @@ function ds(e, t, n, {
404
404
  }
405
405
  }
406
406
  if (Kt(t, {
407
- errors: _ + 1,
407
+ errors: b + 1,
408
408
  currentLocation: p,
409
409
  expectedLocation: p,
410
410
  distance: r,
411
411
  ignoreLocation: d
412
412
  }) > g)
413
413
  break;
414
- C = T;
414
+ S = T;
415
415
  }
416
- const S = {
416
+ const x = {
417
417
  isMatch: y >= 0,
418
418
  // Count exact matches (those with a score of 0) to be "almost" exact
419
419
  score: Math.max(1e-3, v)
420
420
  };
421
421
  if (h) {
422
- const _ = us(m, a);
423
- _.length ? l && (S.indices = _) : S.isMatch = !1;
422
+ const b = us(m, a);
423
+ b.length ? l && (x.indices = b) : x.isMatch = !1;
424
424
  }
425
- return S;
425
+ return x;
426
426
  }
427
427
  function hs(e) {
428
428
  let t = {};
@@ -494,9 +494,9 @@ class Qo {
494
494
  ignoreLocation: u
495
495
  } = this.options;
496
496
  let f = [], p = 0, g = !1;
497
- this.chunks.forEach(({ pattern: h, alphabet: m, startIndex: b }) => {
498
- const { isMatch: C, score: v, indices: k } = ds(t, h, m, {
499
- location: s + b,
497
+ this.chunks.forEach(({ pattern: h, alphabet: m, startIndex: _ }) => {
498
+ const { isMatch: S, score: v, indices: k } = ds(t, h, m, {
499
+ location: s + _,
500
500
  distance: i,
501
501
  threshold: a,
502
502
  findAllMatches: l,
@@ -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,
@@ -801,11 +801,11 @@ class Ss {
801
801
  const f = n[d];
802
802
  a.length = 0, i = 0;
803
803
  for (let p = 0, g = f.length; p < g; p += 1) {
804
- const y = f[p], { isMatch: h, indices: m, score: b } = y.search(t);
804
+ const y = f[p], { isMatch: h, indices: m, score: _ } = y.search(t);
805
805
  if (h) {
806
- if (i += 1, l += b, o) {
807
- const C = y.constructor.type;
808
- Cs.has(C) ? a = [...a, ...m] : a.push(m);
806
+ if (i += 1, l += _, o) {
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;
@@ -1955,18 +1955,18 @@ class fr {
1955
1955
  } = o.current;
1956
1956
  for (const h of y) {
1957
1957
  const m = t.code, {
1958
- isTop: b,
1959
- isRight: C,
1958
+ isTop: _,
1959
+ isRight: S,
1960
1960
  isLeft: v,
1961
1961
  isBottom: k,
1962
- maxScroll: x,
1963
- minScroll: S
1964
- } = ur(h), _ = ci(h), N = {
1965
- x: Math.min(m === L.Right ? _.right - _.width / 2 : _.right, Math.max(m === L.Right ? _.left : _.left + _.width / 2, f.x)),
1966
- y: Math.min(m === L.Down ? _.bottom - _.height / 2 : _.bottom, Math.max(m === L.Down ? _.top : _.top + _.height / 2, f.y))
1967
- }, O = m === L.Right && !C || m === L.Left && !v, z = m === L.Down && !k || m === L.Up && !b;
1962
+ maxScroll: C,
1963
+ minScroll: x
1964
+ } = ur(h), b = ci(h), N = {
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
+ 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 && !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 && $ <= x.x || m === L.Left && $ >= S.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 - x.x : h.scrollLeft - S.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 && $ <= x.y || m === L.Up && $ >= S.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 - x.y : h.scrollTop - S.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
  });
@@ -2293,10 +2293,10 @@ function yi(e) {
2293
2293
  }), [y, h] = Ts(), m = V({
2294
2294
  x: 0,
2295
2295
  y: 0
2296
- }), b = V({
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 ? {
@@ -2309,39 +2309,39 @@ function yi(e) {
2309
2309
  return r;
2310
2310
  }
2311
2311
  }, [n, r, l]), v = V(null), k = te(() => {
2312
- const S = v.current;
2313
- if (!S)
2312
+ const x = v.current;
2313
+ if (!x)
2314
2314
  return;
2315
- const _ = m.current.x * b.current.x, N = m.current.y * b.current.y;
2316
- S.scrollBy(_, N);
2317
- }, []), x = H(() => a === ln.TreeOrder ? [...d].reverse() : d, [a, d]);
2315
+ const b = m.current.x * _.current.x, N = m.current.y * _.current.y;
2316
+ x.scrollBy(b, N);
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 S of x) {
2325
- if ((o == null ? void 0 : o(S)) === !1)
2324
+ for (const x of C) {
2325
+ if ((o == null ? void 0 : o(x)) === !1)
2326
2326
  continue;
2327
- const _ = d.indexOf(S), N = u[_];
2327
+ const b = d.indexOf(x), N = u[b];
2328
2328
  if (!N)
2329
2329
  continue;
2330
2330
  const {
2331
2331
  direction: O,
2332
2332
  speed: z
2333
- } = ai(S, 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) {
2337
- h(), v.current = S, y(k, i), m.current = z, b.current = O;
2337
+ h(), v.current = x, y(k, i), m.current = z, _.current = O;
2338
2338
  return;
2339
2339
  }
2340
2340
  }
2341
2341
  m.current = {
2342
2342
  x: 0,
2343
2343
  y: 0
2344
- }, b.current = {
2344
+ }, _.current = {
2345
2345
  x: 0,
2346
2346
  y: 0
2347
2347
  }, h();
@@ -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
- x,
2363
+ C,
2364
2364
  u,
2365
2365
  // eslint-disable-next-line react-hooks/exhaustive-deps
2366
2366
  JSON.stringify(p)
@@ -2439,26 +2439,26 @@ function ki(e, t) {
2439
2439
  frequency: a,
2440
2440
  measure: l,
2441
2441
  strategy: d
2442
- } = r, u = V(e), f = m(), p = Rt(f), g = te(function(b) {
2443
- b === void 0 && (b = []), !p.current && i((C) => C === null ? b : C.concat(b.filter((v) => !C.includes(v))));
2444
- }, [p]), y = V(null), h = zt((b) => {
2442
+ } = r, u = V(e), f = m(), p = Rt(f), g = te(function(_) {
2443
+ _ === void 0 && (_ = []), !p.current && i((S) => S === null ? _ : S.concat(_.filter((v) => !S.includes(v))));
2444
+ }, [p]), y = V(null), h = zt((_) => {
2445
2445
  if (f && !n)
2446
2446
  return ko;
2447
- if (!b || b === ko || u.current !== e || s != null) {
2448
- const C = /* @__PURE__ */ new Map();
2447
+ if (!_ || _ === ko || u.current !== e || s != null) {
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, x = k ? new no(l(k), k) : null;
2457
- v.rect.current = x, x && C.set(v.id, x);
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
- return b;
2461
+ return _;
2462
2462
  }, [e, s, n, f, l]);
2463
2463
  return U(() => {
2464
2464
  u.current = e;
@@ -3039,37 +3039,37 @@ 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, b] = h, [C, v] = js(), [k, x] = he(Xe.Uninitialized), S = 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
- active: _,
3044
+ active: b,
3045
3045
  nodes: N,
3046
3046
  translate: O
3047
3047
  },
3048
3048
  droppable: {
3049
3049
  containers: z
3050
3050
  }
3051
- } = m, $ = _ != null ? N.get(_) : null, T = V({
3051
+ } = m, $ = b != null ? N.get(b) : null, T = V({
3052
3052
  initial: null,
3053
3053
  translated: null
3054
3054
  }), P = H(() => {
3055
3055
  var Z;
3056
- return _ != null ? {
3057
- id: _,
3056
+ return b != null ? {
3057
+ id: b,
3058
3058
  // It's possible for the active node to unmount while dragging
3059
3059
  data: (Z = $ == null ? void 0 : $.data) != null ? Z : Li,
3060
3060
  rect: T
3061
3061
  } : null;
3062
- }, [_, $]), M = V(null), [W, oe] = he(null), [I, K] = he(null), ve = Rt(y, Object.values(y)), ze = jt("DndDescribedBy", i), st = H(() => z.getEnabled(), [z]), Q = Vi(p), {
3062
+ }, [b, $]), M = V(null), [W, oe] = he(null), [I, K] = he(null), ve = Rt(y, Object.values(y)), ze = jt("DndDescribedBy", i), st = H(() => z.getEnabled(), [z]), Q = Vi(p), {
3063
3063
  droppableRects: me,
3064
3064
  measureDroppableContainers: xe,
3065
3065
  measuringScheduled: Ze
3066
3066
  } = ki(st, {
3067
- dragging: S,
3067
+ dragging: x,
3068
3068
  dependencies: [O.x, O.y],
3069
3069
  config: Q.droppable
3070
- }), F = Si(N, _), it = H(() => I ? Fn(I) : null, [I]), je = Tr(), Me = Ai(F, Q.draggable.measure);
3070
+ }), F = Si(N, b), it = H(() => I ? Fn(I) : null, [I]), je = Tr(), Me = Ai(F, Q.draggable.measure);
3071
3071
  Ki({
3072
- activeNode: _ != null ? N.get(_) : null,
3072
+ activeNode: b != null ? N.get(b) : null,
3073
3073
  config: je.layoutShiftCompensation,
3074
3074
  initialRect: Me,
3075
3075
  measure: Q.draggable.measure
@@ -3090,7 +3090,7 @@ const Gi = /* @__PURE__ */ Rr(function(t) {
3090
3090
  scrollAdjustedTranslate: null
3091
3091
  }), at = z.getNodeFor((n = ke.current.over) == null ? void 0 : n.id), Re = $i({
3092
3092
  measure: Q.dragOverlay.measure
3093
- }), ct = (o = Re.nodeRef.current) != null ? o : F, lt = S ? (r = Re.rect) != null ? r : j : null, so = !!(Re.nodeRef.current && Re.rect), io = Bi(so ? null : j), pn = pr(ct ? ie(ct) : null), He = Ei(S ? at ?? F : null), Wt = Ri(He), Ut = Ui(g, {
3093
+ }), ct = (o = Re.nodeRef.current) != null ? o : F, lt = x ? (r = Re.rect) != null ? r : j : null, so = !!(Re.nodeRef.current && Re.rect), io = Bi(so ? null : j), pn = pr(ct ? ie(ct) : null), He = Ei(x ? at ?? F : null), Wt = Ri(He), Ut = Ui(g, {
3094
3094
  transform: {
3095
3095
  x: O.x - io.x,
3096
3096
  y: O.y - io.y,
@@ -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,18 +3179,18 @@ const Gi = /* @__PURE__ */ Rr(function(t) {
3179
3179
  }
3180
3180
  };
3181
3181
  Vt(() => {
3182
- Oe == null || Oe(St), x(Xe.Initializing), b({
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);
3190
3190
  });
3191
3191
  },
3192
3192
  onMove(q) {
3193
- b({
3193
+ _({
3194
3194
  type: G.DragMove,
3195
3195
  coordinates: q
3196
3196
  });
@@ -3221,13 +3221,13 @@ const Gi = /* @__PURE__ */ Rr(function(t) {
3221
3221
  }, q === G.DragEnd && typeof kt == "function" && await Promise.resolve(kt(Ke)) && (q = G.DragCancel);
3222
3222
  }
3223
3223
  M.current = null, Vt(() => {
3224
- b({
3224
+ _({
3225
3225
  type: q
3226
- }), x(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 && x(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
  });
@@ -3377,11 +3377,11 @@ const Gi = /* @__PURE__ */ Rr(function(t) {
3377
3377
  ariaDescribedById: {
3378
3378
  draggable: ze
3379
3379
  },
3380
- dispatch: b,
3380
+ dispatch: _,
3381
3381
  draggableNodes: N,
3382
3382
  over: We,
3383
3383
  measureDroppableContainers: xe
3384
- }), [I, fo, P, j, b, ze, N, We, xe]);
3384
+ }), [I, fo, P, j, _, ze, N, We, xe]);
3385
3385
  return A.createElement(rr.Provider, {
3386
3386
  value: v
3387
3387
  }, A.createElement(gn.Provider, {
@@ -3397,7 +3397,7 @@ const Gi = /* @__PURE__ */ Rr(function(t) {
3397
3397
  hiddenTextDescribedById: ze
3398
3398
  }));
3399
3399
  function Tr() {
3400
- const Z = (W == null ? void 0 : W.autoScrollEnabled) === !1, ae = typeof l == "object" ? l.enabled === !1 : l === !1, ce = S && !Z && !ae;
3400
+ const Z = (W == null ? void 0 : W.autoScrollEnabled) === !1, ae = typeof l == "object" ? l.enabled === !1 : l === !1, ce = x && !Z && !ae;
3401
3401
  return typeof l == "object" ? {
3402
3402
  ...l,
3403
3403
  enabled: ce
@@ -3425,14 +3425,14 @@ 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, b = nt(m ? mr : Yi), [C, v] = sn(), [k, x] = sn(), S = Mi(i, t), _ = 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
- data: _
3435
+ data: b
3436
3436
  }), () => {
3437
3437
  const O = f.get(t);
3438
3438
  O && O.key === s && f.delete(t);
@@ -3454,12 +3454,12 @@ function qi(e) {
3454
3454
  activeNodeRect: d,
3455
3455
  attributes: N,
3456
3456
  isDragging: m,
3457
- listeners: o ? void 0 : S,
3458
- node: C,
3457
+ listeners: o ? void 0 : x,
3458
+ node: S,
3459
3459
  over: p,
3460
3460
  setNodeRef: v,
3461
- setActivatorNodeRef: x,
3462
- transform: b
3461
+ setActivatorNodeRef: C,
3462
+ transform: _
3463
3463
  };
3464
3464
  }
3465
3465
  function Ji() {
@@ -3489,36 +3489,36 @@ function ea(e) {
3489
3489
  } = {
3490
3490
  ...Zi,
3491
3491
  ...r
3492
- }, b = Rt(h ?? o), C = te(
3492
+ }, _ = Rt(h ?? o), S = te(
3493
3493
  () => {
3494
3494
  if (!f.current) {
3495
3495
  f.current = !0;
3496
3496
  return;
3497
3497
  }
3498
3498
  g.current != null && clearTimeout(g.current), g.current = setTimeout(() => {
3499
- d(Array.isArray(b.current) ? b.current : [b.current]), g.current = null;
3499
+ d(Array.isArray(_.current) ? _.current : [_.current]), g.current = null;
3500
3500
  }, m);
3501
3501
  },
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]), [x, S] = sn(k), _ = Rt(t);
3509
+ }, [v]), [C, x] = sn(k), b = Rt(t);
3510
3510
  return U(() => {
3511
- !v || !x.current || (v.disconnect(), f.current = !1, v.observe(x.current));
3512
- }, [x, 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: x,
3519
+ node: C,
3520
3520
  rect: p,
3521
- data: _
3521
+ data: b
3522
3522
  }
3523
3523
  }), () => a({
3524
3524
  type: G.UnregisterDroppable,
@@ -3538,9 +3538,9 @@ function ea(e) {
3538
3538
  active: i,
3539
3539
  rect: p,
3540
3540
  isOver: (l == null ? void 0 : l.id) === o,
3541
- node: x,
3541
+ node: C,
3542
3542
  over: l,
3543
- setNodeRef: S
3543
+ setNodeRef: x
3544
3544
  };
3545
3545
  }
3546
3546
  function br(e, t, n) {
@@ -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((S) => typeof S == "object" && "id" in S ? S.id : S), [o]), y = i != null, h = i ? g.indexOf(i.id) : -1, m = d ? g.indexOf(d.id) : -1, b = V(g), C = !na(g, b.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(() => {
3663
- b.current = g;
3661
+ S && y && u(g);
3662
+ }, [S, g, y, u]), U(() => {
3663
+ _.current = g;
3664
3664
  }, [g]);
3665
- const x = 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: x
3681
+ value: C
3682
3682
  }, t);
3683
3683
  }
3684
3684
  const aa = (e) => {
@@ -3760,26 +3760,26 @@ function fa(e) {
3760
3760
  disableTransforms: y,
3761
3761
  sortedRects: h,
3762
3762
  overIndex: m,
3763
- useDragOverlay: b,
3764
- strategy: C
3765
- } = nt(wr), v = ga(o, g), k = u.indexOf(i), x = H(() => ({
3763
+ useDragOverlay: _,
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,
3769
3769
  items: u
3770
3770
  },
3771
3771
  ...r
3772
- }), [f, r, k, u]), S = H(() => u.slice(u.indexOf(i)), [u, i]), {
3773
- rect: _,
3772
+ }), [f, r, k, u]), x = H(() => u.slice(u.indexOf(i)), [u, i]), {
3773
+ rect: b,
3774
3774
  node: N,
3775
3775
  isOver: O,
3776
3776
  setNodeRef: z
3777
3777
  } = ea({
3778
3778
  id: i,
3779
- data: x,
3779
+ data: C,
3780
3780
  disabled: v.droppable,
3781
3781
  resizeObserverConfig: {
3782
- updateMeasurementsFor: S,
3782
+ updateMeasurementsFor: x,
3783
3783
  ...l
3784
3784
  }
3785
3785
  }), {
@@ -3795,13 +3795,13 @@ function fa(e) {
3795
3795
  transform: ze
3796
3796
  } = qi({
3797
3797
  id: i,
3798
- data: x,
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 = !b && 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,
@@ -3834,7 +3834,7 @@ function fa(e) {
3834
3834
  disabled: !ke,
3835
3835
  index: k,
3836
3836
  node: N,
3837
- rect: _
3837
+ rect: b
3838
3838
  });
3839
3839
  return U(() => {
3840
3840
  Q && j.current.newIndex !== je && (j.current.newIndex = je), f !== j.current.containerId && (j.current.containerId = f), u !== j.current.items && (j.current.items = u);
@@ -3853,8 +3853,8 @@ function fa(e) {
3853
3853
  active: $,
3854
3854
  activeIndex: p,
3855
3855
  attributes: M,
3856
- data: x,
3857
- rect: _,
3856
+ data: C,
3857
+ rect: b,
3858
3858
  index: k,
3859
3859
  newIndex: je,
3860
3860
  items: u,
@@ -4095,20 +4095,20 @@ const pa = "_header_17vny_1", va = "_left_17vny_14", ma = "_right_17vny_15", Xt
4095
4095
  setEditedPage: s,
4096
4096
  deletePage: i,
4097
4097
  setIsOpenSelectModal: a
4098
- } = J(), { deletePage: l, setCurrentBlock: d } = ne(), [u, f] = A.useState(null), { setTitle: p, setDescription: g, setOnConfirm: y } = un(), [h, m] = A.useState(!1), b = A.useRef(null);
4099
- Wr(b, () => {
4098
+ } = J(), { deletePage: l, setCurrentBlock: d } = ne(), [u, f] = A.useState(null), { setTitle: p, setDescription: g, setOnConfirm: y } = un(), [h, m] = A.useState(!1), _ = A.useRef(null);
4099
+ Wr(_, () => {
4100
4100
  h && m(!1);
4101
4101
  }), A.useEffect(() => {
4102
4102
  h ? a(!0) : setTimeout(() => {
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
  {
4110
4110
  className: be.pages,
4111
- ref: b,
4111
+ ref: _,
4112
4112
  children: [
4113
4113
  /* @__PURE__ */ w(
4114
4114
  "div",
@@ -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: (x) => {
4189
- x.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: (x) => {
4199
- x.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
- x.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,34 +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((x) => {
4385
- const S = Ja(x, h);
4386
- return g[x] && g[x].data && (S != null && S.path) ? {
4387
- id: S ? S.id : x,
4388
- name: S ? S.name : x,
4389
- path: S.path,
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
+ path: x.path,
4390
4390
  layout: {
4391
- ...g[x]
4391
+ ...g[C]
4392
4392
  },
4393
- neededProductIds: [...Nt("ProductId", Object.values(g[x].data))],
4394
- neededCategoryIds: [...Nt("CategoryId", Object.values(g[x].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[x].data))
4396
+ ...Nt("AnnouncementId", Object.values(g[C].data))
4397
4397
  ],
4398
- neededListingIds: [...Nt("ListingIds", Object.values(g[x].data))],
4399
- neededFaqIds: [...Nt("FaqsIds", Object.values(g[x].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[x].data),
4402
+ Object.values(g[C].data),
4403
4403
  y
4404
4404
  ),
4405
+ neededVouchCount: Object.values(g[C].data).some(
4406
+ (b) => b.name === "Vouches"
4407
+ ) ? 1e3 : void 0,
4408
+ includeLiveStats: Object.values(g[C].data).some(
4409
+ (b) => b.name === "LiveActivity"
4410
+ ),
4405
4411
  seo: {
4406
- pageTitle: S && S.seo && S.seo.pageTitle ? S.seo.pageTitle : "",
4407
- pageDescription: S && S.seo && S.seo.pageDescription ? S.seo.pageDescription : ""
4412
+ pageTitle: x && x.seo && x.seo.pageTitle ? x.seo.pageTitle : "",
4413
+ pageDescription: x && x.seo && x.seo.pageDescription ? x.seo.pageDescription : ""
4408
4414
  },
4409
- isPrivate: !!(S && S.visibility === "private")
4415
+ isPrivate: !!(x && x.visibility === "private")
4410
4416
  } : null;
4411
- }).filter((x) => x), v = {
4417
+ }).filter((C) => C), v = {
4412
4418
  settings: {
4413
4419
  ...o
4414
4420
  },
@@ -4418,7 +4424,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4418
4424
  }, { status: k } = await Ya("post", "save", {
4419
4425
  themeSettings: n,
4420
4426
  settings: v,
4421
- updatedPages: C
4427
+ updatedPages: S
4422
4428
  });
4423
4429
  l([
4424
4430
  ...d,
@@ -4430,10 +4436,10 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4430
4436
  ]), e(!1);
4431
4437
  }
4432
4438
  a(!0);
4433
- const b = setTimeout(() => {
4439
+ const _ = setTimeout(() => {
4434
4440
  a(!1);
4435
4441
  }, 2e3);
4436
- s(b);
4442
+ s(_);
4437
4443
  },
4438
4444
  disabled: t,
4439
4445
  type: "Primary",
@@ -4634,9 +4640,9 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4634
4640
  moveButton: Rc,
4635
4641
  deleteButton: Oc
4636
4642
  }, $c = () => {
4637
- var x;
4638
- 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 = (x = l == null ? void 0 : l[a]) == null ? void 0 : x.path, y = g ? n[g] : null, h = (y == null ? void 0 : y.order) || [], m = h.indexOf(e.id), b = (S) => {
4639
- S.stopPropagation(), m > 0 && g && (r(g, m, m - 1), t({
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) => {
4645
+ x.stopPropagation(), m > 0 && g && (r(g, m, m - 1), t({
4640
4646
  id: e.id,
4641
4647
  neededScroll: !0
4642
4648
  }), setTimeout(() => {
@@ -4645,8 +4651,8 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4645
4651
  neededScroll: !1
4646
4652
  });
4647
4653
  }, 100));
4648
- }, C = (S) => {
4649
- S.stopPropagation(), m < h.length - 1 && g && (r(g, m, m + 1), t({
4654
+ }, S = (x) => {
4655
+ x.stopPropagation(), m < h.length - 1 && g && (r(g, m, m + 1), t({
4650
4656
  id: e.id,
4651
4657
  neededScroll: !0
4652
4658
  }), setTimeout(() => {
@@ -4655,8 +4661,8 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4655
4661
  neededScroll: !1
4656
4662
  });
4657
4663
  }, 100));
4658
- }, v = (S) => {
4659
- S.stopPropagation(), g && s(g, e.id);
4664
+ }, v = (x) => {
4665
+ x.stopPropagation(), g && s(g, e.id);
4660
4666
  }, k = () => {
4661
4667
  g && (o(g, e.id), i(null), p(null), t({
4662
4668
  id: null,
@@ -4667,7 +4673,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4667
4673
  /* @__PURE__ */ c(
4668
4674
  "button",
4669
4675
  {
4670
- onClick: b,
4676
+ onClick: _,
4671
4677
  className: E(Be.button, Be.moveButton),
4672
4678
  disabled: m === 0,
4673
4679
  children: /* @__PURE__ */ c(R, { name: "ArrowUp" })
@@ -4676,7 +4682,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4676
4682
  /* @__PURE__ */ c(
4677
4683
  "button",
4678
4684
  {
4679
- onClick: C,
4685
+ onClick: S,
4680
4686
  className: E(Be.button, Be.moveButton),
4681
4687
  disabled: m === h.length - 1,
4682
4688
  children: /* @__PURE__ */ c(R, { name: "ArrowDown" })
@@ -4694,8 +4700,8 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4694
4700
  "button",
4695
4701
  {
4696
4702
  className: E(Be.button, Be.deleteButton),
4697
- onClick: (S) => {
4698
- S.stopPropagation(), d("Remove Block"), u(
4703
+ onClick: (x) => {
4704
+ x.stopPropagation(), d("Remove Block"), u(
4699
4705
  `Are you sure you want to delete ${(y == null ? void 0 : y.data[e.id].name) || "this"} block? Once you delete this block, any content visible will also be deleted. This is irreversible.`
4700
4706
  ), f(k);
4701
4707
  },
@@ -4717,12 +4723,12 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4717
4723
  currentBlock: l,
4718
4724
  setPositionBlock: d,
4719
4725
  announcement: u
4720
- } = ne(), { settings: f } = Je(), { currentPage: p, pages: g, pageContext: y } = J(), { activeBlock: h, setActiveBlock: m } = X(), { setError: b } = 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({});
4721
4727
  A.useEffect(() => {
4722
4728
  if (n.id && n.neededScroll && k.current[n.id]) {
4723
- const _ = k.current[n.id];
4724
- if (_ && e.current) {
4725
- const N = _.offsetTop;
4729
+ const b = k.current[n.id];
4730
+ if (b && e.current) {
4731
+ const N = b.offsetTop;
4726
4732
  e.current.scrollTo({
4727
4733
  top: N - 30,
4728
4734
  behavior: "smooth"
@@ -4730,33 +4736,33 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4730
4736
  }
4731
4737
  }
4732
4738
  }, [n, e]);
4733
- const x = rt();
4739
+ const C = rt();
4734
4740
  A.useEffect(() => {
4735
4741
  v.current = n.id;
4736
4742
  }, [n.id]);
4737
- const S = (_) => {
4738
- if (!_ || !_.name)
4739
- return b({
4743
+ const x = (b) => {
4744
+ if (!b || !b.name)
4745
+ return _({
4740
4746
  message: "Block or block.name is undefined.",
4741
4747
  failedSettings: !1,
4742
4748
  failedThemeSettings: !1,
4743
4749
  failedPageIds: g && g[p].id ? [g[p].id] : []
4744
4750
  }), /* @__PURE__ */ c(nn, { error: "Block or block.name is undefined." });
4745
- if (!r || !r[_.name])
4746
- return b({
4751
+ if (!r || !r[b.name])
4752
+ return _({
4747
4753
  message: 'Block "${block.name}" does not exist in blocks.',
4748
4754
  failedSettings: !1,
4749
4755
  failedThemeSettings: !1,
4750
4756
  failedPageIds: g && g[p].id ? [g[p].id] : []
4751
- }), /* @__PURE__ */ c(nn, { error: `Block "${_.name}" does not exist in blocks.` });
4752
- const N = new r[_.name]();
4753
- return _.value && Object.assign(N, _.value), N.renderBlock(f, y);
4757
+ }), /* @__PURE__ */ c(nn, { error: `Block "${b.name}" does not exist in blocks.` });
4758
+ const N = new r[b.name]();
4759
+ return b.value && Object.assign(N, b.value), N.renderBlock(f, y);
4754
4760
  };
4755
4761
  return /* @__PURE__ */ w(
4756
4762
  "div",
4757
4763
  {
4758
- onClick: (_) => {
4759
- _.stopPropagation();
4764
+ onClick: (b) => {
4765
+ b.stopPropagation();
4760
4766
  },
4761
4767
  className: Ge.content,
4762
4768
  style: {
@@ -4768,17 +4774,17 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4768
4774
  children: [
4769
4775
  u && /* @__PURE__ */ c(Ko, {}),
4770
4776
  /* @__PURE__ */ c(Vo, {}),
4771
- /* @__PURE__ */ c("div", { className: Ge.main, children: g && g[p] && i[g[p].path] && i[g[p].path].data && i[g[p].path].order.map((_) => /* @__PURE__ */ w(
4777
+ /* @__PURE__ */ c("div", { className: Ge.main, children: g && g[p] && i[g[p].path] && i[g[p].path].data && i[g[p].path].order.map((b) => /* @__PURE__ */ w(
4772
4778
  "div",
4773
4779
  {
4774
- ref: (N) => k.current[_] = N,
4780
+ ref: (N) => k.current[b] = N,
4775
4781
  onClick: (N) => {
4776
- N.stopPropagation(), C(null), h && m(null), t({
4777
- id: _,
4782
+ N.stopPropagation(), S(null), h && m(null), t({
4783
+ id: b,
4778
4784
  neededScroll: !0
4779
4785
  }), setTimeout(() => {
4780
4786
  t({
4781
- id: _,
4787
+ id: b,
4782
4788
  neededScroll: !1
4783
4789
  });
4784
4790
  }, 100), a(null), l ? setTimeout(() => {
@@ -4787,7 +4793,7 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4787
4793
  },
4788
4794
  onMouseEnter: (N) => {
4789
4795
  N.stopPropagation(), n.neededScroll || t({
4790
- id: _,
4796
+ id: b,
4791
4797
  neededScroll: !1
4792
4798
  });
4793
4799
  },
@@ -4799,43 +4805,43 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4799
4805
  },
4800
4806
  className: E(Ge.block),
4801
4807
  children: [
4802
- (n.id === _ || l === _) && /* @__PURE__ */ c("div", { className: Ge.active }),
4803
- (n.id === _ || l === _) && /* @__PURE__ */ c("div", { className: Ge.name, children: tt(
4804
- i[g[p].path].data[_].name,
4808
+ (n.id === b || l === b) && /* @__PURE__ */ c("div", { className: Ge.active }),
4809
+ (n.id === b || l === b) && /* @__PURE__ */ c("div", { className: Ge.name, children: tt(
4810
+ i[g[p].path].data[b].name,
4805
4811
  s
4806
4812
  ) }),
4807
- (n.id === _ || l === _) && tt(
4808
- i[g[p].path].data[_].name,
4813
+ (n.id === b || l === b) && tt(
4814
+ i[g[p].path].data[b].name,
4809
4815
  s
4810
4816
  ) !== "unknown name" && /* @__PURE__ */ c($c, {}),
4811
- (n.id === _ || l === _) && tt(
4812
- i[g[p].path].data[_].name,
4817
+ (n.id === b || l === b) && tt(
4818
+ i[g[p].path].data[b].name,
4813
4819
  s
4814
4820
  ) !== "unknown name" && /* @__PURE__ */ c("div", { className: Ge.addSection, children: /* @__PURE__ */ c(
4815
4821
  qe,
4816
4822
  {
4817
4823
  type: "Primary",
4818
4824
  onClick: (N) => {
4819
- N.stopPropagation(), d(_, !0), a(null), t({
4825
+ N.stopPropagation(), d(b, !0), a(null), t({
4820
4826
  id: null,
4821
4827
  neededScroll: !1
4822
- }), C(null), x("/admin/builder/add");
4828
+ }), S(null), C("/admin/builder/add");
4823
4829
  },
4824
4830
  children: "Add Section"
4825
4831
  }
4826
4832
  ) }),
4827
- (n.id === _ || l === _) && tt(
4828
- i[g[p].path].data[_].name,
4833
+ (n.id === b || l === b) && tt(
4834
+ i[g[p].path].data[b].name,
4829
4835
  s
4830
4836
  ) !== "unknown name" && /* @__PURE__ */ c("div", { className: E(Ge.addSection, Ge.addSectionTop), children: /* @__PURE__ */ c(
4831
4837
  qe,
4832
4838
  {
4833
4839
  type: "Primary",
4834
4840
  onClick: (N) => {
4835
- N.stopPropagation(), d(_, !1), a(null), t({
4841
+ N.stopPropagation(), d(b, !1), a(null), t({
4836
4842
  id: null,
4837
4843
  neededScroll: !1
4838
- }), C(null), x("/admin/builder/add");
4844
+ }), S(null), C("/admin/builder/add");
4839
4845
  },
4840
4846
  children: "Add Section"
4841
4847
  }
@@ -4843,13 +4849,13 @@ const Qa = ({ setIsLoading: e, isLoading: t }) => {
4843
4849
  r && /* @__PURE__ */ c(
4844
4850
  Xn,
4845
4851
  {
4846
- render: S,
4847
- block: i[g[p].path].data[_]
4852
+ render: x,
4853
+ block: i[g[p].path].data[b]
4848
4854
  }
4849
4855
  )
4850
4856
  ]
4851
4857
  },
4852
- _
4858
+ b
4853
4859
  )) }),
4854
4860
  /* @__PURE__ */ c(Uo, {})
4855
4861
  ]
@@ -4884,10 +4890,10 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
4884
4890
  function g(m) {
4885
4891
  n(""), r(m), s("keyBlock");
4886
4892
  }
4887
- function y(m, b) {
4888
- const C = window.innerHeight, v = 400, k = 10;
4889
- let x = b.clientY - 120;
4890
- x + v > C && (x = C - v - k), x < k && (x = k), i || s("keyBlock"), l(m, "keyBlock"), u(), p(x);
4893
+ function y(m, _) {
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);
4891
4897
  }
4892
4898
  function h() {
4893
4899
  a ? f("keyBlock") : d("keyBlock"), p(null);
@@ -4976,8 +4982,8 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
4976
4982
  return "100%";
4977
4983
  }
4978
4984
  }
4979
- const { isOpenSelectModal: m } = J(), b = A.useRef(null), C = (v) => {
4980
- b.current && (b.current.scrollTop += v.deltaY);
4985
+ const { isOpenSelectModal: m } = J(), _ = A.useRef(null), S = (v) => {
4986
+ _.current && (_.current.scrollTop += v.deltaY);
4981
4987
  };
4982
4988
  return /* @__PURE__ */ w(
4983
4989
  "div",
@@ -4985,7 +4991,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
4985
4991
  className: Dt.preview,
4986
4992
  style: { zIndex: d && !m ? 5e3 : 500 },
4987
4993
  onWheel: (v) => {
4988
- v.stopPropagation(), C(v);
4994
+ v.stopPropagation(), S(v);
4989
4995
  },
4990
4996
  children: [
4991
4997
  r && /* @__PURE__ */ c(Lr, { children: /* @__PURE__ */ c(xr, {}) }),
@@ -5044,7 +5050,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5044
5050
  style: {
5045
5051
  width: y()
5046
5052
  },
5047
- children: /* @__PURE__ */ c(Pc, { scrollableRef: b })
5053
+ children: /* @__PURE__ */ c(Pc, { scrollableRef: _ })
5048
5054
  }
5049
5055
  ) : /* @__PURE__ */ c("div", { className: Dt.loading, children: /* @__PURE__ */ c(ot, {}) })
5050
5056
  }
@@ -5144,7 +5150,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5144
5150
  startHideTimeout: p,
5145
5151
  hoverBlockId: g,
5146
5152
  isModalVisible: y
5147
- } = dn(), { setPositionBlock: h } = ne(), [m, b] = A.useState(!1), [C, v] = A.useState(!1), [k, x] = A.useState(!1), [S, _] = 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({
5148
5154
  id: e
5149
5155
  }), oe = {
5150
5156
  transform: Ot.Transform.toString(M),
@@ -5163,9 +5169,9 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5163
5169
  }), y ? p() : l();
5164
5170
  };
5165
5171
  return A.useEffect(() => {
5166
- x(!1), b(!1), v(!1), _(!1);
5172
+ C(!1), _(!1), v(!1), b(!1);
5167
5173
  }, [o]), A.useEffect(() => {
5168
- y || (v(!1), b(!1));
5174
+ y || (v(!1), _(!1));
5169
5175
  }, [y]), /* @__PURE__ */ w(
5170
5176
  "div",
5171
5177
  {
@@ -5209,7 +5215,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5209
5215
  "div",
5210
5216
  {
5211
5217
  className: E(ee.addTop, {
5212
- [ee.visible]: C
5218
+ [ee.visible]: S
5213
5219
  }),
5214
5220
  onMouseEnter: () => {
5215
5221
  v(!0);
@@ -5224,12 +5230,12 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5224
5230
  onClick: (F) => xe(F, !1),
5225
5231
  onMouseEnter: () => {
5226
5232
  const F = setTimeout(() => {
5227
- o || _(!0);
5233
+ o || b(!0);
5228
5234
  }, 200);
5229
5235
  O(F);
5230
5236
  },
5231
5237
  onMouseLeave: () => {
5232
- N && clearTimeout(N), _(!1);
5238
+ N && clearTimeout(N), b(!1);
5233
5239
  },
5234
5240
  children: [
5235
5241
  /* @__PURE__ */ c(
@@ -5239,7 +5245,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5239
5245
  fill: "#fff"
5240
5246
  }
5241
5247
  ),
5242
- S && /* @__PURE__ */ c(vt, { text: "Click to add a section" })
5248
+ x && /* @__PURE__ */ c(vt, { text: "Click to add a section" })
5243
5249
  ]
5244
5250
  }
5245
5251
  )
@@ -5252,10 +5258,10 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5252
5258
  [ee.visible]: m
5253
5259
  }),
5254
5260
  onMouseEnter: () => {
5255
- b(!0);
5261
+ _(!0);
5256
5262
  },
5257
5263
  onMouseLeave: () => {
5258
- b(!1);
5264
+ _(!1);
5259
5265
  },
5260
5266
  children: /* @__PURE__ */ w(
5261
5267
  "button",
@@ -5264,12 +5270,12 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5264
5270
  onClick: (F) => xe(F),
5265
5271
  onMouseEnter: () => {
5266
5272
  const F = setTimeout(() => {
5267
- o || x(!0);
5273
+ o || C(!0);
5268
5274
  }, 200);
5269
5275
  O(F);
5270
5276
  },
5271
5277
  onMouseLeave: () => {
5272
- N && clearTimeout(N), x(!1);
5278
+ N && clearTimeout(N), C(!1);
5273
5279
  },
5274
5280
  children: [
5275
5281
  /* @__PURE__ */ c(
@@ -5327,8 +5333,8 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5327
5333
  );
5328
5334
  }, ll = () => {
5329
5335
  const { blocks: e, setCurrentBlock: t, currentBlock: n, moveBlock: o, isLoadingLayers: r, announcement: s } = ne(), { currentPage: i, pages: a } = J(), { setMouseOverModal: l, setHoverBlockId: d } = dn(), { sourceBlocks: u } = se();
5330
- function f(b) {
5331
- t(b), l(!1), d(null);
5336
+ function f(_) {
5337
+ t(_), l(!1), d(null);
5332
5338
  }
5333
5339
  const p = Ks(
5334
5340
  Vs(ro, {
@@ -5338,12 +5344,12 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5338
5344
  })
5339
5345
  ), [g, y] = A.useState(!1), h = () => {
5340
5346
  y(!0);
5341
- }, m = (b) => {
5347
+ }, m = (_) => {
5342
5348
  y(!1);
5343
- const { active: C, over: v } = b;
5344
- if (v && C.id !== v.id && a && a[i]) {
5345
- const k = a[i].path, x = e[k].order, S = x.indexOf(C.id), _ = x.indexOf(v.id);
5346
- S !== -1 && _ !== -1 && o(k, S, _);
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);
5352
+ x !== -1 && b !== -1 && o(k, x, b);
5347
5353
  }
5348
5354
  };
5349
5355
  return /* @__PURE__ */ c("div", { className: ee.layers, children: r ? /* @__PURE__ */ c("div", { className: ee.loader, children: /* @__PURE__ */ c(ot, {}) }) : /* @__PURE__ */ w(Pe, { children: [
@@ -5360,20 +5366,20 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5360
5366
  {
5361
5367
  items: e[a[i].path].order,
5362
5368
  strategy: ra,
5363
- children: e[a[i].path].order.map((b, C) => /* @__PURE__ */ c(
5369
+ children: e[a[i].path].order.map((_, S) => /* @__PURE__ */ c(
5364
5370
  cl,
5365
5371
  {
5366
- id: b,
5372
+ id: _,
5367
5373
  name: tt(
5368
- e[a[i].path].data[b].name,
5374
+ e[a[i].path].data[_].name,
5369
5375
  u
5370
5376
  ),
5371
- index: C,
5377
+ index: S,
5372
5378
  onClick: f,
5373
5379
  isDragging: g,
5374
- icon: Yn[e[a[i].path].data[b].name]
5380
+ icon: Yn[e[a[i].path].data[_].name]
5375
5381
  },
5376
- b
5382
+ _
5377
5383
  ))
5378
5384
  }
5379
5385
  )
@@ -5552,30 +5558,30 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5552
5558
  colorChange: u,
5553
5559
  setIsGradientActive: f,
5554
5560
  setIsBlockSettings: p
5555
- } = jo(), { updateColor: g } = X(), y = (b, C) => (v) => {
5556
- g(b, C, v);
5561
+ } = jo(), { updateColor: g } = X(), y = (_, S) => (v) => {
5562
+ g(_, S, v);
5557
5563
  };
5558
5564
  A.useEffect(() => {
5559
- const b = () => {
5565
+ const _ = () => {
5560
5566
  i(!1), o(null), s(n), a(() => {
5561
5567
  }), l(n), d(() => {
5562
5568
  });
5563
5569
  };
5564
- return document.body.addEventListener("click", b), () => {
5565
- document.body.removeEventListener("click", b);
5570
+ return document.body.addEventListener("click", _), () => {
5571
+ document.body.removeEventListener("click", _);
5566
5572
  };
5567
5573
  }, []);
5568
- const h = (b) => {
5569
- const C = t.split("/")[0], v = C.split(" ")[0].toLowerCase(), k = C.split(" ")[1].toLowerCase();
5570
- b.stopPropagation(), i(!0), d(u), a((_) => y(k, v)(_)), s(n), l(n), p(!0), f(k === "surface");
5571
- const { top: x, left: S } = jr(b, 550, 288, 10, 20, 230, 80);
5574
+ const h = (_) => {
5575
+ const S = t.split("/")[0], v = S.split(" ")[0].toLowerCase(), k = S.split(" ")[1].toLowerCase();
5576
+ _.stopPropagation(), i(!0), d(u), a((b) => y(k, v)(b)), s(n), l(n), p(!0), f(k === "surface");
5577
+ const { top: C, left: x } = jr(_, 550, 288, 10, 20, 230, 80);
5572
5578
  r({
5573
- top: k === "surface" ? x : x + 125,
5574
- left: S - 200
5579
+ top: k === "surface" ? C : C + 125,
5580
+ left: x - 200
5575
5581
  });
5576
5582
  };
5577
- function m(b) {
5578
- return b.length > 15 ? b.slice(0, 15) + "..." : b;
5583
+ function m(_) {
5584
+ return _.length > 15 ? _.slice(0, 15) + "..." : _;
5579
5585
  }
5580
5586
  return /* @__PURE__ */ w(
5581
5587
  "div",
@@ -5667,20 +5673,20 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5667
5673
  // setHeader,
5668
5674
  // setFooter,
5669
5675
  // setAnnouncement,
5670
- header: b,
5671
- footer: C,
5676
+ header: _,
5677
+ footer: S,
5672
5678
  announcement: v,
5673
5679
  isLoadingLayers: k
5674
- } = ne(), { currentPage: x, pages: S } = J(), { past: _, future: N } = Po();
5680
+ } = ne(), { currentPage: C, pages: x } = J(), { past: b, future: N } = Po();
5675
5681
  function O(T = !1) {
5676
- if (S && d && h && !["header", "footer", "announcement"].includes(h) && !T) {
5682
+ if (x && d && h && !["header", "footer", "announcement"].includes(h) && !T) {
5677
5683
  const P = {
5678
5684
  blockSettings: {}
5679
5685
  };
5680
5686
  Object.keys(d.blockSettings).filter((M) => !["displayName", "isAddable"].includes(M)).map((M) => {
5681
5687
  P.blockSettings[M] = d.blockSettings[M];
5682
- }), y(S[x].path, h, {
5683
- name: p[S[x].path].data[h].name,
5688
+ }), y(x[C].path, h, {
5689
+ name: p[x[C].path].data[h].name,
5684
5690
  value: P
5685
5691
  });
5686
5692
  }
@@ -5693,21 +5699,21 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5693
5699
  }
5694
5700
  function z(T) {
5695
5701
  var oe;
5696
- if (!S || !x || !T) return null;
5702
+ if (!x || !C || !T) return null;
5697
5703
  if (T === "header") {
5698
5704
  const I = new o();
5699
5705
  return Object.keys(I.blockSettings).forEach((K) => {
5700
- I.blockSettings[K] = b == null ? void 0 : b.blockSettings[K];
5706
+ I.blockSettings[K] = _ == null ? void 0 : _.blockSettings[K];
5701
5707
  }), Object.keys(I.blockColors).forEach((K) => {
5702
- I.blockColors[K] = b == null ? void 0 : b.blockColors[K];
5708
+ I.blockColors[K] = _ == null ? void 0 : _.blockColors[K];
5703
5709
  }), I;
5704
5710
  }
5705
5711
  if (T === "footer") {
5706
5712
  const I = new r();
5707
5713
  return Object.keys(I.blockSettings).forEach((K) => {
5708
- I.blockSettings[K] = C == null ? void 0 : C.blockSettings[K];
5714
+ I.blockSettings[K] = S == null ? void 0 : S.blockSettings[K];
5709
5715
  }), Object.keys(I.blockColors).forEach((K) => {
5710
- I.blockColors[K] = C == null ? void 0 : C.blockColors[K];
5716
+ I.blockColors[K] = S == null ? void 0 : S.blockColors[K];
5711
5717
  }), I;
5712
5718
  }
5713
5719
  if (T === "announcement") {
@@ -5718,7 +5724,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5718
5724
  I.blockColors[K] = v == null ? void 0 : v.blockColors[K];
5719
5725
  }), I;
5720
5726
  }
5721
- const P = p[S[x].path];
5727
+ const P = p[x[C].path];
5722
5728
  if (!P || !P.data[T]) return null;
5723
5729
  const M = P.data[T];
5724
5730
  return !M || !i[M.name] ? null : new i[M.name]((oe = M.value) == null ? void 0 : oe.blockSettings);
@@ -5729,8 +5735,8 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5729
5735
  u(T);
5730
5736
  } else
5731
5737
  u(null);
5732
- }, [h, _, N, a]), A.useEffect(() => {
5733
- if (a && S && !h) {
5738
+ }, [h, b, N, a]), A.useEffect(() => {
5739
+ if (a && x && !h) {
5734
5740
  const T = {
5735
5741
  blockSettings: {},
5736
5742
  blockColors: {}
@@ -5740,7 +5746,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5740
5746
  }), Object.keys(P.blockColors).filter((W) => !["displayName", "isAddable"].includes(W)).map((W) => {
5741
5747
  T.blockColors[W] = P.blockColors[W];
5742
5748
  });
5743
- const M = g(S[x].path, {
5749
+ const M = g(x[C].path, {
5744
5750
  name: a,
5745
5751
  value: T
5746
5752
  });
@@ -5749,12 +5755,12 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
5749
5755
  neededScroll: !0
5750
5756
  }), m(M), e("/admin/builder");
5751
5757
  }
5752
- }, [a, _, N]);
5758
+ }, [a, b, N]);
5753
5759
  function $(T) {
5754
5760
  if (!i)
5755
5761
  return "unknown name";
5756
5762
  if (!i[T])
5757
- return h === "header" ? b == null ? void 0 : b.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";
5758
5764
  const P = new i[T]();
5759
5765
  return !P.blockSettings || !P.blockSettings.displayName ? "unknown name" : P.blockSettings.displayName;
5760
5766
  }
@@ -6765,48 +6771,48 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
6765
6771
  editedPage: i,
6766
6772
  setEditedPage: a,
6767
6773
  pageContext: l
6768
- } = 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) : ""), [b, 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(
6769
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.`
6770
6776
  ), [v, k] = A.useState(
6771
6777
  i && t && (W = t[i]) != null && W.isPrivate ? "private" : "public"
6772
6778
  );
6773
- function x() {
6774
- y(""), m(""), C(""), k("public"), s(!1), a(null);
6779
+ function C() {
6780
+ y(""), m(""), S(""), k("public"), s(!1), a(null);
6775
6781
  }
6776
- function S() {
6782
+ function x() {
6777
6783
  d(!1), setTimeout(() => {
6778
- x(), e(!1), d(!0);
6784
+ C(), e(!1), d(!0);
6779
6785
  }, 300);
6780
6786
  }
6781
6787
  A.useEffect(() => () => {
6782
- S();
6788
+ x();
6783
6789
  }, []);
6784
- function _(I) {
6790
+ function b(I) {
6785
6791
  return I[0] === "/" ? I : "/" + I;
6786
6792
  }
6787
6793
  function N() {
6788
6794
  n({
6789
- path: _(g),
6795
+ path: b(g),
6790
6796
  name: h || g || "",
6791
6797
  icon: "File",
6792
6798
  seo: {
6793
6799
  pageTitle: h || "",
6794
- pageDescription: b || ""
6800
+ pageDescription: _ || ""
6795
6801
  },
6796
6802
  visibility: v || "public"
6797
- }), f(_(g)), S();
6803
+ }), f(b(g)), x();
6798
6804
  }
6799
6805
  function O() {
6800
6806
  t && (Et.includes(t[i].path) || Sr(t[i].path), p(t[i].path || "", g || ""), o(i, {
6801
- path: _(g),
6807
+ path: b(g),
6802
6808
  name: h || g,
6803
6809
  icon: t[i].icon || "File",
6804
6810
  seo: {
6805
6811
  pageTitle: h || "",
6806
- pageDescription: b || ""
6812
+ pageDescription: _ || ""
6807
6813
  },
6808
6814
  visibility: v || "public"
6809
- })), S();
6815
+ })), x();
6810
6816
  }
6811
6817
  return /* @__PURE__ */ w(
6812
6818
  "div",
@@ -6822,7 +6828,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
6822
6828
  name: "X",
6823
6829
  fill: "#757575",
6824
6830
  hoverable: !0,
6825
- onClick: S
6831
+ onClick: x
6826
6832
  }
6827
6833
  ) })
6828
6834
  ] }),
@@ -6854,8 +6860,8 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
6854
6860
  Ur,
6855
6861
  {
6856
6862
  label: "Description",
6857
- onChange: (I) => C(I),
6858
- value: b,
6863
+ onChange: (I) => S(I),
6864
+ value: _,
6859
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.`,
6860
6866
  maxLength: 150
6861
6867
  }
@@ -6865,7 +6871,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
6865
6871
  /* @__PURE__ */ w("div", { className: _e.block, children: [
6866
6872
  /* @__PURE__ */ c("span", { className: _e.slug, children: g || "yoursite.url" }),
6867
6873
  /* @__PURE__ */ c("span", { className: _e.title, children: h || "My Blank Page" }),
6868
- /* @__PURE__ */ c("span", { className: _e.description, children: b || "It is My Description" })
6874
+ /* @__PURE__ */ c("span", { className: _e.description, children: _ || "It is My Description" })
6869
6875
  ] })
6870
6876
  ] })
6871
6877
  ] }),
@@ -6873,7 +6879,7 @@ const zc = "_product_wgb53_1", jc = "_name_wgb53_15", Nn = {
6873
6879
  /* @__PURE__ */ c(
6874
6880
  qe,
6875
6881
  {
6876
- onClick: S,
6882
+ onClick: x,
6877
6883
  type: "Secondary",
6878
6884
  children: "Cancel"
6879
6885
  }