@builder.io/sdk-react 5.1.1 → 5.2.0

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 +11 -11
  2. package/lib/browser/blocks-exports.mjs +281 -281
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-85aa99e6.cjs → server-entry-1549d863.cjs} +1 -1
  6. package/lib/browser/{server-entry-a3b5302c.js → server-entry-81390e9b.js} +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-90d607ca.js} +1 -1
  10. package/lib/edge/{accordion-1e467b30.cjs → accordion-ba377db1.cjs} +1 -1
  11. package/lib/edge/{blocks-6b821501.js → blocks-482bd303.js} +2 -2
  12. package/lib/edge/{blocks-4d57d38f.cjs → blocks-49400750.cjs} +1 -1
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-b2eb1d64.cjs → button-1dd20b20.cjs} +1 -1
  16. package/lib/edge/{button-52af8a54.js → button-76b09bda.js} +2 -2
  17. package/lib/edge/{columns-e0489b50.js → columns-89f6f5b7.js} +3 -3
  18. package/lib/edge/{columns-8eb66fad.cjs → columns-ed698360.cjs} +1 -1
  19. package/lib/edge/{content-variants-5003144d.js → content-variants-6e54d1d8.js} +12 -12
  20. package/lib/edge/{content-variants-6c1ee307.cjs → content-variants-98b86c90.cjs} +2 -2
  21. package/lib/edge/{custom-code-4e76fc0d.js → custom-code-3387f2ee.js} +1 -1
  22. package/lib/edge/{custom-code-bc787526.cjs → custom-code-62511fce.cjs} +1 -1
  23. package/lib/edge/{embed-8ef248c5.cjs → embed-54bfd2b5.cjs} +1 -1
  24. package/lib/edge/{embed-fd344d6d.js → embed-e24c574a.js} +1 -1
  25. package/lib/edge/{form-107c9eae.cjs → form-5c77fb87.cjs} +1 -1
  26. package/lib/edge/{form-4efa40a5.js → form-b3b23e9b.js} +3 -3
  27. package/lib/edge/{get-class-prop-name-e6f7321f.js → get-class-prop-name-2e01e11c.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-2c2513e9.cjs → get-class-prop-name-3347a655.cjs} +1 -1
  29. package/lib/edge/{img-ab241f22.cjs → img-8430be52.cjs} +1 -1
  30. package/lib/edge/{img-a32b0723.js → img-d900f0a6.js} +2 -2
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/{input-c48fe23a.js → input-6b9d2f0d.js} +1 -1
  34. package/lib/edge/{input-ada30ffb.cjs → input-e522b3f8.cjs} +1 -1
  35. package/lib/edge/{personalization-container-ad7cf89c.js → personalization-container-42afbf21.js} +4 -4
  36. package/lib/edge/{personalization-container-375a1501.cjs → personalization-container-9469f576.cjs} +1 -1
  37. package/lib/edge/{select-879c52dd.cjs → select-38371935.cjs} +1 -1
  38. package/lib/edge/{select-a49d819c.js → select-e1a9f4c9.js} +1 -1
  39. package/lib/edge/{server-entry-68d59577.js → server-entry-954fe774.js} +1 -1
  40. package/lib/edge/{server-entry-560732da.cjs → server-entry-a2bf7e77.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-5da991d1.cjs → slot-562ee3ff.cjs} +1 -1
  44. package/lib/edge/{slot-005d6258.js → slot-cc86bcca.js} +3 -3
  45. package/lib/edge/symbol-099ae199.cjs +1 -0
  46. package/lib/edge/symbol-6224d576.js +93 -0
  47. package/lib/edge/{tabs-69a36a5c.js → tabs-51cb7107.js} +3 -3
  48. package/lib/edge/{tabs-96367bf5.cjs → tabs-e1cf9ee7.cjs} +1 -1
  49. package/lib/node/blocks-exports.cjs +11 -11
  50. package/lib/node/blocks-exports.mjs +283 -283
  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-2529c06e.cjs → server-entry-1c10e3d9.cjs} +1 -1
  56. package/lib/node/{server-entry-fc7f08d8.js → server-entry-85c98f9a.js} +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-a5e6d580.cjs} +1 -1
  60. package/lib/node/{setIvm-41d8b067.js → setIvm-ed61fc8c.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-03c2678b.js} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-1d85a066.cjs → should-force-browser-runtime-in-node-36ea59a2.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-81390e9b.js";
3
+ import { setClientUserAttributes as Mi } from "./server-entry-81390e9b.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() {
@@ -859,51 +859,51 @@ function Ae(e) {
859
859
  ), 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
860
  if (!u)
861
861
  return "";
862
- const x = c ? X({
862
+ const S = c ? X({
863
863
  className: u,
864
864
  styles: c
865
- }) : "", f = d ? X({
865
+ }) : "", m = d ? X({
866
866
  className: u,
867
867
  styles: d,
868
868
  mediaQuery: de(
869
869
  "medium",
870
870
  o
871
871
  )
872
- }) : "", m = h ? X({
872
+ }) : "", b = h ? X({
873
873
  className: u,
874
874
  styles: h,
875
875
  mediaQuery: de(
876
876
  "small",
877
877
  o
878
878
  )
879
- }) : "", y = g && l ? X({
879
+ }) : "", p = g && l ? X({
880
880
  className: u,
881
881
  styles: g,
882
882
  mediaQuery: de(
883
883
  "xsmall",
884
884
  o
885
885
  )
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({
886
+ }) : "", f = i.animations && i.animations.find((y) => y.trigger === "hover");
887
+ let v = "";
888
+ if (f) {
889
+ const y = ((q = (H = f.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
890
+ v = X({
891
891
  className: `${u}:hover`,
892
892
  styles: {
893
- ...p,
894
- transition: `all ${b.duration}s ${ce(
895
- b.easing
893
+ ...y,
894
+ transition: `all ${f.duration}s ${ce(
895
+ f.easing
896
896
  )}`,
897
- transitionDelay: b.delay ? `${b.delay}s` : "0s"
897
+ transitionDelay: f.delay ? `${f.delay}s` : "0s"
898
898
  }
899
899
  }) || "";
900
900
  }
901
901
  return [
902
- x,
903
- f,
902
+ S,
904
903
  m,
905
- y,
906
- S
904
+ b,
905
+ p,
906
+ v
907
907
  ].join(" ");
908
908
  }
909
909
  return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
@@ -922,7 +922,7 @@ function sn(e) {
922
922
  }, []), /* @__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
923
  }
924
924
  function ue(e) {
925
- var h, g, u, x;
925
+ var h, g, u, S;
926
926
  function t() {
927
927
  return Kt({
928
928
  block: e.block,
@@ -934,17 +934,17 @@ function ue(e) {
934
934
  update: !1
935
935
  }));
936
936
  function r() {
937
- var m;
937
+ var b;
938
938
  if (n.value && !n.update && !le())
939
939
  return n.value;
940
- const f = (m = e.block.repeat) != null && m.collection ? e.block : Ft({
940
+ const m = (b = e.block.repeat) != null && b.collection ? e.block : Ft({
941
941
  block: e.block,
942
942
  localState: e.context.localState,
943
943
  rootState: e.context.rootState,
944
944
  rootSetState: e.context.rootSetState,
945
945
  context: e.context.context
946
946
  });
947
- return n.value = f, n.update = !1, f;
947
+ return n.value = m, n.update = !1, m;
948
948
  }
949
949
  function a() {
950
950
  return zt({
@@ -954,25 +954,25 @@ function ue(e) {
954
954
  });
955
955
  }
956
956
  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";
957
+ var b;
958
+ return e.block.tagName === "a" || ((b = r().properties) == null ? void 0 : b.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
959
959
  }
960
960
  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;
961
+ var p, f;
962
+ if ((p = e.block.repeat) != null && p.collection)
963
+ return !!((f = t == null ? void 0 : t()) != null && f.length);
964
+ const m = "hide" in r() ? r().hide : !1;
965
+ return ("show" in r() ? r().show : !0) && !m;
966
966
  }
967
967
  function c() {
968
- var m, y;
969
- return !((m = a == null ? void 0 : a()) != null && m.component) && !t() ? (y = r().children) != null ? y : [] : [];
968
+ var b, p;
969
+ return !((b = a == null ? void 0 : a()) != null && b.component) && !t() ? (p = r().children) != null ? p : [] : [];
970
970
  }
971
971
  function d() {
972
- var f, m, y, b;
972
+ var m, b, p, f;
973
973
  return {
974
- blockChildren: (f = r().children) != null ? f : [],
975
- componentRef: (m = a == null ? void 0 : a()) == null ? void 0 : m.component,
974
+ blockChildren: (m = r().children) != null ? m : [],
975
+ componentRef: (b = a == null ? void 0 : a()) == null ? void 0 : b.component,
976
976
  componentOptions: {
977
977
  ...Pt(r(), e.context),
978
978
  ...Qt(a(), r()),
@@ -988,16 +988,16 @@ function ue(e) {
988
988
  linkComponent: e.linkComponent,
989
989
  registeredComponents: e.registeredComponents,
990
990
  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")
991
+ includeBlockProps: ((p = a == null ? void 0 : a()) == null ? void 0 : p.noWrap) === !0,
992
+ isInteractive: !((f = a == null ? void 0 : a()) != null && f.isRSC && O === "rsc")
993
993
  };
994
994
  }
995
995
  return B(() => {
996
- const f = r().id, m = r().animations;
997
- m && f && _t(
998
- m.map((y) => ({
999
- ...y,
1000
- elementId: f
996
+ const m = r().id, b = r().animations;
997
+ b && m && _t(
998
+ b.map((p) => ({
999
+ ...p,
1000
+ elementId: m
1001
1001
  }))
1002
1002
  );
1003
1003
  }, []), B(() => {
@@ -1011,15 +1011,15 @@ function ue(e) {
1011
1011
  id: e.block.id
1012
1012
  }
1013
1013
  ),
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(
1014
+ (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
1015
  Ve,
1016
1016
  {
1017
- repeatContext: f.context,
1018
- block: f.block,
1017
+ repeatContext: m.context,
1018
+ block: m.block,
1019
1019
  registeredComponents: e.registeredComponents,
1020
1020
  linkComponent: e.linkComponent
1021
1021
  },
1022
- Re(m)
1022
+ Re(b)
1023
1023
  )) }) : /* @__PURE__ */ s(
1024
1024
  Pe,
1025
1025
  {
@@ -1033,15 +1033,15 @@ function ue(e) {
1033
1033
  includeBlockProps: d().includeBlockProps,
1034
1034
  isInteractive: d().isInteractive
1035
1035
  }
1036
- ) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((f, m) => /* @__PURE__ */ s(
1036
+ ) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((m, b) => /* @__PURE__ */ s(
1037
1037
  Ve,
1038
1038
  {
1039
- repeatContext: f.context,
1040
- block: f.block,
1039
+ repeatContext: m.context,
1040
+ block: m.block,
1041
1041
  registeredComponents: e.registeredComponents,
1042
1042
  linkComponent: e.linkComponent
1043
1043
  },
1044
- Re(m)
1044
+ Re(b)
1045
1045
  )) }) : /* @__PURE__ */ D(
1046
1046
  rn,
1047
1047
  {
@@ -1063,15 +1063,15 @@ function ue(e) {
1063
1063
  isInteractive: d().isInteractive
1064
1064
  }
1065
1065
  ),
1066
- (g = c()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
1066
+ (g = c()) == null ? void 0 : g.map((m) => /* @__PURE__ */ s(
1067
1067
  ue,
1068
1068
  {
1069
- block: f,
1069
+ block: m,
1070
1070
  registeredComponents: e.registeredComponents,
1071
1071
  linkComponent: e.linkComponent,
1072
1072
  context: e.context
1073
1073
  },
1074
- f.id
1074
+ m.id
1075
1075
  ))
1076
1076
  ]
1077
1077
  }
@@ -1177,7 +1177,7 @@ function M(e) {
1177
1177
  }
1178
1178
  const un = (e) => `builder-columns ${e}-breakpoints`;
1179
1179
  function dn(e) {
1180
- var m, y;
1180
+ var b, p;
1181
1181
  function t() {
1182
1182
  return typeof e.space == "number" ? e.space || 0 : 20;
1183
1183
  }
@@ -1187,28 +1187,28 @@ function dn(e) {
1187
1187
  function i() {
1188
1188
  return e.stackColumnsAt || "tablet";
1189
1189
  }
1190
- function r(b) {
1191
- return b.link ? e.builderLinkComponent || "a" : "div";
1190
+ function r(f) {
1191
+ return f.link ? e.builderLinkComponent || "a" : "div";
1192
1192
  }
1193
- function a(b) {
1194
- var S;
1195
- return ((S = n()[b]) == null ? void 0 : S.width) || 100 / n().length;
1193
+ function a(f) {
1194
+ var v;
1195
+ return ((v = n()[f]) == null ? void 0 : v.width) || 100 / n().length;
1196
1196
  }
1197
- function o(b) {
1198
- const S = a(b), T = t() * (n().length - 1) * (S / 100);
1199
- return `calc(${S}% - ${T}px)`;
1197
+ function o(f) {
1198
+ const v = a(f), T = t() * (n().length - 1) * (v / 100);
1199
+ return `calc(${v}% - ${T}px)`;
1200
1200
  }
1201
1201
  function l({
1202
- stackedStyle: b,
1203
- desktopStyle: S
1202
+ stackedStyle: f,
1203
+ desktopStyle: v
1204
1204
  }) {
1205
- return i() === "tablet" ? b : S;
1205
+ return i() === "tablet" ? f : v;
1206
1206
  }
1207
1207
  function c({
1208
- stackedStyle: b,
1209
- desktopStyle: S
1208
+ stackedStyle: f,
1209
+ desktopStyle: v
1210
1210
  }) {
1211
- return i() === "never" ? S : b;
1211
+ return i() === "never" ? v : f;
1212
1212
  }
1213
1213
  function d() {
1214
1214
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -1222,8 +1222,8 @@ function dn(e) {
1222
1222
  })
1223
1223
  };
1224
1224
  }
1225
- function g(b) {
1226
- const S = b === 0 ? 0 : t(), T = o(b), E = `${S}px`, U = "100%", H = 0;
1225
+ function g(f) {
1226
+ const v = f === 0 ? 0 : t(), T = o(f), E = `${v}px`, U = "100%", H = 0;
1227
1227
  return {
1228
1228
  ...{
1229
1229
  display: "flex",
@@ -1250,14 +1250,14 @@ function dn(e) {
1250
1250
  })
1251
1251
  };
1252
1252
  }
1253
- function u(b) {
1253
+ function u(f) {
1254
1254
  var T, E;
1255
1255
  return nt(
1256
1256
  ((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
1257
- )[b].max;
1257
+ )[f].max;
1258
1258
  }
1259
- function x() {
1260
- const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1259
+ function S() {
1260
+ const f = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1261
1261
  return `
1262
1262
  @media (max-width: ${u("medium")}px) {
1263
1263
  .${e.builderBlock.id}-breakpoints {
@@ -1265,7 +1265,7 @@ function dn(e) {
1265
1265
  align-items: stretch;
1266
1266
  }
1267
1267
 
1268
- ${b} {
1268
+ ${f} {
1269
1269
  width: var(--column-width-tablet) !important;
1270
1270
  margin-left: var(--column-margin-left-tablet) !important;
1271
1271
  }
@@ -1277,20 +1277,20 @@ function dn(e) {
1277
1277
  align-items: stretch;
1278
1278
  }
1279
1279
 
1280
- ${b} {
1280
+ ${f} {
1281
1281
  width: var(--column-width-mobile) !important;
1282
1282
  margin-left: var(--column-margin-left-mobile) !important;
1283
1283
  }
1284
1284
  },
1285
1285
  `;
1286
1286
  }
1287
- function f(b, S) {
1287
+ function m(f, v) {
1288
1288
  return {
1289
- ...b.link ? {
1290
- href: b.link
1289
+ ...f.link ? {
1290
+ href: f.link
1291
1291
  } : {},
1292
1292
  [K()]: "builder-column",
1293
- style: Xe(g(S))
1293
+ style: Xe(g(v))
1294
1294
  };
1295
1295
  }
1296
1296
  return /* @__PURE__ */ D(w, { children: [
@@ -1302,39 +1302,39 @@ function dn(e) {
1302
1302
  /* @__PURE__ */ D(
1303
1303
  "div",
1304
1304
  {
1305
- className: un((m = e.builderBlock) == null ? void 0 : m.id) + " div-0369db37",
1305
+ className: un((b = e.builderBlock) == null ? void 0 : b.id) + " div-0369db37",
1306
1306
  style: h(),
1307
1307
  children: [
1308
1308
  /* @__PURE__ */ s(
1309
1309
  te,
1310
1310
  {
1311
1311
  id: "builderio-columns",
1312
- styles: x(),
1312
+ styles: S(),
1313
1313
  nonce: e.builderContext.nonce
1314
1314
  }
1315
1315
  ),
1316
- (y = e.columns) == null ? void 0 : y.map((b, S) => /* @__PURE__ */ s(
1316
+ (p = e.columns) == null ? void 0 : p.map((f, v) => /* @__PURE__ */ s(
1317
1317
  xe,
1318
1318
  {
1319
- TagName: r(b),
1319
+ TagName: r(f),
1320
1320
  actionAttributes: {},
1321
- attributes: f(b, S),
1321
+ attributes: m(f, v),
1322
1322
  children: /* @__PURE__ */ s(
1323
1323
  M,
1324
1324
  {
1325
- path: `columns.${S}.blocks`,
1325
+ path: `columns.${v}.blocks`,
1326
1326
  parent: e.builderBlock.id,
1327
1327
  context: e.builderContext,
1328
1328
  registeredComponents: e.builderComponents,
1329
1329
  linkComponent: e.builderLinkComponent,
1330
- blocks: b.blocks,
1330
+ blocks: f.blocks,
1331
1331
  styleProp: {
1332
1332
  flexGrow: "1"
1333
1333
  }
1334
1334
  }
1335
1335
  )
1336
1336
  },
1337
- S
1337
+ v
1338
1338
  ))
1339
1339
  ]
1340
1340
  }
@@ -1492,42 +1492,42 @@ function yn(e, t, n, i) {
1492
1492
  }
1493
1493
  function o(d, h) {
1494
1494
  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))
1495
+ const u = h.property, S = h.operator;
1496
+ let m = h.value;
1497
+ 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
1498
  return !0;
1499
- if (Array.isArray(f))
1500
- return x === "isNot" ? f.every((y) => o(d, {
1499
+ if (Array.isArray(m))
1500
+ return S === "isNot" ? m.every((p) => o(d, {
1501
1501
  property: u,
1502
- operator: x,
1503
- value: y
1504
- })) : !!f.find((y) => o(d, {
1502
+ operator: S,
1503
+ value: p
1504
+ })) : !!m.find((p) => o(d, {
1505
1505
  property: u,
1506
- operator: x,
1507
- value: y
1506
+ operator: S,
1507
+ value: p
1508
1508
  }));
1509
- const m = d[u];
1510
- if (Array.isArray(m))
1511
- return m.includes(f);
1512
- switch (x) {
1509
+ const b = d[u];
1510
+ if (Array.isArray(b))
1511
+ return b.includes(m);
1512
+ switch (S) {
1513
1513
  case "is":
1514
- return m === f;
1514
+ return b === m;
1515
1515
  case "isNot":
1516
- return m !== f;
1516
+ return b !== m;
1517
1517
  case "contains":
1518
- return (r(m) || Array.isArray(m)) && m.includes(String(f));
1518
+ return (r(b) || Array.isArray(b)) && b.includes(String(m));
1519
1519
  case "startsWith":
1520
- return r(m) && m.startsWith(String(f));
1520
+ return r(b) && b.startsWith(String(m));
1521
1521
  case "endsWith":
1522
- return r(m) && m.endsWith(String(f));
1522
+ return r(b) && b.endsWith(String(m));
1523
1523
  case "greaterThan":
1524
- return a(m) && a(f) && m > f;
1524
+ return a(b) && a(m) && b > m;
1525
1525
  case "lessThan":
1526
- return a(m) && a(f) && m < f;
1526
+ return a(b) && a(m) && b < m;
1527
1527
  case "greaterThanOrEqualTo":
1528
- return a(m) && a(f) && m >= f;
1528
+ return a(b) && a(m) && b >= m;
1529
1529
  case "lessThanOrEqualTo":
1530
- return a(m) && a(f) && m <= f;
1530
+ return a(b) && a(m) && b <= m;
1531
1531
  default:
1532
1532
  return !1;
1533
1533
  }
@@ -1892,7 +1892,7 @@ function Rn(e) {
1892
1892
  };
1893
1893
  }
1894
1894
  function a() {
1895
- const x = {
1895
+ const S = {
1896
1896
  ...{
1897
1897
  display: "flex",
1898
1898
  flexDirection: "column"
@@ -1901,7 +1901,7 @@ function Rn(e) {
1901
1901
  cursor: "pointer"
1902
1902
  };
1903
1903
  return Object.fromEntries(
1904
- Object.entries(x).filter(([f, m]) => m !== void 0)
1904
+ Object.entries(S).filter(([m, b]) => b !== void 0)
1905
1905
  );
1906
1906
  }
1907
1907
  function o(u) {
@@ -1913,23 +1913,23 @@ function Rn(e) {
1913
1913
  function c() {
1914
1914
  let u = null;
1915
1915
  if (e.grid && t.length && document) {
1916
- const f = t[0];
1917
- let y = document.querySelector(
1918
- `.builder-accordion-title[data-index="${f}"]`
1916
+ const m = t[0];
1917
+ let p = document.querySelector(
1918
+ `.builder-accordion-title[data-index="${m}"]`
1919
1919
  );
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"))
1920
+ if (u = m, p) {
1921
+ let f = p.getBoundingClientRect();
1922
+ for (; p = p && p.nextElementSibling; )
1923
+ if (p) {
1924
+ if (p.classList.contains("builder-accordion-detail"))
1925
1925
  continue;
1926
- const S = y.getBoundingClientRect();
1927
- if (S.left > b.left) {
1926
+ const v = p.getBoundingClientRect();
1927
+ if (v.left > f.left) {
1928
1928
  const T = parseInt(
1929
- y.getAttribute("data-index") || "",
1929
+ p.getAttribute("data-index") || "",
1930
1930
  10
1931
1931
  );
1932
- isNaN(T) || (b = S, u = T);
1932
+ isNaN(T) || (f = v, u = T);
1933
1933
  } else
1934
1934
  break;
1935
1935
  }
@@ -1945,31 +1945,31 @@ function Rn(e) {
1945
1945
  }
1946
1946
  };
1947
1947
  return Object.fromEntries(
1948
- Object.entries(u).filter(([x, f]) => f !== void 0)
1948
+ Object.entries(u).filter(([S, m]) => m !== void 0)
1949
1949
  );
1950
1950
  }
1951
1951
  function h(u) {
1952
- t.includes(u) ? n(i() ? [] : t.filter((x) => x !== u)) : n(i() ? [u] : t.concat(u));
1952
+ t.includes(u) ? n(i() ? [] : t.filter((S) => S !== u)) : n(i() ? [u] : t.concat(u));
1953
1953
  }
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: [
1954
+ 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
1955
  /* @__PURE__ */ s(
1956
1956
  "div",
1957
1957
  {
1958
- className: o(x),
1958
+ className: o(S),
1959
1959
  style: {
1960
1960
  ...a(),
1961
1961
  ...e.grid && {
1962
1962
  width: e.gridRowWidth,
1963
- order: c() !== null ? Ne(x) : Ne(x + 1)
1963
+ order: c() !== null ? Ne(S) : Ne(S + 1)
1964
1964
  }
1965
1965
  },
1966
- "data-index": x,
1967
- onClick: (f) => h(x),
1966
+ "data-index": S,
1967
+ onClick: (m) => h(S),
1968
1968
  children: /* @__PURE__ */ s(
1969
1969
  M,
1970
1970
  {
1971
1971
  blocks: u.title,
1972
- path: `items.${x}.title`,
1972
+ path: `items.${S}.title`,
1973
1973
  parent: e.builderBlock.id,
1974
1974
  context: e.builderContext,
1975
1975
  registeredComponents: e.builderComponents,
@@ -1978,16 +1978,16 @@ function Rn(e) {
1978
1978
  )
1979
1979
  }
1980
1980
  ),
1981
- t.includes(x) ? /* @__PURE__ */ s(
1981
+ t.includes(S) ? /* @__PURE__ */ s(
1982
1982
  "div",
1983
1983
  {
1984
- className: l(x),
1984
+ className: l(S),
1985
1985
  style: d(),
1986
1986
  children: /* @__PURE__ */ s(
1987
1987
  M,
1988
1988
  {
1989
1989
  blocks: u.detail,
1990
- path: `items.${x}.detail`,
1990
+ path: `items.${S}.detail`,
1991
1991
  parent: e.builderBlock.id,
1992
1992
  context: e.builderContext,
1993
1993
  registeredComponents: e.builderComponents,
@@ -1996,7 +1996,7 @@ function Rn(e) {
1996
1996
  )
1997
1997
  }
1998
1998
  ) : null
1999
- ] }, x)) });
1999
+ ] }, S)) });
2000
2000
  }
2001
2001
  const Pn = {
2002
2002
  name: "Core:Button",
@@ -2407,7 +2407,7 @@ function G(e) {
2407
2407
  );
2408
2408
  }
2409
2409
  function $n(e) {
2410
- var S, T, E, U, H, q, p, v, V, A, W, R, P;
2410
+ var v, T, E, U, H, q, y, x, V, A, W, R, P;
2411
2411
  const t = z(null), [n, i] = k(
2412
2412
  () => Ie.getUserAttributes()
2413
2413
  ), [r, a] = k(
@@ -2436,14 +2436,14 @@ function $n(e) {
2436
2436
  ee((I = e.builderContext) == null ? void 0 : I.canTrack)
2437
2437
  );
2438
2438
  }
2439
- ), [u, x] = k(() => !1);
2440
- function f() {
2439
+ ), [u, S] = k(() => !1);
2440
+ function m() {
2441
2441
  return {
2442
2442
  ...e.attributes,
2443
2443
  [K()]: `builder-personalization-container ${e.attributes[K()] || ""}`
2444
2444
  };
2445
2445
  }
2446
- function m() {
2446
+ function b() {
2447
2447
  return (e.variants || []).filter((I) => {
2448
2448
  var N, C, $, F;
2449
2449
  return yn(
@@ -2459,17 +2459,17 @@ function $n(e) {
2459
2459
  );
2460
2460
  });
2461
2461
  }
2462
- function y() {
2462
+ function p() {
2463
2463
  var I;
2464
2464
  return Cn({
2465
2465
  variants: e.variants,
2466
2466
  fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
2467
2467
  isHydrated: u,
2468
- filteredVariants: m(),
2468
+ filteredVariants: b(),
2469
2469
  previewingIndex: e.previewingIndex
2470
2470
  });
2471
2471
  }
2472
- function b() {
2472
+ function f() {
2473
2473
  return (e.variants || []).map(
2474
2474
  (I, N) => {
2475
2475
  var C;
@@ -2479,7 +2479,7 @@ function $n(e) {
2479
2479
  }
2480
2480
  return B(() => {
2481
2481
  var N;
2482
- x(!0);
2482
+ S(!0);
2483
2483
  const I = Ie.subscribeOnUserAttributesChange(
2484
2484
  (C) => {
2485
2485
  i(C);
@@ -2489,7 +2489,7 @@ function $n(e) {
2489
2489
  }
2490
2490
  );
2491
2491
  if (!(_() || le())) {
2492
- const C = m()[0];
2492
+ const C = b()[0];
2493
2493
  t.current && (t.current.dispatchEvent(
2494
2494
  new CustomEvent("builder.variantLoaded", {
2495
2495
  detail: {
@@ -2516,18 +2516,18 @@ function $n(e) {
2516
2516
  c.push(I);
2517
2517
  }, []), B(() => () => {
2518
2518
  c.forEach((I) => I());
2519
- }, []), /* @__PURE__ */ D("div", { ref: t, ...f(), children: [
2519
+ }, []), /* @__PURE__ */ D("div", { ref: t, ...m(), children: [
2520
2520
  u && ie.includes(O) ? /* @__PURE__ */ s(
2521
2521
  M,
2522
2522
  {
2523
- blocks: y().blocks,
2524
- parent: (S = e.builderBlock) == null ? void 0 : S.id,
2525
- path: y().path,
2523
+ blocks: p().blocks,
2524
+ parent: (v = e.builderBlock) == null ? void 0 : v.id,
2525
+ path: p().path,
2526
2526
  context: e.builderContext,
2527
2527
  registeredComponents: e.builderComponents,
2528
2528
  BlocksWrapperProps: {
2529
2529
  ...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
2530
- "data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${y().index}`
2530
+ "data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${p().index}`
2531
2531
  }
2532
2532
  }
2533
2533
  ) : null,
@@ -2537,7 +2537,7 @@ function $n(e) {
2537
2537
  te,
2538
2538
  {
2539
2539
  nonce: ((U = e.builderContext) == null ? void 0 : U.nonce) || "",
2540
- styles: b(),
2540
+ styles: f(),
2541
2541
  id: `variants-styles-${(H = e.builderBlock) == null ? void 0 : H.id}`
2542
2542
  }
2543
2543
  ),
@@ -2546,10 +2546,10 @@ function $n(e) {
2546
2546
  {
2547
2547
  nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
2548
2548
  scriptStr: o,
2549
- id: `variants-visibility-script-${(p = e.builderBlock) == null ? void 0 : p.id}`
2549
+ id: `variants-visibility-script-${(y = e.builderBlock) == null ? void 0 : y.id}`
2550
2550
  }
2551
2551
  ),
2552
- (v = e.variants) == null ? void 0 : v.map((I, N) => {
2552
+ (x = e.variants) == null ? void 0 : x.map((I, N) => {
2553
2553
  var C, $, F, L, j, Te;
2554
2554
  return /* @__PURE__ */ s(
2555
2555
  M,
@@ -2581,14 +2581,14 @@ function $n(e) {
2581
2581
  /* @__PURE__ */ s(
2582
2582
  M,
2583
2583
  {
2584
- blocks: y().blocks,
2584
+ blocks: p().blocks,
2585
2585
  parent: (V = e.builderBlock) == null ? void 0 : V.id,
2586
- path: y().path,
2586
+ path: p().path,
2587
2587
  context: e.builderContext,
2588
2588
  registeredComponents: e.builderComponents,
2589
2589
  BlocksWrapperProps: {
2590
2590
  ...(A = e.builderContext) == null ? void 0 : A.BlocksWrapperProps,
2591
- "data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${y().index}`
2591
+ "data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${p().index}`
2592
2592
  },
2593
2593
  children: h ? /* @__PURE__ */ s(
2594
2594
  G,
@@ -3317,12 +3317,12 @@ const Qn = {
3317
3317
  function Zn(e) {
3318
3318
  const t = z(null), [n, i] = k(() => "unsubmitted"), [r, a] = k(() => null), [o, l] = k(() => "");
3319
3319
  function c(u) {
3320
- var f, m;
3321
- const x = {
3320
+ var m, b;
3321
+ const S = {
3322
3322
  ...e.builderContext.rootState,
3323
3323
  ...u
3324
3324
  };
3325
- e.builderContext.rootSetState ? (m = (f = e.builderContext).rootSetState) == null || m.call(f, x) : e.builderContext.rootState = x;
3325
+ e.builderContext.rootSetState ? (b = (m = e.builderContext).rootSetState) == null || b.call(m, S) : e.builderContext.rootState = S;
3326
3326
  }
3327
3327
  function d() {
3328
3328
  return _() && e.previewState || n;
@@ -3331,86 +3331,86 @@ function Zn(e) {
3331
3331
  return JSON.stringify(u, null, 2);
3332
3332
  }
3333
3333
  function g(u) {
3334
- var f;
3335
- const x = e.sendWithJs || e.sendSubmissionsTo === "email";
3334
+ var m;
3335
+ const S = e.sendWithJs || e.sendSubmissionsTo === "email";
3336
3336
  if (e.sendSubmissionsTo === "zapier")
3337
3337
  u.preventDefault();
3338
- else if (x) {
3338
+ else if (S) {
3339
3339
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3340
3340
  u.preventDefault();
3341
3341
  return;
3342
3342
  }
3343
3343
  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, {
3344
+ const b = u.currentTarget || u.target, p = e.customHeaders || {};
3345
+ let f;
3346
+ const v = new FormData(b), T = Array.from(b.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).filter(
3347
+ (y) => !!y.name && (y.type !== "radio" || y.checked)
3348
+ ).map((y) => {
3349
+ let x;
3350
+ const V = y.name;
3351
+ if (y instanceof HTMLInputElement)
3352
+ if (y.type === "radio") {
3353
+ if (y.checked)
3354
+ return x = y.value, {
3355
3355
  key: V,
3356
- value: v
3356
+ value: x
3357
3357
  };
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);
3358
+ } else if (y.type === "checkbox")
3359
+ x = y.checked;
3360
+ else if (y.type === "number" || y.type === "range") {
3361
+ const A = y.valueAsNumber;
3362
+ isNaN(A) || (x = A);
3363
3363
  } else
3364
- p.type === "file" ? v = p.files : v = p.value;
3364
+ y.type === "file" ? x = y.files : x = y.value;
3365
3365
  else
3366
- v = p.value;
3366
+ x = y.value;
3367
3367
  return {
3368
3368
  key: V,
3369
- value: v
3369
+ value: x
3370
3370
  };
3371
3371
  });
3372
3372
  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");
3373
+ if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: y }) => {
3374
+ (y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (E = "multipart/form-data");
3375
3375
  }), E !== "application/json")
3376
- b = S;
3376
+ f = v;
3377
3377
  else {
3378
- const p = {};
3379
- Array.from(T).forEach(({ value: v, key: V }) => {
3380
- Ke(p, V, v);
3381
- }), b = JSON.stringify(p);
3378
+ const y = {};
3379
+ Array.from(T).forEach(({ value: x, key: V }) => {
3380
+ Ke(y, V, x);
3381
+ }), f = JSON.stringify(y);
3382
3382
  }
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 } });
3383
+ E && E !== "multipart/form-data" && (S && ((m = e.action) != null && m.includes("zapier.com")) || (p["content-type"] = E));
3384
+ const U = new CustomEvent("presubmit", { detail: { body: f } });
3385
3385
  if (t.current && (t.current.dispatchEvent(U), U.defaultPrevented))
3386
3386
  return;
3387
3387
  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 });
3388
+ const y = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3389
+ console.error(y), i("error"), c({ formErrorMessage: y });
3390
3390
  return;
3391
3391
  }
3392
3392
  const H = `${Xn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3393
3393
  e.sendSubmissionsToEmail || ""
3394
3394
  )}&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) => {
3395
+ Le(q), fetch(q, { body: f, headers: p, method: e.method || "post" }).then(
3396
+ async (y) => {
3397
3397
  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) {
3398
+ let x;
3399
+ const V = y.headers.get("content-type");
3400
+ if (V && V.indexOf("application/json") !== -1 ? x = await y.json() : x = await y.text(), !y.ok) {
3401
3401
  const R = new CustomEvent("submit:error", {
3402
- detail: { error: v, status: p.status }
3402
+ detail: { error: x, status: y.status }
3403
3403
  });
3404
3404
  if ((A = t.current) != null && A.nativeElement && ((W = t.current) == null || W.nativeElement.dispatchEvent(R), R.defaultPrevented))
3405
3405
  return;
3406
- a(v), i("error");
3407
- let P = e.errorMessagePath ? qe(v, e.errorMessagePath) : v.message || v.error || v;
3406
+ a(x), i("error");
3407
+ let P = e.errorMessagePath ? qe(x, e.errorMessagePath) : x.message || x.error || x;
3408
3408
  typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
3409
3409
  return;
3410
3410
  }
3411
- if (a(v), i(p.ok ? "success" : "error"), p.ok) {
3411
+ if (a(x), i(y.ok ? "success" : "error"), y.ok) {
3412
3412
  const R = new CustomEvent("submit:success", {
3413
- detail: { res: p, body: v }
3413
+ detail: { res: y, body: x }
3414
3414
  });
3415
3415
  if (t.current) {
3416
3416
  if (t.current.dispatchEvent(R), R.defaultPrevented)
@@ -3427,11 +3427,11 @@ function Zn(e) {
3427
3427
  location.href = e.successUrl;
3428
3428
  }
3429
3429
  },
3430
- (p) => {
3431
- const v = new CustomEvent("submit:error", {
3432
- detail: { error: p }
3430
+ (y) => {
3431
+ const x = new CustomEvent("submit:error", {
3432
+ detail: { error: y }
3433
3433
  });
3434
- t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (a(p), i("error"));
3434
+ t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (a(y), i("error"));
3435
3435
  }
3436
3436
  );
3437
3437
  }
@@ -3875,24 +3875,24 @@ function di(e) {
3875
3875
  });
3876
3876
  return B(() => {
3877
3877
  if (e.lazyLoad) {
3878
- const x = new IntersectionObserver(function(f) {
3879
- f.forEach(function(m) {
3880
- if (!m.isIntersecting)
3878
+ const S = new IntersectionObserver(function(m) {
3879
+ m.forEach(function(b) {
3880
+ if (!b.isIntersecting)
3881
3881
  return;
3882
- const y = m.target;
3882
+ const p = b.target;
3883
3883
  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);
3884
+ Array.from(p.children).filter(
3885
+ (f) => f instanceof HTMLElement && f.tagName === "SOURCE"
3886
+ ).forEach((f) => {
3887
+ const v = f.dataset.src;
3888
+ v && (f.src = v);
3889
+ }), p.load(), S.unobserve(p);
3890
+ } catch (f) {
3891
+ console.error("Error loading lazy video:", f);
3892
3892
  }
3893
3893
  });
3894
3894
  });
3895
- t.current && x.observe(t.current), a(x);
3895
+ t.current && S.observe(t.current), a(S);
3896
3896
  }
3897
3897
  }, []), B(() => () => {
3898
3898
  r && r.disconnect();
@@ -4247,17 +4247,17 @@ font-weight: ${l};
4247
4247
  }
4248
4248
  `, Pi = (e) => e ? "" : Ri, Vi = (e) => `variant-${e}`;
4249
4249
  function Ai(e) {
4250
- var H, q, p;
4250
+ var H, q, y;
4251
4251
  const t = z(null);
4252
4252
  k(() => !1), k(
4253
4253
  () => e.builderContextSignal
4254
4254
  );
4255
4255
  const [n, i] = k(() => null), [r, a] = k(() => "");
4256
- function o(v, V) {
4256
+ function o(x, V) {
4257
4257
  var W, R;
4258
4258
  const A = {
4259
4259
  ...e.builderContextSignal.rootState,
4260
- ...v
4260
+ ...x
4261
4261
  };
4262
4262
  e.builderContextSignal.rootSetState ? (R = (W = e.builderContextSignal).rootSetState) == null || R.call(W, A) : e.setBuilderContextSignal((P) => ({
4263
4263
  ...P,
@@ -4267,19 +4267,19 @@ function Ai(e) {
4267
4267
  rootState: A
4268
4268
  }));
4269
4269
  }
4270
- function l(v, V) {
4270
+ function l(x, V) {
4271
4271
  var W, R, P, I, N;
4272
4272
  const A = {
4273
4273
  ...e.builderContextSignal.content,
4274
- ...v,
4274
+ ...x,
4275
4275
  data: {
4276
4276
  ...(W = e.builderContextSignal.content) == null ? void 0 : W.data,
4277
- ...v == null ? void 0 : v.data
4277
+ ...x == null ? void 0 : x.data
4278
4278
  },
4279
4279
  meta: {
4280
4280
  ...(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)
4281
+ ...x == null ? void 0 : x.meta,
4282
+ 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
4283
  }
4284
4284
  };
4285
4285
  e.setBuilderContextSignal((C) => ({
@@ -4296,7 +4296,7 @@ function Ai(e) {
4296
4296
  const [d, h] = k(
4297
4297
  () => e.contentWrapper || "div"
4298
4298
  );
4299
- function g(v) {
4299
+ function g(x) {
4300
4300
  return ht({
4301
4301
  model: e.model,
4302
4302
  trustedHosts: e.trustedHosts,
@@ -4320,10 +4320,10 @@ function Ai(e) {
4320
4320
  o(V);
4321
4321
  }
4322
4322
  }
4323
- })(v);
4323
+ })(x);
4324
4324
  }
4325
- const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, b] = k(() => !1);
4326
- function S(v) {
4325
+ const [u, S] = k(() => ({})), [m, b] = k(() => ({})), [p, f] = k(() => !1);
4326
+ function v(x) {
4327
4327
  var V, A;
4328
4328
  if (e.builderContextSignal.content) {
4329
4329
  const W = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
@@ -4334,24 +4334,24 @@ function Ai(e) {
4334
4334
  contentId: R,
4335
4335
  apiKey: e.apiKey,
4336
4336
  variationId: W !== R ? W : void 0,
4337
- ...Ci(v),
4338
- unique: !y
4337
+ ...Ci(x),
4338
+ unique: !p
4339
4339
  });
4340
4340
  }
4341
- y || b(!0);
4341
+ p || f(!0);
4342
4342
  }
4343
4343
  function T() {
4344
4344
  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(
4345
+ const x = (W = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? W : {};
4346
+ Object.entries(x).forEach(
4347
4347
  ([R, P]) => {
4348
4348
  if (!P)
4349
4349
  return;
4350
4350
  const I = typeof P == "object" && P["@type"] === "@builder.io/core:Request";
4351
- if (f[R] || u[R] && !_())
4351
+ if (m[R] || u[R] && !_())
4352
4352
  return;
4353
4353
  const N = I ? P.request.url : P;
4354
- f[R] = !0;
4354
+ m[R] = !0;
4355
4355
  const C = N.replace(
4356
4356
  /{{([^}]+)}}/g,
4357
4357
  (L, j) => String(
@@ -4389,7 +4389,7 @@ function Ai(e) {
4389
4389
  L
4390
4390
  );
4391
4391
  }).finally(() => {
4392
- f[R] = !1;
4392
+ m[R] = !1;
4393
4393
  });
4394
4394
  }
4395
4395
  );
@@ -4411,7 +4411,7 @@ function Ai(e) {
4411
4411
  }
4412
4412
  const U = z(!1);
4413
4413
  return U.current || (T(), E(), U.current = !0), B(() => {
4414
- var v, V, A, W, R;
4414
+ var x, V, A, W, R;
4415
4415
  if (J()) {
4416
4416
  _() && !e.isNestedRender && (window.addEventListener("message", g), dt({
4417
4417
  ...e.locale ? {
@@ -4423,7 +4423,7 @@ function Ai(e) {
4423
4423
  ...e.trustedHosts ? {
4424
4424
  trustedHosts: e.trustedHosts
4425
4425
  } : {},
4426
- modelName: (v = e.model) != null ? v : "",
4426
+ modelName: (x = e.model) != null ? x : "",
4427
4427
  apiKey: e.apiKey
4428
4428
  }), Object.values(
4429
4429
  e.builderContextSignal.componentInfos
@@ -4497,11 +4497,11 @@ function Ai(e) {
4497
4497
  d,
4498
4498
  {
4499
4499
  ref: t,
4500
- onClick: (v) => S(v),
4500
+ onClick: (x) => v(x),
4501
4501
  "builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
4502
4502
  "builder-model": e.model,
4503
4503
  className: Vi(
4504
- ((q = e.content) == null ? void 0 : q.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
4504
+ ((q = e.content) == null ? void 0 : q.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
4505
4505
  ),
4506
4506
  style: {
4507
4507
  display: !e.builderContextSignal.content && Oe() ? "none" : void 0
@@ -4563,22 +4563,22 @@ const Ni = ({
4563
4563
  meta: e == null ? void 0 : e.meta
4564
4564
  } : void 0;
4565
4565
  function Fe(e) {
4566
- var d, h, g, u, x, f, m, y, b;
4566
+ var d, h, g, u, S, m, b, p, f;
4567
4567
  const [t, n] = k(
4568
4568
  () => {
4569
- var S, T;
4569
+ var v, T;
4570
4570
  return xi({
4571
4571
  // 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,
4572
+ variationId: (v = e.content) == null ? void 0 : v.testVariationId,
4573
4573
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4574
4574
  contentId: (T = e.content) == null ? void 0 : T.id
4575
4575
  });
4576
4576
  }
4577
4577
  );
4578
- function i(S) {
4578
+ function i(v) {
4579
4579
  l((T) => ({
4580
4580
  ...T,
4581
- rootState: S
4581
+ rootState: v
4582
4582
  }));
4583
4583
  }
4584
4584
  const [r, a] = k(
@@ -4586,8 +4586,8 @@ function Fe(e) {
4586
4586
  ...We(),
4587
4587
  ...e.customComponents || []
4588
4588
  ].reduce(
4589
- (S, { component: T, ...E }) => ({
4590
- ...S,
4589
+ (v, { component: T, ...E }) => ({
4590
+ ...v,
4591
4591
  [E.name]: {
4592
4592
  component: T,
4593
4593
  ...we(E)
@@ -4615,8 +4615,8 @@ function Fe(e) {
4615
4615
  ...We(),
4616
4616
  ...e.customComponents || []
4617
4617
  ].reduce(
4618
- (S, { component: T, ...E }) => ({
4619
- ...S,
4618
+ (v, { component: T, ...E }) => ({
4619
+ ...v,
4620
4620
  [E.name]: we(E)
4621
4621
  }),
4622
4622
  {}
@@ -4631,9 +4631,9 @@ function Fe(e) {
4631
4631
  e.apiKey || Q.error(
4632
4632
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4633
4633
  );
4634
- const S = (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
4635
- S && Y({
4636
- code: S,
4634
+ const v = (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
4635
+ v && Y({
4636
+ code: v,
4637
4637
  context: e.context || {},
4638
4638
  localState: void 0,
4639
4639
  rootState: o.rootState,
@@ -4685,14 +4685,14 @@ function Fe(e) {
4685
4685
  nonce: e.nonce || "",
4686
4686
  isNestedRender: e.isNestedRender,
4687
4687
  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
4688
+ cssCode: (S = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : S.cssCode,
4689
+ customFonts: (b = (m = o.content) == null ? void 0 : m.data) == null ? void 0 : b.customFonts
4690
4690
  }
4691
4691
  ),
4692
4692
  /* @__PURE__ */ s(
4693
4693
  M,
4694
4694
  {
4695
- blocks: (b = (y = o.content) == null ? void 0 : y.data) == null ? void 0 : b.blocks,
4695
+ blocks: (f = (p = o.content) == null ? void 0 : p.data) == null ? void 0 : f.blocks,
4696
4696
  context: o,
4697
4697
  registeredComponents: r,
4698
4698
  linkComponent: e.linkComponent
@@ -4836,7 +4836,7 @@ const Di = async ({
4836
4836
  (e != null && e.apiKey))
4837
4837
  return _e({
4838
4838
  model: t.model,
4839
- apiKey: e.apiKey,
4839
+ apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
4840
4840
  apiVersion: e.apiVersion,
4841
4841
  ...(t == null ? void 0 : t.entry) && {
4842
4842
  query: {
@@ -4848,7 +4848,7 @@ const Di = async ({
4848
4848
  });
4849
4849
  };
4850
4850
  function Oi(e) {
4851
- var h, g, u, x, f;
4851
+ var h, g, u, S, m, b, p;
4852
4852
  function t() {
4853
4853
  return "div";
4854
4854
  }
@@ -4859,29 +4859,29 @@ function Oi(e) {
4859
4859
  return Object.values(e.builderComponents);
4860
4860
  }
4861
4861
  function r() {
4862
- var m, y;
4862
+ var f, v;
4863
4863
  return [
4864
4864
  e.attributes[K()],
4865
4865
  "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
4866
+ (f = e.symbol) != null && f.inline ? "builder-inline-symbol" : void 0,
4867
+ (v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4868
4868
  ].filter(Boolean).join(" ");
4869
4869
  }
4870
4870
  const [a, o] = k(() => {
4871
- var m;
4872
- return (m = e.symbol) == null ? void 0 : m.content;
4871
+ var f;
4872
+ return (f = e.symbol) == null ? void 0 : f.content;
4873
4873
  }), [l, c] = k(() => {
4874
- var m;
4875
- return (m = e.symbol) == null ? void 0 : m.entry;
4874
+ var f;
4875
+ return (f = e.symbol) == null ? void 0 : f.entry;
4876
4876
  });
4877
4877
  function d() {
4878
- var m;
4879
- a && l === ((m = e.symbol) == null ? void 0 : m.entry) || Di({
4878
+ var f;
4879
+ a && l === ((f = e.symbol) == null ? void 0 : f.entry) || Di({
4880
4880
  symbol: e.symbol,
4881
4881
  builderContextValue: e.builderContext
4882
- }).then((y) => {
4883
- var b;
4884
- y && (o(y), c((b = e.symbol) == null ? void 0 : b.entry));
4882
+ }).then((v) => {
4883
+ var T;
4884
+ v && (o(v), c((T = e.symbol) == null ? void 0 : T.entry));
4885
4885
  });
4886
4886
  }
4887
4887
  return B(() => {
@@ -4893,19 +4893,19 @@ function Oi(e) {
4893
4893
  nonce: e.builderContext.nonce,
4894
4894
  isNestedRender: !0,
4895
4895
  apiVersion: e.builderContext.apiVersion,
4896
- apiKey: e.builderContext.apiKey,
4896
+ apiKey: (h = e.symbol) != null && h.global && ((g = e.symbol) != null && g.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
4897
4897
  context: {
4898
4898
  ...e.builderContext.context,
4899
- symbolId: (h = e.builderBlock) == null ? void 0 : h.id
4899
+ symbolId: (u = e.builderBlock) == null ? void 0 : u.id
4900
4900
  },
4901
4901
  customComponents: i(),
4902
4902
  data: {
4903
- ...(g = e.symbol) == null ? void 0 : g.data,
4903
+ ...(S = e.symbol) == null ? void 0 : S.data,
4904
4904
  ...e.builderContext.localState,
4905
- ...(u = a == null ? void 0 : a.data) == null ? void 0 : u.state
4905
+ ...(m = a == null ? void 0 : a.data) == null ? void 0 : m.state
4906
4906
  },
4907
4907
  canTrack: e.builderContext.canTrack,
4908
- model: (f = (x = e.symbol) == null ? void 0 : x.model) != null ? f : "",
4908
+ model: (p = (b = e.symbol) == null ? void 0 : b.model) != null ? p : "",
4909
4909
  content: a,
4910
4910
  linkComponent: e.builderLinkComponent,
4911
4911
  blocksWrapper: t(),