@builder.io/sdk-react 2.0.1 → 2.0.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 (63) hide show
  1. package/lib/browser/blocks-exports.cjs +14 -14
  2. package/lib/browser/blocks-exports.mjs +224 -217
  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-29c5c31c.cjs → server-entry-419c051e.cjs} +1 -1
  8. package/lib/browser/{server-entry-f9067095.js → server-entry-825b4408.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-6ad2cec7.cjs → accordion-4f96554c.cjs} +1 -1
  12. package/lib/edge/{accordion-4a70912d.js → accordion-ca081054.js} +1 -1
  13. package/lib/edge/{blocks-0bd38a83.cjs → blocks-078044bc.cjs} +1 -1
  14. package/lib/edge/blocks-exports.cjs +1 -1
  15. package/lib/edge/blocks-exports.mjs +2 -2
  16. package/lib/edge/{blocks-fedde8d2.js → blocks-f55c7d3e.js} +2 -2
  17. package/lib/edge/{button-af35e8de.js → button-41169061.js} +2 -2
  18. package/lib/edge/{button-f6426eff.cjs → button-5d140f8e.cjs} +1 -1
  19. package/lib/edge/{columns-f607250b.cjs → columns-354bf349.cjs} +1 -1
  20. package/lib/edge/{columns-1065c0ae.js → columns-f8916a18.js} +3 -3
  21. package/lib/edge/{content-variants-3d57a82f.js → content-variants-71ee0c76.js} +230 -225
  22. package/lib/edge/{content-variants-773afb9f.cjs → content-variants-89a9389a.cjs} +8 -8
  23. package/lib/edge/{form-0a58d0e4.js → form-ac2f2a0e.js} +3 -3
  24. package/lib/edge/{form-5762c22a.cjs → form-f2d2c2bf.cjs} +1 -1
  25. package/lib/edge/{get-class-prop-name-268b0f61.js → get-class-prop-name-a677d7a5.js} +1 -1
  26. package/lib/edge/{get-class-prop-name-3061c329.cjs → get-class-prop-name-a9b4959e.cjs} +1 -1
  27. package/lib/edge/image-344ddbb0.cjs +17 -0
  28. package/lib/edge/{image-68451fc8.js → image-e3fcd611.js} +24 -22
  29. package/lib/edge/{img-252c9967.js → img-8fc26395.js} +1 -1
  30. package/lib/edge/{img-59bb70c7.cjs → img-b91cb4fd.cjs} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/init.cjs +1 -1
  34. package/lib/edge/init.mjs +1 -1
  35. package/lib/edge/{input-7ae243e2.js → input-549f090e.js} +1 -1
  36. package/lib/edge/{input-2163d4dc.cjs → input-ec7c695a.cjs} +1 -1
  37. package/lib/edge/{select-39231177.cjs → select-3ffa9294.cjs} +1 -1
  38. package/lib/edge/{select-cfa0eb8e.js → select-6a5a28ac.js} +1 -1
  39. package/lib/edge/{server-entry-4750de9c.cjs → server-entry-966ac144.cjs} +1 -1
  40. package/lib/edge/{server-entry-681e8e79.js → server-entry-d2020acf.js} +1 -1
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +1 -1
  43. package/lib/edge/{slot-7c61542f.js → slot-40de071b.js} +3 -3
  44. package/lib/edge/{slot-69da8c56.cjs → slot-8b27e15e.cjs} +1 -1
  45. package/lib/edge/{symbol-bd999a19.cjs → symbol-76e76298.cjs} +1 -1
  46. package/lib/edge/{symbol-4a8a6cda.js → symbol-e6515a5f.js} +2 -2
  47. package/lib/edge/{tabs-3d0e242e.cjs → tabs-9c5af0ec.cjs} +1 -1
  48. package/lib/edge/{tabs-c3ff0c70.js → tabs-b75be82d.js} +3 -3
  49. package/lib/node/blocks-exports.cjs +12 -12
  50. package/lib/node/blocks-exports.mjs +225 -218
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +2 -2
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +2 -2
  55. package/lib/node/{node-runtime-3bfd8465.cjs → node-runtime-0e37d6f7.cjs} +1 -1
  56. package/lib/node/{node-runtime-78262e65.js → node-runtime-0f3a5df1.js} +1 -1
  57. package/lib/node/{server-entry-5f9f100f.js → server-entry-5ebd1c9b.js} +1 -1
  58. package/lib/node/{server-entry-63058f3f.cjs → server-entry-8002325b.cjs} +1 -1
  59. package/lib/node/server-entry.cjs +1 -1
  60. package/lib/node/server-entry.mjs +1 -1
  61. package/package.json +1 -1
  62. package/types/constants/sdk-version.d.ts +1 -1
  63. package/lib/edge/image-ea37781b.cjs +0 -17
@@ -3,8 +3,8 @@ 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
5
  import { jsx as s, Fragment as R, jsxs as P } from "react/jsx-runtime";
6
- import { TARGET as z, isEditing as $, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, fastClone as de, 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-f9067095.js";
7
- import { createContext as Re, useState as C, useEffect as B, useContext as be, useRef as ee, createElement as Ee } from "react";
6
+ import { TARGET as z, isEditing as $, isBrowser as M, getUserAttributes as ze, checkIsDefined as G, logger as Z, fastClone as de, 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-825b4408.js";
7
+ import { createContext as Re, useState as T, useEffect as V, 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 ue(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 }) }) });
@@ -344,8 +344,8 @@ function ht(e) {
344
344
  leading: !1
345
345
  });
346
346
  function l(f) {
347
- const d = f.getBoundingClientRect(), m = window.innerHeight, p = (e.thresholdPercent || 0) / 100 * m;
348
- return d.bottom > p && d.top < m - p;
347
+ const d = f.getBoundingClientRect(), m = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * m;
348
+ return d.bottom > y && d.top < m - y;
349
349
  }
350
350
  const c = e.steps[0].styles;
351
351
  function u() {
@@ -544,7 +544,7 @@ function Tt(e) {
544
544
  return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
545
545
  }
546
546
  function n() {
547
- var x, E, V;
547
+ var p, B, E;
548
548
  const i = X({
549
549
  block: e.block,
550
550
  localState: e.context.localState,
@@ -553,7 +553,7 @@ function Tt(e) {
553
553
  context: e.context.context,
554
554
  shouldEvaluateBindings: !0
555
555
  }), o = i.responsiveStyles, r = e.context.content, a = Le(
556
- ((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
556
+ ((p = r == null ? void 0 : r.meta) == null ? void 0 : p.breakpoints) || {}
557
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;
558
558
  if (!f)
559
559
  return "";
@@ -574,18 +574,18 @@ function Tt(e) {
574
574
  "small",
575
575
  a
576
576
  )
577
- }) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
578
- let I = "";
579
- if (p) {
580
- const A = ((V = (E = p.steps) == null ? void 0 : E[1]) == null ? void 0 : V.styles) || {};
581
- I = J({
577
+ }) : "", y = i.animations && i.animations.find((A) => A.trigger === "hover");
578
+ let C = "";
579
+ if (y) {
580
+ const A = ((E = (B = y.steps) == null ? void 0 : B[1]) == null ? void 0 : E.styles) || {};
581
+ C = J({
582
582
  className: `${f}:hover`,
583
583
  styles: {
584
584
  ...A,
585
- transition: `all ${p.duration}s ${te(
586
- p.easing
585
+ transition: `all ${y.duration}s ${te(
586
+ y.easing
587
587
  )}`,
588
- transitionDelay: p.delay ? `${p.delay}s` : "0s"
588
+ transitionDelay: y.delay ? `${y.delay}s` : "0s"
589
589
  }
590
590
  }) || "";
591
591
  }
@@ -593,7 +593,7 @@ function Tt(e) {
593
593
  d,
594
594
  m,
595
595
  g,
596
- I
596
+ C
597
597
  ].join(" ");
598
598
  }
599
599
  return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
@@ -739,7 +739,7 @@ const At = ({
739
739
  };
740
740
  function xe(e) {
741
741
  var i;
742
- const [t, n] = C(
742
+ const [t, n] = T(
743
743
  () => e.isInteractive ? Vt : e.componentRef
744
744
  );
745
745
  return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
@@ -769,7 +769,7 @@ function xe(e) {
769
769
  ) }) : null });
770
770
  }
771
771
  function Nt(e) {
772
- const [t, n] = C(() => e.repeatContext);
772
+ const [t, n] = T(() => e.repeatContext);
773
773
  return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
774
774
  _,
775
775
  {
@@ -811,9 +811,9 @@ function _(e) {
811
811
  return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
812
812
  }
813
813
  function r() {
814
- var g, p;
814
+ var g, y;
815
815
  if ((g = e.block.repeat) != null && g.collection)
816
- return !!((p = n == null ? void 0 : n()) != null && p.length);
816
+ return !!((y = n == null ? void 0 : n()) != null && y.length);
817
817
  const d = "hide" in i() ? i().hide : !1;
818
818
  return ("show" in i() ? i().show : !0) && !d;
819
819
  }
@@ -822,7 +822,7 @@ function _(e) {
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, p;
825
+ var d, m, g, y;
826
826
  return {
827
827
  blockChildren: (d = i().children) != null ? d : [],
828
828
  componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
@@ -841,10 +841,10 @@ 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: !((p = t == null ? void 0 : t()) != null && p.isRSC)
844
+ isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
845
845
  };
846
846
  }
847
- return B(() => {
847
+ return V(() => {
848
848
  const d = i().id, m = i().animations;
849
849
  m && d && mt(
850
850
  m.map((g) => ({
@@ -993,9 +993,9 @@ function D(e) {
993
993
  const Ft = (e) => `builder-columns ${e}-breakpoints`;
994
994
  function $t(e) {
995
995
  var A, O;
996
- const [t, n] = C(
996
+ const [t, n] = T(
997
997
  () => typeof e.space == "number" ? e.space || 0 : 20
998
- ), [i, o] = C(() => e.columns || []), [r, a] = C(
998
+ ), [i, o] = T(() => e.columns || []), [r, a] = T(
999
999
  () => e.stackColumnsAt || "tablet"
1000
1000
  );
1001
1001
  function l(S) {
@@ -1021,10 +1021,10 @@ function $t(e) {
1021
1021
  }) {
1022
1022
  return r === "never" ? w : S;
1023
1023
  }
1024
- const [m, g] = C(
1024
+ const [m, g] = T(
1025
1025
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1026
1026
  );
1027
- function p() {
1027
+ function y() {
1028
1028
  return {
1029
1029
  "--flex-dir": m,
1030
1030
  "--flex-dir-tablet": f({
@@ -1033,8 +1033,8 @@ function $t(e) {
1033
1033
  })
1034
1034
  };
1035
1035
  }
1036
- function I(S) {
1037
- const w = S === 0 ? 0 : t, N = u(S), b = `${w}px`, h = "100%", y = 0;
1036
+ function C(S) {
1037
+ const w = S === 0 ? 0 : t, N = u(S), b = `${w}px`, h = "100%", x = 0;
1038
1038
  return {
1039
1039
  ...{
1040
1040
  display: "flex",
@@ -1048,7 +1048,7 @@ function $t(e) {
1048
1048
  desktopStyle: N
1049
1049
  }),
1050
1050
  "--column-margin-left-mobile": d({
1051
- stackedStyle: y,
1051
+ stackedStyle: x,
1052
1052
  desktopStyle: b
1053
1053
  }),
1054
1054
  "--column-width-tablet": f({
@@ -1056,20 +1056,20 @@ function $t(e) {
1056
1056
  desktopStyle: N
1057
1057
  }),
1058
1058
  "--column-margin-left-tablet": f({
1059
- stackedStyle: y,
1059
+ stackedStyle: x,
1060
1060
  desktopStyle: b
1061
1061
  })
1062
1062
  };
1063
1063
  }
1064
- function x(S) {
1064
+ function p(S) {
1065
1065
  var N, b;
1066
1066
  return Le(
1067
1067
  ((b = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : b.breakpoints) || {}
1068
1068
  )[S].max;
1069
1069
  }
1070
- function E() {
1070
+ function B() {
1071
1071
  return `
1072
- @media (max-width: ${x("medium")}px) {
1072
+ @media (max-width: ${p("medium")}px) {
1073
1073
  .${e.builderBlock.id}-breakpoints {
1074
1074
  flex-direction: var(--flex-dir-tablet);
1075
1075
  align-items: stretch;
@@ -1081,7 +1081,7 @@ function $t(e) {
1081
1081
  }
1082
1082
  }
1083
1083
 
1084
- @media (max-width: ${x("small")}px) {
1084
+ @media (max-width: ${p("small")}px) {
1085
1085
  .${e.builderBlock.id}-breakpoints {
1086
1086
  flex-direction: var(--flex-dir);
1087
1087
  align-items: stretch;
@@ -1094,13 +1094,13 @@ function $t(e) {
1094
1094
  },
1095
1095
  `;
1096
1096
  }
1097
- function V(S, w) {
1097
+ function E(S, w) {
1098
1098
  return {
1099
1099
  ...S.link ? {
1100
1100
  href: S.link
1101
1101
  } : {},
1102
1102
  [q()]: "builder-column",
1103
- style: $e(I(w))
1103
+ style: $e(C(w))
1104
1104
  };
1105
1105
  }
1106
1106
  return /* @__PURE__ */ P(R, { children: [
@@ -1108,13 +1108,13 @@ function $t(e) {
1108
1108
  "div",
1109
1109
  {
1110
1110
  className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-fe220f58",
1111
- style: p(),
1111
+ style: y(),
1112
1112
  children: [
1113
1113
  /* @__PURE__ */ s(
1114
1114
  ne,
1115
1115
  {
1116
1116
  id: "builderio-columns",
1117
- styles: E(),
1117
+ styles: B(),
1118
1118
  nonce: e.builderContext.nonce
1119
1119
  }
1120
1120
  ),
@@ -1123,7 +1123,7 @@ function $t(e) {
1123
1123
  {
1124
1124
  TagName: l(S),
1125
1125
  actionAttributes: {},
1126
- attributes: V(S, w),
1126
+ attributes: E(S, w),
1127
1127
  children: /* @__PURE__ */ s(
1128
1128
  D,
1129
1129
  {
@@ -1192,12 +1192,14 @@ function jt(e) {
1192
1192
  // images, otherwise you can supply this prop manually
1193
1193
  !(d.match(/builder\.io/) || d.match(/cdn\.shopify\.com/)))
1194
1194
  return e.srcset;
1195
- if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1196
- if (!e.srcset.includes(e.image.split("?")[0]))
1197
- return console.debug("Removed given srcset"), oe(d);
1198
- } else if (e.image && !e.srcset)
1195
+ if (!e.noWebp) {
1196
+ if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1197
+ if (!e.srcset.includes(e.image.split("?")[0]))
1198
+ return console.debug("Removed given srcset"), oe(d);
1199
+ } else if (e.image && !e.srcset)
1200
+ return oe(d);
1199
1201
  return oe(d);
1200
- return oe(d);
1202
+ }
1201
1203
  }
1202
1204
  function n() {
1203
1205
  var f;
@@ -1229,7 +1231,7 @@ function jt(e) {
1229
1231
  objectFit: e.backgroundSize || "cover",
1230
1232
  ...i()
1231
1233
  },
1232
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-ac3dff4a",
1234
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-56bbd606",
1233
1235
  src: e.image,
1234
1236
  srcSet: t(),
1235
1237
  sizes: e.sizes
@@ -1239,23 +1241,23 @@ function jt(e) {
1239
1241
  e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1240
1242
  "div",
1241
1243
  {
1242
- className: "builder-image-sizer div-ac3dff4a",
1244
+ className: "builder-image-sizer div-56bbd606",
1243
1245
  style: {
1244
1246
  paddingTop: e.aspectRatio * 100 + "%"
1245
1247
  }
1246
1248
  }
1247
1249
  ) : null,
1248
1250
  (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1249
- !e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-ac3dff4a-2", children: e.children }) : null
1251
+ !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
1250
1252
  ] }),
1251
- /* @__PURE__ */ s("style", { children: `.img-ac3dff4a {
1253
+ /* @__PURE__ */ s("style", { children: `.img-56bbd606 {
1252
1254
  opacity: 1;
1253
1255
  transition: opacity 0.2s ease-in-out;
1254
- }.div-ac3dff4a {
1256
+ }.div-56bbd606 {
1255
1257
  width: 100%;
1256
1258
  pointer-events: none;
1257
1259
  font-size: 0;
1258
- }.div-ac3dff4a-2 {
1260
+ }.div-56bbd606-2 {
1259
1261
  display: flex;
1260
1262
  flex-direction: column;
1261
1263
  align-items: stretch;
@@ -1415,7 +1417,7 @@ const ae = {
1415
1417
  }, Se = (e) => e.toString();
1416
1418
  function Ht(e) {
1417
1419
  var d;
1418
- const [t, n] = C(() => []);
1420
+ const [t, n] = T(() => []);
1419
1421
  function i() {
1420
1422
  return !!(e.grid || e.oneAtATime);
1421
1423
  }
@@ -1441,7 +1443,7 @@ function Ht(e) {
1441
1443
  cursor: "pointer"
1442
1444
  };
1443
1445
  return Object.fromEntries(
1444
- Object.entries(g).filter(([p, I]) => I !== void 0)
1446
+ Object.entries(g).filter(([y, C]) => C !== void 0)
1445
1447
  );
1446
1448
  }
1447
1449
  function a(m) {
@@ -1453,23 +1455,23 @@ function Ht(e) {
1453
1455
  function c() {
1454
1456
  let m = null;
1455
1457
  if (e.grid && t.length && document) {
1456
- const p = t[0];
1457
- let x = document.querySelector(
1458
- `.builder-accordion-title[data-index="${p}"]`
1458
+ const y = t[0];
1459
+ let p = document.querySelector(
1460
+ `.builder-accordion-title[data-index="${y}"]`
1459
1461
  );
1460
- if (m = p, x) {
1461
- let E = x.getBoundingClientRect();
1462
- for (; x = x && x.nextElementSibling; )
1463
- if (x) {
1464
- if (x.classList.contains("builder-accordion-detail"))
1462
+ if (m = y, p) {
1463
+ let B = p.getBoundingClientRect();
1464
+ for (; p = p && p.nextElementSibling; )
1465
+ if (p) {
1466
+ if (p.classList.contains("builder-accordion-detail"))
1465
1467
  continue;
1466
- const V = x.getBoundingClientRect();
1467
- if (V.left > E.left) {
1468
+ const E = p.getBoundingClientRect();
1469
+ if (E.left > B.left) {
1468
1470
  const A = parseInt(
1469
- x.getAttribute("data-index") || "",
1471
+ p.getAttribute("data-index") || "",
1470
1472
  10
1471
1473
  );
1472
- isNaN(A) || (E = V, m = A);
1474
+ isNaN(A) || (B = E, m = A);
1473
1475
  } else
1474
1476
  break;
1475
1477
  }
@@ -1485,7 +1487,7 @@ function Ht(e) {
1485
1487
  }
1486
1488
  };
1487
1489
  return Object.fromEntries(
1488
- Object.entries(m).filter(([g, p]) => p !== void 0)
1490
+ Object.entries(m).filter(([g, y]) => y !== void 0)
1489
1491
  );
1490
1492
  }
1491
1493
  function f(m) {
@@ -1502,7 +1504,7 @@ function Ht(e) {
1502
1504
  order: c() !== null ? Se(g) : Se(g + 1)
1503
1505
  },
1504
1506
  "data-index": g,
1505
- onClick: (p) => f(g),
1507
+ onClick: (y) => f(g),
1506
1508
  children: /* @__PURE__ */ s(
1507
1509
  D,
1508
1510
  {
@@ -2155,7 +2157,7 @@ const Qt = {
2155
2157
  };
2156
2158
  function Zt(e) {
2157
2159
  var r;
2158
- const [t, n] = C(
2160
+ const [t, n] = T(
2159
2161
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2160
2162
  );
2161
2163
  function i(a) {
@@ -2271,8 +2273,8 @@ const nn = {
2271
2273
  }]
2272
2274
  };
2273
2275
  function on(e) {
2274
- const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []);
2275
- return B(() => {
2276
+ const t = ee(null), [n, i] = T(() => []), [o, r] = T(() => []);
2277
+ return V(() => {
2276
2278
  var l;
2277
2279
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
2278
2280
  return;
@@ -2325,7 +2327,7 @@ const an = {
2325
2327
  }]
2326
2328
  }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2327
2329
  function sn(e) {
2328
- const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []), [a, l] = C(() => !1);
2330
+ const t = ee(null), [n, i] = T(() => []), [o, r] = T(() => []), [a, l] = T(() => !1);
2329
2331
  function c() {
2330
2332
  if (!t.current || !t.current.getElementsByTagName)
2331
2333
  return;
@@ -2344,7 +2346,7 @@ function sn(e) {
2344
2346
  }
2345
2347
  }
2346
2348
  }
2347
- return B(() => {
2349
+ return V(() => {
2348
2350
  t.current && !a && (l(!0), c());
2349
2351
  }, [t.current, a]), /* @__PURE__ */ s(
2350
2352
  "div",
@@ -2601,39 +2603,39 @@ const cn = {
2601
2603
  };
2602
2604
  function fn(e) {
2603
2605
  var d, m;
2604
- const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, r] = C(() => null), [a, l] = C(() => "");
2606
+ const t = ee(null), [n, i] = T(() => "unsubmitted"), [o, r] = T(() => null), [a, l] = T(() => "");
2605
2607
  function c(g) {
2606
- var I, x;
2607
- const p = {
2608
+ var C, p;
2609
+ const y = {
2608
2610
  ...e.builderContext.rootState,
2609
2611
  ...g
2610
2612
  };
2611
- e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
2613
+ e.builderContext.rootSetState ? (p = (C = e.builderContext).rootSetState) == null || p.call(C, y) : e.builderContext.rootState = y;
2612
2614
  }
2613
2615
  function u() {
2614
2616
  return $() && e.previewState || n;
2615
2617
  }
2616
2618
  function f(g) {
2617
- var I;
2618
- const p = e.sendWithJs || e.sendSubmissionsTo === "email";
2619
+ var C;
2620
+ const y = e.sendWithJs || e.sendSubmissionsTo === "email";
2619
2621
  if (e.sendSubmissionsTo === "zapier")
2620
2622
  g.preventDefault();
2621
- else if (p) {
2623
+ else if (y) {
2622
2624
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2623
2625
  g.preventDefault();
2624
2626
  return;
2625
2627
  }
2626
2628
  g.preventDefault();
2627
- const x = g.currentTarget || g.target, E = e.customHeaders || {};
2628
- let V;
2629
- const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2629
+ const p = g.currentTarget || g.target, B = e.customHeaders || {};
2630
+ let E;
2631
+ const A = new FormData(p), O = Array.from(p.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2630
2632
  let h;
2631
- const y = b.name;
2633
+ const x = b.name;
2632
2634
  if (b instanceof HTMLInputElement)
2633
2635
  if (b.type === "radio") {
2634
2636
  if (b.checked)
2635
2637
  return h = b.name, {
2636
- key: y,
2638
+ key: x,
2637
2639
  value: h
2638
2640
  };
2639
2641
  } else if (b.type === "checkbox")
@@ -2646,7 +2648,7 @@ function fn(e) {
2646
2648
  else
2647
2649
  h = b.value;
2648
2650
  return {
2649
- key: y,
2651
+ key: x,
2650
2652
  value: h
2651
2653
  };
2652
2654
  });
@@ -2654,15 +2656,15 @@ function fn(e) {
2654
2656
  if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
2655
2657
  (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (S = "multipart/form-data");
2656
2658
  }), S !== "application/json")
2657
- V = A;
2659
+ E = A;
2658
2660
  else {
2659
2661
  const b = {};
2660
- Array.from(O).forEach(({ value: h, key: y }) => {
2661
- Ve(b, y, h);
2662
- }), V = JSON.stringify(b);
2662
+ Array.from(O).forEach(({ value: h, key: x }) => {
2663
+ Ve(b, x, h);
2664
+ }), E = JSON.stringify(b);
2663
2665
  }
2664
- S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (E["content-type"] = S));
2665
- const w = new CustomEvent("presubmit", { detail: { body: V } });
2666
+ S && S !== "multipart/form-data" && (y && ((C = e.action) != null && C.includes("zapier.com")) || (B["content-type"] = S));
2667
+ const w = new CustomEvent("presubmit", { detail: { body: E } });
2666
2668
  if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2667
2669
  return;
2668
2670
  i("sending");
@@ -2671,12 +2673,12 @@ function fn(e) {
2671
2673
  )}&name=${encodeURIComponent(e.name || "")}`;
2672
2674
  fetch(
2673
2675
  e.sendSubmissionsTo === "email" ? N : e.action,
2674
- { body: V, headers: E, method: e.method || "post" }
2676
+ { body: E, headers: B, method: e.method || "post" }
2675
2677
  ).then(
2676
2678
  async (b) => {
2677
2679
  let h;
2678
- const y = b.headers.get("content-type");
2679
- if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2680
+ const x = b.headers.get("content-type");
2681
+ if (x && x.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2680
2682
  let v = mn(h, e.errorMessagePath);
2681
2683
  v && (typeof v != "string" && (v = JSON.stringify(v)), l(v), c({ formErrorMessage: v }));
2682
2684
  }
@@ -2721,7 +2723,7 @@ function fn(e) {
2721
2723
  onSubmit: (g) => f(g),
2722
2724
  ...e.attributes,
2723
2725
  children: [
2724
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, p) => /* @__PURE__ */ s(
2726
+ 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(
2725
2727
  _,
2726
2728
  {
2727
2729
  block: g,
@@ -2729,7 +2731,7 @@ function fn(e) {
2729
2731
  registeredComponents: e.builderComponents,
2730
2732
  linkComponent: e.builderLinkComponent
2731
2733
  },
2732
- `form-block-${p}`
2734
+ `form-block-${y}`
2733
2735
  )) }) : null,
2734
2736
  u() === "error" ? /* @__PURE__ */ s(
2735
2737
  D,
@@ -3455,22 +3457,22 @@ font-weight: ${l};
3455
3457
  }
3456
3458
  `, Un = (e) => e ? "" : jn, Mn = (e) => `variant-${e}`;
3457
3459
  function Hn(e) {
3458
- var V, A, O, S, w, N, b;
3460
+ var E, A, O, S, w, N, b;
3459
3461
  const t = ee(null);
3460
3462
  function n(h) {
3461
3463
  var v, k;
3462
- const y = {
3464
+ const x = {
3463
3465
  ...e.builderContextSignal.rootState,
3464
3466
  ...h
3465
3467
  };
3466
- e.builderContextSignal.rootSetState ? (k = (v = e.builderContextSignal).rootSetState) == null || k.call(v, y) : e.setBuilderContextSignal((T) => ({
3467
- ...T,
3468
- rootState: y
3468
+ e.builderContextSignal.rootSetState ? (k = (v = e.builderContextSignal).rootSetState) == null || k.call(v, x) : e.setBuilderContextSignal((I) => ({
3469
+ ...I,
3470
+ rootState: x
3469
3471
  }));
3470
3472
  }
3471
3473
  function i(h) {
3472
- var v, k, T, W, j;
3473
- const y = {
3474
+ var v, k, I, W, j;
3475
+ const x = {
3474
3476
  ...e.builderContextSignal.content,
3475
3477
  ...h,
3476
3478
  data: {
@@ -3480,12 +3482,12 @@ function Hn(e) {
3480
3482
  meta: {
3481
3483
  ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
3482
3484
  ...h == null ? void 0 : h.meta,
3483
- breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
3485
+ breakpoints: ((I = h == null ? void 0 : h.meta) == null ? void 0 : I.breakpoints) || ((j = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : j.breakpoints)
3484
3486
  }
3485
3487
  };
3486
3488
  e.setBuilderContextSignal((F) => ({
3487
3489
  ...F,
3488
- content: y
3490
+ content: x
3489
3491
  }));
3490
3492
  }
3491
3493
  function o() {
@@ -3494,7 +3496,7 @@ function Hn(e) {
3494
3496
  "aria-hidden": !0
3495
3497
  };
3496
3498
  }
3497
- const [r, a] = C(
3499
+ const [r, a] = T(
3498
3500
  () => e.contentWrapper || "div"
3499
3501
  );
3500
3502
  function l(h) {
@@ -3502,27 +3504,27 @@ function Hn(e) {
3502
3504
  model: e.model,
3503
3505
  trustedHosts: e.trustedHosts,
3504
3506
  callbacks: {
3505
- configureSdk: (y) => {
3506
- var T;
3507
- const { breakpoints: v, contentId: k } = y;
3508
- !k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || v && i({
3507
+ configureSdk: (x) => {
3508
+ var I;
3509
+ const { breakpoints: v, contentId: k } = x;
3510
+ !k || k !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || v && i({
3509
3511
  meta: {
3510
3512
  breakpoints: v
3511
3513
  }
3512
3514
  });
3513
3515
  },
3514
- animation: (y) => {
3515
- We(y);
3516
+ animation: (x) => {
3517
+ We(x);
3516
3518
  },
3517
- contentUpdate: (y) => {
3518
- i(y);
3519
+ contentUpdate: (x) => {
3520
+ i(x);
3519
3521
  }
3520
3522
  }
3521
3523
  })(h);
3522
3524
  }
3523
3525
  function c() {
3524
- var y, v;
3525
- const h = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.jsCode;
3526
+ var x, v;
3527
+ const h = (v = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : v.jsCode;
3526
3528
  h && K({
3527
3529
  code: h,
3528
3530
  context: e.context || {},
@@ -3535,30 +3537,30 @@ function Hn(e) {
3535
3537
  enableCache: !1
3536
3538
  });
3537
3539
  }
3538
- const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
3539
- function I(h) {
3540
- var y, v;
3540
+ const [u, f] = T(() => ({})), [d, m] = T(() => ({})), [g, y] = T(() => !1);
3541
+ function C(h) {
3542
+ var x, v;
3541
3543
  if (e.builderContextSignal.content) {
3542
- const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
3544
+ const k = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, I = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
3543
3545
  he({
3544
3546
  type: "click",
3545
3547
  canTrack: Q(e.canTrack),
3546
- contentId: T,
3548
+ contentId: I,
3547
3549
  apiKey: e.apiKey,
3548
- variationId: k !== T ? k : void 0,
3550
+ variationId: k !== I ? k : void 0,
3549
3551
  ...$n(h),
3550
3552
  unique: !g
3551
3553
  });
3552
3554
  }
3553
- g || p(!0);
3555
+ g || y(!0);
3554
3556
  }
3555
- function x() {
3556
- var y, v, k;
3557
- const h = (k = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.httpRequests) != null ? k : {};
3558
- Object.entries(h).forEach(([T, W]) => {
3559
- if (!W || d[T] || u[T] && !$())
3557
+ function p() {
3558
+ var x, v, k;
3559
+ const h = (k = (v = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : v.httpRequests) != null ? k : {};
3560
+ Object.entries(h).forEach(([I, W]) => {
3561
+ if (!W || d[I] || u[I] && !$())
3560
3562
  return;
3561
- d[T] = !0;
3563
+ d[I] = !0;
3562
3564
  const j = W.replace(
3563
3565
  /{{([^}]+)}}/g,
3564
3566
  (F, He) => String(
@@ -3574,16 +3576,16 @@ function Hn(e) {
3574
3576
  );
3575
3577
  Xe(j).then((F) => F.json()).then((F) => {
3576
3578
  n({
3577
- [T]: F
3578
- }), u[T] = !0;
3579
+ [I]: F
3580
+ }), u[I] = !0;
3579
3581
  }).catch((F) => {
3580
3582
  console.error("error fetching dynamic data", W, F);
3581
3583
  }).finally(() => {
3582
- d[T] = !1;
3584
+ d[I] = !1;
3583
3585
  });
3584
3586
  });
3585
3587
  }
3586
- function E() {
3588
+ function B() {
3587
3589
  $() && window.dispatchEvent(
3588
3590
  new CustomEvent(
3589
3591
  "builder:component:stateChange",
@@ -3598,8 +3600,8 @@ function Hn(e) {
3598
3600
  )
3599
3601
  );
3600
3602
  }
3601
- return B(() => {
3602
- var h, y;
3603
+ return V(() => {
3604
+ var h, x;
3603
3605
  if (M()) {
3604
3606
  if ($() && (window.addEventListener("message", l), _e(), Je({
3605
3607
  ...e.locale ? {
@@ -3615,26 +3617,26 @@ function Hn(e) {
3615
3617
  e.builderContextSignal.componentInfos
3616
3618
  ).forEach((k) => {
3617
3619
  var W;
3618
- const T = Ye(k);
3619
- (W = window.parent) == null || W.postMessage(T, "*");
3620
+ const I = Ye(k);
3621
+ (W = window.parent) == null || W.postMessage(I, "*");
3620
3622
  }), window.addEventListener(
3621
3623
  "builder:component:stateChangeListenerActivated",
3622
- E
3624
+ B
3623
3625
  )), e.builderContextSignal.content && Q(e.canTrack)) {
3624
- const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, W = e.apiKey;
3626
+ const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, I = (x = e.builderContextSignal.content) == null ? void 0 : x.id, W = e.apiKey;
3625
3627
  he({
3626
3628
  type: "impression",
3627
3629
  canTrack: !0,
3628
- contentId: T,
3630
+ contentId: I,
3629
3631
  apiKey: W,
3630
- variationId: k !== T ? k : void 0
3632
+ variationId: k !== I ? k : void 0
3631
3633
  });
3632
3634
  }
3633
3635
  if (Ge() && !$()) {
3634
- const k = new URL(location.href).searchParams, T = k.get("builder.preview"), W = k.get(
3635
- `builder.overrides.${T}`
3636
+ const k = new URL(location.href).searchParams, I = k.get("builder.preview"), W = k.get(
3637
+ `builder.overrides.${I}`
3636
3638
  ), j = k.get("apiKey") || k.get("builder.space");
3637
- T === e.model && j === e.apiKey && (!e.content || W === e.content.id) && we({
3639
+ I === e.model && j === e.apiKey && (!e.content || W === e.content.id) && we({
3638
3640
  model: e.model,
3639
3641
  apiKey: e.apiKey,
3640
3642
  apiVersion: e.builderContextSignal.apiVersion
@@ -3643,34 +3645,34 @@ function Hn(e) {
3643
3645
  });
3644
3646
  }
3645
3647
  }
3646
- }, []), B(() => {
3648
+ }, []), V(() => {
3647
3649
  e.apiKey || Z.error(
3648
3650
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3649
- ), c(), x(), E();
3650
- }, []), B(() => {
3651
+ ), c(), p(), B();
3652
+ }, []), V(() => {
3651
3653
  e.content && i(e.content);
3652
- }, [e.content]), B(() => {
3654
+ }, [e.content]), V(() => {
3653
3655
  c();
3654
- }, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), B(() => {
3655
- x();
3656
- }, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), B(() => {
3657
- E();
3658
- }, [e.builderContextSignal.rootState]), B(() => {
3656
+ }, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]), V(() => {
3657
+ p();
3658
+ }, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), V(() => {
3659
+ B();
3660
+ }, [e.builderContextSignal.rootState]), V(() => {
3659
3661
  e.data && n(e.data);
3660
- }, [e.data]), B(() => {
3662
+ }, [e.data]), V(() => {
3661
3663
  e.locale && n({
3662
3664
  locale: e.locale
3663
3665
  });
3664
- }, [e.locale]), B(() => () => {
3666
+ }, [e.locale]), V(() => () => {
3665
3667
  M() && (window.removeEventListener("message", l), window.removeEventListener(
3666
3668
  "builder:component:stateChangeListenerActivated",
3667
- E
3669
+ B
3668
3670
  ));
3669
3671
  }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3670
3672
  r,
3671
3673
  {
3672
3674
  ref: t,
3673
- onClick: (h) => I(h),
3675
+ onClick: (h) => C(h),
3674
3676
  "builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
3675
3677
  "builder-model": e.model,
3676
3678
  ...o(),
@@ -3683,7 +3685,7 @@ function Hn(e) {
3683
3685
  ) : null });
3684
3686
  }
3685
3687
  function qn(e) {
3686
- const [t, n] = C(
3688
+ const [t, n] = T(
3687
3689
  () => `
3688
3690
  ${On({
3689
3691
  cssCode: e.cssCode,
@@ -3733,69 +3735,75 @@ const Kn = ({
3733
3735
  meta: e == null ? void 0 : e.meta
3734
3736
  } : void 0;
3735
3737
  function Ie(e) {
3736
- var c, u, f, d, m, g, p;
3737
- const [t, n] = C(
3738
+ var c, u, f, d, m, g, y;
3739
+ const [t, n] = T(
3738
3740
  () => {
3739
- var I, x;
3741
+ var C, p;
3740
3742
  return Nn({
3741
3743
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3742
- variationId: (I = e.content) == null ? void 0 : I.testVariationId,
3744
+ variationId: (C = e.content) == null ? void 0 : C.testVariationId,
3743
3745
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3744
- contentId: (x = e.content) == null ? void 0 : x.id
3746
+ contentId: (p = e.content) == null ? void 0 : p.id
3745
3747
  });
3746
3748
  }
3747
3749
  );
3748
- function i(I) {
3749
- l((x) => ({
3750
- ...x,
3751
- rootState: I
3750
+ function i(C) {
3751
+ l((p) => ({
3752
+ ...p,
3753
+ rootState: C
3752
3754
  }));
3753
3755
  }
3754
- const [o, r] = C(
3755
- () => [
3756
- ...ke(),
3757
- ...e.customComponents || []
3758
- ].reduce(
3759
- (I, { component: x, ...E }) => ({
3760
- ...I,
3761
- [E.name]: {
3762
- component: x,
3763
- ...ge(E)
3764
- }
3756
+ const [o, r] = T(
3757
+ () => {
3758
+ var C;
3759
+ return [
3760
+ ...ke(),
3761
+ ...((C = e.customComponents) == null ? void 0 : C.filter(({ models: p }) => !(p != null && p.length) || !e.model ? !0 : p.includes(e.model))) || []
3762
+ ].reduce(
3763
+ (p, { component: B, ...E }) => ({
3764
+ ...p,
3765
+ [E.name]: {
3766
+ component: B,
3767
+ ...ge(E)
3768
+ }
3769
+ }),
3770
+ {}
3771
+ );
3772
+ }
3773
+ ), [a, l] = T(() => {
3774
+ var C;
3775
+ return {
3776
+ content: zn({
3777
+ content: e.content,
3778
+ data: e.data
3765
3779
  }),
3766
- {}
3767
- )
3768
- ), [a, l] = C(() => ({
3769
- content: zn({
3770
- content: e.content,
3771
- data: e.data
3772
- }),
3773
- localState: void 0,
3774
- rootState: Kn({
3775
- content: e.content,
3776
- data: e.data,
3777
- locale: e.locale
3778
- }),
3779
- rootSetState: i,
3780
- context: e.context || {},
3781
- canTrack: e.canTrack,
3782
- apiKey: e.apiKey,
3783
- apiVersion: e.apiVersion,
3784
- componentInfos: [
3785
- ...ke(),
3786
- ...e.customComponents || []
3787
- ].reduce(
3788
- (I, { component: x, ...E }) => ({
3789
- ...I,
3790
- [E.name]: ge(E)
3780
+ localState: void 0,
3781
+ rootState: Kn({
3782
+ content: e.content,
3783
+ data: e.data,
3784
+ locale: e.locale
3791
3785
  }),
3792
- {}
3793
- ),
3794
- inheritedStyles: {},
3795
- BlocksWrapper: e.blocksWrapper || "div",
3796
- BlocksWrapperProps: e.blocksWrapperProps || {},
3797
- nonce: e.nonce || ""
3798
- }));
3786
+ rootSetState: i,
3787
+ context: e.context || {},
3788
+ canTrack: e.canTrack,
3789
+ apiKey: e.apiKey,
3790
+ apiVersion: e.apiVersion,
3791
+ componentInfos: [
3792
+ ...ke(),
3793
+ ...((C = e.customComponents) == null ? void 0 : C.filter(({ models: p }) => !(p != null && p.length) || !e.model ? !0 : p.includes(e.model))) || []
3794
+ ].reduce(
3795
+ (p, { component: B, ...E }) => ({
3796
+ ...p,
3797
+ [E.name]: ge(E)
3798
+ }),
3799
+ {}
3800
+ ),
3801
+ inheritedStyles: {},
3802
+ BlocksWrapper: e.blocksWrapper || "div",
3803
+ BlocksWrapperProps: e.blocksWrapperProps || {},
3804
+ nonce: e.nonce || ""
3805
+ };
3806
+ });
3799
3807
  return /* @__PURE__ */ s(
3800
3808
  Be.Provider,
3801
3809
  {
@@ -3842,7 +3850,7 @@ function Ie(e) {
3842
3850
  /* @__PURE__ */ s(
3843
3851
  D,
3844
3852
  {
3845
- blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
3853
+ blocks: (y = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : y.blocks,
3846
3854
  context: a,
3847
3855
  registeredComponents: o,
3848
3856
  linkComponent: e.linkComponent
@@ -3856,7 +3864,7 @@ function Ie(e) {
3856
3864
  }
3857
3865
  function _n(e) {
3858
3866
  var a;
3859
- const [t, n] = C(
3867
+ const [t, n] = T(
3860
3868
  () => Bn({
3861
3869
  canTrack: Q(e.canTrack),
3862
3870
  content: e.content
@@ -3885,9 +3893,8 @@ function _n(e) {
3885
3893
  canTrack: Q(e.canTrack)
3886
3894
  });
3887
3895
  }
3888
- return B(() => {
3889
- }, []), B(() => {
3890
- }), /* @__PURE__ */ P(R, { children: [
3896
+ return V(() => {
3897
+ }, []), /* @__PURE__ */ P(R, { children: [
3891
3898
  !e.isNestedRender && z !== "reactNative" ? /* @__PURE__ */ s(
3892
3899
  ce,
3893
3900
  {
@@ -4003,7 +4010,7 @@ function Yn(e) {
4003
4010
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4004
4011
  ].filter(Boolean).join(" ");
4005
4012
  }
4006
- const [o, r] = C(() => {
4013
+ const [o, r] = T(() => {
4007
4014
  var d;
4008
4015
  return (d = e.symbol) == null ? void 0 : d.content;
4009
4016
  });
@@ -4015,8 +4022,8 @@ function Yn(e) {
4015
4022
  d && r(d);
4016
4023
  });
4017
4024
  }
4018
- return B(() => {
4019
- }, []), B(() => {
4025
+ return V(() => {
4026
+ }, []), V(() => {
4020
4027
  a();
4021
4028
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4022
4029
  _n,