@builder.io/sdk-react 1.0.31 → 1.0.32

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 (68) hide show
  1. package/lib/browser/blocks-exports.cjs +25 -25
  2. package/lib/browser/blocks-exports.mjs +253 -245
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/{server-entry-93dd2fe7.cjs → server-entry-7087f752.cjs} +1 -1
  8. package/lib/browser/{server-entry-26776eea.js → server-entry-d2ddbe06.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-8600e362.js → accordion-00336b68.js} +1 -1
  12. package/lib/edge/{accordion-61d8c841.cjs → accordion-eaf400b6.cjs} +1 -1
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{blocks-bf8d4f42.js → blocks-f4e58922.js} +765 -770
  16. package/lib/edge/blocks-fd020527.cjs +32 -0
  17. package/lib/edge/{button-a1ecbbb4.js → button-78da9c83.js} +2 -2
  18. package/lib/edge/{button-3aead671.cjs → button-79831328.cjs} +1 -1
  19. package/lib/edge/{columns-f8252cd4.js → columns-38a7fb4b.js} +3 -3
  20. package/lib/edge/{columns-6f0bea35.cjs → columns-4444ec1b.cjs} +1 -1
  21. package/lib/edge/{content-variants-a7515e25.js → content-variants-9095e1ca.js} +23 -19
  22. package/lib/edge/{content-variants-d536d382.cjs → content-variants-bea4ff80.cjs} +3 -3
  23. package/lib/edge/{form-4c514836.js → form-890bbb80.js} +3 -3
  24. package/lib/edge/{form-aa86b853.cjs → form-aeff55d1.cjs} +1 -1
  25. package/lib/edge/{get-class-prop-name-d6e10697.cjs → get-class-prop-name-27e19262.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-7245a80c.js → get-class-prop-name-366f7202.js} +1 -1
  27. package/lib/edge/{image-9d24a962.js → image-68451fc8.js} +23 -22
  28. package/lib/edge/image-ea37781b.cjs +17 -0
  29. package/lib/edge/{img-266babf5.cjs → img-0840043d.cjs} +1 -1
  30. package/lib/edge/{img-916857d0.js → img-243d1364.js} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/init.cjs +1 -1
  34. package/lib/edge/init.mjs +1 -1
  35. package/lib/edge/{input-ecbd900c.js → input-e98eed44.js} +1 -1
  36. package/lib/edge/{input-1c89bf19.cjs → input-ee44639e.cjs} +1 -1
  37. package/lib/edge/{select-31017554.cjs → select-6f0d439e.cjs} +1 -1
  38. package/lib/edge/{select-679760ee.js → select-bab66ff4.js} +1 -1
  39. package/lib/edge/{server-entry-438d03b9.js → server-entry-8225a827.js} +1 -1
  40. package/lib/edge/{server-entry-c373353a.cjs → server-entry-d9aa1880.cjs} +1 -1
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +1 -1
  43. package/lib/edge/{slot-a7c301c7.js → slot-95c853d6.js} +3 -3
  44. package/lib/edge/{slot-70d56fb7.cjs → slot-a3b50951.cjs} +1 -1
  45. package/lib/edge/{symbol-c1b26e8b.js → symbol-8901206b.js} +2 -2
  46. package/lib/edge/{symbol-e2b27478.cjs → symbol-890aaa72.cjs} +1 -1
  47. package/lib/edge/{tabs-91468f03.js → tabs-4cac4a30.js} +3 -3
  48. package/lib/edge/{tabs-d69a6adc.cjs → tabs-cec9e481.cjs} +1 -1
  49. package/lib/node/blocks-exports.cjs +25 -25
  50. package/lib/node/blocks-exports.mjs +289 -281
  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-3bebd191.cjs → node-runtime-540333d0.cjs} +1 -1
  56. package/lib/node/{node-runtime-218b3a7e.js → node-runtime-a8fa9432.js} +1 -1
  57. package/lib/node/{server-entry-9ab92db7.js → server-entry-1ad27cd7.js} +1 -1
  58. package/lib/node/{server-entry-75bba771.cjs → server-entry-e1ba6829.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 -1
  62. package/types/blocks/image/image.types.d.ts +1 -0
  63. package/types/components/block/block.helpers.d.ts +20 -2
  64. package/types/components/block/components/block-wrapper.d.ts +0 -1
  65. package/types/components/content/components/enable-editor.d.ts +1 -1
  66. package/types/constants/sdk-version.d.ts +1 -1
  67. package/lib/edge/blocks-c0ecd775.cjs +0 -32
  68. package/lib/edge/image-764070f8.cjs +0 -17
@@ -2,15 +2,15 @@
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 V } from "react/jsx-runtime";
6
- import { TARGET as _, isEditing as $, isBrowser as M, 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-26776eea.js";
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-d2ddbe06.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) {
10
10
  return /* @__PURE__ */ s(E, { children: tt(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 }) }) });
11
11
  }
12
- const K = () => {
13
- switch (_) {
12
+ const q = () => {
13
+ switch (L) {
14
14
  case "react":
15
15
  case "reactNative":
16
16
  case "rsc":
@@ -27,7 +27,7 @@ function nt(e) {
27
27
  function t() {
28
28
  return {
29
29
  ...e.attributes,
30
- [K()]: `${e.link ? "" : "builder-button"} ${e.attributes[K()] || ""}`,
30
+ [q()]: `${e.link ? "" : "builder-button"} ${e.attributes[q()] || ""}`,
31
31
  ...e.link ? {
32
32
  href: e.link,
33
33
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -60,16 +60,12 @@ const me = Ee({
60
60
  inheritedStyles: {},
61
61
  BlocksWrapper: "div",
62
62
  BlocksWrapperProps: {}
63
- }), Ve = Ee({ registeredComponents: {} });
63
+ }), Be = Ee({ registeredComponents: {} });
64
64
  function it(e) {
65
65
  var t;
66
66
  return {
67
67
  ...(t = e.component) == null ? void 0 : t.options,
68
- ...e.options,
69
- /**
70
- * Our built-in components frequently make use of the block, so we provide all of it under `builderBlock`
71
- */
72
- builderBlock: e
68
+ ...e.options
73
69
  };
74
70
  }
75
71
  const ot = ({
@@ -86,8 +82,8 @@ const ot = ({
86
82
  event: n
87
83
  }), at = () => ({
88
84
  isEditing: $(),
89
- isBrowser: M(),
90
- isServer: !M(),
85
+ isBrowser: H(),
86
+ isServer: !H(),
91
87
  getUserAttributes: () => _e()
92
88
  }), rt = (e, {
93
89
  isExpression: t = !0
@@ -104,7 +100,7 @@ const ot = ({
104
100
  builder: t,
105
101
  context: n,
106
102
  event: i,
107
- state: Be({
103
+ state: Ve({
108
104
  rootState: a,
109
105
  localState: o,
110
106
  rootSetState: r
@@ -112,7 +108,7 @@ const ot = ({
112
108
  });
113
109
  return new Function(...l.map(([c]) => c), e)(...l.map(([, c]) => c));
114
110
  };
115
- function Be({
111
+ function Ve({
116
112
  rootState: e,
117
113
  localState: t,
118
114
  rootSetState: n
@@ -122,7 +118,7 @@ function Be({
122
118
  if (t && o in t)
123
119
  return t[o];
124
120
  const r = i[o];
125
- return typeof r == "object" && r !== null ? Be({
121
+ return typeof r == "object" && r !== null ? Ve({
126
122
  rootState: r,
127
123
  localState: void 0,
128
124
  rootSetState: n ? (a) => {
@@ -147,7 +143,7 @@ const st = () => {
147
143
  return !1;
148
144
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
149
145
  return e && t && !n ? (Z.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;
150
- }, ct = (e) => (M() || st(), pe(e)), L = class L {
146
+ }, ct = (e) => (H() || st(), pe(e)), O = class O {
151
147
  static getCacheKey(t) {
152
148
  return JSON.stringify({
153
149
  ...t,
@@ -157,17 +153,17 @@ const st = () => {
157
153
  });
158
154
  }
159
155
  static getCachedValue(t) {
160
- return L.cache.get(t);
156
+ return O.cache.get(t);
161
157
  }
162
158
  static setCachedValue(t, n) {
163
- L.cache.size > 20 && L.cache.delete(L.cache.keys().next().value), L.cache.set(t, {
159
+ O.cache.size > 20 && O.cache.delete(O.cache.keys().next().value), O.cache.set(t, {
164
160
  value: n
165
161
  });
166
162
  }
167
163
  };
168
- ie(L, "cacheLimit", 20), ie(L, "cache", /* @__PURE__ */ new Map());
169
- let U = L;
170
- function q({
164
+ ie(O, "cacheLimit", 20), ie(O, "cache", /* @__PURE__ */ new Map());
165
+ let M = O;
166
+ function _({
171
167
  code: e,
172
168
  context: t,
173
169
  localState: n,
@@ -191,15 +187,15 @@ function q({
191
187
  localState: n
192
188
  };
193
189
  if (l) {
194
- const u = U.getCacheKey(c), f = U.getCachedValue(u);
190
+ const u = M.getCacheKey(c), f = M.getCachedValue(u);
195
191
  if (f)
196
192
  return f.value;
197
193
  }
198
194
  try {
199
195
  const u = ct(c);
200
196
  if (l) {
201
- const f = U.getCacheKey(c);
202
- U.setCachedValue(f, u);
197
+ const f = M.getCacheKey(c);
198
+ M.setCachedValue(f, u);
203
199
  }
204
200
  return u;
205
201
  } catch (u) {
@@ -234,7 +230,7 @@ const dt = ({
234
230
  }
235
231
  };
236
232
  for (const l in e.bindings) {
237
- const c = e.bindings[l], u = q({
233
+ const c = e.bindings[l], u = _({
238
234
  code: c,
239
235
  localState: n,
240
236
  rootState: i,
@@ -276,7 +272,7 @@ function ut(e, t, n = {}) {
276
272
  return i = this, o = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l = u, r = e.apply(i, o), a || (i = o = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), r;
277
273
  };
278
274
  }
279
- function H(e, ...t) {
275
+ function K(e, ...t) {
280
276
  const n = Object(e);
281
277
  for (let i = 1; i < arguments.length; i++) {
282
278
  const o = arguments[i];
@@ -320,8 +316,8 @@ function We(e) {
320
316
  return;
321
317
  }
322
318
  Array.from(t).forEach((n) => {
323
- Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
324
- n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
319
+ Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", K(n.style, e.steps[0].styles), setTimeout(() => {
320
+ n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), K(n.style, e.steps[1].styles), setTimeout(() => {
325
321
  n.style.transition = "", n.style.transitionDelay = "";
326
322
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
327
323
  });
@@ -338,10 +334,10 @@ function ht(e) {
338
334
  let i = !1, o = !1;
339
335
  function r() {
340
336
  !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
341
- H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
337
+ K(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
342
338
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
343
339
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
344
- })) : e.repeat && i && !o && !l(n) && (i = !1, H(n.style, e.steps[0].styles));
340
+ })) : e.repeat && i && !o && !l(n) && (i = !1, K(n.style, e.steps[0].styles));
345
341
  }
346
342
  const a = ut(r, 200, {
347
343
  leading: !1
@@ -352,7 +348,7 @@ function ht(e) {
352
348
  }
353
349
  const c = e.steps[0].styles;
354
350
  function u() {
355
- H(n.style, c);
351
+ K(n.style, c);
356
352
  }
357
353
  u(), setTimeout(() => {
358
354
  n.style.transition = `all ${e.duration}s ${te(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
@@ -392,7 +388,7 @@ const pt = ({
392
388
  block: e
393
389
  }));
394
390
  function $e(e) {
395
- switch (_) {
391
+ switch (L) {
396
392
  case "svelte":
397
393
  case "vue":
398
394
  case "solid":
@@ -437,7 +433,7 @@ const yt = ({
437
433
  } = e;
438
434
  if (!(n != null && n.collection))
439
435
  return;
440
- const o = q({
436
+ const o = _({
441
437
  code: n.collection,
442
438
  localState: t.localState,
443
439
  rootState: t.rootState,
@@ -461,7 +457,15 @@ const yt = ({
461
457
  },
462
458
  block: i
463
459
  }));
464
- }, St = (e) => e && (e.isRSC || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), vt = (e) => e && (e.isRSC || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)), De = {
460
+ }, St = (e, t) => e && (e.isRSC && L === "rsc" || ["Core:Button", "Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
461
+ builderLinkComponent: t
462
+ } : {}, vt = (e, t) => e && (e.isRSC && L === "rsc" || ["Symbol", "Columns", "Form:Form", "Builder: Tabs", "Builder:Accordion"].includes(e.name)) ? {
463
+ builderComponents: t
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
+ builderBlock: t
466
+ } : {}, Ct = (e, t) => e && (e.isRSC && L === "rsc" || ["Builder:Accordion", "Columns", "Form:Form", "Builder: Tabs", "Symbol", "Slot"].includes(e.name)) ? {
467
+ builderContext: t
468
+ } : {}, De = {
465
469
  small: {
466
470
  min: 320,
467
471
  default: 321,
@@ -513,7 +517,7 @@ function ne(e) {
513
517
  }
514
518
  );
515
519
  }
516
- function kt(e) {
520
+ function Tt(e) {
517
521
  function t() {
518
522
  const i = X({
519
523
  block: e.block,
@@ -526,7 +530,7 @@ function kt(e) {
526
530
  return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
527
531
  }
528
532
  function n() {
529
- var x, R, B;
533
+ var x, R, V;
530
534
  const i = X({
531
535
  block: e.block,
532
536
  localState: e.context.localState,
@@ -559,7 +563,7 @@ function kt(e) {
559
563
  }) : "", p = i.animations && i.animations.find((A) => A.trigger === "hover");
560
564
  let I = "";
561
565
  if (p) {
562
- const A = ((B = (R = p.steps) == null ? void 0 : R[1]) == null ? void 0 : B.styles) || {};
566
+ const A = ((V = (R = p.steps) == null ? void 0 : R[1]) == null ? void 0 : V.styles) || {};
563
567
  I = J({
564
568
  className: `${f}:hover`,
565
569
  styles: {
@@ -580,10 +584,10 @@ function kt(e) {
580
584
  }
581
585
  return /* @__PURE__ */ s(E, { children: n() && t() ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(ne, { id: "builderio-block", styles: n() }) }) : null });
582
586
  }
583
- function Ct(e) {
587
+ function It(e) {
584
588
  return e.charAt(0).toUpperCase() + e.slice(1);
585
589
  }
586
- const Tt = (e) => `on${Ct(e)}`, It = (e, t) => (n) => q({
590
+ const wt = (e) => `on${It(e)}`, Et = (e, t) => (n) => _({
587
591
  code: e,
588
592
  context: t.context,
589
593
  localState: t.localState,
@@ -600,9 +604,9 @@ function Oe(e) {
600
604
  if (!n.hasOwnProperty(o))
601
605
  continue;
602
606
  const r = n[o];
603
- let a = Tt(o);
607
+ let a = wt(o);
604
608
  if (e.stripPrefix)
605
- switch (_) {
609
+ switch (L) {
606
610
  case "vue":
607
611
  a = a.replace("v-on:", "");
608
612
  break;
@@ -610,16 +614,16 @@ function Oe(e) {
610
614
  a = a.replace("on:", "");
611
615
  break;
612
616
  }
613
- t[a] = It(r, e);
617
+ t[a] = Et(r, e);
614
618
  }
615
619
  return t;
616
620
  }
617
- function wt({
621
+ function Rt({
618
622
  properties: e
619
623
  }) {
620
624
  return e;
621
625
  }
622
- const Et = (e) => ({
626
+ const Bt = (e) => ({
623
627
  href: e.href
624
628
  });
625
629
  function fe({
@@ -628,22 +632,22 @@ function fe({
628
632
  }) {
629
633
  var i;
630
634
  const n = {
631
- ...Et(e),
635
+ ...Bt(e),
632
636
  ...e.properties,
633
637
  "builder-id": e.id,
634
638
  style: pt({
635
639
  block: e,
636
640
  context: t
637
641
  }),
638
- [K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
642
+ [q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
639
643
  };
640
- return wt({
644
+ return Rt({
641
645
  properties: n,
642
646
  context: t,
643
647
  block: e
644
648
  });
645
649
  }
646
- function Rt(e) {
650
+ function Vt(e) {
647
651
  return /* @__PURE__ */ s(
648
652
  ue,
649
653
  {
@@ -664,7 +668,7 @@ function Rt(e) {
664
668
  }
665
669
  );
666
670
  }
667
- function Vt(e) {
671
+ function Pt(e) {
668
672
  function t() {
669
673
  return e.includeBlockProps ? {
670
674
  ...fe({
@@ -682,7 +686,7 @@ function Vt(e) {
682
686
  }
683
687
  return /* @__PURE__ */ s(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
684
688
  }
685
- const Bt = ({
689
+ const At = ({
686
690
  componentOptions: e,
687
691
  builderBlock: t,
688
692
  context: n,
@@ -715,12 +719,12 @@ const Bt = ({
715
719
  function xe(e) {
716
720
  var i;
717
721
  const [t, n] = C(
718
- () => e.isInteractive ? Vt : e.componentRef
722
+ () => e.isInteractive ? Pt : e.componentRef
719
723
  );
720
724
  return /* @__PURE__ */ s(E, { children: e.componentRef ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
721
725
  t,
722
726
  {
723
- ...Bt({
727
+ ...At({
724
728
  componentOptions: e.componentOptions,
725
729
  builderBlock: e.builderBlock,
726
730
  context: e.context,
@@ -743,7 +747,7 @@ function xe(e) {
743
747
  }
744
748
  ) }) : null });
745
749
  }
746
- function Pt(e) {
750
+ function Nt(e) {
747
751
  const [t, n] = C(() => e.repeatContext);
748
752
  return /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
749
753
  z,
@@ -803,13 +807,13 @@ function z(e) {
803
807
  componentRef: (m = t == null ? void 0 : t()) == null ? void 0 : m.component,
804
808
  componentOptions: {
805
809
  ...it(i()),
806
- builderContext: e.context,
807
- ...St(t()) ? {
808
- builderLinkComponent: e.linkComponent
809
- } : {},
810
- ...vt(t()) ? {
811
- builderComponents: e.registeredComponents
812
- } : {}
810
+ ...kt(t(), i()),
811
+ ...Ct(t(), e.context),
812
+ ...St(t(), e.linkComponent),
813
+ ...vt(
814
+ t(),
815
+ e.registeredComponents
816
+ )
813
817
  },
814
818
  context: e.context,
815
819
  linkComponent: e.linkComponent,
@@ -827,8 +831,8 @@ function z(e) {
827
831
  elementId: d
828
832
  }))
829
833
  );
830
- }, []), /* @__PURE__ */ s(E, { children: r() ? /* @__PURE__ */ V(E, { children: [
831
- /* @__PURE__ */ s(kt, { block: e.block, context: e.context }),
834
+ }, []), /* @__PURE__ */ s(E, { children: r() ? /* @__PURE__ */ B(E, { children: [
835
+ /* @__PURE__ */ s(Tt, { block: e.block, context: e.context }),
832
836
  (c = t == null ? void 0 : t()) != null && c.noWrap ? /* @__PURE__ */ s(E, { children: /* @__PURE__ */ s(
833
837
  xe,
834
838
  {
@@ -843,7 +847,7 @@ function z(e) {
843
847
  isInteractive: l().isInteractive
844
848
  }
845
849
  ) }) : /* @__PURE__ */ s(E, { children: n() ? /* @__PURE__ */ s(E, { children: (f = n()) == null ? void 0 : f.map((d, m) => /* @__PURE__ */ s(
846
- Pt,
850
+ Nt,
847
851
  {
848
852
  repeatContext: d.context,
849
853
  block: d.block,
@@ -851,13 +855,12 @@ function z(e) {
851
855
  linkComponent: e.linkComponent
852
856
  },
853
857
  m
854
- )) }) : /* @__PURE__ */ V(
855
- Rt,
858
+ )) }) : /* @__PURE__ */ B(
859
+ Vt,
856
860
  {
857
861
  Wrapper: o(),
858
862
  block: i(),
859
863
  context: e.context,
860
- linkComponent: e.linkComponent,
861
864
  children: [
862
865
  /* @__PURE__ */ s(
863
866
  xe,
@@ -888,7 +891,7 @@ function z(e) {
888
891
  ) })
889
892
  ] }) : null });
890
893
  }
891
- function At(e) {
894
+ function Wt(e) {
892
895
  function t() {
893
896
  var o;
894
897
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
@@ -919,7 +922,7 @@ function At(e) {
919
922
  "*"
920
923
  ));
921
924
  }
922
- return /* @__PURE__ */ V(E, { children: [
925
+ return /* @__PURE__ */ B(E, { children: [
923
926
  /* @__PURE__ */ s(
924
927
  e.BlocksWrapper,
925
928
  {
@@ -943,9 +946,9 @@ function At(e) {
943
946
  }
944
947
  function D(e) {
945
948
  var i, o, r;
946
- const t = be(me), n = be(Ve);
949
+ const t = be(me), n = be(Be);
947
950
  return /* @__PURE__ */ s(
948
- At,
951
+ Wt,
949
952
  {
950
953
  blocks: e.blocks,
951
954
  parent: e.parent,
@@ -966,9 +969,9 @@ function D(e) {
966
969
  }
967
970
  );
968
971
  }
969
- const Nt = (e) => `builder-columns ${e}-breakpoints`;
970
- function Wt(e) {
971
- var A, O;
972
+ const Ft = (e) => `builder-columns ${e}-breakpoints`;
973
+ function $t(e) {
974
+ var A, j;
972
975
  const [t, n] = C(
973
976
  () => typeof e.space == "number" ? e.space || 0 : 20
974
977
  ), [i, o] = C(() => e.columns || []), [r, a] = C(
@@ -1070,29 +1073,29 @@ function Wt(e) {
1070
1073
  },
1071
1074
  `;
1072
1075
  }
1073
- function B(v, w) {
1076
+ function V(v, w) {
1074
1077
  return {
1075
1078
  ...v.link ? {
1076
1079
  href: v.link
1077
1080
  } : {},
1078
- [K()]: "builder-column",
1081
+ [q()]: "builder-column",
1079
1082
  style: $e(I(w))
1080
1083
  };
1081
1084
  }
1082
- return /* @__PURE__ */ V(E, { children: [
1083
- /* @__PURE__ */ V(
1085
+ return /* @__PURE__ */ B(E, { children: [
1086
+ /* @__PURE__ */ B(
1084
1087
  "div",
1085
1088
  {
1086
- className: Nt((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
1089
+ className: Ft((A = e.builderBlock) == null ? void 0 : A.id) + " div-bade6b34",
1087
1090
  style: p(),
1088
1091
  children: [
1089
1092
  /* @__PURE__ */ s(ne, { id: "builderio-columns", styles: R() }),
1090
- (O = e.columns) == null ? void 0 : O.map((v, w) => /* @__PURE__ */ s(
1093
+ (j = e.columns) == null ? void 0 : j.map((v, w) => /* @__PURE__ */ s(
1091
1094
  ue,
1092
1095
  {
1093
1096
  TagName: l(v),
1094
1097
  actionAttributes: {},
1095
- attributes: B(v, w),
1098
+ attributes: V(v, w),
1096
1099
  children: /* @__PURE__ */ s(
1097
1100
  D,
1098
1101
  {
@@ -1119,17 +1122,17 @@ function Wt(e) {
1119
1122
  }` })
1120
1123
  ] });
1121
1124
  }
1122
- function Ft(e) {
1125
+ function Dt(e) {
1123
1126
  return /* @__PURE__ */ s("span", { children: e.children });
1124
1127
  }
1125
1128
  function Se(e) {
1126
1129
  return e.replace(/http(s)?:/, "");
1127
1130
  }
1128
- function $t(e = "", t, n) {
1131
+ function Lt(e = "", t, n) {
1129
1132
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1130
1133
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1131
1134
  }
1132
- function Dt(e, t) {
1135
+ function Ot(e, t) {
1133
1136
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1134
1137
  return e;
1135
1138
  if (t === "master")
@@ -1148,11 +1151,11 @@ function oe(e) {
1148
1151
  if (e.match(/builder\.io/)) {
1149
1152
  let n = e;
1150
1153
  const i = Number(e.split("?width=")[1]);
1151
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${$t(e, "width", o)} ${o}w`).concat([n]).join(", ");
1154
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Lt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1152
1155
  }
1153
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Dt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1156
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1154
1157
  }
1155
- function Lt(e) {
1158
+ function jt(e) {
1156
1159
  var o, r, a, l, c, u;
1157
1160
  function t() {
1158
1161
  var m;
@@ -1182,14 +1185,15 @@ function Lt(e) {
1182
1185
  };
1183
1186
  return e.aspectRatio ? f : void 0;
1184
1187
  }
1185
- return /* @__PURE__ */ V(E, { children: [
1186
- /* @__PURE__ */ V(E, { children: [
1187
- /* @__PURE__ */ V("picture", { children: [
1188
+ return /* @__PURE__ */ B(E, { children: [
1189
+ /* @__PURE__ */ B(E, { children: [
1190
+ /* @__PURE__ */ B("picture", { children: [
1188
1191
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1189
1192
  /* @__PURE__ */ s(
1190
1193
  "img",
1191
1194
  {
1192
- loading: "lazy",
1195
+ loading: e.highPriority ? "eager" : "lazy",
1196
+ fetchPriority: e.highPriority ? "high" : "auto",
1193
1197
  alt: e.altText,
1194
1198
  role: e.altText ? void 0 : "presentation",
1195
1199
  style: {
@@ -1197,7 +1201,7 @@ function Lt(e) {
1197
1201
  objectFit: e.backgroundSize || "cover",
1198
1202
  ...i()
1199
1203
  },
1200
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-3ac67dd4",
1204
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-ac3dff4a",
1201
1205
  src: e.image,
1202
1206
  srcSet: t(),
1203
1207
  sizes: e.sizes
@@ -1207,23 +1211,23 @@ function Lt(e) {
1207
1211
  e.aspectRatio && !((r = (o = e.builderBlock) == null ? void 0 : o.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ s(
1208
1212
  "div",
1209
1213
  {
1210
- className: "builder-image-sizer div-3ac67dd4",
1214
+ className: "builder-image-sizer div-ac3dff4a",
1211
1215
  style: {
1212
1216
  paddingTop: e.aspectRatio * 100 + "%"
1213
1217
  }
1214
1218
  }
1215
1219
  ) : null,
1216
1220
  (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(E, { children: e.children }) : null,
1217
- !e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3ac67dd4-2", children: e.children }) : null
1221
+ !e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-ac3dff4a-2", children: e.children }) : null
1218
1222
  ] }),
1219
- /* @__PURE__ */ s("style", { children: `.img-3ac67dd4 {
1223
+ /* @__PURE__ */ s("style", { children: `.img-ac3dff4a {
1220
1224
  opacity: 1;
1221
1225
  transition: opacity 0.2s ease-in-out;
1222
- }.div-3ac67dd4 {
1226
+ }.div-ac3dff4a {
1223
1227
  width: 100%;
1224
1228
  pointer-events: none;
1225
1229
  font-size: 0;
1226
- }.div-3ac67dd4-2 {
1230
+ }.div-ac3dff4a-2 {
1227
1231
  display: flex;
1228
1232
  flex-direction: column;
1229
1233
  align-items: stretch;
@@ -1235,7 +1239,7 @@ function Lt(e) {
1235
1239
  }` })
1236
1240
  ] });
1237
1241
  }
1238
- function Ot(e) {
1242
+ function Ut(e) {
1239
1243
  return /* @__PURE__ */ s(
1240
1244
  "section",
1241
1245
  {
@@ -1316,7 +1320,7 @@ const ae = {
1316
1320
  }
1317
1321
  }
1318
1322
  }]
1319
- }, jt = {
1323
+ }, Mt = {
1320
1324
  name: "Builder:Accordion",
1321
1325
  canHaveChildren: !0,
1322
1326
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -1375,7 +1379,7 @@ const ae = {
1375
1379
  }
1376
1380
  }]
1377
1381
  }, ve = (e) => e.toString();
1378
- function Ut(e) {
1382
+ function Ht(e) {
1379
1383
  var d;
1380
1384
  const [t, n] = C(() => []);
1381
1385
  function i() {
@@ -1425,13 +1429,13 @@ function Ut(e) {
1425
1429
  if (x) {
1426
1430
  if (x.classList.contains("builder-accordion-detail"))
1427
1431
  continue;
1428
- const B = x.getBoundingClientRect();
1429
- if (B.left > R.left) {
1432
+ const V = x.getBoundingClientRect();
1433
+ if (V.left > R.left) {
1430
1434
  const A = parseInt(
1431
1435
  x.getAttribute("data-index") || "",
1432
1436
  10
1433
1437
  );
1434
- isNaN(A) || (R = B, m = A);
1438
+ isNaN(A) || (R = V, m = A);
1435
1439
  } else
1436
1440
  break;
1437
1441
  }
@@ -1453,7 +1457,7 @@ function Ut(e) {
1453
1457
  function f(m) {
1454
1458
  t.includes(m) ? n(i() ? [] : t.filter((g) => g !== m)) : n(i() ? [m] : t.concat(m));
1455
1459
  }
1456
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: o(), children: (d = e.items) == null ? void 0 : d.map((m, g) => /* @__PURE__ */ V(E, { children: [
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: [
1457
1461
  /* @__PURE__ */ s(
1458
1462
  "div",
1459
1463
  {
@@ -1498,7 +1502,7 @@ function Ut(e) {
1498
1502
  ) : null
1499
1503
  ] })) });
1500
1504
  }
1501
- const Mt = {
1505
+ const Kt = {
1502
1506
  name: "Core:Button",
1503
1507
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1504
1508
  defaultStyles: {
@@ -1531,7 +1535,7 @@ const Mt = {
1531
1535
  }],
1532
1536
  static: !0,
1533
1537
  noWrap: !0
1534
- }, Ht = {
1538
+ }, qt = {
1535
1539
  // TODO: ways to statically preprocess JSON for references, functions, etc
1536
1540
  name: "Columns",
1537
1541
  isRSC: !0,
@@ -1732,13 +1736,13 @@ const Mt = {
1732
1736
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1733
1737
  advanced: !0
1734
1738
  }]
1735
- }, Kt = {
1739
+ }, _t = {
1736
1740
  name: "Fragment",
1737
1741
  static: !0,
1738
1742
  hidden: !0,
1739
1743
  canHaveChildren: !0,
1740
1744
  noWrap: !0
1741
- }, qt = {
1745
+ }, zt = {
1742
1746
  name: "Image",
1743
1747
  static: !0,
1744
1748
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -1831,6 +1835,11 @@ const Mt = {
1831
1835
  type: "boolean",
1832
1836
  helperText: "When child blocks are provided, fit to them instead of using the image's aspect ratio",
1833
1837
  defaultValue: !0
1838
+ }, {
1839
+ name: "highPriority",
1840
+ type: "boolean",
1841
+ advanced: !0,
1842
+ helperText: "Mark this image as high priority compared to other images on the page. This prevents lazy loading of the image and tells the browser to load this image before others on the page."
1834
1843
  }, {
1835
1844
  name: "aspectRatio",
1836
1845
  type: "number",
@@ -1838,7 +1847,7 @@ const Mt = {
1838
1847
  advanced: !0,
1839
1848
  defaultValue: 0.7041
1840
1849
  }]
1841
- }, _t = {
1850
+ }, Jt = {
1842
1851
  name: "Core:Section",
1843
1852
  static: !0,
1844
1853
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1877,7 +1886,7 @@ const Mt = {
1877
1886
  }
1878
1887
  }
1879
1888
  }]
1880
- }, zt = {
1889
+ }, Yt = {
1881
1890
  name: "Slot",
1882
1891
  isRSC: !0,
1883
1892
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1891,7 +1900,7 @@ const Mt = {
1891
1900
  defaultValue: "children"
1892
1901
  }]
1893
1902
  };
1894
- function Jt(e) {
1903
+ function Gt(e) {
1895
1904
  var t, n, i;
1896
1905
  return /* @__PURE__ */ s(
1897
1906
  "div",
@@ -1914,7 +1923,7 @@ function Jt(e) {
1914
1923
  }
1915
1924
  );
1916
1925
  }
1917
- const Yt = {
1926
+ const Qt = {
1918
1927
  name: "Symbol",
1919
1928
  noWrap: !0,
1920
1929
  static: !0,
@@ -1985,7 +1994,7 @@ const Yt = {
1985
1994
  text: "New tab content "
1986
1995
  }
1987
1996
  }
1988
- }, Gt = {
1997
+ }, Xt = {
1989
1998
  name: "Builder: Tabs",
1990
1999
  inputs: [{
1991
2000
  name: "tabs",
@@ -2083,7 +2092,7 @@ const Yt = {
2083
2092
  }]
2084
2093
  }]
2085
2094
  };
2086
- function Qt(e) {
2095
+ function Zt(e) {
2087
2096
  var r;
2088
2097
  const [t, n] = C(
2089
2098
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
@@ -2094,7 +2103,7 @@ function Qt(e) {
2094
2103
  function o(a) {
2095
2104
  a === t && e.collapsible ? n(-1) : n(a);
2096
2105
  }
2097
- return /* @__PURE__ */ V("div", { children: [
2106
+ return /* @__PURE__ */ B("div", { children: [
2098
2107
  /* @__PURE__ */ s(
2099
2108
  "div",
2100
2109
  {
@@ -2142,7 +2151,7 @@ function Qt(e) {
2142
2151
  ) }) : null
2143
2152
  ] });
2144
2153
  }
2145
- const Xt = {
2154
+ const en = {
2146
2155
  name: "Text",
2147
2156
  static: !0,
2148
2157
  isRSC: !0,
@@ -2161,7 +2170,7 @@ const Xt = {
2161
2170
  textAlign: "center"
2162
2171
  }
2163
2172
  };
2164
- function Zt(e) {
2173
+ function tn(e) {
2165
2174
  var t;
2166
2175
  return /* @__PURE__ */ s(
2167
2176
  "div",
@@ -2174,7 +2183,7 @@ function Zt(e) {
2174
2183
  }
2175
2184
  );
2176
2185
  }
2177
- const en = {
2186
+ const nn = {
2178
2187
  name: "Custom Code",
2179
2188
  static: !0,
2180
2189
  requiredPermissions: ["editCode"],
@@ -2197,7 +2206,7 @@ const en = {
2197
2206
  advanced: !0
2198
2207
  }]
2199
2208
  };
2200
- function tn(e) {
2209
+ function on(e) {
2201
2210
  const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []);
2202
2211
  return P(() => {
2203
2212
  var l;
@@ -2235,7 +2244,7 @@ function tn(e) {
2235
2244
  }
2236
2245
  );
2237
2246
  }
2238
- const nn = {
2247
+ const an = {
2239
2248
  name: "Embed",
2240
2249
  static: !0,
2241
2250
  inputs: [{
@@ -2260,8 +2269,8 @@ const nn = {
2260
2269
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
2261
2270
  hideFromUI: !0
2262
2271
  }]
2263
- }, on = ["text/javascript", "application/javascript", "application/ecmascript"], an = (e) => on.includes(e.type);
2264
- function rn(e) {
2272
+ }, rn = ["text/javascript", "application/javascript", "application/ecmascript"], ln = (e) => rn.includes(e.type);
2273
+ function sn(e) {
2265
2274
  const t = ee(null), [n, i] = C(() => []), [o, r] = C(() => []), [a, l] = C(() => !1);
2266
2275
  function c() {
2267
2276
  if (!t.current || !t.current.getElementsByTagName)
@@ -2273,7 +2282,7 @@ function rn(e) {
2273
2282
  n.push(d.src);
2274
2283
  const m = document.createElement("script");
2275
2284
  m.async = !0, m.src = d.src, document.head.appendChild(m);
2276
- } else if (an(d) && !o.includes(d.innerText))
2285
+ } else if (ln(d) && !o.includes(d.innerText))
2277
2286
  try {
2278
2287
  o.push(d.innerText), new Function(d.innerText)();
2279
2288
  } catch (m) {
@@ -2292,7 +2301,7 @@ function rn(e) {
2292
2301
  }
2293
2302
  );
2294
2303
  }
2295
- const ln = {
2304
+ const cn = {
2296
2305
  name: "Form:Form",
2297
2306
  // editableTags: ['builder-form-error']
2298
2307
  defaults: {
@@ -2523,14 +2532,14 @@ const ln = {
2523
2532
  }
2524
2533
  }
2525
2534
  }]
2526
- }, sn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], cn = () => {
2535
+ }, dn = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], un = () => {
2527
2536
  const e = process.env.NODE_ENV || "production";
2528
- return sn.includes(e) ? e : "production";
2529
- }, dn = (e, t, n) => {
2537
+ return dn.includes(e) ? e : "production";
2538
+ }, mn = (e, t, n) => {
2530
2539
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, r) => o != null ? o[r] : o, e);
2531
2540
  return i === void 0 || i === e ? n : i;
2532
2541
  };
2533
- function un(e) {
2542
+ function fn(e) {
2534
2543
  var d, m;
2535
2544
  const t = ee(null), [n, i] = C(() => "unsubmitted"), [o, r] = C(() => null), [a, l] = C(() => "");
2536
2545
  function c(g) {
@@ -2556,8 +2565,8 @@ function un(e) {
2556
2565
  }
2557
2566
  g.preventDefault();
2558
2567
  const x = g.currentTarget || g.target, R = e.customHeaders || {};
2559
- let B;
2560
- const A = new FormData(x), O = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2568
+ let V;
2569
+ const A = new FormData(x), j = Array.from(x.querySelectorAll("input,select,textarea")).filter((b) => !!b.name).map((b) => {
2561
2570
  let h;
2562
2571
  const y = b.name;
2563
2572
  if (b instanceof HTMLInputElement)
@@ -2582,33 +2591,33 @@ function un(e) {
2582
2591
  };
2583
2592
  });
2584
2593
  let v = e.contentType;
2585
- if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(O).forEach(({ value: b }) => {
2594
+ if (e.sendSubmissionsTo === "email" && (v = "multipart/form-data"), Array.from(j).forEach(({ value: b }) => {
2586
2595
  (b instanceof File || Array.isArray(b) && b[0] instanceof File || b instanceof FileList) && (v = "multipart/form-data");
2587
2596
  }), v !== "application/json")
2588
- B = A;
2597
+ V = A;
2589
2598
  else {
2590
2599
  const b = {};
2591
- Array.from(O).forEach(({ value: h, key: y }) => {
2600
+ Array.from(j).forEach(({ value: h, key: y }) => {
2592
2601
  Pe(b, y, h);
2593
- }), B = JSON.stringify(b);
2602
+ }), V = JSON.stringify(b);
2594
2603
  }
2595
2604
  v && v !== "multipart/form-data" && (p && ((I = e.action) != null && I.includes("zapier.com")) || (R["content-type"] = v));
2596
- const w = new CustomEvent("presubmit", { detail: { body: B } });
2605
+ const w = new CustomEvent("presubmit", { detail: { body: V } });
2597
2606
  if (t.current && (t.current.dispatchEvent(w), w.defaultPrevented))
2598
2607
  return;
2599
2608
  i("sending");
2600
- const W = `${cn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2609
+ const W = `${un() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2601
2610
  e.sendSubmissionsToEmail || ""
2602
2611
  )}&name=${encodeURIComponent(e.name || "")}`;
2603
2612
  fetch(
2604
2613
  e.sendSubmissionsTo === "email" ? W : e.action,
2605
- { body: B, headers: R, method: e.method || "post" }
2614
+ { body: V, headers: R, method: e.method || "post" }
2606
2615
  ).then(
2607
2616
  async (b) => {
2608
2617
  let h;
2609
2618
  const y = b.headers.get("content-type");
2610
2619
  if (y && y.indexOf("application/json") !== -1 ? h = await b.json() : h = await b.text(), !b.ok && e.errorMessagePath) {
2611
- let S = dn(h, e.errorMessagePath);
2620
+ let S = mn(h, e.errorMessagePath);
2612
2621
  S && (typeof S != "string" && (S = JSON.stringify(S)), l(S), c({ formErrorMessage: S }));
2613
2622
  }
2614
2623
  if (r(h), i(b.ok ? "success" : "error"), b.ok) {
@@ -2639,9 +2648,9 @@ function un(e) {
2639
2648
  );
2640
2649
  }
2641
2650
  }
2642
- return /* @__PURE__ */ V(E, { children: [
2651
+ return /* @__PURE__ */ B(E, { children: [
2643
2652
  " ",
2644
- /* @__PURE__ */ V(
2653
+ /* @__PURE__ */ B(
2645
2654
  "form",
2646
2655
  {
2647
2656
  validate: e.validate,
@@ -2695,7 +2704,7 @@ function un(e) {
2695
2704
  " "
2696
2705
  ] });
2697
2706
  }
2698
- const mn = {
2707
+ const hn = {
2699
2708
  name: "Form:Input",
2700
2709
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2701
2710
  inputs: [
@@ -2747,7 +2756,7 @@ const mn = {
2747
2756
  borderColor: "#ccc"
2748
2757
  }
2749
2758
  };
2750
- function fn(e) {
2759
+ function gn(e) {
2751
2760
  return /* @__PURE__ */ Re(
2752
2761
  "input",
2753
2762
  {
@@ -2762,7 +2771,7 @@ function fn(e) {
2762
2771
  }
2763
2772
  );
2764
2773
  }
2765
- const hn = {
2774
+ const bn = {
2766
2775
  name: "Form:Select",
2767
2776
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2768
2777
  defaultStyles: {
@@ -2805,7 +2814,7 @@ const hn = {
2805
2814
  static: !0,
2806
2815
  noWrap: !0
2807
2816
  };
2808
- function gn(e) {
2817
+ function pn(e) {
2809
2818
  var t;
2810
2819
  return /* @__PURE__ */ Re(
2811
2820
  "select",
@@ -2819,7 +2828,7 @@ function gn(e) {
2819
2828
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2820
2829
  );
2821
2830
  }
2822
- const bn = {
2831
+ const yn = {
2823
2832
  name: "Form:SubmitButton",
2824
2833
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2825
2834
  defaultStyles: {
@@ -2845,10 +2854,10 @@ const bn = {
2845
2854
  // TODO: defaultChildren
2846
2855
  // canHaveChildren: true,
2847
2856
  };
2848
- function pn(e) {
2857
+ function xn(e) {
2849
2858
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2850
2859
  }
2851
- const yn = {
2860
+ const Sn = {
2852
2861
  // friendlyName?
2853
2862
  name: "Raw:Img",
2854
2863
  hideFromInsertMenu: !0,
@@ -2863,7 +2872,7 @@ const yn = {
2863
2872
  noWrap: !0,
2864
2873
  static: !0
2865
2874
  };
2866
- function xn(e) {
2875
+ function vn(e) {
2867
2876
  return /* @__PURE__ */ s(
2868
2877
  "img",
2869
2878
  {
@@ -2878,7 +2887,7 @@ function xn(e) {
2878
2887
  $() && e.imgSrc || "default-key"
2879
2888
  );
2880
2889
  }
2881
- const Sn = {
2890
+ const kn = {
2882
2891
  name: "Video",
2883
2892
  canHaveChildren: !0,
2884
2893
  defaultStyles: {
@@ -2960,7 +2969,7 @@ const Sn = {
2960
2969
  advanced: !0
2961
2970
  }]
2962
2971
  };
2963
- function vn(e) {
2972
+ function Cn(e) {
2964
2973
  var i, o, r, a, l, c, u;
2965
2974
  function t() {
2966
2975
  return {
@@ -2986,7 +2995,7 @@ function vn(e) {
2986
2995
  ...t()
2987
2996
  };
2988
2997
  }
2989
- return /* @__PURE__ */ V(
2998
+ return /* @__PURE__ */ B(
2990
2999
  "div",
2991
3000
  {
2992
3001
  style: {
@@ -3061,61 +3070,61 @@ function vn(e) {
3061
3070
  }
3062
3071
  );
3063
3072
  }
3064
- const kn = () => [{
3065
- component: tn,
3066
- ...en
3067
- }, {
3068
- component: rn,
3073
+ const Tn = () => [{
3074
+ component: on,
3069
3075
  ...nn
3070
3076
  }, {
3071
- component: un,
3072
- ...ln
3077
+ component: sn,
3078
+ ...an
3073
3079
  }, {
3074
3080
  component: fn,
3075
- ...mn
3076
- }, {
3077
- component: pn,
3078
- ...bn
3081
+ ...cn
3079
3082
  }, {
3080
3083
  component: gn,
3081
3084
  ...hn
3082
3085
  }, {
3083
3086
  component: xn,
3084
3087
  ...yn
3088
+ }, {
3089
+ component: pn,
3090
+ ...bn
3085
3091
  }, {
3086
3092
  component: vn,
3087
3093
  ...Sn
3094
+ }, {
3095
+ component: Cn,
3096
+ ...kn
3088
3097
  }], ke = () => [{
3089
3098
  component: nt,
3090
- ...Mt
3091
- }, {
3092
- component: Wt,
3093
- ...Ht
3094
- }, {
3095
- component: Ft,
3096
3099
  ...Kt
3097
3100
  }, {
3098
- component: Lt,
3101
+ component: $t,
3099
3102
  ...qt
3100
3103
  }, {
3101
- component: Ot,
3104
+ component: Dt,
3102
3105
  ..._t
3103
3106
  }, {
3104
- component: Jt,
3107
+ component: jt,
3105
3108
  ...zt
3106
3109
  }, {
3107
- component: qn,
3110
+ component: Ut,
3111
+ ...Jt
3112
+ }, {
3113
+ component: Gt,
3108
3114
  ...Yt
3115
+ }, {
3116
+ component: zn,
3117
+ ...Qt
3118
+ }, {
3119
+ component: tn,
3120
+ ...en
3109
3121
  }, {
3110
3122
  component: Zt,
3111
3123
  ...Xt
3112
3124
  }, {
3113
- component: Qt,
3114
- ...Gt
3115
- }, {
3116
- component: Ut,
3117
- ...jt
3118
- }, ...kn()], Cn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3125
+ component: Ht,
3126
+ ...Mt
3127
+ }, ...Tn()], In = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3119
3128
  function getAndSetVariantId() {
3120
3129
  function setCookie(name, value, days) {
3121
3130
  let expires = '';
@@ -3171,7 +3180,7 @@ const kn = () => [{
3171
3180
  }).join('');
3172
3181
  styleEl.innerHTML = newStyleStr;
3173
3182
  }
3174
- }`, Tn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3183
+ }`, wn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3175
3184
  if (!navigator.cookieEnabled) {
3176
3185
  return;
3177
3186
  }
@@ -3209,16 +3218,16 @@ const kn = () => [{
3209
3218
  ...t,
3210
3219
  testVariationId: t.id,
3211
3220
  id: e == null ? void 0 : e.id
3212
- })), In = ({
3221
+ })), En = ({
3213
3222
  canTrack: e,
3214
3223
  content: t
3215
- }) => !(!(Y(t).length > 0) || !e || M()), wn = (e) => e === "react" || e === "reactNative", Me = wn(_), En = () => `
3216
- window.${je} = ${Cn}
3217
- window.${Ue} = ${Tn}
3218
- `, Rn = (e, 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) => `
3219
3228
  window.${je}(
3220
3229
  "${t}",${JSON.stringify(e)}, ${Me}
3221
- )`, Vn = ({
3230
+ )`, Pn = ({
3222
3231
  contentId: e,
3223
3232
  variationId: t
3224
3233
  }) => `window.${Ue}(
@@ -3236,7 +3245,7 @@ function ce(e) {
3236
3245
  function Ce(e) {
3237
3246
  return Math.round(e * 1e3) / 1e3;
3238
3247
  }
3239
- const Bn = (e, t, n = !0) => {
3248
+ const An = (e, t, n = !0) => {
3240
3249
  if (!(e instanceof HTMLElement))
3241
3250
  return null;
3242
3251
  let i = n ? e : e.parentElement;
@@ -3247,7 +3256,7 @@ const Bn = (e, t, n = !0) => {
3247
3256
  return i;
3248
3257
  } while (i = i.parentElement);
3249
3258
  return null;
3250
- }, Pn = (e) => Bn(e, (t) => {
3259
+ }, Nn = (e) => An(e, (t) => {
3251
3260
  const n = t.getAttribute("builder-id") || t.id;
3252
3261
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3253
3262
  }), Te = ({
@@ -3259,8 +3268,8 @@ const Bn = (e, t, n = !0) => {
3259
3268
  x: r,
3260
3269
  y: a
3261
3270
  };
3262
- }, An = (e) => {
3263
- const t = e.target, n = t && Pn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
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);
3264
3273
  return {
3265
3274
  targetBuilderElement: i || void 0,
3266
3275
  metadata: {
@@ -3275,7 +3284,7 @@ const Bn = (e, t, n = !0) => {
3275
3284
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
3276
3285
  }
3277
3286
  };
3278
- }, Nn = (e) => {
3287
+ }, Fn = (e) => {
3279
3288
  var r, a;
3280
3289
  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;
3281
3290
  let o = "";
@@ -3301,15 +3310,15 @@ font-weight: ${l};
3301
3310
  `.trim());
3302
3311
  }
3303
3312
  return o;
3304
- }, Wn = ({
3313
+ }, $n = ({
3305
3314
  customFonts: e
3306
3315
  }) => {
3307
3316
  var t;
3308
- return ((t = e == null ? void 0 : e.map((n) => Nn(n))) == null ? void 0 : t.join(" ")) || "";
3309
- }, Fn = ({
3317
+ return ((t = e == null ? void 0 : e.map((n) => Fn(n))) == null ? void 0 : t.join(" ")) || "";
3318
+ }, Dn = ({
3310
3319
  cssCode: e,
3311
3320
  contentId: t
3312
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", $n = `
3321
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ln = `
3313
3322
  .builder-button {
3314
3323
  all: unset;
3315
3324
  }
@@ -3326,9 +3335,9 @@ font-weight: ${l};
3326
3335
  text-align: inherit;
3327
3336
  font-family: inherit;
3328
3337
  }
3329
- `, Dn = (e) => e ? "" : $n, Ln = (e) => `variant-${e}`;
3330
- function On(e) {
3331
- var B, A, O, v, w, W, b;
3338
+ `, On = (e) => e ? "" : Ln, jn = (e) => `variant-${e}`;
3339
+ function Un(e) {
3340
+ var V, A, j, v, w, W, b;
3332
3341
  const t = ee(null);
3333
3342
  function n(h) {
3334
3343
  var S, k;
@@ -3342,7 +3351,7 @@ function On(e) {
3342
3351
  }));
3343
3352
  }
3344
3353
  function i(h) {
3345
- var S, k, T, N, j;
3354
+ var S, k, T, N, U;
3346
3355
  const y = {
3347
3356
  ...e.builderContextSignal.content,
3348
3357
  ...h,
@@ -3353,7 +3362,7 @@ function On(e) {
3353
3362
  meta: {
3354
3363
  ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
3355
3364
  ...h == null ? void 0 : h.meta,
3356
- breakpoints: ((T = h == null ? void 0 : h.meta) == null ? void 0 : T.breakpoints) || ((j = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : j.breakpoints)
3365
+ 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)
3357
3366
  }
3358
3367
  };
3359
3368
  e.setBuilderContextSignal((F) => ({
@@ -3396,7 +3405,7 @@ function On(e) {
3396
3405
  function c() {
3397
3406
  var y, S;
3398
3407
  const h = (S = (y = e.builderContextSignal.content) == null ? void 0 : y.data) == null ? void 0 : S.jsCode;
3399
- h && q({
3408
+ h && _({
3400
3409
  code: h,
3401
3410
  context: e.context || {},
3402
3411
  localState: void 0,
@@ -3419,7 +3428,7 @@ function On(e) {
3419
3428
  contentId: T,
3420
3429
  apiKey: e.apiKey,
3421
3430
  variationId: k !== T ? k : void 0,
3422
- ...An(h),
3431
+ ...Wn(h),
3423
3432
  unique: !g
3424
3433
  });
3425
3434
  }
@@ -3432,10 +3441,10 @@ function On(e) {
3432
3441
  if (!N || d[T] || u[T] && !$())
3433
3442
  return;
3434
3443
  d[T] = !0;
3435
- const j = N.replace(
3444
+ const U = N.replace(
3436
3445
  /{{([^}]+)}}/g,
3437
3446
  (F, He) => String(
3438
- q({
3447
+ _({
3439
3448
  code: He,
3440
3449
  context: e.context || {},
3441
3450
  localState: void 0,
@@ -3445,7 +3454,7 @@ function On(e) {
3445
3454
  })
3446
3455
  )
3447
3456
  );
3448
- Xe(j).then((F) => F.json()).then((F) => {
3457
+ Xe(U).then((F) => F.json()).then((F) => {
3449
3458
  n({
3450
3459
  [T]: F
3451
3460
  }), u[T] = !0;
@@ -3473,7 +3482,7 @@ function On(e) {
3473
3482
  }
3474
3483
  return P(() => {
3475
3484
  var h, y;
3476
- if (M()) {
3485
+ if (H()) {
3477
3486
  if ($() && (window.addEventListener("message", l), ze(), Je({
3478
3487
  ...e.locale ? {
3479
3488
  locale: e.locale
@@ -3506,8 +3515,8 @@ function On(e) {
3506
3515
  if (Ge() && !$()) {
3507
3516
  const k = new URL(location.href).searchParams, T = k.get("builder.preview"), N = k.get(
3508
3517
  `builder.overrides.${T}`
3509
- ), j = k.get("apiKey") || k.get("builder.space");
3510
- T === e.model && j === e.apiKey && (!e.content || N === e.content.id) && we({
3518
+ ), U = k.get("apiKey") || k.get("builder.space");
3519
+ T === e.model && U === e.apiKey && (!e.content || N === e.content.id) && we({
3511
3520
  model: e.model,
3512
3521
  apiKey: e.apiKey,
3513
3522
  apiVersion: e.builderContextSignal.apiVersion
@@ -3524,9 +3533,9 @@ function On(e) {
3524
3533
  e.content && i(e.content);
3525
3534
  }, [e.content]), P(() => {
3526
3535
  c();
3527
- }, [(A = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : A.jsCode]), P(() => {
3536
+ }, [(A = (V = e.builderContextSignal.content) == null ? void 0 : V.data) == null ? void 0 : A.jsCode]), P(() => {
3528
3537
  x();
3529
- }, [(v = (O = e.builderContextSignal.content) == null ? void 0 : O.data) == null ? void 0 : v.httpRequests]), P(() => {
3538
+ }, [(v = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : v.httpRequests]), P(() => {
3530
3539
  R();
3531
3540
  }, [e.builderContextSignal.rootState]), P(() => {
3532
3541
  e.data && n(e.data);
@@ -3535,7 +3544,7 @@ function On(e) {
3535
3544
  locale: e.locale
3536
3545
  });
3537
3546
  }, [e.locale]), P(() => () => {
3538
- M() && (window.removeEventListener("message", l), window.removeEventListener(
3547
+ H() && (window.removeEventListener("message", l), window.removeEventListener(
3539
3548
  "builder:component:stateChangeListenerActivated",
3540
3549
  R
3541
3550
  ));
@@ -3548,29 +3557,29 @@ function On(e) {
3548
3557
  "builder-model": e.model,
3549
3558
  ...o(),
3550
3559
  ...e.contentWrapperProps,
3551
- className: Ln(
3560
+ className: jn(
3552
3561
  ((W = e.content) == null ? void 0 : W.testVariationId) || ((b = e.content) == null ? void 0 : b.id)
3553
3562
  ),
3554
3563
  children: e.children
3555
3564
  }
3556
3565
  ) : null });
3557
3566
  }
3558
- function jn(e) {
3567
+ function Mn(e) {
3559
3568
  const [t, n] = C(
3560
3569
  () => `
3561
- ${Fn({
3570
+ ${Dn({
3562
3571
  cssCode: e.cssCode,
3563
3572
  contentId: e.contentId
3564
3573
  })}
3565
- ${Wn({
3574
+ ${$n({
3566
3575
  customFonts: e.customFonts
3567
3576
  })}
3568
- ${Dn(e.isNestedRender)}
3577
+ ${On(e.isNestedRender)}
3569
3578
  `.trim()
3570
3579
  );
3571
3580
  return /* @__PURE__ */ s(ne, { id: "builderio-content", styles: t });
3572
3581
  }
3573
- const Un = ({
3582
+ const Hn = ({
3574
3583
  content: e,
3575
3584
  data: t,
3576
3585
  locale: n
@@ -3587,7 +3596,7 @@ const Un = ({
3587
3596
  locale: n
3588
3597
  } : {}
3589
3598
  };
3590
- }, Mn = ({
3599
+ }, Kn = ({
3591
3600
  content: e,
3592
3601
  data: t
3593
3602
  }) => e ? {
@@ -3603,7 +3612,7 @@ function Ie(e) {
3603
3612
  const [t, n] = C(
3604
3613
  () => {
3605
3614
  var I, x;
3606
- return Vn({
3615
+ return Pn({
3607
3616
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3608
3617
  variationId: (I = e.content) == null ? void 0 : I.testVariationId,
3609
3618
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -3632,12 +3641,12 @@ function Ie(e) {
3632
3641
  {}
3633
3642
  )
3634
3643
  ), [a, l] = C(() => ({
3635
- content: Mn({
3644
+ content: Kn({
3636
3645
  content: e.content,
3637
3646
  data: e.data
3638
3647
  }),
3639
3648
  localState: void 0,
3640
- rootState: Un({
3649
+ rootState: Hn({
3641
3650
  content: e.content,
3642
3651
  data: e.data,
3643
3652
  locale: e.locale
@@ -3662,13 +3671,13 @@ function Ie(e) {
3662
3671
  BlocksWrapperProps: e.blocksWrapperProps || {}
3663
3672
  }));
3664
3673
  return /* @__PURE__ */ s(
3665
- Ve.Provider,
3674
+ Be.Provider,
3666
3675
  {
3667
3676
  value: {
3668
3677
  registeredComponents: o
3669
3678
  },
3670
- children: /* @__PURE__ */ V(
3671
- On,
3679
+ children: /* @__PURE__ */ B(
3680
+ Un,
3672
3681
  {
3673
3682
  content: e.content,
3674
3683
  data: e.data,
@@ -3682,7 +3691,6 @@ function Ie(e) {
3682
3691
  builderContextSignal: a,
3683
3692
  contentWrapper: e.contentWrapper,
3684
3693
  contentWrapperProps: e.contentWrapperProps,
3685
- linkComponent: e.linkComponent,
3686
3694
  trustedHosts: e.trustedHosts,
3687
3695
  setBuilderContextSignal: l,
3688
3696
  children: [
@@ -3694,7 +3702,7 @@ function Ie(e) {
3694
3702
  }
3695
3703
  ) : null,
3696
3704
  /* @__PURE__ */ s(
3697
- jn,
3705
+ Mn,
3698
3706
  {
3699
3707
  isNestedRender: e.isNestedRender,
3700
3708
  contentId: (c = a.content) == null ? void 0 : c.id,
@@ -3717,17 +3725,17 @@ function Ie(e) {
3717
3725
  }
3718
3726
  );
3719
3727
  }
3720
- function Hn(e) {
3728
+ function qn(e) {
3721
3729
  var a;
3722
3730
  const [t, n] = C(
3723
- () => In({
3731
+ () => En({
3724
3732
  canTrack: Q(e.canTrack),
3725
3733
  content: e.content
3726
3734
  })
3727
3735
  );
3728
3736
  function i() {
3729
3737
  var l;
3730
- return Rn(
3738
+ return Vn(
3731
3739
  Y(e.content).map((c) => ({
3732
3740
  id: c.testVariationId,
3733
3741
  testRatio: c.testRatio
@@ -3749,15 +3757,15 @@ function Hn(e) {
3749
3757
  });
3750
3758
  }
3751
3759
  return P(() => {
3752
- }, []), /* @__PURE__ */ V(E, { children: [
3753
- !e.isNestedRender && _ !== "reactNative" ? /* @__PURE__ */ s(
3760
+ }, []), /* @__PURE__ */ B(E, { children: [
3761
+ !e.isNestedRender && L !== "reactNative" ? /* @__PURE__ */ s(
3754
3762
  ce,
3755
3763
  {
3756
3764
  id: "builderio-init-variants-fns",
3757
- scriptStr: En()
3765
+ scriptStr: Bn()
3758
3766
  }
3759
3767
  ) : null,
3760
- t ? /* @__PURE__ */ V(E, { children: [
3768
+ t ? /* @__PURE__ */ B(E, { children: [
3761
3769
  /* @__PURE__ */ s(
3762
3770
  ne,
3763
3771
  {
@@ -3824,7 +3832,7 @@ function Hn(e) {
3824
3832
  )
3825
3833
  ] });
3826
3834
  }
3827
- const Kn = async ({
3835
+ const _n = async ({
3828
3836
  builderContextValue: e,
3829
3837
  symbol: t
3830
3838
  }) => {
@@ -3843,7 +3851,7 @@ const Kn = async ({
3843
3851
  Z.error("Could not fetch symbol content: ", n);
3844
3852
  });
3845
3853
  };
3846
- function qn(e) {
3854
+ function zn(e) {
3847
3855
  var l, c, u, f;
3848
3856
  function t() {
3849
3857
  return "div";
@@ -3854,7 +3862,7 @@ function qn(e) {
3854
3862
  function i() {
3855
3863
  var d, m;
3856
3864
  return [
3857
- e.attributes[K()],
3865
+ e.attributes[q()],
3858
3866
  "builder-symbol",
3859
3867
  (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
3860
3868
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
@@ -3865,7 +3873,7 @@ function qn(e) {
3865
3873
  return (d = e.symbol) == null ? void 0 : d.content;
3866
3874
  });
3867
3875
  function a() {
3868
- o || Kn({
3876
+ o || _n({
3869
3877
  symbol: e.symbol,
3870
3878
  builderContextValue: e.builderContext
3871
3879
  }).then((d) => {
@@ -3876,7 +3884,7 @@ function qn(e) {
3876
3884
  }, []), P(() => {
3877
3885
  a();
3878
3886
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
3879
- Hn,
3887
+ qn,
3880
3888
  {
3881
3889
  isNestedRender: !0,
3882
3890
  apiVersion: e.builderContext.apiVersion,
@@ -3904,12 +3912,12 @@ export {
3904
3912
  D as Blocks,
3905
3913
  me as BuilderContext,
3906
3914
  nt as Button,
3907
- Wt as Columns,
3908
- Hn as Content,
3909
- Ft as Fragment,
3910
- Lt as Image,
3911
- Ot as Section,
3912
- qn as Symbol,
3913
- Zt as Text,
3914
- vn as Video
3915
+ $t as Columns,
3916
+ qn as Content,
3917
+ Dt as Fragment,
3918
+ jt as Image,
3919
+ Ut as Section,
3920
+ zn as Symbol,
3921
+ tn as Text,
3922
+ Cn as Video
3915
3923
  };