@builder.io/sdk-react 2.0.3 → 2.0.8

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 (82) hide show
  1. package/lib/browser/blocks-exports.cjs +14 -14
  2. package/lib/browser/blocks-exports.mjs +191 -170
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/{server-entry-02cecfb7.cjs → server-entry-ba3e0524.cjs} +1 -1
  8. package/lib/{node/server-entry-0687830a.js → browser/server-entry-f6ee5d92.js} +1 -1
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/{accordion-368a2cf8.cjs → accordion-88007399.cjs} +1 -1
  12. package/lib/edge/{accordion-0eca9b08.js → accordion-ef5e6161.js} +1 -1
  13. package/lib/edge/blocks-90fd2fd8.js +808 -0
  14. package/lib/edge/blocks-dc478c97.cjs +12 -0
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-3ed29654.cjs → button-228f448d.cjs} +1 -1
  18. package/lib/edge/{button-e852700f.js → button-8d307faf.js} +2 -2
  19. package/lib/edge/columns-3547be8c.cjs +28 -0
  20. package/lib/edge/{columns-ee464f6c.js → columns-77b7011a.js} +10 -9
  21. package/lib/edge/{content-variants-c0257a99.js → content-variants-4f7cad1a.js} +15 -13
  22. package/lib/edge/content-variants-f0edf280.cjs +134 -0
  23. package/lib/edge/evaluate-384a03ed.js +2615 -0
  24. package/lib/edge/evaluate-39c2c786.cjs +21 -0
  25. package/lib/edge/form-c6da17f5.cjs +1 -0
  26. package/lib/edge/{form-8191004e.js → form-d40e9eca.js} +8 -7
  27. package/lib/edge/{get-class-prop-name-5fc98fcc.cjs → get-class-prop-name-4f8743e9.cjs} +1 -1
  28. package/lib/edge/{get-class-prop-name-d18337d2.js → get-class-prop-name-767dbeb0.js} +1 -1
  29. package/lib/edge/{image-e3fcd611.js → image-6a074aab.js} +27 -25
  30. package/lib/edge/image-eebfcbac.cjs +17 -0
  31. package/lib/edge/{img-10ef20a5.cjs → img-c50b3839.cjs} +1 -1
  32. package/lib/edge/{img-a24ed75f.js → img-d650b796.js} +1 -1
  33. package/lib/edge/index.cjs +1 -1
  34. package/lib/edge/index.mjs +1 -1
  35. package/lib/edge/init.cjs +1 -1
  36. package/lib/edge/init.mjs +1 -1
  37. package/lib/edge/{input-3876429d.js → input-5646dcb2.js} +1 -1
  38. package/lib/edge/{input-6325bfc0.cjs → input-aaba7df0.cjs} +1 -1
  39. package/lib/edge/{select-3f0f00f3.cjs → select-2e7bf7d0.cjs} +1 -1
  40. package/lib/edge/{select-5dc1c7d1.js → select-d3905dcd.js} +1 -1
  41. package/lib/edge/{server-entry-ff728468.js → server-entry-29a170e3.js} +1 -1
  42. package/lib/edge/{server-entry-805b9266.cjs → server-entry-b0e7430b.cjs} +1 -1
  43. package/lib/edge/server-entry.cjs +1 -1
  44. package/lib/edge/server-entry.mjs +1 -1
  45. package/lib/edge/slot-695259cf.cjs +1 -0
  46. package/lib/edge/{slot-20fe5e4f.js → slot-82c0b340.js} +12 -11
  47. package/lib/edge/{symbol-5012ed02.cjs → symbol-5a6a783f.cjs} +1 -1
  48. package/lib/edge/{symbol-e95082e1.js → symbol-91897bd4.js} +2 -2
  49. package/lib/edge/tabs-4c4a6b19.cjs +1 -0
  50. package/lib/edge/{tabs-261e8cd4.js → tabs-a191e7b1.js} +10 -9
  51. package/lib/edge/text-7a00e2f8.cjs +1 -0
  52. package/lib/edge/text-ca974245.js +38 -0
  53. package/lib/node/blocks-exports.cjs +15 -15
  54. package/lib/node/blocks-exports.mjs +192 -171
  55. package/lib/node/index.cjs +1 -1
  56. package/lib/node/index.mjs +2 -2
  57. package/lib/node/init.cjs +1 -1
  58. package/lib/node/init.mjs +2 -2
  59. package/lib/node/{node-runtime-160b6846.cjs → node-runtime-a6fb6ac7.cjs} +1 -1
  60. package/lib/node/{node-runtime-405effc5.js → node-runtime-d8e6d827.js} +1 -1
  61. package/lib/node/{server-entry-02cecfb7.cjs → server-entry-ba3e0524.cjs} +1 -1
  62. package/lib/{browser/server-entry-0687830a.js → node/server-entry-f6ee5d92.js} +1 -1
  63. package/lib/node/server-entry.cjs +1 -1
  64. package/lib/node/server-entry.mjs +1 -1
  65. package/package.json +1 -1
  66. package/types/blocks/image/image.types.d.ts +2 -0
  67. package/types/blocks/symbol/symbol.types.d.ts +1 -0
  68. package/types/components/content-variants/content-variants.types.d.ts +2 -1
  69. package/types/components/content-variants/extra-framework-props-types.d.ts +2 -0
  70. package/types/constants/sdk-version.d.ts +1 -1
  71. package/types/context/extra-context-types.d.ts +6 -0
  72. package/types/context/types.d.ts +2 -1
  73. package/lib/edge/blocks-db3cfcac.js +0 -3419
  74. package/lib/edge/blocks-f524a758.cjs +0 -32
  75. package/lib/edge/columns-1f84e26e.cjs +0 -28
  76. package/lib/edge/content-variants-42f2495b.cjs +0 -134
  77. package/lib/edge/form-4444faf2.cjs +0 -1
  78. package/lib/edge/image-344ddbb0.cjs +0 -17
  79. package/lib/edge/slot-a64b535f.cjs +0 -1
  80. package/lib/edge/tabs-d672f816.cjs +0 -1
  81. package/lib/edge/text-5915f038.js +0 -17
  82. package/lib/edge/text-e6dbb721.cjs +0 -1
@@ -2,15 +2,15 @@
2
2
  var qe = Object.defineProperty;
3
3
  var Ke = (e, t, n) => t in e ? qe(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var ie = (e, t, n) => (Ke(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as s, Fragment as R, jsxs as P } from "react/jsx-runtime";
6
- import { TARGET as z, isEditing as F, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, registerInsertMenu as _e, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as ge, handleABTestingSync as Ze } from "./server-entry-0687830a.js";
7
- import { createContext as Re, useState as T, useEffect as V, useContext as be, useRef as ee, createElement as Ee } from "react";
5
+ import { jsx as s, Fragment as R, jsxs as V } from "react/jsx-runtime";
6
+ import { TARGET as q, isEditing as F, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, registerInsertMenu as _e, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as ge, handleABTestingSync as Ze } from "./server-entry-f6ee5d92.js";
7
+ import { createContext as Re, useState as T, useEffect as P, useContext as be, useRef as ee, createElement as Ee } from "react";
8
8
  const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
9
9
  function de(e) {
10
10
  return /* @__PURE__ */ s(R, { children: tt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
11
11
  }
12
- const q = () => {
13
- switch (z) {
12
+ const z = () => {
13
+ switch (q) {
14
14
  case "react":
15
15
  case "reactNative":
16
16
  case "rsc":
@@ -27,7 +27,7 @@ function nt(e) {
27
27
  function t() {
28
28
  return {
29
29
  ...e.attributes,
30
- [q()]: `${e.link ? "" : "builder-button"} ${e.attributes[q()] || ""}`,
30
+ [z()]: `${e.link ? "" : "builder-button"} ${e.attributes[z()] || ""}`,
31
31
  ...e.link ? {
32
32
  href: e.link,
33
33
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -164,7 +164,7 @@ const st = () => {
164
164
  };
165
165
  ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
166
166
  let U = L;
167
- function K({
167
+ function H({
168
168
  code: e,
169
169
  context: t,
170
170
  localState: n,
@@ -188,19 +188,19 @@ function K({
188
188
  localState: n
189
189
  };
190
190
  if (l) {
191
- const u = U.getCacheKey(c), f = U.getCachedValue(u);
191
+ const d = U.getCacheKey(c), f = U.getCachedValue(d);
192
192
  if (f)
193
193
  return f.value;
194
194
  }
195
195
  try {
196
- const u = ct(c);
196
+ const d = ct(c);
197
197
  if (l) {
198
198
  const f = U.getCacheKey(c);
199
- U.setCachedValue(f, u);
199
+ U.setCachedValue(f, d);
200
200
  }
201
- return u;
202
- } catch (u) {
203
- Z.error("Failed code evaluation: " + u.message, {
201
+ return d;
202
+ } catch (d) {
203
+ Z.error("Failed code evaluation: " + d.message, {
204
204
  code: e
205
205
  });
206
206
  return;
@@ -231,7 +231,7 @@ const dt = ({
231
231
  }
232
232
  };
233
233
  for (const l in e.bindings) {
234
- const c = e.bindings[l], u = K({
234
+ const c = e.bindings[l], d = H({
235
235
  code: c,
236
236
  localState: n,
237
237
  rootState: i,
@@ -239,7 +239,7 @@ const dt = ({
239
239
  context: t,
240
240
  enableCache: !0
241
241
  });
242
- Ve(a, l, u);
242
+ Ve(a, l, d);
243
243
  }
244
244
  return a;
245
245
  };
@@ -267,13 +267,13 @@ function ut(e, t, n = {}) {
267
267
  l = n.leading === !1 ? 0 : Date.now(), a = null, r = e.apply(i, o), a || (i = o = null);
268
268
  };
269
269
  return function() {
270
- const u = Date.now();
271
- !l && n.leading === !1 && (l = u);
272
- const f = t - (u - l);
273
- return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l = u, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), r;
270
+ const d = Date.now();
271
+ !l && n.leading === !1 && (l = d);
272
+ const f = t - (d - l);
273
+ return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l = d, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), r;
274
274
  };
275
275
  }
276
- function H(e, ...t) {
276
+ function K(e, ...t) {
277
277
  const n = Object(e);
278
278
  for (let i = 1; i < arguments.length; i++) {
279
279
  const o = arguments[i];
@@ -317,8 +317,8 @@ function We(e) {
317
317
  return;
318
318
  }
319
319
  Array.from(t).forEach((n) => {
320
- Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
321
- n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
320
+ Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", K(n.style, e.steps[0].styles), setTimeout(() => {
321
+ n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), K(n.style, e.steps[1].styles), setTimeout(() => {
322
322
  n.style.transition = "", n.style.transitionDelay = "";
323
323
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
324
324
  });
@@ -335,23 +335,23 @@ function ht(e) {
335
335
  let i = !1, o = !1;
336
336
  function r() {
337
337
  !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
338
- H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
338
+ K(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
339
339
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
340
340
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
341
- })) : e.repeat && i && !o && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
341
+ })) : e.repeat && i && !o && !l(n) && (i = !1, K(n.style, e.steps[0].styles));
342
342
  }
343
343
  const a = ut(r, 200, {
344
344
  leading: !1
345
345
  });
346
346
  function l(f) {
347
- const d = f.getBoundingClientRect(), m = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * m;
348
- return d.bottom > y && d.top < m - y;
347
+ const u = f.getBoundingClientRect(), m = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * m;
348
+ return u.bottom > y && u.top < m - y;
349
349
  }
350
350
  const c = e.steps[0].styles;
351
- function u() {
352
- H(n.style, c);
351
+ function d() {
352
+ K(n.style, c);
353
353
  }
354
- u(), setTimeout(() => {
354
+ d(), setTimeout(() => {
355
355
  n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
356
356
  }), document.addEventListener("scroll", a, {
357
357
  capture: !0,
@@ -389,7 +389,7 @@ const pt = ({
389
389
  block: e
390
390
  }));
391
391
  function Fe(e) {
392
- switch (z) {
392
+ switch (q) {
393
393
  case "svelte":
394
394
  case "vue":
395
395
  case "solid":
@@ -434,7 +434,7 @@ const yt = ({
434
434
  } = e;
435
435
  if (!(n != null && n.collection))
436
436
  return;
437
- const o = K({
437
+ const o = H({
438
438
  code: n.collection,
439
439
  localState: t.localState,
440
440
  rootState: t.rootState,
@@ -445,15 +445,15 @@ const yt = ({
445
445
  if (!Array.isArray(o))
446
446
  return;
447
447
  const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
448
- return o.map((c, u) => ({
448
+ return o.map((c, d) => ({
449
449
  context: {
450
450
  ...t,
451
451
  localState: {
452
452
  ...t.localState,
453
- $index: u,
453
+ $index: d,
454
454
  $item: c,
455
455
  [a]: c,
456
- [`$${a}Index`]: u
456
+ [`$${a}Index`]: d
457
457
  }
458
458
  },
459
459
  block: i
@@ -554,10 +554,10 @@ function Tt(e) {
554
554
  shouldEvaluateBindings: !0
555
555
  }), o = i.responsiveStyles, r = e.context.content, a = Le(
556
556
  ((p = r == null ? void 0 : r.meta) == null ? void 0 : p.breakpoints) || {}
557
- ), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
557
+ ), l = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, f = i.id;
558
558
  if (!f)
559
559
  return "";
560
- const d = l ? J({
560
+ const u = l ? J({
561
561
  className: f,
562
562
  styles: l
563
563
  }) : "", m = c ? J({
@@ -567,9 +567,9 @@ function Tt(e) {
567
567
  "medium",
568
568
  a
569
569
  )
570
- }) : "", g = u ? J({
570
+ }) : "", g = d ? J({
571
571
  className: f,
572
- styles: u,
572
+ styles: d,
573
573
  mediaQuery: ye(
574
574
  "small",
575
575
  a
@@ -590,7 +590,7 @@ function Tt(e) {
590
590
  }) || "";
591
591
  }
592
592
  return [
593
- d,
593
+ u,
594
594
  m,
595
595
  g,
596
596
  C
@@ -608,7 +608,7 @@ function Tt(e) {
608
608
  function It(e) {
609
609
  return e.charAt(0).toUpperCase() + e.slice(1);
610
610
  }
611
- const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => K({
611
+ const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => H({
612
612
  code: e,
613
613
  context: t.context,
614
614
  localState: t.localState,
@@ -627,7 +627,7 @@ function Oe(e) {
627
627
  const r = n[o];
628
628
  let a = wt(o);
629
629
  if (e.stripPrefix)
630
- switch (z) {
630
+ switch (q) {
631
631
  case "vue":
632
632
  a = a.replace("v-on:", "");
633
633
  break;
@@ -660,7 +660,7 @@ function fe({
660
660
  block: e,
661
661
  context: t
662
662
  }),
663
- [q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
663
+ [z()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
664
664
  };
665
665
  return Et({
666
666
  properties: n,
@@ -781,7 +781,7 @@ function Nt(e) {
781
781
  ) });
782
782
  }
783
783
  function _(e) {
784
- var c, u, f;
784
+ var c, d, f;
785
785
  function t() {
786
786
  return yt({
787
787
  block: e.block,
@@ -796,8 +796,8 @@ function _(e) {
796
796
  });
797
797
  }
798
798
  function i() {
799
- var d;
800
- return (d = e.block.repeat) != null && d.collection ? e.block : X({
799
+ var u;
800
+ return (u = e.block.repeat) != null && u.collection ? e.block : X({
801
801
  block: e.block,
802
802
  localState: e.context.localState,
803
803
  rootState: e.context.rootState,
@@ -814,17 +814,17 @@ function _(e) {
814
814
  var g, y;
815
815
  if ((g = e.block.repeat) != null && g.collection)
816
816
  return !!((y = n == null ? void 0 : n()) != null && y.length);
817
- const d = "hide" in i() ? i().hide : !1;
818
- return ("show" in i() ? i().show : !0) && !d;
817
+ const u = "hide" in i() ? i().hide : !1;
818
+ return ("show" in i() ? i().show : !0) && !u;
819
819
  }
820
820
  function a() {
821
821
  var m, g;
822
822
  return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
823
823
  }
824
824
  function l() {
825
- var d, m, g, y;
825
+ var u, m, g, y;
826
826
  return {
827
- blockChildren: (d = i().children) != null ? d : [],
827
+ blockChildren: (u = i().children) != null ? u : [],
828
828
  componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
829
829
  componentOptions: {
830
830
  ...it(i()),
@@ -841,18 +841,18 @@ function _(e) {
841
841
  registeredComponents: e.registeredComponents,
842
842
  builderBlock: i(),
843
843
  includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
844
- isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
844
+ isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC && q === "rsc")
845
845
  };
846
846
  }
847
- return V(() => {
848
- const d = i().id, m = i().animations;
849
- m && d && mt(
847
+ return P(() => {
848
+ const u = i().id, m = i().animations;
849
+ m && u && mt(
850
850
  m.map((g) => ({
851
851
  ...g,
852
- elementId: d
852
+ elementId: u
853
853
  }))
854
854
  );
855
- }, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */ P(R, { children: [
855
+ }, []), /* @__PURE__ */ s(R, { children: r() ? /* @__PURE__ */ V(R, { children: [
856
856
  /* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
857
857
  (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
858
858
  xe,
@@ -867,16 +867,16 @@ function _(e) {
867
867
  includeBlockProps: l().includeBlockProps,
868
868
  isInteractive: l().isInteractive
869
869
  }
870
- ) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
870
+ ) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((u, m) => /* @__PURE__ */ s(
871
871
  Nt,
872
872
  {
873
- repeatContext: d.context,
874
- block: d.block,
873
+ repeatContext: u.context,
874
+ block: u.block,
875
875
  registeredComponents: e.registeredComponents,
876
876
  linkComponent: e.linkComponent
877
877
  },
878
878
  m
879
- )) }) : /* @__PURE__ */ P(
879
+ )) }) : /* @__PURE__ */ V(
880
880
  Pt,
881
881
  {
882
882
  Wrapper: o(),
@@ -897,15 +897,15 @@ function _(e) {
897
897
  isInteractive: l().isInteractive
898
898
  }
899
899
  ),
900
- (u = a()) == null ? void 0 : u.map((d) => /* @__PURE__ */ s(
900
+ (d = a()) == null ? void 0 : d.map((u) => /* @__PURE__ */ s(
901
901
  _,
902
902
  {
903
- block: d,
903
+ block: u,
904
904
  registeredComponents: e.registeredComponents,
905
905
  linkComponent: e.linkComponent,
906
906
  context: e.context
907
907
  },
908
- d.id
908
+ u.id
909
909
  ))
910
910
  ]
911
911
  }
@@ -943,7 +943,7 @@ function Wt(e) {
943
943
  "*"
944
944
  ));
945
945
  }
946
- return /* @__PURE__ */ P(R, { children: [
946
+ return /* @__PURE__ */ V(R, { children: [
947
947
  /* @__PURE__ */ s(
948
948
  e.BlocksWrapper,
949
949
  {
@@ -1005,7 +1005,7 @@ function Ft(e) {
1005
1005
  var w;
1006
1006
  return ((w = i[x]) == null ? void 0 : w.width) || 100 / i.length;
1007
1007
  }
1008
- function u(x) {
1008
+ function d(x) {
1009
1009
  const w = c(x), N = t * (i.length - 1) * (w / 100);
1010
1010
  return `calc(${w}% - ${N}px)`;
1011
1011
  }
@@ -1015,7 +1015,7 @@ function Ft(e) {
1015
1015
  }) {
1016
1016
  return r === "tablet" ? x : w;
1017
1017
  }
1018
- function d({
1018
+ function u({
1019
1019
  stackedStyle: x,
1020
1020
  desktopStyle: w
1021
1021
  }) {
@@ -1034,7 +1034,7 @@ function Ft(e) {
1034
1034
  };
1035
1035
  }
1036
1036
  function C(x) {
1037
- const w = x === 0 ? 0 : t, N = u(x), b = `${w}px`, h = "100%", v = 0;
1037
+ const w = x === 0 ? 0 : t, N = d(x), b = `${w}px`, h = "100%", v = 0;
1038
1038
  return {
1039
1039
  ...{
1040
1040
  display: "flex",
@@ -1043,11 +1043,11 @@ function Ft(e) {
1043
1043
  },
1044
1044
  width: N,
1045
1045
  ["marginLeft"]: b,
1046
- "--column-width-mobile": d({
1046
+ "--column-width-mobile": u({
1047
1047
  stackedStyle: h,
1048
1048
  desktopStyle: N
1049
1049
  }),
1050
- "--column-margin-left-mobile": d({
1050
+ "--column-margin-left-mobile": u({
1051
1051
  stackedStyle: v,
1052
1052
  desktopStyle: b
1053
1053
  }),
@@ -1100,12 +1100,12 @@ function Ft(e) {
1100
1100
  ...x.link ? {
1101
1101
  href: x.link
1102
1102
  } : {},
1103
- [q()]: "builder-column",
1103
+ [z()]: "builder-column",
1104
1104
  style: Fe(C(w))
1105
1105
  };
1106
1106
  }
1107
- return /* @__PURE__ */ P(R, { children: [
1108
- /* @__PURE__ */ P(
1107
+ return /* @__PURE__ */ V(R, { children: [
1108
+ /* @__PURE__ */ V(
1109
1109
  "div",
1110
1110
  {
1111
1111
  className: $t((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
@@ -1185,21 +1185,21 @@ function oe(e) {
1185
1185
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1186
1186
  }
1187
1187
  function jt(e) {
1188
- var o, r, a, l, c, u;
1188
+ var o, r, a, l, c, d;
1189
1189
  function t() {
1190
1190
  var m;
1191
- const d = e.image || e.src;
1192
- if (!d || // We can auto add srcset for cdn.builder.io and shopify
1191
+ const u = e.image || e.src;
1192
+ if (!u || // We can auto add srcset for cdn.builder.io and shopify
1193
1193
  // images, otherwise you can supply this prop manually
1194
- !(d.match(/builder\.io/) || d.match(/cdn\.shopify\.com/)))
1194
+ !(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
1195
1195
  return e.srcset;
1196
1196
  if (!e.noWebp) {
1197
1197
  if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1198
1198
  if (!e.srcset.includes(e.image.split("?")[0]))
1199
- return console.debug("Removed given srcset"), oe(d);
1199
+ return console.debug("Removed given srcset"), oe(u);
1200
1200
  } else if (e.image && !e.srcset)
1201
- return oe(d);
1202
- return oe(d);
1201
+ return oe(u);
1202
+ return oe(u);
1203
1203
  }
1204
1204
  }
1205
1205
  function n() {
@@ -1216,9 +1216,10 @@ function jt(e) {
1216
1216
  };
1217
1217
  return e.aspectRatio ? f : void 0;
1218
1218
  }
1219
- return /* @__PURE__ */ P(R, { children: [
1220
- /* @__PURE__ */ P(R, { children: [
1221
- /* @__PURE__ */ P("picture", { children: [
1219
+ return P(() => {
1220
+ }, []), /* @__PURE__ */ V(R, { children: [
1221
+ /* @__PURE__ */ V(R, { children: [
1222
+ /* @__PURE__ */ V("picture", { children: [
1222
1223
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1223
1224
  /* @__PURE__ */ s(
1224
1225
  "img",
@@ -1232,7 +1233,7 @@ function jt(e) {
1232
1233
  objectFit: e.backgroundSize || "cover",
1233
1234
  ...i()
1234
1235
  },
1235
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-56bbd606",
1236
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-2d6925f2",
1236
1237
  src: e.image,
1237
1238
  srcSet: t(),
1238
1239
  sizes: e.sizes
@@ -1242,23 +1243,23 @@ function jt(e) {
1242
1243
  e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1243
1244
  "div",
1244
1245
  {
1245
- className: "builder-image-sizer div-56bbd606",
1246
+ className: "builder-image-sizer div-2d6925f2",
1246
1247
  style: {
1247
1248
  paddingTop: e.aspectRatio * 100 + "%"
1248
1249
  }
1249
1250
  }
1250
1251
  ) : null,
1251
1252
  (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1252
- !e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-56bbd606-2", children: e.children }) : null
1253
+ !e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-2d6925f2-2", children: e.children }) : null
1253
1254
  ] }),
1254
- /* @__PURE__ */ s("style", { children: `.img-56bbd606 {
1255
+ /* @__PURE__ */ s("style", { children: `.img-2d6925f2 {
1255
1256
  opacity: 1;
1256
1257
  transition: opacity 0.2s ease-in-out;
1257
- }.div-56bbd606 {
1258
+ }.div-2d6925f2 {
1258
1259
  width: 100%;
1259
1260
  pointer-events: none;
1260
1261
  font-size: 0;
1261
- }.div-56bbd606-2 {
1262
+ }.div-2d6925f2-2 {
1262
1263
  display: flex;
1263
1264
  flex-direction: column;
1264
1265
  align-items: stretch;
@@ -1417,7 +1418,7 @@ const ae = {
1417
1418
  }
1418
1419
  }, Se = (e) => e.toString();
1419
1420
  function Ht(e) {
1420
- var d;
1421
+ var u;
1421
1422
  const [t, n] = T(() => []);
1422
1423
  function i() {
1423
1424
  return !!(e.grid || e.oneAtATime);
@@ -1480,7 +1481,7 @@ function Ht(e) {
1480
1481
  }
1481
1482
  return typeof m == "number" && (m = m + 1), m;
1482
1483
  }
1483
- function u() {
1484
+ function d() {
1484
1485
  const m = {
1485
1486
  order: typeof c() == "number" ? c() : void 0,
1486
1487
  ...e.grid && {
@@ -1494,7 +1495,7 @@ function Ht(e) {
1494
1495
  function f(m) {
1495
1496
  t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
1496
1497
  }
1497
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ P(R, { children: [
1498
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (u = e.items) == null ? void 0 : u.map((m, g) => /* @__PURE__ */ V(R, { children: [
1498
1499
  /* @__PURE__ */ s(
1499
1500
  "div",
1500
1501
  {
@@ -1523,7 +1524,7 @@ function Ht(e) {
1523
1524
  "div",
1524
1525
  {
1525
1526
  className: l(g),
1526
- style: u(),
1527
+ style: d(),
1527
1528
  children: /* @__PURE__ */ s(
1528
1529
  D,
1529
1530
  {
@@ -1809,15 +1810,15 @@ const qt = {
1809
1810
  onChange: (e) => {
1810
1811
  e.delete("srcset"), e.delete("noWebp");
1811
1812
  function n(a, l = 6e4) {
1812
- return new Promise((c, u) => {
1813
+ return new Promise((c, d) => {
1813
1814
  const f = document.createElement("img");
1814
- let d = !1;
1815
+ let u = !1;
1815
1816
  f.onload = () => {
1816
- d = !0, c(f);
1817
+ u = !0, c(f);
1817
1818
  }, f.addEventListener("error", (m) => {
1818
- console.warn("Image load failed", m.error), u(m.error);
1819
+ console.warn("Image load failed", m.error), d(m.error);
1819
1820
  }), f.src = a, setTimeout(() => {
1820
- d || u(new Error("Image load timed out"));
1821
+ u || d(new Error("Image load timed out"));
1821
1822
  }, l);
1822
1823
  });
1823
1824
  }
@@ -2167,7 +2168,7 @@ function Zt(e) {
2167
2168
  function o(a) {
2168
2169
  a === t && e.collapsible ? n(-1) : n(a);
2169
2170
  }
2170
- return /* @__PURE__ */ P("div", { children: [
2171
+ return /* @__PURE__ */ V("div", { children: [
2171
2172
  /* @__PURE__ */ s(
2172
2173
  "div",
2173
2174
  {
@@ -2217,7 +2218,8 @@ function Zt(e) {
2217
2218
  }
2218
2219
  const en = {
2219
2220
  shouldReceiveBuilderProps: {
2220
- builderBlock: !1
2221
+ builderBlock: !1,
2222
+ builderContext: !0
2221
2223
  },
2222
2224
  name: "Text",
2223
2225
  static: !0,
@@ -2238,12 +2240,31 @@ const en = {
2238
2240
  }
2239
2241
  };
2240
2242
  function tn(e) {
2241
- var t;
2243
+ function t() {
2244
+ var l;
2245
+ const n = e.builderContext, {
2246
+ context: i,
2247
+ localState: o,
2248
+ rootState: r,
2249
+ rootSetState: a
2250
+ } = n;
2251
+ return String(((l = e.text) == null ? void 0 : l.toString()) || "").replace(
2252
+ /{{([^}]+)}}/g,
2253
+ (c, d) => H({
2254
+ code: d,
2255
+ context: i,
2256
+ localState: o,
2257
+ rootState: r,
2258
+ rootSetState: a,
2259
+ enableCache: !1
2260
+ })
2261
+ );
2262
+ }
2242
2263
  return /* @__PURE__ */ s(
2243
2264
  "div",
2244
2265
  {
2245
2266
  className: "builder-text",
2246
- dangerouslySetInnerHTML: { __html: ((t = e.text) == null ? void 0 : t.toString()) || "" },
2267
+ dangerouslySetInnerHTML: { __html: t() },
2247
2268
  style: {
2248
2269
  outline: "none"
2249
2270
  }
@@ -2275,28 +2296,28 @@ const nn = {
2275
2296
  };
2276
2297
  function on(e) {
2277
2298
  const t = ee(null), [n, i] = T(() => []), [o, r] = T(() => []);
2278
- return V(() => {
2299
+ return P(() => {
2279
2300
  var l;
2280
2301
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2281
2302
  return;
2282
2303
  const a = t.current.getElementsByTagName("script");
2283
2304
  for (let c = 0; c < a.length; c++) {
2284
- const u = a[c];
2285
- if (u.src) {
2286
- if (n.includes(u.src))
2305
+ const d = a[c];
2306
+ if (d.src) {
2307
+ if (n.includes(d.src))
2287
2308
  continue;
2288
- n.push(u.src);
2309
+ n.push(d.src);
2289
2310
  const f = document.createElement("script");
2290
- f.async = !0, f.src = u.src, document.head.appendChild(f);
2291
- } else if (!u.type || [
2311
+ f.async = !0, f.src = d.src, document.head.appendChild(f);
2312
+ } else if (!d.type || [
2292
2313
  "text/javascript",
2293
2314
  "application/javascript",
2294
2315
  "application/ecmascript"
2295
- ].includes(u.type)) {
2296
- if (o.includes(u.innerText))
2316
+ ].includes(d.type)) {
2317
+ if (o.includes(d.innerText))
2297
2318
  continue;
2298
2319
  try {
2299
- o.push(u.innerText), new Function(u.innerText)();
2320
+ o.push(d.innerText), new Function(d.innerText)();
2300
2321
  } catch (f) {
2301
2322
  console.warn("`CustomCode`: Error running script:", f);
2302
2323
  }
@@ -2332,22 +2353,22 @@ function sn(e) {
2332
2353
  function c() {
2333
2354
  if (!t.current || !t.current.getElementsByTagName)
2334
2355
  return;
2335
- const u = t.current.getElementsByTagName("script");
2336
- for (let f = 0; f < u.length; f++) {
2337
- const d = u[f];
2338
- if (d.src && !n.includes(d.src)) {
2339
- n.push(d.src);
2356
+ const d = t.current.getElementsByTagName("script");
2357
+ for (let f = 0; f < d.length; f++) {
2358
+ const u = d[f];
2359
+ if (u.src && !n.includes(u.src)) {
2360
+ n.push(u.src);
2340
2361
  const m = document.createElement("script");
2341
- m.async = !0, m.src = d.src, document.head.appendChild(m);
2342
- } else if (ln(d) && !o.includes(d.innerText))
2362
+ m.async = !0, m.src = u.src, document.head.appendChild(m);
2363
+ } else if (ln(u) && !o.includes(u.innerText))
2343
2364
  try {
2344
- o.push(d.innerText), new Function(d.innerText)();
2365
+ o.push(u.innerText), new Function(u.innerText)();
2345
2366
  } catch (m) {
2346
2367
  console.warn("`Embed`: Error running script:", m);
2347
2368
  }
2348
2369
  }
2349
2370
  }
2350
- return V(() => {
2371
+ return P(() => {
2351
2372
  t.current && !a && (l(!0), c());
2352
2373
  }, [t.current, a]), /* @__PURE__ */ s(
2353
2374
  "div",
@@ -2603,7 +2624,7 @@ const cn = {
2603
2624
  return i === void 0 || i === e ? n : i;
2604
2625
  };
2605
2626
  function fn(e) {
2606
- var d, m;
2627
+ var u, m;
2607
2628
  const t = ee(null), [n, i] = T(() => "unsubmitted"), [o, r] = T(() => null), [a, l] = T(() => "");
2608
2629
  function c(g) {
2609
2630
  var C, p;
@@ -2613,7 +2634,7 @@ function fn(e) {
2613
2634
  };
2614
2635
  e.builderContext.rootSetState ? (p = (C = e.builderContext).rootSetState) == null || p.call(C, y) : e.builderContext.rootState = y;
2615
2636
  }
2616
- function u() {
2637
+ function d() {
2617
2638
  return F() && e.previewState || n;
2618
2639
  }
2619
2640
  function f(g) {
@@ -2711,9 +2732,9 @@ function fn(e) {
2711
2732
  );
2712
2733
  }
2713
2734
  }
2714
- return /* @__PURE__ */ P(R, { children: [
2735
+ return /* @__PURE__ */ V(R, { children: [
2715
2736
  " ",
2716
- /* @__PURE__ */ P(
2737
+ /* @__PURE__ */ V(
2717
2738
  "form",
2718
2739
  {
2719
2740
  validate: e.validate,
@@ -2724,7 +2745,7 @@ function fn(e) {
2724
2745
  onSubmit: (g) => f(g),
2725
2746
  ...e.attributes,
2726
2747
  children: [
2727
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, y) => /* @__PURE__ */ s(
2748
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : m.map((g, y) => /* @__PURE__ */ s(
2728
2749
  _,
2729
2750
  {
2730
2751
  block: g,
@@ -2734,7 +2755,7 @@ function fn(e) {
2734
2755
  },
2735
2756
  `form-block-${y}`
2736
2757
  )) }) : null,
2737
- u() === "error" ? /* @__PURE__ */ s(
2758
+ d() === "error" ? /* @__PURE__ */ s(
2738
2759
  D,
2739
2760
  {
2740
2761
  path: "errorMessage",
@@ -2742,7 +2763,7 @@ function fn(e) {
2742
2763
  context: e.builderContext
2743
2764
  }
2744
2765
  ) : null,
2745
- u() === "sending" ? /* @__PURE__ */ s(
2766
+ d() === "sending" ? /* @__PURE__ */ s(
2746
2767
  D,
2747
2768
  {
2748
2769
  path: "sendingMessage",
@@ -2750,8 +2771,8 @@ function fn(e) {
2750
2771
  context: e.builderContext
2751
2772
  }
2752
2773
  ) : null,
2753
- u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2754
- u() === "success" ? /* @__PURE__ */ s(
2774
+ d() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2775
+ d() === "success" ? /* @__PURE__ */ s(
2755
2776
  D,
2756
2777
  {
2757
2778
  path: "successMessage",
@@ -3087,7 +3108,7 @@ const Tn = {
3087
3108
  }
3088
3109
  };
3089
3110
  function In(e) {
3090
- var i, o, r, a, l, c, u;
3111
+ var i, o, r, a, l, c, d;
3091
3112
  function t() {
3092
3113
  return {
3093
3114
  ...e.autoPlay === !0 ? {
@@ -3112,7 +3133,7 @@ function In(e) {
3112
3133
  ...t()
3113
3134
  };
3114
3135
  }
3115
- return /* @__PURE__ */ P(
3136
+ return /* @__PURE__ */ V(
3116
3137
  "div",
3117
3138
  {
3118
3139
  style: {
@@ -3166,7 +3187,7 @@ function In(e) {
3166
3187
  children: e.children
3167
3188
  }
3168
3189
  ) : null,
3169
- (u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
3190
+ (d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ s(
3170
3191
  "div",
3171
3192
  {
3172
3193
  style: {
@@ -3341,7 +3362,7 @@ const wn = () => [{
3341
3362
  })), Bn = ({
3342
3363
  canTrack: e,
3343
3364
  content: t
3344
- }) => !(!(Y(t).length > 0) || !e || M()), Pn = (e) => e === "react" || e === "reactNative", Me = Pn(z), Vn = () => `
3365
+ }) => !(!(Y(t).length > 0) || !e || M()), Pn = (e) => e === "react" || e === "reactNative", Me = Pn(q), Vn = () => `
3345
3366
  window.${je} = ${Rn}
3346
3367
  window.${Ue} = ${En}
3347
3368
  `, An = (e, t) => `
@@ -3420,11 +3441,11 @@ font-weight: 400;
3420
3441
  for (const l in e.files) {
3421
3442
  if (!(String(Number(l)) === l))
3422
3443
  continue;
3423
- const u = e.files[l];
3424
- u && u !== i && (o += `
3444
+ const d = e.files[l];
3445
+ d && d !== i && (o += `
3425
3446
  @font-face {
3426
3447
  font-family: "${t}";
3427
- src: url('${u}') format('woff2');
3448
+ src: url('${d}') format('woff2');
3428
3449
  font-display: fallback;
3429
3450
  font-weight: ${l};
3430
3451
  }
@@ -3526,7 +3547,7 @@ function Hn(e) {
3526
3547
  function c() {
3527
3548
  var v, S;
3528
3549
  const h = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.jsCode;
3529
- h && K({
3550
+ h && H({
3530
3551
  code: h,
3531
3552
  context: e.context || {},
3532
3553
  localState: void 0,
@@ -3538,7 +3559,7 @@ function Hn(e) {
3538
3559
  enableCache: !1
3539
3560
  });
3540
3561
  }
3541
- const [u, f] = T(() => ({})), [d, m] = T(() => ({})), [g, y] = T(() => !1);
3562
+ const [d, f] = T(() => ({})), [u, m] = T(() => ({})), [g, y] = T(() => !1);
3542
3563
  function C(h) {
3543
3564
  var v, S;
3544
3565
  if (e.builderContextSignal.content) {
@@ -3559,13 +3580,13 @@ function Hn(e) {
3559
3580
  var v, S, k;
3560
3581
  const h = (k = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.httpRequests) != null ? k : {};
3561
3582
  Object.entries(h).forEach(([I, W]) => {
3562
- if (!W || d[I] || u[I] && !F())
3583
+ if (!W || u[I] || d[I] && !F())
3563
3584
  return;
3564
- d[I] = !0;
3585
+ u[I] = !0;
3565
3586
  const j = W.replace(
3566
3587
  /{{([^}]+)}}/g,
3567
3588
  ($, He) => String(
3568
- K({
3589
+ H({
3569
3590
  code: He,
3570
3591
  context: e.context || {},
3571
3592
  localState: void 0,
@@ -3578,11 +3599,11 @@ function Hn(e) {
3578
3599
  Xe(j).then(($) => $.json()).then(($) => {
3579
3600
  n({
3580
3601
  [I]: $
3581
- }), u[I] = !0;
3602
+ }), d[I] = !0;
3582
3603
  }).catch(($) => {
3583
3604
  console.error("error fetching dynamic data", W, $);
3584
3605
  }).finally(() => {
3585
- d[I] = !1;
3606
+ u[I] = !1;
3586
3607
  });
3587
3608
  });
3588
3609
  }
@@ -3601,7 +3622,7 @@ function Hn(e) {
3601
3622
  )
3602
3623
  );
3603
3624
  }
3604
- return V(() => {
3625
+ return P(() => {
3605
3626
  var h, v;
3606
3627
  if (M()) {
3607
3628
  if (F() && (window.addEventListener("message", l), _e(), Je({
@@ -3646,25 +3667,25 @@ function Hn(e) {
3646
3667
  });
3647
3668
  }
3648
3669
  }
3649
- }, []), V(() => {
3670
+ }, []), P(() => {
3650
3671
  e.apiKey || Z.error(
3651
3672
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3652
3673
  ), c(), p(), B();
3653
- }, []), V(() => {
3674
+ }, []), P(() => {
3654
3675
  e.content && i(e.content);
3655
- }, [e.content]), V(() => {
3676
+ }, [e.content]), P(() => {
3656
3677
  c();
3657
- }, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]), V(() => {
3678
+ }, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]), P(() => {
3658
3679
  p();
3659
- }, [(x = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : x.httpRequests]), V(() => {
3680
+ }, [(x = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : x.httpRequests]), P(() => {
3660
3681
  B();
3661
- }, [e.builderContextSignal.rootState]), V(() => {
3682
+ }, [e.builderContextSignal.rootState]), P(() => {
3662
3683
  e.data && n(e.data);
3663
- }, [e.data]), V(() => {
3684
+ }, [e.data]), P(() => {
3664
3685
  e.locale && n({
3665
3686
  locale: e.locale
3666
3687
  });
3667
- }, [e.locale]), V(() => () => {
3688
+ }, [e.locale]), P(() => () => {
3668
3689
  M() && (window.removeEventListener("message", l), window.removeEventListener(
3669
3690
  "builder:component:stateChangeListenerActivated",
3670
3691
  B
@@ -3736,7 +3757,7 @@ const Kn = ({
3736
3757
  meta: e == null ? void 0 : e.meta
3737
3758
  } : void 0;
3738
3759
  function Ie(e) {
3739
- var c, u, f, d, m, g, y;
3760
+ var c, d, f, u, m, g, y;
3740
3761
  const [t, n] = T(
3741
3762
  () => {
3742
3763
  var C, p;
@@ -3811,7 +3832,7 @@ function Ie(e) {
3811
3832
  value: {
3812
3833
  registeredComponents: o
3813
3834
  },
3814
- children: /* @__PURE__ */ P(
3835
+ children: /* @__PURE__ */ V(
3815
3836
  Hn,
3816
3837
  {
3817
3838
  nonce: e.nonce,
@@ -3844,8 +3865,8 @@ function Ie(e) {
3844
3865
  nonce: e.nonce || "",
3845
3866
  isNestedRender: e.isNestedRender,
3846
3867
  contentId: (c = a.content) == null ? void 0 : c.id,
3847
- cssCode: (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.cssCode,
3848
- customFonts: (m = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
3868
+ cssCode: (f = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : f.cssCode,
3869
+ customFonts: (m = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : m.customFonts
3849
3870
  }
3850
3871
  ),
3851
3872
  /* @__PURE__ */ s(
@@ -3894,9 +3915,9 @@ function _n(e) {
3894
3915
  canTrack: Q(e.canTrack)
3895
3916
  });
3896
3917
  }
3897
- return V(() => {
3898
- }, []), /* @__PURE__ */ P(R, { children: [
3899
- !e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
3918
+ return P(() => {
3919
+ }, []), /* @__PURE__ */ V(R, { children: [
3920
+ !e.isNestedRender && q !== "reactNative" ? /* @__PURE__ */ s(
3900
3921
  ce,
3901
3922
  {
3902
3923
  id: "builderio-init-variants-fns",
@@ -3904,7 +3925,7 @@ function _n(e) {
3904
3925
  nonce: e.nonce || ""
3905
3926
  }
3906
3927
  ) : null,
3907
- t ? /* @__PURE__ */ P(R, { children: [
3928
+ t ? /* @__PURE__ */ V(R, { children: [
3908
3929
  /* @__PURE__ */ s(
3909
3930
  ne,
3910
3931
  {
@@ -3995,7 +4016,7 @@ const Jn = async ({
3995
4016
  });
3996
4017
  };
3997
4018
  function Yn(e) {
3998
- var l, c, u, f;
4019
+ var l, c, d, f;
3999
4020
  function t() {
4000
4021
  return "div";
4001
4022
  }
@@ -4003,28 +4024,28 @@ function Yn(e) {
4003
4024
  return "div";
4004
4025
  }
4005
4026
  function i() {
4006
- var d, m;
4027
+ var u, m;
4007
4028
  return [
4008
- e.attributes[q()],
4029
+ e.attributes[z()],
4009
4030
  "builder-symbol",
4010
- (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
4031
+ (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
4011
4032
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4012
4033
  ].filter(Boolean).join(" ");
4013
4034
  }
4014
4035
  const [o, r] = T(() => {
4015
- var d;
4016
- return (d = e.symbol) == null ? void 0 : d.content;
4036
+ var u;
4037
+ return (u = e.symbol) == null ? void 0 : u.content;
4017
4038
  });
4018
4039
  function a() {
4019
4040
  o || Jn({
4020
4041
  symbol: e.symbol,
4021
4042
  builderContextValue: e.builderContext
4022
- }).then((d) => {
4023
- d && r(d);
4043
+ }).then((u) => {
4044
+ u && r(u);
4024
4045
  });
4025
4046
  }
4026
- return V(() => {
4027
- }, []), V(() => {
4047
+ return P(() => {
4048
+ }, []), P(() => {
4028
4049
  a();
4029
4050
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4030
4051
  _n,
@@ -4041,7 +4062,7 @@ function Yn(e) {
4041
4062
  data: {
4042
4063
  ...(c = e.symbol) == null ? void 0 : c.data,
4043
4064
  ...e.builderContext.localState,
4044
- ...(u = o == null ? void 0 : o.data) == null ? void 0 : u.state
4065
+ ...(d = o == null ? void 0 : o.data) == null ? void 0 : d.state
4045
4066
  },
4046
4067
  canTrack: e.builderContext.canTrack,
4047
4068
  model: (f = e.symbol) == null ? void 0 : f.model,