@builder.io/sdk-react 1.0.36 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. package/lib/browser/blocks-exports.cjs +22 -22
  2. package/lib/browser/blocks-exports.mjs +627 -504
  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-4168b816.cjs → server-entry-4fb4a8b5.cjs} +1 -1
  8. package/lib/browser/{server-entry-b8f6be3b.js → server-entry-a2fe3a55.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-18fbb30e.js → accordion-a25dee70.js} +1 -1
  12. package/lib/edge/{accordion-e40979bc.cjs → accordion-d5929c1e.cjs} +1 -1
  13. package/lib/edge/{blocks-9b142e90.js → blocks-317ff1a5.js} +679 -671
  14. package/lib/edge/{blocks-48a9ac8c.cjs → blocks-5cb24de4.cjs} +13 -13
  15. package/lib/edge/blocks-exports.cjs +1 -1
  16. package/lib/edge/blocks-exports.mjs +2 -2
  17. package/lib/edge/{button-be9403e7.js → button-2f5bf5cf.js} +2 -2
  18. package/lib/edge/{button-c2ff97e9.cjs → button-b06330e4.cjs} +1 -1
  19. package/lib/edge/{columns-920ca800.js → columns-69453374.js} +3 -3
  20. package/lib/edge/{columns-118e1fc1.cjs → columns-ef105550.cjs} +1 -1
  21. package/lib/edge/{content-variants-ed1f803b.js → content-variants-336e3b7f.js} +318 -203
  22. package/lib/edge/content-variants-f2620a07.cjs +134 -0
  23. package/lib/edge/{form-cbcf22d5.js → form-30431d39.js} +3 -3
  24. package/lib/edge/{form-a9271b51.cjs → form-55ba7324.cjs} +1 -1
  25. package/lib/edge/{get-class-prop-name-af6b922f.cjs → get-class-prop-name-5da28706.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-90c8ac6c.js → get-class-prop-name-8d9f271c.js} +1 -1
  27. package/lib/edge/{img-1f1b4871.js → img-02bb6d39.js} +1 -1
  28. package/lib/edge/{img-2deeb066.cjs → img-a85aa1f8.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-4b3e5f88.cjs → input-448b664a.cjs} +1 -1
  34. package/lib/edge/{input-514915f8.js → input-d7e84d5c.js} +1 -1
  35. package/lib/edge/{select-3925e227.js → select-744ccf82.js} +1 -1
  36. package/lib/edge/{select-82d8052d.cjs → select-7e98c1fc.cjs} +1 -1
  37. package/lib/edge/{server-entry-57fedeba.js → server-entry-7003c754.js} +1 -1
  38. package/lib/edge/{server-entry-a00fcff8.cjs → server-entry-f52f597d.cjs} +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-aa7280f8.js → slot-6ddfa828.js} +3 -3
  42. package/lib/edge/{slot-21fe373f.cjs → slot-fb11eb23.cjs} +1 -1
  43. package/lib/edge/{symbol-ac48d2ec.js → symbol-ced9c879.js} +2 -2
  44. package/lib/edge/{symbol-a0ab57ea.cjs → symbol-d82ac04c.cjs} +1 -1
  45. package/lib/edge/{tabs-df436d1e.cjs → tabs-93843650.cjs} +1 -1
  46. package/lib/edge/{tabs-9b5261d0.js → tabs-ffcc16e4.js} +3 -3
  47. package/lib/node/blocks-exports.cjs +23 -23
  48. package/lib/node/blocks-exports.mjs +616 -493
  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-1b85663b.js → node-runtime-13876a87.js} +1 -1
  54. package/lib/node/{node-runtime-d59eb154.cjs → node-runtime-b5d88fa0.cjs} +1 -1
  55. package/lib/node/{server-entry-8081c6b9.js → server-entry-9942a35a.js} +1 -1
  56. package/lib/node/{server-entry-dc1afebd.cjs → server-entry-d0ae23af.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/components/block/block.helpers.d.ts +8 -8
  61. package/types/components/content-variants/inlined-fns.d.ts +1 -1
  62. package/types/constants/sdk-version.d.ts +1 -1
  63. package/types/types/components.d.ts +31 -0
  64. package/lib/edge/content-variants-1eb4aebc.cjs +0 -134
@@ -1,11 +1,11 @@
1
- import { jsx as f, jsxs as $, Fragment as z } from "react/jsx-runtime";
2
- import { lazy as y, useRef as le, useState as k, useEffect as T } 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-57fedeba.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-9b142e90.js";
6
- import "./get-class-prop-name-90c8ac6c.js";
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 $, 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 he, serializeComponentInfo as Y, handleABTestingSync as be } from "./server-entry-7003c754.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-317ff1a5.js";
6
+ import "./get-class-prop-name-8d9f271c.js";
7
7
  import "./dynamic-renderer-8b343325.js";
8
- const P = {
8
+ const W = {
9
9
  "@type": "@builder.io/sdk:Element",
10
10
  layerName: "Accordion item title",
11
11
  responsiveStyles: {
@@ -34,7 +34,7 @@ const P = {
34
34
  }
35
35
  }
36
36
  }]
37
- }, D = {
37
+ }, A = {
38
38
  "@type": "@builder.io/sdk:Element",
39
39
  layerName: "Accordion item detail",
40
40
  responsiveStyles: {
@@ -82,19 +82,19 @@ const P = {
82
82
  name: "title",
83
83
  type: "uiBlocks",
84
84
  hideFromUI: !0,
85
- defaultValue: [P]
85
+ defaultValue: [W]
86
86
  }, {
87
87
  name: "detail",
88
88
  type: "uiBlocks",
89
89
  hideFromUI: !0,
90
- defaultValue: [D]
90
+ defaultValue: [A]
91
91
  }],
92
92
  defaultValue: [{
93
- title: [P],
94
- detail: [D]
93
+ title: [W],
94
+ detail: [A]
95
95
  }, {
96
- title: [P],
97
- detail: [D]
96
+ title: [W],
97
+ detail: [A]
98
98
  }],
99
99
  showIf: (e) => !e.get("useChildrenForItems")
100
100
  }, {
@@ -122,8 +122,14 @@ const P = {
122
122
  onChange: (e) => {
123
123
  e.get("useChildrenForItems") === !0 && e.set("items", []);
124
124
  }
125
- }]
126
- }, We = y(() => import("./accordion-18fbb30e.js")), Ae = {
125
+ }],
126
+ shouldReceiveBuilderProps: {
127
+ builderBlock: !0,
128
+ builderContext: !0,
129
+ builderComponents: !0,
130
+ builderLinkComponent: !0
131
+ }
132
+ }, Pe = y(() => import("./accordion-a25dee70.js")), Be = {
127
133
  name: "Core:Button",
128
134
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
129
135
  defaultStyles: {
@@ -155,8 +161,14 @@ const P = {
155
161
  friendlyName: "Open link in new tab"
156
162
  }],
157
163
  static: !0,
158
- noWrap: !0
159
- }, Pe = {
164
+ noWrap: !0,
165
+ shouldReceiveBuilderProps: {
166
+ builderBlock: !1,
167
+ builderContext: !1,
168
+ builderComponents: !1,
169
+ builderLinkComponent: !0
170
+ }
171
+ }, We = {
160
172
  // TODO: ways to statically preprocess JSON for references, functions, etc
161
173
  name: "Columns",
162
174
  isRSC: !0,
@@ -335,7 +347,7 @@ const P = {
335
347
  });
336
348
  }
337
349
  const n = e.get("columns");
338
- 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();
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();
339
351
  }
340
352
  }, {
341
353
  name: "space",
@@ -356,14 +368,26 @@ const P = {
356
368
  defaultValue: !1,
357
369
  helperText: "When stacking columns for mobile devices, reverse the ordering",
358
370
  advanced: !0
359
- }]
360
- }, De = {
371
+ }],
372
+ shouldReceiveBuilderProps: {
373
+ builderBlock: !0,
374
+ builderContext: !0,
375
+ builderComponents: !0,
376
+ builderLinkComponent: !0
377
+ }
378
+ }, Ae = {
379
+ shouldReceiveBuilderProps: {
380
+ builderBlock: !1,
381
+ builderContext: !1,
382
+ builderComponents: !1,
383
+ builderLinkComponent: !1
384
+ },
361
385
  name: "Fragment",
362
386
  static: !0,
363
387
  hidden: !0,
364
388
  canHaveChildren: !0,
365
389
  noWrap: !0
366
- }, Ue = {
390
+ }, Le = {
367
391
  name: "Image",
368
392
  static: !0,
369
393
  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",
@@ -385,24 +409,24 @@ const P = {
385
409
  e.delete("srcset"), e.delete("noWebp");
386
410
  function n(i, o = 6e4) {
387
411
  return new Promise((m, h) => {
388
- const C = document.createElement("img");
389
- let I = !1;
390
- C.onload = () => {
391
- I = !0, m(C);
392
- }, C.addEventListener("error", (w) => {
412
+ const I = document.createElement("img");
413
+ let k = !1;
414
+ I.onload = () => {
415
+ k = !0, m(I);
416
+ }, I.addEventListener("error", (w) => {
393
417
  console.warn("Image load failed", w.error), h(w.error);
394
- }), C.src = i, setTimeout(() => {
395
- I || h(new Error("Image load timed out"));
418
+ }), I.src = i, setTimeout(() => {
419
+ k || h(new Error("Image load timed out"));
396
420
  }, o);
397
421
  });
398
422
  }
399
423
  function a(i) {
400
424
  return Math.round(i * 1e3) / 1e3;
401
425
  }
402
- const d = e.get("image"), u = e.get("aspectRatio");
426
+ const d = e.get("image"), c = e.get("aspectRatio");
403
427
  if (fetch(d).then((i) => i.blob()).then((i) => {
404
428
  i.type.includes("svg") && e.set("noWebp", !0);
405
- }), d && (!u || u === 0.7041))
429
+ }), d && (!c || c === 0.7041))
406
430
  return n(d).then((i) => {
407
431
  const o = e.get("aspectRatio");
408
432
  e.get("image") === d && (!o || o === 0.7041) && i.width && i.height && (e.set("aspectRatio", a(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
@@ -467,8 +491,20 @@ const P = {
467
491
  helperText: "This is the ratio of height/width, e.g. set to 1.5 for a 300px wide and 200px tall photo. Set to 0 to not force the image to maintain it's aspect ratio",
468
492
  advanced: !0,
469
493
  defaultValue: 0.7041
470
- }]
471
- }, Le = {
494
+ }],
495
+ shouldReceiveBuilderProps: {
496
+ builderBlock: !0,
497
+ builderContext: !1,
498
+ builderComponents: !1,
499
+ builderLinkComponent: !1
500
+ }
501
+ }, De = {
502
+ shouldReceiveBuilderProps: {
503
+ builderBlock: !1,
504
+ builderContext: !1,
505
+ builderComponents: !1,
506
+ builderLinkComponent: !1
507
+ },
472
508
  name: "Core:Section",
473
509
  static: !0,
474
510
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -507,7 +543,7 @@ const P = {
507
543
  }
508
544
  }
509
545
  }]
510
- }, $e = {
546
+ }, Ue = {
511
547
  name: "Slot",
512
548
  isRSC: !0,
513
549
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -519,8 +555,14 @@ const P = {
519
555
  type: "string",
520
556
  required: !0,
521
557
  defaultValue: "children"
522
- }]
523
- }, He = y(() => import("./slot-aa7280f8.js")), Be = {
558
+ }],
559
+ shouldReceiveBuilderProps: {
560
+ builderBlock: !1,
561
+ builderContext: !0,
562
+ builderComponents: !1,
563
+ builderLinkComponent: !1
564
+ }
565
+ }, $e = y(() => import("./slot-6ddfa828.js")), He = {
524
566
  name: "Symbol",
525
567
  noWrap: !0,
526
568
  static: !0,
@@ -552,8 +594,14 @@ const P = {
552
594
  name: "useChildren",
553
595
  hideFromUI: !0,
554
596
  type: "boolean"
555
- }]
556
- }, U = {
597
+ }],
598
+ shouldReceiveBuilderProps: {
599
+ builderBlock: !0,
600
+ builderContext: !0,
601
+ builderComponents: !0,
602
+ builderLinkComponent: !0
603
+ }
604
+ }, L = {
557
605
  "@type": "@builder.io/sdk:Element",
558
606
  responsiveStyles: {
559
607
  large: {
@@ -575,7 +623,7 @@ const P = {
575
623
  text: "New tab"
576
624
  }
577
625
  }
578
- }, L = {
626
+ }, D = {
579
627
  "@type": "@builder.io/sdk:Element",
580
628
  responsiveStyles: {
581
629
  large: {
@@ -601,16 +649,16 @@ const P = {
601
649
  name: "label",
602
650
  type: "uiBlocks",
603
651
  hideFromUI: !0,
604
- defaultValue: [U]
652
+ defaultValue: [L]
605
653
  }, {
606
654
  name: "content",
607
655
  type: "uiBlocks",
608
656
  hideFromUI: !0,
609
- defaultValue: [L]
657
+ defaultValue: [D]
610
658
  }],
611
659
  defaultValue: [{
612
660
  label: [{
613
- ...U,
661
+ ...L,
614
662
  component: {
615
663
  name: "Text",
616
664
  options: {
@@ -619,7 +667,7 @@ const P = {
619
667
  }
620
668
  }],
621
669
  content: [{
622
- ...L,
670
+ ...D,
623
671
  component: {
624
672
  name: "Text",
625
673
  options: {
@@ -629,7 +677,7 @@ const P = {
629
677
  }]
630
678
  }, {
631
679
  label: [{
632
- ...U,
680
+ ...L,
633
681
  component: {
634
682
  name: "Text",
635
683
  options: {
@@ -638,7 +686,7 @@ const P = {
638
686
  }
639
687
  }],
640
688
  content: [{
641
- ...L,
689
+ ...D,
642
690
  component: {
643
691
  name: "Text",
644
692
  options: {
@@ -687,8 +735,20 @@ const P = {
687
735
  label: "Right",
688
736
  value: "flex-end"
689
737
  }]
690
- }]
691
- }, qe = y(() => import("./tabs-9b5261d0.js")), je = {
738
+ }],
739
+ shouldReceiveBuilderProps: {
740
+ builderBlock: !0,
741
+ builderContext: !0,
742
+ builderComponents: !0,
743
+ builderLinkComponent: !0
744
+ }
745
+ }, qe = y(() => import("./tabs-ffcc16e4.js")), je = {
746
+ shouldReceiveBuilderProps: {
747
+ builderBlock: !1,
748
+ builderContext: !1,
749
+ builderComponents: !1,
750
+ builderLinkComponent: !1
751
+ },
692
752
  name: "Text",
693
753
  static: !0,
694
754
  isRSC: !0,
@@ -707,6 +767,12 @@ const P = {
707
767
  textAlign: "center"
708
768
  }
709
769
  }, Ke = {
770
+ shouldReceiveBuilderProps: {
771
+ builderBlock: !1,
772
+ builderContext: !1,
773
+ builderComponents: !1,
774
+ builderLinkComponent: !1
775
+ },
710
776
  name: "Custom Code",
711
777
  static: !0,
712
778
  requiredPermissions: ["editCode"],
@@ -729,6 +795,12 @@ const P = {
729
795
  advanced: !0
730
796
  }]
731
797
  }, Me = y(() => import("./custom-code-7786788e.js")), _e = {
798
+ shouldReceiveBuilderProps: {
799
+ builderBlock: !1,
800
+ builderContext: !1,
801
+ builderComponents: !1,
802
+ builderLinkComponent: !1
803
+ },
732
804
  name: "Embed",
733
805
  static: !0,
734
806
  inputs: [{
@@ -986,8 +1058,20 @@ const P = {
986
1058
  text: "Submit"
987
1059
  }
988
1060
  }
989
- }]
990
- }, Je = y(() => import("./form-cbcf22d5.js")), Ye = {
1061
+ }],
1062
+ shouldReceiveBuilderProps: {
1063
+ builderBlock: !0,
1064
+ builderContext: !0,
1065
+ builderComponents: !0,
1066
+ builderLinkComponent: !0
1067
+ }
1068
+ }, Je = y(() => import("./form-30431d39.js")), Ye = {
1069
+ shouldReceiveBuilderProps: {
1070
+ builderBlock: !1,
1071
+ builderContext: !1,
1072
+ builderComponents: !1,
1073
+ builderLinkComponent: !1
1074
+ },
991
1075
  name: "Form:Input",
992
1076
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
993
1077
  inputs: [
@@ -1038,7 +1122,13 @@ const P = {
1038
1122
  borderStyle: "solid",
1039
1123
  borderColor: "#ccc"
1040
1124
  }
1041
- }, Qe = y(() => import("./input-514915f8.js")), Ge = {
1125
+ }, Qe = y(() => import("./input-d7e84d5c.js")), Ge = {
1126
+ shouldReceiveBuilderProps: {
1127
+ builderBlock: !1,
1128
+ builderContext: !1,
1129
+ builderComponents: !1,
1130
+ builderLinkComponent: !1
1131
+ },
1042
1132
  name: "Form:Select",
1043
1133
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
1044
1134
  defaultStyles: {
@@ -1080,7 +1170,13 @@ const P = {
1080
1170
  }],
1081
1171
  static: !0,
1082
1172
  noWrap: !0
1083
- }, Xe = y(() => import("./select-3925e227.js")), Ze = {
1173
+ }, Xe = y(() => import("./select-744ccf82.js")), Ze = {
1174
+ shouldReceiveBuilderProps: {
1175
+ builderBlock: !1,
1176
+ builderContext: !1,
1177
+ builderComponents: !1,
1178
+ builderLinkComponent: !1
1179
+ },
1084
1180
  name: "Form:SubmitButton",
1085
1181
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
1086
1182
  defaultStyles: {
@@ -1106,6 +1202,12 @@ const P = {
1106
1202
  // TODO: defaultChildren
1107
1203
  // canHaveChildren: true,
1108
1204
  }, et = y(() => import("./submit-button-b48361a7.js")), tt = {
1205
+ shouldReceiveBuilderProps: {
1206
+ builderBlock: !1,
1207
+ builderContext: !1,
1208
+ builderComponents: !1,
1209
+ builderLinkComponent: !1
1210
+ },
1109
1211
  name: "Form:TextArea",
1110
1212
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
1111
1213
  inputs: [{
@@ -1142,6 +1244,12 @@ const P = {
1142
1244
  static: !0,
1143
1245
  noWrap: !0
1144
1246
  }, nt = y(() => import("./textarea-d29025e9.js")), at = {
1247
+ shouldReceiveBuilderProps: {
1248
+ builderBlock: !1,
1249
+ builderContext: !1,
1250
+ builderComponents: !1,
1251
+ builderLinkComponent: !1
1252
+ },
1145
1253
  // friendlyName?
1146
1254
  name: "Raw:Img",
1147
1255
  hideFromInsertMenu: !0,
@@ -1155,7 +1263,7 @@ const P = {
1155
1263
  }],
1156
1264
  noWrap: !0,
1157
1265
  static: !0
1158
- }, it = y(() => import("./img-1f1b4871.js")), ot = {
1266
+ }, it = y(() => import("./img-02bb6d39.js")), ot = {
1159
1267
  name: "Video",
1160
1268
  canHaveChildren: !0,
1161
1269
  defaultStyles: {
@@ -1235,7 +1343,13 @@ const P = {
1235
1343
  helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
1236
1344
  defaultValue: !0,
1237
1345
  advanced: !0
1238
- }]
1346
+ }],
1347
+ shouldReceiveBuilderProps: {
1348
+ builderBlock: !0,
1349
+ builderContext: !1,
1350
+ builderComponents: !1,
1351
+ builderLinkComponent: !1
1352
+ }
1239
1353
  }, rt = () => [{
1240
1354
  component: Me,
1241
1355
  ...Ke
@@ -1261,37 +1375,37 @@ const P = {
1261
1375
  component: it,
1262
1376
  ...at
1263
1377
  }, {
1264
- component: ye,
1378
+ component: xe,
1265
1379
  ...ot
1266
1380
  }], G = () => [{
1267
- component: xe,
1268
- ...Ae
1381
+ component: ye,
1382
+ ...Be
1269
1383
  }, {
1270
1384
  component: ve,
1271
- ...Pe
1385
+ ...We
1272
1386
  }, {
1273
1387
  component: Se,
1274
- ...De
1275
- }, {
1276
- component: Te,
1277
- ...Ue
1388
+ ...Ae
1278
1389
  }, {
1279
- component: Ie,
1390
+ component: Ce,
1280
1391
  ...Le
1281
- }, {
1282
- component: He,
1283
- ...$e
1284
1392
  }, {
1285
1393
  component: ke,
1286
- ...Be
1394
+ ...De
1287
1395
  }, {
1288
- component: Ce,
1396
+ component: $e,
1397
+ ...Ue
1398
+ }, {
1399
+ component: Te,
1400
+ ...He
1401
+ }, {
1402
+ component: Ie,
1289
1403
  ...je
1290
1404
  }, {
1291
1405
  component: qe,
1292
1406
  ...Ne
1293
1407
  }, {
1294
- component: We,
1408
+ component: Pe,
1295
1409
  ...Fe
1296
1410
  }, ...rt()], lt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1297
1411
  function getAndSetVariantId() {
@@ -1383,14 +1497,14 @@ const P = {
1383
1497
  thisScriptEl?.remove();
1384
1498
  }
1385
1499
  return;
1386
- }`, ae = "builderIoAbTest", ie = "builderIoRenderContent", W = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1500
+ }`, ae = "builderIoAbTest", ie = "builderIoRenderContent", P = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1387
1501
  ...t,
1388
1502
  testVariationId: t.id,
1389
1503
  id: e == null ? void 0 : e.id
1390
1504
  })), dt = ({
1391
1505
  canTrack: e,
1392
1506
  content: t
1393
- }) => !(!(W(t).length > 0) || !e || H()), ct = (e) => e === "react" || e === "reactNative", oe = ct(te), ut = () => `
1507
+ }) => !(!(P(t).length > 0) || !e || $()), ut = (e) => e === "react" || e === "reactNative", oe = ut(te), ct = () => `
1394
1508
  window.${ae} = ${lt}
1395
1509
  window.${ie} = ${st}
1396
1510
  `, mt = (e, t) => `
@@ -1402,8 +1516,8 @@ const P = {
1402
1516
  }) => `window.${ie}(
1403
1517
  "${t}", "${e}", ${oe}
1404
1518
  )`;
1405
- function B(e) {
1406
- return /* @__PURE__ */ f(
1519
+ function H(e) {
1520
+ return /* @__PURE__ */ g(
1407
1521
  "script",
1408
1522
  {
1409
1523
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -1414,7 +1528,7 @@ function B(e) {
1414
1528
  function X(e) {
1415
1529
  return Math.round(e * 1e3) / 1e3;
1416
1530
  }
1417
- const gt = (e, t, n = !0) => {
1531
+ const ft = (e, t, n = !0) => {
1418
1532
  if (!(e instanceof HTMLElement))
1419
1533
  return null;
1420
1534
  let a = n ? e : e.parentElement;
@@ -1425,20 +1539,20 @@ const gt = (e, t, n = !0) => {
1425
1539
  return a;
1426
1540
  } while (a = a.parentElement);
1427
1541
  return null;
1428
- }, ft = (e) => gt(e, (t) => {
1542
+ }, gt = (e) => ft(e, (t) => {
1429
1543
  const n = t.getAttribute("builder-id") || t.id;
1430
1544
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
1431
1545
  }), Z = ({
1432
1546
  event: e,
1433
1547
  target: t
1434
1548
  }) => {
1435
- const n = t.getBoundingClientRect(), a = e.clientX - n.left, d = e.clientY - n.top, u = X(a / n.width), i = X(d / n.height);
1549
+ const n = t.getBoundingClientRect(), a = e.clientX - n.left, d = e.clientY - n.top, c = X(a / n.width), i = X(d / n.height);
1436
1550
  return {
1437
- x: u,
1551
+ x: c,
1438
1552
  y: i
1439
1553
  };
1440
1554
  }, ht = (e) => {
1441
- const t = e.target, n = t && ft(t), a = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1555
+ const t = e.target, n = t && gt(t), a = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1442
1556
  return {
1443
1557
  targetBuilderElement: a || void 0,
1444
1558
  metadata: {
@@ -1454,8 +1568,8 @@ const gt = (e, t, n = !0) => {
1454
1568
  }
1455
1569
  };
1456
1570
  }, bt = (e) => {
1457
- var u, i;
1458
- 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;
1571
+ var c, i;
1572
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], a = (i = e.fileUrl) != null ? i : (c = e == null ? void 0 : e.files) == null ? void 0 : c.regular;
1459
1573
  let d = "";
1460
1574
  if (a && t && n && (d += `
1461
1575
  @font-face {
@@ -1479,12 +1593,12 @@ font-weight: ${o};
1479
1593
  `.trim());
1480
1594
  }
1481
1595
  return d;
1482
- }, yt = ({
1596
+ }, xt = ({
1483
1597
  customFonts: e
1484
1598
  }) => {
1485
1599
  var t;
1486
1600
  return ((t = e == null ? void 0 : e.map((n) => bt(n))) == null ? void 0 : t.join(" ")) || "";
1487
- }, xt = ({
1601
+ }, yt = ({
1488
1602
  cssCode: e,
1489
1603
  contentId: t
1490
1604
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", vt = `
@@ -1504,24 +1618,24 @@ font-weight: ${o};
1504
1618
  text-align: inherit;
1505
1619
  font-family: inherit;
1506
1620
  }
1507
- `, St = (e) => e ? "" : vt, Tt = (e) => `variant-${e}`;
1508
- function It(e) {
1621
+ `, St = (e) => e ? "" : vt, Ct = (e) => `variant-${e}`;
1622
+ function kt(e) {
1509
1623
  var N, q, j, K, M, _, O;
1510
1624
  const t = le(null);
1511
1625
  function n(r) {
1512
1626
  var p, s;
1513
- const c = {
1627
+ const u = {
1514
1628
  ...e.builderContextSignal.rootState,
1515
1629
  ...r
1516
1630
  };
1517
- e.builderContextSignal.rootSetState ? (s = (p = e.builderContextSignal).rootSetState) == null || s.call(p, c) : e.setBuilderContextSignal((l) => ({
1631
+ e.builderContextSignal.rootSetState ? (s = (p = e.builderContextSignal).rootSetState) == null || s.call(p, u) : e.setBuilderContextSignal((l) => ({
1518
1632
  ...l,
1519
- rootState: c
1633
+ rootState: u
1520
1634
  }));
1521
1635
  }
1522
1636
  function a(r) {
1523
- var p, s, l, g, V;
1524
- const c = {
1637
+ var p, s, l, f, V;
1638
+ const u = {
1525
1639
  ...e.builderContextSignal.content,
1526
1640
  ...r,
1527
1641
  data: {
@@ -1531,12 +1645,12 @@ function It(e) {
1531
1645
  meta: {
1532
1646
  ...(s = e.builderContextSignal.content) == null ? void 0 : s.meta,
1533
1647
  ...r == null ? void 0 : r.meta,
1534
- 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)
1648
+ 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)
1535
1649
  }
1536
1650
  };
1537
1651
  e.setBuilderContextSignal((b) => ({
1538
1652
  ...b,
1539
- content: c
1653
+ content: u
1540
1654
  }));
1541
1655
  }
1542
1656
  function d() {
@@ -1545,35 +1659,35 @@ function It(e) {
1545
1659
  "aria-hidden": !0
1546
1660
  };
1547
1661
  }
1548
- const [u, i] = k(
1662
+ const [c, i] = T(
1549
1663
  () => e.contentWrapper || "div"
1550
1664
  );
1551
1665
  function o(r) {
1552
- return ge({
1666
+ return fe({
1553
1667
  model: e.model,
1554
1668
  trustedHosts: e.trustedHosts,
1555
1669
  callbacks: {
1556
- configureSdk: (c) => {
1670
+ configureSdk: (u) => {
1557
1671
  var l;
1558
- const { breakpoints: p, contentId: s } = c;
1672
+ const { breakpoints: p, contentId: s } = u;
1559
1673
  !s || s !== ((l = e.builderContextSignal.content) == null ? void 0 : l.id) || p && a({
1560
1674
  meta: {
1561
1675
  breakpoints: p
1562
1676
  }
1563
1677
  });
1564
1678
  },
1565
- animation: (c) => {
1566
- Ve(c);
1679
+ animation: (u) => {
1680
+ Ve(u);
1567
1681
  },
1568
- contentUpdate: (c) => {
1569
- a(c);
1682
+ contentUpdate: (u) => {
1683
+ a(u);
1570
1684
  }
1571
1685
  }
1572
1686
  })(r);
1573
1687
  }
1574
1688
  function m() {
1575
- var c, p;
1576
- const r = (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.jsCode;
1689
+ var u, p;
1690
+ const r = (p = (u = e.builderContextSignal.content) == null ? void 0 : u.data) == null ? void 0 : p.jsCode;
1577
1691
  r && Q({
1578
1692
  code: r,
1579
1693
  context: e.context || {},
@@ -1586,14 +1700,14 @@ function It(e) {
1586
1700
  enableCache: !1
1587
1701
  });
1588
1702
  }
1589
- const [h, C] = k(() => ({})), [I, w] = k(() => ({})), [R, E] = k(() => !1);
1590
- function x(r) {
1591
- var c, p;
1703
+ const [h, I] = T(() => ({})), [k, w] = T(() => ({})), [R, E] = T(() => !1);
1704
+ function v(r) {
1705
+ var u, p;
1592
1706
  if (e.builderContextSignal.content) {
1593
- const s = (c = e.builderContextSignal.content) == null ? void 0 : c.testVariationId, l = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
1707
+ const s = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, l = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
1594
1708
  J({
1595
1709
  type: "click",
1596
- canTrack: A(e.canTrack),
1710
+ canTrack: B(e.canTrack),
1597
1711
  contentId: l,
1598
1712
  apiKey: e.apiKey,
1599
1713
  variationId: s !== l ? s : void 0,
@@ -1603,14 +1717,14 @@ function It(e) {
1603
1717
  }
1604
1718
  R || E(!0);
1605
1719
  }
1606
- function v() {
1607
- var c, p, s;
1608
- const r = (s = (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.httpRequests) != null ? s : {};
1609
- Object.entries(r).forEach(([l, g]) => {
1610
- if (!g || I[l] || h[l] && !F())
1720
+ function S() {
1721
+ var u, p, s;
1722
+ const r = (s = (p = (u = e.builderContextSignal.content) == null ? void 0 : u.data) == null ? void 0 : p.httpRequests) != null ? s : {};
1723
+ Object.entries(r).forEach(([l, f]) => {
1724
+ if (!f || k[l] || h[l] && !F())
1611
1725
  return;
1612
- I[l] = !0;
1613
- const V = g.replace(
1726
+ k[l] = !0;
1727
+ const V = f.replace(
1614
1728
  /{{([^}]+)}}/g,
1615
1729
  (b, re) => String(
1616
1730
  Q({
@@ -1623,18 +1737,18 @@ function It(e) {
1623
1737
  })
1624
1738
  )
1625
1739
  );
1626
- fe(V).then((b) => b.json()).then((b) => {
1740
+ ge(V).then((b) => b.json()).then((b) => {
1627
1741
  n({
1628
1742
  [l]: b
1629
1743
  }), h[l] = !0;
1630
1744
  }).catch((b) => {
1631
- console.error("error fetching dynamic data", g, b);
1745
+ console.error("error fetching dynamic data", f, b);
1632
1746
  }).finally(() => {
1633
- I[l] = !1;
1747
+ k[l] = !1;
1634
1748
  });
1635
1749
  });
1636
1750
  }
1637
- function S() {
1751
+ function C() {
1638
1752
  F() && window.dispatchEvent(
1639
1753
  new CustomEvent(
1640
1754
  "builder:component:stateChange",
@@ -1649,9 +1763,9 @@ function It(e) {
1649
1763
  )
1650
1764
  );
1651
1765
  }
1652
- return T(() => {
1653
- var r, c;
1654
- if (H()) {
1766
+ return x(() => {
1767
+ var r, u;
1768
+ if ($()) {
1655
1769
  if (F() && (window.addEventListener("message", o), se(), de({
1656
1770
  ...e.locale ? {
1657
1771
  locale: e.locale
@@ -1665,27 +1779,27 @@ function It(e) {
1665
1779
  }), Object.values(
1666
1780
  e.builderContextSignal.componentInfos
1667
1781
  ).forEach((s) => {
1668
- var g;
1669
- const l = ce(s);
1670
- (g = window.parent) == null || g.postMessage(l, "*");
1782
+ var f;
1783
+ const l = ue(s);
1784
+ (f = window.parent) == null || f.postMessage(l, "*");
1671
1785
  }), window.addEventListener(
1672
1786
  "builder:component:stateChangeListenerActivated",
1673
- S
1674
- )), e.builderContextSignal.content && A(e.canTrack)) {
1675
- const s = (r = e.builderContextSignal.content) == null ? void 0 : r.testVariationId, l = (c = e.builderContextSignal.content) == null ? void 0 : c.id, g = e.apiKey;
1787
+ C
1788
+ )), e.builderContextSignal.content && B(e.canTrack)) {
1789
+ const s = (r = e.builderContextSignal.content) == null ? void 0 : r.testVariationId, l = (u = e.builderContextSignal.content) == null ? void 0 : u.id, f = e.apiKey;
1676
1790
  J({
1677
1791
  type: "impression",
1678
1792
  canTrack: !0,
1679
1793
  contentId: l,
1680
- apiKey: g,
1794
+ apiKey: f,
1681
1795
  variationId: s !== l ? s : void 0
1682
1796
  });
1683
1797
  }
1684
- if (ue() && !F()) {
1685
- const s = new URL(location.href).searchParams, l = s.get("builder.preview"), g = s.get(
1798
+ if (ce() && !F()) {
1799
+ const s = new URL(location.href).searchParams, l = s.get("builder.preview"), f = s.get(
1686
1800
  `builder.overrides.${l}`
1687
1801
  ), V = s.get("apiKey") || s.get("builder.space");
1688
- l === e.model && V === e.apiKey && (!e.content || g === e.content.id) && me({
1802
+ l === e.model && V === e.apiKey && (!e.content || f === e.content.id) && me({
1689
1803
  model: e.model,
1690
1804
  apiKey: e.apiKey,
1691
1805
  apiVersion: e.builderContextSignal.apiVersion
@@ -1694,67 +1808,67 @@ function It(e) {
1694
1808
  });
1695
1809
  }
1696
1810
  }
1697
- }, []), T(() => {
1811
+ }, []), x(() => {
1698
1812
  e.apiKey || pe.error(
1699
1813
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
1700
- ), m(), v(), S();
1701
- }, []), T(() => {
1814
+ ), m(), S(), C();
1815
+ }, []), x(() => {
1702
1816
  e.content && a(e.content);
1703
- }, [e.content]), T(() => {
1817
+ }, [e.content]), x(() => {
1704
1818
  m();
1705
- }, [(q = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : q.jsCode]), T(() => {
1706
- v();
1707
- }, [(K = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : K.httpRequests]), T(() => {
1819
+ }, [(q = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : q.jsCode]), x(() => {
1708
1820
  S();
1709
- }, [e.builderContextSignal.rootState]), T(() => {
1821
+ }, [(K = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : K.httpRequests]), x(() => {
1822
+ C();
1823
+ }, [e.builderContextSignal.rootState]), x(() => {
1710
1824
  e.data && n(e.data);
1711
- }, [e.data]), T(() => {
1825
+ }, [e.data]), x(() => {
1712
1826
  e.locale && n({
1713
1827
  locale: e.locale
1714
1828
  });
1715
- }, [e.locale]), T(() => () => {
1716
- H() && (window.removeEventListener("message", o), window.removeEventListener(
1829
+ }, [e.locale]), x(() => () => {
1830
+ $() && (window.removeEventListener("message", o), window.removeEventListener(
1717
1831
  "builder:component:stateChangeListenerActivated",
1718
- S
1832
+ C
1719
1833
  ));
1720
- }, []), /* @__PURE__ */ f(we.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ f(
1721
- u,
1834
+ }, []), /* @__PURE__ */ g(we.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ g(
1835
+ c,
1722
1836
  {
1723
1837
  ref: t,
1724
- onClick: (r) => x(r),
1838
+ onClick: (r) => v(r),
1725
1839
  "builder-content-id": (M = e.builderContextSignal.content) == null ? void 0 : M.id,
1726
1840
  "builder-model": e.model,
1727
1841
  ...d(),
1728
1842
  ...e.contentWrapperProps,
1729
- className: Tt(
1843
+ className: Ct(
1730
1844
  ((_ = e.content) == null ? void 0 : _.testVariationId) || ((O = e.content) == null ? void 0 : O.id)
1731
1845
  ),
1732
1846
  children: e.children
1733
1847
  }
1734
1848
  ) : null });
1735
1849
  }
1736
- function kt(e) {
1737
- const [t, n] = k(
1850
+ function Tt(e) {
1851
+ const [t, n] = T(
1738
1852
  () => `
1739
- ${xt({
1853
+ ${yt({
1740
1854
  cssCode: e.cssCode,
1741
1855
  contentId: e.contentId
1742
1856
  })}
1743
- ${yt({
1857
+ ${xt({
1744
1858
  customFonts: e.customFonts
1745
1859
  })}
1746
1860
  ${St(e.isNestedRender)}
1747
1861
  `.trim()
1748
1862
  );
1749
- return /* @__PURE__ */ f(ne, { id: "builderio-content", styles: t });
1863
+ return /* @__PURE__ */ g(ne, { id: "builderio-content", styles: t });
1750
1864
  }
1751
- const Ct = ({
1865
+ const It = ({
1752
1866
  content: e,
1753
1867
  data: t,
1754
1868
  locale: n
1755
1869
  }) => {
1756
- var u, i, o;
1757
- const a = {}, d = ((u = e == null ? void 0 : e.data) == null ? void 0 : u.state) || {};
1870
+ var c, i, o;
1871
+ const a = {}, d = ((c = e == null ? void 0 : e.data) == null ? void 0 : c.state) || {};
1758
1872
  return (o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || o.forEach((m) => {
1759
1873
  m.name && m.defaultValue !== void 0 && (a[m.name] = m.defaultValue);
1760
1874
  }), {
@@ -1777,45 +1891,45 @@ const Ct = ({
1777
1891
  meta: e == null ? void 0 : e.meta
1778
1892
  } : void 0;
1779
1893
  function ee(e) {
1780
- var m, h, C, I, w, R, E;
1781
- const [t, n] = k(
1894
+ var m, h, I, k, w, R, E;
1895
+ const [t, n] = T(
1782
1896
  () => {
1783
- var x, v;
1897
+ var v, S;
1784
1898
  return pt({
1785
1899
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
1786
- variationId: (x = e.content) == null ? void 0 : x.testVariationId,
1900
+ variationId: (v = e.content) == null ? void 0 : v.testVariationId,
1787
1901
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
1788
- contentId: (v = e.content) == null ? void 0 : v.id
1902
+ contentId: (S = e.content) == null ? void 0 : S.id
1789
1903
  });
1790
1904
  }
1791
1905
  );
1792
- function a(x) {
1793
- o((v) => ({
1794
- ...v,
1795
- rootState: x
1906
+ function a(v) {
1907
+ o((S) => ({
1908
+ ...S,
1909
+ rootState: v
1796
1910
  }));
1797
1911
  }
1798
- const [d, u] = k(
1912
+ const [d, c] = T(
1799
1913
  () => [
1800
1914
  ...G(),
1801
1915
  ...e.customComponents || []
1802
1916
  ].reduce(
1803
- (x, { component: v, ...S }) => ({
1804
- ...x,
1805
- [S.name]: {
1806
- component: v,
1807
- ...Y(S)
1917
+ (v, { component: S, ...C }) => ({
1918
+ ...v,
1919
+ [C.name]: {
1920
+ component: S,
1921
+ ...Y(C)
1808
1922
  }
1809
1923
  }),
1810
1924
  {}
1811
1925
  )
1812
- ), [i, o] = k(() => ({
1926
+ ), [i, o] = T(() => ({
1813
1927
  content: wt({
1814
1928
  content: e.content,
1815
1929
  data: e.data
1816
1930
  }),
1817
1931
  localState: void 0,
1818
- rootState: Ct({
1932
+ rootState: It({
1819
1933
  content: e.content,
1820
1934
  data: e.data,
1821
1935
  locale: e.locale
@@ -1829,9 +1943,9 @@ function ee(e) {
1829
1943
  ...G(),
1830
1944
  ...e.customComponents || []
1831
1945
  ].reduce(
1832
- (x, { component: v, ...S }) => ({
1833
- ...x,
1834
- [S.name]: Y(S)
1946
+ (v, { component: S, ...C }) => ({
1947
+ ...v,
1948
+ [C.name]: Y(C)
1835
1949
  }),
1836
1950
  {}
1837
1951
  ),
@@ -1839,14 +1953,14 @@ function ee(e) {
1839
1953
  BlocksWrapper: e.blocksWrapper || "div",
1840
1954
  BlocksWrapperProps: e.blocksWrapperProps || {}
1841
1955
  }));
1842
- return /* @__PURE__ */ f(
1956
+ return /* @__PURE__ */ g(
1843
1957
  Re.Provider,
1844
1958
  {
1845
1959
  value: {
1846
1960
  registeredComponents: d
1847
1961
  },
1848
- children: /* @__PURE__ */ $(
1849
- It,
1962
+ children: /* @__PURE__ */ U(
1963
+ kt,
1850
1964
  {
1851
1965
  content: e.content,
1852
1966
  data: e.data,
@@ -1863,23 +1977,23 @@ function ee(e) {
1863
1977
  trustedHosts: e.trustedHosts,
1864
1978
  setBuilderContextSignal: o,
1865
1979
  children: [
1866
- e.isSsrAbTest ? /* @__PURE__ */ f(
1867
- B,
1980
+ e.isSsrAbTest ? /* @__PURE__ */ g(
1981
+ H,
1868
1982
  {
1869
1983
  id: "builderio-variant-visibility",
1870
1984
  scriptStr: t
1871
1985
  }
1872
1986
  ) : null,
1873
- /* @__PURE__ */ f(
1874
- kt,
1987
+ /* @__PURE__ */ g(
1988
+ Tt,
1875
1989
  {
1876
1990
  isNestedRender: e.isNestedRender,
1877
1991
  contentId: (m = i.content) == null ? void 0 : m.id,
1878
- cssCode: (C = (h = i.content) == null ? void 0 : h.data) == null ? void 0 : C.cssCode,
1879
- customFonts: (w = (I = i.content) == null ? void 0 : I.data) == null ? void 0 : w.customFonts
1992
+ cssCode: (I = (h = i.content) == null ? void 0 : h.data) == null ? void 0 : I.cssCode,
1993
+ customFonts: (w = (k = i.content) == null ? void 0 : k.data) == null ? void 0 : w.customFonts
1880
1994
  }
1881
1995
  ),
1882
- /* @__PURE__ */ f(
1996
+ /* @__PURE__ */ g(
1883
1997
  Ee,
1884
1998
  {
1885
1999
  blocks: (E = (R = i.content) == null ? void 0 : R.data) == null ? void 0 : E.blocks,
@@ -1894,18 +2008,18 @@ function ee(e) {
1894
2008
  }
1895
2009
  );
1896
2010
  }
1897
- function Dt(e) {
2011
+ function At(e) {
1898
2012
  var i;
1899
- const [t, n] = k(
2013
+ const [t, n] = T(
1900
2014
  () => dt({
1901
- canTrack: A(e.canTrack),
2015
+ canTrack: B(e.canTrack),
1902
2016
  content: e.content
1903
2017
  })
1904
2018
  );
1905
2019
  function a() {
1906
2020
  var o;
1907
2021
  return mt(
1908
- W(e.content).map((m) => ({
2022
+ P(e.content).map((m) => ({
1909
2023
  id: m.testVariationId,
1910
2024
  testRatio: m.testRatio
1911
2025
  })),
@@ -1913,43 +2027,44 @@ function Dt(e) {
1913
2027
  );
1914
2028
  }
1915
2029
  function d() {
1916
- return W(e.content).map((o) => `.variant-${o.testVariationId} { display: none; } `).join("");
2030
+ return P(e.content).map((o) => `.variant-${o.testVariationId} { display: none; } `).join("");
1917
2031
  }
1918
- function u() {
2032
+ function c() {
1919
2033
  var o;
1920
2034
  return t ? {
1921
2035
  ...e.content,
1922
2036
  testVariationId: (o = e.content) == null ? void 0 : o.id
1923
2037
  } : be({
1924
2038
  item: e.content,
1925
- canTrack: A(e.canTrack)
2039
+ canTrack: B(e.canTrack)
1926
2040
  });
1927
2041
  }
1928
- return T(() => {
1929
- }, []), /* @__PURE__ */ $(z, { children: [
1930
- !e.isNestedRender && te !== "reactNative" ? /* @__PURE__ */ f(
1931
- B,
2042
+ return x(() => {
2043
+ }, []), x(() => {
2044
+ }), /* @__PURE__ */ U(z, { children: [
2045
+ !e.isNestedRender && te !== "reactNative" ? /* @__PURE__ */ g(
2046
+ H,
1932
2047
  {
1933
2048
  id: "builderio-init-variants-fns",
1934
- scriptStr: ut()
2049
+ scriptStr: ct()
1935
2050
  }
1936
2051
  ) : null,
1937
- t ? /* @__PURE__ */ $(z, { children: [
1938
- /* @__PURE__ */ f(
2052
+ t ? /* @__PURE__ */ U(z, { children: [
2053
+ /* @__PURE__ */ g(
1939
2054
  ne,
1940
2055
  {
1941
2056
  id: "builderio-variants",
1942
2057
  styles: d()
1943
2058
  }
1944
2059
  ),
1945
- /* @__PURE__ */ f(
1946
- B,
2060
+ /* @__PURE__ */ g(
2061
+ H,
1947
2062
  {
1948
2063
  id: "builderio-variants-visibility",
1949
2064
  scriptStr: a()
1950
2065
  }
1951
2066
  ),
1952
- (i = W(e.content)) == null ? void 0 : i.map((o) => /* @__PURE__ */ f(
2067
+ (i = P(e.content)) == null ? void 0 : i.map((o) => /* @__PURE__ */ g(
1953
2068
  ee,
1954
2069
  {
1955
2070
  isNestedRender: e.isNestedRender,
@@ -1975,11 +2090,11 @@ function Dt(e) {
1975
2090
  o.testVariationId
1976
2091
  ))
1977
2092
  ] }) : null,
1978
- /* @__PURE__ */ f(
2093
+ /* @__PURE__ */ g(
1979
2094
  ee,
1980
2095
  {
1981
2096
  isNestedRender: e.isNestedRender,
1982
- content: u(),
2097
+ content: c(),
1983
2098
  showContent: !0,
1984
2099
  model: e.model,
1985
2100
  data: e.data,
@@ -2002,5 +2117,5 @@ function Dt(e) {
2002
2117
  ] });
2003
2118
  }
2004
2119
  export {
2005
- Dt as default
2120
+ At as default
2006
2121
  };