@builder.io/sdk-react 1.0.35 → 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 (74) hide show
  1. package/lib/browser/blocks-exports.cjs +24 -24
  2. package/lib/browser/blocks-exports.mjs +687 -510
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +6 -6
  6. package/lib/browser/init.mjs +29 -19
  7. package/lib/browser/{server-entry-6bbf0d8e.cjs → server-entry-4fb4a8b5.cjs} +1 -1
  8. package/lib/browser/{server-entry-b3ba0c65.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-5b4a3309.js → accordion-a25dee70.js} +1 -1
  12. package/lib/edge/{accordion-5cca8f06.cjs → accordion-d5929c1e.cjs} +1 -1
  13. package/lib/edge/{blocks-30dbe829.js → blocks-317ff1a5.js} +679 -671
  14. package/lib/edge/{blocks-7855e195.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-94d3cdf8.js → button-2f5bf5cf.js} +2 -2
  18. package/lib/edge/{button-1e80769d.cjs → button-b06330e4.cjs} +1 -1
  19. package/lib/edge/{columns-e5074ad9.js → columns-69453374.js} +3 -3
  20. package/lib/edge/{columns-18e70134.cjs → columns-ef105550.cjs} +1 -1
  21. package/lib/edge/{content-variants-4450b25f.js → content-variants-336e3b7f.js} +382 -228
  22. package/lib/edge/content-variants-f2620a07.cjs +134 -0
  23. package/lib/edge/{form-9ddabd0e.js → form-30431d39.js} +3 -3
  24. package/lib/edge/{form-a08b5177.cjs → form-55ba7324.cjs} +1 -1
  25. package/lib/edge/{get-class-prop-name-3a85a54d.cjs → get-class-prop-name-5da28706.cjs} +1 -1
  26. package/lib/edge/{get-class-prop-name-d5155434.js → get-class-prop-name-8d9f271c.js} +1 -1
  27. package/lib/edge/{img-256419c6.js → img-02bb6d39.js} +1 -1
  28. package/lib/edge/{img-a38d9d0b.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 +6 -6
  32. package/lib/edge/init.mjs +29 -19
  33. package/lib/edge/{input-76252038.cjs → input-448b664a.cjs} +1 -1
  34. package/lib/edge/{input-e030821e.js → input-d7e84d5c.js} +1 -1
  35. package/lib/edge/{select-92af3038.js → select-744ccf82.js} +5 -4
  36. package/lib/edge/select-7e98c1fc.cjs +1 -0
  37. package/lib/edge/{server-entry-b8d1a7db.js → server-entry-7003c754.js} +1 -1
  38. package/lib/edge/{server-entry-5b4426a1.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-27c3a577.js → slot-6ddfa828.js} +3 -3
  42. package/lib/edge/{slot-27ff859a.cjs → slot-fb11eb23.cjs} +1 -1
  43. package/lib/edge/{symbol-6c0f8a5c.js → symbol-ced9c879.js} +2 -2
  44. package/lib/edge/{symbol-3c1f8827.cjs → symbol-d82ac04c.cjs} +1 -1
  45. package/lib/edge/{tabs-770b1029.cjs → tabs-93843650.cjs} +1 -1
  46. package/lib/edge/{tabs-5b4535f0.js → tabs-ffcc16e4.js} +3 -3
  47. package/lib/edge/textarea-56a875bc.cjs +1 -0
  48. package/lib/edge/textarea-d29025e9.js +17 -0
  49. package/lib/node/blocks-exports.cjs +27 -27
  50. package/lib/node/blocks-exports.mjs +687 -510
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +2 -2
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +2 -2
  55. package/lib/node/{node-runtime-79df5f59.js → node-runtime-13876a87.js} +51 -41
  56. package/lib/node/node-runtime-b5d88fa0.cjs +48 -0
  57. package/lib/node/{server-entry-ea775ab5.js → server-entry-9942a35a.js} +1 -1
  58. package/lib/node/{server-entry-11bc96ae.cjs → server-entry-d0ae23af.cjs} +1 -1
  59. package/lib/node/server-entry.cjs +1 -1
  60. package/lib/node/server-entry.mjs +1 -1
  61. package/package.json +1 -2
  62. package/types/blocks/form/select/select.d.ts +1 -0
  63. package/types/blocks/form/textarea/component-info.d.ts +2 -0
  64. package/types/blocks/{textarea → form/textarea}/textarea.d.ts +1 -0
  65. package/types/components/block/block.helpers.d.ts +8 -8
  66. package/types/components/content-variants/inlined-fns.d.ts +1 -1
  67. package/types/constants/sdk-name.d.ts +1 -0
  68. package/types/constants/sdk-version.d.ts +1 -1
  69. package/types/types/components.d.ts +31 -0
  70. package/lib/edge/content-variants-d6dca201.cjs +0 -134
  71. package/lib/edge/select-98849dc7.cjs +0 -1
  72. package/lib/node/node-runtime-80dbd8f2.cjs +0 -48
  73. package/types/blocks/textarea/component-info.d.ts +0 -2
  74. /package/types/blocks/{textarea → form/textarea}/index.d.ts +0 -0
@@ -1,11 +1,11 @@
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-b8d1a7db.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-30dbe829.js";
6
- import "./get-class-prop-name-d5155434.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 = T(() => import("./accordion-5b4a3309.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 = T(() => import("./slot-27c3a577.js")), Ne = {
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: {
@@ -591,7 +639,7 @@ const P = {
591
639
  text: "New tab content "
592
640
  }
593
641
  }
594
- }, Be = {
642
+ }, Ne = {
595
643
  name: "Builder: Tabs",
596
644
  inputs: [{
597
645
  name: "tabs",
@@ -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
- }, je = T(() => import("./tabs-5b4535f0.js")), qe = {
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"],
@@ -728,7 +794,13 @@ const P = {
728
794
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
729
795
  advanced: !0
730
796
  }]
731
- }, _e = T(() => import("./custom-code-7786788e.js")), Me = {
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: [{
@@ -756,7 +828,7 @@ const P = {
756
828
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
757
829
  hideFromUI: !0
758
830
  }]
759
- }, Oe = T(() => import("./embed-5c1bbe12.js")), ze = {
831
+ }, Oe = y(() => import("./embed-5c1bbe12.js")), ze = {
760
832
  name: "Form:Form",
761
833
  // editableTags: ['builder-form-error']
762
834
  defaults: {
@@ -986,8 +1058,20 @@ const P = {
986
1058
  text: "Submit"
987
1059
  }
988
1060
  }
989
- }]
990
- }, Je = T(() => import("./form-9ddabd0e.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 = T(() => import("./input-e030821e.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 = T(() => import("./select-92af3038.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: {
@@ -1105,7 +1201,55 @@ const P = {
1105
1201
  // that only shows if advanced setting is flipped
1106
1202
  // TODO: defaultChildren
1107
1203
  // canHaveChildren: true,
1108
- }, et = T(() => import("./submit-button-b48361a7.js")), tt = {
1204
+ }, et = y(() => import("./submit-button-b48361a7.js")), tt = {
1205
+ shouldReceiveBuilderProps: {
1206
+ builderBlock: !1,
1207
+ builderContext: !1,
1208
+ builderComponents: !1,
1209
+ builderLinkComponent: !1
1210
+ },
1211
+ name: "Form:TextArea",
1212
+ image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
1213
+ inputs: [{
1214
+ advanced: !0,
1215
+ name: "value",
1216
+ type: "string"
1217
+ }, {
1218
+ name: "name",
1219
+ type: "string",
1220
+ required: !0,
1221
+ helperText: 'Every input in a form needs a unique name describing what it gets, e.g. "email"'
1222
+ }, {
1223
+ name: "defaultValue",
1224
+ type: "string"
1225
+ }, {
1226
+ name: "placeholder",
1227
+ type: "string",
1228
+ defaultValue: "Hello there"
1229
+ }, {
1230
+ name: "required",
1231
+ type: "boolean",
1232
+ defaultValue: !1
1233
+ }],
1234
+ defaultStyles: {
1235
+ paddingTop: "10px",
1236
+ paddingBottom: "10px",
1237
+ paddingLeft: "10px",
1238
+ paddingRight: "10px",
1239
+ borderRadius: "3px",
1240
+ borderWidth: "1px",
1241
+ borderStyle: "solid",
1242
+ borderColor: "#ccc"
1243
+ },
1244
+ static: !0,
1245
+ noWrap: !0
1246
+ }, nt = y(() => import("./textarea-d29025e9.js")), at = {
1247
+ shouldReceiveBuilderProps: {
1248
+ builderBlock: !1,
1249
+ builderContext: !1,
1250
+ builderComponents: !1,
1251
+ builderLinkComponent: !1
1252
+ },
1109
1253
  // friendlyName?
1110
1254
  name: "Raw:Img",
1111
1255
  hideFromInsertMenu: !0,
@@ -1119,7 +1263,7 @@ const P = {
1119
1263
  }],
1120
1264
  noWrap: !0,
1121
1265
  static: !0
1122
- }, nt = T(() => import("./img-256419c6.js")), at = {
1266
+ }, it = y(() => import("./img-02bb6d39.js")), ot = {
1123
1267
  name: "Video",
1124
1268
  canHaveChildren: !0,
1125
1269
  defaultStyles: {
@@ -1199,13 +1343,19 @@ const P = {
1199
1343
  helperText: 'Load this video "lazily" - as in only when a user scrolls near the video. Recommended for optmized performance and bandwidth consumption',
1200
1344
  defaultValue: !0,
1201
1345
  advanced: !0
1202
- }]
1203
- }, it = () => [{
1204
- component: _e,
1346
+ }],
1347
+ shouldReceiveBuilderProps: {
1348
+ builderBlock: !0,
1349
+ builderContext: !1,
1350
+ builderComponents: !1,
1351
+ builderLinkComponent: !1
1352
+ }
1353
+ }, rt = () => [{
1354
+ component: Me,
1205
1355
  ...Ke
1206
1356
  }, {
1207
1357
  component: Oe,
1208
- ...Me
1358
+ ..._e
1209
1359
  }, {
1210
1360
  component: Je,
1211
1361
  ...ze
@@ -1222,39 +1372,42 @@ const P = {
1222
1372
  component: nt,
1223
1373
  ...tt
1224
1374
  }, {
1225
- component: ye,
1375
+ component: it,
1226
1376
  ...at
1227
- }], G = () => [{
1377
+ }, {
1228
1378
  component: xe,
1229
- ...Ae
1379
+ ...ot
1380
+ }], G = () => [{
1381
+ component: ye,
1382
+ ...Be
1230
1383
  }, {
1231
1384
  component: ve,
1232
- ...Pe
1385
+ ...We
1233
1386
  }, {
1234
1387
  component: Se,
1388
+ ...Ae
1389
+ }, {
1390
+ component: Ce,
1391
+ ...Le
1392
+ }, {
1393
+ component: ke,
1235
1394
  ...De
1236
1395
  }, {
1237
- component: Te,
1396
+ component: $e,
1238
1397
  ...Ue
1239
1398
  }, {
1240
- component: Ie,
1241
- ...Le
1399
+ component: Te,
1400
+ ...He
1242
1401
  }, {
1243
- component: He,
1244
- ...$e
1402
+ component: Ie,
1403
+ ...je
1245
1404
  }, {
1246
- component: ke,
1405
+ component: qe,
1247
1406
  ...Ne
1248
1407
  }, {
1249
- component: Ce,
1250
- ...qe
1251
- }, {
1252
- component: je,
1253
- ...Be
1254
- }, {
1255
- component: We,
1408
+ component: Pe,
1256
1409
  ...Fe
1257
- }, ...it()], ot = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1410
+ }, ...rt()], lt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1258
1411
  function getAndSetVariantId() {
1259
1412
  function setCookie(name, value, days) {
1260
1413
  let expires = '';
@@ -1310,7 +1463,7 @@ const P = {
1310
1463
  }).join('');
1311
1464
  styleEl.innerHTML = newStyleStr;
1312
1465
  }
1313
- }`, rt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1466
+ }`, st = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1314
1467
  if (!navigator.cookieEnabled) {
1315
1468
  return;
1316
1469
  }
@@ -1344,27 +1497,27 @@ const P = {
1344
1497
  thisScriptEl?.remove();
1345
1498
  }
1346
1499
  return;
1347
- }`, 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) => ({
1348
1501
  ...t,
1349
1502
  testVariationId: t.id,
1350
1503
  id: e == null ? void 0 : e.id
1351
- })), lt = ({
1504
+ })), dt = ({
1352
1505
  canTrack: e,
1353
1506
  content: t
1354
- }) => !(!(W(t).length > 0) || !e || H()), st = (e) => e === "react" || e === "reactNative", oe = st(te), dt = () => `
1355
- window.${ae} = ${ot}
1356
- window.${ie} = ${rt}
1357
- `, ct = (e, t) => `
1507
+ }) => !(!(P(t).length > 0) || !e || $()), ut = (e) => e === "react" || e === "reactNative", oe = ut(te), ct = () => `
1508
+ window.${ae} = ${lt}
1509
+ window.${ie} = ${st}
1510
+ `, mt = (e, t) => `
1358
1511
  window.${ae}(
1359
1512
  "${t}",${JSON.stringify(e)}, ${oe}
1360
- )`, ut = ({
1513
+ )`, pt = ({
1361
1514
  contentId: e,
1362
1515
  variationId: t
1363
1516
  }) => `window.${ie}(
1364
1517
  "${t}", "${e}", ${oe}
1365
1518
  )`;
1366
- function N(e) {
1367
- return /* @__PURE__ */ f(
1519
+ function H(e) {
1520
+ return /* @__PURE__ */ g(
1368
1521
  "script",
1369
1522
  {
1370
1523
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -1375,7 +1528,7 @@ function N(e) {
1375
1528
  function X(e) {
1376
1529
  return Math.round(e * 1e3) / 1e3;
1377
1530
  }
1378
- const mt = (e, t, n = !0) => {
1531
+ const ft = (e, t, n = !0) => {
1379
1532
  if (!(e instanceof HTMLElement))
1380
1533
  return null;
1381
1534
  let a = n ? e : e.parentElement;
@@ -1386,20 +1539,20 @@ const mt = (e, t, n = !0) => {
1386
1539
  return a;
1387
1540
  } while (a = a.parentElement);
1388
1541
  return null;
1389
- }, pt = (e) => mt(e, (t) => {
1542
+ }, gt = (e) => ft(e, (t) => {
1390
1543
  const n = t.getAttribute("builder-id") || t.id;
1391
1544
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
1392
1545
  }), Z = ({
1393
1546
  event: e,
1394
1547
  target: t
1395
1548
  }) => {
1396
- 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);
1397
1550
  return {
1398
- x: u,
1551
+ x: c,
1399
1552
  y: i
1400
1553
  };
1401
- }, gt = (e) => {
1402
- const t = e.target, n = t && pt(t), a = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1554
+ }, ht = (e) => {
1555
+ const t = e.target, n = t && gt(t), a = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1403
1556
  return {
1404
1557
  targetBuilderElement: a || void 0,
1405
1558
  metadata: {
@@ -1414,9 +1567,9 @@ const mt = (e, t, n = !0) => {
1414
1567
  builderElementIndex: n && a ? [].slice.call(document.getElementsByClassName(a)).indexOf(n) : void 0
1415
1568
  }
1416
1569
  };
1417
- }, ft = (e) => {
1418
- var u, i;
1419
- 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;
1570
+ }, bt = (e) => {
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;
1420
1573
  let d = "";
1421
1574
  if (a && t && n && (d += `
1422
1575
  @font-face {
@@ -1440,15 +1593,15 @@ font-weight: ${o};
1440
1593
  `.trim());
1441
1594
  }
1442
1595
  return d;
1443
- }, ht = ({
1596
+ }, xt = ({
1444
1597
  customFonts: e
1445
1598
  }) => {
1446
1599
  var t;
1447
- return ((t = e == null ? void 0 : e.map((n) => ft(n))) == null ? void 0 : t.join(" ")) || "";
1448
- }, bt = ({
1600
+ return ((t = e == null ? void 0 : e.map((n) => bt(n))) == null ? void 0 : t.join(" ")) || "";
1601
+ }, yt = ({
1449
1602
  cssCode: e,
1450
1603
  contentId: t
1451
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", yt = `
1604
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", vt = `
1452
1605
  .builder-button {
1453
1606
  all: unset;
1454
1607
  }
@@ -1465,24 +1618,24 @@ font-weight: ${o};
1465
1618
  text-align: inherit;
1466
1619
  font-family: inherit;
1467
1620
  }
1468
- `, xt = (e) => e ? "" : yt, vt = (e) => `variant-${e}`;
1469
- function St(e) {
1470
- var B, j, q, K, _, M, O;
1621
+ `, St = (e) => e ? "" : vt, Ct = (e) => `variant-${e}`;
1622
+ function kt(e) {
1623
+ var N, q, j, K, M, _, O;
1471
1624
  const t = le(null);
1472
1625
  function n(r) {
1473
1626
  var p, s;
1474
- const c = {
1627
+ const u = {
1475
1628
  ...e.builderContextSignal.rootState,
1476
1629
  ...r
1477
1630
  };
1478
- 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) => ({
1479
1632
  ...l,
1480
- rootState: c
1633
+ rootState: u
1481
1634
  }));
1482
1635
  }
1483
1636
  function a(r) {
1484
- var p, s, l, g, V;
1485
- const c = {
1637
+ var p, s, l, f, V;
1638
+ const u = {
1486
1639
  ...e.builderContextSignal.content,
1487
1640
  ...r,
1488
1641
  data: {
@@ -1492,12 +1645,12 @@ function St(e) {
1492
1645
  meta: {
1493
1646
  ...(s = e.builderContextSignal.content) == null ? void 0 : s.meta,
1494
1647
  ...r == null ? void 0 : r.meta,
1495
- 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)
1496
1649
  }
1497
1650
  };
1498
1651
  e.setBuilderContextSignal((b) => ({
1499
1652
  ...b,
1500
- content: c
1653
+ content: u
1501
1654
  }));
1502
1655
  }
1503
1656
  function d() {
@@ -1506,35 +1659,35 @@ function St(e) {
1506
1659
  "aria-hidden": !0
1507
1660
  };
1508
1661
  }
1509
- const [u, i] = k(
1662
+ const [c, i] = T(
1510
1663
  () => e.contentWrapper || "div"
1511
1664
  );
1512
1665
  function o(r) {
1513
- return ge({
1666
+ return fe({
1514
1667
  model: e.model,
1515
1668
  trustedHosts: e.trustedHosts,
1516
1669
  callbacks: {
1517
- configureSdk: (c) => {
1670
+ configureSdk: (u) => {
1518
1671
  var l;
1519
- const { breakpoints: p, contentId: s } = c;
1672
+ const { breakpoints: p, contentId: s } = u;
1520
1673
  !s || s !== ((l = e.builderContextSignal.content) == null ? void 0 : l.id) || p && a({
1521
1674
  meta: {
1522
1675
  breakpoints: p
1523
1676
  }
1524
1677
  });
1525
1678
  },
1526
- animation: (c) => {
1527
- Ve(c);
1679
+ animation: (u) => {
1680
+ Ve(u);
1528
1681
  },
1529
- contentUpdate: (c) => {
1530
- a(c);
1682
+ contentUpdate: (u) => {
1683
+ a(u);
1531
1684
  }
1532
1685
  }
1533
1686
  })(r);
1534
1687
  }
1535
1688
  function m() {
1536
- var c, p;
1537
- 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;
1538
1691
  r && Q({
1539
1692
  code: r,
1540
1693
  context: e.context || {},
@@ -1547,31 +1700,31 @@ function St(e) {
1547
1700
  enableCache: !1
1548
1701
  });
1549
1702
  }
1550
- const [h, C] = k(() => ({})), [I, w] = k(() => ({})), [R, E] = k(() => !1);
1551
- function y(r) {
1552
- var c, p;
1703
+ const [h, I] = T(() => ({})), [k, w] = T(() => ({})), [R, E] = T(() => !1);
1704
+ function v(r) {
1705
+ var u, p;
1553
1706
  if (e.builderContextSignal.content) {
1554
- 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;
1555
1708
  J({
1556
1709
  type: "click",
1557
- canTrack: A(e.canTrack),
1710
+ canTrack: B(e.canTrack),
1558
1711
  contentId: l,
1559
1712
  apiKey: e.apiKey,
1560
1713
  variationId: s !== l ? s : void 0,
1561
- ...gt(r),
1714
+ ...ht(r),
1562
1715
  unique: !R
1563
1716
  });
1564
1717
  }
1565
1718
  R || E(!0);
1566
1719
  }
1567
- function x() {
1568
- var c, p, s;
1569
- const r = (s = (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.httpRequests) != null ? s : {};
1570
- Object.entries(r).forEach(([l, g]) => {
1571
- 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())
1572
1725
  return;
1573
- I[l] = !0;
1574
- const V = g.replace(
1726
+ k[l] = !0;
1727
+ const V = f.replace(
1575
1728
  /{{([^}]+)}}/g,
1576
1729
  (b, re) => String(
1577
1730
  Q({
@@ -1584,18 +1737,18 @@ function St(e) {
1584
1737
  })
1585
1738
  )
1586
1739
  );
1587
- fe(V).then((b) => b.json()).then((b) => {
1740
+ ge(V).then((b) => b.json()).then((b) => {
1588
1741
  n({
1589
1742
  [l]: b
1590
1743
  }), h[l] = !0;
1591
1744
  }).catch((b) => {
1592
- console.error("error fetching dynamic data", g, b);
1745
+ console.error("error fetching dynamic data", f, b);
1593
1746
  }).finally(() => {
1594
- I[l] = !1;
1747
+ k[l] = !1;
1595
1748
  });
1596
1749
  });
1597
1750
  }
1598
- function v() {
1751
+ function C() {
1599
1752
  F() && window.dispatchEvent(
1600
1753
  new CustomEvent(
1601
1754
  "builder:component:stateChange",
@@ -1610,9 +1763,9 @@ function St(e) {
1610
1763
  )
1611
1764
  );
1612
1765
  }
1613
- return S(() => {
1614
- var r, c;
1615
- if (H()) {
1766
+ return x(() => {
1767
+ var r, u;
1768
+ if ($()) {
1616
1769
  if (F() && (window.addEventListener("message", o), se(), de({
1617
1770
  ...e.locale ? {
1618
1771
  locale: e.locale
@@ -1626,27 +1779,27 @@ function St(e) {
1626
1779
  }), Object.values(
1627
1780
  e.builderContextSignal.componentInfos
1628
1781
  ).forEach((s) => {
1629
- var g;
1630
- const l = ce(s);
1631
- (g = window.parent) == null || g.postMessage(l, "*");
1782
+ var f;
1783
+ const l = ue(s);
1784
+ (f = window.parent) == null || f.postMessage(l, "*");
1632
1785
  }), window.addEventListener(
1633
1786
  "builder:component:stateChangeListenerActivated",
1634
- v
1635
- )), e.builderContextSignal.content && A(e.canTrack)) {
1636
- 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;
1637
1790
  J({
1638
1791
  type: "impression",
1639
1792
  canTrack: !0,
1640
1793
  contentId: l,
1641
- apiKey: g,
1794
+ apiKey: f,
1642
1795
  variationId: s !== l ? s : void 0
1643
1796
  });
1644
1797
  }
1645
- if (ue() && !F()) {
1646
- 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(
1647
1800
  `builder.overrides.${l}`
1648
1801
  ), V = s.get("apiKey") || s.get("builder.space");
1649
- 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({
1650
1803
  model: e.model,
1651
1804
  apiKey: e.apiKey,
1652
1805
  apiVersion: e.builderContextSignal.apiVersion
@@ -1655,67 +1808,67 @@ function St(e) {
1655
1808
  });
1656
1809
  }
1657
1810
  }
1658
- }, []), S(() => {
1811
+ }, []), x(() => {
1659
1812
  e.apiKey || pe.error(
1660
1813
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
1661
- ), m(), x(), v();
1662
- }, []), S(() => {
1814
+ ), m(), S(), C();
1815
+ }, []), x(() => {
1663
1816
  e.content && a(e.content);
1664
- }, [e.content]), S(() => {
1817
+ }, [e.content]), x(() => {
1665
1818
  m();
1666
- }, [(j = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : j.jsCode]), S(() => {
1667
- x();
1668
- }, [(K = (q = e.builderContextSignal.content) == null ? void 0 : q.data) == null ? void 0 : K.httpRequests]), S(() => {
1669
- v();
1670
- }, [e.builderContextSignal.rootState]), S(() => {
1819
+ }, [(q = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : q.jsCode]), x(() => {
1820
+ S();
1821
+ }, [(K = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : K.httpRequests]), x(() => {
1822
+ C();
1823
+ }, [e.builderContextSignal.rootState]), x(() => {
1671
1824
  e.data && n(e.data);
1672
- }, [e.data]), S(() => {
1825
+ }, [e.data]), x(() => {
1673
1826
  e.locale && n({
1674
1827
  locale: e.locale
1675
1828
  });
1676
- }, [e.locale]), S(() => () => {
1677
- H() && (window.removeEventListener("message", o), window.removeEventListener(
1829
+ }, [e.locale]), x(() => () => {
1830
+ $() && (window.removeEventListener("message", o), window.removeEventListener(
1678
1831
  "builder:component:stateChangeListenerActivated",
1679
- v
1832
+ C
1680
1833
  ));
1681
- }, []), /* @__PURE__ */ f(we.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ f(
1682
- u,
1834
+ }, []), /* @__PURE__ */ g(we.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ g(
1835
+ c,
1683
1836
  {
1684
1837
  ref: t,
1685
- onClick: (r) => y(r),
1686
- "builder-content-id": (_ = e.builderContextSignal.content) == null ? void 0 : _.id,
1838
+ onClick: (r) => v(r),
1839
+ "builder-content-id": (M = e.builderContextSignal.content) == null ? void 0 : M.id,
1687
1840
  "builder-model": e.model,
1688
1841
  ...d(),
1689
1842
  ...e.contentWrapperProps,
1690
- className: vt(
1691
- ((M = e.content) == null ? void 0 : M.testVariationId) || ((O = e.content) == null ? void 0 : O.id)
1843
+ className: Ct(
1844
+ ((_ = e.content) == null ? void 0 : _.testVariationId) || ((O = e.content) == null ? void 0 : O.id)
1692
1845
  ),
1693
1846
  children: e.children
1694
1847
  }
1695
1848
  ) : null });
1696
1849
  }
1697
1850
  function Tt(e) {
1698
- const [t, n] = k(
1851
+ const [t, n] = T(
1699
1852
  () => `
1700
- ${bt({
1853
+ ${yt({
1701
1854
  cssCode: e.cssCode,
1702
1855
  contentId: e.contentId
1703
1856
  })}
1704
- ${ht({
1857
+ ${xt({
1705
1858
  customFonts: e.customFonts
1706
1859
  })}
1707
- ${xt(e.isNestedRender)}
1860
+ ${St(e.isNestedRender)}
1708
1861
  `.trim()
1709
1862
  );
1710
- return /* @__PURE__ */ f(ne, { id: "builderio-content", styles: t });
1863
+ return /* @__PURE__ */ g(ne, { id: "builderio-content", styles: t });
1711
1864
  }
1712
1865
  const It = ({
1713
1866
  content: e,
1714
1867
  data: t,
1715
1868
  locale: n
1716
1869
  }) => {
1717
- var u, i, o;
1718
- 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) || {};
1719
1872
  return (o = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || o.forEach((m) => {
1720
1873
  m.name && m.defaultValue !== void 0 && (a[m.name] = m.defaultValue);
1721
1874
  }), {
@@ -1726,7 +1879,7 @@ const It = ({
1726
1879
  locale: n
1727
1880
  } : {}
1728
1881
  };
1729
- }, kt = ({
1882
+ }, wt = ({
1730
1883
  content: e,
1731
1884
  data: t
1732
1885
  }) => e ? {
@@ -1738,40 +1891,40 @@ const It = ({
1738
1891
  meta: e == null ? void 0 : e.meta
1739
1892
  } : void 0;
1740
1893
  function ee(e) {
1741
- var m, h, C, I, w, R, E;
1742
- const [t, n] = k(
1894
+ var m, h, I, k, w, R, E;
1895
+ const [t, n] = T(
1743
1896
  () => {
1744
- var y, x;
1745
- return ut({
1897
+ var v, S;
1898
+ return pt({
1746
1899
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
1747
- variationId: (y = e.content) == null ? void 0 : y.testVariationId,
1900
+ variationId: (v = e.content) == null ? void 0 : v.testVariationId,
1748
1901
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
1749
- contentId: (x = e.content) == null ? void 0 : x.id
1902
+ contentId: (S = e.content) == null ? void 0 : S.id
1750
1903
  });
1751
1904
  }
1752
1905
  );
1753
- function a(y) {
1754
- o((x) => ({
1755
- ...x,
1756
- rootState: y
1906
+ function a(v) {
1907
+ o((S) => ({
1908
+ ...S,
1909
+ rootState: v
1757
1910
  }));
1758
1911
  }
1759
- const [d, u] = k(
1912
+ const [d, c] = T(
1760
1913
  () => [
1761
1914
  ...G(),
1762
1915
  ...e.customComponents || []
1763
1916
  ].reduce(
1764
- (y, { component: x, ...v }) => ({
1765
- ...y,
1766
- [v.name]: {
1767
- component: x,
1768
- ...Y(v)
1917
+ (v, { component: S, ...C }) => ({
1918
+ ...v,
1919
+ [C.name]: {
1920
+ component: S,
1921
+ ...Y(C)
1769
1922
  }
1770
1923
  }),
1771
1924
  {}
1772
1925
  )
1773
- ), [i, o] = k(() => ({
1774
- content: kt({
1926
+ ), [i, o] = T(() => ({
1927
+ content: wt({
1775
1928
  content: e.content,
1776
1929
  data: e.data
1777
1930
  }),
@@ -1790,9 +1943,9 @@ function ee(e) {
1790
1943
  ...G(),
1791
1944
  ...e.customComponents || []
1792
1945
  ].reduce(
1793
- (y, { component: x, ...v }) => ({
1794
- ...y,
1795
- [v.name]: Y(v)
1946
+ (v, { component: S, ...C }) => ({
1947
+ ...v,
1948
+ [C.name]: Y(C)
1796
1949
  }),
1797
1950
  {}
1798
1951
  ),
@@ -1800,14 +1953,14 @@ function ee(e) {
1800
1953
  BlocksWrapper: e.blocksWrapper || "div",
1801
1954
  BlocksWrapperProps: e.blocksWrapperProps || {}
1802
1955
  }));
1803
- return /* @__PURE__ */ f(
1956
+ return /* @__PURE__ */ g(
1804
1957
  Re.Provider,
1805
1958
  {
1806
1959
  value: {
1807
1960
  registeredComponents: d
1808
1961
  },
1809
- children: /* @__PURE__ */ $(
1810
- St,
1962
+ children: /* @__PURE__ */ U(
1963
+ kt,
1811
1964
  {
1812
1965
  content: e.content,
1813
1966
  data: e.data,
@@ -1824,23 +1977,23 @@ function ee(e) {
1824
1977
  trustedHosts: e.trustedHosts,
1825
1978
  setBuilderContextSignal: o,
1826
1979
  children: [
1827
- e.isSsrAbTest ? /* @__PURE__ */ f(
1828
- N,
1980
+ e.isSsrAbTest ? /* @__PURE__ */ g(
1981
+ H,
1829
1982
  {
1830
1983
  id: "builderio-variant-visibility",
1831
1984
  scriptStr: t
1832
1985
  }
1833
1986
  ) : null,
1834
- /* @__PURE__ */ f(
1987
+ /* @__PURE__ */ g(
1835
1988
  Tt,
1836
1989
  {
1837
1990
  isNestedRender: e.isNestedRender,
1838
1991
  contentId: (m = i.content) == null ? void 0 : m.id,
1839
- cssCode: (C = (h = i.content) == null ? void 0 : h.data) == null ? void 0 : C.cssCode,
1840
- 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
1841
1994
  }
1842
1995
  ),
1843
- /* @__PURE__ */ f(
1996
+ /* @__PURE__ */ g(
1844
1997
  Ee,
1845
1998
  {
1846
1999
  blocks: (E = (R = i.content) == null ? void 0 : R.data) == null ? void 0 : E.blocks,
@@ -1857,16 +2010,16 @@ function ee(e) {
1857
2010
  }
1858
2011
  function At(e) {
1859
2012
  var i;
1860
- const [t, n] = k(
1861
- () => lt({
1862
- canTrack: A(e.canTrack),
2013
+ const [t, n] = T(
2014
+ () => dt({
2015
+ canTrack: B(e.canTrack),
1863
2016
  content: e.content
1864
2017
  })
1865
2018
  );
1866
2019
  function a() {
1867
2020
  var o;
1868
- return ct(
1869
- W(e.content).map((m) => ({
2021
+ return mt(
2022
+ P(e.content).map((m) => ({
1870
2023
  id: m.testVariationId,
1871
2024
  testRatio: m.testRatio
1872
2025
  })),
@@ -1874,43 +2027,44 @@ function At(e) {
1874
2027
  );
1875
2028
  }
1876
2029
  function d() {
1877
- 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("");
1878
2031
  }
1879
- function u() {
2032
+ function c() {
1880
2033
  var o;
1881
2034
  return t ? {
1882
2035
  ...e.content,
1883
2036
  testVariationId: (o = e.content) == null ? void 0 : o.id
1884
2037
  } : be({
1885
2038
  item: e.content,
1886
- canTrack: A(e.canTrack)
2039
+ canTrack: B(e.canTrack)
1887
2040
  });
1888
2041
  }
1889
- return S(() => {
1890
- }, []), /* @__PURE__ */ $(z, { children: [
1891
- !e.isNestedRender && te !== "reactNative" ? /* @__PURE__ */ f(
1892
- N,
2042
+ return x(() => {
2043
+ }, []), x(() => {
2044
+ }), /* @__PURE__ */ U(z, { children: [
2045
+ !e.isNestedRender && te !== "reactNative" ? /* @__PURE__ */ g(
2046
+ H,
1893
2047
  {
1894
2048
  id: "builderio-init-variants-fns",
1895
- scriptStr: dt()
2049
+ scriptStr: ct()
1896
2050
  }
1897
2051
  ) : null,
1898
- t ? /* @__PURE__ */ $(z, { children: [
1899
- /* @__PURE__ */ f(
2052
+ t ? /* @__PURE__ */ U(z, { children: [
2053
+ /* @__PURE__ */ g(
1900
2054
  ne,
1901
2055
  {
1902
2056
  id: "builderio-variants",
1903
2057
  styles: d()
1904
2058
  }
1905
2059
  ),
1906
- /* @__PURE__ */ f(
1907
- N,
2060
+ /* @__PURE__ */ g(
2061
+ H,
1908
2062
  {
1909
2063
  id: "builderio-variants-visibility",
1910
2064
  scriptStr: a()
1911
2065
  }
1912
2066
  ),
1913
- (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(
1914
2068
  ee,
1915
2069
  {
1916
2070
  isNestedRender: e.isNestedRender,
@@ -1936,11 +2090,11 @@ function At(e) {
1936
2090
  o.testVariationId
1937
2091
  ))
1938
2092
  ] }) : null,
1939
- /* @__PURE__ */ f(
2093
+ /* @__PURE__ */ g(
1940
2094
  ee,
1941
2095
  {
1942
2096
  isNestedRender: e.isNestedRender,
1943
- content: u(),
2097
+ content: c(),
1944
2098
  showContent: !0,
1945
2099
  model: e.model,
1946
2100
  data: e.data,