@builder.io/sdk-react 5.2.3 → 5.2.4-dev.0

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 (69) hide show
  1. package/README.md +0 -4
  2. package/lib/browser/blocks-exports.cjs +32 -24
  3. package/lib/browser/blocks-exports.mjs +175 -169
  4. package/lib/browser/index.cjs +1 -1
  5. package/lib/browser/index.mjs +1 -1
  6. package/lib/browser/server-entry-32fde7d6.cjs +2 -0
  7. package/lib/browser/{server-entry-a6f43f98.js → server-entry-3a0f3268.js} +1 -1
  8. package/lib/browser/server-entry.cjs +1 -1
  9. package/lib/browser/server-entry.mjs +1 -1
  10. package/lib/edge/{accordion-6c708d49.cjs → accordion-0ac4b4bc.cjs} +1 -1
  11. package/lib/edge/{accordion-52741334.js → accordion-281685a7.js} +1 -1
  12. package/lib/edge/{blocks-e94e371c.cjs → blocks-2bbe2b28.cjs} +1 -1
  13. package/lib/edge/{blocks-af5e55f6.js → blocks-ae2a49a7.js} +2 -2
  14. package/lib/edge/blocks-exports.cjs +1 -1
  15. package/lib/edge/blocks-exports.mjs +2 -2
  16. package/lib/edge/{button-df76a8b2.cjs → button-23adb9d5.cjs} +1 -1
  17. package/lib/edge/{button-2a5bf939.js → button-feb2e4c9.js} +2 -2
  18. package/lib/edge/{columns-dc5fc496.js → columns-2bd52875.js} +3 -3
  19. package/lib/edge/{columns-044891a6.cjs → columns-def305cf.cjs} +1 -1
  20. package/lib/edge/{content-variants-d950ffc8.js → content-variants-415eac79.js} +104 -98
  21. package/lib/edge/{content-variants-9ee0d895.cjs → content-variants-ec418e63.cjs} +23 -15
  22. package/lib/edge/{custom-code-685e8b43.js → custom-code-14d05bee.js} +1 -1
  23. package/lib/edge/{custom-code-2403d3d3.cjs → custom-code-e11c0386.cjs} +1 -1
  24. package/lib/edge/{embed-462f3730.js → embed-16e83d02.js} +1 -1
  25. package/lib/edge/{embed-cdbaa40e.cjs → embed-f9b142c0.cjs} +1 -1
  26. package/lib/edge/{form-1a9b42a0.js → form-74774087.js} +3 -3
  27. package/lib/edge/{form-43c8dbf3.cjs → form-9ffabbba.cjs} +1 -1
  28. package/lib/edge/{get-class-prop-name-fbedc76f.cjs → get-class-prop-name-2b1ea4eb.cjs} +1 -1
  29. package/lib/edge/{get-class-prop-name-e944471a.js → get-class-prop-name-33cafbde.js} +1 -1
  30. package/lib/edge/{img-d3819e49.cjs → img-1be5d2b3.cjs} +1 -1
  31. package/lib/edge/{img-fb540382.js → img-8f36ecb0.js} +2 -2
  32. package/lib/edge/index.cjs +1 -1
  33. package/lib/edge/index.mjs +1 -1
  34. package/lib/edge/{input-0efc2cf0.js → input-11bbe245.js} +1 -1
  35. package/lib/edge/{input-6c53f2f3.cjs → input-8c205b02.cjs} +1 -1
  36. package/lib/edge/{personalization-container-a9c09c80.cjs → personalization-container-22d0d6da.cjs} +1 -1
  37. package/lib/edge/{personalization-container-63d25e42.js → personalization-container-9f86e2a4.js} +4 -4
  38. package/lib/edge/{select-61deb890.js → select-badee915.js} +1 -1
  39. package/lib/edge/{select-391ac558.cjs → select-eadae9ec.cjs} +1 -1
  40. package/lib/edge/{server-entry-5182bda7.js → server-entry-2c77147b.js} +1 -1
  41. package/lib/edge/{server-entry-4528f206.cjs → server-entry-48caf9b2.cjs} +1 -1
  42. package/lib/edge/server-entry.cjs +1 -1
  43. package/lib/edge/server-entry.mjs +1 -1
  44. package/lib/edge/{slot-6f93fc15.js → slot-0eab4674.js} +3 -3
  45. package/lib/edge/{slot-373f1e81.cjs → slot-7538f944.cjs} +1 -1
  46. package/lib/edge/{symbol-2ad1da28.js → symbol-6e406f55.js} +2 -2
  47. package/lib/edge/{symbol-a1651207.cjs → symbol-c8f06cf6.cjs} +1 -1
  48. package/lib/edge/{tabs-c4e43a9c.js → tabs-60cfbeee.js} +3 -3
  49. package/lib/edge/{tabs-a0eccabc.cjs → tabs-7bcc75e3.cjs} +1 -1
  50. package/lib/node/blocks-exports.cjs +29 -21
  51. package/lib/node/blocks-exports.mjs +130 -124
  52. package/lib/node/index.cjs +1 -1
  53. package/lib/node/index.mjs +3 -3
  54. package/lib/node/init.cjs +1 -1
  55. package/lib/node/init.mjs +3 -3
  56. package/lib/node/server-entry-519cd30a.cjs +2 -0
  57. package/lib/node/{server-entry-52b9a881.js → server-entry-91bd4af2.js} +1 -1
  58. package/lib/node/server-entry.cjs +1 -1
  59. package/lib/node/server-entry.mjs +1 -1
  60. package/lib/node/{setIvm-5e533ce2.cjs → setIvm-c64cc674.cjs} +1 -1
  61. package/lib/node/{setIvm-25463972.js → setIvm-f5aa8580.js} +1 -1
  62. package/lib/node/setIvm.cjs +1 -1
  63. package/lib/node/setIvm.mjs +2 -2
  64. package/lib/node/{should-force-browser-runtime-in-node-d883c014.js → should-force-browser-runtime-in-node-098c4aa9.js} +1 -1
  65. package/lib/node/{should-force-browser-runtime-in-node-a8019095.cjs → should-force-browser-runtime-in-node-d60cd7d1.cjs} +1 -1
  66. package/package.json +1 -1
  67. package/types/constants/sdk-version.d.ts +1 -1
  68. package/lib/browser/server-entry-4bf14bc1.cjs +0 -2
  69. package/lib/node/server-entry-88c9db7d.cjs +0 -2
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { TARGET as F, isBrowser as G, logger as ee, checkIsDefined as be, isPreviewing as oe, isEditing as U, userAttributesService as Te, getDefaultCanTrack as Z, logFetch as Le, setupBrowserForEditing as st, createRegisterComponentMessage as ct, getCookieSync as ut, _track as Ie, fetchOneEntry as Oe, createEditorListener as dt, serializeIncludingFunctions as we, handleABTestingSync as mt } from "./server-entry-52b9a881.js";
3
- import { setClientUserAttributes as qi } from "./server-entry-52b9a881.js";
2
+ import { TARGET as F, isBrowser as G, logger as ee, checkIsDefined as be, isPreviewing as oe, isEditing as U, userAttributesService as Ee, getDefaultCanTrack as Z, logFetch as Ue, setupBrowserForEditing as st, createRegisterComponentMessage as ct, getCookieSync as ut, _track as Re, fetchOneEntry as He, createEditorListener as dt, serializeIncludingFunctions as Pe, handleABTestingSync as mt } from "./server-entry-91bd4af2.js";
3
+ import { setClientUserAttributes as qi } from "./server-entry-91bd4af2.js";
4
4
  import { jsx as s, Fragment as w, jsxs as D } from "react/jsx-runtime";
5
5
  import * as ft from "react";
6
- import { createContext as _e, useEffect as B, useState as k, useContext as ye, useRef as z, createElement as Ue } from "react";
7
- import { getFunctionArguments as ht, flattenState as gt, runInNode as bt, parseCode as yt, getBuilderGlobals as pt, set as He, fastClone as ve } from "./setIvm-25463972.js";
8
- import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-d883c014.js";
6
+ import { createContext as Me, useEffect as B, useState as k, useContext as ye, useRef as z, createElement as qe } from "react";
7
+ import { getFunctionArguments as ht, flattenState as gt, runInNode as bt, parseCode as yt, getBuilderGlobals as pt, set as je, fastClone as Se } from "./setIvm-f5aa8580.js";
8
+ import { shouldForceBrowserRuntimeInNode as vt } from "./should-force-browser-runtime-in-node-098c4aa9.js";
9
9
  const xt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), St = (e) => typeof e == "string" && xt.has(e.toLowerCase());
10
- function xe(e) {
10
+ function ke(e) {
11
11
  return /* @__PURE__ */ s(w, { children: St(e.TagName) ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(w, { 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 }) }) });
12
12
  }
13
13
  const K = () => {
@@ -39,7 +39,7 @@ function kt(e) {
39
39
  };
40
40
  }
41
41
  return /* @__PURE__ */ s(
42
- xe,
42
+ ke,
43
43
  {
44
44
  attributes: t(),
45
45
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -48,7 +48,7 @@ function kt(e) {
48
48
  }
49
49
  );
50
50
  }
51
- const le = _e({
51
+ const le = Me({
52
52
  content: null,
53
53
  context: {},
54
54
  localState: void 0,
@@ -63,7 +63,7 @@ const le = _e({
63
63
  BlocksWrapperProps: {},
64
64
  nonce: "",
65
65
  model: ""
66
- }), Me = _e({ registeredComponents: {} }), qe = (e, t, n) => {
66
+ }), ze = Me({ registeredComponents: {} }), Ke = (e, t, n) => {
67
67
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((a, r) => a != null ? a[r] : a, e);
68
68
  return i === void 0 || i === e ? n : i;
69
69
  }, Ct = ({
@@ -106,7 +106,7 @@ function Q({
106
106
  return;
107
107
  const c = Et(e.trim());
108
108
  if (c)
109
- return qe({
109
+ return Ke({
110
110
  ...i,
111
111
  ...n
112
112
  }, c);
@@ -175,7 +175,7 @@ function re(e, t, n = null, i = null, a = /* @__PURE__ */ new WeakSet()) {
175
175
  }), re(o, t, e, r, a);
176
176
  }));
177
177
  }
178
- function je(e) {
178
+ function Je(e) {
179
179
  return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
180
180
  }
181
181
  function At(e) {
@@ -183,7 +183,7 @@ function At(e) {
183
183
  return !1;
184
184
  let t = !1;
185
185
  return re(e, (n) => {
186
- if (je(n)) {
186
+ if (Je(n)) {
187
187
  t = !0;
188
188
  return;
189
189
  }
@@ -192,7 +192,7 @@ function At(e) {
192
192
  function Bt(e, t) {
193
193
  return !e || !Object.getOwnPropertyNames(e).length ? {} : (re(e, (n, i) => {
194
194
  var a;
195
- je(n) && i((a = n[t]) != null ? a : void 0);
195
+ Je(n) && i((a = n[t]) != null ? a : void 0);
196
196
  }), e);
197
197
  }
198
198
  function Nt(e, t) {
@@ -213,7 +213,7 @@ function pe(e) {
213
213
  }
214
214
  const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), Wt = (e) => {
215
215
  if ($t) {
216
- const t = ve(e);
216
+ const t = Se(e);
217
217
  return {
218
218
  ...t,
219
219
  properties: {
@@ -255,7 +255,7 @@ const $t = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), Wt = (e) =
255
255
  rootSetState: a,
256
256
  context: t
257
257
  });
258
- He(r, o, c);
258
+ je(r, o, c);
259
259
  }
260
260
  return r;
261
261
  };
@@ -302,17 +302,17 @@ function Ot(e) {
302
302
  for (const t of e)
303
303
  switch (t.trigger) {
304
304
  case "pageLoad":
305
- Je(t);
305
+ Ye(t);
306
306
  break;
307
307
  case "scrollInView":
308
308
  Ut(t);
309
309
  break;
310
310
  }
311
311
  }
312
- function ze(e) {
312
+ function Ge(e) {
313
313
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
314
314
  }
315
- function Ke(e, t) {
315
+ function Qe(e, t) {
316
316
  const n = _t(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
317
317
  for (const l of o)
318
318
  for (const c of n)
@@ -325,14 +325,14 @@ function _t(e) {
325
325
  t.indexOf(i) === -1 && t.push(i);
326
326
  return t;
327
327
  }
328
- function Je(e) {
328
+ function Ye(e) {
329
329
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
330
330
  if (!t.length) {
331
- ze(e.elementId || e.id || "");
331
+ Ge(e.elementId || e.id || "");
332
332
  return;
333
333
  }
334
334
  Array.from(t).forEach((n) => {
335
- Ke(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
335
+ Qe(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
336
336
  n.style.transition = `all ${e.duration}s ${se(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
337
337
  n.style.transition = "", n.style.transitionDelay = "";
338
338
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
@@ -342,11 +342,11 @@ function Je(e) {
342
342
  function Ut(e) {
343
343
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
344
344
  if (!t.length) {
345
- ze(e.elementId || e.id || "");
345
+ Ge(e.elementId || e.id || "");
346
346
  return;
347
347
  }
348
348
  Array.from(t).forEach((n) => {
349
- Ke(e, n);
349
+ Qe(e, n);
350
350
  let i = !1, a = !1;
351
351
  function r() {
352
352
  !i && l(n) ? (i = !0, a = !0, setTimeout(() => {
@@ -374,10 +374,10 @@ function Ut(e) {
374
374
  }), r();
375
375
  });
376
376
  }
377
- const Ge = (e) => Object.entries(e).map(([n, i]) => {
377
+ const Xe = (e) => Object.entries(e).map(([n, i]) => {
378
378
  if (typeof i == "string")
379
379
  return `${se(n)}: ${i};`;
380
- }).filter(be), Ht = (e) => Ge(e).join(`
380
+ }).filter(be), Ht = (e) => Xe(e).join(`
381
381
  `), Y = ({
382
382
  mediaQuery: e,
383
383
  className: t,
@@ -398,18 +398,18 @@ function Mt({
398
398
  const qt = ({
399
399
  block: e,
400
400
  context: t
401
- }) => Qe(Mt({
401
+ }) => Ze(Mt({
402
402
  style: e.style || {},
403
403
  context: t,
404
404
  block: e
405
405
  }));
406
- function Qe(e) {
406
+ function Ze(e) {
407
407
  switch (F) {
408
408
  case "svelte":
409
409
  case "vue":
410
410
  case "solid":
411
411
  case "angular":
412
- return Ge(e).join(" ");
412
+ return Xe(e).join(" ");
413
413
  case "qwik":
414
414
  case "reactNative":
415
415
  case "react":
@@ -417,7 +417,7 @@ function Qe(e) {
417
417
  return e;
418
418
  }
419
419
  }
420
- const Ye = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, jt = ({
420
+ const et = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, jt = ({
421
421
  block: e,
422
422
  registeredComponents: t,
423
423
  model: n
@@ -427,7 +427,7 @@ const Ye = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
427
427
  if (!i)
428
428
  return null;
429
429
  const a = t[i];
430
- if (!a || Ye(a, n)) {
430
+ if (!a || et(a, n)) {
431
431
  console.warn(`
432
432
  Could not find a registered component named "${i}".
433
433
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
@@ -475,7 +475,7 @@ const Ye = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
475
475
  }, Jt = (e, t, n) => {
476
476
  var i;
477
477
  return (i = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && i.builderComponents ? {
478
- builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !Ye(o, n)))
478
+ builderComponents: Object.fromEntries(Object.entries(t).filter(([r, o]) => !et(o, n)))
479
479
  } : {};
480
480
  }, Gt = (e, t) => {
481
481
  var n;
@@ -487,7 +487,7 @@ const Ye = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
487
487
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
488
488
  builderContext: t
489
489
  } : {};
490
- }, Ee = (e) => e.toString();
490
+ }, Ve = (e) => e.toString();
491
491
  function Yt(e) {
492
492
  return e.charAt(0).toUpperCase() + e.slice(1);
493
493
  }
@@ -501,7 +501,7 @@ const Xt = (e) => `on${Yt(e)}`, Zt = (e, t) => (n) => Q({
501
501
  isExpression: !1,
502
502
  trackingContext: t.trackingContext
503
503
  });
504
- function Xe(e) {
504
+ function tt(e) {
505
505
  var i;
506
506
  const t = {}, n = (i = e.block.actions) != null ? i : {};
507
507
  for (const a in n) {
@@ -530,7 +530,7 @@ function en({
530
530
  const tn = (e) => ({
531
531
  href: e.href
532
532
  });
533
- function Se({
533
+ function Ce({
534
534
  block: e,
535
535
  context: t
536
536
  }) {
@@ -554,14 +554,14 @@ function Se({
554
554
  function nn(e) {
555
555
  var t, n, i;
556
556
  return /* @__PURE__ */ s(
557
- xe,
557
+ ke,
558
558
  {
559
559
  TagName: e.Wrapper,
560
- attributes: Se({
560
+ attributes: Ce({
561
561
  block: e.block,
562
562
  context: e.context
563
563
  }),
564
- actionAttributes: Xe({
564
+ actionAttributes: tt({
565
565
  block: e.block,
566
566
  rootState: e.context.rootState,
567
567
  rootSetState: e.context.rootSetState,
@@ -589,11 +589,11 @@ function rn(e) {
589
589
  function t() {
590
590
  var r, o, l;
591
591
  return e.includeBlockProps ? {
592
- ...Se({
592
+ ...Ce({
593
593
  block: e.block,
594
594
  context: e.context
595
595
  }),
596
- ...Xe({
596
+ ...tt({
597
597
  block: e.block,
598
598
  rootState: e.context.rootState,
599
599
  rootSetState: e.context.rootSetState,
@@ -639,7 +639,7 @@ const on = ({
639
639
  * component itself directly. Otherwise, they are provided to the wrapper element.
640
640
  */
641
641
  ...a ? {
642
- attributes: Se({
642
+ attributes: Ce({
643
643
  block: t,
644
644
  context: o
645
645
  })
@@ -653,7 +653,7 @@ const on = ({
653
653
  includeBlockProps: a
654
654
  } : l;
655
655
  };
656
- function Re(e) {
656
+ function Ae(e) {
657
657
  var a;
658
658
  k(() => !1);
659
659
  const [t, n] = k(
@@ -688,7 +688,7 @@ function Re(e) {
688
688
  }
689
689
  ) }) : null });
690
690
  }
691
- function Pe(e) {
691
+ function Be(e) {
692
692
  const [t, n] = k(() => e.repeatContext);
693
693
  return B(() => {
694
694
  n(e.repeatContext);
@@ -702,7 +702,7 @@ function Pe(e) {
702
702
  }
703
703
  ) });
704
704
  }
705
- const Ze = {
705
+ const nt = {
706
706
  xsmall: {
707
707
  min: 0,
708
708
  default: 160,
@@ -723,8 +723,8 @@ const Ze = {
723
723
  default: 991,
724
724
  max: 1200
725
725
  }
726
- }, ue = (e, t = Ze) => `@media (max-width: ${t[e].max}px)`, et = (e) => {
727
- const t = ve(Ze);
726
+ }, ue = (e, t = nt) => `@media (max-width: ${t[e].max}px)`, it = (e) => {
727
+ const t = Se(nt);
728
728
  if (!e)
729
729
  return t;
730
730
  const {
@@ -772,14 +772,14 @@ function te(e) {
772
772
  }
773
773
  );
774
774
  }
775
- function Ve(e) {
775
+ function Ne(e) {
776
776
  function t() {
777
777
  const i = e.block;
778
778
  return be(i.hide) ? !i.hide : be(i.show) ? i.show : !0;
779
779
  }
780
780
  function n() {
781
781
  var T, E, _, H, q;
782
- const i = e.block, a = i.responsiveStyles, r = e.context.content, o = et(
782
+ const i = e.block, a = i.responsiveStyles, r = e.context.content, o = it(
783
783
  ((T = r == null ? void 0 : r.meta) == null ? void 0 : T.breakpoints) || {}
784
784
  ), l = !!((_ = (E = r == null ? void 0 : r.meta) == null ? void 0 : E.breakpoints) != null && _.xsmall), c = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, b = a == null ? void 0 : a.xsmall, u = i.id;
785
785
  if (!u)
@@ -844,7 +844,7 @@ function ln(e) {
844
844
  k(() => !1);
845
845
  const [t, n] = k(() => !1);
846
846
  return ye(le), B(() => {
847
- }, []), /* @__PURE__ */ s(w, { children: t ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ve, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ve, { block: e.block, context: e.context }) }) });
847
+ }, []), /* @__PURE__ */ s(w, { children: t ? /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ne, { block: e.block, context: e.context }) }) }) : /* @__PURE__ */ s(w, { children: /* @__PURE__ */ s(Ne, { block: e.block, context: e.context }) }) });
848
848
  }
849
849
  function ce(e) {
850
850
  var h, b, u, S;
@@ -937,16 +937,16 @@ function ce(e) {
937
937
  }
938
938
  ),
939
939
  (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(w, { children: (S = t()) == null ? void 0 : S.map((m, g) => /* @__PURE__ */ s(
940
- Pe,
940
+ Be,
941
941
  {
942
942
  repeatContext: m.context,
943
943
  block: m.block,
944
944
  registeredComponents: e.registeredComponents,
945
945
  linkComponent: e.linkComponent
946
946
  },
947
- Ee(g)
947
+ Ve(g)
948
948
  )) }) : /* @__PURE__ */ s(
949
- Re,
949
+ Ae,
950
950
  {
951
951
  componentRef: d().componentRef,
952
952
  componentOptions: d().componentOptions,
@@ -959,14 +959,14 @@ function ce(e) {
959
959
  isInteractive: d().isInteractive
960
960
  }
961
961
  ) : /* @__PURE__ */ s(w, { children: t() ? /* @__PURE__ */ s(w, { children: (u = t()) == null ? void 0 : u.map((m, g) => /* @__PURE__ */ s(
962
- Pe,
962
+ Be,
963
963
  {
964
964
  repeatContext: m.context,
965
965
  block: m.block,
966
966
  registeredComponents: e.registeredComponents,
967
967
  linkComponent: e.linkComponent
968
968
  },
969
- Ee(g)
969
+ Ve(g)
970
970
  )) }) : /* @__PURE__ */ D(
971
971
  nn,
972
972
  {
@@ -975,7 +975,7 @@ function ce(e) {
975
975
  context: e.context,
976
976
  children: [
977
977
  /* @__PURE__ */ s(
978
- Re,
978
+ Ae,
979
979
  {
980
980
  componentRef: d().componentRef,
981
981
  componentOptions: d().componentOptions,
@@ -1073,7 +1073,7 @@ function sn(e) {
1073
1073
  }
1074
1074
  function M(e) {
1075
1075
  var i, a, r;
1076
- const t = ye(le), n = ye(Me);
1076
+ const t = ye(le), n = ye(ze);
1077
1077
  return /* @__PURE__ */ D(
1078
1078
  sn,
1079
1079
  {
@@ -1177,7 +1177,7 @@ function un(e) {
1177
1177
  }
1178
1178
  function u(f) {
1179
1179
  var T, E;
1180
- return et(
1180
+ return it(
1181
1181
  ((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
1182
1182
  )[f].max;
1183
1183
  }
@@ -1215,7 +1215,7 @@ function un(e) {
1215
1215
  href: f.link
1216
1216
  } : {},
1217
1217
  [K()]: "builder-column",
1218
- style: Qe(b(v))
1218
+ style: Ze(b(v))
1219
1219
  };
1220
1220
  }
1221
1221
  return /* @__PURE__ */ D(w, { children: [
@@ -1239,7 +1239,7 @@ function un(e) {
1239
1239
  }
1240
1240
  ),
1241
1241
  (p = e.columns) == null ? void 0 : p.map((f, v) => /* @__PURE__ */ s(
1242
- xe,
1242
+ ke,
1243
1243
  {
1244
1244
  TagName: a(f),
1245
1245
  actionAttributes: {},
@@ -1269,7 +1269,7 @@ function un(e) {
1269
1269
  function dn(e) {
1270
1270
  return /* @__PURE__ */ s("span", { children: e.children });
1271
1271
  }
1272
- function Ae(e) {
1272
+ function $e(e) {
1273
1273
  return e.replace(/http(s)?:/, "");
1274
1274
  }
1275
1275
  function mn(e = "", t, n) {
@@ -1280,11 +1280,11 @@ function fn(e, t) {
1280
1280
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1281
1281
  return e;
1282
1282
  if (t === "master")
1283
- return Ae(e);
1283
+ return $e(e);
1284
1284
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1285
1285
  if (n) {
1286
1286
  const i = e.split(n[0]), a = n[3], r = t.match("x") ? t : `${t}x`;
1287
- return Ae(`${i[0]}_${r}${a}`);
1287
+ return $e(`${i[0]}_${r}${a}`);
1288
1288
  }
1289
1289
  return null;
1290
1290
  }
@@ -1626,7 +1626,7 @@ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
1626
1626
  visibilityStylesEl.innerHTML = newStyleStr;
1627
1627
  }
1628
1628
  }
1629
- }`, ne = "default", xn = "filterWithCustomTargeting", tt = "builderIoPersonalization", nt = "updateVisibilityStylesScript", it = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
1629
+ }`, ne = "default", xn = "filterWithCustomTargeting", at = "builderIoPersonalization", rt = "updateVisibilityStylesScript", ot = ["react", "vue", "svelte", "qwik"], ie = ["vue", "svelte", "qwik"];
1630
1630
  function Sn(e, t) {
1631
1631
  return !(e && e.length > 0) || !t ? !1 : ie.includes(F) ? !0 : !G();
1632
1632
  }
@@ -1671,9 +1671,9 @@ function kn({
1671
1671
  }
1672
1672
  const Cn = () => `
1673
1673
  window.${xn} = ${pn}
1674
- window.${tt} = ${yn}
1675
- window.${nt} = ${vn}
1676
- `, at = F === "react", Tn = (e, t, n) => `window.${tt}(${JSON.stringify(e)}, "${t}", ${at}${n ? `, "${n}"` : ""})`, In = (e, t, n) => `window.${nt}(${JSON.stringify(e)}, "${t}", ${at}${n ? `, "${n}"` : ""})`, me = {
1674
+ window.${at} = ${yn}
1675
+ window.${rt} = ${vn}
1676
+ `, lt = F === "react", Tn = (e, t, n) => `window.${at}(${JSON.stringify(e)}, "${t}", ${lt}${n ? `, "${n}"` : ""})`, In = (e, t, n) => `window.${rt}(${JSON.stringify(e)}, "${t}", ${lt}${n ? `, "${n}"` : ""})`, me = {
1677
1677
  "@type": "@builder.io/sdk:Element",
1678
1678
  layerName: "Accordion item title",
1679
1679
  responsiveStyles: {
@@ -1797,7 +1797,7 @@ const Cn = () => `
1797
1797
  builderComponents: !0,
1798
1798
  builderLinkComponent: !0
1799
1799
  }
1800
- }, Be = (e) => e.toString();
1800
+ }, We = (e) => e.toString();
1801
1801
  function En(e) {
1802
1802
  var b;
1803
1803
  const [t, n] = k(() => []);
@@ -1885,7 +1885,7 @@ function En(e) {
1885
1885
  ...r(),
1886
1886
  ...e.grid && {
1887
1887
  width: e.gridRowWidth,
1888
- order: c() !== null ? Be(S) : Be(S + 1)
1888
+ order: c() !== null ? We(S) : We(S + 1)
1889
1889
  }
1890
1890
  },
1891
1891
  "data-index": S,
@@ -2172,7 +2172,7 @@ const Rn = {
2172
2172
  hidden: !0,
2173
2173
  canHaveChildren: !0,
2174
2174
  noWrap: !0
2175
- }, ke = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], An = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Bn = {
2175
+ }, Te = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], An = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Bn = {
2176
2176
  name: "Image",
2177
2177
  static: !0,
2178
2178
  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",
@@ -2187,7 +2187,7 @@ const Rn = {
2187
2187
  name: "image",
2188
2188
  type: "file",
2189
2189
  bubble: !0,
2190
- allowedFileTypes: ke,
2190
+ allowedFileTypes: Te,
2191
2191
  required: !0,
2192
2192
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2193
2193
  onChange: (e) => {
@@ -2334,7 +2334,7 @@ function J(e) {
2334
2334
  function $n(e) {
2335
2335
  var v, T, E, _, H, q, y, x, V, A, $, R, P;
2336
2336
  const t = z(null), [n, i] = k(
2337
- () => Te.getUserAttributes()
2337
+ () => Ee.getUserAttributes()
2338
2338
  ), [a, r] = k(
2339
2339
  () => {
2340
2340
  var I, N, C;
@@ -2405,7 +2405,7 @@ function $n(e) {
2405
2405
  return B(() => {
2406
2406
  var N;
2407
2407
  S(!0);
2408
- const I = Te.subscribeOnUserAttributesChange(
2408
+ const I = Ee.subscribeOnUserAttributesChange(
2409
2409
  (C) => {
2410
2410
  i(C);
2411
2411
  },
@@ -2475,7 +2475,7 @@ function $n(e) {
2475
2475
  }
2476
2476
  ),
2477
2477
  (x = e.variants) == null ? void 0 : x.map((I, N) => {
2478
- var C, W, L, O, j, Ce;
2478
+ var C, W, L, O, j, we;
2479
2479
  return /* @__PURE__ */ s(
2480
2480
  M,
2481
2481
  {
@@ -2499,7 +2499,7 @@ function $n(e) {
2499
2499
  }
2500
2500
  )
2501
2501
  },
2502
- `${(Ce = e.builderBlock) == null ? void 0 : Ce.id}-${N}`
2502
+ `${(we = e.builderBlock) == null ? void 0 : we.id}-${N}`
2503
2503
  );
2504
2504
  })
2505
2505
  ] }) : null,
@@ -3302,7 +3302,7 @@ function Xn(e) {
3302
3302
  else {
3303
3303
  const y = {};
3304
3304
  Array.from(T).forEach(({ value: x, key: V }) => {
3305
- He(y, V, x);
3305
+ je(y, V, x);
3306
3306
  }), f = JSON.stringify(y);
3307
3307
  }
3308
3308
  E && E !== "multipart/form-data" && (S && ((m = e.action) != null && m.includes("zapier.com")) || (p["content-type"] = E));
@@ -3317,7 +3317,7 @@ function Xn(e) {
3317
3317
  const H = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3318
3318
  e.sendSubmissionsToEmail || ""
3319
3319
  )}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
3320
- Le(q), fetch(q, { body: f, headers: p, method: e.method || "post" }).then(
3320
+ Ue(q), fetch(q, { body: f, headers: p, method: e.method || "post" }).then(
3321
3321
  async (y) => {
3322
3322
  var A, $;
3323
3323
  let x;
@@ -3329,7 +3329,7 @@ function Xn(e) {
3329
3329
  if ((A = t.current) != null && A.nativeElement && (($ = t.current) == null || $.nativeElement.dispatchEvent(R), R.defaultPrevented))
3330
3330
  return;
3331
3331
  r(x), i("error");
3332
- let P = e.errorMessagePath ? qe(x, e.errorMessagePath) : x.message || x.error || x;
3332
+ let P = e.errorMessagePath ? Ke(x, e.errorMessagePath) : x.message || x.error || x;
3333
3333
  typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
3334
3334
  return;
3335
3335
  }
@@ -3461,7 +3461,7 @@ const Zn = {
3461
3461
  }
3462
3462
  };
3463
3463
  function ei(e) {
3464
- return /* @__PURE__ */ Ue(
3464
+ return /* @__PURE__ */ qe(
3465
3465
  "input",
3466
3466
  {
3467
3467
  ...e.attributes,
@@ -3520,7 +3520,7 @@ const ti = {
3520
3520
  };
3521
3521
  function ni(e) {
3522
3522
  var t;
3523
- return /* @__PURE__ */ Ue(
3523
+ return /* @__PURE__ */ qe(
3524
3524
  "select",
3525
3525
  {
3526
3526
  ...e.attributes,
@@ -3620,7 +3620,7 @@ const li = {
3620
3620
  name: "image",
3621
3621
  bubble: !0,
3622
3622
  type: "file",
3623
- allowedFileTypes: ke,
3623
+ allowedFileTypes: Te,
3624
3624
  required: !0
3625
3625
  }, {
3626
3626
  name: "backgroundSize",
@@ -3702,7 +3702,7 @@ const ci = {
3702
3702
  }, {
3703
3703
  name: "posterImage",
3704
3704
  type: "file",
3705
- allowedFileTypes: ke,
3705
+ allowedFileTypes: Te,
3706
3706
  helperText: "Image to show before the video plays"
3707
3707
  }, {
3708
3708
  name: "autoPlay",
@@ -3932,7 +3932,7 @@ const di = () => [{
3932
3932
  }, {
3933
3933
  component: ui,
3934
3934
  ...ci
3935
- }], Ne = () => [{
3935
+ }], De = () => [{
3936
3936
  component: kt,
3937
3937
  ...Rn
3938
3938
  }, {
@@ -3956,7 +3956,7 @@ const di = () => [{
3956
3956
  }, {
3957
3957
  component: Hn,
3958
3958
  ...Un
3959
- }, ...it.includes(F) ? [{
3959
+ }, ...ot.includes(F) ? [{
3960
3960
  component: $n,
3961
3961
  ...Nn
3962
3962
  }] : [], {
@@ -4058,26 +4058,34 @@ const di = () => [{
4058
4058
  thisScriptEl?.remove();
4059
4059
  }
4060
4060
  return;
4061
- }`, rt = "builderIoAbTest", ot = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4061
+ }`, ve = "builderIoAbTest", xe = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
4062
4062
  ...t,
4063
4063
  testVariationId: t.id,
4064
4064
  id: e == null ? void 0 : e.id
4065
4065
  })), hi = ({
4066
4066
  canTrack: e,
4067
4067
  content: t
4068
- }) => !(!(ae(t).length > 0) || !e || G()), gi = (e) => e === "react" || e === "reactNative", bi = F === "angular", lt = gi(F), yi = () => `
4069
- window.${rt} = ${mi}
4070
- window.${ot} = ${fi}
4068
+ }) => !(!(ae(t).length > 0) || !e || G()), gi = (e) => e === "react" || e === "reactNative", bi = F === "angular", Ie = gi(F), yi = () => `
4069
+ (function() {
4070
+ if (!window.${ve}) {
4071
+ window.${ve} = ${mi};
4072
+ }
4073
+ if (!window.${xe}) {
4074
+ window.${xe} = ${fi};
4075
+ }${Ie ? `
4076
+ var thisScriptEl = document.currentScript;
4077
+ if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
4078
+ })();
4071
4079
  `, pi = (e, t) => `
4072
- window.${rt}(
4073
- "${t}",${JSON.stringify(e)}, ${lt}, ${bi}
4080
+ window.${ve}(
4081
+ "${t}",${JSON.stringify(e)}, ${Ie}, ${bi}
4074
4082
  )`, vi = ({
4075
4083
  contentId: e,
4076
4084
  variationId: t
4077
- }) => `window.${ot}(
4078
- "${t}", "${e}", ${lt}
4085
+ }) => `window.${xe}(
4086
+ "${t}", "${e}", ${Ie}
4079
4087
  )`;
4080
- function $e(e) {
4088
+ function Fe(e) {
4081
4089
  return Math.round(e * 1e3) / 1e3;
4082
4090
  }
4083
4091
  const xi = (e, t, n = !0) => {
@@ -4094,11 +4102,11 @@ const xi = (e, t, n = !0) => {
4094
4102
  }, Si = (e) => xi(e, (t) => {
4095
4103
  const n = t.getAttribute("builder-id") || t.id;
4096
4104
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
4097
- }), We = ({
4105
+ }), Le = ({
4098
4106
  event: e,
4099
4107
  target: t
4100
4108
  }) => {
4101
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = $e(i / n.width), o = $e(a / n.height);
4109
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = Fe(i / n.width), o = Fe(a / n.height);
4102
4110
  return {
4103
4111
  x: r,
4104
4112
  y: o
@@ -4108,18 +4116,18 @@ const xi = (e, t, n = !0) => {
4108
4116
  return {
4109
4117
  targetBuilderElement: i || void 0,
4110
4118
  metadata: {
4111
- targetOffset: t ? We({
4119
+ targetOffset: t ? Le({
4112
4120
  event: e,
4113
4121
  target: t
4114
4122
  }) : void 0,
4115
- builderTargetOffset: n ? We({
4123
+ builderTargetOffset: n ? Le({
4116
4124
  event: e,
4117
4125
  target: n
4118
4126
  }) : void 0,
4119
4127
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
4120
4128
  }
4121
4129
  };
4122
- }, Ci = ["svelte", "qwik", "vue"], De = () => Ci.includes(F) && (U() || oe()), Ti = (e) => {
4130
+ }, Ci = ["svelte", "qwik", "vue"], Oe = () => Ci.includes(F) && (U() || oe()), Ti = (e) => {
4123
4131
  var r, o;
4124
4132
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
4125
4133
  let a = "";
@@ -4236,7 +4244,7 @@ function Vi(e) {
4236
4244
  });
4237
4245
  },
4238
4246
  animation: (V) => {
4239
- Je(V);
4247
+ Ye(V);
4240
4248
  },
4241
4249
  contentUpdate: (V, A) => {
4242
4250
  l(V);
@@ -4252,7 +4260,7 @@ function Vi(e) {
4252
4260
  var V, A;
4253
4261
  if (e.builderContextSignal.content) {
4254
4262
  const $ = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId, R = (A = e.builderContextSignal.content) == null ? void 0 : A.id;
4255
- Ie({
4263
+ Re({
4256
4264
  apiHost: e.apiHost,
4257
4265
  type: "click",
4258
4266
  canTrack: Z(e.canTrack),
@@ -4297,7 +4305,7 @@ function Vi(e) {
4297
4305
  url: C,
4298
4306
  method: "GET"
4299
4307
  };
4300
- Le(JSON.stringify(W));
4308
+ Ue(JSON.stringify(W));
4301
4309
  const L = {
4302
4310
  method: W.method,
4303
4311
  headers: W.headers,
@@ -4325,7 +4333,7 @@ function Vi(e) {
4325
4333
  "builder:component:stateChange",
4326
4334
  {
4327
4335
  detail: {
4328
- state: ve(e.builderContextSignal.rootState),
4336
+ state: Se(e.builderContextSignal.rootState),
4329
4337
  ref: {
4330
4338
  name: e.model
4331
4339
  }
@@ -4368,7 +4376,7 @@ function Vi(e) {
4368
4376
  }), N = (A = e.builderContextSignal.content) == null ? void 0 : A.testVariationId;
4369
4377
  if (P && N === I) {
4370
4378
  const C = ($ = e.builderContextSignal.content) == null ? void 0 : $.id, W = e.apiKey;
4371
- Ie({
4379
+ Re({
4372
4380
  apiHost: e.apiHost,
4373
4381
  type: "impression",
4374
4382
  canTrack: !0,
@@ -4381,7 +4389,7 @@ function Vi(e) {
4381
4389
  const C = new URL(location.href).searchParams, W = C.get("builder.preview"), L = C.get(
4382
4390
  `builder.overrides.${W}`
4383
4391
  ), O = C.get("apiKey") || C.get("builder.space");
4384
- (W === "BUILDER_STUDIO" || W === e.model && O === e.apiKey && (!e.content || L === e.content.id)) && Oe({
4392
+ (W === "BUILDER_STUDIO" || W === e.model && O === e.apiKey && (!e.content || L === e.content.id)) && He({
4385
4393
  model: e.model,
4386
4394
  apiKey: e.apiKey,
4387
4395
  apiVersion: e.builderContextSignal.apiVersion,
@@ -4418,7 +4426,7 @@ function Vi(e) {
4418
4426
  "builder:component:stateChangeListenerActivated",
4419
4427
  E
4420
4428
  ));
4421
- }, []), /* @__PURE__ */ s(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || De() ? /* @__PURE__ */ s(
4429
+ }, []), /* @__PURE__ */ s(le.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Oe() ? /* @__PURE__ */ s(
4422
4430
  d,
4423
4431
  {
4424
4432
  ref: t,
@@ -4429,7 +4437,7 @@ function Vi(e) {
4429
4437
  ((q = e.content) == null ? void 0 : q.testVariationId) || ((y = e.content) == null ? void 0 : y.id)
4430
4438
  ),
4431
4439
  style: {
4432
- display: !e.builderContextSignal.content && De() ? "none" : void 0
4440
+ display: !e.builderContextSignal.content && Oe() ? "none" : void 0
4433
4441
  },
4434
4442
  ...c(),
4435
4443
  ...e.contentWrapperProps,
@@ -4487,7 +4495,7 @@ const Bi = ({
4487
4495
  },
4488
4496
  meta: e == null ? void 0 : e.meta
4489
4497
  } : void 0;
4490
- function Fe(e) {
4498
+ function _e(e) {
4491
4499
  var d, h, b, u, S, m, g, p, f;
4492
4500
  const [t, n] = k(
4493
4501
  () => {
@@ -4508,14 +4516,14 @@ function Fe(e) {
4508
4516
  }
4509
4517
  const [a, r] = k(
4510
4518
  () => [
4511
- ...Ne(),
4519
+ ...De(),
4512
4520
  ...e.customComponents || []
4513
4521
  ].reduce(
4514
4522
  (v, { component: T, ...E }) => ({
4515
4523
  ...v,
4516
4524
  [E.name]: {
4517
4525
  component: T,
4518
- ...we(E)
4526
+ ...Pe(E)
4519
4527
  }
4520
4528
  }),
4521
4529
  {}
@@ -4537,12 +4545,12 @@ function Fe(e) {
4537
4545
  apiKey: e.apiKey,
4538
4546
  apiVersion: e.apiVersion,
4539
4547
  componentInfos: [
4540
- ...Ne(),
4548
+ ...De(),
4541
4549
  ...e.customComponents || []
4542
4550
  ].reduce(
4543
4551
  (v, { component: T, ...E }) => ({
4544
4552
  ...v,
4545
- [E.name]: we(E)
4553
+ [E.name]: Pe(E)
4546
4554
  }),
4547
4555
  {}
4548
4556
  ),
@@ -4570,7 +4578,7 @@ function Fe(e) {
4570
4578
  }
4571
4579
  return B(() => {
4572
4580
  }, [e.content, e.data, e.locale]), /* @__PURE__ */ s(
4573
- Me.Provider,
4581
+ ze.Provider,
4574
4582
  {
4575
4583
  value: {
4576
4584
  registeredComponents: a
@@ -4662,7 +4670,15 @@ function $i(e) {
4662
4670
  }
4663
4671
  return B(() => {
4664
4672
  }, []), /* @__PURE__ */ D(w, { children: [
4665
- !e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ D(w, { children: [
4673
+ !e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ s(w, { children: ot.includes(F) ? /* @__PURE__ */ s(
4674
+ J,
4675
+ {
4676
+ id: "builderio-init-personalization-variants-fns",
4677
+ nonce: e.nonce || "",
4678
+ scriptStr: Cn()
4679
+ }
4680
+ ) : null }) : null,
4681
+ t ? /* @__PURE__ */ D(w, { children: [
4666
4682
  /* @__PURE__ */ s(
4667
4683
  J,
4668
4684
  {
@@ -4671,16 +4687,6 @@ function $i(e) {
4671
4687
  nonce: e.nonce || ""
4672
4688
  }
4673
4689
  ),
4674
- it.includes(F) ? /* @__PURE__ */ s(
4675
- J,
4676
- {
4677
- id: "builderio-init-personalization-variants-fns",
4678
- nonce: e.nonce || "",
4679
- scriptStr: Cn()
4680
- }
4681
- ) : null
4682
- ] }) : null,
4683
- t ? /* @__PURE__ */ D(w, { children: [
4684
4690
  /* @__PURE__ */ s(
4685
4691
  te,
4686
4692
  {
@@ -4698,7 +4704,7 @@ function $i(e) {
4698
4704
  }
4699
4705
  ),
4700
4706
  (o = ae(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
4701
- Fe,
4707
+ _e,
4702
4708
  {
4703
4709
  apiHost: e.apiHost,
4704
4710
  isNestedRender: e.isNestedRender,
@@ -4726,7 +4732,7 @@ function $i(e) {
4726
4732
  ))
4727
4733
  ] }) : null,
4728
4734
  /* @__PURE__ */ s(
4729
- Fe,
4735
+ _e,
4730
4736
  {
4731
4737
  apiHost: e.apiHost,
4732
4738
  nonce: e.nonce,
@@ -4759,7 +4765,7 @@ const Wi = async ({
4759
4765
  }) => {
4760
4766
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4761
4767
  (e != null && e.apiKey))
4762
- return Oe({
4768
+ return He({
4763
4769
  model: t.model,
4764
4770
  apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
4765
4771
  apiVersion: e.apiVersion,