@builder.io/sdk-react 1.0.27 → 1.0.28

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 (70) hide show
  1. package/lib/browser/blocks-exports.cjs +29 -29
  2. package/lib/browser/blocks-exports.mjs +1029 -784
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/{server-entry-60c3f2b2.cjs → server-entry-39389b02.cjs} +1 -1
  8. package/lib/browser/{server-entry-805a2c2a.js → server-entry-b2b0b732.js} +1 -1
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/accordion-a6b84a1a.cjs +1 -0
  12. package/lib/edge/accordion-e074c3c9.js +131 -0
  13. package/lib/edge/{blocks-a1399a78.js → blocks-bdc7647a.js} +198 -198
  14. package/lib/edge/{blocks-af5c8ecf.cjs → blocks-e4a4eaeb.cjs} +10 -10
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-0820a5bc.js → button-01688cf0.js} +2 -2
  18. package/lib/edge/{button-16076ac7.cjs → button-4bbf8eb4.cjs} +1 -1
  19. package/lib/edge/{columns-688cc205.js → columns-790f93f0.js} +3 -3
  20. package/lib/edge/{columns-6b8c03be.cjs → columns-c34d9298.cjs} +1 -1
  21. package/lib/edge/content-variants-705d1eae.cjs +134 -0
  22. package/lib/edge/{content-variants-efa4f81b.js → content-variants-843cb1a2.js} +304 -183
  23. package/lib/edge/{form-91166ed6.cjs → form-41fb03d8.cjs} +1 -1
  24. package/lib/edge/{form-cbe7d822.js → form-76a1e4e7.js} +3 -3
  25. package/lib/edge/{get-class-prop-name-47012c9c.cjs → get-class-prop-name-6fd942e6.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-4a1bad2b.js → get-class-prop-name-7cac71a7.js} +1 -1
  27. package/lib/edge/{img-14849a5b.js → img-0d46e11b.js} +1 -1
  28. package/lib/edge/{img-d3420f5d.cjs → img-630ec97f.cjs} +1 -1
  29. package/lib/edge/index.cjs +1 -1
  30. package/lib/edge/index.mjs +1 -1
  31. package/lib/edge/init.cjs +1 -1
  32. package/lib/edge/init.mjs +1 -1
  33. package/lib/edge/{input-534b9f95.js → input-35460b08.js} +1 -1
  34. package/lib/edge/{input-07becc4d.cjs → input-73e27d61.cjs} +1 -1
  35. package/lib/edge/{select-b05ef24f.js → select-6cf907d7.js} +1 -1
  36. package/lib/edge/{select-e576d7d0.cjs → select-a19b35fb.cjs} +1 -1
  37. package/lib/edge/{server-entry-ee324b22.cjs → server-entry-043747bd.cjs} +1 -1
  38. package/lib/edge/{server-entry-6aaf6054.js → server-entry-0dd5f119.js} +1 -1
  39. package/lib/edge/server-entry.cjs +1 -1
  40. package/lib/edge/server-entry.mjs +1 -1
  41. package/lib/edge/{slot-944437dd.js → slot-d4235700.js} +3 -3
  42. package/lib/edge/{slot-e139f9b4.cjs → slot-e0434389.cjs} +1 -1
  43. package/lib/edge/{symbol-f7f42446.cjs → symbol-e0e1a334.cjs} +1 -1
  44. package/lib/edge/{symbol-75d1c60d.js → symbol-e58cb0f1.js} +2 -2
  45. package/lib/edge/tabs-a92bfa51.cjs +1 -0
  46. package/lib/edge/{tabs-62e415e1.js → tabs-d5cfc172.js} +20 -20
  47. package/lib/node/blocks-exports.cjs +29 -29
  48. package/lib/node/blocks-exports.mjs +1029 -784
  49. package/lib/node/index.cjs +1 -1
  50. package/lib/node/index.mjs +2 -2
  51. package/lib/node/init.cjs +1 -1
  52. package/lib/node/init.mjs +2 -2
  53. package/lib/node/{node-runtime-e167306c.js → node-runtime-29789d59.js} +1 -1
  54. package/lib/node/{node-runtime-1bee7133.cjs → node-runtime-ee646b73.cjs} +1 -1
  55. package/lib/node/{server-entry-38fb2258.js → server-entry-0cd65827.js} +1 -1
  56. package/lib/node/{server-entry-db936548.cjs → server-entry-1111c8d8.cjs} +1 -1
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/package.json +1 -1
  60. package/types/blocks/accordion/accordion.d.ts +4 -0
  61. package/types/blocks/accordion/accordion.types.d.ts +12 -0
  62. package/types/blocks/accordion/component-info.d.ts +2 -0
  63. package/types/blocks/accordion/helpers.d.ts +1 -0
  64. package/types/blocks/accordion/index.d.ts +1 -0
  65. package/types/components/block/animator.d.ts +0 -1
  66. package/types/components/content-variants/content-variants.types.d.ts +1 -1
  67. package/types/constants/sdk-version.d.ts +1 -1
  68. package/types/functions/camel-to-kebab-case.d.ts +1 -1
  69. package/lib/edge/content-variants-4679172a.cjs +0 -134
  70. package/lib/edge/tabs-4860ef6d.cjs +0 -1
@@ -1,11 +1,11 @@
1
- import { jsx as f, jsxs as D, Fragment as M } from "react/jsx-runtime";
2
- import { lazy as k, useRef as oe, useState as I, useEffect as S } from "react";
3
- import { isBrowser as L, TARGET as Z, isEditing as F, registerInsertMenu as re, setupBrowserForEditing as se, createRegisterComponentMessage as le, getDefaultCanTrack as A, _track as O, isPreviewing as de, fetchOneEntry as ce, logger as ue, createEditorListener as me, fetch as pe, fastClone as ge, serializeComponentInfo as z, handleABTestingSync as fe } from "./server-entry-6aaf6054.js";
4
- import { Video as he, Button as be, Columns as ye, Fragment as xe, Image as ve, Section as Se, Symbol as Te, Text as Ie, BuilderContext as ke } from "./blocks-exports.mjs";
5
- import { triggerAnimation as Ce, evaluate as J, InlinedStyles as ee, ComponentsContext as we, Blocks as Ve } from "./blocks-a1399a78.js";
6
- import "./get-class-prop-name-4a1bad2b.js";
1
+ import { jsx as f, jsxs as $, Fragment as z } from "react/jsx-runtime";
2
+ import { lazy as T, useRef as le, useState as k, useEffect as S } from "react";
3
+ import { isBrowser as H, TARGET as te, isEditing as F, registerInsertMenu as se, setupBrowserForEditing as de, createRegisterComponentMessage as ce, getDefaultCanTrack as A, _track as J, isPreviewing as ue, fetchOneEntry as me, logger as pe, createEditorListener as ge, fetch as fe, fastClone as he, serializeComponentInfo as Y, handleABTestingSync as be } from "./server-entry-0dd5f119.js";
4
+ import { Video as ye, Button as xe, Columns as ve, Fragment as Se, Image as Te, Section as Ie, Symbol as ke, Text as Ce, BuilderContext as we } from "./blocks-exports.mjs";
5
+ import { triggerAnimation as Ve, evaluate as Q, InlinedStyles as ne, ComponentsContext as Re, Blocks as Ee } from "./blocks-bdc7647a.js";
6
+ import "./get-class-prop-name-7cac71a7.js";
7
7
  import "./dynamic-renderer-8b343325.js";
8
- const Re = {
8
+ const Fe = {
9
9
  name: "Core:Button",
10
10
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
11
11
  defaultStyles: {
@@ -38,7 +38,7 @@ const Re = {
38
38
  }],
39
39
  static: !0,
40
40
  noWrap: !0
41
- }, Ee = {
41
+ }, We = {
42
42
  // TODO: ways to statically preprocess JSON for references, functions, etc
43
43
  name: "Columns",
44
44
  isRSC: !0,
@@ -239,13 +239,13 @@ const Re = {
239
239
  helperText: "When stacking columns for mobile devices, reverse the ordering",
240
240
  advanced: !0
241
241
  }]
242
- }, Fe = {
242
+ }, Ae = {
243
243
  name: "Fragment",
244
244
  static: !0,
245
245
  hidden: !0,
246
246
  canHaveChildren: !0,
247
247
  noWrap: !0
248
- }, We = {
248
+ }, Pe = {
249
249
  name: "Image",
250
250
  static: !0,
251
251
  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",
@@ -268,13 +268,13 @@ const Re = {
268
268
  function n(i, o = 6e4) {
269
269
  return new Promise((m, h) => {
270
270
  const C = document.createElement("img");
271
- let T = !1;
271
+ let I = !1;
272
272
  C.onload = () => {
273
- T = !0, m(C);
273
+ I = !0, m(C);
274
274
  }, C.addEventListener("error", (w) => {
275
275
  console.warn("Image load failed", w.error), h(w.error);
276
276
  }), C.src = i, setTimeout(() => {
277
- T || h(new Error("Image load timed out"));
277
+ I || h(new Error("Image load timed out"));
278
278
  }, o);
279
279
  });
280
280
  }
@@ -345,7 +345,7 @@ const Re = {
345
345
  advanced: !0,
346
346
  defaultValue: 0.7041
347
347
  }]
348
- }, Ae = {
348
+ }, De = {
349
349
  name: "Core:Section",
350
350
  static: !0,
351
351
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -384,7 +384,7 @@ const Re = {
384
384
  }
385
385
  }
386
386
  }]
387
- }, Pe = {
387
+ }, Ue = {
388
388
  name: "Slot",
389
389
  isRSC: !0,
390
390
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -397,7 +397,7 @@ const Re = {
397
397
  required: !0,
398
398
  defaultValue: "children"
399
399
  }]
400
- }, Ue = k(() => import("./slot-944437dd.js")), De = {
400
+ }, Le = T(() => import("./slot-d4235700.js")), $e = {
401
401
  name: "Symbol",
402
402
  noWrap: !0,
403
403
  static: !0,
@@ -452,7 +452,7 @@ const Re = {
452
452
  text: "New tab"
453
453
  }
454
454
  }
455
- }, U = {
455
+ }, D = {
456
456
  "@type": "@builder.io/sdk:Element",
457
457
  responsiveStyles: {
458
458
  large: {
@@ -468,7 +468,7 @@ const Re = {
468
468
  text: "New tab content "
469
469
  }
470
470
  }
471
- }, Le = {
471
+ }, He = {
472
472
  name: "Builder: Tabs",
473
473
  inputs: [{
474
474
  name: "tabs",
@@ -483,7 +483,7 @@ const Re = {
483
483
  name: "content",
484
484
  type: "uiBlocks",
485
485
  hideFromUI: !0,
486
- defaultValue: [U]
486
+ defaultValue: [D]
487
487
  }],
488
488
  defaultValue: [{
489
489
  label: [{
@@ -496,7 +496,7 @@ const Re = {
496
496
  }
497
497
  }],
498
498
  content: [{
499
- ...U,
499
+ ...D,
500
500
  component: {
501
501
  name: "Text",
502
502
  options: {
@@ -515,7 +515,7 @@ const Re = {
515
515
  }
516
516
  }],
517
517
  content: [{
518
- ...U,
518
+ ...D,
519
519
  component: {
520
520
  name: "Text",
521
521
  options: {
@@ -565,7 +565,7 @@ const Re = {
565
565
  value: "flex-end"
566
566
  }]
567
567
  }]
568
- }, $e = k(() => import("./tabs-62e415e1.js")), He = {
568
+ }, Ne = T(() => import("./tabs-d5cfc172.js")), Be = {
569
569
  name: "Text",
570
570
  static: !0,
571
571
  isRSC: !0,
@@ -583,7 +583,125 @@ const Re = {
583
583
  height: "auto",
584
584
  textAlign: "center"
585
585
  }
586
- }, Ne = {
586
+ }, je = T(() => import("./accordion-e074c3c9.js")), U = {
587
+ "@type": "@builder.io/sdk:Element",
588
+ layerName: "Accordion item title",
589
+ responsiveStyles: {
590
+ large: {
591
+ marginTop: "10px",
592
+ position: "relative",
593
+ display: "flex",
594
+ alignItems: "stretch",
595
+ flexDirection: "column",
596
+ paddingBottom: "10px"
597
+ }
598
+ },
599
+ children: [{
600
+ "@type": "@builder.io/sdk:Element",
601
+ responsiveStyles: {
602
+ large: {
603
+ textAlign: "left",
604
+ display: "flex",
605
+ flexDirection: "column"
606
+ }
607
+ },
608
+ component: {
609
+ name: "Text",
610
+ options: {
611
+ text: "I am an accordion title. Click me!"
612
+ }
613
+ }
614
+ }]
615
+ }, L = {
616
+ "@type": "@builder.io/sdk:Element",
617
+ layerName: "Accordion item detail",
618
+ responsiveStyles: {
619
+ large: {
620
+ position: "relative",
621
+ display: "flex",
622
+ alignItems: "stretch",
623
+ flexDirection: "column",
624
+ marginTop: "10px",
625
+ paddingBottom: "10px"
626
+ }
627
+ },
628
+ children: [{
629
+ "@type": "@builder.io/sdk:Element",
630
+ responsiveStyles: {
631
+ large: {
632
+ paddingTop: "50px",
633
+ textAlign: "left",
634
+ display: "flex",
635
+ flexDirection: "column",
636
+ paddingBottom: "50px"
637
+ }
638
+ },
639
+ component: {
640
+ name: "Text",
641
+ options: {
642
+ text: "I am an accordion detail, hello!"
643
+ }
644
+ }
645
+ }]
646
+ }, qe = {
647
+ name: "Builder:Accordion",
648
+ canHaveChildren: !0,
649
+ image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
650
+ defaultStyles: {
651
+ display: "flex",
652
+ flexDirection: "column",
653
+ alignItems: "stretch"
654
+ },
655
+ inputs: [{
656
+ name: "items",
657
+ type: "list",
658
+ broadcast: !0,
659
+ subFields: [{
660
+ name: "title",
661
+ type: "uiBlocks",
662
+ hideFromUI: !0,
663
+ defaultValue: [U]
664
+ }, {
665
+ name: "detail",
666
+ type: "uiBlocks",
667
+ hideFromUI: !0,
668
+ defaultValue: [L]
669
+ }],
670
+ defaultValue: [{
671
+ title: [U],
672
+ detail: [L]
673
+ }, {
674
+ title: [U],
675
+ detail: [L]
676
+ }],
677
+ showIf: (e) => !e.get("useChildrenForItems")
678
+ }, {
679
+ name: "oneAtATime",
680
+ helperText: "Only allow opening one at a time (collapse all others when new item openned)",
681
+ type: "boolean",
682
+ defaultValue: !1
683
+ }, {
684
+ name: "grid",
685
+ helperText: "Display as a grid",
686
+ type: "boolean",
687
+ defaultValue: !1
688
+ }, {
689
+ name: "gridRowWidth",
690
+ helperText: "Display as a grid",
691
+ type: "string",
692
+ showIf: (e) => e.get("grid"),
693
+ defaultValue: "25%"
694
+ }, {
695
+ name: "useChildrenForItems",
696
+ type: "boolean",
697
+ helperText: "Use child elements for each slide, instead of the array. Useful for dynamically repeating items",
698
+ advanced: !0,
699
+ defaultValue: !1,
700
+ onChange: (e) => {
701
+ e.get("useChildrenForItems") === !0 && e.set("items", []);
702
+ }
703
+ }]
704
+ }, Ke = {
587
705
  name: "Custom Code",
588
706
  static: !0,
589
707
  requiredPermissions: ["editCode"],
@@ -605,7 +723,7 @@ const Re = {
605
723
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
606
724
  advanced: !0
607
725
  }]
608
- }, je = k(() => import("./custom-code-7786788e.js")), qe = {
726
+ }, Oe = T(() => import("./custom-code-7786788e.js")), _e = {
609
727
  name: "Embed",
610
728
  static: !0,
611
729
  inputs: [{
@@ -630,7 +748,7 @@ const Re = {
630
748
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
631
749
  hideFromUI: !0
632
750
  }]
633
- }, Be = k(() => import("./embed-5c1bbe12.js")), Ke = {
751
+ }, Me = T(() => import("./embed-5c1bbe12.js")), ze = {
634
752
  name: "Form:Form",
635
753
  // editableTags: ['builder-form-error']
636
754
  defaults: {
@@ -861,7 +979,7 @@ const Re = {
861
979
  }
862
980
  }
863
981
  }]
864
- }, _e = k(() => import("./form-cbe7d822.js")), Me = {
982
+ }, Je = T(() => import("./form-76a1e4e7.js")), Ye = {
865
983
  name: "Form:Input",
866
984
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
867
985
  inputs: [
@@ -912,7 +1030,7 @@ const Re = {
912
1030
  borderStyle: "solid",
913
1031
  borderColor: "#ccc"
914
1032
  }
915
- }, Oe = k(() => import("./input-534b9f95.js")), ze = {
1033
+ }, Qe = T(() => import("./input-35460b08.js")), Ge = {
916
1034
  name: "Form:Select",
917
1035
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
918
1036
  defaultStyles: {
@@ -954,7 +1072,7 @@ const Re = {
954
1072
  }],
955
1073
  static: !0,
956
1074
  noWrap: !0
957
- }, Je = k(() => import("./select-b05ef24f.js")), Ye = {
1075
+ }, Xe = T(() => import("./select-6cf907d7.js")), Ze = {
958
1076
  name: "Form:SubmitButton",
959
1077
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
960
1078
  defaultStyles: {
@@ -979,7 +1097,7 @@ const Re = {
979
1097
  // that only shows if advanced setting is flipped
980
1098
  // TODO: defaultChildren
981
1099
  // canHaveChildren: true,
982
- }, Qe = k(() => import("./submit-button-b48361a7.js")), Ge = {
1100
+ }, et = T(() => import("./submit-button-b48361a7.js")), tt = {
983
1101
  // friendlyName?
984
1102
  name: "Raw:Img",
985
1103
  hideFromInsertMenu: !0,
@@ -993,7 +1111,7 @@ const Re = {
993
1111
  }],
994
1112
  noWrap: !0,
995
1113
  static: !0
996
- }, Xe = k(() => import("./img-14849a5b.js")), Ze = {
1114
+ }, nt = T(() => import("./img-0d46e11b.js")), at = {
997
1115
  name: "Video",
998
1116
  canHaveChildren: !0,
999
1117
  defaultStyles: {
@@ -1074,37 +1192,31 @@ const Re = {
1074
1192
  defaultValue: !0,
1075
1193
  advanced: !0
1076
1194
  }]
1077
- }, et = () => [{
1078
- component: je,
1079
- ...Ne
1080
- }, {
1081
- component: Be,
1082
- ...qe
1083
- }, {
1084
- component: _e,
1195
+ }, it = () => [{
1196
+ component: Oe,
1085
1197
  ...Ke
1086
1198
  }, {
1087
- component: Oe,
1088
- ...Me
1199
+ component: Me,
1200
+ ..._e
1201
+ }, {
1202
+ component: Je,
1203
+ ...ze
1089
1204
  }, {
1090
1205
  component: Qe,
1091
1206
  ...Ye
1092
1207
  }, {
1093
- component: Je,
1094
- ...ze
1208
+ component: et,
1209
+ ...Ze
1095
1210
  }, {
1096
1211
  component: Xe,
1097
1212
  ...Ge
1098
1213
  }, {
1099
- component: he,
1100
- ...Ze
1101
- }], Y = () => [{
1102
- component: be,
1103
- ...Re
1214
+ component: nt,
1215
+ ...tt
1104
1216
  }, {
1105
1217
  component: ye,
1106
- ...Ee
1107
- }, {
1218
+ ...at
1219
+ }], G = () => [{
1108
1220
  component: xe,
1109
1221
  ...Fe
1110
1222
  }, {
@@ -1114,18 +1226,27 @@ const Re = {
1114
1226
  component: Se,
1115
1227
  ...Ae
1116
1228
  }, {
1117
- component: Ue,
1229
+ component: Te,
1118
1230
  ...Pe
1119
1231
  }, {
1120
- component: Te,
1232
+ component: Ie,
1121
1233
  ...De
1122
1234
  }, {
1123
- component: Ie,
1235
+ component: Le,
1236
+ ...Ue
1237
+ }, {
1238
+ component: ke,
1239
+ ...$e
1240
+ }, {
1241
+ component: Ce,
1242
+ ...Be
1243
+ }, {
1244
+ component: Ne,
1124
1245
  ...He
1125
1246
  }, {
1126
- component: $e,
1127
- ...Le
1128
- }, ...et()], tt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1247
+ component: je,
1248
+ ...qe
1249
+ }, ...it()], ot = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1129
1250
  function getAndSetVariantId() {
1130
1251
  function setCookie(name, value, days) {
1131
1252
  let expires = '';
@@ -1181,7 +1302,7 @@ const Re = {
1181
1302
  }).join('');
1182
1303
  styleEl.innerHTML = newStyleStr;
1183
1304
  }
1184
- }`, nt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1305
+ }`, rt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1185
1306
  if (!navigator.cookieEnabled) {
1186
1307
  return;
1187
1308
  }
@@ -1215,26 +1336,26 @@ const Re = {
1215
1336
  thisScriptEl?.remove();
1216
1337
  }
1217
1338
  return;
1218
- }`, te = "builderIoAbTest", ne = "builderIoRenderContent", W = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1339
+ }`, ae = "builderIoAbTest", ie = "builderIoRenderContent", W = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1219
1340
  ...t,
1220
1341
  testVariationId: t.id,
1221
1342
  id: e == null ? void 0 : e.id
1222
- })), at = ({
1343
+ })), lt = ({
1223
1344
  canTrack: e,
1224
1345
  content: t
1225
- }) => !(!(W(t).length > 0) || !e || L()), it = (e) => e === "react" || e === "reactNative", ae = it(Z), ot = () => `
1226
- window.${te} = ${tt}
1227
- window.${ne} = ${nt}
1228
- `, rt = (e, t) => `
1229
- window.${te}(
1230
- "${t}",${JSON.stringify(e)}, ${ae}
1231
- )`, st = ({
1346
+ }) => !(!(W(t).length > 0) || !e || H()), st = (e) => e === "react" || e === "reactNative", oe = st(te), dt = () => `
1347
+ window.${ae} = ${ot}
1348
+ window.${ie} = ${rt}
1349
+ `, ct = (e, t) => `
1350
+ window.${ae}(
1351
+ "${t}",${JSON.stringify(e)}, ${oe}
1352
+ )`, ut = ({
1232
1353
  contentId: e,
1233
1354
  variationId: t
1234
- }) => `window.${ne}(
1235
- "${t}", "${e}", ${ae}
1355
+ }) => `window.${ie}(
1356
+ "${t}", "${e}", ${oe}
1236
1357
  )`;
1237
- function $(e) {
1358
+ function N(e) {
1238
1359
  return /* @__PURE__ */ f(
1239
1360
  "script",
1240
1361
  {
@@ -1243,10 +1364,10 @@ function $(e) {
1243
1364
  }
1244
1365
  );
1245
1366
  }
1246
- function Q(e) {
1367
+ function X(e) {
1247
1368
  return Math.round(e * 1e3) / 1e3;
1248
1369
  }
1249
- const lt = (e, t, n = !0) => {
1370
+ const mt = (e, t, n = !0) => {
1250
1371
  if (!(e instanceof HTMLElement))
1251
1372
  return null;
1252
1373
  let a = n ? e : e.parentElement;
@@ -1257,35 +1378,35 @@ const lt = (e, t, n = !0) => {
1257
1378
  return a;
1258
1379
  } while (a = a.parentElement);
1259
1380
  return null;
1260
- }, dt = (e) => lt(e, (t) => {
1381
+ }, pt = (e) => mt(e, (t) => {
1261
1382
  const n = t.getAttribute("builder-id") || t.id;
1262
1383
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
1263
- }), G = ({
1384
+ }), Z = ({
1264
1385
  event: e,
1265
1386
  target: t
1266
1387
  }) => {
1267
- const n = t.getBoundingClientRect(), a = e.clientX - n.left, d = e.clientY - n.top, u = Q(a / n.width), i = Q(d / n.height);
1388
+ const n = t.getBoundingClientRect(), a = e.clientX - n.left, d = e.clientY - n.top, u = X(a / n.width), i = X(d / n.height);
1268
1389
  return {
1269
1390
  x: u,
1270
1391
  y: i
1271
1392
  };
1272
- }, ct = (e) => {
1273
- const t = e.target, n = t && dt(t), a = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1393
+ }, gt = (e) => {
1394
+ const t = e.target, n = t && pt(t), a = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1274
1395
  return {
1275
1396
  targetBuilderElement: a || void 0,
1276
1397
  metadata: {
1277
- targetOffset: t ? G({
1398
+ targetOffset: t ? Z({
1278
1399
  event: e,
1279
1400
  target: t
1280
1401
  }) : void 0,
1281
- builderTargetOffset: n ? G({
1402
+ builderTargetOffset: n ? Z({
1282
1403
  event: e,
1283
1404
  target: n
1284
1405
  }) : void 0,
1285
1406
  builderElementIndex: n && a ? [].slice.call(document.getElementsByClassName(a)).indexOf(n) : void 0
1286
1407
  }
1287
1408
  };
1288
- }, ut = (e) => {
1409
+ }, ft = (e) => {
1289
1410
  var u, i;
1290
1411
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], a = (i = e.fileUrl) != null ? i : (u = e == null ? void 0 : e.files) == null ? void 0 : u.regular;
1291
1412
  let d = "";
@@ -1311,15 +1432,15 @@ font-weight: ${o};
1311
1432
  `.trim());
1312
1433
  }
1313
1434
  return d;
1314
- }, mt = ({
1435
+ }, ht = ({
1315
1436
  customFonts: e
1316
1437
  }) => {
1317
1438
  var t;
1318
- return ((t = e == null ? void 0 : e.map((n) => ut(n))) == null ? void 0 : t.join(" ")) || "";
1319
- }, pt = ({
1439
+ return ((t = e == null ? void 0 : e.map((n) => ft(n))) == null ? void 0 : t.join(" ")) || "";
1440
+ }, bt = ({
1320
1441
  cssCode: e,
1321
1442
  contentId: t
1322
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", gt = `
1443
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", yt = `
1323
1444
  .builder-button {
1324
1445
  all: unset;
1325
1446
  }
@@ -1336,23 +1457,23 @@ font-weight: ${o};
1336
1457
  text-align: inherit;
1337
1458
  font-family: inherit;
1338
1459
  }
1339
- `, ft = (e) => e ? "" : gt, ht = (e) => `variant-${e}`;
1340
- function bt(e) {
1341
- var H, N, j, q, B, K, _;
1342
- const t = oe(null);
1460
+ `, xt = (e) => e ? "" : yt, vt = (e) => `variant-${e}`;
1461
+ function St(e) {
1462
+ var B, j, q, K, O, _, M;
1463
+ const t = le(null);
1343
1464
  function n(r) {
1344
- var p, l;
1465
+ var p, s;
1345
1466
  const c = {
1346
1467
  ...e.builderContextSignal.rootState,
1347
1468
  ...r
1348
1469
  };
1349
- e.builderContextSignal.rootSetState ? (l = (p = e.builderContextSignal).rootSetState) == null || l.call(p, c) : e.setBuilderContextSignal((s) => ({
1350
- ...s,
1470
+ e.builderContextSignal.rootSetState ? (s = (p = e.builderContextSignal).rootSetState) == null || s.call(p, c) : e.setBuilderContextSignal((l) => ({
1471
+ ...l,
1351
1472
  rootState: c
1352
1473
  }));
1353
1474
  }
1354
1475
  function a(r) {
1355
- var p, l, s, g, V;
1476
+ var p, s, l, g, V;
1356
1477
  const c = {
1357
1478
  ...e.builderContextSignal.content,
1358
1479
  ...r,
@@ -1361,9 +1482,9 @@ function bt(e) {
1361
1482
  ...r == null ? void 0 : r.data
1362
1483
  },
1363
1484
  meta: {
1364
- ...(l = e.builderContextSignal.content) == null ? void 0 : l.meta,
1485
+ ...(s = e.builderContextSignal.content) == null ? void 0 : s.meta,
1365
1486
  ...r == null ? void 0 : r.meta,
1366
- breakpoints: ((s = r == null ? void 0 : r.meta) == null ? void 0 : s.breakpoints) || ((V = (g = e.builderContextSignal.content) == null ? void 0 : g.meta) == null ? void 0 : V.breakpoints)
1487
+ breakpoints: ((l = r == null ? void 0 : r.meta) == null ? void 0 : l.breakpoints) || ((V = (g = e.builderContextSignal.content) == null ? void 0 : g.meta) == null ? void 0 : V.breakpoints)
1367
1488
  }
1368
1489
  };
1369
1490
  e.setBuilderContextSignal((b) => ({
@@ -1377,25 +1498,25 @@ function bt(e) {
1377
1498
  "aria-hidden": !0
1378
1499
  };
1379
1500
  }
1380
- const [u, i] = I(
1501
+ const [u, i] = k(
1381
1502
  () => e.contentWrapper || "div"
1382
1503
  );
1383
1504
  function o(r) {
1384
- return me({
1505
+ return ge({
1385
1506
  model: e.model,
1386
1507
  trustedHosts: e.trustedHosts,
1387
1508
  callbacks: {
1388
1509
  configureSdk: (c) => {
1389
- var s;
1390
- const { breakpoints: p, contentId: l } = c;
1391
- !l || l !== ((s = e.builderContextSignal.content) == null ? void 0 : s.id) || p && a({
1510
+ var l;
1511
+ const { breakpoints: p, contentId: s } = c;
1512
+ !s || s !== ((l = e.builderContextSignal.content) == null ? void 0 : l.id) || p && a({
1392
1513
  meta: {
1393
1514
  breakpoints: p
1394
1515
  }
1395
1516
  });
1396
1517
  },
1397
1518
  animation: (c) => {
1398
- Ce(c);
1519
+ Ve(c);
1399
1520
  },
1400
1521
  contentUpdate: (c) => {
1401
1522
  a(c);
@@ -1406,7 +1527,7 @@ function bt(e) {
1406
1527
  function m() {
1407
1528
  var c, p;
1408
1529
  const r = (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.jsCode;
1409
- r && J({
1530
+ r && Q({
1410
1531
  code: r,
1411
1532
  context: e.context || {},
1412
1533
  localState: void 0,
@@ -1418,35 +1539,35 @@ function bt(e) {
1418
1539
  enableCache: !1
1419
1540
  });
1420
1541
  }
1421
- const [h, C] = I(() => ({})), [T, w] = I(() => ({})), [R, E] = I(() => !1);
1542
+ const [h, C] = k(() => ({})), [I, w] = k(() => ({})), [R, E] = k(() => !1);
1422
1543
  function y(r) {
1423
1544
  var c, p;
1424
1545
  if (e.builderContextSignal.content) {
1425
- const l = (c = e.builderContextSignal.content) == null ? void 0 : c.testVariationId, s = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
1426
- O({
1546
+ const s = (c = e.builderContextSignal.content) == null ? void 0 : c.testVariationId, l = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
1547
+ J({
1427
1548
  type: "click",
1428
1549
  canTrack: A(e.canTrack),
1429
- contentId: s,
1550
+ contentId: l,
1430
1551
  apiKey: e.apiKey,
1431
- variationId: l !== s ? l : void 0,
1432
- ...ct(r),
1552
+ variationId: s !== l ? s : void 0,
1553
+ ...gt(r),
1433
1554
  unique: !R
1434
1555
  });
1435
1556
  }
1436
1557
  R || E(!0);
1437
1558
  }
1438
1559
  function x() {
1439
- var c, p, l;
1440
- const r = (l = (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.httpRequests) != null ? l : {};
1441
- Object.entries(r).forEach(([s, g]) => {
1442
- if (!g || T[s] || h[s] && !F())
1560
+ var c, p, s;
1561
+ const r = (s = (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.httpRequests) != null ? s : {};
1562
+ Object.entries(r).forEach(([l, g]) => {
1563
+ if (!g || I[l] || h[l] && !F())
1443
1564
  return;
1444
- T[s] = !0;
1565
+ I[l] = !0;
1445
1566
  const V = g.replace(
1446
1567
  /{{([^}]+)}}/g,
1447
- (b, ie) => String(
1448
- J({
1449
- code: ie,
1568
+ (b, re) => String(
1569
+ Q({
1570
+ code: re,
1450
1571
  context: e.context || {},
1451
1572
  localState: void 0,
1452
1573
  rootState: e.builderContextSignal.rootState,
@@ -1455,14 +1576,14 @@ function bt(e) {
1455
1576
  })
1456
1577
  )
1457
1578
  );
1458
- pe(V).then((b) => b.json()).then((b) => {
1579
+ fe(V).then((b) => b.json()).then((b) => {
1459
1580
  n({
1460
- [s]: b
1461
- }), h[s] = !0;
1581
+ [l]: b
1582
+ }), h[l] = !0;
1462
1583
  }).catch((b) => {
1463
1584
  console.error("error fetching dynamic data", g, b);
1464
1585
  }).finally(() => {
1465
- T[s] = !1;
1586
+ I[l] = !1;
1466
1587
  });
1467
1588
  });
1468
1589
  }
@@ -1472,7 +1593,7 @@ function bt(e) {
1472
1593
  "builder:component:stateChange",
1473
1594
  {
1474
1595
  detail: {
1475
- state: ge(e.builderContextSignal.rootState),
1596
+ state: he(e.builderContextSignal.rootState),
1476
1597
  ref: {
1477
1598
  name: e.model
1478
1599
  }
@@ -1483,8 +1604,8 @@ function bt(e) {
1483
1604
  }
1484
1605
  return S(() => {
1485
1606
  var r, c;
1486
- if (L()) {
1487
- if (F() && (window.addEventListener("message", o), re(), se({
1607
+ if (H()) {
1608
+ if (F() && (window.addEventListener("message", o), se(), de({
1488
1609
  ...e.locale ? {
1489
1610
  locale: e.locale
1490
1611
  } : {},
@@ -1496,28 +1617,28 @@ function bt(e) {
1496
1617
  } : {}
1497
1618
  }), Object.values(
1498
1619
  e.builderContextSignal.componentInfos
1499
- ).forEach((l) => {
1620
+ ).forEach((s) => {
1500
1621
  var g;
1501
- const s = le(l);
1502
- (g = window.parent) == null || g.postMessage(s, "*");
1622
+ const l = ce(s);
1623
+ (g = window.parent) == null || g.postMessage(l, "*");
1503
1624
  }), window.addEventListener(
1504
1625
  "builder:component:stateChangeListenerActivated",
1505
1626
  v
1506
1627
  )), e.builderContextSignal.content && A(e.canTrack)) {
1507
- const l = (r = e.builderContextSignal.content) == null ? void 0 : r.testVariationId, s = (c = e.builderContextSignal.content) == null ? void 0 : c.id, g = e.apiKey;
1508
- O({
1628
+ const s = (r = e.builderContextSignal.content) == null ? void 0 : r.testVariationId, l = (c = e.builderContextSignal.content) == null ? void 0 : c.id, g = e.apiKey;
1629
+ J({
1509
1630
  type: "impression",
1510
1631
  canTrack: !0,
1511
- contentId: s,
1632
+ contentId: l,
1512
1633
  apiKey: g,
1513
- variationId: l !== s ? l : void 0
1634
+ variationId: s !== l ? s : void 0
1514
1635
  });
1515
1636
  }
1516
- if (de() && !F()) {
1517
- const l = new URL(location.href).searchParams, s = l.get("builder.preview"), g = l.get(
1518
- `builder.preview.${s}`
1519
- ), V = l.get("apiKey") || l.get("builder.space");
1520
- s === e.model && V === e.apiKey && (!e.content || g === e.content.id) && ce({
1637
+ if (ue() && !F()) {
1638
+ const s = new URL(location.href).searchParams, l = s.get("builder.preview"), g = s.get(
1639
+ `builder.preview.${l}`
1640
+ ), V = s.get("apiKey") || s.get("builder.space");
1641
+ l === e.model && V === e.apiKey && (!e.content || g === e.content.id) && me({
1521
1642
  model: e.model,
1522
1643
  apiKey: e.apiKey,
1523
1644
  apiVersion: e.builderContextSignal.apiVersion
@@ -1527,16 +1648,16 @@ function bt(e) {
1527
1648
  }
1528
1649
  }
1529
1650
  }, []), S(() => {
1530
- e.apiKey || ue.error(
1531
- "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
1651
+ e.apiKey || pe.error(
1652
+ "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
1532
1653
  ), m(), x(), v();
1533
1654
  }, []), S(() => {
1534
1655
  e.content && a(e.content);
1535
1656
  }, [e.content]), S(() => {
1536
1657
  m();
1537
- }, [(N = (H = e.builderContextSignal.content) == null ? void 0 : H.data) == null ? void 0 : N.jsCode]), S(() => {
1658
+ }, [(j = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : j.jsCode]), S(() => {
1538
1659
  x();
1539
- }, [(q = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : q.httpRequests]), S(() => {
1660
+ }, [(K = (q = e.builderContextSignal.content) == null ? void 0 : q.data) == null ? void 0 : K.httpRequests]), S(() => {
1540
1661
  v();
1541
1662
  }, [e.builderContextSignal.rootState]), S(() => {
1542
1663
  e.data && n(e.data);
@@ -1545,42 +1666,42 @@ function bt(e) {
1545
1666
  locale: e.locale
1546
1667
  });
1547
1668
  }, [e.locale]), S(() => () => {
1548
- L() && (window.removeEventListener("message", o), window.removeEventListener(
1669
+ H() && (window.removeEventListener("message", o), window.removeEventListener(
1549
1670
  "builder:component:stateChangeListenerActivated",
1550
1671
  v
1551
1672
  ));
1552
- }, []), /* @__PURE__ */ f(ke.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ f(
1673
+ }, []), /* @__PURE__ */ f(we.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ f(
1553
1674
  u,
1554
1675
  {
1555
1676
  ref: t,
1556
1677
  onClick: (r) => y(r),
1557
- "builder-content-id": (B = e.builderContextSignal.content) == null ? void 0 : B.id,
1678
+ "builder-content-id": (O = e.builderContextSignal.content) == null ? void 0 : O.id,
1558
1679
  "builder-model": e.model,
1559
1680
  ...d(),
1560
1681
  ...e.contentWrapperProps,
1561
- className: ht(
1562
- ((K = e.content) == null ? void 0 : K.testVariationId) || ((_ = e.content) == null ? void 0 : _.id)
1682
+ className: vt(
1683
+ ((_ = e.content) == null ? void 0 : _.testVariationId) || ((M = e.content) == null ? void 0 : M.id)
1563
1684
  ),
1564
1685
  children: e.children
1565
1686
  }
1566
1687
  ) : null });
1567
1688
  }
1568
- function yt(e) {
1569
- const [t, n] = I(
1689
+ function Tt(e) {
1690
+ const [t, n] = k(
1570
1691
  () => `
1571
- ${pt({
1692
+ ${bt({
1572
1693
  cssCode: e.cssCode,
1573
1694
  contentId: e.contentId
1574
1695
  })}
1575
- ${mt({
1696
+ ${ht({
1576
1697
  customFonts: e.customFonts
1577
1698
  })}
1578
- ${ft(e.isNestedRender)}
1699
+ ${xt(e.isNestedRender)}
1579
1700
  `.trim()
1580
1701
  );
1581
- return /* @__PURE__ */ f(ee, { id: "builderio-content", styles: t });
1702
+ return /* @__PURE__ */ f(ne, { id: "builderio-content", styles: t });
1582
1703
  }
1583
- const xt = ({
1704
+ const It = ({
1584
1705
  content: e,
1585
1706
  data: t,
1586
1707
  locale: n
@@ -1597,7 +1718,7 @@ const xt = ({
1597
1718
  locale: n
1598
1719
  } : {}
1599
1720
  };
1600
- }, vt = ({
1721
+ }, kt = ({
1601
1722
  content: e,
1602
1723
  data: t
1603
1724
  }) => e ? {
@@ -1608,12 +1729,12 @@ const xt = ({
1608
1729
  },
1609
1730
  meta: e == null ? void 0 : e.meta
1610
1731
  } : void 0;
1611
- function X(e) {
1612
- var m, h, C, T, w, R, E;
1613
- const [t, n] = I(
1732
+ function ee(e) {
1733
+ var m, h, C, I, w, R, E;
1734
+ const [t, n] = k(
1614
1735
  () => {
1615
1736
  var y, x;
1616
- return st({
1737
+ return ut({
1617
1738
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
1618
1739
  variationId: (y = e.content) == null ? void 0 : y.testVariationId,
1619
1740
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -1627,27 +1748,27 @@ function X(e) {
1627
1748
  rootState: y
1628
1749
  }));
1629
1750
  }
1630
- const [d, u] = I(
1751
+ const [d, u] = k(
1631
1752
  () => [
1632
- ...Y(),
1753
+ ...G(),
1633
1754
  ...e.customComponents || []
1634
1755
  ].reduce(
1635
1756
  (y, { component: x, ...v }) => ({
1636
1757
  ...y,
1637
1758
  [v.name]: {
1638
1759
  component: x,
1639
- ...z(v)
1760
+ ...Y(v)
1640
1761
  }
1641
1762
  }),
1642
1763
  {}
1643
1764
  )
1644
- ), [i, o] = I(() => ({
1645
- content: vt({
1765
+ ), [i, o] = k(() => ({
1766
+ content: kt({
1646
1767
  content: e.content,
1647
1768
  data: e.data
1648
1769
  }),
1649
1770
  localState: void 0,
1650
- rootState: xt({
1771
+ rootState: It({
1651
1772
  content: e.content,
1652
1773
  data: e.data,
1653
1774
  locale: e.locale
@@ -1657,12 +1778,12 @@ function X(e) {
1657
1778
  apiKey: e.apiKey,
1658
1779
  apiVersion: e.apiVersion,
1659
1780
  componentInfos: [
1660
- ...Y(),
1781
+ ...G(),
1661
1782
  ...e.customComponents || []
1662
1783
  ].reduce(
1663
1784
  (y, { component: x, ...v }) => ({
1664
1785
  ...y,
1665
- [v.name]: z(v)
1786
+ [v.name]: Y(v)
1666
1787
  }),
1667
1788
  {}
1668
1789
  ),
@@ -1671,13 +1792,13 @@ function X(e) {
1671
1792
  BlocksWrapperProps: e.blocksWrapperProps || {}
1672
1793
  }));
1673
1794
  return /* @__PURE__ */ f(
1674
- we.Provider,
1795
+ Re.Provider,
1675
1796
  {
1676
1797
  value: {
1677
1798
  registeredComponents: d
1678
1799
  },
1679
- children: /* @__PURE__ */ D(
1680
- bt,
1800
+ children: /* @__PURE__ */ $(
1801
+ St,
1681
1802
  {
1682
1803
  content: e.content,
1683
1804
  data: e.data,
@@ -1696,23 +1817,23 @@ function X(e) {
1696
1817
  setBuilderContextSignal: o,
1697
1818
  children: [
1698
1819
  e.isSsrAbTest ? /* @__PURE__ */ f(
1699
- $,
1820
+ N,
1700
1821
  {
1701
1822
  id: "builderio-variant-visibility",
1702
1823
  scriptStr: t
1703
1824
  }
1704
1825
  ) : null,
1705
1826
  /* @__PURE__ */ f(
1706
- yt,
1827
+ Tt,
1707
1828
  {
1708
1829
  isNestedRender: e.isNestedRender,
1709
1830
  contentId: (m = i.content) == null ? void 0 : m.id,
1710
1831
  cssCode: (C = (h = i.content) == null ? void 0 : h.data) == null ? void 0 : C.cssCode,
1711
- customFonts: (w = (T = i.content) == null ? void 0 : T.data) == null ? void 0 : w.customFonts
1832
+ customFonts: (w = (I = i.content) == null ? void 0 : I.data) == null ? void 0 : w.customFonts
1712
1833
  }
1713
1834
  ),
1714
1835
  /* @__PURE__ */ f(
1715
- Ve,
1836
+ Ee,
1716
1837
  {
1717
1838
  blocks: (E = (R = i.content) == null ? void 0 : R.data) == null ? void 0 : E.blocks,
1718
1839
  context: i,
@@ -1726,17 +1847,17 @@ function X(e) {
1726
1847
  }
1727
1848
  );
1728
1849
  }
1729
- function Rt(e) {
1850
+ function At(e) {
1730
1851
  var i;
1731
- const [t, n] = I(
1732
- () => at({
1852
+ const [t, n] = k(
1853
+ () => lt({
1733
1854
  canTrack: A(e.canTrack),
1734
1855
  content: e.content
1735
1856
  })
1736
1857
  );
1737
1858
  function a() {
1738
1859
  var o;
1739
- return rt(
1860
+ return ct(
1740
1861
  W(e.content).map((m) => ({
1741
1862
  id: m.testVariationId,
1742
1863
  testRatio: m.testRatio
@@ -1752,37 +1873,37 @@ function Rt(e) {
1752
1873
  return t ? {
1753
1874
  ...e.content,
1754
1875
  testVariationId: (o = e.content) == null ? void 0 : o.id
1755
- } : fe({
1876
+ } : be({
1756
1877
  item: e.content,
1757
1878
  canTrack: A(e.canTrack)
1758
1879
  });
1759
1880
  }
1760
1881
  return S(() => {
1761
- }, []), /* @__PURE__ */ D(M, { children: [
1762
- !e.isNestedRender && Z !== "reactNative" ? /* @__PURE__ */ f(
1763
- $,
1882
+ }, []), /* @__PURE__ */ $(z, { children: [
1883
+ !e.isNestedRender && te !== "reactNative" ? /* @__PURE__ */ f(
1884
+ N,
1764
1885
  {
1765
1886
  id: "builderio-init-variants-fns",
1766
- scriptStr: ot()
1887
+ scriptStr: dt()
1767
1888
  }
1768
1889
  ) : null,
1769
- t ? /* @__PURE__ */ D(M, { children: [
1890
+ t ? /* @__PURE__ */ $(z, { children: [
1770
1891
  /* @__PURE__ */ f(
1771
- ee,
1892
+ ne,
1772
1893
  {
1773
1894
  id: "builderio-variants",
1774
1895
  styles: d()
1775
1896
  }
1776
1897
  ),
1777
1898
  /* @__PURE__ */ f(
1778
- $,
1899
+ N,
1779
1900
  {
1780
1901
  id: "builderio-variants-visibility",
1781
1902
  scriptStr: a()
1782
1903
  }
1783
1904
  ),
1784
1905
  (i = W(e.content)) == null ? void 0 : i.map((o) => /* @__PURE__ */ f(
1785
- X,
1906
+ ee,
1786
1907
  {
1787
1908
  isNestedRender: e.isNestedRender,
1788
1909
  content: o,
@@ -1808,7 +1929,7 @@ function Rt(e) {
1808
1929
  ))
1809
1930
  ] }) : null,
1810
1931
  /* @__PURE__ */ f(
1811
- X,
1932
+ ee,
1812
1933
  {
1813
1934
  isNestedRender: e.isNestedRender,
1814
1935
  content: u(),
@@ -1834,5 +1955,5 @@ function Rt(e) {
1834
1955
  ] });
1835
1956
  }
1836
1957
  export {
1837
- Rt as default
1958
+ At as default
1838
1959
  };