@builder.io/sdk-react 5.1.0 → 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 (75) hide show
  1. package/lib/browser/blocks-exports.cjs +17 -17
  2. package/lib/browser/blocks-exports.mjs +592 -560
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-7b82deab.cjs → server-entry-1549d863.cjs} +2 -2
  6. package/lib/browser/{server-entry-1df58bc2.js → server-entry-81390e9b.js} +126 -126
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-a57423b4.js → accordion-90d607ca.js} +1 -1
  10. package/lib/edge/{accordion-ac489baa.cjs → accordion-ba377db1.cjs} +1 -1
  11. package/lib/edge/{blocks-966052b8.js → blocks-482bd303.js} +359 -327
  12. package/lib/edge/{blocks-612edfa7.cjs → blocks-49400750.cjs} +12 -12
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-33b8e000.cjs → button-1dd20b20.cjs} +1 -1
  16. package/lib/edge/{button-da479943.js → button-76b09bda.js} +2 -2
  17. package/lib/edge/{columns-384a8553.js → columns-89f6f5b7.js} +3 -3
  18. package/lib/edge/{columns-476f3763.cjs → columns-ed698360.cjs} +1 -1
  19. package/lib/edge/{content-variants-b281c0c9.js → content-variants-6e54d1d8.js} +12 -12
  20. package/lib/edge/{content-variants-21daab2e.cjs → content-variants-98b86c90.cjs} +2 -2
  21. package/lib/edge/{custom-code-8f1a8bf6.js → custom-code-3387f2ee.js} +1 -1
  22. package/lib/edge/{custom-code-d420a6d1.cjs → custom-code-62511fce.cjs} +1 -1
  23. package/lib/edge/{embed-36d96f7c.cjs → embed-54bfd2b5.cjs} +1 -1
  24. package/lib/edge/{embed-4baabd44.js → embed-e24c574a.js} +1 -1
  25. package/lib/edge/{form-597542fa.cjs → form-5c77fb87.cjs} +1 -1
  26. package/lib/edge/{form-7b4ce85e.js → form-b3b23e9b.js} +3 -3
  27. package/lib/edge/{get-class-prop-name-71cc2ebb.js → get-class-prop-name-2e01e11c.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-0e04739a.cjs → get-class-prop-name-3347a655.cjs} +1 -1
  29. package/lib/edge/{img-ac7c30e0.cjs → img-8430be52.cjs} +1 -1
  30. package/lib/edge/{img-f7f612f5.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-eb1cbd99.js → input-6b9d2f0d.js} +1 -1
  34. package/lib/edge/{input-b6bd8bd9.cjs → input-e522b3f8.cjs} +1 -1
  35. package/lib/edge/{personalization-container-5fd328ca.js → personalization-container-42afbf21.js} +4 -4
  36. package/lib/edge/{personalization-container-c5a53dee.cjs → personalization-container-9469f576.cjs} +1 -1
  37. package/lib/edge/{select-e0f16408.cjs → select-38371935.cjs} +1 -1
  38. package/lib/edge/{select-3f4a8f91.js → select-e1a9f4c9.js} +1 -1
  39. package/lib/edge/{server-entry-2d0b2a53.js → server-entry-954fe774.js} +1 -1
  40. package/lib/edge/{server-entry-00719c56.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-bf1f3ed7.cjs → slot-562ee3ff.cjs} +1 -1
  44. package/lib/edge/{slot-38a6fa40.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-312a6e0a.js → tabs-51cb7107.js} +3 -3
  48. package/lib/edge/{tabs-c4a1844c.cjs → tabs-e1cf9ee7.cjs} +1 -1
  49. package/lib/node/blocks-exports.cjs +12 -12
  50. package/lib/node/blocks-exports.mjs +356 -340
  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-6fc232c7.cjs → server-entry-1c10e3d9.cjs} +2 -2
  56. package/lib/node/{server-entry-4228cc2b.js → server-entry-85c98f9a.js} +126 -126
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/lib/node/setIvm-a5e6d580.cjs +48 -0
  60. package/lib/node/{setIvm-29867fb3.js → setIvm-ed61fc8c.js} +60 -44
  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-7c48ac04.js → should-force-browser-runtime-in-node-03c2678b.js} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-eab67c2a.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/types/functions/evaluate/evaluate.d.ts +1 -1
  70. package/types/functions/evaluate/helpers.d.ts +9 -1
  71. package/types/functions/get-block-actions-handler.d.ts +2 -0
  72. package/types/functions/get-block-actions.d.ts +2 -0
  73. package/lib/edge/symbol-3a09c0c2.cjs +0 -1
  74. package/lib/edge/symbol-54dc2d3c.js +0 -93
  75. package/lib/node/setIvm-5abc9e0c.cjs +0 -48
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { TARGET as F, isBrowser as G, logger as ee, checkIsDefined as ge, 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-4228cc2b.js";
3
- import { setClientUserAttributes as qi } from "./server-entry-4228cc2b.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 bt, runInNode as gt, parseCode as yt, getBuilderGlobals as pt, set as He, fastClone as ve } from "./setIvm-29867fb3.js";
8
- import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-7c48ac04.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 }) }) });
@@ -79,7 +79,7 @@ const le = _e({
79
79
  builder: t,
80
80
  context: n,
81
81
  event: i,
82
- state: bt({
82
+ state: gt({
83
83
  rootState: o,
84
84
  localState: a,
85
85
  rootSetState: r
@@ -88,7 +88,7 @@ const le = _e({
88
88
  return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
89
89
  }, Tt = (e) => G() || vt({
90
90
  shouldLogWarning: !0
91
- }) ? Ct(e) : gt(e), It = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, wt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Et = (e) => {
91
+ }) ? Ct(e) : bt(e), It = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, wt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Et = (e) => {
92
92
  var t, n, i, a, r, o;
93
93
  return ((i = (n = (t = It.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((o = (r = (a = wt.exec(e.trim())) == null ? void 0 : a.groups) == null ? void 0 : r.getPath) == null ? void 0 : o.slice(1));
94
94
  };
@@ -99,21 +99,22 @@ function Q({
99
99
  rootState: i,
100
100
  rootSetState: a,
101
101
  event: r,
102
- isExpression: o = !0
102
+ isExpression: o = !0,
103
+ trackingContext: l
103
104
  }) {
104
105
  if (e.trim() === "")
105
106
  return;
106
- const l = Et(e.trim());
107
- if (l)
107
+ const c = Et(e.trim());
108
+ if (c)
108
109
  return qe({
109
110
  ...i,
110
111
  ...n
111
- }, l);
112
- const c = {
112
+ }, c);
113
+ const d = {
113
114
  code: yt(e, {
114
115
  isExpression: o
115
116
  }),
116
- builder: pt(),
117
+ builder: pt(l),
117
118
  context: t,
118
119
  event: r,
119
120
  rootSetState: a,
@@ -121,9 +122,9 @@ function Q({
121
122
  localState: n
122
123
  };
123
124
  try {
124
- return Tt(c);
125
- } catch (d) {
126
- ee.error("Failed code evaluation: " + d.message, {
125
+ return Tt(d);
126
+ } catch (h) {
127
+ ee.error("Failed code evaluation: " + h.message, {
127
128
  code: e
128
129
  });
129
130
  return;
@@ -358,8 +359,8 @@ function Ut(e) {
358
359
  leading: !1
359
360
  });
360
361
  function l(h) {
361
- const g = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
362
- return g.bottom > f && g.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;
363
364
  }
364
365
  const c = e.steps[0].styles;
365
366
  function d() {
@@ -376,7 +377,7 @@ function Ut(e) {
376
377
  const Ge = (e) => Object.entries(e).map(([n, i]) => {
377
378
  if (typeof i == "string")
378
379
  return `${se(n)}: ${i};`;
379
- }).filter(ge), Ht = (e) => Ge(e).join(`
380
+ }).filter(be), Ht = (e) => Ge(e).join(`
380
381
  `), Y = ({
381
382
  mediaQuery: e,
382
383
  className: t,
@@ -497,7 +498,8 @@ const Xt = (e) => `on${Yt(e)}`, Zt = (e, t) => (n) => Q({
497
498
  rootState: t.rootState,
498
499
  rootSetState: t.rootSetState,
499
500
  event: n,
500
- isExpression: !1
501
+ isExpression: !1,
502
+ trackingContext: t.trackingContext
501
503
  });
502
504
  function Xe(e) {
503
505
  var i;
@@ -550,6 +552,7 @@ function Se({
550
552
  });
551
553
  }
552
554
  function nn(e) {
555
+ var t, n, i;
553
556
  return /* @__PURE__ */ s(
554
557
  xe,
555
558
  {
@@ -564,7 +567,13 @@ function nn(e) {
564
567
  rootSetState: e.context.rootSetState,
565
568
  localState: e.context.localState,
566
569
  context: e.context.context,
567
- stripPrefix: !0
570
+ stripPrefix: !0,
571
+ trackingContext: {
572
+ apiKey: e.context.apiKey,
573
+ canTrack: (t = e.context.canTrack) != null ? t : !0,
574
+ contentId: (n = e.context.content) == null ? void 0 : n.id,
575
+ variationId: (i = e.context.content) == null ? void 0 : i.testVariationId
576
+ }
568
577
  }),
569
578
  children: e.children
570
579
  }
@@ -578,6 +587,7 @@ function rn(e) {
578
587
  var i, a;
579
588
  k(() => 0);
580
589
  function t() {
590
+ var r, o, l;
581
591
  return e.includeBlockProps ? {
582
592
  ...Se({
583
593
  block: e.block,
@@ -588,7 +598,13 @@ function rn(e) {
588
598
  rootState: e.context.rootState,
589
599
  rootSetState: e.context.rootSetState,
590
600
  localState: e.context.localState,
591
- context: e.context.context
601
+ context: e.context.context,
602
+ trackingContext: {
603
+ apiKey: e.context.apiKey,
604
+ canTrack: (r = e.context.canTrack) != null ? r : !0,
605
+ contentId: (o = e.context.content) == null ? void 0 : o.id,
606
+ variationId: (l = e.context.content) == null ? void 0 : l.testVariationId
607
+ }
592
608
  })
593
609
  } : {};
594
610
  }
@@ -756,60 +772,60 @@ function te(e) {
756
772
  function Ve(e) {
757
773
  function t() {
758
774
  const i = e.block;
759
- return ge(i.hide) ? !i.hide : ge(i.show) ? i.show : !0;
775
+ return be(i.hide) ? !i.hide : be(i.show) ? i.show : !0;
760
776
  }
761
777
  function n() {
762
778
  var T, E, _, H, q;
763
779
  const i = e.block, a = i.responsiveStyles, r = e.context.content, o = et(
764
780
  ((T = r == null ? void 0 : r.meta) == null ? void 0 : T.breakpoints) || {}
765
- ), 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, g = a == null ? void 0 : a.xsmall, u = i.id;
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;
766
782
  if (!u)
767
783
  return "";
768
- const x = c ? Y({
784
+ const S = c ? Y({
769
785
  className: u,
770
786
  styles: c
771
- }) : "", f = d ? Y({
787
+ }) : "", m = d ? Y({
772
788
  className: u,
773
789
  styles: d,
774
790
  mediaQuery: ue(
775
791
  "medium",
776
792
  o
777
793
  )
778
- }) : "", m = h ? Y({
794
+ }) : "", g = h ? Y({
779
795
  className: u,
780
796
  styles: h,
781
797
  mediaQuery: ue(
782
798
  "small",
783
799
  o
784
800
  )
785
- }) : "", y = g && l ? Y({
801
+ }) : "", p = b && l ? Y({
786
802
  className: u,
787
- styles: g,
803
+ styles: b,
788
804
  mediaQuery: ue(
789
805
  "xsmall",
790
806
  o
791
807
  )
792
- }) : "", b = i.animations && i.animations.find((p) => p.trigger === "hover");
793
- let S = "";
794
- if (b) {
795
- const p = ((q = (H = b.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
796
- 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({
797
813
  className: `${u}:hover`,
798
814
  styles: {
799
- ...p,
800
- transition: `all ${b.duration}s ${se(
801
- b.easing
815
+ ...y,
816
+ transition: `all ${f.duration}s ${se(
817
+ f.easing
802
818
  )}`,
803
- transitionDelay: b.delay ? `${b.delay}s` : "0s"
819
+ transitionDelay: f.delay ? `${f.delay}s` : "0s"
804
820
  }
805
821
  }) || "";
806
822
  }
807
823
  return [
808
- x,
809
- f,
824
+ S,
810
825
  m,
811
- y,
812
- S
826
+ g,
827
+ p,
828
+ v
813
829
  ].join(" ");
814
830
  }
815
831
  return /* @__PURE__ */ s(w, { children: n() && t() ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(
@@ -828,7 +844,7 @@ function ln(e) {
828
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 }) }) });
829
845
  }
830
846
  function ce(e) {
831
- var h, g, u, x;
847
+ var h, b, u, S;
832
848
  function t() {
833
849
  return zt({
834
850
  block: e.block,
@@ -840,17 +856,17 @@ function ce(e) {
840
856
  update: !1
841
857
  }));
842
858
  function a() {
843
- var m;
859
+ var g;
844
860
  if (n.value && !n.update && !oe())
845
861
  return n.value;
846
- 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({
847
863
  block: e.block,
848
864
  localState: e.context.localState,
849
865
  rootState: e.context.rootState,
850
866
  rootSetState: e.context.rootSetState,
851
867
  context: e.context.context
852
868
  });
853
- return n.value = f, n.update = !1, f;
869
+ return n.value = m, n.update = !1, m;
854
870
  }
855
871
  function r() {
856
872
  return jt({
@@ -860,25 +876,25 @@ function ce(e) {
860
876
  });
861
877
  }
862
878
  function o() {
863
- var m;
864
- 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";
865
881
  }
866
882
  function l() {
867
- var y, b;
868
- if ((y = e.block.repeat) != null && y.collection)
869
- return !!((b = t == null ? void 0 : t()) != null && b.length);
870
- const f = "hide" in a() ? a().hide : !1;
871
- 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;
872
888
  }
873
889
  function c() {
874
- var m, y;
875
- 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 : [] : [];
876
892
  }
877
893
  function d() {
878
- var f, m, y, b;
894
+ var m, g, p, f;
879
895
  return {
880
- blockChildren: (f = a().children) != null ? f : [],
881
- 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,
882
898
  componentOptions: {
883
899
  ...Rt(a(), e.context),
884
900
  ...Gt(r(), a()),
@@ -894,16 +910,16 @@ function ce(e) {
894
910
  linkComponent: e.linkComponent,
895
911
  registeredComponents: e.registeredComponents,
896
912
  builderBlock: a(),
897
- includeBlockProps: ((y = r == null ? void 0 : r()) == null ? void 0 : y.noWrap) === !0,
898
- isInteractive: !((b = r == null ? void 0 : r()) != null && b.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")
899
915
  };
900
916
  }
901
917
  return B(() => {
902
- const f = a().id, m = a().animations;
903
- m && f && Ot(
904
- m.map((y) => ({
905
- ...y,
906
- elementId: f
918
+ const m = a().id, g = a().animations;
919
+ g && m && Ot(
920
+ g.map((p) => ({
921
+ ...p,
922
+ elementId: m
907
923
  }))
908
924
  );
909
925
  }, []), B(() => {
@@ -917,15 +933,15 @@ function ce(e) {
917
933
  id: e.block.id
918
934
  }
919
935
  ),
920
- (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(
921
937
  Pe,
922
938
  {
923
- repeatContext: f.context,
924
- block: f.block,
939
+ repeatContext: m.context,
940
+ block: m.block,
925
941
  registeredComponents: e.registeredComponents,
926
942
  linkComponent: e.linkComponent
927
943
  },
928
- Ee(m)
944
+ Ee(g)
929
945
  )) }) : /* @__PURE__ */ s(
930
946
  Re,
931
947
  {
@@ -939,15 +955,15 @@ function ce(e) {
939
955
  includeBlockProps: d().includeBlockProps,
940
956
  isInteractive: d().isInteractive
941
957
  }
942
- ) : /* @__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(
943
959
  Pe,
944
960
  {
945
- repeatContext: f.context,
946
- block: f.block,
961
+ repeatContext: m.context,
962
+ block: m.block,
947
963
  registeredComponents: e.registeredComponents,
948
964
  linkComponent: e.linkComponent
949
965
  },
950
- Ee(m)
966
+ Ee(g)
951
967
  )) }) : /* @__PURE__ */ D(
952
968
  nn,
953
969
  {
@@ -969,15 +985,15 @@ function ce(e) {
969
985
  isInteractive: d().isInteractive
970
986
  }
971
987
  ),
972
- (g = c()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
988
+ (b = c()) == null ? void 0 : b.map((m) => /* @__PURE__ */ s(
973
989
  ce,
974
990
  {
975
- block: f,
991
+ block: m,
976
992
  registeredComponents: e.registeredComponents,
977
993
  linkComponent: e.linkComponent,
978
994
  context: e.context
979
995
  },
980
- f.id
996
+ m.id
981
997
  ))
982
998
  ]
983
999
  }
@@ -1083,7 +1099,7 @@ function M(e) {
1083
1099
  }
1084
1100
  const cn = (e) => `builder-columns ${e}-breakpoints`;
1085
1101
  function un(e) {
1086
- var m, y;
1102
+ var g, p;
1087
1103
  function t() {
1088
1104
  return typeof e.space == "number" ? e.space || 0 : 20;
1089
1105
  }
@@ -1093,28 +1109,28 @@ function un(e) {
1093
1109
  function i() {
1094
1110
  return e.stackColumnsAt || "tablet";
1095
1111
  }
1096
- function a(b) {
1097
- return b.link ? e.builderLinkComponent || "a" : "div";
1112
+ function a(f) {
1113
+ return f.link ? e.builderLinkComponent || "a" : "div";
1098
1114
  }
1099
- function r(b) {
1100
- var S;
1101
- return ((S = n()[b]) == 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;
1102
1118
  }
1103
- function o(b) {
1104
- const S = r(b), T = t() * (n().length - 1) * (S / 100);
1105
- 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)`;
1106
1122
  }
1107
1123
  function l({
1108
- stackedStyle: b,
1109
- desktopStyle: S
1124
+ stackedStyle: f,
1125
+ desktopStyle: v
1110
1126
  }) {
1111
- return i() === "tablet" ? b : S;
1127
+ return i() === "tablet" ? f : v;
1112
1128
  }
1113
1129
  function c({
1114
- stackedStyle: b,
1115
- desktopStyle: S
1130
+ stackedStyle: f,
1131
+ desktopStyle: v
1116
1132
  }) {
1117
- return i() === "never" ? S : b;
1133
+ return i() === "never" ? v : f;
1118
1134
  }
1119
1135
  function d() {
1120
1136
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -1128,8 +1144,8 @@ function un(e) {
1128
1144
  })
1129
1145
  };
1130
1146
  }
1131
- function g(b) {
1132
- const S = b === 0 ? 0 : t(), T = o(b), 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;
1133
1149
  return {
1134
1150
  ...{
1135
1151
  display: "flex",
@@ -1156,14 +1172,14 @@ function un(e) {
1156
1172
  })
1157
1173
  };
1158
1174
  }
1159
- function u(b) {
1175
+ function u(f) {
1160
1176
  var T, E;
1161
1177
  return et(
1162
1178
  ((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
1163
- )[b].max;
1179
+ )[f].max;
1164
1180
  }
1165
- function x() {
1166
- const b = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1181
+ function S() {
1182
+ const f = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1167
1183
  return `
1168
1184
  @media (max-width: ${u("medium")}px) {
1169
1185
  .${e.builderBlock.id}-breakpoints {
@@ -1171,7 +1187,7 @@ function un(e) {
1171
1187
  align-items: stretch;
1172
1188
  }
1173
1189
 
1174
- ${b} {
1190
+ ${f} {
1175
1191
  width: var(--column-width-tablet) !important;
1176
1192
  margin-left: var(--column-margin-left-tablet) !important;
1177
1193
  }
@@ -1183,20 +1199,20 @@ function un(e) {
1183
1199
  align-items: stretch;
1184
1200
  }
1185
1201
 
1186
- ${b} {
1202
+ ${f} {
1187
1203
  width: var(--column-width-mobile) !important;
1188
1204
  margin-left: var(--column-margin-left-mobile) !important;
1189
1205
  }
1190
1206
  },
1191
1207
  `;
1192
1208
  }
1193
- function f(b, S) {
1209
+ function m(f, v) {
1194
1210
  return {
1195
- ...b.link ? {
1196
- href: b.link
1211
+ ...f.link ? {
1212
+ href: f.link
1197
1213
  } : {},
1198
1214
  [K()]: "builder-column",
1199
- style: Qe(g(S))
1215
+ style: Qe(b(v))
1200
1216
  };
1201
1217
  }
1202
1218
  return /* @__PURE__ */ D(w, { children: [
@@ -1208,39 +1224,39 @@ function un(e) {
1208
1224
  /* @__PURE__ */ D(
1209
1225
  "div",
1210
1226
  {
1211
- 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",
1212
1228
  style: h(),
1213
1229
  children: [
1214
1230
  /* @__PURE__ */ s(
1215
1231
  te,
1216
1232
  {
1217
1233
  id: "builderio-columns",
1218
- styles: x(),
1234
+ styles: S(),
1219
1235
  nonce: e.builderContext.nonce
1220
1236
  }
1221
1237
  ),
1222
- (y = e.columns) == null ? void 0 : y.map((b, S) => /* @__PURE__ */ s(
1238
+ (p = e.columns) == null ? void 0 : p.map((f, v) => /* @__PURE__ */ s(
1223
1239
  xe,
1224
1240
  {
1225
- TagName: a(b),
1241
+ TagName: a(f),
1226
1242
  actionAttributes: {},
1227
- attributes: f(b, S),
1243
+ attributes: m(f, v),
1228
1244
  children: /* @__PURE__ */ s(
1229
1245
  M,
1230
1246
  {
1231
- path: `columns.${S}.blocks`,
1247
+ path: `columns.${v}.blocks`,
1232
1248
  parent: e.builderBlock.id,
1233
1249
  context: e.builderContext,
1234
1250
  registeredComponents: e.builderComponents,
1235
1251
  linkComponent: e.builderLinkComponent,
1236
- blocks: b.blocks,
1252
+ blocks: f.blocks,
1237
1253
  styleProp: {
1238
1254
  flexGrow: "1"
1239
1255
  }
1240
1256
  }
1241
1257
  )
1242
1258
  },
1243
- S
1259
+ v
1244
1260
  ))
1245
1261
  ]
1246
1262
  }
@@ -1284,18 +1300,18 @@ function hn(e) {
1284
1300
  var a, r, o, l, c, d;
1285
1301
  function t() {
1286
1302
  var u;
1287
- const g = e.image || e.src;
1288
- if (!g || // We can auto add srcset for cdn.builder.io and shopify
1303
+ const b = e.image || e.src;
1304
+ if (!b || // We can auto add srcset for cdn.builder.io and shopify
1289
1305
  // images, otherwise you can supply this prop manually
1290
- !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1306
+ !(typeof b == "string" && (b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/))))
1291
1307
  return e.srcset;
1292
1308
  if (!e.noWebp) {
1293
1309
  if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
1294
1310
  if (!e.srcset.includes(e.image.split("?")[0]))
1295
- return console.debug("Removed given srcset"), de(g);
1311
+ return console.debug("Removed given srcset"), de(b);
1296
1312
  } else if (e.image && !e.srcset)
1297
- return de(g);
1298
- return de(g);
1313
+ return de(b);
1314
+ return de(b);
1299
1315
  }
1300
1316
  }
1301
1317
  function n() {
@@ -1368,7 +1384,7 @@ function hn(e) {
1368
1384
  ] })
1369
1385
  ] });
1370
1386
  }
1371
- function bn(e) {
1387
+ function gn(e) {
1372
1388
  return /* @__PURE__ */ s(
1373
1389
  "section",
1374
1390
  {
@@ -1389,7 +1405,7 @@ function bn(e) {
1389
1405
  }
1390
1406
  );
1391
1407
  }
1392
- function gn(e, t, n, i) {
1408
+ function bn(e, t, n, i) {
1393
1409
  function a(d) {
1394
1410
  return typeof d == "string";
1395
1411
  }
@@ -1398,42 +1414,42 @@ function gn(e, t, n, i) {
1398
1414
  }
1399
1415
  function o(d, h) {
1400
1416
  return (() => {
1401
- const u = h.property, x = h.operator;
1402
- let f = h.value;
1403
- 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))
1404
1420
  return !0;
1405
- if (Array.isArray(f))
1406
- return x === "isNot" ? f.every((y) => o(d, {
1421
+ if (Array.isArray(m))
1422
+ return S === "isNot" ? m.every((p) => o(d, {
1407
1423
  property: u,
1408
- operator: x,
1409
- value: y
1410
- })) : !!f.find((y) => o(d, {
1424
+ operator: S,
1425
+ value: p
1426
+ })) : !!m.find((p) => o(d, {
1411
1427
  property: u,
1412
- operator: x,
1413
- value: y
1428
+ operator: S,
1429
+ value: p
1414
1430
  }));
1415
- const m = d[u];
1416
- if (Array.isArray(m))
1417
- return m.includes(f);
1418
- switch (x) {
1431
+ const g = d[u];
1432
+ if (Array.isArray(g))
1433
+ return g.includes(m);
1434
+ switch (S) {
1419
1435
  case "is":
1420
- return m === f;
1436
+ return g === m;
1421
1437
  case "isNot":
1422
- return m !== f;
1438
+ return g !== m;
1423
1439
  case "contains":
1424
- return (a(m) || Array.isArray(m)) && m.includes(String(f));
1440
+ return (a(g) || Array.isArray(g)) && g.includes(String(m));
1425
1441
  case "startsWith":
1426
- return a(m) && m.startsWith(String(f));
1442
+ return a(g) && g.startsWith(String(m));
1427
1443
  case "endsWith":
1428
- return a(m) && m.endsWith(String(f));
1444
+ return a(g) && g.endsWith(String(m));
1429
1445
  case "greaterThan":
1430
- return r(m) && r(f) && m > f;
1446
+ return r(g) && r(m) && g > m;
1431
1447
  case "lessThan":
1432
- return r(m) && r(f) && m < f;
1448
+ return r(g) && r(m) && g < m;
1433
1449
  case "greaterThanOrEqualTo":
1434
- return r(m) && r(f) && m >= f;
1450
+ return r(g) && r(m) && g >= m;
1435
1451
  case "lessThanOrEqualTo":
1436
- return r(m) && r(f) && m <= f;
1452
+ return r(g) && r(m) && g <= m;
1437
1453
  default:
1438
1454
  return !1;
1439
1455
  }
@@ -1780,7 +1796,7 @@ const Cn = () => `
1780
1796
  }
1781
1797
  }, Be = (e) => e.toString();
1782
1798
  function En(e) {
1783
- var g;
1799
+ var b;
1784
1800
  const [t, n] = k(() => []);
1785
1801
  function i() {
1786
1802
  return !!(e.grid || e.oneAtATime);
@@ -1798,7 +1814,7 @@ function En(e) {
1798
1814
  };
1799
1815
  }
1800
1816
  function r() {
1801
- const x = {
1817
+ const S = {
1802
1818
  ...{
1803
1819
  display: "flex",
1804
1820
  flexDirection: "column"
@@ -1807,7 +1823,7 @@ function En(e) {
1807
1823
  cursor: "pointer"
1808
1824
  };
1809
1825
  return Object.fromEntries(
1810
- Object.entries(x).filter(([f, m]) => m !== void 0)
1826
+ Object.entries(S).filter(([m, g]) => g !== void 0)
1811
1827
  );
1812
1828
  }
1813
1829
  function o(u) {
@@ -1819,23 +1835,23 @@ function En(e) {
1819
1835
  function c() {
1820
1836
  let u = null;
1821
1837
  if (e.grid && t.length && document) {
1822
- const f = t[0];
1823
- let y = document.querySelector(
1824
- `.builder-accordion-title[data-index="${f}"]`
1838
+ const m = t[0];
1839
+ let p = document.querySelector(
1840
+ `.builder-accordion-title[data-index="${m}"]`
1825
1841
  );
1826
- if (u = f, y) {
1827
- let b = y.getBoundingClientRect();
1828
- for (; y = y && y.nextElementSibling; )
1829
- if (y) {
1830
- 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"))
1831
1847
  continue;
1832
- const S = y.getBoundingClientRect();
1833
- if (S.left > b.left) {
1848
+ const v = p.getBoundingClientRect();
1849
+ if (v.left > f.left) {
1834
1850
  const T = parseInt(
1835
- y.getAttribute("data-index") || "",
1851
+ p.getAttribute("data-index") || "",
1836
1852
  10
1837
1853
  );
1838
- isNaN(T) || (b = S, u = T);
1854
+ isNaN(T) || (f = v, u = T);
1839
1855
  } else
1840
1856
  break;
1841
1857
  }
@@ -1851,31 +1867,31 @@ function En(e) {
1851
1867
  }
1852
1868
  };
1853
1869
  return Object.fromEntries(
1854
- Object.entries(u).filter(([x, f]) => f !== void 0)
1870
+ Object.entries(u).filter(([S, m]) => m !== void 0)
1855
1871
  );
1856
1872
  }
1857
1873
  function h(u) {
1858
- 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));
1859
1875
  }
1860
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.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: [
1861
1877
  /* @__PURE__ */ s(
1862
1878
  "div",
1863
1879
  {
1864
- className: o(x),
1880
+ className: o(S),
1865
1881
  style: {
1866
1882
  ...r(),
1867
1883
  ...e.grid && {
1868
1884
  width: e.gridRowWidth,
1869
- order: c() !== null ? Be(x) : Be(x + 1)
1885
+ order: c() !== null ? Be(S) : Be(S + 1)
1870
1886
  }
1871
1887
  },
1872
- "data-index": x,
1873
- onClick: (f) => h(x),
1888
+ "data-index": S,
1889
+ onClick: (m) => h(S),
1874
1890
  children: /* @__PURE__ */ s(
1875
1891
  M,
1876
1892
  {
1877
1893
  blocks: u.title,
1878
- path: `items.${x}.title`,
1894
+ path: `items.${S}.title`,
1879
1895
  parent: e.builderBlock.id,
1880
1896
  context: e.builderContext,
1881
1897
  registeredComponents: e.builderComponents,
@@ -1884,16 +1900,16 @@ function En(e) {
1884
1900
  )
1885
1901
  }
1886
1902
  ),
1887
- t.includes(x) ? /* @__PURE__ */ s(
1903
+ t.includes(S) ? /* @__PURE__ */ s(
1888
1904
  "div",
1889
1905
  {
1890
- className: l(x),
1906
+ className: l(S),
1891
1907
  style: d(),
1892
1908
  children: /* @__PURE__ */ s(
1893
1909
  M,
1894
1910
  {
1895
1911
  blocks: u.detail,
1896
- path: `items.${x}.detail`,
1912
+ path: `items.${S}.detail`,
1897
1913
  parent: e.builderBlock.id,
1898
1914
  context: e.builderContext,
1899
1915
  registeredComponents: e.builderComponents,
@@ -1902,7 +1918,7 @@ function En(e) {
1902
1918
  )
1903
1919
  }
1904
1920
  ) : null
1905
- ] }, x)) });
1921
+ ] }, S)) });
1906
1922
  }
1907
1923
  const Rn = {
1908
1924
  name: "Core:Button",
@@ -2176,13 +2192,13 @@ const Rn = {
2176
2192
  function n(o, l = 6e4) {
2177
2193
  return new Promise((c, d) => {
2178
2194
  const h = document.createElement("img");
2179
- let g = !1;
2195
+ let b = !1;
2180
2196
  h.onload = () => {
2181
- g = !0, c(h);
2197
+ b = !0, c(h);
2182
2198
  }, h.addEventListener("error", (u) => {
2183
2199
  console.warn("Image load failed", u.error), d(u.error);
2184
2200
  }), h.src = o, setTimeout(() => {
2185
- g || d(new Error("Image load timed out"));
2201
+ b || d(new Error("Image load timed out"));
2186
2202
  }, l);
2187
2203
  });
2188
2204
  }
@@ -2313,7 +2329,7 @@ function J(e) {
2313
2329
  );
2314
2330
  }
2315
2331
  function $n(e) {
2316
- 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;
2317
2333
  const t = z(null), [n, i] = k(
2318
2334
  () => Te.getUserAttributes()
2319
2335
  ), [a, r] = k(
@@ -2334,7 +2350,7 @@ function $n(e) {
2334
2350
  (C = (N = e.builderContext) == null ? void 0 : N.rootState) == null ? void 0 : C.locale
2335
2351
  );
2336
2352
  }
2337
- ), [c, d] = k(() => []), [h, g] = k(
2353
+ ), [c, d] = k(() => []), [h, b] = k(
2338
2354
  () => {
2339
2355
  var I;
2340
2356
  return Sn(
@@ -2342,17 +2358,17 @@ function $n(e) {
2342
2358
  Z((I = e.builderContext) == null ? void 0 : I.canTrack)
2343
2359
  );
2344
2360
  }
2345
- ), [u, x] = k(() => !1);
2346
- function f() {
2361
+ ), [u, S] = k(() => !1);
2362
+ function m() {
2347
2363
  return {
2348
2364
  ...e.attributes,
2349
2365
  [K()]: `builder-personalization-container ${e.attributes[K()] || ""}`
2350
2366
  };
2351
2367
  }
2352
- function m() {
2368
+ function g() {
2353
2369
  return (e.variants || []).filter((I) => {
2354
2370
  var N, C, W, L;
2355
- return gn(
2371
+ return bn(
2356
2372
  {
2357
2373
  ...(C = (N = e.builderContext) == null ? void 0 : N.rootState) != null && C.locale ? {
2358
2374
  locale: (L = (W = e.builderContext) == null ? void 0 : W.rootState) == null ? void 0 : L.locale
@@ -2365,17 +2381,17 @@ function $n(e) {
2365
2381
  );
2366
2382
  });
2367
2383
  }
2368
- function y() {
2384
+ function p() {
2369
2385
  var I;
2370
2386
  return kn({
2371
2387
  variants: e.variants,
2372
2388
  fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
2373
2389
  isHydrated: u,
2374
- filteredVariants: m(),
2390
+ filteredVariants: g(),
2375
2391
  previewingIndex: e.previewingIndex
2376
2392
  });
2377
2393
  }
2378
- function b() {
2394
+ function f() {
2379
2395
  return (e.variants || []).map(
2380
2396
  (I, N) => {
2381
2397
  var C;
@@ -2385,7 +2401,7 @@ function $n(e) {
2385
2401
  }
2386
2402
  return B(() => {
2387
2403
  var N;
2388
- x(!0);
2404
+ S(!0);
2389
2405
  const I = Te.subscribeOnUserAttributesChange(
2390
2406
  (C) => {
2391
2407
  i(C);
@@ -2395,7 +2411,7 @@ function $n(e) {
2395
2411
  }
2396
2412
  );
2397
2413
  if (!(U() || oe())) {
2398
- const C = m()[0];
2414
+ const C = g()[0];
2399
2415
  t.current && (t.current.dispatchEvent(
2400
2416
  new CustomEvent("builder.variantLoaded", {
2401
2417
  detail: {
@@ -2422,18 +2438,18 @@ function $n(e) {
2422
2438
  c.push(I);
2423
2439
  }, []), B(() => () => {
2424
2440
  c.forEach((I) => I());
2425
- }, []), /* @__PURE__ */ D("div", { ref: t, ...f(), children: [
2441
+ }, []), /* @__PURE__ */ D("div", { ref: t, ...m(), children: [
2426
2442
  u && ie.includes(F) ? /* @__PURE__ */ s(
2427
2443
  M,
2428
2444
  {
2429
- blocks: y().blocks,
2430
- parent: (S = e.builderBlock) == null ? void 0 : S.id,
2431
- path: y().path,
2445
+ blocks: p().blocks,
2446
+ parent: (v = e.builderBlock) == null ? void 0 : v.id,
2447
+ path: p().path,
2432
2448
  context: e.builderContext,
2433
2449
  registeredComponents: e.builderComponents,
2434
2450
  BlocksWrapperProps: {
2435
2451
  ...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
2436
- "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}`
2437
2453
  }
2438
2454
  }
2439
2455
  ) : null,
@@ -2443,7 +2459,7 @@ function $n(e) {
2443
2459
  te,
2444
2460
  {
2445
2461
  nonce: ((_ = e.builderContext) == null ? void 0 : _.nonce) || "",
2446
- styles: b(),
2462
+ styles: f(),
2447
2463
  id: `variants-styles-${(H = e.builderBlock) == null ? void 0 : H.id}`
2448
2464
  }
2449
2465
  ),
@@ -2452,10 +2468,10 @@ function $n(e) {
2452
2468
  {
2453
2469
  nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
2454
2470
  scriptStr: o,
2455
- 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}`
2456
2472
  }
2457
2473
  ),
2458
- (v = e.variants) == null ? void 0 : v.map((I, N) => {
2474
+ (x = e.variants) == null ? void 0 : x.map((I, N) => {
2459
2475
  var C, W, L, O, j, Ce;
2460
2476
  return /* @__PURE__ */ s(
2461
2477
  M,
@@ -2487,14 +2503,14 @@ function $n(e) {
2487
2503
  /* @__PURE__ */ s(
2488
2504
  M,
2489
2505
  {
2490
- blocks: y().blocks,
2506
+ blocks: p().blocks,
2491
2507
  parent: (V = e.builderBlock) == null ? void 0 : V.id,
2492
- path: y().path,
2508
+ path: p().path,
2493
2509
  context: e.builderContext,
2494
2510
  registeredComponents: e.builderComponents,
2495
2511
  BlocksWrapperProps: {
2496
2512
  ...(A = e.builderContext) == null ? void 0 : A.BlocksWrapperProps,
2497
- "data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${y().index}`
2513
+ "data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${p().index}`
2498
2514
  },
2499
2515
  children: h ? /* @__PURE__ */ s(
2500
2516
  J,
@@ -2651,7 +2667,7 @@ const Ln = {
2651
2667
  text: "New tab"
2652
2668
  }
2653
2669
  }
2654
- }, be = {
2670
+ }, ge = {
2655
2671
  "@type": "@builder.io/sdk:Element",
2656
2672
  responsiveStyles: {
2657
2673
  large: {
@@ -2682,7 +2698,7 @@ const Ln = {
2682
2698
  name: "content",
2683
2699
  type: "uiBlocks",
2684
2700
  hideFromUI: !0,
2685
- defaultValue: [be]
2701
+ defaultValue: [ge]
2686
2702
  }],
2687
2703
  defaultValue: [{
2688
2704
  label: [{
@@ -2695,7 +2711,7 @@ const Ln = {
2695
2711
  }
2696
2712
  }],
2697
2713
  content: [{
2698
- ...be,
2714
+ ...ge,
2699
2715
  component: {
2700
2716
  name: "Text",
2701
2717
  options: {
@@ -2714,7 +2730,7 @@ const Ln = {
2714
2730
  }
2715
2731
  }],
2716
2732
  content: [{
2717
- ...be,
2733
+ ...ge,
2718
2734
  component: {
2719
2735
  name: "Text",
2720
2736
  options: {
@@ -2899,8 +2915,8 @@ function qn(e) {
2899
2915
  if (n.includes(h.src))
2900
2916
  continue;
2901
2917
  n.push(h.src);
2902
- const g = document.createElement("script");
2903
- g.async = !0, g.src = h.src, document.head.appendChild(g);
2918
+ const b = document.createElement("script");
2919
+ b.async = !0, b.src = h.src, document.head.appendChild(b);
2904
2920
  } else if (!h.type || [
2905
2921
  "text/javascript",
2906
2922
  "application/javascript",
@@ -2910,10 +2926,10 @@ function qn(e) {
2910
2926
  continue;
2911
2927
  try {
2912
2928
  a.push(h.innerText), new Function(h.innerText)();
2913
- } catch (g) {
2929
+ } catch (b) {
2914
2930
  ee.warn(
2915
2931
  "[BUILDER.IO] `CustomCode`: Error running script:",
2916
- g
2932
+ b
2917
2933
  );
2918
2934
  }
2919
2935
  }
@@ -2955,14 +2971,14 @@ function Jn(e) {
2955
2971
  return;
2956
2972
  const d = t.current.getElementsByTagName("script");
2957
2973
  for (let h = 0; h < d.length; h++) {
2958
- const g = d[h];
2959
- if (g.src && !n.includes(g.src)) {
2960
- n.push(g.src);
2974
+ const b = d[h];
2975
+ if (b.src && !n.includes(b.src)) {
2976
+ n.push(b.src);
2961
2977
  const u = document.createElement("script");
2962
- u.async = !0, u.src = g.src, document.head.appendChild(u);
2963
- } else if (Kn(g) && !a.includes(g.innerText))
2978
+ u.async = !0, u.src = b.src, document.head.appendChild(u);
2979
+ } else if (Kn(b) && !a.includes(b.innerText))
2964
2980
  try {
2965
- a.push(g.innerText), new Function(g.innerText)();
2981
+ a.push(b.innerText), new Function(b.innerText)();
2966
2982
  } catch (u) {
2967
2983
  ee.warn("[BUILDER.IO] `Embed`: Error running script:", u);
2968
2984
  }
@@ -3223,12 +3239,12 @@ const Gn = {
3223
3239
  function Xn(e) {
3224
3240
  const t = z(null), [n, i] = k(() => "unsubmitted"), [a, r] = k(() => null), [o, l] = k(() => "");
3225
3241
  function c(u) {
3226
- var f, m;
3227
- const x = {
3242
+ var m, g;
3243
+ const S = {
3228
3244
  ...e.builderContext.rootState,
3229
3245
  ...u
3230
3246
  };
3231
- 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;
3232
3248
  }
3233
3249
  function d() {
3234
3250
  return U() && e.previewState || n;
@@ -3236,87 +3252,87 @@ function Xn(e) {
3236
3252
  function h(u) {
3237
3253
  return JSON.stringify(u, null, 2);
3238
3254
  }
3239
- function g(u) {
3240
- var f;
3241
- const x = e.sendWithJs || e.sendSubmissionsTo === "email";
3255
+ function b(u) {
3256
+ var m;
3257
+ const S = e.sendWithJs || e.sendSubmissionsTo === "email";
3242
3258
  if (e.sendSubmissionsTo === "zapier")
3243
3259
  u.preventDefault();
3244
- else if (x) {
3260
+ else if (S) {
3245
3261
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3246
3262
  u.preventDefault();
3247
3263
  return;
3248
3264
  }
3249
3265
  u.preventDefault();
3250
- const m = u.currentTarget || u.target, y = e.customHeaders || {};
3251
- let b;
3252
- const S = new FormData(m), T = Array.from(m.querySelectorAll("input,select,textarea")).filter((p) => !!p.name).filter(
3253
- (p) => !!p.name && (p.type !== "radio" || p.checked)
3254
- ).map((p) => {
3255
- let v;
3256
- const V = p.name;
3257
- if (p instanceof HTMLInputElement)
3258
- if (p.type === "radio") {
3259
- if (p.checked)
3260
- 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, {
3261
3277
  key: V,
3262
- value: v
3278
+ value: x
3263
3279
  };
3264
- } else if (p.type === "checkbox")
3265
- v = p.checked;
3266
- else if (p.type === "number" || p.type === "range") {
3267
- const A = p.valueAsNumber;
3268
- 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);
3269
3285
  } else
3270
- p.type === "file" ? v = p.files : v = p.value;
3286
+ y.type === "file" ? x = y.files : x = y.value;
3271
3287
  else
3272
- v = p.value;
3288
+ x = y.value;
3273
3289
  return {
3274
3290
  key: V,
3275
- value: v
3291
+ value: x
3276
3292
  };
3277
3293
  });
3278
3294
  let E = e.contentType;
3279
- if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: p }) => {
3280
- (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");
3281
3297
  }), E !== "application/json")
3282
- b = S;
3298
+ f = v;
3283
3299
  else {
3284
- const p = {};
3285
- Array.from(T).forEach(({ value: v, key: V }) => {
3286
- He(p, V, v);
3287
- }), b = 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);
3288
3304
  }
3289
- E && E !== "multipart/form-data" && (x && ((f = e.action) != null && f.includes("zapier.com")) || (y["content-type"] = E));
3290
- const _ = new CustomEvent("presubmit", { detail: { body: b } });
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 } });
3291
3307
  if (t.current && (t.current.dispatchEvent(_), _.defaultPrevented))
3292
3308
  return;
3293
3309
  if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
3294
- const p = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3295
- 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 });
3296
3312
  return;
3297
3313
  }
3298
3314
  const H = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3299
3315
  e.sendSubmissionsToEmail || ""
3300
3316
  )}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
3301
- Le(q), fetch(q, { body: b, headers: y, method: e.method || "post" }).then(
3302
- async (p) => {
3317
+ Le(q), fetch(q, { body: f, headers: p, method: e.method || "post" }).then(
3318
+ async (y) => {
3303
3319
  var A, $;
3304
- let v;
3305
- const V = p.headers.get("content-type");
3306
- 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) {
3307
3323
  const R = new CustomEvent("submit:error", {
3308
- detail: { error: v, status: p.status }
3324
+ detail: { error: x, status: y.status }
3309
3325
  });
3310
3326
  if ((A = t.current) != null && A.nativeElement && (($ = t.current) == null || $.nativeElement.dispatchEvent(R), R.defaultPrevented))
3311
3327
  return;
3312
- r(v), i("error");
3313
- 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;
3314
3330
  typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
3315
3331
  return;
3316
3332
  }
3317
- if (r(v), i(p.ok ? "success" : "error"), p.ok) {
3333
+ if (r(x), i(y.ok ? "success" : "error"), y.ok) {
3318
3334
  const R = new CustomEvent("submit:success", {
3319
- detail: { res: p, body: v }
3335
+ detail: { res: y, body: x }
3320
3336
  });
3321
3337
  if (t.current) {
3322
3338
  if (t.current.dispatchEvent(R), R.defaultPrevented)
@@ -3333,11 +3349,11 @@ function Xn(e) {
3333
3349
  location.href = e.successUrl;
3334
3350
  }
3335
3351
  },
3336
- (p) => {
3337
- const v = new CustomEvent("submit:error", {
3338
- detail: { error: p }
3352
+ (y) => {
3353
+ const x = new CustomEvent("submit:error", {
3354
+ detail: { error: y }
3339
3355
  });
3340
- 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"));
3341
3357
  }
3342
3358
  );
3343
3359
  }
@@ -3354,7 +3370,7 @@ function Xn(e) {
3354
3370
  action: !e.sendWithJs && e.action,
3355
3371
  method: e.method,
3356
3372
  name: e.name,
3357
- onSubmit: (u) => g(u),
3373
+ onSubmit: (u) => b(u),
3358
3374
  ...e.attributes,
3359
3375
  children: [
3360
3376
  e.children,
@@ -3751,7 +3767,7 @@ const ci = {
3751
3767
  }
3752
3768
  };
3753
3769
  function ui(e) {
3754
- var o, l, c, d, h, g, u;
3770
+ var o, l, c, d, h, b, u;
3755
3771
  const t = z(null);
3756
3772
  function n() {
3757
3773
  return {
@@ -3781,24 +3797,24 @@ function ui(e) {
3781
3797
  });
3782
3798
  return B(() => {
3783
3799
  if (e.lazyLoad) {
3784
- const x = new IntersectionObserver(function(f) {
3785
- f.forEach(function(m) {
3786
- if (!m.isIntersecting)
3800
+ const S = new IntersectionObserver(function(m) {
3801
+ m.forEach(function(g) {
3802
+ if (!g.isIntersecting)
3787
3803
  return;
3788
- const y = m.target;
3804
+ const p = g.target;
3789
3805
  try {
3790
- Array.from(y.children).filter(
3791
- (b) => b instanceof HTMLElement && b.tagName === "SOURCE"
3792
- ).forEach((b) => {
3793
- const S = b.dataset.src;
3794
- S && (b.src = S);
3795
- }), y.load(), x.unobserve(y);
3796
- } catch (b) {
3797
- console.error("Error loading lazy video:", b);
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);
3798
3814
  }
3799
3815
  });
3800
3816
  });
3801
- t.current && x.observe(t.current), r(x);
3817
+ t.current && S.observe(t.current), r(S);
3802
3818
  }
3803
3819
  }, []), B(() => () => {
3804
3820
  a && a.disconnect();
@@ -3865,7 +3881,7 @@ function ui(e) {
3865
3881
  children: e.children
3866
3882
  }
3867
3883
  ) : null,
3868
- (u = (g = e.builderBlock) == null ? void 0 : g.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
3884
+ (u = (b = e.builderBlock) == null ? void 0 : b.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
3869
3885
  "div",
3870
3886
  {
3871
3887
  style: {
@@ -3926,7 +3942,7 @@ const di = () => [{
3926
3942
  component: hn,
3927
3943
  ...Bn
3928
3944
  }, {
3929
- component: bn,
3945
+ component: gn,
3930
3946
  ...Wn
3931
3947
  }, {
3932
3948
  component: Fn,
@@ -4046,12 +4062,12 @@ const di = () => [{
4046
4062
  })), hi = ({
4047
4063
  canTrack: e,
4048
4064
  content: t
4049
- }) => !(!(ae(t).length > 0) || !e || G()), bi = (e) => e === "react" || e === "reactNative", gi = F === "angular", lt = bi(F), yi = () => `
4065
+ }) => !(!(ae(t).length > 0) || !e || G()), gi = (e) => e === "react" || e === "reactNative", bi = F === "angular", lt = gi(F), yi = () => `
4050
4066
  window.${rt} = ${mi}
4051
4067
  window.${ot} = ${fi}
4052
4068
  `, pi = (e, t) => `
4053
4069
  window.${rt}(
4054
- "${t}",${JSON.stringify(e)}, ${lt}, ${gi}
4070
+ "${t}",${JSON.stringify(e)}, ${lt}, ${bi}
4055
4071
  )`, vi = ({
4056
4072
  contentId: e,
4057
4073
  variationId: t
@@ -4153,17 +4169,17 @@ font-weight: ${l};
4153
4169
  }
4154
4170
  `, Ri = (e) => e ? "" : Ei, Pi = (e) => `variant-${e}`;
4155
4171
  function Vi(e) {
4156
- var H, q, p;
4172
+ var H, q, y;
4157
4173
  const t = z(null);
4158
4174
  k(() => !1), k(
4159
4175
  () => e.builderContextSignal
4160
4176
  );
4161
4177
  const [n, i] = k(() => null), [a, r] = k(() => "");
4162
- function o(v, V) {
4178
+ function o(x, V) {
4163
4179
  var $, R;
4164
4180
  const A = {
4165
4181
  ...e.builderContextSignal.rootState,
4166
- ...v
4182
+ ...x
4167
4183
  };
4168
4184
  e.builderContextSignal.rootSetState ? (R = ($ = e.builderContextSignal).rootSetState) == null || R.call($, A) : e.setBuilderContextSignal((P) => ({
4169
4185
  ...P,
@@ -4173,19 +4189,19 @@ function Vi(e) {
4173
4189
  rootState: A
4174
4190
  }));
4175
4191
  }
4176
- function l(v, V) {
4192
+ function l(x, V) {
4177
4193
  var $, R, P, I, N;
4178
4194
  const A = {
4179
4195
  ...e.builderContextSignal.content,
4180
- ...v,
4196
+ ...x,
4181
4197
  data: {
4182
4198
  ...($ = e.builderContextSignal.content) == null ? void 0 : $.data,
4183
- ...v == null ? void 0 : v.data
4199
+ ...x == null ? void 0 : x.data
4184
4200
  },
4185
4201
  meta: {
4186
4202
  ...(R = e.builderContextSignal.content) == null ? void 0 : R.meta,
4187
- ...v == null ? void 0 : v.meta,
4188
- 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)
4189
4205
  }
4190
4206
  };
4191
4207
  e.setBuilderContextSignal((C) => ({
@@ -4202,7 +4218,7 @@ function Vi(e) {
4202
4218
  const [d, h] = k(
4203
4219
  () => e.contentWrapper || "div"
4204
4220
  );
4205
- function g(v) {
4221
+ function b(x) {
4206
4222
  return dt({
4207
4223
  model: e.model,
4208
4224
  trustedHosts: e.trustedHosts,
@@ -4226,10 +4242,10 @@ function Vi(e) {
4226
4242
  o(V);
4227
4243
  }
4228
4244
  }
4229
- })(v);
4245
+ })(x);
4230
4246
  }
4231
- const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, b] = k(() => !1);
4232
- function S(v) {
4247
+ const [u, S] = k(() => ({})), [m, g] = k(() => ({})), [p, f] = k(() => !1);
4248
+ function v(x) {
4233
4249
  var V, A;
4234
4250
  if (e.builderContextSignal.content) {
4235
4251
  const $ = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
@@ -4240,24 +4256,24 @@ function Vi(e) {
4240
4256
  contentId: R,
4241
4257
  apiKey: e.apiKey,
4242
4258
  variationId: $ !== R ? $ : void 0,
4243
- ...ki(v),
4244
- unique: !y
4259
+ ...ki(x),
4260
+ unique: !p
4245
4261
  });
4246
4262
  }
4247
- y || b(!0);
4263
+ p || f(!0);
4248
4264
  }
4249
4265
  function T() {
4250
4266
  var V, A, $;
4251
- const v = ($ = (A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.httpRequests) != null ? $ : {};
4252
- 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(
4253
4269
  ([R, P]) => {
4254
4270
  if (!P)
4255
4271
  return;
4256
4272
  const I = typeof P == "object" && P["@type"] === "@builder.io/core:Request";
4257
- if (f[R] || u[R] && !U())
4273
+ if (m[R] || u[R] && !U())
4258
4274
  return;
4259
4275
  const N = I ? P.request.url : P;
4260
- f[R] = !0;
4276
+ m[R] = !0;
4261
4277
  const C = N.replace(
4262
4278
  /{{([^}]+)}}/g,
4263
4279
  (O, j) => String(
@@ -4295,7 +4311,7 @@ function Vi(e) {
4295
4311
  O
4296
4312
  );
4297
4313
  }).finally(() => {
4298
- f[R] = !1;
4314
+ m[R] = !1;
4299
4315
  });
4300
4316
  }
4301
4317
  );
@@ -4317,9 +4333,9 @@ function Vi(e) {
4317
4333
  }
4318
4334
  const _ = z(!1);
4319
4335
  return _.current || (T(), E(), _.current = !0), B(() => {
4320
- var v, V, A, $, R;
4336
+ var x, V, A, $, R;
4321
4337
  if (G()) {
4322
- U() && !e.isNestedRender && (window.addEventListener("message", g), st({
4338
+ U() && !e.isNestedRender && (window.addEventListener("message", b), st({
4323
4339
  ...e.locale ? {
4324
4340
  locale: e.locale
4325
4341
  } : {},
@@ -4329,7 +4345,7 @@ function Vi(e) {
4329
4345
  ...e.trustedHosts ? {
4330
4346
  trustedHosts: e.trustedHosts
4331
4347
  } : {},
4332
- modelName: (v = e.model) != null ? v : "",
4348
+ modelName: (x = e.model) != null ? x : "",
4333
4349
  apiKey: e.apiKey
4334
4350
  }), Object.values(
4335
4351
  e.builderContextSignal.componentInfos
@@ -4395,7 +4411,7 @@ function Vi(e) {
4395
4411
  }), r(e.locale);
4396
4412
  }
4397
4413
  }, [e.locale]), B(() => () => {
4398
- G() && (window.removeEventListener("message", g), window.removeEventListener(
4414
+ G() && (window.removeEventListener("message", b), window.removeEventListener(
4399
4415
  "builder:component:stateChangeListenerActivated",
4400
4416
  E
4401
4417
  ));
@@ -4403,11 +4419,11 @@ function Vi(e) {
4403
4419
  d,
4404
4420
  {
4405
4421
  ref: t,
4406
- onClick: (v) => S(v),
4422
+ onClick: (x) => v(x),
4407
4423
  "builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
4408
4424
  "builder-model": e.model,
4409
4425
  className: Pi(
4410
- ((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)
4411
4427
  ),
4412
4428
  style: {
4413
4429
  display: !e.builderContextSignal.content && De() ? "none" : void 0
@@ -4469,22 +4485,22 @@ const Bi = ({
4469
4485
  meta: e == null ? void 0 : e.meta
4470
4486
  } : void 0;
4471
4487
  function Fe(e) {
4472
- var d, h, g, u, x, f, m, y, b;
4488
+ var d, h, b, u, S, m, g, p, f;
4473
4489
  const [t, n] = k(
4474
4490
  () => {
4475
- var S, T;
4491
+ var v, T;
4476
4492
  return vi({
4477
4493
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4478
- variationId: (S = e.content) == null ? void 0 : S.testVariationId,
4494
+ variationId: (v = e.content) == null ? void 0 : v.testVariationId,
4479
4495
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4480
4496
  contentId: (T = e.content) == null ? void 0 : T.id
4481
4497
  });
4482
4498
  }
4483
4499
  );
4484
- function i(S) {
4500
+ function i(v) {
4485
4501
  l((T) => ({
4486
4502
  ...T,
4487
- rootState: S
4503
+ rootState: v
4488
4504
  }));
4489
4505
  }
4490
4506
  const [a, r] = k(
@@ -4492,8 +4508,8 @@ function Fe(e) {
4492
4508
  ...Ne(),
4493
4509
  ...e.customComponents || []
4494
4510
  ].reduce(
4495
- (S, { component: T, ...E }) => ({
4496
- ...S,
4511
+ (v, { component: T, ...E }) => ({
4512
+ ...v,
4497
4513
  [E.name]: {
4498
4514
  component: T,
4499
4515
  ...we(E)
@@ -4521,8 +4537,8 @@ function Fe(e) {
4521
4537
  ...Ne(),
4522
4538
  ...e.customComponents || []
4523
4539
  ].reduce(
4524
- (S, { component: T, ...E }) => ({
4525
- ...S,
4540
+ (v, { component: T, ...E }) => ({
4541
+ ...v,
4526
4542
  [E.name]: we(E)
4527
4543
  }),
4528
4544
  {}
@@ -4537,9 +4553,9 @@ function Fe(e) {
4537
4553
  e.apiKey || ee.error(
4538
4554
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4539
4555
  );
4540
- const S = (h = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
4541
- S && Q({
4542
- 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,
4543
4559
  context: e.context || {},
4544
4560
  localState: void 0,
4545
4561
  rootState: o.rootState,
@@ -4590,15 +4606,15 @@ function Fe(e) {
4590
4606
  {
4591
4607
  nonce: e.nonce || "",
4592
4608
  isNestedRender: e.isNestedRender,
4593
- contentId: (g = o.content) == null ? void 0 : g.id,
4594
- cssCode: (x = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : x.cssCode,
4595
- customFonts: (m = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
4609
+ contentId: (b = o.content) == null ? void 0 : b.id,
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
4596
4612
  }
4597
4613
  ),
4598
4614
  /* @__PURE__ */ s(
4599
4615
  M,
4600
4616
  {
4601
- blocks: (b = (y = o.content) == null ? void 0 : y.data) == null ? void 0 : b.blocks,
4617
+ blocks: (f = (p = o.content) == null ? void 0 : p.data) == null ? void 0 : f.blocks,
4602
4618
  context: o,
4603
4619
  registeredComponents: a,
4604
4620
  linkComponent: e.linkComponent
@@ -4742,7 +4758,7 @@ const Wi = async ({
4742
4758
  (e != null && e.apiKey))
4743
4759
  return Oe({
4744
4760
  model: t.model,
4745
- apiKey: e.apiKey,
4761
+ apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
4746
4762
  apiVersion: e.apiVersion,
4747
4763
  ...(t == null ? void 0 : t.entry) && {
4748
4764
  query: {
@@ -4754,7 +4770,7 @@ const Wi = async ({
4754
4770
  });
4755
4771
  };
4756
4772
  function Di(e) {
4757
- var h, g, u, x, f;
4773
+ var h, b, u, S, m, g, p;
4758
4774
  function t() {
4759
4775
  return "div";
4760
4776
  }
@@ -4765,29 +4781,29 @@ function Di(e) {
4765
4781
  return Object.values(e.builderComponents);
4766
4782
  }
4767
4783
  function a() {
4768
- var m, y;
4784
+ var f, v;
4769
4785
  return [
4770
4786
  e.attributes[K()],
4771
4787
  "builder-symbol",
4772
- (m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
4773
- (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
4774
4790
  ].filter(Boolean).join(" ");
4775
4791
  }
4776
4792
  const [r, o] = k(() => {
4777
- var m;
4778
- return (m = e.symbol) == null ? void 0 : m.content;
4793
+ var f;
4794
+ return (f = e.symbol) == null ? void 0 : f.content;
4779
4795
  }), [l, c] = k(() => {
4780
- var m;
4781
- return (m = e.symbol) == null ? void 0 : m.entry;
4796
+ var f;
4797
+ return (f = e.symbol) == null ? void 0 : f.entry;
4782
4798
  });
4783
4799
  function d() {
4784
- var m;
4785
- 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({
4786
4802
  symbol: e.symbol,
4787
4803
  builderContextValue: e.builderContext
4788
- }).then((y) => {
4789
- var b;
4790
- y && (o(y), c((b = e.symbol) == null ? void 0 : b.entry));
4804
+ }).then((v) => {
4805
+ var T;
4806
+ v && (o(v), c((T = e.symbol) == null ? void 0 : T.entry));
4791
4807
  });
4792
4808
  }
4793
4809
  return B(() => {
@@ -4799,19 +4815,19 @@ function Di(e) {
4799
4815
  nonce: e.builderContext.nonce,
4800
4816
  isNestedRender: !0,
4801
4817
  apiVersion: e.builderContext.apiVersion,
4802
- apiKey: e.builderContext.apiKey,
4818
+ apiKey: (h = e.symbol) != null && h.global && ((b = e.symbol) != null && b.ownerId) ? e.symbol.ownerId : e.builderContext.apiKey,
4803
4819
  context: {
4804
4820
  ...e.builderContext.context,
4805
- symbolId: (h = e.builderBlock) == null ? void 0 : h.id
4821
+ symbolId: (u = e.builderBlock) == null ? void 0 : u.id
4806
4822
  },
4807
4823
  customComponents: i(),
4808
4824
  data: {
4809
- ...(g = e.symbol) == null ? void 0 : g.data,
4825
+ ...(S = e.symbol) == null ? void 0 : S.data,
4810
4826
  ...e.builderContext.localState,
4811
- ...(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
4812
4828
  },
4813
4829
  canTrack: e.builderContext.canTrack,
4814
- 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 : "",
4815
4831
  content: r,
4816
4832
  linkComponent: e.builderLinkComponent,
4817
4833
  blocksWrapper: t(),
@@ -4827,7 +4843,7 @@ export {
4827
4843
  $i as Content,
4828
4844
  dn as Fragment,
4829
4845
  hn as Image,
4830
- bn as Section,
4846
+ gn as Section,
4831
4847
  Di as Symbol,
4832
4848
  Hn as Text,
4833
4849
  ui as Video,