@builder.io/sdk-react-nextjs 0.16.0 → 0.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/lib/browser/blocks-exports.cjs +11 -11
  2. package/lib/browser/blocks-exports.mjs +240 -206
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -1
  6. package/lib/browser/init.mjs +1 -1
  7. package/lib/browser/{server-entry-d8d62ced.cjs → server-entry-555ce264.cjs} +1 -1
  8. package/lib/browser/{server-entry-86458005.js → server-entry-8a4d2728.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/blocks-exports.cjs +5 -5
  12. package/lib/edge/blocks-exports.mjs +48 -14
  13. package/lib/edge/index.cjs +1 -1
  14. package/lib/edge/index.mjs +1 -1
  15. package/lib/edge/init.cjs +1 -1
  16. package/lib/edge/init.mjs +1 -1
  17. package/lib/edge/{server-entry-d8d62ced.cjs → server-entry-555ce264.cjs} +1 -1
  18. package/lib/edge/{server-entry-86458005.js → server-entry-8a4d2728.js} +1 -1
  19. package/lib/edge/server-entry.cjs +1 -1
  20. package/lib/edge/server-entry.mjs +1 -1
  21. package/lib/node/blocks-exports.cjs +11 -11
  22. package/lib/node/blocks-exports.mjs +229 -195
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +2 -2
  25. package/lib/node/init.cjs +1 -1
  26. package/lib/node/init.mjs +2 -2
  27. package/lib/node/{node-runtime-6421aefe.cjs → node-runtime-1e70fe16.cjs} +1 -1
  28. package/lib/node/{node-runtime-423addf8.js → node-runtime-753c71f6.js} +1 -1
  29. package/lib/node/{server-entry-6f84d0f2.cjs → server-entry-61a8c25a.cjs} +1 -1
  30. package/lib/node/{server-entry-1644208f.js → server-entry-e47775d7.js} +1 -1
  31. package/lib/node/server-entry.cjs +1 -1
  32. package/lib/node/server-entry.mjs +1 -1
  33. package/package.json +1 -1
  34. package/types/cjs/components/content/components/styles.d.ts +2 -1
  35. package/types/cjs/components/content-variants/content-variants.types.d.ts +4 -0
  36. package/types/cjs/components/inlined-script.d.ts +2 -1
  37. package/types/cjs/components/inlined-styles.d.ts +2 -1
  38. package/types/cjs/constants/sdk-version.d.ts +1 -1
  39. package/types/cjs/context/types.d.ts +1 -0
  40. package/types/cjs/types/builder-props.d.ts +3 -0
  41. package/types/esm/components/content/components/styles.d.ts +2 -1
  42. package/types/esm/components/content-variants/content-variants.types.d.ts +4 -0
  43. package/types/esm/components/inlined-script.d.ts +2 -1
  44. package/types/esm/components/inlined-styles.d.ts +2 -1
  45. package/types/esm/constants/sdk-version.d.ts +1 -1
  46. package/types/esm/context/types.d.ts +1 -0
  47. package/types/esm/types/builder-props.d.ts +3 -0
@@ -2,14 +2,14 @@
2
2
  var Ae = Object.defineProperty;
3
3
  var Ve = (e, t, n) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var ee = (e, t, n) => (Ve(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as c, Fragment as w, jsxs as E } from "react/jsx-runtime";
6
- import { TARGET as M, isEditing as V, isBrowser as L, getUserAttributes as $e, checkIsDefined as z, logger as J, fastClone as ie, init as Fe, getDefaultCanTrack as q, _track as ue, isPreviewing as Le, createEditorListener as Oe, fetch as De, registerInsertMenu as je, setupBrowserForEditing as He, createRegisterComponentMessage as Me, fetchOneEntry as ke, serializeComponentInfo as me, handleABTestingSync as Ue } from "./server-entry-86458005.js";
5
+ import { jsx as l, Fragment as w, jsxs as E } from "react/jsx-runtime";
6
+ import { TARGET as M, isEditing as V, isBrowser as L, getUserAttributes as $e, checkIsDefined as z, logger as J, fastClone as ie, init as Fe, getDefaultCanTrack as q, _track as ue, isPreviewing as Le, createEditorListener as Oe, fetch as De, registerInsertMenu as je, setupBrowserForEditing as He, createRegisterComponentMessage as Me, fetchOneEntry as ke, serializeComponentInfo as me, handleABTestingSync as Ue } from "./server-entry-8a4d2728.js";
7
7
  import { useRef as oe, useState as N, useEffect as R, createContext as _e } from "react";
8
8
  import { useRouter as Ke } from "next/navigation";
9
9
  import "lru-cache";
10
10
  const ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), qe = (e) => typeof e == "string" && ze.has(e.toLowerCase());
11
11
  function ae(e) {
12
- return /* @__PURE__ */ c(w, { children: qe(e.TagName) ? /* @__PURE__ */ c(w, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ c(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
12
+ return /* @__PURE__ */ l(w, { children: qe(e.TagName) ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
13
13
  }
14
14
  const j = () => {
15
15
  switch (M) {
@@ -39,7 +39,7 @@ function Ye(e) {
39
39
  }
40
40
  };
41
41
  }
42
- return /* @__PURE__ */ c(
42
+ return /* @__PURE__ */ l(
43
43
  ae,
44
44
  {
45
45
  attributes: t(),
@@ -84,7 +84,7 @@ const Qe = ({
84
84
  rootSetState: a,
85
85
  rootState: r
86
86
  }) => {
87
- const l = Qe({
87
+ const c = Qe({
88
88
  builder: t,
89
89
  context: n,
90
90
  event: i,
@@ -94,7 +94,7 @@ const Qe = ({
94
94
  rootSetState: a
95
95
  })
96
96
  });
97
- return new Function(...l.map(([s]) => s), e)(...l.map(([, s]) => s));
97
+ return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
98
98
  };
99
99
  function Ce({
100
100
  rootState: e,
@@ -159,7 +159,7 @@ function H({
159
159
  rootSetState: o,
160
160
  event: a,
161
161
  isExpression: r = !0,
162
- enableCache: l
162
+ enableCache: c
163
163
  }) {
164
164
  if (e === "")
165
165
  return;
@@ -174,14 +174,14 @@ function H({
174
174
  rootState: i,
175
175
  localState: n
176
176
  };
177
- if (l) {
177
+ if (c) {
178
178
  const d = F.getCacheKey(s), m = F.getCachedValue(d);
179
179
  if (m)
180
180
  return m.value;
181
181
  }
182
182
  try {
183
183
  const d = tt(s);
184
- if (l) {
184
+ if (c) {
185
185
  const m = F.getCacheKey(s);
186
186
  F.setCachedValue(m, d);
187
187
  }
@@ -217,8 +217,8 @@ const it = ({
217
217
  ...a.actions
218
218
  }
219
219
  };
220
- for (const l in e.bindings) {
221
- const s = e.bindings[l], d = H({
220
+ for (const c in e.bindings) {
221
+ const s = e.bindings[c], d = H({
222
222
  code: s,
223
223
  localState: n,
224
224
  rootState: i,
@@ -226,7 +226,7 @@ const it = ({
226
226
  context: t,
227
227
  enableCache: !0
228
228
  });
229
- nt(r, l, d);
229
+ nt(r, c, d);
230
230
  }
231
231
  return r;
232
232
  };
@@ -290,7 +290,7 @@ function Ie(e) {
290
290
  return e;
291
291
  }
292
292
  }
293
- const lt = ({
293
+ const ct = ({
294
294
  block: e,
295
295
  context: t,
296
296
  registeredComponents: n
@@ -312,7 +312,7 @@ const lt = ({
312
312
  console.warn(`
313
313
  Could not find a registered component named "${i}".
314
314
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
315
- }, ct = ({
315
+ }, lt = ({
316
316
  block: e,
317
317
  context: t
318
318
  }) => {
@@ -410,11 +410,12 @@ const lt = ({
410
410
  }, n;
411
411
  };
412
412
  function Q(e) {
413
- return /* @__PURE__ */ c(
413
+ return /* @__PURE__ */ l(
414
414
  "style",
415
415
  {
416
416
  dangerouslySetInnerHTML: { __html: e.styles },
417
- "data-id": e.id
417
+ "data-id": e.id,
418
+ nonce: e.nonce
418
419
  }
419
420
  );
420
421
  }
@@ -438,7 +439,7 @@ function ft(e) {
438
439
  rootSetState: e.context.rootSetState,
439
440
  context: e.context.context,
440
441
  shouldEvaluateBindings: !0
441
- }), a = o.responsiveStyles, r = e.context.content, l = Re(
442
+ }), a = o.responsiveStyles, r = e.context.content, c = Re(
442
443
  ((S = r == null ? void 0 : r.meta) == null ? void 0 : S.breakpoints) || {}
443
444
  ), s = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, m = a == null ? void 0 : a.small, u = o.id;
444
445
  if (!u)
@@ -446,19 +447,19 @@ function ft(e) {
446
447
  const h = s ? _({
447
448
  className: u,
448
449
  styles: s
449
- }) : "", x = d ? _({
450
+ }) : "", p = d ? _({
450
451
  className: u,
451
452
  styles: d,
452
453
  mediaQuery: he(
453
454
  "medium",
454
- l
455
+ c
455
456
  )
456
457
  }) : "", I = m ? _({
457
458
  className: u,
458
459
  styles: m,
459
460
  mediaQuery: he(
460
461
  "small",
461
- l
462
+ c
462
463
  )
463
464
  }) : "", y = o.animations && o.animations.find((T) => T.trigger === "hover");
464
465
  let A = "";
@@ -477,12 +478,19 @@ function ft(e) {
477
478
  }
478
479
  return [
479
480
  h,
480
- x,
481
+ p,
481
482
  I,
482
483
  A
483
484
  ].join(" ");
484
485
  };
485
- return /* @__PURE__ */ c(w, { children: n() && t() ? /* @__PURE__ */ c(w, { children: /* @__PURE__ */ c(Q, { id: "builderio-block", styles: n() }) }) : null });
486
+ return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
487
+ Q,
488
+ {
489
+ id: "builderio-block",
490
+ styles: n(),
491
+ nonce: e.context.nonce
492
+ }
493
+ ) }) : null });
486
494
  }
487
495
  function ht(e) {
488
496
  return e.charAt(0).toUpperCase() + e.slice(1);
@@ -523,16 +531,16 @@ function yt({
523
531
  }) {
524
532
  return e;
525
533
  }
526
- const pt = (e) => ({
534
+ const vt = (e) => ({
527
535
  href: e.href
528
536
  });
529
- function le({
537
+ function ce({
530
538
  block: e,
531
539
  context: t
532
540
  }) {
533
541
  var i;
534
542
  const n = {
535
- ...pt(e),
543
+ ...vt(e),
536
544
  ...e.properties,
537
545
  "builder-id": e.id,
538
546
  style: rt({
@@ -547,12 +555,12 @@ function le({
547
555
  block: e
548
556
  });
549
557
  }
550
- function vt(e) {
551
- return /* @__PURE__ */ c(
558
+ function xt(e) {
559
+ return /* @__PURE__ */ l(
552
560
  ae,
553
561
  {
554
562
  TagName: e.Wrapper,
555
- attributes: le({
563
+ attributes: ce({
556
564
  block: e.block,
557
565
  context: e.context
558
566
  }),
@@ -571,7 +579,7 @@ function vt(e) {
571
579
  function St(e) {
572
580
  function t() {
573
581
  return e.includeBlockProps ? {
574
- ...le({
582
+ ...ce({
575
583
  block: e.block,
576
584
  context: e.context
577
585
  }),
@@ -584,9 +592,9 @@ function St(e) {
584
592
  })
585
593
  } : {};
586
594
  }
587
- return /* @__PURE__ */ c(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
595
+ return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
588
596
  }
589
- const xt = ({
597
+ const pt = ({
590
598
  componentOptions: e,
591
599
  builderBlock: t,
592
600
  context: n,
@@ -595,14 +603,14 @@ const xt = ({
595
603
  isInteractive: a,
596
604
  contextValue: r
597
605
  }) => {
598
- const l = {
606
+ const c = {
599
607
  ...e,
600
608
  /**
601
609
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
602
610
  * component itself directly. Otherwise, they are provided to the wrapper element.
603
611
  */
604
612
  ...o ? {
605
- attributes: le({
613
+ attributes: ce({
606
614
  block: t,
607
615
  context: r
608
616
  })
@@ -614,15 +622,15 @@ const xt = ({
614
622
  context: n,
615
623
  wrapperProps: e,
616
624
  includeBlockProps: o
617
- } : l;
625
+ } : c;
618
626
  };
619
627
  function ge(e) {
620
628
  var n;
621
629
  const t = e.isInteractive ? St : e.componentRef;
622
- return /* @__PURE__ */ c(w, { children: e.componentRef ? /* @__PURE__ */ c(w, { children: /* @__PURE__ */ c(
630
+ return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
623
631
  t,
624
632
  {
625
- ...xt({
633
+ ...pt({
626
634
  componentOptions: e.componentOptions,
627
635
  builderBlock: e.builderBlock,
628
636
  context: e.context,
@@ -632,7 +640,7 @@ function ge(e) {
632
640
  isInteractive: e.isInteractive,
633
641
  contextValue: e.context
634
642
  }),
635
- children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ c(
643
+ children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ l(
636
644
  G,
637
645
  {
638
646
  block: i,
@@ -647,7 +655,7 @@ function ge(e) {
647
655
  }
648
656
  function kt(e) {
649
657
  const t = e.repeatContext;
650
- return /* @__PURE__ */ c(
658
+ return /* @__PURE__ */ l(
651
659
  G,
652
660
  {
653
661
  block: e.block,
@@ -660,13 +668,13 @@ function kt(e) {
660
668
  function G(e) {
661
669
  var s, d, m;
662
670
  const t = function() {
663
- return lt({
671
+ return ct({
664
672
  block: e.block,
665
673
  context: e.context,
666
674
  registeredComponents: e.registeredComponents
667
675
  });
668
676
  }, n = function() {
669
- return ct({
677
+ return lt({
670
678
  block: e.block,
671
679
  context: e.context
672
680
  });
@@ -681,8 +689,8 @@ function G(e) {
681
689
  shouldEvaluateBindings: !0
682
690
  });
683
691
  }, o = function() {
684
- var x;
685
- return e.block.tagName === "a" || ((x = i().properties) == null ? void 0 : x.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
692
+ var p;
693
+ return e.block.tagName === "a" || ((p = i().properties) == null ? void 0 : p.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
686
694
  }, a = function() {
687
695
  var I, y;
688
696
  if ((I = e.block.repeat) != null && I.collection)
@@ -690,13 +698,13 @@ function G(e) {
690
698
  const h = "hide" in i() ? i().hide : !1;
691
699
  return ("show" in i() ? i().show : !0) && !h;
692
700
  }, r = function() {
693
- var x, I;
694
- return !((x = t()) != null && x.component) && !n() ? (I = i().children) != null ? I : [] : [];
695
- }, l = function() {
696
- var h, x, I, y;
701
+ var p, I;
702
+ return !((p = t()) != null && p.component) && !n() ? (I = i().children) != null ? I : [] : [];
703
+ }, c = function() {
704
+ var h, p, I, y;
697
705
  return {
698
706
  blockChildren: (h = i().children) != null ? h : [],
699
- componentRef: (x = t()) == null ? void 0 : x.component,
707
+ componentRef: (p = t()) == null ? void 0 : p.component,
700
708
  componentOptions: {
701
709
  ...Je(i()),
702
710
  ...ut(t(), i()),
@@ -715,22 +723,22 @@ function G(e) {
715
723
  isInteractive: !((y = t()) != null && y.isRSC)
716
724
  };
717
725
  };
718
- return /* @__PURE__ */ c(w, { children: a() ? /* @__PURE__ */ E(w, { children: [
719
- /* @__PURE__ */ c(ft, { block: e.block, context: e.context }),
720
- (s = t()) != null && s.noWrap ? /* @__PURE__ */ c(w, { children: /* @__PURE__ */ c(
726
+ return /* @__PURE__ */ l(w, { children: a() ? /* @__PURE__ */ E(w, { children: [
727
+ /* @__PURE__ */ l(ft, { block: e.block, context: e.context }),
728
+ (s = t()) != null && s.noWrap ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
721
729
  ge,
722
730
  {
723
- componentRef: l().componentRef,
724
- componentOptions: l().componentOptions,
725
- blockChildren: l().blockChildren,
726
- context: l().context,
727
- registeredComponents: l().registeredComponents,
728
- linkComponent: l().linkComponent,
729
- builderBlock: l().builderBlock,
730
- includeBlockProps: l().includeBlockProps,
731
- isInteractive: l().isInteractive
731
+ componentRef: c().componentRef,
732
+ componentOptions: c().componentOptions,
733
+ blockChildren: c().blockChildren,
734
+ context: c().context,
735
+ registeredComponents: c().registeredComponents,
736
+ linkComponent: c().linkComponent,
737
+ builderBlock: c().builderBlock,
738
+ includeBlockProps: c().includeBlockProps,
739
+ isInteractive: c().isInteractive
732
740
  }
733
- ) }) : /* @__PURE__ */ c(w, { children: n() ? /* @__PURE__ */ c(w, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ c(
741
+ ) }) : /* @__PURE__ */ l(w, { children: n() ? /* @__PURE__ */ l(w, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ l(
734
742
  kt,
735
743
  {
736
744
  repeatContext: u.context,
@@ -740,27 +748,27 @@ function G(e) {
740
748
  },
741
749
  h
742
750
  )) }) : /* @__PURE__ */ E(
743
- vt,
751
+ xt,
744
752
  {
745
753
  Wrapper: o(),
746
754
  block: i(),
747
755
  context: e.context,
748
756
  children: [
749
- /* @__PURE__ */ c(
757
+ /* @__PURE__ */ l(
750
758
  ge,
751
759
  {
752
- componentRef: l().componentRef,
753
- componentOptions: l().componentOptions,
754
- blockChildren: l().blockChildren,
755
- context: l().context,
756
- registeredComponents: l().registeredComponents,
757
- linkComponent: l().linkComponent,
758
- builderBlock: l().builderBlock,
759
- includeBlockProps: l().includeBlockProps,
760
- isInteractive: l().isInteractive
760
+ componentRef: c().componentRef,
761
+ componentOptions: c().componentOptions,
762
+ blockChildren: c().blockChildren,
763
+ context: c().context,
764
+ registeredComponents: c().registeredComponents,
765
+ linkComponent: c().linkComponent,
766
+ builderBlock: c().builderBlock,
767
+ includeBlockProps: c().includeBlockProps,
768
+ isInteractive: c().isInteractive
761
769
  }
762
770
  ),
763
- (d = r()) == null ? void 0 : d.map((u) => /* @__PURE__ */ c(
771
+ (d = r()) == null ? void 0 : d.map((u) => /* @__PURE__ */ l(
764
772
  G,
765
773
  {
766
774
  block: u,
@@ -807,7 +815,7 @@ function Ct(e) {
807
815
  ));
808
816
  }
809
817
  return /* @__PURE__ */ E(w, { children: [
810
- /* @__PURE__ */ c(
818
+ /* @__PURE__ */ l(
811
819
  e.BlocksWrapper,
812
820
  {
813
821
  className: t() + " props-blocks-wrapper-7cd1560e",
@@ -821,16 +829,16 @@ function Ct(e) {
821
829
  children: e.children
822
830
  }
823
831
  ),
824
- /* @__PURE__ */ c("style", { children: `.props-blocks-wrapper-7cd1560e {
832
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-7cd1560e {
825
833
  display: flex;
826
834
  flex-direction: column;
827
835
  align-items: stretch;
828
836
  }` })
829
837
  ] });
830
838
  }
831
- function ce(e) {
839
+ function le(e) {
832
840
  var t, n, i;
833
- return /* @__PURE__ */ c(
841
+ return /* @__PURE__ */ l(
834
842
  Ct,
835
843
  {
836
844
  blocks: e.blocks,
@@ -839,7 +847,7 @@ function ce(e) {
839
847
  styleProp: e.styleProp,
840
848
  BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
841
849
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
842
- children: e.blocks ? /* @__PURE__ */ c(w, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ c(
850
+ children: e.blocks ? /* @__PURE__ */ l(w, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
843
851
  G,
844
852
  {
845
853
  block: o,
@@ -863,7 +871,7 @@ function It(e) {
863
871
  }, r = function(b) {
864
872
  const k = a(b), T = t * (n.length - 1) * (k / 100);
865
873
  return `calc(${k}% - ${T}px)`;
866
- }, l = function({
874
+ }, c = function({
867
875
  stackedStyle: b,
868
876
  desktopStyle: k
869
877
  }) {
@@ -876,7 +884,7 @@ function It(e) {
876
884
  }, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
877
885
  return {
878
886
  "--flex-dir": d,
879
- "--flex-dir-tablet": l({
887
+ "--flex-dir-tablet": c({
880
888
  stackedStyle: d,
881
889
  desktopStyle: "row"
882
890
  })
@@ -899,11 +907,11 @@ function It(e) {
899
907
  stackedStyle: D,
900
908
  desktopStyle: B
901
909
  }),
902
- "--column-width-tablet": l({
910
+ "--column-width-tablet": c({
903
911
  stackedStyle: O,
904
912
  desktopStyle: T
905
913
  }),
906
- "--column-margin-left-tablet": l({
914
+ "--column-margin-left-tablet": c({
907
915
  stackedStyle: D,
908
916
  desktopStyle: B
909
917
  })
@@ -913,7 +921,7 @@ function It(e) {
913
921
  return Re(
914
922
  ((B = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : B.breakpoints) || {}
915
923
  )[b].max;
916
- }, x = function() {
924
+ }, p = function() {
917
925
  return `
918
926
  @media (max-width: ${h("medium")}px) {
919
927
  .${e.builderBlock.id}-breakpoints {
@@ -952,18 +960,25 @@ function It(e) {
952
960
  /* @__PURE__ */ E(
953
961
  "div",
954
962
  {
955
- className: wt((y = e.builderBlock) == null ? void 0 : y.id) + " div-1de99da7",
963
+ className: wt((y = e.builderBlock) == null ? void 0 : y.id) + " div-c89348d2",
956
964
  style: m(),
957
965
  children: [
958
- /* @__PURE__ */ c(Q, { id: "builderio-columns", styles: x() }),
959
- (A = e.columns) == null ? void 0 : A.map((S, b) => /* @__PURE__ */ c(
966
+ /* @__PURE__ */ l(
967
+ Q,
968
+ {
969
+ id: "builderio-columns",
970
+ styles: p(),
971
+ nonce: e.builderContext.nonce
972
+ }
973
+ ),
974
+ (A = e.columns) == null ? void 0 : A.map((S, b) => /* @__PURE__ */ l(
960
975
  ae,
961
976
  {
962
977
  TagName: o(S),
963
978
  actionAttributes: {},
964
979
  attributes: I(S, b),
965
- children: /* @__PURE__ */ c(
966
- ce,
980
+ children: /* @__PURE__ */ l(
981
+ le,
967
982
  {
968
983
  path: `component.options.columns.${b}.blocks`,
969
984
  parent: e.builderBlock.id,
@@ -982,14 +997,14 @@ function It(e) {
982
997
  ]
983
998
  }
984
999
  ),
985
- /* @__PURE__ */ c("style", { children: `.div-1de99da7 {
1000
+ /* @__PURE__ */ l("style", { children: `.div-c89348d2 {
986
1001
  display: flex;
987
1002
  line-height: normal;
988
1003
  }` })
989
1004
  ] });
990
1005
  }
991
1006
  function Tt(e) {
992
- return /* @__PURE__ */ c("span", { children: e.children });
1007
+ return /* @__PURE__ */ l("span", { children: e.children });
993
1008
  }
994
1009
  function be(e) {
995
1010
  return e.replace(/http(s)?:/, "");
@@ -1022,7 +1037,7 @@ function te(e) {
1022
1037
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Et(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1023
1038
  }
1024
1039
  function Pt(e) {
1025
- var o, a, r, l, s, d;
1040
+ var o, a, r, c, s, d;
1026
1041
  function t() {
1027
1042
  var h;
1028
1043
  const u = e.image || e.src;
@@ -1054,8 +1069,8 @@ function Pt(e) {
1054
1069
  return /* @__PURE__ */ E(w, { children: [
1055
1070
  /* @__PURE__ */ E(w, { children: [
1056
1071
  /* @__PURE__ */ E("picture", { children: [
1057
- n() ? /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) : null,
1058
- /* @__PURE__ */ c(
1072
+ n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1073
+ /* @__PURE__ */ l(
1059
1074
  "img",
1060
1075
  {
1061
1076
  loading: e.highPriority ? "eager" : "lazy",
@@ -1074,7 +1089,7 @@ function Pt(e) {
1074
1089
  }
1075
1090
  )
1076
1091
  ] }),
1077
- e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ c(
1092
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
1078
1093
  "div",
1079
1094
  {
1080
1095
  className: "builder-image-sizer div-ac3dff4a",
@@ -1083,10 +1098,10 @@ function Pt(e) {
1083
1098
  }
1084
1099
  }
1085
1100
  ) : null,
1086
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ c(w, { children: e.children }) : null,
1087
- !e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ c("div", { className: "div-ac3dff4a-2", children: e.children }) : null
1101
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(w, { children: e.children }) : null,
1102
+ !e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ l("div", { className: "div-ac3dff4a-2", children: e.children }) : null
1088
1103
  ] }),
1089
- /* @__PURE__ */ c("style", { children: `.img-ac3dff4a {
1104
+ /* @__PURE__ */ l("style", { children: `.img-ac3dff4a {
1090
1105
  opacity: 1;
1091
1106
  transition: opacity 0.2s ease-in-out;
1092
1107
  }.div-ac3dff4a {
@@ -1106,7 +1121,7 @@ function Pt(e) {
1106
1121
  ] });
1107
1122
  }
1108
1123
  function Bt(e) {
1109
- return /* @__PURE__ */ c(
1124
+ return /* @__PURE__ */ l(
1110
1125
  "section",
1111
1126
  {
1112
1127
  ...e.attributes,
@@ -1341,7 +1356,7 @@ const Wt = {
1341
1356
  });
1342
1357
  }
1343
1358
  const n = e.get("columns");
1344
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, s) => l + s.get("width"), 0) !== 100) && t();
1359
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((c, s) => c + s.get("width"), 0) !== 100) && t();
1345
1360
  }
1346
1361
  }, {
1347
1362
  name: "space",
@@ -1395,7 +1410,7 @@ const Wt = {
1395
1410
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1396
1411
  onChange: (e) => {
1397
1412
  e.delete("srcset"), e.delete("noWebp");
1398
- function n(r, l = 6e4) {
1413
+ function n(r, c = 6e4) {
1399
1414
  return new Promise((s, d) => {
1400
1415
  const m = document.createElement("img");
1401
1416
  let u = !1;
@@ -1405,7 +1420,7 @@ const Wt = {
1405
1420
  console.warn("Image load failed", h.error), d(h.error);
1406
1421
  }), m.src = r, setTimeout(() => {
1407
1422
  u || d(new Error("Image load timed out"));
1408
- }, l);
1423
+ }, c);
1409
1424
  });
1410
1425
  }
1411
1426
  function i(r) {
@@ -1416,8 +1431,8 @@ const Wt = {
1416
1431
  r.type.includes("svg") && e.set("noWebp", !0);
1417
1432
  }), o && (!a || a === 0.7041))
1418
1433
  return n(o).then((r) => {
1419
- const l = e.get("aspectRatio");
1420
- e.get("image") === o && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1434
+ const c = e.get("aspectRatio");
1435
+ e.get("image") === o && (!c || c === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1421
1436
  });
1422
1437
  }
1423
1438
  }, {
@@ -1541,7 +1556,7 @@ const Wt = {
1541
1556
  };
1542
1557
  function Lt(e) {
1543
1558
  var t, n, i;
1544
- return /* @__PURE__ */ c(
1559
+ return /* @__PURE__ */ l(
1545
1560
  "div",
1546
1561
  {
1547
1562
  style: {
@@ -1550,8 +1565,8 @@ function Lt(e) {
1550
1565
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1551
1566
  "builder-slot": e.name
1552
1567
  },
1553
- children: /* @__PURE__ */ c(
1554
- ce,
1568
+ children: /* @__PURE__ */ l(
1569
+ le,
1555
1570
  {
1556
1571
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1557
1572
  path: `symbol.data.${e.name}`,
@@ -1625,7 +1640,7 @@ const Ot = {
1625
1640
  };
1626
1641
  function jt(e) {
1627
1642
  var t;
1628
- return /* @__PURE__ */ c(
1643
+ return /* @__PURE__ */ l(
1629
1644
  "div",
1630
1645
  {
1631
1646
  className: "builder-text",
@@ -1662,8 +1677,8 @@ const Ht = {
1662
1677
  function Mt(e) {
1663
1678
  const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []);
1664
1679
  return R(() => {
1665
- var l;
1666
- if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
1680
+ var c;
1681
+ if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
1667
1682
  return;
1668
1683
  const r = t.current.getElementsByTagName("script");
1669
1684
  for (let s = 0; s < r.length; s++) {
@@ -1688,7 +1703,7 @@ function Mt(e) {
1688
1703
  }
1689
1704
  }
1690
1705
  }
1691
- }, []), /* @__PURE__ */ c(
1706
+ }, []), /* @__PURE__ */ l(
1692
1707
  "div",
1693
1708
  {
1694
1709
  ref: t,
@@ -1714,7 +1729,7 @@ const Ut = {
1714
1729
  }]
1715
1730
  }, _t = ["text/javascript", "application/javascript", "application/ecmascript"], Kt = (e) => _t.includes(e.type);
1716
1731
  function zt(e) {
1717
- const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []), [r, l] = N(() => !1);
1732
+ const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []), [r, c] = N(() => !1);
1718
1733
  function s() {
1719
1734
  if (!t.current || !t.current.getElementsByTagName)
1720
1735
  return;
@@ -1734,8 +1749,8 @@ function zt(e) {
1734
1749
  }
1735
1750
  }
1736
1751
  return R(() => {
1737
- t.current && !r && (l(!0), s());
1738
- }, [t.current, r]), /* @__PURE__ */ c(
1752
+ t.current && !r && (c(!0), s());
1753
+ }, [t.current, r]), /* @__PURE__ */ l(
1739
1754
  "div",
1740
1755
  {
1741
1756
  className: "builder-embed",
@@ -1760,7 +1775,7 @@ const qt = {
1760
1775
  static: !0
1761
1776
  };
1762
1777
  function Yt(e) {
1763
- return /* @__PURE__ */ c(
1778
+ return /* @__PURE__ */ l(
1764
1779
  "img",
1765
1780
  {
1766
1781
  style: {
@@ -1860,7 +1875,7 @@ const Jt = {
1860
1875
  }
1861
1876
  };
1862
1877
  function Qt(e) {
1863
- var i, o, a, r, l, s, d;
1878
+ var i, o, a, r, c, s, d;
1864
1879
  function t() {
1865
1880
  return {
1866
1881
  ...e.autoPlay === !0 ? {
@@ -1892,7 +1907,7 @@ function Qt(e) {
1892
1907
  position: "relative"
1893
1908
  },
1894
1909
  children: [
1895
- /* @__PURE__ */ c(
1910
+ /* @__PURE__ */ l(
1896
1911
  "video",
1897
1912
  {
1898
1913
  className: "builder-video",
@@ -1914,10 +1929,10 @@ function Qt(e) {
1914
1929
  },
1915
1930
  src: e.video || "no-src",
1916
1931
  poster: e.posterImage,
1917
- children: e.lazyLoad ? null : /* @__PURE__ */ c("source", { type: "video/mp4", src: e.video })
1932
+ children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
1918
1933
  }
1919
1934
  ),
1920
- e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ c(
1935
+ e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
1921
1936
  "div",
1922
1937
  {
1923
1938
  style: {
@@ -1928,7 +1943,7 @@ function Qt(e) {
1928
1943
  }
1929
1944
  }
1930
1945
  ) : null,
1931
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ c(
1946
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(
1932
1947
  "div",
1933
1948
  {
1934
1949
  style: {
@@ -1939,7 +1954,7 @@ function Qt(e) {
1939
1954
  children: e.children
1940
1955
  }
1941
1956
  ) : null,
1942
- (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ c(
1957
+ (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(
1943
1958
  "div",
1944
1959
  {
1945
1960
  style: {
@@ -2106,11 +2121,12 @@ const Gt = () => [{
2106
2121
  "${t}", "${e}", ${We}
2107
2122
  )`;
2108
2123
  function ne(e) {
2109
- return /* @__PURE__ */ c(
2124
+ return /* @__PURE__ */ l(
2110
2125
  "script",
2111
2126
  {
2112
2127
  dangerouslySetInnerHTML: { __html: e.scriptStr },
2113
- "data-id": e.id
2128
+ "data-id": e.id,
2129
+ nonce: e.nonce || ""
2114
2130
  }
2115
2131
  );
2116
2132
  }
@@ -2126,12 +2142,13 @@ const rn = _e({
2126
2142
  componentInfos: {},
2127
2143
  inheritedStyles: {},
2128
2144
  BlocksWrapper: "div",
2129
- BlocksWrapperProps: {}
2145
+ BlocksWrapperProps: {},
2146
+ nonce: ""
2130
2147
  });
2131
- function pe(e) {
2148
+ function ve(e) {
2132
2149
  return Math.round(e * 1e3) / 1e3;
2133
2150
  }
2134
- const ln = (e, t, n = !0) => {
2151
+ const cn = (e, t, n = !0) => {
2135
2152
  if (!(e instanceof HTMLElement))
2136
2153
  return null;
2137
2154
  let i = n ? e : e.parentElement;
@@ -2142,28 +2159,28 @@ const ln = (e, t, n = !0) => {
2142
2159
  return i;
2143
2160
  } while (i = i.parentElement);
2144
2161
  return null;
2145
- }, cn = (e) => ln(e, (t) => {
2162
+ }, ln = (e) => cn(e, (t) => {
2146
2163
  const n = t.getAttribute("builder-id") || t.id;
2147
2164
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2148
- }), ve = ({
2165
+ }), xe = ({
2149
2166
  event: e,
2150
2167
  target: t
2151
2168
  }) => {
2152
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = pe(i / n.width), r = pe(o / n.height);
2169
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ve(i / n.width), r = ve(o / n.height);
2153
2170
  return {
2154
2171
  x: a,
2155
2172
  y: r
2156
2173
  };
2157
2174
  }, sn = (e) => {
2158
- const t = e.target, n = t && cn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2175
+ const t = e.target, n = t && ln(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2159
2176
  return {
2160
2177
  targetBuilderElement: i || void 0,
2161
2178
  metadata: {
2162
- targetOffset: t ? ve({
2179
+ targetOffset: t ? xe({
2163
2180
  event: e,
2164
2181
  target: t
2165
2182
  }) : void 0,
2166
- builderTargetOffset: n ? ve({
2183
+ builderTargetOffset: n ? xe({
2167
2184
  event: e,
2168
2185
  target: n
2169
2186
  }) : void 0,
@@ -2192,9 +2209,9 @@ function un(e) {
2192
2209
  }
2193
2210
  function mn(e, t) {
2194
2211
  const n = fn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
2195
- for (const l of r)
2212
+ for (const c of r)
2196
2213
  for (const s of n)
2197
- s in l || (l[s] = i[s]);
2214
+ s in c || (c[s] = i[s]);
2198
2215
  }
2199
2216
  function fn(e) {
2200
2217
  const t = [];
@@ -2229,16 +2246,16 @@ font-display: fallback;
2229
2246
  font-weight: 400;
2230
2247
  }
2231
2248
  `.trim()), e.files)
2232
- for (const l in e.files) {
2233
- if (!(String(Number(l)) === l))
2249
+ for (const c in e.files) {
2250
+ if (!(String(Number(c)) === c))
2234
2251
  continue;
2235
- const d = e.files[l];
2252
+ const d = e.files[c];
2236
2253
  d && d !== i && (o += `
2237
2254
  @font-face {
2238
2255
  font-family: "${t}";
2239
2256
  src: url('${d}') format('woff2');
2240
2257
  font-display: fallback;
2241
- font-weight: ${l};
2258
+ font-weight: ${c};
2242
2259
  }
2243
2260
  `.trim());
2244
2261
  }
@@ -2251,7 +2268,7 @@ font-weight: ${l};
2251
2268
  }, yn = ({
2252
2269
  cssCode: e,
2253
2270
  contentId: t
2254
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", pn = `
2271
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", vn = `
2255
2272
  .builder-button {
2256
2273
  all: unset;
2257
2274
  }
@@ -2268,29 +2285,29 @@ font-weight: ${l};
2268
2285
  text-align: inherit;
2269
2286
  font-family: inherit;
2270
2287
  }
2271
- `, vn = (e) => e ? "" : pn, Sn = (e) => `variant-${e}`;
2272
- function xn(e) {
2288
+ `, xn = (e) => e ? "" : vn, Sn = (e) => `variant-${e}`;
2289
+ function pn(e) {
2273
2290
  var B, O, D, X, Z, se, de;
2274
2291
  const t = oe(null);
2275
2292
  function n(g) {
2276
- var p, v;
2293
+ var v, x;
2277
2294
  const f = {
2278
2295
  ...e.builderContextSignal.rootState,
2279
2296
  ...g
2280
2297
  };
2281
- e.builderContextSignal.rootSetState ? (v = (p = e.builderContextSignal).rootSetState) == null || v.call(p, f) : e.builderContextSignal.rootState = f;
2298
+ e.builderContextSignal.rootSetState ? (x = (v = e.builderContextSignal).rootSetState) == null || x.call(v, f) : e.builderContextSignal.rootState = f;
2282
2299
  }
2283
2300
  function i(g) {
2284
- var p, v, C, P, U;
2301
+ var v, x, C, P, U;
2285
2302
  const f = {
2286
2303
  ...e.builderContextSignal.content,
2287
2304
  ...g,
2288
2305
  data: {
2289
- ...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
2306
+ ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
2290
2307
  ...g == null ? void 0 : g.data
2291
2308
  },
2292
2309
  meta: {
2293
- ...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
2310
+ ...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
2294
2311
  ...g == null ? void 0 : g.meta,
2295
2312
  breakpoints: ((C = g == null ? void 0 : g.meta) == null ? void 0 : C.breakpoints) || ((U = (P = e.builderContextSignal.content) == null ? void 0 : P.meta) == null ? void 0 : U.breakpoints)
2296
2313
  }
@@ -2311,17 +2328,17 @@ function xn(e) {
2311
2328
  const [a, r] = N(
2312
2329
  () => e.contentWrapper || "div"
2313
2330
  );
2314
- function l(g) {
2331
+ function c(g) {
2315
2332
  return Oe({
2316
2333
  model: e.model,
2317
2334
  trustedHosts: e.trustedHosts,
2318
2335
  callbacks: {
2319
2336
  configureSdk: (f) => {
2320
2337
  var C;
2321
- const { breakpoints: p, contentId: v } = f;
2322
- !v || v !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || p && i({
2338
+ const { breakpoints: v, contentId: x } = f;
2339
+ !x || x !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || v && i({
2323
2340
  meta: {
2324
- breakpoints: p
2341
+ breakpoints: v
2325
2342
  }
2326
2343
  });
2327
2344
  },
@@ -2335,8 +2352,8 @@ function xn(e) {
2335
2352
  })(g);
2336
2353
  }
2337
2354
  function s() {
2338
- var f, p;
2339
- const g = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.jsCode;
2355
+ var f, v;
2356
+ const g = (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.jsCode;
2340
2357
  g && H({
2341
2358
  code: g,
2342
2359
  context: e.context || {},
@@ -2349,26 +2366,26 @@ function xn(e) {
2349
2366
  enableCache: !1
2350
2367
  });
2351
2368
  }
2352
- const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [x, I] = N(() => !1);
2369
+ const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [p, I] = N(() => !1);
2353
2370
  function y(g) {
2354
- var f, p;
2371
+ var f, v;
2355
2372
  if (e.builderContextSignal.content) {
2356
- const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, C = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
2373
+ const x = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, C = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
2357
2374
  ue({
2358
2375
  type: "click",
2359
2376
  canTrack: q(e.canTrack),
2360
2377
  contentId: C,
2361
2378
  apiKey: e.apiKey,
2362
- variationId: v !== C ? v : void 0,
2379
+ variationId: x !== C ? x : void 0,
2363
2380
  ...sn(g),
2364
- unique: !x
2381
+ unique: !p
2365
2382
  });
2366
2383
  }
2367
- x || I(!0);
2384
+ p || I(!0);
2368
2385
  }
2369
2386
  function A() {
2370
- var f, p, v;
2371
- const g = (v = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.httpRequests) != null ? v : {};
2387
+ var f, v, x;
2388
+ const g = (x = (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.httpRequests) != null ? x : {};
2372
2389
  Object.entries(g).forEach(([C, P]) => {
2373
2390
  if (!P || u[C] || d[C] && !V())
2374
2391
  return;
@@ -2413,7 +2430,7 @@ function xn(e) {
2413
2430
  );
2414
2431
  }
2415
2432
  function b(g) {
2416
- window.addEventListener("message", l), je(), He({
2433
+ window.addEventListener("message", c), je(), He({
2417
2434
  ...e.locale ? {
2418
2435
  locale: e.locale
2419
2436
  } : {},
@@ -2426,19 +2443,19 @@ function xn(e) {
2426
2443
  }), Object.values(
2427
2444
  e.builderContextSignal.componentInfos
2428
2445
  ).forEach((f) => {
2429
- var v;
2430
- const p = Me(f);
2431
- (v = window.parent) == null || v.postMessage(p, "*");
2446
+ var x;
2447
+ const v = Me(f);
2448
+ (x = window.parent) == null || x.postMessage(v, "*");
2432
2449
  }), window.addEventListener(
2433
2450
  "builder:component:stateChangeListenerActivated",
2434
2451
  S
2435
2452
  );
2436
2453
  }
2437
2454
  function k(g) {
2438
- const f = new URL(location.href).searchParams, p = f.get("builder.preview"), v = f.get(
2439
- `builder.overrides.${p}`
2455
+ const f = new URL(location.href).searchParams, v = f.get("builder.preview"), x = f.get(
2456
+ `builder.overrides.${v}`
2440
2457
  ), C = f.get("apiKey") || f.get("builder.space");
2441
- p === e.model && C === e.apiKey && (!e.content || v === e.content.id) && ke({
2458
+ v === e.model && C === e.apiKey && (!e.content || x === e.content.id) && ke({
2442
2459
  model: e.model,
2443
2460
  apiKey: e.apiKey,
2444
2461
  apiVersion: e.builderContextSignal.apiVersion
@@ -2475,13 +2492,13 @@ function xn(e) {
2475
2492
  var g, f;
2476
2493
  if (L()) {
2477
2494
  if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
2478
- const v = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, C = (f = e.builderContextSignal.content) == null ? void 0 : f.id, P = e.apiKey;
2495
+ const x = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, C = (f = e.builderContextSignal.content) == null ? void 0 : f.id, P = e.apiKey;
2479
2496
  ue({
2480
2497
  type: "impression",
2481
2498
  canTrack: !0,
2482
2499
  contentId: C,
2483
2500
  apiKey: P,
2484
- variationId: v !== C ? v : void 0
2501
+ variationId: x !== C ? x : void 0
2485
2502
  });
2486
2503
  }
2487
2504
  Le() && V();
@@ -2504,11 +2521,11 @@ function xn(e) {
2504
2521
  locale: e.locale
2505
2522
  });
2506
2523
  }, [e.locale]), R(() => () => {
2507
- L() && (window.removeEventListener("message", l), window.removeEventListener(
2524
+ L() && (window.removeEventListener("message", c), window.removeEventListener(
2508
2525
  "builder:component:stateChangeListenerActivated",
2509
2526
  S
2510
2527
  ));
2511
- }, []), /* @__PURE__ */ c(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(
2528
+ }, []), /* @__PURE__ */ l(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
2512
2529
  a,
2513
2530
  {
2514
2531
  ref: t,
@@ -2533,18 +2550,25 @@ ${yn({
2533
2550
  ${bn({
2534
2551
  customFonts: e.customFonts
2535
2552
  })}
2536
- ${vn(e.isNestedRender)}
2553
+ ${xn(e.isNestedRender)}
2537
2554
  `.trim();
2538
- return /* @__PURE__ */ c(Q, { id: "builderio-content", styles: t });
2555
+ return /* @__PURE__ */ l(
2556
+ Q,
2557
+ {
2558
+ id: "builderio-content",
2559
+ styles: t,
2560
+ nonce: e.nonce
2561
+ }
2562
+ );
2539
2563
  }
2540
2564
  const Cn = ({
2541
2565
  content: e,
2542
2566
  data: t,
2543
2567
  locale: n
2544
2568
  }) => {
2545
- var a, r, l;
2569
+ var a, r, c;
2546
2570
  const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
2547
- return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((s) => {
2571
+ return (c = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || c.forEach((s) => {
2548
2572
  s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
2549
2573
  }), {
2550
2574
  ...i,
@@ -2565,8 +2589,8 @@ const Cn = ({
2565
2589
  },
2566
2590
  meta: e == null ? void 0 : e.meta
2567
2591
  } : void 0;
2568
- function xe(e) {
2569
- var o, a, r, l, s, d, m, u, h;
2592
+ function pe(e) {
2593
+ var o, a, r, c, s, d, m, u, h;
2570
2594
  const t = an({
2571
2595
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2572
2596
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
@@ -2576,8 +2600,8 @@ function xe(e) {
2576
2600
  ...ye(),
2577
2601
  ...e.customComponents || []
2578
2602
  ].reduce(
2579
- (x, { component: I, ...y }) => ({
2580
- ...x,
2603
+ (p, { component: I, ...y }) => ({
2604
+ ...p,
2581
2605
  [y.name]: {
2582
2606
  component: I,
2583
2607
  ...me(y)
@@ -2604,19 +2628,21 @@ function xe(e) {
2604
2628
  ...ye(),
2605
2629
  ...e.customComponents || []
2606
2630
  ].reduce(
2607
- (x, { component: I, ...y }) => ({
2608
- ...x,
2631
+ (p, { component: I, ...y }) => ({
2632
+ ...p,
2609
2633
  [y.name]: me(y)
2610
2634
  }),
2611
2635
  {}
2612
2636
  ),
2613
2637
  inheritedStyles: {},
2614
2638
  BlocksWrapper: e.blocksWrapper || "div",
2615
- BlocksWrapperProps: e.blocksWrapperProps || {}
2639
+ BlocksWrapperProps: e.blocksWrapperProps || {},
2640
+ nonce: e.nonce || ""
2616
2641
  };
2617
2642
  return /* @__PURE__ */ E(
2618
- xn,
2643
+ pn,
2619
2644
  {
2645
+ nonce: e.nonce,
2620
2646
  content: e.content,
2621
2647
  data: e.data,
2622
2648
  model: e.model,
@@ -2631,24 +2657,26 @@ function xe(e) {
2631
2657
  contentWrapperProps: e.contentWrapperProps,
2632
2658
  trustedHosts: e.trustedHosts,
2633
2659
  children: [
2634
- e.isSsrAbTest ? /* @__PURE__ */ c(
2660
+ e.isSsrAbTest ? /* @__PURE__ */ l(
2635
2661
  ne,
2636
2662
  {
2637
2663
  id: "builderio-variant-visibility",
2638
- scriptStr: t
2664
+ scriptStr: t,
2665
+ nonce: e.nonce || ""
2639
2666
  }
2640
2667
  ) : null,
2641
- /* @__PURE__ */ c(
2668
+ /* @__PURE__ */ l(
2642
2669
  kn,
2643
2670
  {
2671
+ nonce: e.nonce || "",
2644
2672
  isNestedRender: e.isNestedRender,
2645
2673
  contentId: (r = i.content) == null ? void 0 : r.id,
2646
- cssCode: (s = (l = i.content) == null ? void 0 : l.data) == null ? void 0 : s.cssCode,
2674
+ cssCode: (s = (c = i.content) == null ? void 0 : c.data) == null ? void 0 : s.cssCode,
2647
2675
  customFonts: (m = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
2648
2676
  }
2649
2677
  ),
2650
- /* @__PURE__ */ c(
2651
- ce,
2678
+ /* @__PURE__ */ l(
2679
+ le,
2652
2680
  {
2653
2681
  blocks: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.blocks,
2654
2682
  context: i,
@@ -2666,53 +2694,57 @@ function In(e) {
2666
2694
  canTrack: q(e.canTrack),
2667
2695
  content: e.content
2668
2696
  }), n = function() {
2669
- var l;
2697
+ var c;
2670
2698
  return on(
2671
2699
  K(e.content).map((s) => ({
2672
2700
  id: s.testVariationId,
2673
2701
  testRatio: s.testRatio
2674
2702
  })),
2675
- ((l = e.content) == null ? void 0 : l.id) || ""
2703
+ ((c = e.content) == null ? void 0 : c.id) || ""
2676
2704
  );
2677
2705
  }, i = function() {
2678
- return K(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
2706
+ return K(e.content).map((c) => `.variant-${c.testVariationId} { display: none; } `).join("");
2679
2707
  }, o = function() {
2680
- var l;
2708
+ var c;
2681
2709
  return t ? {
2682
2710
  ...e.content,
2683
- testVariationId: (l = e.content) == null ? void 0 : l.id
2711
+ testVariationId: (c = e.content) == null ? void 0 : c.id
2684
2712
  } : Ue({
2685
2713
  item: e.content,
2686
2714
  canTrack: q(e.canTrack)
2687
2715
  });
2688
2716
  };
2689
2717
  return /* @__PURE__ */ E(w, { children: [
2690
- !e.isNestedRender && M !== "reactNative" ? /* @__PURE__ */ c(
2718
+ !e.isNestedRender && M !== "reactNative" ? /* @__PURE__ */ l(
2691
2719
  ne,
2692
2720
  {
2693
2721
  id: "builderio-init-variants-fns",
2694
- scriptStr: nn()
2722
+ scriptStr: nn(),
2723
+ nonce: e.nonce || ""
2695
2724
  }
2696
2725
  ) : null,
2697
2726
  t ? /* @__PURE__ */ E(w, { children: [
2698
- /* @__PURE__ */ c(
2727
+ /* @__PURE__ */ l(
2699
2728
  Q,
2700
2729
  {
2701
2730
  id: "builderio-variants",
2702
- styles: i()
2731
+ styles: i(),
2732
+ nonce: e.nonce || ""
2703
2733
  }
2704
2734
  ),
2705
- /* @__PURE__ */ c(
2735
+ /* @__PURE__ */ l(
2706
2736
  ne,
2707
2737
  {
2708
2738
  id: "builderio-variants-visibility",
2709
- scriptStr: n()
2739
+ scriptStr: n(),
2740
+ nonce: e.nonce || ""
2710
2741
  }
2711
2742
  ),
2712
- (a = K(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ c(
2713
- xe,
2743
+ (a = K(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
2744
+ pe,
2714
2745
  {
2715
2746
  isNestedRender: e.isNestedRender,
2747
+ nonce: e.nonce,
2716
2748
  content: r,
2717
2749
  showContent: !1,
2718
2750
  model: e.model,
@@ -2735,9 +2767,10 @@ function In(e) {
2735
2767
  r.testVariationId
2736
2768
  ))
2737
2769
  ] }) : null,
2738
- /* @__PURE__ */ c(
2739
- xe,
2770
+ /* @__PURE__ */ l(
2771
+ pe,
2740
2772
  {
2773
+ nonce: e.nonce,
2741
2774
  isNestedRender: e.isNestedRender,
2742
2775
  content: o(),
2743
2776
  showContent: !0,
@@ -2781,7 +2814,7 @@ const Tn = async ({
2781
2814
  });
2782
2815
  };
2783
2816
  async function Rn(e) {
2784
- var a, r, l, s, d;
2817
+ var a, r, c, s, d;
2785
2818
  const t = function() {
2786
2819
  return "div";
2787
2820
  }, n = function() {
@@ -2798,9 +2831,10 @@ async function Rn(e) {
2798
2831
  symbol: e.symbol,
2799
2832
  builderContextValue: e.builderContext
2800
2833
  });
2801
- return /* @__PURE__ */ c("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ c(
2834
+ return /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
2802
2835
  In,
2803
2836
  {
2837
+ nonce: e.builderContext.nonce,
2804
2838
  isNestedRender: !0,
2805
2839
  apiVersion: e.builderContext.apiVersion,
2806
2840
  apiKey: e.builderContext.apiKey,
@@ -2810,7 +2844,7 @@ async function Rn(e) {
2810
2844
  },
2811
2845
  customComponents: Object.values(e.builderComponents),
2812
2846
  data: {
2813
- ...(l = e.symbol) == null ? void 0 : l.data,
2847
+ ...(c = e.symbol) == null ? void 0 : c.data,
2814
2848
  ...e.builderContext.localState,
2815
2849
  ...(s = o == null ? void 0 : o.data) == null ? void 0 : s.state
2816
2850
  },
@@ -2824,7 +2858,7 @@ async function Rn(e) {
2824
2858
  ) });
2825
2859
  }
2826
2860
  export {
2827
- ce as Blocks,
2861
+ le as Blocks,
2828
2862
  rn as BuilderContext,
2829
2863
  Ye as Button,
2830
2864
  It as Columns,