@builder.io/sdk-react 2.0.1 → 2.0.3

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 (71) hide show
  1. package/lib/browser/blocks-exports.cjs +29 -29
  2. package/lib/browser/blocks-exports.mjs +302 -294
  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 +2 -0
  8. package/lib/browser/server-entry-0687830a.js +688 -0
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/{accordion-4a70912d.js → accordion-0eca9b08.js} +1 -1
  12. package/lib/edge/{accordion-6ad2cec7.cjs → accordion-368a2cf8.cjs} +1 -1
  13. package/lib/edge/{blocks-fedde8d2.js → blocks-db3cfcac.js} +130 -129
  14. package/lib/edge/blocks-exports.cjs +1 -1
  15. package/lib/edge/blocks-exports.mjs +2 -2
  16. package/lib/edge/{blocks-0bd38a83.cjs → blocks-f524a758.cjs} +13 -13
  17. package/lib/edge/{button-f6426eff.cjs → button-3ed29654.cjs} +1 -1
  18. package/lib/edge/{button-af35e8de.js → button-e852700f.js} +2 -2
  19. package/lib/edge/columns-1f84e26e.cjs +28 -0
  20. package/lib/edge/{columns-1065c0ae.js → columns-ee464f6c.js} +49 -48
  21. package/lib/edge/{content-variants-773afb9f.cjs → content-variants-42f2495b.cjs} +8 -8
  22. package/lib/edge/{content-variants-3d57a82f.js → content-variants-c0257a99.js} +241 -236
  23. package/lib/edge/{form-5762c22a.cjs → form-4444faf2.cjs} +1 -1
  24. package/lib/edge/{form-0a58d0e4.js → form-8191004e.js} +3 -3
  25. package/lib/edge/{get-class-prop-name-3061c329.cjs → get-class-prop-name-5fc98fcc.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-268b0f61.js → get-class-prop-name-d18337d2.js} +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-59bb70c7.cjs → img-10ef20a5.cjs} +1 -1
  30. package/lib/edge/{img-252c9967.js → img-a24ed75f.js} +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-3876429d.js} +1 -1
  36. package/lib/edge/{input-2163d4dc.cjs → input-6325bfc0.cjs} +1 -1
  37. package/lib/edge/{select-39231177.cjs → select-3f0f00f3.cjs} +1 -1
  38. package/lib/edge/{select-cfa0eb8e.js → select-5dc1c7d1.js} +1 -1
  39. package/lib/edge/server-entry-805b9266.cjs +2 -0
  40. package/lib/edge/server-entry-ff728468.js +689 -0
  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-20fe5e4f.js} +3 -3
  44. package/lib/edge/{slot-69da8c56.cjs → slot-a64b535f.cjs} +1 -1
  45. package/lib/edge/{symbol-bd999a19.cjs → symbol-5012ed02.cjs} +1 -1
  46. package/lib/edge/{symbol-4a8a6cda.js → symbol-e95082e1.js} +2 -2
  47. package/lib/edge/{tabs-c3ff0c70.js → tabs-261e8cd4.js} +3 -3
  48. package/lib/edge/{tabs-3d0e242e.cjs → tabs-d672f816.cjs} +1 -1
  49. package/lib/node/blocks-exports.cjs +16 -16
  50. package/lib/node/blocks-exports.mjs +259 -251
  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-160b6846.cjs} +2 -2
  56. package/lib/node/{node-runtime-78262e65.js → node-runtime-405effc5.js} +3 -2
  57. package/lib/node/server-entry-02cecfb7.cjs +2 -0
  58. package/lib/node/server-entry-0687830a.js +688 -0
  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/types/functions/register-component.d.ts +2 -2
  64. package/lib/browser/server-entry-29c5c31c.cjs +0 -2
  65. package/lib/browser/server-entry-f9067095.js +0 -695
  66. package/lib/edge/columns-f607250b.cjs +0 -28
  67. package/lib/edge/image-ea37781b.cjs +0 -17
  68. package/lib/edge/server-entry-4750de9c.cjs +0 -2
  69. package/lib/edge/server-entry-681e8e79.js +0 -695
  70. package/lib/node/server-entry-5f9f100f.js +0 -695
  71. package/lib/node/server-entry-63058f3f.cjs +0 -2
@@ -3,9 +3,9 @@ var He = Object.defineProperty;
3
3
  var qe = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var ie = (e, t, n) => (qe(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 K, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as Ke, setupBrowserForEditing as ze, createRegisterComponentMessage as _e, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-5f9f100f.js";
7
- import { createContext as we, useState as C, useEffect as B, useContext as be, useRef as ee, createElement as Re } from "react";
8
- import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Ee } from "./node-runtime-78262e65.js";
6
+ import { TARGET as K, checkIsDefined as Y, logger as Z, isBrowser as G, isEditing as $, registerInsertMenu as Ke, setupBrowserForEditing as ze, createRegisterComponentMessage as _e, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-0687830a.js";
7
+ import { createContext as we, useState as T, useEffect as V, useContext as be, useRef as ee, createElement as Re } from "react";
8
+ import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, fastClone as de, set as Ee } from "./node-runtime-405effc5.js";
9
9
  const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
10
10
  function ue(e) {
11
11
  return /* @__PURE__ */ s(R, { children: it(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 }) }) });
@@ -320,8 +320,8 @@ function ht(e) {
320
320
  leading: !1
321
321
  });
322
322
  function r(f) {
323
- const d = f.getBoundingClientRect(), m = window.innerHeight, p = (e.thresholdPercent || 0) / 100 * m;
324
- return d.bottom > p && d.top < m - p;
323
+ const d = f.getBoundingClientRect(), m = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * m;
324
+ return d.bottom > y && d.top < m - y;
325
325
  }
326
326
  const c = e.steps[0].styles;
327
327
  function u() {
@@ -520,7 +520,7 @@ function Tt(e) {
520
520
  return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
521
521
  }
522
522
  function n() {
523
- var x, E, V;
523
+ var p, B, E;
524
524
  const i = X({
525
525
  block: e.block,
526
526
  localState: e.context.localState,
@@ -529,7 +529,7 @@ function Tt(e) {
529
529
  context: e.context.context,
530
530
  shouldEvaluateBindings: !0
531
531
  }), o = i.responsiveStyles, l = e.context.content, a = De(
532
- ((x = l == null ? void 0 : l.meta) == null ? void 0 : x.breakpoints) || {}
532
+ ((p = l == null ? void 0 : l.meta) == null ? void 0 : p.breakpoints) || {}
533
533
  ), r = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
534
534
  if (!f)
535
535
  return "";
@@ -550,18 +550,18 @@ function Tt(e) {
550
550
  "small",
551
551
  a
552
552
  )
553
- }) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
554
- let I = "";
555
- if (p) {
556
- const A = ((V = (E = p.steps) == null ? void 0 : E[1]) == null ? void 0 : V.styles) || {};
557
- I = _({
553
+ }) : "", y = i.animations && i.animations.find((A) => A.trigger === "hover");
554
+ let C = "";
555
+ if (y) {
556
+ const A = ((E = (B = y.steps) == null ? void 0 : B[1]) == null ? void 0 : E.styles) || {};
557
+ C = _({
558
558
  className: `${f}:hover`,
559
559
  styles: {
560
560
  ...A,
561
- transition: `all ${p.duration}s ${te(
562
- p.easing
561
+ transition: `all ${y.duration}s ${te(
562
+ y.easing
563
563
  )}`,
564
- transitionDelay: p.delay ? `${p.delay}s` : "0s"
564
+ transitionDelay: y.delay ? `${y.delay}s` : "0s"
565
565
  }
566
566
  }) || "";
567
567
  }
@@ -569,7 +569,7 @@ function Tt(e) {
569
569
  d,
570
570
  m,
571
571
  g,
572
- I
572
+ C
573
573
  ].join(" ");
574
574
  }
575
575
  return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
@@ -715,7 +715,7 @@ const At = ({
715
715
  };
716
716
  function ye(e) {
717
717
  var i;
718
- const [t, n] = C(
718
+ const [t, n] = T(
719
719
  () => e.isInteractive ? Vt : e.componentRef
720
720
  );
721
721
  return /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
@@ -745,7 +745,7 @@ function ye(e) {
745
745
  ) }) : null });
746
746
  }
747
747
  function Nt(e) {
748
- const [t, n] = C(() => e.repeatContext);
748
+ const [t, n] = T(() => e.repeatContext);
749
749
  return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
750
750
  z,
751
751
  {
@@ -787,9 +787,9 @@ function z(e) {
787
787
  return e.block.tagName === "a" || ((m = i().properties) == null ? void 0 : m.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
788
788
  }
789
789
  function l() {
790
- var g, p;
790
+ var g, y;
791
791
  if ((g = e.block.repeat) != null && g.collection)
792
- return !!((p = n == null ? void 0 : n()) != null && p.length);
792
+ return !!((y = n == null ? void 0 : n()) != null && y.length);
793
793
  const d = "hide" in i() ? i().hide : !1;
794
794
  return ("show" in i() ? i().show : !0) && !d;
795
795
  }
@@ -798,7 +798,7 @@ function z(e) {
798
798
  return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
799
799
  }
800
800
  function r() {
801
- var d, m, g, p;
801
+ var d, m, g, y;
802
802
  return {
803
803
  blockChildren: (d = i().children) != null ? d : [],
804
804
  componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
@@ -817,10 +817,10 @@ function z(e) {
817
817
  registeredComponents: e.registeredComponents,
818
818
  builderBlock: i(),
819
819
  includeBlockProps: ((g = t == null ? void 0 : t()) == null ? void 0 : g.noWrap) === !0,
820
- isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
820
+ isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
821
821
  };
822
822
  }
823
- return B(() => {
823
+ return V(() => {
824
824
  const d = i().id, m = i().animations;
825
825
  m && d && mt(
826
826
  m.map((g) => ({
@@ -969,38 +969,38 @@ function D(e) {
969
969
  const Ft = (e) => `builder-columns ${e}-breakpoints`;
970
970
  function $t(e) {
971
971
  var A, O;
972
- const [t, n] = C(
972
+ const [t, n] = T(
973
973
  () => typeof e.space == "number" ? e.space || 0 : 20
974
- ), [i, o] = C(() => e.columns || []), [l, a] = C(
974
+ ), [i, o] = T(() => e.columns || []), [l, a] = T(
975
975
  () => e.stackColumnsAt || "tablet"
976
976
  );
977
- function r(S) {
978
- return S.link ? e.builderLinkComponent || "a" : "div";
977
+ function r(x) {
978
+ return x.link ? e.builderLinkComponent || "a" : "div";
979
979
  }
980
- function c(S) {
980
+ function c(x) {
981
981
  var w;
982
- return ((w = i[S]) == null ? void 0 : w.width) || 100 / i.length;
982
+ return ((w = i[x]) == null ? void 0 : w.width) || 100 / i.length;
983
983
  }
984
- function u(S) {
985
- const w = c(S), N = t * (i.length - 1) * (w / 100);
984
+ function u(x) {
985
+ const w = c(x), N = t * (i.length - 1) * (w / 100);
986
986
  return `calc(${w}% - ${N}px)`;
987
987
  }
988
988
  function f({
989
- stackedStyle: S,
989
+ stackedStyle: x,
990
990
  desktopStyle: w
991
991
  }) {
992
- return l === "tablet" ? S : w;
992
+ return l === "tablet" ? x : w;
993
993
  }
994
994
  function d({
995
- stackedStyle: S,
995
+ stackedStyle: x,
996
996
  desktopStyle: w
997
997
  }) {
998
- return l === "never" ? w : S;
998
+ return l === "never" ? w : x;
999
999
  }
1000
- const [m, g] = C(
1000
+ const [m, g] = T(
1001
1001
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1002
1002
  );
1003
- function p() {
1003
+ function y() {
1004
1004
  return {
1005
1005
  "--flex-dir": m,
1006
1006
  "--flex-dir-tablet": f({
@@ -1009,8 +1009,8 @@ function $t(e) {
1009
1009
  })
1010
1010
  };
1011
1011
  }
1012
- function I(S) {
1013
- const w = S === 0 ? 0 : t, N = u(S), b = `${w}px`, h = "100%", y = 0;
1012
+ function C(x) {
1013
+ const w = x === 0 ? 0 : t, N = u(x), b = `${w}px`, h = "100%", v = 0;
1014
1014
  return {
1015
1015
  ...{
1016
1016
  display: "flex",
@@ -1024,7 +1024,7 @@ function $t(e) {
1024
1024
  desktopStyle: N
1025
1025
  }),
1026
1026
  "--column-margin-left-mobile": d({
1027
- stackedStyle: y,
1027
+ stackedStyle: v,
1028
1028
  desktopStyle: b
1029
1029
  }),
1030
1030
  "--column-width-tablet": f({
@@ -1032,74 +1032,75 @@ function $t(e) {
1032
1032
  desktopStyle: N
1033
1033
  }),
1034
1034
  "--column-margin-left-tablet": f({
1035
- stackedStyle: y,
1035
+ stackedStyle: v,
1036
1036
  desktopStyle: b
1037
1037
  })
1038
1038
  };
1039
1039
  }
1040
- function x(S) {
1040
+ function p(x) {
1041
1041
  var N, b;
1042
1042
  return De(
1043
1043
  ((b = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : b.breakpoints) || {}
1044
- )[S].max;
1044
+ )[x].max;
1045
1045
  }
1046
- function E() {
1046
+ function B() {
1047
+ const x = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1047
1048
  return `
1048
- @media (max-width: ${x("medium")}px) {
1049
+ @media (max-width: ${p("medium")}px) {
1049
1050
  .${e.builderBlock.id}-breakpoints {
1050
1051
  flex-direction: var(--flex-dir-tablet);
1051
1052
  align-items: stretch;
1052
1053
  }
1053
1054
 
1054
- .${e.builderBlock.id}-breakpoints > .builder-column {
1055
+ ${x} {
1055
1056
  width: var(--column-width-tablet) !important;
1056
1057
  margin-left: var(--column-margin-left-tablet) !important;
1057
1058
  }
1058
1059
  }
1059
1060
 
1060
- @media (max-width: ${x("small")}px) {
1061
+ @media (max-width: ${p("small")}px) {
1061
1062
  .${e.builderBlock.id}-breakpoints {
1062
1063
  flex-direction: var(--flex-dir);
1063
1064
  align-items: stretch;
1064
1065
  }
1065
1066
 
1066
- .${e.builderBlock.id}-breakpoints > .builder-column {
1067
+ ${x} {
1067
1068
  width: var(--column-width-mobile) !important;
1068
1069
  margin-left: var(--column-margin-left-mobile) !important;
1069
1070
  }
1070
1071
  },
1071
1072
  `;
1072
1073
  }
1073
- function V(S, w) {
1074
+ function E(x, w) {
1074
1075
  return {
1075
- ...S.link ? {
1076
- href: S.link
1076
+ ...x.link ? {
1077
+ href: x.link
1077
1078
  } : {},
1078
1079
  [H()]: "builder-column",
1079
- style: Fe(I(w))
1080
+ style: Fe(C(w))
1080
1081
  };
1081
1082
  }
1082
1083
  return /* @__PURE__ */ P(R, { children: [
1083
1084
  /* @__PURE__ */ P(
1084
1085
  "div",
1085
1086
  {
1086
- className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-fe220f58",
1087
- style: p(),
1087
+ className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
1088
+ style: y(),
1088
1089
  children: [
1089
1090
  /* @__PURE__ */ s(
1090
1091
  ne,
1091
1092
  {
1092
1093
  id: "builderio-columns",
1093
- styles: E(),
1094
+ styles: B(),
1094
1095
  nonce: e.builderContext.nonce
1095
1096
  }
1096
1097
  ),
1097
- (O = e.columns) == null ? void 0 : O.map((S, w) => /* @__PURE__ */ s(
1098
+ (O = e.columns) == null ? void 0 : O.map((x, w) => /* @__PURE__ */ s(
1098
1099
  ue,
1099
1100
  {
1100
- TagName: r(S),
1101
+ TagName: r(x),
1101
1102
  actionAttributes: {},
1102
- attributes: V(S, w),
1103
+ attributes: E(x, w),
1103
1104
  children: /* @__PURE__ */ s(
1104
1105
  D,
1105
1106
  {
@@ -1111,7 +1112,7 @@ function $t(e) {
1111
1112
  context: e.builderContext,
1112
1113
  registeredComponents: e.builderComponents,
1113
1114
  linkComponent: e.builderLinkComponent,
1114
- blocks: S.blocks
1115
+ blocks: x.blocks
1115
1116
  }
1116
1117
  )
1117
1118
  },
@@ -1120,7 +1121,7 @@ function $t(e) {
1120
1121
  ]
1121
1122
  }
1122
1123
  ),
1123
- /* @__PURE__ */ s("style", { children: `.div-fe220f58 {
1124
+ /* @__PURE__ */ s("style", { children: `.div-34f576bb {
1124
1125
  display: flex;
1125
1126
  line-height: normal;
1126
1127
  }` })
@@ -1168,12 +1169,14 @@ function jt(e) {
1168
1169
  // images, otherwise you can supply this prop manually
1169
1170
  !(d.match(/builder\.io/) || d.match(/cdn\.shopify\.com/)))
1170
1171
  return e.srcset;
1171
- if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1172
- if (!e.srcset.includes(e.image.split("?")[0]))
1173
- return console.debug("Removed given srcset"), oe(d);
1174
- } else if (e.image && !e.srcset)
1172
+ if (!e.noWebp) {
1173
+ if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1174
+ if (!e.srcset.includes(e.image.split("?")[0]))
1175
+ return console.debug("Removed given srcset"), oe(d);
1176
+ } else if (e.image && !e.srcset)
1177
+ return oe(d);
1175
1178
  return oe(d);
1176
- return oe(d);
1179
+ }
1177
1180
  }
1178
1181
  function n() {
1179
1182
  var f;
@@ -1205,7 +1208,7 @@ function jt(e) {
1205
1208
  objectFit: e.backgroundSize || "cover",
1206
1209
  ...i()
1207
1210
  },
1208
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-ac3dff4a",
1211
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-56bbd606",
1209
1212
  src: e.image,
1210
1213
  srcSet: t(),
1211
1214
  sizes: e.sizes
@@ -1215,23 +1218,23 @@ function jt(e) {
1215
1218
  e.aspectRatio && !((l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent) ? /* @__PURE__ */ s(
1216
1219
  "div",
1217
1220
  {
1218
- className: "builder-image-sizer div-ac3dff4a",
1221
+ className: "builder-image-sizer div-56bbd606",
1219
1222
  style: {
1220
1223
  paddingTop: e.aspectRatio * 100 + "%"
1221
1224
  }
1222
1225
  }
1223
1226
  ) : null,
1224
1227
  (r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1225
- !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
1228
+ !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
1226
1229
  ] }),
1227
- /* @__PURE__ */ s("style", { children: `.img-ac3dff4a {
1230
+ /* @__PURE__ */ s("style", { children: `.img-56bbd606 {
1228
1231
  opacity: 1;
1229
1232
  transition: opacity 0.2s ease-in-out;
1230
- }.div-ac3dff4a {
1233
+ }.div-56bbd606 {
1231
1234
  width: 100%;
1232
1235
  pointer-events: none;
1233
1236
  font-size: 0;
1234
- }.div-ac3dff4a-2 {
1237
+ }.div-56bbd606-2 {
1235
1238
  display: flex;
1236
1239
  flex-direction: column;
1237
1240
  align-items: stretch;
@@ -1391,7 +1394,7 @@ const ae = {
1391
1394
  }, ve = (e) => e.toString();
1392
1395
  function Ht(e) {
1393
1396
  var d;
1394
- const [t, n] = C(() => []);
1397
+ const [t, n] = T(() => []);
1395
1398
  function i() {
1396
1399
  return !!(e.grid || e.oneAtATime);
1397
1400
  }
@@ -1417,7 +1420,7 @@ function Ht(e) {
1417
1420
  cursor: "pointer"
1418
1421
  };
1419
1422
  return Object.fromEntries(
1420
- Object.entries(g).filter(([p, I]) => I !== void 0)
1423
+ Object.entries(g).filter(([y, C]) => C !== void 0)
1421
1424
  );
1422
1425
  }
1423
1426
  function a(m) {
@@ -1429,23 +1432,23 @@ function Ht(e) {
1429
1432
  function c() {
1430
1433
  let m = null;
1431
1434
  if (e.grid && t.length && document) {
1432
- const p = t[0];
1433
- let x = document.querySelector(
1434
- `.builder-accordion-title[data-index="${p}"]`
1435
+ const y = t[0];
1436
+ let p = document.querySelector(
1437
+ `.builder-accordion-title[data-index="${y}"]`
1435
1438
  );
1436
- if (m = p, x) {
1437
- let E = x.getBoundingClientRect();
1438
- for (; x = x && x.nextElementSibling; )
1439
- if (x) {
1440
- if (x.classList.contains("builder-accordion-detail"))
1439
+ if (m = y, p) {
1440
+ let B = p.getBoundingClientRect();
1441
+ for (; p = p && p.nextElementSibling; )
1442
+ if (p) {
1443
+ if (p.classList.contains("builder-accordion-detail"))
1441
1444
  continue;
1442
- const V = x.getBoundingClientRect();
1443
- if (V.left > E.left) {
1445
+ const E = p.getBoundingClientRect();
1446
+ if (E.left > B.left) {
1444
1447
  const A = parseInt(
1445
- x.getAttribute("data-index") || "",
1448
+ p.getAttribute("data-index") || "",
1446
1449
  10
1447
1450
  );
1448
- isNaN(A) || (E = V, m = A);
1451
+ isNaN(A) || (B = E, m = A);
1449
1452
  } else
1450
1453
  break;
1451
1454
  }
@@ -1461,7 +1464,7 @@ function Ht(e) {
1461
1464
  }
1462
1465
  };
1463
1466
  return Object.fromEntries(
1464
- Object.entries(m).filter(([g, p]) => p !== void 0)
1467
+ Object.entries(m).filter(([g, y]) => y !== void 0)
1465
1468
  );
1466
1469
  }
1467
1470
  function f(m) {
@@ -1478,7 +1481,7 @@ function Ht(e) {
1478
1481
  order: c() !== null ? ve(g) : ve(g + 1)
1479
1482
  },
1480
1483
  "data-index": g,
1481
- onClick: (p) => f(g),
1484
+ onClick: (y) => f(g),
1482
1485
  children: /* @__PURE__ */ s(
1483
1486
  D,
1484
1487
  {
@@ -2131,7 +2134,7 @@ const Qt = {
2131
2134
  };
2132
2135
  function Zt(e) {
2133
2136
  var l;
2134
- const [t, n] = C(
2137
+ const [t, n] = T(
2135
2138
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2136
2139
  );
2137
2140
  function i(a) {
@@ -2247,8 +2250,8 @@ const nn = {
2247
2250
  }]
2248
2251
  };
2249
2252
  function on(e) {
2250
- const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []);
2251
- return B(() => {
2253
+ const t = ee(null), [n, i] = T(() => []), [o, l] = T(() => []);
2254
+ return V(() => {
2252
2255
  var r;
2253
2256
  if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
2254
2257
  return;
@@ -2301,7 +2304,7 @@ const an = {
2301
2304
  }]
2302
2305
  }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2303
2306
  function sn(e) {
2304
- const t = ee(null), [n, i] = C(() => []), [o, l] = C(() => []), [a, r] = C(() => !1);
2307
+ const t = ee(null), [n, i] = T(() => []), [o, l] = T(() => []), [a, r] = T(() => !1);
2305
2308
  function c() {
2306
2309
  if (!t.current || !t.current.getElementsByTagName)
2307
2310
  return;
@@ -2320,7 +2323,7 @@ function sn(e) {
2320
2323
  }
2321
2324
  }
2322
2325
  }
2323
- return B(() => {
2326
+ return V(() => {
2324
2327
  t.current && !a && (r(!0), c());
2325
2328
  }, [t.current, a]), /* @__PURE__ */ s(
2326
2329
  "div",
@@ -2577,68 +2580,68 @@ const cn = {
2577
2580
  };
2578
2581
  function fn(e) {
2579
2582
  var d, m;
2580
- const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, l] = C(() => null), [a, r] = C(() => "");
2583
+ const t = ee(null), [n, i] = T(() => "unsubmitted"), [o, l] = T(() => null), [a, r] = T(() => "");
2581
2584
  function c(g) {
2582
- var I, x;
2583
- const p = {
2585
+ var C, p;
2586
+ const y = {
2584
2587
  ...e.builderContext.rootState,
2585
2588
  ...g
2586
2589
  };
2587
- e.builderContext.rootSetState ? (x = (I = e.builderContext).rootSetState) == null || x.call(I, p) : e.builderContext.rootState = p;
2590
+ e.builderContext.rootSetState ? (p = (C = e.builderContext).rootSetState) == null || p.call(C, y) : e.builderContext.rootState = y;
2588
2591
  }
2589
2592
  function u() {
2590
2593
  return $() && e.previewState || n;
2591
2594
  }
2592
2595
  function f(g) {
2593
- var I;
2594
- const p = e.sendWithJs || e.sendSubmissionsTo === "email";
2596
+ var C;
2597
+ const y = e.sendWithJs || e.sendSubmissionsTo === "email";
2595
2598
  if (e.sendSubmissionsTo === "zapier")
2596
2599
  g.preventDefault();
2597
- else if (p) {
2600
+ else if (y) {
2598
2601
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2599
2602
  g.preventDefault();
2600
2603
  return;
2601
2604
  }
2602
2605
  g.preventDefault();
2603
- const x = g.currentTarget || g.target, E = e.customHeaders || {};
2604
- let V;
2605
- const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2606
+ const p = g.currentTarget || g.target, B = e.customHeaders || {};
2607
+ let E;
2608
+ const A = new FormData(p), O = Array.from(p.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2606
2609
  let h;
2607
- const y = b.name;
2610
+ const v = b.name;
2608
2611
  if (b instanceof HTMLInputElement)
2609
2612
  if (b.type === "radio") {
2610
2613
  if (b.checked)
2611
2614
  return h = b.name, {
2612
- key: y,
2615
+ key: v,
2613
2616
  value: h
2614
2617
  };
2615
2618
  } else if (b.type === "checkbox")
2616
2619
  h = b.checked;
2617
2620
  else if (b.type === "number" || b.type === "range") {
2618
- const v = b.valueAsNumber;
2619
- isNaN(v) || (h = v);
2621
+ const S = b.valueAsNumber;
2622
+ isNaN(S) || (h = S);
2620
2623
  } else
2621
2624
  b.type === "file" ? h = b.files : h = b.value;
2622
2625
  else
2623
2626
  h = b.value;
2624
2627
  return {
2625
- key: y,
2628
+ key: v,
2626
2629
  value: h
2627
2630
  };
2628
2631
  });
2629
- let S = e.contentType;
2630
- if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
2631
- (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (S = "multipart/form-data");
2632
- }), S !== "application/json")
2633
- V = A;
2632
+ let x = e.contentType;
2633
+ if (e.sendSubmissionsTo === "email" && (x = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
2634
+ (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (x = "multipart/form-data");
2635
+ }), x !== "application/json")
2636
+ E = A;
2634
2637
  else {
2635
2638
  const b = {};
2636
- Array.from(O).forEach(({ value: h, key: y }) => {
2637
- Ee(b, y, h);
2638
- }), V = JSON.stringify(b);
2639
+ Array.from(O).forEach(({ value: h, key: v }) => {
2640
+ Ee(b, v, h);
2641
+ }), E = JSON.stringify(b);
2639
2642
  }
2640
- S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (E["content-type"] = S));
2641
- const w = new CustomEvent("presubmit", { detail: { body: V } });
2643
+ x && x !== "multipart/form-data" && (y && ((C = e.action) != null && C.includes("zapier.com")) || (B["content-type"] = x));
2644
+ const w = new CustomEvent("presubmit", { detail: { body: E } });
2642
2645
  if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2643
2646
  return;
2644
2647
  i("sending");
@@ -2647,21 +2650,21 @@ function fn(e) {
2647
2650
  )}&name=${encodeURIComponent(e.name || "")}`;
2648
2651
  fetch(
2649
2652
  e.sendSubmissionsTo === "email" ? N : e.action,
2650
- { body: V, headers: E, method: e.method || "post" }
2653
+ { body: E, headers: B, method: e.method || "post" }
2651
2654
  ).then(
2652
2655
  async (b) => {
2653
2656
  let h;
2654
- const y = b.headers.get("content-type");
2655
- if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2656
- let v = mn(h, e.errorMessagePath);
2657
- v && (typeof v != "string" && (v = JSON.stringify(v)), r(v), c({ formErrorMessage: v }));
2657
+ const v = b.headers.get("content-type");
2658
+ if (v && v.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2659
+ let S = mn(h, e.errorMessagePath);
2660
+ S && (typeof S != "string" && (S = JSON.stringify(S)), r(S), c({ formErrorMessage: S }));
2658
2661
  }
2659
2662
  if (l(h), i(b.ok ? "success" : "error"), b.ok) {
2660
- const v = new CustomEvent("submit:success", {
2663
+ const S = new CustomEvent("submit:success", {
2661
2664
  detail: { res: b, body: h }
2662
2665
  });
2663
2666
  if (t.current) {
2664
- if (t.current.dispatchEvent(v), v.defaultPrevented)
2667
+ if (t.current.dispatchEvent(S), S.defaultPrevented)
2665
2668
  return;
2666
2669
  e.resetFormOnSubmit !== !1 && t.current.reset();
2667
2670
  }
@@ -2697,7 +2700,7 @@ function fn(e) {
2697
2700
  onSubmit: (g) => f(g),
2698
2701
  ...e.attributes,
2699
2702
  children: [
2700
- 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(
2703
+ 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(
2701
2704
  z,
2702
2705
  {
2703
2706
  block: g,
@@ -2705,7 +2708,7 @@ function fn(e) {
2705
2708
  registeredComponents: e.builderComponents,
2706
2709
  linkComponent: e.builderLinkComponent
2707
2710
  },
2708
- `form-block-${p}`
2711
+ `form-block-${y}`
2709
2712
  )) }) : null,
2710
2713
  u() === "error" ? /* @__PURE__ */ s(
2711
2714
  D,
@@ -3431,37 +3434,37 @@ font-weight: ${r};
3431
3434
  }
3432
3435
  `, Mn = (e) => e ? "" : jn, Un = (e) => `variant-${e}`;
3433
3436
  function Hn(e) {
3434
- var V, A, O, S, w, N, b;
3437
+ var E, A, O, x, w, N, b;
3435
3438
  const t = ee(null);
3436
3439
  function n(h) {
3437
- var v, k;
3438
- const y = {
3440
+ var S, k;
3441
+ const v = {
3439
3442
  ...e.builderContextSignal.rootState,
3440
3443
  ...h
3441
3444
  };
3442
- e.builderContextSignal.rootSetState ? (k = (v = e.builderContextSignal).rootSetState) == null || k.call(v, y) : e.setBuilderContextSignal((T) => ({
3443
- ...T,
3444
- rootState: y
3445
+ e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, v) : e.setBuilderContextSignal((I) => ({
3446
+ ...I,
3447
+ rootState: v
3445
3448
  }));
3446
3449
  }
3447
3450
  function i(h) {
3448
- var v, k, T, W, j;
3449
- const y = {
3451
+ var S, k, I, W, j;
3452
+ const v = {
3450
3453
  ...e.builderContextSignal.content,
3451
3454
  ...h,
3452
3455
  data: {
3453
- ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
3456
+ ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
3454
3457
  ...h == null ? void 0 : h.data
3455
3458
  },
3456
3459
  meta: {
3457
3460
  ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
3458
3461
  ...h == null ? void 0 : h.meta,
3459
- 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)
3462
+ 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)
3460
3463
  }
3461
3464
  };
3462
3465
  e.setBuilderContextSignal((F) => ({
3463
3466
  ...F,
3464
- content: y
3467
+ content: v
3465
3468
  }));
3466
3469
  }
3467
3470
  function o() {
@@ -3470,7 +3473,7 @@ function Hn(e) {
3470
3473
  "aria-hidden": !0
3471
3474
  };
3472
3475
  }
3473
- const [l, a] = C(
3476
+ const [l, a] = T(
3474
3477
  () => e.contentWrapper || "div"
3475
3478
  );
3476
3479
  function r(h) {
@@ -3478,27 +3481,27 @@ function Hn(e) {
3478
3481
  model: e.model,
3479
3482
  trustedHosts: e.trustedHosts,
3480
3483
  callbacks: {
3481
- configureSdk: (y) => {
3482
- var T;
3483
- const { breakpoints: v, contentId: k } = y;
3484
- !k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || v && i({
3484
+ configureSdk: (v) => {
3485
+ var I;
3486
+ const { breakpoints: S, contentId: k } = v;
3487
+ !k || k !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || S && i({
3485
3488
  meta: {
3486
- breakpoints: v
3489
+ breakpoints: S
3487
3490
  }
3488
3491
  });
3489
3492
  },
3490
- animation: (y) => {
3491
- Ne(y);
3493
+ animation: (v) => {
3494
+ Ne(v);
3492
3495
  },
3493
- contentUpdate: (y) => {
3494
- i(y);
3496
+ contentUpdate: (v) => {
3497
+ i(v);
3495
3498
  }
3496
3499
  }
3497
3500
  })(h);
3498
3501
  }
3499
3502
  function c() {
3500
- var y, v;
3501
- const h = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.jsCode;
3503
+ var v, S;
3504
+ const h = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.jsCode;
3502
3505
  h && q({
3503
3506
  code: h,
3504
3507
  context: e.context || {},
@@ -3511,30 +3514,30 @@ function Hn(e) {
3511
3514
  enableCache: !1
3512
3515
  });
3513
3516
  }
3514
- const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
3515
- function I(h) {
3516
- var y, v;
3517
+ const [u, f] = T(() => ({})), [d, m] = T(() => ({})), [g, y] = T(() => !1);
3518
+ function C(h) {
3519
+ var v, S;
3517
3520
  if (e.builderContextSignal.content) {
3518
- const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
3521
+ const k = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
3519
3522
  he({
3520
3523
  type: "click",
3521
3524
  canTrack: Q(e.canTrack),
3522
- contentId: T,
3525
+ contentId: I,
3523
3526
  apiKey: e.apiKey,
3524
- variationId: k !== T ? k : void 0,
3527
+ variationId: k !== I ? k : void 0,
3525
3528
  ...$n(h),
3526
3529
  unique: !g
3527
3530
  });
3528
3531
  }
3529
- g || p(!0);
3532
+ g || y(!0);
3530
3533
  }
3531
- function x() {
3532
- var y, v, k;
3533
- const h = (k = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.httpRequests) != null ? k : {};
3534
- Object.entries(h).forEach(([T, W]) => {
3535
- if (!W || d[T] || u[T] && !$())
3534
+ function p() {
3535
+ var v, S, k;
3536
+ const h = (k = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.httpRequests) != null ? k : {};
3537
+ Object.entries(h).forEach(([I, W]) => {
3538
+ if (!W || d[I] || u[I] && !$())
3536
3539
  return;
3537
- d[T] = !0;
3540
+ d[I] = !0;
3538
3541
  const j = W.replace(
3539
3542
  /{{([^}]+)}}/g,
3540
3543
  (F, Ue) => String(
@@ -3550,16 +3553,16 @@ function Hn(e) {
3550
3553
  );
3551
3554
  Ge(j).then((F) => F.json()).then((F) => {
3552
3555
  n({
3553
- [T]: F
3554
- }), u[T] = !0;
3556
+ [I]: F
3557
+ }), u[I] = !0;
3555
3558
  }).catch((F) => {
3556
3559
  console.error("error fetching dynamic data", W, F);
3557
3560
  }).finally(() => {
3558
- d[T] = !1;
3561
+ d[I] = !1;
3559
3562
  });
3560
3563
  });
3561
3564
  }
3562
- function E() {
3565
+ function B() {
3563
3566
  $() && window.dispatchEvent(
3564
3567
  new CustomEvent(
3565
3568
  "builder:component:stateChange",
@@ -3574,8 +3577,8 @@ function Hn(e) {
3574
3577
  )
3575
3578
  );
3576
3579
  }
3577
- return B(() => {
3578
- var h, y;
3580
+ return V(() => {
3581
+ var h, v;
3579
3582
  if (G()) {
3580
3583
  if ($() && (window.addEventListener("message", r), Ke(), ze({
3581
3584
  ...e.locale ? {
@@ -3591,26 +3594,26 @@ function Hn(e) {
3591
3594
  e.builderContextSignal.componentInfos
3592
3595
  ).forEach((k) => {
3593
3596
  var W;
3594
- const T = _e(k);
3595
- (W = window.parent) == null || W.postMessage(T, "*");
3597
+ const I = _e(k);
3598
+ (W = window.parent) == null || W.postMessage(I, "*");
3596
3599
  }), window.addEventListener(
3597
3600
  "builder:component:stateChangeListenerActivated",
3598
- E
3601
+ B
3599
3602
  )), e.builderContextSignal.content && Q(e.canTrack)) {
3600
- const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, T = (y = e.builderContextSignal.content) == null ? void 0 : y.id, W = e.apiKey;
3603
+ const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, I = (v = e.builderContextSignal.content) == null ? void 0 : v.id, W = e.apiKey;
3601
3604
  he({
3602
3605
  type: "impression",
3603
3606
  canTrack: !0,
3604
- contentId: T,
3607
+ contentId: I,
3605
3608
  apiKey: W,
3606
- variationId: k !== T ? k : void 0
3609
+ variationId: k !== I ? k : void 0
3607
3610
  });
3608
3611
  }
3609
3612
  if (Je() && !$()) {
3610
- const k = new URL(location.href).searchParams, T = k.get("builder.preview"), W = k.get(
3611
- `builder.overrides.${T}`
3613
+ const k = new URL(location.href).searchParams, I = k.get("builder.preview"), W = k.get(
3614
+ `builder.overrides.${I}`
3612
3615
  ), j = k.get("apiKey") || k.get("builder.space");
3613
- T === e.model && j === e.apiKey && (!e.content || W === e.content.id) && Ie({
3616
+ I === e.model && j === e.apiKey && (!e.content || W === e.content.id) && Ie({
3614
3617
  model: e.model,
3615
3618
  apiKey: e.apiKey,
3616
3619
  apiVersion: e.builderContextSignal.apiVersion
@@ -3619,34 +3622,34 @@ function Hn(e) {
3619
3622
  });
3620
3623
  }
3621
3624
  }
3622
- }, []), B(() => {
3625
+ }, []), V(() => {
3623
3626
  e.apiKey || Z.error(
3624
3627
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3625
- ), c(), x(), E();
3626
- }, []), B(() => {
3628
+ ), c(), p(), B();
3629
+ }, []), V(() => {
3627
3630
  e.content && i(e.content);
3628
- }, [e.content]), B(() => {
3631
+ }, [e.content]), V(() => {
3629
3632
  c();
3630
- }, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), B(() => {
3631
- x();
3632
- }, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), B(() => {
3633
- E();
3634
- }, [e.builderContextSignal.rootState]), B(() => {
3633
+ }, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]), V(() => {
3634
+ p();
3635
+ }, [(x = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : x.httpRequests]), V(() => {
3636
+ B();
3637
+ }, [e.builderContextSignal.rootState]), V(() => {
3635
3638
  e.data && n(e.data);
3636
- }, [e.data]), B(() => {
3639
+ }, [e.data]), V(() => {
3637
3640
  e.locale && n({
3638
3641
  locale: e.locale
3639
3642
  });
3640
- }, [e.locale]), B(() => () => {
3643
+ }, [e.locale]), V(() => () => {
3641
3644
  G() && (window.removeEventListener("message", r), window.removeEventListener(
3642
3645
  "builder:component:stateChangeListenerActivated",
3643
- E
3646
+ B
3644
3647
  ));
3645
3648
  }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3646
3649
  l,
3647
3650
  {
3648
3651
  ref: t,
3649
- onClick: (h) => I(h),
3652
+ onClick: (h) => C(h),
3650
3653
  "builder-content-id": (w = e.builderContextSignal.content) == null ? void 0 : w.id,
3651
3654
  "builder-model": e.model,
3652
3655
  ...o(),
@@ -3659,7 +3662,7 @@ function Hn(e) {
3659
3662
  ) : null });
3660
3663
  }
3661
3664
  function qn(e) {
3662
- const [t, n] = C(
3665
+ const [t, n] = T(
3663
3666
  () => `
3664
3667
  ${On({
3665
3668
  cssCode: e.cssCode,
@@ -3709,69 +3712,75 @@ const Kn = ({
3709
3712
  meta: e == null ? void 0 : e.meta
3710
3713
  } : void 0;
3711
3714
  function Te(e) {
3712
- var c, u, f, d, m, g, p;
3713
- const [t, n] = C(
3715
+ var c, u, f, d, m, g, y;
3716
+ const [t, n] = T(
3714
3717
  () => {
3715
- var I, x;
3718
+ var C, p;
3716
3719
  return Nn({
3717
3720
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3718
- variationId: (I = e.content) == null ? void 0 : I.testVariationId,
3721
+ variationId: (C = e.content) == null ? void 0 : C.testVariationId,
3719
3722
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3720
- contentId: (x = e.content) == null ? void 0 : x.id
3723
+ contentId: (p = e.content) == null ? void 0 : p.id
3721
3724
  });
3722
3725
  }
3723
3726
  );
3724
- function i(I) {
3725
- r((x) => ({
3726
- ...x,
3727
- rootState: I
3727
+ function i(C) {
3728
+ r((p) => ({
3729
+ ...p,
3730
+ rootState: C
3728
3731
  }));
3729
3732
  }
3730
- const [o, l] = C(
3731
- () => [
3732
- ...Se(),
3733
- ...e.customComponents || []
3734
- ].reduce(
3735
- (I, { component: x, ...E }) => ({
3736
- ...I,
3737
- [E.name]: {
3738
- component: x,
3739
- ...ge(E)
3740
- }
3733
+ const [o, l] = T(
3734
+ () => {
3735
+ var C;
3736
+ return [
3737
+ ...Se(),
3738
+ ...((C = e.customComponents) == null ? void 0 : C.filter(({ models: p }) => !(p != null && p.length) || !e.model ? !0 : p.includes(e.model))) || []
3739
+ ].reduce(
3740
+ (p, { component: B, ...E }) => ({
3741
+ ...p,
3742
+ [E.name]: {
3743
+ component: B,
3744
+ ...ge(E)
3745
+ }
3746
+ }),
3747
+ {}
3748
+ );
3749
+ }
3750
+ ), [a, r] = T(() => {
3751
+ var C;
3752
+ return {
3753
+ content: zn({
3754
+ content: e.content,
3755
+ data: e.data
3741
3756
  }),
3742
- {}
3743
- )
3744
- ), [a, r] = C(() => ({
3745
- content: zn({
3746
- content: e.content,
3747
- data: e.data
3748
- }),
3749
- localState: void 0,
3750
- rootState: Kn({
3751
- content: e.content,
3752
- data: e.data,
3753
- locale: e.locale
3754
- }),
3755
- rootSetState: i,
3756
- context: e.context || {},
3757
- canTrack: e.canTrack,
3758
- apiKey: e.apiKey,
3759
- apiVersion: e.apiVersion,
3760
- componentInfos: [
3761
- ...Se(),
3762
- ...e.customComponents || []
3763
- ].reduce(
3764
- (I, { component: x, ...E }) => ({
3765
- ...I,
3766
- [E.name]: ge(E)
3757
+ localState: void 0,
3758
+ rootState: Kn({
3759
+ content: e.content,
3760
+ data: e.data,
3761
+ locale: e.locale
3767
3762
  }),
3768
- {}
3769
- ),
3770
- inheritedStyles: {},
3771
- BlocksWrapper: e.blocksWrapper || "div",
3772
- BlocksWrapperProps: e.blocksWrapperProps || {},
3773
- nonce: e.nonce || ""
3774
- }));
3763
+ rootSetState: i,
3764
+ context: e.context || {},
3765
+ canTrack: e.canTrack,
3766
+ apiKey: e.apiKey,
3767
+ apiVersion: e.apiVersion,
3768
+ componentInfos: [
3769
+ ...Se(),
3770
+ ...((C = e.customComponents) == null ? void 0 : C.filter(({ models: p }) => !(p != null && p.length) || !e.model ? !0 : p.includes(e.model))) || []
3771
+ ].reduce(
3772
+ (p, { component: B, ...E }) => ({
3773
+ ...p,
3774
+ [E.name]: ge(E)
3775
+ }),
3776
+ {}
3777
+ ),
3778
+ inheritedStyles: {},
3779
+ BlocksWrapper: e.blocksWrapper || "div",
3780
+ BlocksWrapperProps: e.blocksWrapperProps || {},
3781
+ nonce: e.nonce || ""
3782
+ };
3783
+ });
3775
3784
  return /* @__PURE__ */ s(
3776
3785
  Be.Provider,
3777
3786
  {
@@ -3818,7 +3827,7 @@ function Te(e) {
3818
3827
  /* @__PURE__ */ s(
3819
3828
  D,
3820
3829
  {
3821
- blocks: (p = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : p.blocks,
3830
+ blocks: (y = (g = a.content) == null ? void 0 : g.data) == null ? void 0 : y.blocks,
3822
3831
  context: a,
3823
3832
  registeredComponents: o,
3824
3833
  linkComponent: e.linkComponent
@@ -3832,7 +3841,7 @@ function Te(e) {
3832
3841
  }
3833
3842
  function _n(e) {
3834
3843
  var a;
3835
- const [t, n] = C(
3844
+ const [t, n] = T(
3836
3845
  () => Bn({
3837
3846
  canTrack: Q(e.canTrack),
3838
3847
  content: e.content
@@ -3861,9 +3870,8 @@ function _n(e) {
3861
3870
  canTrack: Q(e.canTrack)
3862
3871
  });
3863
3872
  }
3864
- return B(() => {
3865
- }, []), B(() => {
3866
- }), /* @__PURE__ */ P(R, { children: [
3873
+ return V(() => {
3874
+ }, []), /* @__PURE__ */ P(R, { children: [
3867
3875
  !e.isNestedRender && K !== "reactNative" ? /* @__PURE__ */ s(
3868
3876
  ce,
3869
3877
  {
@@ -3979,7 +3987,7 @@ function Yn(e) {
3979
3987
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3980
3988
  ].filter(Boolean).join(" ");
3981
3989
  }
3982
- const [o, l] = C(() => {
3990
+ const [o, l] = T(() => {
3983
3991
  var d;
3984
3992
  return (d = e.symbol) == null ? void 0 : d.content;
3985
3993
  });
@@ -3991,8 +3999,8 @@ function Yn(e) {
3991
3999
  d && l(d);
3992
4000
  });
3993
4001
  }
3994
- return B(() => {
3995
- }, []), B(() => {
4002
+ return V(() => {
4003
+ }, []), V(() => {
3996
4004
  a();
3997
4005
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
3998
4006
  _n,