@builder.io/sdk-react 4.1.3 → 4.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/lib/browser/blocks-exports.cjs +8 -8
  2. package/lib/browser/blocks-exports.mjs +289 -265
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +6 -5
  5. package/lib/browser/server-entry-4cf669a1.cjs +2 -0
  6. package/lib/browser/{server-entry-4da1a296.js → server-entry-5e98a993.js} +24 -13
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +7 -6
  9. package/lib/edge/{accordion-78ee648e.cjs → accordion-4bab42b1.cjs} +1 -1
  10. package/lib/edge/{accordion-1784524c.js → accordion-a8a363e4.js} +1 -1
  11. package/lib/edge/{blocks-14702bfa.cjs → blocks-d07d0261.cjs} +1 -1
  12. package/lib/edge/{blocks-f5fb0ce5.js → blocks-e1f5b0d0.js} +2 -2
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-290c53b5.cjs → button-6734c0bb.cjs} +1 -1
  16. package/lib/edge/{button-21ceeedc.js → button-bbcadacf.js} +2 -2
  17. package/lib/edge/{columns-b7aced60.cjs → columns-821cba14.cjs} +1 -1
  18. package/lib/edge/{columns-1068516d.js → columns-cf3081c6.js} +3 -3
  19. package/lib/edge/{content-variants-90878d85.js → content-variants-a704e35c.js} +172 -150
  20. package/lib/edge/{content-variants-a264ddef.cjs → content-variants-ec180883.cjs} +6 -6
  21. package/lib/edge/{custom-code-2c87d654.cjs → custom-code-8fcaa31e.cjs} +1 -1
  22. package/lib/edge/{custom-code-4fa9e701.js → custom-code-f6c30129.js} +1 -1
  23. package/lib/edge/{embed-80b047e6.js → embed-3c0b5564.js} +1 -1
  24. package/lib/edge/{embed-d5d20b9d.cjs → embed-666d3cc4.cjs} +1 -1
  25. package/lib/edge/form-51f639ab.cjs +1 -0
  26. package/lib/edge/{form-539b46dc.js → form-8b068721.js} +9 -7
  27. package/lib/edge/{get-class-prop-name-57633f13.cjs → get-class-prop-name-2869a960.cjs} +1 -1
  28. package/lib/edge/{get-class-prop-name-7e842f9c.js → get-class-prop-name-d6d821d6.js} +1 -1
  29. package/lib/edge/{img-36b77f7e.cjs → img-b04b9b6d.cjs} +1 -1
  30. package/lib/edge/{img-e2d845d3.js → img-dfbd4080.js} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +4 -3
  33. package/lib/edge/{input-4b7d5309.js → input-665ef328.js} +1 -1
  34. package/lib/edge/{input-ad09fe4d.cjs → input-d31d6451.cjs} +1 -1
  35. package/lib/edge/{personalization-container-8dcdbc56.cjs → personalization-container-d12566e8.cjs} +1 -1
  36. package/lib/edge/{personalization-container-6a8723bf.js → personalization-container-e784836e.js} +4 -4
  37. package/lib/edge/{select-2c39366d.js → select-5fe49bd4.js} +1 -1
  38. package/lib/edge/{select-427609f7.cjs → select-c3085265.cjs} +1 -1
  39. package/lib/edge/server-entry-acf5ce7d.cjs +2 -0
  40. package/lib/edge/{server-entry-6e9f2e70.js → server-entry-c9d5300f.js} +22 -11
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +7 -6
  43. package/lib/edge/{slot-74827ed2.js → slot-a17ee2d7.js} +3 -3
  44. package/lib/edge/{slot-780e168e.cjs → slot-cbbbb02e.cjs} +1 -1
  45. package/lib/edge/{symbol-8573a705.js → symbol-9f960685.js} +2 -2
  46. package/lib/edge/{symbol-c79c9cb2.cjs → symbol-b56b5675.cjs} +1 -1
  47. package/lib/edge/{tabs-90d614d8.js → tabs-26ac5b2f.js} +3 -3
  48. package/lib/edge/{tabs-706f56bf.cjs → tabs-bf6643d7.cjs} +1 -1
  49. package/lib/node/blocks-exports.cjs +14 -14
  50. package/lib/node/blocks-exports.mjs +292 -268
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +6 -5
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +3 -3
  55. package/lib/node/{server-entry-6d89489d.js → server-entry-48724189.js} +24 -13
  56. package/lib/node/server-entry-562c0663.cjs +2 -0
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +7 -6
  59. package/lib/node/{setIvm-4d2ae811.cjs → setIvm-3b6199a0.cjs} +1 -1
  60. package/lib/node/{setIvm-96d70b3f.js → setIvm-a7aba6d2.js} +1 -1
  61. package/lib/node/setIvm.cjs +1 -1
  62. package/lib/node/setIvm.mjs +2 -2
  63. package/lib/node/{should-force-browser-runtime-in-node-f668d799.cjs → should-force-browser-runtime-in-node-cbe0ef14.cjs} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-4d8646f7.js → should-force-browser-runtime-in-node-fdc70f22.js} +1 -1
  65. package/package.json +1 -1
  66. package/types/constants/sdk-version.d.ts +1 -1
  67. package/types/functions/register.d.ts +18 -0
  68. package/types/server-index.d.ts +1 -1
  69. package/lib/browser/server-entry-2443e405.cjs +0 -2
  70. package/lib/edge/form-3e4c4ae4.cjs +0 -1
  71. package/lib/edge/server-entry-9c867b01.cjs +0 -2
  72. package/lib/node/server-entry-dd2d010e.cjs +0 -2
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { TARGET as F, isEditing as L, isBrowser as M, getUserAttributes as ct, checkIsDefined as ae, logger as J, isPreviewing as se, userAttributesService as Ce, getDefaultCanTrack as Z, logFetch as Oe, setupBrowserForEditing as ut, createRegisterComponentMessage as dt, getCookieSync as mt, _track as Te, fetchOneEntry as Le, createEditorListener as ft, serializeIncludingFunctions as Ie, handleABTestingSync as ht } from "./server-entry-4da1a296.js";
3
- import { setClientUserAttributes as Hi } from "./server-entry-4da1a296.js";
4
- import { jsx as s, Fragment as R, jsxs as W } from "react/jsx-runtime";
2
+ import { TARGET as O, isEditing as L, isBrowser as M, getUserAttributes as ct, checkIsDefined as ae, logger as J, isPreviewing as se, userAttributesService as Ce, getDefaultCanTrack as Z, logFetch as Fe, setupBrowserForEditing as ut, createRegisterComponentMessage as dt, getCookieSync as mt, _track as Te, fetchOneEntry as Le, createEditorListener as ft, serializeIncludingFunctions as Ie, handleABTestingSync as ht } from "./server-entry-5e98a993.js";
3
+ import { setClientUserAttributes as Hi } from "./server-entry-5e98a993.js";
4
+ import { jsx as s, Fragment as R, jsxs as $ } from "react/jsx-runtime";
5
5
  import * as gt from "react";
6
6
  import { createContext as _e, useEffect as V, useState as C, useRef as H, useContext as we, createElement as Ue } from "react";
7
7
  const bt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), yt = (e) => typeof e == "string" && bt.has(e.toLowerCase());
@@ -9,7 +9,7 @@ function ye(e) {
9
9
  return /* @__PURE__ */ s(R, { children: yt(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 }) }) });
10
10
  }
11
11
  const z = () => {
12
- switch (F) {
12
+ switch (O) {
13
13
  case "react":
14
14
  case "reactNative":
15
15
  case "rsc":
@@ -272,7 +272,7 @@ function be(e) {
272
272
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = be(e[n]));
273
273
  return t;
274
274
  }
275
- const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) => {
275
+ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), $t = (e) => {
276
276
  if (Wt) {
277
277
  const t = ve(e);
278
278
  return {
@@ -320,7 +320,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), $t = (e) =
320
320
  }
321
321
  return o;
322
322
  };
323
- function Ft({
323
+ function Ot({
324
324
  block: e,
325
325
  context: t,
326
326
  localState: n,
@@ -337,7 +337,7 @@ function Ft({
337
337
  }), o = Nt(o, i.locale), o;
338
338
  }
339
339
  const ce = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
340
- function Ot(e, t, n = {}) {
340
+ function Ft(e, t, n = {}) {
341
341
  let i, r, o, a = null, l = 0;
342
342
  const c = function() {
343
343
  l = n.leading === !1 ? 0 : Date.now(), a = null, o = e.apply(i, r), a || (i = r = null);
@@ -416,7 +416,7 @@ function Ut(e) {
416
416
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
417
417
  })) : e.repeat && i && !r && !l(n) && (i = !1, X(n.style, e.steps[0].styles));
418
418
  }
419
- const a = Ot(o, 200, {
419
+ const a = Ft(o, 200, {
420
420
  leading: !1
421
421
  });
422
422
  function l(f) {
@@ -465,7 +465,7 @@ const qt = ({
465
465
  block: e
466
466
  }));
467
467
  function Ye(e) {
468
- switch (F) {
468
+ switch (O) {
469
469
  case "svelte":
470
470
  case "vue":
471
471
  case "solid":
@@ -624,7 +624,7 @@ function Yt(e) {
624
624
  return ae(i.hide) ? !i.hide : ae(i.show) ? i.show : !0;
625
625
  }
626
626
  function n() {
627
- var k, A, T, I, g;
627
+ var k, A, T, w, h;
628
628
  const i = e.block, r = i.responsiveStyles, o = e.context.content, a = et(
629
629
  ((k = o == null ? void 0 : o.meta) == null ? void 0 : k.breakpoints) || {}
630
630
  ), l = !!((T = (A = o == null ? void 0 : o.meta) == null ? void 0 : A.breakpoints) != null && T.xsmall), c = r == null ? void 0 : r.large, u = r == null ? void 0 : r.medium, f = r == null ? void 0 : r.small, b = r == null ? void 0 : r.xsmall, m = i.id;
@@ -640,7 +640,7 @@ function Yt(e) {
640
640
  "medium",
641
641
  a
642
642
  )
643
- }) : "", h = f ? Y({
643
+ }) : "", g = f ? Y({
644
644
  className: m,
645
645
  styles: f,
646
646
  mediaQuery: de(
@@ -657,7 +657,7 @@ function Yt(e) {
657
657
  }) : "", y = i.animations && i.animations.find((x) => x.trigger === "hover");
658
658
  let S = "";
659
659
  if (y) {
660
- const x = ((g = (I = y.steps) == null ? void 0 : I[1]) == null ? void 0 : g.styles) || {};
660
+ const x = ((h = (w = y.steps) == null ? void 0 : w[1]) == null ? void 0 : h.styles) || {};
661
661
  S = Y({
662
662
  className: `${m}:hover`,
663
663
  styles: {
@@ -672,7 +672,7 @@ function Yt(e) {
672
672
  return [
673
673
  v,
674
674
  d,
675
- h,
675
+ g,
676
676
  p,
677
677
  S
678
678
  ].join(" ");
@@ -707,7 +707,7 @@ function tt(e) {
707
707
  const o = n[r];
708
708
  let a = Zt(r);
709
709
  if (e.stripPrefix)
710
- switch (F) {
710
+ switch (O) {
711
711
  case "vue":
712
712
  a = a.replace("v-on:", "");
713
713
  break;
@@ -896,10 +896,10 @@ function ue(e) {
896
896
  update: !1
897
897
  }));
898
898
  function r() {
899
- var h;
899
+ var g;
900
900
  if (n.value && !n.update && !se())
901
901
  return n.value;
902
- const d = (h = e.block.repeat) != null && h.collection ? e.block : Ft({
902
+ const d = (g = e.block.repeat) != null && g.collection ? e.block : Ot({
903
903
  block: e.block,
904
904
  localState: e.context.localState,
905
905
  rootState: e.context.rootState,
@@ -916,8 +916,8 @@ function ue(e) {
916
916
  });
917
917
  }
918
918
  function a() {
919
- var h;
920
- return e.block.tagName === "a" || ((h = r().properties) == null ? void 0 : h.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
919
+ var g;
920
+ return e.block.tagName === "a" || ((g = r().properties) == null ? void 0 : g.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
921
921
  }
922
922
  function l() {
923
923
  var p, y;
@@ -927,14 +927,14 @@ function ue(e) {
927
927
  return ("show" in r() ? r().show : !0) && !d;
928
928
  }
929
929
  function c() {
930
- var h, p;
931
- return !((h = o == null ? void 0 : o()) != null && h.component) && !t() ? (p = r().children) != null ? p : [] : [];
930
+ var g, p;
931
+ return !((g = o == null ? void 0 : o()) != null && g.component) && !t() ? (p = r().children) != null ? p : [] : [];
932
932
  }
933
933
  function u() {
934
- var d, h, p, y;
934
+ var d, g, p, y;
935
935
  return {
936
936
  blockChildren: (d = r().children) != null ? d : [],
937
- componentRef: (h = o == null ? void 0 : o()) == null ? void 0 : h.component,
937
+ componentRef: (g = o == null ? void 0 : o()) == null ? void 0 : g.component,
938
938
  componentOptions: {
939
939
  ...Rt(r(), e.context),
940
940
  ...Gt(o(), r()),
@@ -951,22 +951,22 @@ function ue(e) {
951
951
  registeredComponents: e.registeredComponents,
952
952
  builderBlock: r(),
953
953
  includeBlockProps: ((p = o == null ? void 0 : o()) == null ? void 0 : p.noWrap) === !0,
954
- isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC && F === "rsc")
954
+ isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC && O === "rsc")
955
955
  };
956
956
  }
957
957
  return V(() => {
958
- const d = r().id, h = r().animations;
959
- h && d && Lt(
960
- h.map((p) => ({
958
+ const d = r().id, g = r().animations;
959
+ g && d && Lt(
960
+ g.map((p) => ({
961
961
  ...p,
962
962
  elementId: d
963
963
  }))
964
964
  );
965
965
  }, []), V(() => {
966
966
  n.update = !0;
967
- }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ W(R, { children: [
967
+ }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ $(R, { children: [
968
968
  /* @__PURE__ */ s(Yt, { block: r(), context: e.context }),
969
- (f = o == null ? void 0 : o()) != null && f.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((d, h) => /* @__PURE__ */ s(
969
+ (f = o == null ? void 0 : o()) != null && f.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((d, g) => /* @__PURE__ */ s(
970
970
  Ve,
971
971
  {
972
972
  repeatContext: d.context,
@@ -974,7 +974,7 @@ function ue(e) {
974
974
  registeredComponents: e.registeredComponents,
975
975
  linkComponent: e.linkComponent
976
976
  },
977
- Re(h)
977
+ Re(g)
978
978
  )) }) : /* @__PURE__ */ s(
979
979
  Pe,
980
980
  {
@@ -988,7 +988,7 @@ function ue(e) {
988
988
  includeBlockProps: u().includeBlockProps,
989
989
  isInteractive: u().isInteractive
990
990
  }
991
- ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (m = t()) == null ? void 0 : m.map((d, h) => /* @__PURE__ */ s(
991
+ ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (m = t()) == null ? void 0 : m.map((d, g) => /* @__PURE__ */ s(
992
992
  Ve,
993
993
  {
994
994
  repeatContext: d.context,
@@ -996,8 +996,8 @@ function ue(e) {
996
996
  registeredComponents: e.registeredComponents,
997
997
  linkComponent: e.linkComponent
998
998
  },
999
- Re(h)
1000
- )) }) : /* @__PURE__ */ W(
999
+ Re(g)
1000
+ )) }) : /* @__PURE__ */ $(
1001
1001
  rn,
1002
1002
  {
1003
1003
  Wrapper: a(),
@@ -1078,7 +1078,7 @@ function sn(e) {
1078
1078
  }
1079
1079
  return V(() => {
1080
1080
  }, []), V(() => {
1081
- }, [e.blocks]), /* @__PURE__ */ W(R, { children: [
1081
+ }, [e.blocks]), /* @__PURE__ */ $(R, { children: [
1082
1082
  /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-8834791c {
1083
1083
  display: flex;
1084
1084
  flex-direction: column;
@@ -1101,10 +1101,10 @@ function sn(e) {
1101
1101
  )
1102
1102
  ] });
1103
1103
  }
1104
- function _(e) {
1104
+ function U(e) {
1105
1105
  var i, r, o;
1106
1106
  const t = we(pe), n = we(He);
1107
- return /* @__PURE__ */ W(
1107
+ return /* @__PURE__ */ $(
1108
1108
  sn,
1109
1109
  {
1110
1110
  blocks: e.blocks,
@@ -1132,7 +1132,7 @@ function _(e) {
1132
1132
  }
1133
1133
  const cn = (e) => `builder-columns ${e}-breakpoints`;
1134
1134
  function un(e) {
1135
- var h, p;
1135
+ var g, p;
1136
1136
  function t() {
1137
1137
  return typeof e.space == "number" ? e.space || 0 : 20;
1138
1138
  }
@@ -1178,7 +1178,7 @@ function un(e) {
1178
1178
  };
1179
1179
  }
1180
1180
  function b(y) {
1181
- const S = y === 0 ? 0 : t(), k = a(y), A = `${S}px`, T = "100%", I = 0;
1181
+ const S = y === 0 ? 0 : t(), k = a(y), A = `${S}px`, T = "100%", w = 0;
1182
1182
  return {
1183
1183
  ...{
1184
1184
  display: "flex",
@@ -1192,7 +1192,7 @@ function un(e) {
1192
1192
  desktopStyle: k
1193
1193
  }),
1194
1194
  "--column-margin-left-mobile": c({
1195
- stackedStyle: I,
1195
+ stackedStyle: w,
1196
1196
  desktopStyle: A
1197
1197
  }),
1198
1198
  "--column-width-tablet": l({
@@ -1200,7 +1200,7 @@ function un(e) {
1200
1200
  desktopStyle: k
1201
1201
  }),
1202
1202
  "--column-margin-left-tablet": l({
1203
- stackedStyle: I,
1203
+ stackedStyle: w,
1204
1204
  desktopStyle: A
1205
1205
  })
1206
1206
  };
@@ -1248,16 +1248,16 @@ function un(e) {
1248
1248
  style: Ye(b(S))
1249
1249
  };
1250
1250
  }
1251
- return /* @__PURE__ */ W(R, { children: [
1251
+ return /* @__PURE__ */ $(R, { children: [
1252
1252
  /* @__PURE__ */ s("style", { children: `.div-0369db37 {
1253
1253
  display: flex;
1254
1254
  line-height: normal;
1255
1255
  height: 100%;
1256
1256
  }` }),
1257
- /* @__PURE__ */ W(
1257
+ /* @__PURE__ */ $(
1258
1258
  "div",
1259
1259
  {
1260
- className: cn((h = e.builderBlock) == null ? void 0 : h.id) + " div-0369db37",
1260
+ className: cn((g = e.builderBlock) == null ? void 0 : g.id) + " div-0369db37",
1261
1261
  style: f(),
1262
1262
  children: [
1263
1263
  /* @__PURE__ */ s(
@@ -1275,7 +1275,7 @@ function un(e) {
1275
1275
  actionAttributes: {},
1276
1276
  attributes: d(y, S),
1277
1277
  children: /* @__PURE__ */ s(
1278
- _,
1278
+ U,
1279
1279
  {
1280
1280
  path: `columns.${S}.blocks`,
1281
1281
  parent: e.builderBlock.id,
@@ -1362,7 +1362,7 @@ function hn(e) {
1362
1362
  return e.aspectRatio ? f : void 0;
1363
1363
  }
1364
1364
  return V(() => {
1365
- }, []), /* @__PURE__ */ W(R, { children: [
1365
+ }, []), /* @__PURE__ */ $(R, { children: [
1366
1366
  /* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
1367
1367
  opacity: 1;
1368
1368
  transition: opacity 0.2s ease-in-out;
@@ -1380,8 +1380,8 @@ function hn(e) {
1380
1380
  width: 100%;
1381
1381
  height: 100%;
1382
1382
  }` }),
1383
- /* @__PURE__ */ W(R, { children: [
1384
- /* @__PURE__ */ W("picture", { children: [
1383
+ /* @__PURE__ */ $(R, { children: [
1384
+ /* @__PURE__ */ $("picture", { children: [
1385
1385
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1386
1386
  /* @__PURE__ */ s(
1387
1387
  "img",
@@ -1461,28 +1461,28 @@ function bn(e, t, n, i) {
1461
1461
  operator: v,
1462
1462
  value: p
1463
1463
  }));
1464
- const h = u[m];
1465
- if (Array.isArray(h))
1466
- return h.includes(d);
1464
+ const g = u[m];
1465
+ if (Array.isArray(g))
1466
+ return g.includes(d);
1467
1467
  switch (v) {
1468
1468
  case "is":
1469
- return h === d;
1469
+ return g === d;
1470
1470
  case "isNot":
1471
- return h !== d;
1471
+ return g !== d;
1472
1472
  case "contains":
1473
- return (r(h) || Array.isArray(h)) && h.includes(String(d));
1473
+ return (r(g) || Array.isArray(g)) && g.includes(String(d));
1474
1474
  case "startsWith":
1475
- return r(h) && h.startsWith(String(d));
1475
+ return r(g) && g.startsWith(String(d));
1476
1476
  case "endsWith":
1477
- return r(h) && h.endsWith(String(d));
1477
+ return r(g) && g.endsWith(String(d));
1478
1478
  case "greaterThan":
1479
- return o(h) && o(d) && h > d;
1479
+ return o(g) && o(d) && g > d;
1480
1480
  case "lessThan":
1481
- return o(h) && o(d) && h < d;
1481
+ return o(g) && o(d) && g < d;
1482
1482
  case "greaterThanOrEqualTo":
1483
- return o(h) && o(d) && h >= d;
1483
+ return o(g) && o(d) && g >= d;
1484
1484
  case "lessThanOrEqualTo":
1485
- return o(h) && o(d) && h <= d;
1485
+ return o(g) && o(d) && g <= d;
1486
1486
  default:
1487
1487
  return !1;
1488
1488
  }
@@ -1658,7 +1658,7 @@ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
1658
1658
  }
1659
1659
  }`, ie = "default", xn = "filterWithCustomTargeting", nt = "builderIoPersonalization", it = "updateVisibilityStylesScript", rt = ["react", "vue", "svelte", "qwik"], re = ["vue", "svelte", "qwik"];
1660
1660
  function Sn(e, t) {
1661
- return !(e && e.length > 0) || !t ? !1 : re.includes(F) ? !0 : !M();
1661
+ return !(e && e.length > 0) || !t ? !1 : re.includes(O) ? !0 : !M();
1662
1662
  }
1663
1663
  function kn({
1664
1664
  variants: e,
@@ -1703,7 +1703,7 @@ const Cn = () => `
1703
1703
  window.${xn} = ${pn}
1704
1704
  window.${nt} = ${yn}
1705
1705
  window.${it} = ${vn}
1706
- `, ot = F === "react", Tn = (e, t, n) => `window.${nt}(${JSON.stringify(e)}, "${t}", ${ot}${n ? `, "${n}"` : ""})`, In = (e, t, n) => `window.${it}(${JSON.stringify(e)}, "${t}", ${ot}${n ? `, "${n}"` : ""})`, me = {
1706
+ `, ot = O === "react", Tn = (e, t, n) => `window.${nt}(${JSON.stringify(e)}, "${t}", ${ot}${n ? `, "${n}"` : ""})`, In = (e, t, n) => `window.${it}(${JSON.stringify(e)}, "${t}", ${ot}${n ? `, "${n}"` : ""})`, me = {
1707
1707
  "@type": "@builder.io/sdk:Element",
1708
1708
  layerName: "Accordion item title",
1709
1709
  responsiveStyles: {
@@ -1856,7 +1856,7 @@ function En(e) {
1856
1856
  cursor: "pointer"
1857
1857
  };
1858
1858
  return Object.fromEntries(
1859
- Object.entries(v).filter(([d, h]) => h !== void 0)
1859
+ Object.entries(v).filter(([d, g]) => g !== void 0)
1860
1860
  );
1861
1861
  }
1862
1862
  function a(m) {
@@ -1906,7 +1906,7 @@ function En(e) {
1906
1906
  function f(m) {
1907
1907
  t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
1908
1908
  }
1909
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((m, v) => /* @__PURE__ */ W(gt.Fragment, { children: [
1909
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((m, v) => /* @__PURE__ */ $(gt.Fragment, { children: [
1910
1910
  /* @__PURE__ */ s(
1911
1911
  "div",
1912
1912
  {
@@ -1921,7 +1921,7 @@ function En(e) {
1921
1921
  "data-index": v,
1922
1922
  onClick: (d) => f(v),
1923
1923
  children: /* @__PURE__ */ s(
1924
- _,
1924
+ U,
1925
1925
  {
1926
1926
  blocks: m.title,
1927
1927
  path: `items.${v}.title`,
@@ -1939,7 +1939,7 @@ function En(e) {
1939
1939
  className: l(v),
1940
1940
  style: u(),
1941
1941
  children: /* @__PURE__ */ s(
1942
- _,
1942
+ U,
1943
1943
  {
1944
1944
  blocks: m.detail,
1945
1945
  path: `items.${v}.detail`,
@@ -2362,33 +2362,33 @@ function j(e) {
2362
2362
  );
2363
2363
  }
2364
2364
  function Wn(e) {
2365
- var S, k, A, T, I, g, x, w, D, O, $, P, U;
2365
+ var S, k, A, T, w, h, x, E, N, F, _, P, D;
2366
2366
  const t = H(null), [n, i] = C(
2367
2367
  () => Ce.getUserAttributes()
2368
2368
  ), [r, o] = C(
2369
2369
  () => {
2370
- var E, B, N;
2370
+ var I, B, W;
2371
2371
  return Tn(
2372
2372
  e.variants,
2373
- ((E = e.builderBlock) == null ? void 0 : E.id) || "none",
2374
- (N = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : N.locale
2373
+ ((I = e.builderBlock) == null ? void 0 : I.id) || "none",
2374
+ (W = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : W.locale
2375
2375
  );
2376
2376
  }
2377
2377
  ), [a, l] = C(
2378
2378
  () => {
2379
- var E, B, N;
2379
+ var I, B, W;
2380
2380
  return In(
2381
2381
  e.variants,
2382
- ((E = e.builderBlock) == null ? void 0 : E.id) || "none",
2383
- (N = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : N.locale
2382
+ ((I = e.builderBlock) == null ? void 0 : I.id) || "none",
2383
+ (W = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : W.locale
2384
2384
  );
2385
2385
  }
2386
2386
  ), [c, u] = C(() => []), [f, b] = C(
2387
2387
  () => {
2388
- var E;
2388
+ var I;
2389
2389
  return Sn(
2390
2390
  e.variants,
2391
- Z((E = e.builderContext) == null ? void 0 : E.canTrack)
2391
+ Z((I = e.builderContext) == null ? void 0 : I.canTrack)
2392
2392
  );
2393
2393
  }
2394
2394
  ), [m, v] = C(() => !1);
@@ -2398,57 +2398,57 @@ function Wn(e) {
2398
2398
  [z()]: `builder-personalization-container ${e.attributes[z()] || ""}`
2399
2399
  };
2400
2400
  }
2401
- function h() {
2402
- return (e.variants || []).filter((E) => {
2403
- var B, N, K, q;
2401
+ function g() {
2402
+ return (e.variants || []).filter((I) => {
2403
+ var B, W, K, q;
2404
2404
  return bn(
2405
2405
  {
2406
- ...(N = (B = e.builderContext) == null ? void 0 : B.rootState) != null && N.locale ? {
2406
+ ...(W = (B = e.builderContext) == null ? void 0 : B.rootState) != null && W.locale ? {
2407
2407
  locale: (q = (K = e.builderContext) == null ? void 0 : K.rootState) == null ? void 0 : q.locale
2408
2408
  } : {},
2409
2409
  ...n
2410
2410
  },
2411
- E.query,
2412
- E.startDate,
2413
- E.endDate
2411
+ I.query,
2412
+ I.startDate,
2413
+ I.endDate
2414
2414
  );
2415
2415
  });
2416
2416
  }
2417
2417
  function p() {
2418
- var E;
2418
+ var I;
2419
2419
  return kn({
2420
2420
  variants: e.variants,
2421
- fallbackBlocks: (E = e.builderBlock) == null ? void 0 : E.children,
2421
+ fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
2422
2422
  isHydrated: m,
2423
- filteredVariants: h(),
2423
+ filteredVariants: g(),
2424
2424
  previewingIndex: e.previewingIndex
2425
2425
  });
2426
2426
  }
2427
2427
  function y() {
2428
2428
  return (e.variants || []).map(
2429
- (E, B) => {
2430
- var N;
2431
- return `div[data-variant-id="${(N = e.builderBlock) == null ? void 0 : N.id}-${B}"] { display: none !important; } `;
2429
+ (I, B) => {
2430
+ var W;
2431
+ return `div[data-variant-id="${(W = e.builderBlock) == null ? void 0 : W.id}-${B}"] { display: none !important; } `;
2432
2432
  }
2433
2433
  ).join("");
2434
2434
  }
2435
2435
  return V(() => {
2436
2436
  var B;
2437
2437
  v(!0);
2438
- const E = Ce.subscribeOnUserAttributesChange(
2439
- (N) => {
2440
- i(N);
2438
+ const I = Ce.subscribeOnUserAttributesChange(
2439
+ (W) => {
2440
+ i(W);
2441
2441
  },
2442
2442
  {
2443
- fireImmediately: F === "qwik"
2443
+ fireImmediately: O === "qwik"
2444
2444
  }
2445
2445
  );
2446
2446
  if (!(L() || se())) {
2447
- const N = h()[0];
2447
+ const W = g()[0];
2448
2448
  t.current && (t.current.dispatchEvent(
2449
2449
  new CustomEvent("builder.variantLoaded", {
2450
2450
  detail: {
2451
- variant: N || ie,
2451
+ variant: W || ie,
2452
2452
  content: (B = e.builderContext) == null ? void 0 : B.content
2453
2453
  },
2454
2454
  bubbles: !0
@@ -2459,7 +2459,7 @@ function Wn(e) {
2459
2459
  te.isIntersecting && t.current && t.current.dispatchEvent(
2460
2460
  new CustomEvent("builder.variantDisplayed", {
2461
2461
  detail: {
2462
- variant: N || ie,
2462
+ variant: W || ie,
2463
2463
  content: (Q = e.builderContext) == null ? void 0 : Q.content
2464
2464
  },
2465
2465
  bubbles: !0
@@ -2468,12 +2468,12 @@ function Wn(e) {
2468
2468
  });
2469
2469
  }).observe(t.current));
2470
2470
  }
2471
- c.push(E);
2471
+ c.push(I);
2472
2472
  }, []), V(() => () => {
2473
- c.forEach((E) => E());
2474
- }, []), /* @__PURE__ */ W("div", { ref: t, ...d(), children: [
2475
- m && re.includes(F) ? /* @__PURE__ */ s(
2476
- _,
2473
+ c.forEach((I) => I());
2474
+ }, []), /* @__PURE__ */ $("div", { ref: t, ...d(), children: [
2475
+ m && re.includes(O) ? /* @__PURE__ */ s(
2476
+ U,
2477
2477
  {
2478
2478
  blocks: p().blocks,
2479
2479
  parent: (S = e.builderBlock) == null ? void 0 : S.id,
@@ -2486,36 +2486,36 @@ function Wn(e) {
2486
2486
  }
2487
2487
  }
2488
2488
  ) : null,
2489
- !m && re.includes(F) || !re.includes(F) ? /* @__PURE__ */ W(R, { children: [
2490
- f ? /* @__PURE__ */ W(R, { children: [
2489
+ !m && re.includes(O) || !re.includes(O) ? /* @__PURE__ */ $(R, { children: [
2490
+ f ? /* @__PURE__ */ $(R, { children: [
2491
2491
  /* @__PURE__ */ s(
2492
2492
  ee,
2493
2493
  {
2494
2494
  nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
2495
2495
  styles: y(),
2496
- id: `variants-styles-${(I = e.builderBlock) == null ? void 0 : I.id}`
2496
+ id: `variants-styles-${(w = e.builderBlock) == null ? void 0 : w.id}`
2497
2497
  }
2498
2498
  ),
2499
2499
  /* @__PURE__ */ s(
2500
2500
  j,
2501
2501
  {
2502
- nonce: ((g = e.builderContext) == null ? void 0 : g.nonce) || "",
2502
+ nonce: ((h = e.builderContext) == null ? void 0 : h.nonce) || "",
2503
2503
  scriptStr: a,
2504
2504
  id: `variants-visibility-script-${(x = e.builderBlock) == null ? void 0 : x.id}`
2505
2505
  }
2506
2506
  ),
2507
- (w = e.variants) == null ? void 0 : w.map((E, B) => {
2508
- var N, K, q, te, Q, ke;
2507
+ (E = e.variants) == null ? void 0 : E.map((I, B) => {
2508
+ var W, K, q, te, Q, ke;
2509
2509
  return /* @__PURE__ */ s(
2510
- _,
2510
+ U,
2511
2511
  {
2512
2512
  BlocksWrapperProps: {
2513
- ...(N = e.builderContext) == null ? void 0 : N.BlocksWrapperProps,
2513
+ ...(W = e.builderContext) == null ? void 0 : W.BlocksWrapperProps,
2514
2514
  "aria-hidden": !0,
2515
2515
  hidden: !0,
2516
2516
  "data-variant-id": `${(K = e.builderBlock) == null ? void 0 : K.id}-${B}`
2517
2517
  },
2518
- blocks: E.blocks,
2518
+ blocks: I.blocks,
2519
2519
  parent: (q = e.builderBlock) == null ? void 0 : q.id,
2520
2520
  path: `component.options.variants.${B}.blocks`,
2521
2521
  context: e.builderContext,
@@ -2534,23 +2534,23 @@ function Wn(e) {
2534
2534
  })
2535
2535
  ] }) : null,
2536
2536
  /* @__PURE__ */ s(
2537
- _,
2537
+ U,
2538
2538
  {
2539
2539
  blocks: p().blocks,
2540
- parent: (D = e.builderBlock) == null ? void 0 : D.id,
2540
+ parent: (N = e.builderBlock) == null ? void 0 : N.id,
2541
2541
  path: p().path,
2542
2542
  context: e.builderContext,
2543
2543
  registeredComponents: e.builderComponents,
2544
2544
  BlocksWrapperProps: {
2545
- ...(O = e.builderContext) == null ? void 0 : O.BlocksWrapperProps,
2546
- "data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${p().index}`
2545
+ ...(F = e.builderContext) == null ? void 0 : F.BlocksWrapperProps,
2546
+ "data-variant-id": `${(_ = e.builderBlock) == null ? void 0 : _.id}-${p().index}`
2547
2547
  },
2548
2548
  children: f ? /* @__PURE__ */ s(
2549
2549
  j,
2550
2550
  {
2551
2551
  nonce: ((P = e.builderContext) == null ? void 0 : P.nonce) || "",
2552
2552
  scriptStr: r,
2553
- id: `variants-script-${(U = e.builderBlock) == null ? void 0 : U.id}-${ie}`
2553
+ id: `variants-script-${(D = e.builderBlock) == null ? void 0 : D.id}-${ie}`
2554
2554
  }
2555
2555
  ) : null
2556
2556
  }
@@ -2615,7 +2615,7 @@ const $n = {
2615
2615
  builderComponents: !0
2616
2616
  }
2617
2617
  };
2618
- function Fn(e) {
2618
+ function On(e) {
2619
2619
  var t, n, i;
2620
2620
  return /* @__PURE__ */ s(
2621
2621
  "div",
@@ -2627,7 +2627,7 @@ function Fn(e) {
2627
2627
  "builder-slot": e.name
2628
2628
  },
2629
2629
  children: /* @__PURE__ */ s(
2630
- _,
2630
+ U,
2631
2631
  {
2632
2632
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
2633
2633
  path: `symbol.data.${e.name}`,
@@ -2639,7 +2639,7 @@ function Fn(e) {
2639
2639
  }
2640
2640
  );
2641
2641
  }
2642
- const On = {
2642
+ const Fn = {
2643
2643
  name: "Symbol",
2644
2644
  noWrap: !0,
2645
2645
  static: !0,
@@ -2831,7 +2831,7 @@ function _n(e) {
2831
2831
  function r(a) {
2832
2832
  a === t && e.collapsible ? n(-1) : n(a);
2833
2833
  }
2834
- return /* @__PURE__ */ W("div", { children: [
2834
+ return /* @__PURE__ */ $("div", { children: [
2835
2835
  /* @__PURE__ */ s(
2836
2836
  "div",
2837
2837
  {
@@ -2851,7 +2851,7 @@ function _n(e) {
2851
2851
  },
2852
2852
  onClick: (c) => r(l),
2853
2853
  children: /* @__PURE__ */ s(
2854
- _,
2854
+ U,
2855
2855
  {
2856
2856
  parent: e.builderBlock.id,
2857
2857
  path: `tabs.${l}.label`,
@@ -2867,7 +2867,7 @@ function _n(e) {
2867
2867
  }
2868
2868
  ),
2869
2869
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2870
- _,
2870
+ U,
2871
2871
  {
2872
2872
  parent: e.builderBlock.id,
2873
2873
  path: `tabs.${t}.content`,
@@ -3293,77 +3293,79 @@ function Xn(e) {
3293
3293
  return;
3294
3294
  }
3295
3295
  b.preventDefault();
3296
- const d = b.currentTarget || b.target, h = e.customHeaders || {};
3296
+ const d = b.currentTarget || b.target, g = e.customHeaders || {};
3297
3297
  let p;
3298
- const y = new FormData(d), S = Array.from(d.querySelectorAll("input,select,textarea")).filter((g) => !!g.name).map((g) => {
3298
+ const y = new FormData(d), S = Array.from(d.querySelectorAll("input,select,textarea")).filter((h) => !!h.name).filter(
3299
+ (h) => !!h.name && (h.type !== "radio" || h.checked)
3300
+ ).map((h) => {
3299
3301
  let x;
3300
- const w = g.name;
3301
- if (g instanceof HTMLInputElement)
3302
- if (g.type === "radio") {
3303
- if (g.checked)
3304
- return x = g.name, {
3305
- key: w,
3302
+ const E = h.name;
3303
+ if (h instanceof HTMLInputElement)
3304
+ if (h.type === "radio") {
3305
+ if (h.checked)
3306
+ return x = h.value, {
3307
+ key: E,
3306
3308
  value: x
3307
3309
  };
3308
- } else if (g.type === "checkbox")
3309
- x = g.checked;
3310
- else if (g.type === "number" || g.type === "range") {
3311
- const D = g.valueAsNumber;
3312
- isNaN(D) || (x = D);
3310
+ } else if (h.type === "checkbox")
3311
+ x = h.checked;
3312
+ else if (h.type === "number" || h.type === "range") {
3313
+ const N = h.valueAsNumber;
3314
+ isNaN(N) || (x = N);
3313
3315
  } else
3314
- g.type === "file" ? x = g.files : x = g.value;
3316
+ h.type === "file" ? x = h.files : x = h.value;
3315
3317
  else
3316
- x = g.value;
3318
+ x = h.value;
3317
3319
  return {
3318
- key: w,
3320
+ key: E,
3319
3321
  value: x
3320
3322
  };
3321
3323
  });
3322
3324
  let k = e.contentType;
3323
- if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(S).forEach(({ value: g }) => {
3324
- (g instanceof File || Array.isArray(g) && g[0] instanceof File || g instanceof FileList) && (k = "multipart/form-data");
3325
+ if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(S).forEach(({ value: h }) => {
3326
+ (h instanceof File || Array.isArray(h) && h[0] instanceof File || h instanceof FileList) && (k = "multipart/form-data");
3325
3327
  }), k !== "application/json")
3326
3328
  p = y;
3327
3329
  else {
3328
- const g = {};
3329
- Array.from(S).forEach(({ value: x, key: w }) => {
3330
- ze(g, w, x);
3331
- }), p = JSON.stringify(g);
3330
+ const h = {};
3331
+ Array.from(S).forEach(({ value: x, key: E }) => {
3332
+ ze(h, E, x);
3333
+ }), p = JSON.stringify(h);
3332
3334
  }
3333
- k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (h["content-type"] = k));
3335
+ k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = k));
3334
3336
  const A = new CustomEvent("presubmit", { detail: { body: p } });
3335
3337
  if (t.current && (t.current.dispatchEvent(A), A.defaultPrevented))
3336
3338
  return;
3337
3339
  if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
3338
- const g = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3339
- console.error(g), i("error"), c({ formErrorMessage: g });
3340
+ const h = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3341
+ console.error(h), i("error"), c({ formErrorMessage: h });
3340
3342
  return;
3341
3343
  }
3342
3344
  const T = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3343
3345
  e.sendSubmissionsToEmail || ""
3344
- )}&name=${encodeURIComponent(e.name || "")}`, I = e.sendSubmissionsTo === "email" ? T : e.action;
3345
- Oe(I), fetch(I, { body: p, headers: h, method: e.method || "post" }).then(
3346
- async (g) => {
3347
- var D, O;
3346
+ )}&name=${encodeURIComponent(e.name || "")}`, w = e.sendSubmissionsTo === "email" ? T : e.action;
3347
+ Fe(w), fetch(w, { body: p, headers: g, method: e.method || "post" }).then(
3348
+ async (h) => {
3349
+ var N, F;
3348
3350
  let x;
3349
- const w = g.headers.get("content-type");
3350
- if (w && w.indexOf("application/json") !== -1 ? x = await g.json() : x = await g.text(), !g.ok) {
3351
- const $ = new CustomEvent("submit:error", {
3352
- detail: { error: x, status: g.status }
3351
+ const E = h.headers.get("content-type");
3352
+ if (E && E.indexOf("application/json") !== -1 ? x = await h.json() : x = await h.text(), !h.ok) {
3353
+ const _ = new CustomEvent("submit:error", {
3354
+ detail: { error: x, status: h.status }
3353
3355
  });
3354
- if ((D = t.current) != null && D.nativeElement && ((O = t.current) == null || O.nativeElement.dispatchEvent($), $.defaultPrevented))
3356
+ if ((N = t.current) != null && N.nativeElement && ((F = t.current) == null || F.nativeElement.dispatchEvent(_), _.defaultPrevented))
3355
3357
  return;
3356
3358
  o(x), i("error");
3357
3359
  let P = e.errorMessagePath ? Me(x, e.errorMessagePath) : x.message || x.error || x;
3358
3360
  typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
3359
3361
  return;
3360
3362
  }
3361
- if (o(x), i(g.ok ? "success" : "error"), g.ok) {
3362
- const $ = new CustomEvent("submit:success", {
3363
- detail: { res: g, body: x }
3363
+ if (o(x), i(h.ok ? "success" : "error"), h.ok) {
3364
+ const _ = new CustomEvent("submit:success", {
3365
+ detail: { res: h, body: x }
3364
3366
  });
3365
3367
  if (t.current) {
3366
- if (t.current.dispatchEvent($), $.defaultPrevented)
3368
+ if (t.current.dispatchEvent(_), _.defaultPrevented)
3367
3369
  return;
3368
3370
  e.resetFormOnSubmit !== !1 && t.current.reset();
3369
3371
  }
@@ -3377,20 +3379,20 @@ function Xn(e) {
3377
3379
  location.href = e.successUrl;
3378
3380
  }
3379
3381
  },
3380
- (g) => {
3382
+ (h) => {
3381
3383
  const x = new CustomEvent("submit:error", {
3382
- detail: { error: g }
3384
+ detail: { error: h }
3383
3385
  });
3384
- t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (o(g), i("error"));
3386
+ t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (o(h), i("error"));
3385
3387
  }
3386
3388
  );
3387
3389
  }
3388
3390
  }
3389
- return /* @__PURE__ */ W(R, { children: [
3391
+ return /* @__PURE__ */ $(R, { children: [
3390
3392
  " ",
3391
- /* @__PURE__ */ s("style", { children: ".pre-7c90c93e { padding: 10px; color: red; text-align: center; }" }),
3393
+ /* @__PURE__ */ s("style", { children: ".pre-26f6d56a { padding: 10px; color: red; text-align: center; }" }),
3392
3394
  " ",
3393
- /* @__PURE__ */ W(
3395
+ /* @__PURE__ */ $(
3394
3396
  "form",
3395
3397
  {
3396
3398
  validate: e.validate,
@@ -3403,7 +3405,7 @@ function Xn(e) {
3403
3405
  children: [
3404
3406
  e.children,
3405
3407
  u() === "error" ? /* @__PURE__ */ s(
3406
- _,
3408
+ U,
3407
3409
  {
3408
3410
  path: "errorMessage",
3409
3411
  blocks: e.errorMessage,
@@ -3411,16 +3413,16 @@ function Xn(e) {
3411
3413
  }
3412
3414
  ) : null,
3413
3415
  u() === "sending" ? /* @__PURE__ */ s(
3414
- _,
3416
+ U,
3415
3417
  {
3416
3418
  path: "sendingMessage",
3417
3419
  blocks: e.sendingMessage,
3418
3420
  context: e.builderContext
3419
3421
  }
3420
3422
  ) : null,
3421
- u() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7c90c93e", children: JSON.stringify(r, null, 2) }) : null,
3423
+ u() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-26f6d56a", children: JSON.stringify(r, null, 2) }) : null,
3422
3424
  u() === "success" ? /* @__PURE__ */ s(
3423
- _,
3425
+ U,
3424
3426
  {
3425
3427
  path: "successMessage",
3426
3428
  blocks: e.successMessage,
@@ -3791,10 +3793,10 @@ function ui(e) {
3791
3793
  return V(() => {
3792
3794
  if (e.lazyLoad) {
3793
3795
  const v = new IntersectionObserver(function(d) {
3794
- d.forEach(function(h) {
3795
- if (!h.isIntersecting)
3796
+ d.forEach(function(g) {
3797
+ if (!g.isIntersecting)
3796
3798
  return;
3797
- const p = h.target;
3799
+ const p = g.target;
3798
3800
  try {
3799
3801
  Array.from(p.children).filter(
3800
3802
  (y) => y instanceof HTMLElement && y.tagName === "SOURCE"
@@ -3811,7 +3813,7 @@ function ui(e) {
3811
3813
  }
3812
3814
  }, []), V(() => () => {
3813
3815
  r && r.disconnect();
3814
- }, []), /* @__PURE__ */ W(
3816
+ }, []), /* @__PURE__ */ $(
3815
3817
  "div",
3816
3818
  {
3817
3819
  style: {
@@ -3938,15 +3940,15 @@ const di = () => [{
3938
3940
  component: gn,
3939
3941
  ...$n
3940
3942
  }, {
3941
- component: Fn,
3943
+ component: On,
3942
3944
  ...Dn
3943
3945
  }, {
3944
3946
  component: Di,
3945
- ...On
3947
+ ...Fn
3946
3948
  }, {
3947
3949
  component: Hn,
3948
3950
  ...Un
3949
- }, ...rt.includes(F) ? [{
3951
+ }, ...rt.includes(O) ? [{
3950
3952
  component: Wn,
3951
3953
  ...Nn
3952
3954
  }] : [], {
@@ -4055,7 +4057,7 @@ const di = () => [{
4055
4057
  })), hi = ({
4056
4058
  canTrack: e,
4057
4059
  content: t
4058
- }) => !(!(oe(t).length > 0) || !e || M()), gi = (e) => e === "react" || e === "reactNative", bi = F === "angular", st = gi(F), yi = () => `
4060
+ }) => !(!(oe(t).length > 0) || !e || M()), gi = (e) => e === "react" || e === "reactNative", bi = O === "angular", st = gi(O), yi = () => `
4059
4061
  window.${at} = ${mi}
4060
4062
  window.${lt} = ${fi}
4061
4063
  `, pi = (e, t) => `
@@ -4109,7 +4111,7 @@ const xi = (e, t, n = !0) => {
4109
4111
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
4110
4112
  }
4111
4113
  };
4112
- }, Ci = ["svelte", "qwik", "vue"], De = () => Ci.includes(F) && (L() || se()), Ti = (e) => {
4114
+ }, Ci = ["svelte", "qwik", "vue"], De = () => Ci.includes(O) && (L() || se()), Ti = (e) => {
4113
4115
  var o, a;
4114
4116
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
4115
4117
  let r = "";
@@ -4166,34 +4168,34 @@ function Vi(e) {
4166
4168
  const t = H(null);
4167
4169
  C(() => !1);
4168
4170
  function n(T) {
4169
- var g, x;
4170
- const I = {
4171
+ var h, x;
4172
+ const w = {
4171
4173
  ...e.builderContextSignal.rootState,
4172
4174
  ...T
4173
4175
  };
4174
- e.builderContextSignal.rootSetState ? (x = (g = e.builderContextSignal).rootSetState) == null || x.call(g, I) : e.setBuilderContextSignal((w) => ({
4175
- ...w,
4176
- rootState: I
4176
+ e.builderContextSignal.rootSetState ? (x = (h = e.builderContextSignal).rootSetState) == null || x.call(h, w) : e.setBuilderContextSignal((E) => ({
4177
+ ...E,
4178
+ rootState: w
4177
4179
  }));
4178
4180
  }
4179
4181
  function i(T) {
4180
- var g, x, w, D, O;
4181
- const I = {
4182
+ var h, x, E, N, F;
4183
+ const w = {
4182
4184
  ...e.builderContextSignal.content,
4183
4185
  ...T,
4184
4186
  data: {
4185
- ...(g = e.builderContextSignal.content) == null ? void 0 : g.data,
4187
+ ...(h = e.builderContextSignal.content) == null ? void 0 : h.data,
4186
4188
  ...T == null ? void 0 : T.data
4187
4189
  },
4188
4190
  meta: {
4189
4191
  ...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
4190
4192
  ...T == null ? void 0 : T.meta,
4191
- breakpoints: ((w = T == null ? void 0 : T.meta) == null ? void 0 : w.breakpoints) || ((O = (D = e.builderContextSignal.content) == null ? void 0 : D.meta) == null ? void 0 : O.breakpoints)
4193
+ breakpoints: ((E = T == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || ((F = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : F.breakpoints)
4192
4194
  }
4193
4195
  };
4194
- e.setBuilderContextSignal(($) => ({
4195
- ...$,
4196
- content: I
4196
+ e.setBuilderContextSignal((_) => ({
4197
+ ..._,
4198
+ content: w
4197
4199
  }));
4198
4200
  }
4199
4201
  function r() {
@@ -4210,74 +4212,96 @@ function Vi(e) {
4210
4212
  model: e.model,
4211
4213
  trustedHosts: e.trustedHosts,
4212
4214
  callbacks: {
4213
- configureSdk: (I) => {
4214
- var w;
4215
- const { breakpoints: g, contentId: x } = I;
4216
- !x || x !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || g && i({
4215
+ configureSdk: (w) => {
4216
+ var E;
4217
+ const { breakpoints: h, contentId: x } = w;
4218
+ !x || x !== ((E = e.builderContextSignal.content) == null ? void 0 : E.id) || h && i({
4217
4219
  meta: {
4218
- breakpoints: g
4220
+ breakpoints: h
4219
4221
  }
4220
4222
  });
4221
4223
  },
4222
- animation: (I) => {
4223
- Ge(I);
4224
+ animation: (w) => {
4225
+ Ge(w);
4224
4226
  },
4225
- contentUpdate: (I) => {
4226
- i(I);
4227
+ contentUpdate: (w) => {
4228
+ i(w);
4227
4229
  },
4228
- stateUpdate: (I) => {
4229
- n(I);
4230
+ stateUpdate: (w) => {
4231
+ n(w);
4230
4232
  }
4231
4233
  }
4232
4234
  })(T);
4233
4235
  }
4234
4236
  const [c, u] = C(() => ({})), [f, b] = C(() => ({})), [m, v] = C(() => !1);
4235
4237
  function d(T) {
4236
- var I, g;
4238
+ var w, h;
4237
4239
  if (e.builderContextSignal.content) {
4238
- const x = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (g = e.builderContextSignal.content) == null ? void 0 : g.id;
4240
+ const x = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, E = (h = e.builderContextSignal.content) == null ? void 0 : h.id;
4239
4241
  Te({
4240
4242
  apiHost: e.apiHost,
4241
4243
  type: "click",
4242
4244
  canTrack: Z(e.canTrack),
4243
- contentId: w,
4245
+ contentId: E,
4244
4246
  apiKey: e.apiKey,
4245
- variationId: x !== w ? x : void 0,
4247
+ variationId: x !== E ? x : void 0,
4246
4248
  ...ki(T),
4247
4249
  unique: !m
4248
4250
  });
4249
4251
  }
4250
4252
  m || v(!0);
4251
4253
  }
4252
- function h() {
4253
- var I, g, x;
4254
- const T = (x = (g = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : g.httpRequests) != null ? x : {};
4255
- Object.entries(T).forEach(([w, D]) => {
4256
- if (!D || f[w] || c[w] && !L())
4257
- return;
4258
- f[w] = !0;
4259
- const O = D.replace(
4260
- /{{([^}]+)}}/g,
4261
- ($, P) => String(
4262
- G({
4263
- code: P,
4264
- context: e.context || {},
4265
- localState: void 0,
4266
- rootState: e.builderContextSignal.rootState,
4267
- rootSetState: e.builderContextSignal.rootSetState
4268
- })
4269
- )
4270
- );
4271
- Oe(O), fetch(O).then(($) => $.json()).then(($) => {
4272
- n({
4273
- [w]: $
4274
- }), c[w] = !0;
4275
- }).catch(($) => {
4276
- console.error("error fetching dynamic data", D, $);
4277
- }).finally(() => {
4278
- f[w] = !1;
4279
- });
4280
- });
4254
+ function g() {
4255
+ var w, h, x;
4256
+ const T = (x = (h = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : h.httpRequests) != null ? x : {};
4257
+ Object.entries(T).forEach(
4258
+ ([E, N]) => {
4259
+ if (!N)
4260
+ return;
4261
+ const F = typeof N == "object" && N["@type"] === "@builder.io/core:Request";
4262
+ if (f[E] || c[E] && !L())
4263
+ return;
4264
+ const _ = F ? N.request.url : N;
4265
+ f[E] = !0;
4266
+ const P = _.replace(
4267
+ /{{([^}]+)}}/g,
4268
+ (I, B) => String(
4269
+ G({
4270
+ code: B,
4271
+ context: e.context || {},
4272
+ localState: void 0,
4273
+ rootState: e.builderContextSignal.rootState,
4274
+ rootSetState: e.builderContextSignal.rootSetState
4275
+ })
4276
+ )
4277
+ ), D = F ? {
4278
+ url: P,
4279
+ method: N.request.method,
4280
+ headers: N.request.headers,
4281
+ body: N.request.body
4282
+ } : {
4283
+ url: P,
4284
+ method: "GET"
4285
+ };
4286
+ Fe(JSON.stringify(D)), fetch(D.url, {
4287
+ method: D.method,
4288
+ headers: D.headers,
4289
+ body: D.body
4290
+ }).then((I) => I.json()).then((I) => {
4291
+ n({
4292
+ [E]: I
4293
+ }), c[E] = !0;
4294
+ }).catch((I) => {
4295
+ console.error(
4296
+ "error fetching dynamic data",
4297
+ JSON.stringify(N),
4298
+ I
4299
+ );
4300
+ }).finally(() => {
4301
+ f[E] = !1;
4302
+ });
4303
+ }
4304
+ );
4281
4305
  }
4282
4306
  function p() {
4283
4307
  L() && window.dispatchEvent(
@@ -4295,8 +4319,8 @@ function Vi(e) {
4295
4319
  );
4296
4320
  }
4297
4321
  const y = H(!1);
4298
- return y.current || (h(), p(), y.current = !0), V(() => {
4299
- var T, I, g, x, w;
4322
+ return y.current || (g(), p(), y.current = !0), V(() => {
4323
+ var T, w, h, x, E;
4300
4324
  if (M()) {
4301
4325
  L() && !e.isNestedRender && (window.addEventListener("message", l), ut({
4302
4326
  ...e.locale ? {
@@ -4313,45 +4337,45 @@ function Vi(e) {
4313
4337
  }), Object.values(
4314
4338
  e.builderContextSignal.componentInfos
4315
4339
  ).forEach((P) => {
4316
- var U, E;
4317
- if (!((U = P.models) != null && U.length) || P.models.includes(e.model)) {
4340
+ var D, I;
4341
+ if (!((D = P.models) != null && D.length) || P.models.includes(e.model)) {
4318
4342
  const B = dt(P);
4319
- (E = window.parent) == null || E.postMessage(B, "*");
4343
+ (I = window.parent) == null || I.postMessage(B, "*");
4320
4344
  }
4321
4345
  }), window.addEventListener(
4322
4346
  "builder:component:stateChangeListenerActivated",
4323
4347
  p
4324
4348
  ));
4325
- const D = e.builderContextSignal.content && Z(e.canTrack), O = mt({
4326
- name: `builder.tests.${(I = e.builderContextSignal.content) == null ? void 0 : I.id}`,
4349
+ const N = e.builderContextSignal.content && Z(e.canTrack), F = mt({
4350
+ name: `builder.tests.${(w = e.builderContextSignal.content) == null ? void 0 : w.id}`,
4327
4351
  canTrack: !0
4328
- }), $ = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId;
4329
- if (D && $ === O) {
4330
- const P = (x = e.builderContextSignal.content) == null ? void 0 : x.id, U = e.apiKey;
4352
+ }), _ = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId;
4353
+ if (N && _ === F) {
4354
+ const P = (x = e.builderContextSignal.content) == null ? void 0 : x.id, D = e.apiKey;
4331
4355
  Te({
4332
4356
  apiHost: e.apiHost,
4333
4357
  type: "impression",
4334
4358
  canTrack: !0,
4335
4359
  contentId: P,
4336
- apiKey: U,
4337
- variationId: O !== P ? O : void 0
4360
+ apiKey: D,
4361
+ variationId: F !== P ? F : void 0
4338
4362
  });
4339
4363
  }
4340
4364
  if (se() && !L()) {
4341
- const P = new URL(location.href).searchParams, U = P.get("builder.preview"), E = P.get(
4342
- `builder.overrides.${U}`
4365
+ const P = new URL(location.href).searchParams, D = P.get("builder.preview"), I = P.get(
4366
+ `builder.overrides.${D}`
4343
4367
  ), B = P.get("apiKey") || P.get("builder.space");
4344
- (U === "BUILDER_STUDIO" || U === e.model && B === e.apiKey && (!e.content || E === e.content.id)) && Le({
4368
+ (D === "BUILDER_STUDIO" || D === e.model && B === e.apiKey && (!e.content || I === e.content.id)) && Le({
4345
4369
  model: e.model,
4346
4370
  apiKey: e.apiKey,
4347
4371
  apiVersion: e.builderContextSignal.apiVersion,
4348
- ...U === "BUILDER_STUDIO" && ((w = e.context) != null && w.symbolId) ? {
4372
+ ...D === "BUILDER_STUDIO" && ((E = e.context) != null && E.symbolId) ? {
4349
4373
  query: {
4350
4374
  id: e.context.symbolId
4351
4375
  }
4352
4376
  } : {}
4353
- }).then((N) => {
4354
- N && i(N);
4377
+ }).then((W) => {
4378
+ W && i(W);
4355
4379
  });
4356
4380
  }
4357
4381
  }
@@ -4439,8 +4463,8 @@ const Bi = ({
4439
4463
  },
4440
4464
  meta: e == null ? void 0 : e.meta
4441
4465
  } : void 0;
4442
- function Fe(e) {
4443
- var u, f, b, m, v, d, h, p, y;
4466
+ function Oe(e) {
4467
+ var u, f, b, m, v, d, g, p, y;
4444
4468
  const [t, n] = C(
4445
4469
  () => {
4446
4470
  var S, k;
@@ -4526,7 +4550,7 @@ function Fe(e) {
4526
4550
  value: {
4527
4551
  registeredComponents: r
4528
4552
  },
4529
- children: /* @__PURE__ */ W(
4553
+ children: /* @__PURE__ */ $(
4530
4554
  Vi,
4531
4555
  {
4532
4556
  apiHost: e.apiHost,
@@ -4562,11 +4586,11 @@ function Fe(e) {
4562
4586
  isNestedRender: e.isNestedRender,
4563
4587
  contentId: (b = a.content) == null ? void 0 : b.id,
4564
4588
  cssCode: (v = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
4565
- customFonts: (h = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : h.customFonts
4589
+ customFonts: (g = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : g.customFonts
4566
4590
  }
4567
4591
  ),
4568
4592
  /* @__PURE__ */ s(
4569
- _,
4593
+ U,
4570
4594
  {
4571
4595
  blocks: (y = (p = a.content) == null ? void 0 : p.data) == null ? void 0 : y.blocks,
4572
4596
  context: a,
@@ -4612,8 +4636,8 @@ function Wi(e) {
4612
4636
  });
4613
4637
  }
4614
4638
  return V(() => {
4615
- }, []), /* @__PURE__ */ W(R, { children: [
4616
- !e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ W(R, { children: [
4639
+ }, []), /* @__PURE__ */ $(R, { children: [
4640
+ !e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ $(R, { children: [
4617
4641
  /* @__PURE__ */ s(
4618
4642
  j,
4619
4643
  {
@@ -4622,7 +4646,7 @@ function Wi(e) {
4622
4646
  nonce: e.nonce || ""
4623
4647
  }
4624
4648
  ),
4625
- rt.includes(F) ? /* @__PURE__ */ s(
4649
+ rt.includes(O) ? /* @__PURE__ */ s(
4626
4650
  j,
4627
4651
  {
4628
4652
  id: "builderio-init-personalization-variants-fns",
@@ -4631,7 +4655,7 @@ function Wi(e) {
4631
4655
  }
4632
4656
  ) : null
4633
4657
  ] }) : null,
4634
- t ? /* @__PURE__ */ W(R, { children: [
4658
+ t ? /* @__PURE__ */ $(R, { children: [
4635
4659
  /* @__PURE__ */ s(
4636
4660
  ee,
4637
4661
  {
@@ -4649,7 +4673,7 @@ function Wi(e) {
4649
4673
  }
4650
4674
  ),
4651
4675
  (a = oe(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ s(
4652
- Fe,
4676
+ Oe,
4653
4677
  {
4654
4678
  apiHost: e.apiHost,
4655
4679
  isNestedRender: e.isNestedRender,
@@ -4677,7 +4701,7 @@ function Wi(e) {
4677
4701
  ))
4678
4702
  ] }) : null,
4679
4703
  /* @__PURE__ */ s(
4680
- Fe,
4704
+ Oe,
4681
4705
  {
4682
4706
  apiHost: e.apiHost,
4683
4707
  nonce: e.nonce,
@@ -4732,12 +4756,12 @@ function Di(e) {
4732
4756
  return "div";
4733
4757
  }
4734
4758
  function i() {
4735
- var d, h;
4759
+ var d, g;
4736
4760
  return [
4737
4761
  e.attributes[z()],
4738
4762
  "builder-symbol",
4739
4763
  (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
4740
- (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4764
+ (g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4741
4765
  ].filter(Boolean).join(" ");
4742
4766
  }
4743
4767
  const [r, o] = C(() => {
@@ -4752,9 +4776,9 @@ function Di(e) {
4752
4776
  r && a === ((d = e.symbol) == null ? void 0 : d.entry) || $i({
4753
4777
  symbol: e.symbol,
4754
4778
  builderContextValue: e.builderContext
4755
- }).then((h) => {
4779
+ }).then((g) => {
4756
4780
  var p;
4757
- h && (o(h), l((p = e.symbol) == null ? void 0 : p.entry));
4781
+ g && (o(g), l((p = e.symbol) == null ? void 0 : p.entry));
4758
4782
  });
4759
4783
  }
4760
4784
  return V(() => {
@@ -4787,7 +4811,7 @@ function Di(e) {
4787
4811
  ) });
4788
4812
  }
4789
4813
  export {
4790
- _ as Blocks,
4814
+ U as Blocks,
4791
4815
  pe as BuilderContext,
4792
4816
  pt as Button,
4793
4817
  un as Columns,