@billgangcom/theme-lib 1.125.11 → 1.125.13

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 (41) hide show
  1. package/dist/{builder-BdRMskBA.js → builder-Bzjt7KtK.js} +5 -5
  2. package/dist/{builder-BAvtHWNU.cjs → builder-DNkh9C7C.cjs} +2 -2
  3. package/dist/{builder-components-Bqvu_8uJ.cjs → builder-components-BPLuh4_V.cjs} +2 -2
  4. package/dist/{builder-components-DRAEiA3W.js → builder-components-BT94OMxj.js} +623 -608
  5. package/dist/builder.cjs.js +1 -1
  6. package/dist/builder.es.js +23 -23
  7. package/dist/{charge-Ct9sevc7.cjs → charge-C2aoqar4.cjs} +1 -1
  8. package/dist/{charge-Bh34JNbY.js → charge-IRYuGcrW.js} +6 -6
  9. package/dist/{checkout-B8pRFiwQ.cjs → checkout-DVDZUjSQ.cjs} +1 -1
  10. package/dist/{checkout-MTWwYXYN.js → checkout-HR4DQ03v.js} +5 -5
  11. package/dist/exports.cjs.js +1 -1
  12. package/dist/exports.es.js +6 -6
  13. package/dist/{index-CJD0BBb3.cjs → index-823ih-5Z.cjs} +1 -1
  14. package/dist/{index-DEsXjpn8.cjs → index-BnK6yyve.cjs} +1 -1
  15. package/dist/{index-VydFQJL1.js → index-C7x0OpAC.js} +1 -1
  16. package/dist/{index-qKn52NDl.cjs → index-CJUkTBLE.cjs} +1 -1
  17. package/dist/{index-DVTTnkcR.js → index-CKCeewPh.js} +2 -2
  18. package/dist/{index-C8xHsL66.cjs → index-CcqCOl2W.cjs} +1 -1
  19. package/dist/{index-_qOGHiLz.cjs → index-Cgb3a13j.cjs} +1 -1
  20. package/dist/{index-qV3OdVCa.js → index-D-eLh7F3.js} +5 -5
  21. package/dist/{index-CqATRM07.js → index-D_4T-1DY.js} +5 -5
  22. package/dist/{index-BI3LU8Xv.js → index-YbQOTLgG.js} +5 -5
  23. package/dist/{index-DEG7ReRI.cjs → index-iwVyWU-s.cjs} +1 -1
  24. package/dist/{index-BAa6DCft.js → index-jRrTJd8O.js} +5 -5
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.es.js +6 -6
  27. package/dist/{order-CfMffRZJ.cjs → order-CGQ2_eCJ.cjs} +1 -1
  28. package/dist/{order-DFvufhEx.js → order-D7jXnkto.js} +6 -6
  29. package/dist/{subscription-CiWRMtw-.js → subscription-B2aLt7q1.js} +5 -5
  30. package/dist/{subscription-DEHCID-Z.cjs → subscription-B_fwssFU.cjs} +1 -1
  31. package/dist/{ticket-DsrPYm2y.js → ticket-Bj-AhEbz.js} +5 -5
  32. package/dist/{ticket-Bpjh9k0v.cjs → ticket-C30ck-ZN.cjs} +1 -1
  33. package/dist/{top-up-BfOHlwS_.js → top-up-CcPvJDbi.js} +5 -5
  34. package/dist/{top-up-DPAivA6p.cjs → top-up-IOt4GUoS.cjs} +1 -1
  35. package/dist/{ui-components-DbDFNPfY.cjs → ui-components-BVI8UP6Y.cjs} +1 -1
  36. package/dist/{ui-components-D1RXi61S.js → ui-components-Blu-gh32.js} +4 -4
  37. package/dist/ui.cjs.js +1 -1
  38. package/dist/ui.es.js +1 -1
  39. package/dist/{validation-Bryqi0LO.js → validation-BNISByXK.js} +5 -5
  40. package/dist/{validation-D2CX9Eep.cjs → validation-CrG8xYNb.cjs} +1 -1
  41. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- import { jsxs as w, jsx as c, Fragment as Le } from "react/jsx-runtime";
2
- import A, { useLayoutEffect as Tr, useEffect as U, useRef as V, useMemo as H, useCallback as te, useState as he, memo as Mr, useReducer as Rr, createContext as Lt, useContext as nt } from "react";
3
- import { u as ne, a as Je, b as J, c as se, d as $o, e as Un, f as E, v as en, T as vt, g as Or, h as Vn, i as Fe, j as Lo, r as Po, k as un, l as Et, m as X, n as Fo, L as ot, o as Kn, p as rt, q as $r, s as tt, t as dn, w as Gn, x as zo, A as Lr, S as Pr, C as Fr, y as jo, z as ft, B as zr, D as Ee, E as Pt, R as bn, F as _n, G as Ho, H as tn, I as we, P as fo, J as jr } from "./builder-BdRMskBA.js";
4
- import { I as R, u as Hr, B as qe, E as nn, c as ue, S as Ce, d as In, T as Wr } from "./ui-components-D1RXi61S.js";
5
- import "./charge-Bh34JNbY.js";
6
- import { unstable_batchedUpdates as Vt, createPortal as Ur } from "react-dom";
7
- import "./ticket-DsrPYm2y.js";
1
+ import { jsxs as C, jsx as c, Fragment as Le } from "react/jsx-runtime";
2
+ import A, { useLayoutEffect as Tr, useEffect as U, useRef as V, useMemo as H, useCallback as te, useState as he, memo as Mr, useReducer as Rr, createContext as Pt, useContext as nt } from "react";
3
+ import { u as ne, a as Je, b as J, c as se, d as $o, e as Un, f as E, v as Rt, T as vt, g as Or, h as Vn, i as Fe, j as Lo, r as Po, k as un, l as Et, m as X, n as Fo, L as ot, o as Kn, p as rt, q as $r, s as tt, t as dn, w as Gn, x as zo, A as Lr, S as Pr, C as Fr, y as jo, z as ft, B as zr, D as Ee, E as Ft, R as bn, F as _n, G as Ho, H as tn, I as we, P as fo, J as jr } from "./builder-Bzjt7KtK.js";
4
+ import { I as R, u as Hr, B as qe, E as nn, c as ue, S as Ce, d as In, T as Wr } from "./ui-components-Blu-gh32.js";
5
+ import "./charge-IRYuGcrW.js";
6
+ import { unstable_batchedUpdates as Kt, createPortal as Ur } from "react-dom";
7
+ import "./ticket-Bj-AhEbz.js";
8
8
  const Yn = ({ render: e, block: t }) => e(t), Wo = ({ 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;
@@ -323,7 +323,7 @@ function cs(e, { getFn: t = B.getFn, fieldNormWeight: n = B.fieldNormWeight } =
323
323
  const { keys: o, records: r } = e, s = new Xn({ getFn: t, fieldNormWeight: n });
324
324
  return s.setKeys(o), s.setIndexRecords(r), s;
325
325
  }
326
- function Kt(e, {
326
+ function Gt(e, {
327
327
  errors: t = 0,
328
328
  currentLocation: n = 0,
329
329
  expectedLocation: o = 0,
@@ -357,54 +357,54 @@ function us(e, t, n, {
357
357
  if (t.length > et)
358
358
  throw new Error(Jr(et));
359
359
  const u = t.length, f = e.length, p = Math.max(0, Math.min(o, f));
360
- let g = s, y = p;
361
- const h = a > 1 || l, b = h ? Array(f) : [];
362
- let _;
363
- for (; (_ = e.indexOf(t, y)) > -1; ) {
364
- let C = Kt(t, {
365
- currentLocation: _,
360
+ let g = s, w = p;
361
+ const h = a > 1 || l, m = h ? Array(f) : [];
362
+ let y;
363
+ for (; (y = e.indexOf(t, w)) > -1; ) {
364
+ let k = Gt(t, {
365
+ currentLocation: y,
366
366
  expectedLocation: p,
367
367
  distance: r,
368
368
  ignoreLocation: d
369
369
  });
370
- if (g = Math.min(C, g), y = _ + u, h) {
370
+ if (g = Math.min(k, g), w = y + u, h) {
371
371
  let N = 0;
372
372
  for (; N < u; )
373
- b[_ + N] = 1, N += 1;
373
+ m[y + N] = 1, N += 1;
374
374
  }
375
375
  }
376
- y = -1;
377
- let x = [], m = 1, k = u + f;
376
+ w = -1;
377
+ let x = [], v = 1, _ = u + f;
378
378
  const S = 1 << u - 1;
379
- for (let C = 0; C < u; C += 1) {
380
- let N = 0, O = k;
379
+ for (let k = 0; k < u; k += 1) {
380
+ let N = 0, O = _;
381
381
  for (; N < O; )
382
- Kt(t, {
383
- errors: C,
382
+ Gt(t, {
383
+ errors: k,
384
384
  currentLocation: p + O,
385
385
  expectedLocation: p,
386
386
  distance: r,
387
387
  ignoreLocation: d
388
- }) <= g ? N = O : k = O, O = Math.floor((k - N) / 2 + N);
389
- k = O;
388
+ }) <= g ? N = O : _ = O, O = Math.floor((_ - N) / 2 + N);
389
+ _ = 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 << C) - 1;
391
+ T[$ + 1] = (1 << k) - 1;
392
392
  for (let M = $; M >= z; M -= 1) {
393
393
  let W = M - 1, oe = n[e.charAt(W)];
394
- if (h && (b[W] = +!!oe), T[M] = (T[M + 1] << 1 | 1) & oe, C && (T[M] |= (x[M + 1] | x[M]) << 1 | 1 | x[M + 1]), T[M] & S && (m = Kt(t, {
395
- errors: C,
394
+ if (h && (m[W] = +!!oe), T[M] = (T[M + 1] << 1 | 1) & oe, k && (T[M] |= (x[M + 1] | x[M]) << 1 | 1 | x[M + 1]), T[M] & S && (v = Gt(t, {
395
+ errors: k,
396
396
  currentLocation: W,
397
397
  expectedLocation: p,
398
398
  distance: r,
399
399
  ignoreLocation: d
400
- }), m <= g)) {
401
- if (g = m, y = W, y <= p)
400
+ }), v <= g)) {
401
+ if (g = v, w = W, w <= p)
402
402
  break;
403
- z = Math.max(1, 2 * p - y);
403
+ z = Math.max(1, 2 * p - w);
404
404
  }
405
405
  }
406
- if (Kt(t, {
407
- errors: C + 1,
406
+ if (Gt(t, {
407
+ errors: k + 1,
408
408
  currentLocation: p,
409
409
  expectedLocation: p,
410
410
  distance: r,
@@ -413,16 +413,16 @@ function us(e, t, n, {
413
413
  break;
414
414
  x = T;
415
415
  }
416
- const v = {
417
- isMatch: y >= 0,
416
+ const b = {
417
+ isMatch: w >= 0,
418
418
  // Count exact matches (those with a score of 0) to be "almost" exact
419
- score: Math.max(1e-3, m)
419
+ score: Math.max(1e-3, v)
420
420
  };
421
421
  if (h) {
422
- const C = ls(b, a);
423
- C.length ? l && (v.indices = C) : v.isMatch = !1;
422
+ const k = ls(m, a);
423
+ k.length ? l && (b.indices = k) : b.isMatch = !1;
424
424
  }
425
- return v;
425
+ return b;
426
426
  }
427
427
  function ds(e) {
428
428
  let t = {};
@@ -457,21 +457,21 @@ class Jo {
457
457
  ignoreLocation: u
458
458
  }, t = l ? t : t.toLowerCase(), t = d ? on(t) : t, this.pattern = t, this.chunks = [], !this.pattern.length)
459
459
  return;
460
- const f = (g, y) => {
460
+ const f = (g, w) => {
461
461
  this.chunks.push({
462
462
  pattern: g,
463
463
  alphabet: ds(g),
464
- startIndex: y
464
+ startIndex: w
465
465
  });
466
466
  }, p = this.pattern.length;
467
467
  if (p > et) {
468
468
  let g = 0;
469
- const y = p % et, h = p - y;
469
+ const w = p % et, h = p - w;
470
470
  for (; g < h; )
471
471
  f(this.pattern.substr(g, et), g), g += et;
472
- if (y) {
473
- const b = p - et;
474
- f(this.pattern.substr(b), b);
472
+ if (w) {
473
+ const m = p - et;
474
+ f(this.pattern.substr(m), m);
475
475
  }
476
476
  } else
477
477
  f(this.pattern, 0);
@@ -494,9 +494,9 @@ class Jo {
494
494
  ignoreLocation: u
495
495
  } = this.options;
496
496
  let f = [], p = 0, g = !1;
497
- this.chunks.forEach(({ pattern: h, alphabet: b, startIndex: _ }) => {
498
- const { isMatch: x, score: m, indices: k } = us(t, h, b, {
499
- location: s + _,
497
+ this.chunks.forEach(({ pattern: h, alphabet: m, startIndex: y }) => {
498
+ const { isMatch: x, score: v, indices: _ } = us(t, h, m, {
499
+ location: s + y,
500
500
  distance: i,
501
501
  threshold: a,
502
502
  findAllMatches: l,
@@ -504,13 +504,13 @@ class Jo {
504
504
  includeMatches: r,
505
505
  ignoreLocation: u
506
506
  });
507
- x && (g = !0), p += m, x && k && (f = [...f, ...k]);
507
+ x && (g = !0), p += v, x && _ && (f = [...f, ..._]);
508
508
  });
509
- let y = {
509
+ let w = {
510
510
  isMatch: g,
511
511
  score: g ? p / this.chunks.length : 1
512
512
  };
513
- return g && r && (y.indices = f), y;
513
+ return g && r && (w.indices = f), w;
514
514
  }
515
515
  }
516
516
  class Qe {
@@ -801,11 +801,11 @@ class Cs {
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: b, score: _ } = y.search(t);
804
+ const w = f[p], { isMatch: h, indices: m, score: y } = w.search(t);
805
805
  if (h) {
806
- if (i += 1, l += _, o) {
807
- const x = y.constructor.type;
808
- ws.has(x) ? a = [...a, ...b] : a.push(b);
806
+ if (i += 1, l += y, o) {
807
+ const x = w.constructor.type;
808
+ ws.has(x) ? a = [...a, ...m] : a.push(m);
809
809
  }
810
810
  } else {
811
811
  l = 0, i = 0, a.length = 0;
@@ -995,9 +995,9 @@ class mt {
995
995
  }
996
996
  const u = [];
997
997
  for (let f = 0, p = a.children.length; f < p; f += 1) {
998
- const g = a.children[f], y = o(g, l, d);
999
- if (y.length)
1000
- u.push(...y);
998
+ const g = a.children[f], w = o(g, l, d);
999
+ if (w.length)
1000
+ u.push(...w);
1001
1001
  else if (a.operator === rn.AND)
1002
1002
  return [];
1003
1003
  }
@@ -1094,14 +1094,14 @@ function Jn(e) {
1094
1094
  } = ie(e);
1095
1095
  return e instanceof t;
1096
1096
  }
1097
- function Ft(e) {
1097
+ function zt(e) {
1098
1098
  return bt(e) ? !1 : e instanceof ie(e).HTMLElement;
1099
1099
  }
1100
1100
  function tr(e) {
1101
1101
  return e instanceof ie(e).SVGElement;
1102
1102
  }
1103
1103
  function _t(e) {
1104
- return e ? bt(e) ? e.document : qn(e) ? Jn(e) ? e : Ft(e) || tr(e) ? e.ownerDocument : document : document : document;
1104
+ return e ? bt(e) ? e.document : qn(e) ? Jn(e) ? e : zt(e) || tr(e) ? e.ownerDocument : document : document : document;
1105
1105
  }
1106
1106
  const Te = hn ? Tr : U;
1107
1107
  function Qn(e) {
@@ -1122,14 +1122,14 @@ function Is() {
1122
1122
  }, []);
1123
1123
  return [t, n];
1124
1124
  }
1125
- function Rt(e, t) {
1125
+ function Ot(e, t) {
1126
1126
  t === void 0 && (t = [e]);
1127
1127
  const n = V(e);
1128
1128
  return Te(() => {
1129
1129
  n.current !== e && (n.current = e);
1130
1130
  }, t), n;
1131
1131
  }
1132
- function zt(e, t) {
1132
+ function jt(e, t) {
1133
1133
  const n = V();
1134
1134
  return H(
1135
1135
  () => {
@@ -1157,7 +1157,7 @@ function Pn(e) {
1157
1157
  }, [e]), t.current;
1158
1158
  }
1159
1159
  let wn = {};
1160
- function jt(e, t) {
1160
+ function Ht(e, t) {
1161
1161
  return H(() => {
1162
1162
  if (t)
1163
1163
  return t;
@@ -1228,7 +1228,7 @@ function Fn(e) {
1228
1228
  y: e.clientY
1229
1229
  } : null;
1230
1230
  }
1231
- const Ot = /* @__PURE__ */ Object.freeze({
1231
+ const $t = /* @__PURE__ */ Object.freeze({
1232
1232
  Translate: {
1233
1233
  toString(e) {
1234
1234
  if (!e)
@@ -1254,7 +1254,7 @@ const Ot = /* @__PURE__ */ Object.freeze({
1254
1254
  Transform: {
1255
1255
  toString(e) {
1256
1256
  if (e)
1257
- return [Ot.Translate.toString(e), Ot.Scale.toString(e)].join(" ");
1257
+ return [$t.Translate.toString(e), $t.Scale.toString(e)].join(" ");
1258
1258
  }
1259
1259
  },
1260
1260
  Transition: {
@@ -1321,7 +1321,7 @@ function Ps() {
1321
1321
  announcement: e
1322
1322
  };
1323
1323
  }
1324
- const or = /* @__PURE__ */ Lt(null);
1324
+ const or = /* @__PURE__ */ Pt(null);
1325
1325
  function Fs(e) {
1326
1326
  const t = nt(or);
1327
1327
  U(() => {
@@ -1387,7 +1387,7 @@ function Ws(e) {
1387
1387
  const {
1388
1388
  announce: s,
1389
1389
  announcement: i
1390
- } = Ps(), a = jt("DndLiveRegion"), [l, d] = he(!1);
1390
+ } = Ps(), a = Ht("DndLiveRegion"), [l, d] = he(!1);
1391
1391
  if (U(() => {
1392
1392
  d(!0);
1393
1393
  }, []), Fs(H(() => ({
@@ -1661,7 +1661,7 @@ function eo(e, t) {
1661
1661
  return n;
1662
1662
  if (Jn(r) && r.scrollingElement != null && !n.includes(r.scrollingElement))
1663
1663
  return n.push(r.scrollingElement), n;
1664
- if (!Ft(r) || tr(r) || n.includes(r))
1664
+ if (!zt(r) || tr(r) || n.includes(r))
1665
1665
  return n;
1666
1666
  const s = ie(e).getComputedStyle(r);
1667
1667
  return r !== e && ri(r, s) && n.push(r), oi(r, s) ? n : o(r.parentNode);
@@ -1673,7 +1673,7 @@ function sr(e) {
1673
1673
  return t ?? null;
1674
1674
  }
1675
1675
  function Cn(e) {
1676
- return !hn || !e ? null : bt(e) ? e : qn(e) ? Jn(e) || e === _t(e).scrollingElement ? window : Ft(e) ? e : null : null;
1676
+ return !hn || !e ? null : bt(e) ? e : qn(e) ? Jn(e) || e === _t(e).scrollingElement ? window : zt(e) ? e : null : null;
1677
1677
  }
1678
1678
  function ir(e) {
1679
1679
  return bt(e) ? e.scrollX : e.scrollLeft;
@@ -1737,16 +1737,16 @@ function ii(e, t, n, o, r) {
1737
1737
  } = lr(e), g = {
1738
1738
  x: 0,
1739
1739
  y: 0
1740
- }, y = {
1740
+ }, w = {
1741
1741
  x: 0,
1742
1742
  y: 0
1743
1743
  }, h = {
1744
1744
  height: t.height * r.y,
1745
1745
  width: t.width * r.x
1746
1746
  };
1747
- return !d && s <= t.top + h.height ? (g.y = Y.Backward, y.y = o * Math.abs((t.top + h.height - s) / h.height)) : !u && l >= t.bottom - h.height && (g.y = Y.Forward, y.y = o * Math.abs((t.bottom - h.height - l) / h.height)), !p && a >= t.right - h.width ? (g.x = Y.Forward, y.x = o * Math.abs((t.right - h.width - a) / h.width)) : !f && i <= t.left + h.width && (g.x = Y.Backward, y.x = o * Math.abs((t.left + h.width - i) / h.width)), {
1747
+ return !d && s <= t.top + h.height ? (g.y = Y.Backward, w.y = o * Math.abs((t.top + h.height - s) / h.height)) : !u && l >= t.bottom - h.height && (g.y = Y.Forward, w.y = o * Math.abs((t.bottom - h.height - l) / h.height)), !p && a >= t.right - h.width ? (g.x = Y.Forward, w.x = o * Math.abs((t.right - h.width - a) / h.width)) : !f && i <= t.left + h.width && (g.x = Y.Backward, w.x = o * Math.abs((t.left + h.width - i) / h.width)), {
1748
1748
  direction: g,
1749
- speed: y
1749
+ speed: w
1750
1750
  };
1751
1751
  }
1752
1752
  function ai(e) {
@@ -1951,22 +1951,22 @@ class hr {
1951
1951
  x: 0,
1952
1952
  y: 0
1953
1953
  }, {
1954
- scrollableAncestors: y
1954
+ scrollableAncestors: w
1955
1955
  } = o.current;
1956
- for (const h of y) {
1957
- const b = t.code, {
1958
- isTop: _,
1956
+ for (const h of w) {
1957
+ const m = t.code, {
1958
+ isTop: y,
1959
1959
  isRight: x,
1960
- isLeft: m,
1961
- isBottom: k,
1960
+ isLeft: v,
1961
+ isBottom: _,
1962
1962
  maxScroll: S,
1963
- minScroll: v
1964
- } = lr(h), C = ai(h), N = {
1965
- x: Math.min(b === P.Right ? C.right - C.width / 2 : C.right, Math.max(b === P.Right ? C.left : C.left + C.width / 2, f.x)),
1966
- y: Math.min(b === P.Down ? C.bottom - C.height / 2 : C.bottom, Math.max(b === P.Down ? C.top : C.top + C.height / 2, f.y))
1967
- }, O = b === P.Right && !x || b === P.Left && !m, z = b === P.Down && !k || b === P.Up && !_;
1963
+ minScroll: b
1964
+ } = lr(h), k = ai(h), N = {
1965
+ x: Math.min(m === P.Right ? k.right - k.width / 2 : k.right, Math.max(m === P.Right ? k.left : k.left + k.width / 2, f.x)),
1966
+ y: Math.min(m === P.Down ? k.bottom - k.height / 2 : k.bottom, Math.max(m === P.Down ? k.top : k.top + k.height / 2, f.y))
1967
+ }, O = m === P.Right && !x || m === P.Left && !v, z = m === P.Down && !_ || m === P.Up && !y;
1968
1968
  if (O && N.x !== f.x) {
1969
- const $ = h.scrollLeft + p.x, T = b === P.Right && $ <= S.x || b === P.Left && $ >= v.x;
1969
+ const $ = h.scrollLeft + p.x, T = m === P.Right && $ <= S.x || m === P.Left && $ >= b.x;
1970
1970
  if (T && !p.y) {
1971
1971
  h.scrollTo({
1972
1972
  left: $,
@@ -1974,13 +1974,13 @@ class hr {
1974
1974
  });
1975
1975
  return;
1976
1976
  }
1977
- T ? g.x = h.scrollLeft - $ : g.x = b === P.Right ? h.scrollLeft - S.x : h.scrollLeft - v.x, g.x && h.scrollBy({
1977
+ T ? g.x = h.scrollLeft - $ : g.x = m === P.Right ? h.scrollLeft - S.x : h.scrollLeft - b.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 = b === P.Down && $ <= S.y || b === P.Up && $ >= v.y;
1983
+ const $ = h.scrollTop + p.y, T = m === P.Down && $ <= S.y || m === P.Up && $ >= b.y;
1984
1984
  if (T && !p.x) {
1985
1985
  h.scrollTo({
1986
1986
  top: $,
@@ -1988,7 +1988,7 @@ class hr {
1988
1988
  });
1989
1989
  return;
1990
1990
  }
1991
- T ? g.y = h.scrollTop - $ : g.y = b === P.Down ? h.scrollTop - S.y : h.scrollTop - v.y, g.y && h.scrollBy({
1991
+ T ? g.y = h.scrollTop - $ : g.y = m === P.Down ? h.scrollTop - S.y : h.scrollTop - b.y, g.y && h.scrollBy({
1992
1992
  top: -g.y,
1993
1993
  behavior: a
1994
1994
  });
@@ -2290,10 +2290,10 @@ function _i(e) {
2290
2290
  const g = wi({
2291
2291
  delta: f,
2292
2292
  disabled: !s
2293
- }), [y, h] = Is(), b = V({
2293
+ }), [w, h] = Is(), m = V({
2294
2294
  x: 0,
2295
2295
  y: 0
2296
- }), _ = V({
2296
+ }), y = V({
2297
2297
  x: 0,
2298
2298
  y: 0
2299
2299
  }), x = H(() => {
@@ -2308,12 +2308,12 @@ function _i(e) {
2308
2308
  case Tt.DraggableRect:
2309
2309
  return r;
2310
2310
  }
2311
- }, [n, r, l]), m = V(null), k = te(() => {
2312
- const v = m.current;
2313
- if (!v)
2311
+ }, [n, r, l]), v = V(null), _ = te(() => {
2312
+ const b = v.current;
2313
+ if (!b)
2314
2314
  return;
2315
- const C = b.current.x * _.current.x, N = b.current.y * _.current.y;
2316
- v.scrollBy(C, N);
2315
+ const k = m.current.x * y.current.x, N = m.current.y * y.current.y;
2316
+ b.scrollBy(k, N);
2317
2317
  }, []), S = H(() => a === ln.TreeOrder ? [...d].reverse() : d, [a, d]);
2318
2318
  U(
2319
2319
  () => {
@@ -2321,27 +2321,27 @@ function _i(e) {
2321
2321
  h();
2322
2322
  return;
2323
2323
  }
2324
- for (const v of S) {
2325
- if ((o == null ? void 0 : o(v)) === !1)
2324
+ for (const b of S) {
2325
+ if ((o == null ? void 0 : o(b)) === !1)
2326
2326
  continue;
2327
- const C = d.indexOf(v), N = u[C];
2327
+ const k = d.indexOf(b), N = u[k];
2328
2328
  if (!N)
2329
2329
  continue;
2330
2330
  const {
2331
2331
  direction: O,
2332
2332
  speed: z
2333
- } = ii(v, N, x, t, p);
2333
+ } = ii(b, N, x, 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(), m.current = v, y(k, i), b.current = z, _.current = O;
2337
+ h(), v.current = b, w(_, i), m.current = z, y.current = O;
2338
2338
  return;
2339
2339
  }
2340
2340
  }
2341
- b.current = {
2341
+ m.current = {
2342
2342
  x: 0,
2343
2343
  y: 0
2344
- }, _.current = {
2344
+ }, y.current = {
2345
2345
  x: 0,
2346
2346
  y: 0
2347
2347
  }, h();
@@ -2349,7 +2349,7 @@ function _i(e) {
2349
2349
  // eslint-disable-next-line react-hooks/exhaustive-deps
2350
2350
  [
2351
2351
  t,
2352
- k,
2352
+ _,
2353
2353
  o,
2354
2354
  h,
2355
2355
  s,
@@ -2358,7 +2358,7 @@ function _i(e) {
2358
2358
  JSON.stringify(x),
2359
2359
  // eslint-disable-next-line react-hooks/exhaustive-deps
2360
2360
  JSON.stringify(g),
2361
- y,
2361
+ w,
2362
2362
  d,
2363
2363
  S,
2364
2364
  u,
@@ -2383,7 +2383,7 @@ function wi(e) {
2383
2383
  disabled: n
2384
2384
  } = e;
2385
2385
  const o = Pn(t);
2386
- return zt((r) => {
2386
+ return jt((r) => {
2387
2387
  if (n || !o || !r)
2388
2388
  return yi;
2389
2389
  const s = {
@@ -2404,7 +2404,7 @@ function wi(e) {
2404
2404
  }
2405
2405
  function Ci(e, t) {
2406
2406
  const n = t != null ? e.get(t) : void 0, o = n ? n.node.current : null;
2407
- return zt((r) => {
2407
+ return jt((r) => {
2408
2408
  var s;
2409
2409
  return t == null ? null : (s = o ?? r) != null ? s : null;
2410
2410
  }, [o, t]);
@@ -2420,10 +2420,10 @@ function Si(e, t) {
2420
2420
  return [...n, ...s];
2421
2421
  }, []), [e, t]);
2422
2422
  }
2423
- var $t;
2423
+ var Lt;
2424
2424
  (function(e) {
2425
2425
  e[e.Always = 0] = "Always", e[e.BeforeDragging = 1] = "BeforeDragging", e[e.WhileDragging = 2] = "WhileDragging";
2426
- })($t || ($t = {}));
2426
+ })(Lt || (Lt = {}));
2427
2427
  var Hn;
2428
2428
  (function(e) {
2429
2429
  e.Optimized = "optimized";
@@ -2439,26 +2439,26 @@ function xi(e, t) {
2439
2439
  frequency: a,
2440
2440
  measure: l,
2441
2441
  strategy: d
2442
- } = r, u = V(e), f = b(), p = Rt(f), g = te(function(_) {
2443
- _ === void 0 && (_ = []), !p.current && i((x) => x === null ? _ : x.concat(_.filter((m) => !x.includes(m))));
2444
- }, [p]), y = V(null), h = zt((_) => {
2442
+ } = r, u = V(e), f = m(), p = Ot(f), g = te(function(y) {
2443
+ y === void 0 && (y = []), !p.current && i((x) => x === null ? y : x.concat(y.filter((v) => !x.includes(v))));
2444
+ }, [p]), w = V(null), h = jt((y) => {
2445
2445
  if (f && !n)
2446
2446
  return xo;
2447
- if (!_ || _ === xo || u.current !== e || s != null) {
2447
+ if (!y || y === xo || u.current !== e || s != null) {
2448
2448
  const x = /* @__PURE__ */ new Map();
2449
- for (let m of e) {
2450
- if (!m)
2449
+ for (let v of e) {
2450
+ if (!v)
2451
2451
  continue;
2452
- if (s && s.length > 0 && !s.includes(m.id) && m.rect.current) {
2453
- x.set(m.id, m.rect.current);
2452
+ if (s && s.length > 0 && !s.includes(v.id) && v.rect.current) {
2453
+ x.set(v.id, v.rect.current);
2454
2454
  continue;
2455
2455
  }
2456
- const k = m.node.current, S = k ? new to(l(k), k) : null;
2457
- m.rect.current = S, S && x.set(m.id, S);
2456
+ const _ = v.node.current, S = _ ? new to(l(_), _) : null;
2457
+ v.rect.current = S, S && x.set(v.id, S);
2458
2458
  }
2459
2459
  return x;
2460
2460
  }
2461
- return _;
2461
+ return y;
2462
2462
  }, [e, s, n, f, l]);
2463
2463
  return U(() => {
2464
2464
  u.current = e;
@@ -2476,8 +2476,8 @@ function xi(e, t) {
2476
2476
  [JSON.stringify(s)]
2477
2477
  ), U(
2478
2478
  () => {
2479
- f || typeof a != "number" || y.current !== null || (y.current = setTimeout(() => {
2480
- g(), y.current = null;
2479
+ f || typeof a != "number" || w.current !== null || (w.current = setTimeout(() => {
2480
+ g(), w.current = null;
2481
2481
  }, a));
2482
2482
  },
2483
2483
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -2487,11 +2487,11 @@ function xi(e, t) {
2487
2487
  measureDroppableContainers: g,
2488
2488
  measuringScheduled: s != null
2489
2489
  };
2490
- function b() {
2490
+ function m() {
2491
2491
  switch (d) {
2492
- case $t.Always:
2492
+ case Lt.Always:
2493
2493
  return !1;
2494
- case $t.BeforeDragging:
2494
+ case Lt.BeforeDragging:
2495
2495
  return n;
2496
2496
  default:
2497
2497
  return !n;
@@ -2499,7 +2499,7 @@ function xi(e, t) {
2499
2499
  }
2500
2500
  }
2501
2501
  function fr(e, t) {
2502
- return zt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
2502
+ return jt((n) => e ? n || (typeof t == "function" ? t(e) : e) : null, [t, e]);
2503
2503
  }
2504
2504
  function ki(e, t) {
2505
2505
  return fr(e, t);
@@ -2586,7 +2586,7 @@ function Di(e) {
2586
2586
  }
2587
2587
  const Ao = [];
2588
2588
  function Bi(e) {
2589
- const t = V(e), n = zt((o) => e ? o && o !== Ao && e && t.current && e.parentNode === t.current.parentNode ? o : eo(e) : Ao, [e]);
2589
+ const t = V(e), n = jt((o) => e ? o && o !== Ao && e && t.current && e.parentNode === t.current.parentNode ? o : eo(e) : Ao, [e]);
2590
2590
  return U(() => {
2591
2591
  t.current = e;
2592
2592
  }, [e]), n;
@@ -2693,7 +2693,7 @@ function Ri(e) {
2693
2693
  if (e.children.length > 1)
2694
2694
  return e;
2695
2695
  const t = e.children[0];
2696
- return Ft(t) ? t : e;
2696
+ return zt(t) ? t : e;
2697
2697
  }
2698
2698
  function Oi(e) {
2699
2699
  let {
@@ -2703,7 +2703,7 @@ function Oi(e) {
2703
2703
  for (const {
2704
2704
  target: u
2705
2705
  } of d)
2706
- if (Ft(u)) {
2706
+ if (zt(u)) {
2707
2707
  o((f) => {
2708
2708
  const p = t(u);
2709
2709
  return f ? {
@@ -2734,13 +2734,13 @@ const $i = [{
2734
2734
  options: {}
2735
2735
  }], Li = {
2736
2736
  current: {}
2737
- }, Zt = {
2737
+ }, en = {
2738
2738
  draggable: {
2739
2739
  measure: yo
2740
2740
  },
2741
2741
  droppable: {
2742
2742
  measure: yo,
2743
- strategy: $t.WhileDragging,
2743
+ strategy: Lt.WhileDragging,
2744
2744
  frequency: Hn.Optimized
2745
2745
  },
2746
2746
  dragOverlay: {
@@ -2788,7 +2788,7 @@ const Pi = {
2788
2788
  },
2789
2789
  scrollableAncestors: [],
2790
2790
  scrollableAncestorRects: [],
2791
- measuringConfiguration: Zt,
2791
+ measuringConfiguration: en,
2792
2792
  measureDroppableContainers: cn,
2793
2793
  windowRect: null,
2794
2794
  measuringScheduled: !1
@@ -2804,7 +2804,7 @@ const Pi = {
2804
2804
  draggableNodes: /* @__PURE__ */ new Map(),
2805
2805
  over: null,
2806
2806
  measureDroppableContainers: cn
2807
- }, gn = /* @__PURE__ */ Lt(Fi), pr = /* @__PURE__ */ Lt(Pi);
2807
+ }, gn = /* @__PURE__ */ Pt(Fi), pr = /* @__PURE__ */ Pt(Pi);
2808
2808
  function zi() {
2809
2809
  return {
2810
2810
  draggable: {
@@ -2967,15 +2967,15 @@ function Ui(e) {
2967
2967
  return H(
2968
2968
  () => ({
2969
2969
  draggable: {
2970
- ...Zt.draggable,
2970
+ ...en.draggable,
2971
2971
  ...e == null ? void 0 : e.draggable
2972
2972
  },
2973
2973
  droppable: {
2974
- ...Zt.droppable,
2974
+ ...en.droppable,
2975
2975
  ...e == null ? void 0 : e.droppable
2976
2976
  },
2977
2977
  dragOverlay: {
2978
- ...Zt.dragOverlay,
2978
+ ...en.dragOverlay,
2979
2979
  ...e == null ? void 0 : e.dragOverlay
2980
2980
  }
2981
2981
  }),
@@ -3017,7 +3017,7 @@ function Vi(e) {
3017
3017
  }
3018
3018
  }, [t, i, a, o, n]);
3019
3019
  }
3020
- const vr = /* @__PURE__ */ Lt({
3020
+ const vr = /* @__PURE__ */ Pt({
3021
3021
  ...Se,
3022
3022
  scaleX: 1,
3023
3023
  scaleY: 1
@@ -3037,39 +3037,39 @@ const Ki = /* @__PURE__ */ Mr(function(t) {
3037
3037
  collisionDetection: f = Xs,
3038
3038
  measuring: p,
3039
3039
  modifiers: g,
3040
- ...y
3040
+ ...w
3041
3041
  } = t;
3042
- const h = Rr(ji, void 0, zi), [b, _] = h, [x, m] = zs(), [k, S] = he(Xe.Uninitialized), v = k === Xe.Initialized, {
3042
+ const h = Rr(ji, void 0, zi), [m, y] = h, [x, v] = zs(), [_, S] = he(Xe.Uninitialized), b = _ === Xe.Initialized, {
3043
3043
  draggable: {
3044
- active: C,
3044
+ active: k,
3045
3045
  nodes: N,
3046
3046
  translate: O
3047
3047
  },
3048
3048
  droppable: {
3049
3049
  containers: z
3050
3050
  }
3051
- } = b, $ = C != null ? N.get(C) : null, T = V({
3051
+ } = m, $ = k != null ? N.get(k) : null, T = V({
3052
3052
  initial: null,
3053
3053
  translated: null
3054
3054
  }), L = H(() => {
3055
3055
  var Z;
3056
- return C != null ? {
3057
- id: C,
3056
+ return k != null ? {
3057
+ id: k,
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
- }, [C, $]), 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 = Ui(p), {
3062
+ }, [k, $]), M = V(null), [W, oe] = he(null), [I, K] = he(null), ve = Ot(w, Object.values(w)), ze = Ht("DndDescribedBy", i), st = H(() => z.getEnabled(), [z]), Q = Ui(p), {
3063
3063
  droppableRects: me,
3064
3064
  measureDroppableContainers: xe,
3065
3065
  measuringScheduled: Ze
3066
3066
  } = xi(st, {
3067
- dragging: v,
3067
+ dragging: b,
3068
3068
  dependencies: [O.x, O.y],
3069
3069
  config: Q.droppable
3070
- }), F = Ci(N, C), it = H(() => I ? Fn(I) : null, [I]), je = Ir(), Me = ki(F, Q.draggable.measure);
3070
+ }), F = Ci(N, k), it = H(() => I ? Fn(I) : null, [I]), je = Ir(), Me = ki(F, Q.draggable.measure);
3071
3071
  Vi({
3072
- activeNode: C != null ? N.get(C) : null,
3072
+ activeNode: k != null ? N.get(k) : null,
3073
3073
  config: je.layoutShiftCompensation,
3074
3074
  initialRect: Me,
3075
3075
  measure: Q.draggable.measure
@@ -3090,7 +3090,7 @@ const Ki = /* @__PURE__ */ Mr(function(t) {
3090
3090
  scrollAdjustedTranslate: null
3091
3091
  }), at = z.getNodeFor((n = ke.current.over) == null ? void 0 : n.id), Re = Oi({
3092
3092
  measure: Q.dragOverlay.measure
3093
- }), ct = (o = Re.nodeRef.current) != null ? o : F, lt = v ? (r = Re.rect) != null ? r : j : null, ro = !!(Re.nodeRef.current && Re.rect), so = Di(ro ? null : j), pn = gr(ct ? ie(ct) : null), He = Bi(v ? at ?? F : null), Wt = Mi(He), Ut = Wi(g, {
3093
+ }), ct = (o = Re.nodeRef.current) != null ? o : F, lt = b ? (r = Re.rect) != null ? r : j : null, ro = !!(Re.nodeRef.current && Re.rect), so = Di(ro ? null : j), pn = gr(ct ? ie(ct) : null), He = Bi(b ? at ?? F : null), Ut = Mi(He), Vt = Wi(g, {
3094
3094
  transform: {
3095
3095
  x: O.x - so.x,
3096
3096
  y: O.y - so.y,
@@ -3105,15 +3105,15 @@ const Ki = /* @__PURE__ */ Mr(function(t) {
3105
3105
  over: ke.current.over,
3106
3106
  overlayNodeRect: Re.rect,
3107
3107
  scrollableAncestors: He,
3108
- scrollableAncestorRects: Wt,
3108
+ scrollableAncestorRects: Ut,
3109
3109
  windowRect: pn
3110
- }), io = it ? pt(it, O) : null, ao = Ei(He), xr = No(ao), kr = No(ao, [j]), ut = pt(Ut, xr), dt = lt ? Qs(lt, Ut) : null, Ct = L && dt ? f({
3110
+ }), io = it ? pt(it, O) : null, ao = Ei(He), xr = No(ao), kr = No(ao, [j]), ut = pt(Vt, xr), dt = lt ? Qs(lt, Vt) : null, Ct = L && dt ? f({
3111
3111
  active: L,
3112
3112
  collisionRect: dt,
3113
3113
  droppableRects: me,
3114
3114
  droppableContainers: st,
3115
3115
  pointerCoordinates: io
3116
- }) : null, co = Gs(Ct, "id"), [We, lo] = he(null), Ar = ro ? Ut : pt(Ut, kr), Nr = qs(Ar, (s = We == null ? void 0 : We.rect) != null ? s : null, j), vn = V(null), uo = te(
3116
+ }) : null, co = Gs(Ct, "id"), [We, lo] = he(null), Ar = ro ? Vt : pt(Vt, kr), Nr = qs(Ar, (s = We == null ? void 0 : We.rect) != null ? s : null, j), vn = V(null), uo = te(
3117
3117
  (Z, ae) => {
3118
3118
  let {
3119
3119
  sensor: ce,
@@ -3178,8 +3178,8 @@ const Ki = /* @__PURE__ */ Mr(function(t) {
3178
3178
  rect: T
3179
3179
  }
3180
3180
  };
3181
- Vt(() => {
3182
- Oe == null || Oe(St), S(Xe.Initializing), _({
3181
+ Kt(() => {
3182
+ Oe == null || Oe(St), S(Xe.Initializing), y({
3183
3183
  type: G.DragStart,
3184
3184
  initialCoordinates: q,
3185
3185
  active: Ve
@@ -3190,7 +3190,7 @@ const Ki = /* @__PURE__ */ Mr(function(t) {
3190
3190
  });
3191
3191
  },
3192
3192
  onMove(q) {
3193
- _({
3193
+ y({
3194
3194
  type: G.DragMove,
3195
3195
  coordinates: q
3196
3196
  });
@@ -3220,8 +3220,8 @@ const Ki = /* @__PURE__ */ Mr(function(t) {
3220
3220
  over: St
3221
3221
  }, q === G.DragEnd && typeof kt == "function" && await Promise.resolve(kt(Ke)) && (q = G.DragCancel);
3222
3222
  }
3223
- M.current = null, Vt(() => {
3224
- _({
3223
+ M.current = null, Kt(() => {
3224
+ y({
3225
3225
  type: q
3226
3226
  }), S(Xe.Uninitialized), lo(null), oe(null), K(null), vn.current = null;
3227
3227
  const kt = q === G.DragEnd ? "onDragEnd" : "onDragCancel";
@@ -3255,8 +3255,8 @@ const Ki = /* @__PURE__ */ Mr(function(t) {
3255
3255
  }, M.current = Ue, uo(ce, ae));
3256
3256
  }, [N, uo]), ho = Si(u, Dr);
3257
3257
  Ii(u), Te(() => {
3258
- j && k === Xe.Initializing && S(Xe.Initialized);
3259
- }, [j, k]), U(
3258
+ j && _ === Xe.Initializing && S(Xe.Initialized);
3259
+ }, [j, _]), U(
3260
3260
  () => {
3261
3261
  const {
3262
3262
  onDragMove: Z
@@ -3278,7 +3278,7 @@ const Ki = /* @__PURE__ */ Mr(function(t) {
3278
3278
  },
3279
3279
  over: fe
3280
3280
  };
3281
- Vt(() => {
3281
+ Kt(() => {
3282
3282
  Z == null || Z(le), x({
3283
3283
  type: "onDragMove",
3284
3284
  event: le
@@ -3315,7 +3315,7 @@ const Ki = /* @__PURE__ */ Mr(function(t) {
3315
3315
  },
3316
3316
  over: ht
3317
3317
  };
3318
- Vt(() => {
3318
+ Kt(() => {
3319
3319
  lo(ht), le == null || le(q), x({
3320
3320
  type: "onDragOver",
3321
3321
  event: q
@@ -3349,7 +3349,7 @@ const Ki = /* @__PURE__ */ Mr(function(t) {
3349
3349
  draggingRect: dt,
3350
3350
  pointerCoordinates: io,
3351
3351
  scrollableAncestors: He,
3352
- scrollableAncestorRects: Wt
3352
+ scrollableAncestorRects: Ut
3353
3353
  });
3354
3354
  const Br = H(() => ({
3355
3355
  active: L,
@@ -3365,11 +3365,11 @@ const Ki = /* @__PURE__ */ Mr(function(t) {
3365
3365
  over: We,
3366
3366
  measureDroppableContainers: xe,
3367
3367
  scrollableAncestors: He,
3368
- scrollableAncestorRects: Wt,
3368
+ scrollableAncestorRects: Ut,
3369
3369
  measuringConfiguration: Q,
3370
3370
  measuringScheduled: Ze,
3371
3371
  windowRect: pn
3372
- }), [L, F, j, I, Ct, wt, Re, N, z, me, We, xe, He, Wt, Q, Ze, pn]), Er = H(() => ({
3372
+ }), [L, F, j, I, Ct, wt, Re, N, z, me, We, xe, He, Ut, Q, Ze, pn]), Er = H(() => ({
3373
3373
  activatorEvent: I,
3374
3374
  activators: ho,
3375
3375
  active: L,
@@ -3377,13 +3377,13 @@ const Ki = /* @__PURE__ */ Mr(function(t) {
3377
3377
  ariaDescribedById: {
3378
3378
  draggable: ze
3379
3379
  },
3380
- dispatch: _,
3380
+ dispatch: y,
3381
3381
  draggableNodes: N,
3382
3382
  over: We,
3383
3383
  measureDroppableContainers: xe
3384
- }), [I, ho, L, j, _, ze, N, We, xe]);
3384
+ }), [I, ho, L, j, y, ze, N, We, xe]);
3385
3385
  return A.createElement(or.Provider, {
3386
- value: m
3386
+ value: v
3387
3387
  }, A.createElement(gn.Provider, {
3388
3388
  value: Er
3389
3389
  }, A.createElement(pr.Provider, {
@@ -3397,7 +3397,7 @@ const Ki = /* @__PURE__ */ Mr(function(t) {
3397
3397
  hiddenTextDescribedById: ze
3398
3398
  }));
3399
3399
  function Ir() {
3400
- const Z = (W == null ? void 0 : W.autoScrollEnabled) === !1, ae = typeof l == "object" ? l.enabled === !1 : l === !1, ce = v && !Z && !ae;
3400
+ const Z = (W == null ? void 0 : W.autoScrollEnabled) === !1, ae = typeof l == "object" ? l.enabled === !1 : l === !1, ce = b && !Z && !ae;
3401
3401
  return typeof l == "object" ? {
3402
3402
  ...l,
3403
3403
  enabled: ce
@@ -3405,7 +3405,7 @@ const Ki = /* @__PURE__ */ Mr(function(t) {
3405
3405
  enabled: ce
3406
3406
  };
3407
3407
  }
3408
- }), Gi = /* @__PURE__ */ Lt(null), Bo = "button", Yi = "Draggable";
3408
+ }), Gi = /* @__PURE__ */ Pt(null), Bo = "button", Yi = "Draggable";
3409
3409
  function Xi(e) {
3410
3410
  let {
3411
3411
  id: t,
@@ -3413,7 +3413,7 @@ function Xi(e) {
3413
3413
  disabled: o = !1,
3414
3414
  attributes: r
3415
3415
  } = e;
3416
- const s = jt(Yi), {
3416
+ const s = Ht(Yi), {
3417
3417
  activators: i,
3418
3418
  activatorEvent: a,
3419
3419
  active: l,
@@ -3423,16 +3423,16 @@ function Xi(e) {
3423
3423
  over: p
3424
3424
  } = nt(gn), {
3425
3425
  role: g = Bo,
3426
- roleDescription: y = "draggable",
3426
+ roleDescription: w = "draggable",
3427
3427
  tabIndex: h = 0
3428
- } = r ?? {}, b = (l == null ? void 0 : l.id) === t, _ = nt(b ? vr : Gi), [x, m] = sn(), [k, S] = sn(), v = Ti(i, t), C = Rt(n);
3428
+ } = r ?? {}, m = (l == null ? void 0 : l.id) === t, y = nt(m ? vr : Gi), [x, v] = sn(), [_, S] = sn(), b = Ti(i, t), k = Ot(n);
3429
3429
  Te(
3430
3430
  () => (f.set(t, {
3431
3431
  id: t,
3432
3432
  key: s,
3433
3433
  node: x,
3434
- activatorNode: k,
3435
- data: C
3434
+ activatorNode: _,
3435
+ data: k
3436
3436
  }), () => {
3437
3437
  const O = f.get(t);
3438
3438
  O && O.key === s && f.delete(t);
@@ -3444,22 +3444,22 @@ function Xi(e) {
3444
3444
  role: g,
3445
3445
  tabIndex: h,
3446
3446
  "aria-disabled": o,
3447
- "aria-pressed": b && g === Bo ? !0 : void 0,
3448
- "aria-roledescription": y,
3447
+ "aria-pressed": m && g === Bo ? !0 : void 0,
3448
+ "aria-roledescription": w,
3449
3449
  "aria-describedby": u.draggable
3450
- }), [o, g, h, b, y, u.draggable]);
3450
+ }), [o, g, h, m, w, u.draggable]);
3451
3451
  return {
3452
3452
  active: l,
3453
3453
  activatorEvent: a,
3454
3454
  activeNodeRect: d,
3455
3455
  attributes: N,
3456
- isDragging: b,
3457
- listeners: o ? void 0 : v,
3456
+ isDragging: m,
3457
+ listeners: o ? void 0 : b,
3458
3458
  node: x,
3459
3459
  over: p,
3460
- setNodeRef: m,
3460
+ setNodeRef: v,
3461
3461
  setActivatorNodeRef: S,
3462
- transform: _
3462
+ transform: y
3463
3463
  };
3464
3464
  }
3465
3465
  function qi() {
@@ -3475,7 +3475,7 @@ function Zi(e) {
3475
3475
  id: o,
3476
3476
  resizeObserverConfig: r
3477
3477
  } = e;
3478
- const s = jt(Ji), {
3478
+ const s = Ht(Ji), {
3479
3479
  active: i,
3480
3480
  dispatch: a,
3481
3481
  over: l,
@@ -3483,33 +3483,33 @@ function Zi(e) {
3483
3483
  } = nt(gn), u = V({
3484
3484
  disabled: n
3485
3485
  }), f = V(!1), p = V(null), g = V(null), {
3486
- disabled: y,
3486
+ disabled: w,
3487
3487
  updateMeasurementsFor: h,
3488
- timeout: b
3488
+ timeout: m
3489
3489
  } = {
3490
3490
  ...Qi,
3491
3491
  ...r
3492
- }, _ = Rt(h ?? o), x = te(
3492
+ }, y = Ot(h ?? o), x = 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(_.current) ? _.current : [_.current]), g.current = null;
3500
- }, b);
3499
+ d(Array.isArray(y.current) ? y.current : [y.current]), g.current = null;
3500
+ }, m);
3501
3501
  },
3502
3502
  //eslint-disable-next-line react-hooks/exhaustive-deps
3503
- [b]
3504
- ), m = fn({
3503
+ [m]
3504
+ ), v = fn({
3505
3505
  callback: x,
3506
- disabled: y || !i
3507
- }), k = te((N, O) => {
3508
- m && (O && (m.unobserve(O), f.current = !1), N && m.observe(N));
3509
- }, [m]), [S, v] = sn(k), C = Rt(t);
3506
+ disabled: w || !i
3507
+ }), _ = te((N, O) => {
3508
+ v && (O && (v.unobserve(O), f.current = !1), N && v.observe(N));
3509
+ }, [v]), [S, b] = sn(_), k = Ot(t);
3510
3510
  return U(() => {
3511
- !m || !S.current || (m.disconnect(), f.current = !1, m.observe(S.current));
3512
- }, [S, m]), U(
3511
+ !v || !S.current || (v.disconnect(), f.current = !1, v.observe(S.current));
3512
+ }, [S, v]), U(
3513
3513
  () => (a({
3514
3514
  type: G.RegisterDroppable,
3515
3515
  element: {
@@ -3518,7 +3518,7 @@ function Zi(e) {
3518
3518
  disabled: n,
3519
3519
  node: S,
3520
3520
  rect: p,
3521
- data: C
3521
+ data: k
3522
3522
  }
3523
3523
  }), () => a({
3524
3524
  type: G.UnregisterDroppable,
@@ -3540,7 +3540,7 @@ function Zi(e) {
3540
3540
  isOver: (l == null ? void 0 : l.id) === o,
3541
3541
  node: S,
3542
3542
  over: l,
3543
- setNodeRef: v
3543
+ setNodeRef: b
3544
3544
  };
3545
3545
  }
3546
3546
  function mr(e, t, n) {
@@ -3553,7 +3553,7 @@ function ea(e, t) {
3553
3553
  return s && (n[r] = s), n;
3554
3554
  }, Array(e.length));
3555
3555
  }
3556
- function Gt(e) {
3556
+ function Yt(e) {
3557
3557
  return e !== null && e >= 0;
3558
3558
  }
3559
3559
  function ta(e, t) {
@@ -3586,7 +3586,7 @@ const br = (e) => {
3586
3586
  scaleX: a.width / i.width,
3587
3587
  scaleY: a.height / i.height
3588
3588
  };
3589
- }, Yt = {
3589
+ }, Xt = {
3590
3590
  scaleX: 1,
3591
3591
  scaleY: 1
3592
3592
  }, oa = (e) => {
@@ -3606,22 +3606,22 @@ const br = (e) => {
3606
3606
  return d ? {
3607
3607
  x: 0,
3608
3608
  y: n < i ? d.top + d.height - (a.top + a.height) : d.top - a.top,
3609
- ...Yt
3609
+ ...Xt
3610
3610
  } : null;
3611
3611
  }
3612
3612
  const l = ra(s, r, n);
3613
3613
  return r > n && r <= i ? {
3614
3614
  x: 0,
3615
3615
  y: -a.height - l,
3616
- ...Yt
3616
+ ...Xt
3617
3617
  } : r < n && r >= i ? {
3618
3618
  x: 0,
3619
3619
  y: a.height + l,
3620
- ...Yt
3620
+ ...Xt
3621
3621
  } : {
3622
3622
  x: 0,
3623
3623
  y: 0,
3624
- ...Yt
3624
+ ...Xt
3625
3625
  };
3626
3626
  };
3627
3627
  function ra(e, t, n) {
@@ -3656,26 +3656,26 @@ function sa(e) {
3656
3656
  droppableRects: l,
3657
3657
  over: d,
3658
3658
  measureDroppableContainers: u
3659
- } = qi(), f = jt(_r, n), p = a.rect !== null, g = H(() => o.map((v) => typeof v == "object" && "id" in v ? v.id : v), [o]), y = i != null, h = i ? g.indexOf(i.id) : -1, b = d ? g.indexOf(d.id) : -1, _ = V(g), x = !ta(g, _.current), m = b !== -1 && h === -1 || x, k = na(s);
3659
+ } = qi(), f = Ht(_r, n), p = a.rect !== null, g = H(() => o.map((b) => typeof b == "object" && "id" in b ? b.id : b), [o]), w = i != null, h = i ? g.indexOf(i.id) : -1, m = d ? g.indexOf(d.id) : -1, y = V(g), x = !ta(g, y.current), v = m !== -1 && h === -1 || x, _ = na(s);
3660
3660
  Te(() => {
3661
- x && y && u(g);
3662
- }, [x, g, y, u]), U(() => {
3663
- _.current = g;
3661
+ x && w && u(g);
3662
+ }, [x, g, w, u]), U(() => {
3663
+ y.current = g;
3664
3664
  }, [g]);
3665
3665
  const S = H(
3666
3666
  () => ({
3667
3667
  activeIndex: h,
3668
3668
  containerId: f,
3669
- disabled: k,
3670
- disableTransforms: m,
3669
+ disabled: _,
3670
+ disableTransforms: v,
3671
3671
  items: g,
3672
- overIndex: b,
3672
+ overIndex: m,
3673
3673
  useDragOverlay: p,
3674
3674
  sortedRects: ea(g, l),
3675
3675
  strategy: r
3676
3676
  }),
3677
3677
  // eslint-disable-next-line react-hooks/exhaustive-deps
3678
- [h, f, k.draggable, k.droppable, m, g, b, l, p, r]
3678
+ [h, f, _.draggable, _.droppable, v, g, m, l, p, r]
3679
3679
  );
3680
3680
  return A.createElement(yr.Provider, {
3681
3681
  value: S
@@ -3705,7 +3705,7 @@ const ia = (e) => {
3705
3705
  }, ca = {
3706
3706
  duration: 200,
3707
3707
  easing: "ease"
3708
- }, wr = "transform", la = /* @__PURE__ */ Ot.Transition.toString({
3708
+ }, wr = "transform", la = /* @__PURE__ */ $t.Transition.toString({
3709
3709
  property: wr,
3710
3710
  duration: 0,
3711
3711
  easing: "linear"
@@ -3757,29 +3757,29 @@ function ha(e) {
3757
3757
  containerId: f,
3758
3758
  activeIndex: p,
3759
3759
  disabled: g,
3760
- disableTransforms: y,
3760
+ disableTransforms: w,
3761
3761
  sortedRects: h,
3762
- overIndex: b,
3763
- useDragOverlay: _,
3762
+ overIndex: m,
3763
+ useDragOverlay: y,
3764
3764
  strategy: x
3765
- } = nt(yr), m = fa(o, g), k = u.indexOf(i), S = H(() => ({
3765
+ } = nt(yr), v = fa(o, g), _ = u.indexOf(i), S = H(() => ({
3766
3766
  sortable: {
3767
3767
  containerId: f,
3768
- index: k,
3768
+ index: _,
3769
3769
  items: u
3770
3770
  },
3771
3771
  ...r
3772
- }), [f, r, k, u]), v = H(() => u.slice(u.indexOf(i)), [u, i]), {
3773
- rect: C,
3772
+ }), [f, r, _, u]), b = H(() => u.slice(u.indexOf(i)), [u, i]), {
3773
+ rect: k,
3774
3774
  node: N,
3775
3775
  isOver: O,
3776
3776
  setNodeRef: z
3777
3777
  } = Zi({
3778
3778
  id: i,
3779
3779
  data: S,
3780
- disabled: m.droppable,
3780
+ disabled: v.droppable,
3781
3781
  resizeObserverConfig: {
3782
- updateMeasurementsFor: v,
3782
+ updateMeasurementsFor: b,
3783
3783
  ...l
3784
3784
  }
3785
3785
  }), {
@@ -3800,19 +3800,19 @@ function ha(e) {
3800
3800
  ...ua,
3801
3801
  ...n
3802
3802
  },
3803
- disabled: m.draggable
3804
- }), st = Es(z, W), Q = !!$, me = Q && !y && Gt(p) && Gt(b), xe = !_ && I, Ze = xe && me ? ze : null, it = me ? Ze ?? (a ?? x)({
3803
+ disabled: v.draggable
3804
+ }), st = Es(z, W), Q = !!$, me = Q && !w && Yt(p) && Yt(m), xe = !y && I, Ze = xe && me ? ze : null, it = me ? Ze ?? (a ?? x)({
3805
3805
  rects: h,
3806
3806
  activeNodeRect: L,
3807
3807
  activeIndex: p,
3808
- overIndex: b,
3809
- index: k
3810
- }) : null, je = Gt(p) && Gt(b) ? s({
3808
+ overIndex: m,
3809
+ index: _
3810
+ }) : null, je = Yt(p) && Yt(m) ? s({
3811
3811
  id: i,
3812
3812
  items: u,
3813
3813
  activeIndex: p,
3814
- overIndex: b
3815
- }) : k, Me = $ == null ? void 0 : $.id, j = V({
3814
+ overIndex: m
3815
+ }) : _, Me = $ == null ? void 0 : $.id, j = V({
3816
3816
  activeId: Me,
3817
3817
  items: u,
3818
3818
  newIndex: je,
@@ -3823,7 +3823,7 @@ function ha(e) {
3823
3823
  isDragging: I,
3824
3824
  isSorting: Q,
3825
3825
  id: i,
3826
- index: k,
3826
+ index: _,
3827
3827
  items: u,
3828
3828
  newIndex: j.current.newIndex,
3829
3829
  previousItems: j.current.items,
@@ -3832,9 +3832,9 @@ function ha(e) {
3832
3832
  wasDragging: j.current.activeId != null
3833
3833
  }), at = da({
3834
3834
  disabled: !ke,
3835
- index: k,
3835
+ index: _,
3836
3836
  node: N,
3837
- rect: C
3837
+ rect: k
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);
@@ -3854,8 +3854,8 @@ function ha(e) {
3854
3854
  activeIndex: p,
3855
3855
  attributes: M,
3856
3856
  data: S,
3857
- rect: C,
3858
- index: k,
3857
+ rect: k,
3858
+ index: _,
3859
3859
  newIndex: je,
3860
3860
  items: u,
3861
3861
  isOver: O,
@@ -3863,7 +3863,7 @@ function ha(e) {
3863
3863
  isDragging: I,
3864
3864
  listeners: oe,
3865
3865
  node: N,
3866
- overIndex: b,
3866
+ overIndex: m,
3867
3867
  over: K,
3868
3868
  setNodeRef: st,
3869
3869
  setActivatorNodeRef: ve,
@@ -3876,11 +3876,11 @@ function ha(e) {
3876
3876
  if (
3877
3877
  // Temporarily disable transitions for a single frame to set up derived transforms
3878
3878
  at || // Or to prevent items jumping to back to their "new" position when items change
3879
- wt && j.current.newIndex === k
3879
+ wt && j.current.newIndex === _
3880
3880
  )
3881
3881
  return la;
3882
3882
  if (!(xe && !Zn(T) || !d) && (Q || ke))
3883
- return Ot.Transition.toString({
3883
+ return $t.Transition.toString({
3884
3884
  ...d,
3885
3885
  property: wr
3886
3886
  });
@@ -3898,7 +3898,7 @@ function fa(e, t) {
3898
3898
  };
3899
3899
  }
3900
3900
  P.Down, P.Right, P.Up, P.Left;
3901
- const ga = "_header_17vny_1", pa = "_left_17vny_14", va = "_right_17vny_15", Xt = {
3901
+ const ga = "_header_17vny_1", pa = "_left_17vny_14", va = "_right_17vny_15", qt = {
3902
3902
  header: ga,
3903
3903
  left: pa,
3904
3904
  right: va
@@ -3907,23 +3907,23 @@ const ga = "_header_17vny_1", pa = "_left_17vny_14", va = "_right_17vny_15", Xt
3907
3907
  button: ba,
3908
3908
  disabled: _a
3909
3909
  }, ya = () => {
3910
- const { undo: e, redo: t, past: n, future: o } = $o(), [r, s] = A.useState(!1), [i, a] = A.useState(!1), [l, d] = A.useState(!1), [u, f] = A.useState(!1), [p, g] = A.useState(null), { notifications: y, setNotifications: h } = Un();
3910
+ const { undo: e, redo: t, past: n, future: o } = $o(), [r, s] = A.useState(!1), [i, a] = A.useState(!1), [l, d] = A.useState(!1), [u, f] = A.useState(!1), [p, g] = A.useState(null), { notifications: w, setNotifications: h } = Un();
3911
3911
  return A.useEffect(() => {
3912
3912
  s(n.length === 0);
3913
3913
  }, [n]), A.useEffect(() => {
3914
3914
  a(o.length === 0);
3915
- }, [o]), /* @__PURE__ */ w("div", { className: At.buttons, children: [
3916
- /* @__PURE__ */ w(
3915
+ }, [o]), /* @__PURE__ */ C("div", { className: At.buttons, children: [
3916
+ /* @__PURE__ */ C(
3917
3917
  "div",
3918
3918
  {
3919
3919
  className: E(At.button, {
3920
3920
  [At.disabled]: r
3921
3921
  }),
3922
3922
  onMouseEnter: () => {
3923
- const b = setTimeout(() => {
3923
+ const m = setTimeout(() => {
3924
3924
  f(!0), d(!1);
3925
3925
  }, 200);
3926
- g(b);
3926
+ g(m);
3927
3927
  },
3928
3928
  onMouseLeave: () => {
3929
3929
  p && clearTimeout(p), f(!1), d(!1);
@@ -3937,9 +3937,9 @@ const ga = "_header_17vny_1", pa = "_left_17vny_14", va = "_right_17vny_15", Xt
3937
3937
  height: 20,
3938
3938
  onClick: () => {
3939
3939
  r || (e(), h([
3940
- ...y,
3940
+ ...w,
3941
3941
  {
3942
- id: en(),
3942
+ id: Rt(),
3943
3943
  message: "Changes undone",
3944
3944
  status: "success"
3945
3945
  }
@@ -3952,17 +3952,17 @@ const ga = "_header_17vny_1", pa = "_left_17vny_14", va = "_right_17vny_15", Xt
3952
3952
  ]
3953
3953
  }
3954
3954
  ),
3955
- /* @__PURE__ */ w(
3955
+ /* @__PURE__ */ C(
3956
3956
  "div",
3957
3957
  {
3958
3958
  className: E(At.button, {
3959
3959
  [At.disabled]: i
3960
3960
  }),
3961
3961
  onMouseEnter: () => {
3962
- const b = setTimeout(() => {
3962
+ const m = setTimeout(() => {
3963
3963
  d(!0), f(!1);
3964
3964
  }, 200);
3965
- g(b);
3965
+ g(m);
3966
3966
  },
3967
3967
  onMouseLeave: () => {
3968
3968
  p && clearTimeout(p), d(!1), f(!1);
@@ -3976,9 +3976,9 @@ const ga = "_header_17vny_1", pa = "_left_17vny_14", va = "_right_17vny_15", Xt
3976
3976
  height: 20,
3977
3977
  onClick: () => {
3978
3978
  i || (t(), h([
3979
- ...y,
3979
+ ...w,
3980
3980
  {
3981
- id: en(),
3981
+ id: Rt(),
3982
3982
  message: "Changes redone",
3983
3983
  status: "success"
3984
3984
  }
@@ -3998,7 +3998,7 @@ const ga = "_header_17vny_1", pa = "_left_17vny_14", va = "_right_17vny_15", Xt
3998
3998
  active: Sa
3999
3999
  }, xa = () => /* @__PURE__ */ c("div", { className: Wn.devices, children: Or.map((e) => /* @__PURE__ */ c(ka, { device: e })) }), ka = (e) => {
4000
4000
  const { device: t } = e, { currentDevice: n, setCurrentDevice: o } = Vn(), [r, s] = A.useState(!1), [i, a] = A.useState(null);
4001
- return /* @__PURE__ */ w(
4001
+ return /* @__PURE__ */ C(
4002
4002
  "div",
4003
4003
  {
4004
4004
  className: E(Wn.device, {
@@ -4034,7 +4034,7 @@ const ga = "_header_17vny_1", pa = "_left_17vny_14", va = "_right_17vny_15", Xt
4034
4034
  active: Na
4035
4035
  }, Da = () => {
4036
4036
  const { onPreview: e } = Fe(), [t, n] = A.useState(!1), [o, r] = A.useState(null);
4037
- return /* @__PURE__ */ w(
4037
+ return /* @__PURE__ */ C(
4038
4038
  "a",
4039
4039
  {
4040
4040
  href: "/",
@@ -4095,27 +4095,27 @@ const ga = "_header_17vny_1", pa = "_left_17vny_14", va = "_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, b] = A.useState(!1), _ = A.useRef(null);
4099
- Hr(_, () => {
4100
- h && b(!1);
4098
+ } = J(), { deletePage: l, setCurrentBlock: d } = ne(), [u, f] = A.useState(null), { setTitle: p, setDescription: g, setOnConfirm: w } = un(), [h, m] = A.useState(!1), y = A.useRef(null);
4099
+ Hr(y, () => {
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 x = (m) => m ? m.replace(/_/g, " ").split(" ").map((k) => k.charAt(0).toUpperCase() + k.slice(1)).join(" ") : "";
4107
- return /* @__PURE__ */ w(
4106
+ const x = (v) => v ? v.replace(/_/g, " ").split(" ").map((_) => _.charAt(0).toUpperCase() + _.slice(1)).join(" ") : "";
4107
+ return /* @__PURE__ */ C(
4108
4108
  "div",
4109
4109
  {
4110
4110
  className: be.pages,
4111
- ref: _,
4111
+ ref: y,
4112
4112
  children: [
4113
- /* @__PURE__ */ w(
4113
+ /* @__PURE__ */ C(
4114
4114
  "div",
4115
4115
  {
4116
4116
  className: be.default,
4117
- onClick: (m) => {
4118
- m.stopPropagation(), b((k) => !k);
4117
+ onClick: (v) => {
4118
+ v.stopPropagation(), m((_) => !_);
4119
4119
  },
4120
4120
  children: [
4121
4121
  /* @__PURE__ */ c(
@@ -4149,63 +4149,63 @@ const ga = "_header_17vny_1", pa = "_left_17vny_14", va = "_right_17vny_15", Xt
4149
4149
  ]
4150
4150
  }
4151
4151
  ),
4152
- /* @__PURE__ */ w(
4152
+ /* @__PURE__ */ C(
4153
4153
  "div",
4154
4154
  {
4155
4155
  className: E(be.modal, {
4156
4156
  [be.open]: h
4157
4157
  }),
4158
- onClick: (m) => m.stopPropagation(),
4158
+ onClick: (v) => v.stopPropagation(),
4159
4159
  children: [
4160
- o && /* @__PURE__ */ c("div", { className: be.items, children: Object.keys(o).map((m) => {
4161
- const k = o[m];
4162
- return /* @__PURE__ */ w(
4160
+ o && /* @__PURE__ */ c("div", { className: be.items, children: Object.keys(o).map((v) => {
4161
+ const _ = o[v];
4162
+ return /* @__PURE__ */ C(
4163
4163
  "div",
4164
4164
  {
4165
4165
  className: E(be.page, {
4166
- [be.hoverable]: u === m
4166
+ [be.hoverable]: u === v
4167
4167
  }),
4168
- onMouseEnter: () => f(m),
4168
+ onMouseEnter: () => f(v),
4169
4169
  onMouseLeave: () => f(null),
4170
4170
  onClick: () => {
4171
- f(null), r(!1), d(null), t(m), b(!1);
4171
+ f(null), r(!1), d(null), t(v), m(!1);
4172
4172
  },
4173
4173
  children: [
4174
4174
  /* @__PURE__ */ c(
4175
4175
  R,
4176
4176
  {
4177
- name: k.icon,
4177
+ name: _.icon,
4178
4178
  fill: "#252525"
4179
4179
  }
4180
4180
  ),
4181
- /* @__PURE__ */ c("span", { className: be.text, children: Et.includes(k.path) ? `${x(k.name)} page` : k.name }),
4182
- u === m && /* @__PURE__ */ w(Le, { children: [
4181
+ /* @__PURE__ */ c("span", { className: be.text, children: Et.includes(_.path) ? `${x(_.name)} page` : _.name }),
4182
+ u === v && /* @__PURE__ */ C(Le, { children: [
4183
4183
  /* @__PURE__ */ c(
4184
4184
  R,
4185
4185
  {
4186
4186
  name: "Gear",
4187
4187
  fill: "#757575",
4188
4188
  onClick: (S) => {
4189
- S.stopPropagation(), r(!0), s(m), n(!0);
4189
+ S.stopPropagation(), r(!0), s(v), n(!0);
4190
4190
  }
4191
4191
  }
4192
4192
  ),
4193
- !Et.includes(k.path) && /* @__PURE__ */ c(
4193
+ !Et.includes(_.path) && /* @__PURE__ */ c(
4194
4194
  R,
4195
4195
  {
4196
4196
  name: "Trash",
4197
4197
  fill: "#C12A2A",
4198
4198
  onClick: (S) => {
4199
4199
  S.stopPropagation(), p("Delete Page"), g(
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
- ), y(() => {
4202
- S.stopPropagation(), o[e].path === k.path && t(Object.keys(o)[0]), i(m), l(k.name), Cr(k.path);
4200
+ `Are you sure you want to delete ${_.name || "this"} page? Once you delete this page, any content visible will also be deleted. This is irreversible.`
4201
+ ), w(() => {
4202
+ S.stopPropagation(), o[e].path === _.path && t(Object.keys(o)[0]), i(v), l(_.name), Cr(_.path);
4203
4203
  });
4204
4204
  }
4205
4205
  }
4206
4206
  )
4207
4207
  ] }),
4208
- o[e] && o[e].name === k.name && /* @__PURE__ */ c(
4208
+ o[e] && o[e].name === _.name && /* @__PURE__ */ c(
4209
4209
  R,
4210
4210
  {
4211
4211
  name: "Check",
@@ -4214,16 +4214,16 @@ const ga = "_header_17vny_1", pa = "_left_17vny_14", va = "_right_17vny_15", Xt
4214
4214
  )
4215
4215
  ]
4216
4216
  },
4217
- m
4217
+ v
4218
4218
  );
4219
4219
  }) }),
4220
4220
  /* @__PURE__ */ c("div", { className: be.separator }),
4221
- /* @__PURE__ */ w(
4221
+ /* @__PURE__ */ C(
4222
4222
  qe,
4223
4223
  {
4224
4224
  className: be.button,
4225
- onClick: (m) => {
4226
- m.stopPropagation(), n(!0);
4225
+ onClick: (v) => {
4226
+ v.stopPropagation(), n(!0);
4227
4227
  },
4228
4228
  size: "l",
4229
4229
  children: [
@@ -4248,7 +4248,7 @@ const ga = "_header_17vny_1", pa = "_left_17vny_14", va = "_right_17vny_15", Xt
4248
4248
  zoom: ja
4249
4249
  }, Ha = () => {
4250
4250
  const { zoomLevel: e, setZoomLevel: t } = Fe();
4251
- return /* @__PURE__ */ w(
4251
+ return /* @__PURE__ */ C(
4252
4252
  "label",
4253
4253
  {
4254
4254
  htmlFor: "zoom",
@@ -4293,7 +4293,7 @@ const ga = "_header_17vny_1", pa = "_left_17vny_14", va = "_right_17vny_15", Xt
4293
4293
  ]
4294
4294
  }
4295
4295
  );
4296
- }, Wa = () => /* @__PURE__ */ w("div", { className: Ea.settings, children: [
4296
+ }, Wa = () => /* @__PURE__ */ C("div", { className: Ea.settings, children: [
4297
4297
  /* @__PURE__ */ c(za, {}),
4298
4298
  /* @__PURE__ */ c(Ha, {})
4299
4299
  ] }), Ua = "_theme_8ncc1_1", Va = "_text_8ncc1_13", Io = {
@@ -4372,7 +4372,7 @@ function qa(e, t) {
4372
4372
  return null;
4373
4373
  }
4374
4374
  const Ja = ({ setIsLoading: e, isLoading: t }) => {
4375
- const { themeSettings: n } = X(), { settings: o } = Je(), [r, s] = A.useState(null), [i, a] = A.useState(!1), { setNotifications: l, notifications: d } = Un(), { header: u, footer: f, announcement: p, blocks: g } = ne(), { pageContext: y } = J(), { pages: h } = J();
4375
+ const { themeSettings: n } = X(), { settings: o } = Je(), [r, s] = A.useState(null), [i, a] = A.useState(!1), { setNotifications: l, notifications: d } = Un(), { header: u, footer: f, announcement: p, blocks: g } = ne(), { pageContext: w } = J(), { pages: h } = J();
4376
4376
  return /* @__PURE__ */ c(
4377
4377
  qe,
4378
4378
  {
@@ -4381,66 +4381,81 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4381
4381
  r && clearTimeout(r);
4382
4382
  else {
4383
4383
  e(!0);
4384
- const x = Object.keys(g).map((S) => {
4385
- const v = qa(S, h);
4386
- return g[S] && g[S].data && (v != null && v.path) ? {
4387
- id: v ? v.id : S,
4388
- name: v ? v.name : S,
4389
- path: v.path,
4384
+ const x = Object.keys(g).map((_) => {
4385
+ const S = qa(_, h);
4386
+ return g[_] && g[_].data && (S != null && S.path) ? {
4387
+ id: S ? S.id : _,
4388
+ name: S ? S.name : _,
4389
+ path: S.path,
4390
4390
  layout: {
4391
- ...g[S]
4391
+ ...g[_]
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[_].data))],
4394
+ neededCategoryIds: [...Nt("CategoryId", Object.values(g[_].data))],
4395
4395
  neededAnnouncementIds: [
4396
- ...Nt("AnnouncementId", Object.values(g[S].data))
4396
+ ...Nt("AnnouncementId", Object.values(g[_].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[_].data))],
4399
+ neededFaqIds: [...Nt("FaqsIds", Object.values(g[_].data))],
4400
4400
  neededReviewCount: Ya(
4401
4401
  "ReviewCount",
4402
- Object.values(g[S].data),
4403
- y
4402
+ Object.values(g[_].data),
4403
+ w
4404
4404
  ),
4405
- neededVouchCount: Object.values(g[S].data).some(
4406
- (C) => C.name === "Vouches"
4405
+ neededVouchCount: Object.values(g[_].data).some(
4406
+ (b) => b.name === "Vouches"
4407
4407
  ) ? 1e3 : void 0,
4408
- includeLiveStats: Object.values(g[S].data).some(
4409
- (C) => C.name === "LiveActivity"
4408
+ includeLiveStats: Object.values(g[_].data).some(
4409
+ (b) => b.name === "LiveActivity"
4410
4410
  ),
4411
- includeFaqs: Object.values(g[S].data).some((C) => C.name === "FAQ"),
4411
+ includeFaqs: Object.values(g[_].data).some((b) => b.name === "FAQ"),
4412
4412
  seo: {
4413
- pageTitle: v && v.seo && v.seo.pageTitle ? v.seo.pageTitle : "",
4414
- pageDescription: v && v.seo && v.seo.pageDescription ? v.seo.pageDescription : ""
4413
+ pageTitle: S && S.seo && S.seo.pageTitle ? S.seo.pageTitle : "",
4414
+ pageDescription: S && S.seo && S.seo.pageDescription ? S.seo.pageDescription : ""
4415
4415
  },
4416
- isPrivate: !!(v && v.visibility === "private")
4416
+ isPrivate: !!(S && S.visibility === "private")
4417
4417
  } : null;
4418
- }).filter((S) => S), m = {
4418
+ }).filter((_) => _), v = {
4419
4419
  settings: {
4420
4420
  ...o
4421
4421
  },
4422
4422
  header: u,
4423
4423
  footer: f,
4424
4424
  announcement: p
4425
- }, { status: k } = await Ga("post", "save", {
4426
- themeSettings: n,
4427
- settings: m,
4428
- updatedPages: x
4429
- });
4430
- l([
4431
- ...d,
4432
- {
4433
- id: en(),
4434
- message: k === 200 ? "Settings saved" : "Error",
4435
- status: k === 200 ? "success" : "error"
4436
- }
4437
- ]), e(!1);
4425
+ };
4426
+ try {
4427
+ const { status: _ } = await Ga("post", "save", {
4428
+ themeSettings: n,
4429
+ settings: v,
4430
+ updatedPages: x
4431
+ });
4432
+ l([
4433
+ ...d,
4434
+ {
4435
+ id: Rt(),
4436
+ message: _ === 200 ? "Settings saved" : "Error",
4437
+ status: _ === 200 ? "success" : "error"
4438
+ }
4439
+ ]);
4440
+ } catch (_) {
4441
+ const S = _ instanceof Error ? _.message : "An unexpected error occurred";
4442
+ l([
4443
+ ...d,
4444
+ {
4445
+ id: Rt(),
4446
+ message: S,
4447
+ status: "error"
4448
+ }
4449
+ ]);
4450
+ } finally {
4451
+ e(!1);
4452
+ }
4438
4453
  }
4439
4454
  a(!0);
4440
- const _ = setTimeout(() => {
4455
+ const y = setTimeout(() => {
4441
4456
  a(!1);
4442
4457
  }, 2e3);
4443
- s(_);
4458
+ s(y);
4444
4459
  },
4445
4460
  disabled: t,
4446
4461
  type: "Primary",
@@ -4457,20 +4472,20 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4457
4472
  );
4458
4473
  }, Rd = () => {
4459
4474
  const { isOpenSelectModal: e } = J(), [t, n] = A.useState(!1), { showTooltip: o } = Fo();
4460
- return /* @__PURE__ */ w(
4475
+ return /* @__PURE__ */ C(
4461
4476
  "div",
4462
4477
  {
4463
- className: Xt.header,
4478
+ className: qt.header,
4464
4479
  style: {
4465
4480
  zIndex: e ? 5e4 : o ? 501 : 50
4466
4481
  },
4467
4482
  children: [
4468
- /* @__PURE__ */ w("div", { className: Xt.left, children: [
4483
+ /* @__PURE__ */ C("div", { className: qt.left, children: [
4469
4484
  /* @__PURE__ */ c(xa, {}),
4470
4485
  /* @__PURE__ */ c(Da, {})
4471
4486
  ] }),
4472
- /* @__PURE__ */ c("div", { className: Xt.center, children: /* @__PURE__ */ c(Wa, {}) }),
4473
- /* @__PURE__ */ w("div", { className: Xt.right, children: [
4487
+ /* @__PURE__ */ c("div", { className: qt.center, children: /* @__PURE__ */ c(Wa, {}) }),
4488
+ /* @__PURE__ */ C("div", { className: qt.right, children: [
4474
4489
  /* @__PURE__ */ c(Ka, {}),
4475
4490
  /* @__PURE__ */ c(ya, {}),
4476
4491
  /* @__PURE__ */ c(
@@ -4489,7 +4504,7 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4489
4504
  exit: Qa,
4490
4505
  text: Za,
4491
4506
  exitLink: ec
4492
- }, tc = () => /* @__PURE__ */ c("div", { className: An.exit, children: /* @__PURE__ */ w(
4507
+ }, tc = () => /* @__PURE__ */ c("div", { className: An.exit, children: /* @__PURE__ */ C(
4493
4508
  "a",
4494
4509
  {
4495
4510
  href: location.origin,
@@ -4506,7 +4521,7 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4506
4521
  /* @__PURE__ */ c("span", { className: An.text, children: "Exit" })
4507
4522
  ]
4508
4523
  }
4509
- ) }), nc = "_navbar_1lnmu_1", oc = "_main_1lnmu_8", rc = "_block_1lnmu_15", sc = "_active_1lnmu_31", qt = {
4524
+ ) }), nc = "_navbar_1lnmu_1", oc = "_main_1lnmu_8", rc = "_block_1lnmu_15", sc = "_active_1lnmu_31", Jt = {
4510
4525
  navbar: nc,
4511
4526
  main: oc,
4512
4527
  block: rc,
@@ -4532,13 +4547,13 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4532
4547
  break;
4533
4548
  }
4534
4549
  }
4535
- return /* @__PURE__ */ w("div", { className: qt.navbar, children: [
4550
+ return /* @__PURE__ */ C("div", { className: Jt.navbar, children: [
4536
4551
  /* @__PURE__ */ c(tc, {}),
4537
- /* @__PURE__ */ c("div", { className: qt.main, children: $r.map((a) => /* @__PURE__ */ w(
4552
+ /* @__PURE__ */ c("div", { className: Jt.main, children: $r.map((a) => /* @__PURE__ */ C(
4538
4553
  "div",
4539
4554
  {
4540
- className: E(qt.block, {
4541
- [qt.active]: e.icon === a.icon
4555
+ className: E(Jt.block, {
4556
+ [Jt.active]: e.icon === a.icon
4542
4557
  }),
4543
4558
  onClick: () => i(a),
4544
4559
  children: [
@@ -4574,7 +4589,7 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4574
4589
  copy: yc
4575
4590
  }, wc = ["red", "yellow", "green"], Cc = () => {
4576
4591
  const { currentDevice: e } = Vn(), t = (r, s) => r.length > s ? r.slice(0, s) + "..." : r, { notifications: n, setNotifications: o } = Un();
4577
- return /* @__PURE__ */ w("div", { className: De.header, children: [
4592
+ return /* @__PURE__ */ C("div", { className: De.header, children: [
4578
4593
  /* @__PURE__ */ c("div", { className: De.circles, children: wc.map((r) => /* @__PURE__ */ c(
4579
4594
  "div",
4580
4595
  {
@@ -4586,7 +4601,7 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4586
4601
  },
4587
4602
  r
4588
4603
  )) }),
4589
- /* @__PURE__ */ c("div", { className: De.input, children: /* @__PURE__ */ w("div", { className: De.main, children: [
4604
+ /* @__PURE__ */ c("div", { className: De.input, children: /* @__PURE__ */ C("div", { className: De.main, children: [
4590
4605
  /* @__PURE__ */ c(
4591
4606
  R,
4592
4607
  {
@@ -4607,7 +4622,7 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4607
4622
  navigator.clipboard.writeText(window.location.origin), o([
4608
4623
  ...n,
4609
4624
  {
4610
- id: en(),
4625
+ id: Rt(),
4611
4626
  status: "success",
4612
4627
  message: "Domain copied to clipboard"
4613
4628
  }
@@ -4642,8 +4657,8 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4642
4657
  deleteButton: Rc
4643
4658
  }, Oc = () => {
4644
4659
  var S;
4645
- 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) || [], b = h.indexOf(e.id), _ = (v) => {
4646
- v.stopPropagation(), b > 0 && g && (r(g, b, b - 1), t({
4660
+ 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, w = g ? n[g] : null, h = (w == null ? void 0 : w.order) || [], m = h.indexOf(e.id), y = (b) => {
4661
+ b.stopPropagation(), m > 0 && g && (r(g, m, m - 1), t({
4647
4662
  id: e.id,
4648
4663
  neededScroll: !0
4649
4664
  }), setTimeout(() => {
@@ -4652,8 +4667,8 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4652
4667
  neededScroll: !1
4653
4668
  });
4654
4669
  }, 100));
4655
- }, x = (v) => {
4656
- v.stopPropagation(), b < h.length - 1 && g && (r(g, b, b + 1), t({
4670
+ }, x = (b) => {
4671
+ b.stopPropagation(), m < h.length - 1 && g && (r(g, m, m + 1), t({
4657
4672
  id: e.id,
4658
4673
  neededScroll: !0
4659
4674
  }), setTimeout(() => {
@@ -4662,21 +4677,21 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4662
4677
  neededScroll: !1
4663
4678
  });
4664
4679
  }, 100));
4665
- }, m = (v) => {
4666
- v.stopPropagation(), g && s(g, e.id);
4667
- }, k = () => {
4680
+ }, v = (b) => {
4681
+ b.stopPropagation(), g && s(g, e.id);
4682
+ }, _ = () => {
4668
4683
  g && (o(g, e.id), i(null), p(null), t({
4669
4684
  id: null,
4670
4685
  neededScroll: !1
4671
4686
  }));
4672
4687
  };
4673
- return /* @__PURE__ */ c("div", { className: Be.sidebar, children: /* @__PURE__ */ w("div", { className: Be.content, children: [
4688
+ return /* @__PURE__ */ c("div", { className: Be.sidebar, children: /* @__PURE__ */ C("div", { className: Be.content, children: [
4674
4689
  /* @__PURE__ */ c(
4675
4690
  "button",
4676
4691
  {
4677
- onClick: _,
4692
+ onClick: y,
4678
4693
  className: E(Be.button, Be.moveButton),
4679
- disabled: b === 0,
4694
+ disabled: m === 0,
4680
4695
  children: /* @__PURE__ */ c(R, { name: "ArrowUp" })
4681
4696
  }
4682
4697
  ),
@@ -4685,14 +4700,14 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4685
4700
  {
4686
4701
  onClick: x,
4687
4702
  className: E(Be.button, Be.moveButton),
4688
- disabled: b === h.length - 1,
4703
+ disabled: m === h.length - 1,
4689
4704
  children: /* @__PURE__ */ c(R, { name: "ArrowDown" })
4690
4705
  }
4691
4706
  ),
4692
4707
  /* @__PURE__ */ c(
4693
4708
  "button",
4694
4709
  {
4695
- onClick: m,
4710
+ onClick: v,
4696
4711
  className: E(Be.button, Be.moveButton),
4697
4712
  children: /* @__PURE__ */ c(R, { name: "Copy" })
4698
4713
  }
@@ -4701,10 +4716,10 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4701
4716
  "button",
4702
4717
  {
4703
4718
  className: E(Be.button, Be.deleteButton),
4704
- onClick: (v) => {
4705
- v.stopPropagation(), d("Remove Block"), u(
4706
- `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.`
4707
- ), f(k);
4719
+ onClick: (b) => {
4720
+ b.stopPropagation(), d("Remove Block"), u(
4721
+ `Are you sure you want to delete ${(w == null ? void 0 : w.data[e.id].name) || "this"} block? Once you delete this block, any content visible will also be deleted. This is irreversible.`
4722
+ ), f(_);
4708
4723
  },
4709
4724
  children: /* @__PURE__ */ c(
4710
4725
  R,
@@ -4724,36 +4739,36 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4724
4739
  currentBlock: l,
4725
4740
  setPositionBlock: d,
4726
4741
  announcement: u
4727
- } = ne(), { settings: f } = Je(), { currentPage: p, pages: g, pageContext: y } = J(), { activeBlock: h, setActiveBlock: b } = X(), { setActiveBlock: _ } = se(), x = A.useRef(n.id), m = A.useRef({});
4742
+ } = ne(), { settings: f } = Je(), { currentPage: p, pages: g, pageContext: w } = J(), { activeBlock: h, setActiveBlock: m } = X(), { setActiveBlock: y } = se(), x = A.useRef(n.id), v = A.useRef({});
4728
4743
  A.useEffect(() => {
4729
- if (n.id && n.neededScroll && m.current[n.id]) {
4730
- const v = m.current[n.id];
4731
- if (v && e.current) {
4732
- const C = v.offsetTop;
4744
+ if (n.id && n.neededScroll && v.current[n.id]) {
4745
+ const b = v.current[n.id];
4746
+ if (b && e.current) {
4747
+ const k = b.offsetTop;
4733
4748
  e.current.scrollTo({
4734
- top: C - 30,
4749
+ top: k - 30,
4735
4750
  behavior: "smooth"
4736
4751
  });
4737
4752
  }
4738
4753
  }
4739
4754
  }, [n, e]);
4740
- const k = rt();
4755
+ const _ = rt();
4741
4756
  A.useEffect(() => {
4742
4757
  x.current = n.id;
4743
4758
  }, [n.id]);
4744
- const S = (v) => {
4745
- if (!v || !v.name)
4759
+ const S = (b) => {
4760
+ if (!b || !b.name)
4746
4761
  return /* @__PURE__ */ c(nn, { error: "Block or block.name is undefined." });
4747
- if (!r || !r[v.name])
4748
- return /* @__PURE__ */ c(nn, { error: `Block "${v.name}" does not exist in blocks.` });
4749
- const C = new r[v.name]();
4750
- return v.value && Object.assign(C, v.value), C.renderBlock(f, y);
4762
+ if (!r || !r[b.name])
4763
+ return /* @__PURE__ */ c(nn, { error: `Block "${b.name}" does not exist in blocks.` });
4764
+ const k = new r[b.name]();
4765
+ return b.value && Object.assign(k, b.value), k.renderBlock(f, w);
4751
4766
  };
4752
- return /* @__PURE__ */ w(
4767
+ return /* @__PURE__ */ C(
4753
4768
  "div",
4754
4769
  {
4755
- onClick: (v) => {
4756
- v.stopPropagation();
4770
+ onClick: (b) => {
4771
+ b.stopPropagation();
4757
4772
  },
4758
4773
  className: Ge.content,
4759
4774
  style: {
@@ -4765,74 +4780,74 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4765
4780
  children: [
4766
4781
  u && /* @__PURE__ */ c(Vo, {}),
4767
4782
  /* @__PURE__ */ c(Uo, {}),
4768
- /* @__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((v) => /* @__PURE__ */ w(
4783
+ /* @__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__ */ C(
4769
4784
  "div",
4770
4785
  {
4771
- ref: (C) => m.current[v] = C,
4772
- onClick: (C) => {
4773
- C.stopPropagation(), _(null), h && b(null), t({
4774
- id: v,
4786
+ ref: (k) => v.current[b] = k,
4787
+ onClick: (k) => {
4788
+ k.stopPropagation(), y(null), h && m(null), t({
4789
+ id: b,
4775
4790
  neededScroll: !0
4776
4791
  }), setTimeout(() => {
4777
4792
  t({
4778
- id: v,
4793
+ id: b,
4779
4794
  neededScroll: !1
4780
4795
  });
4781
4796
  }, 100), a(null), l ? setTimeout(() => {
4782
4797
  a(n.id);
4783
4798
  }, 100) : a(n.id);
4784
4799
  },
4785
- onMouseEnter: (C) => {
4786
- C.stopPropagation(), n.neededScroll || t({
4787
- id: v,
4800
+ onMouseEnter: (k) => {
4801
+ k.stopPropagation(), n.neededScroll || t({
4802
+ id: b,
4788
4803
  neededScroll: !1
4789
4804
  });
4790
4805
  },
4791
- onMouseLeave: (C) => {
4792
- C.stopPropagation(), n.neededScroll || t({
4806
+ onMouseLeave: (k) => {
4807
+ k.stopPropagation(), n.neededScroll || t({
4793
4808
  id: null,
4794
4809
  neededScroll: !1
4795
4810
  });
4796
4811
  },
4797
4812
  className: E(Ge.block),
4798
4813
  children: [
4799
- (n.id === v || l === v) && /* @__PURE__ */ c("div", { className: Ge.active }),
4800
- (n.id === v || l === v) && /* @__PURE__ */ c("div", { className: Ge.name, children: tt(
4801
- i[g[p].path].data[v].name,
4814
+ (n.id === b || l === b) && /* @__PURE__ */ c("div", { className: Ge.active }),
4815
+ (n.id === b || l === b) && /* @__PURE__ */ c("div", { className: Ge.name, children: tt(
4816
+ i[g[p].path].data[b].name,
4802
4817
  s
4803
4818
  ) }),
4804
- (n.id === v || l === v) && tt(
4805
- i[g[p].path].data[v].name,
4819
+ (n.id === b || l === b) && tt(
4820
+ i[g[p].path].data[b].name,
4806
4821
  s
4807
4822
  ) !== "unknown name" && /* @__PURE__ */ c(Oc, {}),
4808
- (n.id === v || l === v) && tt(
4809
- i[g[p].path].data[v].name,
4823
+ (n.id === b || l === b) && tt(
4824
+ i[g[p].path].data[b].name,
4810
4825
  s
4811
4826
  ) !== "unknown name" && /* @__PURE__ */ c("div", { className: Ge.addSection, children: /* @__PURE__ */ c(
4812
4827
  qe,
4813
4828
  {
4814
4829
  type: "Primary",
4815
- onClick: (C) => {
4816
- C.stopPropagation(), d(v, !0), a(null), t({
4830
+ onClick: (k) => {
4831
+ k.stopPropagation(), d(b, !0), a(null), t({
4817
4832
  id: null,
4818
4833
  neededScroll: !1
4819
- }), _(null), k("/admin/builder/add");
4834
+ }), y(null), _("/admin/builder/add");
4820
4835
  },
4821
4836
  children: "Add Section"
4822
4837
  }
4823
4838
  ) }),
4824
- (n.id === v || l === v) && tt(
4825
- i[g[p].path].data[v].name,
4839
+ (n.id === b || l === b) && tt(
4840
+ i[g[p].path].data[b].name,
4826
4841
  s
4827
4842
  ) !== "unknown name" && /* @__PURE__ */ c("div", { className: E(Ge.addSection, Ge.addSectionTop), children: /* @__PURE__ */ c(
4828
4843
  qe,
4829
4844
  {
4830
4845
  type: "Primary",
4831
- onClick: (C) => {
4832
- C.stopPropagation(), d(v, !1), a(null), t({
4846
+ onClick: (k) => {
4847
+ k.stopPropagation(), d(b, !1), a(null), t({
4833
4848
  id: null,
4834
4849
  neededScroll: !1
4835
- }), _(null), k("/admin/builder/add");
4850
+ }), y(null), _("/admin/builder/add");
4836
4851
  },
4837
4852
  children: "Add Section"
4838
4853
  }
@@ -4841,12 +4856,12 @@ const Ja = ({ setIsLoading: e, isLoading: t }) => {
4841
4856
  Yn,
4842
4857
  {
4843
4858
  render: S,
4844
- block: i[g[p].path].data[v]
4859
+ block: i[g[p].path].data[b]
4845
4860
  }
4846
4861
  )
4847
4862
  ]
4848
4863
  },
4849
- v
4864
+ b
4850
4865
  )) }),
4851
4866
  /* @__PURE__ */ c(Wo, {})
4852
4867
  ]
@@ -4878,28 +4893,28 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
4878
4893
  startHideTimeout: f,
4879
4894
  setHoverBlockTopPosition: p
4880
4895
  } = dn();
4881
- function g(b) {
4882
- n(""), r(b), s("keyBlock");
4896
+ function g(m) {
4897
+ n(""), r(m), s("keyBlock");
4883
4898
  }
4884
- function y(b, _) {
4885
- const x = window.innerHeight, m = 400, k = 10;
4886
- let S = _.clientY - 120;
4887
- S + m > x && (S = x - m - k), S < k && (S = k), i || s("keyBlock"), l(b, "keyBlock"), u(), p(S);
4899
+ function w(m, y) {
4900
+ const x = window.innerHeight, v = 400, _ = 10;
4901
+ let S = y.clientY - 120;
4902
+ S + v > x && (S = x - v - _), S < _ && (S = _), i || s("keyBlock"), l(m, "keyBlock"), u(), p(S);
4888
4903
  }
4889
4904
  function h() {
4890
4905
  a ? f("keyBlock") : d("keyBlock"), p(null);
4891
4906
  }
4892
- return /* @__PURE__ */ w(
4907
+ return /* @__PURE__ */ C(
4893
4908
  "div",
4894
4909
  {
4895
4910
  className: Nn.product,
4896
4911
  onClick: () => g(t),
4897
- onMouseEnter: (b) => y(t, b),
4912
+ onMouseEnter: (m) => w(t, m),
4898
4913
  onMouseLeave: h,
4899
4914
  children: [
4900
4915
  (() => {
4901
- const b = Gn[t];
4902
- return b ? /* @__PURE__ */ c(b, { className: Nn.icon }) : /* @__PURE__ */ c(R, { name: "Cards" });
4916
+ const m = Gn[t];
4917
+ return m ? /* @__PURE__ */ c(m, { className: Nn.icon }) : /* @__PURE__ */ c(R, { name: "Cards" });
4903
4918
  })(),
4904
4919
  /* @__PURE__ */ c("span", { className: Nn.name, children: tt(t, o) }),
4905
4920
  /* @__PURE__ */ c(
@@ -4929,7 +4944,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
4929
4944
  const l = a.search(n);
4930
4945
  s(l.map((d) => d.item));
4931
4946
  }
4932
- }, [n, a]), /* @__PURE__ */ w(Le, { children: [
4947
+ }, [n, a]), /* @__PURE__ */ C(Le, { children: [
4933
4948
  /* @__PURE__ */ c(
4934
4949
  ue,
4935
4950
  {
@@ -4952,13 +4967,13 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
4952
4967
  )) : /* @__PURE__ */ c("div", { className: To.noResults, children: "No sections found" }) })
4953
4968
  ] });
4954
4969
  }, $d = () => {
4955
- const { onPreview: e, zoomLevel: t } = Fe(), { keyBlock: n, hoverBlockId: o, isModalVisible: r, hoverBlockTopPosition: s } = dn(), { settings: i } = Je(), { sourceBlocks: a } = se(), { pageContext: l } = J(), { showModal: d } = zo(), { currentDevice: u } = Vn(), { isLoadingThemeSettings: f } = X(), { isLoadingLayers: p } = ne(), g = (m) => m ? !a || !a[m] ? /* @__PURE__ */ c(nn, { error: `Block "${m}" does not exist in blocks.` }) : new a[m]().renderPreview(i, l) : /* @__PURE__ */ c(nn, { error: "Block or block.name is undefined." });
4956
- function y() {
4970
+ const { onPreview: e, zoomLevel: t } = Fe(), { keyBlock: n, hoverBlockId: o, isModalVisible: r, hoverBlockTopPosition: s } = dn(), { settings: i } = Je(), { sourceBlocks: a } = se(), { pageContext: l } = J(), { showModal: d } = zo(), { currentDevice: u } = Vn(), { isLoadingThemeSettings: f } = X(), { isLoadingLayers: p } = ne(), g = (v) => v ? !a || !a[v] ? /* @__PURE__ */ c(nn, { error: `Block "${v}" does not exist in blocks.` }) : new a[v]().renderPreview(i, l) : /* @__PURE__ */ c(nn, { error: "Block or block.name is undefined." });
4971
+ function w() {
4957
4972
  if (u.value === "desktop")
4958
4973
  return t >= 1 ? "100%" : `${(t * 100).toFixed(2)}%`;
4959
4974
  {
4960
- const m = u.value === "tablet" ? 768 : 425;
4961
- return t >= 1 ? `${m}px` : `${(m * t).toFixed(2)}px`;
4975
+ const v = u.value === "tablet" ? 768 : 425;
4976
+ return t >= 1 ? `${v}px` : `${(v * t).toFixed(2)}px`;
4962
4977
  }
4963
4978
  }
4964
4979
  function h() {
@@ -4973,20 +4988,20 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
4973
4988
  return "100%";
4974
4989
  }
4975
4990
  }
4976
- const { isOpenSelectModal: b } = J(), _ = A.useRef(null), x = (m) => {
4977
- _.current && (_.current.scrollTop += m.deltaY);
4991
+ const { isOpenSelectModal: m } = J(), y = A.useRef(null), x = (v) => {
4992
+ y.current && (y.current.scrollTop += v.deltaY);
4978
4993
  };
4979
- return /* @__PURE__ */ w(
4994
+ return /* @__PURE__ */ C(
4980
4995
  "div",
4981
4996
  {
4982
4997
  className: Dt.preview,
4983
- style: { zIndex: d && !b ? 5e3 : 500 },
4984
- onWheel: (m) => {
4985
- m.stopPropagation(), x(m);
4998
+ style: { zIndex: d && !m ? 5e3 : 500 },
4999
+ onWheel: (v) => {
5000
+ v.stopPropagation(), x(v);
4986
5001
  },
4987
5002
  children: [
4988
5003
  r && /* @__PURE__ */ c(Lr, { children: /* @__PURE__ */ c(Sr, {}) }),
4989
- /* @__PURE__ */ w(
5004
+ /* @__PURE__ */ C(
4990
5005
  Pr,
4991
5006
  {
4992
5007
  positionTop: s,
@@ -5005,7 +5020,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5005
5020
  }
5006
5021
  ),
5007
5022
  d && /* @__PURE__ */ c(Fr, {}),
5008
- e && /* @__PURE__ */ w(
5023
+ e && /* @__PURE__ */ C(
5009
5024
  "div",
5010
5025
  {
5011
5026
  className: Dt.main,
@@ -5018,8 +5033,8 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5018
5033
  "div",
5019
5034
  {
5020
5035
  style: {
5021
- borderLeft: y() === "100%" ? "none" : "var(--default-border)",
5022
- borderRight: y() === "100%" ? "none" : "var(--default-border)",
5036
+ borderLeft: w() === "100%" ? "none" : "var(--default-border)",
5037
+ borderRight: w() === "100%" ? "none" : "var(--default-border)",
5023
5038
  width: "100%",
5024
5039
  display: "flex",
5025
5040
  flexDirection: "column",
@@ -5028,20 +5043,20 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5028
5043
  overflowY: "scroll",
5029
5044
  overflowX: "hidden"
5030
5045
  },
5031
- onScroll: (m) => {
5032
- m.stopPropagation();
5046
+ onScroll: (v) => {
5047
+ v.stopPropagation();
5033
5048
  },
5034
- onWheel: (m) => {
5035
- m.stopPropagation();
5049
+ onWheel: (v) => {
5050
+ v.stopPropagation();
5036
5051
  },
5037
5052
  children: !f && !p ? /* @__PURE__ */ c(
5038
5053
  "div",
5039
5054
  {
5040
5055
  className: Dt.content,
5041
5056
  style: {
5042
- width: y()
5057
+ width: w()
5043
5058
  },
5044
- children: /* @__PURE__ */ c($c, { scrollableRef: _ })
5059
+ children: /* @__PURE__ */ c($c, { scrollableRef: y })
5045
5060
  }
5046
5061
  ) : /* @__PURE__ */ c("div", { className: Dt.loading, children: /* @__PURE__ */ c(ot, {}) })
5047
5062
  }
@@ -5086,7 +5101,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5086
5101
  function s(i) {
5087
5102
  t(i);
5088
5103
  }
5089
- return /* @__PURE__ */ w(
5104
+ return /* @__PURE__ */ C(
5090
5105
  "div",
5091
5106
  {
5092
5107
  className: E(Ye.block, {
@@ -5140,30 +5155,30 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5140
5155
  clearHideTimeout: f,
5141
5156
  startHideTimeout: p,
5142
5157
  hoverBlockId: g,
5143
- isModalVisible: y
5144
- } = dn(), { setPositionBlock: h } = ne(), [b, _] = A.useState(!1), [x, m] = A.useState(!1), [k, S] = A.useState(!1), [v, C] = A.useState(!1), [N, O] = A.useState(null), z = A.useRef(null), { attributes: $, listeners: T, setNodeRef: L, transform: M, transition: W } = ha({
5158
+ isModalVisible: w
5159
+ } = dn(), { setPositionBlock: h } = ne(), [m, y] = A.useState(!1), [x, v] = A.useState(!1), [_, S] = A.useState(!1), [b, k] = A.useState(!1), [N, O] = A.useState(null), z = A.useRef(null), { attributes: $, listeners: T, setNodeRef: L, transform: M, transition: W } = ha({
5145
5160
  id: e
5146
5161
  }), oe = {
5147
- transform: Ot.Transform.toString(M),
5162
+ transform: $t.Transform.toString(M),
5148
5163
  transition: W
5149
5164
  }, { setTitle: I, setDescription: K, setOnConfirm: ve } = un(), { pages: ze, currentPage: st } = J(), { removeBlock: Q } = ne(), me = (F) => {
5150
5165
  F.stopPropagation(), z.current && clearTimeout(z.current), i({
5151
5166
  id: e,
5152
5167
  neededScroll: !0
5153
- }), y && u(), a(e), f();
5168
+ }), w && u(), a(e), f();
5154
5169
  }, xe = (F, it = !0) => {
5155
5170
  F.stopPropagation(), l(), d(e), f(), h(e, it);
5156
5171
  }, Ze = (F) => {
5157
5172
  F.stopPropagation(), i({
5158
5173
  id: null,
5159
5174
  neededScroll: !1
5160
- }), y ? p() : l();
5175
+ }), w ? p() : l();
5161
5176
  };
5162
5177
  return A.useEffect(() => {
5163
- S(!1), _(!1), m(!1), C(!1);
5178
+ S(!1), y(!1), v(!1), k(!1);
5164
5179
  }, [o]), A.useEffect(() => {
5165
- y || (m(!1), _(!1));
5166
- }, [y]), /* @__PURE__ */ w(
5180
+ w || (v(!1), y(!1));
5181
+ }, [w]), /* @__PURE__ */ C(
5167
5182
  "div",
5168
5183
  {
5169
5184
  ref: L,
@@ -5179,7 +5194,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5179
5194
  ...$,
5180
5195
  ...T,
5181
5196
  children: [
5182
- /* @__PURE__ */ w(
5197
+ /* @__PURE__ */ C(
5183
5198
  "div",
5184
5199
  {
5185
5200
  className: E(ee.block, {
@@ -5209,24 +5224,24 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5209
5224
  [ee.visible]: x
5210
5225
  }),
5211
5226
  onMouseEnter: () => {
5212
- m(!0);
5227
+ v(!0);
5213
5228
  },
5214
5229
  onMouseLeave: () => {
5215
- m(!1);
5230
+ v(!1);
5216
5231
  },
5217
- children: /* @__PURE__ */ w(
5232
+ children: /* @__PURE__ */ C(
5218
5233
  "button",
5219
5234
  {
5220
5235
  className: ee.button,
5221
5236
  onClick: (F) => xe(F, !1),
5222
5237
  onMouseEnter: () => {
5223
5238
  const F = setTimeout(() => {
5224
- o || C(!0);
5239
+ o || k(!0);
5225
5240
  }, 200);
5226
5241
  O(F);
5227
5242
  },
5228
5243
  onMouseLeave: () => {
5229
- N && clearTimeout(N), C(!1);
5244
+ N && clearTimeout(N), k(!1);
5230
5245
  },
5231
5246
  children: [
5232
5247
  /* @__PURE__ */ c(
@@ -5236,7 +5251,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5236
5251
  fill: "#fff"
5237
5252
  }
5238
5253
  ),
5239
- v && /* @__PURE__ */ c(vt, { text: "Click to add a section" })
5254
+ b && /* @__PURE__ */ c(vt, { text: "Click to add a section" })
5240
5255
  ]
5241
5256
  }
5242
5257
  )
@@ -5246,15 +5261,15 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5246
5261
  "div",
5247
5262
  {
5248
5263
  className: E(ee.add, {
5249
- [ee.visible]: b
5264
+ [ee.visible]: m
5250
5265
  }),
5251
5266
  onMouseEnter: () => {
5252
- _(!0);
5267
+ y(!0);
5253
5268
  },
5254
5269
  onMouseLeave: () => {
5255
- _(!1);
5270
+ y(!1);
5256
5271
  },
5257
- children: /* @__PURE__ */ w(
5272
+ children: /* @__PURE__ */ C(
5258
5273
  "button",
5259
5274
  {
5260
5275
  className: ee.button,
@@ -5276,7 +5291,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5276
5291
  fill: "#fff"
5277
5292
  }
5278
5293
  ),
5279
- k && /* @__PURE__ */ c(vt, { text: "Click to add a section" })
5294
+ _ && /* @__PURE__ */ c(vt, { text: "Click to add a section" })
5280
5295
  ]
5281
5296
  }
5282
5297
  )
@@ -5285,7 +5300,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5285
5300
  ]
5286
5301
  }
5287
5302
  ),
5288
- g === e && !o && /* @__PURE__ */ w("div", { className: ee.actions, children: [
5303
+ g === e && !o && /* @__PURE__ */ C("div", { className: ee.actions, children: [
5289
5304
  /* @__PURE__ */ c(
5290
5305
  R,
5291
5306
  {
@@ -5324,8 +5339,8 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5324
5339
  );
5325
5340
  }, cl = () => {
5326
5341
  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();
5327
- function f(_) {
5328
- t(_), l(!1), d(null);
5342
+ function f(y) {
5343
+ t(y), l(!1), d(null);
5329
5344
  }
5330
5345
  const p = Vs(
5331
5346
  Us(oo, {
@@ -5333,44 +5348,44 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5333
5348
  distance: 5
5334
5349
  }
5335
5350
  })
5336
- ), [g, y] = A.useState(!1), h = () => {
5337
- y(!0);
5338
- }, b = (_) => {
5339
- y(!1);
5340
- const { active: x, over: m } = _;
5341
- if (m && x.id !== m.id && a && a[i]) {
5342
- const k = a[i].path, S = e[k].order, v = S.indexOf(x.id), C = S.indexOf(m.id);
5343
- v !== -1 && C !== -1 && o(k, v, C);
5351
+ ), [g, w] = A.useState(!1), h = () => {
5352
+ w(!0);
5353
+ }, m = (y) => {
5354
+ w(!1);
5355
+ const { active: x, over: v } = y;
5356
+ if (v && x.id !== v.id && a && a[i]) {
5357
+ const _ = a[i].path, S = e[_].order, b = S.indexOf(x.id), k = S.indexOf(v.id);
5358
+ b !== -1 && k !== -1 && o(_, b, k);
5344
5359
  }
5345
5360
  };
5346
- return /* @__PURE__ */ c("div", { className: ee.layers, children: r ? /* @__PURE__ */ c("div", { className: ee.loader, children: /* @__PURE__ */ c(ot, {}) }) : /* @__PURE__ */ w(Le, { children: [
5361
+ return /* @__PURE__ */ c("div", { className: ee.layers, children: r ? /* @__PURE__ */ c("div", { className: ee.loader, children: /* @__PURE__ */ c(ot, {}) }) : /* @__PURE__ */ C(Le, { children: [
5347
5362
  s && /* @__PURE__ */ c(Dn, { id: "announcement" }),
5348
5363
  /* @__PURE__ */ c(Dn, { id: "header" }),
5349
5364
  !n && /* @__PURE__ */ c(
5350
5365
  Ki,
5351
5366
  {
5352
5367
  sensors: p,
5353
- onDragEnd: b,
5368
+ onDragEnd: m,
5354
5369
  onDragStart: h,
5355
5370
  children: a && a[i] && e[a[i].path] && /* @__PURE__ */ c(
5356
5371
  sa,
5357
5372
  {
5358
5373
  items: e[a[i].path].order,
5359
5374
  strategy: oa,
5360
- children: e[a[i].path].order.map((_, x) => /* @__PURE__ */ c(
5375
+ children: e[a[i].path].order.map((y, x) => /* @__PURE__ */ c(
5361
5376
  al,
5362
5377
  {
5363
- id: _,
5378
+ id: y,
5364
5379
  name: tt(
5365
- e[a[i].path].data[_].name,
5380
+ e[a[i].path].data[y].name,
5366
5381
  u
5367
5382
  ),
5368
5383
  index: x,
5369
5384
  onClick: f,
5370
5385
  isDragging: g,
5371
- icon: Gn[e[a[i].path].data[_].name]
5386
+ icon: Gn[e[a[i].path].data[y].name]
5372
5387
  },
5373
- _
5388
+ y
5374
5389
  ))
5375
5390
  }
5376
5391
  )
@@ -5395,7 +5410,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5395
5410
  } catch (r) {
5396
5411
  throw console.error("Error rendering settings:", r), r;
5397
5412
  }
5398
- }, fl = "_theme_8b5no_1", gl = "_block_8b5no_9", pl = "_name_8b5no_24", vl = "_loader_8b5no_28", Jt = {
5413
+ }, fl = "_theme_8b5no_1", gl = "_block_8b5no_9", pl = "_name_8b5no_24", vl = "_loader_8b5no_28", Qt = {
5399
5414
  theme: fl,
5400
5415
  block: gl,
5401
5416
  name: pl,
@@ -5438,14 +5453,14 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5438
5453
  break;
5439
5454
  }
5440
5455
  }
5441
- return /* @__PURE__ */ c("div", { className: Jt.theme, children: n ? /* @__PURE__ */ c("div", { className: Jt.loader, children: /* @__PURE__ */ c(ot, {}) }) : (t ? r : ft).map((i) => /* @__PURE__ */ w(
5456
+ return /* @__PURE__ */ c("div", { className: Qt.theme, children: n ? /* @__PURE__ */ c("div", { className: Qt.loader, children: /* @__PURE__ */ c(ot, {}) }) : (t ? r : ft).map((i) => /* @__PURE__ */ C(
5442
5457
  "div",
5443
5458
  {
5444
5459
  onClick: () => s(i),
5445
- className: E(Jt.block),
5460
+ className: E(Qt.block),
5446
5461
  children: [
5447
5462
  /* @__PURE__ */ c(R, { name: i.icon }),
5448
- /* @__PURE__ */ c("span", { className: Jt.name, children: i.name }),
5463
+ /* @__PURE__ */ c("span", { className: Qt.name, children: i.name }),
5449
5464
  /* @__PURE__ */ c(R, { name: "CaretRight" })
5450
5465
  ]
5451
5466
  },
@@ -5487,10 +5502,10 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5487
5502
  variable: p
5488
5503
  };
5489
5504
  }
5490
- return /* @__PURE__ */ w("div", { className: ge.wrapper, children: [
5491
- /* @__PURE__ */ w("div", { className: ge.header, children: [
5505
+ return /* @__PURE__ */ C("div", { className: ge.wrapper, children: [
5506
+ /* @__PURE__ */ C("div", { className: ge.header, children: [
5492
5507
  /* @__PURE__ */ c("div", { className: ge.title, children: "Section Colors" }),
5493
- !o && /* @__PURE__ */ w(
5508
+ !o && /* @__PURE__ */ C(
5494
5509
  "div",
5495
5510
  {
5496
5511
  className: E(ge.value, ge.length),
@@ -5502,7 +5517,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5502
5517
  }
5503
5518
  )
5504
5519
  ] }),
5505
- o && /* @__PURE__ */ w(Le, { children: [
5520
+ o && /* @__PURE__ */ C(Le, { children: [
5506
5521
  /* @__PURE__ */ c("div", { className: ge.colors, children: t.map((i) => {
5507
5522
  const a = s(i), { variable: l, name: d, field: u } = a;
5508
5523
  return /* @__PURE__ */ c(
@@ -5513,7 +5528,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5513
5528
  }
5514
5529
  );
5515
5530
  }) }),
5516
- t.length > 3 && /* @__PURE__ */ w(
5531
+ t.length > 3 && /* @__PURE__ */ C(
5517
5532
  "div",
5518
5533
  {
5519
5534
  className: E(ge.value, ge.length),
@@ -5539,32 +5554,32 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5539
5554
  colorChange: u,
5540
5555
  setIsGradientActive: f,
5541
5556
  setIsBlockSettings: p
5542
- } = zo(), { updateColor: g } = X(), y = (_, x) => (m) => {
5543
- g(_, x, m);
5557
+ } = zo(), { updateColor: g } = X(), w = (y, x) => (v) => {
5558
+ g(y, x, v);
5544
5559
  };
5545
5560
  A.useEffect(() => {
5546
- const _ = () => {
5561
+ const y = () => {
5547
5562
  i(!1), o(null), s(n), a(() => {
5548
5563
  }), l(n), d(() => {
5549
5564
  });
5550
5565
  };
5551
- return document.body.addEventListener("click", _), () => {
5552
- document.body.removeEventListener("click", _);
5566
+ return document.body.addEventListener("click", y), () => {
5567
+ document.body.removeEventListener("click", y);
5553
5568
  };
5554
5569
  }, []);
5555
- const h = (_) => {
5556
- const x = t.split("/")[0], m = x.split(" ")[0].toLowerCase(), k = x.split(" ")[1].toLowerCase();
5557
- _.stopPropagation(), i(!0), d(u), a((C) => y(k, m)(C)), s(n), l(n), p(!0), f(k === "surface");
5558
- const { top: S, left: v } = zr(_, 550, 288, 10, 20, 230, 80);
5570
+ const h = (y) => {
5571
+ const x = t.split("/")[0], v = x.split(" ")[0].toLowerCase(), _ = x.split(" ")[1].toLowerCase();
5572
+ y.stopPropagation(), i(!0), d(u), a((k) => w(_, v)(k)), s(n), l(n), p(!0), f(_ === "surface");
5573
+ const { top: S, left: b } = zr(y, 550, 288, 10, 20, 230, 80);
5559
5574
  r({
5560
- top: k === "surface" ? S : S + 125,
5561
- left: v - 200
5575
+ top: _ === "surface" ? S : S + 125,
5576
+ left: b - 200
5562
5577
  });
5563
5578
  };
5564
- function b(_) {
5565
- return _.length > 15 ? _.slice(0, 15) + "..." : _;
5579
+ function m(y) {
5580
+ return y.length > 15 ? y.slice(0, 15) + "..." : y;
5566
5581
  }
5567
- return /* @__PURE__ */ w(
5582
+ return /* @__PURE__ */ C(
5568
5583
  "div",
5569
5584
  {
5570
5585
  className: ge.colorWrapper,
@@ -5580,11 +5595,11 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5580
5595
  }
5581
5596
  ),
5582
5597
  /* @__PURE__ */ c("div", { className: ge.name, children: t }),
5583
- /* @__PURE__ */ c("div", { className: ge.value, children: b(n) })
5598
+ /* @__PURE__ */ c("div", { className: ge.value, children: m(n) })
5584
5599
  ]
5585
5600
  }
5586
5601
  );
5587
- }, Ol = "_back_1rhiq_1", $l = "_title_1rhiq_9", Ll = "_deleteButton_1rhiq_17", Pl = "_backIcon_1rhiq_30", Qt = {
5602
+ }, Ol = "_back_1rhiq_1", $l = "_title_1rhiq_9", Ll = "_deleteButton_1rhiq_17", Pl = "_backIcon_1rhiq_30", Zt = {
5588
5603
  back: Ol,
5589
5604
  title: $l,
5590
5605
  deleteButton: Ll,
@@ -5592,11 +5607,11 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5592
5607
  }, Fl = ({ onClick: e, setIsClicked: t, getDisplayName: n }) => {
5593
5608
  var p, g;
5594
5609
  const { activeBlock: o } = se(), { setTitle: r, setDescription: s, setOnConfirm: i } = un(), { blocks: a, currentBlock: l, removeBlock: d } = ne(), { currentPage: u, pages: f } = J();
5595
- return /* @__PURE__ */ w("div", { className: Qt.back, children: [
5610
+ return /* @__PURE__ */ C("div", { className: Zt.back, children: [
5596
5611
  /* @__PURE__ */ c(
5597
5612
  "div",
5598
5613
  {
5599
- className: Qt.backIcon,
5614
+ className: Zt.backIcon,
5600
5615
  onClick: () => e(),
5601
5616
  children: /* @__PURE__ */ c(
5602
5617
  R,
@@ -5609,19 +5624,19 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5609
5624
  )
5610
5625
  }
5611
5626
  ),
5612
- /* @__PURE__ */ c("h3", { className: Qt.title, children: o && n(o) || f && f[u] && a[f[u].path] && l && n((p = a[f[u].path].data[l]) == null ? void 0 : p.name) || l && Ee(l) || "Loading" }),
5627
+ /* @__PURE__ */ c("h3", { className: Zt.title, children: o && n(o) || f && f[u] && a[f[u].path] && l && n((p = a[f[u].path].data[l]) == null ? void 0 : p.name) || l && Ee(l) || "Loading" }),
5613
5628
  l && f && !["header", "footer", "announcement"].includes(l) && a[f[u].path].data[l] && n((g = a[f[u].path].data[l]) == null ? void 0 : g.name) !== "unknown name" && /* @__PURE__ */ c(
5614
5629
  "button",
5615
5630
  {
5616
- onClick: (y) => {
5631
+ onClick: (w) => {
5617
5632
  var h;
5618
- y.stopPropagation(), r("Remove Block"), s(
5633
+ w.stopPropagation(), r("Remove Block"), s(
5619
5634
  `Are you sure you want to delete ${n((h = a[f[u].path].data[l]) == null ? void 0 : h.name) || "this"} block? Once you delete this block, any content visible will also be deleted. This is irreversible.`
5620
5635
  ), i(() => {
5621
5636
  t(!0), d(f[u].path, l), e(!0);
5622
5637
  });
5623
5638
  },
5624
- className: Qt.deleteButton,
5639
+ className: Zt.deleteButton,
5625
5640
  children: /* @__PURE__ */ c(
5626
5641
  R,
5627
5642
  {
@@ -5648,30 +5663,30 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5648
5663
  } = se(), { setActiveBlock: f } = Fe(), {
5649
5664
  blocks: p,
5650
5665
  addBlock: g,
5651
- editBlock: y,
5666
+ editBlock: w,
5652
5667
  currentBlock: h,
5653
- setCurrentBlock: b,
5668
+ setCurrentBlock: m,
5654
5669
  // setHeader,
5655
5670
  // setFooter,
5656
5671
  // setAnnouncement,
5657
- header: _,
5672
+ header: y,
5658
5673
  footer: x,
5659
- announcement: m,
5660
- isLoadingLayers: k
5661
- } = ne(), { currentPage: S, pages: v } = J(), { past: C, future: N } = $o();
5674
+ announcement: v,
5675
+ isLoadingLayers: _
5676
+ } = ne(), { currentPage: S, pages: b } = J(), { past: k, future: N } = $o();
5662
5677
  function O(T = !1) {
5663
- if (v && d && h && !["header", "footer", "announcement"].includes(h) && !T) {
5678
+ if (b && d && h && !["header", "footer", "announcement"].includes(h) && !T) {
5664
5679
  const L = {
5665
5680
  blockSettings: {}
5666
5681
  };
5667
5682
  Object.keys(d.blockSettings).filter((M) => !["displayName", "isAddable"].includes(M)).map((M) => {
5668
5683
  L.blockSettings[M] = d.blockSettings[M];
5669
- }), y(v[S].path, h, {
5670
- name: p[v[S].path].data[h].name,
5684
+ }), w(b[S].path, h, {
5685
+ name: p[b[S].path].data[h].name,
5671
5686
  value: L
5672
5687
  });
5673
5688
  }
5674
- l(null), b(null), f({
5689
+ l(null), m(null), f({
5675
5690
  id: null,
5676
5691
  neededScroll: !1
5677
5692
  }), setTimeout(() => {
@@ -5680,13 +5695,13 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5680
5695
  }
5681
5696
  function z(T) {
5682
5697
  var oe;
5683
- if (!v || !S || !T) return null;
5698
+ if (!b || !S || !T) return null;
5684
5699
  if (T === "header") {
5685
5700
  const I = new o();
5686
5701
  return Object.keys(I.blockSettings).forEach((K) => {
5687
- I.blockSettings[K] = _ == null ? void 0 : _.blockSettings[K];
5702
+ I.blockSettings[K] = y == null ? void 0 : y.blockSettings[K];
5688
5703
  }), Object.keys(I.blockColors).forEach((K) => {
5689
- I.blockColors[K] = _ == null ? void 0 : _.blockColors[K];
5704
+ I.blockColors[K] = y == null ? void 0 : y.blockColors[K];
5690
5705
  }), I;
5691
5706
  }
5692
5707
  if (T === "footer") {
@@ -5700,12 +5715,12 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5700
5715
  if (T === "announcement") {
5701
5716
  const I = new s();
5702
5717
  return Object.keys(I.blockSettings).forEach((K) => {
5703
- I.blockSettings[K] = m == null ? void 0 : m.blockSettings[K];
5718
+ I.blockSettings[K] = v == null ? void 0 : v.blockSettings[K];
5704
5719
  }), Object.keys(I.blockColors).forEach((K) => {
5705
- I.blockColors[K] = m == null ? void 0 : m.blockColors[K];
5720
+ I.blockColors[K] = v == null ? void 0 : v.blockColors[K];
5706
5721
  }), I;
5707
5722
  }
5708
- const L = p[v[S].path];
5723
+ const L = p[b[S].path];
5709
5724
  if (!L || !L.data[T]) return null;
5710
5725
  const M = L.data[T];
5711
5726
  return !M || !i[M.name] ? null : new i[M.name]((oe = M.value) == null ? void 0 : oe.blockSettings);
@@ -5716,8 +5731,8 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5716
5731
  u(T);
5717
5732
  } else
5718
5733
  u(null);
5719
- }, [h, C, N, a]), A.useEffect(() => {
5720
- if (a && v && !h) {
5734
+ }, [h, k, N, a]), A.useEffect(() => {
5735
+ if (a && b && !h) {
5721
5736
  const T = {
5722
5737
  blockSettings: {},
5723
5738
  blockColors: {}
@@ -5727,25 +5742,25 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5727
5742
  }), Object.keys(L.blockColors).filter((W) => !["displayName", "isAddable"].includes(W)).map((W) => {
5728
5743
  T.blockColors[W] = L.blockColors[W];
5729
5744
  });
5730
- const M = g(v[S].path, {
5745
+ const M = g(b[S].path, {
5731
5746
  name: a,
5732
5747
  value: T
5733
5748
  });
5734
5749
  f({
5735
5750
  id: M,
5736
5751
  neededScroll: !0
5737
- }), b(M), e("/admin/builder");
5752
+ }), m(M), e("/admin/builder");
5738
5753
  }
5739
- }, [a, C, N]);
5754
+ }, [a, k, N]);
5740
5755
  function $(T) {
5741
5756
  if (!i)
5742
5757
  return "unknown name";
5743
5758
  if (!i[T])
5744
- return h === "header" ? _ == null ? void 0 : _.blockSettings.displayName : h === "footer" ? x == null ? void 0 : x.blockSettings.displayName : h === "announcement" ? m == null ? void 0 : m.blockSettings.displayName : "unknown name";
5759
+ return h === "header" ? y == null ? void 0 : y.blockSettings.displayName : h === "footer" ? x == null ? void 0 : x.blockSettings.displayName : h === "announcement" ? v == null ? void 0 : v.blockSettings.displayName : "unknown name";
5745
5760
  const L = new i[T]();
5746
5761
  return !L.blockSettings || !L.blockSettings.displayName ? "unknown name" : L.blockSettings.displayName;
5747
5762
  }
5748
- return /* @__PURE__ */ w(
5763
+ return /* @__PURE__ */ C(
5749
5764
  "div",
5750
5765
  {
5751
5766
  className: E(gt.render, {
@@ -5755,7 +5770,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5755
5770
  }),
5756
5771
  onClick: (T) => T.stopPropagation(),
5757
5772
  style: {
5758
- opacity: k ? 0 : 1
5773
+ opacity: _ ? 0 : 1
5759
5774
  },
5760
5775
  children: [
5761
5776
  /* @__PURE__ */ c(
@@ -5766,8 +5781,8 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5766
5781
  getDisplayName: $
5767
5782
  }
5768
5783
  ),
5769
- /* @__PURE__ */ w("div", { className: gt.settings, children: [
5770
- d && /* @__PURE__ */ w(Le, { children: [
5784
+ /* @__PURE__ */ C("div", { className: gt.settings, children: [
5785
+ d && /* @__PURE__ */ C(Le, { children: [
5771
5786
  /* @__PURE__ */ c(xl, { block: d }),
5772
5787
  /* @__PURE__ */ c(Ml, { colors: d.blockColors })
5773
5788
  ] }),
@@ -5780,7 +5795,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5780
5795
  header: jl,
5781
5796
  title: Hl,
5782
5797
  backIcon: Wl
5783
- }, Ht = ({ onClick: e, title: t }) => /* @__PURE__ */ w("div", { className: Bn.header, children: [
5798
+ }, Wt = ({ onClick: e, title: t }) => /* @__PURE__ */ C("div", { className: Bn.header, children: [
5784
5799
  /* @__PURE__ */ c(
5785
5800
  "div",
5786
5801
  {
@@ -5811,20 +5826,20 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5811
5826
  o(null), s("/admin/builder/theme");
5812
5827
  }
5813
5828
  const a = A.useMemo(() => t.borders, [t]), l = (e == null ? void 0 : e.name) === "Borders";
5814
- return /* @__PURE__ */ w(
5815
- Pt,
5829
+ return /* @__PURE__ */ C(
5830
+ Ft,
5816
5831
  {
5817
5832
  isOpen: l,
5818
5833
  isClose: !l,
5819
5834
  children: [
5820
5835
  /* @__PURE__ */ c(
5821
- Ht,
5836
+ Wt,
5822
5837
  {
5823
5838
  onClick: i,
5824
5839
  title: "Borders Style"
5825
5840
  }
5826
5841
  ),
5827
- /* @__PURE__ */ w("div", { className: Vl.options, children: [
5842
+ /* @__PURE__ */ C("div", { className: Vl.options, children: [
5828
5843
  /* @__PURE__ */ c(
5829
5844
  Ce,
5830
5845
  {
@@ -5863,25 +5878,25 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5863
5878
  shadowInputsOpen: su
5864
5879
  }, iu = ["left", "center", "right"], au = () => {
5865
5880
  const { activeBlock: e, themeSettings: t, updateButton: n, setActiveBlock: o } = X(), { fonts: r } = Ho(), [s, i] = A.useState("primary");
5866
- function a(h, b) {
5867
- n(s, b, h);
5881
+ function a(h, m) {
5882
+ n(s, m, h);
5868
5883
  }
5869
5884
  const [l, d] = A.useState(!1), u = t.buttons[s], f = rt();
5870
5885
  function p() {
5871
5886
  o(null), f("/admin/builder/theme");
5872
5887
  }
5873
5888
  const g = (e == null ? void 0 : e.name) === "Buttons";
5874
- function y(h, b) {
5875
- a({ ...u.boxShadow, [h]: b }, "boxShadow");
5889
+ function w(h, m) {
5890
+ a({ ...u.boxShadow, [h]: m }, "boxShadow");
5876
5891
  }
5877
- return /* @__PURE__ */ w(
5878
- Pt,
5892
+ return /* @__PURE__ */ C(
5893
+ Ft,
5879
5894
  {
5880
5895
  isOpen: g,
5881
5896
  isClose: !g,
5882
5897
  children: [
5883
5898
  /* @__PURE__ */ c(
5884
- Ht,
5899
+ Wt,
5885
5900
  {
5886
5901
  onClick: p,
5887
5902
  title: "Buttons Style"
@@ -5903,7 +5918,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5903
5918
  ))
5904
5919
  }
5905
5920
  ),
5906
- u && /* @__PURE__ */ w("div", { className: re.options, children: [
5921
+ u && /* @__PURE__ */ C("div", { className: re.options, children: [
5907
5922
  /* @__PURE__ */ c(
5908
5923
  ue,
5909
5924
  {
@@ -5964,7 +5979,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5964
5979
  isGradientActive: !0
5965
5980
  }
5966
5981
  ),
5967
- /* @__PURE__ */ w("div", { className: re.sliderContainer, children: [
5982
+ /* @__PURE__ */ C("div", { className: re.sliderContainer, children: [
5968
5983
  /* @__PURE__ */ c("h4", { className: re.label, children: "Shadow" }),
5969
5984
  /* @__PURE__ */ c(
5970
5985
  qe,
@@ -5988,14 +6003,14 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
5988
6003
  }
5989
6004
  )
5990
6005
  ] }),
5991
- /* @__PURE__ */ w("div", { className: E(re.shadowInputs, { [re.shadowInputsOpen]: l }), children: [
5992
- /* @__PURE__ */ w("div", { className: re.shadowInputsRow, children: [
6006
+ /* @__PURE__ */ C("div", { className: E(re.shadowInputs, { [re.shadowInputsOpen]: l }), children: [
6007
+ /* @__PURE__ */ C("div", { className: re.shadowInputsRow, children: [
5993
6008
  /* @__PURE__ */ c(
5994
6009
  ue,
5995
6010
  {
5996
6011
  label: "Left (px)",
5997
6012
  value: String(u.boxShadow.left),
5998
- onChange: (h) => y("left", Number(h)),
6013
+ onChange: (h) => w("left", Number(h)),
5999
6014
  type: "number"
6000
6015
  }
6001
6016
  ),
@@ -6004,7 +6019,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6004
6019
  {
6005
6020
  label: "Top (px)",
6006
6021
  value: String(u.boxShadow.top),
6007
- onChange: (h) => y("top", Number(h)),
6022
+ onChange: (h) => w("top", Number(h)),
6008
6023
  type: "number"
6009
6024
  }
6010
6025
  ),
@@ -6013,7 +6028,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6013
6028
  {
6014
6029
  label: "Blur (px)",
6015
6030
  value: String(u.boxShadow.blur),
6016
- onChange: (h) => y("blur", Number(h)),
6031
+ onChange: (h) => w("blur", Number(h)),
6017
6032
  type: "number"
6018
6033
  }
6019
6034
  ),
@@ -6022,7 +6037,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6022
6037
  {
6023
6038
  label: "Spread (px)",
6024
6039
  value: String(u.boxShadow.spread),
6025
- onChange: (h) => y("spread", Number(h)),
6040
+ onChange: (h) => w("spread", Number(h)),
6026
6041
  type: "number"
6027
6042
  }
6028
6043
  ) })
@@ -6031,14 +6046,14 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6031
6046
  we,
6032
6047
  {
6033
6048
  initialColor: u.boxShadow.color,
6034
- onChange: (h) => y("color", h),
6049
+ onChange: (h) => w("color", h),
6035
6050
  title: "Color",
6036
6051
  labelStyle: "secondary",
6037
6052
  isGradientActive: !1
6038
6053
  }
6039
6054
  )
6040
6055
  ] }),
6041
- /* @__PURE__ */ w("div", { className: re.alignments, children: [
6056
+ /* @__PURE__ */ C("div", { className: re.alignments, children: [
6042
6057
  /* @__PURE__ */ c("h4", { className: re.label, children: "Alignment Type" }),
6043
6058
  /* @__PURE__ */ c("div", { className: re.blocks, children: iu.map((h) => /* @__PURE__ */ c(
6044
6059
  "div",
@@ -6068,7 +6083,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6068
6083
  current: u.hover
6069
6084
  }
6070
6085
  ),
6071
- u.hover && /* @__PURE__ */ w(Le, { children: [
6086
+ u.hover && /* @__PURE__ */ C(Le, { children: [
6072
6087
  /* @__PURE__ */ c(
6073
6088
  we,
6074
6089
  {
@@ -6102,13 +6117,13 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6102
6117
  function n(o) {
6103
6118
  t(o);
6104
6119
  }
6105
- return /* @__PURE__ */ c("div", { className: En.wrapper, children: Object.keys(e.colors).map((o) => o === "icon" ? /* @__PURE__ */ c(Le, {}) : /* @__PURE__ */ w(
6120
+ return /* @__PURE__ */ c("div", { className: En.wrapper, children: Object.keys(e.colors).map((o) => o === "icon" ? /* @__PURE__ */ c(Le, {}) : /* @__PURE__ */ C(
6106
6121
  "div",
6107
6122
  {
6108
6123
  className: En.category,
6109
6124
  onClick: () => n(o),
6110
6125
  children: [
6111
- /* @__PURE__ */ w("h2", { className: En.categoryTitle, children: [
6126
+ /* @__PURE__ */ C("h2", { className: En.categoryTitle, children: [
6112
6127
  o === "text" ? "Text & Icon" : Ee(o),
6113
6128
  " Colors"
6114
6129
  ] }),
@@ -6131,31 +6146,31 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6131
6146
  function l() {
6132
6147
  t(null);
6133
6148
  }
6134
- function d(h, b) {
6135
- i && n && r("desktop", i, n, b, h);
6149
+ function d(h, m) {
6150
+ i && n && r("desktop", i, n, m, h);
6136
6151
  }
6137
6152
  const [u, f] = A.useState([]), p = A.useMemo(() => n ? o.fonts.desktop.heading[n] ? (a("heading"), o.fonts.desktop.heading[n]) : o.fonts.desktop.body[n] ? (a("body"), o.fonts.desktop.body[n]) : (a(null), null) : null, [n, o]);
6138
6153
  A.useEffect(() => {
6139
6154
  if (p) {
6140
- const h = s.find((b) => b.name === p.font);
6155
+ const h = s.find((m) => m.name === p.font);
6141
6156
  h && (f(h.weights), h.weights.includes(p.boldWeight) || d("400", "boldWeight"), h.weights.includes(p.weight) || d("400", "weight"));
6142
6157
  }
6143
6158
  }, [p, n]);
6144
- const g = !!((e == null ? void 0 : e.name) === "Fonts" && n), y = (e == null ? void 0 : e.name) !== "Fonts" || !n;
6145
- return /* @__PURE__ */ w(
6146
- Pt,
6159
+ const g = !!((e == null ? void 0 : e.name) === "Fonts" && n), w = (e == null ? void 0 : e.name) !== "Fonts" || !n;
6160
+ return /* @__PURE__ */ C(
6161
+ Ft,
6147
6162
  {
6148
6163
  isOpen: g,
6149
- isClose: y,
6164
+ isClose: w,
6150
6165
  children: [
6151
6166
  /* @__PURE__ */ c(
6152
- Ht,
6167
+ Wt,
6153
6168
  {
6154
6169
  onClick: l,
6155
6170
  title: "Font Style"
6156
6171
  }
6157
6172
  ),
6158
- n && p && /* @__PURE__ */ w("div", { className: hu.options, children: [
6173
+ n && p && /* @__PURE__ */ C("div", { className: hu.options, children: [
6159
6174
  /* @__PURE__ */ c(
6160
6175
  Ce,
6161
6176
  {
@@ -6230,7 +6245,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6230
6245
  sm: "small"
6231
6246
  }, Cu = (e) => {
6232
6247
  const { font: t, size: n, id: o, category: r } = e, { setActiveFont: s } = X();
6233
- return /* @__PURE__ */ w(
6248
+ return /* @__PURE__ */ C(
6234
6249
  "div",
6235
6250
  {
6236
6251
  className: $e.font,
@@ -6245,7 +6260,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6245
6260
  children: /* @__PURE__ */ c(R, { name: r === "paragraph" ? "TextB" : "TextH" })
6246
6261
  }
6247
6262
  ),
6248
- /* @__PURE__ */ w("div", { className: $e.content, children: [
6263
+ /* @__PURE__ */ C("div", { className: $e.content, children: [
6249
6264
  /* @__PURE__ */ c("h2", { className: $e.categoryTitle, children: Ee(wu[o]) }),
6250
6265
  /* @__PURE__ */ c("span", { className: $e.value, children: `${t}, ${n}px` })
6251
6266
  ] })
@@ -6261,7 +6276,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6261
6276
  t(null);
6262
6277
  }
6263
6278
  if (n != null && n.name)
6264
- return /* @__PURE__ */ c("div", { className: $e.wrapper, children: Object.entries(e.fonts.desktop).sort(([r], [s]) => r === "heading" ? -1 : s === "heading" ? 1 : 0).map(([r, s]) => /* @__PURE__ */ w(
6279
+ return /* @__PURE__ */ c("div", { className: $e.wrapper, children: Object.entries(e.fonts.desktop).sort(([r], [s]) => r === "heading" ? -1 : s === "heading" ? 1 : 0).map(([r, s]) => /* @__PURE__ */ C(
6265
6280
  "div",
6266
6281
  {
6267
6282
  className: $e.category,
@@ -6291,8 +6306,8 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6291
6306
  header: Iu
6292
6307
  }, Tu = ["left", "center", "right"], Mu = ["solid", "dashed"], Bt = (e) => {
6293
6308
  const { title: t, children: n, rightAddon: o } = e;
6294
- return /* @__PURE__ */ w("div", { className: ye.field, children: [
6295
- /* @__PURE__ */ w("div", { className: ye.header, children: [
6309
+ return /* @__PURE__ */ C("div", { className: ye.field, children: [
6310
+ /* @__PURE__ */ C("div", { className: ye.header, children: [
6296
6311
  /* @__PURE__ */ c("h4", { className: ye.categoryTitle, children: t }),
6297
6312
  o
6298
6313
  ] }),
@@ -6304,8 +6319,8 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6304
6319
  }, r = (s) => (i) => {
6305
6320
  t(s, i, "color");
6306
6321
  };
6307
- return /* @__PURE__ */ w("div", { className: ye.wrapper, children: [
6308
- /* @__PURE__ */ w(Bt, { title: "General", children: [
6322
+ return /* @__PURE__ */ C("div", { className: ye.wrapper, children: [
6323
+ /* @__PURE__ */ C(Bt, { title: "General", children: [
6309
6324
  /* @__PURE__ */ c(
6310
6325
  ue,
6311
6326
  {
@@ -6368,7 +6383,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6368
6383
  isGradientActive: !1
6369
6384
  }
6370
6385
  ) }),
6371
- /* @__PURE__ */ w(
6386
+ /* @__PURE__ */ C(
6372
6387
  Bt,
6373
6388
  {
6374
6389
  title: "Border",
@@ -6380,8 +6395,8 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6380
6395
  }
6381
6396
  ) }),
6382
6397
  children: [
6383
- /* @__PURE__ */ w("div", { className: ye.lineField, children: [
6384
- /* @__PURE__ */ w("div", { className: ye.style, children: [
6398
+ /* @__PURE__ */ C("div", { className: ye.lineField, children: [
6399
+ /* @__PURE__ */ C("div", { className: ye.style, children: [
6385
6400
  /* @__PURE__ */ c("span", { className: ye.title, children: "Style" }),
6386
6401
  /* @__PURE__ */ c(
6387
6402
  fo,
@@ -6427,7 +6442,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6427
6442
  ]
6428
6443
  }
6429
6444
  ),
6430
- /* @__PURE__ */ w(Bt, { title: "Label", children: [
6445
+ /* @__PURE__ */ C(Bt, { title: "Label", children: [
6431
6446
  /* @__PURE__ */ c(
6432
6447
  ue,
6433
6448
  {
@@ -6457,7 +6472,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6457
6472
  isGradientActive: !1
6458
6473
  }
6459
6474
  ),
6460
- /* @__PURE__ */ w("div", { className: ye.alignments, children: [
6475
+ /* @__PURE__ */ C("div", { className: ye.alignments, children: [
6461
6476
  /* @__PURE__ */ c("h4", { className: ye.title, children: "Alignment Type" }),
6462
6477
  /* @__PURE__ */ c(
6463
6478
  fo,
@@ -6501,8 +6516,8 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6501
6516
  annotationSurface: ad
6502
6517
  }, cd = () => {
6503
6518
  const { activeColorCategory: e } = X();
6504
- return /* @__PURE__ */ c("div", { className: D.container, children: /* @__PURE__ */ w("div", { className: D.buttonWrapper, children: [
6505
- /* @__PURE__ */ w(
6519
+ return /* @__PURE__ */ c("div", { className: D.container, children: /* @__PURE__ */ C("div", { className: D.buttonWrapper, children: [
6520
+ /* @__PURE__ */ C(
6506
6521
  "div",
6507
6522
  {
6508
6523
  className: E(D.button, {
@@ -6535,19 +6550,19 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6535
6550
  ]
6536
6551
  }
6537
6552
  ),
6538
- e === "text" && /* @__PURE__ */ w("div", { className: E(D.annotation, D.annotationText), children: [
6553
+ e === "text" && /* @__PURE__ */ C("div", { className: E(D.annotation, D.annotationText), children: [
6539
6554
  /* @__PURE__ */ c("div", { className: D.label, children: "Text Color" }),
6540
6555
  /* @__PURE__ */ c("div", { className: D.line }),
6541
6556
  /* @__PURE__ */ c("div", { className: E(D.circle, D.circle1) }),
6542
6557
  /* @__PURE__ */ c("div", { className: E(D.circle, D.circle2) })
6543
6558
  ] }),
6544
- e === "text" && /* @__PURE__ */ w("div", { className: E(D.annotation, D.annotationIcon), children: [
6559
+ e === "text" && /* @__PURE__ */ C("div", { className: E(D.annotation, D.annotationIcon), children: [
6545
6560
  /* @__PURE__ */ c("div", { className: D.label, children: "Icon Color" }),
6546
6561
  /* @__PURE__ */ c("div", { className: D.line }),
6547
6562
  /* @__PURE__ */ c("div", { className: E(D.circle, D.circle1) }),
6548
6563
  /* @__PURE__ */ c("div", { className: E(D.circle, D.circle2) })
6549
6564
  ] }),
6550
- e === "border" && /* @__PURE__ */ w("div", { className: E(D.annotation, D.annotationBorder), children: [
6565
+ e === "border" && /* @__PURE__ */ C("div", { className: E(D.annotation, D.annotationBorder), children: [
6551
6566
  /* @__PURE__ */ c("div", { className: D.label, children: "Border Color" }),
6552
6567
  /* @__PURE__ */ c("div", { className: E(D.line, D.line1) }),
6553
6568
  /* @__PURE__ */ c("div", { className: E(D.line, D.line2) }),
@@ -6556,7 +6571,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6556
6571
  /* @__PURE__ */ c("div", { className: E(D.circle, D.circle3) }),
6557
6572
  /* @__PURE__ */ c("div", { className: E(D.circle, D.circle4) })
6558
6573
  ] }),
6559
- e === "surface" && /* @__PURE__ */ w("div", { className: E(D.annotation, D.annotationSurface), children: [
6574
+ e === "surface" && /* @__PURE__ */ C("div", { className: E(D.annotation, D.annotationSurface), children: [
6560
6575
  /* @__PURE__ */ c("div", { className: D.label, children: "Surface Color" }),
6561
6576
  /* @__PURE__ */ c("div", { className: D.line }),
6562
6577
  /* @__PURE__ */ c("div", { className: E(D.circle, D.circle1) }),
@@ -6613,20 +6628,20 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6613
6628
  r(u, f, p);
6614
6629
  }
6615
6630
  const a = !!((e == null ? void 0 : e.name) === "Colors" && n), l = (e == null ? void 0 : e.name) !== "Colors" || !n, d = n ? ld[n] : [];
6616
- return /* @__PURE__ */ w(
6617
- Pt,
6631
+ return /* @__PURE__ */ C(
6632
+ Ft,
6618
6633
  {
6619
6634
  isOpen: a,
6620
6635
  isClose: l,
6621
6636
  children: [
6622
6637
  /* @__PURE__ */ c(
6623
- Ht,
6638
+ Wt,
6624
6639
  {
6625
6640
  onClick: s,
6626
6641
  title: n === "text" ? "Text & Icon Colors" : `${Ee(n)} Colors`
6627
6642
  }
6628
6643
  ),
6629
- n && /* @__PURE__ */ w("div", { className: D.wrapper, children: [
6644
+ n && /* @__PURE__ */ C("div", { className: D.wrapper, children: [
6630
6645
  /* @__PURE__ */ c(cd, {}),
6631
6646
  d.map((u) => {
6632
6647
  const f = o.colors[n][u];
@@ -6634,7 +6649,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6634
6649
  "div",
6635
6650
  {
6636
6651
  className: D.color,
6637
- children: /* @__PURE__ */ w("div", { className: D.content, children: [
6652
+ children: /* @__PURE__ */ C("div", { className: D.content, children: [
6638
6653
  /* @__PURE__ */ c(
6639
6654
  "div",
6640
6655
  {
@@ -6664,7 +6679,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6664
6679
  loader: dd
6665
6680
  }, fd = () => {
6666
6681
  const { activeBlock: e, themeSettings: t, isLoadingThemeSettings: n } = X();
6667
- return /* @__PURE__ */ c(Le, { children: n ? /* @__PURE__ */ c("div", { className: hd.loader, children: /* @__PURE__ */ c(ot, {}) }) : /* @__PURE__ */ w(Le, { children: [
6682
+ return /* @__PURE__ */ c(Le, { children: n ? /* @__PURE__ */ c("div", { className: hd.loader, children: /* @__PURE__ */ c(ot, {}) }) : /* @__PURE__ */ C(Le, { children: [
6668
6683
  (e == null ? void 0 : e.name) === "Fonts" && t.fonts && /* @__PURE__ */ c(Su, {}),
6669
6684
  (e == null ? void 0 : e.name) === "Fonts" && t.fonts && /* @__PURE__ */ c(fu, {}),
6670
6685
  (e == null ? void 0 : e.name) === "Colors" && t.colors && /* @__PURE__ */ c(uu, {}),
@@ -6679,14 +6694,14 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6679
6694
  t(null), o("/admin/builder/theme");
6680
6695
  }
6681
6696
  const s = !!e, i = !e || n.name !== "Theme";
6682
- return /* @__PURE__ */ w(
6683
- Pt,
6697
+ return /* @__PURE__ */ C(
6698
+ Ft,
6684
6699
  {
6685
6700
  isOpen: s,
6686
6701
  isClose: i,
6687
6702
  children: [
6688
6703
  /* @__PURE__ */ c(
6689
- Ht,
6704
+ Wt,
6690
6705
  {
6691
6706
  onClick: r,
6692
6707
  title: (e == null ? void 0 : e.name) || ""
@@ -6710,7 +6725,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6710
6725
  return "Settings";
6711
6726
  }
6712
6727
  }
6713
- return /* @__PURE__ */ w(
6728
+ return /* @__PURE__ */ C(
6714
6729
  "div",
6715
6730
  {
6716
6731
  className: Ro.sidebar,
@@ -6752,56 +6767,56 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6752
6767
  editedPage: i,
6753
6768
  setEditedPage: a,
6754
6769
  pageContext: l
6755
- } = J(), { setIsOpen: d } = jr(), { isAntistock: u } = jo(), { createPage: f, updatePage: p } = ne(), [g, y] = A.useState(i ? t && ((z = t[i]) == null ? void 0 : z.path) : ""), [h, b] = A.useState(i ? t && (($ = t[i]) == null ? void 0 : $.name) : ""), [_, x] = A.useState(
6770
+ } = J(), { setIsOpen: d } = jr(), { isAntistock: u } = jo(), { createPage: f, updatePage: p } = ne(), [g, w] = A.useState(i ? t && ((z = t[i]) == null ? void 0 : z.path) : ""), [h, m] = A.useState(i ? t && (($ = t[i]) == null ? void 0 : $.name) : ""), [y, x] = A.useState(
6756
6771
  i ? t && ((T = t[i]) == null ? void 0 : T.seo) && ((M = (L = t[i]) == null ? void 0 : L.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.`
6757
- ), [m, k] = A.useState(
6772
+ ), [v, _] = A.useState(
6758
6773
  i && t && (W = t[i]) != null && W.isPrivate ? "private" : "public"
6759
6774
  );
6760
6775
  function S() {
6761
- y(""), b(""), x(""), k("public"), s(!1), a(null);
6776
+ w(""), m(""), x(""), _("public"), s(!1), a(null);
6762
6777
  }
6763
- function v() {
6778
+ function b() {
6764
6779
  d(!1), setTimeout(() => {
6765
6780
  S(), e(!1), d(!0);
6766
6781
  }, 300);
6767
6782
  }
6768
6783
  A.useEffect(() => () => {
6769
- v();
6784
+ b();
6770
6785
  }, []);
6771
- function C(I) {
6786
+ function k(I) {
6772
6787
  return I[0] === "/" ? I : "/" + I;
6773
6788
  }
6774
6789
  function N() {
6775
6790
  n({
6776
- path: C(g),
6791
+ path: k(g),
6777
6792
  name: h || g || "",
6778
6793
  icon: "File",
6779
6794
  seo: {
6780
6795
  pageTitle: h || "",
6781
- pageDescription: _ || ""
6796
+ pageDescription: y || ""
6782
6797
  },
6783
- visibility: m || "public"
6784
- }), f(C(g)), v();
6798
+ visibility: v || "public"
6799
+ }), f(k(g)), b();
6785
6800
  }
6786
6801
  function O() {
6787
6802
  t && (Et.includes(t[i].path) || Cr(t[i].path), p(t[i].path || "", g || ""), o(i, {
6788
- path: C(g),
6803
+ path: k(g),
6789
6804
  name: h || g,
6790
6805
  icon: t[i].icon || "File",
6791
6806
  seo: {
6792
6807
  pageTitle: h || "",
6793
- pageDescription: _ || ""
6808
+ pageDescription: y || ""
6794
6809
  },
6795
- visibility: m || "public"
6796
- })), v();
6810
+ visibility: v || "public"
6811
+ })), b();
6797
6812
  }
6798
- return /* @__PURE__ */ w(
6813
+ return /* @__PURE__ */ C(
6799
6814
  "div",
6800
6815
  {
6801
6816
  className: _e.wrapper,
6802
6817
  onClick: (I) => I.stopPropagation(),
6803
6818
  children: [
6804
- /* @__PURE__ */ w("div", { className: _e.header, children: [
6819
+ /* @__PURE__ */ C("div", { className: _e.header, children: [
6805
6820
  /* @__PURE__ */ c("h2", { children: r ? "Edit Page" : "Create New Page" }),
6806
6821
  /* @__PURE__ */ c("div", { className: _e.closeIcon, children: /* @__PURE__ */ c(
6807
6822
  R,
@@ -6809,16 +6824,16 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6809
6824
  name: "X",
6810
6825
  fill: "#757575",
6811
6826
  hoverable: !0,
6812
- onClick: v
6827
+ onClick: b
6813
6828
  }
6814
6829
  ) })
6815
6830
  ] }),
6816
- /* @__PURE__ */ w("div", { className: _e.content, children: [
6831
+ /* @__PURE__ */ C("div", { className: _e.content, children: [
6817
6832
  /* @__PURE__ */ c(
6818
6833
  ue,
6819
6834
  {
6820
6835
  label: "Page Slug",
6821
- onChange: (I) => y(I),
6836
+ onChange: (I) => w(I),
6822
6837
  value: g,
6823
6838
  placeholder: "path-to-page",
6824
6839
  disabled: !!(i && t && ((oe = t[i]) != null && oe.name) && Et.includes(t[i].path)),
@@ -6831,7 +6846,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6831
6846
  {
6832
6847
  label: "Page Title",
6833
6848
  onChange: (I) => {
6834
- b(I);
6849
+ m(I);
6835
6850
  },
6836
6851
  value: h.charAt(0).toUpperCase() + h.slice(1),
6837
6852
  placeholder: "Contact us"
@@ -6842,25 +6857,25 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6842
6857
  {
6843
6858
  label: "Description",
6844
6859
  onChange: (I) => x(I),
6845
- value: _,
6860
+ value: y,
6846
6861
  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.`,
6847
6862
  maxLength: 150
6848
6863
  }
6849
6864
  ),
6850
- /* @__PURE__ */ w("div", { className: _e.preview, children: [
6865
+ /* @__PURE__ */ C("div", { className: _e.preview, children: [
6851
6866
  /* @__PURE__ */ c("span", { className: _e.label, children: "Preview" }),
6852
- /* @__PURE__ */ w("div", { className: _e.block, children: [
6867
+ /* @__PURE__ */ C("div", { className: _e.block, children: [
6853
6868
  /* @__PURE__ */ c("span", { className: _e.slug, children: g || "yoursite.url" }),
6854
6869
  /* @__PURE__ */ c("span", { className: _e.title, children: h || "My Blank Page" }),
6855
- /* @__PURE__ */ c("span", { className: _e.description, children: _ || "It is My Description" })
6870
+ /* @__PURE__ */ c("span", { className: _e.description, children: y || "It is My Description" })
6856
6871
  ] })
6857
6872
  ] })
6858
6873
  ] }),
6859
- /* @__PURE__ */ w("div", { className: _e.buttons, children: [
6874
+ /* @__PURE__ */ C("div", { className: _e.buttons, children: [
6860
6875
  /* @__PURE__ */ c(
6861
6876
  qe,
6862
6877
  {
6863
- onClick: v,
6878
+ onClick: b,
6864
6879
  type: "Secondary",
6865
6880
  children: "Cancel"
6866
6881
  }
@@ -6880,7 +6895,7 @@ const Fc = "_product_wgb53_1", zc = "_name_wgb53_15", Nn = {
6880
6895
  );
6881
6896
  };
6882
6897
  export {
6883
- Ot as C,
6898
+ $t as C,
6884
6899
  Ki as D,
6885
6900
  mt as F,
6886
6901
  Rd as H,