@builder.io/sdk-react 1.0.35 → 1.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/lib/browser/blocks-exports.cjs +21 -21
  2. package/lib/browser/blocks-exports.mjs +228 -174
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +6 -6
  6. package/lib/browser/init.mjs +29 -19
  7. package/lib/browser/{server-entry-6bbf0d8e.cjs → server-entry-4168b816.cjs} +1 -1
  8. package/lib/browser/{server-entry-b3ba0c65.js → server-entry-b8f6be3b.js} +1 -1
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/{accordion-5b4a3309.js → accordion-18fbb30e.js} +1 -1
  12. package/lib/edge/{accordion-5cca8f06.cjs → accordion-e40979bc.cjs} +1 -1
  13. package/lib/edge/{blocks-7855e195.cjs → blocks-48a9ac8c.cjs} +1 -1
  14. package/lib/edge/{blocks-30dbe829.js → blocks-9b142e90.js} +2 -2
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-94d3cdf8.js → button-be9403e7.js} +2 -2
  18. package/lib/edge/{button-1e80769d.cjs → button-c2ff97e9.cjs} +1 -1
  19. package/lib/edge/{columns-18e70134.cjs → columns-118e1fc1.cjs} +1 -1
  20. package/lib/edge/{columns-e5074ad9.js → columns-920ca800.js} +3 -3
  21. package/lib/edge/{content-variants-d6dca201.cjs → content-variants-1eb4aebc.cjs} +14 -14
  22. package/lib/edge/{content-variants-4450b25f.js → content-variants-ed1f803b.js} +139 -100
  23. package/lib/edge/{form-a08b5177.cjs → form-a9271b51.cjs} +1 -1
  24. package/lib/edge/{form-9ddabd0e.js → form-cbcf22d5.js} +3 -3
  25. package/lib/edge/{get-class-prop-name-d5155434.js → get-class-prop-name-90c8ac6c.js} +1 -1
  26. package/lib/edge/{get-class-prop-name-3a85a54d.cjs → get-class-prop-name-af6b922f.cjs} +1 -1
  27. package/lib/edge/{img-256419c6.js → img-1f1b4871.js} +1 -1
  28. package/lib/edge/{img-a38d9d0b.cjs → img-2deeb066.cjs} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/init.cjs +6 -6
  32. package/lib/edge/init.mjs +29 -19
  33. package/lib/edge/{input-76252038.cjs → input-4b3e5f88.cjs} +1 -1
  34. package/lib/edge/{input-e030821e.js → input-514915f8.js} +1 -1
  35. package/lib/edge/{select-92af3038.js → select-3925e227.js} +5 -4
  36. package/lib/edge/select-82d8052d.cjs +1 -0
  37. package/lib/edge/{server-entry-b8d1a7db.js → server-entry-57fedeba.js} +1 -1
  38. package/lib/edge/{server-entry-5b4426a1.cjs → server-entry-a00fcff8.cjs} +1 -1
  39. package/lib/edge/server-entry.cjs +1 -1
  40. package/lib/edge/server-entry.mjs +1 -1
  41. package/lib/edge/{slot-27ff859a.cjs → slot-21fe373f.cjs} +1 -1
  42. package/lib/edge/{slot-27c3a577.js → slot-aa7280f8.js} +3 -3
  43. package/lib/edge/{symbol-3c1f8827.cjs → symbol-a0ab57ea.cjs} +1 -1
  44. package/lib/edge/{symbol-6c0f8a5c.js → symbol-ac48d2ec.js} +2 -2
  45. package/lib/edge/{tabs-5b4535f0.js → tabs-9b5261d0.js} +3 -3
  46. package/lib/edge/{tabs-770b1029.cjs → tabs-df436d1e.cjs} +1 -1
  47. package/lib/edge/textarea-56a875bc.cjs +1 -0
  48. package/lib/edge/textarea-d29025e9.js +17 -0
  49. package/lib/node/blocks-exports.cjs +23 -23
  50. package/lib/node/blocks-exports.mjs +202 -148
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +2 -2
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +2 -2
  55. package/lib/node/{node-runtime-79df5f59.js → node-runtime-1b85663b.js} +51 -41
  56. package/lib/node/node-runtime-d59eb154.cjs +48 -0
  57. package/lib/node/{server-entry-ea775ab5.js → server-entry-8081c6b9.js} +1 -1
  58. package/lib/node/{server-entry-11bc96ae.cjs → server-entry-dc1afebd.cjs} +1 -1
  59. package/lib/node/server-entry.cjs +1 -1
  60. package/lib/node/server-entry.mjs +1 -1
  61. package/package.json +1 -2
  62. package/types/blocks/form/select/select.d.ts +1 -0
  63. package/types/blocks/form/textarea/component-info.d.ts +2 -0
  64. package/types/blocks/{textarea → form/textarea}/textarea.d.ts +1 -0
  65. package/types/constants/sdk-name.d.ts +1 -0
  66. package/types/constants/sdk-version.d.ts +1 -1
  67. package/lib/edge/select-98849dc7.cjs +0 -1
  68. package/lib/node/node-runtime-80dbd8f2.cjs +0 -48
  69. package/types/blocks/textarea/component-info.d.ts +0 -2
  70. /package/types/blocks/{textarea → form/textarea}/index.d.ts +0 -0
@@ -2,8 +2,8 @@
2
2
  var Ke = Object.defineProperty;
3
3
  var qe = (e, t, n) => t in e ? Ke(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 E, jsxs as B } from "react/jsx-runtime";
6
- import { TARGET as L, isEditing as $, isBrowser as H, getUserAttributes as _e, checkIsDefined as G, logger as Z, fastClone as de, registerInsertMenu as ze, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as ge, handleABTestingSync as Ze } from "./server-entry-b3ba0c65.js";
5
+ import { jsx as s, Fragment as E, jsxs as V } from "react/jsx-runtime";
6
+ import { TARGET as L, isEditing as $, isBrowser as H, getUserAttributes as _e, checkIsDefined as G, logger as Z, fastClone as de, registerInsertMenu as ze, setupBrowserForEditing as Je, createRegisterComponentMessage as Ye, getDefaultCanTrack as Q, _track as he, isPreviewing as Ge, fetchOneEntry as we, createEditorListener as Qe, fetch as Xe, serializeComponentInfo as ge, handleABTestingSync as Ze } from "./server-entry-b8f6be3b.js";
7
7
  import { createContext as Ee, useState as C, useEffect as P, useContext as be, useRef as ee, createElement as Re } from "react";
8
8
  const et = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), tt = (e) => typeof e == "string" && et.has(e.toLowerCase());
9
9
  function ue(e) {
@@ -60,7 +60,7 @@ const me = Ee({
60
60
  inheritedStyles: {},
61
61
  BlocksWrapper: "div",
62
62
  BlocksWrapperProps: {}
63
- }), Be = Ee({ registeredComponents: {} });
63
+ }), Ve = Ee({ registeredComponents: {} });
64
64
  function it(e) {
65
65
  var t;
66
66
  return {
@@ -100,7 +100,7 @@ const ot = ({
100
100
  builder: t,
101
101
  context: n,
102
102
  event: i,
103
- state: Ve({
103
+ state: Be({
104
104
  rootState: a,
105
105
  localState: o,
106
106
  rootSetState: r
@@ -108,7 +108,7 @@ const ot = ({
108
108
  });
109
109
  return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
110
110
  };
111
- function Ve({
111
+ function Be({
112
112
  rootState: e,
113
113
  localState: t,
114
114
  rootSetState: n
@@ -118,7 +118,7 @@ function Ve({
118
118
  if (t && o in t)
119
119
  return t[o];
120
120
  const r = i[o];
121
- return typeof r == "object" && r !== null ? Ve({
121
+ return typeof r == "object" && r !== null ? Be({
122
122
  rootState: r,
123
123
  localState: void 0,
124
124
  rootSetState: n ? (a) => {
@@ -286,7 +286,7 @@ function mt(e) {
286
286
  for (const t of e)
287
287
  switch (t.trigger) {
288
288
  case "pageLoad":
289
- We(t);
289
+ Fe(t);
290
290
  break;
291
291
  case "scrollInView":
292
292
  ht(t);
@@ -309,7 +309,7 @@ function ft(e) {
309
309
  t.indexOf(i) === -1 && t.push(i);
310
310
  return t;
311
311
  }
312
- function We(e) {
312
+ function Fe(e) {
313
313
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
314
314
  if (!t.length) {
315
315
  Ae(e.elementId || e.id || "");
@@ -358,10 +358,10 @@ function ht(e) {
358
358
  }), r();
359
359
  });
360
360
  }
361
- const Fe = (e) => Object.entries(e).map(([n, i]) => {
361
+ const We = (e) => Object.entries(e).map(([n, i]) => {
362
362
  if (typeof i == "string")
363
363
  return `${te(n)}: ${i};`;
364
- }).filter(G), gt = (e) => Fe(e).join(`
364
+ }).filter(G), gt = (e) => We(e).join(`
365
365
  `), J = ({
366
366
  mediaQuery: e,
367
367
  className: t,
@@ -393,7 +393,7 @@ function $e(e) {
393
393
  case "vue":
394
394
  case "solid":
395
395
  case "angular":
396
- return Fe(e).join(" ");
396
+ return We(e).join(" ");
397
397
  case "qwik":
398
398
  case "reactNative":
399
399
  case "react":
@@ -457,9 +457,9 @@ const yt = ({
457
457
  },
458
458
  block: i
459
459
  }));
460
- }, St = (e, t) => e && (e.isRSC && L === "rsc" || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
460
+ }, vt = (e, t) => e && (e.isRSC && L === "rsc" || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
461
461
  builderLinkComponent: t
462
- } : {}, vt = (e, t) => e && (e.isRSC && L === "rsc" || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
462
+ } : {}, St = (e, t) => e && (e.isRSC && L === "rsc" || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
463
463
  builderComponents: t
464
464
  } : {}, kt = (e, t) => e && (e.isRSC && L === "rsc" || L === "reactNative" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Image", "Video"].includes(e.name)) ? {
465
465
  builderBlock: t
@@ -530,7 +530,7 @@ function Tt(e) {
530
530
  return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
531
531
  }
532
532
  function n() {
533
- var x, R, V;
533
+ var x, R, B;
534
534
  const i = X({
535
535
  block: e.block,
536
536
  localState: e.context.localState,
@@ -563,7 +563,7 @@ function Tt(e) {
563
563
  }) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
564
564
  let I = "";
565
565
  if (p) {
566
- const A = ((V = (R = p.steps) == null ? void 0 : R[1]) == null ? void 0 : V.styles) || {};
566
+ const A = ((B = (R = p.steps) == null ? void 0 : R[1]) == null ? void 0 : B.styles) || {};
567
567
  I = J({
568
568
  className: `${f}:hover`,
569
569
  styles: {
@@ -623,7 +623,7 @@ function Rt({
623
623
  }) {
624
624
  return e;
625
625
  }
626
- const Bt = (e) => ({
626
+ const Vt = (e) => ({
627
627
  href: e.href
628
628
  });
629
629
  function fe({
@@ -632,7 +632,7 @@ function fe({
632
632
  }) {
633
633
  var i;
634
634
  const n = {
635
- ...Bt(e),
635
+ ...Vt(e),
636
636
  ...e.properties,
637
637
  "builder-id": e.id,
638
638
  style: pt({
@@ -647,7 +647,7 @@ function fe({
647
647
  block: e
648
648
  });
649
649
  }
650
- function Vt(e) {
650
+ function Bt(e) {
651
651
  return /* @__PURE__ */ s(
652
652
  ue,
653
653
  {
@@ -809,8 +809,8 @@ function z(e) {
809
809
  ...it(i()),
810
810
  ...kt(t(), i()),
811
811
  ...Ct(t(), e.context),
812
- ...St(t(), e.linkComponent),
813
- ...vt(
812
+ ...vt(t(), e.linkComponent),
813
+ ...St(
814
814
  t(),
815
815
  e.registeredComponents
816
816
  )
@@ -831,7 +831,7 @@ function z(e) {
831
831
  elementId: d
832
832
  }))
833
833
  );
834
- }, []), /* @__PURE__ */ s(E, { children: r() ? /* @__PURE__ */ B(E, { children: [
834
+ }, []), /* @__PURE__ */ s(E, { children: r() ? /* @__PURE__ */ V(E, { children: [
835
835
  /* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
836
836
  (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
837
837
  xe,
@@ -855,8 +855,8 @@ function z(e) {
855
855
  linkComponent: e.linkComponent
856
856
  },
857
857
  m
858
- )) }) : /* @__PURE__ */ B(
859
- Vt,
858
+ )) }) : /* @__PURE__ */ V(
859
+ Bt,
860
860
  {
861
861
  Wrapper: o(),
862
862
  block: i(),
@@ -891,7 +891,7 @@ function z(e) {
891
891
  ) })
892
892
  ] }) : null });
893
893
  }
894
- function Wt(e) {
894
+ function Ft(e) {
895
895
  function t() {
896
896
  var o;
897
897
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
@@ -922,7 +922,7 @@ function Wt(e) {
922
922
  "*"
923
923
  ));
924
924
  }
925
- return /* @__PURE__ */ B(E, { children: [
925
+ return /* @__PURE__ */ V(E, { children: [
926
926
  /* @__PURE__ */ s(
927
927
  e.BlocksWrapper,
928
928
  {
@@ -946,9 +946,9 @@ function Wt(e) {
946
946
  }
947
947
  function D(e) {
948
948
  var i, o, r;
949
- const t = be(me), n = be(Be);
949
+ const t = be(me), n = be(Ve);
950
950
  return /* @__PURE__ */ s(
951
- Wt,
951
+ Ft,
952
952
  {
953
953
  blocks: e.blocks,
954
954
  parent: e.parent,
@@ -969,7 +969,7 @@ function D(e) {
969
969
  }
970
970
  );
971
971
  }
972
- const Ft = (e) => `builder-columns ${e}-breakpoints`;
972
+ const Wt = (e) => `builder-columns ${e}-breakpoints`;
973
973
  function $t(e) {
974
974
  var A, j;
975
975
  const [t, n] = C(
@@ -977,28 +977,28 @@ function $t(e) {
977
977
  ), [i, o] = C(() => e.columns || []), [r, a] = C(
978
978
  () => e.stackColumnsAt || "tablet"
979
979
  );
980
- function l(v) {
981
- return v.link ? e.builderLinkComponent || "a" : "div";
980
+ function l(S) {
981
+ return S.link ? e.builderLinkComponent || "a" : "div";
982
982
  }
983
- function c(v) {
983
+ function c(S) {
984
984
  var w;
985
- return ((w = i[v]) == null ? void 0 : w.width) || 100 / i.length;
985
+ return ((w = i[S]) == null ? void 0 : w.width) || 100 / i.length;
986
986
  }
987
- function u(v) {
987
+ function u(S) {
988
988
  const w = t * (i.length - 1) / i.length;
989
- return `calc(${c(v)}% - ${w}px)`;
989
+ return `calc(${c(S)}% - ${w}px)`;
990
990
  }
991
991
  function f({
992
- stackedStyle: v,
992
+ stackedStyle: S,
993
993
  desktopStyle: w
994
994
  }) {
995
- return r === "tablet" ? v : w;
995
+ return r === "tablet" ? S : w;
996
996
  }
997
997
  function d({
998
- stackedStyle: v,
998
+ stackedStyle: S,
999
999
  desktopStyle: w
1000
1000
  }) {
1001
- return r === "never" ? w : v;
1001
+ return r === "never" ? w : S;
1002
1002
  }
1003
1003
  const [m, g] = C(
1004
1004
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
@@ -1012,19 +1012,19 @@ function $t(e) {
1012
1012
  })
1013
1013
  };
1014
1014
  }
1015
- function I(v) {
1016
- const w = v === 0 ? 0 : t, W = u(v), b = `${w}px`, h = "100%", y = 0;
1015
+ function I(S) {
1016
+ const w = S === 0 ? 0 : t, F = u(S), b = `${w}px`, h = "100%", y = 0;
1017
1017
  return {
1018
1018
  ...{
1019
1019
  display: "flex",
1020
1020
  flexDirection: "column",
1021
1021
  alignItems: "stretch"
1022
1022
  },
1023
- width: W,
1023
+ width: F,
1024
1024
  ["marginLeft"]: b,
1025
1025
  "--column-width-mobile": d({
1026
1026
  stackedStyle: h,
1027
- desktopStyle: W
1027
+ desktopStyle: F
1028
1028
  }),
1029
1029
  "--column-margin-left-mobile": d({
1030
1030
  stackedStyle: y,
@@ -1032,7 +1032,7 @@ function $t(e) {
1032
1032
  }),
1033
1033
  "--column-width-tablet": f({
1034
1034
  stackedStyle: h,
1035
- desktopStyle: W
1035
+ desktopStyle: F
1036
1036
  }),
1037
1037
  "--column-margin-left-tablet": f({
1038
1038
  stackedStyle: y,
@@ -1040,11 +1040,11 @@ function $t(e) {
1040
1040
  })
1041
1041
  };
1042
1042
  }
1043
- function x(v) {
1044
- var W, b;
1043
+ function x(S) {
1044
+ var F, b;
1045
1045
  return Le(
1046
- ((b = (W = e.builderContext.content) == null ? void 0 : W.meta) == null ? void 0 : b.breakpoints) || {}
1047
- )[v].max;
1046
+ ((b = (F = e.builderContext.content) == null ? void 0 : F.meta) == null ? void 0 : b.breakpoints) || {}
1047
+ )[S].max;
1048
1048
  }
1049
1049
  function R() {
1050
1050
  return `
@@ -1073,29 +1073,29 @@ function $t(e) {
1073
1073
  },
1074
1074
  `;
1075
1075
  }
1076
- function V(v, w) {
1076
+ function B(S, w) {
1077
1077
  return {
1078
- ...v.link ? {
1079
- href: v.link
1078
+ ...S.link ? {
1079
+ href: S.link
1080
1080
  } : {},
1081
1081
  [q()]: "builder-column",
1082
1082
  style: $e(I(w))
1083
1083
  };
1084
1084
  }
1085
- return /* @__PURE__ */ B(E, { children: [
1086
- /* @__PURE__ */ B(
1085
+ return /* @__PURE__ */ V(E, { children: [
1086
+ /* @__PURE__ */ V(
1087
1087
  "div",
1088
1088
  {
1089
- className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
1089
+ className: Wt((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
1090
1090
  style: p(),
1091
1091
  children: [
1092
1092
  /* @__PURE__ */ s(ne, { id: "builderio-columns", styles: R() }),
1093
- (j = e.columns) == null ? void 0 : j.map((v, w) => /* @__PURE__ */ s(
1093
+ (j = e.columns) == null ? void 0 : j.map((S, w) => /* @__PURE__ */ s(
1094
1094
  ue,
1095
1095
  {
1096
- TagName: l(v),
1096
+ TagName: l(S),
1097
1097
  actionAttributes: {},
1098
- attributes: V(v, w),
1098
+ attributes: B(S, w),
1099
1099
  children: /* @__PURE__ */ s(
1100
1100
  D,
1101
1101
  {
@@ -1107,7 +1107,7 @@ function $t(e) {
1107
1107
  context: e.builderContext,
1108
1108
  registeredComponents: e.builderComponents,
1109
1109
  linkComponent: e.builderLinkComponent,
1110
- blocks: v.blocks
1110
+ blocks: S.blocks
1111
1111
  }
1112
1112
  )
1113
1113
  },
@@ -1125,7 +1125,7 @@ function $t(e) {
1125
1125
  function Dt(e) {
1126
1126
  return /* @__PURE__ */ s("span", { children: e.children });
1127
1127
  }
1128
- function Se(e) {
1128
+ function ve(e) {
1129
1129
  return e.replace(/http(s)?:/, "");
1130
1130
  }
1131
1131
  function Lt(e = "", t, n) {
@@ -1136,11 +1136,11 @@ function Ot(e, t) {
1136
1136
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1137
1137
  return e;
1138
1138
  if (t === "master")
1139
- return Se(e);
1139
+ return ve(e);
1140
1140
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1141
1141
  if (n) {
1142
1142
  const i = e.split(n[0]), o = n[3], r = t.match("x") ? t : `${t}x`;
1143
- return Se(`${i[0]}_${r}${o}`);
1143
+ return ve(`${i[0]}_${r}${o}`);
1144
1144
  }
1145
1145
  return null;
1146
1146
  }
@@ -1185,9 +1185,9 @@ function jt(e) {
1185
1185
  };
1186
1186
  return e.aspectRatio ? f : void 0;
1187
1187
  }
1188
- return /* @__PURE__ */ B(E, { children: [
1189
- /* @__PURE__ */ B(E, { children: [
1190
- /* @__PURE__ */ B("picture", { children: [
1188
+ return /* @__PURE__ */ V(E, { children: [
1189
+ /* @__PURE__ */ V(E, { children: [
1190
+ /* @__PURE__ */ V("picture", { children: [
1191
1191
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1192
1192
  /* @__PURE__ */ s(
1193
1193
  "img",
@@ -1378,7 +1378,7 @@ const ae = {
1378
1378
  e.get("useChildrenForItems") === !0 && e.set("items", []);
1379
1379
  }
1380
1380
  }]
1381
- }, ve = (e) => e.toString();
1381
+ }, Se = (e) => e.toString();
1382
1382
  function Ht(e) {
1383
1383
  var d;
1384
1384
  const [t, n] = C(() => []);
@@ -1429,13 +1429,13 @@ function Ht(e) {
1429
1429
  if (x) {
1430
1430
  if (x.classList.contains("builder-accordion-detail"))
1431
1431
  continue;
1432
- const V = x.getBoundingClientRect();
1433
- if (V.left > R.left) {
1432
+ const B = x.getBoundingClientRect();
1433
+ if (B.left > R.left) {
1434
1434
  const A = parseInt(
1435
1435
  x.getAttribute("data-index") || "",
1436
1436
  10
1437
1437
  );
1438
- isNaN(A) || (R = V, m = A);
1438
+ isNaN(A) || (R = B, m = A);
1439
1439
  } else
1440
1440
  break;
1441
1441
  }
@@ -1457,7 +1457,7 @@ function Ht(e) {
1457
1457
  function f(m) {
1458
1458
  t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
1459
1459
  }
1460
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ B(E, { children: [
1460
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ V(E, { children: [
1461
1461
  /* @__PURE__ */ s(
1462
1462
  "div",
1463
1463
  {
@@ -1465,7 +1465,7 @@ function Ht(e) {
1465
1465
  style: {
1466
1466
  ...r(),
1467
1467
  width: e.grid ? e.gridRowWidth : void 0,
1468
- order: c() !== null ? ve(g) : ve(g + 1)
1468
+ order: c() !== null ? Se(g) : Se(g + 1)
1469
1469
  },
1470
1470
  "data-index": g,
1471
1471
  onClick: (p) => f(g),
@@ -2103,7 +2103,7 @@ function Zt(e) {
2103
2103
  function o(a) {
2104
2104
  a === t && e.collapsible ? n(-1) : n(a);
2105
2105
  }
2106
- return /* @__PURE__ */ B("div", { children: [
2106
+ return /* @__PURE__ */ V("div", { children: [
2107
2107
  /* @__PURE__ */ s(
2108
2108
  "div",
2109
2109
  {
@@ -2568,7 +2568,7 @@ function fn(e) {
2568
2568
  }
2569
2569
  g.preventDefault();
2570
2570
  const x = g.currentTarget || g.target, R = e.customHeaders || {};
2571
- let V;
2571
+ let B;
2572
2572
  const A = new FormData(x), j = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2573
2573
  let h;
2574
2574
  const y = b.name;
@@ -2582,8 +2582,8 @@ function fn(e) {
2582
2582
  } else if (b.type === "checkbox")
2583
2583
  h = b.checked;
2584
2584
  else if (b.type === "number" || b.type === "range") {
2585
- const S = b.valueAsNumber;
2586
- isNaN(S) || (h = S);
2585
+ const v = b.valueAsNumber;
2586
+ isNaN(v) || (h = v);
2587
2587
  } else
2588
2588
  b.type === "file" ? h = b.files : h = b.value;
2589
2589
  else
@@ -2593,42 +2593,42 @@ function fn(e) {
2593
2593
  value: h
2594
2594
  };
2595
2595
  });
2596
- let v = e.contentType;
2597
- if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(j).forEach(({ value: b }) => {
2598
- (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (v = "multipart/form-data");
2599
- }), v !== "application/json")
2600
- V = A;
2596
+ let S = e.contentType;
2597
+ if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(j).forEach(({ value: b }) => {
2598
+ (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (S = "multipart/form-data");
2599
+ }), S !== "application/json")
2600
+ B = A;
2601
2601
  else {
2602
2602
  const b = {};
2603
2603
  Array.from(j).forEach(({ value: h, key: y }) => {
2604
2604
  Pe(b, y, h);
2605
- }), V = JSON.stringify(b);
2605
+ }), B = JSON.stringify(b);
2606
2606
  }
2607
- v && v !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = v));
2608
- const w = new CustomEvent("presubmit", { detail: { body: V } });
2607
+ S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = S));
2608
+ const w = new CustomEvent("presubmit", { detail: { body: B } });
2609
2609
  if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2610
2610
  return;
2611
2611
  i("sending");
2612
- const W = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2612
+ const F = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2613
2613
  e.sendSubmissionsToEmail || ""
2614
2614
  )}&name=${encodeURIComponent(e.name || "")}`;
2615
2615
  fetch(
2616
- e.sendSubmissionsTo === "email" ? W : e.action,
2617
- { body: V, headers: R, method: e.method || "post" }
2616
+ e.sendSubmissionsTo === "email" ? F : e.action,
2617
+ { body: B, headers: R, method: e.method || "post" }
2618
2618
  ).then(
2619
2619
  async (b) => {
2620
2620
  let h;
2621
2621
  const y = b.headers.get("content-type");
2622
2622
  if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2623
- let S = mn(h, e.errorMessagePath);
2624
- S && (typeof S != "string" && (S = JSON.stringify(S)), l(S), c({ formErrorMessage: S }));
2623
+ let v = mn(h, e.errorMessagePath);
2624
+ v && (typeof v != "string" && (v = JSON.stringify(v)), l(v), c({ formErrorMessage: v }));
2625
2625
  }
2626
2626
  if (r(h), i(b.ok ? "success" : "error"), b.ok) {
2627
- const S = new CustomEvent("submit:success", {
2627
+ const v = new CustomEvent("submit:success", {
2628
2628
  detail: { res: b, body: h }
2629
2629
  });
2630
2630
  if (t.current) {
2631
- if (t.current.dispatchEvent(S), S.defaultPrevented)
2631
+ if (t.current.dispatchEvent(v), v.defaultPrevented)
2632
2632
  return;
2633
2633
  e.resetFormOnSubmit !== !1 && t.current.reset();
2634
2634
  }
@@ -2651,9 +2651,9 @@ function fn(e) {
2651
2651
  );
2652
2652
  }
2653
2653
  }
2654
- return /* @__PURE__ */ B(E, { children: [
2654
+ return /* @__PURE__ */ V(E, { children: [
2655
2655
  " ",
2656
- /* @__PURE__ */ B(
2656
+ /* @__PURE__ */ V(
2657
2657
  "form",
2658
2658
  {
2659
2659
  validate: e.validate,
@@ -2826,7 +2826,8 @@ function pn(e) {
2826
2826
  value: e.value,
2827
2827
  key: $() && e.defaultValue ? e.defaultValue : "default-key",
2828
2828
  defaultValue: e.defaultValue,
2829
- name: e.name
2829
+ name: e.name,
2830
+ required: e.required
2830
2831
  },
2831
2832
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2832
2833
  );
@@ -2860,7 +2861,57 @@ const yn = {
2860
2861
  function xn(e) {
2861
2862
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2862
2863
  }
2863
- const Sn = {
2864
+ const vn = {
2865
+ name: "Form:TextArea",
2866
+ image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2867
+ inputs: [{
2868
+ advanced: !0,
2869
+ name: "value",
2870
+ type: "string"
2871
+ }, {
2872
+ name: "name",
2873
+ type: "string",
2874
+ required: !0,
2875
+ helperText: 'Every input in a form needs a unique name describing what it gets, e.g. "email"'
2876
+ }, {
2877
+ name: "defaultValue",
2878
+ type: "string"
2879
+ }, {
2880
+ name: "placeholder",
2881
+ type: "string",
2882
+ defaultValue: "Hello there"
2883
+ }, {
2884
+ name: "required",
2885
+ type: "boolean",
2886
+ defaultValue: !1
2887
+ }],
2888
+ defaultStyles: {
2889
+ paddingTop: "10px",
2890
+ paddingBottom: "10px",
2891
+ paddingLeft: "10px",
2892
+ paddingRight: "10px",
2893
+ borderRadius: "3px",
2894
+ borderWidth: "1px",
2895
+ borderStyle: "solid",
2896
+ borderColor: "#ccc"
2897
+ },
2898
+ static: !0,
2899
+ noWrap: !0
2900
+ };
2901
+ function Sn(e) {
2902
+ return /* @__PURE__ */ s(
2903
+ "textarea",
2904
+ {
2905
+ ...e.attributes,
2906
+ placeholder: e.placeholder,
2907
+ name: e.name,
2908
+ value: e.value,
2909
+ defaultValue: e.defaultValue,
2910
+ required: e.required
2911
+ }
2912
+ );
2913
+ }
2914
+ const kn = {
2864
2915
  // friendlyName?
2865
2916
  name: "Raw:Img",
2866
2917
  hideFromInsertMenu: !0,
@@ -2875,7 +2926,7 @@ const Sn = {
2875
2926
  noWrap: !0,
2876
2927
  static: !0
2877
2928
  };
2878
- function vn(e) {
2929
+ function Cn(e) {
2879
2930
  return /* @__PURE__ */ s(
2880
2931
  "img",
2881
2932
  {
@@ -2890,7 +2941,7 @@ function vn(e) {
2890
2941
  $() && e.imgSrc || "default-key"
2891
2942
  );
2892
2943
  }
2893
- const kn = {
2944
+ const Tn = {
2894
2945
  name: "Video",
2895
2946
  canHaveChildren: !0,
2896
2947
  defaultStyles: {
@@ -2972,7 +3023,7 @@ const kn = {
2972
3023
  advanced: !0
2973
3024
  }]
2974
3025
  };
2975
- function Cn(e) {
3026
+ function In(e) {
2976
3027
  var i, o, r, a, l, c, u;
2977
3028
  function t() {
2978
3029
  return {
@@ -2998,7 +3049,7 @@ function Cn(e) {
2998
3049
  ...t()
2999
3050
  };
3000
3051
  }
3001
- return /* @__PURE__ */ B(
3052
+ return /* @__PURE__ */ V(
3002
3053
  "div",
3003
3054
  {
3004
3055
  style: {
@@ -3073,7 +3124,7 @@ function Cn(e) {
3073
3124
  }
3074
3125
  );
3075
3126
  }
3076
- const Tn = () => [{
3127
+ const wn = () => [{
3077
3128
  component: on,
3078
3129
  ...nn
3079
3130
  }, {
@@ -3092,11 +3143,14 @@ const Tn = () => [{
3092
3143
  component: pn,
3093
3144
  ...bn
3094
3145
  }, {
3095
- component: vn,
3096
- ...Sn
3146
+ component: Sn,
3147
+ ...vn
3097
3148
  }, {
3098
3149
  component: Cn,
3099
3150
  ...kn
3151
+ }, {
3152
+ component: In,
3153
+ ...Tn
3100
3154
  }], ke = () => [{
3101
3155
  component: nt,
3102
3156
  ...Kt
@@ -3116,7 +3170,7 @@ const Tn = () => [{
3116
3170
  component: Gt,
3117
3171
  ...Yt
3118
3172
  }, {
3119
- component: zn,
3173
+ component: Yn,
3120
3174
  ...Qt
3121
3175
  }, {
3122
3176
  component: tn,
@@ -3127,7 +3181,7 @@ const Tn = () => [{
3127
3181
  }, {
3128
3182
  component: Ht,
3129
3183
  ...Mt
3130
- }, ...Tn()], In = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3184
+ }, ...wn()], En = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3131
3185
  function getAndSetVariantId() {
3132
3186
  function setCookie(name, value, days) {
3133
3187
  let expires = '';
@@ -3183,7 +3237,7 @@ const Tn = () => [{
3183
3237
  }).join('');
3184
3238
  styleEl.innerHTML = newStyleStr;
3185
3239
  }
3186
- }`, wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3240
+ }`, Rn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3187
3241
  if (!navigator.cookieEnabled) {
3188
3242
  return;
3189
3243
  }
@@ -3221,16 +3275,16 @@ const Tn = () => [{
3221
3275
  ...t,
3222
3276
  testVariationId: t.id,
3223
3277
  id: e == null ? void 0 : e.id
3224
- })), En = ({
3278
+ })), Vn = ({
3225
3279
  canTrack: e,
3226
3280
  content: t
3227
- }) => !(!(Y(t).length > 0) || !e || H()), Rn = (e) => e === "react" || e === "reactNative", Me = Rn(L), Bn = () => `
3228
- window.${je} = ${In}
3229
- window.${Ue} = ${wn}
3230
- `, Vn = (e, t) => `
3281
+ }) => !(!(Y(t).length > 0) || !e || H()), Bn = (e) => e === "react" || e === "reactNative", Me = Bn(L), Pn = () => `
3282
+ window.${je} = ${En}
3283
+ window.${Ue} = ${Rn}
3284
+ `, An = (e, t) => `
3231
3285
  window.${je}(
3232
3286
  "${t}",${JSON.stringify(e)}, ${Me}
3233
- )`, Pn = ({
3287
+ )`, Nn = ({
3234
3288
  contentId: e,
3235
3289
  variationId: t
3236
3290
  }) => `window.${Ue}(
@@ -3248,7 +3302,7 @@ function ce(e) {
3248
3302
  function Ce(e) {
3249
3303
  return Math.round(e * 1e3) / 1e3;
3250
3304
  }
3251
- const An = (e, t, n = !0) => {
3305
+ const Fn = (e, t, n = !0) => {
3252
3306
  if (!(e instanceof HTMLElement))
3253
3307
  return null;
3254
3308
  let i = n ? e : e.parentElement;
@@ -3259,7 +3313,7 @@ const An = (e, t, n = !0) => {
3259
3313
  return i;
3260
3314
  } while (i = i.parentElement);
3261
3315
  return null;
3262
- }, Nn = (e) => An(e, (t) => {
3316
+ }, Wn = (e) => Fn(e, (t) => {
3263
3317
  const n = t.getAttribute("builder-id") || t.id;
3264
3318
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3265
3319
  }), Te = ({
@@ -3271,8 +3325,8 @@ const An = (e, t, n = !0) => {
3271
3325
  x: r,
3272
3326
  y: a
3273
3327
  };
3274
- }, Wn = (e) => {
3275
- const t = e.target, n = t && Nn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3328
+ }, $n = (e) => {
3329
+ const t = e.target, n = t && Wn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3276
3330
  return {
3277
3331
  targetBuilderElement: i || void 0,
3278
3332
  metadata: {
@@ -3287,7 +3341,7 @@ const An = (e, t, n = !0) => {
3287
3341
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3288
3342
  }
3289
3343
  };
3290
- }, Fn = (e) => {
3344
+ }, Dn = (e) => {
3291
3345
  var r, a;
3292
3346
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
3293
3347
  let o = "";
@@ -3313,15 +3367,15 @@ font-weight: ${l};
3313
3367
  `.trim());
3314
3368
  }
3315
3369
  return o;
3316
- }, $n = ({
3370
+ }, Ln = ({
3317
3371
  customFonts: e
3318
3372
  }) => {
3319
3373
  var t;
3320
- return ((t = e == null ? void 0 : e.map((n) => Fn(n))) == null ? void 0 : t.join(" ")) || "";
3321
- }, Dn = ({
3374
+ return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
3375
+ }, On = ({
3322
3376
  cssCode: e,
3323
3377
  contentId: t
3324
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ln = `
3378
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", jn = `
3325
3379
  .builder-button {
3326
3380
  all: unset;
3327
3381
  }
@@ -3338,28 +3392,28 @@ font-weight: ${l};
3338
3392
  text-align: inherit;
3339
3393
  font-family: inherit;
3340
3394
  }
3341
- `, On = (e) => e ? "" : Ln, jn = (e) => `variant-${e}`;
3342
- function Un(e) {
3343
- var V, A, j, v, w, W, b;
3395
+ `, Un = (e) => e ? "" : jn, Mn = (e) => `variant-${e}`;
3396
+ function Hn(e) {
3397
+ var B, A, j, S, w, F, b;
3344
3398
  const t = ee(null);
3345
3399
  function n(h) {
3346
- var S, k;
3400
+ var v, k;
3347
3401
  const y = {
3348
3402
  ...e.builderContextSignal.rootState,
3349
3403
  ...h
3350
3404
  };
3351
- e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, y) : e.setBuilderContextSignal((T) => ({
3405
+ e.builderContextSignal.rootSetState ? (k = (v = e.builderContextSignal).rootSetState) == null || k.call(v, y) : e.setBuilderContextSignal((T) => ({
3352
3406
  ...T,
3353
3407
  rootState: y
3354
3408
  }));
3355
3409
  }
3356
3410
  function i(h) {
3357
- var S, k, T, N, U;
3411
+ var v, k, T, N, U;
3358
3412
  const y = {
3359
3413
  ...e.builderContextSignal.content,
3360
3414
  ...h,
3361
3415
  data: {
3362
- ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
3416
+ ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
3363
3417
  ...h == null ? void 0 : h.data
3364
3418
  },
3365
3419
  meta: {
@@ -3368,8 +3422,8 @@ function Un(e) {
3368
3422
  breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((U = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : U.breakpoints)
3369
3423
  }
3370
3424
  };
3371
- e.setBuilderContextSignal((F) => ({
3372
- ...F,
3425
+ e.setBuilderContextSignal((W) => ({
3426
+ ...W,
3373
3427
  content: y
3374
3428
  }));
3375
3429
  }
@@ -3389,15 +3443,15 @@ function Un(e) {
3389
3443
  callbacks: {
3390
3444
  configureSdk: (y) => {
3391
3445
  var T;
3392
- const { breakpoints: S, contentId: k } = y;
3393
- !k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || S && i({
3446
+ const { breakpoints: v, contentId: k } = y;
3447
+ !k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || v && i({
3394
3448
  meta: {
3395
- breakpoints: S
3449
+ breakpoints: v
3396
3450
  }
3397
3451
  });
3398
3452
  },
3399
3453
  animation: (y) => {
3400
- We(y);
3454
+ Fe(y);
3401
3455
  },
3402
3456
  contentUpdate: (y) => {
3403
3457
  i(y);
@@ -3406,8 +3460,8 @@ function Un(e) {
3406
3460
  })(h);
3407
3461
  }
3408
3462
  function c() {
3409
- var y, S;
3410
- const h = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.jsCode;
3463
+ var y, v;
3464
+ const h = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.jsCode;
3411
3465
  h && _({
3412
3466
  code: h,
3413
3467
  context: e.context || {},
@@ -3422,31 +3476,31 @@ function Un(e) {
3422
3476
  }
3423
3477
  const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
3424
3478
  function I(h) {
3425
- var y, S;
3479
+ var y, v;
3426
3480
  if (e.builderContextSignal.content) {
3427
- const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
3481
+ const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
3428
3482
  he({
3429
3483
  type: "click",
3430
3484
  canTrack: Q(e.canTrack),
3431
3485
  contentId: T,
3432
3486
  apiKey: e.apiKey,
3433
3487
  variationId: k !== T ? k : void 0,
3434
- ...Wn(h),
3488
+ ...$n(h),
3435
3489
  unique: !g
3436
3490
  });
3437
3491
  }
3438
3492
  g || p(!0);
3439
3493
  }
3440
3494
  function x() {
3441
- var y, S, k;
3442
- const h = (k = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.httpRequests) != null ? k : {};
3495
+ var y, v, k;
3496
+ const h = (k = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.httpRequests) != null ? k : {};
3443
3497
  Object.entries(h).forEach(([T, N]) => {
3444
3498
  if (!N || d[T] || u[T] && !$())
3445
3499
  return;
3446
3500
  d[T] = !0;
3447
3501
  const U = N.replace(
3448
3502
  /{{([^}]+)}}/g,
3449
- (F, He) => String(
3503
+ (W, He) => String(
3450
3504
  _({
3451
3505
  code: He,
3452
3506
  context: e.context || {},
@@ -3457,12 +3511,12 @@ function Un(e) {
3457
3511
  })
3458
3512
  )
3459
3513
  );
3460
- Xe(U).then((F) => F.json()).then((F) => {
3514
+ Xe(U).then((W) => W.json()).then((W) => {
3461
3515
  n({
3462
- [T]: F
3516
+ [T]: W
3463
3517
  }), u[T] = !0;
3464
- }).catch((F) => {
3465
- console.error("error fetching dynamic data", N, F);
3518
+ }).catch((W) => {
3519
+ console.error("error fetching dynamic data", N, W);
3466
3520
  }).finally(() => {
3467
3521
  d[T] = !1;
3468
3522
  });
@@ -3523,8 +3577,8 @@ function Un(e) {
3523
3577
  model: e.model,
3524
3578
  apiKey: e.apiKey,
3525
3579
  apiVersion: e.builderContextSignal.apiVersion
3526
- }).then((F) => {
3527
- F && i(F);
3580
+ }).then((W) => {
3581
+ W && i(W);
3528
3582
  });
3529
3583
  }
3530
3584
  }
@@ -3536,9 +3590,9 @@ function Un(e) {
3536
3590
  e.content && i(e.content);
3537
3591
  }, [e.content]), P(() => {
3538
3592
  c();
3539
- }, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), P(() => {
3593
+ }, [(A = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : A.jsCode]), P(() => {
3540
3594
  x();
3541
- }, [(v = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : v.httpRequests]), P(() => {
3595
+ }, [(S = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : S.httpRequests]), P(() => {
3542
3596
  R();
3543
3597
  }, [e.builderContextSignal.rootState]), P(() => {
3544
3598
  e.data && n(e.data);
@@ -3560,29 +3614,29 @@ function Un(e) {
3560
3614
  "builder-model": e.model,
3561
3615
  ...o(),
3562
3616
  ...e.contentWrapperProps,
3563
- className: jn(
3564
- ((W = e.content) == null ? void 0 : W.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
3617
+ className: Mn(
3618
+ ((F = e.content) == null ? void 0 : F.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
3565
3619
  ),
3566
3620
  children: e.children
3567
3621
  }
3568
3622
  ) : null });
3569
3623
  }
3570
- function Mn(e) {
3624
+ function Kn(e) {
3571
3625
  const [t, n] = C(
3572
3626
  () => `
3573
- ${Dn({
3627
+ ${On({
3574
3628
  cssCode: e.cssCode,
3575
3629
  contentId: e.contentId
3576
3630
  })}
3577
- ${$n({
3631
+ ${Ln({
3578
3632
  customFonts: e.customFonts
3579
3633
  })}
3580
- ${On(e.isNestedRender)}
3634
+ ${Un(e.isNestedRender)}
3581
3635
  `.trim()
3582
3636
  );
3583
3637
  return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
3584
3638
  }
3585
- const Hn = ({
3639
+ const qn = ({
3586
3640
  content: e,
3587
3641
  data: t,
3588
3642
  locale: n
@@ -3599,7 +3653,7 @@ const Hn = ({
3599
3653
  locale: n
3600
3654
  } : {}
3601
3655
  };
3602
- }, Kn = ({
3656
+ }, _n = ({
3603
3657
  content: e,
3604
3658
  data: t
3605
3659
  }) => e ? {
@@ -3615,7 +3669,7 @@ function Ie(e) {
3615
3669
  const [t, n] = C(
3616
3670
  () => {
3617
3671
  var I, x;
3618
- return Pn({
3672
+ return Nn({
3619
3673
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3620
3674
  variationId: (I = e.content) == null ? void 0 : I.testVariationId,
3621
3675
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3644,12 +3698,12 @@ function Ie(e) {
3644
3698
  {}
3645
3699
  )
3646
3700
  ), [a, l] = C(() => ({
3647
- content: Kn({
3701
+ content: _n({
3648
3702
  content: e.content,
3649
3703
  data: e.data
3650
3704
  }),
3651
3705
  localState: void 0,
3652
- rootState: Hn({
3706
+ rootState: qn({
3653
3707
  content: e.content,
3654
3708
  data: e.data,
3655
3709
  locale: e.locale
@@ -3674,13 +3728,13 @@ function Ie(e) {
3674
3728
  BlocksWrapperProps: e.blocksWrapperProps || {}
3675
3729
  }));
3676
3730
  return /* @__PURE__ */ s(
3677
- Be.Provider,
3731
+ Ve.Provider,
3678
3732
  {
3679
3733
  value: {
3680
3734
  registeredComponents: o
3681
3735
  },
3682
- children: /* @__PURE__ */ B(
3683
- Un,
3736
+ children: /* @__PURE__ */ V(
3737
+ Hn,
3684
3738
  {
3685
3739
  content: e.content,
3686
3740
  data: e.data,
@@ -3705,7 +3759,7 @@ function Ie(e) {
3705
3759
  }
3706
3760
  ) : null,
3707
3761
  /* @__PURE__ */ s(
3708
- Mn,
3762
+ Kn,
3709
3763
  {
3710
3764
  isNestedRender: e.isNestedRender,
3711
3765
  contentId: (c = a.content) == null ? void 0 : c.id,
@@ -3728,17 +3782,17 @@ function Ie(e) {
3728
3782
  }
3729
3783
  );
3730
3784
  }
3731
- function qn(e) {
3785
+ function zn(e) {
3732
3786
  var a;
3733
3787
  const [t, n] = C(
3734
- () => En({
3788
+ () => Vn({
3735
3789
  canTrack: Q(e.canTrack),
3736
3790
  content: e.content
3737
3791
  })
3738
3792
  );
3739
3793
  function i() {
3740
3794
  var l;
3741
- return Vn(
3795
+ return An(
3742
3796
  Y(e.content).map((c) => ({
3743
3797
  id: c.testVariationId,
3744
3798
  testRatio: c.testRatio
@@ -3760,15 +3814,15 @@ function qn(e) {
3760
3814
  });
3761
3815
  }
3762
3816
  return P(() => {
3763
- }, []), /* @__PURE__ */ B(E, { children: [
3817
+ }, []), /* @__PURE__ */ V(E, { children: [
3764
3818
  !e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ s(
3765
3819
  ce,
3766
3820
  {
3767
3821
  id: "builderio-init-variants-fns",
3768
- scriptStr: Bn()
3822
+ scriptStr: Pn()
3769
3823
  }
3770
3824
  ) : null,
3771
- t ? /* @__PURE__ */ B(E, { children: [
3825
+ t ? /* @__PURE__ */ V(E, { children: [
3772
3826
  /* @__PURE__ */ s(
3773
3827
  ne,
3774
3828
  {
@@ -3835,7 +3889,7 @@ function qn(e) {
3835
3889
  )
3836
3890
  ] });
3837
3891
  }
3838
- const _n = async ({
3892
+ const Jn = async ({
3839
3893
  builderContextValue: e,
3840
3894
  symbol: t
3841
3895
  }) => {
@@ -3854,7 +3908,7 @@ const _n = async ({
3854
3908
  Z.error("Could not fetch symbol content: ", n);
3855
3909
  });
3856
3910
  };
3857
- function zn(e) {
3911
+ function Yn(e) {
3858
3912
  var l, c, u, f;
3859
3913
  function t() {
3860
3914
  return "div";
@@ -3876,7 +3930,7 @@ function zn(e) {
3876
3930
  return (d = e.symbol) == null ? void 0 : d.content;
3877
3931
  });
3878
3932
  function a() {
3879
- o || _n({
3933
+ o || Jn({
3880
3934
  symbol: e.symbol,
3881
3935
  builderContextValue: e.builderContext
3882
3936
  }).then((d) => {
@@ -3887,7 +3941,7 @@ function zn(e) {
3887
3941
  }, []), P(() => {
3888
3942
  a();
3889
3943
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
3890
- qn,
3944
+ zn,
3891
3945
  {
3892
3946
  isNestedRender: !0,
3893
3947
  apiVersion: e.builderContext.apiVersion,
@@ -3916,11 +3970,11 @@ export {
3916
3970
  me as BuilderContext,
3917
3971
  nt as Button,
3918
3972
  $t as Columns,
3919
- qn as Content,
3973
+ zn as Content,
3920
3974
  Dt as Fragment,
3921
3975
  jt as Image,
3922
3976
  Ut as Section,
3923
- zn as Symbol,
3977
+ Yn as Symbol,
3924
3978
  tn as Text,
3925
- Cn as Video
3979
+ In as Video
3926
3980
  };