@builder.io/sdk-react-nextjs 0.13.1 → 0.13.2

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 (51) hide show
  1. package/lib/{node/USE_CLIENT_BUNDLE-d6e6f95b.cjs → browser/USE_CLIENT_BUNDLE-65d8df10.cjs} +1 -1
  2. package/lib/browser/{USE_CLIENT_BUNDLE-0e2e786f.js → USE_CLIENT_BUNDLE-660c05f1.js} +5 -5
  3. package/lib/{edge/USE_SERVER_BUNDLE-eebc5fb9.cjs → browser/USE_SERVER_BUNDLE-2e3b6eff.cjs} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-2f4d4c84.js → browser/USE_SERVER_BUNDLE-7204eec6.js} +1 -1
  5. package/lib/browser/{bundle-a759c640.js → bundle-0a12b387.js} +268 -268
  6. package/lib/browser/{bundle-8768227a.cjs → bundle-af821e69.cjs} +17 -17
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +8 -8
  9. package/lib/{browser/USE_CLIENT_BUNDLE-1c19fc49.cjs → edge/USE_CLIENT_BUNDLE-4ecfa86c.cjs} +1 -1
  10. package/lib/{node/USE_CLIENT_BUNDLE-ea8e582d.js → edge/USE_CLIENT_BUNDLE-a2d2d15f.js} +5 -5
  11. package/lib/{node/USE_SERVER_BUNDLE-18bb0dcb.js → edge/USE_SERVER_BUNDLE-1a4a2318.js} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-78694df8.cjs → edge/USE_SERVER_BUNDLE-7fb84390.cjs} +1 -1
  13. package/lib/edge/{bundle-67a092ad.cjs → bundle-ab7ced06.cjs} +20 -20
  14. package/lib/edge/{bundle-117e4014.js → bundle-d76f7298.js} +296 -296
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +8 -8
  17. package/lib/{edge/USE_CLIENT_BUNDLE-3b67982b.js → node/USE_CLIENT_BUNDLE-2b075311.js} +5 -5
  18. package/lib/{edge/USE_CLIENT_BUNDLE-d79f63a1.cjs → node/USE_CLIENT_BUNDLE-902511d8.cjs} +1 -1
  19. package/lib/{browser/USE_SERVER_BUNDLE-c5bf5f08.js → node/USE_SERVER_BUNDLE-2a94723d.js} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-eda321c7.cjs → node/USE_SERVER_BUNDLE-c44d2651.cjs} +1 -1
  21. package/lib/node/{bundle-1f2f3033.cjs → bundle-2f991b0d.cjs} +4 -4
  22. package/lib/node/{bundle-457b4e1d.js → bundle-903b1df4.js} +106 -106
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +8 -8
  25. package/package.json +1 -1
  26. package/types/cjs/blocks/form/form/component-info.d.ts +2 -0
  27. package/types/cjs/blocks/form/form/form.d.ts +33 -0
  28. package/types/cjs/blocks/form/input/component-info.d.ts +2 -0
  29. package/types/cjs/blocks/form/input/input.d.ts +15 -0
  30. package/types/cjs/blocks/form/select/component-info.d.ts +2 -0
  31. package/types/cjs/blocks/form/select/select.d.ts +16 -0
  32. package/types/cjs/blocks/form/submit-button/component-info.d.ts +2 -0
  33. package/types/cjs/blocks/form/submit-button/submit-button.d.ts +10 -0
  34. package/types/cjs/blocks/slot/slot.d.ts +3 -6
  35. package/types/cjs/constants/extra-components.d.ts +7 -0
  36. package/types/cjs/constants/sdk-version.d.ts +1 -1
  37. package/types/cjs/functions/get-env.d.ts +2 -0
  38. package/types/cjs/functions/get.d.ts +1 -0
  39. package/types/esm/blocks/form/form/component-info.d.ts +2 -0
  40. package/types/esm/blocks/form/form/form.d.ts +33 -0
  41. package/types/esm/blocks/form/input/component-info.d.ts +2 -0
  42. package/types/esm/blocks/form/input/input.d.ts +15 -0
  43. package/types/esm/blocks/form/select/component-info.d.ts +2 -0
  44. package/types/esm/blocks/form/select/select.d.ts +16 -0
  45. package/types/esm/blocks/form/submit-button/component-info.d.ts +2 -0
  46. package/types/esm/blocks/form/submit-button/submit-button.d.ts +10 -0
  47. package/types/esm/blocks/slot/slot.d.ts +3 -6
  48. package/types/esm/constants/extra-components.d.ts +7 -0
  49. package/types/esm/constants/sdk-version.d.ts +1 -1
  50. package/types/esm/functions/get-env.d.ts +2 -0
  51. package/types/esm/functions/get.d.ts +1 -0
@@ -1,9 +1,9 @@
1
1
  import { LRUCache as to } from "lru-cache";
2
2
  import { jsx as C, Fragment as L, jsxs as xe } from "react/jsx-runtime";
3
- import { I as no, B as ro, a as oo, D as io, b as ao, C as so, E as lo, F as co, c as uo, d as fo, S as po, V as ho, e as mo } from "./USE_CLIENT_BUNDLE-3b67982b.js";
3
+ import { I as no, B as ro, a as oo, D as io, C as ao, E as so, b as lo, V as co, c as uo, F as fo, d as po, S as ho, e as mo } from "./USE_CLIENT_BUNDLE-a2d2d15f.js";
4
4
  import "react";
5
5
  import "next/navigation";
6
- const go = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), _a = (e) => typeof e == "string" && go.has(e.toLowerCase()), he = "rsc", Xt = () => {
6
+ const go = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), La = (e) => typeof e == "string" && go.has(e.toLowerCase()), he = "rsc", Xt = () => {
7
7
  switch (he) {
8
8
  case "react":
9
9
  case "reactNative":
@@ -27,7 +27,7 @@ function yo(e) {
27
27
  builderBlock: e
28
28
  };
29
29
  }
30
- const at = "[Builder.io]: ", X = {
30
+ const at = "[Builder.io]: ", J = {
31
31
  log: (...e) => console.log(at, ...e),
32
32
  error: (...e) => console.error(at, ...e),
33
33
  warn: (...e) => console.warn(at, ...e),
@@ -272,7 +272,7 @@ var N, Co = function(e) {
272
272
  for (p && (p = p[0]); p && 255 < parseInt(p, 8); )
273
273
  p = p.slice(0, -1);
274
274
  if (p === "0" && (p = null), ++f, p)
275
- q && r(f - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(p, 8)), f += p.length - 1;
275
+ Z && r(f - 2, "Octal literal in strict mode"), l += String.fromCharCode(parseInt(p, 8)), f += p.length - 1;
276
276
  else
277
277
  switch (c) {
278
278
  case 110:
@@ -393,10 +393,10 @@ var N, Co = function(e) {
393
393
  }
394
394
  function j(a, l) {
395
395
  for (var c = f, p = 0, T = l === void 0 ? 1 / 0 : l, _ = 0; _ < T; ++_) {
396
- var J = g.charCodeAt(f);
397
- if (J = 97 <= J ? J - 97 + 10 : 65 <= J ? J - 65 + 10 : 48 <= J && 57 >= J ? J - 48 : 1 / 0, J >= a)
396
+ var Y = g.charCodeAt(f);
397
+ if (Y = 97 <= Y ? Y - 97 + 10 : 65 <= Y ? Y - 65 + 10 : 48 <= Y && 57 >= Y ? Y - 48 : 1 / 0, Y >= a)
398
398
  break;
399
- ++f, p = p * a + J;
399
+ ++f, p = p * a + Y;
400
400
  }
401
401
  return f === c || l !== void 0 && f - c !== l ? null : p;
402
402
  }
@@ -404,7 +404,7 @@ var N, Co = function(e) {
404
404
  var l = f, c = !1, p = g.charCodeAt(f) === 48;
405
405
  a || j(10) !== null || r(l, "Invalid number"), g.charCodeAt(f) === 46 && (++f, j(10), c = !0), a = g.charCodeAt(f), (a === 69 || a === 101) && (a = g.charCodeAt(++f), a !== 43 && a !== 45 || ++f, j(10) === null && r(l, "Invalid number"), c = !0), n(g.charCodeAt(f)) && r(f, "Identifier directly after number"), a = g.slice(l, f);
406
406
  var T;
407
- c ? T = parseFloat(a) : p && a.length !== 1 ? /[89]/.test(a) || q ? r(l, "Invalid number") : T = parseInt(a, 8) : T = parseInt(a, 10), s(De, T);
407
+ c ? T = parseFloat(a) : p && a.length !== 1 ? /[89]/.test(a) || Z ? r(l, "Invalid number") : T = parseInt(a, 8) : T = parseInt(a, 10), s(De, T);
408
408
  }
409
409
  function x(a) {
410
410
  return a = j(16, a), a === null && r(V, "Bad character escape sequence"), a;
@@ -433,7 +433,7 @@ var N, Co = function(e) {
433
433
  It = V, ge = Ce, Tt = Et, E();
434
434
  }
435
435
  function ee(a) {
436
- if (q = a, f = V, O.C)
436
+ if (Z = a, f = V, O.C)
437
437
  for (; f < se; )
438
438
  se = g.lastIndexOf(`
439
439
  `, se - 2) + 1, --Se;
@@ -442,16 +442,16 @@ var N, Co = function(e) {
442
442
  function te() {
443
443
  this.type = null, this.start = V, this.end = null;
444
444
  }
445
- function Z() {
445
+ function X() {
446
446
  this.start = Ct, this.end = null, kt && (this.source = kt);
447
447
  }
448
448
  function U() {
449
449
  var a = new te();
450
- return O.C && (a.X = new Z()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [V, 0]), a;
450
+ return O.C && (a.X = new X()), O.vb && (a.sourceFile = O.vb), O.Xa && (a.j = [V, 0]), a;
451
451
  }
452
452
  function me(a) {
453
453
  var l = new te();
454
- return l.start = a.start, O.C && (l.X = new Z(), l.X.start = a.X.start), O.Xa && (l.j = [a.j[0], 0]), l;
454
+ return l.start = a.start, O.C && (l.X = new X(), l.X.start = a.X.start), O.Xa && (l.j = [a.j[0], 0]), l;
455
455
  }
456
456
  function A(a, l) {
457
457
  return a.type = l, a.end = ge, O.C && (a.X.end = Tt), O.Xa && (a.j[1] = ge), a;
@@ -475,7 +475,7 @@ var N, Co = function(e) {
475
475
  r(V, "Unexpected token");
476
476
  }
477
477
  function Qe(a) {
478
- a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), q && a.type === "Identifier" && rt(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
478
+ a.type !== "Identifier" && a.type !== "MemberExpression" && r(a.start, "Assigning to rvalue"), Z && a.type === "Identifier" && rt(a.name) && r(a.start, "Assigning to " + a.name + " in strict mode");
479
479
  }
480
480
  function ne() {
481
481
  (I === Un || I === we && Q === "/=") && E(!0);
@@ -511,13 +511,13 @@ var N, Co = function(e) {
511
511
  case En:
512
512
  return m(), ot.test(g.slice(ge, V)) && r(ge, "Illegal newline after throw"), l.K = K(), be(), A(l, "ThrowStatement");
513
513
  case In:
514
- return m(), l.block = Be(), l.Ea = null, I === mn && (a = U(), m(), F(le), a.Ua = ae(), q && rt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), F(re), a.body = Be(), l.Ea = A(a, "CatchClause")), l.fb = M(wn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
514
+ return m(), l.block = Be(), l.Ea = null, I === mn && (a = U(), m(), F(le), a.Ua = ae(), Z && rt(a.Ua.name) && r(a.Ua.start, "Binding " + a.Ua.name + " in strict mode"), F(re), a.body = Be(), l.Ea = A(a, "CatchClause")), l.fb = M(wn) ? Be() : null, l.Ea || l.fb || r(l.start, "Missing catch or finally clause"), A(l, "TryStatement");
515
515
  case Nt:
516
516
  return m(), pn(l), be(), A(l, "VariableDeclaration");
517
517
  case Bt:
518
518
  return m(), l.test = Ne(), D.push(Ft), l.body = ne(), D.pop(), A(l, "WhileStatement");
519
519
  case Tn:
520
- return q && r(V, "'with' in strict mode"), m(), l.object = Ne(), l.body = ne(), A(l, "WithStatement");
520
+ return Z && r(V, "'with' in strict mode"), m(), l.object = Ne(), l.body = ne(), A(l, "WithStatement");
521
521
  case Ve:
522
522
  return Be();
523
523
  case ce:
@@ -560,7 +560,7 @@ var N, Co = function(e) {
560
560
  function pn(a, l) {
561
561
  for (a.fa = [], a.kind = "var"; ; ) {
562
562
  var c = U();
563
- if (c.id = ae(), q && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = M(Mn) ? K(!0, l) : null, a.fa.push(A(c, "VariableDeclarator")), !M(ye))
563
+ if (c.id = ae(), Z && rt(c.id.name) && r(c.id.start, "Binding " + c.id.name + " in strict mode"), c.ua = M(Mn) ? K(!0, l) : null, a.fa.push(A(c, "VariableDeclarator")), !M(ye))
564
564
  break;
565
565
  }
566
566
  }
@@ -592,7 +592,7 @@ var N, Co = function(e) {
592
592
  function St() {
593
593
  if (I.prefix) {
594
594
  var a = U(), l = I.$b;
595
- return a.operator = Q, Me = a.prefix = !0, m(), a.K = St(), l ? Qe(a.K) : q && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), A(a, l ? "UpdateExpression" : "UnaryExpression");
595
+ return a.operator = Q, Me = a.prefix = !0, m(), a.K = St(), l ? Qe(a.K) : Z && a.operator === "delete" && a.K.type === "Identifier" && r(a.start, "Deleting local variable in strict mode"), A(a, l ? "UpdateExpression" : "UnaryExpression");
596
596
  }
597
597
  for (l = Ue(et()); I.cc && !Ze(); )
598
598
  a = me(l), a.operator = Q, a.prefix = !1, a.K = l, Qe(l), m(), l = A(a, "UpdateExpression");
@@ -642,12 +642,12 @@ var N, Co = function(e) {
642
642
  var _ = p.kind = "init";
643
643
  } else
644
644
  p.key.type !== "Identifier" || p.key.name !== "get" && p.key.name !== "set" ? ie() : (T = c = !0, _ = p.kind = p.key.name, p.key = I === De || I === tt ? et() : ae(!0), I !== le && ie(), p.value = wt(U(), !1));
645
- if (p.key.type === "Identifier" && (q || c))
646
- for (var J = 0; J < a.h.length; ++J) {
647
- var Ae = a.h[J];
645
+ if (p.key.type === "Identifier" && (Z || c))
646
+ for (var Y = 0; Y < a.h.length; ++Y) {
647
+ var Ae = a.h[Y];
648
648
  if (Ae.key.name === p.key.name) {
649
649
  var Dt = _ === Ae.kind || T && Ae.kind === "init" || _ === "init" && (Ae.kind === "get" || Ae.kind === "set");
650
- Dt && !q && _ === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(p.key.start, "Redefinition of property");
650
+ Dt && !Z && _ === "init" && Ae.kind === "init" && (Dt = !1), Dt && r(p.key.start, "Redefinition of property");
651
651
  }
652
652
  }
653
653
  a.h.push(p);
@@ -667,7 +667,7 @@ var N, Co = function(e) {
667
667
  c ? c = !1 : F(ye), a.oa.push(ae());
668
668
  c = Fe;
669
669
  var p = D;
670
- if (Fe = !0, D = [], a.body = Be(!0), Fe = c, D = p, q || a.body.body.length && gt(a.body.body[0])) {
670
+ if (Fe = !0, D = [], a.body = Be(!0), Fe = c, D = p, Z || a.body.body.length && gt(a.body.body[0])) {
671
671
  for (c = a.id ? -1 : 0; c < a.oa.length; ++c)
672
672
  if (p = 0 > c ? a.id : a.oa[c], (_n(p.name) || rt(p.name)) && r(p.start, "Defining '" + p.name + "' in strict mode"), 0 <= c)
673
673
  for (var T = 0; T < c; ++T)
@@ -687,7 +687,7 @@ var N, Co = function(e) {
687
687
  }
688
688
  function ae(a) {
689
689
  var l = U();
690
- return a && O.yb === "everywhere" && (a = !1), I === Ee ? (!a && (O.yb && zr(Q) || q && _n(Q)) && g.slice(V, Ce).indexOf("\\") === -1 && r(V, "The keyword '" + Q + "' is reserved"), l.name = Q) : a && I.l ? l.name = I.l : ie(), Me = !1, m(), A(l, "Identifier");
690
+ return a && O.yb === "everywhere" && (a = !1), I === Ee ? (!a && (O.yb && zr(Q) || Z && _n(Q)) && g.slice(V, Ce).indexOf("\\") === -1 && r(V, "The keyword '" + Q + "' is reserved"), l.name = Q) : a && I.l ? l.name = I.l : ie(), Me = !1, m(), A(l, "Identifier");
691
691
  }
692
692
  e.version = "0.5.0";
693
693
  var O, g = "", ke, kt;
@@ -695,7 +695,7 @@ var N, Co = function(e) {
695
695
  g = String(a), ke = g.length, O = l || {};
696
696
  for (var c in dn)
697
697
  Object.prototype.hasOwnProperty.call(O, c) || (O[c] = dn[c]);
698
- for (kt = O.sourceFile, Se = 1, f = se = 0, Me = !0, d(), c = O.dc, It = ge = f, O.C && (Tt = new i()), Fe = q = !1, D = [], E(), a = c || U(), l = !0, c || (a.body = []); I !== At; )
698
+ for (kt = O.sourceFile, Se = 1, f = se = 0, Me = !0, d(), c = O.dc, It = ge = f, O.C && (Tt = new i()), Fe = Z = !1, D = [], E(), a = c || U(), l = !0, c || (a.body = []); I !== At; )
699
699
  c = ne(), a.body.push(c), l && gt(c) && ee(!0), l = !1;
700
700
  return A(a, "Program");
701
701
  };
@@ -710,7 +710,7 @@ var N, Co = function(e) {
710
710
  dc: null,
711
711
  sourceFile: null,
712
712
  vb: null
713
- }, f = 0, V = 0, Ce = 0, Ct, Et, I, Q, Me, Se, se, It = 0, ge = 0, Tt, Fe, D, q, Vr = [], De = {
713
+ }, f = 0, V = 0, Ce = 0, Ct, Et, I, Q, Me, Se, se, It = 0, ge = 0, Tt, Fe, D, Z, Vr = [], De = {
714
714
  type: "num"
715
715
  }, hn = {
716
716
  type: "regexp"
@@ -941,7 +941,7 @@ var Wn = {
941
941
  configurable: !0,
942
942
  enumerable: !1,
943
943
  writable: !0
944
- }, z = {
944
+ }, q = {
945
945
  configurable: !0,
946
946
  enumerable: !1,
947
947
  writable: !1
@@ -1089,7 +1089,7 @@ function To(e, t) {
1089
1089
  return k.body.length !== 1 && w(e, e.T, "Invalid code in function body"), Qt(e, k.body[0].la, e.N, "anonymous");
1090
1090
  };
1091
1091
  e.O = e.i(r, !0), e.g(t, "Function", e.O, y), e.g(e.O, "prototype", e.Z, y), e.g(e.Z, "constructor", e.O, y), e.Z.Ta = function() {
1092
- }, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, z), e.Z.H = "Function", r = function(o, i) {
1092
+ }, e.Z.Ta.id = e.Ya++, e.Z.Ab = !0, e.g(e.Z, "length", 0, q), e.Z.H = "Function", r = function(o, i) {
1093
1093
  var s = e.o[e.o.length - 1];
1094
1094
  s.U = this, s.B = o, s.F = [], i != null && (i instanceof R ? s.F = dr(e, i) : w(e, e.j, "CreateListFromArrayLike called on non-object")), s.eb = !1;
1095
1095
  }, W(e, e.O, "apply", r), r = function(o) {
@@ -1332,7 +1332,7 @@ function Bo(e, t) {
1332
1332
  }
1333
1333
  return qt(e, i, s), i;
1334
1334
  };
1335
- e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, z), e.g(e.I.h.prototype, "ignoreCase", void 0, z), e.g(e.I.h.prototype, "multiline", void 0, z), e.g(e.I.h.prototype, "source", "(?:)", z), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
1335
+ e.I = e.i(n, !0), e.Ma = e.I.h.prototype, e.g(t, "RegExp", e.I, y), e.g(e.I.h.prototype, "global", void 0, q), e.g(e.I.h.prototype, "ignoreCase", void 0, q), e.g(e.I.h.prototype, "multiline", void 0, q), e.g(e.I.h.prototype, "source", "(?:)", q), e.ba.push("Object.defineProperty(RegExp.prototype, 'test',", "{configurable: true, writable: true, value:", "function test(str) {", "return !!this.exec(str);", "}", "});"), n = function(r, o) {
1336
1336
  function i(E) {
1337
1337
  if (E) {
1338
1338
  var S = ue(e, E);
@@ -1375,7 +1375,7 @@ function Mo(e, t) {
1375
1375
  e.g(t, "Math", n, y);
1376
1376
  var r = "E LN2 LN10 LOG2E LOG10E PI SQRT1_2 SQRT2".split(" ");
1377
1377
  for (t = 0; t < r.length; t++)
1378
- e.g(n, r[t], Math[r[t]], z);
1378
+ e.g(n, r[t], Math[r[t]], q);
1379
1379
  for (r = "abs acos asin atan atan2 ceil cos exp floor log max min pow random round sin sqrt tan".split(" "), t = 0; t < r.length; t++)
1380
1380
  e.g(n, r[t], e.i(Math[r[t]], !1), y);
1381
1381
  }
@@ -1413,7 +1413,7 @@ function H(e, t, n) {
1413
1413
  return !1;
1414
1414
  }
1415
1415
  function qt(e, t, n) {
1416
- t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, z), e.g(t, "global", n.global, z), e.g(t, "ignoreCase", n.ignoreCase, z), e.g(t, "multiline", n.multiline, z);
1416
+ t.data = new RegExp(n.source, n.flags), e.g(t, "lastIndex", n.lastIndex, y), e.g(t, "source", n.source, q), e.g(t, "global", n.global, q), e.g(t, "ignoreCase", n.ignoreCase, q), e.g(t, "multiline", n.multiline, q);
1417
1417
  }
1418
1418
  function Wt(e, t, n) {
1419
1419
  n && e.g(t, "message", String(n), y), n = [];
@@ -1496,18 +1496,18 @@ function Re(e) {
1496
1496
  }
1497
1497
  function Zt(e, t, n) {
1498
1498
  var r = e.s(e.Z);
1499
- return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, z), r.H = "Function", r;
1499
+ return n ? (n = e.s(e.M), e.g(r, "prototype", n, y), e.g(n, "constructor", r, y)) : r.Ab = !0, e.g(r, "length", t, q), r.H = "Function", r;
1500
1500
  }
1501
1501
  function Qt(e, t, n, r) {
1502
1502
  var o = Zt(e, t.oa.length, !0);
1503
- return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", z), o;
1503
+ return o.Va = n, o.node = t, e.g(o, "name", t.id ? String(t.id.name) : r || "", q), o;
1504
1504
  }
1505
1505
  N.i = function(e, t) {
1506
- return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, z), t;
1506
+ return t = Zt(this, e.length, t), t.Ta = e, e.id = this.Ya++, this.g(t, "name", e.name, q), t;
1507
1507
  };
1508
1508
  N.ub = function(e) {
1509
1509
  var t = Zt(this, e.length, !0);
1510
- return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, z), t;
1510
+ return t.Za = e, e.id = this.Ya++, this.g(t, "name", e.name, q), t;
1511
1511
  };
1512
1512
  N.Ia = function(e) {
1513
1513
  if (e instanceof R)
@@ -1852,34 +1852,34 @@ function ze(e, t, n, r) {
1852
1852
  URIError
1853
1853
  }, r = String(e.G(n, "name")), o = e.G(n, "message").valueOf(), t = (t[r] || Error)(o), t.stack = String(e.G(n, "stack"))) : t = String(n), e.value = t, t;
1854
1854
  }
1855
- function Y(e, t) {
1855
+ function z(e, t) {
1856
1856
  switch (t.type) {
1857
1857
  case "ArrayExpression":
1858
1858
  return "[...]";
1859
1859
  case "BinaryExpression":
1860
1860
  case "LogicalExpression":
1861
- return Y(e, t.left) + " " + t.operator + " " + Y(e, t.right);
1861
+ return z(e, t.left) + " " + t.operator + " " + z(e, t.right);
1862
1862
  case "CallExpression":
1863
- return Y(e, t.callee) + "(...)";
1863
+ return z(e, t.callee) + "(...)";
1864
1864
  case "ConditionalExpression":
1865
- return Y(e, t.test) + " ? " + Y(e, t.da) + " : " + Y(e, t.alternate);
1865
+ return z(e, t.test) + " ? " + z(e, t.da) + " : " + z(e, t.alternate);
1866
1866
  case "Identifier":
1867
1867
  return t.name;
1868
1868
  case "Literal":
1869
1869
  return t.raw;
1870
1870
  case "MemberExpression":
1871
- var n = Y(e, t.object);
1872
- return e = Y(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
1871
+ var n = z(e, t.object);
1872
+ return e = z(e, t.Wa), t.bb ? n + "[" + e + "]" : n + "." + e;
1873
1873
  case "NewExpression":
1874
- return "new " + Y(e, t.callee) + "(...)";
1874
+ return "new " + z(e, t.callee) + "(...)";
1875
1875
  case "ObjectExpression":
1876
1876
  return "{...}";
1877
1877
  case "ThisExpression":
1878
1878
  return "this";
1879
1879
  case "UnaryExpression":
1880
- return t.operator + " " + Y(e, t.K);
1880
+ return t.operator + " " + z(e, t.K);
1881
1881
  case "UpdateExpression":
1882
- return n = Y(e, t.K), t.prefix ? t.operator + n : n + t.operator;
1882
+ return n = z(e, t.K), t.prefix ? t.operator + n : n + t.operator;
1883
1883
  }
1884
1884
  return "???";
1885
1885
  }
@@ -2176,7 +2176,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
2176
2176
  if (t.A !== 0 && t.F.push(t.value), n.arguments[t.A])
2177
2177
  return new b(n.arguments[t.A++], t.scope);
2178
2178
  if (n.type === "NewExpression") {
2179
- if (o instanceof R && !o.Ab || w(this, this.j, Y(this, n.callee) + " is not a constructor"), o === this.qa)
2179
+ if (o instanceof R && !o.Ab || w(this, this.j, z(this, n.callee) + " is not a constructor"), o === this.qa)
2180
2180
  t.B = Re(this);
2181
2181
  else {
2182
2182
  var i = o.h.prototype;
@@ -2189,7 +2189,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
2189
2189
  if (t.eb)
2190
2190
  e.pop(), e[e.length - 1].value = t.isConstructor && typeof t.value != "object" ? t.B : t.value;
2191
2191
  else {
2192
- if (t.eb = !0, o instanceof R || w(this, this.j, Y(this, n.callee) + " is not a function"), e = o.node) {
2192
+ if (t.eb = !0, o instanceof R || w(this, this.j, z(this, n.callee) + " is not a function"), e = o.node) {
2193
2193
  for (n = $t(this, e.body, o.Va), r = Re(this), o = 0; o < t.F.length; o++)
2194
2194
  this.g(r, o, t.F[o]);
2195
2195
  for (this.g(n.object, "arguments", r), o = 0; o < e.oa.length; o++)
@@ -2215,7 +2215,7 @@ h.prototype.stepCallExpression = function(e, t, n) {
2215
2215
  t.value = u, s.za = !1;
2216
2216
  }), this.za = !0, t.scope.S || (t.B = Vt(this, t.B)), o.Za.apply(t.B, r);
2217
2217
  } else
2218
- w(this, this.j, Y(this, n.callee) + " is not callable");
2218
+ w(this, this.j, z(this, n.callee) + " is not callable");
2219
2219
  }
2220
2220
  };
2221
2221
  h.prototype.stepConditionalExpression = function(e, t, n) {
@@ -2589,7 +2589,7 @@ const _o = (e) => e.split(`
2589
2589
  }).join(`
2590
2590
  `), E = _o(s);
2591
2591
  if (E === "") {
2592
- X.warn("Skipping evaluation of empty code block.");
2592
+ J.warn("Skipping evaluation of empty code block.");
2593
2593
  return;
2594
2594
  }
2595
2595
  const S = `
@@ -2612,7 +2612,7 @@ theFunction();
2612
2612
  const v = new h(S, j);
2613
2613
  return v.run(), v.pseudoToNative(v.value);
2614
2614
  } catch (v) {
2615
- X.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
2615
+ J.warn("Custom code error in edge runtime. NOTE: your code must be ES5 JavaScript.", {
2616
2616
  e: v
2617
2617
  });
2618
2618
  return;
@@ -2627,7 +2627,7 @@ const $o = () => {
2627
2627
  if (!Wo())
2628
2628
  return !1;
2629
2629
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
2630
- return e && t && !n ? (X.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
2630
+ return e && t && !n ? (J.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
2631
2631
  }, Ho = (e) => G() || $o() ? ko(e) : Lo(e);
2632
2632
  function sn({
2633
2633
  code: e,
@@ -2639,7 +2639,7 @@ function sn({
2639
2639
  isExpression: s = !0
2640
2640
  }) {
2641
2641
  if (e === "") {
2642
- X.warn("Skipping evaluation of empty code block.");
2642
+ J.warn("Skipping evaluation of empty code block.");
2643
2643
  return;
2644
2644
  }
2645
2645
  const u = {
@@ -2656,7 +2656,7 @@ function sn({
2656
2656
  try {
2657
2657
  return Ho(u);
2658
2658
  } catch (d) {
2659
- X.error("Failed code evaluation: " + d.message, {
2659
+ J.error("Failed code evaluation: " + d.message, {
2660
2660
  code: e
2661
2661
  });
2662
2662
  return;
@@ -2885,7 +2885,7 @@ const Zo = (e) => `on${qo(e)}`, Qo = (e, t) => (n) => sn({
2885
2885
  event: n,
2886
2886
  isExpression: !1
2887
2887
  });
2888
- function La(e) {
2888
+ function Wa(e) {
2889
2889
  const t = {}, n = e.block.actions ?? {};
2890
2890
  for (const r in n) {
2891
2891
  if (!n.hasOwnProperty(r))
@@ -3067,17 +3067,17 @@ function ht(e) {
3067
3067
  var v;
3068
3068
  return !((v = t()) != null && v.component) && !n() ? r().children ?? [] : [];
3069
3069
  }, u = function() {
3070
- var j, v, x, B, $, m, ee, te;
3070
+ var j, v, x, B, $, m, ee, te, X, U;
3071
3071
  return {
3072
3072
  blockChildren: r().children ?? [],
3073
3073
  componentRef: (j = t()) == null ? void 0 : j.component,
3074
3074
  componentOptions: {
3075
3075
  ...yo(r()),
3076
3076
  builderContext: e.context,
3077
- ...((v = t()) == null ? void 0 : v.name) === "Core:Button" || ((x = t()) == null ? void 0 : x.name) === "Symbol" || ((B = t()) == null ? void 0 : B.name) === "Columns" ? {
3077
+ ...((v = t()) == null ? void 0 : v.name) === "Core:Button" || ((x = t()) == null ? void 0 : x.name) === "Symbol" || ((B = t()) == null ? void 0 : B.name) === "Columns" || (($ = t()) == null ? void 0 : $.name) === "Form:Form" ? {
3078
3078
  builderLinkComponent: e.linkComponent
3079
3079
  } : {},
3080
- ...(($ = t()) == null ? void 0 : $.name) === "Symbol" || ((m = t()) == null ? void 0 : m.name) === "Columns" ? {
3080
+ ...((m = t()) == null ? void 0 : m.name) === "Symbol" || ((ee = t()) == null ? void 0 : ee.name) === "Columns" || ((te = t()) == null ? void 0 : te.name) === "Form:Form" ? {
3081
3081
  builderComponents: e.registeredComponents
3082
3082
  } : {}
3083
3083
  },
@@ -3085,8 +3085,8 @@ function ht(e) {
3085
3085
  linkComponent: e.linkComponent,
3086
3086
  registeredComponents: e.registeredComponents,
3087
3087
  builderBlock: r(),
3088
- includeBlockProps: ((ee = t()) == null ? void 0 : ee.noWrap) === !0,
3089
- isInteractive: !((te = t()) != null && te.isRSC)
3088
+ includeBlockProps: ((X = t()) == null ? void 0 : X.noWrap) === !0,
3089
+ isInteractive: !((U = t()) != null && U.isRSC)
3090
3090
  };
3091
3091
  }, d = e.context;
3092
3092
  return /* @__PURE__ */ C(L, { children: i() ? /* @__PURE__ */ xe(L, { children: [
@@ -3324,7 +3324,7 @@ function ci(e, t) {
3324
3324
  }
3325
3325
  return null;
3326
3326
  }
3327
- function Wa(e) {
3327
+ function $a(e) {
3328
3328
  if (!e)
3329
3329
  return e;
3330
3330
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
@@ -3348,7 +3348,7 @@ const ui = (e) => {
3348
3348
  try {
3349
3349
  return t ? (n = document.cookie.split("; ").find((r) => r.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
3350
3350
  } catch (r) {
3351
- X.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
3351
+ J.warn("[COOKIE] GET error: ", (r == null ? void 0 : r.message) || r);
3352
3352
  return;
3353
3353
  }
3354
3354
  }, xr = async (e) => wr(e), fi = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(oe).join("; "), pi = [["secure", ""], ["SameSite", "None"]], di = ({
@@ -3374,7 +3374,7 @@ const ui = (e) => {
3374
3374
  });
3375
3375
  document.cookie = o;
3376
3376
  } catch (o) {
3377
- X.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
3377
+ J.warn("[COOKIE] SET error: ", (o == null ? void 0 : o.message) || o);
3378
3378
  }
3379
3379
  }, hi = "builder.tests", ln = (e) => `${hi}.${e}`, mi = ({
3380
3380
  contentId: e
@@ -3412,7 +3412,7 @@ const ui = (e) => {
3412
3412
  contentId: e.id,
3413
3413
  value: t
3414
3414
  }).catch((n) => {
3415
- X.error("could not store A/B test variation: ", n);
3415
+ J.error("could not store A/B test variation: ", n);
3416
3416
  }), t;
3417
3417
  }, Ir = ({
3418
3418
  item: e,
@@ -3705,59 +3705,12 @@ const ui = (e) => {
3705
3705
  advanced: !0
3706
3706
  }]
3707
3707
  }, ki = {
3708
- name: "Custom Code",
3709
- static: !0,
3710
- requiredPermissions: ["editCode"],
3711
- inputs: [{
3712
- name: "code",
3713
- type: "html",
3714
- required: !0,
3715
- defaultValue: "<p>Hello there, I am custom HTML code!</p>",
3716
- code: !0
3717
- }, {
3718
- name: "replaceNodes",
3719
- type: "boolean",
3720
- helperText: "Preserve server rendered dom nodes",
3721
- advanced: !0
3722
- }, {
3723
- name: "scriptsClientOnly",
3724
- type: "boolean",
3725
- defaultValue: !1,
3726
- helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3727
- advanced: !0
3728
- }]
3729
- }, Ci = {
3730
- name: "Embed",
3731
- static: !0,
3732
- inputs: [{
3733
- name: "url",
3734
- type: "url",
3735
- required: !0,
3736
- defaultValue: "",
3737
- helperText: "e.g. enter a youtube url, google map, etc",
3738
- onChange: (e) => {
3739
- const t = e.get("url");
3740
- if (t)
3741
- return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((r) => r.json()).then((r) => {
3742
- e.get("url") === t && (r.html ? e.set("content", r.html) : e.set("content", "Invalid url, please try another"));
3743
- }).catch((r) => {
3744
- e.set("content", "There was an error embedding this URL, please try again or another URL");
3745
- });
3746
- e.delete("content");
3747
- }
3748
- }, {
3749
- name: "content",
3750
- type: "html",
3751
- defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3752
- hideFromUI: !0
3753
- }]
3754
- }, Ei = ["text/javascript", "application/javascript", "application/ecmascript"], $a = (e) => Ei.includes(e.type), Ii = {
3755
3708
  name: "Fragment",
3756
3709
  static: !0,
3757
3710
  hidden: !0,
3758
3711
  canHaveChildren: !0,
3759
3712
  noWrap: !0
3760
- }, Ti = {
3713
+ }, Ci = {
3761
3714
  name: "Image",
3762
3715
  static: !0,
3763
3716
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -3857,21 +3810,7 @@ const ui = (e) => {
3857
3810
  advanced: !0,
3858
3811
  defaultValue: 0.7041
3859
3812
  }]
3860
- }, Ai = {
3861
- // friendlyName?
3862
- name: "Raw:Img",
3863
- hideFromInsertMenu: !0,
3864
- image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
3865
- inputs: [{
3866
- name: "image",
3867
- bubble: !0,
3868
- type: "file",
3869
- allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
3870
- required: !0
3871
- }],
3872
- noWrap: !0,
3873
- static: !0
3874
- }, Oi = {
3813
+ }, Ei = {
3875
3814
  name: "Core:Section",
3876
3815
  static: !0,
3877
3816
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -3910,7 +3849,7 @@ const ui = (e) => {
3910
3849
  }
3911
3850
  }
3912
3851
  }]
3913
- }, ji = {
3852
+ }, Ii = {
3914
3853
  name: "Slot",
3915
3854
  isRSC: !0,
3916
3855
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -3924,7 +3863,7 @@ const ui = (e) => {
3924
3863
  defaultValue: "children"
3925
3864
  }]
3926
3865
  };
3927
- function Ri(e) {
3866
+ function Ti(e) {
3928
3867
  var t, n, r;
3929
3868
  return /* @__PURE__ */ C(
3930
3869
  "div",
@@ -3947,7 +3886,7 @@ function Ri(e) {
3947
3886
  }
3948
3887
  );
3949
3888
  }
3950
- const Pi = {
3889
+ const Ai = {
3951
3890
  name: "Symbol",
3952
3891
  noWrap: !0,
3953
3892
  static: !0,
@@ -3980,7 +3919,7 @@ const Pi = {
3980
3919
  hideFromUI: !0,
3981
3920
  type: "boolean"
3982
3921
  }]
3983
- }, Ni = {
3922
+ }, Oi = {
3984
3923
  name: "Text",
3985
3924
  static: !0,
3986
3925
  isRSC: !0,
@@ -3999,7 +3938,7 @@ const Pi = {
3999
3938
  textAlign: "center"
4000
3939
  }
4001
3940
  };
4002
- function Bi(e) {
3941
+ function ji(e) {
4003
3942
  var t;
4004
3943
  return /* @__PURE__ */ C(
4005
3944
  "div",
@@ -4012,7 +3951,68 @@ function Bi(e) {
4012
3951
  }
4013
3952
  );
4014
3953
  }
4015
- const Ui = {
3954
+ const Ri = {
3955
+ name: "Custom Code",
3956
+ static: !0,
3957
+ requiredPermissions: ["editCode"],
3958
+ inputs: [{
3959
+ name: "code",
3960
+ type: "html",
3961
+ required: !0,
3962
+ defaultValue: "<p>Hello there, I am custom HTML code!</p>",
3963
+ code: !0
3964
+ }, {
3965
+ name: "replaceNodes",
3966
+ type: "boolean",
3967
+ helperText: "Preserve server rendered dom nodes",
3968
+ advanced: !0
3969
+ }, {
3970
+ name: "scriptsClientOnly",
3971
+ type: "boolean",
3972
+ defaultValue: !1,
3973
+ helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
3974
+ advanced: !0
3975
+ }]
3976
+ }, Pi = {
3977
+ name: "Embed",
3978
+ static: !0,
3979
+ inputs: [{
3980
+ name: "url",
3981
+ type: "url",
3982
+ required: !0,
3983
+ defaultValue: "",
3984
+ helperText: "e.g. enter a youtube url, google map, etc",
3985
+ onChange: (e) => {
3986
+ const t = e.get("url");
3987
+ if (t)
3988
+ return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((r) => r.json()).then((r) => {
3989
+ e.get("url") === t && (r.html ? e.set("content", r.html) : e.set("content", "Invalid url, please try another"));
3990
+ }).catch((r) => {
3991
+ e.set("content", "There was an error embedding this URL, please try again or another URL");
3992
+ });
3993
+ e.delete("content");
3994
+ }
3995
+ }, {
3996
+ name: "content",
3997
+ type: "html",
3998
+ defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
3999
+ hideFromUI: !0
4000
+ }]
4001
+ }, Ni = ["text/javascript", "application/javascript", "application/ecmascript"], Ha = (e) => Ni.includes(e.type), Bi = {
4002
+ // friendlyName?
4003
+ name: "Raw:Img",
4004
+ hideFromInsertMenu: !0,
4005
+ image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
4006
+ inputs: [{
4007
+ name: "image",
4008
+ bubble: !0,
4009
+ type: "file",
4010
+ allowedFileTypes: ["jpeg", "jpg", "png", "svg", "gif", "webp"],
4011
+ required: !0
4012
+ }],
4013
+ noWrap: !0,
4014
+ static: !0
4015
+ }, Ui = {
4016
4016
  name: "Video",
4017
4017
  canHaveChildren: !0,
4018
4018
  defaultStyles: {
@@ -4093,58 +4093,58 @@ const Ui = {
4093
4093
  defaultValue: !0,
4094
4094
  advanced: !0
4095
4095
  }]
4096
- }, qn = () => [{
4096
+ }, Mi = () => [{
4097
4097
  component: ao,
4098
- ...wi
4099
- }, {
4100
- component: si,
4101
- ...xi
4098
+ ...Ri
4102
4099
  }, {
4103
4100
  component: so,
4104
- ...ki
4101
+ ...Pi
4105
4102
  }, {
4106
4103
  component: lo,
4107
- ...Ci
4104
+ ...Bi
4108
4105
  }, {
4109
4106
  component: co,
4110
- ...Ii
4111
- }, {
4107
+ ...Ui
4108
+ }], qn = () => [{
4112
4109
  component: uo,
4113
- ...Ti
4110
+ ...wi
4111
+ }, {
4112
+ component: si,
4113
+ ...xi
4114
4114
  }, {
4115
4115
  component: fo,
4116
- ...Ai
4116
+ ...ki
4117
4117
  }, {
4118
4118
  component: po,
4119
- ...Oi
4119
+ ...Ci
4120
4120
  }, {
4121
- component: Ba,
4122
- ...Pi
4121
+ component: ho,
4122
+ ...Ei
4123
4123
  }, {
4124
- component: Bi,
4125
- ...Ni
4124
+ component: Ti,
4125
+ ...Ii
4126
4126
  }, {
4127
- component: ho,
4128
- ...Ui
4127
+ component: Ua,
4128
+ ...Ai
4129
4129
  }, {
4130
- component: Ri,
4131
- ...ji
4132
- }], Zn = [], Ha = (e) => ({
4130
+ component: ji,
4131
+ ...Oi
4132
+ }, ...Mi()], Zn = [], Ka = (e) => ({
4133
4133
  type: "builder.registerComponent",
4134
4134
  data: Kt(e)
4135
- }), Mi = (e) => {
4135
+ }), Fi = (e) => {
4136
4136
  const t = e.toString().trim();
4137
4137
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
4138
- }, Fi = (e) => typeof e == "function" ? Mi(e) : pt(e), Kt = ({
4138
+ }, Di = (e) => typeof e == "function" ? Fi(e) : pt(e), Kt = ({
4139
4139
  inputs: e,
4140
4140
  ...t
4141
4141
  }) => ({
4142
4142
  ...pt(t),
4143
4143
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((r, [o, i]) => ({
4144
4144
  ...r,
4145
- [o]: Fi(i)
4145
+ [o]: Di(i)
4146
4146
  }), {}))
4147
- }), Di = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
4147
+ }), Vi = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
4148
4148
  function getAndSetVariantId() {
4149
4149
  function setCookie(name, value, days) {
4150
4150
  let expires = '';
@@ -4200,7 +4200,7 @@ const Ui = {
4200
4200
  }).join('');
4201
4201
  styleEl.innerHTML = newStyleStr;
4202
4202
  }
4203
- }`, Vi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4203
+ }`, _i = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
4204
4204
  if (!navigator.cookieEnabled) {
4205
4205
  return;
4206
4206
  }
@@ -4238,16 +4238,16 @@ const Ui = {
4238
4238
  ...t,
4239
4239
  testVariationId: t.id,
4240
4240
  id: e == null ? void 0 : e.id
4241
- })), _i = ({
4241
+ })), Li = ({
4242
4242
  canTrack: e,
4243
4243
  content: t
4244
- }) => !(!(st(t).length > 0) || !e || G()), Li = (e) => e === "react" || e === "reactNative", Or = Li(he), Wi = () => `
4245
- window.${Tr} = ${Di}
4246
- window.${Ar} = ${Vi}
4247
- `, $i = (e, t) => `
4244
+ }) => !(!(st(t).length > 0) || !e || G()), Wi = (e) => e === "react" || e === "reactNative", Or = Wi(he), $i = () => `
4245
+ window.${Tr} = ${Vi}
4246
+ window.${Ar} = ${_i}
4247
+ `, Hi = (e, t) => `
4248
4248
  window.${Tr}(
4249
4249
  "${t}",${JSON.stringify(e)}, ${Or}
4250
- )`, Hi = ({
4250
+ )`, Ki = ({
4251
4251
  contentId: e,
4252
4252
  variationId: t
4253
4253
  }) => `window.${Ar}(
@@ -4262,33 +4262,33 @@ function Gt(e) {
4262
4262
  }
4263
4263
  );
4264
4264
  }
4265
- const Ki = (e) => {
4265
+ const Gi = (e) => {
4266
4266
  const t = e.get("preview"), n = e.get("overrides." + t);
4267
- return n || X.warn("No previewed ID found in search params."), n;
4267
+ return n || J.warn("No previewed ID found in search params."), n;
4268
4268
  };
4269
- function Gi() {
4269
+ function Xi() {
4270
4270
  globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new to({
4271
4271
  max: 500,
4272
4272
  // how long to live in ms
4273
4273
  ttl: 1e3 * 60 * 5
4274
4274
  }));
4275
4275
  }
4276
- function Xi(e) {
4277
- Gi();
4278
- const t = Ki(e);
4276
+ function Ji(e) {
4277
+ Xi();
4278
+ const t = Gi(e);
4279
4279
  return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
4280
4280
  }
4281
- function Ji() {
4281
+ function Yi() {
4282
4282
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
4283
4283
  }
4284
- function Yi() {
4285
- const e = Ji().fetch;
4284
+ function zi() {
4285
+ const e = Yi().fetch;
4286
4286
  if (typeof e > "u")
4287
4287
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
4288
4288
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
4289
4289
  return e;
4290
4290
  }
4291
- const zi = Yi();
4291
+ const qi = zi();
4292
4292
  function lt(e, t = null, n = ".") {
4293
4293
  return Object.keys(e).reduce((r, o) => {
4294
4294
  const i = e[o], s = [t, o].filter(Boolean).join(n);
@@ -4301,7 +4301,7 @@ function lt(e, t = null, n = ".") {
4301
4301
  };
4302
4302
  }, {});
4303
4303
  }
4304
- const qi = "v3", Qn = "builder.", Zi = "options.", Qi = (e) => {
4304
+ const Zi = "v3", Qn = "builder.", Qi = "options.", ea = (e) => {
4305
4305
  const t = {};
4306
4306
  return e.forEach((n, r) => {
4307
4307
  t[r] = n;
@@ -4312,16 +4312,16 @@ const qi = "v3", Qn = "builder.", Zi = "options.", Qi = (e) => {
4312
4312
  const t = Rr(e), n = {};
4313
4313
  return Object.keys(t).forEach((r) => {
4314
4314
  if (r.startsWith(Qn)) {
4315
- const o = r.replace(Qn, "").replace(Zi, "");
4315
+ const o = r.replace(Qn, "").replace(Qi, "");
4316
4316
  n[o] = t[r];
4317
4317
  }
4318
4318
  }), n;
4319
- }, ea = () => {
4319
+ }, ta = () => {
4320
4320
  if (!G())
4321
4321
  return {};
4322
4322
  const e = new URLSearchParams(window.location.search);
4323
4323
  return jr(e);
4324
- }, Rr = (e) => e instanceof URLSearchParams ? Qi(e) : e, er = (e) => typeof e == "number" && !isNaN(e) && e >= 0, cn = (e) => {
4324
+ }, Rr = (e) => e instanceof URLSearchParams ? ea(e) : e, er = (e) => typeof e == "number" && !isNaN(e) && e >= 0, cn = (e) => {
4325
4325
  let {
4326
4326
  noTraverse: t = !1
4327
4327
  } = e;
@@ -4334,7 +4334,7 @@ const qi = "v3", Qn = "builder.", Zi = "options.", Qi = (e) => {
4334
4334
  includeRefs: u = !0,
4335
4335
  enrich: d,
4336
4336
  locale: k,
4337
- apiVersion: E = qi,
4337
+ apiVersion: E = Zi,
4338
4338
  fields: S,
4339
4339
  omit: P,
4340
4340
  offset: j,
@@ -4350,27 +4350,27 @@ const qi = "v3", Qn = "builder.", Zi = "options.", Qi = (e) => {
4350
4350
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
4351
4351
  const m = new URL(`https://cdn.builder.io/api/${E}/content/${i}?apiKey=${s}&limit=${n}&noTraverse=${t}&includeRefs=${u}${k ? `&locale=${k}` : ""}${d ? `&enrich=${d}` : ""}`);
4352
4352
  if (m.searchParams.set("omit", P || "meta.componentsUsed"), S && m.searchParams.set("fields", S), Number.isFinite(j) && j > -1 && m.searchParams.set("offset", String(Math.floor(j))), typeof $ == "boolean" && m.searchParams.set("includeUnpublished", String($)), v && er(v) && m.searchParams.set("cacheSeconds", String(v)), x && er(x) && m.searchParams.set("staleCacheSeconds", String(x)), B) {
4353
- const Z = lt({
4353
+ const X = lt({
4354
4354
  sort: B
4355
4355
  });
4356
- for (const U in Z)
4357
- m.searchParams.set(U, JSON.stringify(Z[U]));
4356
+ for (const U in X)
4357
+ m.searchParams.set(U, JSON.stringify(X[U]));
4358
4358
  }
4359
4359
  const ee = {
4360
- ...ea(),
4360
+ ...ta(),
4361
4361
  ...Rr(e.options || {})
4362
4362
  }, te = lt(ee);
4363
- for (const Z in te)
4364
- m.searchParams.set(Z, String(te[Z]));
4363
+ for (const X in te)
4364
+ m.searchParams.set(X, String(te[X]));
4365
4365
  if (r && m.searchParams.set("userAttributes", JSON.stringify(r)), o) {
4366
- const Z = lt({
4366
+ const X = lt({
4367
4367
  query: o
4368
4368
  });
4369
- for (const U in Z)
4370
- m.searchParams.set(U, JSON.stringify(Z[U]));
4369
+ for (const U in X)
4370
+ m.searchParams.set(U, JSON.stringify(X[U]));
4371
4371
  }
4372
4372
  return m;
4373
- }, ta = (e) => "results" in e;
4373
+ }, na = (e) => "results" in e;
4374
4374
  async function un(e) {
4375
4375
  const t = await Pr({
4376
4376
  ...e,
@@ -4378,15 +4378,15 @@ async function un(e) {
4378
4378
  });
4379
4379
  return t && t[0] || null;
4380
4380
  }
4381
- const Ka = un, na = async (e) => {
4381
+ const Ga = un, ra = async (e) => {
4382
4382
  const t = cn(e);
4383
- return await (await zi(t.href)).json();
4384
- }, ra = async (e, t, n = cn(e)) => {
4383
+ return await (await qi(t.href)).json();
4384
+ }, oa = async (e, t, n = cn(e)) => {
4385
4385
  const r = Ht(e.canTrack);
4386
4386
  if (n.search.includes("preview=")) {
4387
4387
  const i = [];
4388
4388
  for (const s of t.results) {
4389
- const u = Xi(n.searchParams);
4389
+ const u = Ji(n.searchParams);
4390
4390
  i.push(u || s);
4391
4391
  }
4392
4392
  t.results = i;
@@ -4402,36 +4402,36 @@ const Ka = un, na = async (e) => {
4402
4402
  }));
4403
4403
  t.results = i;
4404
4404
  } catch (i) {
4405
- X.error("Could not process A/B tests. ", i);
4405
+ J.error("Could not process A/B tests. ", i);
4406
4406
  }
4407
4407
  return t.results;
4408
4408
  };
4409
4409
  async function Pr(e) {
4410
4410
  try {
4411
- const t = cn(e), n = await na(e);
4412
- return ta(n) ? ra(e, n) : (X.error("Error fetching data. ", {
4411
+ const t = cn(e), n = await ra(e);
4412
+ return na(n) ? oa(e, n) : (J.error("Error fetching data. ", {
4413
4413
  url: t,
4414
4414
  content: n,
4415
4415
  options: e
4416
4416
  }), null);
4417
4417
  } catch (t) {
4418
- return X.error("Error fetching data. ", t), null;
4418
+ return J.error("Error fetching data. ", t), null;
4419
4419
  }
4420
4420
  }
4421
- const Ga = Pr;
4422
- function Xa() {
4421
+ const Xa = Pr;
4422
+ function Ja() {
4423
4423
  return !G() || Jt() ? !1 : location.search.indexOf("builder.preview=") !== -1;
4424
4424
  }
4425
- function oa() {
4425
+ function ia() {
4426
4426
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
4427
4427
  const t = Math.random() * 16 | 0;
4428
4428
  return (e == "x" ? t : t & 3 | 8).toString(16);
4429
4429
  });
4430
4430
  }
4431
4431
  function Nr() {
4432
- return oa().replace(/-/g, "");
4432
+ return ia().replace(/-/g, "");
4433
4433
  }
4434
- const Br = "builderSessionId", ia = async ({
4434
+ const Br = "builderSessionId", aa = async ({
4435
4435
  canTrack: e
4436
4436
  }) => {
4437
4437
  if (!e)
@@ -4443,20 +4443,20 @@ const Br = "builderSessionId", ia = async ({
4443
4443
  if (oe(t))
4444
4444
  return t;
4445
4445
  {
4446
- const n = aa();
4447
- return sa({
4446
+ const n = sa();
4447
+ return la({
4448
4448
  id: n,
4449
4449
  canTrack: e
4450
4450
  }), n;
4451
4451
  }
4452
- }, aa = () => Nr(), sa = ({
4452
+ }, sa = () => Nr(), la = ({
4453
4453
  id: e,
4454
4454
  canTrack: t
4455
4455
  }) => kr({
4456
4456
  name: Br,
4457
4457
  value: e,
4458
4458
  canTrack: t
4459
- }), Ur = () => G() && typeof localStorage < "u" ? localStorage : void 0, la = ({
4459
+ }), Ur = () => G() && typeof localStorage < "u" ? localStorage : void 0, ca = ({
4460
4460
  key: e,
4461
4461
  canTrack: t
4462
4462
  }) => {
@@ -4467,7 +4467,7 @@ const Br = "builderSessionId", ia = async ({
4467
4467
  console.debug("[LocalStorage] GET error: ", r);
4468
4468
  return;
4469
4469
  }
4470
- }, ca = ({
4470
+ }, ua = ({
4471
4471
  key: e,
4472
4472
  canTrack: t,
4473
4473
  value: n
@@ -4478,32 +4478,32 @@ const Br = "builderSessionId", ia = async ({
4478
4478
  } catch (o) {
4479
4479
  console.debug("[LocalStorage] SET error: ", o);
4480
4480
  }
4481
- }, Mr = "builderVisitorId", ua = ({
4481
+ }, Mr = "builderVisitorId", fa = ({
4482
4482
  canTrack: e
4483
4483
  }) => {
4484
4484
  if (!e)
4485
4485
  return;
4486
- const t = la({
4486
+ const t = ca({
4487
4487
  key: Mr,
4488
4488
  canTrack: e
4489
4489
  });
4490
4490
  if (oe(t))
4491
4491
  return t;
4492
4492
  {
4493
- const n = fa();
4494
- return pa({
4493
+ const n = pa();
4494
+ return da({
4495
4495
  id: n,
4496
4496
  canTrack: e
4497
4497
  }), n;
4498
4498
  }
4499
- }, fa = () => Nr(), pa = ({
4499
+ }, pa = () => Nr(), da = ({
4500
4500
  id: e,
4501
4501
  canTrack: t
4502
- }) => ca({
4502
+ }) => ua({
4503
4503
  key: Mr,
4504
4504
  value: e,
4505
4505
  canTrack: t
4506
- }), da = async ({
4506
+ }), ha = async ({
4507
4507
  canTrack: e
4508
4508
  }) => {
4509
4509
  if (!e)
@@ -4511,16 +4511,16 @@ const Br = "builderSessionId", ia = async ({
4511
4511
  visitorId: void 0,
4512
4512
  sessionId: void 0
4513
4513
  };
4514
- const t = await ia({
4514
+ const t = await aa({
4515
4515
  canTrack: e
4516
- }), n = ua({
4516
+ }), n = fa({
4517
4517
  canTrack: e
4518
4518
  });
4519
4519
  return {
4520
4520
  sessionId: t,
4521
4521
  visitorId: n
4522
4522
  };
4523
- }, ha = async ({
4523
+ }, ma = async ({
4524
4524
  type: e,
4525
4525
  canTrack: t,
4526
4526
  apiKey: n,
@@ -4534,23 +4534,23 @@ const Br = "builderSessionId", ia = async ({
4534
4534
  url: location.href,
4535
4535
  ...r
4536
4536
  },
4537
- ...await da({
4537
+ ...await ha({
4538
4538
  canTrack: t
4539
4539
  }),
4540
4540
  userAttributes: lr(),
4541
4541
  ownerId: n
4542
4542
  }
4543
4543
  });
4544
- async function ma(e) {
4544
+ async function ga(e) {
4545
4545
  if (!e.apiKey) {
4546
- X.error("Missing API key for track call. Please provide your API key.");
4546
+ J.error("Missing API key for track call. Please provide your API key.");
4547
4547
  return;
4548
4548
  }
4549
4549
  if (e.canTrack && !Jt() && (G() || he === "reactNative"))
4550
4550
  return fetch("https://cdn.builder.io/api/v1/track", {
4551
4551
  method: "POST",
4552
4552
  body: JSON.stringify({
4553
- events: [await ha(e)]
4553
+ events: [await ma(e)]
4554
4554
  }),
4555
4555
  headers: {
4556
4556
  "content-type": "application/json"
@@ -4560,14 +4560,14 @@ async function ma(e) {
4560
4560
  console.error("Failed to track: ", t);
4561
4561
  });
4562
4562
  }
4563
- const Ja = (e) => ma({
4563
+ const Ya = (e) => ga({
4564
4564
  ...e,
4565
4565
  canTrack: !0
4566
4566
  });
4567
4567
  function tr(e) {
4568
4568
  return Math.round(e * 1e3) / 1e3;
4569
4569
  }
4570
- const ga = (e, t, n = !0) => {
4570
+ const ya = (e, t, n = !0) => {
4571
4571
  if (!(e instanceof HTMLElement))
4572
4572
  return null;
4573
4573
  let r = n ? e : e.parentElement;
@@ -4578,7 +4578,7 @@ const ga = (e, t, n = !0) => {
4578
4578
  return r;
4579
4579
  } while (r = r.parentElement);
4580
4580
  return null;
4581
- }, ya = (e) => ga(e, (t) => {
4581
+ }, va = (e) => ya(e, (t) => {
4582
4582
  const n = t.getAttribute("builder-id") || t.id;
4583
4583
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4584
4584
  }), nr = ({
@@ -4590,8 +4590,8 @@ const ga = (e, t, n = !0) => {
4590
4590
  x: i,
4591
4591
  y: s
4592
4592
  };
4593
- }, Ya = (e) => {
4594
- const t = e.target, n = t && ya(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4593
+ }, za = (e) => {
4594
+ const t = e.target, n = t && va(t), r = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
4595
4595
  return {
4596
4596
  targetBuilderElement: r || void 0,
4597
4597
  metadata: {
@@ -4606,13 +4606,13 @@ const ga = (e, t, n = !0) => {
4606
4606
  builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
4607
4607
  }
4608
4608
  };
4609
- }, va = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
4609
+ }, ba = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
4610
4610
  function Fr(e, t) {
4611
4611
  const n = new URL(t.origin), r = n.hostname;
4612
- return (e || va).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
4612
+ return (e || ba).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
4613
4613
  }
4614
- const ba = "0.13.1", rr = {};
4615
- function Sa(e, t) {
4614
+ const Sa = "0.13.2", rr = {};
4615
+ function wa(e, t) {
4616
4616
  let n = rr[e];
4617
4617
  if (n || (n = rr[e] = []), n.push(t), G()) {
4618
4618
  const r = {
@@ -4629,8 +4629,8 @@ function Sa(e, t) {
4629
4629
  }
4630
4630
  }
4631
4631
  }
4632
- const za = () => {
4633
- Sa("insertMenu", {
4632
+ const qa = () => {
4633
+ wa("insertMenu", {
4634
4634
  name: "_default",
4635
4635
  default: !0,
4636
4636
  items: [{
@@ -4653,13 +4653,13 @@ const za = () => {
4653
4653
  });
4654
4654
  };
4655
4655
  let or = !1;
4656
- const wa = (e = {}) => {
4656
+ const xa = (e = {}) => {
4657
4657
  var t, n;
4658
4658
  or || (or = !0, G() && ((t = window.parent) == null || t.postMessage({
4659
4659
  type: "builder.sdkInfo",
4660
4660
  data: {
4661
4661
  target: he,
4662
- version: ba,
4662
+ version: Sa,
4663
4663
  supportsPatchUpdates: !1,
4664
4664
  // Supports builder-model="..." attribute which is needed to
4665
4665
  // scope our '+ add block' button styling
@@ -4714,7 +4714,7 @@ const wa = (e = {}) => {
4714
4714
  }
4715
4715
  }
4716
4716
  })));
4717
- }, xa = ({
4717
+ }, ka = ({
4718
4718
  model: e,
4719
4719
  trustedHosts: t,
4720
4720
  callbacks: n
@@ -4740,12 +4740,12 @@ const wa = (e = {}) => {
4740
4740
  break;
4741
4741
  }
4742
4742
  }
4743
- }, qa = (e, t, n) => {
4743
+ }, Za = (e, t, n) => {
4744
4744
  if (!G)
4745
- return X.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
4745
+ return J.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
4746
4746
  };
4747
- wa();
4748
- const r = xa({
4747
+ xa();
4748
+ const r = ka({
4749
4749
  callbacks: {
4750
4750
  contentUpdate: t,
4751
4751
  animation: () => {
@@ -4770,38 +4770,38 @@ function ir(e, ...t) {
4770
4770
  }
4771
4771
  return n;
4772
4772
  }
4773
- const ka = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
4774
- function Ca(e) {
4773
+ const Ca = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
4774
+ function Ea(e) {
4775
4775
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
4776
4776
  }
4777
- function Ea(e, t) {
4778
- const n = Ia(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
4777
+ function Ia(e, t) {
4778
+ const n = Ta(e), r = getComputedStyle(t), o = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [o, i];
4779
4779
  for (const u of s)
4780
4780
  for (const d of n)
4781
4781
  d in u || (u[d] = r[d]);
4782
4782
  }
4783
- function Ia(e) {
4783
+ function Ta(e) {
4784
4784
  const t = [];
4785
4785
  for (const n of e.steps)
4786
4786
  for (const r in n.styles)
4787
4787
  t.indexOf(r) === -1 && t.push(r);
4788
4788
  return t;
4789
4789
  }
4790
- function Za(e) {
4790
+ function Qa(e) {
4791
4791
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
4792
4792
  if (!t.length) {
4793
- Ca(e.elementId || e.id || "");
4793
+ Ea(e.elementId || e.id || "");
4794
4794
  return;
4795
4795
  }
4796
4796
  Array.from(t).forEach((n) => {
4797
- Ea(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ir(n.style, e.steps[0].styles), setTimeout(() => {
4798
- n.style.transition = `all ${e.duration}s ${ka(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ir(n.style, e.steps[1].styles), setTimeout(() => {
4797
+ Ia(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ir(n.style, e.steps[0].styles), setTimeout(() => {
4798
+ n.style.transition = `all ${e.duration}s ${Ca(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ir(n.style, e.steps[1].styles), setTimeout(() => {
4799
4799
  n.style.transition = "", n.style.transitionDelay = "";
4800
4800
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
4801
4801
  });
4802
4802
  });
4803
4803
  }
4804
- const Ta = (e) => {
4804
+ const Aa = (e) => {
4805
4805
  var i;
4806
4806
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], r = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
4807
4807
  let o = "";
@@ -4827,22 +4827,22 @@ font-weight: ${s};
4827
4827
  `.trim());
4828
4828
  }
4829
4829
  return o;
4830
- }, Aa = ({
4830
+ }, Oa = ({
4831
4831
  customFonts: e
4832
4832
  }) => {
4833
4833
  var t;
4834
- return ((t = e == null ? void 0 : e.map((n) => Ta(n))) == null ? void 0 : t.join(" ")) || "";
4835
- }, Oa = ({
4834
+ return ((t = e == null ? void 0 : e.map((n) => Aa(n))) == null ? void 0 : t.join(" ")) || "";
4835
+ }, ja = ({
4836
4836
  cssCode: e,
4837
4837
  contentId: t
4838
4838
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
4839
- function ja(e) {
4839
+ function Ra(e) {
4840
4840
  const t = `
4841
- ${Oa({
4841
+ ${ja({
4842
4842
  cssCode: e.cssCode,
4843
4843
  contentId: e.contentId
4844
4844
  })}
4845
- ${Aa({
4845
+ ${Oa({
4846
4846
  customFonts: e.customFonts
4847
4847
  })}
4848
4848
 
@@ -4865,7 +4865,7 @@ ${Aa({
4865
4865
  `.trim();
4866
4866
  return /* @__PURE__ */ C(dt, { styles: t });
4867
4867
  }
4868
- const Ra = ({
4868
+ const Pa = ({
4869
4869
  content: e,
4870
4870
  data: t,
4871
4871
  locale: n
@@ -4882,7 +4882,7 @@ const Ra = ({
4882
4882
  locale: n
4883
4883
  } : {}
4884
4884
  };
4885
- }, Pa = ({
4885
+ }, Na = ({
4886
4886
  content: e,
4887
4887
  data: t
4888
4888
  }) => e ? {
@@ -4895,7 +4895,7 @@ const Ra = ({
4895
4895
  } : void 0;
4896
4896
  function ar(e) {
4897
4897
  var o, i, s, u, d, k, E, S, P;
4898
- const t = Hi({
4898
+ const t = Ki({
4899
4899
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4900
4900
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
4901
4901
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4919,12 +4919,12 @@ function ar(e) {
4919
4919
  }),
4920
4920
  {}
4921
4921
  ), r = {
4922
- content: Pa({
4922
+ content: Na({
4923
4923
  content: e.content,
4924
4924
  data: e.data
4925
4925
  }),
4926
4926
  localState: void 0,
4927
- rootState: Ra({
4927
+ rootState: Pa({
4928
4928
  content: e.content,
4929
4929
  data: e.data,
4930
4930
  locale: e.locale
@@ -4974,7 +4974,7 @@ function ar(e) {
4974
4974
  children: [
4975
4975
  e.isSsrAbTest ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: t }) }) : null,
4976
4976
  /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(
4977
- ja,
4977
+ Ra,
4978
4978
  {
4979
4979
  contentId: (s = r.content) == null ? void 0 : s.id,
4980
4980
  cssCode: (d = (u = r.content) == null ? void 0 : u.data) == null ? void 0 : d.cssCode,
@@ -4996,12 +4996,12 @@ function ar(e) {
4996
4996
  }
4997
4997
  function Dr(e) {
4998
4998
  var i, s;
4999
- const t = _i({
4999
+ const t = Li({
5000
5000
  canTrack: Ht(e.canTrack),
5001
5001
  content: e.content
5002
5002
  }), n = function() {
5003
5003
  var d;
5004
- return $i(
5004
+ return Hi(
5005
5005
  st(e.content).map((k) => ({
5006
5006
  id: k.testVariationId,
5007
5007
  testRatio: k.testRatio
@@ -5021,7 +5021,7 @@ function Dr(e) {
5021
5021
  });
5022
5022
  };
5023
5023
  return /* @__PURE__ */ xe(L, { children: [
5024
- !e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: Wi() }) }) : null,
5024
+ !e.__isNestedRender && he !== "reactNative" ? /* @__PURE__ */ C(L, { children: /* @__PURE__ */ C(Gt, { scriptStr: $i() }) }) : null,
5025
5025
  t ? /* @__PURE__ */ xe(L, { children: [
5026
5026
  /* @__PURE__ */ C(
5027
5027
  dt,
@@ -5083,7 +5083,7 @@ function Dr(e) {
5083
5083
  )
5084
5084
  ] });
5085
5085
  }
5086
- const Na = async ({
5086
+ const Ba = async ({
5087
5087
  builderContextValue: e,
5088
5088
  symbol: t
5089
5089
  }) => {
@@ -5099,10 +5099,10 @@ const Na = async ({
5099
5099
  }
5100
5100
  }
5101
5101
  }).catch((n) => {
5102
- X.error("Could not fetch symbol content: ", n);
5102
+ J.error("Could not fetch symbol content: ", n);
5103
5103
  });
5104
5104
  };
5105
- async function Ba(e) {
5105
+ async function Ua(e) {
5106
5106
  var r, o, i, s, u;
5107
5107
  const t = function() {
5108
5108
  var k, E;
@@ -5112,7 +5112,7 @@ async function Ba(e) {
5112
5112
  (k = e.symbol) != null && k.inline ? "builder-inline-symbol" : void 0,
5113
5113
  (E = e.symbol) != null && E.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
5114
5114
  ].filter(Boolean).join(" ");
5115
- }, n = ((r = e.symbol) == null ? void 0 : r.content) || await Na({
5115
+ }, n = ((r = e.symbol) == null ? void 0 : r.content) || await Ba({
5116
5116
  symbol: e.symbol,
5117
5117
  builderContextValue: e.builderContext
5118
5118
  });
@@ -5138,8 +5138,8 @@ async function Ba(e) {
5138
5138
  }
5139
5139
  ) });
5140
5140
  }
5141
- const Qa = mt, es = Dr, sr = {};
5142
- function ts(e) {
5141
+ const es = mt, ts = Dr, sr = {};
5142
+ function ns(e) {
5143
5143
  if (G()) {
5144
5144
  Object.assign(sr, e);
5145
5145
  const t = {
@@ -5149,7 +5149,7 @@ function ts(e) {
5149
5149
  parent.postMessage(t, "*");
5150
5150
  }
5151
5151
  }
5152
- const ns = async (e) => {
5152
+ const rs = async (e) => {
5153
5153
  var r, o, i;
5154
5154
  const t = e.path || ((r = e.url) == null ? void 0 : r.pathname) || ((o = e.userAttributes) == null ? void 0 : o.urlPath), n = {
5155
5155
  ...e,
@@ -5173,41 +5173,41 @@ export {
5173
5173
  jr as A,
5174
5174
  mt as B,
5175
5175
  Dr as C,
5176
- Ja as D,
5177
- qa as E,
5178
- ns as F,
5179
- ra as G,
5176
+ Ya as D,
5177
+ Za as E,
5178
+ rs as F,
5179
+ oa as G,
5180
5180
  Pr as H,
5181
- Ga as I,
5182
- Ka as J,
5183
- Qa as R,
5184
- Ba as S,
5185
- Bi as T,
5186
- ma as _,
5181
+ Xa as I,
5182
+ Ga as J,
5183
+ es as R,
5184
+ Ua as S,
5185
+ ji as T,
5186
+ ga as _,
5187
5187
  oi as a,
5188
- La as b,
5188
+ Wa as b,
5189
5189
  Jt as c,
5190
- Wa as d,
5191
- $a as e,
5190
+ $a as d,
5191
+ Ha as e,
5192
5192
  G as f,
5193
5193
  Xt as g,
5194
5194
  Ht as h,
5195
- _a as i,
5196
- Xa as j,
5197
- xa as k,
5198
- X as l,
5195
+ La as i,
5196
+ Ja as j,
5197
+ ka as k,
5198
+ J as l,
5199
5199
  sn as m,
5200
- Ya as n,
5200
+ za as n,
5201
5201
  pt as o,
5202
- Ha as p,
5202
+ Ka as p,
5203
5203
  un as q,
5204
- za as r,
5205
- wa as s,
5206
- Za as t,
5207
- zi as u,
5208
- Gi as v,
5209
- es as w,
5204
+ qa as r,
5205
+ xa as s,
5206
+ Qa as t,
5207
+ qi as u,
5208
+ Xi as v,
5209
+ ts as w,
5210
5210
  si as x,
5211
- Sa as y,
5212
- ts as z
5211
+ wa as y,
5212
+ ns as z
5213
5213
  };