@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,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-08c4885b.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),
@@ -1757,7 +1757,7 @@ const Kt = {
1757
1757
  name: "image",
1758
1758
  type: "file",
1759
1759
  bubble: !0,
1760
- allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
1760
+ allowedFileTypes: ["jpeg", "jpg", "png", "svg", "webp"],
1761
1761
  required: !0,
1762
1762
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1763
1763
  onChange: (e) => {
@@ -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
  {
@@ -2255,13 +2255,16 @@ const an = {
2255
2255
  helperText: "e.g. enter a youtube url, google map, etc",
2256
2256
  onChange: (e) => {
2257
2257
  const t = e.get("url");
2258
- if (t)
2259
- return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=ae0e60e78201a3f2b0de4b`).then((i) => i.json()).then((i) => {
2258
+ if (t) {
2259
+ e.set("content", "Loading...");
2260
+ const n = _iframelyApiKey;
2261
+ return fetch(`https://iframe.ly/api/iframely?url=${t}&api_key=${n}`).then((i) => i.json()).then((i) => {
2260
2262
  e.get("url") === t && (i.html ? e.set("content", i.html) : e.set("content", "Invalid url, please try another"));
2261
2263
  }).catch((i) => {
2262
2264
  e.set("content", "There was an error embedding this URL, please try again or another URL");
2263
2265
  });
2264
- e.delete("content");
2266
+ } else
2267
+ e.delete("content");
2265
2268
  }
2266
2269
  }, {
2267
2270
  name: "content",
@@ -2565,7 +2568,7 @@ function fn(e) {
2565
2568
  }
2566
2569
  g.preventDefault();
2567
2570
  const x = g.currentTarget || g.target, R = e.customHeaders || {};
2568
- let V;
2571
+ let B;
2569
2572
  const A = new FormData(x), j = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2570
2573
  let h;
2571
2574
  const y = b.name;
@@ -2579,8 +2582,8 @@ function fn(e) {
2579
2582
  } else if (b.type === "checkbox")
2580
2583
  h = b.checked;
2581
2584
  else if (b.type === "number" || b.type === "range") {
2582
- const S = b.valueAsNumber;
2583
- isNaN(S) || (h = S);
2585
+ const v = b.valueAsNumber;
2586
+ isNaN(v) || (h = v);
2584
2587
  } else
2585
2588
  b.type === "file" ? h = b.files : h = b.value;
2586
2589
  else
@@ -2590,42 +2593,42 @@ function fn(e) {
2590
2593
  value: h
2591
2594
  };
2592
2595
  });
2593
- let v = e.contentType;
2594
- if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(j).forEach(({ value: b }) => {
2595
- (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (v = "multipart/form-data");
2596
- }), v !== "application/json")
2597
- 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;
2598
2601
  else {
2599
2602
  const b = {};
2600
2603
  Array.from(j).forEach(({ value: h, key: y }) => {
2601
2604
  Pe(b, y, h);
2602
- }), V = JSON.stringify(b);
2605
+ }), B = JSON.stringify(b);
2603
2606
  }
2604
- v && v !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = v));
2605
- 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 } });
2606
2609
  if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2607
2610
  return;
2608
2611
  i("sending");
2609
- 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(
2610
2613
  e.sendSubmissionsToEmail || ""
2611
2614
  )}&name=${encodeURIComponent(e.name || "")}`;
2612
2615
  fetch(
2613
- e.sendSubmissionsTo === "email" ? W : e.action,
2614
- { body: V, headers: R, method: e.method || "post" }
2616
+ e.sendSubmissionsTo === "email" ? F : e.action,
2617
+ { body: B, headers: R, method: e.method || "post" }
2615
2618
  ).then(
2616
2619
  async (b) => {
2617
2620
  let h;
2618
2621
  const y = b.headers.get("content-type");
2619
2622
  if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2620
- let S = mn(h, e.errorMessagePath);
2621
- 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 }));
2622
2625
  }
2623
2626
  if (r(h), i(b.ok ? "success" : "error"), b.ok) {
2624
- const S = new CustomEvent("submit:success", {
2627
+ const v = new CustomEvent("submit:success", {
2625
2628
  detail: { res: b, body: h }
2626
2629
  });
2627
2630
  if (t.current) {
2628
- if (t.current.dispatchEvent(S), S.defaultPrevented)
2631
+ if (t.current.dispatchEvent(v), v.defaultPrevented)
2629
2632
  return;
2630
2633
  e.resetFormOnSubmit !== !1 && t.current.reset();
2631
2634
  }
@@ -2648,9 +2651,9 @@ function fn(e) {
2648
2651
  );
2649
2652
  }
2650
2653
  }
2651
- return /* @__PURE__ */ B(E, { children: [
2654
+ return /* @__PURE__ */ V(E, { children: [
2652
2655
  " ",
2653
- /* @__PURE__ */ B(
2656
+ /* @__PURE__ */ V(
2654
2657
  "form",
2655
2658
  {
2656
2659
  validate: e.validate,
@@ -2823,7 +2826,8 @@ function pn(e) {
2823
2826
  value: e.value,
2824
2827
  key: $() && e.defaultValue ? e.defaultValue : "default-key",
2825
2828
  defaultValue: e.defaultValue,
2826
- name: e.name
2829
+ name: e.name,
2830
+ required: e.required
2827
2831
  },
2828
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}`))
2829
2833
  );
@@ -2857,7 +2861,57 @@ const yn = {
2857
2861
  function xn(e) {
2858
2862
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2859
2863
  }
2860
- 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 = {
2861
2915
  // friendlyName?
2862
2916
  name: "Raw:Img",
2863
2917
  hideFromInsertMenu: !0,
@@ -2872,7 +2926,7 @@ const Sn = {
2872
2926
  noWrap: !0,
2873
2927
  static: !0
2874
2928
  };
2875
- function vn(e) {
2929
+ function Cn(e) {
2876
2930
  return /* @__PURE__ */ s(
2877
2931
  "img",
2878
2932
  {
@@ -2887,7 +2941,7 @@ function vn(e) {
2887
2941
  $() && e.imgSrc || "default-key"
2888
2942
  );
2889
2943
  }
2890
- const kn = {
2944
+ const Tn = {
2891
2945
  name: "Video",
2892
2946
  canHaveChildren: !0,
2893
2947
  defaultStyles: {
@@ -2969,7 +3023,7 @@ const kn = {
2969
3023
  advanced: !0
2970
3024
  }]
2971
3025
  };
2972
- function Cn(e) {
3026
+ function In(e) {
2973
3027
  var i, o, r, a, l, c, u;
2974
3028
  function t() {
2975
3029
  return {
@@ -2995,7 +3049,7 @@ function Cn(e) {
2995
3049
  ...t()
2996
3050
  };
2997
3051
  }
2998
- return /* @__PURE__ */ B(
3052
+ return /* @__PURE__ */ V(
2999
3053
  "div",
3000
3054
  {
3001
3055
  style: {
@@ -3070,7 +3124,7 @@ function Cn(e) {
3070
3124
  }
3071
3125
  );
3072
3126
  }
3073
- const Tn = () => [{
3127
+ const wn = () => [{
3074
3128
  component: on,
3075
3129
  ...nn
3076
3130
  }, {
@@ -3089,11 +3143,14 @@ const Tn = () => [{
3089
3143
  component: pn,
3090
3144
  ...bn
3091
3145
  }, {
3092
- component: vn,
3093
- ...Sn
3146
+ component: Sn,
3147
+ ...vn
3094
3148
  }, {
3095
3149
  component: Cn,
3096
3150
  ...kn
3151
+ }, {
3152
+ component: In,
3153
+ ...Tn
3097
3154
  }], ke = () => [{
3098
3155
  component: nt,
3099
3156
  ...Kt
@@ -3113,7 +3170,7 @@ const Tn = () => [{
3113
3170
  component: Gt,
3114
3171
  ...Yt
3115
3172
  }, {
3116
- component: zn,
3173
+ component: Yn,
3117
3174
  ...Qt
3118
3175
  }, {
3119
3176
  component: tn,
@@ -3124,7 +3181,7 @@ const Tn = () => [{
3124
3181
  }, {
3125
3182
  component: Ht,
3126
3183
  ...Mt
3127
- }, ...Tn()], In = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3184
+ }, ...wn()], En = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3128
3185
  function getAndSetVariantId() {
3129
3186
  function setCookie(name, value, days) {
3130
3187
  let expires = '';
@@ -3180,7 +3237,7 @@ const Tn = () => [{
3180
3237
  }).join('');
3181
3238
  styleEl.innerHTML = newStyleStr;
3182
3239
  }
3183
- }`, wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3240
+ }`, Rn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3184
3241
  if (!navigator.cookieEnabled) {
3185
3242
  return;
3186
3243
  }
@@ -3218,16 +3275,16 @@ const Tn = () => [{
3218
3275
  ...t,
3219
3276
  testVariationId: t.id,
3220
3277
  id: e == null ? void 0 : e.id
3221
- })), En = ({
3278
+ })), Vn = ({
3222
3279
  canTrack: e,
3223
3280
  content: t
3224
- }) => !(!(Y(t).length > 0) || !e || H()), Rn = (e) => e === "react" || e === "reactNative", Me = Rn(L), Bn = () => `
3225
- window.${je} = ${In}
3226
- window.${Ue} = ${wn}
3227
- `, 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) => `
3228
3285
  window.${je}(
3229
3286
  "${t}",${JSON.stringify(e)}, ${Me}
3230
- )`, Pn = ({
3287
+ )`, Nn = ({
3231
3288
  contentId: e,
3232
3289
  variationId: t
3233
3290
  }) => `window.${Ue}(
@@ -3245,7 +3302,7 @@ function ce(e) {
3245
3302
  function Ce(e) {
3246
3303
  return Math.round(e * 1e3) / 1e3;
3247
3304
  }
3248
- const An = (e, t, n = !0) => {
3305
+ const Fn = (e, t, n = !0) => {
3249
3306
  if (!(e instanceof HTMLElement))
3250
3307
  return null;
3251
3308
  let i = n ? e : e.parentElement;
@@ -3256,7 +3313,7 @@ const An = (e, t, n = !0) => {
3256
3313
  return i;
3257
3314
  } while (i = i.parentElement);
3258
3315
  return null;
3259
- }, Nn = (e) => An(e, (t) => {
3316
+ }, Wn = (e) => Fn(e, (t) => {
3260
3317
  const n = t.getAttribute("builder-id") || t.id;
3261
3318
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3262
3319
  }), Te = ({
@@ -3268,8 +3325,8 @@ const An = (e, t, n = !0) => {
3268
3325
  x: r,
3269
3326
  y: a
3270
3327
  };
3271
- }, Wn = (e) => {
3272
- 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);
3273
3330
  return {
3274
3331
  targetBuilderElement: i || void 0,
3275
3332
  metadata: {
@@ -3284,7 +3341,7 @@ const An = (e, t, n = !0) => {
3284
3341
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3285
3342
  }
3286
3343
  };
3287
- }, Fn = (e) => {
3344
+ }, Dn = (e) => {
3288
3345
  var r, a;
3289
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;
3290
3347
  let o = "";
@@ -3310,15 +3367,15 @@ font-weight: ${l};
3310
3367
  `.trim());
3311
3368
  }
3312
3369
  return o;
3313
- }, $n = ({
3370
+ }, Ln = ({
3314
3371
  customFonts: e
3315
3372
  }) => {
3316
3373
  var t;
3317
- return ((t = e == null ? void 0 : e.map((n) => Fn(n))) == null ? void 0 : t.join(" ")) || "";
3318
- }, Dn = ({
3374
+ return ((t = e == null ? void 0 : e.map((n) => Dn(n))) == null ? void 0 : t.join(" ")) || "";
3375
+ }, On = ({
3319
3376
  cssCode: e,
3320
3377
  contentId: t
3321
- }) => 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 = `
3322
3379
  .builder-button {
3323
3380
  all: unset;
3324
3381
  }
@@ -3335,28 +3392,28 @@ font-weight: ${l};
3335
3392
  text-align: inherit;
3336
3393
  font-family: inherit;
3337
3394
  }
3338
- `, On = (e) => e ? "" : Ln, jn = (e) => `variant-${e}`;
3339
- function Un(e) {
3340
- 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;
3341
3398
  const t = ee(null);
3342
3399
  function n(h) {
3343
- var S, k;
3400
+ var v, k;
3344
3401
  const y = {
3345
3402
  ...e.builderContextSignal.rootState,
3346
3403
  ...h
3347
3404
  };
3348
- 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) => ({
3349
3406
  ...T,
3350
3407
  rootState: y
3351
3408
  }));
3352
3409
  }
3353
3410
  function i(h) {
3354
- var S, k, T, N, U;
3411
+ var v, k, T, N, U;
3355
3412
  const y = {
3356
3413
  ...e.builderContextSignal.content,
3357
3414
  ...h,
3358
3415
  data: {
3359
- ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
3416
+ ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
3360
3417
  ...h == null ? void 0 : h.data
3361
3418
  },
3362
3419
  meta: {
@@ -3365,8 +3422,8 @@ function Un(e) {
3365
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)
3366
3423
  }
3367
3424
  };
3368
- e.setBuilderContextSignal((F) => ({
3369
- ...F,
3425
+ e.setBuilderContextSignal((W) => ({
3426
+ ...W,
3370
3427
  content: y
3371
3428
  }));
3372
3429
  }
@@ -3386,15 +3443,15 @@ function Un(e) {
3386
3443
  callbacks: {
3387
3444
  configureSdk: (y) => {
3388
3445
  var T;
3389
- const { breakpoints: S, contentId: k } = y;
3390
- !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({
3391
3448
  meta: {
3392
- breakpoints: S
3449
+ breakpoints: v
3393
3450
  }
3394
3451
  });
3395
3452
  },
3396
3453
  animation: (y) => {
3397
- We(y);
3454
+ Fe(y);
3398
3455
  },
3399
3456
  contentUpdate: (y) => {
3400
3457
  i(y);
@@ -3403,8 +3460,8 @@ function Un(e) {
3403
3460
  })(h);
3404
3461
  }
3405
3462
  function c() {
3406
- var y, S;
3407
- 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;
3408
3465
  h && _({
3409
3466
  code: h,
3410
3467
  context: e.context || {},
@@ -3419,31 +3476,31 @@ function Un(e) {
3419
3476
  }
3420
3477
  const [u, f] = C(() => ({})), [d, m] = C(() => ({})), [g, p] = C(() => !1);
3421
3478
  function I(h) {
3422
- var y, S;
3479
+ var y, v;
3423
3480
  if (e.builderContextSignal.content) {
3424
- 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;
3425
3482
  he({
3426
3483
  type: "click",
3427
3484
  canTrack: Q(e.canTrack),
3428
3485
  contentId: T,
3429
3486
  apiKey: e.apiKey,
3430
3487
  variationId: k !== T ? k : void 0,
3431
- ...Wn(h),
3488
+ ...$n(h),
3432
3489
  unique: !g
3433
3490
  });
3434
3491
  }
3435
3492
  g || p(!0);
3436
3493
  }
3437
3494
  function x() {
3438
- var y, S, k;
3439
- 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 : {};
3440
3497
  Object.entries(h).forEach(([T, N]) => {
3441
3498
  if (!N || d[T] || u[T] && !$())
3442
3499
  return;
3443
3500
  d[T] = !0;
3444
3501
  const U = N.replace(
3445
3502
  /{{([^}]+)}}/g,
3446
- (F, He) => String(
3503
+ (W, He) => String(
3447
3504
  _({
3448
3505
  code: He,
3449
3506
  context: e.context || {},
@@ -3454,12 +3511,12 @@ function Un(e) {
3454
3511
  })
3455
3512
  )
3456
3513
  );
3457
- Xe(U).then((F) => F.json()).then((F) => {
3514
+ Xe(U).then((W) => W.json()).then((W) => {
3458
3515
  n({
3459
- [T]: F
3516
+ [T]: W
3460
3517
  }), u[T] = !0;
3461
- }).catch((F) => {
3462
- console.error("error fetching dynamic data", N, F);
3518
+ }).catch((W) => {
3519
+ console.error("error fetching dynamic data", N, W);
3463
3520
  }).finally(() => {
3464
3521
  d[T] = !1;
3465
3522
  });
@@ -3520,8 +3577,8 @@ function Un(e) {
3520
3577
  model: e.model,
3521
3578
  apiKey: e.apiKey,
3522
3579
  apiVersion: e.builderContextSignal.apiVersion
3523
- }).then((F) => {
3524
- F && i(F);
3580
+ }).then((W) => {
3581
+ W && i(W);
3525
3582
  });
3526
3583
  }
3527
3584
  }
@@ -3533,9 +3590,9 @@ function Un(e) {
3533
3590
  e.content && i(e.content);
3534
3591
  }, [e.content]), P(() => {
3535
3592
  c();
3536
- }, [(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(() => {
3537
3594
  x();
3538
- }, [(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(() => {
3539
3596
  R();
3540
3597
  }, [e.builderContextSignal.rootState]), P(() => {
3541
3598
  e.data && n(e.data);
@@ -3557,29 +3614,29 @@ function Un(e) {
3557
3614
  "builder-model": e.model,
3558
3615
  ...o(),
3559
3616
  ...e.contentWrapperProps,
3560
- className: jn(
3561
- ((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)
3562
3619
  ),
3563
3620
  children: e.children
3564
3621
  }
3565
3622
  ) : null });
3566
3623
  }
3567
- function Mn(e) {
3624
+ function Kn(e) {
3568
3625
  const [t, n] = C(
3569
3626
  () => `
3570
- ${Dn({
3627
+ ${On({
3571
3628
  cssCode: e.cssCode,
3572
3629
  contentId: e.contentId
3573
3630
  })}
3574
- ${$n({
3631
+ ${Ln({
3575
3632
  customFonts: e.customFonts
3576
3633
  })}
3577
- ${On(e.isNestedRender)}
3634
+ ${Un(e.isNestedRender)}
3578
3635
  `.trim()
3579
3636
  );
3580
3637
  return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
3581
3638
  }
3582
- const Hn = ({
3639
+ const qn = ({
3583
3640
  content: e,
3584
3641
  data: t,
3585
3642
  locale: n
@@ -3596,7 +3653,7 @@ const Hn = ({
3596
3653
  locale: n
3597
3654
  } : {}
3598
3655
  };
3599
- }, Kn = ({
3656
+ }, _n = ({
3600
3657
  content: e,
3601
3658
  data: t
3602
3659
  }) => e ? {
@@ -3612,7 +3669,7 @@ function Ie(e) {
3612
3669
  const [t, n] = C(
3613
3670
  () => {
3614
3671
  var I, x;
3615
- return Pn({
3672
+ return Nn({
3616
3673
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3617
3674
  variationId: (I = e.content) == null ? void 0 : I.testVariationId,
3618
3675
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3641,12 +3698,12 @@ function Ie(e) {
3641
3698
  {}
3642
3699
  )
3643
3700
  ), [a, l] = C(() => ({
3644
- content: Kn({
3701
+ content: _n({
3645
3702
  content: e.content,
3646
3703
  data: e.data
3647
3704
  }),
3648
3705
  localState: void 0,
3649
- rootState: Hn({
3706
+ rootState: qn({
3650
3707
  content: e.content,
3651
3708
  data: e.data,
3652
3709
  locale: e.locale
@@ -3671,13 +3728,13 @@ function Ie(e) {
3671
3728
  BlocksWrapperProps: e.blocksWrapperProps || {}
3672
3729
  }));
3673
3730
  return /* @__PURE__ */ s(
3674
- Be.Provider,
3731
+ Ve.Provider,
3675
3732
  {
3676
3733
  value: {
3677
3734
  registeredComponents: o
3678
3735
  },
3679
- children: /* @__PURE__ */ B(
3680
- Un,
3736
+ children: /* @__PURE__ */ V(
3737
+ Hn,
3681
3738
  {
3682
3739
  content: e.content,
3683
3740
  data: e.data,
@@ -3702,7 +3759,7 @@ function Ie(e) {
3702
3759
  }
3703
3760
  ) : null,
3704
3761
  /* @__PURE__ */ s(
3705
- Mn,
3762
+ Kn,
3706
3763
  {
3707
3764
  isNestedRender: e.isNestedRender,
3708
3765
  contentId: (c = a.content) == null ? void 0 : c.id,
@@ -3725,17 +3782,17 @@ function Ie(e) {
3725
3782
  }
3726
3783
  );
3727
3784
  }
3728
- function qn(e) {
3785
+ function zn(e) {
3729
3786
  var a;
3730
3787
  const [t, n] = C(
3731
- () => En({
3788
+ () => Vn({
3732
3789
  canTrack: Q(e.canTrack),
3733
3790
  content: e.content
3734
3791
  })
3735
3792
  );
3736
3793
  function i() {
3737
3794
  var l;
3738
- return Vn(
3795
+ return An(
3739
3796
  Y(e.content).map((c) => ({
3740
3797
  id: c.testVariationId,
3741
3798
  testRatio: c.testRatio
@@ -3757,15 +3814,15 @@ function qn(e) {
3757
3814
  });
3758
3815
  }
3759
3816
  return P(() => {
3760
- }, []), /* @__PURE__ */ B(E, { children: [
3817
+ }, []), /* @__PURE__ */ V(E, { children: [
3761
3818
  !e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ s(
3762
3819
  ce,
3763
3820
  {
3764
3821
  id: "builderio-init-variants-fns",
3765
- scriptStr: Bn()
3822
+ scriptStr: Pn()
3766
3823
  }
3767
3824
  ) : null,
3768
- t ? /* @__PURE__ */ B(E, { children: [
3825
+ t ? /* @__PURE__ */ V(E, { children: [
3769
3826
  /* @__PURE__ */ s(
3770
3827
  ne,
3771
3828
  {
@@ -3832,7 +3889,7 @@ function qn(e) {
3832
3889
  )
3833
3890
  ] });
3834
3891
  }
3835
- const _n = async ({
3892
+ const Jn = async ({
3836
3893
  builderContextValue: e,
3837
3894
  symbol: t
3838
3895
  }) => {
@@ -3851,7 +3908,7 @@ const _n = async ({
3851
3908
  Z.error("Could not fetch symbol content: ", n);
3852
3909
  });
3853
3910
  };
3854
- function zn(e) {
3911
+ function Yn(e) {
3855
3912
  var l, c, u, f;
3856
3913
  function t() {
3857
3914
  return "div";
@@ -3873,7 +3930,7 @@ function zn(e) {
3873
3930
  return (d = e.symbol) == null ? void 0 : d.content;
3874
3931
  });
3875
3932
  function a() {
3876
- o || _n({
3933
+ o || Jn({
3877
3934
  symbol: e.symbol,
3878
3935
  builderContextValue: e.builderContext
3879
3936
  }).then((d) => {
@@ -3884,7 +3941,7 @@ function zn(e) {
3884
3941
  }, []), P(() => {
3885
3942
  a();
3886
3943
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
3887
- qn,
3944
+ zn,
3888
3945
  {
3889
3946
  isNestedRender: !0,
3890
3947
  apiVersion: e.builderContext.apiVersion,
@@ -3913,11 +3970,11 @@ export {
3913
3970
  me as BuilderContext,
3914
3971
  nt as Button,
3915
3972
  $t as Columns,
3916
- qn as Content,
3973
+ zn as Content,
3917
3974
  Dt as Fragment,
3918
3975
  jt as Image,
3919
3976
  Ut as Section,
3920
- zn as Symbol,
3977
+ Yn as Symbol,
3921
3978
  tn as Text,
3922
- Cn as Video
3979
+ In as Video
3923
3980
  };