@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,15 +2,15 @@
2
2
  var Ne = Object.defineProperty;
3
3
  var Ae = (e, t, n) => t in e ? Ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var ee = (e, t, n) => (Ae(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as c, Fragment as I, jsxs as P } from "react/jsx-runtime";
6
- import { TARGET as H, checkIsDefined as K, logger as J, isBrowser as z, fastClone as ie, isEditing as V, init as Ve, getDefaultCanTrack as q, _track as ue, isPreviewing as $e, createEditorListener as Fe, fetch as Le, registerInsertMenu as je, setupBrowserForEditing as De, createRegisterComponentMessage as Oe, fetchOneEntry as xe, serializeComponentInfo as me, handleABTestingSync as He } from "./server-entry-1644208f.js";
7
- import { getFunctionArguments as Me, runInNode as Ue, parseCode as _e, getBuilderGlobals as Ke, set as ze } from "./node-runtime-423addf8.js";
8
- import { useRef as oe, useState as N, useEffect as R, createContext as qe } from "react";
5
+ import { jsx as l, Fragment as C, jsxs as P } from "react/jsx-runtime";
6
+ import { TARGET as H, checkIsDefined as K, logger as J, isBrowser as z, fastClone as ie, isEditing as V, init as Ve, getDefaultCanTrack as q, _track as ue, isPreviewing as $e, createEditorListener as Fe, fetch as Le, registerInsertMenu as je, setupBrowserForEditing as De, createRegisterComponentMessage as Oe, fetchOneEntry as pe, serializeComponentInfo as me, handleABTestingSync as He } from "./server-entry-fbf4e3a9.js";
7
+ import { getFunctionArguments as Me, runInNode as Ue, parseCode as _e, getBuilderGlobals as Ke, set as ze } from "./node-runtime-42e494ca.js";
8
+ import { useRef as oe, useState as A, useEffect as R, createContext as qe } from "react";
9
9
  import { useRouter as Ye } from "next/navigation";
10
10
  import "lru-cache";
11
11
  const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Qe = (e) => typeof e == "string" && Je.has(e.toLowerCase());
12
12
  function ae(e) {
13
- return /* @__PURE__ */ c(I, { children: Qe(e.TagName) ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ c(I, { 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 }) }) });
13
+ 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 }) }) });
14
14
  }
15
15
  const D = () => {
16
16
  switch (H) {
@@ -40,7 +40,7 @@ function Ge(e) {
40
40
  }
41
41
  };
42
42
  }
43
- return /* @__PURE__ */ c(
43
+ return /* @__PURE__ */ l(
44
44
  ae,
45
45
  {
46
46
  attributes: t(),
@@ -64,14 +64,14 @@ const Ze = ({
64
64
  event: i,
65
65
  localState: o,
66
66
  rootSetState: a,
67
- rootState: l
67
+ rootState: c
68
68
  }) => {
69
69
  const r = Me({
70
70
  builder: t,
71
71
  context: n,
72
72
  event: i,
73
73
  state: ke({
74
- rootState: l,
74
+ rootState: c,
75
75
  localState: o,
76
76
  rootSetState: a
77
77
  })
@@ -91,8 +91,8 @@ function ke({
91
91
  return typeof a == "object" && a !== null ? ke({
92
92
  rootState: a,
93
93
  localState: void 0,
94
- rootSetState: n ? (l) => {
95
- i[o] = l, n(i);
94
+ rootSetState: n ? (c) => {
95
+ i[o] = c, n(i);
96
96
  } : void 0
97
97
  }) : a;
98
98
  },
@@ -113,7 +113,7 @@ const tt = () => {
113
113
  return !1;
114
114
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
115
115
  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;
116
- }, nt = (e) => z() || tt() ? Ze(e) : Ue(e), W = class W {
116
+ }, nt = (e) => z() || tt() ? Ze(e) : Ue(e), N = class N {
117
117
  static getCacheKey(t) {
118
118
  return JSON.stringify({
119
119
  ...t,
@@ -123,16 +123,16 @@ const tt = () => {
123
123
  });
124
124
  }
125
125
  static getCachedValue(t) {
126
- return W.cache.get(t);
126
+ return N.cache.get(t);
127
127
  }
128
128
  static setCachedValue(t, n) {
129
- W.cache.size > 20 && W.cache.delete(W.cache.keys().next().value), W.cache.set(t, {
129
+ N.cache.size > 20 && N.cache.delete(N.cache.keys().next().value), N.cache.set(t, {
130
130
  value: n
131
131
  });
132
132
  }
133
133
  };
134
- ee(W, "cacheLimit", 20), ee(W, "cache", /* @__PURE__ */ new Map());
135
- let F = W;
134
+ ee(N, "cacheLimit", 20), ee(N, "cache", /* @__PURE__ */ new Map());
135
+ let F = N;
136
136
  function O({
137
137
  code: e,
138
138
  context: t,
@@ -140,14 +140,14 @@ function O({
140
140
  rootState: i,
141
141
  rootSetState: o,
142
142
  event: a,
143
- isExpression: l = !0,
143
+ isExpression: c = !0,
144
144
  enableCache: r
145
145
  }) {
146
146
  if (e === "")
147
147
  return;
148
148
  const s = {
149
149
  code: _e(e, {
150
- isExpression: l
150
+ isExpression: c
151
151
  }),
152
152
  builder: Ke(),
153
153
  context: t,
@@ -184,7 +184,7 @@ const it = ({
184
184
  }) => {
185
185
  if (!e.bindings)
186
186
  return e;
187
- const a = ie(e), l = {
187
+ const a = ie(e), c = {
188
188
  ...a,
189
189
  properties: {
190
190
  ...a.properties
@@ -202,9 +202,9 @@ const it = ({
202
202
  context: t,
203
203
  enableCache: !0
204
204
  });
205
- ze(l, r, d);
205
+ ze(c, r, d);
206
206
  }
207
- return l;
207
+ return c;
208
208
  };
209
209
  function Y({
210
210
  block: e,
@@ -214,14 +214,14 @@ function Y({
214
214
  rootState: o,
215
215
  rootSetState: a
216
216
  }) {
217
- const l = e;
217
+ const c = e;
218
218
  return n ? it({
219
- block: l,
219
+ block: c,
220
220
  localState: i,
221
221
  rootState: o,
222
222
  rootSetState: a,
223
223
  context: t
224
- }) : l;
224
+ }) : c;
225
225
  }
226
226
  const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", Ce = (e) => Object.entries(e).map(([n, i]) => {
227
227
  if (typeof i == "string")
@@ -266,7 +266,7 @@ function Ie(e) {
266
266
  return e;
267
267
  }
268
268
  }
269
- const lt = ({
269
+ const ct = ({
270
270
  block: e,
271
271
  context: t,
272
272
  registeredComponents: n
@@ -288,7 +288,7 @@ const lt = ({
288
288
  console.warn(`
289
289
  Could not find a registered component named "${i}".
290
290
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
291
- }, ct = ({
291
+ }, lt = ({
292
292
  block: e,
293
293
  context: t
294
294
  }) => {
@@ -308,7 +308,7 @@ const lt = ({
308
308
  });
309
309
  if (!Array.isArray(o))
310
310
  return;
311
- const a = n.collection.split(".").pop(), l = n.itemName || (a ? a + "Item" : "item");
311
+ const a = n.collection.split(".").pop(), c = n.itemName || (a ? a + "Item" : "item");
312
312
  return o.map((s, d) => ({
313
313
  context: {
314
314
  ...t,
@@ -316,8 +316,8 @@ const lt = ({
316
316
  ...t.localState,
317
317
  $index: d,
318
318
  $item: s,
319
- [l]: s,
320
- [`$${l}Index`]: d
319
+ [c]: s,
320
+ [`$${c}Index`]: d
321
321
  }
322
322
  },
323
323
  block: i
@@ -386,11 +386,12 @@ const lt = ({
386
386
  }, n;
387
387
  };
388
388
  function Q(e) {
389
- return /* @__PURE__ */ c(
389
+ return /* @__PURE__ */ l(
390
390
  "style",
391
391
  {
392
392
  dangerouslySetInnerHTML: { __html: e.styles },
393
- "data-id": e.id
393
+ "data-id": e.id,
394
+ nonce: e.nonce
394
395
  }
395
396
  );
396
397
  }
@@ -406,7 +407,7 @@ function ft(e) {
406
407
  });
407
408
  return K(o.hide) ? !o.hide : K(o.show) ? o.show : !0;
408
409
  }, n = function() {
409
- var S, b, k;
410
+ var y, v, p;
410
411
  const o = Y({
411
412
  block: e.block,
412
413
  localState: e.context.localState,
@@ -414,15 +415,15 @@ function ft(e) {
414
415
  rootSetState: e.context.rootSetState,
415
416
  context: e.context.context,
416
417
  shouldEvaluateBindings: !0
417
- }), a = o.responsiveStyles, l = e.context.content, r = Te(
418
- ((S = l == null ? void 0 : l.meta) == null ? void 0 : S.breakpoints) || {}
418
+ }), a = o.responsiveStyles, c = e.context.content, r = Te(
419
+ ((y = c == null ? void 0 : c.meta) == null ? void 0 : y.breakpoints) || {}
419
420
  ), s = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, m = a == null ? void 0 : a.small, u = o.id;
420
421
  if (!u)
421
422
  return "";
422
423
  const h = s ? U({
423
424
  className: u,
424
425
  styles: s
425
- }) : "", x = d ? U({
426
+ }) : "", I = d ? U({
426
427
  className: u,
427
428
  styles: d,
428
429
  mediaQuery: fe(
@@ -436,29 +437,36 @@ function ft(e) {
436
437
  "small",
437
438
  r
438
439
  )
439
- }) : "", y = o.animations && o.animations.find((T) => T.trigger === "hover");
440
- let A = "";
441
- if (y) {
442
- const T = ((k = (b = y.steps) == null ? void 0 : b[1]) == null ? void 0 : k.styles) || {};
443
- A = U({
440
+ }) : "", b = o.animations && o.animations.find((T) => T.trigger === "hover");
441
+ let E = "";
442
+ if (b) {
443
+ const T = ((p = (v = b.steps) == null ? void 0 : v[1]) == null ? void 0 : p.styles) || {};
444
+ E = U({
444
445
  className: `${u}:hover`,
445
446
  styles: {
446
447
  ...T,
447
- transition: `all ${y.duration}s ${re(
448
- y.easing
448
+ transition: `all ${b.duration}s ${re(
449
+ b.easing
449
450
  )}`,
450
- transitionDelay: y.delay ? `${y.delay}s` : "0s"
451
+ transitionDelay: b.delay ? `${b.delay}s` : "0s"
451
452
  }
452
453
  }) || "";
453
454
  }
454
455
  return [
455
456
  h,
456
- x,
457
+ I,
457
458
  w,
458
- A
459
+ E
459
460
  ].join(" ");
460
461
  };
461
- return /* @__PURE__ */ c(I, { children: n() && t() ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(Q, { id: "builderio-block", styles: n() }) }) : null });
462
+ return /* @__PURE__ */ l(C, { children: n() && t() ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
463
+ Q,
464
+ {
465
+ id: "builderio-block",
466
+ styles: n(),
467
+ nonce: e.context.nonce
468
+ }
469
+ ) }) : null });
462
470
  }
463
471
  function ht(e) {
464
472
  return e.charAt(0).toUpperCase() + e.slice(1);
@@ -480,17 +488,17 @@ function Re(e) {
480
488
  if (!n.hasOwnProperty(o))
481
489
  continue;
482
490
  const a = n[o];
483
- let l = gt(o);
491
+ let c = gt(o);
484
492
  if (e.stripPrefix)
485
493
  switch (H) {
486
494
  case "vue":
487
- l = l.replace("v-on:", "");
495
+ c = c.replace("v-on:", "");
488
496
  break;
489
497
  case "svelte":
490
- l = l.replace("on:", "");
498
+ c = c.replace("on:", "");
491
499
  break;
492
500
  }
493
- t[l] = bt(a, e);
501
+ t[c] = bt(a, e);
494
502
  }
495
503
  return t;
496
504
  }
@@ -499,16 +507,16 @@ function yt({
499
507
  }) {
500
508
  return e;
501
509
  }
502
- const pt = (e) => ({
510
+ const vt = (e) => ({
503
511
  href: e.href
504
512
  });
505
- function le({
513
+ function ce({
506
514
  block: e,
507
515
  context: t
508
516
  }) {
509
517
  var i;
510
518
  const n = {
511
- ...pt(e),
519
+ ...vt(e),
512
520
  ...e.properties,
513
521
  "builder-id": e.id,
514
522
  style: rt({
@@ -523,12 +531,12 @@ function le({
523
531
  block: e
524
532
  });
525
533
  }
526
- function vt(e) {
527
- return /* @__PURE__ */ c(
534
+ function xt(e) {
535
+ return /* @__PURE__ */ l(
528
536
  ae,
529
537
  {
530
538
  TagName: e.Wrapper,
531
- attributes: le({
539
+ attributes: ce({
532
540
  block: e.block,
533
541
  context: e.context
534
542
  }),
@@ -547,7 +555,7 @@ function vt(e) {
547
555
  function St(e) {
548
556
  function t() {
549
557
  return e.includeBlockProps ? {
550
- ...le({
558
+ ...ce({
551
559
  block: e.block,
552
560
  context: e.context
553
561
  }),
@@ -560,16 +568,16 @@ function St(e) {
560
568
  })
561
569
  } : {};
562
570
  }
563
- return /* @__PURE__ */ c(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
571
+ return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
564
572
  }
565
- const xt = ({
573
+ const pt = ({
566
574
  componentOptions: e,
567
575
  builderBlock: t,
568
576
  context: n,
569
577
  componentRef: i,
570
578
  includeBlockProps: o,
571
579
  isInteractive: a,
572
- contextValue: l
580
+ contextValue: c
573
581
  }) => {
574
582
  const r = {
575
583
  ...e,
@@ -578,9 +586,9 @@ const xt = ({
578
586
  * component itself directly. Otherwise, they are provided to the wrapper element.
579
587
  */
580
588
  ...o ? {
581
- attributes: le({
589
+ attributes: ce({
582
590
  block: t,
583
- context: l
591
+ context: c
584
592
  })
585
593
  } : {}
586
594
  };
@@ -595,10 +603,10 @@ const xt = ({
595
603
  function he(e) {
596
604
  var n;
597
605
  const t = e.isInteractive ? St : e.componentRef;
598
- return /* @__PURE__ */ c(I, { children: e.componentRef ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(
606
+ return /* @__PURE__ */ l(C, { children: e.componentRef ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
599
607
  t,
600
608
  {
601
- ...xt({
609
+ ...pt({
602
610
  componentOptions: e.componentOptions,
603
611
  builderBlock: e.builderBlock,
604
612
  context: e.context,
@@ -608,7 +616,7 @@ function he(e) {
608
616
  isInteractive: e.isInteractive,
609
617
  contextValue: e.context
610
618
  }),
611
- children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ c(
619
+ children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ l(
612
620
  G,
613
621
  {
614
622
  block: i,
@@ -623,7 +631,7 @@ function he(e) {
623
631
  }
624
632
  function kt(e) {
625
633
  const t = e.repeatContext;
626
- return /* @__PURE__ */ c(
634
+ return /* @__PURE__ */ l(
627
635
  G,
628
636
  {
629
637
  block: e.block,
@@ -636,13 +644,13 @@ function kt(e) {
636
644
  function G(e) {
637
645
  var s, d, m;
638
646
  const t = function() {
639
- return lt({
647
+ return ct({
640
648
  block: e.block,
641
649
  context: e.context,
642
650
  registeredComponents: e.registeredComponents
643
651
  });
644
652
  }, n = function() {
645
- return ct({
653
+ return lt({
646
654
  block: e.block,
647
655
  context: e.context
648
656
  });
@@ -657,22 +665,22 @@ function G(e) {
657
665
  shouldEvaluateBindings: !0
658
666
  });
659
667
  }, o = function() {
660
- var x;
661
- return e.block.tagName === "a" || ((x = i().properties) == null ? void 0 : x.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
668
+ var I;
669
+ return e.block.tagName === "a" || ((I = i().properties) == null ? void 0 : I.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
662
670
  }, a = function() {
663
- var w, y;
671
+ var w, b;
664
672
  if ((w = e.block.repeat) != null && w.collection)
665
- return !!((y = n()) != null && y.length);
673
+ return !!((b = n()) != null && b.length);
666
674
  const h = "hide" in i() ? i().hide : !1;
667
675
  return ("show" in i() ? i().show : !0) && !h;
668
- }, l = function() {
669
- var x, w;
670
- return !((x = t()) != null && x.component) && !n() ? (w = i().children) != null ? w : [] : [];
676
+ }, c = function() {
677
+ var I, w;
678
+ return !((I = t()) != null && I.component) && !n() ? (w = i().children) != null ? w : [] : [];
671
679
  }, r = function() {
672
- var h, x, w, y;
680
+ var h, I, w, b;
673
681
  return {
674
682
  blockChildren: (h = i().children) != null ? h : [],
675
- componentRef: (x = t()) == null ? void 0 : x.component,
683
+ componentRef: (I = t()) == null ? void 0 : I.component,
676
684
  componentOptions: {
677
685
  ...Xe(i()),
678
686
  ...ut(t(), i()),
@@ -688,12 +696,12 @@ function G(e) {
688
696
  registeredComponents: e.registeredComponents,
689
697
  builderBlock: i(),
690
698
  includeBlockProps: ((w = t()) == null ? void 0 : w.noWrap) === !0,
691
- isInteractive: !((y = t()) != null && y.isRSC)
699
+ isInteractive: !((b = t()) != null && b.isRSC)
692
700
  };
693
701
  };
694
- return /* @__PURE__ */ c(I, { children: a() ? /* @__PURE__ */ P(I, { children: [
695
- /* @__PURE__ */ c(ft, { block: e.block, context: e.context }),
696
- (s = t()) != null && s.noWrap ? /* @__PURE__ */ c(I, { children: /* @__PURE__ */ c(
702
+ return /* @__PURE__ */ l(C, { children: a() ? /* @__PURE__ */ P(C, { children: [
703
+ /* @__PURE__ */ l(ft, { block: e.block, context: e.context }),
704
+ (s = t()) != null && s.noWrap ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
697
705
  he,
698
706
  {
699
707
  componentRef: r().componentRef,
@@ -706,7 +714,7 @@ function G(e) {
706
714
  includeBlockProps: r().includeBlockProps,
707
715
  isInteractive: r().isInteractive
708
716
  }
709
- ) }) : /* @__PURE__ */ c(I, { children: n() ? /* @__PURE__ */ c(I, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ c(
717
+ ) }) : /* @__PURE__ */ l(C, { children: n() ? /* @__PURE__ */ l(C, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ l(
710
718
  kt,
711
719
  {
712
720
  repeatContext: u.context,
@@ -716,13 +724,13 @@ function G(e) {
716
724
  },
717
725
  h
718
726
  )) }) : /* @__PURE__ */ P(
719
- vt,
727
+ xt,
720
728
  {
721
729
  Wrapper: o(),
722
730
  block: i(),
723
731
  context: e.context,
724
732
  children: [
725
- /* @__PURE__ */ c(
733
+ /* @__PURE__ */ l(
726
734
  he,
727
735
  {
728
736
  componentRef: r().componentRef,
@@ -736,7 +744,7 @@ function G(e) {
736
744
  isInteractive: r().isInteractive
737
745
  }
738
746
  ),
739
- (d = l()) == null ? void 0 : d.map((u) => /* @__PURE__ */ c(
747
+ (d = c()) == null ? void 0 : d.map((u) => /* @__PURE__ */ l(
740
748
  G,
741
749
  {
742
750
  block: u,
@@ -782,8 +790,8 @@ function Ct(e) {
782
790
  "*"
783
791
  ));
784
792
  }
785
- return /* @__PURE__ */ P(I, { children: [
786
- /* @__PURE__ */ c(
793
+ return /* @__PURE__ */ P(C, { children: [
794
+ /* @__PURE__ */ l(
787
795
  e.BlocksWrapper,
788
796
  {
789
797
  className: t() + " props-blocks-wrapper-7cd1560e",
@@ -797,16 +805,16 @@ function Ct(e) {
797
805
  children: e.children
798
806
  }
799
807
  ),
800
- /* @__PURE__ */ c("style", { children: `.props-blocks-wrapper-7cd1560e {
808
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-7cd1560e {
801
809
  display: flex;
802
810
  flex-direction: column;
803
811
  align-items: stretch;
804
812
  }` })
805
813
  ] });
806
814
  }
807
- function ce(e) {
815
+ function le(e) {
808
816
  var t, n, i;
809
- return /* @__PURE__ */ c(
817
+ return /* @__PURE__ */ l(
810
818
  Ct,
811
819
  {
812
820
  blocks: e.blocks,
@@ -815,7 +823,7 @@ function ce(e) {
815
823
  styleProp: e.styleProp,
816
824
  BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
817
825
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
818
- children: e.blocks ? /* @__PURE__ */ c(I, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ c(
826
+ children: e.blocks ? /* @__PURE__ */ l(C, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
819
827
  G,
820
828
  {
821
829
  block: o,
@@ -830,25 +838,25 @@ function ce(e) {
830
838
  }
831
839
  const It = (e) => `builder-columns ${e}-breakpoints`;
832
840
  function wt(e) {
833
- var y, A;
834
- const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(b) {
835
- return b.link ? e.builderLinkComponent || "a" : "div";
836
- }, a = function(b) {
837
- var k;
838
- return ((k = n[b]) == null ? void 0 : k.width) || 100 / n.length;
839
- }, l = function(b) {
840
- const k = a(b), T = t * (n.length - 1) * (k / 100);
841
- return `calc(${k}% - ${T}px)`;
841
+ var b, E;
842
+ const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(v) {
843
+ return v.link ? e.builderLinkComponent || "a" : "div";
844
+ }, a = function(v) {
845
+ var p;
846
+ return ((p = n[v]) == null ? void 0 : p.width) || 100 / n.length;
847
+ }, c = function(v) {
848
+ const p = a(v), T = t * (n.length - 1) * (p / 100);
849
+ return `calc(${p}% - ${T}px)`;
842
850
  }, r = function({
843
- stackedStyle: b,
844
- desktopStyle: k
851
+ stackedStyle: v,
852
+ desktopStyle: p
845
853
  }) {
846
- return i === "tablet" ? b : k;
854
+ return i === "tablet" ? v : p;
847
855
  }, s = function({
848
- stackedStyle: b,
849
- desktopStyle: k
856
+ stackedStyle: v,
857
+ desktopStyle: p
850
858
  }) {
851
- return i === "never" ? k : b;
859
+ return i === "never" ? p : v;
852
860
  }, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
853
861
  return {
854
862
  "--flex-dir": d,
@@ -857,8 +865,8 @@ function wt(e) {
857
865
  desktopStyle: "row"
858
866
  })
859
867
  };
860
- }, u = function(b) {
861
- const k = b === 0 ? 0 : t, T = l(b), B = `${k}px`, L = "100%", j = 0;
868
+ }, u = function(v) {
869
+ const p = v === 0 ? 0 : t, T = c(v), W = `${p}px`, L = "100%", j = 0;
862
870
  return {
863
871
  ...{
864
872
  display: "flex",
@@ -866,14 +874,14 @@ function wt(e) {
866
874
  alignItems: "stretch"
867
875
  },
868
876
  width: T,
869
- ["marginLeft"]: B,
877
+ ["marginLeft"]: W,
870
878
  "--column-width-mobile": s({
871
879
  stackedStyle: L,
872
880
  desktopStyle: T
873
881
  }),
874
882
  "--column-margin-left-mobile": s({
875
883
  stackedStyle: j,
876
- desktopStyle: B
884
+ desktopStyle: W
877
885
  }),
878
886
  "--column-width-tablet": r({
879
887
  stackedStyle: L,
@@ -881,15 +889,15 @@ function wt(e) {
881
889
  }),
882
890
  "--column-margin-left-tablet": r({
883
891
  stackedStyle: j,
884
- desktopStyle: B
892
+ desktopStyle: W
885
893
  })
886
894
  };
887
- }, h = function(b) {
888
- var T, B;
895
+ }, h = function(v) {
896
+ var T, W;
889
897
  return Te(
890
- ((B = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : B.breakpoints) || {}
891
- )[b].max;
892
- }, x = function() {
898
+ ((W = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : W.breakpoints) || {}
899
+ )[v].max;
900
+ }, I = function() {
893
901
  return `
894
902
  @media (max-width: ${h("medium")}px) {
895
903
  .${e.builderBlock.id}-breakpoints {
@@ -915,33 +923,40 @@ function wt(e) {
915
923
  }
916
924
  },
917
925
  `;
918
- }, w = function(b, k) {
926
+ }, w = function(v, p) {
919
927
  return {
920
- ...b.link ? {
921
- href: b.link
928
+ ...v.link ? {
929
+ href: v.link
922
930
  } : {},
923
931
  [D()]: "builder-column",
924
- style: Ie(u(k))
932
+ style: Ie(u(p))
925
933
  };
926
934
  };
927
- return /* @__PURE__ */ P(I, { children: [
935
+ return /* @__PURE__ */ P(C, { children: [
928
936
  /* @__PURE__ */ P(
929
937
  "div",
930
938
  {
931
- className: It((y = e.builderBlock) == null ? void 0 : y.id) + " div-1de99da7",
939
+ className: It((b = e.builderBlock) == null ? void 0 : b.id) + " div-c89348d2",
932
940
  style: m(),
933
941
  children: [
934
- /* @__PURE__ */ c(Q, { id: "builderio-columns", styles: x() }),
935
- (A = e.columns) == null ? void 0 : A.map((S, b) => /* @__PURE__ */ c(
942
+ /* @__PURE__ */ l(
943
+ Q,
944
+ {
945
+ id: "builderio-columns",
946
+ styles: I(),
947
+ nonce: e.builderContext.nonce
948
+ }
949
+ ),
950
+ (E = e.columns) == null ? void 0 : E.map((y, v) => /* @__PURE__ */ l(
936
951
  ae,
937
952
  {
938
- TagName: o(S),
953
+ TagName: o(y),
939
954
  actionAttributes: {},
940
- attributes: w(S, b),
941
- children: /* @__PURE__ */ c(
942
- ce,
955
+ attributes: w(y, v),
956
+ children: /* @__PURE__ */ l(
957
+ le,
943
958
  {
944
- path: `component.options.columns.${b}.blocks`,
959
+ path: `component.options.columns.${v}.blocks`,
945
960
  parent: e.builderBlock.id,
946
961
  styleProp: {
947
962
  flexGrow: "1"
@@ -949,23 +964,23 @@ function wt(e) {
949
964
  context: e.builderContext,
950
965
  registeredComponents: e.builderComponents,
951
966
  linkComponent: e.builderLinkComponent,
952
- blocks: S.blocks
967
+ blocks: y.blocks
953
968
  }
954
969
  )
955
970
  },
956
- b
971
+ v
957
972
  ))
958
973
  ]
959
974
  }
960
975
  ),
961
- /* @__PURE__ */ c("style", { children: `.div-1de99da7 {
976
+ /* @__PURE__ */ l("style", { children: `.div-c89348d2 {
962
977
  display: flex;
963
978
  line-height: normal;
964
979
  }` })
965
980
  ] });
966
981
  }
967
982
  function Tt(e) {
968
- return /* @__PURE__ */ c("span", { children: e.children });
983
+ return /* @__PURE__ */ l("span", { children: e.children });
969
984
  }
970
985
  function ge(e) {
971
986
  return e.replace(/http(s)?:/, "");
@@ -998,7 +1013,7 @@ function te(e) {
998
1013
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
999
1014
  }
1000
1015
  function Et(e) {
1001
- var o, a, l, r, s, d;
1016
+ var o, a, c, r, s, d;
1002
1017
  function t() {
1003
1018
  var h;
1004
1019
  const u = e.image || e.src;
@@ -1006,12 +1021,14 @@ function Et(e) {
1006
1021
  // images, otherwise you can supply this prop manually
1007
1022
  !(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
1008
1023
  return e.srcset;
1009
- if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
1010
- if (!e.srcset.includes(e.image.split("?")[0]))
1011
- return console.debug("Removed given srcset"), te(u);
1012
- } else if (e.image && !e.srcset)
1024
+ if (!e.noWebp) {
1025
+ if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
1026
+ if (!e.srcset.includes(e.image.split("?")[0]))
1027
+ return console.debug("Removed given srcset"), te(u);
1028
+ } else if (e.image && !e.srcset)
1029
+ return te(u);
1013
1030
  return te(u);
1014
- return te(u);
1031
+ }
1015
1032
  }
1016
1033
  function n() {
1017
1034
  var m;
@@ -1027,11 +1044,11 @@ function Et(e) {
1027
1044
  };
1028
1045
  return e.aspectRatio ? m : void 0;
1029
1046
  }
1030
- return /* @__PURE__ */ P(I, { children: [
1031
- /* @__PURE__ */ P(I, { children: [
1047
+ return /* @__PURE__ */ P(C, { children: [
1048
+ /* @__PURE__ */ P(C, { children: [
1032
1049
  /* @__PURE__ */ P("picture", { children: [
1033
- n() ? /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) : null,
1034
- /* @__PURE__ */ c(
1050
+ n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1051
+ /* @__PURE__ */ l(
1035
1052
  "img",
1036
1053
  {
1037
1054
  loading: e.highPriority ? "eager" : "lazy",
@@ -1043,33 +1060,33 @@ function Et(e) {
1043
1060
  objectFit: e.backgroundSize || "cover",
1044
1061
  ...i()
1045
1062
  },
1046
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-ac3dff4a",
1063
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-56bbd606",
1047
1064
  src: e.image,
1048
1065
  srcSet: t(),
1049
1066
  sizes: e.sizes
1050
1067
  }
1051
1068
  )
1052
1069
  ] }),
1053
- e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ c(
1070
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
1054
1071
  "div",
1055
1072
  {
1056
- className: "builder-image-sizer div-ac3dff4a",
1073
+ className: "builder-image-sizer div-56bbd606",
1057
1074
  style: {
1058
1075
  paddingTop: e.aspectRatio * 100 + "%"
1059
1076
  }
1060
1077
  }
1061
1078
  ) : null,
1062
- (r = (l = e.builderBlock) == null ? void 0 : l.children) != null && r.length && e.fitContent ? /* @__PURE__ */ c(I, { children: e.children }) : null,
1063
- !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
1079
+ (r = (c = e.builderBlock) == null ? void 0 : c.children) != null && r.length && e.fitContent ? /* @__PURE__ */ l(C, { children: e.children }) : null,
1080
+ !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
1064
1081
  ] }),
1065
- /* @__PURE__ */ c("style", { children: `.img-ac3dff4a {
1082
+ /* @__PURE__ */ l("style", { children: `.img-56bbd606 {
1066
1083
  opacity: 1;
1067
1084
  transition: opacity 0.2s ease-in-out;
1068
- }.div-ac3dff4a {
1085
+ }.div-56bbd606 {
1069
1086
  width: 100%;
1070
1087
  pointer-events: none;
1071
1088
  font-size: 0;
1072
- }.div-ac3dff4a-2 {
1089
+ }.div-56bbd606-2 {
1073
1090
  display: flex;
1074
1091
  flex-direction: column;
1075
1092
  align-items: stretch;
@@ -1082,7 +1099,7 @@ function Et(e) {
1082
1099
  ] });
1083
1100
  }
1084
1101
  function Bt(e) {
1085
- return /* @__PURE__ */ c(
1102
+ return /* @__PURE__ */ l(
1086
1103
  "section",
1087
1104
  {
1088
1105
  ...e.attributes,
@@ -1371,7 +1388,7 @@ const Wt = {
1371
1388
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1372
1389
  onChange: (e) => {
1373
1390
  e.delete("srcset"), e.delete("noWebp");
1374
- function n(l, r = 6e4) {
1391
+ function n(c, r = 6e4) {
1375
1392
  return new Promise((s, d) => {
1376
1393
  const m = document.createElement("img");
1377
1394
  let u = !1;
@@ -1379,21 +1396,21 @@ const Wt = {
1379
1396
  u = !0, s(m);
1380
1397
  }, m.addEventListener("error", (h) => {
1381
1398
  console.warn("Image load failed", h.error), d(h.error);
1382
- }), m.src = l, setTimeout(() => {
1399
+ }), m.src = c, setTimeout(() => {
1383
1400
  u || d(new Error("Image load timed out"));
1384
1401
  }, r);
1385
1402
  });
1386
1403
  }
1387
- function i(l) {
1388
- return Math.round(l * 1e3) / 1e3;
1404
+ function i(c) {
1405
+ return Math.round(c * 1e3) / 1e3;
1389
1406
  }
1390
1407
  const o = e.get("image"), a = e.get("aspectRatio");
1391
- if (fetch(o).then((l) => l.blob()).then((l) => {
1392
- l.type.includes("svg") && e.set("noWebp", !0);
1408
+ if (fetch(o).then((c) => c.blob()).then((c) => {
1409
+ c.type.includes("svg") && e.set("noWebp", !0);
1393
1410
  }), o && (!a || a === 0.7041))
1394
- return n(o).then((l) => {
1411
+ return n(o).then((c) => {
1395
1412
  const r = e.get("aspectRatio");
1396
- e.get("image") === o && (!r || r === 0.7041) && l.width && l.height && (e.set("aspectRatio", i(l.height / l.width)), e.set("height", l.height), e.set("width", l.width));
1413
+ e.get("image") === o && (!r || r === 0.7041) && c.width && c.height && (e.set("aspectRatio", i(c.height / c.width)), e.set("height", c.height), e.set("width", c.width));
1397
1414
  });
1398
1415
  }
1399
1416
  }, {
@@ -1517,7 +1534,7 @@ const Wt = {
1517
1534
  };
1518
1535
  function Lt(e) {
1519
1536
  var t, n, i;
1520
- return /* @__PURE__ */ c(
1537
+ return /* @__PURE__ */ l(
1521
1538
  "div",
1522
1539
  {
1523
1540
  style: {
@@ -1526,8 +1543,8 @@ function Lt(e) {
1526
1543
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1527
1544
  "builder-slot": e.name
1528
1545
  },
1529
- children: /* @__PURE__ */ c(
1530
- ce,
1546
+ children: /* @__PURE__ */ l(
1547
+ le,
1531
1548
  {
1532
1549
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1533
1550
  path: `symbol.data.${e.name}`,
@@ -1601,7 +1618,7 @@ const jt = {
1601
1618
  };
1602
1619
  function Ot(e) {
1603
1620
  var t;
1604
- return /* @__PURE__ */ c(
1621
+ return /* @__PURE__ */ l(
1605
1622
  "div",
1606
1623
  {
1607
1624
  className: "builder-text",
@@ -1636,14 +1653,14 @@ const Ht = {
1636
1653
  }]
1637
1654
  };
1638
1655
  function Mt(e) {
1639
- const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []);
1656
+ const t = oe(null), [n, i] = A(() => []), [o, a] = A(() => []);
1640
1657
  return R(() => {
1641
1658
  var r;
1642
1659
  if (!((r = t.current) != null && r.getElementsByTagName) || typeof window == "undefined")
1643
1660
  return;
1644
- const l = t.current.getElementsByTagName("script");
1645
- for (let s = 0; s < l.length; s++) {
1646
- const d = l[s];
1661
+ const c = t.current.getElementsByTagName("script");
1662
+ for (let s = 0; s < c.length; s++) {
1663
+ const d = c[s];
1647
1664
  if (d.src) {
1648
1665
  if (n.includes(d.src))
1649
1666
  continue;
@@ -1664,7 +1681,7 @@ function Mt(e) {
1664
1681
  }
1665
1682
  }
1666
1683
  }
1667
- }, []), /* @__PURE__ */ c(
1684
+ }, []), /* @__PURE__ */ l(
1668
1685
  "div",
1669
1686
  {
1670
1687
  ref: t,
@@ -1690,7 +1707,7 @@ const Ut = {
1690
1707
  }]
1691
1708
  }, _t = ["text/javascript", "application/javascript", "application/ecmascript"], Kt = (e) => _t.includes(e.type);
1692
1709
  function zt(e) {
1693
- const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []), [l, r] = N(() => !1);
1710
+ const t = oe(null), [n, i] = A(() => []), [o, a] = A(() => []), [c, r] = A(() => !1);
1694
1711
  function s() {
1695
1712
  if (!t.current || !t.current.getElementsByTagName)
1696
1713
  return;
@@ -1710,8 +1727,8 @@ function zt(e) {
1710
1727
  }
1711
1728
  }
1712
1729
  return R(() => {
1713
- t.current && !l && (r(!0), s());
1714
- }, [t.current, l]), /* @__PURE__ */ c(
1730
+ t.current && !c && (r(!0), s());
1731
+ }, [t.current, c]), /* @__PURE__ */ l(
1715
1732
  "div",
1716
1733
  {
1717
1734
  className: "builder-embed",
@@ -1736,7 +1753,7 @@ const qt = {
1736
1753
  static: !0
1737
1754
  };
1738
1755
  function Yt(e) {
1739
- return /* @__PURE__ */ c(
1756
+ return /* @__PURE__ */ l(
1740
1757
  "img",
1741
1758
  {
1742
1759
  style: {
@@ -1836,7 +1853,7 @@ const Jt = {
1836
1853
  }
1837
1854
  };
1838
1855
  function Qt(e) {
1839
- var i, o, a, l, r, s, d;
1856
+ var i, o, a, c, r, s, d;
1840
1857
  function t() {
1841
1858
  return {
1842
1859
  ...e.autoPlay === !0 ? {
@@ -1868,7 +1885,7 @@ function Qt(e) {
1868
1885
  position: "relative"
1869
1886
  },
1870
1887
  children: [
1871
- /* @__PURE__ */ c(
1888
+ /* @__PURE__ */ l(
1872
1889
  "video",
1873
1890
  {
1874
1891
  className: "builder-video",
@@ -1890,10 +1907,10 @@ function Qt(e) {
1890
1907
  },
1891
1908
  src: e.video || "no-src",
1892
1909
  poster: e.posterImage,
1893
- children: e.lazyLoad ? null : /* @__PURE__ */ c("source", { type: "video/mp4", src: e.video })
1910
+ children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
1894
1911
  }
1895
1912
  ),
1896
- e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ c(
1913
+ e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
1897
1914
  "div",
1898
1915
  {
1899
1916
  style: {
@@ -1904,7 +1921,7 @@ function Qt(e) {
1904
1921
  }
1905
1922
  }
1906
1923
  ) : null,
1907
- (r = (l = e.builderBlock) == null ? void 0 : l.children) != null && r.length && e.fitContent ? /* @__PURE__ */ c(
1924
+ (r = (c = e.builderBlock) == null ? void 0 : c.children) != null && r.length && e.fitContent ? /* @__PURE__ */ l(
1908
1925
  "div",
1909
1926
  {
1910
1927
  style: {
@@ -1915,7 +1932,7 @@ function Qt(e) {
1915
1932
  children: e.children
1916
1933
  }
1917
1934
  ) : null,
1918
- (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ c(
1935
+ (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(
1919
1936
  "div",
1920
1937
  {
1921
1938
  style: {
@@ -2082,11 +2099,12 @@ const Gt = () => [{
2082
2099
  "${t}", "${e}", ${Be}
2083
2100
  )`;
2084
2101
  function ne(e) {
2085
- return /* @__PURE__ */ c(
2102
+ return /* @__PURE__ */ l(
2086
2103
  "script",
2087
2104
  {
2088
2105
  dangerouslySetInnerHTML: { __html: e.scriptStr },
2089
- "data-id": e.id
2106
+ "data-id": e.id,
2107
+ nonce: e.nonce || ""
2090
2108
  }
2091
2109
  );
2092
2110
  }
@@ -2102,12 +2120,13 @@ const rn = qe({
2102
2120
  componentInfos: {},
2103
2121
  inheritedStyles: {},
2104
2122
  BlocksWrapper: "div",
2105
- BlocksWrapperProps: {}
2123
+ BlocksWrapperProps: {},
2124
+ nonce: ""
2106
2125
  });
2107
2126
  function ye(e) {
2108
2127
  return Math.round(e * 1e3) / 1e3;
2109
2128
  }
2110
- const ln = (e, t, n = !0) => {
2129
+ const cn = (e, t, n = !0) => {
2111
2130
  if (!(e instanceof HTMLElement))
2112
2131
  return null;
2113
2132
  let i = n ? e : e.parentElement;
@@ -2118,28 +2137,28 @@ const ln = (e, t, n = !0) => {
2118
2137
  return i;
2119
2138
  } while (i = i.parentElement);
2120
2139
  return null;
2121
- }, cn = (e) => ln(e, (t) => {
2140
+ }, ln = (e) => cn(e, (t) => {
2122
2141
  const n = t.getAttribute("builder-id") || t.id;
2123
2142
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2124
- }), pe = ({
2143
+ }), ve = ({
2125
2144
  event: e,
2126
2145
  target: t
2127
2146
  }) => {
2128
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ye(i / n.width), l = ye(o / n.height);
2147
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ye(i / n.width), c = ye(o / n.height);
2129
2148
  return {
2130
2149
  x: a,
2131
- y: l
2150
+ y: c
2132
2151
  };
2133
2152
  }, sn = (e) => {
2134
- const t = e.target, n = t && cn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2153
+ const t = e.target, n = t && ln(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2135
2154
  return {
2136
2155
  targetBuilderElement: i || void 0,
2137
2156
  metadata: {
2138
- targetOffset: t ? pe({
2157
+ targetOffset: t ? ve({
2139
2158
  event: e,
2140
2159
  target: t
2141
2160
  }) : void 0,
2142
- builderTargetOffset: n ? pe({
2161
+ builderTargetOffset: n ? ve({
2143
2162
  event: e,
2144
2163
  target: n
2145
2164
  }) : void 0,
@@ -2153,7 +2172,7 @@ async function dn({
2153
2172
  }) {
2154
2173
  return Ve(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
2155
2174
  }
2156
- function ve(e, ...t) {
2175
+ function xe(e, ...t) {
2157
2176
  const n = Object(e);
2158
2177
  for (let i = 1; i < arguments.length; i++) {
2159
2178
  const o = arguments[i];
@@ -2167,8 +2186,8 @@ function un(e) {
2167
2186
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
2168
2187
  }
2169
2188
  function mn(e, t) {
2170
- const n = fn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, l = [o, a];
2171
- for (const r of l)
2189
+ const n = fn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, c = [o, a];
2190
+ for (const r of c)
2172
2191
  for (const s of n)
2173
2192
  s in r || (r[s] = i[s]);
2174
2193
  }
@@ -2186,16 +2205,16 @@ function hn(e) {
2186
2205
  return;
2187
2206
  }
2188
2207
  Array.from(t).forEach((n) => {
2189
- mn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ve(n.style, e.steps[0].styles), setTimeout(() => {
2190
- n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ve(n.style, e.steps[1].styles), setTimeout(() => {
2208
+ mn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", xe(n.style, e.steps[0].styles), setTimeout(() => {
2209
+ n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), xe(n.style, e.steps[1].styles), setTimeout(() => {
2191
2210
  n.style.transition = "", n.style.transitionDelay = "";
2192
2211
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
2193
2212
  });
2194
2213
  });
2195
2214
  }
2196
2215
  const gn = (e) => {
2197
- var a, l;
2198
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (l = e.fileUrl) != null ? l : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
2216
+ var a, c;
2217
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (c = e.fileUrl) != null ? c : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
2199
2218
  let o = "";
2200
2219
  if (i && t && n && (o += `
2201
2220
  @font-face {
@@ -2227,7 +2246,7 @@ font-weight: ${r};
2227
2246
  }, yn = ({
2228
2247
  cssCode: e,
2229
2248
  contentId: t
2230
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", pn = `
2249
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", vn = `
2231
2250
  .builder-button {
2232
2251
  all: unset;
2233
2252
  }
@@ -2244,31 +2263,31 @@ font-weight: ${r};
2244
2263
  text-align: inherit;
2245
2264
  font-family: inherit;
2246
2265
  }
2247
- `, vn = (e) => e ? "" : pn, Sn = (e) => `variant-${e}`;
2248
- function xn(e) {
2249
- var B, L, j, X, Z, se, de;
2266
+ `, xn = (e) => e ? "" : vn, Sn = (e) => `variant-${e}`;
2267
+ function pn(e) {
2268
+ var W, L, j, X, Z, se, de;
2250
2269
  const t = oe(null);
2251
2270
  function n(g) {
2252
- var p, v;
2271
+ var x, S;
2253
2272
  const f = {
2254
2273
  ...e.builderContextSignal.rootState,
2255
2274
  ...g
2256
2275
  };
2257
- e.builderContextSignal.rootSetState ? (v = (p = e.builderContextSignal).rootSetState) == null || v.call(p, f) : e.builderContextSignal.rootState = f;
2276
+ e.builderContextSignal.rootSetState ? (S = (x = e.builderContextSignal).rootSetState) == null || S.call(x, f) : e.builderContextSignal.rootState = f;
2258
2277
  }
2259
2278
  function i(g) {
2260
- var p, v, C, E, M;
2279
+ var x, S, k, B, M;
2261
2280
  const f = {
2262
2281
  ...e.builderContextSignal.content,
2263
2282
  ...g,
2264
2283
  data: {
2265
- ...(p = e.builderContextSignal.content) == null ? void 0 : p.data,
2284
+ ...(x = e.builderContextSignal.content) == null ? void 0 : x.data,
2266
2285
  ...g == null ? void 0 : g.data
2267
2286
  },
2268
2287
  meta: {
2269
- ...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
2288
+ ...(S = e.builderContextSignal.content) == null ? void 0 : S.meta,
2270
2289
  ...g == null ? void 0 : g.meta,
2271
- breakpoints: ((C = g == null ? void 0 : g.meta) == null ? void 0 : C.breakpoints) || ((M = (E = e.builderContextSignal.content) == null ? void 0 : E.meta) == null ? void 0 : M.breakpoints)
2290
+ breakpoints: ((k = g == null ? void 0 : g.meta) == null ? void 0 : k.breakpoints) || ((M = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : M.breakpoints)
2272
2291
  }
2273
2292
  };
2274
2293
  dn({
@@ -2284,7 +2303,7 @@ function xn(e) {
2284
2303
  "aria-hidden": !0
2285
2304
  };
2286
2305
  }
2287
- const [a, l] = N(
2306
+ const [a, c] = A(
2288
2307
  () => e.contentWrapper || "div"
2289
2308
  );
2290
2309
  function r(g) {
@@ -2293,11 +2312,11 @@ function xn(e) {
2293
2312
  trustedHosts: e.trustedHosts,
2294
2313
  callbacks: {
2295
2314
  configureSdk: (f) => {
2296
- var C;
2297
- const { breakpoints: p, contentId: v } = f;
2298
- !v || v !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || p && i({
2315
+ var k;
2316
+ const { breakpoints: x, contentId: S } = f;
2317
+ !S || S !== ((k = e.builderContextSignal.content) == null ? void 0 : k.id) || x && i({
2299
2318
  meta: {
2300
- breakpoints: p
2319
+ breakpoints: x
2301
2320
  }
2302
2321
  });
2303
2322
  },
@@ -2311,8 +2330,8 @@ function xn(e) {
2311
2330
  })(g);
2312
2331
  }
2313
2332
  function s() {
2314
- var f, p;
2315
- const g = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.jsCode;
2333
+ var f, x;
2334
+ const g = (x = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : x.jsCode;
2316
2335
  g && O({
2317
2336
  code: g,
2318
2337
  context: e.context || {},
@@ -2325,31 +2344,31 @@ function xn(e) {
2325
2344
  enableCache: !1
2326
2345
  });
2327
2346
  }
2328
- const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [x, w] = N(() => !1);
2329
- function y(g) {
2330
- var f, p;
2347
+ const [d, m] = A(() => ({})), [u, h] = A(() => ({})), [I, w] = A(() => !1);
2348
+ function b(g) {
2349
+ var f, x;
2331
2350
  if (e.builderContextSignal.content) {
2332
- const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, C = (p = e.builderContextSignal.content) == null ? void 0 : p.id;
2351
+ const S = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, k = (x = e.builderContextSignal.content) == null ? void 0 : x.id;
2333
2352
  ue({
2334
2353
  type: "click",
2335
2354
  canTrack: q(e.canTrack),
2336
- contentId: C,
2355
+ contentId: k,
2337
2356
  apiKey: e.apiKey,
2338
- variationId: v !== C ? v : void 0,
2357
+ variationId: S !== k ? S : void 0,
2339
2358
  ...sn(g),
2340
- unique: !x
2359
+ unique: !I
2341
2360
  });
2342
2361
  }
2343
- x || w(!0);
2362
+ I || w(!0);
2344
2363
  }
2345
- function A() {
2346
- var f, p, v;
2347
- const g = (v = (p = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : p.httpRequests) != null ? v : {};
2348
- Object.entries(g).forEach(([C, E]) => {
2349
- if (!E || u[C] || d[C] && !V())
2364
+ function E() {
2365
+ var f, x, S;
2366
+ const g = (S = (x = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : x.httpRequests) != null ? S : {};
2367
+ Object.entries(g).forEach(([k, B]) => {
2368
+ if (!B || u[k] || d[k] && !V())
2350
2369
  return;
2351
- u[C] = !0;
2352
- const M = E.replace(
2370
+ u[k] = !0;
2371
+ const M = B.replace(
2353
2372
  /{{([^}]+)}}/g,
2354
2373
  ($, We) => String(
2355
2374
  O({
@@ -2364,16 +2383,16 @@ function xn(e) {
2364
2383
  );
2365
2384
  Le(M).then(($) => $.json()).then(($) => {
2366
2385
  n({
2367
- [C]: $
2368
- }), d[C] = !0;
2386
+ [k]: $
2387
+ }), d[k] = !0;
2369
2388
  }).catch(($) => {
2370
- console.error("error fetching dynamic data", E, $);
2389
+ console.error("error fetching dynamic data", B, $);
2371
2390
  }).finally(() => {
2372
- u[C] = !1;
2391
+ u[k] = !1;
2373
2392
  });
2374
2393
  });
2375
2394
  }
2376
- function S() {
2395
+ function y() {
2377
2396
  V() && window.dispatchEvent(
2378
2397
  new CustomEvent(
2379
2398
  "builder:component:stateChange",
@@ -2388,7 +2407,7 @@ function xn(e) {
2388
2407
  )
2389
2408
  );
2390
2409
  }
2391
- function b(g) {
2410
+ function v(g) {
2392
2411
  window.addEventListener("message", r), je(), De({
2393
2412
  ...e.locale ? {
2394
2413
  locale: e.locale
@@ -2402,24 +2421,24 @@ function xn(e) {
2402
2421
  }), Object.values(
2403
2422
  e.builderContextSignal.componentInfos
2404
2423
  ).forEach((f) => {
2405
- var v;
2406
- const p = Oe(f);
2407
- (v = window.parent) == null || v.postMessage(p, "*");
2424
+ var S;
2425
+ const x = Oe(f);
2426
+ (S = window.parent) == null || S.postMessage(x, "*");
2408
2427
  }), window.addEventListener(
2409
2428
  "builder:component:stateChangeListenerActivated",
2410
- S
2429
+ y
2411
2430
  );
2412
2431
  }
2413
- function k(g) {
2414
- const f = new URL(location.href).searchParams, p = f.get("builder.preview"), v = f.get(
2415
- `builder.overrides.${p}`
2416
- ), C = f.get("apiKey") || f.get("builder.space");
2417
- p === e.model && C === e.apiKey && (!e.content || v === e.content.id) && xe({
2432
+ function p(g) {
2433
+ const f = new URL(location.href).searchParams, x = f.get("builder.preview"), S = f.get(
2434
+ `builder.overrides.${x}`
2435
+ ), k = f.get("apiKey") || f.get("builder.space");
2436
+ x === e.model && k === e.apiKey && (!e.content || S === e.content.id) && pe({
2418
2437
  model: e.model,
2419
2438
  apiKey: e.apiKey,
2420
2439
  apiVersion: e.builderContextSignal.apiVersion
2421
- }).then((E) => {
2422
- E && i(E);
2440
+ }).then((B) => {
2441
+ B && i(B);
2423
2442
  });
2424
2443
  }
2425
2444
  const T = Ye();
@@ -2427,37 +2446,37 @@ function xn(e) {
2427
2446
  var g;
2428
2447
  return (g = t.current) == null || g.addEventListener(
2429
2448
  "initeditingbldr",
2430
- b
2449
+ v
2431
2450
  ), () => {
2432
2451
  var f;
2433
2452
  return (f = t.current) == null ? void 0 : f.removeEventListener(
2434
2453
  "initeditingbldr",
2435
- b
2454
+ v
2436
2455
  );
2437
2456
  };
2438
2457
  }, []), R(() => {
2439
2458
  var g;
2440
2459
  return (g = t.current) == null || g.addEventListener(
2441
2460
  "initpreviewingbldr",
2442
- k
2461
+ p
2443
2462
  ), () => {
2444
2463
  var f;
2445
2464
  return (f = t.current) == null ? void 0 : f.removeEventListener(
2446
2465
  "initpreviewingbldr",
2447
- k
2466
+ p
2448
2467
  );
2449
2468
  };
2450
2469
  }, []), R(() => {
2451
2470
  var g, f;
2452
2471
  if (z()) {
2453
2472
  if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
2454
- const v = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, C = (f = e.builderContextSignal.content) == null ? void 0 : f.id, E = e.apiKey;
2473
+ const S = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, k = (f = e.builderContextSignal.content) == null ? void 0 : f.id, B = e.apiKey;
2455
2474
  ue({
2456
2475
  type: "impression",
2457
2476
  canTrack: !0,
2458
- contentId: C,
2459
- apiKey: E,
2460
- variationId: v !== C ? v : void 0
2477
+ contentId: k,
2478
+ apiKey: B,
2479
+ variationId: S !== k ? S : void 0
2461
2480
  });
2462
2481
  }
2463
2482
  $e() && V();
@@ -2465,14 +2484,14 @@ function xn(e) {
2465
2484
  }, []), R(() => {
2466
2485
  e.apiKey || J.error(
2467
2486
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2468
- ), s(), A(), S();
2487
+ ), s(), E(), y();
2469
2488
  }, []), R(() => {
2470
2489
  }, [e.content]), R(() => {
2471
2490
  s();
2472
- }, [(L = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : L.jsCode]), R(() => {
2473
- A();
2491
+ }, [(L = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : L.jsCode]), R(() => {
2492
+ E();
2474
2493
  }, [(X = (j = e.builderContextSignal.content) == null ? void 0 : j.data) == null ? void 0 : X.httpRequests]), R(() => {
2475
- S();
2494
+ y();
2476
2495
  }, [e.builderContextSignal.rootState]), R(() => {
2477
2496
  e.data && n(e.data);
2478
2497
  }, [e.data]), R(() => {
@@ -2482,13 +2501,13 @@ function xn(e) {
2482
2501
  }, [e.locale]), R(() => () => {
2483
2502
  z() && (window.removeEventListener("message", r), window.removeEventListener(
2484
2503
  "builder:component:stateChangeListenerActivated",
2485
- S
2504
+ y
2486
2505
  ));
2487
- }, []), /* @__PURE__ */ c(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(
2506
+ }, []), /* @__PURE__ */ l(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
2488
2507
  a,
2489
2508
  {
2490
2509
  ref: t,
2491
- onClick: (g) => y(g),
2510
+ onClick: (g) => b(g),
2492
2511
  "builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
2493
2512
  "builder-model": e.model,
2494
2513
  ...o(),
@@ -2509,18 +2528,25 @@ ${yn({
2509
2528
  ${bn({
2510
2529
  customFonts: e.customFonts
2511
2530
  })}
2512
- ${vn(e.isNestedRender)}
2531
+ ${xn(e.isNestedRender)}
2513
2532
  `.trim();
2514
- return /* @__PURE__ */ c(Q, { id: "builderio-content", styles: t });
2533
+ return /* @__PURE__ */ l(
2534
+ Q,
2535
+ {
2536
+ id: "builderio-content",
2537
+ styles: t,
2538
+ nonce: e.nonce
2539
+ }
2540
+ );
2515
2541
  }
2516
2542
  const Cn = ({
2517
2543
  content: e,
2518
2544
  data: t,
2519
2545
  locale: n
2520
2546
  }) => {
2521
- var a, l, r;
2547
+ var a, c, r;
2522
2548
  const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
2523
- return (r = (l = e == null ? void 0 : e.data) == null ? void 0 : l.inputs) == null || r.forEach((s) => {
2549
+ return (r = (c = e == null ? void 0 : e.data) == null ? void 0 : c.inputs) == null || r.forEach((s) => {
2524
2550
  s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
2525
2551
  }), {
2526
2552
  ...i,
@@ -2542,7 +2568,7 @@ const Cn = ({
2542
2568
  meta: e == null ? void 0 : e.meta
2543
2569
  } : void 0;
2544
2570
  function Se(e) {
2545
- var o, a, l, r, s, d, m, u, h;
2571
+ var o, a, c, r, s, d, m, u, h, I, w;
2546
2572
  const t = an({
2547
2573
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2548
2574
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
@@ -2550,12 +2576,12 @@ function Se(e) {
2550
2576
  contentId: (a = e.content) == null ? void 0 : a.id
2551
2577
  }), n = [
2552
2578
  ...be(),
2553
- ...e.customComponents || []
2579
+ ...((c = e.customComponents) == null ? void 0 : c.filter(({ models: b }) => !(b != null && b.length) || !e.model ? !0 : b.includes(e.model))) || []
2554
2580
  ].reduce(
2555
- (x, { component: w, ...y }) => ({
2556
- ...x,
2581
+ (b, { component: E, ...y }) => ({
2582
+ ...b,
2557
2583
  [y.name]: {
2558
- component: w,
2584
+ component: E,
2559
2585
  ...me(y)
2560
2586
  }
2561
2587
  }),
@@ -2578,21 +2604,23 @@ function Se(e) {
2578
2604
  apiVersion: e.apiVersion,
2579
2605
  componentInfos: [
2580
2606
  ...be(),
2581
- ...e.customComponents || []
2607
+ ...((r = e.customComponents) == null ? void 0 : r.filter(({ models: b }) => !(b != null && b.length) || !e.model ? !0 : b.includes(e.model))) || []
2582
2608
  ].reduce(
2583
- (x, { component: w, ...y }) => ({
2584
- ...x,
2609
+ (b, { component: E, ...y }) => ({
2610
+ ...b,
2585
2611
  [y.name]: me(y)
2586
2612
  }),
2587
2613
  {}
2588
2614
  ),
2589
2615
  inheritedStyles: {},
2590
2616
  BlocksWrapper: e.blocksWrapper || "div",
2591
- BlocksWrapperProps: e.blocksWrapperProps || {}
2617
+ BlocksWrapperProps: e.blocksWrapperProps || {},
2618
+ nonce: e.nonce || ""
2592
2619
  };
2593
2620
  return /* @__PURE__ */ P(
2594
- xn,
2621
+ pn,
2595
2622
  {
2623
+ nonce: e.nonce,
2596
2624
  content: e.content,
2597
2625
  data: e.data,
2598
2626
  model: e.model,
@@ -2607,26 +2635,28 @@ function Se(e) {
2607
2635
  contentWrapperProps: e.contentWrapperProps,
2608
2636
  trustedHosts: e.trustedHosts,
2609
2637
  children: [
2610
- e.isSsrAbTest ? /* @__PURE__ */ c(
2638
+ e.isSsrAbTest ? /* @__PURE__ */ l(
2611
2639
  ne,
2612
2640
  {
2613
2641
  id: "builderio-variant-visibility",
2614
- scriptStr: t
2642
+ scriptStr: t,
2643
+ nonce: e.nonce || ""
2615
2644
  }
2616
2645
  ) : null,
2617
- /* @__PURE__ */ c(
2646
+ /* @__PURE__ */ l(
2618
2647
  kn,
2619
2648
  {
2649
+ nonce: e.nonce || "",
2620
2650
  isNestedRender: e.isNestedRender,
2621
- contentId: (l = i.content) == null ? void 0 : l.id,
2622
- cssCode: (s = (r = i.content) == null ? void 0 : r.data) == null ? void 0 : s.cssCode,
2623
- customFonts: (m = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
2651
+ contentId: (s = i.content) == null ? void 0 : s.id,
2652
+ cssCode: (m = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
2653
+ customFonts: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.customFonts
2624
2654
  }
2625
2655
  ),
2626
- /* @__PURE__ */ c(
2627
- ce,
2656
+ /* @__PURE__ */ l(
2657
+ le,
2628
2658
  {
2629
- blocks: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.blocks,
2659
+ blocks: (w = (I = i.content) == null ? void 0 : I.data) == null ? void 0 : w.blocks,
2630
2660
  context: i,
2631
2661
  registeredComponents: n,
2632
2662
  linkComponent: e.linkComponent
@@ -2662,34 +2692,38 @@ function wn(e) {
2662
2692
  canTrack: q(e.canTrack)
2663
2693
  });
2664
2694
  };
2665
- return /* @__PURE__ */ P(I, { children: [
2666
- !e.isNestedRender && H !== "reactNative" ? /* @__PURE__ */ c(
2695
+ return /* @__PURE__ */ P(C, { children: [
2696
+ !e.isNestedRender && H !== "reactNative" ? /* @__PURE__ */ l(
2667
2697
  ne,
2668
2698
  {
2669
2699
  id: "builderio-init-variants-fns",
2670
- scriptStr: nn()
2700
+ scriptStr: nn(),
2701
+ nonce: e.nonce || ""
2671
2702
  }
2672
2703
  ) : null,
2673
- t ? /* @__PURE__ */ P(I, { children: [
2674
- /* @__PURE__ */ c(
2704
+ t ? /* @__PURE__ */ P(C, { children: [
2705
+ /* @__PURE__ */ l(
2675
2706
  Q,
2676
2707
  {
2677
2708
  id: "builderio-variants",
2678
- styles: i()
2709
+ styles: i(),
2710
+ nonce: e.nonce || ""
2679
2711
  }
2680
2712
  ),
2681
- /* @__PURE__ */ c(
2713
+ /* @__PURE__ */ l(
2682
2714
  ne,
2683
2715
  {
2684
2716
  id: "builderio-variants-visibility",
2685
- scriptStr: n()
2717
+ scriptStr: n(),
2718
+ nonce: e.nonce || ""
2686
2719
  }
2687
2720
  ),
2688
- (a = _(e.content)) == null ? void 0 : a.map((l) => /* @__PURE__ */ c(
2721
+ (a = _(e.content)) == null ? void 0 : a.map((c) => /* @__PURE__ */ l(
2689
2722
  Se,
2690
2723
  {
2691
2724
  isNestedRender: e.isNestedRender,
2692
- content: l,
2725
+ nonce: e.nonce,
2726
+ content: c,
2693
2727
  showContent: !1,
2694
2728
  model: e.model,
2695
2729
  data: e.data,
@@ -2708,12 +2742,13 @@ function wn(e) {
2708
2742
  contentWrapperProps: e.contentWrapperProps,
2709
2743
  trustedHosts: e.trustedHosts
2710
2744
  },
2711
- l.testVariationId
2745
+ c.testVariationId
2712
2746
  ))
2713
2747
  ] }) : null,
2714
- /* @__PURE__ */ c(
2748
+ /* @__PURE__ */ l(
2715
2749
  Se,
2716
2750
  {
2751
+ nonce: e.nonce,
2717
2752
  isNestedRender: e.isNestedRender,
2718
2753
  content: o(),
2719
2754
  showContent: !0,
@@ -2743,7 +2778,7 @@ const Tn = async ({
2743
2778
  }) => {
2744
2779
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
2745
2780
  (e != null && e.apiKey))
2746
- return xe({
2781
+ return pe({
2747
2782
  model: t.model,
2748
2783
  apiKey: e.apiKey,
2749
2784
  apiVersion: e.apiVersion,
@@ -2757,7 +2792,7 @@ const Tn = async ({
2757
2792
  });
2758
2793
  };
2759
2794
  async function Rn(e) {
2760
- var a, l, r, s, d;
2795
+ var a, c, r, s, d;
2761
2796
  const t = function() {
2762
2797
  return "div";
2763
2798
  }, n = function() {
@@ -2774,15 +2809,16 @@ async function Rn(e) {
2774
2809
  symbol: e.symbol,
2775
2810
  builderContextValue: e.builderContext
2776
2811
  });
2777
- return /* @__PURE__ */ c("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ c(
2812
+ return /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
2778
2813
  wn,
2779
2814
  {
2815
+ nonce: e.builderContext.nonce,
2780
2816
  isNestedRender: !0,
2781
2817
  apiVersion: e.builderContext.apiVersion,
2782
2818
  apiKey: e.builderContext.apiKey,
2783
2819
  context: {
2784
2820
  ...e.builderContext.context,
2785
- symbolId: (l = e.builderBlock) == null ? void 0 : l.id
2821
+ symbolId: (c = e.builderBlock) == null ? void 0 : c.id
2786
2822
  },
2787
2823
  customComponents: Object.values(e.builderComponents),
2788
2824
  data: {
@@ -2800,7 +2836,7 @@ async function Rn(e) {
2800
2836
  ) });
2801
2837
  }
2802
2838
  export {
2803
- ce as Blocks,
2839
+ le as Blocks,
2804
2840
  rn as BuilderContext,
2805
2841
  Ge as Button,
2806
2842
  wt as Columns,