@builder.io/sdk-react 1.0.33 → 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 (73) hide show
  1. package/lib/browser/blocks-exports.cjs +21 -21
  2. package/lib/browser/blocks-exports.mjs +235 -178
  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-4f020128.cjs → server-entry-4168b816.cjs} +1 -1
  8. package/lib/browser/{server-entry-08c4885b.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-e8a4e00c.js → accordion-18fbb30e.js} +1 -1
  12. package/lib/edge/{accordion-117938d4.cjs → accordion-e40979bc.cjs} +1 -1
  13. package/lib/edge/{blocks-70c83f76.cjs → blocks-48a9ac8c.cjs} +1 -1
  14. package/lib/edge/{blocks-f8c6cd3a.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-9224e694.js → button-be9403e7.js} +2 -2
  18. package/lib/edge/{button-b84a0300.cjs → button-c2ff97e9.cjs} +1 -1
  19. package/lib/edge/{columns-bf1789b2.cjs → columns-118e1fc1.cjs} +1 -1
  20. package/lib/edge/{columns-05800a70.js → columns-920ca800.js} +3 -3
  21. package/lib/edge/content-variants-1eb4aebc.cjs +134 -0
  22. package/lib/edge/{content-variants-1af57e7c.js → content-variants-ed1f803b.js} +145 -103
  23. package/lib/edge/{form-4248a74f.cjs → form-a9271b51.cjs} +1 -1
  24. package/lib/edge/{form-ba414b86.js → form-cbcf22d5.js} +3 -3
  25. package/lib/edge/{get-class-prop-name-f1303c26.js → get-class-prop-name-90c8ac6c.js} +1 -1
  26. package/lib/edge/{get-class-prop-name-99284ed1.cjs → get-class-prop-name-af6b922f.cjs} +1 -1
  27. package/lib/edge/{img-3b5f766a.js → img-1f1b4871.js} +1 -1
  28. package/lib/edge/{img-f51fc48b.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-9d5bca5c.cjs → input-4b3e5f88.cjs} +1 -1
  34. package/lib/edge/{input-f86d1318.js → input-514915f8.js} +1 -1
  35. package/lib/edge/{select-a97e4cbf.js → select-3925e227.js} +5 -4
  36. package/lib/edge/select-82d8052d.cjs +1 -0
  37. package/lib/edge/{server-entry-62d41eae.js → server-entry-57fedeba.js} +1 -1
  38. package/lib/edge/{server-entry-13d68dab.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-d4ca9e65.cjs → slot-21fe373f.cjs} +1 -1
  42. package/lib/edge/{slot-fdb4dd68.js → slot-aa7280f8.js} +3 -3
  43. package/lib/edge/{symbol-b620691d.cjs → symbol-a0ab57ea.cjs} +1 -1
  44. package/lib/edge/{symbol-c31603d4.js → symbol-ac48d2ec.js} +2 -2
  45. package/lib/edge/{tabs-c5bedc43.js → tabs-9b5261d0.js} +3 -3
  46. package/lib/edge/{tabs-b442e021.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 +21 -21
  50. package/lib/node/blocks-exports.mjs +209 -152
  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-51136426.js → node-runtime-1b85663b.js} +51 -41
  56. package/lib/node/node-runtime-d59eb154.cjs +48 -0
  57. package/lib/node/{server-entry-0b4ba9e5.js → server-entry-8081c6b9.js} +1 -1
  58. package/lib/node/{server-entry-84150423.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/types/functions/evaluate/node-runtime/safeDynamicRequire.d.ts +2 -0
  68. package/types/functions/extract-css-var-default-value.d.ts +1 -0
  69. package/lib/edge/content-variants-33e7bcbf.cjs +0 -134
  70. package/lib/edge/select-02b2c006.cjs +0 -1
  71. package/lib/node/node-runtime-1f5f0f86.cjs +0 -48
  72. package/types/blocks/textarea/component-info.d.ts +0 -2
  73. /package/types/blocks/{textarea → form/textarea}/index.d.ts +0 -0
@@ -2,10 +2,10 @@
2
2
  var He = Object.defineProperty;
3
3
  var Ke = (e, t, n) => t in e ? He(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var ie = (e, t, n) => (Ke(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, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as qe, setupBrowserForEditing as _e, createRegisterComponentMessage as ze, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-0b4ba9e5.js";
5
+ import { jsx as s, Fragment as E, jsxs as V } from "react/jsx-runtime";
6
+ import { TARGET as L, checkIsDefined as Y, logger as Z, isBrowser as G, fastClone as de, isEditing as $, registerInsertMenu as qe, setupBrowserForEditing as _e, createRegisterComponentMessage as ze, getDefaultCanTrack as Q, _track as he, isPreviewing as Je, fetchOneEntry as Ie, createEditorListener as Ye, fetch as Ge, serializeComponentInfo as ge, handleABTestingSync as Qe } from "./server-entry-8081c6b9.js";
7
7
  import { createContext as we, useState as C, useEffect as P, useContext as be, useRef as ee, createElement as Ee } from "react";
8
- import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Re } from "./node-runtime-51136426.js";
8
+ import { getFunctionArguments as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Re } from "./node-runtime-1b85663b.js";
9
9
  const nt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), it = (e) => typeof e == "string" && nt.has(e.toLowerCase());
10
10
  function ue(e) {
11
11
  return /* @__PURE__ */ s(E, { children: it(e.TagName) ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(E, { 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 }) }) });
@@ -61,7 +61,7 @@ const me = we({
61
61
  inheritedStyles: {},
62
62
  BlocksWrapper: "div",
63
63
  BlocksWrapperProps: {}
64
- }), Be = we({ registeredComponents: {} });
64
+ }), Ve = we({ registeredComponents: {} });
65
65
  function at(e) {
66
66
  var t;
67
67
  return {
@@ -82,7 +82,7 @@ const rt = ({
82
82
  builder: t,
83
83
  context: n,
84
84
  event: i,
85
- state: Ve({
85
+ state: Be({
86
86
  rootState: a,
87
87
  localState: o,
88
88
  rootSetState: l
@@ -90,7 +90,7 @@ const rt = ({
90
90
  });
91
91
  return new Function(...r.map(([c]) => c), e)(...r.map(([, c]) => c));
92
92
  };
93
- function Ve({
93
+ function Be({
94
94
  rootState: e,
95
95
  localState: t,
96
96
  rootSetState: n
@@ -100,7 +100,7 @@ function Ve({
100
100
  if (t && o in t)
101
101
  return t[o];
102
102
  const l = i[o];
103
- return typeof l == "object" && l !== null ? Ve({
103
+ return typeof l == "object" && l !== null ? Be({
104
104
  rootState: l,
105
105
  localState: void 0,
106
106
  rootSetState: n ? (a) => {
@@ -433,9 +433,9 @@ const yt = ({
433
433
  },
434
434
  block: i
435
435
  }));
436
- }, St = (e, t) => e && (e.isRSC && L === "rsc" || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
436
+ }, vt = (e, t) => e && (e.isRSC && L === "rsc" || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
437
437
  builderLinkComponent: t
438
- } : {}, vt = (e, t) => e && (e.isRSC && L === "rsc" || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
438
+ } : {}, St = (e, t) => e && (e.isRSC && L === "rsc" || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
439
439
  builderComponents: t
440
440
  } : {}, kt = (e, t) => e && (e.isRSC && L === "rsc" || L === "reactNative" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Image", "Video"].includes(e.name)) ? {
441
441
  builderBlock: t
@@ -506,7 +506,7 @@ function Tt(e) {
506
506
  return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
507
507
  }
508
508
  function n() {
509
- var x, R, V;
509
+ var x, R, B;
510
510
  const i = X({
511
511
  block: e.block,
512
512
  localState: e.context.localState,
@@ -539,7 +539,7 @@ function Tt(e) {
539
539
  }) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
540
540
  let I = "";
541
541
  if (p) {
542
- const A = ((V = (R = p.steps) == null ? void 0 : R[1]) == null ? void 0 : V.styles) || {};
542
+ const A = ((B = (R = p.steps) == null ? void 0 : R[1]) == null ? void 0 : B.styles) || {};
543
543
  I = z({
544
544
  className: `${f}:hover`,
545
545
  styles: {
@@ -599,7 +599,7 @@ function Rt({
599
599
  }) {
600
600
  return e;
601
601
  }
602
- const Bt = (e) => ({
602
+ const Vt = (e) => ({
603
603
  href: e.href
604
604
  });
605
605
  function fe({
@@ -608,7 +608,7 @@ function fe({
608
608
  }) {
609
609
  var i;
610
610
  const n = {
611
- ...Bt(e),
611
+ ...Vt(e),
612
612
  ...e.properties,
613
613
  "builder-id": e.id,
614
614
  style: pt({
@@ -623,7 +623,7 @@ function fe({
623
623
  block: e
624
624
  });
625
625
  }
626
- function Vt(e) {
626
+ function Bt(e) {
627
627
  return /* @__PURE__ */ s(
628
628
  ue,
629
629
  {
@@ -785,8 +785,8 @@ function _(e) {
785
785
  ...at(i()),
786
786
  ...kt(t(), i()),
787
787
  ...Ct(t(), e.context),
788
- ...St(t(), e.linkComponent),
789
- ...vt(
788
+ ...vt(t(), e.linkComponent),
789
+ ...St(
790
790
  t(),
791
791
  e.registeredComponents
792
792
  )
@@ -807,7 +807,7 @@ function _(e) {
807
807
  elementId: d
808
808
  }))
809
809
  );
810
- }, []), /* @__PURE__ */ s(E, { children: l() ? /* @__PURE__ */ B(E, { children: [
810
+ }, []), /* @__PURE__ */ s(E, { children: l() ? /* @__PURE__ */ V(E, { children: [
811
811
  /* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
812
812
  (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
813
813
  ye,
@@ -831,8 +831,8 @@ function _(e) {
831
831
  linkComponent: e.linkComponent
832
832
  },
833
833
  m
834
- )) }) : /* @__PURE__ */ B(
835
- Vt,
834
+ )) }) : /* @__PURE__ */ V(
835
+ Bt,
836
836
  {
837
837
  Wrapper: o(),
838
838
  block: i(),
@@ -898,7 +898,7 @@ function Ft(e) {
898
898
  "*"
899
899
  ));
900
900
  }
901
- return /* @__PURE__ */ B(E, { children: [
901
+ return /* @__PURE__ */ V(E, { children: [
902
902
  /* @__PURE__ */ s(
903
903
  e.BlocksWrapper,
904
904
  {
@@ -922,7 +922,7 @@ function Ft(e) {
922
922
  }
923
923
  function D(e) {
924
924
  var i, o, l;
925
- const t = be(me), n = be(Be);
925
+ const t = be(me), n = be(Ve);
926
926
  return /* @__PURE__ */ s(
927
927
  Ft,
928
928
  {
@@ -953,28 +953,28 @@ function $t(e) {
953
953
  ), [i, o] = C(() => e.columns || []), [l, a] = C(
954
954
  () => e.stackColumnsAt || "tablet"
955
955
  );
956
- function r(v) {
957
- return v.link ? e.builderLinkComponent || "a" : "div";
956
+ function r(S) {
957
+ return S.link ? e.builderLinkComponent || "a" : "div";
958
958
  }
959
- function c(v) {
959
+ function c(S) {
960
960
  var w;
961
- return ((w = i[v]) == null ? void 0 : w.width) || 100 / i.length;
961
+ return ((w = i[S]) == null ? void 0 : w.width) || 100 / i.length;
962
962
  }
963
- function u(v) {
963
+ function u(S) {
964
964
  const w = t * (i.length - 1) / i.length;
965
- return `calc(${c(v)}% - ${w}px)`;
965
+ return `calc(${c(S)}% - ${w}px)`;
966
966
  }
967
967
  function f({
968
- stackedStyle: v,
968
+ stackedStyle: S,
969
969
  desktopStyle: w
970
970
  }) {
971
- return l === "tablet" ? v : w;
971
+ return l === "tablet" ? S : w;
972
972
  }
973
973
  function d({
974
- stackedStyle: v,
974
+ stackedStyle: S,
975
975
  desktopStyle: w
976
976
  }) {
977
- return l === "never" ? w : v;
977
+ return l === "never" ? w : S;
978
978
  }
979
979
  const [m, g] = C(
980
980
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
@@ -988,8 +988,8 @@ function $t(e) {
988
988
  })
989
989
  };
990
990
  }
991
- function I(v) {
992
- const w = v === 0 ? 0 : t, F = u(v), b = `${w}px`, h = "100%", y = 0;
991
+ function I(S) {
992
+ const w = S === 0 ? 0 : t, F = u(S), b = `${w}px`, h = "100%", y = 0;
993
993
  return {
994
994
  ...{
995
995
  display: "flex",
@@ -1016,11 +1016,11 @@ function $t(e) {
1016
1016
  })
1017
1017
  };
1018
1018
  }
1019
- function x(v) {
1019
+ function x(S) {
1020
1020
  var F, b;
1021
1021
  return De(
1022
1022
  ((b = (F = e.builderContext.content) == null ? void 0 : F.meta) == null ? void 0 : b.breakpoints) || {}
1023
- )[v].max;
1023
+ )[S].max;
1024
1024
  }
1025
1025
  function R() {
1026
1026
  return `
@@ -1049,29 +1049,29 @@ function $t(e) {
1049
1049
  },
1050
1050
  `;
1051
1051
  }
1052
- function V(v, w) {
1052
+ function B(S, w) {
1053
1053
  return {
1054
- ...v.link ? {
1055
- href: v.link
1054
+ ...S.link ? {
1055
+ href: S.link
1056
1056
  } : {},
1057
1057
  [K()]: "builder-column",
1058
1058
  style: We(I(w))
1059
1059
  };
1060
1060
  }
1061
- return /* @__PURE__ */ B(E, { children: [
1062
- /* @__PURE__ */ B(
1061
+ return /* @__PURE__ */ V(E, { children: [
1062
+ /* @__PURE__ */ V(
1063
1063
  "div",
1064
1064
  {
1065
1065
  className: Wt((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
1066
1066
  style: p(),
1067
1067
  children: [
1068
1068
  /* @__PURE__ */ s(ne, { id: "builderio-columns", styles: R() }),
1069
- (j = e.columns) == null ? void 0 : j.map((v, w) => /* @__PURE__ */ s(
1069
+ (j = e.columns) == null ? void 0 : j.map((S, w) => /* @__PURE__ */ s(
1070
1070
  ue,
1071
1071
  {
1072
- TagName: r(v),
1072
+ TagName: r(S),
1073
1073
  actionAttributes: {},
1074
- attributes: V(v, w),
1074
+ attributes: B(S, w),
1075
1075
  children: /* @__PURE__ */ s(
1076
1076
  D,
1077
1077
  {
@@ -1083,7 +1083,7 @@ function $t(e) {
1083
1083
  context: e.builderContext,
1084
1084
  registeredComponents: e.builderComponents,
1085
1085
  linkComponent: e.builderLinkComponent,
1086
- blocks: v.blocks
1086
+ blocks: S.blocks
1087
1087
  }
1088
1088
  )
1089
1089
  },
@@ -1161,9 +1161,9 @@ function jt(e) {
1161
1161
  };
1162
1162
  return e.aspectRatio ? f : void 0;
1163
1163
  }
1164
- return /* @__PURE__ */ B(E, { children: [
1165
- /* @__PURE__ */ B(E, { children: [
1166
- /* @__PURE__ */ B("picture", { children: [
1164
+ return /* @__PURE__ */ V(E, { children: [
1165
+ /* @__PURE__ */ V(E, { children: [
1166
+ /* @__PURE__ */ V("picture", { children: [
1167
1167
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1168
1168
  /* @__PURE__ */ s(
1169
1169
  "img",
@@ -1354,7 +1354,7 @@ const ae = {
1354
1354
  e.get("useChildrenForItems") === !0 && e.set("items", []);
1355
1355
  }
1356
1356
  }]
1357
- }, Se = (e) => e.toString();
1357
+ }, ve = (e) => e.toString();
1358
1358
  function Ht(e) {
1359
1359
  var d;
1360
1360
  const [t, n] = C(() => []);
@@ -1405,13 +1405,13 @@ function Ht(e) {
1405
1405
  if (x) {
1406
1406
  if (x.classList.contains("builder-accordion-detail"))
1407
1407
  continue;
1408
- const V = x.getBoundingClientRect();
1409
- if (V.left > R.left) {
1408
+ const B = x.getBoundingClientRect();
1409
+ if (B.left > R.left) {
1410
1410
  const A = parseInt(
1411
1411
  x.getAttribute("data-index") || "",
1412
1412
  10
1413
1413
  );
1414
- isNaN(A) || (R = V, m = A);
1414
+ isNaN(A) || (R = B, m = A);
1415
1415
  } else
1416
1416
  break;
1417
1417
  }
@@ -1433,7 +1433,7 @@ function Ht(e) {
1433
1433
  function f(m) {
1434
1434
  t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
1435
1435
  }
1436
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ B(E, { children: [
1436
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ V(E, { children: [
1437
1437
  /* @__PURE__ */ s(
1438
1438
  "div",
1439
1439
  {
@@ -1441,7 +1441,7 @@ function Ht(e) {
1441
1441
  style: {
1442
1442
  ...l(),
1443
1443
  width: e.grid ? e.gridRowWidth : void 0,
1444
- order: c() !== null ? Se(g) : Se(g + 1)
1444
+ order: c() !== null ? ve(g) : ve(g + 1)
1445
1445
  },
1446
1446
  "data-index": g,
1447
1447
  onClick: (p) => f(g),
@@ -1733,7 +1733,7 @@ const Kt = {
1733
1733
  name: "image",
1734
1734
  type: "file",
1735
1735
  bubble: !0,
1736
- allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
1736
+ allowedFileTypes: ["jpeg", "jpg", "png", "svg", "webp"],
1737
1737
  required: !0,
1738
1738
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1739
1739
  onChange: (e) => {
@@ -2079,7 +2079,7 @@ function Zt(e) {
2079
2079
  function o(a) {
2080
2080
  a === t && e.collapsible ? n(-1) : n(a);
2081
2081
  }
2082
- return /* @__PURE__ */ B("div", { children: [
2082
+ return /* @__PURE__ */ V("div", { children: [
2083
2083
  /* @__PURE__ */ s(
2084
2084
  "div",
2085
2085
  {
@@ -2231,13 +2231,16 @@ const an = {
2231
2231
  helperText: "e.g. enter a youtube url, google map, etc",
2232
2232
  onChange: (e) => {
2233
2233
  const t = e.get("url");
2234
- if (t)
2235
- return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((i) => i.json()).then((i) => {
2234
+ if (t) {
2235
+ e.set("content", "Loading...");
2236
+ const n = _iframelyApiKey;
2237
+ return fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=${n}`).then((i) => i.json()).then((i) => {
2236
2238
  e.get("url") === t && (i.html ? e.set("content", i.html) : e.set("content", "Invalid url, please try another"));
2237
2239
  }).catch((i) => {
2238
2240
  e.set("content", "There was an error embedding this URL, please try again or another URL");
2239
2241
  });
2240
- e.delete("content");
2242
+ } else
2243
+ e.delete("content");
2241
2244
  }
2242
2245
  }, {
2243
2246
  name: "content",
@@ -2541,7 +2544,7 @@ function fn(e) {
2541
2544
  }
2542
2545
  g.preventDefault();
2543
2546
  const x = g.currentTarget || g.target, R = e.customHeaders || {};
2544
- let V;
2547
+ let B;
2545
2548
  const A = new FormData(x), j = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2546
2549
  let h;
2547
2550
  const y = b.name;
@@ -2555,8 +2558,8 @@ function fn(e) {
2555
2558
  } else if (b.type === "checkbox")
2556
2559
  h = b.checked;
2557
2560
  else if (b.type === "number" || b.type === "range") {
2558
- const S = b.valueAsNumber;
2559
- isNaN(S) || (h = S);
2561
+ const v = b.valueAsNumber;
2562
+ isNaN(v) || (h = v);
2560
2563
  } else
2561
2564
  b.type === "file" ? h = b.files : h = b.value;
2562
2565
  else
@@ -2566,19 +2569,19 @@ function fn(e) {
2566
2569
  value: h
2567
2570
  };
2568
2571
  });
2569
- let v = e.contentType;
2570
- if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(j).forEach(({ value: b }) => {
2571
- (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (v = "multipart/form-data");
2572
- }), v !== "application/json")
2573
- V = A;
2572
+ let S = e.contentType;
2573
+ if (e.sendSubmissionsTo === "email" && (S = "multipart/form-data"), Array.from(j).forEach(({ value: b }) => {
2574
+ (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (S = "multipart/form-data");
2575
+ }), S !== "application/json")
2576
+ B = A;
2574
2577
  else {
2575
2578
  const b = {};
2576
2579
  Array.from(j).forEach(({ value: h, key: y }) => {
2577
2580
  Re(b, y, h);
2578
- }), V = JSON.stringify(b);
2581
+ }), B = JSON.stringify(b);
2579
2582
  }
2580
- v && v !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = v));
2581
- const w = new CustomEvent("presubmit", { detail: { body: V } });
2583
+ S && S !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = S));
2584
+ const w = new CustomEvent("presubmit", { detail: { body: B } });
2582
2585
  if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2583
2586
  return;
2584
2587
  i("sending");
@@ -2587,21 +2590,21 @@ function fn(e) {
2587
2590
  )}&name=${encodeURIComponent(e.name || "")}`;
2588
2591
  fetch(
2589
2592
  e.sendSubmissionsTo === "email" ? F : e.action,
2590
- { body: V, headers: R, method: e.method || "post" }
2593
+ { body: B, headers: R, method: e.method || "post" }
2591
2594
  ).then(
2592
2595
  async (b) => {
2593
2596
  let h;
2594
2597
  const y = b.headers.get("content-type");
2595
2598
  if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2596
- let S = mn(h, e.errorMessagePath);
2597
- S && (typeof S != "string" && (S = JSON.stringify(S)), r(S), c({ formErrorMessage: S }));
2599
+ let v = mn(h, e.errorMessagePath);
2600
+ v && (typeof v != "string" && (v = JSON.stringify(v)), r(v), c({ formErrorMessage: v }));
2598
2601
  }
2599
2602
  if (l(h), i(b.ok ? "success" : "error"), b.ok) {
2600
- const S = new CustomEvent("submit:success", {
2603
+ const v = new CustomEvent("submit:success", {
2601
2604
  detail: { res: b, body: h }
2602
2605
  });
2603
2606
  if (t.current) {
2604
- if (t.current.dispatchEvent(S), S.defaultPrevented)
2607
+ if (t.current.dispatchEvent(v), v.defaultPrevented)
2605
2608
  return;
2606
2609
  e.resetFormOnSubmit !== !1 && t.current.reset();
2607
2610
  }
@@ -2624,9 +2627,9 @@ function fn(e) {
2624
2627
  );
2625
2628
  }
2626
2629
  }
2627
- return /* @__PURE__ */ B(E, { children: [
2630
+ return /* @__PURE__ */ V(E, { children: [
2628
2631
  " ",
2629
- /* @__PURE__ */ B(
2632
+ /* @__PURE__ */ V(
2630
2633
  "form",
2631
2634
  {
2632
2635
  validate: e.validate,
@@ -2799,7 +2802,8 @@ function pn(e) {
2799
2802
  value: e.value,
2800
2803
  key: $() && e.defaultValue ? e.defaultValue : "default-key",
2801
2804
  defaultValue: e.defaultValue,
2802
- name: e.name
2805
+ name: e.name,
2806
+ required: e.required
2803
2807
  },
2804
2808
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2805
2809
  );
@@ -2833,7 +2837,57 @@ const yn = {
2833
2837
  function xn(e) {
2834
2838
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2835
2839
  }
2836
- const Sn = {
2840
+ const vn = {
2841
+ name: "Form:TextArea",
2842
+ image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
2843
+ inputs: [{
2844
+ advanced: !0,
2845
+ name: "value",
2846
+ type: "string"
2847
+ }, {
2848
+ name: "name",
2849
+ type: "string",
2850
+ required: !0,
2851
+ helperText: 'Every input in a form needs a unique name describing what it gets, e.g. "email"'
2852
+ }, {
2853
+ name: "defaultValue",
2854
+ type: "string"
2855
+ }, {
2856
+ name: "placeholder",
2857
+ type: "string",
2858
+ defaultValue: "Hello there"
2859
+ }, {
2860
+ name: "required",
2861
+ type: "boolean",
2862
+ defaultValue: !1
2863
+ }],
2864
+ defaultStyles: {
2865
+ paddingTop: "10px",
2866
+ paddingBottom: "10px",
2867
+ paddingLeft: "10px",
2868
+ paddingRight: "10px",
2869
+ borderRadius: "3px",
2870
+ borderWidth: "1px",
2871
+ borderStyle: "solid",
2872
+ borderColor: "#ccc"
2873
+ },
2874
+ static: !0,
2875
+ noWrap: !0
2876
+ };
2877
+ function Sn(e) {
2878
+ return /* @__PURE__ */ s(
2879
+ "textarea",
2880
+ {
2881
+ ...e.attributes,
2882
+ placeholder: e.placeholder,
2883
+ name: e.name,
2884
+ value: e.value,
2885
+ defaultValue: e.defaultValue,
2886
+ required: e.required
2887
+ }
2888
+ );
2889
+ }
2890
+ const kn = {
2837
2891
  // friendlyName?
2838
2892
  name: "Raw:Img",
2839
2893
  hideFromInsertMenu: !0,
@@ -2848,7 +2902,7 @@ const Sn = {
2848
2902
  noWrap: !0,
2849
2903
  static: !0
2850
2904
  };
2851
- function vn(e) {
2905
+ function Cn(e) {
2852
2906
  return /* @__PURE__ */ s(
2853
2907
  "img",
2854
2908
  {
@@ -2863,7 +2917,7 @@ function vn(e) {
2863
2917
  $() && e.imgSrc || "default-key"
2864
2918
  );
2865
2919
  }
2866
- const kn = {
2920
+ const Tn = {
2867
2921
  name: "Video",
2868
2922
  canHaveChildren: !0,
2869
2923
  defaultStyles: {
@@ -2945,7 +2999,7 @@ const kn = {
2945
2999
  advanced: !0
2946
3000
  }]
2947
3001
  };
2948
- function Cn(e) {
3002
+ function In(e) {
2949
3003
  var i, o, l, a, r, c, u;
2950
3004
  function t() {
2951
3005
  return {
@@ -2971,7 +3025,7 @@ function Cn(e) {
2971
3025
  ...t()
2972
3026
  };
2973
3027
  }
2974
- return /* @__PURE__ */ B(
3028
+ return /* @__PURE__ */ V(
2975
3029
  "div",
2976
3030
  {
2977
3031
  style: {
@@ -3046,7 +3100,7 @@ function Cn(e) {
3046
3100
  }
3047
3101
  );
3048
3102
  }
3049
- const Tn = () => [{
3103
+ const wn = () => [{
3050
3104
  component: on,
3051
3105
  ...nn
3052
3106
  }, {
@@ -3065,12 +3119,15 @@ const Tn = () => [{
3065
3119
  component: pn,
3066
3120
  ...bn
3067
3121
  }, {
3068
- component: vn,
3069
- ...Sn
3122
+ component: Sn,
3123
+ ...vn
3070
3124
  }, {
3071
3125
  component: Cn,
3072
3126
  ...kn
3073
- }], ve = () => [{
3127
+ }, {
3128
+ component: In,
3129
+ ...Tn
3130
+ }], Se = () => [{
3074
3131
  component: ot,
3075
3132
  ...Kt
3076
3133
  }, {
@@ -3089,7 +3146,7 @@ const Tn = () => [{
3089
3146
  component: Gt,
3090
3147
  ...Yt
3091
3148
  }, {
3092
- component: zn,
3149
+ component: Yn,
3093
3150
  ...Qt
3094
3151
  }, {
3095
3152
  component: tn,
@@ -3100,7 +3157,7 @@ const Tn = () => [{
3100
3157
  }, {
3101
3158
  component: Ht,
3102
3159
  ...Mt
3103
- }, ...Tn()], In = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3160
+ }, ...wn()], En = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3104
3161
  function getAndSetVariantId() {
3105
3162
  function setCookie(name, value, days) {
3106
3163
  let expires = '';
@@ -3156,7 +3213,7 @@ const Tn = () => [{
3156
3213
  }).join('');
3157
3214
  styleEl.innerHTML = newStyleStr;
3158
3215
  }
3159
- }`, wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3216
+ }`, Rn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3160
3217
  if (!navigator.cookieEnabled) {
3161
3218
  return;
3162
3219
  }
@@ -3194,16 +3251,16 @@ const Tn = () => [{
3194
3251
  ...t,
3195
3252
  testVariationId: t.id,
3196
3253
  id: e == null ? void 0 : e.id
3197
- })), En = ({
3254
+ })), Vn = ({
3198
3255
  canTrack: e,
3199
3256
  content: t
3200
- }) => !(!(J(t).length > 0) || !e || G()), Rn = (e) => e === "react" || e === "reactNative", Ue = Rn(L), Bn = () => `
3201
- window.${Oe} = ${In}
3202
- window.${je} = ${wn}
3203
- `, Vn = (e, t) => `
3257
+ }) => !(!(J(t).length > 0) || !e || G()), Bn = (e) => e === "react" || e === "reactNative", Ue = Bn(L), Pn = () => `
3258
+ window.${Oe} = ${En}
3259
+ window.${je} = ${Rn}
3260
+ `, An = (e, t) => `
3204
3261
  window.${Oe}(
3205
3262
  "${t}",${JSON.stringify(e)}, ${Ue}
3206
- )`, Pn = ({
3263
+ )`, Nn = ({
3207
3264
  contentId: e,
3208
3265
  variationId: t
3209
3266
  }) => `window.${je}(
@@ -3221,7 +3278,7 @@ function ce(e) {
3221
3278
  function ke(e) {
3222
3279
  return Math.round(e * 1e3) / 1e3;
3223
3280
  }
3224
- const An = (e, t, n = !0) => {
3281
+ const Fn = (e, t, n = !0) => {
3225
3282
  if (!(e instanceof HTMLElement))
3226
3283
  return null;
3227
3284
  let i = n ? e : e.parentElement;
@@ -3232,7 +3289,7 @@ const An = (e, t, n = !0) => {
3232
3289
  return i;
3233
3290
  } while (i = i.parentElement);
3234
3291
  return null;
3235
- }, Nn = (e) => An(e, (t) => {
3292
+ }, Wn = (e) => Fn(e, (t) => {
3236
3293
  const n = t.getAttribute("builder-id") || t.id;
3237
3294
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3238
3295
  }), Ce = ({
@@ -3244,8 +3301,8 @@ const An = (e, t, n = !0) => {
3244
3301
  x: l,
3245
3302
  y: a
3246
3303
  };
3247
- }, Fn = (e) => {
3248
- const t = e.target, n = t && Nn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3304
+ }, $n = (e) => {
3305
+ const t = e.target, n = t && Wn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3249
3306
  return {
3250
3307
  targetBuilderElement: i || void 0,
3251
3308
  metadata: {
@@ -3260,7 +3317,7 @@ const An = (e, t, n = !0) => {
3260
3317
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3261
3318
  }
3262
3319
  };
3263
- }, Wn = (e) => {
3320
+ }, Dn = (e) => {
3264
3321
  var l, a;
3265
3322
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (l = e == null ? void 0 : e.files) == null ? void 0 : l.regular;
3266
3323
  let o = "";
@@ -3286,15 +3343,15 @@ font-weight: ${r};
3286
3343
  `.trim());
3287
3344
  }
3288
3345
  return o;
3289
- }, $n = ({
3346
+ }, Ln = ({
3290
3347
  customFonts: e
3291
3348
  }) => {
3292
3349
  var t;
3293
- return ((t = e == null ? void 0 : e.map((n) => Wn(n))) == null ? void 0 : t.join(" ")) || "";
3294
- }, Dn = ({
3350
+ return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
3351
+ }, On = ({
3295
3352
  cssCode: e,
3296
3353
  contentId: t
3297
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ln = `
3354
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", jn = `
3298
3355
  .builder-button {
3299
3356
  all: unset;
3300
3357
  }
@@ -3311,28 +3368,28 @@ font-weight: ${r};
3311
3368
  text-align: inherit;
3312
3369
  font-family: inherit;
3313
3370
  }
3314
- `, On = (e) => e ? "" : Ln, jn = (e) => `variant-${e}`;
3315
- function Un(e) {
3316
- var V, A, j, v, w, F, b;
3371
+ `, Un = (e) => e ? "" : jn, Mn = (e) => `variant-${e}`;
3372
+ function Hn(e) {
3373
+ var B, A, j, S, w, F, b;
3317
3374
  const t = ee(null);
3318
3375
  function n(h) {
3319
- var S, k;
3376
+ var v, k;
3320
3377
  const y = {
3321
3378
  ...e.builderContextSignal.rootState,
3322
3379
  ...h
3323
3380
  };
3324
- e.builderContextSignal.rootSetState ? (k = (S = e.builderContextSignal).rootSetState) == null || k.call(S, y) : e.setBuilderContextSignal((T) => ({
3381
+ e.builderContextSignal.rootSetState ? (k = (v = e.builderContextSignal).rootSetState) == null || k.call(v, y) : e.setBuilderContextSignal((T) => ({
3325
3382
  ...T,
3326
3383
  rootState: y
3327
3384
  }));
3328
3385
  }
3329
3386
  function i(h) {
3330
- var S, k, T, N, U;
3387
+ var v, k, T, N, U;
3331
3388
  const y = {
3332
3389
  ...e.builderContextSignal.content,
3333
3390
  ...h,
3334
3391
  data: {
3335
- ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
3392
+ ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
3336
3393
  ...h == null ? void 0 : h.data
3337
3394
  },
3338
3395
  meta: {
@@ -3362,10 +3419,10 @@ function Un(e) {
3362
3419
  callbacks: {
3363
3420
  configureSdk: (y) => {
3364
3421
  var T;
3365
- const { breakpoints: S, contentId: k } = y;
3366
- !k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || S && i({
3422
+ const { breakpoints: v, contentId: k } = y;
3423
+ !k || k !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || v && i({
3367
3424
  meta: {
3368
- breakpoints: S
3425
+ breakpoints: v
3369
3426
  }
3370
3427
  });
3371
3428
  },
@@ -3379,8 +3436,8 @@ function Un(e) {
3379
3436
  })(h);
3380
3437
  }
3381
3438
  function c() {
3382
- var y, S;
3383
- const h = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.jsCode;
3439
+ var y, v;
3440
+ const h = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.jsCode;
3384
3441
  h && q({
3385
3442
  code: h,
3386
3443
  context: e.context || {},
@@ -3395,24 +3452,24 @@ function Un(e) {
3395
3452
  }
3396
3453
  const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
3397
3454
  function I(h) {
3398
- var y, S;
3455
+ var y, v;
3399
3456
  if (e.builderContextSignal.content) {
3400
- const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
3457
+ const k = (y = e.builderContextSignal.content) == null ? void 0 : y.testVariationId, T = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
3401
3458
  he({
3402
3459
  type: "click",
3403
3460
  canTrack: Q(e.canTrack),
3404
3461
  contentId: T,
3405
3462
  apiKey: e.apiKey,
3406
3463
  variationId: k !== T ? k : void 0,
3407
- ...Fn(h),
3464
+ ...$n(h),
3408
3465
  unique: !g
3409
3466
  });
3410
3467
  }
3411
3468
  g || p(!0);
3412
3469
  }
3413
3470
  function x() {
3414
- var y, S, k;
3415
- const h = (k = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.httpRequests) != null ? k : {};
3471
+ var y, v, k;
3472
+ const h = (k = (v = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : v.httpRequests) != null ? k : {};
3416
3473
  Object.entries(h).forEach(([T, N]) => {
3417
3474
  if (!N || d[T] || u[T] && !$())
3418
3475
  return;
@@ -3509,9 +3566,9 @@ function Un(e) {
3509
3566
  e.content && i(e.content);
3510
3567
  }, [e.content]), P(() => {
3511
3568
  c();
3512
- }, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), P(() => {
3569
+ }, [(A = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : A.jsCode]), P(() => {
3513
3570
  x();
3514
- }, [(v = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : v.httpRequests]), P(() => {
3571
+ }, [(S = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : S.httpRequests]), P(() => {
3515
3572
  R();
3516
3573
  }, [e.builderContextSignal.rootState]), P(() => {
3517
3574
  e.data && n(e.data);
@@ -3533,29 +3590,29 @@ function Un(e) {
3533
3590
  "builder-model": e.model,
3534
3591
  ...o(),
3535
3592
  ...e.contentWrapperProps,
3536
- className: jn(
3593
+ className: Mn(
3537
3594
  ((F = e.content) == null ? void 0 : F.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
3538
3595
  ),
3539
3596
  children: e.children
3540
3597
  }
3541
3598
  ) : null });
3542
3599
  }
3543
- function Mn(e) {
3600
+ function Kn(e) {
3544
3601
  const [t, n] = C(
3545
3602
  () => `
3546
- ${Dn({
3603
+ ${On({
3547
3604
  cssCode: e.cssCode,
3548
3605
  contentId: e.contentId
3549
3606
  })}
3550
- ${$n({
3607
+ ${Ln({
3551
3608
  customFonts: e.customFonts
3552
3609
  })}
3553
- ${On(e.isNestedRender)}
3610
+ ${Un(e.isNestedRender)}
3554
3611
  `.trim()
3555
3612
  );
3556
3613
  return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
3557
3614
  }
3558
- const Hn = ({
3615
+ const qn = ({
3559
3616
  content: e,
3560
3617
  data: t,
3561
3618
  locale: n
@@ -3572,7 +3629,7 @@ const Hn = ({
3572
3629
  locale: n
3573
3630
  } : {}
3574
3631
  };
3575
- }, Kn = ({
3632
+ }, _n = ({
3576
3633
  content: e,
3577
3634
  data: t
3578
3635
  }) => e ? {
@@ -3588,7 +3645,7 @@ function Te(e) {
3588
3645
  const [t, n] = C(
3589
3646
  () => {
3590
3647
  var I, x;
3591
- return Pn({
3648
+ return Nn({
3592
3649
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3593
3650
  variationId: (I = e.content) == null ? void 0 : I.testVariationId,
3594
3651
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3604,7 +3661,7 @@ function Te(e) {
3604
3661
  }
3605
3662
  const [o, l] = C(
3606
3663
  () => [
3607
- ...ve(),
3664
+ ...Se(),
3608
3665
  ...e.customComponents || []
3609
3666
  ].reduce(
3610
3667
  (I, { component: x, ...R }) => ({
@@ -3617,12 +3674,12 @@ function Te(e) {
3617
3674
  {}
3618
3675
  )
3619
3676
  ), [a, r] = C(() => ({
3620
- content: Kn({
3677
+ content: _n({
3621
3678
  content: e.content,
3622
3679
  data: e.data
3623
3680
  }),
3624
3681
  localState: void 0,
3625
- rootState: Hn({
3682
+ rootState: qn({
3626
3683
  content: e.content,
3627
3684
  data: e.data,
3628
3685
  locale: e.locale
@@ -3633,7 +3690,7 @@ function Te(e) {
3633
3690
  apiKey: e.apiKey,
3634
3691
  apiVersion: e.apiVersion,
3635
3692
  componentInfos: [
3636
- ...ve(),
3693
+ ...Se(),
3637
3694
  ...e.customComponents || []
3638
3695
  ].reduce(
3639
3696
  (I, { component: x, ...R }) => ({
@@ -3647,13 +3704,13 @@ function Te(e) {
3647
3704
  BlocksWrapperProps: e.blocksWrapperProps || {}
3648
3705
  }));
3649
3706
  return /* @__PURE__ */ s(
3650
- Be.Provider,
3707
+ Ve.Provider,
3651
3708
  {
3652
3709
  value: {
3653
3710
  registeredComponents: o
3654
3711
  },
3655
- children: /* @__PURE__ */ B(
3656
- Un,
3712
+ children: /* @__PURE__ */ V(
3713
+ Hn,
3657
3714
  {
3658
3715
  content: e.content,
3659
3716
  data: e.data,
@@ -3678,7 +3735,7 @@ function Te(e) {
3678
3735
  }
3679
3736
  ) : null,
3680
3737
  /* @__PURE__ */ s(
3681
- Mn,
3738
+ Kn,
3682
3739
  {
3683
3740
  isNestedRender: e.isNestedRender,
3684
3741
  contentId: (c = a.content) == null ? void 0 : c.id,
@@ -3701,17 +3758,17 @@ function Te(e) {
3701
3758
  }
3702
3759
  );
3703
3760
  }
3704
- function qn(e) {
3761
+ function zn(e) {
3705
3762
  var a;
3706
3763
  const [t, n] = C(
3707
- () => En({
3764
+ () => Vn({
3708
3765
  canTrack: Q(e.canTrack),
3709
3766
  content: e.content
3710
3767
  })
3711
3768
  );
3712
3769
  function i() {
3713
3770
  var r;
3714
- return Vn(
3771
+ return An(
3715
3772
  J(e.content).map((c) => ({
3716
3773
  id: c.testVariationId,
3717
3774
  testRatio: c.testRatio
@@ -3733,15 +3790,15 @@ function qn(e) {
3733
3790
  });
3734
3791
  }
3735
3792
  return P(() => {
3736
- }, []), /* @__PURE__ */ B(E, { children: [
3793
+ }, []), /* @__PURE__ */ V(E, { children: [
3737
3794
  !e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ s(
3738
3795
  ce,
3739
3796
  {
3740
3797
  id: "builderio-init-variants-fns",
3741
- scriptStr: Bn()
3798
+ scriptStr: Pn()
3742
3799
  }
3743
3800
  ) : null,
3744
- t ? /* @__PURE__ */ B(E, { children: [
3801
+ t ? /* @__PURE__ */ V(E, { children: [
3745
3802
  /* @__PURE__ */ s(
3746
3803
  ne,
3747
3804
  {
@@ -3808,7 +3865,7 @@ function qn(e) {
3808
3865
  )
3809
3866
  ] });
3810
3867
  }
3811
- const _n = async ({
3868
+ const Jn = async ({
3812
3869
  builderContextValue: e,
3813
3870
  symbol: t
3814
3871
  }) => {
@@ -3827,7 +3884,7 @@ const _n = async ({
3827
3884
  Z.error("Could not fetch symbol content: ", n);
3828
3885
  });
3829
3886
  };
3830
- function zn(e) {
3887
+ function Yn(e) {
3831
3888
  var r, c, u, f;
3832
3889
  function t() {
3833
3890
  return "div";
@@ -3849,7 +3906,7 @@ function zn(e) {
3849
3906
  return (d = e.symbol) == null ? void 0 : d.content;
3850
3907
  });
3851
3908
  function a() {
3852
- o || _n({
3909
+ o || Jn({
3853
3910
  symbol: e.symbol,
3854
3911
  builderContextValue: e.builderContext
3855
3912
  }).then((d) => {
@@ -3860,7 +3917,7 @@ function zn(e) {
3860
3917
  }, []), P(() => {
3861
3918
  a();
3862
3919
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
3863
- qn,
3920
+ zn,
3864
3921
  {
3865
3922
  isNestedRender: !0,
3866
3923
  apiVersion: e.builderContext.apiVersion,
@@ -3889,11 +3946,11 @@ export {
3889
3946
  me as BuilderContext,
3890
3947
  ot as Button,
3891
3948
  $t as Columns,
3892
- qn as Content,
3949
+ zn as Content,
3893
3950
  Dt as Fragment,
3894
3951
  jt as Image,
3895
3952
  Ut as Section,
3896
- zn as Symbol,
3953
+ Yn as Symbol,
3897
3954
  tn as Text,
3898
- Cn as Video
3955
+ In as Video
3899
3956
  };