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

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 +13 -13
  2. package/lib/browser/blocks-exports.mjs +395 -359
  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-86458005.js → server-entry-242f596f.js} +1 -1
  8. package/lib/browser/{server-entry-d8d62ced.cjs → server-entry-494604dc.cjs} +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 +17 -17
  12. package/lib/edge/blocks-exports.mjs +289 -253
  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-86458005.js → server-entry-242f596f.js} +1 -1
  18. package/lib/edge/{server-entry-d8d62ced.cjs → server-entry-494604dc.cjs} +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 +13 -13
  22. package/lib/node/blocks-exports.mjs +336 -300
  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-423addf8.js → node-runtime-42e494ca.js} +1 -1
  28. package/lib/node/{node-runtime-6421aefe.cjs → node-runtime-e1243cd6.cjs} +1 -1
  29. package/lib/node/{server-entry-6f84d0f2.cjs → server-entry-db7b41aa.cjs} +1 -1
  30. package/lib/node/{server-entry-1644208f.js → server-entry-fbf4e3a9.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";
7
- import { useRef as oe, useState as N, useEffect as R, createContext as _e } from "react";
5
+ import { jsx as l, Fragment as C, 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-242f596f.js";
7
+ import { useRef as oe, useState as A, 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(C, { children: qe(e.TagName) ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(C, { 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(),
@@ -75,7 +75,7 @@ const Qe = ({
75
75
  getUserAttributes: () => $e()
76
76
  }), Xe = (e, {
77
77
  isExpression: t = !0
78
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, fe = ({
78
+ }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, he = ({
79
79
  code: e,
80
80
  builder: t,
81
81
  context: n,
@@ -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,
@@ -131,7 +131,7 @@ const et = () => {
131
131
  return !1;
132
132
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
133
133
  return e && t && !n ? (J.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
134
- }, tt = (e) => (L() || et(), fe(e)), W = class W {
134
+ }, tt = (e) => (L() || et(), he(e)), N = class N {
135
135
  static getCacheKey(t) {
136
136
  return JSON.stringify({
137
137
  ...t,
@@ -141,16 +141,16 @@ const et = () => {
141
141
  });
142
142
  }
143
143
  static getCachedValue(t) {
144
- return W.cache.get(t);
144
+ return N.cache.get(t);
145
145
  }
146
146
  static setCachedValue(t, n) {
147
- W.cache.size > 20 && W.cache.delete(W.cache.keys().next().value), W.cache.set(t, {
147
+ N.cache.size > 20 && N.cache.delete(N.cache.keys().next().value), N.cache.set(t, {
148
148
  value: n
149
149
  });
150
150
  }
151
151
  };
152
- ee(W, "cacheLimit", 20), ee(W, "cache", /* @__PURE__ */ new Map());
153
- let F = W;
152
+ ee(N, "cacheLimit", 20), ee(N, "cache", /* @__PURE__ */ new Map());
153
+ let F = N;
154
154
  function H({
155
155
  code: e,
156
156
  context: t,
@@ -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
  }) => {
@@ -382,7 +382,7 @@ const lt = ({
382
382
  default: 991,
383
383
  max: 1200
384
384
  }
385
- }, he = (e, t = Te) => `@media (max-width: ${t[e].max}px)`, Re = ({
385
+ }, fe = (e, t = Te) => `@media (max-width: ${t[e].max}px)`, Re = ({
386
386
  small: e,
387
387
  medium: t
388
388
  }) => {
@@ -410,15 +410,16 @@ 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
  }
421
- function ft(e) {
422
+ function ht(e) {
422
423
  const t = function() {
423
424
  const o = Y({
424
425
  block: e.block,
@@ -430,7 +431,7 @@ function ft(e) {
430
431
  });
431
432
  return z(o.hide) ? !o.hide : z(o.show) ? o.show : !0;
432
433
  }, n = function() {
433
- var S, b, k;
434
+ var y, v, p;
434
435
  const o = Y({
435
436
  block: e.block,
436
437
  localState: e.context.localState,
@@ -438,56 +439,63 @@ 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
- ((S = r == null ? void 0 : r.meta) == null ? void 0 : S.breakpoints) || {}
442
+ }), a = o.responsiveStyles, r = e.context.content, c = Re(
443
+ ((y = r == null ? void 0 : r.meta) == null ? void 0 : y.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)
445
446
  return "";
446
- const h = s ? _({
447
+ const f = s ? _({
447
448
  className: u,
448
449
  styles: s
449
- }) : "", x = d ? _({
450
+ }) : "", w = d ? _({
450
451
  className: u,
451
452
  styles: d,
452
- mediaQuery: he(
453
+ mediaQuery: fe(
453
454
  "medium",
454
- l
455
+ c
455
456
  )
456
457
  }) : "", I = m ? _({
457
458
  className: u,
458
459
  styles: m,
459
- mediaQuery: he(
460
+ mediaQuery: fe(
460
461
  "small",
461
- l
462
+ c
462
463
  )
463
- }) : "", y = o.animations && o.animations.find((T) => T.trigger === "hover");
464
- let A = "";
465
- if (y) {
466
- const T = ((k = (b = y.steps) == null ? void 0 : b[1]) == null ? void 0 : k.styles) || {};
467
- A = _({
464
+ }) : "", b = o.animations && o.animations.find((T) => T.trigger === "hover");
465
+ let P = "";
466
+ if (b) {
467
+ const T = ((p = (v = b.steps) == null ? void 0 : v[1]) == null ? void 0 : p.styles) || {};
468
+ P = _({
468
469
  className: `${u}:hover`,
469
470
  styles: {
470
471
  ...T,
471
- transition: `all ${y.duration}s ${re(
472
- y.easing
472
+ transition: `all ${b.duration}s ${re(
473
+ b.easing
473
474
  )}`,
474
- transitionDelay: y.delay ? `${y.delay}s` : "0s"
475
+ transitionDelay: b.delay ? `${b.delay}s` : "0s"
475
476
  }
476
477
  }) || "";
477
478
  }
478
479
  return [
479
- h,
480
- x,
480
+ f,
481
+ w,
481
482
  I,
482
- A
483
+ P
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(C, { children: n() && t() ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
487
+ Q,
488
+ {
489
+ id: "builderio-block",
490
+ styles: n(),
491
+ nonce: e.context.nonce
492
+ }
493
+ ) }) : null });
486
494
  }
487
- function ht(e) {
495
+ function ft(e) {
488
496
  return e.charAt(0).toUpperCase() + e.slice(1);
489
497
  }
490
- const gt = (e) => `on${ht(e)}`, bt = (e, t) => (n) => H({
498
+ const gt = (e) => `on${ft(e)}`, bt = (e, t) => (n) => H({
491
499
  code: e,
492
500
  context: t.context,
493
501
  localState: t.localState,
@@ -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(C, { children: e.componentRef ? /* @__PURE__ */ l(C, { 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,19 +668,19 @@ 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
  });
673
681
  }, i = function() {
674
- var h;
675
- return (h = e.block.repeat) != null && h.collection ? e.block : Y({
682
+ var f;
683
+ return (f = e.block.repeat) != null && f.collection ? e.block : Y({
676
684
  block: e.block,
677
685
  localState: e.context.localState,
678
686
  rootState: e.context.rootState,
@@ -681,22 +689,22 @@ 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 w;
693
+ return e.block.tagName === "a" || ((w = i().properties) == null ? void 0 : w.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
686
694
  }, a = function() {
687
- var I, y;
695
+ var I, b;
688
696
  if ((I = e.block.repeat) != null && I.collection)
689
- return !!((y = n()) != null && y.length);
690
- const h = "hide" in i() ? i().hide : !1;
691
- return ("show" in i() ? i().show : !0) && !h;
697
+ return !!((b = n()) != null && b.length);
698
+ const f = "hide" in i() ? i().hide : !1;
699
+ return ("show" in i() ? i().show : !0) && !f;
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 w, I;
702
+ return !((w = t()) != null && w.component) && !n() ? (I = i().children) != null ? I : [] : [];
703
+ }, c = function() {
704
+ var f, w, I, b;
697
705
  return {
698
- blockChildren: (h = i().children) != null ? h : [],
699
- componentRef: (x = t()) == null ? void 0 : x.component,
706
+ blockChildren: (f = i().children) != null ? f : [],
707
+ componentRef: (w = t()) == null ? void 0 : w.component,
700
708
  componentOptions: {
701
709
  ...Je(i()),
702
710
  ...ut(t(), i()),
@@ -712,25 +720,25 @@ function G(e) {
712
720
  registeredComponents: e.registeredComponents,
713
721
  builderBlock: i(),
714
722
  includeBlockProps: ((I = t()) == null ? void 0 : I.noWrap) === !0,
715
- isInteractive: !((y = t()) != null && y.isRSC)
723
+ isInteractive: !((b = t()) != null && b.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(C, { children: a() ? /* @__PURE__ */ E(C, { children: [
727
+ /* @__PURE__ */ l(ht, { block: e.block, context: e.context }),
728
+ (s = t()) != null && s.noWrap ? /* @__PURE__ */ l(C, { 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(C, { children: n() ? /* @__PURE__ */ l(C, { children: (m = n()) == null ? void 0 : m.map((u, f) => /* @__PURE__ */ l(
734
742
  kt,
735
743
  {
736
744
  repeatContext: u.context,
@@ -738,29 +746,29 @@ function G(e) {
738
746
  registeredComponents: e.registeredComponents,
739
747
  linkComponent: e.linkComponent
740
748
  },
741
- h
749
+ f
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,
@@ -806,8 +814,8 @@ function Ct(e) {
806
814
  "*"
807
815
  ));
808
816
  }
809
- return /* @__PURE__ */ E(w, { children: [
810
- /* @__PURE__ */ c(
817
+ return /* @__PURE__ */ E(C, { children: [
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(C, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
843
851
  G,
844
852
  {
845
853
  block: o,
@@ -854,35 +862,35 @@ function ce(e) {
854
862
  }
855
863
  const wt = (e) => `builder-columns ${e}-breakpoints`;
856
864
  function It(e) {
857
- var y, A;
858
- const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(b) {
859
- return b.link ? e.builderLinkComponent || "a" : "div";
860
- }, a = function(b) {
861
- var k;
862
- return ((k = n[b]) == null ? void 0 : k.width) || 100 / n.length;
863
- }, r = function(b) {
864
- const k = a(b), T = t * (n.length - 1) * (k / 100);
865
- return `calc(${k}% - ${T}px)`;
866
- }, l = function({
867
- stackedStyle: b,
868
- desktopStyle: k
865
+ var b, P;
866
+ const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(v) {
867
+ return v.link ? e.builderLinkComponent || "a" : "div";
868
+ }, a = function(v) {
869
+ var p;
870
+ return ((p = n[v]) == null ? void 0 : p.width) || 100 / n.length;
871
+ }, r = function(v) {
872
+ const p = a(v), T = t * (n.length - 1) * (p / 100);
873
+ return `calc(${p}% - ${T}px)`;
874
+ }, c = function({
875
+ stackedStyle: v,
876
+ desktopStyle: p
869
877
  }) {
870
- return i === "tablet" ? b : k;
878
+ return i === "tablet" ? v : p;
871
879
  }, s = function({
872
- stackedStyle: b,
873
- desktopStyle: k
880
+ stackedStyle: v,
881
+ desktopStyle: p
874
882
  }) {
875
- return i === "never" ? k : b;
883
+ return i === "never" ? p : v;
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
  })
883
891
  };
884
- }, u = function(b) {
885
- const k = b === 0 ? 0 : t, T = r(b), B = `${k}px`, O = "100%", D = 0;
892
+ }, u = function(v) {
893
+ const p = v === 0 ? 0 : t, T = r(v), W = `${p}px`, O = "100%", D = 0;
886
894
  return {
887
895
  ...{
888
896
  display: "flex",
@@ -890,32 +898,32 @@ function It(e) {
890
898
  alignItems: "stretch"
891
899
  },
892
900
  width: T,
893
- ["marginLeft"]: B,
901
+ ["marginLeft"]: W,
894
902
  "--column-width-mobile": s({
895
903
  stackedStyle: O,
896
904
  desktopStyle: T
897
905
  }),
898
906
  "--column-margin-left-mobile": s({
899
907
  stackedStyle: D,
900
- desktopStyle: B
908
+ desktopStyle: W
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
- desktopStyle: B
916
+ desktopStyle: W
909
917
  })
910
918
  };
911
- }, h = function(b) {
912
- var T, B;
919
+ }, f = function(v) {
920
+ var T, W;
913
921
  return Re(
914
- ((B = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : B.breakpoints) || {}
915
- )[b].max;
916
- }, x = function() {
922
+ ((W = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : W.breakpoints) || {}
923
+ )[v].max;
924
+ }, w = function() {
917
925
  return `
918
- @media (max-width: ${h("medium")}px) {
926
+ @media (max-width: ${f("medium")}px) {
919
927
  .${e.builderBlock.id}-breakpoints {
920
928
  flex-direction: var(--flex-dir-tablet);
921
929
  align-items: stretch;
@@ -927,7 +935,7 @@ function It(e) {
927
935
  }
928
936
  }
929
937
 
930
- @media (max-width: ${h("small")}px) {
938
+ @media (max-width: ${f("small")}px) {
931
939
  .${e.builderBlock.id}-breakpoints {
932
940
  flex-direction: var(--flex-dir);
933
941
  align-items: stretch;
@@ -939,33 +947,40 @@ function It(e) {
939
947
  }
940
948
  },
941
949
  `;
942
- }, I = function(b, k) {
950
+ }, I = function(v, p) {
943
951
  return {
944
- ...b.link ? {
945
- href: b.link
952
+ ...v.link ? {
953
+ href: v.link
946
954
  } : {},
947
955
  [j()]: "builder-column",
948
- style: Ie(u(k))
956
+ style: Ie(u(p))
949
957
  };
950
958
  };
951
- return /* @__PURE__ */ E(w, { children: [
959
+ return /* @__PURE__ */ E(C, { children: [
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((b = e.builderBlock) == null ? void 0 : b.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: w(),
971
+ nonce: e.builderContext.nonce
972
+ }
973
+ ),
974
+ (P = e.columns) == null ? void 0 : P.map((y, v) => /* @__PURE__ */ l(
960
975
  ae,
961
976
  {
962
- TagName: o(S),
977
+ TagName: o(y),
963
978
  actionAttributes: {},
964
- attributes: I(S, b),
965
- children: /* @__PURE__ */ c(
966
- ce,
979
+ attributes: I(y, v),
980
+ children: /* @__PURE__ */ l(
981
+ le,
967
982
  {
968
- path: `component.options.columns.${b}.blocks`,
983
+ path: `component.options.columns.${v}.blocks`,
969
984
  parent: e.builderBlock.id,
970
985
  styleProp: {
971
986
  flexGrow: "1"
@@ -973,23 +988,23 @@ function It(e) {
973
988
  context: e.builderContext,
974
989
  registeredComponents: e.builderComponents,
975
990
  linkComponent: e.builderLinkComponent,
976
- blocks: S.blocks
991
+ blocks: y.blocks
977
992
  }
978
993
  )
979
994
  },
980
- b
995
+ v
981
996
  ))
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,20 +1037,22 @@ 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
- var h;
1042
+ var f;
1028
1043
  const u = e.image || e.src;
1029
1044
  if (!u || // We can auto add srcset for cdn.builder.io and shopify
1030
1045
  // images, otherwise you can supply this prop manually
1031
1046
  !(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
1032
1047
  return e.srcset;
1033
- if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
1034
- if (!e.srcset.includes(e.image.split("?")[0]))
1035
- return console.debug("Removed given srcset"), te(u);
1036
- } else if (e.image && !e.srcset)
1048
+ if (!e.noWebp) {
1049
+ if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
1050
+ if (!e.srcset.includes(e.image.split("?")[0]))
1051
+ return console.debug("Removed given srcset"), te(u);
1052
+ } else if (e.image && !e.srcset)
1053
+ return te(u);
1037
1054
  return te(u);
1038
- return te(u);
1055
+ }
1039
1056
  }
1040
1057
  function n() {
1041
1058
  var m;
@@ -1051,11 +1068,11 @@ function Pt(e) {
1051
1068
  };
1052
1069
  return e.aspectRatio ? m : void 0;
1053
1070
  }
1054
- return /* @__PURE__ */ E(w, { children: [
1055
- /* @__PURE__ */ E(w, { children: [
1071
+ return /* @__PURE__ */ E(C, { children: [
1072
+ /* @__PURE__ */ E(C, { children: [
1056
1073
  /* @__PURE__ */ E("picture", { children: [
1057
- n() ? /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) : null,
1058
- /* @__PURE__ */ c(
1074
+ n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1075
+ /* @__PURE__ */ l(
1059
1076
  "img",
1060
1077
  {
1061
1078
  loading: e.highPriority ? "eager" : "lazy",
@@ -1067,33 +1084,33 @@ function Pt(e) {
1067
1084
  objectFit: e.backgroundSize || "cover",
1068
1085
  ...i()
1069
1086
  },
1070
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-ac3dff4a",
1087
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-56bbd606",
1071
1088
  src: e.image,
1072
1089
  srcSet: t(),
1073
1090
  sizes: e.sizes
1074
1091
  }
1075
1092
  )
1076
1093
  ] }),
1077
- e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ c(
1094
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
1078
1095
  "div",
1079
1096
  {
1080
- className: "builder-image-sizer div-ac3dff4a",
1097
+ className: "builder-image-sizer div-56bbd606",
1081
1098
  style: {
1082
1099
  paddingTop: e.aspectRatio * 100 + "%"
1083
1100
  }
1084
1101
  }
1085
1102
  ) : 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
1103
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(C, { children: e.children }) : null,
1104
+ !e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ l("div", { className: "div-56bbd606-2", children: e.children }) : null
1088
1105
  ] }),
1089
- /* @__PURE__ */ c("style", { children: `.img-ac3dff4a {
1106
+ /* @__PURE__ */ l("style", { children: `.img-56bbd606 {
1090
1107
  opacity: 1;
1091
1108
  transition: opacity 0.2s ease-in-out;
1092
- }.div-ac3dff4a {
1109
+ }.div-56bbd606 {
1093
1110
  width: 100%;
1094
1111
  pointer-events: none;
1095
1112
  font-size: 0;
1096
- }.div-ac3dff4a-2 {
1113
+ }.div-56bbd606-2 {
1097
1114
  display: flex;
1098
1115
  flex-direction: column;
1099
1116
  align-items: stretch;
@@ -1106,7 +1123,7 @@ function Pt(e) {
1106
1123
  ] });
1107
1124
  }
1108
1125
  function Bt(e) {
1109
- return /* @__PURE__ */ c(
1126
+ return /* @__PURE__ */ l(
1110
1127
  "section",
1111
1128
  {
1112
1129
  ...e.attributes,
@@ -1341,7 +1358,7 @@ const Wt = {
1341
1358
  });
1342
1359
  }
1343
1360
  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();
1361
+ 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
1362
  }
1346
1363
  }, {
1347
1364
  name: "space",
@@ -1395,17 +1412,17 @@ const Wt = {
1395
1412
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1396
1413
  onChange: (e) => {
1397
1414
  e.delete("srcset"), e.delete("noWebp");
1398
- function n(r, l = 6e4) {
1415
+ function n(r, c = 6e4) {
1399
1416
  return new Promise((s, d) => {
1400
1417
  const m = document.createElement("img");
1401
1418
  let u = !1;
1402
1419
  m.onload = () => {
1403
1420
  u = !0, s(m);
1404
- }, m.addEventListener("error", (h) => {
1405
- console.warn("Image load failed", h.error), d(h.error);
1421
+ }, m.addEventListener("error", (f) => {
1422
+ console.warn("Image load failed", f.error), d(f.error);
1406
1423
  }), m.src = r, setTimeout(() => {
1407
1424
  u || d(new Error("Image load timed out"));
1408
- }, l);
1425
+ }, c);
1409
1426
  });
1410
1427
  }
1411
1428
  function i(r) {
@@ -1416,8 +1433,8 @@ const Wt = {
1416
1433
  r.type.includes("svg") && e.set("noWebp", !0);
1417
1434
  }), o && (!a || a === 0.7041))
1418
1435
  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));
1436
+ const c = e.get("aspectRatio");
1437
+ 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
1438
  });
1422
1439
  }
1423
1440
  }, {
@@ -1541,7 +1558,7 @@ const Wt = {
1541
1558
  };
1542
1559
  function Lt(e) {
1543
1560
  var t, n, i;
1544
- return /* @__PURE__ */ c(
1561
+ return /* @__PURE__ */ l(
1545
1562
  "div",
1546
1563
  {
1547
1564
  style: {
@@ -1550,8 +1567,8 @@ function Lt(e) {
1550
1567
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1551
1568
  "builder-slot": e.name
1552
1569
  },
1553
- children: /* @__PURE__ */ c(
1554
- ce,
1570
+ children: /* @__PURE__ */ l(
1571
+ le,
1555
1572
  {
1556
1573
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1557
1574
  path: `symbol.data.${e.name}`,
@@ -1625,7 +1642,7 @@ const Ot = {
1625
1642
  };
1626
1643
  function jt(e) {
1627
1644
  var t;
1628
- return /* @__PURE__ */ c(
1645
+ return /* @__PURE__ */ l(
1629
1646
  "div",
1630
1647
  {
1631
1648
  className: "builder-text",
@@ -1660,10 +1677,10 @@ const Ht = {
1660
1677
  }]
1661
1678
  };
1662
1679
  function Mt(e) {
1663
- const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []);
1680
+ const t = oe(null), [n, i] = A(() => []), [o, a] = A(() => []);
1664
1681
  return R(() => {
1665
- var l;
1666
- if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
1682
+ var c;
1683
+ if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
1667
1684
  return;
1668
1685
  const r = t.current.getElementsByTagName("script");
1669
1686
  for (let s = 0; s < r.length; s++) {
@@ -1688,7 +1705,7 @@ function Mt(e) {
1688
1705
  }
1689
1706
  }
1690
1707
  }
1691
- }, []), /* @__PURE__ */ c(
1708
+ }, []), /* @__PURE__ */ l(
1692
1709
  "div",
1693
1710
  {
1694
1711
  ref: t,
@@ -1714,7 +1731,7 @@ const Ut = {
1714
1731
  }]
1715
1732
  }, _t = ["text/javascript", "application/javascript", "application/ecmascript"], Kt = (e) => _t.includes(e.type);
1716
1733
  function zt(e) {
1717
- const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []), [r, l] = N(() => !1);
1734
+ const t = oe(null), [n, i] = A(() => []), [o, a] = A(() => []), [r, c] = A(() => !1);
1718
1735
  function s() {
1719
1736
  if (!t.current || !t.current.getElementsByTagName)
1720
1737
  return;
@@ -1723,19 +1740,19 @@ function zt(e) {
1723
1740
  const u = d[m];
1724
1741
  if (u.src && !n.includes(u.src)) {
1725
1742
  n.push(u.src);
1726
- const h = document.createElement("script");
1727
- h.async = !0, h.src = u.src, document.head.appendChild(h);
1743
+ const f = document.createElement("script");
1744
+ f.async = !0, f.src = u.src, document.head.appendChild(f);
1728
1745
  } else if (Kt(u) && !o.includes(u.innerText))
1729
1746
  try {
1730
1747
  o.push(u.innerText), new Function(u.innerText)();
1731
- } catch (h) {
1732
- console.warn("`Embed`: Error running script:", h);
1748
+ } catch (f) {
1749
+ console.warn("`Embed`: Error running script:", f);
1733
1750
  }
1734
1751
  }
1735
1752
  }
1736
1753
  return R(() => {
1737
- t.current && !r && (l(!0), s());
1738
- }, [t.current, r]), /* @__PURE__ */ c(
1754
+ t.current && !r && (c(!0), s());
1755
+ }, [t.current, r]), /* @__PURE__ */ l(
1739
1756
  "div",
1740
1757
  {
1741
1758
  className: "builder-embed",
@@ -1760,7 +1777,7 @@ const qt = {
1760
1777
  static: !0
1761
1778
  };
1762
1779
  function Yt(e) {
1763
- return /* @__PURE__ */ c(
1780
+ return /* @__PURE__ */ l(
1764
1781
  "img",
1765
1782
  {
1766
1783
  style: {
@@ -1860,7 +1877,7 @@ const Jt = {
1860
1877
  }
1861
1878
  };
1862
1879
  function Qt(e) {
1863
- var i, o, a, r, l, s, d;
1880
+ var i, o, a, r, c, s, d;
1864
1881
  function t() {
1865
1882
  return {
1866
1883
  ...e.autoPlay === !0 ? {
@@ -1892,7 +1909,7 @@ function Qt(e) {
1892
1909
  position: "relative"
1893
1910
  },
1894
1911
  children: [
1895
- /* @__PURE__ */ c(
1912
+ /* @__PURE__ */ l(
1896
1913
  "video",
1897
1914
  {
1898
1915
  className: "builder-video",
@@ -1914,10 +1931,10 @@ function Qt(e) {
1914
1931
  },
1915
1932
  src: e.video || "no-src",
1916
1933
  poster: e.posterImage,
1917
- children: e.lazyLoad ? null : /* @__PURE__ */ c("source", { type: "video/mp4", src: e.video })
1934
+ children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
1918
1935
  }
1919
1936
  ),
1920
- e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ c(
1937
+ e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
1921
1938
  "div",
1922
1939
  {
1923
1940
  style: {
@@ -1928,7 +1945,7 @@ function Qt(e) {
1928
1945
  }
1929
1946
  }
1930
1947
  ) : null,
1931
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ c(
1948
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(
1932
1949
  "div",
1933
1950
  {
1934
1951
  style: {
@@ -1939,7 +1956,7 @@ function Qt(e) {
1939
1956
  children: e.children
1940
1957
  }
1941
1958
  ) : null,
1942
- (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ c(
1959
+ (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(
1943
1960
  "div",
1944
1961
  {
1945
1962
  style: {
@@ -2106,11 +2123,12 @@ const Gt = () => [{
2106
2123
  "${t}", "${e}", ${We}
2107
2124
  )`;
2108
2125
  function ne(e) {
2109
- return /* @__PURE__ */ c(
2126
+ return /* @__PURE__ */ l(
2110
2127
  "script",
2111
2128
  {
2112
2129
  dangerouslySetInnerHTML: { __html: e.scriptStr },
2113
- "data-id": e.id
2130
+ "data-id": e.id,
2131
+ nonce: e.nonce || ""
2114
2132
  }
2115
2133
  );
2116
2134
  }
@@ -2126,12 +2144,13 @@ const rn = _e({
2126
2144
  componentInfos: {},
2127
2145
  inheritedStyles: {},
2128
2146
  BlocksWrapper: "div",
2129
- BlocksWrapperProps: {}
2147
+ BlocksWrapperProps: {},
2148
+ nonce: ""
2130
2149
  });
2131
- function pe(e) {
2150
+ function ve(e) {
2132
2151
  return Math.round(e * 1e3) / 1e3;
2133
2152
  }
2134
- const ln = (e, t, n = !0) => {
2153
+ const cn = (e, t, n = !0) => {
2135
2154
  if (!(e instanceof HTMLElement))
2136
2155
  return null;
2137
2156
  let i = n ? e : e.parentElement;
@@ -2142,28 +2161,28 @@ const ln = (e, t, n = !0) => {
2142
2161
  return i;
2143
2162
  } while (i = i.parentElement);
2144
2163
  return null;
2145
- }, cn = (e) => ln(e, (t) => {
2164
+ }, ln = (e) => cn(e, (t) => {
2146
2165
  const n = t.getAttribute("builder-id") || t.id;
2147
2166
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2148
- }), ve = ({
2167
+ }), xe = ({
2149
2168
  event: e,
2150
2169
  target: t
2151
2170
  }) => {
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);
2171
+ 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
2172
  return {
2154
2173
  x: a,
2155
2174
  y: r
2156
2175
  };
2157
2176
  }, 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);
2177
+ const t = e.target, n = t && ln(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2159
2178
  return {
2160
2179
  targetBuilderElement: i || void 0,
2161
2180
  metadata: {
2162
- targetOffset: t ? ve({
2181
+ targetOffset: t ? xe({
2163
2182
  event: e,
2164
2183
  target: t
2165
2184
  }) : void 0,
2166
- builderTargetOffset: n ? ve({
2185
+ builderTargetOffset: n ? xe({
2167
2186
  event: e,
2168
2187
  target: n
2169
2188
  }) : void 0,
@@ -2191,19 +2210,19 @@ function un(e) {
2191
2210
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
2192
2211
  }
2193
2212
  function mn(e, t) {
2194
- 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)
2213
+ const n = hn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
2214
+ for (const c of r)
2196
2215
  for (const s of n)
2197
- s in l || (l[s] = i[s]);
2216
+ s in c || (c[s] = i[s]);
2198
2217
  }
2199
- function fn(e) {
2218
+ function hn(e) {
2200
2219
  const t = [];
2201
2220
  for (const n of e.steps)
2202
2221
  for (const i in n.styles)
2203
2222
  t.indexOf(i) === -1 && t.push(i);
2204
2223
  return t;
2205
2224
  }
2206
- function hn(e) {
2225
+ function fn(e) {
2207
2226
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
2208
2227
  if (!t.length) {
2209
2228
  un(e.elementId || e.id || "");
@@ -2229,16 +2248,16 @@ font-display: fallback;
2229
2248
  font-weight: 400;
2230
2249
  }
2231
2250
  `.trim()), e.files)
2232
- for (const l in e.files) {
2233
- if (!(String(Number(l)) === l))
2251
+ for (const c in e.files) {
2252
+ if (!(String(Number(c)) === c))
2234
2253
  continue;
2235
- const d = e.files[l];
2254
+ const d = e.files[c];
2236
2255
  d && d !== i && (o += `
2237
2256
  @font-face {
2238
2257
  font-family: "${t}";
2239
2258
  src: url('${d}') format('woff2');
2240
2259
  font-display: fallback;
2241
- font-weight: ${l};
2260
+ font-weight: ${c};
2242
2261
  }
2243
2262
  `.trim());
2244
2263
  }
@@ -2251,7 +2270,7 @@ font-weight: ${l};
2251
2270
  }, yn = ({
2252
2271
  cssCode: e,
2253
2272
  contentId: t
2254
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", pn = `
2273
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", vn = `
2255
2274
  .builder-button {
2256
2275
  all: unset;
2257
2276
  }
@@ -2268,36 +2287,36 @@ font-weight: ${l};
2268
2287
  text-align: inherit;
2269
2288
  font-family: inherit;
2270
2289
  }
2271
- `, vn = (e) => e ? "" : pn, Sn = (e) => `variant-${e}`;
2272
- function xn(e) {
2273
- var B, O, D, X, Z, se, de;
2290
+ `, xn = (e) => e ? "" : vn, Sn = (e) => `variant-${e}`;
2291
+ function pn(e) {
2292
+ var W, O, D, X, Z, se, de;
2274
2293
  const t = oe(null);
2275
2294
  function n(g) {
2276
- var p, v;
2277
- const f = {
2295
+ var x, S;
2296
+ const h = {
2278
2297
  ...e.builderContextSignal.rootState,
2279
2298
  ...g
2280
2299
  };
2281
- e.builderContextSignal.rootSetState ? (v = (p = e.builderContextSignal).rootSetState) == null || v.call(p, f) : e.builderContextSignal.rootState = f;
2300
+ e.builderContextSignal.rootSetState ? (S = (x = e.builderContextSignal).rootSetState) == null || S.call(x, h) : e.builderContextSignal.rootState = h;
2282
2301
  }
2283
2302
  function i(g) {
2284
- var p, v, C, P, U;
2285
- const f = {
2303
+ var x, S, k, B, U;
2304
+ const h = {
2286
2305
  ...e.builderContextSignal.content,
2287
2306
  ...g,
2288
2307
  data: {
2289
- ...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
2308
+ ...(x = e.builderContextSignal.content) == null ? void 0 : x.data,
2290
2309
  ...g == null ? void 0 : g.data
2291
2310
  },
2292
2311
  meta: {
2293
- ...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
2312
+ ...(S = e.builderContextSignal.content) == null ? void 0 : S.meta,
2294
2313
  ...g == null ? void 0 : g.meta,
2295
- 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)
2314
+ breakpoints: ((k = g == null ? void 0 : g.meta) == null ? void 0 : k.breakpoints) || ((U = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : U.breakpoints)
2296
2315
  }
2297
2316
  };
2298
2317
  dn({
2299
- value: f,
2300
- key: f.id
2318
+ value: h,
2319
+ key: h.id
2301
2320
  }).then(() => {
2302
2321
  T.refresh();
2303
2322
  });
@@ -2308,35 +2327,35 @@ function xn(e) {
2308
2327
  "aria-hidden": !0
2309
2328
  };
2310
2329
  }
2311
- const [a, r] = N(
2330
+ const [a, r] = A(
2312
2331
  () => e.contentWrapper || "div"
2313
2332
  );
2314
- function l(g) {
2333
+ function c(g) {
2315
2334
  return Oe({
2316
2335
  model: e.model,
2317
2336
  trustedHosts: e.trustedHosts,
2318
2337
  callbacks: {
2319
- configureSdk: (f) => {
2320
- var C;
2321
- const { breakpoints: p, contentId: v } = f;
2322
- !v || v !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || p && i({
2338
+ configureSdk: (h) => {
2339
+ var k;
2340
+ const { breakpoints: x, contentId: S } = h;
2341
+ !S || S !== ((k = e.builderContextSignal.content) == null ? void 0 : k.id) || x && i({
2323
2342
  meta: {
2324
- breakpoints: p
2343
+ breakpoints: x
2325
2344
  }
2326
2345
  });
2327
2346
  },
2328
- animation: (f) => {
2329
- hn(f);
2347
+ animation: (h) => {
2348
+ fn(h);
2330
2349
  },
2331
- contentUpdate: (f) => {
2332
- i(f);
2350
+ contentUpdate: (h) => {
2351
+ i(h);
2333
2352
  }
2334
2353
  }
2335
2354
  })(g);
2336
2355
  }
2337
2356
  function s() {
2338
- var f, p;
2339
- const g = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.jsCode;
2357
+ var h, x;
2358
+ const g = (x = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : x.jsCode;
2340
2359
  g && H({
2341
2360
  code: g,
2342
2361
  context: e.context || {},
@@ -2349,31 +2368,31 @@ function xn(e) {
2349
2368
  enableCache: !1
2350
2369
  });
2351
2370
  }
2352
- const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [x, I] = N(() => !1);
2353
- function y(g) {
2354
- var f, p;
2371
+ const [d, m] = A(() => ({})), [u, f] = A(() => ({})), [w, I] = A(() => !1);
2372
+ function b(g) {
2373
+ var h, x;
2355
2374
  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;
2375
+ const S = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, k = (x = e.builderContextSignal.content) == null ? void 0 : x.id;
2357
2376
  ue({
2358
2377
  type: "click",
2359
2378
  canTrack: q(e.canTrack),
2360
- contentId: C,
2379
+ contentId: k,
2361
2380
  apiKey: e.apiKey,
2362
- variationId: v !== C ? v : void 0,
2381
+ variationId: S !== k ? S : void 0,
2363
2382
  ...sn(g),
2364
- unique: !x
2383
+ unique: !w
2365
2384
  });
2366
2385
  }
2367
- x || I(!0);
2386
+ w || I(!0);
2368
2387
  }
2369
- 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 : {};
2372
- Object.entries(g).forEach(([C, P]) => {
2373
- if (!P || u[C] || d[C] && !V())
2388
+ function P() {
2389
+ var h, x, S;
2390
+ const g = (S = (x = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : x.httpRequests) != null ? S : {};
2391
+ Object.entries(g).forEach(([k, B]) => {
2392
+ if (!B || u[k] || d[k] && !V())
2374
2393
  return;
2375
- u[C] = !0;
2376
- const U = P.replace(
2394
+ u[k] = !0;
2395
+ const U = B.replace(
2377
2396
  /{{([^}]+)}}/g,
2378
2397
  ($, Ne) => String(
2379
2398
  H({
@@ -2388,16 +2407,16 @@ function xn(e) {
2388
2407
  );
2389
2408
  De(U).then(($) => $.json()).then(($) => {
2390
2409
  n({
2391
- [C]: $
2392
- }), d[C] = !0;
2410
+ [k]: $
2411
+ }), d[k] = !0;
2393
2412
  }).catch(($) => {
2394
- console.error("error fetching dynamic data", P, $);
2413
+ console.error("error fetching dynamic data", B, $);
2395
2414
  }).finally(() => {
2396
- u[C] = !1;
2415
+ u[k] = !1;
2397
2416
  });
2398
2417
  });
2399
2418
  }
2400
- function S() {
2419
+ function y() {
2401
2420
  V() && window.dispatchEvent(
2402
2421
  new CustomEvent(
2403
2422
  "builder:component:stateChange",
@@ -2412,8 +2431,8 @@ function xn(e) {
2412
2431
  )
2413
2432
  );
2414
2433
  }
2415
- function b(g) {
2416
- window.addEventListener("message", l), je(), He({
2434
+ function v(g) {
2435
+ window.addEventListener("message", c), je(), He({
2417
2436
  ...e.locale ? {
2418
2437
  locale: e.locale
2419
2438
  } : {},
@@ -2425,25 +2444,25 @@ function xn(e) {
2425
2444
  } : {}
2426
2445
  }), Object.values(
2427
2446
  e.builderContextSignal.componentInfos
2428
- ).forEach((f) => {
2429
- var v;
2430
- const p = Me(f);
2431
- (v = window.parent) == null || v.postMessage(p, "*");
2447
+ ).forEach((h) => {
2448
+ var S;
2449
+ const x = Me(h);
2450
+ (S = window.parent) == null || S.postMessage(x, "*");
2432
2451
  }), window.addEventListener(
2433
2452
  "builder:component:stateChangeListenerActivated",
2434
- S
2453
+ y
2435
2454
  );
2436
2455
  }
2437
- function k(g) {
2438
- const f = new URL(location.href).searchParams, p = f.get("builder.preview"), v = f.get(
2439
- `builder.overrides.${p}`
2440
- ), C = f.get("apiKey") || f.get("builder.space");
2441
- p === e.model && C === e.apiKey && (!e.content || v === e.content.id) && ke({
2456
+ function p(g) {
2457
+ const h = new URL(location.href).searchParams, x = h.get("builder.preview"), S = h.get(
2458
+ `builder.overrides.${x}`
2459
+ ), k = h.get("apiKey") || h.get("builder.space");
2460
+ x === e.model && k === e.apiKey && (!e.content || S === e.content.id) && ke({
2442
2461
  model: e.model,
2443
2462
  apiKey: e.apiKey,
2444
2463
  apiVersion: e.builderContextSignal.apiVersion
2445
- }).then((P) => {
2446
- P && i(P);
2464
+ }).then((B) => {
2465
+ B && i(B);
2447
2466
  });
2448
2467
  }
2449
2468
  const T = Ke();
@@ -2451,37 +2470,37 @@ function xn(e) {
2451
2470
  var g;
2452
2471
  return (g = t.current) == null || g.addEventListener(
2453
2472
  "initeditingbldr",
2454
- b
2473
+ v
2455
2474
  ), () => {
2456
- var f;
2457
- return (f = t.current) == null ? void 0 : f.removeEventListener(
2475
+ var h;
2476
+ return (h = t.current) == null ? void 0 : h.removeEventListener(
2458
2477
  "initeditingbldr",
2459
- b
2478
+ v
2460
2479
  );
2461
2480
  };
2462
2481
  }, []), R(() => {
2463
2482
  var g;
2464
2483
  return (g = t.current) == null || g.addEventListener(
2465
2484
  "initpreviewingbldr",
2466
- k
2485
+ p
2467
2486
  ), () => {
2468
- var f;
2469
- return (f = t.current) == null ? void 0 : f.removeEventListener(
2487
+ var h;
2488
+ return (h = t.current) == null ? void 0 : h.removeEventListener(
2470
2489
  "initpreviewingbldr",
2471
- k
2490
+ p
2472
2491
  );
2473
2492
  };
2474
2493
  }, []), R(() => {
2475
- var g, f;
2494
+ var g, h;
2476
2495
  if (L()) {
2477
2496
  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;
2497
+ const S = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, k = (h = e.builderContextSignal.content) == null ? void 0 : h.id, B = e.apiKey;
2479
2498
  ue({
2480
2499
  type: "impression",
2481
2500
  canTrack: !0,
2482
- contentId: C,
2483
- apiKey: P,
2484
- variationId: v !== C ? v : void 0
2501
+ contentId: k,
2502
+ apiKey: B,
2503
+ variationId: S !== k ? S : void 0
2485
2504
  });
2486
2505
  }
2487
2506
  Le() && V();
@@ -2489,14 +2508,14 @@ function xn(e) {
2489
2508
  }, []), R(() => {
2490
2509
  e.apiKey || J.error(
2491
2510
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2492
- ), s(), A(), S();
2511
+ ), s(), P(), y();
2493
2512
  }, []), R(() => {
2494
2513
  }, [e.content]), R(() => {
2495
2514
  s();
2496
- }, [(O = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : O.jsCode]), R(() => {
2497
- A();
2515
+ }, [(O = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : O.jsCode]), R(() => {
2516
+ P();
2498
2517
  }, [(X = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : X.httpRequests]), R(() => {
2499
- S();
2518
+ y();
2500
2519
  }, [e.builderContextSignal.rootState]), R(() => {
2501
2520
  e.data && n(e.data);
2502
2521
  }, [e.data]), R(() => {
@@ -2504,15 +2523,15 @@ function xn(e) {
2504
2523
  locale: e.locale
2505
2524
  });
2506
2525
  }, [e.locale]), R(() => () => {
2507
- L() && (window.removeEventListener("message", l), window.removeEventListener(
2526
+ L() && (window.removeEventListener("message", c), window.removeEventListener(
2508
2527
  "builder:component:stateChangeListenerActivated",
2509
- S
2528
+ y
2510
2529
  ));
2511
- }, []), /* @__PURE__ */ c(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(
2530
+ }, []), /* @__PURE__ */ l(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
2512
2531
  a,
2513
2532
  {
2514
2533
  ref: t,
2515
- onClick: (g) => y(g),
2534
+ onClick: (g) => b(g),
2516
2535
  "builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
2517
2536
  "builder-model": e.model,
2518
2537
  ...o(),
@@ -2533,18 +2552,25 @@ ${yn({
2533
2552
  ${bn({
2534
2553
  customFonts: e.customFonts
2535
2554
  })}
2536
- ${vn(e.isNestedRender)}
2555
+ ${xn(e.isNestedRender)}
2537
2556
  `.trim();
2538
- return /* @__PURE__ */ c(Q, { id: "builderio-content", styles: t });
2557
+ return /* @__PURE__ */ l(
2558
+ Q,
2559
+ {
2560
+ id: "builderio-content",
2561
+ styles: t,
2562
+ nonce: e.nonce
2563
+ }
2564
+ );
2539
2565
  }
2540
2566
  const Cn = ({
2541
2567
  content: e,
2542
2568
  data: t,
2543
2569
  locale: n
2544
2570
  }) => {
2545
- var a, r, l;
2571
+ var a, r, c;
2546
2572
  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) => {
2573
+ return (c = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || c.forEach((s) => {
2548
2574
  s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
2549
2575
  }), {
2550
2576
  ...i,
@@ -2565,8 +2591,8 @@ const Cn = ({
2565
2591
  },
2566
2592
  meta: e == null ? void 0 : e.meta
2567
2593
  } : void 0;
2568
- function xe(e) {
2569
- var o, a, r, l, s, d, m, u, h;
2594
+ function pe(e) {
2595
+ var o, a, r, c, s, d, m, u, f, w, I;
2570
2596
  const t = an({
2571
2597
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2572
2598
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
@@ -2574,12 +2600,12 @@ function xe(e) {
2574
2600
  contentId: (a = e.content) == null ? void 0 : a.id
2575
2601
  }), n = [
2576
2602
  ...ye(),
2577
- ...e.customComponents || []
2603
+ ...((r = e.customComponents) == null ? void 0 : r.filter(({ models: b }) => !(b != null && b.length) || !e.model ? !0 : b.includes(e.model))) || []
2578
2604
  ].reduce(
2579
- (x, { component: I, ...y }) => ({
2580
- ...x,
2605
+ (b, { component: P, ...y }) => ({
2606
+ ...b,
2581
2607
  [y.name]: {
2582
- component: I,
2608
+ component: P,
2583
2609
  ...me(y)
2584
2610
  }
2585
2611
  }),
@@ -2602,21 +2628,23 @@ function xe(e) {
2602
2628
  apiVersion: e.apiVersion,
2603
2629
  componentInfos: [
2604
2630
  ...ye(),
2605
- ...e.customComponents || []
2631
+ ...((c = e.customComponents) == null ? void 0 : c.filter(({ models: b }) => !(b != null && b.length) || !e.model ? !0 : b.includes(e.model))) || []
2606
2632
  ].reduce(
2607
- (x, { component: I, ...y }) => ({
2608
- ...x,
2633
+ (b, { component: P, ...y }) => ({
2634
+ ...b,
2609
2635
  [y.name]: me(y)
2610
2636
  }),
2611
2637
  {}
2612
2638
  ),
2613
2639
  inheritedStyles: {},
2614
2640
  BlocksWrapper: e.blocksWrapper || "div",
2615
- BlocksWrapperProps: e.blocksWrapperProps || {}
2641
+ BlocksWrapperProps: e.blocksWrapperProps || {},
2642
+ nonce: e.nonce || ""
2616
2643
  };
2617
2644
  return /* @__PURE__ */ E(
2618
- xn,
2645
+ pn,
2619
2646
  {
2647
+ nonce: e.nonce,
2620
2648
  content: e.content,
2621
2649
  data: e.data,
2622
2650
  model: e.model,
@@ -2631,26 +2659,28 @@ function xe(e) {
2631
2659
  contentWrapperProps: e.contentWrapperProps,
2632
2660
  trustedHosts: e.trustedHosts,
2633
2661
  children: [
2634
- e.isSsrAbTest ? /* @__PURE__ */ c(
2662
+ e.isSsrAbTest ? /* @__PURE__ */ l(
2635
2663
  ne,
2636
2664
  {
2637
2665
  id: "builderio-variant-visibility",
2638
- scriptStr: t
2666
+ scriptStr: t,
2667
+ nonce: e.nonce || ""
2639
2668
  }
2640
2669
  ) : null,
2641
- /* @__PURE__ */ c(
2670
+ /* @__PURE__ */ l(
2642
2671
  kn,
2643
2672
  {
2673
+ nonce: e.nonce || "",
2644
2674
  isNestedRender: e.isNestedRender,
2645
- 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,
2647
- customFonts: (m = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
2675
+ contentId: (s = i.content) == null ? void 0 : s.id,
2676
+ cssCode: (m = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
2677
+ customFonts: (f = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : f.customFonts
2648
2678
  }
2649
2679
  ),
2650
- /* @__PURE__ */ c(
2651
- ce,
2680
+ /* @__PURE__ */ l(
2681
+ le,
2652
2682
  {
2653
- blocks: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.blocks,
2683
+ blocks: (I = (w = i.content) == null ? void 0 : w.data) == null ? void 0 : I.blocks,
2654
2684
  context: i,
2655
2685
  registeredComponents: n,
2656
2686
  linkComponent: e.linkComponent
@@ -2666,53 +2696,57 @@ function In(e) {
2666
2696
  canTrack: q(e.canTrack),
2667
2697
  content: e.content
2668
2698
  }), n = function() {
2669
- var l;
2699
+ var c;
2670
2700
  return on(
2671
2701
  K(e.content).map((s) => ({
2672
2702
  id: s.testVariationId,
2673
2703
  testRatio: s.testRatio
2674
2704
  })),
2675
- ((l = e.content) == null ? void 0 : l.id) || ""
2705
+ ((c = e.content) == null ? void 0 : c.id) || ""
2676
2706
  );
2677
2707
  }, i = function() {
2678
- return K(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
2708
+ return K(e.content).map((c) => `.variant-${c.testVariationId} { display: none; } `).join("");
2679
2709
  }, o = function() {
2680
- var l;
2710
+ var c;
2681
2711
  return t ? {
2682
2712
  ...e.content,
2683
- testVariationId: (l = e.content) == null ? void 0 : l.id
2713
+ testVariationId: (c = e.content) == null ? void 0 : c.id
2684
2714
  } : Ue({
2685
2715
  item: e.content,
2686
2716
  canTrack: q(e.canTrack)
2687
2717
  });
2688
2718
  };
2689
- return /* @__PURE__ */ E(w, { children: [
2690
- !e.isNestedRender && M !== "reactNative" ? /* @__PURE__ */ c(
2719
+ return /* @__PURE__ */ E(C, { children: [
2720
+ !e.isNestedRender && M !== "reactNative" ? /* @__PURE__ */ l(
2691
2721
  ne,
2692
2722
  {
2693
2723
  id: "builderio-init-variants-fns",
2694
- scriptStr: nn()
2724
+ scriptStr: nn(),
2725
+ nonce: e.nonce || ""
2695
2726
  }
2696
2727
  ) : null,
2697
- t ? /* @__PURE__ */ E(w, { children: [
2698
- /* @__PURE__ */ c(
2728
+ t ? /* @__PURE__ */ E(C, { children: [
2729
+ /* @__PURE__ */ l(
2699
2730
  Q,
2700
2731
  {
2701
2732
  id: "builderio-variants",
2702
- styles: i()
2733
+ styles: i(),
2734
+ nonce: e.nonce || ""
2703
2735
  }
2704
2736
  ),
2705
- /* @__PURE__ */ c(
2737
+ /* @__PURE__ */ l(
2706
2738
  ne,
2707
2739
  {
2708
2740
  id: "builderio-variants-visibility",
2709
- scriptStr: n()
2741
+ scriptStr: n(),
2742
+ nonce: e.nonce || ""
2710
2743
  }
2711
2744
  ),
2712
- (a = K(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ c(
2713
- xe,
2745
+ (a = K(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
2746
+ pe,
2714
2747
  {
2715
2748
  isNestedRender: e.isNestedRender,
2749
+ nonce: e.nonce,
2716
2750
  content: r,
2717
2751
  showContent: !1,
2718
2752
  model: e.model,
@@ -2735,9 +2769,10 @@ function In(e) {
2735
2769
  r.testVariationId
2736
2770
  ))
2737
2771
  ] }) : null,
2738
- /* @__PURE__ */ c(
2739
- xe,
2772
+ /* @__PURE__ */ l(
2773
+ pe,
2740
2774
  {
2775
+ nonce: e.nonce,
2741
2776
  isNestedRender: e.isNestedRender,
2742
2777
  content: o(),
2743
2778
  showContent: !0,
@@ -2781,26 +2816,27 @@ const Tn = async ({
2781
2816
  });
2782
2817
  };
2783
2818
  async function Rn(e) {
2784
- var a, r, l, s, d;
2819
+ var a, r, c, s, d;
2785
2820
  const t = function() {
2786
2821
  return "div";
2787
2822
  }, n = function() {
2788
2823
  return "div";
2789
2824
  }, i = function() {
2790
- var u, h;
2825
+ var u, f;
2791
2826
  return [
2792
2827
  e.attributes[j()],
2793
2828
  "builder-symbol",
2794
2829
  (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
2795
- (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2830
+ (f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2796
2831
  ].filter(Boolean).join(" ");
2797
2832
  }, o = ((a = e.symbol) == null ? void 0 : a.content) || await Tn({
2798
2833
  symbol: e.symbol,
2799
2834
  builderContextValue: e.builderContext
2800
2835
  });
2801
- return /* @__PURE__ */ c("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ c(
2836
+ return /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
2802
2837
  In,
2803
2838
  {
2839
+ nonce: e.builderContext.nonce,
2804
2840
  isNestedRender: !0,
2805
2841
  apiVersion: e.builderContext.apiVersion,
2806
2842
  apiKey: e.builderContext.apiKey,
@@ -2810,7 +2846,7 @@ async function Rn(e) {
2810
2846
  },
2811
2847
  customComponents: Object.values(e.builderComponents),
2812
2848
  data: {
2813
- ...(l = e.symbol) == null ? void 0 : l.data,
2849
+ ...(c = e.symbol) == null ? void 0 : c.data,
2814
2850
  ...e.builderContext.localState,
2815
2851
  ...(s = o == null ? void 0 : o.data) == null ? void 0 : s.state
2816
2852
  },
@@ -2824,7 +2860,7 @@ async function Rn(e) {
2824
2860
  ) });
2825
2861
  }
2826
2862
  export {
2827
- ce as Blocks,
2863
+ le as Blocks,
2828
2864
  rn as BuilderContext,
2829
2865
  Ye as Button,
2830
2866
  It as Columns,