@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,11 +1,11 @@
1
1
  "use client";
2
- import { TARGET as F, isBrowser as G, logger as ee, checkIsDefined as be, isPreviewing as oe, isEditing as U, userAttributesService as Te, getDefaultCanTrack as Z, logFetch as Le, setupBrowserForEditing as st, createRegisterComponentMessage as ct, getCookieSync as ut, _track as Ie, fetchOneEntry as Oe, createEditorListener as dt, serializeIncludingFunctions as we, handleABTestingSync as mt } from "./server-entry-fc7f08d8.js";
3
- import { setClientUserAttributes as qi } from "./server-entry-fc7f08d8.js";
2
+ import { TARGET as F, isBrowser as G, logger as ee, checkIsDefined as be, isPreviewing as oe, isEditing as U, userAttributesService as Te, getDefaultCanTrack as Z, logFetch as Le, setupBrowserForEditing as st, createRegisterComponentMessage as ct, getCookieSync as ut, _track as Ie, fetchOneEntry as Oe, createEditorListener as dt, serializeIncludingFunctions as we, handleABTestingSync as mt } from "./server-entry-85c98f9a.js";
3
+ import { setClientUserAttributes as qi } from "./server-entry-85c98f9a.js";
4
4
  import { jsx as s, Fragment as w, jsxs as D } from "react/jsx-runtime";
5
5
  import * as ft from "react";
6
6
  import { createContext as _e, useEffect as B, useState as k, useContext as ye, useRef as z, createElement as Ue } from "react";
7
- import { getFunctionArguments as ht, flattenState as gt, runInNode as bt, parseCode as yt, getBuilderGlobals as pt, set as He, fastClone as ve } from "./setIvm-41d8b067.js";
8
- import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-fc5c3a06.js";
7
+ import { getFunctionArguments as ht, flattenState as gt, runInNode as bt, parseCode as yt, getBuilderGlobals as pt, set as He, fastClone as ve } from "./setIvm-ed61fc8c.js";
8
+ import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-03c2678b.js";
9
9
  const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), St = (e) => typeof e == "string" && xt.has(e.toLowerCase());
10
10
  function xe(e) {
11
11
  return /* @__PURE__ */ s(w, { children: St(e.TagName) ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
@@ -359,8 +359,8 @@ function Ut(e) {
359
359
  leading: !1
360
360
  });
361
361
  function l(h) {
362
- const b = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
363
- return b.bottom > f && b.top < u - f;
362
+ const b = h.getBoundingClientRect(), u = window.innerHeight, m = (e.thresholdPercent || 0) / 100 * u;
363
+ return b.bottom > m && b.top < u - m;
364
364
  }
365
365
  const c = e.steps[0].styles;
366
366
  function d() {
@@ -781,51 +781,51 @@ function Ve(e) {
781
781
  ), l = !!((_ = (E = r == null ? void 0 : r.meta) == null ? void 0 : E.breakpoints) != null && _.xsmall), c = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, b = a == null ? void 0 : a.xsmall, u = i.id;
782
782
  if (!u)
783
783
  return "";
784
- const x = c ? Y({
784
+ const S = c ? Y({
785
785
  className: u,
786
786
  styles: c
787
- }) : "", f = d ? Y({
787
+ }) : "", m = d ? Y({
788
788
  className: u,
789
789
  styles: d,
790
790
  mediaQuery: ue(
791
791
  "medium",
792
792
  o
793
793
  )
794
- }) : "", m = h ? Y({
794
+ }) : "", g = h ? Y({
795
795
  className: u,
796
796
  styles: h,
797
797
  mediaQuery: ue(
798
798
  "small",
799
799
  o
800
800
  )
801
- }) : "", y = b && l ? Y({
801
+ }) : "", p = b && l ? Y({
802
802
  className: u,
803
803
  styles: b,
804
804
  mediaQuery: ue(
805
805
  "xsmall",
806
806
  o
807
807
  )
808
- }) : "", g = i.animations && i.animations.find((p) => p.trigger === "hover");
809
- let S = "";
810
- if (g) {
811
- const p = ((q = (H = g.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
812
- S = Y({
808
+ }) : "", f = i.animations && i.animations.find((y) => y.trigger === "hover");
809
+ let v = "";
810
+ if (f) {
811
+ const y = ((q = (H = f.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
812
+ v = Y({
813
813
  className: `${u}:hover`,
814
814
  styles: {
815
- ...p,
816
- transition: `all ${g.duration}s ${se(
817
- g.easing
815
+ ...y,
816
+ transition: `all ${f.duration}s ${se(
817
+ f.easing
818
818
  )}`,
819
- transitionDelay: g.delay ? `${g.delay}s` : "0s"
819
+ transitionDelay: f.delay ? `${f.delay}s` : "0s"
820
820
  }
821
821
  }) || "";
822
822
  }
823
823
  return [
824
- x,
825
- f,
824
+ S,
826
825
  m,
827
- y,
828
- S
826
+ g,
827
+ p,
828
+ v
829
829
  ].join(" ");
830
830
  }
831
831
  return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
@@ -844,7 +844,7 @@ function ln(e) {
844
844
  }, []), /* @__PURE__ */ s(w, { children: t ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ve, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ve, { block: e.block, context: e.context }) }) });
845
845
  }
846
846
  function ce(e) {
847
- var h, b, u, x;
847
+ var h, b, u, S;
848
848
  function t() {
849
849
  return zt({
850
850
  block: e.block,
@@ -856,17 +856,17 @@ function ce(e) {
856
856
  update: !1
857
857
  }));
858
858
  function a() {
859
- var m;
859
+ var g;
860
860
  if (n.value && !n.update && !oe())
861
861
  return n.value;
862
- const f = (m = e.block.repeat) != null && m.collection ? e.block : Ft({
862
+ const m = (g = e.block.repeat) != null && g.collection ? e.block : Ft({
863
863
  block: e.block,
864
864
  localState: e.context.localState,
865
865
  rootState: e.context.rootState,
866
866
  rootSetState: e.context.rootSetState,
867
867
  context: e.context.context
868
868
  });
869
- return n.value = f, n.update = !1, f;
869
+ return n.value = m, n.update = !1, m;
870
870
  }
871
871
  function r() {
872
872
  return jt({
@@ -876,25 +876,25 @@ function ce(e) {
876
876
  });
877
877
  }
878
878
  function o() {
879
- var m;
880
- return e.block.tagName === "a" || ((m = a().properties) == null ? void 0 : m.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
879
+ var g;
880
+ return e.block.tagName === "a" || ((g = a().properties) == null ? void 0 : g.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
881
881
  }
882
882
  function l() {
883
- var y, g;
884
- if ((y = e.block.repeat) != null && y.collection)
885
- return !!((g = t == null ? void 0 : t()) != null && g.length);
886
- const f = "hide" in a() ? a().hide : !1;
887
- return ("show" in a() ? a().show : !0) && !f;
883
+ var p, f;
884
+ if ((p = e.block.repeat) != null && p.collection)
885
+ return !!((f = t == null ? void 0 : t()) != null && f.length);
886
+ const m = "hide" in a() ? a().hide : !1;
887
+ return ("show" in a() ? a().show : !0) && !m;
888
888
  }
889
889
  function c() {
890
- var m, y;
891
- return !((m = r == null ? void 0 : r()) != null && m.component) && !t() ? (y = a().children) != null ? y : [] : [];
890
+ var g, p;
891
+ return !((g = r == null ? void 0 : r()) != null && g.component) && !t() ? (p = a().children) != null ? p : [] : [];
892
892
  }
893
893
  function d() {
894
- var f, m, y, g;
894
+ var m, g, p, f;
895
895
  return {
896
- blockChildren: (f = a().children) != null ? f : [],
897
- componentRef: (m = r == null ? void 0 : r()) == null ? void 0 : m.component,
896
+ blockChildren: (m = a().children) != null ? m : [],
897
+ componentRef: (g = r == null ? void 0 : r()) == null ? void 0 : g.component,
898
898
  componentOptions: {
899
899
  ...Rt(a(), e.context),
900
900
  ...Gt(r(), a()),
@@ -910,16 +910,16 @@ function ce(e) {
910
910
  linkComponent: e.linkComponent,
911
911
  registeredComponents: e.registeredComponents,
912
912
  builderBlock: a(),
913
- includeBlockProps: ((y = r == null ? void 0 : r()) == null ? void 0 : y.noWrap) === !0,
914
- isInteractive: !((g = r == null ? void 0 : r()) != null && g.isRSC && F === "rsc")
913
+ includeBlockProps: ((p = r == null ? void 0 : r()) == null ? void 0 : p.noWrap) === !0,
914
+ isInteractive: !((f = r == null ? void 0 : r()) != null && f.isRSC && F === "rsc")
915
915
  };
916
916
  }
917
917
  return B(() => {
918
- const f = a().id, m = a().animations;
919
- m && f && Ot(
920
- m.map((y) => ({
921
- ...y,
922
- elementId: f
918
+ const m = a().id, g = a().animations;
919
+ g && m && Ot(
920
+ g.map((p) => ({
921
+ ...p,
922
+ elementId: m
923
923
  }))
924
924
  );
925
925
  }, []), B(() => {
@@ -933,15 +933,15 @@ function ce(e) {
933
933
  id: e.block.id
934
934
  }
935
935
  ),
936
- (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (x = t()) == null ? void 0 : x.map((f, m) => /* @__PURE__ */ s(
936
+ (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (S = t()) == null ? void 0 : S.map((m, g) => /* @__PURE__ */ s(
937
937
  Pe,
938
938
  {
939
- repeatContext: f.context,
940
- block: f.block,
939
+ repeatContext: m.context,
940
+ block: m.block,
941
941
  registeredComponents: e.registeredComponents,
942
942
  linkComponent: e.linkComponent
943
943
  },
944
- Ee(m)
944
+ Ee(g)
945
945
  )) }) : /* @__PURE__ */ s(
946
946
  Re,
947
947
  {
@@ -955,15 +955,15 @@ function ce(e) {
955
955
  includeBlockProps: d().includeBlockProps,
956
956
  isInteractive: d().isInteractive
957
957
  }
958
- ) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((f, m) => /* @__PURE__ */ s(
958
+ ) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((m, g) => /* @__PURE__ */ s(
959
959
  Pe,
960
960
  {
961
- repeatContext: f.context,
962
- block: f.block,
961
+ repeatContext: m.context,
962
+ block: m.block,
963
963
  registeredComponents: e.registeredComponents,
964
964
  linkComponent: e.linkComponent
965
965
  },
966
- Ee(m)
966
+ Ee(g)
967
967
  )) }) : /* @__PURE__ */ D(
968
968
  nn,
969
969
  {
@@ -985,15 +985,15 @@ function ce(e) {
985
985
  isInteractive: d().isInteractive
986
986
  }
987
987
  ),
988
- (b = c()) == null ? void 0 : b.map((f) => /* @__PURE__ */ s(
988
+ (b = c()) == null ? void 0 : b.map((m) => /* @__PURE__ */ s(
989
989
  ce,
990
990
  {
991
- block: f,
991
+ block: m,
992
992
  registeredComponents: e.registeredComponents,
993
993
  linkComponent: e.linkComponent,
994
994
  context: e.context
995
995
  },
996
- f.id
996
+ m.id
997
997
  ))
998
998
  ]
999
999
  }
@@ -1099,7 +1099,7 @@ function M(e) {
1099
1099
  }
1100
1100
  const cn = (e) => `builder-columns ${e}-breakpoints`;
1101
1101
  function un(e) {
1102
- var m, y;
1102
+ var g, p;
1103
1103
  function t() {
1104
1104
  return typeof e.space == "number" ? e.space || 0 : 20;
1105
1105
  }
@@ -1109,28 +1109,28 @@ function un(e) {
1109
1109
  function i() {
1110
1110
  return e.stackColumnsAt || "tablet";
1111
1111
  }
1112
- function a(g) {
1113
- return g.link ? e.builderLinkComponent || "a" : "div";
1112
+ function a(f) {
1113
+ return f.link ? e.builderLinkComponent || "a" : "div";
1114
1114
  }
1115
- function r(g) {
1116
- var S;
1117
- return ((S = n()[g]) == null ? void 0 : S.width) || 100 / n().length;
1115
+ function r(f) {
1116
+ var v;
1117
+ return ((v = n()[f]) == null ? void 0 : v.width) || 100 / n().length;
1118
1118
  }
1119
- function o(g) {
1120
- const S = r(g), T = t() * (n().length - 1) * (S / 100);
1121
- return `calc(${S}% - ${T}px)`;
1119
+ function o(f) {
1120
+ const v = r(f), T = t() * (n().length - 1) * (v / 100);
1121
+ return `calc(${v}% - ${T}px)`;
1122
1122
  }
1123
1123
  function l({
1124
- stackedStyle: g,
1125
- desktopStyle: S
1124
+ stackedStyle: f,
1125
+ desktopStyle: v
1126
1126
  }) {
1127
- return i() === "tablet" ? g : S;
1127
+ return i() === "tablet" ? f : v;
1128
1128
  }
1129
1129
  function c({
1130
- stackedStyle: g,
1131
- desktopStyle: S
1130
+ stackedStyle: f,
1131
+ desktopStyle: v
1132
1132
  }) {
1133
- return i() === "never" ? S : g;
1133
+ return i() === "never" ? v : f;
1134
1134
  }
1135
1135
  function d() {
1136
1136
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -1144,8 +1144,8 @@ function un(e) {
1144
1144
  })
1145
1145
  };
1146
1146
  }
1147
- function b(g) {
1148
- const S = g === 0 ? 0 : t(), T = o(g), E = `${S}px`, _ = "100%", H = 0;
1147
+ function b(f) {
1148
+ const v = f === 0 ? 0 : t(), T = o(f), E = `${v}px`, _ = "100%", H = 0;
1149
1149
  return {
1150
1150
  ...{
1151
1151
  display: "flex",
@@ -1172,14 +1172,14 @@ function un(e) {
1172
1172
  })
1173
1173
  };
1174
1174
  }
1175
- function u(g) {
1175
+ function u(f) {
1176
1176
  var T, E;
1177
1177
  return et(
1178
1178
  ((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
1179
- )[g].max;
1179
+ )[f].max;
1180
1180
  }
1181
- function x() {
1182
- const g = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1181
+ function S() {
1182
+ const f = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1183
1183
  return `
1184
1184
  @media (max-width: ${u("medium")}px) {
1185
1185
  .${e.builderBlock.id}-breakpoints {
@@ -1187,7 +1187,7 @@ function un(e) {
1187
1187
  align-items: stretch;
1188
1188
  }
1189
1189
 
1190
- ${g} {
1190
+ ${f} {
1191
1191
  width: var(--column-width-tablet) !important;
1192
1192
  margin-left: var(--column-margin-left-tablet) !important;
1193
1193
  }
@@ -1199,20 +1199,20 @@ function un(e) {
1199
1199
  align-items: stretch;
1200
1200
  }
1201
1201
 
1202
- ${g} {
1202
+ ${f} {
1203
1203
  width: var(--column-width-mobile) !important;
1204
1204
  margin-left: var(--column-margin-left-mobile) !important;
1205
1205
  }
1206
1206
  },
1207
1207
  `;
1208
1208
  }
1209
- function f(g, S) {
1209
+ function m(f, v) {
1210
1210
  return {
1211
- ...g.link ? {
1212
- href: g.link
1211
+ ...f.link ? {
1212
+ href: f.link
1213
1213
  } : {},
1214
1214
  [K()]: "builder-column",
1215
- style: Qe(b(S))
1215
+ style: Qe(b(v))
1216
1216
  };
1217
1217
  }
1218
1218
  return /* @__PURE__ */ D(w, { children: [
@@ -1224,39 +1224,39 @@ function un(e) {
1224
1224
  /* @__PURE__ */ D(
1225
1225
  "div",
1226
1226
  {
1227
- className: cn((m = e.builderBlock) == null ? void 0 : m.id) + " div-0369db37",
1227
+ className: cn((g = e.builderBlock) == null ? void 0 : g.id) + " div-0369db37",
1228
1228
  style: h(),
1229
1229
  children: [
1230
1230
  /* @__PURE__ */ s(
1231
1231
  te,
1232
1232
  {
1233
1233
  id: "builderio-columns",
1234
- styles: x(),
1234
+ styles: S(),
1235
1235
  nonce: e.builderContext.nonce
1236
1236
  }
1237
1237
  ),
1238
- (y = e.columns) == null ? void 0 : y.map((g, S) => /* @__PURE__ */ s(
1238
+ (p = e.columns) == null ? void 0 : p.map((f, v) => /* @__PURE__ */ s(
1239
1239
  xe,
1240
1240
  {
1241
- TagName: a(g),
1241
+ TagName: a(f),
1242
1242
  actionAttributes: {},
1243
- attributes: f(g, S),
1243
+ attributes: m(f, v),
1244
1244
  children: /* @__PURE__ */ s(
1245
1245
  M,
1246
1246
  {
1247
- path: `columns.${S}.blocks`,
1247
+ path: `columns.${v}.blocks`,
1248
1248
  parent: e.builderBlock.id,
1249
1249
  context: e.builderContext,
1250
1250
  registeredComponents: e.builderComponents,
1251
1251
  linkComponent: e.builderLinkComponent,
1252
- blocks: g.blocks,
1252
+ blocks: f.blocks,
1253
1253
  styleProp: {
1254
1254
  flexGrow: "1"
1255
1255
  }
1256
1256
  }
1257
1257
  )
1258
1258
  },
1259
- S
1259
+ v
1260
1260
  ))
1261
1261
  ]
1262
1262
  }
@@ -1414,42 +1414,42 @@ function bn(e, t, n, i) {
1414
1414
  }
1415
1415
  function o(d, h) {
1416
1416
  return (() => {
1417
- const u = h.property, x = h.operator;
1418
- let f = h.value;
1419
- if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && x))
1417
+ const u = h.property, S = h.operator;
1418
+ let m = h.value;
1419
+ if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (m = h.value.slice(0, -1)), !(u && S))
1420
1420
  return !0;
1421
- if (Array.isArray(f))
1422
- return x === "isNot" ? f.every((y) => o(d, {
1421
+ if (Array.isArray(m))
1422
+ return S === "isNot" ? m.every((p) => o(d, {
1423
1423
  property: u,
1424
- operator: x,
1425
- value: y
1426
- })) : !!f.find((y) => o(d, {
1424
+ operator: S,
1425
+ value: p
1426
+ })) : !!m.find((p) => o(d, {
1427
1427
  property: u,
1428
- operator: x,
1429
- value: y
1428
+ operator: S,
1429
+ value: p
1430
1430
  }));
1431
- const m = d[u];
1432
- if (Array.isArray(m))
1433
- return m.includes(f);
1434
- switch (x) {
1431
+ const g = d[u];
1432
+ if (Array.isArray(g))
1433
+ return g.includes(m);
1434
+ switch (S) {
1435
1435
  case "is":
1436
- return m === f;
1436
+ return g === m;
1437
1437
  case "isNot":
1438
- return m !== f;
1438
+ return g !== m;
1439
1439
  case "contains":
1440
- return (a(m) || Array.isArray(m)) && m.includes(String(f));
1440
+ return (a(g) || Array.isArray(g)) && g.includes(String(m));
1441
1441
  case "startsWith":
1442
- return a(m) && m.startsWith(String(f));
1442
+ return a(g) && g.startsWith(String(m));
1443
1443
  case "endsWith":
1444
- return a(m) && m.endsWith(String(f));
1444
+ return a(g) && g.endsWith(String(m));
1445
1445
  case "greaterThan":
1446
- return r(m) && r(f) && m > f;
1446
+ return r(g) && r(m) && g > m;
1447
1447
  case "lessThan":
1448
- return r(m) && r(f) && m < f;
1448
+ return r(g) && r(m) && g < m;
1449
1449
  case "greaterThanOrEqualTo":
1450
- return r(m) && r(f) && m >= f;
1450
+ return r(g) && r(m) && g >= m;
1451
1451
  case "lessThanOrEqualTo":
1452
- return r(m) && r(f) && m <= f;
1452
+ return r(g) && r(m) && g <= m;
1453
1453
  default:
1454
1454
  return !1;
1455
1455
  }
@@ -1814,7 +1814,7 @@ function En(e) {
1814
1814
  };
1815
1815
  }
1816
1816
  function r() {
1817
- const x = {
1817
+ const S = {
1818
1818
  ...{
1819
1819
  display: "flex",
1820
1820
  flexDirection: "column"
@@ -1823,7 +1823,7 @@ function En(e) {
1823
1823
  cursor: "pointer"
1824
1824
  };
1825
1825
  return Object.fromEntries(
1826
- Object.entries(x).filter(([f, m]) => m !== void 0)
1826
+ Object.entries(S).filter(([m, g]) => g !== void 0)
1827
1827
  );
1828
1828
  }
1829
1829
  function o(u) {
@@ -1835,23 +1835,23 @@ function En(e) {
1835
1835
  function c() {
1836
1836
  let u = null;
1837
1837
  if (e.grid && t.length && document) {
1838
- const f = t[0];
1839
- let y = document.querySelector(
1840
- `.builder-accordion-title[data-index="${f}"]`
1838
+ const m = t[0];
1839
+ let p = document.querySelector(
1840
+ `.builder-accordion-title[data-index="${m}"]`
1841
1841
  );
1842
- if (u = f, y) {
1843
- let g = y.getBoundingClientRect();
1844
- for (; y = y && y.nextElementSibling; )
1845
- if (y) {
1846
- if (y.classList.contains("builder-accordion-detail"))
1842
+ if (u = m, p) {
1843
+ let f = p.getBoundingClientRect();
1844
+ for (; p = p && p.nextElementSibling; )
1845
+ if (p) {
1846
+ if (p.classList.contains("builder-accordion-detail"))
1847
1847
  continue;
1848
- const S = y.getBoundingClientRect();
1849
- if (S.left > g.left) {
1848
+ const v = p.getBoundingClientRect();
1849
+ if (v.left > f.left) {
1850
1850
  const T = parseInt(
1851
- y.getAttribute("data-index") || "",
1851
+ p.getAttribute("data-index") || "",
1852
1852
  10
1853
1853
  );
1854
- isNaN(T) || (g = S, u = T);
1854
+ isNaN(T) || (f = v, u = T);
1855
1855
  } else
1856
1856
  break;
1857
1857
  }
@@ -1867,31 +1867,31 @@ function En(e) {
1867
1867
  }
1868
1868
  };
1869
1869
  return Object.fromEntries(
1870
- Object.entries(u).filter(([x, f]) => f !== void 0)
1870
+ Object.entries(u).filter(([S, m]) => m !== void 0)
1871
1871
  );
1872
1872
  }
1873
1873
  function h(u) {
1874
- t.includes(u) ? n(i() ? [] : t.filter((x) => x !== u)) : n(i() ? [u] : t.concat(u));
1874
+ t.includes(u) ? n(i() ? [] : t.filter((S) => S !== u)) : n(i() ? [u] : t.concat(u));
1875
1875
  }
1876
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (b = e.items) == null ? void 0 : b.map((u, x) => /* @__PURE__ */ D(ft.Fragment, { children: [
1876
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (b = e.items) == null ? void 0 : b.map((u, S) => /* @__PURE__ */ D(ft.Fragment, { children: [
1877
1877
  /* @__PURE__ */ s(
1878
1878
  "div",
1879
1879
  {
1880
- className: o(x),
1880
+ className: o(S),
1881
1881
  style: {
1882
1882
  ...r(),
1883
1883
  ...e.grid && {
1884
1884
  width: e.gridRowWidth,
1885
- order: c() !== null ? Be(x) : Be(x + 1)
1885
+ order: c() !== null ? Be(S) : Be(S + 1)
1886
1886
  }
1887
1887
  },
1888
- "data-index": x,
1889
- onClick: (f) => h(x),
1888
+ "data-index": S,
1889
+ onClick: (m) => h(S),
1890
1890
  children: /* @__PURE__ */ s(
1891
1891
  M,
1892
1892
  {
1893
1893
  blocks: u.title,
1894
- path: `items.${x}.title`,
1894
+ path: `items.${S}.title`,
1895
1895
  parent: e.builderBlock.id,
1896
1896
  context: e.builderContext,
1897
1897
  registeredComponents: e.builderComponents,
@@ -1900,16 +1900,16 @@ function En(e) {
1900
1900
  )
1901
1901
  }
1902
1902
  ),
1903
- t.includes(x) ? /* @__PURE__ */ s(
1903
+ t.includes(S) ? /* @__PURE__ */ s(
1904
1904
  "div",
1905
1905
  {
1906
- className: l(x),
1906
+ className: l(S),
1907
1907
  style: d(),
1908
1908
  children: /* @__PURE__ */ s(
1909
1909
  M,
1910
1910
  {
1911
1911
  blocks: u.detail,
1912
- path: `items.${x}.detail`,
1912
+ path: `items.${S}.detail`,
1913
1913
  parent: e.builderBlock.id,
1914
1914
  context: e.builderContext,
1915
1915
  registeredComponents: e.builderComponents,
@@ -1918,7 +1918,7 @@ function En(e) {
1918
1918
  )
1919
1919
  }
1920
1920
  ) : null
1921
- ] }, x)) });
1921
+ ] }, S)) });
1922
1922
  }
1923
1923
  const Rn = {
1924
1924
  name: "Core:Button",
@@ -2329,7 +2329,7 @@ function J(e) {
2329
2329
  );
2330
2330
  }
2331
2331
  function $n(e) {
2332
- var S, T, E, _, H, q, p, v, V, A, $, R, P;
2332
+ var v, T, E, _, H, q, y, x, V, A, $, R, P;
2333
2333
  const t = z(null), [n, i] = k(
2334
2334
  () => Te.getUserAttributes()
2335
2335
  ), [a, r] = k(
@@ -2358,14 +2358,14 @@ function $n(e) {
2358
2358
  Z((I = e.builderContext) == null ? void 0 : I.canTrack)
2359
2359
  );
2360
2360
  }
2361
- ), [u, x] = k(() => !1);
2362
- function f() {
2361
+ ), [u, S] = k(() => !1);
2362
+ function m() {
2363
2363
  return {
2364
2364
  ...e.attributes,
2365
2365
  [K()]: `builder-personalization-container ${e.attributes[K()] || ""}`
2366
2366
  };
2367
2367
  }
2368
- function m() {
2368
+ function g() {
2369
2369
  return (e.variants || []).filter((I) => {
2370
2370
  var N, C, W, L;
2371
2371
  return bn(
@@ -2381,17 +2381,17 @@ function $n(e) {
2381
2381
  );
2382
2382
  });
2383
2383
  }
2384
- function y() {
2384
+ function p() {
2385
2385
  var I;
2386
2386
  return kn({
2387
2387
  variants: e.variants,
2388
2388
  fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
2389
2389
  isHydrated: u,
2390
- filteredVariants: m(),
2390
+ filteredVariants: g(),
2391
2391
  previewingIndex: e.previewingIndex
2392
2392
  });
2393
2393
  }
2394
- function g() {
2394
+ function f() {
2395
2395
  return (e.variants || []).map(
2396
2396
  (I, N) => {
2397
2397
  var C;
@@ -2401,7 +2401,7 @@ function $n(e) {
2401
2401
  }
2402
2402
  return B(() => {
2403
2403
  var N;
2404
- x(!0);
2404
+ S(!0);
2405
2405
  const I = Te.subscribeOnUserAttributesChange(
2406
2406
  (C) => {
2407
2407
  i(C);
@@ -2411,7 +2411,7 @@ function $n(e) {
2411
2411
  }
2412
2412
  );
2413
2413
  if (!(U() || oe())) {
2414
- const C = m()[0];
2414
+ const C = g()[0];
2415
2415
  t.current && (t.current.dispatchEvent(
2416
2416
  new CustomEvent("builder.variantLoaded", {
2417
2417
  detail: {
@@ -2438,18 +2438,18 @@ function $n(e) {
2438
2438
  c.push(I);
2439
2439
  }, []), B(() => () => {
2440
2440
  c.forEach((I) => I());
2441
- }, []), /* @__PURE__ */ D("div", { ref: t, ...f(), children: [
2441
+ }, []), /* @__PURE__ */ D("div", { ref: t, ...m(), children: [
2442
2442
  u && ie.includes(F) ? /* @__PURE__ */ s(
2443
2443
  M,
2444
2444
  {
2445
- blocks: y().blocks,
2446
- parent: (S = e.builderBlock) == null ? void 0 : S.id,
2447
- path: y().path,
2445
+ blocks: p().blocks,
2446
+ parent: (v = e.builderBlock) == null ? void 0 : v.id,
2447
+ path: p().path,
2448
2448
  context: e.builderContext,
2449
2449
  registeredComponents: e.builderComponents,
2450
2450
  BlocksWrapperProps: {
2451
2451
  ...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
2452
- "data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${y().index}`
2452
+ "data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${p().index}`
2453
2453
  }
2454
2454
  }
2455
2455
  ) : null,
@@ -2459,7 +2459,7 @@ function $n(e) {
2459
2459
  te,
2460
2460
  {
2461
2461
  nonce: ((_ = e.builderContext) == null ? void 0 : _.nonce) || "",
2462
- styles: g(),
2462
+ styles: f(),
2463
2463
  id: `variants-styles-${(H = e.builderBlock) == null ? void 0 : H.id}`
2464
2464
  }
2465
2465
  ),
@@ -2468,10 +2468,10 @@ function $n(e) {
2468
2468
  {
2469
2469
  nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
2470
2470
  scriptStr: o,
2471
- id: `variants-visibility-script-${(p = e.builderBlock) == null ? void 0 : p.id}`
2471
+ id: `variants-visibility-script-${(y = e.builderBlock) == null ? void 0 : y.id}`
2472
2472
  }
2473
2473
  ),
2474
- (v = e.variants) == null ? void 0 : v.map((I, N) => {
2474
+ (x = e.variants) == null ? void 0 : x.map((I, N) => {
2475
2475
  var C, W, L, O, j, Ce;
2476
2476
  return /* @__PURE__ */ s(
2477
2477
  M,
@@ -2503,14 +2503,14 @@ function $n(e) {
2503
2503
  /* @__PURE__ */ s(
2504
2504
  M,
2505
2505
  {
2506
- blocks: y().blocks,
2506
+ blocks: p().blocks,
2507
2507
  parent: (V = e.builderBlock) == null ? void 0 : V.id,
2508
- path: y().path,
2508
+ path: p().path,
2509
2509
  context: e.builderContext,
2510
2510
  registeredComponents: e.builderComponents,
2511
2511
  BlocksWrapperProps: {
2512
2512
  ...(A = e.builderContext) == null ? void 0 : A.BlocksWrapperProps,
2513
- "data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${y().index}`
2513
+ "data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${p().index}`
2514
2514
  },
2515
2515
  children: h ? /* @__PURE__ */ s(
2516
2516
  J,
@@ -3239,12 +3239,12 @@ const Gn = {
3239
3239
  function Xn(e) {
3240
3240
  const t = z(null), [n, i] = k(() => "unsubmitted"), [a, r] = k(() => null), [o, l] = k(() => "");
3241
3241
  function c(u) {
3242
- var f, m;
3243
- const x = {
3242
+ var m, g;
3243
+ const S = {
3244
3244
  ...e.builderContext.rootState,
3245
3245
  ...u
3246
3246
  };
3247
- e.builderContext.rootSetState ? (m = (f = e.builderContext).rootSetState) == null || m.call(f, x) : e.builderContext.rootState = x;
3247
+ e.builderContext.rootSetState ? (g = (m = e.builderContext).rootSetState) == null || g.call(m, S) : e.builderContext.rootState = S;
3248
3248
  }
3249
3249
  function d() {
3250
3250
  return U() && e.previewState || n;
@@ -3253,86 +3253,86 @@ function Xn(e) {
3253
3253
  return JSON.stringify(u, null, 2);
3254
3254
  }
3255
3255
  function b(u) {
3256
- var f;
3257
- const x = e.sendWithJs || e.sendSubmissionsTo === "email";
3256
+ var m;
3257
+ const S = e.sendWithJs || e.sendSubmissionsTo === "email";
3258
3258
  if (e.sendSubmissionsTo === "zapier")
3259
3259
  u.preventDefault();
3260
- else if (x) {
3260
+ else if (S) {
3261
3261
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3262
3262
  u.preventDefault();
3263
3263
  return;
3264
3264
  }
3265
3265
  u.preventDefault();
3266
- const m = u.currentTarget || u.target, y = e.customHeaders || {};
3267
- let g;
3268
- const S = new FormData(m), T = Array.from(m.querySelectorAll("input,select,textarea")).filter((p) => !!p.name).filter(
3269
- (p) => !!p.name && (p.type !== "radio" || p.checked)
3270
- ).map((p) => {
3271
- let v;
3272
- const V = p.name;
3273
- if (p instanceof HTMLInputElement)
3274
- if (p.type === "radio") {
3275
- if (p.checked)
3276
- return v = p.value, {
3266
+ const g = u.currentTarget || u.target, p = e.customHeaders || {};
3267
+ let f;
3268
+ const v = new FormData(g), T = Array.from(g.querySelectorAll("input,select,textarea")).filter((y) => !!y.name).filter(
3269
+ (y) => !!y.name && (y.type !== "radio" || y.checked)
3270
+ ).map((y) => {
3271
+ let x;
3272
+ const V = y.name;
3273
+ if (y instanceof HTMLInputElement)
3274
+ if (y.type === "radio") {
3275
+ if (y.checked)
3276
+ return x = y.value, {
3277
3277
  key: V,
3278
- value: v
3278
+ value: x
3279
3279
  };
3280
- } else if (p.type === "checkbox")
3281
- v = p.checked;
3282
- else if (p.type === "number" || p.type === "range") {
3283
- const A = p.valueAsNumber;
3284
- isNaN(A) || (v = A);
3280
+ } else if (y.type === "checkbox")
3281
+ x = y.checked;
3282
+ else if (y.type === "number" || y.type === "range") {
3283
+ const A = y.valueAsNumber;
3284
+ isNaN(A) || (x = A);
3285
3285
  } else
3286
- p.type === "file" ? v = p.files : v = p.value;
3286
+ y.type === "file" ? x = y.files : x = y.value;
3287
3287
  else
3288
- v = p.value;
3288
+ x = y.value;
3289
3289
  return {
3290
3290
  key: V,
3291
- value: v
3291
+ value: x
3292
3292
  };
3293
3293
  });
3294
3294
  let E = e.contentType;
3295
- if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: p }) => {
3296
- (p instanceof File || Array.isArray(p) && p[0] instanceof File || p instanceof FileList) && (E = "multipart/form-data");
3295
+ if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: y }) => {
3296
+ (y instanceof File || Array.isArray(y) && y[0] instanceof File || y instanceof FileList) && (E = "multipart/form-data");
3297
3297
  }), E !== "application/json")
3298
- g = S;
3298
+ f = v;
3299
3299
  else {
3300
- const p = {};
3301
- Array.from(T).forEach(({ value: v, key: V }) => {
3302
- He(p, V, v);
3303
- }), g = JSON.stringify(p);
3300
+ const y = {};
3301
+ Array.from(T).forEach(({ value: x, key: V }) => {
3302
+ He(y, V, x);
3303
+ }), f = JSON.stringify(y);
3304
3304
  }
3305
- E && E !== "multipart/form-data" && (x && ((f = e.action) != null && f.includes("zapier.com")) || (y["content-type"] = E));
3306
- const _ = new CustomEvent("presubmit", { detail: { body: g } });
3305
+ E && E !== "multipart/form-data" && (S && ((m = e.action) != null && m.includes("zapier.com")) || (p["content-type"] = E));
3306
+ const _ = new CustomEvent("presubmit", { detail: { body: f } });
3307
3307
  if (t.current && (t.current.dispatchEvent(_), _.defaultPrevented))
3308
3308
  return;
3309
3309
  if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
3310
- const p = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3311
- console.error(p), i("error"), c({ formErrorMessage: p });
3310
+ const y = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3311
+ console.error(y), i("error"), c({ formErrorMessage: y });
3312
3312
  return;
3313
3313
  }
3314
3314
  const H = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3315
3315
  e.sendSubmissionsToEmail || ""
3316
3316
  )}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
3317
- Le(q), fetch(q, { body: g, headers: y, method: e.method || "post" }).then(
3318
- async (p) => {
3317
+ Le(q), fetch(q, { body: f, headers: p, method: e.method || "post" }).then(
3318
+ async (y) => {
3319
3319
  var A, $;
3320
- let v;
3321
- const V = p.headers.get("content-type");
3322
- if (V && V.indexOf("application/json") !== -1 ? v = await p.json() : v = await p.text(), !p.ok) {
3320
+ let x;
3321
+ const V = y.headers.get("content-type");
3322
+ if (V && V.indexOf("application/json") !== -1 ? x = await y.json() : x = await y.text(), !y.ok) {
3323
3323
  const R = new CustomEvent("submit:error", {
3324
- detail: { error: v, status: p.status }
3324
+ detail: { error: x, status: y.status }
3325
3325
  });
3326
3326
  if ((A = t.current) != null && A.nativeElement && (($ = t.current) == null || $.nativeElement.dispatchEvent(R), R.defaultPrevented))
3327
3327
  return;
3328
- r(v), i("error");
3329
- let P = e.errorMessagePath ? qe(v, e.errorMessagePath) : v.message || v.error || v;
3328
+ r(x), i("error");
3329
+ let P = e.errorMessagePath ? qe(x, e.errorMessagePath) : x.message || x.error || x;
3330
3330
  typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
3331
3331
  return;
3332
3332
  }
3333
- if (r(v), i(p.ok ? "success" : "error"), p.ok) {
3333
+ if (r(x), i(y.ok ? "success" : "error"), y.ok) {
3334
3334
  const R = new CustomEvent("submit:success", {
3335
- detail: { res: p, body: v }
3335
+ detail: { res: y, body: x }
3336
3336
  });
3337
3337
  if (t.current) {
3338
3338
  if (t.current.dispatchEvent(R), R.defaultPrevented)
@@ -3349,11 +3349,11 @@ function Xn(e) {
3349
3349
  location.href = e.successUrl;
3350
3350
  }
3351
3351
  },
3352
- (p) => {
3353
- const v = new CustomEvent("submit:error", {
3354
- detail: { error: p }
3352
+ (y) => {
3353
+ const x = new CustomEvent("submit:error", {
3354
+ detail: { error: y }
3355
3355
  });
3356
- t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (r(p), i("error"));
3356
+ t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (r(y), i("error"));
3357
3357
  }
3358
3358
  );
3359
3359
  }
@@ -3797,24 +3797,24 @@ function ui(e) {
3797
3797
  });
3798
3798
  return B(() => {
3799
3799
  if (e.lazyLoad) {
3800
- const x = new IntersectionObserver(function(f) {
3801
- f.forEach(function(m) {
3802
- if (!m.isIntersecting)
3800
+ const S = new IntersectionObserver(function(m) {
3801
+ m.forEach(function(g) {
3802
+ if (!g.isIntersecting)
3803
3803
  return;
3804
- const y = m.target;
3804
+ const p = g.target;
3805
3805
  try {
3806
- Array.from(y.children).filter(
3807
- (g) => g instanceof HTMLElement && g.tagName === "SOURCE"
3808
- ).forEach((g) => {
3809
- const S = g.dataset.src;
3810
- S && (g.src = S);
3811
- }), y.load(), x.unobserve(y);
3812
- } catch (g) {
3813
- console.error("Error loading lazy video:", g);
3806
+ Array.from(p.children).filter(
3807
+ (f) => f instanceof HTMLElement && f.tagName === "SOURCE"
3808
+ ).forEach((f) => {
3809
+ const v = f.dataset.src;
3810
+ v && (f.src = v);
3811
+ }), p.load(), S.unobserve(p);
3812
+ } catch (f) {
3813
+ console.error("Error loading lazy video:", f);
3814
3814
  }
3815
3815
  });
3816
3816
  });
3817
- t.current && x.observe(t.current), r(x);
3817
+ t.current && S.observe(t.current), r(S);
3818
3818
  }
3819
3819
  }, []), B(() => () => {
3820
3820
  a && a.disconnect();
@@ -4169,17 +4169,17 @@ font-weight: ${l};
4169
4169
  }
4170
4170
  `, Ri = (e) => e ? "" : Ei, Pi = (e) => `variant-${e}`;
4171
4171
  function Vi(e) {
4172
- var H, q, p;
4172
+ var H, q, y;
4173
4173
  const t = z(null);
4174
4174
  k(() => !1), k(
4175
4175
  () => e.builderContextSignal
4176
4176
  );
4177
4177
  const [n, i] = k(() => null), [a, r] = k(() => "");
4178
- function o(v, V) {
4178
+ function o(x, V) {
4179
4179
  var $, R;
4180
4180
  const A = {
4181
4181
  ...e.builderContextSignal.rootState,
4182
- ...v
4182
+ ...x
4183
4183
  };
4184
4184
  e.builderContextSignal.rootSetState ? (R = ($ = e.builderContextSignal).rootSetState) == null || R.call($, A) : e.setBuilderContextSignal((P) => ({
4185
4185
  ...P,
@@ -4189,19 +4189,19 @@ function Vi(e) {
4189
4189
  rootState: A
4190
4190
  }));
4191
4191
  }
4192
- function l(v, V) {
4192
+ function l(x, V) {
4193
4193
  var $, R, P, I, N;
4194
4194
  const A = {
4195
4195
  ...e.builderContextSignal.content,
4196
- ...v,
4196
+ ...x,
4197
4197
  data: {
4198
4198
  ...($ = e.builderContextSignal.content) == null ? void 0 : $.data,
4199
- ...v == null ? void 0 : v.data
4199
+ ...x == null ? void 0 : x.data
4200
4200
  },
4201
4201
  meta: {
4202
4202
  ...(R = e.builderContextSignal.content) == null ? void 0 : R.meta,
4203
- ...v == null ? void 0 : v.meta,
4204
- 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)
4203
+ ...x == null ? void 0 : x.meta,
4204
+ 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)
4205
4205
  }
4206
4206
  };
4207
4207
  e.setBuilderContextSignal((C) => ({
@@ -4218,7 +4218,7 @@ function Vi(e) {
4218
4218
  const [d, h] = k(
4219
4219
  () => e.contentWrapper || "div"
4220
4220
  );
4221
- function b(v) {
4221
+ function b(x) {
4222
4222
  return dt({
4223
4223
  model: e.model,
4224
4224
  trustedHosts: e.trustedHosts,
@@ -4242,10 +4242,10 @@ function Vi(e) {
4242
4242
  o(V);
4243
4243
  }
4244
4244
  }
4245
- })(v);
4245
+ })(x);
4246
4246
  }
4247
- const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, g] = k(() => !1);
4248
- function S(v) {
4247
+ const [u, S] = k(() => ({})), [m, g] = k(() => ({})), [p, f] = k(() => !1);
4248
+ function v(x) {
4249
4249
  var V, A;
4250
4250
  if (e.builderContextSignal.content) {
4251
4251
  const $ = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
@@ -4256,24 +4256,24 @@ function Vi(e) {
4256
4256
  contentId: R,
4257
4257
  apiKey: e.apiKey,
4258
4258
  variationId: $ !== R ? $ : void 0,
4259
- ...ki(v),
4260
- unique: !y
4259
+ ...ki(x),
4260
+ unique: !p
4261
4261
  });
4262
4262
  }
4263
- y || g(!0);
4263
+ p || f(!0);
4264
4264
  }
4265
4265
  function T() {
4266
4266
  var V, A, $;
4267
- const v = ($ = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? $ : {};
4268
- Object.entries(v).forEach(
4267
+ const x = ($ = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? $ : {};
4268
+ Object.entries(x).forEach(
4269
4269
  ([R, P]) => {
4270
4270
  if (!P)
4271
4271
  return;
4272
4272
  const I = typeof P == "object" && P["@type"] === "@builder.io/core:Request";
4273
- if (f[R] || u[R] && !U())
4273
+ if (m[R] || u[R] && !U())
4274
4274
  return;
4275
4275
  const N = I ? P.request.url : P;
4276
- f[R] = !0;
4276
+ m[R] = !0;
4277
4277
  const C = N.replace(
4278
4278
  /{{([^}]+)}}/g,
4279
4279
  (O, j) => String(
@@ -4311,7 +4311,7 @@ function Vi(e) {
4311
4311
  O
4312
4312
  );
4313
4313
  }).finally(() => {
4314
- f[R] = !1;
4314
+ m[R] = !1;
4315
4315
  });
4316
4316
  }
4317
4317
  );
@@ -4333,7 +4333,7 @@ function Vi(e) {
4333
4333
  }
4334
4334
  const _ = z(!1);
4335
4335
  return _.current || (T(), E(), _.current = !0), B(() => {
4336
- var v, V, A, $, R;
4336
+ var x, V, A, $, R;
4337
4337
  if (G()) {
4338
4338
  U() && !e.isNestedRender && (window.addEventListener("message", b), st({
4339
4339
  ...e.locale ? {
@@ -4345,7 +4345,7 @@ function Vi(e) {
4345
4345
  ...e.trustedHosts ? {
4346
4346
  trustedHosts: e.trustedHosts
4347
4347
  } : {},
4348
- modelName: (v = e.model) != null ? v : "",
4348
+ modelName: (x = e.model) != null ? x : "",
4349
4349
  apiKey: e.apiKey
4350
4350
  }), Object.values(
4351
4351
  e.builderContextSignal.componentInfos
@@ -4419,11 +4419,11 @@ function Vi(e) {
4419
4419
  d,
4420
4420
  {
4421
4421
  ref: t,
4422
- onClick: (v) => S(v),
4422
+ onClick: (x) => v(x),
4423
4423
  "builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
4424
4424
  "builder-model": e.model,
4425
4425
  className: Pi(
4426
- ((q = e.content) == null ? void 0 : q.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
4426
+ ((q = e.content) == null ? void 0 : q.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
4427
4427
  ),
4428
4428
  style: {
4429
4429
  display: !e.builderContextSignal.content && De() ? "none" : void 0
@@ -4485,22 +4485,22 @@ const Bi = ({
4485
4485
  meta: e == null ? void 0 : e.meta
4486
4486
  } : void 0;
4487
4487
  function Fe(e) {
4488
- var d, h, b, u, x, f, m, y, g;
4488
+ var d, h, b, u, S, m, g, p, f;
4489
4489
  const [t, n] = k(
4490
4490
  () => {
4491
- var S, T;
4491
+ var v, T;
4492
4492
  return vi({
4493
4493
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4494
- variationId: (S = e.content) == null ? void 0 : S.testVariationId,
4494
+ variationId: (v = e.content) == null ? void 0 : v.testVariationId,
4495
4495
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4496
4496
  contentId: (T = e.content) == null ? void 0 : T.id
4497
4497
  });
4498
4498
  }
4499
4499
  );
4500
- function i(S) {
4500
+ function i(v) {
4501
4501
  l((T) => ({
4502
4502
  ...T,
4503
- rootState: S
4503
+ rootState: v
4504
4504
  }));
4505
4505
  }
4506
4506
  const [a, r] = k(
@@ -4508,8 +4508,8 @@ function Fe(e) {
4508
4508
  ...Ne(),
4509
4509
  ...e.customComponents || []
4510
4510
  ].reduce(
4511
- (S, { component: T, ...E }) => ({
4512
- ...S,
4511
+ (v, { component: T, ...E }) => ({
4512
+ ...v,
4513
4513
  [E.name]: {
4514
4514
  component: T,
4515
4515
  ...we(E)
@@ -4537,8 +4537,8 @@ function Fe(e) {
4537
4537
  ...Ne(),
4538
4538
  ...e.customComponents || []
4539
4539
  ].reduce(
4540
- (S, { component: T, ...E }) => ({
4541
- ...S,
4540
+ (v, { component: T, ...E }) => ({
4541
+ ...v,
4542
4542
  [E.name]: we(E)
4543
4543
  }),
4544
4544
  {}
@@ -4553,9 +4553,9 @@ function Fe(e) {
4553
4553
  e.apiKey || ee.error(
4554
4554
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4555
4555
  );
4556
- const S = (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
4557
- S && Q({
4558
- code: S,
4556
+ const v = (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
4557
+ v && Q({
4558
+ code: v,
4559
4559
  context: e.context || {},
4560
4560
  localState: void 0,
4561
4561
  rootState: o.rootState,
@@ -4607,14 +4607,14 @@ function Fe(e) {
4607
4607
  nonce: e.nonce || "",
4608
4608
  isNestedRender: e.isNestedRender,
4609
4609
  contentId: (b = o.content) == null ? void 0 : b.id,
4610
- cssCode: (x = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : x.cssCode,
4611
- customFonts: (m = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
4610
+ cssCode: (S = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : S.cssCode,
4611
+ customFonts: (g = (m = o.content) == null ? void 0 : m.data) == null ? void 0 : g.customFonts
4612
4612
  }
4613
4613
  ),
4614
4614
  /* @__PURE__ */ s(
4615
4615
  M,
4616
4616
  {
4617
- blocks: (g = (y = o.content) == null ? void 0 : y.data) == null ? void 0 : g.blocks,
4617
+ blocks: (f = (p = o.content) == null ? void 0 : p.data) == null ? void 0 : f.blocks,
4618
4618
  context: o,
4619
4619
  registeredComponents: a,
4620
4620
  linkComponent: e.linkComponent
@@ -4758,7 +4758,7 @@ const Wi = async ({
4758
4758
  (e != null && e.apiKey))
4759
4759
  return Oe({
4760
4760
  model: t.model,
4761
- apiKey: e.apiKey,
4761
+ apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
4762
4762
  apiVersion: e.apiVersion,
4763
4763
  ...(t == null ? void 0 : t.entry) && {
4764
4764
  query: {
@@ -4770,7 +4770,7 @@ const Wi = async ({
4770
4770
  });
4771
4771
  };
4772
4772
  function Di(e) {
4773
- var h, b, u, x, f;
4773
+ var h, b, u, S, m, g, p;
4774
4774
  function t() {
4775
4775
  return "div";
4776
4776
  }
@@ -4781,29 +4781,29 @@ function Di(e) {
4781
4781
  return Object.values(e.builderComponents);
4782
4782
  }
4783
4783
  function a() {
4784
- var m, y;
4784
+ var f, v;
4785
4785
  return [
4786
4786
  e.attributes[K()],
4787
4787
  "builder-symbol",
4788
- (m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
4789
- (y = e.symbol) != null && y.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4788
+ (f = e.symbol) != null && f.inline ? "builder-inline-symbol" : void 0,
4789
+ (v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4790
4790
  ].filter(Boolean).join(" ");
4791
4791
  }
4792
4792
  const [r, o] = k(() => {
4793
- var m;
4794
- return (m = e.symbol) == null ? void 0 : m.content;
4793
+ var f;
4794
+ return (f = e.symbol) == null ? void 0 : f.content;
4795
4795
  }), [l, c] = k(() => {
4796
- var m;
4797
- return (m = e.symbol) == null ? void 0 : m.entry;
4796
+ var f;
4797
+ return (f = e.symbol) == null ? void 0 : f.entry;
4798
4798
  });
4799
4799
  function d() {
4800
- var m;
4801
- r && l === ((m = e.symbol) == null ? void 0 : m.entry) || Wi({
4800
+ var f;
4801
+ r && l === ((f = e.symbol) == null ? void 0 : f.entry) || Wi({
4802
4802
  symbol: e.symbol,
4803
4803
  builderContextValue: e.builderContext
4804
- }).then((y) => {
4805
- var g;
4806
- y && (o(y), c((g = e.symbol) == null ? void 0 : g.entry));
4804
+ }).then((v) => {
4805
+ var T;
4806
+ v && (o(v), c((T = e.symbol) == null ? void 0 : T.entry));
4807
4807
  });
4808
4808
  }
4809
4809
  return B(() => {
@@ -4815,19 +4815,19 @@ function Di(e) {
4815
4815
  nonce: e.builderContext.nonce,
4816
4816
  isNestedRender: !0,
4817
4817
  apiVersion: e.builderContext.apiVersion,
4818
- apiKey: e.builderContext.apiKey,
4818
+ apiKey: (h = e.symbol) != null && h.global && ((b = e.symbol) != null && b.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
4819
4819
  context: {
4820
4820
  ...e.builderContext.context,
4821
- symbolId: (h = e.builderBlock) == null ? void 0 : h.id
4821
+ symbolId: (u = e.builderBlock) == null ? void 0 : u.id
4822
4822
  },
4823
4823
  customComponents: i(),
4824
4824
  data: {
4825
- ...(b = e.symbol) == null ? void 0 : b.data,
4825
+ ...(S = e.symbol) == null ? void 0 : S.data,
4826
4826
  ...e.builderContext.localState,
4827
- ...(u = r == null ? void 0 : r.data) == null ? void 0 : u.state
4827
+ ...(m = r == null ? void 0 : r.data) == null ? void 0 : m.state
4828
4828
  },
4829
4829
  canTrack: e.builderContext.canTrack,
4830
- model: (f = (x = e.symbol) == null ? void 0 : x.model) != null ? f : "",
4830
+ model: (p = (g = e.symbol) == null ? void 0 : g.model) != null ? p : "",
4831
4831
  content: r,
4832
4832
  linkComponent: e.builderLinkComponent,
4833
4833
  blocksWrapper: t(),