@builder.io/sdk-react 1.1.2 → 2.0.1

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 (71) hide show
  1. package/lib/browser/blocks-exports.cjs +24 -24
  2. package/lib/browser/blocks-exports.mjs +524 -555
  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-754040fc.cjs → server-entry-29c5c31c.cjs} +1 -1
  8. package/lib/browser/{server-entry-ed2ca723.js → server-entry-f9067095.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-3e3c0eb7.js → accordion-4a70912d.js} +1 -1
  12. package/lib/edge/{accordion-dfb7894d.cjs → accordion-6ad2cec7.cjs} +1 -1
  13. package/lib/edge/{blocks-e68d1b90.cjs → blocks-0bd38a83.cjs} +13 -13
  14. package/lib/edge/blocks-exports.cjs +1 -1
  15. package/lib/edge/blocks-exports.mjs +4 -3
  16. package/lib/edge/{blocks-b47dedc1.js → blocks-fedde8d2.js} +697 -685
  17. package/lib/edge/{button-03e45213.js → button-af35e8de.js} +2 -2
  18. package/lib/edge/{button-eacbdcad.cjs → button-f6426eff.cjs} +1 -1
  19. package/lib/edge/{columns-858746ca.js → columns-1065c0ae.js} +59 -52
  20. package/lib/edge/columns-f607250b.cjs +28 -0
  21. package/lib/edge/{content-variants-c4559dfb.js → content-variants-3d57a82f.js} +183 -235
  22. package/lib/edge/content-variants-773afb9f.cjs +134 -0
  23. package/lib/edge/{form-6f2d1077.js → form-0a58d0e4.js} +3 -3
  24. package/lib/edge/{form-241a699e.cjs → form-5762c22a.cjs} +1 -1
  25. package/lib/edge/{get-class-prop-name-87b96bca.js → get-class-prop-name-268b0f61.js} +1 -1
  26. package/lib/edge/{get-class-prop-name-d471c28c.cjs → get-class-prop-name-3061c329.cjs} +1 -1
  27. package/lib/edge/{img-be88cdbc.js → img-252c9967.js} +1 -1
  28. package/lib/edge/{img-a7bbfda3.cjs → img-59bb70c7.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-f1fbe38b.cjs → input-2163d4dc.cjs} +1 -1
  34. package/lib/edge/{input-22d61335.js → input-7ae243e2.js} +1 -1
  35. package/lib/edge/{select-c58f67e3.cjs → select-39231177.cjs} +1 -1
  36. package/lib/edge/{select-6371cc39.js → select-cfa0eb8e.js} +1 -1
  37. package/lib/edge/{server-entry-048c3043.cjs → server-entry-4750de9c.cjs} +1 -1
  38. package/lib/edge/{server-entry-97c99c4d.js → server-entry-681e8e79.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-7666ffaf.cjs → slot-69da8c56.cjs} +1 -1
  42. package/lib/edge/{slot-e6c31d6c.js → slot-7c61542f.js} +3 -3
  43. package/lib/edge/symbol-4a8a6cda.js +85 -0
  44. package/lib/edge/symbol-bd999a19.cjs +1 -0
  45. package/lib/edge/{tabs-02f569d1.cjs → tabs-3d0e242e.cjs} +1 -1
  46. package/lib/edge/{tabs-20114ebb.js → tabs-c3ff0c70.js} +3 -3
  47. package/lib/node/blocks-exports.cjs +25 -25
  48. package/lib/node/blocks-exports.mjs +518 -549
  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-819e5520.cjs → node-runtime-3bfd8465.cjs} +1 -1
  54. package/lib/node/{node-runtime-36670c0e.js → node-runtime-78262e65.js} +1 -1
  55. package/lib/node/{server-entry-2910f126.js → server-entry-5f9f100f.js} +1 -1
  56. package/lib/node/{server-entry-cc7910d7.cjs → server-entry-63058f3f.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 +15 -15
  60. package/types/components/block/block.helpers.d.ts +8 -8
  61. package/types/components/content/components/styles.d.ts +2 -1
  62. package/types/components/content-variants/content-variants.types.d.ts +4 -0
  63. package/types/components/inlined-script.d.ts +2 -1
  64. package/types/components/inlined-styles.d.ts +2 -1
  65. package/types/constants/sdk-version.d.ts +1 -1
  66. package/types/context/types.d.ts +1 -0
  67. package/types/types/builder-props.d.ts +3 -0
  68. package/lib/edge/columns-26be75b9.cjs +0 -28
  69. package/lib/edge/content-variants-0c5ae6d6.cjs +0 -134
  70. package/lib/edge/symbol-8e3447aa.js +0 -84
  71. package/lib/edge/symbol-a0838c62.cjs +0 -1
@@ -1,11 +1,11 @@
1
- import { jsx as g, jsxs as U, Fragment as z } from "react/jsx-runtime";
2
- import { lazy as y, useRef as le, useState as T, useEffect as x } from "react";
3
- import { isBrowser as H, TARGET as te, isEditing as F, registerInsertMenu as se, setupBrowserForEditing as de, createRegisterComponentMessage as ue, getDefaultCanTrack as B, _track as J, isPreviewing as ce, fetchOneEntry as me, logger as pe, createEditorListener as fe, fetch as ge, fastClone as be, serializeComponentInfo as Y, handleABTestingSync as he } from "./server-entry-97c99c4d.js";
4
- import { Video as xe, Button as ye, Columns as ve, Fragment as Se, Image as Ce, Section as ke, Symbol as Te, Text as Ie, 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-b47dedc1.js";
6
- import "./get-class-prop-name-87b96bca.js";
1
+ import { jsx as f, jsxs as L, Fragment as z } from "react/jsx-runtime";
2
+ import { lazy as y, useRef as le, useState as C, useEffect as x } from "react";
3
+ import { isBrowser as H, TARGET as te, isEditing as F, registerInsertMenu as se, setupBrowserForEditing as de, createRegisterComponentMessage as ce, getDefaultCanTrack as W, _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-681e8e79.js";
4
+ import { Video as xe, Button as ye, Columns as ve, Fragment as Se, Image as Te, Section as ke, Symbol as Ce, Text as Ie, 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-fedde8d2.js";
6
+ import "./get-class-prop-name-268b0f61.js";
7
7
  import "./dynamic-renderer-8b343325.js";
8
- const W = {
8
+ const A = {
9
9
  "@type": "@builder.io/sdk:Element",
10
10
  layerName: "Accordion item title",
11
11
  responsiveStyles: {
@@ -34,7 +34,7 @@ const W = {
34
34
  }
35
35
  }
36
36
  }]
37
- }, A = {
37
+ }, B = {
38
38
  "@type": "@builder.io/sdk:Element",
39
39
  layerName: "Accordion item detail",
40
40
  responsiveStyles: {
@@ -82,19 +82,19 @@ const W = {
82
82
  name: "title",
83
83
  type: "uiBlocks",
84
84
  hideFromUI: !0,
85
- defaultValue: [W]
85
+ defaultValue: [A]
86
86
  }, {
87
87
  name: "detail",
88
88
  type: "uiBlocks",
89
89
  hideFromUI: !0,
90
- defaultValue: [A]
90
+ defaultValue: [B]
91
91
  }],
92
92
  defaultValue: [{
93
- title: [W],
94
- detail: [A]
93
+ title: [A],
94
+ detail: [B]
95
95
  }, {
96
- title: [W],
97
- detail: [A]
96
+ title: [A],
97
+ detail: [B]
98
98
  }],
99
99
  showIf: (e) => !e.get("useChildrenForItems")
100
100
  }, {
@@ -129,7 +129,7 @@ const W = {
129
129
  builderComponents: !0,
130
130
  builderLinkComponent: !0
131
131
  }
132
- }, Pe = y(() => import("./accordion-3e3c0eb7.js")), Be = {
132
+ }, Pe = y(() => import("./accordion-4a70912d.js")), We = {
133
133
  name: "Core:Button",
134
134
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
135
135
  defaultStyles: {
@@ -163,12 +163,9 @@ const W = {
163
163
  static: !0,
164
164
  noWrap: !0,
165
165
  shouldReceiveBuilderProps: {
166
- builderBlock: !1,
167
- builderContext: !1,
168
- builderComponents: !1,
169
166
  builderLinkComponent: !0
170
167
  }
171
- }, We = {
168
+ }, Ae = {
172
169
  // TODO: ways to statically preprocess JSON for references, functions, etc
173
170
  name: "Columns",
174
171
  isRSC: !0,
@@ -347,7 +344,7 @@ const W = {
347
344
  });
348
345
  }
349
346
  const n = e.get("columns");
350
- Array.isArray(n) && n.find((d) => d.get("width")) && (n.find((c) => !c.get("width")) || n.reduce((o, m) => o + m.get("width"), 0) !== 100) && t();
347
+ Array.isArray(n) && n.find((d) => d.get("width")) && (n.find((u) => !u.get("width")) || n.reduce((o, m) => o + m.get("width"), 0) !== 100) && t();
351
348
  }
352
349
  }, {
353
350
  name: "space",
@@ -375,19 +372,13 @@ const W = {
375
372
  builderComponents: !0,
376
373
  builderLinkComponent: !0
377
374
  }
378
- }, Ae = {
379
- shouldReceiveBuilderProps: {
380
- builderBlock: !1,
381
- builderContext: !1,
382
- builderComponents: !1,
383
- builderLinkComponent: !1
384
- },
375
+ }, Be = {
385
376
  name: "Fragment",
386
377
  static: !0,
387
378
  hidden: !0,
388
379
  canHaveChildren: !0,
389
380
  noWrap: !0
390
- }, Le = {
381
+ }, De = {
391
382
  name: "Image",
392
383
  static: !0,
393
384
  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",
@@ -408,25 +399,25 @@ const W = {
408
399
  onChange: (e) => {
409
400
  e.delete("srcset"), e.delete("noWebp");
410
401
  function n(a, o = 6e4) {
411
- return new Promise((m, b) => {
402
+ return new Promise((m, h) => {
412
403
  const I = document.createElement("img");
413
404
  let k = !1;
414
405
  I.onload = () => {
415
406
  k = !0, m(I);
416
407
  }, I.addEventListener("error", (w) => {
417
- console.warn("Image load failed", w.error), b(w.error);
408
+ console.warn("Image load failed", w.error), h(w.error);
418
409
  }), I.src = a, setTimeout(() => {
419
- k || b(new Error("Image load timed out"));
410
+ k || h(new Error("Image load timed out"));
420
411
  }, o);
421
412
  });
422
413
  }
423
414
  function i(a) {
424
415
  return Math.round(a * 1e3) / 1e3;
425
416
  }
426
- const d = e.get("image"), c = e.get("aspectRatio");
417
+ const d = e.get("image"), u = e.get("aspectRatio");
427
418
  if (fetch(d).then((a) => a.blob()).then((a) => {
428
419
  a.type.includes("svg") && e.set("noWebp", !0);
429
- }), d && (!c || c === 0.7041))
420
+ }), d && (!u || u === 0.7041))
430
421
  return n(d).then((a) => {
431
422
  const o = e.get("aspectRatio");
432
423
  e.get("image") === d && (!o || o === 0.7041) && a.width && a.height && (e.set("aspectRatio", i(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
@@ -493,18 +484,9 @@ const W = {
493
484
  defaultValue: 0.7041
494
485
  }],
495
486
  shouldReceiveBuilderProps: {
496
- builderBlock: !0,
497
- builderContext: !1,
498
- builderComponents: !1,
499
- builderLinkComponent: !1
487
+ builderBlock: !0
500
488
  }
501
- }, De = {
502
- shouldReceiveBuilderProps: {
503
- builderBlock: !1,
504
- builderContext: !1,
505
- builderComponents: !1,
506
- builderLinkComponent: !1
507
- },
489
+ }, Ue = {
508
490
  name: "Core:Section",
509
491
  static: !0,
510
492
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -543,7 +525,7 @@ const W = {
543
525
  }
544
526
  }
545
527
  }]
546
- }, Ue = {
528
+ }, Le = {
547
529
  name: "Slot",
548
530
  isRSC: !0,
549
531
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -557,12 +539,9 @@ const W = {
557
539
  defaultValue: "children"
558
540
  }],
559
541
  shouldReceiveBuilderProps: {
560
- builderBlock: !1,
561
- builderContext: !0,
562
- builderComponents: !1,
563
- builderLinkComponent: !1
542
+ builderContext: !0
564
543
  }
565
- }, He = y(() => import("./slot-e6c31d6c.js")), $e = {
544
+ }, He = y(() => import("./slot-7c61542f.js")), $e = {
566
545
  name: "Symbol",
567
546
  noWrap: !0,
568
547
  static: !0,
@@ -601,7 +580,7 @@ const W = {
601
580
  builderComponents: !0,
602
581
  builderLinkComponent: !0
603
582
  }
604
- }, L = {
583
+ }, D = {
605
584
  "@type": "@builder.io/sdk:Element",
606
585
  responsiveStyles: {
607
586
  large: {
@@ -623,7 +602,7 @@ const W = {
623
602
  text: "New tab"
624
603
  }
625
604
  }
626
- }, D = {
605
+ }, U = {
627
606
  "@type": "@builder.io/sdk:Element",
628
607
  responsiveStyles: {
629
608
  large: {
@@ -649,16 +628,16 @@ const W = {
649
628
  name: "label",
650
629
  type: "uiBlocks",
651
630
  hideFromUI: !0,
652
- defaultValue: [L]
631
+ defaultValue: [D]
653
632
  }, {
654
633
  name: "content",
655
634
  type: "uiBlocks",
656
635
  hideFromUI: !0,
657
- defaultValue: [D]
636
+ defaultValue: [U]
658
637
  }],
659
638
  defaultValue: [{
660
639
  label: [{
661
- ...L,
640
+ ...D,
662
641
  component: {
663
642
  name: "Text",
664
643
  options: {
@@ -667,7 +646,7 @@ const W = {
667
646
  }
668
647
  }],
669
648
  content: [{
670
- ...D,
649
+ ...U,
671
650
  component: {
672
651
  name: "Text",
673
652
  options: {
@@ -677,7 +656,7 @@ const W = {
677
656
  }]
678
657
  }, {
679
658
  label: [{
680
- ...L,
659
+ ...D,
681
660
  component: {
682
661
  name: "Text",
683
662
  options: {
@@ -686,7 +665,7 @@ const W = {
686
665
  }
687
666
  }],
688
667
  content: [{
689
- ...D,
668
+ ...U,
690
669
  component: {
691
670
  name: "Text",
692
671
  options: {
@@ -742,12 +721,9 @@ const W = {
742
721
  builderComponents: !0,
743
722
  builderLinkComponent: !0
744
723
  }
745
- }, qe = y(() => import("./tabs-20114ebb.js")), je = {
724
+ }, qe = y(() => import("./tabs-c3ff0c70.js")), je = {
746
725
  shouldReceiveBuilderProps: {
747
- builderBlock: !1,
748
- builderContext: !1,
749
- builderComponents: !1,
750
- builderLinkComponent: !1
726
+ builderBlock: !1
751
727
  },
752
728
  name: "Text",
753
729
  static: !0,
@@ -767,12 +743,6 @@ const W = {
767
743
  textAlign: "center"
768
744
  }
769
745
  }, Ke = {
770
- shouldReceiveBuilderProps: {
771
- builderBlock: !1,
772
- builderContext: !1,
773
- builderComponents: !1,
774
- builderLinkComponent: !1
775
- },
776
746
  name: "Custom Code",
777
747
  static: !0,
778
748
  requiredPermissions: ["editCode"],
@@ -795,12 +765,6 @@ const W = {
795
765
  advanced: !0
796
766
  }]
797
767
  }, Me = y(() => import("./custom-code-7786788e.js")), Oe = {
798
- shouldReceiveBuilderProps: {
799
- builderBlock: !1,
800
- builderContext: !1,
801
- builderComponents: !1,
802
- builderLinkComponent: !1
803
- },
804
768
  name: "Embed",
805
769
  static: !0,
806
770
  inputs: [{
@@ -1052,13 +1016,7 @@ const W = {
1052
1016
  builderComponents: !0,
1053
1017
  builderLinkComponent: !0
1054
1018
  }
1055
- }, Je = y(() => import("./form-6f2d1077.js")), Ye = {
1056
- shouldReceiveBuilderProps: {
1057
- builderBlock: !1,
1058
- builderContext: !1,
1059
- builderComponents: !1,
1060
- builderLinkComponent: !1
1061
- },
1019
+ }, Je = y(() => import("./form-0a58d0e4.js")), Ye = {
1062
1020
  name: "Form:Input",
1063
1021
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
1064
1022
  inputs: [
@@ -1109,13 +1067,7 @@ const W = {
1109
1067
  borderStyle: "solid",
1110
1068
  borderColor: "#ccc"
1111
1069
  }
1112
- }, Qe = y(() => import("./input-22d61335.js")), Ge = {
1113
- shouldReceiveBuilderProps: {
1114
- builderBlock: !1,
1115
- builderContext: !1,
1116
- builderComponents: !1,
1117
- builderLinkComponent: !1
1118
- },
1070
+ }, Qe = y(() => import("./input-7ae243e2.js")), Ge = {
1119
1071
  name: "Form:Select",
1120
1072
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
1121
1073
  defaultStyles: {
@@ -1157,13 +1109,7 @@ const W = {
1157
1109
  }],
1158
1110
  static: !0,
1159
1111
  noWrap: !0
1160
- }, Xe = y(() => import("./select-6371cc39.js")), Ze = {
1161
- shouldReceiveBuilderProps: {
1162
- builderBlock: !1,
1163
- builderContext: !1,
1164
- builderComponents: !1,
1165
- builderLinkComponent: !1
1166
- },
1112
+ }, Xe = y(() => import("./select-cfa0eb8e.js")), Ze = {
1167
1113
  name: "Form:SubmitButton",
1168
1114
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
1169
1115
  defaultStyles: {
@@ -1189,12 +1135,6 @@ const W = {
1189
1135
  // TODO: defaultChildren
1190
1136
  // canHaveChildren: true,
1191
1137
  }, et = y(() => import("./submit-button-b48361a7.js")), tt = {
1192
- shouldReceiveBuilderProps: {
1193
- builderBlock: !1,
1194
- builderContext: !1,
1195
- builderComponents: !1,
1196
- builderLinkComponent: !1
1197
- },
1198
1138
  name: "Form:TextArea",
1199
1139
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
1200
1140
  inputs: [{
@@ -1231,12 +1171,6 @@ const W = {
1231
1171
  static: !0,
1232
1172
  noWrap: !0
1233
1173
  }, nt = y(() => import("./textarea-d29025e9.js")), at = {
1234
- shouldReceiveBuilderProps: {
1235
- builderBlock: !1,
1236
- builderContext: !1,
1237
- builderComponents: !1,
1238
- builderLinkComponent: !1
1239
- },
1240
1174
  // friendlyName?
1241
1175
  name: "Raw:Img",
1242
1176
  hideFromInsertMenu: !0,
@@ -1250,7 +1184,7 @@ const W = {
1250
1184
  }],
1251
1185
  noWrap: !0,
1252
1186
  static: !0
1253
- }, it = y(() => import("./img-be88cdbc.js")), ot = {
1187
+ }, it = y(() => import("./img-252c9967.js")), ot = {
1254
1188
  name: "Video",
1255
1189
  canHaveChildren: !0,
1256
1190
  defaultStyles: {
@@ -1332,10 +1266,7 @@ const W = {
1332
1266
  advanced: !0
1333
1267
  }],
1334
1268
  shouldReceiveBuilderProps: {
1335
- builderBlock: !0,
1336
- builderContext: !1,
1337
- builderComponents: !1,
1338
- builderLinkComponent: !1
1269
+ builderBlock: !0
1339
1270
  }
1340
1271
  }, rt = () => [{
1341
1272
  component: Me,
@@ -1366,24 +1297,24 @@ const W = {
1366
1297
  ...ot
1367
1298
  }], G = () => [{
1368
1299
  component: ye,
1369
- ...Be
1300
+ ...We
1370
1301
  }, {
1371
1302
  component: ve,
1372
- ...We
1303
+ ...Ae
1373
1304
  }, {
1374
1305
  component: Se,
1375
- ...Ae
1306
+ ...Be
1376
1307
  }, {
1377
- component: Ce,
1378
- ...Le
1308
+ component: Te,
1309
+ ...De
1379
1310
  }, {
1380
1311
  component: ke,
1381
- ...De
1312
+ ...Ue
1382
1313
  }, {
1383
1314
  component: He,
1384
- ...Ue
1315
+ ...Le
1385
1316
  }, {
1386
- component: Te,
1317
+ component: Ce,
1387
1318
  ...$e
1388
1319
  }, {
1389
1320
  component: Ie,
@@ -1491,7 +1422,7 @@ const W = {
1491
1422
  })), dt = ({
1492
1423
  canTrack: e,
1493
1424
  content: t
1494
- }) => !(!(P(t).length > 0) || !e || H()), ut = (e) => e === "react" || e === "reactNative", oe = ut(te), ct = () => `
1425
+ }) => !(!(P(t).length > 0) || !e || H()), ct = (e) => e === "react" || e === "reactNative", oe = ct(te), ut = () => `
1495
1426
  window.${ae} = ${lt}
1496
1427
  window.${ie} = ${st}
1497
1428
  `, mt = (e, t) => `
@@ -1504,18 +1435,19 @@ const W = {
1504
1435
  "${t}", "${e}", ${oe}
1505
1436
  )`;
1506
1437
  function $(e) {
1507
- return /* @__PURE__ */ g(
1438
+ return /* @__PURE__ */ f(
1508
1439
  "script",
1509
1440
  {
1510
1441
  dangerouslySetInnerHTML: { __html: e.scriptStr },
1511
- "data-id": e.id
1442
+ "data-id": e.id,
1443
+ nonce: e.nonce || ""
1512
1444
  }
1513
1445
  );
1514
1446
  }
1515
1447
  function X(e) {
1516
1448
  return Math.round(e * 1e3) / 1e3;
1517
1449
  }
1518
- const ft = (e, t, n = !0) => {
1450
+ const gt = (e, t, n = !0) => {
1519
1451
  if (!(e instanceof HTMLElement))
1520
1452
  return null;
1521
1453
  let i = n ? e : e.parentElement;
@@ -1526,20 +1458,20 @@ const ft = (e, t, n = !0) => {
1526
1458
  return i;
1527
1459
  } while (i = i.parentElement);
1528
1460
  return null;
1529
- }, gt = (e) => ft(e, (t) => {
1461
+ }, ft = (e) => gt(e, (t) => {
1530
1462
  const n = t.getAttribute("builder-id") || t.id;
1531
1463
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
1532
1464
  }), Z = ({
1533
1465
  event: e,
1534
1466
  target: t
1535
1467
  }) => {
1536
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, d = e.clientY - n.top, c = X(i / n.width), a = X(d / n.height);
1468
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, d = e.clientY - n.top, u = X(i / n.width), a = X(d / n.height);
1537
1469
  return {
1538
- x: c,
1470
+ x: u,
1539
1471
  y: a
1540
1472
  };
1541
- }, bt = (e) => {
1542
- const t = e.target, n = t && gt(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1473
+ }, ht = (e) => {
1474
+ const t = e.target, n = t && ft(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1543
1475
  return {
1544
1476
  targetBuilderElement: i || void 0,
1545
1477
  metadata: {
@@ -1554,9 +1486,9 @@ const ft = (e, t, n = !0) => {
1554
1486
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
1555
1487
  }
1556
1488
  };
1557
- }, ht = (e) => {
1558
- var c, a;
1559
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (c = e == null ? void 0 : e.files) == null ? void 0 : c.regular;
1489
+ }, bt = (e) => {
1490
+ var u, a;
1491
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (u = e == null ? void 0 : e.files) == null ? void 0 : u.regular;
1560
1492
  let d = "";
1561
1493
  if (i && t && n && (d += `
1562
1494
  @font-face {
@@ -1569,11 +1501,11 @@ font-weight: 400;
1569
1501
  for (const o in e.files) {
1570
1502
  if (!(String(Number(o)) === o))
1571
1503
  continue;
1572
- const b = e.files[o];
1573
- b && b !== i && (d += `
1504
+ const h = e.files[o];
1505
+ h && h !== i && (d += `
1574
1506
  @font-face {
1575
1507
  font-family: "${t}";
1576
- src: url('${b}') format('woff2');
1508
+ src: url('${h}') format('woff2');
1577
1509
  font-display: fallback;
1578
1510
  font-weight: ${o};
1579
1511
  }
@@ -1584,7 +1516,7 @@ font-weight: ${o};
1584
1516
  customFonts: e
1585
1517
  }) => {
1586
1518
  var t;
1587
- return ((t = e == null ? void 0 : e.map((n) => ht(n))) == null ? void 0 : t.join(" ")) || "";
1519
+ return ((t = e == null ? void 0 : e.map((n) => bt(n))) == null ? void 0 : t.join(" ")) || "";
1588
1520
  }, yt = ({
1589
1521
  cssCode: e,
1590
1522
  contentId: t
@@ -1605,24 +1537,24 @@ font-weight: ${o};
1605
1537
  text-align: inherit;
1606
1538
  font-family: inherit;
1607
1539
  }
1608
- `, St = (e) => e ? "" : vt, Ct = (e) => `variant-${e}`;
1540
+ `, St = (e) => e ? "" : vt, Tt = (e) => `variant-${e}`;
1609
1541
  function kt(e) {
1610
1542
  var N, q, j, K, M, O, _;
1611
1543
  const t = le(null);
1612
1544
  function n(r) {
1613
1545
  var p, s;
1614
- const u = {
1546
+ const c = {
1615
1547
  ...e.builderContextSignal.rootState,
1616
1548
  ...r
1617
1549
  };
1618
- e.builderContextSignal.rootSetState ? (s = (p = e.builderContextSignal).rootSetState) == null || s.call(p, u) : e.setBuilderContextSignal((l) => ({
1550
+ e.builderContextSignal.rootSetState ? (s = (p = e.builderContextSignal).rootSetState) == null || s.call(p, c) : e.setBuilderContextSignal((l) => ({
1619
1551
  ...l,
1620
- rootState: u
1552
+ rootState: c
1621
1553
  }));
1622
1554
  }
1623
1555
  function i(r) {
1624
- var p, s, l, f, V;
1625
- const u = {
1556
+ var p, s, l, g, V;
1557
+ const c = {
1626
1558
  ...e.builderContextSignal.content,
1627
1559
  ...r,
1628
1560
  data: {
@@ -1632,12 +1564,12 @@ function kt(e) {
1632
1564
  meta: {
1633
1565
  ...(s = e.builderContextSignal.content) == null ? void 0 : s.meta,
1634
1566
  ...r == null ? void 0 : r.meta,
1635
- breakpoints: ((l = r == null ? void 0 : r.meta) == null ? void 0 : l.breakpoints) || ((V = (f = e.builderContextSignal.content) == null ? void 0 : f.meta) == null ? void 0 : V.breakpoints)
1567
+ 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)
1636
1568
  }
1637
1569
  };
1638
- e.setBuilderContextSignal((h) => ({
1639
- ...h,
1640
- content: u
1570
+ e.setBuilderContextSignal((b) => ({
1571
+ ...b,
1572
+ content: c
1641
1573
  }));
1642
1574
  }
1643
1575
  function d() {
@@ -1646,35 +1578,35 @@ function kt(e) {
1646
1578
  "aria-hidden": !0
1647
1579
  };
1648
1580
  }
1649
- const [c, a] = T(
1581
+ const [u, a] = C(
1650
1582
  () => e.contentWrapper || "div"
1651
1583
  );
1652
1584
  function o(r) {
1653
- return fe({
1585
+ return ge({
1654
1586
  model: e.model,
1655
1587
  trustedHosts: e.trustedHosts,
1656
1588
  callbacks: {
1657
- configureSdk: (u) => {
1589
+ configureSdk: (c) => {
1658
1590
  var l;
1659
- const { breakpoints: p, contentId: s } = u;
1591
+ const { breakpoints: p, contentId: s } = c;
1660
1592
  !s || s !== ((l = e.builderContextSignal.content) == null ? void 0 : l.id) || p && i({
1661
1593
  meta: {
1662
1594
  breakpoints: p
1663
1595
  }
1664
1596
  });
1665
1597
  },
1666
- animation: (u) => {
1667
- Ve(u);
1598
+ animation: (c) => {
1599
+ Ve(c);
1668
1600
  },
1669
- contentUpdate: (u) => {
1670
- i(u);
1601
+ contentUpdate: (c) => {
1602
+ i(c);
1671
1603
  }
1672
1604
  }
1673
1605
  })(r);
1674
1606
  }
1675
1607
  function m() {
1676
- var u, p;
1677
- const r = (p = (u = e.builderContextSignal.content) == null ? void 0 : u.data) == null ? void 0 : p.jsCode;
1608
+ var c, p;
1609
+ const r = (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.jsCode;
1678
1610
  r && Q({
1679
1611
  code: r,
1680
1612
  context: e.context || {},
@@ -1687,33 +1619,33 @@ function kt(e) {
1687
1619
  enableCache: !1
1688
1620
  });
1689
1621
  }
1690
- const [b, I] = T(() => ({})), [k, w] = T(() => ({})), [R, E] = T(() => !1);
1622
+ const [h, I] = C(() => ({})), [k, w] = C(() => ({})), [R, E] = C(() => !1);
1691
1623
  function v(r) {
1692
- var u, p;
1624
+ var c, p;
1693
1625
  if (e.builderContextSignal.content) {
1694
- const s = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, l = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
1626
+ const s = (c = e.builderContextSignal.content) == null ? void 0 : c.testVariationId, l = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
1695
1627
  J({
1696
1628
  type: "click",
1697
- canTrack: B(e.canTrack),
1629
+ canTrack: W(e.canTrack),
1698
1630
  contentId: l,
1699
1631
  apiKey: e.apiKey,
1700
1632
  variationId: s !== l ? s : void 0,
1701
- ...bt(r),
1633
+ ...ht(r),
1702
1634
  unique: !R
1703
1635
  });
1704
1636
  }
1705
1637
  R || E(!0);
1706
1638
  }
1707
1639
  function S() {
1708
- var u, p, s;
1709
- const r = (s = (p = (u = e.builderContextSignal.content) == null ? void 0 : u.data) == null ? void 0 : p.httpRequests) != null ? s : {};
1710
- Object.entries(r).forEach(([l, f]) => {
1711
- if (!f || k[l] || b[l] && !F())
1640
+ var c, p, s;
1641
+ const r = (s = (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.httpRequests) != null ? s : {};
1642
+ Object.entries(r).forEach(([l, g]) => {
1643
+ if (!g || k[l] || h[l] && !F())
1712
1644
  return;
1713
1645
  k[l] = !0;
1714
- const V = f.replace(
1646
+ const V = g.replace(
1715
1647
  /{{([^}]+)}}/g,
1716
- (h, re) => String(
1648
+ (b, re) => String(
1717
1649
  Q({
1718
1650
  code: re,
1719
1651
  context: e.context || {},
@@ -1724,24 +1656,24 @@ function kt(e) {
1724
1656
  })
1725
1657
  )
1726
1658
  );
1727
- ge(V).then((h) => h.json()).then((h) => {
1659
+ fe(V).then((b) => b.json()).then((b) => {
1728
1660
  n({
1729
- [l]: h
1730
- }), b[l] = !0;
1731
- }).catch((h) => {
1732
- console.error("error fetching dynamic data", f, h);
1661
+ [l]: b
1662
+ }), h[l] = !0;
1663
+ }).catch((b) => {
1664
+ console.error("error fetching dynamic data", g, b);
1733
1665
  }).finally(() => {
1734
1666
  k[l] = !1;
1735
1667
  });
1736
1668
  });
1737
1669
  }
1738
- function C() {
1670
+ function T() {
1739
1671
  F() && window.dispatchEvent(
1740
1672
  new CustomEvent(
1741
1673
  "builder:component:stateChange",
1742
1674
  {
1743
1675
  detail: {
1744
- state: be(e.builderContextSignal.rootState),
1676
+ state: he(e.builderContextSignal.rootState),
1745
1677
  ref: {
1746
1678
  name: e.model
1747
1679
  }
@@ -1751,7 +1683,7 @@ function kt(e) {
1751
1683
  );
1752
1684
  }
1753
1685
  return x(() => {
1754
- var r, u;
1686
+ var r, c;
1755
1687
  if (H()) {
1756
1688
  if (F() && (window.addEventListener("message", o), se(), de({
1757
1689
  ...e.locale ? {
@@ -1766,39 +1698,39 @@ function kt(e) {
1766
1698
  }), Object.values(
1767
1699
  e.builderContextSignal.componentInfos
1768
1700
  ).forEach((s) => {
1769
- var f;
1770
- const l = ue(s);
1771
- (f = window.parent) == null || f.postMessage(l, "*");
1701
+ var g;
1702
+ const l = ce(s);
1703
+ (g = window.parent) == null || g.postMessage(l, "*");
1772
1704
  }), window.addEventListener(
1773
1705
  "builder:component:stateChangeListenerActivated",
1774
- C
1775
- )), e.builderContextSignal.content && B(e.canTrack)) {
1776
- const s = (r = e.builderContextSignal.content) == null ? void 0 : r.testVariationId, l = (u = e.builderContextSignal.content) == null ? void 0 : u.id, f = e.apiKey;
1706
+ T
1707
+ )), e.builderContextSignal.content && W(e.canTrack)) {
1708
+ const s = (r = e.builderContextSignal.content) == null ? void 0 : r.testVariationId, l = (c = e.builderContextSignal.content) == null ? void 0 : c.id, g = e.apiKey;
1777
1709
  J({
1778
1710
  type: "impression",
1779
1711
  canTrack: !0,
1780
1712
  contentId: l,
1781
- apiKey: f,
1713
+ apiKey: g,
1782
1714
  variationId: s !== l ? s : void 0
1783
1715
  });
1784
1716
  }
1785
- if (ce() && !F()) {
1786
- const s = new URL(location.href).searchParams, l = s.get("builder.preview"), f = s.get(
1717
+ if (ue() && !F()) {
1718
+ const s = new URL(location.href).searchParams, l = s.get("builder.preview"), g = s.get(
1787
1719
  `builder.overrides.${l}`
1788
1720
  ), V = s.get("apiKey") || s.get("builder.space");
1789
- l === e.model && V === e.apiKey && (!e.content || f === e.content.id) && me({
1721
+ l === e.model && V === e.apiKey && (!e.content || g === e.content.id) && me({
1790
1722
  model: e.model,
1791
1723
  apiKey: e.apiKey,
1792
1724
  apiVersion: e.builderContextSignal.apiVersion
1793
- }).then((h) => {
1794
- h && i(h);
1725
+ }).then((b) => {
1726
+ b && i(b);
1795
1727
  });
1796
1728
  }
1797
1729
  }
1798
1730
  }, []), x(() => {
1799
1731
  e.apiKey || pe.error(
1800
1732
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
1801
- ), m(), S(), C();
1733
+ ), m(), S(), T();
1802
1734
  }, []), x(() => {
1803
1735
  e.content && i(e.content);
1804
1736
  }, [e.content]), x(() => {
@@ -1806,7 +1738,7 @@ function kt(e) {
1806
1738
  }, [(q = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : q.jsCode]), x(() => {
1807
1739
  S();
1808
1740
  }, [(K = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : K.httpRequests]), x(() => {
1809
- C();
1741
+ T();
1810
1742
  }, [e.builderContextSignal.rootState]), x(() => {
1811
1743
  e.data && n(e.data);
1812
1744
  }, [e.data]), x(() => {
@@ -1816,10 +1748,10 @@ function kt(e) {
1816
1748
  }, [e.locale]), x(() => () => {
1817
1749
  H() && (window.removeEventListener("message", o), window.removeEventListener(
1818
1750
  "builder:component:stateChangeListenerActivated",
1819
- C
1751
+ T
1820
1752
  ));
1821
- }, []), /* @__PURE__ */ g(we.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ g(
1822
- c,
1753
+ }, []), /* @__PURE__ */ f(we.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ f(
1754
+ u,
1823
1755
  {
1824
1756
  ref: t,
1825
1757
  onClick: (r) => v(r),
@@ -1827,15 +1759,15 @@ function kt(e) {
1827
1759
  "builder-model": e.model,
1828
1760
  ...d(),
1829
1761
  ...e.contentWrapperProps,
1830
- className: Ct(
1762
+ className: Tt(
1831
1763
  ((O = e.content) == null ? void 0 : O.testVariationId) || ((_ = e.content) == null ? void 0 : _.id)
1832
1764
  ),
1833
1765
  children: e.children
1834
1766
  }
1835
1767
  ) : null });
1836
1768
  }
1837
- function Tt(e) {
1838
- const [t, n] = T(
1769
+ function Ct(e) {
1770
+ const [t, n] = C(
1839
1771
  () => `
1840
1772
  ${yt({
1841
1773
  cssCode: e.cssCode,
@@ -1847,15 +1779,22 @@ ${xt({
1847
1779
  ${St(e.isNestedRender)}
1848
1780
  `.trim()
1849
1781
  );
1850
- return /* @__PURE__ */ g(ne, { id: "builderio-content", styles: t });
1782
+ return /* @__PURE__ */ f(
1783
+ ne,
1784
+ {
1785
+ id: "builderio-content",
1786
+ styles: t,
1787
+ nonce: e.nonce
1788
+ }
1789
+ );
1851
1790
  }
1852
1791
  const It = ({
1853
1792
  content: e,
1854
1793
  data: t,
1855
1794
  locale: n
1856
1795
  }) => {
1857
- var c, a, o;
1858
- const i = {}, d = ((c = e == null ? void 0 : e.data) == null ? void 0 : c.state) || {};
1796
+ var u, a, o;
1797
+ const i = {}, d = ((u = e == null ? void 0 : e.data) == null ? void 0 : u.state) || {};
1859
1798
  return (o = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || o.forEach((m) => {
1860
1799
  m.name && m.defaultValue !== void 0 && (i[m.name] = m.defaultValue);
1861
1800
  }), {
@@ -1878,8 +1817,8 @@ const It = ({
1878
1817
  meta: e == null ? void 0 : e.meta
1879
1818
  } : void 0;
1880
1819
  function ee(e) {
1881
- var m, b, I, k, w, R, E;
1882
- const [t, n] = T(
1820
+ var m, h, I, k, w, R, E;
1821
+ const [t, n] = C(
1883
1822
  () => {
1884
1823
  var v, S;
1885
1824
  return pt({
@@ -1896,21 +1835,21 @@ function ee(e) {
1896
1835
  rootState: v
1897
1836
  }));
1898
1837
  }
1899
- const [d, c] = T(
1838
+ const [d, u] = C(
1900
1839
  () => [
1901
1840
  ...G(),
1902
1841
  ...e.customComponents || []
1903
1842
  ].reduce(
1904
- (v, { component: S, ...C }) => ({
1843
+ (v, { component: S, ...T }) => ({
1905
1844
  ...v,
1906
- [C.name]: {
1845
+ [T.name]: {
1907
1846
  component: S,
1908
- ...Y(C)
1847
+ ...Y(T)
1909
1848
  }
1910
1849
  }),
1911
1850
  {}
1912
1851
  )
1913
- ), [a, o] = T(() => ({
1852
+ ), [a, o] = C(() => ({
1914
1853
  content: wt({
1915
1854
  content: e.content,
1916
1855
  data: e.data
@@ -1930,25 +1869,27 @@ function ee(e) {
1930
1869
  ...G(),
1931
1870
  ...e.customComponents || []
1932
1871
  ].reduce(
1933
- (v, { component: S, ...C }) => ({
1872
+ (v, { component: S, ...T }) => ({
1934
1873
  ...v,
1935
- [C.name]: Y(C)
1874
+ [T.name]: Y(T)
1936
1875
  }),
1937
1876
  {}
1938
1877
  ),
1939
1878
  inheritedStyles: {},
1940
1879
  BlocksWrapper: e.blocksWrapper || "div",
1941
- BlocksWrapperProps: e.blocksWrapperProps || {}
1880
+ BlocksWrapperProps: e.blocksWrapperProps || {},
1881
+ nonce: e.nonce || ""
1942
1882
  }));
1943
- return /* @__PURE__ */ g(
1883
+ return /* @__PURE__ */ f(
1944
1884
  Re.Provider,
1945
1885
  {
1946
1886
  value: {
1947
1887
  registeredComponents: d
1948
1888
  },
1949
- children: /* @__PURE__ */ U(
1889
+ children: /* @__PURE__ */ L(
1950
1890
  kt,
1951
1891
  {
1892
+ nonce: e.nonce,
1952
1893
  content: e.content,
1953
1894
  data: e.data,
1954
1895
  model: e.model,
@@ -1964,23 +1905,25 @@ function ee(e) {
1964
1905
  trustedHosts: e.trustedHosts,
1965
1906
  setBuilderContextSignal: o,
1966
1907
  children: [
1967
- e.isSsrAbTest ? /* @__PURE__ */ g(
1908
+ e.isSsrAbTest ? /* @__PURE__ */ f(
1968
1909
  $,
1969
1910
  {
1970
1911
  id: "builderio-variant-visibility",
1971
- scriptStr: t
1912
+ scriptStr: t,
1913
+ nonce: e.nonce || ""
1972
1914
  }
1973
1915
  ) : null,
1974
- /* @__PURE__ */ g(
1975
- Tt,
1916
+ /* @__PURE__ */ f(
1917
+ Ct,
1976
1918
  {
1919
+ nonce: e.nonce || "",
1977
1920
  isNestedRender: e.isNestedRender,
1978
1921
  contentId: (m = a.content) == null ? void 0 : m.id,
1979
- cssCode: (I = (b = a.content) == null ? void 0 : b.data) == null ? void 0 : I.cssCode,
1922
+ cssCode: (I = (h = a.content) == null ? void 0 : h.data) == null ? void 0 : I.cssCode,
1980
1923
  customFonts: (w = (k = a.content) == null ? void 0 : k.data) == null ? void 0 : w.customFonts
1981
1924
  }
1982
1925
  ),
1983
- /* @__PURE__ */ g(
1926
+ /* @__PURE__ */ f(
1984
1927
  Ee,
1985
1928
  {
1986
1929
  blocks: (E = (R = a.content) == null ? void 0 : R.data) == null ? void 0 : E.blocks,
@@ -1995,11 +1938,11 @@ function ee(e) {
1995
1938
  }
1996
1939
  );
1997
1940
  }
1998
- function At(e) {
1941
+ function Bt(e) {
1999
1942
  var a;
2000
- const [t, n] = T(
1943
+ const [t, n] = C(
2001
1944
  () => dt({
2002
- canTrack: B(e.canTrack),
1945
+ canTrack: W(e.canTrack),
2003
1946
  content: e.content
2004
1947
  })
2005
1948
  );
@@ -2016,45 +1959,49 @@ function At(e) {
2016
1959
  function d() {
2017
1960
  return P(e.content).map((o) => `.variant-${o.testVariationId} { display: none; } `).join("");
2018
1961
  }
2019
- function c() {
1962
+ function u() {
2020
1963
  var o;
2021
1964
  return t ? {
2022
1965
  ...e.content,
2023
1966
  testVariationId: (o = e.content) == null ? void 0 : o.id
2024
- } : he({
1967
+ } : be({
2025
1968
  item: e.content,
2026
- canTrack: B(e.canTrack)
1969
+ canTrack: W(e.canTrack)
2027
1970
  });
2028
1971
  }
2029
1972
  return x(() => {
2030
1973
  }, []), x(() => {
2031
- }), /* @__PURE__ */ U(z, { children: [
2032
- !e.isNestedRender && te !== "reactNative" ? /* @__PURE__ */ g(
1974
+ }), /* @__PURE__ */ L(z, { children: [
1975
+ !e.isNestedRender && te !== "reactNative" ? /* @__PURE__ */ f(
2033
1976
  $,
2034
1977
  {
2035
1978
  id: "builderio-init-variants-fns",
2036
- scriptStr: ct()
1979
+ scriptStr: ut(),
1980
+ nonce: e.nonce || ""
2037
1981
  }
2038
1982
  ) : null,
2039
- t ? /* @__PURE__ */ U(z, { children: [
2040
- /* @__PURE__ */ g(
1983
+ t ? /* @__PURE__ */ L(z, { children: [
1984
+ /* @__PURE__ */ f(
2041
1985
  ne,
2042
1986
  {
2043
1987
  id: "builderio-variants",
2044
- styles: d()
1988
+ styles: d(),
1989
+ nonce: e.nonce || ""
2045
1990
  }
2046
1991
  ),
2047
- /* @__PURE__ */ g(
1992
+ /* @__PURE__ */ f(
2048
1993
  $,
2049
1994
  {
2050
1995
  id: "builderio-variants-visibility",
2051
- scriptStr: i()
1996
+ scriptStr: i(),
1997
+ nonce: e.nonce || ""
2052
1998
  }
2053
1999
  ),
2054
- (a = P(e.content)) == null ? void 0 : a.map((o) => /* @__PURE__ */ g(
2000
+ (a = P(e.content)) == null ? void 0 : a.map((o) => /* @__PURE__ */ f(
2055
2001
  ee,
2056
2002
  {
2057
2003
  isNestedRender: e.isNestedRender,
2004
+ nonce: e.nonce,
2058
2005
  content: o,
2059
2006
  showContent: !1,
2060
2007
  model: e.model,
@@ -2077,11 +2024,12 @@ function At(e) {
2077
2024
  o.testVariationId
2078
2025
  ))
2079
2026
  ] }) : null,
2080
- /* @__PURE__ */ g(
2027
+ /* @__PURE__ */ f(
2081
2028
  ee,
2082
2029
  {
2030
+ nonce: e.nonce,
2083
2031
  isNestedRender: e.isNestedRender,
2084
- content: c(),
2032
+ content: u(),
2085
2033
  showContent: !0,
2086
2034
  model: e.model,
2087
2035
  data: e.data,
@@ -2104,5 +2052,5 @@ function At(e) {
2104
2052
  ] });
2105
2053
  }
2106
2054
  export {
2107
- At as default
2055
+ Bt as default
2108
2056
  };