@builder.io/sdk-react-nextjs 0.12.5 → 0.12.6

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 (29) hide show
  1. package/lib/{node/USE_CLIENT_BUNDLE-4ba4594d.js → browser/USE_CLIENT_BUNDLE-4d4e23b4.js} +3 -6
  2. package/lib/browser/{USE_CLIENT_BUNDLE-70be4cc5.cjs → USE_CLIENT_BUNDLE-e5d64246.cjs} +2 -2
  3. package/lib/{edge/USE_SERVER_BUNDLE-36de460d.js → browser/USE_SERVER_BUNDLE-2bf0dc28.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-50c2f18b.cjs → browser/USE_SERVER_BUNDLE-ccca985e.cjs} +1 -1
  5. package/lib/browser/{bundle-bd9886c9.cjs → bundle-6e21e129.cjs} +15 -15
  6. package/lib/browser/{bundle-f9f52242.js → bundle-b3104268.js} +118 -101
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +3 -3
  9. package/lib/{browser/USE_CLIENT_BUNDLE-7492ecd8.js → edge/USE_CLIENT_BUNDLE-41ee32e4.js} +3 -6
  10. package/lib/{node/USE_CLIENT_BUNDLE-2f43c320.cjs → edge/USE_CLIENT_BUNDLE-cc55e91d.cjs} +2 -2
  11. package/lib/{node/USE_SERVER_BUNDLE-473d50ad.cjs → edge/USE_SERVER_BUNDLE-19879780.cjs} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-2534ef71.js → edge/USE_SERVER_BUNDLE-fda604b6.js} +1 -1
  13. package/lib/edge/{bundle-765860e3.js → bundle-ee1ebe27.js} +501 -484
  14. package/lib/edge/{bundle-71cfdd3e.cjs → bundle-f2d4a6db.cjs} +26 -26
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +3 -3
  17. package/lib/{edge/USE_CLIENT_BUNDLE-1148158d.cjs → node/USE_CLIENT_BUNDLE-343cb348.cjs} +2 -2
  18. package/lib/{edge/USE_CLIENT_BUNDLE-cb840c0f.js → node/USE_CLIENT_BUNDLE-aa8ab44a.js} +3 -6
  19. package/lib/{browser/USE_SERVER_BUNDLE-fe386ed3.js → node/USE_SERVER_BUNDLE-2fdc522e.js} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-875d4629.cjs → node/USE_SERVER_BUNDLE-cbcb1baf.cjs} +1 -1
  21. package/lib/node/{bundle-305bb463.js → bundle-99e5b33f.js} +25 -8
  22. package/lib/node/{bundle-1c54df65.cjs → bundle-c799b7fc.cjs} +2 -2
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/package.json +1 -1
  26. package/types/cjs/constants/sdk-version.d.ts +1 -1
  27. package/types/cjs/functions/evaluate/browser-runtime/browser.d.ts +5 -1
  28. package/types/esm/constants/sdk-version.d.ts +1 -1
  29. package/types/esm/functions/evaluate/browser-runtime/browser.d.ts +5 -1
@@ -1,9 +1,9 @@
1
- import { LRUCache as Ae } from "lru-cache";
1
+ import { LRUCache as Ve } from "lru-cache";
2
2
  import { jsx as l, Fragment as k, jsxs as R } from "react/jsx-runtime";
3
- import { I as Ve, B as Be, a as We, D as $e, b as Oe, C as Ne, E as Fe, F as Le, c as _e, d as Ue, S as De, V as Me, e as je } from "./USE_CLIENT_BUNDLE-7492ecd8.js";
3
+ import { I as Be, B as We, a as $e, D as Oe, b as Ne, C as Fe, E as Le, F as _e, c as Ue, d as De, S as Me, V as je, e as He } from "./USE_CLIENT_BUNDLE-4d4e23b4.js";
4
4
  import "react";
5
5
  import "next/navigation";
6
- const He = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Gn = (e) => typeof e == "string" && He.has(e.toLowerCase()), I = "rsc", M = () => {
6
+ const Ke = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Gn = (e) => typeof e == "string" && Ke.has(e.toLowerCase()), I = "rsc", M = () => {
7
7
  switch (I) {
8
8
  case "react":
9
9
  case "reactNative":
@@ -16,7 +16,7 @@ const He = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
16
16
  return "class";
17
17
  }
18
18
  };
19
- function Ke(e) {
19
+ function ze(e) {
20
20
  var t;
21
21
  return {
22
22
  ...(t = e.component) == null ? void 0 : t.options,
@@ -36,20 +36,20 @@ const A = "[Builder.io]: ", x = {
36
36
  function S() {
37
37
  return typeof window < "u" && typeof document < "u";
38
38
  }
39
- function ze() {
39
+ function qe() {
40
40
  return S() && window.self !== window.top;
41
41
  }
42
42
  function j() {
43
- return ze() && window.location.search.indexOf("builder.frameEditing=") !== -1;
43
+ return qe() && window.location.search.indexOf("builder.frameEditing=") !== -1;
44
44
  }
45
- const qe = () => {
45
+ const Ge = () => {
46
46
  if (S()) {
47
47
  const e = new URL(location.href);
48
48
  return e.pathname === "" && (e.pathname = "/"), e;
49
49
  } else
50
50
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
51
- }, Ge = () => typeof navigator == "object" && navigator.userAgent || "", ce = () => {
52
- const e = Ge(), t = {
51
+ }, Ye = () => typeof navigator == "object" && navigator.userAgent || "", ce = () => {
52
+ const e = Ye(), t = {
53
53
  Android() {
54
54
  return e.match(/Android/i);
55
55
  },
@@ -68,13 +68,13 @@ const qe = () => {
68
68
  any() {
69
69
  return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || I === "reactNative";
70
70
  }
71
- }, n = e.match(/Tablet|iPad/i), o = qe();
71
+ }, n = e.match(/Tablet|iPad/i), o = Ge();
72
72
  return {
73
73
  urlPath: o == null ? void 0 : o.pathname,
74
74
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
75
75
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
76
76
  };
77
- }, Ye = ({
77
+ }, Je = ({
78
78
  builder: e,
79
79
  context: t,
80
80
  event: n,
@@ -86,12 +86,12 @@ const qe = () => {
86
86
  builder: e,
87
87
  context: t,
88
88
  event: n
89
- }), Je = () => ({
89
+ }), Qe = () => ({
90
90
  isEditing: j(),
91
91
  isBrowser: S(),
92
92
  isServer: !S(),
93
93
  getUserAttributes: () => ce()
94
- }), Qe = (e, {
94
+ }), Xe = (e, {
95
95
  isExpression: t = !0
96
96
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, G = ({
97
97
  code: e,
@@ -102,23 +102,40 @@ const qe = () => {
102
102
  rootSetState: a,
103
103
  rootState: r
104
104
  }) => {
105
- const s = Ye({
105
+ const s = Je({
106
106
  builder: t,
107
107
  context: n,
108
108
  event: o,
109
- state: Xe(r, i, a)
109
+ state: le({
110
+ rootState: r,
111
+ localState: i,
112
+ rootSetState: a
113
+ })
110
114
  });
111
115
  return new Function(...s.map(([c]) => c), e)(...s.map(([, c]) => c));
112
116
  };
113
- function Xe(e, t, n) {
114
- if (e === t)
115
- throw new Error("rootState === localState");
117
+ function le({
118
+ rootState: e,
119
+ localState: t,
120
+ rootSetState: n
121
+ }) {
116
122
  return new Proxy(e, {
117
- get: (o, i) => t && i in t ? t[i] : e[i],
123
+ get: (o, i) => {
124
+ if (t && i in t)
125
+ return t[i];
126
+ const a = o[i];
127
+ return typeof a == "object" ? le({
128
+ rootState: a,
129
+ localState: void 0,
130
+ rootSetState: n ? (r) => {
131
+ o[i] = r, n(o);
132
+ } : void 0
133
+ }) : a;
134
+ },
118
135
  set: (o, i, a) => {
119
136
  if (t && i in t)
120
137
  throw new Error("Writing to local state is not allowed as it is read-only.");
121
- return e[i] = a, n == null || n(e), !0;
138
+ return o[i] = a, n == null || n(o), !0;
122
139
  }
123
140
  });
124
141
  }
@@ -148,10 +165,10 @@ function H({
148
165
  return;
149
166
  }
150
167
  const s = {
151
- code: Qe(e, {
168
+ code: Xe(e, {
152
169
  isExpression: r
153
170
  }),
154
- builder: Je(),
171
+ builder: Qe(),
155
172
  context: t,
156
173
  event: a,
157
174
  rootSetState: i,
@@ -275,7 +292,7 @@ const it = ({
275
292
  },
276
293
  block: o
277
294
  }));
278
- }, le = {
295
+ }, de = {
279
296
  small: {
280
297
  min: 320,
281
298
  default: 321,
@@ -291,11 +308,11 @@ const it = ({
291
308
  default: 991,
292
309
  max: 1200
293
310
  }
294
- }, Y = (e, t = le) => `@media (max-width: ${t[e].max}px)`, de = ({
311
+ }, Y = (e, t = de) => `@media (max-width: ${t[e].max}px)`, ue = ({
295
312
  small: e,
296
313
  medium: t
297
314
  }) => {
298
- const n = $(le);
315
+ const n = $(de);
299
316
  if (!e || !t)
300
317
  return n;
301
318
  const o = Math.floor(e / 2);
@@ -317,10 +334,10 @@ const it = ({
317
334
  min: a,
318
335
  default: a + 1
319
336
  }, n;
320
- }, rt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), ue = (e) => Object.entries(e).map(([n, o]) => {
337
+ }, rt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), me = (e) => Object.entries(e).map(([n, o]) => {
321
338
  if (typeof o == "string")
322
339
  return `${rt(n)}: ${o};`;
323
- }).filter(C), st = (e) => ue(e).join(`
340
+ }).filter(C), st = (e) => me(e).join(`
324
341
  `), L = ({
325
342
  mediaQuery: e,
326
343
  className: t,
@@ -356,7 +373,7 @@ function ct(e) {
356
373
  rootSetState: e.context.rootSetState,
357
374
  context: e.context.context,
358
375
  shouldEvaluateBindings: !0
359
- }), a = i.responsiveStyles, r = e.context.content, s = de(
376
+ }), a = i.responsiveStyles, r = e.context.content, s = ue(
360
377
  ((d = r == null ? void 0 : r.meta) == null ? void 0 : d.breakpoints) || {}
361
378
  ), c = a == null ? void 0 : a.large, m = a == null ? void 0 : a.medium, g = a == null ? void 0 : a.small, p = i.id;
362
379
  if (!p)
@@ -423,17 +440,17 @@ function mt({
423
440
  const ft = ({
424
441
  block: e,
425
442
  context: t
426
- }) => me(mt({
443
+ }) => fe(mt({
427
444
  style: e.style || {},
428
445
  context: t,
429
446
  block: e
430
447
  }));
431
- function me(e) {
448
+ function fe(e) {
432
449
  switch (I) {
433
450
  case "svelte":
434
451
  case "vue":
435
452
  case "solid":
436
- return ue(e).join(" ");
453
+ return me(e).join(" ");
437
454
  case "qwik":
438
455
  case "reactNative":
439
456
  case "react":
@@ -502,7 +519,7 @@ const bt = ({
502
519
  };
503
520
  function J(e) {
504
521
  var n;
505
- const t = e.isInteractive ? Ve : e.componentRef;
522
+ const t = e.isInteractive ? Be : e.componentRef;
506
523
  return /* @__PURE__ */ l(k, { children: e.componentRef ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(
507
524
  t,
508
525
  {
@@ -582,7 +599,7 @@ function N(e) {
582
599
  blockChildren: o().children ?? [],
583
600
  componentRef: (h = t()) == null ? void 0 : h.component,
584
601
  componentOptions: {
585
- ...Ke(o()),
602
+ ...ze(o()),
586
603
  builderContext: e.context,
587
604
  ...((u = t()) == null ? void 0 : u.name) === "Core:Button" || ((d = t()) == null ? void 0 : d.name) === "Symbol" || ((y = t()) == null ? void 0 : y.name) === "Columns" ? {
588
605
  builderLinkComponent: e.linkComponent
@@ -624,7 +641,7 @@ function N(e) {
624
641
  },
625
642
  h
626
643
  )) }) : /* @__PURE__ */ l(k, { children: /* @__PURE__ */ R(
627
- Be,
644
+ We,
628
645
  {
629
646
  Wrapper: i(),
630
647
  block: o(),
@@ -663,7 +680,7 @@ function N(e) {
663
680
  function F(e) {
664
681
  var t, n, o;
665
682
  return /* @__PURE__ */ l(
666
- We,
683
+ $e,
667
684
  {
668
685
  blocks: e.blocks,
669
686
  parent: e.parent,
@@ -739,7 +756,7 @@ function kt(e) {
739
756
  };
740
757
  }, p = function(d) {
741
758
  var v, b;
742
- return de(
759
+ return ue(
743
760
  ((b = (v = e.builderContext.content) == null ? void 0 : v.meta) == null ? void 0 : b.breakpoints) || {}
744
761
  )[d].max;
745
762
  }, f = function() {
@@ -778,7 +795,7 @@ function kt(e) {
778
795
  children: [
779
796
  /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(O, { styles: f() }) }),
780
797
  (h = e.columns) == null ? void 0 : h.map((u, d) => /* @__PURE__ */ l(
781
- $e,
798
+ Oe,
782
799
  {
783
800
  TagName: u.link ? e.builderLinkComponent || "a" : "div",
784
801
  actionAttributes: {},
@@ -787,7 +804,7 @@ function kt(e) {
787
804
  href: u.link
788
805
  } : {},
789
806
  [M()]: "builder-column",
790
- style: me(g(d))
807
+ style: fe(g(d))
791
808
  },
792
809
  children: /* @__PURE__ */ l(
793
810
  F,
@@ -850,7 +867,7 @@ const xt = (e) => {
850
867
  return e;
851
868
  const t = e.split(".");
852
869
  return t.length > 2 ? t.slice(1).join(".") : e;
853
- }, fe = ({
870
+ }, he = ({
854
871
  name: e,
855
872
  canTrack: t
856
873
  }) => {
@@ -861,14 +878,14 @@ const xt = (e) => {
861
878
  x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
862
879
  return;
863
880
  }
864
- }, he = async (e) => fe(e), Ct = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(C).join("; "), wt = [["secure", ""], ["SameSite", "None"]], It = ({
881
+ }, pe = async (e) => he(e), Ct = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(C).join("; "), wt = [["secure", ""], ["SameSite", "None"]], It = ({
865
882
  name: e,
866
883
  value: t,
867
884
  expires: n
868
885
  }) => {
869
886
  const i = (S() ? location.protocol === "https:" : !0) ? wt : [[]], a = n ? [["expires", n.toUTCString()]] : [[]], r = [[e, t], ...a, ["path", "/"], ["domain", xt(window.location.hostname)], ...i];
870
887
  return Ct(r);
871
- }, pe = async ({
888
+ }, ge = async ({
872
889
  name: e,
873
890
  value: t,
874
891
  expires: n,
@@ -888,22 +905,22 @@ const xt = (e) => {
888
905
  }
889
906
  }, Tt = "builder.tests", K = (e) => `${Tt}.${e}`, Et = ({
890
907
  contentId: e
891
- }) => he({
908
+ }) => pe({
892
909
  name: K(e),
893
910
  canTrack: !0
894
911
  }), Rt = ({
895
912
  contentId: e
896
- }) => fe({
913
+ }) => he({
897
914
  name: K(e),
898
915
  canTrack: !0
899
916
  }), Pt = ({
900
917
  contentId: e,
901
918
  value: t
902
- }) => pe({
919
+ }) => ge({
903
920
  name: K(e),
904
921
  value: t,
905
922
  canTrack: !0
906
- }), ge = (e) => C(e.id) && C(e.variations) && Object.keys(e.variations).length > 0, At = ({
923
+ }), be = (e) => C(e.id) && C(e.variations) && Object.keys(e.variations).length > 0, At = ({
907
924
  id: e,
908
925
  variations: t
909
926
  }) => {
@@ -916,7 +933,7 @@ const xt = (e) => {
916
933
  return a;
917
934
  }
918
935
  return e;
919
- }, be = (e) => {
936
+ }, ye = (e) => {
920
937
  const t = At(e);
921
938
  return Pt({
922
939
  contentId: e.id,
@@ -924,7 +941,7 @@ const xt = (e) => {
924
941
  }).catch((n) => {
925
942
  x.error("could not store A/B test variation: ", n);
926
943
  }), t;
927
- }, ye = ({
944
+ }, ke = ({
928
945
  item: e,
929
946
  testGroupId: t
930
947
  }) => {
@@ -946,14 +963,14 @@ const xt = (e) => {
946
963
  return e;
947
964
  if (!e)
948
965
  return;
949
- if (!ge(e))
966
+ if (!be(e))
950
967
  return e;
951
968
  const n = Rt({
952
969
  contentId: e.id
953
- }) || be({
970
+ }) || ye({
954
971
  variations: e.variations,
955
972
  id: e.id
956
- }), o = ye({
973
+ }), o = ke({
957
974
  item: e,
958
975
  testGroupId: n
959
976
  });
@@ -965,14 +982,14 @@ const xt = (e) => {
965
982
  item: e,
966
983
  canTrack: t
967
984
  }) => {
968
- if (!t || !ge(e))
985
+ if (!t || !be(e))
969
986
  return e;
970
987
  const o = await Et({
971
988
  contentId: e.id
972
- }) || be({
989
+ }) || ye({
973
990
  variations: e.variations,
974
991
  id: e.id
975
- }), i = ye({
992
+ }), i = ke({
976
993
  item: e,
977
994
  testGroupId: o
978
995
  });
@@ -1604,28 +1621,28 @@ const qt = {
1604
1621
  advanced: !0
1605
1622
  }]
1606
1623
  }, X = () => [{
1607
- component: Oe,
1624
+ component: Ne,
1608
1625
  ...Wt
1609
1626
  }, {
1610
1627
  component: kt,
1611
1628
  ...$t
1612
1629
  }, {
1613
- component: Ne,
1630
+ component: Fe,
1614
1631
  ...Ot
1615
1632
  }, {
1616
- component: Fe,
1633
+ component: Le,
1617
1634
  ...Nt
1618
1635
  }, {
1619
- component: Le,
1636
+ component: _e,
1620
1637
  ...Lt
1621
1638
  }, {
1622
- component: _e,
1639
+ component: Ue,
1623
1640
  ..._t
1624
1641
  }, {
1625
- component: Ue,
1642
+ component: De,
1626
1643
  ...Ut
1627
1644
  }, {
1628
- component: De,
1645
+ component: Me,
1629
1646
  ...Dt
1630
1647
  }, {
1631
1648
  component: Mn,
@@ -1634,7 +1651,7 @@ const qt = {
1634
1651
  component: zt,
1635
1652
  ...Kt
1636
1653
  }, {
1637
- component: Me,
1654
+ component: je,
1638
1655
  ...qt
1639
1656
  }, {
1640
1657
  component: jt,
@@ -1744,24 +1761,24 @@ const qt = {
1744
1761
  thisScriptEl?.remove();
1745
1762
  }
1746
1763
  return;
1747
- }`, ke = "builderIoAbTest", Se = "builderIoRenderContent", V = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1764
+ }`, Se = "builderIoAbTest", ve = "builderIoRenderContent", V = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1748
1765
  ...t,
1749
1766
  testVariationId: t.id,
1750
1767
  id: e == null ? void 0 : e.id
1751
1768
  })), Xt = ({
1752
1769
  canTrack: e,
1753
1770
  content: t
1754
- }) => !(!(V(t).length > 0) || !e || S()), Zt = (e) => e === "react" || e === "reactNative", ve = Zt(I), en = () => `
1755
- window.${ke} = ${Jt}
1756
- window.${Se} = ${Qt}
1771
+ }) => !(!(V(t).length > 0) || !e || S()), Zt = (e) => e === "react" || e === "reactNative", xe = Zt(I), en = () => `
1772
+ window.${Se} = ${Jt}
1773
+ window.${ve} = ${Qt}
1757
1774
  `, tn = (e, t) => `
1758
- window.${ke}(
1759
- "${t}",${JSON.stringify(e)}, ${ve}
1775
+ window.${Se}(
1776
+ "${t}",${JSON.stringify(e)}, ${xe}
1760
1777
  )`, nn = ({
1761
1778
  contentId: e,
1762
1779
  variationId: t
1763
- }) => `window.${Se}(
1764
- "${t}", "${e}", ${ve}
1780
+ }) => `window.${ve}(
1781
+ "${t}", "${e}", ${xe}
1765
1782
  )`;
1766
1783
  function D(e) {
1767
1784
  return /* @__PURE__ */ l(
@@ -1777,7 +1794,7 @@ const on = (e) => {
1777
1794
  return n || x.warn("No previewed ID found in search params."), n;
1778
1795
  };
1779
1796
  function an() {
1780
- globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Ae({
1797
+ globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new Ve({
1781
1798
  max: 500,
1782
1799
  // how long to live in ms
1783
1800
  ttl: 1e3 * 60 * 5
@@ -1816,10 +1833,10 @@ const dn = "v3", ee = "builder.", un = "options.", mn = (e) => {
1816
1833
  return e.forEach((n, o) => {
1817
1834
  t[o] = n;
1818
1835
  }), t;
1819
- }, xe = (e) => {
1836
+ }, Ce = (e) => {
1820
1837
  if (!e)
1821
1838
  return {};
1822
- const t = Ce(e), n = {};
1839
+ const t = we(e), n = {};
1823
1840
  return Object.keys(t).forEach((o) => {
1824
1841
  if (o.startsWith(ee)) {
1825
1842
  const i = o.replace(ee, "").replace(un, "");
@@ -1830,8 +1847,8 @@ const dn = "v3", ee = "builder.", un = "options.", mn = (e) => {
1830
1847
  if (!S())
1831
1848
  return {};
1832
1849
  const e = new URLSearchParams(window.location.search);
1833
- return xe(e);
1834
- }, Ce = (e) => e instanceof URLSearchParams ? mn(e) : e, te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, z = (e) => {
1850
+ return Ce(e);
1851
+ }, we = (e) => e instanceof URLSearchParams ? mn(e) : e, te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, z = (e) => {
1835
1852
  let {
1836
1853
  noTraverse: t = !1
1837
1854
  } = e;
@@ -1868,7 +1885,7 @@ const dn = "v3", ee = "builder.", un = "options.", mn = (e) => {
1868
1885
  }
1869
1886
  const E = {
1870
1887
  ...fn(),
1871
- ...Ce(e.options || {})
1888
+ ...we(e.options || {})
1872
1889
  }, T = B(E);
1873
1890
  for (const w in T)
1874
1891
  b.searchParams.set(w, String(T[w]));
@@ -1882,7 +1899,7 @@ const dn = "v3", ee = "builder.", un = "options.", mn = (e) => {
1882
1899
  return b;
1883
1900
  }, hn = (e) => "results" in e;
1884
1901
  async function q(e) {
1885
- const t = await we({
1902
+ const t = await Ie({
1886
1903
  ...e,
1887
1904
  limit: 1
1888
1905
  });
@@ -1916,7 +1933,7 @@ const Zn = q, pn = async (e) => {
1916
1933
  }
1917
1934
  return t.results;
1918
1935
  };
1919
- async function we(e) {
1936
+ async function Ie(e) {
1920
1937
  try {
1921
1938
  const t = z(e), n = await pn(e);
1922
1939
  return hn(n) ? gn(e, n) : (x.error("Error fetching data. ", {
@@ -1928,7 +1945,7 @@ async function we(e) {
1928
1945
  return x.error("Error fetching data. ", t), null;
1929
1946
  }
1930
1947
  }
1931
- const eo = we, bn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
1948
+ const eo = Ie, bn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
1932
1949
  function yn(e, t) {
1933
1950
  const n = new URL(t.origin), o = n.hostname;
1934
1951
  return (e || bn).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
@@ -1942,16 +1959,16 @@ function kn() {
1942
1959
  return (e == "x" ? t : t & 3 | 8).toString(16);
1943
1960
  });
1944
1961
  }
1945
- function Ie() {
1962
+ function Te() {
1946
1963
  return kn().replace(/-/g, "");
1947
1964
  }
1948
- const Te = "builderSessionId", Sn = async ({
1965
+ const Ee = "builderSessionId", Sn = async ({
1949
1966
  canTrack: e
1950
1967
  }) => {
1951
1968
  if (!e)
1952
1969
  return;
1953
- const t = await he({
1954
- name: Te,
1970
+ const t = await pe({
1971
+ name: Ee,
1955
1972
  canTrack: e
1956
1973
  });
1957
1974
  if (C(t))
@@ -1963,20 +1980,20 @@ const Te = "builderSessionId", Sn = async ({
1963
1980
  canTrack: e
1964
1981
  }), n;
1965
1982
  }
1966
- }, vn = () => Ie(), xn = ({
1983
+ }, vn = () => Te(), xn = ({
1967
1984
  id: e,
1968
1985
  canTrack: t
1969
- }) => pe({
1970
- name: Te,
1986
+ }) => ge({
1987
+ name: Ee,
1971
1988
  value: e,
1972
1989
  canTrack: t
1973
- }), Ee = () => S() && typeof localStorage < "u" ? localStorage : void 0, Cn = ({
1990
+ }), Re = () => S() && typeof localStorage < "u" ? localStorage : void 0, Cn = ({
1974
1991
  key: e,
1975
1992
  canTrack: t
1976
1993
  }) => {
1977
1994
  var n;
1978
1995
  try {
1979
- return t ? (n = Ee()) == null ? void 0 : n.getItem(e) : void 0;
1996
+ return t ? (n = Re()) == null ? void 0 : n.getItem(e) : void 0;
1980
1997
  } catch (o) {
1981
1998
  console.debug("[LocalStorage] GET error: ", o);
1982
1999
  return;
@@ -1988,17 +2005,17 @@ const Te = "builderSessionId", Sn = async ({
1988
2005
  }) => {
1989
2006
  var o;
1990
2007
  try {
1991
- t && ((o = Ee()) == null || o.setItem(e, n));
2008
+ t && ((o = Re()) == null || o.setItem(e, n));
1992
2009
  } catch (i) {
1993
2010
  console.debug("[LocalStorage] SET error: ", i);
1994
2011
  }
1995
- }, Re = "builderVisitorId", In = ({
2012
+ }, Pe = "builderVisitorId", In = ({
1996
2013
  canTrack: e
1997
2014
  }) => {
1998
2015
  if (!e)
1999
2016
  return;
2000
2017
  const t = Cn({
2001
- key: Re,
2018
+ key: Pe,
2002
2019
  canTrack: e
2003
2020
  });
2004
2021
  if (C(t))
@@ -2010,11 +2027,11 @@ const Te = "builderSessionId", Sn = async ({
2010
2027
  canTrack: e
2011
2028
  }), n;
2012
2029
  }
2013
- }, Tn = () => Ie(), En = ({
2030
+ }, Tn = () => Te(), En = ({
2014
2031
  id: e,
2015
2032
  canTrack: t
2016
2033
  }) => wn({
2017
- key: Re,
2034
+ key: Pe,
2018
2035
  value: e,
2019
2036
  canTrack: t
2020
2037
  }), Rn = async ({
@@ -2120,7 +2137,7 @@ const Vn = (e, t, n = !0) => {
2120
2137
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2121
2138
  }
2122
2139
  };
2123
- }, Wn = "0.12.5", ie = {};
2140
+ }, Wn = "0.12.6", ie = {};
2124
2141
  function $n(e, t) {
2125
2142
  let n = ie[e];
2126
2143
  if (n || (n = ie[e] = []), n.push(t), S()) {
@@ -2376,7 +2393,7 @@ function re(e) {
2376
2393
  BlocksWrapperProps: e.blocksWrapperProps || {}
2377
2394
  };
2378
2395
  return /* @__PURE__ */ R(
2379
- je,
2396
+ He,
2380
2397
  {
2381
2398
  content: e.content,
2382
2399
  data: e.data,
@@ -2416,7 +2433,7 @@ function re(e) {
2416
2433
  }
2417
2434
  );
2418
2435
  }
2419
- function Pe(e) {
2436
+ function Ae(e) {
2420
2437
  var a, r;
2421
2438
  const t = Xt({
2422
2439
  canTrack: _(e.canTrack),
@@ -2539,7 +2556,7 @@ async function Mn(e) {
2539
2556
  builderContextValue: e.builderContext
2540
2557
  });
2541
2558
  return /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
2542
- Pe,
2559
+ Ae,
2543
2560
  {
2544
2561
  __isNestedRender: !0,
2545
2562
  apiVersion: e.builderContext.apiVersion,
@@ -2560,7 +2577,7 @@ async function Mn(e) {
2560
2577
  }
2561
2578
  ) });
2562
2579
  }
2563
- const ro = F, so = Pe, se = {};
2580
+ const ro = F, so = Ae, se = {};
2564
2581
  function co(e) {
2565
2582
  if (S()) {
2566
2583
  Object.assign(se, e);
@@ -2583,7 +2600,7 @@ const lo = async (e) => {
2583
2600
  urlPath: t
2584
2601
  } : {}
2585
2602
  },
2586
- options: xe(e.searchParams || ((a = e.url) == null ? void 0 : a.searchParams) || e.options)
2603
+ options: Ce(e.searchParams || ((a = e.url) == null ? void 0 : a.searchParams) || e.options)
2587
2604
  };
2588
2605
  return {
2589
2606
  apiKey: n.apiKey,
@@ -2592,12 +2609,12 @@ const lo = async (e) => {
2592
2609
  };
2593
2610
  };
2594
2611
  export {
2595
- we as A,
2612
+ Ie as A,
2596
2613
  F as B,
2597
- Pe as C,
2614
+ Ae as C,
2598
2615
  eo as D,
2599
2616
  Zn as E,
2600
- xe as F,
2617
+ Ce as F,
2601
2618
  no as G,
2602
2619
  lo as H,
2603
2620
  ro as R,
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-bd9886c9.cjs"),t=require("./USE_CLIENT_BUNDLE-70be4cc5.cjs");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-875d4629.cjs");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./bundle-6e21e129.cjs"),t=require("./USE_CLIENT_BUNDLE-e5d64246.cjs");require("lru-cache");require("react/jsx-runtime");require("react");require("next/navigation");require("./USE_SERVER_BUNDLE-ccca985e.cjs");exports.Blocks=e.Blocks;exports.Columns=e.Columns;exports.Content=e.ContentVariants;exports.RenderBlocks=e.RenderBlocks;exports.RenderContent=e.RenderContent;exports.Symbol=e.Symbol;exports.Text=e.Text;exports._processContentResult=e._processContentResult;exports.createRegisterComponentMessage=e.createRegisterComponentMessage;exports.fetchBuilderProps=e.fetchBuilderProps;exports.fetchEntries=e.fetchEntries;exports.fetchOneEntry=e.fetchOneEntry;exports.getAllContent=e.getAllContent;exports.getBuilderSearchParams=e.getBuilderSearchParams;exports.getContent=e.getContent;exports.isEditing=e.isEditing;exports.isPreviewing=e.isPreviewing;exports.register=e.register;exports.setEditorSettings=e.setEditorSettings;exports.track=e.track;exports.Button=t.Button;exports.Fragment=t.FragmentComponent;exports.Image=t.Image;exports.Section=t.SectionComponent;exports.Video=t.Video;
@@ -1,10 +1,10 @@
1
- import { B as i, w as m, C as c, R as g, v as p, S as l, T as C, z as d, p as B, H as S, A as f, q as u, D as E, F as R, E as h, c as x, j as k, x as y, y as F, G as P } from "./bundle-f9f52242.js";
2
- import { b as v, F as w, c as A, S as T, V } from "./USE_CLIENT_BUNDLE-7492ecd8.js";
1
+ import { B as i, w as m, C as c, R as g, v as p, S as l, T as C, z as d, p as B, H as S, A as f, q as u, D as E, F as R, E as h, c as x, j as k, x as y, y as F, G as P } from "./bundle-b3104268.js";
2
+ import { b as v, F as w, c as A, S as T, V } from "./USE_CLIENT_BUNDLE-4d4e23b4.js";
3
3
  import "lru-cache";
4
4
  import "react/jsx-runtime";
5
5
  import "react";
6
6
  import "next/navigation";
7
- import "./USE_SERVER_BUNDLE-fe386ed3.js";
7
+ import "./USE_SERVER_BUNDLE-2bf0dc28.js";
8
8
  export {
9
9
  i as Blocks,
10
10
  v as Button,