@builder.io/sdk-react 2.0.2 → 2.0.5

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 (85) hide show
  1. package/lib/browser/blocks-exports.cjs +29 -29
  2. package/lib/browser/blocks-exports.mjs +300 -278
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/server-entry-0c6c220c.js +688 -0
  8. package/lib/browser/server-entry-7e145817.cjs +2 -0
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/{accordion-4f96554c.cjs → accordion-72dab8ce.cjs} +1 -1
  12. package/lib/edge/{accordion-ca081054.js → accordion-99129d68.js} +1 -1
  13. package/lib/edge/blocks-426e0c44.js +808 -0
  14. package/lib/edge/blocks-53ae1b87.cjs +12 -0
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-41169061.js → button-778062cd.js} +2 -2
  18. package/lib/edge/{button-5d140f8e.cjs → button-967d0268.cjs} +1 -1
  19. package/lib/edge/{columns-f8916a18.js → columns-3a8c4d3f.js} +53 -51
  20. package/lib/edge/columns-3b921658.cjs +28 -0
  21. package/lib/edge/{content-variants-71ee0c76.js → content-variants-15d191de.js} +28 -26
  22. package/lib/edge/content-variants-4b8718f8.cjs +134 -0
  23. package/lib/edge/evaluate-26c0fdb7.js +2615 -0
  24. package/lib/edge/evaluate-c0eeb4f8.cjs +21 -0
  25. package/lib/edge/form-9d9dce5d.cjs +1 -0
  26. package/lib/edge/{form-ac2f2a0e.js → form-ccb0b912.js} +8 -7
  27. package/lib/edge/{get-class-prop-name-a677d7a5.js → get-class-prop-name-0a91c3bd.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-a9b4959e.cjs → get-class-prop-name-eae60eae.cjs} +1 -1
  29. package/lib/edge/{image-e3fcd611.js → image-6a074aab.js} +27 -25
  30. package/lib/edge/image-eebfcbac.cjs +17 -0
  31. package/lib/edge/{img-b91cb4fd.cjs → img-183de27d.cjs} +1 -1
  32. package/lib/edge/{img-8fc26395.js → img-75751c89.js} +1 -1
  33. package/lib/edge/index.cjs +1 -1
  34. package/lib/edge/index.mjs +1 -1
  35. package/lib/edge/init.cjs +1 -1
  36. package/lib/edge/init.mjs +1 -1
  37. package/lib/edge/{input-549f090e.js → input-27972020.js} +1 -1
  38. package/lib/edge/{input-ec7c695a.cjs → input-fd18a67d.cjs} +1 -1
  39. package/lib/edge/{select-6a5a28ac.js → select-60ff549c.js} +1 -1
  40. package/lib/edge/{select-3ffa9294.cjs → select-6ea0d59f.cjs} +1 -1
  41. package/lib/edge/server-entry-4133a544.cjs +2 -0
  42. package/lib/edge/server-entry-feff6177.js +689 -0
  43. package/lib/edge/server-entry.cjs +1 -1
  44. package/lib/edge/server-entry.mjs +1 -1
  45. package/lib/edge/{slot-40de071b.js → slot-2347377e.js} +12 -11
  46. package/lib/edge/slot-a4509cae.cjs +1 -0
  47. package/lib/edge/{symbol-76e76298.cjs → symbol-98650b06.cjs} +1 -1
  48. package/lib/edge/{symbol-e6515a5f.js → symbol-dcef0d8e.js} +2 -2
  49. package/lib/edge/{tabs-b75be82d.js → tabs-0784574b.js} +10 -9
  50. package/lib/edge/tabs-4c131e17.cjs +1 -0
  51. package/lib/edge/text-1c1986aa.cjs +1 -0
  52. package/lib/edge/text-6f7cbc35.js +38 -0
  53. package/lib/node/blocks-exports.cjs +16 -16
  54. package/lib/node/blocks-exports.mjs +255 -233
  55. package/lib/node/index.cjs +1 -1
  56. package/lib/node/index.mjs +2 -2
  57. package/lib/node/init.cjs +1 -1
  58. package/lib/node/init.mjs +2 -2
  59. package/lib/node/{node-runtime-0e37d6f7.cjs → node-runtime-4978bc21.cjs} +2 -2
  60. package/lib/node/{node-runtime-0f3a5df1.js → node-runtime-ce5c71e5.js} +3 -2
  61. package/lib/node/server-entry-0c6c220c.js +688 -0
  62. package/lib/node/server-entry-7e145817.cjs +2 -0
  63. package/lib/node/server-entry.cjs +1 -1
  64. package/lib/node/server-entry.mjs +1 -1
  65. package/package.json +1 -1
  66. package/types/blocks/image/image.types.d.ts +2 -0
  67. package/types/blocks/symbol/symbol.types.d.ts +1 -0
  68. package/types/constants/sdk-version.d.ts +1 -1
  69. package/types/functions/register-component.d.ts +2 -2
  70. package/lib/browser/server-entry-419c051e.cjs +0 -2
  71. package/lib/browser/server-entry-825b4408.js +0 -695
  72. package/lib/edge/blocks-078044bc.cjs +0 -32
  73. package/lib/edge/blocks-f55c7d3e.js +0 -3418
  74. package/lib/edge/columns-354bf349.cjs +0 -28
  75. package/lib/edge/content-variants-89a9389a.cjs +0 -134
  76. package/lib/edge/form-f2d2c2bf.cjs +0 -1
  77. package/lib/edge/image-344ddbb0.cjs +0 -17
  78. package/lib/edge/server-entry-966ac144.cjs +0 -2
  79. package/lib/edge/server-entry-d2020acf.js +0 -695
  80. package/lib/edge/slot-8b27e15e.cjs +0 -1
  81. package/lib/edge/tabs-9c5af0ec.cjs +0 -1
  82. package/lib/edge/text-5915f038.js +0 -17
  83. package/lib/edge/text-e6dbb721.cjs +0 -1
  84. package/lib/node/server-entry-5ebd1c9b.js +0 -695
  85. package/lib/node/server-entry-8002325b.cjs +0 -2
@@ -2,15 +2,15 @@
2
2
  var He = Object.defineProperty;
3
3
  var qe = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var ie = (e, t, n) => (qe(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as s, Fragment as R, jsxs as P } from "react/jsx-runtime";
6
- import { TARGET as K, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as Ke, setupBrowserForEditing as ze, createRegisterComponentMessage as _e, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-5ebd1c9b.js";
7
- import { createContext as we, useState as T, useEffect as V, useContext as be, useRef as ee, createElement as Re } from "react";
8
- import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Ee } from "./node-runtime-0f3a5df1.js";
5
+ import { jsx as s, Fragment as R, jsxs as V } from "react/jsx-runtime";
6
+ import { TARGET as K, checkIsDefined as Y, logger as Z, isBrowser as G, isEditing as $, registerInsertMenu as Ke, setupBrowserForEditing as ze, createRegisterComponentMessage as _e, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-0c6c220c.js";
7
+ import { createContext as we, useState as T, useEffect as P, useContext as be, useRef as ee, createElement as Re } from "react";
8
+ import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, fastClone as de, set as Ee } from "./node-runtime-ce5c71e5.js";
9
9
  const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
10
10
  function ue(e) {
11
11
  return /* @__PURE__ */ s(R, { children: it(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
12
12
  }
13
- const H = () => {
13
+ const q = () => {
14
14
  switch (K) {
15
15
  case "react":
16
16
  case "reactNative":
@@ -28,7 +28,7 @@ function ot(e) {
28
28
  function t() {
29
29
  return {
30
30
  ...e.attributes,
31
- [H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
31
+ [q()]: `${e.link ? "" : "builder-button"} ${e.attributes[q()] || ""}`,
32
32
  ...e.link ? {
33
33
  href: e.link,
34
34
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -146,7 +146,7 @@ const st = () => {
146
146
  };
147
147
  ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
148
148
  let M = L;
149
- function q({
149
+ function U({
150
150
  code: e,
151
151
  context: t,
152
152
  localState: n,
@@ -170,19 +170,19 @@ function q({
170
170
  localState: n
171
171
  };
172
172
  if (r) {
173
- const u = M.getCacheKey(c), f = M.getCachedValue(u);
173
+ const d = M.getCacheKey(c), f = M.getCachedValue(d);
174
174
  if (f)
175
175
  return f.value;
176
176
  }
177
177
  try {
178
- const u = ct(c);
178
+ const d = ct(c);
179
179
  if (r) {
180
180
  const f = M.getCacheKey(c);
181
- M.setCachedValue(f, u);
181
+ M.setCachedValue(f, d);
182
182
  }
183
- return u;
184
- } catch (u) {
185
- Z.error("Failed code evaluation: " + u.message, {
183
+ return d;
184
+ } catch (d) {
185
+ Z.error("Failed code evaluation: " + d.message, {
186
186
  code: e
187
187
  });
188
188
  return;
@@ -207,7 +207,7 @@ const dt = ({
207
207
  }
208
208
  };
209
209
  for (const r in e.bindings) {
210
- const c = e.bindings[r], u = q({
210
+ const c = e.bindings[r], d = U({
211
211
  code: c,
212
212
  localState: n,
213
213
  rootState: i,
@@ -215,7 +215,7 @@ const dt = ({
215
215
  context: t,
216
216
  enableCache: !0
217
217
  });
218
- Ee(a, r, u);
218
+ Ee(a, r, d);
219
219
  }
220
220
  return a;
221
221
  };
@@ -243,13 +243,13 @@ function ut(e, t, n = {}) {
243
243
  r = n.leading === !1 ? 0 : Date.now(), a = null, l = e.apply(i, o), a || (i = o = null);
244
244
  };
245
245
  return function() {
246
- const u = Date.now();
247
- !r && n.leading === !1 && (r = u);
248
- const f = t - (u - r);
249
- return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), r = u, l = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), l;
246
+ const d = Date.now();
247
+ !r && n.leading === !1 && (r = d);
248
+ const f = t - (d - r);
249
+ return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), r = d, l = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), l;
250
250
  };
251
251
  }
252
- function U(e, ...t) {
252
+ function H(e, ...t) {
253
253
  const n = Object(e);
254
254
  for (let i = 1; i < arguments.length; i++) {
255
255
  const o = arguments[i];
@@ -293,8 +293,8 @@ function Ne(e) {
293
293
  return;
294
294
  }
295
295
  Array.from(t).forEach((n) => {
296
- Ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
297
- n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
296
+ Ae(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
297
+ n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
298
298
  n.style.transition = "", n.style.transitionDelay = "";
299
299
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
300
300
  });
@@ -311,23 +311,23 @@ function ht(e) {
311
311
  let i = !1, o = !1;
312
312
  function l() {
313
313
  !i && r(n) ? (i = !0, o = !0, setTimeout(() => {
314
- U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
314
+ H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
315
315
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
316
316
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
317
- })) : e.repeat && i && !o && !r(n) && (i = !1, U(n.style, e.steps[0].styles));
317
+ })) : e.repeat && i && !o && !r(n) && (i = !1, H(n.style, e.steps[0].styles));
318
318
  }
319
319
  const a = ut(l, 200, {
320
320
  leading: !1
321
321
  });
322
322
  function r(f) {
323
- const d = f.getBoundingClientRect(), m = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * m;
324
- return d.bottom > y && d.top < m - y;
323
+ const u = f.getBoundingClientRect(), m = window.innerHeight, y = (e.thresholdPercent || 0) / 100 * m;
324
+ return u.bottom > y && u.top < m - y;
325
325
  }
326
326
  const c = e.steps[0].styles;
327
- function u() {
328
- U(n.style, c);
327
+ function d() {
328
+ H(n.style, c);
329
329
  }
330
- u(), setTimeout(() => {
330
+ d(), setTimeout(() => {
331
331
  n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
332
332
  }), document.addEventListener("scroll", a, {
333
333
  capture: !0,
@@ -410,7 +410,7 @@ const yt = ({
410
410
  } = e;
411
411
  if (!(n != null && n.collection))
412
412
  return;
413
- const o = q({
413
+ const o = U({
414
414
  code: n.collection,
415
415
  localState: t.localState,
416
416
  rootState: t.rootState,
@@ -421,15 +421,15 @@ const yt = ({
421
421
  if (!Array.isArray(o))
422
422
  return;
423
423
  const l = n.collection.split(".").pop(), a = n.itemName || (l ? l + "Item" : "item");
424
- return o.map((c, u) => ({
424
+ return o.map((c, d) => ({
425
425
  context: {
426
426
  ...t,
427
427
  localState: {
428
428
  ...t.localState,
429
- $index: u,
429
+ $index: d,
430
430
  $item: c,
431
431
  [a]: c,
432
- [`$${a}Index`]: u
432
+ [`$${a}Index`]: d
433
433
  }
434
434
  },
435
435
  block: i
@@ -530,10 +530,10 @@ function Tt(e) {
530
530
  shouldEvaluateBindings: !0
531
531
  }), o = i.responsiveStyles, l = e.context.content, a = De(
532
532
  ((p = l == null ? void 0 : l.meta) == null ? void 0 : p.breakpoints) || {}
533
- ), r = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, u = o == null ? void 0 : o.small, f = i.id;
533
+ ), r = o == null ? void 0 : o.large, c = o == null ? void 0 : o.medium, d = o == null ? void 0 : o.small, f = i.id;
534
534
  if (!f)
535
535
  return "";
536
- const d = r ? _({
536
+ const u = r ? _({
537
537
  className: f,
538
538
  styles: r
539
539
  }) : "", m = c ? _({
@@ -543,9 +543,9 @@ function Tt(e) {
543
543
  "medium",
544
544
  a
545
545
  )
546
- }) : "", g = u ? _({
546
+ }) : "", g = d ? _({
547
547
  className: f,
548
- styles: u,
548
+ styles: d,
549
549
  mediaQuery: pe(
550
550
  "small",
551
551
  a
@@ -566,7 +566,7 @@ function Tt(e) {
566
566
  }) || "";
567
567
  }
568
568
  return [
569
- d,
569
+ u,
570
570
  m,
571
571
  g,
572
572
  C
@@ -584,7 +584,7 @@ function Tt(e) {
584
584
  function It(e) {
585
585
  return e.charAt(0).toUpperCase() + e.slice(1);
586
586
  }
587
- const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => q({
587
+ const wt = (e) => `on${It(e)}`, Rt = (e, t) => (n) => U({
588
588
  code: e,
589
589
  context: t.context,
590
590
  localState: t.localState,
@@ -636,7 +636,7 @@ function fe({
636
636
  block: e,
637
637
  context: t
638
638
  }),
639
- [H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
639
+ [q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
640
640
  };
641
641
  return Et({
642
642
  properties: n,
@@ -757,7 +757,7 @@ function Nt(e) {
757
757
  ) });
758
758
  }
759
759
  function z(e) {
760
- var c, u, f;
760
+ var c, d, f;
761
761
  function t() {
762
762
  return yt({
763
763
  block: e.block,
@@ -772,8 +772,8 @@ function z(e) {
772
772
  });
773
773
  }
774
774
  function i() {
775
- var d;
776
- return (d = e.block.repeat) != null && d.collection ? e.block : X({
775
+ var u;
776
+ return (u = e.block.repeat) != null && u.collection ? e.block : X({
777
777
  block: e.block,
778
778
  localState: e.context.localState,
779
779
  rootState: e.context.rootState,
@@ -790,17 +790,17 @@ function z(e) {
790
790
  var g, y;
791
791
  if ((g = e.block.repeat) != null && g.collection)
792
792
  return !!((y = n == null ? void 0 : n()) != null && y.length);
793
- const d = "hide" in i() ? i().hide : !1;
794
- return ("show" in i() ? i().show : !0) && !d;
793
+ const u = "hide" in i() ? i().hide : !1;
794
+ return ("show" in i() ? i().show : !0) && !u;
795
795
  }
796
796
  function a() {
797
797
  var m, g;
798
798
  return !((m = t == null ? void 0 : t()) != null && m.component) && !n() ? (g = i().children) != null ? g : [] : [];
799
799
  }
800
800
  function r() {
801
- var d, m, g, y;
801
+ var u, m, g, y;
802
802
  return {
803
- blockChildren: (d = i().children) != null ? d : [],
803
+ blockChildren: (u = i().children) != null ? u : [],
804
804
  componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
805
805
  componentOptions: {
806
806
  ...at(i()),
@@ -820,15 +820,15 @@ function z(e) {
820
820
  isInteractive: !((y = t == null ? void 0 : t()) != null && y.isRSC)
821
821
  };
822
822
  }
823
- return V(() => {
824
- const d = i().id, m = i().animations;
825
- m && d && mt(
823
+ return P(() => {
824
+ const u = i().id, m = i().animations;
825
+ m && u && mt(
826
826
  m.map((g) => ({
827
827
  ...g,
828
- elementId: d
828
+ elementId: u
829
829
  }))
830
830
  );
831
- }, []), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ P(R, { children: [
831
+ }, []), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ V(R, { children: [
832
832
  /* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
833
833
  (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
834
834
  ye,
@@ -843,16 +843,16 @@ function z(e) {
843
843
  includeBlockProps: r().includeBlockProps,
844
844
  isInteractive: r().isInteractive
845
845
  }
846
- ) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
846
+ ) }) : /* @__PURE__ */ s(R, { children: n() ? /* @__PURE__ */ s(R, { children: (f = n()) == null ? void 0 : f.map((u, m) => /* @__PURE__ */ s(
847
847
  Nt,
848
848
  {
849
- repeatContext: d.context,
850
- block: d.block,
849
+ repeatContext: u.context,
850
+ block: u.block,
851
851
  registeredComponents: e.registeredComponents,
852
852
  linkComponent: e.linkComponent
853
853
  },
854
854
  m
855
- )) }) : /* @__PURE__ */ P(
855
+ )) }) : /* @__PURE__ */ V(
856
856
  Pt,
857
857
  {
858
858
  Wrapper: o(),
@@ -873,15 +873,15 @@ function z(e) {
873
873
  isInteractive: r().isInteractive
874
874
  }
875
875
  ),
876
- (u = a()) == null ? void 0 : u.map((d) => /* @__PURE__ */ s(
876
+ (d = a()) == null ? void 0 : d.map((u) => /* @__PURE__ */ s(
877
877
  z,
878
878
  {
879
- block: d,
879
+ block: u,
880
880
  registeredComponents: e.registeredComponents,
881
881
  linkComponent: e.linkComponent,
882
882
  context: e.context
883
883
  },
884
- d.id
884
+ u.id
885
885
  ))
886
886
  ]
887
887
  }
@@ -919,7 +919,7 @@ function Wt(e) {
919
919
  "*"
920
920
  ));
921
921
  }
922
- return /* @__PURE__ */ P(R, { children: [
922
+ return /* @__PURE__ */ V(R, { children: [
923
923
  /* @__PURE__ */ s(
924
924
  e.BlocksWrapper,
925
925
  {
@@ -974,28 +974,28 @@ function $t(e) {
974
974
  ), [i, o] = T(() => e.columns || []), [l, a] = T(
975
975
  () => e.stackColumnsAt || "tablet"
976
976
  );
977
- function r(S) {
978
- return S.link ? e.builderLinkComponent || "a" : "div";
977
+ function r(x) {
978
+ return x.link ? e.builderLinkComponent || "a" : "div";
979
979
  }
980
- function c(S) {
980
+ function c(x) {
981
981
  var w;
982
- return ((w = i[S]) == null ? void 0 : w.width) || 100 / i.length;
982
+ return ((w = i[x]) == null ? void 0 : w.width) || 100 / i.length;
983
983
  }
984
- function u(S) {
985
- const w = c(S), N = t * (i.length - 1) * (w / 100);
984
+ function d(x) {
985
+ const w = c(x), N = t * (i.length - 1) * (w / 100);
986
986
  return `calc(${w}% - ${N}px)`;
987
987
  }
988
988
  function f({
989
- stackedStyle: S,
989
+ stackedStyle: x,
990
990
  desktopStyle: w
991
991
  }) {
992
- return l === "tablet" ? S : w;
992
+ return l === "tablet" ? x : w;
993
993
  }
994
- function d({
995
- stackedStyle: S,
994
+ function u({
995
+ stackedStyle: x,
996
996
  desktopStyle: w
997
997
  }) {
998
- return l === "never" ? w : S;
998
+ return l === "never" ? w : x;
999
999
  }
1000
1000
  const [m, g] = T(
1001
1001
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
@@ -1009,8 +1009,8 @@ function $t(e) {
1009
1009
  })
1010
1010
  };
1011
1011
  }
1012
- function C(S) {
1013
- const w = S === 0 ? 0 : t, N = u(S), b = `${w}px`, h = "100%", x = 0;
1012
+ function C(x) {
1013
+ const w = x === 0 ? 0 : t, N = d(x), b = `${w}px`, h = "100%", v = 0;
1014
1014
  return {
1015
1015
  ...{
1016
1016
  display: "flex",
@@ -1019,12 +1019,12 @@ function $t(e) {
1019
1019
  },
1020
1020
  width: N,
1021
1021
  ["marginLeft"]: b,
1022
- "--column-width-mobile": d({
1022
+ "--column-width-mobile": u({
1023
1023
  stackedStyle: h,
1024
1024
  desktopStyle: N
1025
1025
  }),
1026
- "--column-margin-left-mobile": d({
1027
- stackedStyle: x,
1026
+ "--column-margin-left-mobile": u({
1027
+ stackedStyle: v,
1028
1028
  desktopStyle: b
1029
1029
  }),
1030
1030
  "--column-width-tablet": f({
@@ -1032,18 +1032,19 @@ function $t(e) {
1032
1032
  desktopStyle: N
1033
1033
  }),
1034
1034
  "--column-margin-left-tablet": f({
1035
- stackedStyle: x,
1035
+ stackedStyle: v,
1036
1036
  desktopStyle: b
1037
1037
  })
1038
1038
  };
1039
1039
  }
1040
- function p(S) {
1040
+ function p(x) {
1041
1041
  var N, b;
1042
1042
  return De(
1043
1043
  ((b = (N = e.builderContext.content) == null ? void 0 : N.meta) == null ? void 0 : b.breakpoints) || {}
1044
- )[S].max;
1044
+ )[x].max;
1045
1045
  }
1046
1046
  function B() {
1047
+ const x = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1047
1048
  return `
1048
1049
  @media (max-width: ${p("medium")}px) {
1049
1050
  .${e.builderBlock.id}-breakpoints {
@@ -1051,7 +1052,7 @@ function $t(e) {
1051
1052
  align-items: stretch;
1052
1053
  }
1053
1054
 
1054
- .${e.builderBlock.id}-breakpoints > .builder-column {
1055
+ ${x} {
1055
1056
  width: var(--column-width-tablet) !important;
1056
1057
  margin-left: var(--column-margin-left-tablet) !important;
1057
1058
  }
@@ -1063,27 +1064,27 @@ function $t(e) {
1063
1064
  align-items: stretch;
1064
1065
  }
1065
1066
 
1066
- .${e.builderBlock.id}-breakpoints > .builder-column {
1067
+ ${x} {
1067
1068
  width: var(--column-width-mobile) !important;
1068
1069
  margin-left: var(--column-margin-left-mobile) !important;
1069
1070
  }
1070
1071
  },
1071
1072
  `;
1072
1073
  }
1073
- function E(S, w) {
1074
+ function E(x, w) {
1074
1075
  return {
1075
- ...S.link ? {
1076
- href: S.link
1076
+ ...x.link ? {
1077
+ href: x.link
1077
1078
  } : {},
1078
- [H()]: "builder-column",
1079
+ [q()]: "builder-column",
1079
1080
  style: Fe(C(w))
1080
1081
  };
1081
1082
  }
1082
- return /* @__PURE__ */ P(R, { children: [
1083
- /* @__PURE__ */ P(
1083
+ return /* @__PURE__ */ V(R, { children: [
1084
+ /* @__PURE__ */ V(
1084
1085
  "div",
1085
1086
  {
1086
- className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-fe220f58",
1087
+ className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-34f576bb",
1087
1088
  style: y(),
1088
1089
  children: [
1089
1090
  /* @__PURE__ */ s(
@@ -1094,12 +1095,12 @@ function $t(e) {
1094
1095
  nonce: e.builderContext.nonce
1095
1096
  }
1096
1097
  ),
1097
- (O = e.columns) == null ? void 0 : O.map((S, w) => /* @__PURE__ */ s(
1098
+ (O = e.columns) == null ? void 0 : O.map((x, w) => /* @__PURE__ */ s(
1098
1099
  ue,
1099
1100
  {
1100
- TagName: r(S),
1101
+ TagName: r(x),
1101
1102
  actionAttributes: {},
1102
- attributes: E(S, w),
1103
+ attributes: E(x, w),
1103
1104
  children: /* @__PURE__ */ s(
1104
1105
  D,
1105
1106
  {
@@ -1111,7 +1112,7 @@ function $t(e) {
1111
1112
  context: e.builderContext,
1112
1113
  registeredComponents: e.builderComponents,
1113
1114
  linkComponent: e.builderLinkComponent,
1114
- blocks: S.blocks
1115
+ blocks: x.blocks
1115
1116
  }
1116
1117
  )
1117
1118
  },
@@ -1120,7 +1121,7 @@ function $t(e) {
1120
1121
  ]
1121
1122
  }
1122
1123
  ),
1123
- /* @__PURE__ */ s("style", { children: `.div-fe220f58 {
1124
+ /* @__PURE__ */ s("style", { children: `.div-34f576bb {
1124
1125
  display: flex;
1125
1126
  line-height: normal;
1126
1127
  }` })
@@ -1160,21 +1161,21 @@ function oe(e) {
1160
1161
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1161
1162
  }
1162
1163
  function jt(e) {
1163
- var o, l, a, r, c, u;
1164
+ var o, l, a, r, c, d;
1164
1165
  function t() {
1165
1166
  var m;
1166
- const d = e.image || e.src;
1167
- if (!d || // We can auto add srcset for cdn.builder.io and shopify
1167
+ const u = e.image || e.src;
1168
+ if (!u || // We can auto add srcset for cdn.builder.io and shopify
1168
1169
  // images, otherwise you can supply this prop manually
1169
- !(d.match(/builder\.io/) || d.match(/cdn\.shopify\.com/)))
1170
+ !(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
1170
1171
  return e.srcset;
1171
1172
  if (!e.noWebp) {
1172
1173
  if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1173
1174
  if (!e.srcset.includes(e.image.split("?")[0]))
1174
- return console.debug("Removed given srcset"), oe(d);
1175
+ return console.debug("Removed given srcset"), oe(u);
1175
1176
  } else if (e.image && !e.srcset)
1176
- return oe(d);
1177
- return oe(d);
1177
+ return oe(u);
1178
+ return oe(u);
1178
1179
  }
1179
1180
  }
1180
1181
  function n() {
@@ -1191,9 +1192,10 @@ function jt(e) {
1191
1192
  };
1192
1193
  return e.aspectRatio ? f : void 0;
1193
1194
  }
1194
- return /* @__PURE__ */ P(R, { children: [
1195
- /* @__PURE__ */ P(R, { children: [
1196
- /* @__PURE__ */ P("picture", { children: [
1195
+ return P(() => {
1196
+ }, []), /* @__PURE__ */ V(R, { children: [
1197
+ /* @__PURE__ */ V(R, { children: [
1198
+ /* @__PURE__ */ V("picture", { children: [
1197
1199
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1198
1200
  /* @__PURE__ */ s(
1199
1201
  "img",
@@ -1207,7 +1209,7 @@ function jt(e) {
1207
1209
  objectFit: e.backgroundSize || "cover",
1208
1210
  ...i()
1209
1211
  },
1210
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-56bbd606",
1212
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-2d6925f2",
1211
1213
  src: e.image,
1212
1214
  srcSet: t(),
1213
1215
  sizes: e.sizes
@@ -1217,23 +1219,23 @@ function jt(e) {
1217
1219
  e.aspectRatio && !((l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent) ? /* @__PURE__ */ s(
1218
1220
  "div",
1219
1221
  {
1220
- className: "builder-image-sizer div-56bbd606",
1222
+ className: "builder-image-sizer div-2d6925f2",
1221
1223
  style: {
1222
1224
  paddingTop: e.aspectRatio * 100 + "%"
1223
1225
  }
1224
1226
  }
1225
1227
  ) : null,
1226
1228
  (r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1227
- !e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-56bbd606-2", children: e.children }) : null
1229
+ !e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-2d6925f2-2", children: e.children }) : null
1228
1230
  ] }),
1229
- /* @__PURE__ */ s("style", { children: `.img-56bbd606 {
1231
+ /* @__PURE__ */ s("style", { children: `.img-2d6925f2 {
1230
1232
  opacity: 1;
1231
1233
  transition: opacity 0.2s ease-in-out;
1232
- }.div-56bbd606 {
1234
+ }.div-2d6925f2 {
1233
1235
  width: 100%;
1234
1236
  pointer-events: none;
1235
1237
  font-size: 0;
1236
- }.div-56bbd606-2 {
1238
+ }.div-2d6925f2-2 {
1237
1239
  display: flex;
1238
1240
  flex-direction: column;
1239
1241
  align-items: stretch;
@@ -1392,7 +1394,7 @@ const ae = {
1392
1394
  }
1393
1395
  }, ve = (e) => e.toString();
1394
1396
  function Ht(e) {
1395
- var d;
1397
+ var u;
1396
1398
  const [t, n] = T(() => []);
1397
1399
  function i() {
1398
1400
  return !!(e.grid || e.oneAtATime);
@@ -1455,7 +1457,7 @@ function Ht(e) {
1455
1457
  }
1456
1458
  return typeof m == "number" && (m = m + 1), m;
1457
1459
  }
1458
- function u() {
1460
+ function d() {
1459
1461
  const m = {
1460
1462
  order: typeof c() == "number" ? c() : void 0,
1461
1463
  ...e.grid && {
@@ -1469,7 +1471,7 @@ function Ht(e) {
1469
1471
  function f(m) {
1470
1472
  t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
1471
1473
  }
1472
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ P(R, { children: [
1474
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (u = e.items) == null ? void 0 : u.map((m, g) => /* @__PURE__ */ V(R, { children: [
1473
1475
  /* @__PURE__ */ s(
1474
1476
  "div",
1475
1477
  {
@@ -1498,7 +1500,7 @@ function Ht(e) {
1498
1500
  "div",
1499
1501
  {
1500
1502
  className: r(g),
1501
- style: u(),
1503
+ style: d(),
1502
1504
  children: /* @__PURE__ */ s(
1503
1505
  D,
1504
1506
  {
@@ -1784,15 +1786,15 @@ const qt = {
1784
1786
  onChange: (e) => {
1785
1787
  e.delete("srcset"), e.delete("noWebp");
1786
1788
  function n(a, r = 6e4) {
1787
- return new Promise((c, u) => {
1789
+ return new Promise((c, d) => {
1788
1790
  const f = document.createElement("img");
1789
- let d = !1;
1791
+ let u = !1;
1790
1792
  f.onload = () => {
1791
- d = !0, c(f);
1793
+ u = !0, c(f);
1792
1794
  }, f.addEventListener("error", (m) => {
1793
- console.warn("Image load failed", m.error), u(m.error);
1795
+ console.warn("Image load failed", m.error), d(m.error);
1794
1796
  }), f.src = a, setTimeout(() => {
1795
- d || u(new Error("Image load timed out"));
1797
+ u || d(new Error("Image load timed out"));
1796
1798
  }, r);
1797
1799
  });
1798
1800
  }
@@ -2142,7 +2144,7 @@ function Zt(e) {
2142
2144
  function o(a) {
2143
2145
  a === t && e.collapsible ? n(-1) : n(a);
2144
2146
  }
2145
- return /* @__PURE__ */ P("div", { children: [
2147
+ return /* @__PURE__ */ V("div", { children: [
2146
2148
  /* @__PURE__ */ s(
2147
2149
  "div",
2148
2150
  {
@@ -2192,7 +2194,8 @@ function Zt(e) {
2192
2194
  }
2193
2195
  const en = {
2194
2196
  shouldReceiveBuilderProps: {
2195
- builderBlock: !1
2197
+ builderBlock: !1,
2198
+ builderContext: !0
2196
2199
  },
2197
2200
  name: "Text",
2198
2201
  static: !0,
@@ -2213,12 +2216,31 @@ const en = {
2213
2216
  }
2214
2217
  };
2215
2218
  function tn(e) {
2216
- var t;
2219
+ function t() {
2220
+ var r;
2221
+ const n = e.builderContext, {
2222
+ context: i,
2223
+ localState: o,
2224
+ rootState: l,
2225
+ rootSetState: a
2226
+ } = n;
2227
+ return String(((r = e.text) == null ? void 0 : r.toString()) || "").replace(
2228
+ /{{([^}]+)}}/g,
2229
+ (c, d) => U({
2230
+ code: d,
2231
+ context: i,
2232
+ localState: o,
2233
+ rootState: l,
2234
+ rootSetState: a,
2235
+ enableCache: !1
2236
+ })
2237
+ );
2238
+ }
2217
2239
  return /* @__PURE__ */ s(
2218
2240
  "div",
2219
2241
  {
2220
2242
  className: "builder-text",
2221
- dangerouslySetInnerHTML: { __html: ((t = e.text) == null ? void 0 : t.toString()) || "" },
2243
+ dangerouslySetInnerHTML: { __html: t() },
2222
2244
  style: {
2223
2245
  outline: "none"
2224
2246
  }
@@ -2250,28 +2272,28 @@ const nn = {
2250
2272
  };
2251
2273
  function on(e) {
2252
2274
  const t = ee(null), [n, i] = T(() => []), [o, l] = T(() => []);
2253
- return V(() => {
2275
+ return P(() => {
2254
2276
  var r;
2255
2277
  if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
2256
2278
  return;
2257
2279
  const a = t.current.getElementsByTagName("script");
2258
2280
  for (let c = 0; c < a.length; c++) {
2259
- const u = a[c];
2260
- if (u.src) {
2261
- if (n.includes(u.src))
2281
+ const d = a[c];
2282
+ if (d.src) {
2283
+ if (n.includes(d.src))
2262
2284
  continue;
2263
- n.push(u.src);
2285
+ n.push(d.src);
2264
2286
  const f = document.createElement("script");
2265
- f.async = !0, f.src = u.src, document.head.appendChild(f);
2266
- } else if (!u.type || [
2287
+ f.async = !0, f.src = d.src, document.head.appendChild(f);
2288
+ } else if (!d.type || [
2267
2289
  "text/javascript",
2268
2290
  "application/javascript",
2269
2291
  "application/ecmascript"
2270
- ].includes(u.type)) {
2271
- if (o.includes(u.innerText))
2292
+ ].includes(d.type)) {
2293
+ if (o.includes(d.innerText))
2272
2294
  continue;
2273
2295
  try {
2274
- o.push(u.innerText), new Function(u.innerText)();
2296
+ o.push(d.innerText), new Function(d.innerText)();
2275
2297
  } catch (f) {
2276
2298
  console.warn("`CustomCode`: Error running script:", f);
2277
2299
  }
@@ -2307,22 +2329,22 @@ function sn(e) {
2307
2329
  function c() {
2308
2330
  if (!t.current || !t.current.getElementsByTagName)
2309
2331
  return;
2310
- const u = t.current.getElementsByTagName("script");
2311
- for (let f = 0; f < u.length; f++) {
2312
- const d = u[f];
2313
- if (d.src && !n.includes(d.src)) {
2314
- n.push(d.src);
2332
+ const d = t.current.getElementsByTagName("script");
2333
+ for (let f = 0; f < d.length; f++) {
2334
+ const u = d[f];
2335
+ if (u.src && !n.includes(u.src)) {
2336
+ n.push(u.src);
2315
2337
  const m = document.createElement("script");
2316
- m.async = !0, m.src = d.src, document.head.appendChild(m);
2317
- } else if (ln(d) && !o.includes(d.innerText))
2338
+ m.async = !0, m.src = u.src, document.head.appendChild(m);
2339
+ } else if (ln(u) && !o.includes(u.innerText))
2318
2340
  try {
2319
- o.push(d.innerText), new Function(d.innerText)();
2341
+ o.push(u.innerText), new Function(u.innerText)();
2320
2342
  } catch (m) {
2321
2343
  console.warn("`Embed`: Error running script:", m);
2322
2344
  }
2323
2345
  }
2324
2346
  }
2325
- return V(() => {
2347
+ return P(() => {
2326
2348
  t.current && !a && (r(!0), c());
2327
2349
  }, [t.current, a]), /* @__PURE__ */ s(
2328
2350
  "div",
@@ -2578,7 +2600,7 @@ const cn = {
2578
2600
  return i === void 0 || i === e ? n : i;
2579
2601
  };
2580
2602
  function fn(e) {
2581
- var d, m;
2603
+ var u, m;
2582
2604
  const t = ee(null), [n, i] = T(() => "unsubmitted"), [o, l] = T(() => null), [a, r] = T(() => "");
2583
2605
  function c(g) {
2584
2606
  var C, p;
@@ -2588,7 +2610,7 @@ function fn(e) {
2588
2610
  };
2589
2611
  e.builderContext.rootSetState ? (p = (C = e.builderContext).rootSetState) == null || p.call(C, y) : e.builderContext.rootState = y;
2590
2612
  }
2591
- function u() {
2613
+ function d() {
2592
2614
  return $() && e.previewState || n;
2593
2615
  }
2594
2616
  function f(g) {
@@ -2606,40 +2628,40 @@ function fn(e) {
2606
2628
  let E;
2607
2629
  const A = new FormData(p), O = Array.from(p.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2608
2630
  let h;
2609
- const x = b.name;
2631
+ const v = b.name;
2610
2632
  if (b instanceof HTMLInputElement)
2611
2633
  if (b.type === "radio") {
2612
2634
  if (b.checked)
2613
2635
  return h = b.name, {
2614
- key: x,
2636
+ key: v,
2615
2637
  value: h
2616
2638
  };
2617
2639
  } else if (b.type === "checkbox")
2618
2640
  h = b.checked;
2619
2641
  else if (b.type === "number" || b.type === "range") {
2620
- const v = b.valueAsNumber;
2621
- isNaN(v) || (h = v);
2642
+ const S = b.valueAsNumber;
2643
+ isNaN(S) || (h = S);
2622
2644
  } else
2623
2645
  b.type === "file" ? h = b.files : h = b.value;
2624
2646
  else
2625
2647
  h = b.value;
2626
2648
  return {
2627
- key: x,
2649
+ key: v,
2628
2650
  value: h
2629
2651
  };
2630
2652
  });
2631
- let S = e.contentType;
2632
- if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
2633
- (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (S = "multipart/form-data");
2634
- }), S !== "application/json")
2653
+ let x = e.contentType;
2654
+ if (e.sendSubmissionsTo === "email" && (x = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
2655
+ (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (x = "multipart/form-data");
2656
+ }), x !== "application/json")
2635
2657
  E = A;
2636
2658
  else {
2637
2659
  const b = {};
2638
- Array.from(O).forEach(({ value: h, key: x }) => {
2639
- Ee(b, x, h);
2660
+ Array.from(O).forEach(({ value: h, key: v }) => {
2661
+ Ee(b, v, h);
2640
2662
  }), E = JSON.stringify(b);
2641
2663
  }
2642
- S && S !== "multipart/form-data" && (y && ((C = e.action) != null && C.includes("zapier.com")) || (B["content-type"] = S));
2664
+ x && x !== "multipart/form-data" && (y && ((C = e.action) != null && C.includes("zapier.com")) || (B["content-type"] = x));
2643
2665
  const w = new CustomEvent("presubmit", { detail: { body: E } });
2644
2666
  if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2645
2667
  return;
@@ -2653,17 +2675,17 @@ function fn(e) {
2653
2675
  ).then(
2654
2676
  async (b) => {
2655
2677
  let h;
2656
- const x = b.headers.get("content-type");
2657
- if (x && x.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2658
- let v = mn(h, e.errorMessagePath);
2659
- v && (typeof v != "string" && (v = JSON.stringify(v)), r(v), c({ formErrorMessage: v }));
2678
+ const v = b.headers.get("content-type");
2679
+ if (v && v.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2680
+ let S = mn(h, e.errorMessagePath);
2681
+ S && (typeof S != "string" && (S = JSON.stringify(S)), r(S), c({ formErrorMessage: S }));
2660
2682
  }
2661
2683
  if (l(h), i(b.ok ? "success" : "error"), b.ok) {
2662
- const v = new CustomEvent("submit:success", {
2684
+ const S = new CustomEvent("submit:success", {
2663
2685
  detail: { res: b, body: h }
2664
2686
  });
2665
2687
  if (t.current) {
2666
- if (t.current.dispatchEvent(v), v.defaultPrevented)
2688
+ if (t.current.dispatchEvent(S), S.defaultPrevented)
2667
2689
  return;
2668
2690
  e.resetFormOnSubmit !== !1 && t.current.reset();
2669
2691
  }
@@ -2686,9 +2708,9 @@ function fn(e) {
2686
2708
  );
2687
2709
  }
2688
2710
  }
2689
- return /* @__PURE__ */ P(R, { children: [
2711
+ return /* @__PURE__ */ V(R, { children: [
2690
2712
  " ",
2691
- /* @__PURE__ */ P(
2713
+ /* @__PURE__ */ V(
2692
2714
  "form",
2693
2715
  {
2694
2716
  validate: e.validate,
@@ -2699,7 +2721,7 @@ function fn(e) {
2699
2721
  onSubmit: (g) => f(g),
2700
2722
  ...e.attributes,
2701
2723
  children: [
2702
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (d = e.builderBlock) == null ? void 0 : d.children) == null ? void 0 : m.map((g, y) => /* @__PURE__ */ s(
2724
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(R, { children: (m = (u = e.builderBlock) == null ? void 0 : u.children) == null ? void 0 : m.map((g, y) => /* @__PURE__ */ s(
2703
2725
  z,
2704
2726
  {
2705
2727
  block: g,
@@ -2709,7 +2731,7 @@ function fn(e) {
2709
2731
  },
2710
2732
  `form-block-${y}`
2711
2733
  )) }) : null,
2712
- u() === "error" ? /* @__PURE__ */ s(
2734
+ d() === "error" ? /* @__PURE__ */ s(
2713
2735
  D,
2714
2736
  {
2715
2737
  path: "errorMessage",
@@ -2717,7 +2739,7 @@ function fn(e) {
2717
2739
  context: e.builderContext
2718
2740
  }
2719
2741
  ) : null,
2720
- u() === "sending" ? /* @__PURE__ */ s(
2742
+ d() === "sending" ? /* @__PURE__ */ s(
2721
2743
  D,
2722
2744
  {
2723
2745
  path: "sendingMessage",
@@ -2725,8 +2747,8 @@ function fn(e) {
2725
2747
  context: e.builderContext
2726
2748
  }
2727
2749
  ) : null,
2728
- u() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2729
- u() === "success" ? /* @__PURE__ */ s(
2750
+ d() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-3a20f614", children: JSON.stringify(o, null, 2) }) : null,
2751
+ d() === "success" ? /* @__PURE__ */ s(
2730
2752
  D,
2731
2753
  {
2732
2754
  path: "successMessage",
@@ -3062,7 +3084,7 @@ const Tn = {
3062
3084
  }
3063
3085
  };
3064
3086
  function In(e) {
3065
- var i, o, l, a, r, c, u;
3087
+ var i, o, l, a, r, c, d;
3066
3088
  function t() {
3067
3089
  return {
3068
3090
  ...e.autoPlay === !0 ? {
@@ -3087,7 +3109,7 @@ function In(e) {
3087
3109
  ...t()
3088
3110
  };
3089
3111
  }
3090
- return /* @__PURE__ */ P(
3112
+ return /* @__PURE__ */ V(
3091
3113
  "div",
3092
3114
  {
3093
3115
  style: {
@@ -3141,7 +3163,7 @@ function In(e) {
3141
3163
  children: e.children
3142
3164
  }
3143
3165
  ) : null,
3144
- (u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
3166
+ (d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ s(
3145
3167
  "div",
3146
3168
  {
3147
3169
  style: {
@@ -3395,11 +3417,11 @@ font-weight: 400;
3395
3417
  for (const r in e.files) {
3396
3418
  if (!(String(Number(r)) === r))
3397
3419
  continue;
3398
- const u = e.files[r];
3399
- u && u !== i && (o += `
3420
+ const d = e.files[r];
3421
+ d && d !== i && (o += `
3400
3422
  @font-face {
3401
3423
  font-family: "${t}";
3402
- src: url('${u}') format('woff2');
3424
+ src: url('${d}') format('woff2');
3403
3425
  font-display: fallback;
3404
3426
  font-weight: ${r};
3405
3427
  }
@@ -3433,26 +3455,26 @@ font-weight: ${r};
3433
3455
  }
3434
3456
  `, Mn = (e) => e ? "" : jn, Un = (e) => `variant-${e}`;
3435
3457
  function Hn(e) {
3436
- var E, A, O, S, w, N, b;
3458
+ var E, A, O, x, w, N, b;
3437
3459
  const t = ee(null);
3438
3460
  function n(h) {
3439
- var v, k;
3440
- const x = {
3461
+ var S, k;
3462
+ const v = {
3441
3463
  ...e.builderContextSignal.rootState,
3442
3464
  ...h
3443
3465
  };
3444
- e.builderContextSignal.rootSetState ? (k = (v = e.builderContextSignal).rootSetState) == null || k.call(v, x) : e.setBuilderContextSignal((I) => ({
3466
+ e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, v) : e.setBuilderContextSignal((I) => ({
3445
3467
  ...I,
3446
- rootState: x
3468
+ rootState: v
3447
3469
  }));
3448
3470
  }
3449
3471
  function i(h) {
3450
- var v, k, I, W, j;
3451
- const x = {
3472
+ var S, k, I, W, j;
3473
+ const v = {
3452
3474
  ...e.builderContextSignal.content,
3453
3475
  ...h,
3454
3476
  data: {
3455
- ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
3477
+ ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
3456
3478
  ...h == null ? void 0 : h.data
3457
3479
  },
3458
3480
  meta: {
@@ -3463,7 +3485,7 @@ function Hn(e) {
3463
3485
  };
3464
3486
  e.setBuilderContextSignal((F) => ({
3465
3487
  ...F,
3466
- content: x
3488
+ content: v
3467
3489
  }));
3468
3490
  }
3469
3491
  function o() {
@@ -3480,28 +3502,28 @@ function Hn(e) {
3480
3502
  model: e.model,
3481
3503
  trustedHosts: e.trustedHosts,
3482
3504
  callbacks: {
3483
- configureSdk: (x) => {
3505
+ configureSdk: (v) => {
3484
3506
  var I;
3485
- const { breakpoints: v, contentId: k } = x;
3486
- !k || k !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || v && i({
3507
+ const { breakpoints: S, contentId: k } = v;
3508
+ !k || k !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || S && i({
3487
3509
  meta: {
3488
- breakpoints: v
3510
+ breakpoints: S
3489
3511
  }
3490
3512
  });
3491
3513
  },
3492
- animation: (x) => {
3493
- Ne(x);
3514
+ animation: (v) => {
3515
+ Ne(v);
3494
3516
  },
3495
- contentUpdate: (x) => {
3496
- i(x);
3517
+ contentUpdate: (v) => {
3518
+ i(v);
3497
3519
  }
3498
3520
  }
3499
3521
  })(h);
3500
3522
  }
3501
3523
  function c() {
3502
- var x, v;
3503
- const h = (v = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : v.jsCode;
3504
- h && q({
3524
+ var v, S;
3525
+ const h = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.jsCode;
3526
+ h && U({
3505
3527
  code: h,
3506
3528
  context: e.context || {},
3507
3529
  localState: void 0,
@@ -3513,11 +3535,11 @@ function Hn(e) {
3513
3535
  enableCache: !1
3514
3536
  });
3515
3537
  }
3516
- const [u, f] = T(() => ({})), [d, m] = T(() => ({})), [g, y] = T(() => !1);
3538
+ const [d, f] = T(() => ({})), [u, m] = T(() => ({})), [g, y] = T(() => !1);
3517
3539
  function C(h) {
3518
- var x, v;
3540
+ var v, S;
3519
3541
  if (e.builderContextSignal.content) {
3520
- const k = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, I = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
3542
+ const k = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId, I = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
3521
3543
  he({
3522
3544
  type: "click",
3523
3545
  canTrack: Q(e.canTrack),
@@ -3531,16 +3553,16 @@ function Hn(e) {
3531
3553
  g || y(!0);
3532
3554
  }
3533
3555
  function p() {
3534
- var x, v, k;
3535
- const h = (k = (v = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : v.httpRequests) != null ? k : {};
3556
+ var v, S, k;
3557
+ const h = (k = (S = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : S.httpRequests) != null ? k : {};
3536
3558
  Object.entries(h).forEach(([I, W]) => {
3537
- if (!W || d[I] || u[I] && !$())
3559
+ if (!W || u[I] || d[I] && !$())
3538
3560
  return;
3539
- d[I] = !0;
3561
+ u[I] = !0;
3540
3562
  const j = W.replace(
3541
3563
  /{{([^}]+)}}/g,
3542
3564
  (F, Ue) => String(
3543
- q({
3565
+ U({
3544
3566
  code: Ue,
3545
3567
  context: e.context || {},
3546
3568
  localState: void 0,
@@ -3553,11 +3575,11 @@ function Hn(e) {
3553
3575
  Ge(j).then((F) => F.json()).then((F) => {
3554
3576
  n({
3555
3577
  [I]: F
3556
- }), u[I] = !0;
3578
+ }), d[I] = !0;
3557
3579
  }).catch((F) => {
3558
3580
  console.error("error fetching dynamic data", W, F);
3559
3581
  }).finally(() => {
3560
- d[I] = !1;
3582
+ u[I] = !1;
3561
3583
  });
3562
3584
  });
3563
3585
  }
@@ -3576,8 +3598,8 @@ function Hn(e) {
3576
3598
  )
3577
3599
  );
3578
3600
  }
3579
- return V(() => {
3580
- var h, x;
3601
+ return P(() => {
3602
+ var h, v;
3581
3603
  if (G()) {
3582
3604
  if ($() && (window.addEventListener("message", r), Ke(), ze({
3583
3605
  ...e.locale ? {
@@ -3599,7 +3621,7 @@ function Hn(e) {
3599
3621
  "builder:component:stateChangeListenerActivated",
3600
3622
  B
3601
3623
  )), e.builderContextSignal.content && Q(e.canTrack)) {
3602
- const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, I = (x = e.builderContextSignal.content) == null ? void 0 : x.id, W = e.apiKey;
3624
+ const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, I = (v = e.builderContextSignal.content) == null ? void 0 : v.id, W = e.apiKey;
3603
3625
  he({
3604
3626
  type: "impression",
3605
3627
  canTrack: !0,
@@ -3621,25 +3643,25 @@ function Hn(e) {
3621
3643
  });
3622
3644
  }
3623
3645
  }
3624
- }, []), V(() => {
3646
+ }, []), P(() => {
3625
3647
  e.apiKey || Z.error(
3626
3648
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3627
3649
  ), c(), p(), B();
3628
- }, []), V(() => {
3650
+ }, []), P(() => {
3629
3651
  e.content && i(e.content);
3630
- }, [e.content]), V(() => {
3652
+ }, [e.content]), P(() => {
3631
3653
  c();
3632
- }, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]), V(() => {
3654
+ }, [(A = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : A.jsCode]), P(() => {
3633
3655
  p();
3634
- }, [(S = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : S.httpRequests]), V(() => {
3656
+ }, [(x = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : x.httpRequests]), P(() => {
3635
3657
  B();
3636
- }, [e.builderContextSignal.rootState]), V(() => {
3658
+ }, [e.builderContextSignal.rootState]), P(() => {
3637
3659
  e.data && n(e.data);
3638
- }, [e.data]), V(() => {
3660
+ }, [e.data]), P(() => {
3639
3661
  e.locale && n({
3640
3662
  locale: e.locale
3641
3663
  });
3642
- }, [e.locale]), V(() => () => {
3664
+ }, [e.locale]), P(() => () => {
3643
3665
  G() && (window.removeEventListener("message", r), window.removeEventListener(
3644
3666
  "builder:component:stateChangeListenerActivated",
3645
3667
  B
@@ -3711,7 +3733,7 @@ const Kn = ({
3711
3733
  meta: e == null ? void 0 : e.meta
3712
3734
  } : void 0;
3713
3735
  function Te(e) {
3714
- var c, u, f, d, m, g, y;
3736
+ var c, d, f, u, m, g, y;
3715
3737
  const [t, n] = T(
3716
3738
  () => {
3717
3739
  var C, p;
@@ -3786,7 +3808,7 @@ function Te(e) {
3786
3808
  value: {
3787
3809
  registeredComponents: o
3788
3810
  },
3789
- children: /* @__PURE__ */ P(
3811
+ children: /* @__PURE__ */ V(
3790
3812
  Hn,
3791
3813
  {
3792
3814
  nonce: e.nonce,
@@ -3819,8 +3841,8 @@ function Te(e) {
3819
3841
  nonce: e.nonce || "",
3820
3842
  isNestedRender: e.isNestedRender,
3821
3843
  contentId: (c = a.content) == null ? void 0 : c.id,
3822
- cssCode: (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.cssCode,
3823
- customFonts: (m = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
3844
+ cssCode: (f = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : f.cssCode,
3845
+ customFonts: (m = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : m.customFonts
3824
3846
  }
3825
3847
  ),
3826
3848
  /* @__PURE__ */ s(
@@ -3869,8 +3891,8 @@ function _n(e) {
3869
3891
  canTrack: Q(e.canTrack)
3870
3892
  });
3871
3893
  }
3872
- return V(() => {
3873
- }, []), /* @__PURE__ */ P(R, { children: [
3894
+ return P(() => {
3895
+ }, []), /* @__PURE__ */ V(R, { children: [
3874
3896
  !e.isNestedRender && K !== "reactNative" ? /* @__PURE__ */ s(
3875
3897
  ce,
3876
3898
  {
@@ -3879,7 +3901,7 @@ function _n(e) {
3879
3901
  nonce: e.nonce || ""
3880
3902
  }
3881
3903
  ) : null,
3882
- t ? /* @__PURE__ */ P(R, { children: [
3904
+ t ? /* @__PURE__ */ V(R, { children: [
3883
3905
  /* @__PURE__ */ s(
3884
3906
  ne,
3885
3907
  {
@@ -3970,7 +3992,7 @@ const Jn = async ({
3970
3992
  });
3971
3993
  };
3972
3994
  function Yn(e) {
3973
- var r, c, u, f;
3995
+ var r, c, d, f;
3974
3996
  function t() {
3975
3997
  return "div";
3976
3998
  }
@@ -3978,28 +4000,28 @@ function Yn(e) {
3978
4000
  return "div";
3979
4001
  }
3980
4002
  function i() {
3981
- var d, m;
4003
+ var u, m;
3982
4004
  return [
3983
- e.attributes[H()],
4005
+ e.attributes[q()],
3984
4006
  "builder-symbol",
3985
- (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
4007
+ (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
3986
4008
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3987
4009
  ].filter(Boolean).join(" ");
3988
4010
  }
3989
4011
  const [o, l] = T(() => {
3990
- var d;
3991
- return (d = e.symbol) == null ? void 0 : d.content;
4012
+ var u;
4013
+ return (u = e.symbol) == null ? void 0 : u.content;
3992
4014
  });
3993
4015
  function a() {
3994
4016
  o || Jn({
3995
4017
  symbol: e.symbol,
3996
4018
  builderContextValue: e.builderContext
3997
- }).then((d) => {
3998
- d && l(d);
4019
+ }).then((u) => {
4020
+ u && l(u);
3999
4021
  });
4000
4022
  }
4001
- return V(() => {
4002
- }, []), V(() => {
4023
+ return P(() => {
4024
+ }, []), P(() => {
4003
4025
  a();
4004
4026
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4005
4027
  _n,
@@ -4016,7 +4038,7 @@ function Yn(e) {
4016
4038
  data: {
4017
4039
  ...(c = e.symbol) == null ? void 0 : c.data,
4018
4040
  ...e.builderContext.localState,
4019
- ...(u = o == null ? void 0 : o.data) == null ? void 0 : u.state
4041
+ ...(d = o == null ? void 0 : o.data) == null ? void 0 : d.state
4020
4042
  },
4021
4043
  canTrack: e.builderContext.canTrack,
4022
4044
  model: (f = e.symbol) == null ? void 0 : f.model,