@builder.io/sdk-react 4.2.0 → 4.2.2

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 (78) hide show
  1. package/lib/browser/blocks-exports.cjs +17 -17
  2. package/lib/browser/blocks-exports.mjs +759 -740
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +6 -5
  5. package/lib/browser/server-entry-06504dba.cjs +2 -0
  6. package/lib/browser/{server-entry-065ec411.js → server-entry-074665de.js} +24 -13
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +7 -6
  9. package/lib/edge/{accordion-c239771d.cjs → accordion-0768e15a.cjs} +1 -1
  10. package/lib/edge/{accordion-79f6d62c.js → accordion-d3831f48.js} +1 -1
  11. package/lib/edge/{blocks-3cb3a9cd.js → blocks-0269007e.js} +105 -106
  12. package/lib/edge/{blocks-56f79850.cjs → blocks-2af1d7c9.cjs} +10 -10
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-759b43fb.cjs → button-050f4fef.cjs} +1 -1
  16. package/lib/edge/{button-6dee05c9.js → button-a478ff1a.js} +2 -2
  17. package/lib/edge/{columns-2743498a.js → columns-0b3181f1.js} +3 -3
  18. package/lib/edge/{columns-a29ec0ac.cjs → columns-25375990.cjs} +1 -1
  19. package/lib/edge/{content-variants-4d5a1e3c.js → content-variants-0dd65b50.js} +426 -415
  20. package/lib/edge/content-variants-4cab7215.cjs +302 -0
  21. package/lib/edge/{custom-code-6129bd8c.cjs → custom-code-eb5aedd2.cjs} +1 -1
  22. package/lib/edge/{custom-code-8034fac0.js → custom-code-f7a0f1c1.js} +1 -1
  23. package/lib/edge/{embed-b2ea5150.cjs → embed-69114c35.cjs} +1 -1
  24. package/lib/edge/{embed-f5b10eeb.js → embed-e4979560.js} +1 -1
  25. package/lib/edge/{form-14942d4f.js → form-30fba682.js} +27 -22
  26. package/lib/edge/form-7b4bd399.cjs +1 -0
  27. package/lib/edge/{get-class-prop-name-f6a63f4a.js → get-class-prop-name-770bdff2.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-7e739c9f.cjs → get-class-prop-name-f470d5ce.cjs} +1 -1
  29. package/lib/edge/{img-ba2ef9ee.js → img-3bb375bf.js} +1 -1
  30. package/lib/edge/{img-f33a2e42.cjs → img-ddf74e12.cjs} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +4 -3
  33. package/lib/edge/{input-c2f95825.cjs → input-a6caf021.cjs} +1 -1
  34. package/lib/edge/{input-7089e95f.js → input-e4a9fe0b.js} +1 -1
  35. package/lib/edge/{personalization-container-eb1ecef2.js → personalization-container-64f3cd71.js} +4 -4
  36. package/lib/edge/{personalization-container-794b3939.cjs → personalization-container-f7030f08.cjs} +1 -1
  37. package/lib/edge/{select-af0bb9fe.cjs → select-c217566c.cjs} +1 -1
  38. package/lib/edge/{select-8f01592a.js → select-c59c9ac6.js} +1 -1
  39. package/lib/edge/server-entry-67200cf1.cjs +2 -0
  40. package/lib/edge/{server-entry-7c65c9a8.js → server-entry-fb5f2b80.js} +22 -11
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +7 -6
  43. package/lib/edge/{slot-2638fd6d.js → slot-26ec2911.js} +3 -3
  44. package/lib/edge/{slot-db37860e.cjs → slot-ccd946e2.cjs} +1 -1
  45. package/lib/edge/{symbol-7faca118.js → symbol-10cb2f77.js} +26 -23
  46. package/lib/edge/symbol-4548e942.cjs +1 -0
  47. package/lib/edge/tabs-82a9170c.cjs +1 -0
  48. package/lib/edge/{tabs-2eee6422.js → tabs-f9110171.js} +24 -23
  49. package/lib/node/blocks-exports.cjs +20 -20
  50. package/lib/node/blocks-exports.mjs +919 -900
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +6 -5
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +3 -3
  55. package/lib/node/{server-entry-581dd491.js → server-entry-83d3751d.js} +24 -13
  56. package/lib/node/server-entry-d40e4b66.cjs +2 -0
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +7 -6
  59. package/lib/node/{setIvm-2eb44b9d.cjs → setIvm-0a5b2ba2.cjs} +1 -1
  60. package/lib/node/{setIvm-8d02dc72.js → setIvm-596668c3.js} +1 -1
  61. package/lib/node/setIvm.cjs +1 -1
  62. package/lib/node/setIvm.mjs +2 -2
  63. package/lib/node/{should-force-browser-runtime-in-node-f461467e.js → should-force-browser-runtime-in-node-180c3315.js} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-ed3fa1f9.cjs → should-force-browser-runtime-in-node-5b9e373d.cjs} +1 -1
  65. package/package.json +1 -1
  66. package/types/blocks/symbol/symbol.types.d.ts +1 -2
  67. package/types/components/awaiter.d.ts +1 -11
  68. package/types/components/awaiter.types.d.ts +7 -0
  69. package/types/constants/sdk-version.d.ts +1 -1
  70. package/types/functions/register.d.ts +18 -0
  71. package/types/server-index.d.ts +1 -1
  72. package/lib/browser/server-entry-09953757.cjs +0 -2
  73. package/lib/edge/content-variants-bdf1748b.cjs +0 -302
  74. package/lib/edge/form-26c3a03e.cjs +0 -1
  75. package/lib/edge/server-entry-142a50e9.cjs +0 -2
  76. package/lib/edge/symbol-630b9a57.cjs +0 -1
  77. package/lib/edge/tabs-502123df.cjs +0 -1
  78. package/lib/node/server-entry-375d06e8.cjs +0 -2
@@ -1,66 +1,66 @@
1
- import { jsx as T, jsxs as B, Fragment as j } from "react/jsx-runtime";
2
- import { lazy as C, useRef as Q, useState as R, useEffect as W } from "react";
3
- import { TARGET as F, isBrowser as U, isEditing as N, isPreviewing as oe, setupBrowserForEditing as ge, createRegisterComponentMessage as he, getDefaultCanTrack as O, getCookieSync as be, _track as X, fetchOneEntry as ye, createEditorListener as ve, logFetch as xe, serializeIncludingFunctions as Z, logger as Se, handleABTestingSync as Te } from "./server-entry-7c65c9a8.js";
4
- import { Video as Ie, Button as ke, Columns as Ce, Fragment as we, Image as Ve, Section as Ee, Symbol as Re, Text as Ae, BuilderContext as De } from "./blocks-exports.mjs";
5
- import { triggerAnimation as Fe, evaluate as re, fastClone as Pe, InlinedStyles as se, ComponentsContext as We, Blocks as Ne } from "./blocks-3cb3a9cd.js";
6
- function Gt(e, t, n, o) {
7
- function r(f) {
8
- return typeof f == "string";
1
+ import { jsx as S, jsxs as H, Fragment as M } from "react/jsx-runtime";
2
+ import { lazy as C, useRef as Y, useState as k, useEffect as N } from "react";
3
+ import { TARGET as F, isBrowser as L, isEditing as $, isPreviewing as ue, setupBrowserForEditing as ve, createRegisterComponentMessage as xe, getDefaultCanTrack as j, getCookieSync as Se, _track as ne, fetchOneEntry as Te, createEditorListener as Ie, logFetch as ke, serializeIncludingFunctions as ae, logger as Ce, handleABTestingSync as we } from "./server-entry-fb5f2b80.js";
4
+ import { Video as Ve, Button as Ee, Columns as Re, Fragment as Ae, Image as De, Section as Pe, Symbol as Fe, Text as We, BuilderContext as Ne } from "./blocks-exports.mjs";
5
+ import { triggerAnimation as $e, evaluate as de, fastClone as _e, InlinedStyles as ce, ComponentsContext as Le, Blocks as Ue } from "./blocks-0269007e.js";
6
+ function tn(e, t, n, o) {
7
+ function r(m) {
8
+ return typeof m == "string";
9
9
  }
10
- function s(f) {
11
- return typeof f == "number";
10
+ function l(m) {
11
+ return typeof m == "number";
12
12
  }
13
- function i(f, m) {
13
+ function a(m, g) {
14
14
  return (() => {
15
- const I = m.property, E = m.operator;
16
- let d = m.value;
17
- if (m && m.property === "urlPath" && m.value && typeof m.value == "string" && m.value !== "/" && m.value.endsWith("/") && (d = m.value.slice(0, -1)), !(I && E))
15
+ const T = g.property, A = g.operator;
16
+ let s = g.value;
17
+ if (g && g.property === "urlPath" && g.value && typeof g.value == "string" && g.value !== "/" && g.value.endsWith("/") && (s = g.value.slice(0, -1)), !(T && A))
18
18
  return !0;
19
- if (Array.isArray(d))
20
- return E === "isNot" ? d.every((w) => i(f, {
21
- property: I,
22
- operator: E,
23
- value: w
24
- })) : !!d.find((w) => i(f, {
25
- property: I,
26
- operator: E,
27
- value: w
19
+ if (Array.isArray(s))
20
+ return A === "isNot" ? s.every((D) => a(m, {
21
+ property: T,
22
+ operator: A,
23
+ value: D
24
+ })) : !!s.find((D) => a(m, {
25
+ property: T,
26
+ operator: A,
27
+ value: D
28
28
  }));
29
- const u = f[I];
30
- if (Array.isArray(u))
31
- return u.includes(d);
32
- switch (E) {
29
+ const d = m[T];
30
+ if (Array.isArray(d))
31
+ return d.includes(s);
32
+ switch (A) {
33
33
  case "is":
34
- return u === d;
34
+ return d === s;
35
35
  case "isNot":
36
- return u !== d;
36
+ return d !== s;
37
37
  case "contains":
38
- return (r(u) || Array.isArray(u)) && u.includes(String(d));
38
+ return (r(d) || Array.isArray(d)) && d.includes(String(s));
39
39
  case "startsWith":
40
- return r(u) && u.startsWith(String(d));
40
+ return r(d) && d.startsWith(String(s));
41
41
  case "endsWith":
42
- return r(u) && u.endsWith(String(d));
42
+ return r(d) && d.endsWith(String(s));
43
43
  case "greaterThan":
44
- return s(u) && s(d) && u > d;
44
+ return l(d) && l(s) && d > s;
45
45
  case "lessThan":
46
- return s(u) && s(d) && u < d;
46
+ return l(d) && l(s) && d < s;
47
47
  case "greaterThanOrEqualTo":
48
- return s(u) && s(d) && u >= d;
48
+ return l(d) && l(s) && d >= s;
49
49
  case "lessThanOrEqualTo":
50
- return s(u) && s(d) && u <= d;
50
+ return l(d) && l(s) && d <= s;
51
51
  default:
52
52
  return !1;
53
53
  }
54
54
  })();
55
55
  }
56
- const a = {
56
+ const i = {
57
57
  query: t,
58
58
  startDate: n,
59
59
  endDate: o
60
- }, l = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
61
- return a.startDate && new Date(a.startDate) > l || a.endDate && new Date(a.endDate) < l ? !1 : !a.query || !a.query.length ? !0 : a.query.every((f) => i(e, f));
60
+ }, u = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
61
+ return i.startDate && new Date(i.startDate) > u || i.endDate && new Date(i.endDate) < u ? !1 : !i.query || !i.query.length ? !0 : i.query.every((m) => a(e, m));
62
62
  }
63
- const $e = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
63
+ const Be = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
64
64
  if (!navigator.cookieEnabled) {
65
65
  return;
66
66
  }
@@ -105,7 +105,7 @@ const $e = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
105
105
  thisScript.remove();
106
106
  }
107
107
  }
108
- }`, _e = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
108
+ }`, He = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
109
109
  function isString(val) {
110
110
  return typeof val === 'string';
111
111
  }
@@ -183,7 +183,7 @@ const $e = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
183
183
  return item.query.every(filter => {
184
184
  return objectMatchesQuery(userAttributes, filter);
185
185
  });
186
- }`, Le = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
186
+ }`, Oe = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
187
187
  function getCookie(name) {
188
188
  const nameEQ = name + '=';
189
189
  const ca = document.cookie.split(';');
@@ -221,54 +221,54 @@ const $e = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
221
221
  visibilityStylesEl.innerHTML = newStyleStr;
222
222
  }
223
223
  }
224
- }`, Ue = "default", Be = "filterWithCustomTargeting", le = "builderIoPersonalization", ue = "updateVisibilityStylesScript", de = ["react", "vue", "svelte", "qwik"], He = ["vue", "svelte", "qwik"];
225
- function Xt(e, t) {
226
- return !(e && e.length > 0) || !t ? !1 : He.includes(F) ? !0 : !U();
224
+ }`, qe = "default", je = "filterWithCustomTargeting", me = "builderIoPersonalization", pe = "updateVisibilityStylesScript", fe = ["react", "vue", "svelte", "qwik"], Me = ["vue", "svelte", "qwik"];
225
+ function nn(e, t) {
226
+ return !(e && e.length > 0) || !t ? !1 : Me.includes(F) ? !0 : !L();
227
227
  }
228
- function Zt({
228
+ function an({
229
229
  variants: e,
230
230
  previewingIndex: t,
231
231
  isHydrated: n,
232
232
  filteredVariants: o,
233
233
  fallbackBlocks: r
234
234
  }) {
235
- var i;
236
- const s = {
235
+ var a;
236
+ const l = {
237
237
  blocks: r != null ? r : [],
238
238
  path: "this.children",
239
- index: Ue
239
+ index: qe
240
240
  };
241
- if (n && N()) {
242
- if (typeof t == "number" && t < ((i = e == null ? void 0 : e.length) != null ? i : 0)) {
243
- const a = e == null ? void 0 : e[t];
244
- if (a)
241
+ if (n && $()) {
242
+ if (typeof t == "number" && t < ((a = e == null ? void 0 : e.length) != null ? a : 0)) {
243
+ const i = e == null ? void 0 : e[t];
244
+ if (i)
245
245
  return {
246
- blocks: a.blocks,
246
+ blocks: i.blocks,
247
247
  path: `variants.${t}.blocks`,
248
248
  index: t
249
249
  };
250
250
  }
251
- return s;
251
+ return l;
252
252
  }
253
- if (U()) {
254
- const a = o == null ? void 0 : o[0];
255
- if (a && e) {
256
- const l = e.indexOf(a);
257
- if (l !== -1)
253
+ if (L()) {
254
+ const i = o == null ? void 0 : o[0];
255
+ if (i && e) {
256
+ const u = e.indexOf(i);
257
+ if (u !== -1)
258
258
  return {
259
- blocks: a.blocks,
260
- path: `variants.${l}.blocks`,
261
- index: l
259
+ blocks: i.blocks,
260
+ path: `variants.${u}.blocks`,
261
+ index: u
262
262
  };
263
263
  }
264
264
  }
265
- return s;
265
+ return l;
266
266
  }
267
- const qe = () => `
268
- window.${Be} = ${_e}
269
- window.${le} = ${$e}
270
- window.${ue} = ${Le}
271
- `, ce = F === "react", en = (e, t, n) => `window.${le}(${JSON.stringify(e)}, "${t}", ${ce}${n ? `, "${n}"` : ""})`, tn = (e, t, n) => `window.${ue}(${JSON.stringify(e)}, "${t}", ${ce}${n ? `, "${n}"` : ""})`, M = {
267
+ const Ke = () => `
268
+ window.${je} = ${He}
269
+ window.${me} = ${Be}
270
+ window.${pe} = ${Oe}
271
+ `, ge = F === "react", on = (e, t, n) => `window.${me}(${JSON.stringify(e)}, "${t}", ${ge}${n ? `, "${n}"` : ""})`, rn = (e, t, n) => `window.${pe}(${JSON.stringify(e)}, "${t}", ${ge}${n ? `, "${n}"` : ""})`, K = {
272
272
  "@type": "@builder.io/sdk:Element",
273
273
  layerName: "Accordion item title",
274
274
  responsiveStyles: {
@@ -297,7 +297,7 @@ const qe = () => `
297
297
  }
298
298
  }
299
299
  }]
300
- }, K = {
300
+ }, z = {
301
301
  "@type": "@builder.io/sdk:Element",
302
302
  layerName: "Accordion item detail",
303
303
  responsiveStyles: {
@@ -328,7 +328,7 @@ const qe = () => `
328
328
  }
329
329
  }
330
330
  }]
331
- }, Oe = {
331
+ }, ze = {
332
332
  name: "Builder:Accordion",
333
333
  canHaveChildren: !0,
334
334
  image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
@@ -345,19 +345,19 @@ const qe = () => `
345
345
  name: "title",
346
346
  type: "uiBlocks",
347
347
  hideFromUI: !0,
348
- defaultValue: [M]
348
+ defaultValue: [K]
349
349
  }, {
350
350
  name: "detail",
351
351
  type: "uiBlocks",
352
352
  hideFromUI: !0,
353
- defaultValue: [K]
353
+ defaultValue: [z]
354
354
  }],
355
355
  defaultValue: [{
356
- title: [M],
357
- detail: [K]
356
+ title: [K],
357
+ detail: [z]
358
358
  }, {
359
- title: [M],
360
- detail: [K]
359
+ title: [K],
360
+ detail: [z]
361
361
  }],
362
362
  showIf: (e) => !e.get("useChildrenForItems")
363
363
  }, {
@@ -392,7 +392,7 @@ const qe = () => `
392
392
  builderComponents: !0,
393
393
  builderLinkComponent: !0
394
394
  }
395
- }, je = C(() => import("./accordion-79f6d62c.js")), Me = {
395
+ }, Je = C(() => import("./accordion-d3831f48.js")), Qe = {
396
396
  name: "Core:Button",
397
397
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
398
398
  defaultStyles: {
@@ -428,7 +428,7 @@ const qe = () => `
428
428
  shouldReceiveBuilderProps: {
429
429
  builderLinkComponent: !0
430
430
  }
431
- }, Ke = {
431
+ }, Ye = {
432
432
  // TODO: ways to statically preprocess JSON for references, functions, etc
433
433
  name: "Columns",
434
434
  isRSC: !0,
@@ -607,7 +607,7 @@ const qe = () => `
607
607
  });
608
608
  }
609
609
  const n = e.get("columns");
610
- Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((s) => !s.get("width")) || n.reduce((a, l) => a + l.get("width"), 0) !== 100) && t();
610
+ Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((l) => !l.get("width")) || n.reduce((i, u) => i + u.get("width"), 0) !== 100) && t();
611
611
  }
612
612
  }, {
613
613
  name: "space",
@@ -635,13 +635,13 @@ const qe = () => `
635
635
  builderComponents: !0,
636
636
  builderLinkComponent: !0
637
637
  }
638
- }, ze = {
638
+ }, Ge = {
639
639
  name: "Fragment",
640
640
  static: !0,
641
641
  hidden: !0,
642
642
  canHaveChildren: !0,
643
643
  noWrap: !0
644
- }, Y = ["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"], Je = ["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"], Qe = {
644
+ }, G = ["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"], Xe = ["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"], Ze = {
645
645
  name: "Image",
646
646
  static: !0,
647
647
  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",
@@ -656,34 +656,34 @@ const qe = () => `
656
656
  name: "image",
657
657
  type: "file",
658
658
  bubble: !0,
659
- allowedFileTypes: Y,
659
+ allowedFileTypes: G,
660
660
  required: !0,
661
661
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
662
662
  onChange: (e) => {
663
663
  e.delete("srcset"), e.delete("noWebp");
664
- function n(i, a = 6e4) {
665
- return new Promise((l, f) => {
666
- const m = document.createElement("img");
667
- let P = !1;
668
- m.onload = () => {
669
- P = !0, l(m);
670
- }, m.addEventListener("error", (I) => {
671
- console.warn("Image load failed", I.error), f(I.error);
672
- }), m.src = i, setTimeout(() => {
673
- P || f(new Error("Image load timed out"));
674
- }, a);
664
+ function n(a, i = 6e4) {
665
+ return new Promise((u, m) => {
666
+ const g = document.createElement("img");
667
+ let R = !1;
668
+ g.onload = () => {
669
+ R = !0, u(g);
670
+ }, g.addEventListener("error", (T) => {
671
+ console.warn("Image load failed", T.error), m(T.error);
672
+ }), g.src = a, setTimeout(() => {
673
+ R || m(new Error("Image load timed out"));
674
+ }, i);
675
675
  });
676
676
  }
677
- function o(i) {
678
- return Math.round(i * 1e3) / 1e3;
677
+ function o(a) {
678
+ return Math.round(a * 1e3) / 1e3;
679
679
  }
680
- const r = e.get("image"), s = e.get("aspectRatio");
681
- if (fetch(r).then((i) => i.blob()).then((i) => {
682
- i.type.includes("svg") && e.set("noWebp", !0);
683
- }), r && (!s || s === 0.7041))
684
- return n(r).then((i) => {
685
- const a = e.get("aspectRatio");
686
- e.get("image") === r && (!a || a === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
680
+ const r = e.get("image"), l = e.get("aspectRatio");
681
+ if (fetch(r).then((a) => a.blob()).then((a) => {
682
+ a.type.includes("svg") && e.set("noWebp", !0);
683
+ }), r && (!l || l === 0.7041))
684
+ return n(r).then((a) => {
685
+ const i = e.get("aspectRatio");
686
+ e.get("image") === r && (!i || i === 0.7041) && a.width && a.height && (e.set("aspectRatio", o(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
687
687
  });
688
688
  }
689
689
  }, {
@@ -753,7 +753,7 @@ const qe = () => `
753
753
  shouldReceiveBuilderProps: {
754
754
  builderBlock: !0
755
755
  }
756
- }, Ye = {
756
+ }, et = {
757
757
  name: "PersonalizationContainer",
758
758
  shouldReceiveBuilderProps: {
759
759
  builderBlock: !0,
@@ -789,7 +789,7 @@ const qe = () => `
789
789
  defaultValue: []
790
790
  }]
791
791
  }]
792
- }, Ge = C(() => import("./personalization-container-eb1ecef2.js")), Xe = {
792
+ }, tt = C(() => import("./personalization-container-64f3cd71.js")), nt = {
793
793
  name: "Core:Section",
794
794
  static: !0,
795
795
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -828,7 +828,7 @@ const qe = () => `
828
828
  }
829
829
  }
830
830
  }]
831
- }, Ze = {
831
+ }, at = {
832
832
  name: "Slot",
833
833
  isRSC: !0,
834
834
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -845,7 +845,7 @@ const qe = () => `
845
845
  builderContext: !0,
846
846
  builderComponents: !0
847
847
  }
848
- }, et = C(() => import("./slot-2638fd6d.js")), tt = {
848
+ }, it = C(() => import("./slot-26ec2911.js")), ot = {
849
849
  name: "Symbol",
850
850
  noWrap: !0,
851
851
  static: !0,
@@ -884,7 +884,7 @@ const qe = () => `
884
884
  builderComponents: !0,
885
885
  builderLinkComponent: !0
886
886
  }
887
- }, z = {
887
+ }, J = {
888
888
  "@type": "@builder.io/sdk:Element",
889
889
  responsiveStyles: {
890
890
  large: {
@@ -906,7 +906,7 @@ const qe = () => `
906
906
  text: "New tab"
907
907
  }
908
908
  }
909
- }, J = {
909
+ }, Q = {
910
910
  "@type": "@builder.io/sdk:Element",
911
911
  responsiveStyles: {
912
912
  large: {
@@ -922,7 +922,7 @@ const qe = () => `
922
922
  text: "New tab content "
923
923
  }
924
924
  }
925
- }, nt = {
925
+ }, rt = {
926
926
  name: "Builder: Tabs",
927
927
  inputs: [{
928
928
  name: "tabs",
@@ -932,16 +932,16 @@ const qe = () => `
932
932
  name: "label",
933
933
  type: "uiBlocks",
934
934
  hideFromUI: !0,
935
- defaultValue: [z]
935
+ defaultValue: [J]
936
936
  }, {
937
937
  name: "content",
938
938
  type: "uiBlocks",
939
939
  hideFromUI: !0,
940
- defaultValue: [J]
940
+ defaultValue: [Q]
941
941
  }],
942
942
  defaultValue: [{
943
943
  label: [{
944
- ...z,
944
+ ...J,
945
945
  component: {
946
946
  name: "Text",
947
947
  options: {
@@ -950,7 +950,7 @@ const qe = () => `
950
950
  }
951
951
  }],
952
952
  content: [{
953
- ...J,
953
+ ...Q,
954
954
  component: {
955
955
  name: "Text",
956
956
  options: {
@@ -960,7 +960,7 @@ const qe = () => `
960
960
  }]
961
961
  }, {
962
962
  label: [{
963
- ...z,
963
+ ...J,
964
964
  component: {
965
965
  name: "Text",
966
966
  options: {
@@ -969,7 +969,7 @@ const qe = () => `
969
969
  }
970
970
  }],
971
971
  content: [{
972
- ...J,
972
+ ...Q,
973
973
  component: {
974
974
  name: "Text",
975
975
  options: {
@@ -1025,7 +1025,7 @@ const qe = () => `
1025
1025
  builderComponents: !0,
1026
1026
  builderLinkComponent: !0
1027
1027
  }
1028
- }, at = C(() => import("./tabs-2eee6422.js")), it = {
1028
+ }, lt = C(() => import("./tabs-f9110171.js")), st = {
1029
1029
  shouldReceiveBuilderProps: {},
1030
1030
  name: "Text",
1031
1031
  static: !0,
@@ -1044,7 +1044,7 @@ const qe = () => `
1044
1044
  height: "auto",
1045
1045
  textAlign: "center"
1046
1046
  }
1047
- }, ot = {
1047
+ }, ut = {
1048
1048
  name: "Custom Code",
1049
1049
  static: !0,
1050
1050
  requiredPermissions: ["editCode"],
@@ -1066,7 +1066,7 @@ const qe = () => `
1066
1066
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1067
1067
  advanced: !0
1068
1068
  }]
1069
- }, rt = C(() => import("./custom-code-8034fac0.js")), st = {
1069
+ }, dt = C(() => import("./custom-code-f7a0f1c1.js")), ct = {
1070
1070
  name: "Embed",
1071
1071
  static: !0,
1072
1072
  inputs: [{
@@ -1081,7 +1081,7 @@ const qe = () => `
1081
1081
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1082
1082
  hideFromUI: !0
1083
1083
  }]
1084
- }, lt = C(() => import("./embed-f5b10eeb.js")), ut = {
1084
+ }, mt = C(() => import("./embed-e4979560.js")), pt = {
1085
1085
  name: "Form:Form",
1086
1086
  // editableTags: ['builder-form-error']
1087
1087
  defaults: {
@@ -1318,7 +1318,7 @@ const qe = () => `
1318
1318
  builderComponents: !0,
1319
1319
  builderLinkComponent: !0
1320
1320
  }
1321
- }, dt = C(() => import("./form-14942d4f.js")), ct = {
1321
+ }, ft = C(() => import("./form-30fba682.js")), gt = {
1322
1322
  name: "Form:Input",
1323
1323
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
1324
1324
  inputs: [
@@ -1369,7 +1369,7 @@ const qe = () => `
1369
1369
  borderStyle: "solid",
1370
1370
  borderColor: "#ccc"
1371
1371
  }
1372
- }, mt = C(() => import("./input-7089e95f.js")), pt = {
1372
+ }, ht = C(() => import("./input-e4a9fe0b.js")), bt = {
1373
1373
  name: "Form:Select",
1374
1374
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
1375
1375
  defaultStyles: {
@@ -1411,7 +1411,7 @@ const qe = () => `
1411
1411
  }],
1412
1412
  static: !0,
1413
1413
  noWrap: !0
1414
- }, ft = C(() => import("./select-8f01592a.js")), gt = {
1414
+ }, yt = C(() => import("./select-c59c9ac6.js")), vt = {
1415
1415
  name: "Form:SubmitButton",
1416
1416
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
1417
1417
  defaultStyles: {
@@ -1436,7 +1436,7 @@ const qe = () => `
1436
1436
  // that only shows if advanced setting is flipped
1437
1437
  // TODO: defaultChildren
1438
1438
  // canHaveChildren: true,
1439
- }, ht = C(() => import("./submit-button-b48361a7.js")), bt = {
1439
+ }, xt = C(() => import("./submit-button-b48361a7.js")), St = {
1440
1440
  name: "Form:TextArea",
1441
1441
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
1442
1442
  inputs: [{
@@ -1472,7 +1472,7 @@ const qe = () => `
1472
1472
  },
1473
1473
  static: !0,
1474
1474
  noWrap: !0
1475
- }, yt = C(() => import("./textarea-d29025e9.js")), vt = {
1475
+ }, Tt = C(() => import("./textarea-d29025e9.js")), It = {
1476
1476
  // friendlyName?
1477
1477
  name: "Raw:Img",
1478
1478
  hideFromInsertMenu: !0,
@@ -1481,12 +1481,12 @@ const qe = () => `
1481
1481
  name: "image",
1482
1482
  bubble: !0,
1483
1483
  type: "file",
1484
- allowedFileTypes: Y,
1484
+ allowedFileTypes: G,
1485
1485
  required: !0
1486
1486
  }],
1487
1487
  noWrap: !0,
1488
1488
  static: !0
1489
- }, xt = C(() => import("./img-ba2ef9ee.js")), St = {
1489
+ }, kt = C(() => import("./img-3bb375bf.js")), Ct = {
1490
1490
  name: "Video",
1491
1491
  canHaveChildren: !0,
1492
1492
  defaultStyles: {
@@ -1497,14 +1497,14 @@ const qe = () => `
1497
1497
  inputs: [{
1498
1498
  name: "video",
1499
1499
  type: "file",
1500
- allowedFileTypes: Je,
1500
+ allowedFileTypes: Xe,
1501
1501
  bubble: !0,
1502
1502
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
1503
1503
  required: !0
1504
1504
  }, {
1505
1505
  name: "posterImage",
1506
1506
  type: "file",
1507
- allowedFileTypes: Y,
1507
+ allowedFileTypes: G,
1508
1508
  helperText: "Image to show before the video plays"
1509
1509
  }, {
1510
1510
  name: "autoPlay",
@@ -1570,67 +1570,67 @@ const qe = () => `
1570
1570
  shouldReceiveBuilderProps: {
1571
1571
  builderBlock: !0
1572
1572
  }
1573
- }, Tt = () => [{
1574
- component: rt,
1575
- ...ot
1576
- }, {
1577
- component: lt,
1578
- ...st
1579
- }, {
1573
+ }, wt = () => [{
1580
1574
  component: dt,
1581
1575
  ...ut
1582
1576
  }, {
1583
1577
  component: mt,
1584
1578
  ...ct
1585
- }, {
1586
- component: ht,
1587
- ...gt
1588
1579
  }, {
1589
1580
  component: ft,
1590
1581
  ...pt
1591
1582
  }, {
1592
- component: yt,
1593
- ...bt
1583
+ component: ht,
1584
+ ...gt
1594
1585
  }, {
1595
1586
  component: xt,
1596
1587
  ...vt
1597
1588
  }, {
1598
- component: Ie,
1599
- ...St
1600
- }], ee = () => [{
1601
- component: ke,
1602
- ...Me
1589
+ component: yt,
1590
+ ...bt
1603
1591
  }, {
1604
- component: Ce,
1605
- ...Ke
1592
+ component: Tt,
1593
+ ...St
1606
1594
  }, {
1607
- component: we,
1608
- ...ze
1595
+ component: kt,
1596
+ ...It
1609
1597
  }, {
1610
1598
  component: Ve,
1599
+ ...Ct
1600
+ }], ie = () => [{
1601
+ component: Ee,
1611
1602
  ...Qe
1612
1603
  }, {
1613
- component: Ee,
1614
- ...Xe
1604
+ component: Re,
1605
+ ...Ye
1606
+ }, {
1607
+ component: Ae,
1608
+ ...Ge
1615
1609
  }, {
1616
- component: et,
1610
+ component: De,
1617
1611
  ...Ze
1618
1612
  }, {
1619
- component: Re,
1620
- ...tt
1613
+ component: Pe,
1614
+ ...nt
1621
1615
  }, {
1622
- component: Ae,
1623
- ...it
1624
- }, ...de.includes(F) ? [{
1625
- component: Ge,
1626
- ...Ye
1616
+ component: it,
1617
+ ...at
1618
+ }, {
1619
+ component: Fe,
1620
+ ...ot
1621
+ }, {
1622
+ component: We,
1623
+ ...st
1624
+ }, ...fe.includes(F) ? [{
1625
+ component: tt,
1626
+ ...et
1627
1627
  }] : [], {
1628
- component: at,
1629
- ...nt
1628
+ component: lt,
1629
+ ...rt
1630
1630
  }, {
1631
- component: je,
1632
- ...Oe
1633
- }, ...Tt()], It = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
1631
+ component: Je,
1632
+ ...ze
1633
+ }, ...wt()], Vt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
1634
1634
  function getAndSetVariantId() {
1635
1635
  function setCookie(name, value, days) {
1636
1636
  let expires = '';
@@ -1689,7 +1689,7 @@ const qe = () => `
1689
1689
  }).join('');
1690
1690
  styleEl.innerHTML = newStyleStr;
1691
1691
  }
1692
- }`, kt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1692
+ }`, Et = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1693
1693
  if (!navigator.cookieEnabled) {
1694
1694
  return;
1695
1695
  }
@@ -1723,27 +1723,27 @@ const qe = () => `
1723
1723
  thisScriptEl?.remove();
1724
1724
  }
1725
1725
  return;
1726
- }`, me = "builderIoAbTest", pe = "builderIoRenderContent", H = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1726
+ }`, he = "builderIoAbTest", be = "builderIoRenderContent", O = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1727
1727
  ...t,
1728
1728
  testVariationId: t.id,
1729
1729
  id: e == null ? void 0 : e.id
1730
- })), Ct = ({
1730
+ })), Rt = ({
1731
1731
  canTrack: e,
1732
1732
  content: t
1733
- }) => !(!(H(t).length > 0) || !e || U()), wt = (e) => e === "react" || e === "reactNative", Vt = F === "angular", fe = wt(F), Et = () => `
1734
- window.${me} = ${It}
1735
- window.${pe} = ${kt}
1736
- `, Rt = (e, t) => `
1737
- window.${me}(
1738
- "${t}",${JSON.stringify(e)}, ${fe}, ${Vt}
1739
- )`, At = ({
1733
+ }) => !(!(O(t).length > 0) || !e || L()), At = (e) => e === "react" || e === "reactNative", Dt = F === "angular", ye = At(F), Pt = () => `
1734
+ window.${he} = ${Vt}
1735
+ window.${be} = ${Et}
1736
+ `, Ft = (e, t) => `
1737
+ window.${he}(
1738
+ "${t}",${JSON.stringify(e)}, ${ye}, ${Dt}
1739
+ )`, Wt = ({
1740
1740
  contentId: e,
1741
1741
  variationId: t
1742
- }) => `window.${pe}(
1743
- "${t}", "${e}", ${fe}
1742
+ }) => `window.${be}(
1743
+ "${t}", "${e}", ${ye}
1744
1744
  )`;
1745
1745
  function q(e) {
1746
- return /* @__PURE__ */ T(
1746
+ return /* @__PURE__ */ S(
1747
1747
  "script",
1748
1748
  {
1749
1749
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -1752,10 +1752,10 @@ function q(e) {
1752
1752
  }
1753
1753
  );
1754
1754
  }
1755
- function te(e) {
1755
+ function oe(e) {
1756
1756
  return Math.round(e * 1e3) / 1e3;
1757
1757
  }
1758
- const Dt = (e, t, n = !0) => {
1758
+ const Nt = (e, t, n = !0) => {
1759
1759
  if (!(e instanceof HTMLElement))
1760
1760
  return null;
1761
1761
  let o = n ? e : e.parentElement;
@@ -1766,37 +1766,37 @@ const Dt = (e, t, n = !0) => {
1766
1766
  return o;
1767
1767
  } while (o = o.parentElement);
1768
1768
  return null;
1769
- }, Ft = (e) => Dt(e, (t) => {
1769
+ }, $t = (e) => Nt(e, (t) => {
1770
1770
  const n = t.getAttribute("builder-id") || t.id;
1771
1771
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
1772
- }), ne = ({
1772
+ }), re = ({
1773
1773
  event: e,
1774
1774
  target: t
1775
1775
  }) => {
1776
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = te(o / n.width), i = te(r / n.height);
1776
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, l = oe(o / n.width), a = oe(r / n.height);
1777
1777
  return {
1778
- x: s,
1779
- y: i
1778
+ x: l,
1779
+ y: a
1780
1780
  };
1781
- }, Pt = (e) => {
1782
- const t = e.target, n = t && Ft(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1781
+ }, _t = (e) => {
1782
+ const t = e.target, n = t && $t(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1783
1783
  return {
1784
1784
  targetBuilderElement: o || void 0,
1785
1785
  metadata: {
1786
- targetOffset: t ? ne({
1786
+ targetOffset: t ? re({
1787
1787
  event: e,
1788
1788
  target: t
1789
1789
  }) : void 0,
1790
- builderTargetOffset: n ? ne({
1790
+ builderTargetOffset: n ? re({
1791
1791
  event: e,
1792
1792
  target: n
1793
1793
  }) : void 0,
1794
1794
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
1795
1795
  }
1796
1796
  };
1797
- }, Wt = ["svelte", "qwik", "vue"], ae = () => Wt.includes(F) && (N() || oe()), Nt = (e) => {
1798
- var s, i;
1799
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (i = e.fileUrl) != null ? i : (s = e == null ? void 0 : e.files) == null ? void 0 : s.regular;
1797
+ }, Lt = ["svelte", "qwik", "vue"], le = () => Lt.includes(F) && ($() || ue()), Ut = (e) => {
1798
+ var l, a;
1799
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = (a = e.fileUrl) != null ? a : (l = e == null ? void 0 : e.files) == null ? void 0 : l.regular;
1800
1800
  let r = "";
1801
1801
  if (o && t && n && (r += `
1802
1802
  @font-face {
@@ -1806,29 +1806,29 @@ font-display: fallback;
1806
1806
  font-weight: 400;
1807
1807
  }
1808
1808
  `.trim()), e.files)
1809
- for (const a in e.files) {
1810
- if (!(String(Number(a)) === a))
1809
+ for (const i in e.files) {
1810
+ if (!(String(Number(i)) === i))
1811
1811
  continue;
1812
- const f = e.files[a];
1813
- f && f !== o && (r += `
1812
+ const m = e.files[i];
1813
+ m && m !== o && (r += `
1814
1814
  @font-face {
1815
1815
  font-family: "${t}";
1816
- src: url('${f}') format('woff2');
1816
+ src: url('${m}') format('woff2');
1817
1817
  font-display: fallback;
1818
- font-weight: ${a};
1818
+ font-weight: ${i};
1819
1819
  }
1820
1820
  `.trim());
1821
1821
  }
1822
1822
  return r;
1823
- }, $t = ({
1823
+ }, Bt = ({
1824
1824
  customFonts: e
1825
1825
  }) => {
1826
1826
  var t;
1827
- return ((t = e == null ? void 0 : e.map((n) => Nt(n))) == null ? void 0 : t.join(" ")) || "";
1828
- }, _t = ({
1827
+ return ((t = e == null ? void 0 : e.map((n) => Ut(n))) == null ? void 0 : t.join(" ")) || "";
1828
+ }, Ht = ({
1829
1829
  cssCode: e,
1830
1830
  contentId: t
1831
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Lt = `
1831
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ot = `
1832
1832
  .builder-button {
1833
1833
  all: unset;
1834
1834
  }
@@ -1845,24 +1845,25 @@ font-weight: ${a};
1845
1845
  text-align: inherit;
1846
1846
  font-family: inherit;
1847
1847
  }
1848
- `, Ut = (e) => e ? "" : Lt, Bt = (e) => `variant-${e}`;
1849
- function Ht(e) {
1850
- var v, k, D;
1851
- const t = Q(null);
1852
- R(() => !1);
1853
- function n(c) {
1848
+ `, qt = (e) => e ? "" : Ot, jt = (e) => `variant-${e}`;
1849
+ function Mt(e) {
1850
+ var Z, ee, te;
1851
+ const t = Y(null);
1852
+ k(() => !1);
1853
+ const [n, o] = k(() => null), [r, l] = k(() => "");
1854
+ function a(c) {
1854
1855
  var h, b;
1855
1856
  const p = {
1856
1857
  ...e.builderContextSignal.rootState,
1857
1858
  ...c
1858
1859
  };
1859
- e.builderContextSignal.rootSetState ? (b = (h = e.builderContextSignal).rootSetState) == null || b.call(h, p) : e.setBuilderContextSignal((g) => ({
1860
- ...g,
1860
+ e.builderContextSignal.rootSetState ? (b = (h = e.builderContextSignal).rootSetState) == null || b.call(h, p) : e.setBuilderContextSignal((f) => ({
1861
+ ...f,
1861
1862
  rootState: p
1862
1863
  }));
1863
1864
  }
1864
- function o(c) {
1865
- var h, b, g, x, A;
1865
+ function i(c) {
1866
+ var h, b, f, v, P;
1866
1867
  const p = {
1867
1868
  ...e.builderContextSignal.content,
1868
1869
  ...c,
@@ -1873,7 +1874,7 @@ function Ht(e) {
1873
1874
  meta: {
1874
1875
  ...(b = e.builderContextSignal.content) == null ? void 0 : b.meta,
1875
1876
  ...c == null ? void 0 : c.meta,
1876
- breakpoints: ((g = c == null ? void 0 : c.meta) == null ? void 0 : g.breakpoints) || ((A = (x = e.builderContextSignal.content) == null ? void 0 : x.meta) == null ? void 0 : A.breakpoints)
1877
+ breakpoints: ((f = c == null ? void 0 : c.meta) == null ? void 0 : f.breakpoints) || ((P = (v = e.builderContextSignal.content) == null ? void 0 : v.meta) == null ? void 0 : P.breakpoints)
1877
1878
  }
1878
1879
  };
1879
1880
  e.setBuilderContextSignal((_) => ({
@@ -1881,118 +1882,120 @@ function Ht(e) {
1881
1882
  content: p
1882
1883
  }));
1883
1884
  }
1884
- function r() {
1885
+ function u() {
1885
1886
  return e.showContent ? {} : {
1886
1887
  hidden: !0,
1887
1888
  "aria-hidden": !0
1888
1889
  };
1889
1890
  }
1890
- const [s, i] = R(
1891
+ const [m, g] = k(
1891
1892
  () => e.contentWrapper || "div"
1892
1893
  );
1893
- function a(c) {
1894
- return ve({
1894
+ function R(c) {
1895
+ return Ie({
1895
1896
  model: e.model,
1896
1897
  trustedHosts: e.trustedHosts,
1897
1898
  callbacks: {
1898
1899
  configureSdk: (p) => {
1899
- var g;
1900
+ var f;
1900
1901
  const { breakpoints: h, contentId: b } = p;
1901
- !b || b !== ((g = e.builderContextSignal.content) == null ? void 0 : g.id) || h && o({
1902
+ !b || b !== ((f = e.builderContextSignal.content) == null ? void 0 : f.id) || h && i({
1902
1903
  meta: {
1903
1904
  breakpoints: h
1904
1905
  }
1905
1906
  });
1906
1907
  },
1907
1908
  animation: (p) => {
1908
- Fe(p);
1909
+ $e(p);
1909
1910
  },
1910
1911
  contentUpdate: (p) => {
1911
- o(p);
1912
+ i(p);
1912
1913
  },
1913
1914
  stateUpdate: (p) => {
1914
- n(p);
1915
+ a(p);
1915
1916
  }
1916
1917
  }
1917
1918
  })(c);
1918
1919
  }
1919
- const [l, f] = R(() => ({})), [m, P] = R(() => ({})), [I, E] = R(() => !1);
1920
- function d(c) {
1920
+ const [T, A] = k(() => ({})), [s, d] = k(() => ({})), [D, U] = k(() => !1);
1921
+ function I(c) {
1921
1922
  var p, h;
1922
1923
  if (e.builderContextSignal.content) {
1923
- const b = (p = e.builderContextSignal.content) == null ? void 0 : p.testVariationId, g = (h = e.builderContextSignal.content) == null ? void 0 : h.id;
1924
- X({
1924
+ const b = (p = e.builderContextSignal.content) == null ? void 0 : p.testVariationId, f = (h = e.builderContextSignal.content) == null ? void 0 : h.id;
1925
+ ne({
1925
1926
  apiHost: e.apiHost,
1926
1927
  type: "click",
1927
- canTrack: O(e.canTrack),
1928
- contentId: g,
1928
+ canTrack: j(e.canTrack),
1929
+ contentId: f,
1929
1930
  apiKey: e.apiKey,
1930
- variationId: b !== g ? b : void 0,
1931
- ...Pt(c),
1932
- unique: !I
1931
+ variationId: b !== f ? b : void 0,
1932
+ ..._t(c),
1933
+ unique: !D
1933
1934
  });
1934
1935
  }
1935
- I || E(!0);
1936
+ D || U(!0);
1936
1937
  }
1937
- function u() {
1938
+ function w() {
1938
1939
  var p, h, b;
1939
1940
  const c = (b = (h = (p = e.builderContextSignal.content) == null ? void 0 : p.data) == null ? void 0 : h.httpRequests) != null ? b : {};
1940
1941
  Object.entries(c).forEach(
1941
- ([g, x]) => {
1942
- if (!x)
1942
+ ([f, v]) => {
1943
+ if (!v)
1943
1944
  return;
1944
- const A = typeof x == "object" && x["@type"] === "@builder.io/core:Request";
1945
- if (m[g] || l[g] && !N())
1945
+ const P = typeof v == "object" && v["@type"] === "@builder.io/core:Request";
1946
+ if (s[f] || T[f] && !$())
1946
1947
  return;
1947
- const _ = A ? x.request.url : x;
1948
- m[g] = !0;
1949
- const S = _.replace(
1948
+ const _ = P ? v.request.url : v;
1949
+ s[f] = !0;
1950
+ const x = _.replace(
1950
1951
  /{{([^}]+)}}/g,
1951
- (V, L) => String(
1952
- re({
1953
- code: L,
1952
+ (E, B) => String(
1953
+ de({
1954
+ code: B,
1954
1955
  context: e.context || {},
1955
1956
  localState: void 0,
1956
1957
  rootState: e.builderContextSignal.rootState,
1957
1958
  rootSetState: e.builderContextSignal.rootSetState
1958
1959
  })
1959
1960
  )
1960
- ), y = A ? {
1961
- url: S,
1962
- method: x.request.method,
1963
- headers: x.request.headers,
1964
- body: x.request.body
1961
+ ), y = P ? {
1962
+ url: x,
1963
+ method: v.request.method,
1964
+ headers: v.request.headers,
1965
+ body: v.request.body
1965
1966
  } : {
1966
- url: S,
1967
+ url: x,
1967
1968
  method: "GET"
1968
1969
  };
1969
- xe(JSON.stringify(y)), fetch(y.url, {
1970
+ ke(JSON.stringify(y));
1971
+ const W = {
1970
1972
  method: y.method,
1971
1973
  headers: y.headers,
1972
1974
  body: y.body
1973
- }).then((V) => V.json()).then((V) => {
1974
- n({
1975
- [g]: V
1976
- }), l[g] = !0;
1977
- }).catch((V) => {
1975
+ };
1976
+ y.method === "GET" && delete W.body, fetch(y.url, W).then((E) => E.json()).then((E) => {
1977
+ a({
1978
+ [f]: E
1979
+ }), T[f] = !0;
1980
+ }).catch((E) => {
1978
1981
  console.error(
1979
1982
  "error fetching dynamic data",
1980
- JSON.stringify(x),
1981
- V
1983
+ JSON.stringify(v),
1984
+ E
1982
1985
  );
1983
1986
  }).finally(() => {
1984
- m[g] = !1;
1987
+ s[f] = !1;
1985
1988
  });
1986
1989
  }
1987
1990
  );
1988
1991
  }
1989
- function w() {
1990
- N() && window.dispatchEvent(
1992
+ function V() {
1993
+ $() && window.dispatchEvent(
1991
1994
  new CustomEvent(
1992
1995
  "builder:component:stateChange",
1993
1996
  {
1994
1997
  detail: {
1995
- state: Pe(e.builderContextSignal.rootState),
1998
+ state: _e(e.builderContextSignal.rootState),
1996
1999
  ref: {
1997
2000
  name: e.model
1998
2001
  }
@@ -2001,11 +2004,11 @@ function Ht(e) {
2001
2004
  )
2002
2005
  );
2003
2006
  }
2004
- const $ = Q(!1);
2005
- return $.current || (u(), w(), $.current = !0), W(() => {
2006
- var c, p, h, b, g;
2007
- if (U()) {
2008
- N() && !e.isNestedRender && (window.addEventListener("message", a), ge({
2007
+ const X = Y(!1);
2008
+ return X.current || (w(), V(), X.current = !0), N(() => {
2009
+ var c, p, h, b, f;
2010
+ if (L()) {
2011
+ $() && !e.isNestedRender && (window.addEventListener("message", R), ve({
2009
2012
  ...e.locale ? {
2010
2013
  locale: e.locale
2011
2014
  } : {},
@@ -2019,98 +2022,106 @@ function Ht(e) {
2019
2022
  apiKey: e.apiKey
2020
2023
  }), Object.values(
2021
2024
  e.builderContextSignal.componentInfos
2022
- ).forEach((S) => {
2023
- var y, V;
2024
- if (!((y = S.models) != null && y.length) || S.models.includes(e.model)) {
2025
- const L = he(S);
2026
- (V = window.parent) == null || V.postMessage(L, "*");
2025
+ ).forEach((x) => {
2026
+ var y, W;
2027
+ if (!((y = x.models) != null && y.length) || x.models.includes(e.model)) {
2028
+ const E = xe(x);
2029
+ (W = window.parent) == null || W.postMessage(E, "*");
2027
2030
  }
2028
2031
  }), window.addEventListener(
2029
2032
  "builder:component:stateChangeListenerActivated",
2030
- w
2033
+ V
2031
2034
  ));
2032
- const x = e.builderContextSignal.content && O(e.canTrack), A = be({
2035
+ const v = e.builderContextSignal.content && j(e.canTrack), P = Se({
2033
2036
  name: `builder.tests.${(p = e.builderContextSignal.content) == null ? void 0 : p.id}`,
2034
2037
  canTrack: !0
2035
2038
  }), _ = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId;
2036
- if (x && _ === A) {
2037
- const S = (b = e.builderContextSignal.content) == null ? void 0 : b.id, y = e.apiKey;
2038
- X({
2039
+ if (v && _ === P) {
2040
+ const x = (b = e.builderContextSignal.content) == null ? void 0 : b.id, y = e.apiKey;
2041
+ ne({
2039
2042
  apiHost: e.apiHost,
2040
2043
  type: "impression",
2041
2044
  canTrack: !0,
2042
- contentId: S,
2045
+ contentId: x,
2043
2046
  apiKey: y,
2044
- variationId: A !== S ? A : void 0
2047
+ variationId: P !== x ? P : void 0
2045
2048
  });
2046
2049
  }
2047
- if (oe() && !N()) {
2048
- const S = new URL(location.href).searchParams, y = S.get("builder.preview"), V = S.get(
2050
+ if (ue() && !$()) {
2051
+ const x = new URL(location.href).searchParams, y = x.get("builder.preview"), W = x.get(
2049
2052
  `builder.overrides.${y}`
2050
- ), L = S.get("apiKey") || S.get("builder.space");
2051
- (y === "BUILDER_STUDIO" || y === e.model && L === e.apiKey && (!e.content || V === e.content.id)) && ye({
2053
+ ), E = x.get("apiKey") || x.get("builder.space");
2054
+ (y === "BUILDER_STUDIO" || y === e.model && E === e.apiKey && (!e.content || W === e.content.id)) && Te({
2052
2055
  model: e.model,
2053
2056
  apiKey: e.apiKey,
2054
2057
  apiVersion: e.builderContextSignal.apiVersion,
2055
- ...y === "BUILDER_STUDIO" && ((g = e.context) != null && g.symbolId) ? {
2058
+ ...y === "BUILDER_STUDIO" && ((f = e.context) != null && f.symbolId) ? {
2056
2059
  query: {
2057
2060
  id: e.context.symbolId
2058
2061
  }
2059
2062
  } : {}
2060
- }).then((G) => {
2061
- G && o(G);
2063
+ }).then((B) => {
2064
+ B && i(B);
2062
2065
  });
2063
2066
  }
2064
2067
  }
2065
- }, []), W(() => {
2066
- e.content && o(e.content);
2067
- }, [e.content]), W(() => {
2068
- w();
2069
- }, [e.builderContextSignal.rootState]), W(() => {
2070
- e.data && n(e.data);
2071
- }, [e.data]), W(() => {
2072
- e.locale && n({
2073
- locale: e.locale
2074
- });
2075
- }, [e.locale]), W(() => () => {
2076
- U() && (window.removeEventListener("message", a), window.removeEventListener(
2068
+ }, []), N(() => {
2069
+ e.content && i(e.content);
2070
+ }, [e.content]), N(() => {
2071
+ V();
2072
+ }, [e.builderContextSignal.rootState]), N(() => {
2073
+ if (e.data) {
2074
+ if (n === e.data)
2075
+ return;
2076
+ a(e.data), o(e.data);
2077
+ }
2078
+ }, [e.data]), N(() => {
2079
+ if (e.locale) {
2080
+ if (r === e.locale)
2081
+ return;
2082
+ a({
2083
+ locale: e.locale
2084
+ }), l(e.locale);
2085
+ }
2086
+ }, [e.locale]), N(() => () => {
2087
+ L() && (window.removeEventListener("message", R), window.removeEventListener(
2077
2088
  "builder:component:stateChangeListenerActivated",
2078
- w
2089
+ V
2079
2090
  ));
2080
- }, []), /* @__PURE__ */ T(De.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || ae() ? /* @__PURE__ */ T(
2081
- s,
2091
+ }, []), /* @__PURE__ */ S(Ne.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || le() ? /* @__PURE__ */ S(
2092
+ m,
2082
2093
  {
2083
2094
  ref: t,
2084
- onClick: (c) => d(c),
2085
- "builder-content-id": (v = e.builderContextSignal.content) == null ? void 0 : v.id,
2095
+ onClick: (c) => I(c),
2096
+ "builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
2086
2097
  "builder-model": e.model,
2087
- className: Bt(
2088
- ((k = e.content) == null ? void 0 : k.testVariationId) || ((D = e.content) == null ? void 0 : D.id)
2098
+ className: jt(
2099
+ ((ee = e.content) == null ? void 0 : ee.testVariationId) || ((te = e.content) == null ? void 0 : te.id)
2089
2100
  ),
2090
2101
  style: {
2091
- display: !e.builderContextSignal.content && ae() ? "none" : void 0
2102
+ display: !e.builderContextSignal.content && le() ? "none" : void 0
2092
2103
  },
2093
- ...r(),
2104
+ ...u(),
2094
2105
  ...e.contentWrapperProps,
2095
2106
  children: e.children
2096
2107
  }
2097
2108
  ) : null });
2098
2109
  }
2099
- function qt(e) {
2100
- const [t, n] = R(
2110
+ function Kt(e) {
2111
+ const [t, n] = k(
2101
2112
  () => `
2102
- ${_t({
2113
+ ${Ht({
2103
2114
  cssCode: e.cssCode,
2104
2115
  contentId: e.contentId
2105
2116
  })}
2106
- ${$t({
2117
+ ${Bt({
2107
2118
  customFonts: e.customFonts
2108
2119
  })}
2109
- ${Ut(e.isNestedRender)}
2120
+ ${qt(e.isNestedRender)}
2110
2121
  `.trim()
2111
2122
  );
2112
- return /* @__PURE__ */ T(
2113
- se,
2123
+ return /* @__PURE__ */ S(
2124
+ ce,
2114
2125
  {
2115
2126
  id: "builderio-content",
2116
2127
  styles: t,
@@ -2118,15 +2129,15 @@ ${Ut(e.isNestedRender)}
2118
2129
  }
2119
2130
  );
2120
2131
  }
2121
- const Ot = ({
2132
+ const zt = ({
2122
2133
  content: e,
2123
2134
  data: t,
2124
2135
  locale: n
2125
2136
  }) => {
2126
- var s, i, a;
2127
- const o = {}, r = ((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {};
2128
- return (a = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || a.forEach((l) => {
2129
- l.name && l.defaultValue !== void 0 && (o[l.name] = l.defaultValue);
2137
+ var l, a, i;
2138
+ const o = {}, r = ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) || {};
2139
+ return (i = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || i.forEach((u) => {
2140
+ u.name && u.defaultValue !== void 0 && (o[u.name] = u.defaultValue);
2130
2141
  }), {
2131
2142
  ...o,
2132
2143
  ...r,
@@ -2135,7 +2146,7 @@ const Ot = ({
2135
2146
  locale: n
2136
2147
  } : {}
2137
2148
  };
2138
- }, jt = ({
2149
+ }, Jt = ({
2139
2150
  content: e,
2140
2151
  data: t
2141
2152
  }) => e ? {
@@ -2146,46 +2157,46 @@ const Ot = ({
2146
2157
  },
2147
2158
  meta: e == null ? void 0 : e.meta
2148
2159
  } : void 0;
2149
- function ie(e) {
2150
- var f, m, P, I, E, d, u, w, $;
2151
- const [t, n] = R(
2160
+ function se(e) {
2161
+ var m, g, R, T, A, s, d, D, U;
2162
+ const [t, n] = k(
2152
2163
  () => {
2153
- var v, k;
2154
- return At({
2164
+ var I, w;
2165
+ return Wt({
2155
2166
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2156
- variationId: (v = e.content) == null ? void 0 : v.testVariationId,
2167
+ variationId: (I = e.content) == null ? void 0 : I.testVariationId,
2157
2168
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2158
- contentId: (k = e.content) == null ? void 0 : k.id
2169
+ contentId: (w = e.content) == null ? void 0 : w.id
2159
2170
  });
2160
2171
  }
2161
2172
  );
2162
- function o(v) {
2163
- a((k) => ({
2164
- ...k,
2165
- rootState: v
2173
+ function o(I) {
2174
+ i((w) => ({
2175
+ ...w,
2176
+ rootState: I
2166
2177
  }));
2167
2178
  }
2168
- const [r, s] = R(
2179
+ const [r, l] = k(
2169
2180
  () => [
2170
- ...ee(),
2181
+ ...ie(),
2171
2182
  ...e.customComponents || []
2172
2183
  ].reduce(
2173
- (v, { component: k, ...D }) => ({
2174
- ...v,
2175
- [D.name]: {
2176
- component: k,
2177
- ...Z(D)
2184
+ (I, { component: w, ...V }) => ({
2185
+ ...I,
2186
+ [V.name]: {
2187
+ component: w,
2188
+ ...ae(V)
2178
2189
  }
2179
2190
  }),
2180
2191
  {}
2181
2192
  )
2182
- ), [i, a] = R(() => ({
2183
- content: jt({
2193
+ ), [a, i] = k(() => ({
2194
+ content: Jt({
2184
2195
  content: e.content,
2185
2196
  data: e.data
2186
2197
  }),
2187
2198
  localState: void 0,
2188
- rootState: Ot({
2199
+ rootState: zt({
2189
2200
  content: e.content,
2190
2201
  data: e.data,
2191
2202
  locale: e.locale
@@ -2196,12 +2207,12 @@ function ie(e) {
2196
2207
  apiKey: e.apiKey,
2197
2208
  apiVersion: e.apiVersion,
2198
2209
  componentInfos: [
2199
- ...ee(),
2210
+ ...ie(),
2200
2211
  ...e.customComponents || []
2201
2212
  ].reduce(
2202
- (v, { component: k, ...D }) => ({
2203
- ...v,
2204
- [D.name]: Z(D)
2213
+ (I, { component: w, ...V }) => ({
2214
+ ...I,
2215
+ [V.name]: ae(V)
2205
2216
  }),
2206
2217
  {}
2207
2218
  ),
@@ -2210,31 +2221,31 @@ function ie(e) {
2210
2221
  BlocksWrapperProps: e.blocksWrapperProps || {},
2211
2222
  nonce: e.nonce || "",
2212
2223
  model: e.model
2213
- })), l = Q(!1);
2214
- if (!l.current) {
2215
- e.apiKey || Se.error(
2224
+ })), u = Y(!1);
2225
+ if (!u.current) {
2226
+ e.apiKey || Ce.error(
2216
2227
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2217
2228
  );
2218
- const v = (m = (f = i.content) == null ? void 0 : f.data) == null ? void 0 : m.jsCode;
2219
- v && re({
2220
- code: v,
2229
+ const I = (g = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : g.jsCode;
2230
+ I && de({
2231
+ code: I,
2221
2232
  context: e.context || {},
2222
2233
  localState: void 0,
2223
- rootState: i.rootState,
2224
- rootSetState: (k) => {
2225
- Object.assign(i.rootState, k);
2234
+ rootState: a.rootState,
2235
+ rootSetState: (w) => {
2236
+ Object.assign(a.rootState, w);
2226
2237
  },
2227
2238
  isExpression: !1
2228
- }), l.current = !0;
2239
+ }), u.current = !0;
2229
2240
  }
2230
- return /* @__PURE__ */ T(
2231
- We.Provider,
2241
+ return /* @__PURE__ */ S(
2242
+ Le.Provider,
2232
2243
  {
2233
2244
  value: {
2234
2245
  registeredComponents: r
2235
2246
  },
2236
- children: /* @__PURE__ */ B(
2237
- Ht,
2247
+ children: /* @__PURE__ */ H(
2248
+ Mt,
2238
2249
  {
2239
2250
  apiHost: e.apiHost,
2240
2251
  nonce: e.nonce,
@@ -2247,14 +2258,14 @@ function ie(e) {
2247
2258
  locale: e.locale,
2248
2259
  enrich: e.enrich,
2249
2260
  showContent: e.showContent,
2250
- builderContextSignal: i,
2261
+ builderContextSignal: a,
2251
2262
  contentWrapper: e.contentWrapper,
2252
2263
  contentWrapperProps: e.contentWrapperProps,
2253
2264
  trustedHosts: e.trustedHosts,
2254
2265
  isNestedRender: e.isNestedRender,
2255
- setBuilderContextSignal: a,
2266
+ setBuilderContextSignal: i,
2256
2267
  children: [
2257
- e.isSsrAbTest ? /* @__PURE__ */ T(
2268
+ e.isSsrAbTest ? /* @__PURE__ */ S(
2258
2269
  q,
2259
2270
  {
2260
2271
  id: "builderio-variant-visibility",
@@ -2262,21 +2273,21 @@ function ie(e) {
2262
2273
  nonce: e.nonce || ""
2263
2274
  }
2264
2275
  ) : null,
2265
- /* @__PURE__ */ T(
2266
- qt,
2276
+ /* @__PURE__ */ S(
2277
+ Kt,
2267
2278
  {
2268
2279
  nonce: e.nonce || "",
2269
2280
  isNestedRender: e.isNestedRender,
2270
- contentId: (P = i.content) == null ? void 0 : P.id,
2271
- cssCode: (E = (I = i.content) == null ? void 0 : I.data) == null ? void 0 : E.cssCode,
2272
- customFonts: (u = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : u.customFonts
2281
+ contentId: (R = a.content) == null ? void 0 : R.id,
2282
+ cssCode: (A = (T = a.content) == null ? void 0 : T.data) == null ? void 0 : A.cssCode,
2283
+ customFonts: (d = (s = a.content) == null ? void 0 : s.data) == null ? void 0 : d.customFonts
2273
2284
  }
2274
2285
  ),
2275
- /* @__PURE__ */ T(
2276
- Ne,
2286
+ /* @__PURE__ */ S(
2287
+ Ue,
2277
2288
  {
2278
- blocks: ($ = (w = i.content) == null ? void 0 : w.data) == null ? void 0 : $.blocks,
2279
- context: i,
2289
+ blocks: (U = (D = a.content) == null ? void 0 : D.data) == null ? void 0 : U.blocks,
2290
+ context: a,
2280
2291
  registeredComponents: r,
2281
2292
  linkComponent: e.linkComponent
2282
2293
  }
@@ -2287,67 +2298,67 @@ function ie(e) {
2287
2298
  }
2288
2299
  );
2289
2300
  }
2290
- function Mt(e) {
2291
- var i;
2292
- const [t, n] = R(
2293
- () => Ct({
2294
- canTrack: O(e.canTrack),
2301
+ function Qt(e) {
2302
+ var a;
2303
+ const [t, n] = k(
2304
+ () => Rt({
2305
+ canTrack: j(e.canTrack),
2295
2306
  content: e.content
2296
2307
  })
2297
2308
  );
2298
2309
  function o() {
2299
- var a;
2300
- return Rt(
2301
- H(e.content).map((l) => ({
2302
- id: l.testVariationId,
2303
- testRatio: l.testRatio
2310
+ var i;
2311
+ return Ft(
2312
+ O(e.content).map((u) => ({
2313
+ id: u.testVariationId,
2314
+ testRatio: u.testRatio
2304
2315
  })),
2305
- ((a = e.content) == null ? void 0 : a.id) || ""
2316
+ ((i = e.content) == null ? void 0 : i.id) || ""
2306
2317
  );
2307
2318
  }
2308
2319
  function r() {
2309
- return H(e.content).map((a) => `.variant-${a.testVariationId} { display: none; } `).join("");
2320
+ return O(e.content).map((i) => `.variant-${i.testVariationId} { display: none; } `).join("");
2310
2321
  }
2311
- function s() {
2312
- var a;
2322
+ function l() {
2323
+ var i;
2313
2324
  return t ? {
2314
2325
  ...e.content,
2315
- testVariationId: (a = e.content) == null ? void 0 : a.id
2316
- } : Te({
2326
+ testVariationId: (i = e.content) == null ? void 0 : i.id
2327
+ } : we({
2317
2328
  item: e.content,
2318
- canTrack: O(e.canTrack)
2329
+ canTrack: j(e.canTrack)
2319
2330
  });
2320
2331
  }
2321
- return W(() => {
2322
- }, []), /* @__PURE__ */ B(j, { children: [
2323
- !e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ B(j, { children: [
2324
- /* @__PURE__ */ T(
2332
+ return N(() => {
2333
+ }, []), /* @__PURE__ */ H(M, { children: [
2334
+ !e.isNestedRender && F !== "reactNative" ? /* @__PURE__ */ H(M, { children: [
2335
+ /* @__PURE__ */ S(
2325
2336
  q,
2326
2337
  {
2327
2338
  id: "builderio-init-variants-fns",
2328
- scriptStr: Et(),
2339
+ scriptStr: Pt(),
2329
2340
  nonce: e.nonce || ""
2330
2341
  }
2331
2342
  ),
2332
- de.includes(F) ? /* @__PURE__ */ T(
2343
+ fe.includes(F) ? /* @__PURE__ */ S(
2333
2344
  q,
2334
2345
  {
2335
2346
  id: "builderio-init-personalization-variants-fns",
2336
2347
  nonce: e.nonce || "",
2337
- scriptStr: qe()
2348
+ scriptStr: Ke()
2338
2349
  }
2339
2350
  ) : null
2340
2351
  ] }) : null,
2341
- t ? /* @__PURE__ */ B(j, { children: [
2342
- /* @__PURE__ */ T(
2343
- se,
2352
+ t ? /* @__PURE__ */ H(M, { children: [
2353
+ /* @__PURE__ */ S(
2354
+ ce,
2344
2355
  {
2345
2356
  id: "builderio-variants",
2346
2357
  styles: r(),
2347
2358
  nonce: e.nonce || ""
2348
2359
  }
2349
2360
  ),
2350
- /* @__PURE__ */ T(
2361
+ /* @__PURE__ */ S(
2351
2362
  q,
2352
2363
  {
2353
2364
  id: "builderio-variants-visibility",
@@ -2355,13 +2366,13 @@ function Mt(e) {
2355
2366
  nonce: e.nonce || ""
2356
2367
  }
2357
2368
  ),
2358
- (i = H(e.content)) == null ? void 0 : i.map((a) => /* @__PURE__ */ T(
2359
- ie,
2369
+ (a = O(e.content)) == null ? void 0 : a.map((i) => /* @__PURE__ */ S(
2370
+ se,
2360
2371
  {
2361
2372
  apiHost: e.apiHost,
2362
2373
  isNestedRender: e.isNestedRender,
2363
2374
  nonce: e.nonce,
2364
- content: a,
2375
+ content: i,
2365
2376
  showContent: !1,
2366
2377
  model: e.model,
2367
2378
  data: e.data,
@@ -2380,16 +2391,16 @@ function Mt(e) {
2380
2391
  contentWrapperProps: e.contentWrapperProps,
2381
2392
  trustedHosts: e.trustedHosts
2382
2393
  },
2383
- a.testVariationId
2394
+ i.testVariationId
2384
2395
  ))
2385
2396
  ] }) : null,
2386
- /* @__PURE__ */ T(
2387
- ie,
2397
+ /* @__PURE__ */ S(
2398
+ se,
2388
2399
  {
2389
2400
  apiHost: e.apiHost,
2390
2401
  nonce: e.nonce,
2391
2402
  isNestedRender: e.isNestedRender,
2392
- content: s(),
2403
+ content: l(),
2393
2404
  showContent: !0,
2394
2405
  model: e.model,
2395
2406
  data: e.data,
@@ -2411,18 +2422,18 @@ function Mt(e) {
2411
2422
  )
2412
2423
  ] });
2413
2424
  }
2414
- const nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2425
+ const ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2415
2426
  __proto__: null,
2416
- default: Mt
2427
+ default: Qt
2417
2428
  }, Symbol.toStringTag, { value: "Module" }));
2418
2429
  export {
2419
- Ue as DEFAULT_INDEX,
2430
+ qe as DEFAULT_INDEX,
2420
2431
  q as InlinedScript,
2421
- He as SDKS_REQUIRING_RESET_APPROACH,
2422
- Xt as checkShouldRenderVariants,
2423
- nn as contentVariants,
2424
- Gt as filterWithCustomTargeting,
2425
- Zt as getBlocksToRender,
2426
- en as getPersonalizationScript,
2427
- tn as getUpdateVisibilityStylesScript
2432
+ Me as SDKS_REQUIRING_RESET_APPROACH,
2433
+ nn as checkShouldRenderVariants,
2434
+ ln as contentVariants,
2435
+ tn as filterWithCustomTargeting,
2436
+ an as getBlocksToRender,
2437
+ on as getPersonalizationScript,
2438
+ rn as getUpdateVisibilityStylesScript
2428
2439
  };