@builder.io/sdk-react 5.1.1 → 5.2.1

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 (70) hide show
  1. package/lib/browser/blocks-exports.cjs +14 -14
  2. package/lib/browser/blocks-exports.mjs +289 -286
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-a3b5302c.js → server-entry-2aabcfc5.js} +1 -1
  6. package/lib/browser/{server-entry-85aa99e6.cjs → server-entry-56a43424.cjs} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-83f68de4.js → accordion-7a8559d1.js} +1 -1
  10. package/lib/edge/{accordion-1e467b30.cjs → accordion-b8a726ee.cjs} +1 -1
  11. package/lib/edge/{blocks-6b821501.js → blocks-12590d6b.js} +50 -47
  12. package/lib/edge/{blocks-4d57d38f.cjs → blocks-58f7d3bf.cjs} +2 -2
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-52af8a54.js → button-8c1d414f.js} +2 -2
  16. package/lib/edge/{button-b2eb1d64.cjs → button-c68ea03d.cjs} +1 -1
  17. package/lib/edge/{columns-8eb66fad.cjs → columns-5bad599a.cjs} +1 -1
  18. package/lib/edge/{columns-e0489b50.js → columns-ea10971b.js} +3 -3
  19. package/lib/edge/{content-variants-6c1ee307.cjs → content-variants-1ea2cc45.cjs} +2 -2
  20. package/lib/edge/{content-variants-5003144d.js → content-variants-8052ce9b.js} +12 -12
  21. package/lib/edge/{custom-code-bc787526.cjs → custom-code-126854d0.cjs} +1 -1
  22. package/lib/edge/{custom-code-4e76fc0d.js → custom-code-29bcd3c1.js} +1 -1
  23. package/lib/edge/{embed-8ef248c5.cjs → embed-2986e15c.cjs} +1 -1
  24. package/lib/edge/{embed-fd344d6d.js → embed-51ea3559.js} +1 -1
  25. package/lib/edge/{form-107c9eae.cjs → form-0e910fbf.cjs} +1 -1
  26. package/lib/edge/{form-4efa40a5.js → form-75a443ad.js} +3 -3
  27. package/lib/edge/{get-class-prop-name-e6f7321f.js → get-class-prop-name-1e9476bb.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-2c2513e9.cjs → get-class-prop-name-db97ef04.cjs} +1 -1
  29. package/lib/edge/{img-a32b0723.js → img-71d8f85a.js} +2 -2
  30. package/lib/edge/{img-ab241f22.cjs → img-d73b746e.cjs} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/{input-c48fe23a.js → input-1aeefc8e.js} +1 -1
  34. package/lib/edge/{input-ada30ffb.cjs → input-c8886579.cjs} +1 -1
  35. package/lib/edge/{personalization-container-ad7cf89c.js → personalization-container-13aa06c8.js} +4 -4
  36. package/lib/edge/{personalization-container-375a1501.cjs → personalization-container-9daeb712.cjs} +1 -1
  37. package/lib/edge/{select-879c52dd.cjs → select-8a79d8dd.cjs} +1 -1
  38. package/lib/edge/{select-a49d819c.js → select-d6a5369f.js} +1 -1
  39. package/lib/edge/{server-entry-68d59577.js → server-entry-77646307.js} +1 -1
  40. package/lib/edge/{server-entry-560732da.cjs → server-entry-a1d12fab.cjs} +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-005d6258.js → slot-110c36af.js} +3 -3
  44. package/lib/edge/{slot-5da991d1.cjs → slot-215396be.cjs} +1 -1
  45. package/lib/edge/symbol-5e7704f0.cjs +1 -0
  46. package/lib/edge/symbol-cb47c30e.js +93 -0
  47. package/lib/edge/{tabs-69a36a5c.js → tabs-4a754007.js} +3 -3
  48. package/lib/edge/{tabs-96367bf5.cjs → tabs-dddcc4d9.cjs} +1 -1
  49. package/lib/node/blocks-exports.cjs +11 -11
  50. package/lib/node/blocks-exports.mjs +291 -288
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +3 -3
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +3 -3
  55. package/lib/node/{server-entry-fc7f08d8.js → server-entry-683f926c.js} +1 -1
  56. package/lib/node/{server-entry-2529c06e.cjs → server-entry-ef0a9bc1.cjs} +1 -1
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/lib/node/{setIvm-b97cfb8b.cjs → setIvm-4b6c067d.cjs} +1 -1
  60. package/lib/node/{setIvm-41d8b067.js → setIvm-bcaed0e9.js} +1 -1
  61. package/lib/node/setIvm.cjs +1 -1
  62. package/lib/node/setIvm.mjs +2 -2
  63. package/lib/node/{should-force-browser-runtime-in-node-fc5c3a06.js → should-force-browser-runtime-in-node-8b51c95e.js} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-1d85a066.cjs → should-force-browser-runtime-in-node-92af2305.cjs} +1 -1
  65. package/package.json +1 -1
  66. package/types/blocks/symbol/symbol.helpers.d.ts +2 -0
  67. package/types/blocks/symbol/symbol.types.d.ts +2 -0
  68. package/types/constants/sdk-version.d.ts +1 -1
  69. package/lib/edge/symbol-155906ed.js +0 -93
  70. package/lib/edge/symbol-7e6ac72e.cjs +0 -1
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { TARGET as O, isEditing as _, isBrowser as J, getUserAttributes as ut, _track as ye, checkIsDefined as ae, logger as Q, isPreviewing as le, userAttributesService as Ie, getDefaultCanTrack as ee, logFetch as Le, setupBrowserForEditing as dt, createRegisterComponentMessage as mt, getCookieSync as ft, fetchOneEntry as _e, createEditorListener as ht, serializeIncludingFunctions as we, handleABTestingSync as bt } from "./server-entry-a3b5302c.js";
3
- import { setClientUserAttributes as Mi } from "./server-entry-a3b5302c.js";
2
+ import { TARGET as O, isEditing as _, isBrowser as J, getUserAttributes as ut, _track as ye, checkIsDefined as ae, logger as Q, isPreviewing as le, userAttributesService as Ie, getDefaultCanTrack as ee, logFetch as Le, setupBrowserForEditing as dt, createRegisterComponentMessage as mt, getCookieSync as ft, fetchOneEntry as _e, createEditorListener as ht, serializeIncludingFunctions as we, handleABTestingSync as bt } from "./server-entry-2aabcfc5.js";
3
+ import { setClientUserAttributes as Mi } from "./server-entry-2aabcfc5.js";
4
4
  import { jsx as s, Fragment as w, jsxs as D } from "react/jsx-runtime";
5
5
  import * as gt from "react";
6
6
  import { createContext as Ue, useEffect as B, useState as k, useContext as pe, useRef as z, createElement as He } from "react";
@@ -437,8 +437,8 @@ function Ht(e) {
437
437
  leading: !1
438
438
  });
439
439
  function l(h) {
440
- const g = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
441
- return g.bottom > f && g.top < u - f;
440
+ const g = h.getBoundingClientRect(), u = window.innerHeight, m = (e.thresholdPercent || 0) / 100 * u;
441
+ return g.bottom > m && g.top < u - m;
442
442
  }
443
443
  const c = e.steps[0].styles;
444
444
  function d() {
@@ -732,11 +732,14 @@ const ln = ({
732
732
  } : l;
733
733
  };
734
734
  function Pe(e) {
735
- var i;
735
+ var r;
736
736
  k(() => !1);
737
737
  const [t, n] = k(
738
738
  () => e.isInteractive ? on : e.componentRef
739
739
  );
740
+ function i() {
741
+ return e.componentRef ? e.blockChildren : [];
742
+ }
740
743
  return /* @__PURE__ */ s(w, { children: e.componentRef ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
741
744
  t,
742
745
  {
@@ -750,16 +753,16 @@ function Pe(e) {
750
753
  isInteractive: e.isInteractive,
751
754
  contextValue: e.context
752
755
  }),
753
- children: e.componentRef ? /* @__PURE__ */ s(w, { children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
756
+ children: (r = i()) == null ? void 0 : r.map((a) => /* @__PURE__ */ s(
754
757
  ue,
755
758
  {
756
- block: r,
759
+ block: a,
757
760
  context: e.context,
758
761
  registeredComponents: e.registeredComponents,
759
762
  linkComponent: e.linkComponent
760
763
  },
761
- r.id
762
- )) }) : null
764
+ a.id
765
+ ))
763
766
  }
764
767
  ) }) : null });
765
768
  }
@@ -859,51 +862,51 @@ function Ae(e) {
859
862
  ), l = !!((U = (E = a == null ? void 0 : a.meta) == null ? void 0 : E.breakpoints) != null && U.xsmall), c = r == null ? void 0 : r.large, d = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, g = r == null ? void 0 : r.xsmall, u = i.id;
860
863
  if (!u)
861
864
  return "";
862
- const x = c ? X({
865
+ const S = c ? X({
863
866
  className: u,
864
867
  styles: c
865
- }) : "", f = d ? X({
868
+ }) : "", m = d ? X({
866
869
  className: u,
867
870
  styles: d,
868
871
  mediaQuery: de(
869
872
  "medium",
870
873
  o
871
874
  )
872
- }) : "", m = h ? X({
875
+ }) : "", b = h ? X({
873
876
  className: u,
874
877
  styles: h,
875
878
  mediaQuery: de(
876
879
  "small",
877
880
  o
878
881
  )
879
- }) : "", y = g && l ? X({
882
+ }) : "", p = g && l ? X({
880
883
  className: u,
881
884
  styles: g,
882
885
  mediaQuery: de(
883
886
  "xsmall",
884
887
  o
885
888
  )
886
- }) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
887
- let S = "";
888
- if (b) {
889
- const p = ((q = (H = b.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
890
- S = X({
889
+ }) : "", f = i.animations && i.animations.find((y) => y.trigger === "hover");
890
+ let v = "";
891
+ if (f) {
892
+ const y = ((q = (H = f.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
893
+ v = X({
891
894
  className: `${u}:hover`,
892
895
  styles: {
893
- ...p,
894
- transition: `all ${b.duration}s ${ce(
895
- b.easing
896
+ ...y,
897
+ transition: `all ${f.duration}s ${ce(
898
+ f.easing
896
899
  )}`,
897
- transitionDelay: b.delay ? `${b.delay}s` : "0s"
900
+ transitionDelay: f.delay ? `${f.delay}s` : "0s"
898
901
  }
899
902
  }) || "";
900
903
  }
901
904
  return [
902
- x,
903
- f,
905
+ S,
904
906
  m,
905
- y,
906
- S
907
+ b,
908
+ p,
909
+ v
907
910
  ].join(" ");
908
911
  }
909
912
  return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
@@ -922,7 +925,7 @@ function sn(e) {
922
925
  }, []), /* @__PURE__ */ s(w, { children: t ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ae, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ae, { block: e.block, context: e.context }) }) });
923
926
  }
924
927
  function ue(e) {
925
- var h, g, u, x;
928
+ var h, g, u, S;
926
929
  function t() {
927
930
  return Kt({
928
931
  block: e.block,
@@ -934,17 +937,17 @@ function ue(e) {
934
937
  update: !1
935
938
  }));
936
939
  function r() {
937
- var m;
940
+ var b;
938
941
  if (n.value && !n.update && !le())
939
942
  return n.value;
940
- const f = (m = e.block.repeat) != null && m.collection ? e.block : Ft({
943
+ const m = (b = e.block.repeat) != null && b.collection ? e.block : Ft({
941
944
  block: e.block,
942
945
  localState: e.context.localState,
943
946
  rootState: e.context.rootState,
944
947
  rootSetState: e.context.rootSetState,
945
948
  context: e.context.context
946
949
  });
947
- return n.value = f, n.update = !1, f;
950
+ return n.value = m, n.update = !1, m;
948
951
  }
949
952
  function a() {
950
953
  return zt({
@@ -954,25 +957,25 @@ function ue(e) {
954
957
  });
955
958
  }
956
959
  function o() {
957
- var m;
958
- return e.block.tagName === "a" || ((m = r().properties) == null ? void 0 : m.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
960
+ var b;
961
+ return e.block.tagName === "a" || ((b = r().properties) == null ? void 0 : b.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
959
962
  }
960
963
  function l() {
961
- var y, b;
962
- if ((y = e.block.repeat) != null && y.collection)
963
- return !!((b = t == null ? void 0 : t()) != null && b.length);
964
- const f = "hide" in r() ? r().hide : !1;
965
- return ("show" in r() ? r().show : !0) && !f;
964
+ var p, f;
965
+ if ((p = e.block.repeat) != null && p.collection)
966
+ return !!((f = t == null ? void 0 : t()) != null && f.length);
967
+ const m = "hide" in r() ? r().hide : !1;
968
+ return ("show" in r() ? r().show : !0) && !m;
966
969
  }
967
970
  function c() {
968
- var m, y;
969
- return !((m = a == null ? void 0 : a()) != null && m.component) && !t() ? (y = r().children) != null ? y : [] : [];
971
+ var b, p;
972
+ return !((b = a == null ? void 0 : a()) != null && b.component) && !t() ? (p = r().children) != null ? p : [] : [];
970
973
  }
971
974
  function d() {
972
- var f, m, y, b;
975
+ var m, b, p, f;
973
976
  return {
974
- blockChildren: (f = r().children) != null ? f : [],
975
- componentRef: (m = a == null ? void 0 : a()) == null ? void 0 : m.component,
977
+ blockChildren: (m = r().children) != null ? m : [],
978
+ componentRef: (b = a == null ? void 0 : a()) == null ? void 0 : b.component,
976
979
  componentOptions: {
977
980
  ...Pt(r(), e.context),
978
981
  ...Qt(a(), r()),
@@ -988,16 +991,16 @@ function ue(e) {
988
991
  linkComponent: e.linkComponent,
989
992
  registeredComponents: e.registeredComponents,
990
993
  builderBlock: r(),
991
- includeBlockProps: ((y = a == null ? void 0 : a()) == null ? void 0 : y.noWrap) === !0,
992
- isInteractive: !((b = a == null ? void 0 : a()) != null && b.isRSC && O === "rsc")
994
+ includeBlockProps: ((p = a == null ? void 0 : a()) == null ? void 0 : p.noWrap) === !0,
995
+ isInteractive: !((f = a == null ? void 0 : a()) != null && f.isRSC && O === "rsc")
993
996
  };
994
997
  }
995
998
  return B(() => {
996
- const f = r().id, m = r().animations;
997
- m && f && _t(
998
- m.map((y) => ({
999
- ...y,
1000
- elementId: f
999
+ const m = r().id, b = r().animations;
1000
+ b && m && _t(
1001
+ b.map((p) => ({
1002
+ ...p,
1003
+ elementId: m
1001
1004
  }))
1002
1005
  );
1003
1006
  }, []), B(() => {
@@ -1011,15 +1014,15 @@ function ue(e) {
1011
1014
  id: e.block.id
1012
1015
  }
1013
1016
  ),
1014
- (h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (x = t()) == null ? void 0 : x.map((f, m) => /* @__PURE__ */ s(
1017
+ (h = a == null ? void 0 : a()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (S = t()) == null ? void 0 : S.map((m, b) => /* @__PURE__ */ s(
1015
1018
  Ve,
1016
1019
  {
1017
- repeatContext: f.context,
1018
- block: f.block,
1020
+ repeatContext: m.context,
1021
+ block: m.block,
1019
1022
  registeredComponents: e.registeredComponents,
1020
1023
  linkComponent: e.linkComponent
1021
1024
  },
1022
- Re(m)
1025
+ Re(b)
1023
1026
  )) }) : /* @__PURE__ */ s(
1024
1027
  Pe,
1025
1028
  {
@@ -1033,15 +1036,15 @@ function ue(e) {
1033
1036
  includeBlockProps: d().includeBlockProps,
1034
1037
  isInteractive: d().isInteractive
1035
1038
  }
1036
- ) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((f, m) => /* @__PURE__ */ s(
1039
+ ) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((m, b) => /* @__PURE__ */ s(
1037
1040
  Ve,
1038
1041
  {
1039
- repeatContext: f.context,
1040
- block: f.block,
1042
+ repeatContext: m.context,
1043
+ block: m.block,
1041
1044
  registeredComponents: e.registeredComponents,
1042
1045
  linkComponent: e.linkComponent
1043
1046
  },
1044
- Re(m)
1047
+ Re(b)
1045
1048
  )) }) : /* @__PURE__ */ D(
1046
1049
  rn,
1047
1050
  {
@@ -1063,15 +1066,15 @@ function ue(e) {
1063
1066
  isInteractive: d().isInteractive
1064
1067
  }
1065
1068
  ),
1066
- (g = c()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
1069
+ (g = c()) == null ? void 0 : g.map((m) => /* @__PURE__ */ s(
1067
1070
  ue,
1068
1071
  {
1069
- block: f,
1072
+ block: m,
1070
1073
  registeredComponents: e.registeredComponents,
1071
1074
  linkComponent: e.linkComponent,
1072
1075
  context: e.context
1073
1076
  },
1074
- f.id
1077
+ m.id
1075
1078
  ))
1076
1079
  ]
1077
1080
  }
@@ -1177,7 +1180,7 @@ function M(e) {
1177
1180
  }
1178
1181
  const un = (e) => `builder-columns ${e}-breakpoints`;
1179
1182
  function dn(e) {
1180
- var m, y;
1183
+ var b, p;
1181
1184
  function t() {
1182
1185
  return typeof e.space == "number" ? e.space || 0 : 20;
1183
1186
  }
@@ -1187,28 +1190,28 @@ function dn(e) {
1187
1190
  function i() {
1188
1191
  return e.stackColumnsAt || "tablet";
1189
1192
  }
1190
- function r(b) {
1191
- return b.link ? e.builderLinkComponent || "a" : "div";
1193
+ function r(f) {
1194
+ return f.link ? e.builderLinkComponent || "a" : "div";
1192
1195
  }
1193
- function a(b) {
1194
- var S;
1195
- return ((S = n()[b]) == null ? void 0 : S.width) || 100 / n().length;
1196
+ function a(f) {
1197
+ var v;
1198
+ return ((v = n()[f]) == null ? void 0 : v.width) || 100 / n().length;
1196
1199
  }
1197
- function o(b) {
1198
- const S = a(b), T = t() * (n().length - 1) * (S / 100);
1199
- return `calc(${S}% - ${T}px)`;
1200
+ function o(f) {
1201
+ const v = a(f), T = t() * (n().length - 1) * (v / 100);
1202
+ return `calc(${v}% - ${T}px)`;
1200
1203
  }
1201
1204
  function l({
1202
- stackedStyle: b,
1203
- desktopStyle: S
1205
+ stackedStyle: f,
1206
+ desktopStyle: v
1204
1207
  }) {
1205
- return i() === "tablet" ? b : S;
1208
+ return i() === "tablet" ? f : v;
1206
1209
  }
1207
1210
  function c({
1208
- stackedStyle: b,
1209
- desktopStyle: S
1211
+ stackedStyle: f,
1212
+ desktopStyle: v
1210
1213
  }) {
1211
- return i() === "never" ? S : b;
1214
+ return i() === "never" ? v : f;
1212
1215
  }
1213
1216
  function d() {
1214
1217
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -1222,8 +1225,8 @@ function dn(e) {
1222
1225
  })
1223
1226
  };
1224
1227
  }
1225
- function g(b) {
1226
- const S = b === 0 ? 0 : t(), T = o(b), E = `${S}px`, U = "100%", H = 0;
1228
+ function g(f) {
1229
+ const v = f === 0 ? 0 : t(), T = o(f), E = `${v}px`, U = "100%", H = 0;
1227
1230
  return {
1228
1231
  ...{
1229
1232
  display: "flex",
@@ -1250,14 +1253,14 @@ function dn(e) {
1250
1253
  })
1251
1254
  };
1252
1255
  }
1253
- function u(b) {
1256
+ function u(f) {
1254
1257
  var T, E;
1255
1258
  return nt(
1256
1259
  ((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
1257
- )[b].max;
1260
+ )[f].max;
1258
1261
  }
1259
- function x() {
1260
- const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1262
+ function S() {
1263
+ const f = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1261
1264
  return `
1262
1265
  @media (max-width: ${u("medium")}px) {
1263
1266
  .${e.builderBlock.id}-breakpoints {
@@ -1265,7 +1268,7 @@ function dn(e) {
1265
1268
  align-items: stretch;
1266
1269
  }
1267
1270
 
1268
- ${b} {
1271
+ ${f} {
1269
1272
  width: var(--column-width-tablet) !important;
1270
1273
  margin-left: var(--column-margin-left-tablet) !important;
1271
1274
  }
@@ -1277,20 +1280,20 @@ function dn(e) {
1277
1280
  align-items: stretch;
1278
1281
  }
1279
1282
 
1280
- ${b} {
1283
+ ${f} {
1281
1284
  width: var(--column-width-mobile) !important;
1282
1285
  margin-left: var(--column-margin-left-mobile) !important;
1283
1286
  }
1284
1287
  },
1285
1288
  `;
1286
1289
  }
1287
- function f(b, S) {
1290
+ function m(f, v) {
1288
1291
  return {
1289
- ...b.link ? {
1290
- href: b.link
1292
+ ...f.link ? {
1293
+ href: f.link
1291
1294
  } : {},
1292
1295
  [K()]: "builder-column",
1293
- style: Xe(g(S))
1296
+ style: Xe(g(v))
1294
1297
  };
1295
1298
  }
1296
1299
  return /* @__PURE__ */ D(w, { children: [
@@ -1302,39 +1305,39 @@ function dn(e) {
1302
1305
  /* @__PURE__ */ D(
1303
1306
  "div",
1304
1307
  {
1305
- className: un((m = e.builderBlock) == null ? void 0 : m.id) + " div-0369db37",
1308
+ className: un((b = e.builderBlock) == null ? void 0 : b.id) + " div-0369db37",
1306
1309
  style: h(),
1307
1310
  children: [
1308
1311
  /* @__PURE__ */ s(
1309
1312
  te,
1310
1313
  {
1311
1314
  id: "builderio-columns",
1312
- styles: x(),
1315
+ styles: S(),
1313
1316
  nonce: e.builderContext.nonce
1314
1317
  }
1315
1318
  ),
1316
- (y = e.columns) == null ? void 0 : y.map((b, S) => /* @__PURE__ */ s(
1319
+ (p = e.columns) == null ? void 0 : p.map((f, v) => /* @__PURE__ */ s(
1317
1320
  xe,
1318
1321
  {
1319
- TagName: r(b),
1322
+ TagName: r(f),
1320
1323
  actionAttributes: {},
1321
- attributes: f(b, S),
1324
+ attributes: m(f, v),
1322
1325
  children: /* @__PURE__ */ s(
1323
1326
  M,
1324
1327
  {
1325
- path: `columns.${S}.blocks`,
1328
+ path: `columns.${v}.blocks`,
1326
1329
  parent: e.builderBlock.id,
1327
1330
  context: e.builderContext,
1328
1331
  registeredComponents: e.builderComponents,
1329
1332
  linkComponent: e.builderLinkComponent,
1330
- blocks: b.blocks,
1333
+ blocks: f.blocks,
1331
1334
  styleProp: {
1332
1335
  flexGrow: "1"
1333
1336
  }
1334
1337
  }
1335
1338
  )
1336
1339
  },
1337
- S
1340
+ v
1338
1341
  ))
1339
1342
  ]
1340
1343
  }
@@ -1492,42 +1495,42 @@ function yn(e, t, n, i) {
1492
1495
  }
1493
1496
  function o(d, h) {
1494
1497
  return (() => {
1495
- const u = h.property, x = h.operator;
1496
- let f = h.value;
1497
- if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && x))
1498
+ const u = h.property, S = h.operator;
1499
+ let m = h.value;
1500
+ if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (m = h.value.slice(0, -1)), !(u && S))
1498
1501
  return !0;
1499
- if (Array.isArray(f))
1500
- return x === "isNot" ? f.every((y) => o(d, {
1502
+ if (Array.isArray(m))
1503
+ return S === "isNot" ? m.every((p) => o(d, {
1501
1504
  property: u,
1502
- operator: x,
1503
- value: y
1504
- })) : !!f.find((y) => o(d, {
1505
+ operator: S,
1506
+ value: p
1507
+ })) : !!m.find((p) => o(d, {
1505
1508
  property: u,
1506
- operator: x,
1507
- value: y
1509
+ operator: S,
1510
+ value: p
1508
1511
  }));
1509
- const m = d[u];
1510
- if (Array.isArray(m))
1511
- return m.includes(f);
1512
- switch (x) {
1512
+ const b = d[u];
1513
+ if (Array.isArray(b))
1514
+ return b.includes(m);
1515
+ switch (S) {
1513
1516
  case "is":
1514
- return m === f;
1517
+ return b === m;
1515
1518
  case "isNot":
1516
- return m !== f;
1519
+ return b !== m;
1517
1520
  case "contains":
1518
- return (r(m) || Array.isArray(m)) && m.includes(String(f));
1521
+ return (r(b) || Array.isArray(b)) && b.includes(String(m));
1519
1522
  case "startsWith":
1520
- return r(m) && m.startsWith(String(f));
1523
+ return r(b) && b.startsWith(String(m));
1521
1524
  case "endsWith":
1522
- return r(m) && m.endsWith(String(f));
1525
+ return r(b) && b.endsWith(String(m));
1523
1526
  case "greaterThan":
1524
- return a(m) && a(f) && m > f;
1527
+ return a(b) && a(m) && b > m;
1525
1528
  case "lessThan":
1526
- return a(m) && a(f) && m < f;
1529
+ return a(b) && a(m) && b < m;
1527
1530
  case "greaterThanOrEqualTo":
1528
- return a(m) && a(f) && m >= f;
1531
+ return a(b) && a(m) && b >= m;
1529
1532
  case "lessThanOrEqualTo":
1530
- return a(m) && a(f) && m <= f;
1533
+ return a(b) && a(m) && b <= m;
1531
1534
  default:
1532
1535
  return !1;
1533
1536
  }
@@ -1892,7 +1895,7 @@ function Rn(e) {
1892
1895
  };
1893
1896
  }
1894
1897
  function a() {
1895
- const x = {
1898
+ const S = {
1896
1899
  ...{
1897
1900
  display: "flex",
1898
1901
  flexDirection: "column"
@@ -1901,7 +1904,7 @@ function Rn(e) {
1901
1904
  cursor: "pointer"
1902
1905
  };
1903
1906
  return Object.fromEntries(
1904
- Object.entries(x).filter(([f, m]) => m !== void 0)
1907
+ Object.entries(S).filter(([m, b]) => b !== void 0)
1905
1908
  );
1906
1909
  }
1907
1910
  function o(u) {
@@ -1913,23 +1916,23 @@ function Rn(e) {
1913
1916
  function c() {
1914
1917
  let u = null;
1915
1918
  if (e.grid && t.length && document) {
1916
- const f = t[0];
1917
- let y = document.querySelector(
1918
- `.builder-accordion-title[data-index="${f}"]`
1919
+ const m = t[0];
1920
+ let p = document.querySelector(
1921
+ `.builder-accordion-title[data-index="${m}"]`
1919
1922
  );
1920
- if (u = f, y) {
1921
- let b = y.getBoundingClientRect();
1922
- for (; y = y && y.nextElementSibling; )
1923
- if (y) {
1924
- if (y.classList.contains("builder-accordion-detail"))
1923
+ if (u = m, p) {
1924
+ let f = p.getBoundingClientRect();
1925
+ for (; p = p && p.nextElementSibling; )
1926
+ if (p) {
1927
+ if (p.classList.contains("builder-accordion-detail"))
1925
1928
  continue;
1926
- const S = y.getBoundingClientRect();
1927
- if (S.left > b.left) {
1929
+ const v = p.getBoundingClientRect();
1930
+ if (v.left > f.left) {
1928
1931
  const T = parseInt(
1929
- y.getAttribute("data-index") || "",
1932
+ p.getAttribute("data-index") || "",
1930
1933
  10
1931
1934
  );
1932
- isNaN(T) || (b = S, u = T);
1935
+ isNaN(T) || (f = v, u = T);
1933
1936
  } else
1934
1937
  break;
1935
1938
  }
@@ -1945,31 +1948,31 @@ function Rn(e) {
1945
1948
  }
1946
1949
  };
1947
1950
  return Object.fromEntries(
1948
- Object.entries(u).filter(([x, f]) => f !== void 0)
1951
+ Object.entries(u).filter(([S, m]) => m !== void 0)
1949
1952
  );
1950
1953
  }
1951
1954
  function h(u) {
1952
- t.includes(u) ? n(i() ? [] : t.filter((x) => x !== u)) : n(i() ? [u] : t.concat(u));
1955
+ t.includes(u) ? n(i() ? [] : t.filter((S) => S !== u)) : n(i() ? [u] : t.concat(u));
1953
1956
  }
1954
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (g = e.items) == null ? void 0 : g.map((u, x) => /* @__PURE__ */ D(gt.Fragment, { children: [
1957
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (g = e.items) == null ? void 0 : g.map((u, S) => /* @__PURE__ */ D(gt.Fragment, { children: [
1955
1958
  /* @__PURE__ */ s(
1956
1959
  "div",
1957
1960
  {
1958
- className: o(x),
1961
+ className: o(S),
1959
1962
  style: {
1960
1963
  ...a(),
1961
1964
  ...e.grid && {
1962
1965
  width: e.gridRowWidth,
1963
- order: c() !== null ? Ne(x) : Ne(x + 1)
1966
+ order: c() !== null ? Ne(S) : Ne(S + 1)
1964
1967
  }
1965
1968
  },
1966
- "data-index": x,
1967
- onClick: (f) => h(x),
1969
+ "data-index": S,
1970
+ onClick: (m) => h(S),
1968
1971
  children: /* @__PURE__ */ s(
1969
1972
  M,
1970
1973
  {
1971
1974
  blocks: u.title,
1972
- path: `items.${x}.title`,
1975
+ path: `items.${S}.title`,
1973
1976
  parent: e.builderBlock.id,
1974
1977
  context: e.builderContext,
1975
1978
  registeredComponents: e.builderComponents,
@@ -1978,16 +1981,16 @@ function Rn(e) {
1978
1981
  )
1979
1982
  }
1980
1983
  ),
1981
- t.includes(x) ? /* @__PURE__ */ s(
1984
+ t.includes(S) ? /* @__PURE__ */ s(
1982
1985
  "div",
1983
1986
  {
1984
- className: l(x),
1987
+ className: l(S),
1985
1988
  style: d(),
1986
1989
  children: /* @__PURE__ */ s(
1987
1990
  M,
1988
1991
  {
1989
1992
  blocks: u.detail,
1990
- path: `items.${x}.detail`,
1993
+ path: `items.${S}.detail`,
1991
1994
  parent: e.builderBlock.id,
1992
1995
  context: e.builderContext,
1993
1996
  registeredComponents: e.builderComponents,
@@ -1996,7 +1999,7 @@ function Rn(e) {
1996
1999
  )
1997
2000
  }
1998
2001
  ) : null
1999
- ] }, x)) });
2002
+ ] }, S)) });
2000
2003
  }
2001
2004
  const Pn = {
2002
2005
  name: "Core:Button",
@@ -2407,7 +2410,7 @@ function G(e) {
2407
2410
  );
2408
2411
  }
2409
2412
  function $n(e) {
2410
- var S, T, E, U, H, q, p, v, V, A, W, R, P;
2413
+ var v, T, E, U, H, q, y, x, V, A, W, R, P;
2411
2414
  const t = z(null), [n, i] = k(
2412
2415
  () => Ie.getUserAttributes()
2413
2416
  ), [r, a] = k(
@@ -2436,14 +2439,14 @@ function $n(e) {
2436
2439
  ee((I = e.builderContext) == null ? void 0 : I.canTrack)
2437
2440
  );
2438
2441
  }
2439
- ), [u, x] = k(() => !1);
2440
- function f() {
2442
+ ), [u, S] = k(() => !1);
2443
+ function m() {
2441
2444
  return {
2442
2445
  ...e.attributes,
2443
2446
  [K()]: `builder-personalization-container ${e.attributes[K()] || ""}`
2444
2447
  };
2445
2448
  }
2446
- function m() {
2449
+ function b() {
2447
2450
  return (e.variants || []).filter((I) => {
2448
2451
  var N, C, $, F;
2449
2452
  return yn(
@@ -2459,17 +2462,17 @@ function $n(e) {
2459
2462
  );
2460
2463
  });
2461
2464
  }
2462
- function y() {
2465
+ function p() {
2463
2466
  var I;
2464
2467
  return Cn({
2465
2468
  variants: e.variants,
2466
2469
  fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
2467
2470
  isHydrated: u,
2468
- filteredVariants: m(),
2471
+ filteredVariants: b(),
2469
2472
  previewingIndex: e.previewingIndex
2470
2473
  });
2471
2474
  }
2472
- function b() {
2475
+ function f() {
2473
2476
  return (e.variants || []).map(
2474
2477
  (I, N) => {
2475
2478
  var C;
@@ -2479,7 +2482,7 @@ function $n(e) {
2479
2482
  }
2480
2483
  return B(() => {
2481
2484
  var N;
2482
- x(!0);
2485
+ S(!0);
2483
2486
  const I = Ie.subscribeOnUserAttributesChange(
2484
2487
  (C) => {
2485
2488
  i(C);
@@ -2489,7 +2492,7 @@ function $n(e) {
2489
2492
  }
2490
2493
  );
2491
2494
  if (!(_() || le())) {
2492
- const C = m()[0];
2495
+ const C = b()[0];
2493
2496
  t.current && (t.current.dispatchEvent(
2494
2497
  new CustomEvent("builder.variantLoaded", {
2495
2498
  detail: {
@@ -2516,18 +2519,18 @@ function $n(e) {
2516
2519
  c.push(I);
2517
2520
  }, []), B(() => () => {
2518
2521
  c.forEach((I) => I());
2519
- }, []), /* @__PURE__ */ D("div", { ref: t, ...f(), children: [
2522
+ }, []), /* @__PURE__ */ D("div", { ref: t, ...m(), children: [
2520
2523
  u && ie.includes(O) ? /* @__PURE__ */ s(
2521
2524
  M,
2522
2525
  {
2523
- blocks: y().blocks,
2524
- parent: (S = e.builderBlock) == null ? void 0 : S.id,
2525
- path: y().path,
2526
+ blocks: p().blocks,
2527
+ parent: (v = e.builderBlock) == null ? void 0 : v.id,
2528
+ path: p().path,
2526
2529
  context: e.builderContext,
2527
2530
  registeredComponents: e.builderComponents,
2528
2531
  BlocksWrapperProps: {
2529
2532
  ...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
2530
- "data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${y().index}`
2533
+ "data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${p().index}`
2531
2534
  }
2532
2535
  }
2533
2536
  ) : null,
@@ -2537,7 +2540,7 @@ function $n(e) {
2537
2540
  te,
2538
2541
  {
2539
2542
  nonce: ((U = e.builderContext) == null ? void 0 : U.nonce) || "",
2540
- styles: b(),
2543
+ styles: f(),
2541
2544
  id: `variants-styles-${(H = e.builderBlock) == null ? void 0 : H.id}`
2542
2545
  }
2543
2546
  ),
@@ -2546,10 +2549,10 @@ function $n(e) {
2546
2549
  {
2547
2550
  nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
2548
2551
  scriptStr: o,
2549
- id: `variants-visibility-script-${(p = e.builderBlock) == null ? void 0 : p.id}`
2552
+ id: `variants-visibility-script-${(y = e.builderBlock) == null ? void 0 : y.id}`
2550
2553
  }
2551
2554
  ),
2552
- (v = e.variants) == null ? void 0 : v.map((I, N) => {
2555
+ (x = e.variants) == null ? void 0 : x.map((I, N) => {
2553
2556
  var C, $, F, L, j, Te;
2554
2557
  return /* @__PURE__ */ s(
2555
2558
  M,
@@ -2581,14 +2584,14 @@ function $n(e) {
2581
2584
  /* @__PURE__ */ s(
2582
2585
  M,
2583
2586
  {
2584
- blocks: y().blocks,
2587
+ blocks: p().blocks,
2585
2588
  parent: (V = e.builderBlock) == null ? void 0 : V.id,
2586
- path: y().path,
2589
+ path: p().path,
2587
2590
  context: e.builderContext,
2588
2591
  registeredComponents: e.builderComponents,
2589
2592
  BlocksWrapperProps: {
2590
2593
  ...(A = e.builderContext) == null ? void 0 : A.BlocksWrapperProps,
2591
- "data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${y().index}`
2594
+ "data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${p().index}`
2592
2595
  },
2593
2596
  children: h ? /* @__PURE__ */ s(
2594
2597
  G,
@@ -3317,12 +3320,12 @@ const Qn = {
3317
3320
  function Zn(e) {
3318
3321
  const t = z(null), [n, i] = k(() => "unsubmitted"), [r, a] = k(() => null), [o, l] = k(() => "");
3319
3322
  function c(u) {
3320
- var f, m;
3321
- const x = {
3323
+ var m, b;
3324
+ const S = {
3322
3325
  ...e.builderContext.rootState,
3323
3326
  ...u
3324
3327
  };
3325
- e.builderContext.rootSetState ? (m = (f = e.builderContext).rootSetState) == null || m.call(f, x) : e.builderContext.rootState = x;
3328
+ e.builderContext.rootSetState ? (b = (m = e.builderContext).rootSetState) == null || b.call(m, S) : e.builderContext.rootState = S;
3326
3329
  }
3327
3330
  function d() {
3328
3331
  return _() && e.previewState || n;
@@ -3331,86 +3334,86 @@ function Zn(e) {
3331
3334
  return JSON.stringify(u, null, 2);
3332
3335
  }
3333
3336
  function g(u) {
3334
- var f;
3335
- const x = e.sendWithJs || e.sendSubmissionsTo === "email";
3337
+ var m;
3338
+ const S = e.sendWithJs || e.sendSubmissionsTo === "email";
3336
3339
  if (e.sendSubmissionsTo === "zapier")
3337
3340
  u.preventDefault();
3338
- else if (x) {
3341
+ else if (S) {
3339
3342
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3340
3343
  u.preventDefault();
3341
3344
  return;
3342
3345
  }
3343
3346
  u.preventDefault();
3344
- const m = u.currentTarget || u.target, y = e.customHeaders || {};
3345
- let b;
3346
- const S = new FormData(m), T = Array.from(m.querySelectorAll("input,select,textarea")).filter((p) => !!p.name).filter(
3347
- (p) => !!p.name && (p.type !== "radio" || p.checked)
3348
- ).map((p) => {
3349
- let v;
3350
- const V = p.name;
3351
- if (p instanceof HTMLInputElement)
3352
- if (p.type === "radio") {
3353
- if (p.checked)
3354
- return v = p.value, {
3347
+ const b = u.currentTarget || u.target, p = e.customHeaders || {};
3348
+ let f;
3349
+ const v = new FormData(b), T = Array.from(b.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).filter(
3350
+ (y) => !!y.name && (y.type !== "radio" || y.checked)
3351
+ ).map((y) => {
3352
+ let x;
3353
+ const V = y.name;
3354
+ if (y instanceof HTMLInputElement)
3355
+ if (y.type === "radio") {
3356
+ if (y.checked)
3357
+ return x = y.value, {
3355
3358
  key: V,
3356
- value: v
3359
+ value: x
3357
3360
  };
3358
- } else if (p.type === "checkbox")
3359
- v = p.checked;
3360
- else if (p.type === "number" || p.type === "range") {
3361
- const A = p.valueAsNumber;
3362
- isNaN(A) || (v = A);
3361
+ } else if (y.type === "checkbox")
3362
+ x = y.checked;
3363
+ else if (y.type === "number" || y.type === "range") {
3364
+ const A = y.valueAsNumber;
3365
+ isNaN(A) || (x = A);
3363
3366
  } else
3364
- p.type === "file" ? v = p.files : v = p.value;
3367
+ y.type === "file" ? x = y.files : x = y.value;
3365
3368
  else
3366
- v = p.value;
3369
+ x = y.value;
3367
3370
  return {
3368
3371
  key: V,
3369
- value: v
3372
+ value: x
3370
3373
  };
3371
3374
  });
3372
3375
  let E = e.contentType;
3373
- if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: p }) => {
3374
- (p instanceof File || Array.isArray(p) && p[0] instanceof File || p instanceof FileList) && (E = "multipart/form-data");
3376
+ if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: y }) => {
3377
+ (y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (E = "multipart/form-data");
3375
3378
  }), E !== "application/json")
3376
- b = S;
3379
+ f = v;
3377
3380
  else {
3378
- const p = {};
3379
- Array.from(T).forEach(({ value: v, key: V }) => {
3380
- Ke(p, V, v);
3381
- }), b = JSON.stringify(p);
3381
+ const y = {};
3382
+ Array.from(T).forEach(({ value: x, key: V }) => {
3383
+ Ke(y, V, x);
3384
+ }), f = JSON.stringify(y);
3382
3385
  }
3383
- E && E !== "multipart/form-data" && (x && ((f = e.action) != null && f.includes("zapier.com")) || (y["content-type"] = E));
3384
- const U = new CustomEvent("presubmit", { detail: { body: b } });
3386
+ E && E !== "multipart/form-data" && (S && ((m = e.action) != null && m.includes("zapier.com")) || (p["content-type"] = E));
3387
+ const U = new CustomEvent("presubmit", { detail: { body: f } });
3385
3388
  if (t.current && (t.current.dispatchEvent(U), U.defaultPrevented))
3386
3389
  return;
3387
3390
  if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
3388
- const p = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3389
- console.error(p), i("error"), c({ formErrorMessage: p });
3391
+ const y = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3392
+ console.error(y), i("error"), c({ formErrorMessage: y });
3390
3393
  return;
3391
3394
  }
3392
3395
  const H = `${Xn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3393
3396
  e.sendSubmissionsToEmail || ""
3394
3397
  )}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
3395
- Le(q), fetch(q, { body: b, headers: y, method: e.method || "post" }).then(
3396
- async (p) => {
3398
+ Le(q), fetch(q, { body: f, headers: p, method: e.method || "post" }).then(
3399
+ async (y) => {
3397
3400
  var A, W;
3398
- let v;
3399
- const V = p.headers.get("content-type");
3400
- if (V && V.indexOf("application/json") !== -1 ? v = await p.json() : v = await p.text(), !p.ok) {
3401
+ let x;
3402
+ const V = y.headers.get("content-type");
3403
+ if (V && V.indexOf("application/json") !== -1 ? x = await y.json() : x = await y.text(), !y.ok) {
3401
3404
  const R = new CustomEvent("submit:error", {
3402
- detail: { error: v, status: p.status }
3405
+ detail: { error: x, status: y.status }
3403
3406
  });
3404
3407
  if ((A = t.current) != null && A.nativeElement && ((W = t.current) == null || W.nativeElement.dispatchEvent(R), R.defaultPrevented))
3405
3408
  return;
3406
- a(v), i("error");
3407
- let P = e.errorMessagePath ? qe(v, e.errorMessagePath) : v.message || v.error || v;
3409
+ a(x), i("error");
3410
+ let P = e.errorMessagePath ? qe(x, e.errorMessagePath) : x.message || x.error || x;
3408
3411
  typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
3409
3412
  return;
3410
3413
  }
3411
- if (a(v), i(p.ok ? "success" : "error"), p.ok) {
3414
+ if (a(x), i(y.ok ? "success" : "error"), y.ok) {
3412
3415
  const R = new CustomEvent("submit:success", {
3413
- detail: { res: p, body: v }
3416
+ detail: { res: y, body: x }
3414
3417
  });
3415
3418
  if (t.current) {
3416
3419
  if (t.current.dispatchEvent(R), R.defaultPrevented)
@@ -3427,11 +3430,11 @@ function Zn(e) {
3427
3430
  location.href = e.successUrl;
3428
3431
  }
3429
3432
  },
3430
- (p) => {
3431
- const v = new CustomEvent("submit:error", {
3432
- detail: { error: p }
3433
+ (y) => {
3434
+ const x = new CustomEvent("submit:error", {
3435
+ detail: { error: y }
3433
3436
  });
3434
- t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (a(p), i("error"));
3437
+ t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (a(y), i("error"));
3435
3438
  }
3436
3439
  );
3437
3440
  }
@@ -3875,24 +3878,24 @@ function di(e) {
3875
3878
  });
3876
3879
  return B(() => {
3877
3880
  if (e.lazyLoad) {
3878
- const x = new IntersectionObserver(function(f) {
3879
- f.forEach(function(m) {
3880
- if (!m.isIntersecting)
3881
+ const S = new IntersectionObserver(function(m) {
3882
+ m.forEach(function(b) {
3883
+ if (!b.isIntersecting)
3881
3884
  return;
3882
- const y = m.target;
3885
+ const p = b.target;
3883
3886
  try {
3884
- Array.from(y.children).filter(
3885
- (b) => b instanceof HTMLElement && b.tagName === "SOURCE"
3886
- ).forEach((b) => {
3887
- const S = b.dataset.src;
3888
- S && (b.src = S);
3889
- }), y.load(), x.unobserve(y);
3890
- } catch (b) {
3891
- console.error("Error loading lazy video:", b);
3887
+ Array.from(p.children).filter(
3888
+ (f) => f instanceof HTMLElement && f.tagName === "SOURCE"
3889
+ ).forEach((f) => {
3890
+ const v = f.dataset.src;
3891
+ v && (f.src = v);
3892
+ }), p.load(), S.unobserve(p);
3893
+ } catch (f) {
3894
+ console.error("Error loading lazy video:", f);
3892
3895
  }
3893
3896
  });
3894
3897
  });
3895
- t.current && x.observe(t.current), a(x);
3898
+ t.current && S.observe(t.current), a(S);
3896
3899
  }
3897
3900
  }, []), B(() => () => {
3898
3901
  r && r.disconnect();
@@ -4247,17 +4250,17 @@ font-weight: ${l};
4247
4250
  }
4248
4251
  `, Pi = (e) => e ? "" : Ri, Vi = (e) => `variant-${e}`;
4249
4252
  function Ai(e) {
4250
- var H, q, p;
4253
+ var H, q, y;
4251
4254
  const t = z(null);
4252
4255
  k(() => !1), k(
4253
4256
  () => e.builderContextSignal
4254
4257
  );
4255
4258
  const [n, i] = k(() => null), [r, a] = k(() => "");
4256
- function o(v, V) {
4259
+ function o(x, V) {
4257
4260
  var W, R;
4258
4261
  const A = {
4259
4262
  ...e.builderContextSignal.rootState,
4260
- ...v
4263
+ ...x
4261
4264
  };
4262
4265
  e.builderContextSignal.rootSetState ? (R = (W = e.builderContextSignal).rootSetState) == null || R.call(W, A) : e.setBuilderContextSignal((P) => ({
4263
4266
  ...P,
@@ -4267,19 +4270,19 @@ function Ai(e) {
4267
4270
  rootState: A
4268
4271
  }));
4269
4272
  }
4270
- function l(v, V) {
4273
+ function l(x, V) {
4271
4274
  var W, R, P, I, N;
4272
4275
  const A = {
4273
4276
  ...e.builderContextSignal.content,
4274
- ...v,
4277
+ ...x,
4275
4278
  data: {
4276
4279
  ...(W = e.builderContextSignal.content) == null ? void 0 : W.data,
4277
- ...v == null ? void 0 : v.data
4280
+ ...x == null ? void 0 : x.data
4278
4281
  },
4279
4282
  meta: {
4280
4283
  ...(R = e.builderContextSignal.content) == null ? void 0 : R.meta,
4281
- ...v == null ? void 0 : v.meta,
4282
- breakpoints: ((P = v == null ? void 0 : v.meta) == null ? void 0 : P.breakpoints) || ((N = (I = e.builderContextSignal.content) == null ? void 0 : I.meta) == null ? void 0 : N.breakpoints)
4284
+ ...x == null ? void 0 : x.meta,
4285
+ breakpoints: ((P = x == null ? void 0 : x.meta) == null ? void 0 : P.breakpoints) || ((N = (I = e.builderContextSignal.content) == null ? void 0 : I.meta) == null ? void 0 : N.breakpoints)
4283
4286
  }
4284
4287
  };
4285
4288
  e.setBuilderContextSignal((C) => ({
@@ -4296,7 +4299,7 @@ function Ai(e) {
4296
4299
  const [d, h] = k(
4297
4300
  () => e.contentWrapper || "div"
4298
4301
  );
4299
- function g(v) {
4302
+ function g(x) {
4300
4303
  return ht({
4301
4304
  model: e.model,
4302
4305
  trustedHosts: e.trustedHosts,
@@ -4320,10 +4323,10 @@ function Ai(e) {
4320
4323
  o(V);
4321
4324
  }
4322
4325
  }
4323
- })(v);
4326
+ })(x);
4324
4327
  }
4325
- const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, b] = k(() => !1);
4326
- function S(v) {
4328
+ const [u, S] = k(() => ({})), [m, b] = k(() => ({})), [p, f] = k(() => !1);
4329
+ function v(x) {
4327
4330
  var V, A;
4328
4331
  if (e.builderContextSignal.content) {
4329
4332
  const W = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
@@ -4334,24 +4337,24 @@ function Ai(e) {
4334
4337
  contentId: R,
4335
4338
  apiKey: e.apiKey,
4336
4339
  variationId: W !== R ? W : void 0,
4337
- ...Ci(v),
4338
- unique: !y
4340
+ ...Ci(x),
4341
+ unique: !p
4339
4342
  });
4340
4343
  }
4341
- y || b(!0);
4344
+ p || f(!0);
4342
4345
  }
4343
4346
  function T() {
4344
4347
  var V, A, W;
4345
- const v = (W = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? W : {};
4346
- Object.entries(v).forEach(
4348
+ const x = (W = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? W : {};
4349
+ Object.entries(x).forEach(
4347
4350
  ([R, P]) => {
4348
4351
  if (!P)
4349
4352
  return;
4350
4353
  const I = typeof P == "object" && P["@type"] === "@builder.io/core:Request";
4351
- if (f[R] || u[R] && !_())
4354
+ if (m[R] || u[R] && !_())
4352
4355
  return;
4353
4356
  const N = I ? P.request.url : P;
4354
- f[R] = !0;
4357
+ m[R] = !0;
4355
4358
  const C = N.replace(
4356
4359
  /{{([^}]+)}}/g,
4357
4360
  (L, j) => String(
@@ -4389,7 +4392,7 @@ function Ai(e) {
4389
4392
  L
4390
4393
  );
4391
4394
  }).finally(() => {
4392
- f[R] = !1;
4395
+ m[R] = !1;
4393
4396
  });
4394
4397
  }
4395
4398
  );
@@ -4411,7 +4414,7 @@ function Ai(e) {
4411
4414
  }
4412
4415
  const U = z(!1);
4413
4416
  return U.current || (T(), E(), U.current = !0), B(() => {
4414
- var v, V, A, W, R;
4417
+ var x, V, A, W, R;
4415
4418
  if (J()) {
4416
4419
  _() && !e.isNestedRender && (window.addEventListener("message", g), dt({
4417
4420
  ...e.locale ? {
@@ -4423,7 +4426,7 @@ function Ai(e) {
4423
4426
  ...e.trustedHosts ? {
4424
4427
  trustedHosts: e.trustedHosts
4425
4428
  } : {},
4426
- modelName: (v = e.model) != null ? v : "",
4429
+ modelName: (x = e.model) != null ? x : "",
4427
4430
  apiKey: e.apiKey
4428
4431
  }), Object.values(
4429
4432
  e.builderContextSignal.componentInfos
@@ -4497,11 +4500,11 @@ function Ai(e) {
4497
4500
  d,
4498
4501
  {
4499
4502
  ref: t,
4500
- onClick: (v) => S(v),
4503
+ onClick: (x) => v(x),
4501
4504
  "builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
4502
4505
  "builder-model": e.model,
4503
4506
  className: Vi(
4504
- ((q = e.content) == null ? void 0 : q.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
4507
+ ((q = e.content) == null ? void 0 : q.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
4505
4508
  ),
4506
4509
  style: {
4507
4510
  display: !e.builderContextSignal.content && Oe() ? "none" : void 0
@@ -4563,22 +4566,22 @@ const Ni = ({
4563
4566
  meta: e == null ? void 0 : e.meta
4564
4567
  } : void 0;
4565
4568
  function Fe(e) {
4566
- var d, h, g, u, x, f, m, y, b;
4569
+ var d, h, g, u, S, m, b, p, f;
4567
4570
  const [t, n] = k(
4568
4571
  () => {
4569
- var S, T;
4572
+ var v, T;
4570
4573
  return xi({
4571
4574
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4572
- variationId: (S = e.content) == null ? void 0 : S.testVariationId,
4575
+ variationId: (v = e.content) == null ? void 0 : v.testVariationId,
4573
4576
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4574
4577
  contentId: (T = e.content) == null ? void 0 : T.id
4575
4578
  });
4576
4579
  }
4577
4580
  );
4578
- function i(S) {
4581
+ function i(v) {
4579
4582
  l((T) => ({
4580
4583
  ...T,
4581
- rootState: S
4584
+ rootState: v
4582
4585
  }));
4583
4586
  }
4584
4587
  const [r, a] = k(
@@ -4586,8 +4589,8 @@ function Fe(e) {
4586
4589
  ...We(),
4587
4590
  ...e.customComponents || []
4588
4591
  ].reduce(
4589
- (S, { component: T, ...E }) => ({
4590
- ...S,
4592
+ (v, { component: T, ...E }) => ({
4593
+ ...v,
4591
4594
  [E.name]: {
4592
4595
  component: T,
4593
4596
  ...we(E)
@@ -4615,8 +4618,8 @@ function Fe(e) {
4615
4618
  ...We(),
4616
4619
  ...e.customComponents || []
4617
4620
  ].reduce(
4618
- (S, { component: T, ...E }) => ({
4619
- ...S,
4621
+ (v, { component: T, ...E }) => ({
4622
+ ...v,
4620
4623
  [E.name]: we(E)
4621
4624
  }),
4622
4625
  {}
@@ -4631,9 +4634,9 @@ function Fe(e) {
4631
4634
  e.apiKey || Q.error(
4632
4635
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4633
4636
  );
4634
- const S = (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
4635
- S && Y({
4636
- code: S,
4637
+ const v = (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
4638
+ v && Y({
4639
+ code: v,
4637
4640
  context: e.context || {},
4638
4641
  localState: void 0,
4639
4642
  rootState: o.rootState,
@@ -4685,14 +4688,14 @@ function Fe(e) {
4685
4688
  nonce: e.nonce || "",
4686
4689
  isNestedRender: e.isNestedRender,
4687
4690
  contentId: (g = o.content) == null ? void 0 : g.id,
4688
- cssCode: (x = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : x.cssCode,
4689
- customFonts: (m = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
4691
+ cssCode: (S = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : S.cssCode,
4692
+ customFonts: (b = (m = o.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
4690
4693
  }
4691
4694
  ),
4692
4695
  /* @__PURE__ */ s(
4693
4696
  M,
4694
4697
  {
4695
- blocks: (b = (y = o.content) == null ? void 0 : y.data) == null ? void 0 : b.blocks,
4698
+ blocks: (f = (p = o.content) == null ? void 0 : p.data) == null ? void 0 : f.blocks,
4696
4699
  context: o,
4697
4700
  registeredComponents: r,
4698
4701
  linkComponent: e.linkComponent
@@ -4836,7 +4839,7 @@ const Di = async ({
4836
4839
  (e != null && e.apiKey))
4837
4840
  return _e({
4838
4841
  model: t.model,
4839
- apiKey: e.apiKey,
4842
+ apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
4840
4843
  apiVersion: e.apiVersion,
4841
4844
  ...(t == null ? void 0 : t.entry) && {
4842
4845
  query: {
@@ -4848,7 +4851,7 @@ const Di = async ({
4848
4851
  });
4849
4852
  };
4850
4853
  function Oi(e) {
4851
- var h, g, u, x, f;
4854
+ var h, g, u, S, m, b, p;
4852
4855
  function t() {
4853
4856
  return "div";
4854
4857
  }
@@ -4859,29 +4862,29 @@ function Oi(e) {
4859
4862
  return Object.values(e.builderComponents);
4860
4863
  }
4861
4864
  function r() {
4862
- var m, y;
4865
+ var f, v;
4863
4866
  return [
4864
4867
  e.attributes[K()],
4865
4868
  "builder-symbol",
4866
- (m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
4867
- (y = e.symbol) != null && y.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4869
+ (f = e.symbol) != null && f.inline ? "builder-inline-symbol" : void 0,
4870
+ (v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4868
4871
  ].filter(Boolean).join(" ");
4869
4872
  }
4870
4873
  const [a, o] = k(() => {
4871
- var m;
4872
- return (m = e.symbol) == null ? void 0 : m.content;
4874
+ var f;
4875
+ return (f = e.symbol) == null ? void 0 : f.content;
4873
4876
  }), [l, c] = k(() => {
4874
- var m;
4875
- return (m = e.symbol) == null ? void 0 : m.entry;
4877
+ var f;
4878
+ return (f = e.symbol) == null ? void 0 : f.entry;
4876
4879
  });
4877
4880
  function d() {
4878
- var m;
4879
- a && l === ((m = e.symbol) == null ? void 0 : m.entry) || Di({
4881
+ var f;
4882
+ a && l === ((f = e.symbol) == null ? void 0 : f.entry) || Di({
4880
4883
  symbol: e.symbol,
4881
4884
  builderContextValue: e.builderContext
4882
- }).then((y) => {
4883
- var b;
4884
- y && (o(y), c((b = e.symbol) == null ? void 0 : b.entry));
4885
+ }).then((v) => {
4886
+ var T;
4887
+ v && (o(v), c((T = e.symbol) == null ? void 0 : T.entry));
4885
4888
  });
4886
4889
  }
4887
4890
  return B(() => {
@@ -4893,19 +4896,19 @@ function Oi(e) {
4893
4896
  nonce: e.builderContext.nonce,
4894
4897
  isNestedRender: !0,
4895
4898
  apiVersion: e.builderContext.apiVersion,
4896
- apiKey: e.builderContext.apiKey,
4899
+ apiKey: (h = e.symbol) != null && h.global && ((g = e.symbol) != null && g.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
4897
4900
  context: {
4898
4901
  ...e.builderContext.context,
4899
- symbolId: (h = e.builderBlock) == null ? void 0 : h.id
4902
+ symbolId: (u = e.builderBlock) == null ? void 0 : u.id
4900
4903
  },
4901
4904
  customComponents: i(),
4902
4905
  data: {
4903
- ...(g = e.symbol) == null ? void 0 : g.data,
4906
+ ...(S = e.symbol) == null ? void 0 : S.data,
4904
4907
  ...e.builderContext.localState,
4905
- ...(u = a == null ? void 0 : a.data) == null ? void 0 : u.state
4908
+ ...(m = a == null ? void 0 : a.data) == null ? void 0 : m.state
4906
4909
  },
4907
4910
  canTrack: e.builderContext.canTrack,
4908
- model: (f = (x = e.symbol) == null ? void 0 : x.model) != null ? f : "",
4911
+ model: (p = (b = e.symbol) == null ? void 0 : b.model) != null ? p : "",
4909
4912
  content: a,
4910
4913
  linkComponent: e.builderLinkComponent,
4911
4914
  blocksWrapper: t(),