@builder.io/sdk-react 0.13.2 → 0.13.4

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 (36) hide show
  1. package/lib/browser/index.cjs +8 -8
  2. package/lib/browser/index.mjs +90 -90
  3. package/lib/browser/{server-entry-be000726.js → server-entry-2a8acf68.js} +1 -1
  4. package/lib/browser/{server-entry-af9b0dd3.cjs → server-entry-881c178e.cjs} +1 -1
  5. package/lib/browser/server-entry.cjs +1 -1
  6. package/lib/browser/server-entry.mjs +1 -1
  7. package/lib/edge/index.cjs +13 -13
  8. package/lib/edge/index.mjs +105 -105
  9. package/lib/edge/{server-entry-b02b5197.js → server-entry-13732838.js} +1 -1
  10. package/lib/edge/{server-entry-af9b0dd3.cjs → server-entry-881c178e.cjs} +1 -1
  11. package/lib/edge/server-entry.cjs +1 -1
  12. package/lib/edge/server-entry.mjs +1 -1
  13. package/lib/node/index.cjs +6 -6
  14. package/lib/node/index.mjs +283 -283
  15. package/lib/node/{server-entry-6e7475d7.cjs → server-entry-ad7cbbbf.cjs} +1 -1
  16. package/lib/node/{server-entry-9969d641.js → server-entry-c8223f30.js} +1 -1
  17. package/lib/node/server-entry.cjs +1 -1
  18. package/lib/node/server-entry.mjs +1 -1
  19. package/package.json +1 -1
  20. package/types/blocks/columns/columns.d.ts +1 -2
  21. package/types/blocks/columns/columns.types.d.ts +2 -2
  22. package/types/blocks/form/form/form.d.ts +3 -3
  23. package/types/blocks/slot/slot.d.ts +3 -3
  24. package/types/blocks/symbol/symbol.d.ts +1 -2
  25. package/types/blocks/symbol/symbol.types.d.ts +2 -2
  26. package/types/components/block/components/block-wrapper.d.ts +2 -2
  27. package/types/components/block/components/component-ref/component-ref.helpers.d.ts +3 -3
  28. package/types/components/block/components/interactive-element.d.ts +3 -2
  29. package/types/components/blocks/blocks-wrapper.d.ts +2 -2
  30. package/types/components/content/content.types.d.ts +1 -8
  31. package/types/components/content/contentProps.types.d.ts +12 -0
  32. package/types/components/dynamic-renderer/dynamic-renderer.d.ts +4 -3
  33. package/types/constants/sdk-version.d.ts +1 -1
  34. package/types/types/builder-props.d.ts +1 -1
  35. package/types/types/input.d.ts +1 -0
  36. package/types/types/typescript.d.ts +0 -3
@@ -1,11 +1,11 @@
1
1
  "use client";
2
2
  import { jsx as l, Fragment as m, jsxs as F } from "react/jsx-runtime";
3
3
  import { createContext as Te, useState as v, useEffect as V, useContext as he, useRef as ee, createElement as ae } from "react";
4
- import { T as z, i as M, k as j, l as je, m as G, n as _, o as re, p as X, q as ge, a as He, u as _e, v as Ke, w as qe, c as ze, e as Ee, x as Je, y as be, z as ye, A as Ye } from "./server-entry-be000726.js";
5
- import { _ as On, f as Un, d as jn, h as Hn, g as _n, j as Kn, r as qn, s as zn, b as Jn, t as Yn } from "./server-entry-be000726.js";
6
- const Qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ge = (e) => typeof e == "string" && Qe.has(e.toLowerCase());
4
+ import { T as z, i as M, k as U, l as Ue, m as Q, n as _, o as re, p as X, q as ge, a as He, u as _e, v as Ke, w as qe, c as ze, e as Ee, x as Je, y as be, z as ye, A as Ye } from "./server-entry-2a8acf68.js";
5
+ import { _ as On, f as jn, d as Un, h as Hn, g as _n, j as Kn, r as qn, s as zn, b as Jn, t as Yn } from "./server-entry-2a8acf68.js";
6
+ const Ge = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Ge.has(e.toLowerCase());
7
7
  function le(e) {
8
- return /* @__PURE__ */ l(m, { children: Ge(e.TagName) ? /* @__PURE__ */ l(m, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(m, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(m, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ l(m, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
8
+ return /* @__PURE__ */ l(m, { children: Qe(e.TagName) ? /* @__PURE__ */ l(m, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(m, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(m, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) : /* @__PURE__ */ l(m, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) }) });
9
9
  }
10
10
  const K = () => {
11
11
  switch (z) {
@@ -80,9 +80,9 @@ const et = ({
80
80
  event: n
81
81
  }), tt = () => ({
82
82
  isEditing: M(),
83
- isBrowser: j(),
84
- isServer: !j(),
85
- getUserAttributes: () => je()
83
+ isBrowser: U(),
84
+ isServer: !U(),
85
+ getUserAttributes: () => Ue()
86
86
  }), nt = (e, {
87
87
  isExpression: t = !0
88
88
  }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, pe = ({
@@ -133,7 +133,7 @@ function Pe({
133
133
  }
134
134
  function it() {
135
135
  var e;
136
- return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
136
+ return typeof process != "undefined" && Q((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
137
137
  }
138
138
  const ot = () => {
139
139
  var i;
@@ -141,7 +141,7 @@ const ot = () => {
141
141
  return !1;
142
142
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
143
143
  return e && t && !n ? (_.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
144
- }, at = (e) => (j() || ot(), pe(e));
144
+ }, at = (e) => (U() || ot(), pe(e));
145
145
  function q({
146
146
  code: e,
147
147
  context: t,
@@ -255,7 +255,7 @@ function st(e) {
255
255
  for (const t of e)
256
256
  switch (t.trigger) {
257
257
  case "pageLoad":
258
- Ae(t);
258
+ Be(t);
259
259
  break;
260
260
  case "hover":
261
261
  dt(t);
@@ -281,7 +281,7 @@ function ct(e) {
281
281
  t.indexOf(i) === -1 && t.push(i);
282
282
  return t;
283
283
  }
284
- function Ae(e) {
284
+ function Be(e) {
285
285
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
286
286
  if (!t.length) {
287
287
  de(e.elementId || e.id || "");
@@ -405,7 +405,7 @@ const mt = ({
405
405
  },
406
406
  block: i
407
407
  }));
408
- }, Be = {
408
+ }, Ae = {
409
409
  small: {
410
410
  min: 320,
411
411
  default: 321,
@@ -421,11 +421,11 @@ const mt = ({
421
421
  default: 991,
422
422
  max: 1200
423
423
  }
424
- }, xe = (e, t = Be) => `@media (max-width: ${t[e].max}px)`, We = ({
424
+ }, xe = (e, t = Ae) => `@media (max-width: ${t[e].max}px)`, We = ({
425
425
  small: e,
426
426
  medium: t
427
427
  }) => {
428
- const n = re(Be);
428
+ const n = re(Ae);
429
429
  if (!e || !t)
430
430
  return n;
431
431
  const i = Math.floor(e / 2);
@@ -450,7 +450,7 @@ const mt = ({
450
450
  }, ht = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Fe = (e) => Object.entries(e).map(([n, i]) => {
451
451
  if (typeof i == "string")
452
452
  return `${ht(n)}: ${i};`;
453
- }).filter(G), gt = (e) => Fe(e).join(`
453
+ }).filter(Q), gt = (e) => Fe(e).join(`
454
454
  `), ne = ({
455
455
  mediaQuery: e,
456
456
  className: t,
@@ -476,7 +476,7 @@ function bt(e) {
476
476
  context: e.context.context,
477
477
  shouldEvaluateBindings: !0
478
478
  });
479
- return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
479
+ return Q(i.hide) ? !i.hide : Q(i.show) ? i.show : !0;
480
480
  }
481
481
  function n() {
482
482
  var y;
@@ -760,17 +760,17 @@ function J(e) {
760
760
  return !((y = t == null ? void 0 : t()) != null && y.component) && !n() ? (p = i().children) != null ? p : [] : [];
761
761
  }
762
762
  function s() {
763
- var f, y, p, E, B, k, I, A, P, $, L;
763
+ var f, y, p, E, A, k, I, B, P, $, L;
764
764
  return {
765
765
  blockChildren: (f = i().children) != null ? f : [],
766
766
  componentRef: (y = t == null ? void 0 : t()) == null ? void 0 : y.component,
767
767
  componentOptions: {
768
768
  ...Ze(i()),
769
769
  builderContext: e.context,
770
- ...((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Core:Button" || ((E = t == null ? void 0 : t()) == null ? void 0 : E.name) === "Symbol" || ((B = t == null ? void 0 : t()) == null ? void 0 : B.name) === "Columns" || ((k = t == null ? void 0 : t()) == null ? void 0 : k.name) === "Form:Form" ? {
770
+ ...((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Core:Button" || ((E = t == null ? void 0 : t()) == null ? void 0 : E.name) === "Symbol" || ((A = t == null ? void 0 : t()) == null ? void 0 : A.name) === "Columns" || ((k = t == null ? void 0 : t()) == null ? void 0 : k.name) === "Form:Form" ? {
771
771
  builderLinkComponent: e.linkComponent
772
772
  } : {},
773
- ...((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Symbol" || ((A = t == null ? void 0 : t()) == null ? void 0 : A.name) === "Columns" || ((P = t == null ? void 0 : t()) == null ? void 0 : P.name) === "Form:Form" ? {
773
+ ...((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Symbol" || ((B = t == null ? void 0 : t()) == null ? void 0 : B.name) === "Columns" || ((P = t == null ? void 0 : t()) == null ? void 0 : P.name) === "Form:Form" ? {
774
774
  builderComponents: e.registeredComponents
775
775
  } : {}
776
776
  },
@@ -887,7 +887,7 @@ function Rt(e) {
887
887
  /* @__PURE__ */ l(
888
888
  e.BlocksWrapper,
889
889
  {
890
- className: t() + " props-blocks-wrapper-4f2c12d8",
890
+ className: t() + " props-blocks-wrapper-7354e098",
891
891
  "builder-path": e.path,
892
892
  "builder-parent-id": e.parent,
893
893
  style: e.styleProp,
@@ -898,14 +898,14 @@ function Rt(e) {
898
898
  children: e.children
899
899
  }
900
900
  ),
901
- /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-4f2c12d8 {
901
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-7354e098 {
902
902
  display: flex;
903
903
  flex-direction: column;
904
904
  align-items: stretch;
905
905
  }` })
906
906
  ] });
907
907
  }
908
- function U(e) {
908
+ function j(e) {
909
909
  var i, o, a;
910
910
  const t = he(se), n = he(Re);
911
911
  return /* @__PURE__ */ l(
@@ -931,7 +931,7 @@ function U(e) {
931
931
  );
932
932
  }
933
933
  function Pt(e) {
934
- var B;
934
+ var A;
935
935
  const [t, n] = v(
936
936
  () => typeof e.space == "number" ? e.space || 0 : 20
937
937
  ), [i, o] = v(() => e.columns || []), [a, r] = v(
@@ -970,18 +970,18 @@ function Pt(e) {
970
970
  };
971
971
  }
972
972
  function y(k) {
973
- const I = k === 0 ? 0 : t, A = c(k), P = `${I}px`, $ = "100%", L = 0;
973
+ const I = k === 0 ? 0 : t, B = c(k), P = `${I}px`, $ = "100%", L = 0;
974
974
  return {
975
975
  ...{
976
976
  display: "flex",
977
977
  flexDirection: "column",
978
978
  alignItems: "stretch"
979
979
  },
980
- width: A,
980
+ width: B,
981
981
  ["marginLeft"]: P,
982
982
  "--column-width-mobile": u({
983
983
  stackedStyle: $,
984
- desktopStyle: A
984
+ desktopStyle: B
985
985
  }),
986
986
  "--column-margin-left-mobile": u({
987
987
  stackedStyle: L,
@@ -989,7 +989,7 @@ function Pt(e) {
989
989
  }),
990
990
  "--column-width-tablet": d({
991
991
  stackedStyle: $,
992
- desktopStyle: A
992
+ desktopStyle: B
993
993
  }),
994
994
  "--column-margin-left-tablet": d({
995
995
  stackedStyle: L,
@@ -998,9 +998,9 @@ function Pt(e) {
998
998
  };
999
999
  }
1000
1000
  function p(k) {
1001
- var A, P;
1001
+ var B, P;
1002
1002
  return We(
1003
- ((P = (A = e.builderContext.content) == null ? void 0 : A.meta) == null ? void 0 : P.breakpoints) || {}
1003
+ ((P = (B = e.builderContext.content) == null ? void 0 : B.meta) == null ? void 0 : P.breakpoints) || {}
1004
1004
  )[k].max;
1005
1005
  }
1006
1006
  function E() {
@@ -1034,11 +1034,11 @@ function Pt(e) {
1034
1034
  /* @__PURE__ */ F(
1035
1035
  "div",
1036
1036
  {
1037
- className: `builder-columns ${e.builderBlock.id}-breakpoints div-002fb3ba`,
1037
+ className: `builder-columns ${e.builderBlock.id}-breakpoints div-1046d78c`,
1038
1038
  style: f(),
1039
1039
  children: [
1040
1040
  /* @__PURE__ */ l(m, { children: /* @__PURE__ */ l(te, { styles: E() }) }),
1041
- (B = e.columns) == null ? void 0 : B.map((k, I) => /* @__PURE__ */ l(
1041
+ (A = e.columns) == null ? void 0 : A.map((k, I) => /* @__PURE__ */ l(
1042
1042
  le,
1043
1043
  {
1044
1044
  TagName: k.link ? e.builderLinkComponent || "a" : "div",
@@ -1051,7 +1051,7 @@ function Pt(e) {
1051
1051
  style: $e(y(I))
1052
1052
  },
1053
1053
  children: /* @__PURE__ */ l(
1054
- U,
1054
+ j,
1055
1055
  {
1056
1056
  path: `component.options.columns.${I}.blocks`,
1057
1057
  parent: e.builderBlock.id,
@@ -1070,7 +1070,7 @@ function Pt(e) {
1070
1070
  ]
1071
1071
  }
1072
1072
  ),
1073
- /* @__PURE__ */ l("style", { children: `.div-002fb3ba {
1073
+ /* @__PURE__ */ l("style", { children: `.div-1046d78c {
1074
1074
  display: flex;
1075
1075
  line-height: normal;
1076
1076
  }` })
@@ -1082,11 +1082,11 @@ function Vt(e) {
1082
1082
  function ve(e) {
1083
1083
  return e.replace(/http(s)?:/, "");
1084
1084
  }
1085
- function At(e = "", t, n) {
1085
+ function Bt(e = "", t, n) {
1086
1086
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1087
1087
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1088
1088
  }
1089
- function Bt(e, t) {
1089
+ function At(e, t) {
1090
1090
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1091
1091
  return e;
1092
1092
  if (t === "master")
@@ -1105,9 +1105,9 @@ function ie(e) {
1105
1105
  if (e.match(/builder\.io/)) {
1106
1106
  let n = e;
1107
1107
  const i = Number(e.split("?width=")[1]);
1108
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${At(e, "width", o)} ${o}w`).concat([n]).join(", ");
1108
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Bt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1109
1109
  }
1110
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Bt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1110
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [At(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1111
1111
  }
1112
1112
  function Wt(e) {
1113
1113
  var o, a, r, s;
@@ -1606,7 +1606,7 @@ const Nt = {
1606
1606
  defaultValue: "children"
1607
1607
  }]
1608
1608
  };
1609
- function Ut(e) {
1609
+ function jt(e) {
1610
1610
  var t, n, i;
1611
1611
  return /* @__PURE__ */ l(
1612
1612
  "div",
@@ -1618,7 +1618,7 @@ function Ut(e) {
1618
1618
  "builder-slot": e.name
1619
1619
  },
1620
1620
  children: /* @__PURE__ */ l(
1621
- U,
1621
+ j,
1622
1622
  {
1623
1623
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1624
1624
  path: `symbol.data.${e.name}`,
@@ -1629,7 +1629,7 @@ function Ut(e) {
1629
1629
  }
1630
1630
  );
1631
1631
  }
1632
- const jt = {
1632
+ const Ut = {
1633
1633
  name: "Symbol",
1634
1634
  noWrap: !0,
1635
1635
  static: !0,
@@ -1781,7 +1781,7 @@ const zt = {
1781
1781
  hideFromUI: !0
1782
1782
  }]
1783
1783
  }, Jt = ["text/javascript", "application/javascript", "application/ecmascript"], Yt = (e) => Jt.includes(e.type);
1784
- function Qt(e) {
1784
+ function Gt(e) {
1785
1785
  const t = ee(null), [n, i] = v(() => []), [o, a] = v(() => []), [r, s] = v(() => !1);
1786
1786
  function c() {
1787
1787
  if (!t.current || !t.current.getElementsByTagName)
@@ -1812,7 +1812,7 @@ function Qt(e) {
1812
1812
  }
1813
1813
  );
1814
1814
  }
1815
- const Gt = {
1815
+ const Qt = {
1816
1816
  name: "Form:Form",
1817
1817
  // editableTags: ['builder-form-error']
1818
1818
  defaults: {
@@ -2075,9 +2075,9 @@ function tn(e) {
2075
2075
  return;
2076
2076
  }
2077
2077
  f.preventDefault();
2078
- const E = f.currentTarget, B = e.customHeaders || {};
2078
+ const E = f.currentTarget, A = e.customHeaders || {};
2079
2079
  let k;
2080
- const I = new FormData(E), A = Array.from(
2080
+ const I = new FormData(E), B = Array.from(
2081
2081
  f.currentTarget.querySelectorAll("input,select,textarea")
2082
2082
  ).filter((h) => !!h.name).map((h) => {
2083
2083
  let T;
@@ -2104,17 +2104,17 @@ function tn(e) {
2104
2104
  };
2105
2105
  });
2106
2106
  let P = e.contentType;
2107
- if (e.sendSubmissionsTo === "email" && (P = "multipart/form-data"), Array.from(A).forEach(({ value: h }) => {
2107
+ if (e.sendSubmissionsTo === "email" && (P = "multipart/form-data"), Array.from(B).forEach(({ value: h }) => {
2108
2108
  (h instanceof File || Array.isArray(h) && h[0] instanceof File || h instanceof FileList) && (P = "multipart/form-data");
2109
2109
  }), P !== "application/json")
2110
2110
  k = I;
2111
2111
  else {
2112
2112
  const h = {};
2113
- Array.from(A).forEach(({ value: T, key: D }) => {
2113
+ Array.from(B).forEach(({ value: T, key: D }) => {
2114
2114
  Ve(h, D, T);
2115
2115
  }), k = JSON.stringify(h);
2116
2116
  }
2117
- P && P !== "multipart/form-data" && (y && ((p = e.action) != null && p.includes("zapier.com")) || (B["content-type"] = P));
2117
+ P && P !== "multipart/form-data" && (y && ((p = e.action) != null && p.includes("zapier.com")) || (A["content-type"] = P));
2118
2118
  const $ = new CustomEvent("presubmit", { detail: { body: k } });
2119
2119
  if (t.current && (t.current.dispatchEvent($), $.defaultPrevented))
2120
2120
  return;
@@ -2124,7 +2124,7 @@ function tn(e) {
2124
2124
  )}&name=${encodeURIComponent(e.name || "")}`;
2125
2125
  fetch(
2126
2126
  e.sendSubmissionsTo === "email" ? L : e.action,
2127
- { body: k, headers: B, method: e.method || "post" }
2127
+ { body: k, headers: A, method: e.method || "post" }
2128
2128
  ).then(
2129
2129
  async (h) => {
2130
2130
  let T;
@@ -2187,7 +2187,7 @@ function tn(e) {
2187
2187
  )) }) : null,
2188
2188
  " ",
2189
2189
  d() === "error" ? /* @__PURE__ */ l(m, { children: /* @__PURE__ */ l(
2190
- U,
2190
+ j,
2191
2191
  {
2192
2192
  path: "errorMessage",
2193
2193
  blocks: e.errorMessage,
@@ -2196,7 +2196,7 @@ function tn(e) {
2196
2196
  ) }) : null,
2197
2197
  " ",
2198
2198
  d() === "sending" ? /* @__PURE__ */ l(m, { children: /* @__PURE__ */ l(
2199
- U,
2199
+ j,
2200
2200
  {
2201
2201
  path: "sendingMessage",
2202
2202
  blocks: e.sendingMessage,
@@ -2204,14 +2204,14 @@ function tn(e) {
2204
2204
  }
2205
2205
  ) }) : null,
2206
2206
  " ",
2207
- d() === "error" && o ? /* @__PURE__ */ l(m, { children: /* @__PURE__ */ F("pre", { className: "builder-form-error-text pre-8fbb5280", children: [
2207
+ d() === "error" && o ? /* @__PURE__ */ l(m, { children: /* @__PURE__ */ F("pre", { className: "builder-form-error-text pre-25b9edf0", children: [
2208
2208
  " ",
2209
2209
  JSON.stringify(o, null, 2),
2210
2210
  " "
2211
2211
  ] }) }) : null,
2212
2212
  " ",
2213
2213
  d() === "success" ? /* @__PURE__ */ l(m, { children: /* @__PURE__ */ l(
2214
- U,
2214
+ j,
2215
2215
  {
2216
2216
  path: "successMessage",
2217
2217
  blocks: e.successMessage,
@@ -2223,7 +2223,7 @@ function tn(e) {
2223
2223
  }
2224
2224
  ),
2225
2225
  " ",
2226
- /* @__PURE__ */ l("style", { children: ".pre-8fbb5280 { padding: 10px; color: red; text-align: center; }" }),
2226
+ /* @__PURE__ */ l("style", { children: ".pre-25b9edf0 { padding: 10px; color: red; text-align: center; }" }),
2227
2227
  " "
2228
2228
  ] });
2229
2229
  }
@@ -2423,7 +2423,7 @@ const un = {
2423
2423
  type: "file",
2424
2424
  allowedFileTypes: ["mp4"],
2425
2425
  bubble: !0,
2426
- defaultValue: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/assets%2FKQlEmWDxA0coC3PK6UvkrjwkIGI2%2F28cb070609f546cdbe5efa20e931aa4b?alt=media&token=912e9551-7a7c-4dfb-86b6-3da1537d1a7f",
2426
+ defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
2427
2427
  required: !0
2428
2428
  }, {
2429
2429
  name: "posterImage",
@@ -2597,11 +2597,11 @@ const fn = () => [{
2597
2597
  component: qt,
2598
2598
  ...Kt
2599
2599
  }, {
2600
- component: Qt,
2600
+ component: Gt,
2601
2601
  ...zt
2602
2602
  }, {
2603
2603
  component: tn,
2604
- ...Gt
2604
+ ...Qt
2605
2605
  }, {
2606
2606
  component: on,
2607
2607
  ...nn
@@ -2633,11 +2633,11 @@ const fn = () => [{
2633
2633
  component: Ft,
2634
2634
  ...Mt
2635
2635
  }, {
2636
- component: Ut,
2636
+ component: jt,
2637
2637
  ...Ot
2638
2638
  }, {
2639
- component: Bn,
2640
- ...jt
2639
+ component: An,
2640
+ ...Ut
2641
2641
  }, {
2642
2642
  component: _t,
2643
2643
  ...Ht
@@ -2731,14 +2731,14 @@ const fn = () => [{
2731
2731
  thisScriptEl?.remove();
2732
2732
  }
2733
2733
  return;
2734
- }`, Le = "builderIoAbTest", De = "builderIoRenderContent", Q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2734
+ }`, Le = "builderIoAbTest", De = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2735
2735
  ...t,
2736
2736
  testVariationId: t.id,
2737
2737
  id: e == null ? void 0 : e.id
2738
2738
  })), bn = ({
2739
2739
  canTrack: e,
2740
2740
  content: t
2741
- }) => !(!(Q(t).length > 0) || !e || j()), yn = (e) => e === "react" || e === "reactNative", Me = yn(z), pn = () => `
2741
+ }) => !(!(G(t).length > 0) || !e || U()), yn = (e) => e === "react" || e === "reactNative", Me = yn(z), pn = () => `
2742
2742
  window.${Le} = ${hn}
2743
2743
  window.${De} = ${gn}
2744
2744
  `, xn = (e, t) => `
@@ -2832,8 +2832,8 @@ function wn(e) {
2832
2832
  breakpoints: ((R = g == null ? void 0 : g.meta) == null ? void 0 : R.breakpoints) || ((Y = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : Y.breakpoints)
2833
2833
  }
2834
2834
  };
2835
- e.setBuilderContextSignal((Ue) => ({
2836
- ...Ue,
2835
+ e.setBuilderContextSignal((je) => ({
2836
+ ...je,
2837
2837
  content: b
2838
2838
  }));
2839
2839
  }
@@ -2858,7 +2858,7 @@ function wn(e) {
2858
2858
  }), i(n + 1));
2859
2859
  },
2860
2860
  animation: (b) => {
2861
- Ae(b);
2861
+ Be(b);
2862
2862
  },
2863
2863
  contentUpdate: (b) => {
2864
2864
  a(b), i(n + 1);
@@ -2894,7 +2894,7 @@ function wn(e) {
2894
2894
  }
2895
2895
  y || p(!0);
2896
2896
  }
2897
- function B(g) {
2897
+ function A(g) {
2898
2898
  return g.replace(
2899
2899
  /{{([^}]+)}}/g,
2900
2900
  (b, S) => q({
@@ -2923,7 +2923,7 @@ function wn(e) {
2923
2923
  const g = (w = (S = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : S.httpRequests) != null ? w : {};
2924
2924
  Object.entries(g).forEach(([R, N]) => {
2925
2925
  if (N && (!C[R] || M())) {
2926
- const Y = B(N);
2926
+ const Y = A(N);
2927
2927
  k({
2928
2928
  url: Y,
2929
2929
  key: R
@@ -2931,7 +2931,7 @@ function wn(e) {
2931
2931
  }
2932
2932
  });
2933
2933
  }
2934
- function A() {
2934
+ function B() {
2935
2935
  M() && window.dispatchEvent(
2936
2936
  new CustomEvent(
2937
2937
  "builder:component:stateChange",
@@ -2968,7 +2968,7 @@ function wn(e) {
2968
2968
  (w = window.parent) == null || w.postMessage(S, "*");
2969
2969
  }), window.addEventListener(
2970
2970
  "builder:component:stateChangeListenerActivated",
2971
- A
2971
+ B
2972
2972
  );
2973
2973
  }
2974
2974
  function $(g) {
@@ -3009,7 +3009,7 @@ function wn(e) {
3009
3009
  };
3010
3010
  }, []), V(() => {
3011
3011
  var g, b;
3012
- if (j()) {
3012
+ if (U()) {
3013
3013
  if (M() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && X(e.canTrack)) {
3014
3014
  const w = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, R = (b = e.builderContextSignal.content) == null ? void 0 : b.id, N = e.apiKey;
3015
3015
  ge({
@@ -3025,7 +3025,7 @@ function wn(e) {
3025
3025
  }, []), V(() => {
3026
3026
  e.apiKey || _.error(
3027
3027
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3028
- ), x(), I(), A();
3028
+ ), x(), I(), B();
3029
3029
  }, []), V(() => {
3030
3030
  e.content && a(e.content);
3031
3031
  }, [e.content]), V(() => {
@@ -3034,7 +3034,7 @@ function wn(e) {
3034
3034
  }, [(h = (L = e.builderContextSignal.content) == null ? void 0 : L.data) == null ? void 0 : h.jsCode]), V(() => {
3035
3035
  I();
3036
3036
  }, [(D = (T = e.builderContextSignal.content) == null ? void 0 : T.data) == null ? void 0 : D.httpRequests]), V(() => {
3037
- A();
3037
+ B();
3038
3038
  }, [e.builderContextSignal.rootState]), V(() => {
3039
3039
  e.data && o(e.data);
3040
3040
  }, [e.data]), V(() => {
@@ -3042,9 +3042,9 @@ function wn(e) {
3042
3042
  locale: e.locale
3043
3043
  });
3044
3044
  }, [e.locale]), V(() => () => {
3045
- j() && (window.removeEventListener("message", u), window.removeEventListener(
3045
+ U() && (window.removeEventListener("message", u), window.removeEventListener(
3046
3046
  "builder:component:stateChangeListenerActivated",
3047
- A
3047
+ B
3048
3048
  ));
3049
3049
  }, []), /* @__PURE__ */ l(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(m, { children: /* @__PURE__ */ ae(
3050
3050
  c,
@@ -3188,11 +3188,11 @@ function Ie(e) {
3188
3188
  ...be,
3189
3189
  ...e.customComponents || []
3190
3190
  ].reduce(
3191
- (p, { component: E, ...B }) => ({
3191
+ (p, { component: E, ...A }) => ({
3192
3192
  ...p,
3193
- [B.name]: {
3193
+ [A.name]: {
3194
3194
  component: E,
3195
- ...ye(B)
3195
+ ...ye(A)
3196
3196
  }
3197
3197
  }),
3198
3198
  {}
@@ -3222,9 +3222,9 @@ function Ie(e) {
3222
3222
  ...be,
3223
3223
  ...e.customComponents || []
3224
3224
  ].reduce(
3225
- (p, { component: E, ...B }) => ({
3225
+ (p, { component: E, ...A }) => ({
3226
3226
  ...p,
3227
- [B.name]: ye(B)
3227
+ [A.name]: ye(A)
3228
3228
  }),
3229
3229
  {}
3230
3230
  ),
@@ -3268,7 +3268,7 @@ function Ie(e) {
3268
3268
  }
3269
3269
  ) }),
3270
3270
  /* @__PURE__ */ l(
3271
- U,
3271
+ j,
3272
3272
  {
3273
3273
  blocks: (y = (f = r.content) == null ? void 0 : f.data) == null ? void 0 : y.blocks,
3274
3274
  context: r,
@@ -3293,7 +3293,7 @@ function Oe(e) {
3293
3293
  function i() {
3294
3294
  var c;
3295
3295
  return xn(
3296
- Q(e.content).map((d) => ({
3296
+ G(e.content).map((d) => ({
3297
3297
  id: d.testVariationId,
3298
3298
  testRatio: d.testRatio
3299
3299
  })),
@@ -3301,7 +3301,7 @@ function Oe(e) {
3301
3301
  );
3302
3302
  }
3303
3303
  function o() {
3304
- return Q(e.content).map((c) => `.variant-${c.testVariationId} { display: none; } `).join("");
3304
+ return G(e.content).map((c) => `.variant-${c.testVariationId} { display: none; } `).join("");
3305
3305
  }
3306
3306
  function a() {
3307
3307
  var c;
@@ -3325,7 +3325,7 @@ function Oe(e) {
3325
3325
  }
3326
3326
  ),
3327
3327
  /* @__PURE__ */ l(oe, { scriptStr: i() }),
3328
- (s = Q(e.content)) == null ? void 0 : s.map((c) => /* @__PURE__ */ l(
3328
+ (s = G(e.content)) == null ? void 0 : s.map((c) => /* @__PURE__ */ l(
3329
3329
  Ie,
3330
3330
  {
3331
3331
  content: c,
@@ -3377,7 +3377,7 @@ function Oe(e) {
3377
3377
  )
3378
3378
  ] });
3379
3379
  }
3380
- const An = async ({
3380
+ const Bn = async ({
3381
3381
  builderContextValue: e,
3382
3382
  symbol: t
3383
3383
  }) => {
@@ -3396,7 +3396,7 @@ const An = async ({
3396
3396
  _.error("Could not fetch symbol content: ", n);
3397
3397
  });
3398
3398
  };
3399
- function Bn(e) {
3399
+ function An(e) {
3400
3400
  var a, r, s, c;
3401
3401
  function t() {
3402
3402
  var d, u;
@@ -3412,7 +3412,7 @@ function Bn(e) {
3412
3412
  return (d = e.symbol) == null ? void 0 : d.content;
3413
3413
  });
3414
3414
  function o() {
3415
- n || An({
3415
+ n || Bn({
3416
3416
  symbol: e.symbol,
3417
3417
  builderContextValue: e.builderContext
3418
3418
  }).then((d) => {
@@ -3444,9 +3444,9 @@ function Bn(e) {
3444
3444
  }
3445
3445
  ) });
3446
3446
  }
3447
- const $n = U, Ln = Oe;
3447
+ const $n = j, Ln = Oe;
3448
3448
  export {
3449
- U as Blocks,
3449
+ j as Blocks,
3450
3450
  Xe as Button,
3451
3451
  Pt as Columns,
3452
3452
  Oe as Content,
@@ -3455,13 +3455,13 @@ export {
3455
3455
  $n as RenderBlocks,
3456
3456
  Ln as RenderContent,
3457
3457
  Ft as Section,
3458
- Bn as Symbol,
3458
+ An as Symbol,
3459
3459
  _t as Text,
3460
3460
  mn as Video,
3461
3461
  On as _processContentResult,
3462
3462
  ze as createRegisterComponentMessage,
3463
- Un as fetchBuilderProps,
3464
- jn as fetchEntries,
3463
+ jn as fetchBuilderProps,
3464
+ Un as fetchEntries,
3465
3465
  Ee as fetchOneEntry,
3466
3466
  Hn as getAllContent,
3467
3467
  _n as getBuilderSearchParams,
@@ -478,7 +478,7 @@ function Y(e, t) {
478
478
  const n = new URL(t.origin), r = n.hostname;
479
479
  return (e || $e).findIndex((o) => o.startsWith("*.") ? r.endsWith(o.slice(1)) : o === r) > -1;
480
480
  }
481
- const je = "0.13.2", B = {};
481
+ const je = "0.13.4", B = {};
482
482
  function De(e, t) {
483
483
  let n = B[e];
484
484
  if (n || (n = B[e] = []), n.push(t), i()) {