@builder.io/sdk-react 3.0.1 → 3.0.3-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 (107) hide show
  1. package/lib/browser/blocks-exports.cjs +169 -32
  2. package/lib/browser/blocks-exports.mjs +1331 -922
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +17 -16
  5. package/lib/browser/server-entry-c7bda8b5.cjs +2 -0
  6. package/lib/browser/server-entry-da1754bd.js +790 -0
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/accordion-388f5e60.cjs +1 -0
  10. package/lib/edge/{accordion-1572cb0d.js → accordion-50de133c.js} +17 -16
  11. package/lib/edge/blocks-5e476ddc.js +3534 -0
  12. package/lib/edge/blocks-a5193d52.cjs +30 -0
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +13 -12
  15. package/lib/edge/{button-0709893d.js → button-4261ae64.js} +2 -2
  16. package/lib/edge/{button-cf66cf8d.cjs → button-c6ec3aea.cjs} +1 -1
  17. package/lib/edge/{columns-e234acc6.js → columns-28e9fb0a.js} +14 -15
  18. package/lib/edge/columns-8c831c02.cjs +28 -0
  19. package/lib/edge/{content-variants-3ab9230f.js → content-variants-36ca4fe5.js} +297 -252
  20. package/lib/edge/content-variants-81713434.cjs +134 -0
  21. package/lib/edge/{custom-code-6d9730ff.cjs → custom-code-8119ea3f.cjs} +1 -1
  22. package/lib/edge/dynamic-blocks-exports.cjs +3 -1
  23. package/lib/edge/dynamic-blocks-exports.mjs +5 -2
  24. package/lib/edge/{form-27bcc23a.js → form-039fb5ff.js} +7 -8
  25. package/lib/edge/form-e7a1dec9.cjs +1 -0
  26. package/lib/edge/{get-class-prop-name-a3bd113c.js → get-class-prop-name-65d6824c.js} +1 -1
  27. package/lib/edge/{get-class-prop-name-0b3d48a4.cjs → get-class-prop-name-a86a3e60.cjs} +1 -1
  28. package/lib/edge/{image-5c9e156f.js → image-2a2b26d2.js} +6 -6
  29. package/lib/edge/{image-94922c87.cjs → image-4db81d72.cjs} +3 -3
  30. package/lib/edge/{img-80be6914.js → img-61d29fb3.js} +1 -1
  31. package/lib/edge/{img-e0c8f7f9.cjs → img-7de3a3de.cjs} +1 -1
  32. package/lib/edge/index.cjs +1 -1
  33. package/lib/edge/index.mjs +18 -17
  34. package/lib/edge/{input-f5ba6b1e.cjs → input-bd5387a6.cjs} +1 -1
  35. package/lib/edge/{input-920922d5.js → input-c8539054.js} +1 -1
  36. package/lib/edge/personalization-container-3fda6014.cjs +138 -0
  37. package/lib/edge/personalization-container-c76e4fef.js +379 -0
  38. package/lib/edge/{select-673864b7.js → select-6b5cda00.js} +1 -1
  39. package/lib/edge/{select-2ced1aca.cjs → select-73accaf4.cjs} +1 -1
  40. package/lib/edge/server-entry-838c1f06.js +788 -0
  41. package/lib/edge/server-entry-ea2a8b0e.cjs +2 -0
  42. package/lib/edge/server-entry.cjs +1 -1
  43. package/lib/edge/server-entry.mjs +1 -1
  44. package/lib/edge/slot-099112f1.cjs +1 -0
  45. package/lib/edge/{slot-68f2b177.js → slot-403c77da.js} +5 -6
  46. package/lib/edge/{symbol-7e260a70.js → symbol-97f456f4.js} +2 -2
  47. package/lib/edge/{symbol-ded9dba9.cjs → symbol-ffa6e6cd.cjs} +1 -1
  48. package/lib/edge/{tabs-5156494d.js → tabs-a7c94ead.js} +15 -16
  49. package/lib/edge/tabs-ad55c6a7.cjs +1 -0
  50. package/lib/edge/text-5915f038.js +17 -0
  51. package/lib/edge/text-e6dbb721.cjs +1 -0
  52. package/lib/node/blocks-exports.cjs +169 -32
  53. package/lib/node/blocks-exports.mjs +1359 -950
  54. package/lib/node/index.cjs +1 -1
  55. package/lib/node/index.mjs +17 -16
  56. package/lib/node/init.cjs +1 -1
  57. package/lib/node/init.mjs +3 -3
  58. package/lib/node/server-entry-51bc0b1d.js +791 -0
  59. package/lib/node/server-entry-d7316893.cjs +2 -0
  60. package/lib/node/server-entry.cjs +1 -1
  61. package/lib/node/server-entry.mjs +1 -1
  62. package/lib/node/{setIvm-8b303d4e.js → setIvm-575cf1f1.js} +1 -1
  63. package/lib/node/{setIvm-aba1bed8.cjs → setIvm-d912cf4d.cjs} +1 -1
  64. package/lib/node/setIvm.cjs +1 -1
  65. package/lib/node/setIvm.mjs +2 -2
  66. package/lib/node/{should-force-browser-runtime-in-node-491a9b55.cjs → should-force-browser-runtime-in-node-23225980.cjs} +1 -1
  67. package/lib/node/{should-force-browser-runtime-in-node-0a037bde.js → should-force-browser-runtime-in-node-66df4856.js} +1 -1
  68. package/package.json +1 -1
  69. package/types/blocks/index.d.ts +4 -0
  70. package/types/blocks/personalization-container/component-info.d.ts +2 -0
  71. package/types/blocks/personalization-container/helpers/index.d.ts +15 -0
  72. package/types/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -0
  73. package/types/blocks/personalization-container/helpers.d.ts +27 -0
  74. package/types/blocks/personalization-container/index.d.ts +1 -0
  75. package/types/blocks/personalization-container/personalization-container.d.ts +4 -0
  76. package/types/blocks/personalization-container/personalization-container.types.d.ts +14 -0
  77. package/types/blocks/textarea/component-info.d.ts +2 -0
  78. package/types/blocks/textarea/index.d.ts +1 -0
  79. package/types/blocks/textarea/textarea.d.ts +14 -0
  80. package/types/constants/sdk-version.d.ts +1 -1
  81. package/types/functions/filter-with-custom-targeting.d.ts +15 -0
  82. package/types/functions/get-block-component-options.d.ts +2 -1
  83. package/types/functions/get-processed-block.d.ts +1 -6
  84. package/types/helpers/flatten.d.ts +6 -0
  85. package/types/helpers/user-attributes.d.ts +17 -0
  86. package/types/index-helpers/blocks-exports.d.ts +1 -0
  87. package/types/server-index.d.ts +1 -1
  88. package/types/types/builder-content.d.ts +1 -0
  89. package/types/types/input.d.ts +11 -0
  90. package/lib/browser/server-entry-017b8439.js +0 -717
  91. package/lib/browser/server-entry-9f80066e.cjs +0 -2
  92. package/lib/edge/accordion-decb24cf.cjs +0 -1
  93. package/lib/edge/blocks-9c35be74.js +0 -916
  94. package/lib/edge/blocks-d3823063.cjs +0 -12
  95. package/lib/edge/columns-2fdf0656.cjs +0 -28
  96. package/lib/edge/content-variants-616a6c0f.cjs +0 -134
  97. package/lib/edge/evaluate-ccf1ad96.cjs +0 -19
  98. package/lib/edge/evaluate-f0b82ede.js +0 -2612
  99. package/lib/edge/form-7c61693d.cjs +0 -1
  100. package/lib/edge/server-entry-6c0047ea.js +0 -715
  101. package/lib/edge/server-entry-de142ee8.cjs +0 -2
  102. package/lib/edge/slot-cc8b4e5b.cjs +0 -1
  103. package/lib/edge/tabs-d422921f.cjs +0 -1
  104. package/lib/edge/text-27a917c0.js +0 -37
  105. package/lib/edge/text-5796f488.cjs +0 -1
  106. package/lib/node/server-entry-e91e06a3.cjs +0 -2
  107. package/lib/node/server-entry-fdedc1aa.js +0 -718
@@ -1,12 +1,9 @@
1
- import { jsx as h, jsxs as q, Fragment as O } from "react/jsx-runtime";
2
- import { lazy as v, useRef as $, useState as I, useEffect as V } from "react";
3
- import { isBrowser as j, TARGET as _, isEditing as F, isPreviewing as ee, registerInsertMenu as le, setupBrowserForEditing as se, createRegisterComponentMessage as de, getDefaultCanTrack as D, _track as z, fetchOneEntry as ce, createEditorListener as ue, logFetch as me, serializeIncludingFunctions as J, logger as pe, handleABTestingSync as fe } from "./server-entry-6c0047ea.js";
1
+ import { jsx as h, jsxs as $, Fragment as z } from "react/jsx-runtime";
2
+ import { lazy as v, useRef as _, useState as I, useEffect as V } from "react";
3
+ import { isBrowser as j, TARGET as K, isEditing as F, isPreviewing as te, registerInsertMenu as le, setupBrowserForEditing as se, createRegisterComponentMessage as de, getDefaultCanTrack as H, _track as J, fetchOneEntry as ue, createEditorListener as ce, logFetch as me, serializeIncludingFunctions as Y, logger as pe, handleABTestingSync as fe } from "./server-entry-838c1f06.js";
4
4
  import { Video as ge, Button as he, Columns as be, Fragment as ye, Image as xe, Section as ve, Symbol as Se, Text as Te, BuilderContext as Ie } from "./blocks-exports.mjs";
5
- import { triggerAnimation as ke, fastClone as Ce, InlinedStyles as te, ComponentsContext as we, Blocks as Ve } from "./blocks-9c35be74.js";
6
- import { evaluate as ne } from "./evaluate-f0b82ede.js";
7
- import "./get-class-prop-name-a3bd113c.js";
8
- import "./dynamic-renderer-8b343325.js";
9
- const H = {
5
+ import { triggerAnimation as ke, evaluate as ne, fastClone as Ce, InlinedStyles as ae, ComponentsContext as we, Blocks as Ve } from "./blocks-5e476ddc.js";
6
+ const U = {
10
7
  "@type": "@builder.io/sdk:Element",
11
8
  layerName: "Accordion item title",
12
9
  responsiveStyles: {
@@ -83,7 +80,7 @@ const H = {
83
80
  name: "title",
84
81
  type: "uiBlocks",
85
82
  hideFromUI: !0,
86
- defaultValue: [H]
83
+ defaultValue: [U]
87
84
  }, {
88
85
  name: "detail",
89
86
  type: "uiBlocks",
@@ -91,10 +88,10 @@ const H = {
91
88
  defaultValue: [L]
92
89
  }],
93
90
  defaultValue: [{
94
- title: [H],
91
+ title: [U],
95
92
  detail: [L]
96
93
  }, {
97
- title: [H],
94
+ title: [U],
98
95
  detail: [L]
99
96
  }],
100
97
  showIf: (e) => !e.get("useChildrenForItems")
@@ -130,7 +127,7 @@ const H = {
130
127
  builderComponents: !0,
131
128
  builderLinkComponent: !0
132
129
  }
133
- }, Ee = v(() => import("./accordion-1572cb0d.js")), Fe = {
130
+ }, Ee = v(() => import("./accordion-50de133c.js")), Fe = {
134
131
  name: "Core:Button",
135
132
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
136
133
  defaultStyles: {
@@ -345,7 +342,7 @@ const H = {
345
342
  });
346
343
  }
347
344
  const n = e.get("columns");
348
- Array.isArray(n) && n.find((s) => s.get("width")) && (n.find((u) => !u.get("width")) || n.reduce((o, m) => o + m.get("width"), 0) !== 100) && t();
345
+ Array.isArray(n) && n.find((l) => l.get("width")) && (n.find((u) => !u.get("width")) || n.reduce((o, c) => o + c.get("width"), 0) !== 100) && t();
349
346
  }
350
347
  }, {
351
348
  name: "space",
@@ -373,13 +370,13 @@ const H = {
373
370
  builderComponents: !0,
374
371
  builderLinkComponent: !0
375
372
  }
376
- }, Ae = {
373
+ }, We = {
377
374
  name: "Fragment",
378
375
  static: !0,
379
376
  hidden: !0,
380
377
  canHaveChildren: !0,
381
378
  noWrap: !0
382
- }, M = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], We = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Be = {
379
+ }, M = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Ae = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], Be = {
383
380
  name: "Image",
384
381
  static: !0,
385
382
  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",
@@ -400,28 +397,28 @@ const H = {
400
397
  onChange: (e) => {
401
398
  e.delete("srcset"), e.delete("noWebp");
402
399
  function n(a, o = 6e4) {
403
- return new Promise((m, S) => {
404
- const y = document.createElement("img");
400
+ return new Promise((c, T) => {
401
+ const S = document.createElement("img");
405
402
  let R = !1;
406
- y.onload = () => {
407
- R = !0, m(y);
408
- }, y.addEventListener("error", (k) => {
409
- console.warn("Image load failed", k.error), S(k.error);
410
- }), y.src = a, setTimeout(() => {
411
- R || S(new Error("Image load timed out"));
403
+ S.onload = () => {
404
+ R = !0, c(S);
405
+ }, S.addEventListener("error", (k) => {
406
+ console.warn("Image load failed", k.error), T(k.error);
407
+ }), S.src = a, setTimeout(() => {
408
+ R || T(new Error("Image load timed out"));
412
409
  }, o);
413
410
  });
414
411
  }
415
412
  function i(a) {
416
413
  return Math.round(a * 1e3) / 1e3;
417
414
  }
418
- const s = e.get("image"), u = e.get("aspectRatio");
419
- if (fetch(s).then((a) => a.blob()).then((a) => {
415
+ const l = e.get("image"), u = e.get("aspectRatio");
416
+ if (fetch(l).then((a) => a.blob()).then((a) => {
420
417
  a.type.includes("svg") && e.set("noWebp", !0);
421
- }), s && (!u || u === 0.7041))
422
- return n(s).then((a) => {
418
+ }), l && (!u || u === 0.7041))
419
+ return n(l).then((a) => {
423
420
  const o = e.get("aspectRatio");
424
- e.get("image") === s && (!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));
421
+ e.get("image") === l && (!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));
425
422
  });
426
423
  }
427
424
  }, {
@@ -488,6 +485,41 @@ const H = {
488
485
  builderBlock: !0
489
486
  }
490
487
  }, De = {
488
+ name: "PersonalizationContainer",
489
+ shouldReceiveBuilderProps: {
490
+ builderBlock: !0,
491
+ builderContext: !0
492
+ },
493
+ noWrap: !0,
494
+ image: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F37229ed30d8c41dfb10b8cca1992053a",
495
+ canHaveChildren: !0,
496
+ inputs: [{
497
+ name: "variants",
498
+ defaultValue: [],
499
+ behavior: "personalizationVariantList",
500
+ type: "list",
501
+ subFields: [{
502
+ name: "name",
503
+ type: "text"
504
+ }, {
505
+ name: "query",
506
+ friendlyName: "Targeting rules",
507
+ type: "BuilderQuery",
508
+ defaultValue: []
509
+ }, {
510
+ name: "startDate",
511
+ type: "date"
512
+ }, {
513
+ name: "endDate",
514
+ type: "date"
515
+ }, {
516
+ name: "blocks",
517
+ type: "uiBlocks",
518
+ hideFromUI: !0,
519
+ defaultValue: []
520
+ }]
521
+ }]
522
+ }, He = v(() => import("./personalization-container-c76e4fef.js")), Ue = {
491
523
  name: "Core:Section",
492
524
  static: !0,
493
525
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -526,7 +558,7 @@ const H = {
526
558
  }
527
559
  }
528
560
  }]
529
- }, He = {
561
+ }, Le = {
530
562
  name: "Slot",
531
563
  isRSC: !0,
532
564
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -543,7 +575,7 @@ const H = {
543
575
  builderContext: !0,
544
576
  builderComponents: !0
545
577
  }
546
- }, Le = v(() => import("./slot-68f2b177.js")), Ue = {
578
+ }, Ne = v(() => import("./slot-403c77da.js")), qe = {
547
579
  name: "Symbol",
548
580
  noWrap: !0,
549
581
  static: !0,
@@ -582,7 +614,7 @@ const H = {
582
614
  builderComponents: !0,
583
615
  builderLinkComponent: !0
584
616
  }
585
- }, U = {
617
+ }, N = {
586
618
  "@type": "@builder.io/sdk:Element",
587
619
  responsiveStyles: {
588
620
  large: {
@@ -604,7 +636,7 @@ const H = {
604
636
  text: "New tab"
605
637
  }
606
638
  }
607
- }, N = {
639
+ }, q = {
608
640
  "@type": "@builder.io/sdk:Element",
609
641
  responsiveStyles: {
610
642
  large: {
@@ -620,7 +652,7 @@ const H = {
620
652
  text: "New tab content "
621
653
  }
622
654
  }
623
- }, Ne = {
655
+ }, $e = {
624
656
  name: "Builder: Tabs",
625
657
  inputs: [{
626
658
  name: "tabs",
@@ -630,16 +662,16 @@ const H = {
630
662
  name: "label",
631
663
  type: "uiBlocks",
632
664
  hideFromUI: !0,
633
- defaultValue: [U]
665
+ defaultValue: [N]
634
666
  }, {
635
667
  name: "content",
636
668
  type: "uiBlocks",
637
669
  hideFromUI: !0,
638
- defaultValue: [N]
670
+ defaultValue: [q]
639
671
  }],
640
672
  defaultValue: [{
641
673
  label: [{
642
- ...U,
674
+ ...N,
643
675
  component: {
644
676
  name: "Text",
645
677
  options: {
@@ -648,7 +680,7 @@ const H = {
648
680
  }
649
681
  }],
650
682
  content: [{
651
- ...N,
683
+ ...q,
652
684
  component: {
653
685
  name: "Text",
654
686
  options: {
@@ -658,7 +690,7 @@ const H = {
658
690
  }]
659
691
  }, {
660
692
  label: [{
661
- ...U,
693
+ ...N,
662
694
  component: {
663
695
  name: "Text",
664
696
  options: {
@@ -667,7 +699,7 @@ const H = {
667
699
  }
668
700
  }],
669
701
  content: [{
670
- ...N,
702
+ ...q,
671
703
  component: {
672
704
  name: "Text",
673
705
  options: {
@@ -723,7 +755,7 @@ const H = {
723
755
  builderComponents: !0,
724
756
  builderLinkComponent: !0
725
757
  }
726
- }, qe = v(() => import("./tabs-5156494d.js")), $e = {
758
+ }, _e = v(() => import("./tabs-a7c94ead.js")), je = {
727
759
  shouldReceiveBuilderProps: {
728
760
  builderBlock: !1,
729
761
  builderContext: !0
@@ -745,7 +777,7 @@ const H = {
745
777
  height: "auto",
746
778
  textAlign: "center"
747
779
  }
748
- }, je = {
780
+ }, Oe = {
749
781
  name: "Custom Code",
750
782
  static: !0,
751
783
  requiredPermissions: ["editCode"],
@@ -767,7 +799,7 @@ const H = {
767
799
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
768
800
  advanced: !0
769
801
  }]
770
- }, Ke = v(() => import("./custom-code-7786788e.js")), _e = {
802
+ }, Ke = v(() => import("./custom-code-7786788e.js")), Me = {
771
803
  name: "Embed",
772
804
  static: !0,
773
805
  inputs: [{
@@ -782,7 +814,7 @@ const H = {
782
814
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
783
815
  hideFromUI: !0
784
816
  }]
785
- }, Me = v(() => import("./embed-5c1bbe12.js")), Oe = {
817
+ }, ze = v(() => import("./embed-5c1bbe12.js")), Je = {
786
818
  name: "Form:Form",
787
819
  // editableTags: ['builder-form-error']
788
820
  defaults: {
@@ -1019,7 +1051,7 @@ const H = {
1019
1051
  builderComponents: !0,
1020
1052
  builderLinkComponent: !0
1021
1053
  }
1022
- }, ze = v(() => import("./form-27bcc23a.js")), Je = {
1054
+ }, Ye = v(() => import("./form-039fb5ff.js")), Ge = {
1023
1055
  name: "Form:Input",
1024
1056
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
1025
1057
  inputs: [
@@ -1070,7 +1102,7 @@ const H = {
1070
1102
  borderStyle: "solid",
1071
1103
  borderColor: "#ccc"
1072
1104
  }
1073
- }, Ye = v(() => import("./input-920922d5.js")), Ge = {
1105
+ }, Qe = v(() => import("./input-c8539054.js")), Xe = {
1074
1106
  name: "Form:Select",
1075
1107
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
1076
1108
  defaultStyles: {
@@ -1112,7 +1144,7 @@ const H = {
1112
1144
  }],
1113
1145
  static: !0,
1114
1146
  noWrap: !0
1115
- }, Qe = v(() => import("./select-673864b7.js")), Xe = {
1147
+ }, Ze = v(() => import("./select-6b5cda00.js")), et = {
1116
1148
  name: "Form:SubmitButton",
1117
1149
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
1118
1150
  defaultStyles: {
@@ -1137,7 +1169,7 @@ const H = {
1137
1169
  // that only shows if advanced setting is flipped
1138
1170
  // TODO: defaultChildren
1139
1171
  // canHaveChildren: true,
1140
- }, Ze = v(() => import("./submit-button-b48361a7.js")), et = {
1172
+ }, tt = v(() => import("./submit-button-b48361a7.js")), nt = {
1141
1173
  name: "Form:TextArea",
1142
1174
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
1143
1175
  inputs: [{
@@ -1173,7 +1205,7 @@ const H = {
1173
1205
  },
1174
1206
  static: !0,
1175
1207
  noWrap: !0
1176
- }, tt = v(() => import("./textarea-d29025e9.js")), nt = {
1208
+ }, at = v(() => import("./textarea-d29025e9.js")), it = {
1177
1209
  // friendlyName?
1178
1210
  name: "Raw:Img",
1179
1211
  hideFromInsertMenu: !0,
@@ -1187,7 +1219,7 @@ const H = {
1187
1219
  }],
1188
1220
  noWrap: !0,
1189
1221
  static: !0
1190
- }, at = v(() => import("./img-80be6914.js")), it = {
1222
+ }, ot = v(() => import("./img-61d29fb3.js")), rt = {
1191
1223
  name: "Video",
1192
1224
  canHaveChildren: !0,
1193
1225
  defaultStyles: {
@@ -1198,7 +1230,7 @@ const H = {
1198
1230
  inputs: [{
1199
1231
  name: "video",
1200
1232
  type: "file",
1201
- allowedFileTypes: We,
1233
+ allowedFileTypes: Ae,
1202
1234
  bubble: !0,
1203
1235
  defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
1204
1236
  required: !0
@@ -1271,34 +1303,34 @@ const H = {
1271
1303
  shouldReceiveBuilderProps: {
1272
1304
  builderBlock: !0
1273
1305
  }
1274
- }, ot = () => [{
1306
+ }, lt = () => [{
1275
1307
  component: Ke,
1276
- ...je
1277
- }, {
1278
- component: Me,
1279
- ..._e
1308
+ ...Oe
1280
1309
  }, {
1281
1310
  component: ze,
1282
- ...Oe
1311
+ ...Me
1283
1312
  }, {
1284
1313
  component: Ye,
1285
1314
  ...Je
1286
- }, {
1287
- component: Ze,
1288
- ...Xe
1289
1315
  }, {
1290
1316
  component: Qe,
1291
1317
  ...Ge
1292
1318
  }, {
1293
1319
  component: tt,
1294
1320
  ...et
1321
+ }, {
1322
+ component: Ze,
1323
+ ...Xe
1295
1324
  }, {
1296
1325
  component: at,
1297
1326
  ...nt
1298
1327
  }, {
1299
- component: ge,
1328
+ component: ot,
1300
1329
  ...it
1301
- }], Y = () => [{
1330
+ }, {
1331
+ component: ge,
1332
+ ...rt
1333
+ }], G = () => [{
1302
1334
  component: he,
1303
1335
  ...Fe
1304
1336
  }, {
@@ -1306,29 +1338,32 @@ const H = {
1306
1338
  ...Pe
1307
1339
  }, {
1308
1340
  component: ye,
1309
- ...Ae
1341
+ ...We
1310
1342
  }, {
1311
1343
  component: xe,
1312
1344
  ...Be
1313
1345
  }, {
1314
1346
  component: ve,
1315
- ...De
1347
+ ...Ue
1316
1348
  }, {
1317
- component: Le,
1318
- ...He
1349
+ component: Ne,
1350
+ ...Le
1319
1351
  }, {
1320
1352
  component: Se,
1321
- ...Ue
1353
+ ...qe
1322
1354
  }, {
1323
1355
  component: Te,
1324
- ...$e
1356
+ ...je
1357
+ }, {
1358
+ component: He,
1359
+ ...De
1325
1360
  }, {
1326
- component: qe,
1327
- ...Ne
1361
+ component: _e,
1362
+ ...$e
1328
1363
  }, {
1329
1364
  component: Ee,
1330
1365
  ...Re
1331
- }, ...ot()], rt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1366
+ }, ...lt()], st = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1332
1367
  function getAndSetVariantId() {
1333
1368
  function setCookie(name, value, days) {
1334
1369
  let expires = '';
@@ -1384,7 +1419,7 @@ const H = {
1384
1419
  }).join('');
1385
1420
  styleEl.innerHTML = newStyleStr;
1386
1421
  }
1387
- }`, lt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1422
+ }`, dt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1388
1423
  if (!navigator.cookieEnabled) {
1389
1424
  return;
1390
1425
  }
@@ -1418,26 +1453,26 @@ const H = {
1418
1453
  thisScriptEl?.remove();
1419
1454
  }
1420
1455
  return;
1421
- }`, ae = "builderIoAbTest", ie = "builderIoRenderContent", B = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1456
+ }`, ie = "builderIoAbTest", oe = "builderIoRenderContent", D = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1422
1457
  ...t,
1423
1458
  testVariationId: t.id,
1424
1459
  id: e == null ? void 0 : e.id
1425
- })), st = ({
1460
+ })), ut = ({
1426
1461
  canTrack: e,
1427
1462
  content: t
1428
- }) => !(!(B(t).length > 0) || !e || j()), dt = (e) => e === "react" || e === "reactNative", oe = dt(_), ct = () => `
1429
- window.${ae} = ${rt}
1430
- window.${ie} = ${lt}
1431
- `, ut = (e, t) => `
1432
- window.${ae}(
1433
- "${t}",${JSON.stringify(e)}, ${oe}
1434
- )`, mt = ({
1463
+ }) => !(!(D(t).length > 0) || !e || j()), ct = (e) => e === "react" || e === "reactNative", re = ct(K), mt = () => `
1464
+ window.${ie} = ${st}
1465
+ window.${oe} = ${dt}
1466
+ `, pt = (e, t) => `
1467
+ window.${ie}(
1468
+ "${t}",${JSON.stringify(e)}, ${re}
1469
+ )`, ft = ({
1435
1470
  contentId: e,
1436
1471
  variationId: t
1437
- }) => `window.${ie}(
1438
- "${t}", "${e}", ${oe}
1472
+ }) => `window.${oe}(
1473
+ "${t}", "${e}", ${re}
1439
1474
  )`;
1440
- function K(e) {
1475
+ function O(e) {
1441
1476
  return /* @__PURE__ */ h(
1442
1477
  "script",
1443
1478
  {
@@ -1447,10 +1482,10 @@ function K(e) {
1447
1482
  }
1448
1483
  );
1449
1484
  }
1450
- function G(e) {
1485
+ function Q(e) {
1451
1486
  return Math.round(e * 1e3) / 1e3;
1452
1487
  }
1453
- const pt = (e, t, n = !0) => {
1488
+ const gt = (e, t, n = !0) => {
1454
1489
  if (!(e instanceof HTMLElement))
1455
1490
  return null;
1456
1491
  let i = n ? e : e.parentElement;
@@ -1461,39 +1496,39 @@ const pt = (e, t, n = !0) => {
1461
1496
  return i;
1462
1497
  } while (i = i.parentElement);
1463
1498
  return null;
1464
- }, ft = (e) => pt(e, (t) => {
1499
+ }, ht = (e) => gt(e, (t) => {
1465
1500
  const n = t.getAttribute("builder-id") || t.id;
1466
1501
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
1467
- }), Q = ({
1502
+ }), X = ({
1468
1503
  event: e,
1469
1504
  target: t
1470
1505
  }) => {
1471
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, s = e.clientY - n.top, u = G(i / n.width), a = G(s / n.height);
1506
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, l = e.clientY - n.top, u = Q(i / n.width), a = Q(l / n.height);
1472
1507
  return {
1473
1508
  x: u,
1474
1509
  y: a
1475
1510
  };
1476
- }, gt = (e) => {
1477
- const t = e.target, n = t && ft(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1511
+ }, bt = (e) => {
1512
+ const t = e.target, n = t && ht(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1478
1513
  return {
1479
1514
  targetBuilderElement: i || void 0,
1480
1515
  metadata: {
1481
- targetOffset: t ? Q({
1516
+ targetOffset: t ? X({
1482
1517
  event: e,
1483
1518
  target: t
1484
1519
  }) : void 0,
1485
- builderTargetOffset: n ? Q({
1520
+ builderTargetOffset: n ? X({
1486
1521
  event: e,
1487
1522
  target: n
1488
1523
  }) : void 0,
1489
1524
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
1490
1525
  }
1491
1526
  };
1492
- }, ht = ["svelte", "qwik", "vue"], X = () => ht.includes(_) && (F() || ee()), bt = (e) => {
1527
+ }, yt = ["svelte", "qwik", "vue"], Z = () => yt.includes(K) && (F() || te()), xt = (e) => {
1493
1528
  var u, a;
1494
1529
  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;
1495
- let s = "";
1496
- if (i && t && n && (s += `
1530
+ let l = "";
1531
+ if (i && t && n && (l += `
1497
1532
  @font-face {
1498
1533
  font-family: "${t}";
1499
1534
  src: local("${n}"), url('${i}') format('woff2');
@@ -1504,26 +1539,26 @@ font-weight: 400;
1504
1539
  for (const o in e.files) {
1505
1540
  if (!(String(Number(o)) === o))
1506
1541
  continue;
1507
- const S = e.files[o];
1508
- S && S !== i && (s += `
1542
+ const T = e.files[o];
1543
+ T && T !== i && (l += `
1509
1544
  @font-face {
1510
1545
  font-family: "${t}";
1511
- src: url('${S}') format('woff2');
1546
+ src: url('${T}') format('woff2');
1512
1547
  font-display: fallback;
1513
1548
  font-weight: ${o};
1514
1549
  }
1515
1550
  `.trim());
1516
1551
  }
1517
- return s;
1518
- }, yt = ({
1552
+ return l;
1553
+ }, vt = ({
1519
1554
  customFonts: e
1520
1555
  }) => {
1521
1556
  var t;
1522
- return ((t = e == null ? void 0 : e.map((n) => bt(n))) == null ? void 0 : t.join(" ")) || "";
1523
- }, xt = ({
1557
+ return ((t = e == null ? void 0 : e.map((n) => xt(n))) == null ? void 0 : t.join(" ")) || "";
1558
+ }, St = ({
1524
1559
  cssCode: e,
1525
1560
  contentId: t
1526
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", vt = `
1561
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Tt = `
1527
1562
  .builder-button {
1528
1563
  all: unset;
1529
1564
  }
@@ -1540,42 +1575,42 @@ font-weight: ${o};
1540
1575
  text-align: inherit;
1541
1576
  font-family: inherit;
1542
1577
  }
1543
- `, St = (e) => e ? "" : vt, Tt = (e) => `variant-${e}`;
1544
- function It(e) {
1545
- var f, b, C;
1546
- const t = $(null);
1547
- function n(d) {
1548
- var p, r;
1549
- const c = {
1578
+ `, It = (e) => e ? "" : Tt, kt = (e) => `variant-${e}`;
1579
+ function Ct(e) {
1580
+ var g, b, C;
1581
+ const t = _(null);
1582
+ function n(s) {
1583
+ var m, f;
1584
+ const d = {
1550
1585
  ...e.builderContextSignal.rootState,
1551
- ...d
1586
+ ...s
1552
1587
  };
1553
- e.builderContextSignal.rootSetState ? (r = (p = e.builderContextSignal).rootSetState) == null || r.call(p, c) : e.setBuilderContextSignal((l) => ({
1554
- ...l,
1555
- rootState: c
1588
+ e.builderContextSignal.rootSetState ? (f = (m = e.builderContextSignal).rootSetState) == null || f.call(m, d) : e.setBuilderContextSignal((r) => ({
1589
+ ...r,
1590
+ rootState: d
1556
1591
  }));
1557
1592
  }
1558
- function i(d) {
1559
- var p, r, l, g, T;
1560
- const c = {
1593
+ function i(s) {
1594
+ var m, f, r, p, y;
1595
+ const d = {
1561
1596
  ...e.builderContextSignal.content,
1562
- ...d,
1597
+ ...s,
1563
1598
  data: {
1564
- ...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
1565
- ...d == null ? void 0 : d.data
1599
+ ...(m = e.builderContextSignal.content) == null ? void 0 : m.data,
1600
+ ...s == null ? void 0 : s.data
1566
1601
  },
1567
1602
  meta: {
1568
- ...(r = e.builderContextSignal.content) == null ? void 0 : r.meta,
1569
- ...d == null ? void 0 : d.meta,
1570
- breakpoints: ((l = d == null ? void 0 : d.meta) == null ? void 0 : l.breakpoints) || ((T = (g = e.builderContextSignal.content) == null ? void 0 : g.meta) == null ? void 0 : T.breakpoints)
1603
+ ...(f = e.builderContextSignal.content) == null ? void 0 : f.meta,
1604
+ ...s == null ? void 0 : s.meta,
1605
+ breakpoints: ((r = s == null ? void 0 : s.meta) == null ? void 0 : r.breakpoints) || ((y = (p = e.builderContextSignal.content) == null ? void 0 : p.meta) == null ? void 0 : y.breakpoints)
1571
1606
  }
1572
1607
  };
1573
1608
  e.setBuilderContextSignal((x) => ({
1574
1609
  ...x,
1575
- content: c
1610
+ content: d
1576
1611
  }));
1577
1612
  }
1578
- function s() {
1613
+ function l() {
1579
1614
  return e.showContent ? {} : {
1580
1615
  hidden: !0,
1581
1616
  "aria-hidden": !0
@@ -1584,59 +1619,59 @@ function It(e) {
1584
1619
  const [u, a] = I(
1585
1620
  () => e.contentWrapper || "div"
1586
1621
  );
1587
- function o(d) {
1588
- return ue({
1622
+ function o(s) {
1623
+ return ce({
1589
1624
  model: e.model,
1590
1625
  trustedHosts: e.trustedHosts,
1591
1626
  callbacks: {
1592
- configureSdk: (c) => {
1593
- var l;
1594
- const { breakpoints: p, contentId: r } = c;
1595
- !r || r !== ((l = e.builderContextSignal.content) == null ? void 0 : l.id) || p && i({
1627
+ configureSdk: (d) => {
1628
+ var r;
1629
+ const { breakpoints: m, contentId: f } = d;
1630
+ !f || f !== ((r = e.builderContextSignal.content) == null ? void 0 : r.id) || m && i({
1596
1631
  meta: {
1597
- breakpoints: p
1632
+ breakpoints: m
1598
1633
  }
1599
1634
  });
1600
1635
  },
1601
- animation: (c) => {
1602
- ke(c);
1636
+ animation: (d) => {
1637
+ ke(d);
1603
1638
  },
1604
- contentUpdate: (c) => {
1605
- i(c);
1639
+ contentUpdate: (d) => {
1640
+ i(d);
1606
1641
  }
1607
1642
  }
1608
- })(d);
1643
+ })(s);
1609
1644
  }
1610
- const [m, S] = I(() => ({})), [y, R] = I(() => ({})), [k, P] = I(() => !1);
1611
- function A(d) {
1612
- var c, p;
1645
+ const [c, T] = I(() => ({})), [S, R] = I(() => ({})), [k, P] = I(() => !1);
1646
+ function W(s) {
1647
+ var d, m;
1613
1648
  if (e.builderContextSignal.content) {
1614
- const r = (c = e.builderContextSignal.content) == null ? void 0 : c.testVariationId, l = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
1615
- z({
1649
+ const f = (d = e.builderContextSignal.content) == null ? void 0 : d.testVariationId, r = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
1650
+ J({
1616
1651
  apiHost: e.apiHost,
1617
1652
  type: "click",
1618
- canTrack: D(e.canTrack),
1619
- contentId: l,
1653
+ canTrack: H(e.canTrack),
1654
+ contentId: r,
1620
1655
  apiKey: e.apiKey,
1621
- variationId: r !== l ? r : void 0,
1622
- ...gt(d),
1656
+ variationId: f !== r ? f : void 0,
1657
+ ...bt(s),
1623
1658
  unique: !k
1624
1659
  });
1625
1660
  }
1626
1661
  k || P(!0);
1627
1662
  }
1628
- function W() {
1629
- var c, p, r;
1630
- const d = (r = (p = (c = e.builderContextSignal.content) == null ? void 0 : c.data) == null ? void 0 : p.httpRequests) != null ? r : {};
1631
- Object.entries(d).forEach(([l, g]) => {
1632
- if (!g || y[l] || m[l] && !F())
1663
+ function A() {
1664
+ var d, m, f;
1665
+ const s = (f = (m = (d = e.builderContextSignal.content) == null ? void 0 : d.data) == null ? void 0 : m.httpRequests) != null ? f : {};
1666
+ Object.entries(s).forEach(([r, p]) => {
1667
+ if (!p || S[r] || c[r] && !F())
1633
1668
  return;
1634
- y[l] = !0;
1635
- const T = g.replace(
1669
+ S[r] = !0;
1670
+ const y = p.replace(
1636
1671
  /{{([^}]+)}}/g,
1637
- (x, re) => String(
1672
+ (x, B) => String(
1638
1673
  ne({
1639
- code: re,
1674
+ code: B,
1640
1675
  context: e.context || {},
1641
1676
  localState: void 0,
1642
1677
  rootState: e.builderContextSignal.rootState,
@@ -1644,14 +1679,14 @@ function It(e) {
1644
1679
  })
1645
1680
  )
1646
1681
  );
1647
- me(T), fetch(T).then((x) => x.json()).then((x) => {
1682
+ me(y), fetch(y).then((x) => x.json()).then((x) => {
1648
1683
  n({
1649
- [l]: x
1650
- }), m[l] = !0;
1684
+ [r]: x
1685
+ }), c[r] = !0;
1651
1686
  }).catch((x) => {
1652
- console.error("error fetching dynamic data", g, x);
1687
+ console.error("error fetching dynamic data", p, x);
1653
1688
  }).finally(() => {
1654
- y[l] = !1;
1689
+ S[r] = !1;
1655
1690
  });
1656
1691
  });
1657
1692
  }
@@ -1670,9 +1705,9 @@ function It(e) {
1670
1705
  )
1671
1706
  );
1672
1707
  }
1673
- const E = $(!1);
1674
- return E.current || (W(), w(), E.current = !0), V(() => {
1675
- var d, c;
1708
+ const E = _(!1);
1709
+ return E.current || (A(), w(), E.current = !0), V(() => {
1710
+ var s, d, m;
1676
1711
  if (j()) {
1677
1712
  if (F() && !e.isNestedRender && (window.addEventListener("message", o), le(), se({
1678
1713
  ...e.locale ? {
@@ -1687,35 +1722,40 @@ function It(e) {
1687
1722
  }), Object.values(
1688
1723
  e.builderContextSignal.componentInfos
1689
1724
  ).forEach((r) => {
1690
- var l, g;
1691
- if (!e.model || !((l = r.models) != null && l.length) || r.models.includes(e.model)) {
1692
- const T = de(r);
1693
- (g = window.parent) == null || g.postMessage(T, "*");
1725
+ var p, y;
1726
+ if (!e.model || !((p = r.models) != null && p.length) || r.models.includes(e.model)) {
1727
+ const x = de(r);
1728
+ (y = window.parent) == null || y.postMessage(x, "*");
1694
1729
  }
1695
1730
  }), window.addEventListener(
1696
1731
  "builder:component:stateChangeListenerActivated",
1697
1732
  w
1698
- )), e.builderContextSignal.content && D(e.canTrack)) {
1699
- const r = (d = e.builderContextSignal.content) == null ? void 0 : d.testVariationId, l = (c = e.builderContextSignal.content) == null ? void 0 : c.id, g = e.apiKey;
1700
- z({
1733
+ )), e.builderContextSignal.content && H(e.canTrack)) {
1734
+ const r = (s = e.builderContextSignal.content) == null ? void 0 : s.testVariationId, p = (d = e.builderContextSignal.content) == null ? void 0 : d.id, y = e.apiKey;
1735
+ J({
1701
1736
  apiHost: e.apiHost,
1702
1737
  type: "impression",
1703
1738
  canTrack: !0,
1704
- contentId: l,
1705
- apiKey: g,
1706
- variationId: r !== l ? r : void 0
1739
+ contentId: p,
1740
+ apiKey: y,
1741
+ variationId: r !== p ? r : void 0
1707
1742
  });
1708
1743
  }
1709
- if (ee() && !F()) {
1710
- const r = new URL(location.href).searchParams, l = r.get("builder.preview"), g = r.get(
1711
- `builder.overrides.${l}`
1712
- ), T = r.get("apiKey") || r.get("builder.space");
1713
- l === e.model && T === e.apiKey && (!e.content || g === e.content.id) && ce({
1714
- model: e.model,
1744
+ if (te() && !F()) {
1745
+ const r = new URL(location.href).searchParams, p = r.get("builder.preview"), y = r.get(
1746
+ `builder.overrides.${p}`
1747
+ ), x = r.get("apiKey") || r.get("builder.space");
1748
+ (p === "BUILDER_STUDIO" || p === e.model && x === e.apiKey && (!e.content || y === e.content.id)) && ue({
1749
+ model: e.model || "",
1715
1750
  apiKey: e.apiKey,
1716
- apiVersion: e.builderContextSignal.apiVersion
1717
- }).then((x) => {
1718
- x && i(x);
1751
+ apiVersion: e.builderContextSignal.apiVersion,
1752
+ ...p === "BUILDER_STUDIO" && ((m = e.context) != null && m.symbolId) ? {
1753
+ query: {
1754
+ id: e.context.symbolId
1755
+ }
1756
+ } : {}
1757
+ }).then((B) => {
1758
+ B && i(B);
1719
1759
  });
1720
1760
  }
1721
1761
  }
@@ -1734,40 +1774,40 @@ function It(e) {
1734
1774
  "builder:component:stateChangeListenerActivated",
1735
1775
  w
1736
1776
  ));
1737
- }, []), /* @__PURE__ */ h(Ie.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || X() ? /* @__PURE__ */ h(
1777
+ }, []), /* @__PURE__ */ h(Ie.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Z() ? /* @__PURE__ */ h(
1738
1778
  u,
1739
1779
  {
1740
1780
  ref: t,
1741
- onClick: (d) => A(d),
1742
- "builder-content-id": (f = e.builderContextSignal.content) == null ? void 0 : f.id,
1781
+ onClick: (s) => W(s),
1782
+ "builder-content-id": (g = e.builderContextSignal.content) == null ? void 0 : g.id,
1743
1783
  "builder-model": e.model,
1744
- className: Tt(
1784
+ className: kt(
1745
1785
  ((b = e.content) == null ? void 0 : b.testVariationId) || ((C = e.content) == null ? void 0 : C.id)
1746
1786
  ),
1747
1787
  style: {
1748
- display: !e.builderContextSignal.content && X() ? "none" : void 0
1788
+ display: !e.builderContextSignal.content && Z() ? "none" : void 0
1749
1789
  },
1750
- ...s(),
1790
+ ...l(),
1751
1791
  ...e.contentWrapperProps,
1752
1792
  children: e.children
1753
1793
  }
1754
1794
  ) : null });
1755
1795
  }
1756
- function kt(e) {
1796
+ function wt(e) {
1757
1797
  const [t, n] = I(
1758
1798
  () => `
1759
- ${xt({
1799
+ ${St({
1760
1800
  cssCode: e.cssCode,
1761
1801
  contentId: e.contentId
1762
1802
  })}
1763
- ${yt({
1803
+ ${vt({
1764
1804
  customFonts: e.customFonts
1765
1805
  })}
1766
- ${St(e.isNestedRender)}
1806
+ ${It(e.isNestedRender)}
1767
1807
  `.trim()
1768
1808
  );
1769
1809
  return /* @__PURE__ */ h(
1770
- te,
1810
+ ae,
1771
1811
  {
1772
1812
  id: "builderio-content",
1773
1813
  styles: t,
@@ -1775,24 +1815,24 @@ ${St(e.isNestedRender)}
1775
1815
  }
1776
1816
  );
1777
1817
  }
1778
- const Ct = ({
1818
+ const Vt = ({
1779
1819
  content: e,
1780
1820
  data: t,
1781
1821
  locale: n
1782
1822
  }) => {
1783
1823
  var u, a, o;
1784
- const i = {}, s = ((u = e == null ? void 0 : e.data) == null ? void 0 : u.state) || {};
1785
- return (o = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || o.forEach((m) => {
1786
- m.name && m.defaultValue !== void 0 && (i[m.name] = m.defaultValue);
1824
+ const i = {}, l = ((u = e == null ? void 0 : e.data) == null ? void 0 : u.state) || {};
1825
+ return (o = (a = e == null ? void 0 : e.data) == null ? void 0 : a.inputs) == null || o.forEach((c) => {
1826
+ c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
1787
1827
  }), {
1788
1828
  ...i,
1789
- ...s,
1829
+ ...l,
1790
1830
  ...t,
1791
1831
  ...n ? {
1792
1832
  locale: n
1793
1833
  } : {}
1794
1834
  };
1795
- }, wt = ({
1835
+ }, Rt = ({
1796
1836
  content: e,
1797
1837
  data: t
1798
1838
  }) => e ? {
@@ -1803,46 +1843,46 @@ const Ct = ({
1803
1843
  },
1804
1844
  meta: e == null ? void 0 : e.meta
1805
1845
  } : void 0;
1806
- function Z(e) {
1807
- var S, y, R, k, P, A, W, w, E;
1846
+ function ee(e) {
1847
+ var T, S, R, k, P, W, A, w, E;
1808
1848
  const [t, n] = I(
1809
1849
  () => {
1810
- var f, b;
1811
- return mt({
1850
+ var g, b;
1851
+ return ft({
1812
1852
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
1813
- variationId: (f = e.content) == null ? void 0 : f.testVariationId,
1853
+ variationId: (g = e.content) == null ? void 0 : g.testVariationId,
1814
1854
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
1815
1855
  contentId: (b = e.content) == null ? void 0 : b.id
1816
1856
  });
1817
1857
  }
1818
1858
  );
1819
- function i(f) {
1859
+ function i(g) {
1820
1860
  o((b) => ({
1821
1861
  ...b,
1822
- rootState: f
1862
+ rootState: g
1823
1863
  }));
1824
1864
  }
1825
- const [s, u] = I(
1865
+ const [l, u] = I(
1826
1866
  () => [
1827
- ...Y(),
1867
+ ...G(),
1828
1868
  ...e.customComponents || []
1829
1869
  ].reduce(
1830
- (f, { component: b, ...C }) => ({
1831
- ...f,
1870
+ (g, { component: b, ...C }) => ({
1871
+ ...g,
1832
1872
  [C.name]: {
1833
1873
  component: b,
1834
- ...J(C)
1874
+ ...Y(C)
1835
1875
  }
1836
1876
  }),
1837
1877
  {}
1838
1878
  )
1839
1879
  ), [a, o] = I(() => ({
1840
- content: wt({
1880
+ content: Rt({
1841
1881
  content: e.content,
1842
1882
  data: e.data
1843
1883
  }),
1844
1884
  localState: void 0,
1845
- rootState: Ct({
1885
+ rootState: Vt({
1846
1886
  content: e.content,
1847
1887
  data: e.data,
1848
1888
  locale: e.locale
@@ -1853,12 +1893,12 @@ function Z(e) {
1853
1893
  apiKey: e.apiKey,
1854
1894
  apiVersion: e.apiVersion,
1855
1895
  componentInfos: [
1856
- ...Y(),
1896
+ ...G(),
1857
1897
  ...e.customComponents || []
1858
1898
  ].reduce(
1859
- (f, { component: b, ...C }) => ({
1860
- ...f,
1861
- [C.name]: J(C)
1899
+ (g, { component: b, ...C }) => ({
1900
+ ...g,
1901
+ [C.name]: Y(C)
1862
1902
  }),
1863
1903
  {}
1864
1904
  ),
@@ -1867,14 +1907,14 @@ function Z(e) {
1867
1907
  BlocksWrapperProps: e.blocksWrapperProps || {},
1868
1908
  nonce: e.nonce || "",
1869
1909
  model: e.model || ""
1870
- })), m = $(!1);
1871
- if (!m.current) {
1910
+ })), c = _(!1);
1911
+ if (!c.current) {
1872
1912
  e.apiKey || pe.error(
1873
1913
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
1874
1914
  );
1875
- const f = (y = (S = a.content) == null ? void 0 : S.data) == null ? void 0 : y.jsCode;
1876
- f && ne({
1877
- code: f,
1915
+ const g = (S = (T = a.content) == null ? void 0 : T.data) == null ? void 0 : S.jsCode;
1916
+ g && ne({
1917
+ code: g,
1878
1918
  context: e.context || {},
1879
1919
  localState: void 0,
1880
1920
  rootState: a.rootState,
@@ -1882,16 +1922,16 @@ function Z(e) {
1882
1922
  Object.assign(a.rootState, b);
1883
1923
  },
1884
1924
  isExpression: !1
1885
- }), m.current = !0;
1925
+ }), c.current = !0;
1886
1926
  }
1887
1927
  return /* @__PURE__ */ h(
1888
1928
  we.Provider,
1889
1929
  {
1890
1930
  value: {
1891
- registeredComponents: s
1931
+ registeredComponents: l
1892
1932
  },
1893
- children: /* @__PURE__ */ q(
1894
- It,
1933
+ children: /* @__PURE__ */ $(
1934
+ Ct,
1895
1935
  {
1896
1936
  apiHost: e.apiHost,
1897
1937
  nonce: e.nonce,
@@ -1912,7 +1952,7 @@ function Z(e) {
1912
1952
  setBuilderContextSignal: o,
1913
1953
  children: [
1914
1954
  e.isSsrAbTest ? /* @__PURE__ */ h(
1915
- K,
1955
+ O,
1916
1956
  {
1917
1957
  id: "builderio-variant-visibility",
1918
1958
  scriptStr: t,
@@ -1920,13 +1960,13 @@ function Z(e) {
1920
1960
  }
1921
1961
  ) : null,
1922
1962
  /* @__PURE__ */ h(
1923
- kt,
1963
+ wt,
1924
1964
  {
1925
1965
  nonce: e.nonce || "",
1926
1966
  isNestedRender: e.isNestedRender,
1927
1967
  contentId: (R = a.content) == null ? void 0 : R.id,
1928
1968
  cssCode: (P = (k = a.content) == null ? void 0 : k.data) == null ? void 0 : P.cssCode,
1929
- customFonts: (W = (A = a.content) == null ? void 0 : A.data) == null ? void 0 : W.customFonts
1969
+ customFonts: (A = (W = a.content) == null ? void 0 : W.data) == null ? void 0 : A.customFonts
1930
1970
  }
1931
1971
  ),
1932
1972
  /* @__PURE__ */ h(
@@ -1934,7 +1974,7 @@ function Z(e) {
1934
1974
  {
1935
1975
  blocks: (E = (w = a.content) == null ? void 0 : w.data) == null ? void 0 : E.blocks,
1936
1976
  context: a,
1937
- registeredComponents: s,
1977
+ registeredComponents: l,
1938
1978
  linkComponent: e.linkComponent
1939
1979
  }
1940
1980
  )
@@ -1944,26 +1984,26 @@ function Z(e) {
1944
1984
  }
1945
1985
  );
1946
1986
  }
1947
- function Dt(e) {
1987
+ function Et(e) {
1948
1988
  var a;
1949
1989
  const [t, n] = I(
1950
- () => st({
1951
- canTrack: D(e.canTrack),
1990
+ () => ut({
1991
+ canTrack: H(e.canTrack),
1952
1992
  content: e.content
1953
1993
  })
1954
1994
  );
1955
1995
  function i() {
1956
1996
  var o;
1957
- return ut(
1958
- B(e.content).map((m) => ({
1959
- id: m.testVariationId,
1960
- testRatio: m.testRatio
1997
+ return pt(
1998
+ D(e.content).map((c) => ({
1999
+ id: c.testVariationId,
2000
+ testRatio: c.testRatio
1961
2001
  })),
1962
2002
  ((o = e.content) == null ? void 0 : o.id) || ""
1963
2003
  );
1964
2004
  }
1965
- function s() {
1966
- return B(e.content).map((o) => `.variant-${o.testVariationId} { display: none; } `).join("");
2005
+ function l() {
2006
+ return D(e.content).map((o) => `.variant-${o.testVariationId} { display: none; } `).join("");
1967
2007
  }
1968
2008
  function u() {
1969
2009
  var o;
@@ -1972,38 +2012,38 @@ function Dt(e) {
1972
2012
  testVariationId: (o = e.content) == null ? void 0 : o.id
1973
2013
  } : fe({
1974
2014
  item: e.content,
1975
- canTrack: D(e.canTrack)
2015
+ canTrack: H(e.canTrack)
1976
2016
  });
1977
2017
  }
1978
2018
  return V(() => {
1979
- }, []), /* @__PURE__ */ q(O, { children: [
1980
- !e.isNestedRender && _ !== "reactNative" ? /* @__PURE__ */ h(
1981
- K,
2019
+ }, []), /* @__PURE__ */ $(z, { children: [
2020
+ !e.isNestedRender && K !== "reactNative" ? /* @__PURE__ */ h(
2021
+ O,
1982
2022
  {
1983
2023
  id: "builderio-init-variants-fns",
1984
- scriptStr: ct(),
2024
+ scriptStr: mt(),
1985
2025
  nonce: e.nonce || ""
1986
2026
  }
1987
2027
  ) : null,
1988
- t ? /* @__PURE__ */ q(O, { children: [
2028
+ t ? /* @__PURE__ */ $(z, { children: [
1989
2029
  /* @__PURE__ */ h(
1990
- te,
2030
+ ae,
1991
2031
  {
1992
2032
  id: "builderio-variants",
1993
- styles: s(),
2033
+ styles: l(),
1994
2034
  nonce: e.nonce || ""
1995
2035
  }
1996
2036
  ),
1997
2037
  /* @__PURE__ */ h(
1998
- K,
2038
+ O,
1999
2039
  {
2000
2040
  id: "builderio-variants-visibility",
2001
2041
  scriptStr: i(),
2002
2042
  nonce: e.nonce || ""
2003
2043
  }
2004
2044
  ),
2005
- (a = B(e.content)) == null ? void 0 : a.map((o) => /* @__PURE__ */ h(
2006
- Z,
2045
+ (a = D(e.content)) == null ? void 0 : a.map((o) => /* @__PURE__ */ h(
2046
+ ee,
2007
2047
  {
2008
2048
  apiHost: e.apiHost,
2009
2049
  isNestedRender: e.isNestedRender,
@@ -2031,7 +2071,7 @@ function Dt(e) {
2031
2071
  ))
2032
2072
  ] }) : null,
2033
2073
  /* @__PURE__ */ h(
2034
- Z,
2074
+ ee,
2035
2075
  {
2036
2076
  apiHost: e.apiHost,
2037
2077
  nonce: e.nonce,
@@ -2058,6 +2098,11 @@ function Dt(e) {
2058
2098
  )
2059
2099
  ] });
2060
2100
  }
2101
+ const Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2102
+ __proto__: null,
2103
+ default: Et
2104
+ }, Symbol.toStringTag, { value: "Module" }));
2061
2105
  export {
2062
- Dt as default
2106
+ O as InlinedScript,
2107
+ Dt as contentVariants
2063
2108
  };