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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/lib/browser/blocks-exports.cjs +26 -26
  2. package/lib/browser/blocks-exports.mjs +576 -583
  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-f64a4c2d.cjs → server-entry-555ce264.cjs} +1 -1
  8. package/lib/browser/{server-entry-7f981733.js → server-entry-8a4d2728.js} +1 -1
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/blocks-exports.cjs +36 -36
  12. package/lib/edge/blocks-exports.mjs +811 -818
  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-f64a4c2d.cjs → server-entry-555ce264.cjs} +1 -1
  18. package/lib/edge/{server-entry-7f981733.js → server-entry-8a4d2728.js} +1 -1
  19. package/lib/edge/server-entry.cjs +1 -1
  20. package/lib/edge/server-entry.mjs +1 -1
  21. package/lib/node/blocks-exports.cjs +26 -26
  22. package/lib/node/blocks-exports.mjs +555 -562
  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-6f522a33.cjs → node-runtime-1e70fe16.cjs} +1 -1
  28. package/lib/node/{node-runtime-3f0a39c5.js → node-runtime-753c71f6.js} +1 -1
  29. package/lib/node/{server-entry-68c26de0.cjs → server-entry-61a8c25a.cjs} +1 -1
  30. package/lib/node/{server-entry-46bde4f0.js → server-entry-e47775d7.js} +1 -1
  31. package/lib/node/server-entry.cjs +1 -1
  32. package/lib/node/server-entry.mjs +1 -1
  33. package/package.json +1 -1
  34. package/types/cjs/components/block/block.helpers.d.ts +8 -8
  35. package/types/cjs/components/content/components/styles.d.ts +2 -1
  36. package/types/cjs/components/content-variants/content-variants.types.d.ts +4 -0
  37. package/types/cjs/components/inlined-script.d.ts +2 -1
  38. package/types/cjs/components/inlined-styles.d.ts +2 -1
  39. package/types/cjs/constants/sdk-version.d.ts +1 -1
  40. package/types/cjs/context/types.d.ts +1 -0
  41. package/types/cjs/types/builder-props.d.ts +3 -0
  42. package/types/esm/components/block/block.helpers.d.ts +8 -8
  43. package/types/esm/components/content/components/styles.d.ts +2 -1
  44. package/types/esm/components/content-variants/content-variants.types.d.ts +4 -0
  45. package/types/esm/components/inlined-script.d.ts +2 -1
  46. package/types/esm/components/inlined-styles.d.ts +2 -1
  47. package/types/esm/constants/sdk-version.d.ts +1 -1
  48. package/types/esm/context/types.d.ts +1 -0
  49. package/types/esm/types/builder-props.d.ts +3 -0
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- var Ve = Object.defineProperty;
3
- var $e = (e, t, n) => t in e ? Ve(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var te = (e, t, n) => ($e(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as c, Fragment as C, jsxs as P } from "react/jsx-runtime";
6
- import { TARGET as M, isEditing as V, isBrowser as F, getUserAttributes as Le, checkIsDefined as z, logger as J, fastClone as oe, init as Fe, getDefaultCanTrack as q, _track as me, isPreviewing as Oe, createEditorListener as De, fetch as je, registerInsertMenu as He, setupBrowserForEditing as Me, createRegisterComponentMessage as Ue, fetchOneEntry as Ce, serializeComponentInfo as fe, handleABTestingSync as _e } from "./server-entry-7f981733.js";
7
- import { useRef as ae, useState as N, useEffect as T, createContext as Ke } from "react";
8
- import { useRouter as ze } from "next/navigation";
2
+ var Ae = Object.defineProperty;
3
+ var Ve = (e, t, n) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ee = (e, t, n) => (Ve(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as l, Fragment as w, jsxs as E } from "react/jsx-runtime";
6
+ import { TARGET as M, isEditing as V, isBrowser as L, getUserAttributes as $e, checkIsDefined as z, logger as J, fastClone as ie, init as Fe, getDefaultCanTrack as q, _track as ue, isPreviewing as Le, createEditorListener as Oe, fetch as De, registerInsertMenu as je, setupBrowserForEditing as He, createRegisterComponentMessage as Me, fetchOneEntry as ke, serializeComponentInfo as me, handleABTestingSync as Ue } from "./server-entry-8a4d2728.js";
7
+ import { useRef as oe, useState as N, useEffect as R, createContext as _e } from "react";
8
+ import { useRouter as Ke } from "next/navigation";
9
9
  import "lru-cache";
10
- const qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ye = (e) => typeof e == "string" && qe.has(e.toLowerCase());
11
- function re(e) {
12
- return /* @__PURE__ */ c(C, { children: Ye(e.TagName) ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ c(C, { 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 }) }) });
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
+ function ae(e) {
12
+ return /* @__PURE__ */ l(w, { children: qe(e.TagName) ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(w, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
13
13
  }
14
14
  const j = () => {
15
15
  switch (M) {
@@ -25,7 +25,7 @@ const j = () => {
25
25
  return "class";
26
26
  }
27
27
  };
28
- function Je(e) {
28
+ function Ye(e) {
29
29
  function t() {
30
30
  return {
31
31
  ...e.attributes,
@@ -39,8 +39,8 @@ function Je(e) {
39
39
  }
40
40
  };
41
41
  }
42
- return /* @__PURE__ */ c(
43
- re,
42
+ return /* @__PURE__ */ l(
43
+ ae,
44
44
  {
45
45
  attributes: t(),
46
46
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -49,14 +49,14 @@ function Je(e) {
49
49
  }
50
50
  );
51
51
  }
52
- function Qe(e) {
52
+ function Je(e) {
53
53
  var t;
54
54
  return {
55
55
  ...(t = e.component) == null ? void 0 : t.options,
56
56
  ...e.options
57
57
  };
58
58
  }
59
- const Ge = ({
59
+ const Qe = ({
60
60
  builder: e,
61
61
  context: t,
62
62
  event: n,
@@ -68,14 +68,14 @@ const Ge = ({
68
68
  builder: e,
69
69
  context: t,
70
70
  event: n
71
- }), Xe = () => ({
71
+ }), Ge = () => ({
72
72
  isEditing: V(),
73
- isBrowser: F(),
74
- isServer: !F(),
75
- getUserAttributes: () => Le()
76
- }), Ze = (e, {
73
+ isBrowser: L(),
74
+ isServer: !L(),
75
+ getUserAttributes: () => $e()
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, he = ({
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 = ({
79
79
  code: e,
80
80
  builder: t,
81
81
  context: n,
@@ -84,19 +84,19 @@ const Ge = ({
84
84
  rootSetState: a,
85
85
  rootState: r
86
86
  }) => {
87
- const l = Ge({
87
+ const c = Qe({
88
88
  builder: t,
89
89
  context: n,
90
90
  event: i,
91
- state: Ie({
91
+ state: Ce({
92
92
  rootState: r,
93
93
  localState: o,
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
- function Ie({
99
+ function Ce({
100
100
  rootState: e,
101
101
  localState: t,
102
102
  rootSetState: n
@@ -106,7 +106,7 @@ function Ie({
106
106
  if (t && o in t)
107
107
  return t[o];
108
108
  const a = i[o];
109
- return typeof a == "object" && a !== null ? Ie({
109
+ return typeof a == "object" && a !== null ? Ce({
110
110
  rootState: a,
111
111
  localState: void 0,
112
112
  rootSetState: n ? (r) => {
@@ -121,17 +121,17 @@ function Ie({
121
121
  }
122
122
  });
123
123
  }
124
- function et() {
124
+ function Ze() {
125
125
  var e;
126
126
  return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
127
127
  }
128
- const tt = () => {
128
+ const et = () => {
129
129
  var i;
130
- if (!et())
130
+ if (!Ze())
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
- }, nt = (e) => (F() || tt(), he(e)), W = class W {
134
+ }, tt = (e) => (L() || et(), fe(e)), W = class W {
135
135
  static getCacheKey(t) {
136
136
  return JSON.stringify({
137
137
  ...t,
@@ -149,8 +149,8 @@ const tt = () => {
149
149
  });
150
150
  }
151
151
  };
152
- te(W, "cacheLimit", 20), te(W, "cache", /* @__PURE__ */ new Map());
153
- let L = W;
152
+ ee(W, "cacheLimit", 20), ee(W, "cache", /* @__PURE__ */ new Map());
153
+ let F = W;
154
154
  function H({
155
155
  code: e,
156
156
  context: t,
@@ -159,31 +159,31 @@ 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;
166
166
  const s = {
167
- code: Ze(e, {
167
+ code: Xe(e, {
168
168
  isExpression: r
169
169
  }),
170
- builder: Xe(),
170
+ builder: Ge(),
171
171
  context: t,
172
172
  event: a,
173
173
  rootSetState: o,
174
174
  rootState: i,
175
175
  localState: n
176
176
  };
177
- if (l) {
178
- const d = L.getCacheKey(s), m = L.getCachedValue(d);
177
+ if (c) {
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
- const d = nt(s);
184
- if (l) {
185
- const m = L.getCacheKey(s);
186
- L.setCachedValue(m, d);
183
+ const d = tt(s);
184
+ if (c) {
185
+ const m = F.getCacheKey(s);
186
+ F.setCachedValue(m, d);
187
187
  }
188
188
  return d;
189
189
  } catch (d) {
@@ -193,13 +193,13 @@ function H({
193
193
  return;
194
194
  }
195
195
  }
196
- const it = (e, t, n) => {
196
+ const nt = (e, t, n) => {
197
197
  if (Object(e) !== e)
198
198
  return e;
199
199
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
200
200
  return i.slice(0, -1).reduce((o, a, r) => Object(o[a]) === o[a] ? o[a] : o[a] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
201
201
  };
202
- const ot = ({
202
+ const it = ({
203
203
  block: e,
204
204
  context: t,
205
205
  localState: n,
@@ -208,7 +208,7 @@ const ot = ({
208
208
  }) => {
209
209
  if (!e.bindings)
210
210
  return e;
211
- const a = oe(e), r = {
211
+ const a = ie(e), r = {
212
212
  ...a,
213
213
  properties: {
214
214
  ...a.properties
@@ -217,8 +217,8 @@ const ot = ({
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 ot = ({
226
226
  context: t,
227
227
  enableCache: !0
228
228
  });
229
- it(r, l, d);
229
+ nt(r, c, d);
230
230
  }
231
231
  return r;
232
232
  };
@@ -239,7 +239,7 @@ function Y({
239
239
  rootSetState: a
240
240
  }) {
241
241
  const r = e;
242
- return n ? ot({
242
+ return n ? it({
243
243
  block: r,
244
244
  localState: i,
245
245
  rootState: o,
@@ -247,36 +247,36 @@ function Y({
247
247
  context: t
248
248
  }) : r;
249
249
  }
250
- const le = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", we = (e) => Object.entries(e).map(([n, i]) => {
250
+ const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", we = (e) => Object.entries(e).map(([n, i]) => {
251
251
  if (typeof i == "string")
252
- return `${le(n)}: ${i};`;
253
- }).filter(z), at = (e) => we(e).join(`
252
+ return `${re(n)}: ${i};`;
253
+ }).filter(z), ot = (e) => we(e).join(`
254
254
  `), _ = ({
255
255
  mediaQuery: e,
256
256
  className: t,
257
257
  styles: n
258
258
  }) => {
259
259
  const i = `.${t} {
260
- ${at(n)}
260
+ ${ot(n)}
261
261
  }`;
262
262
  return e ? `${e} {
263
263
  ${i}
264
264
  }` : i;
265
265
  };
266
- function rt({
266
+ function at({
267
267
  style: e
268
268
  }) {
269
269
  return e;
270
270
  }
271
- const lt = ({
271
+ const rt = ({
272
272
  block: e,
273
273
  context: t
274
- }) => Te(rt({
274
+ }) => Ie(at({
275
275
  style: e.style || {},
276
276
  context: t,
277
277
  block: e
278
278
  }));
279
- function Te(e) {
279
+ function Ie(e) {
280
280
  switch (M) {
281
281
  case "svelte":
282
282
  case "vue":
@@ -312,7 +312,7 @@ const ct = ({
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
- }, st = ({
315
+ }, lt = ({
316
316
  block: e,
317
317
  context: t
318
318
  }) => {
@@ -346,23 +346,27 @@ const ct = ({
346
346
  },
347
347
  block: i
348
348
  }));
349
- }, Q = (e) => ({
350
- // once we bump to a major version, toggle this to `false`.
351
- builderBlock: !0,
352
- // once we bump to a major version, toggle this to `false`.
353
- builderContext: !0,
354
- builderComponents: !1,
355
- builderLinkComponent: !1,
356
- ...e
357
- }), dt = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderLinkComponent ? {
358
- builderLinkComponent: t
359
- } : {} : {}, ut = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderComponents ? {
360
- builderComponents: t
361
- } : {} : {}, mt = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderBlock ? {
362
- builderBlock: t
363
- } : {} : {}, ft = (e, t) => e ? Q(e.shouldReceiveBuilderProps).builderContext ? {
364
- builderContext: t
365
- } : {} : {}, Re = {
349
+ }, st = (e, t) => {
350
+ var n;
351
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
352
+ builderLinkComponent: t
353
+ } : {};
354
+ }, dt = (e, t) => {
355
+ var n;
356
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
357
+ builderComponents: t
358
+ } : {};
359
+ }, ut = (e, t) => {
360
+ var n;
361
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
362
+ builderBlock: t
363
+ } : {};
364
+ }, mt = (e, t) => {
365
+ var n;
366
+ return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
367
+ builderContext: t
368
+ } : {};
369
+ }, Te = {
366
370
  small: {
367
371
  min: 320,
368
372
  default: 321,
@@ -378,11 +382,11 @@ const ct = ({
378
382
  default: 991,
379
383
  max: 1200
380
384
  }
381
- }, be = (e, t = Re) => `@media (max-width: ${t[e].max}px)`, Pe = ({
385
+ }, he = (e, t = Te) => `@media (max-width: ${t[e].max}px)`, Re = ({
382
386
  small: e,
383
387
  medium: t
384
388
  }) => {
385
- const n = oe(Re);
389
+ const n = ie(Te);
386
390
  if (!e || !t)
387
391
  return n;
388
392
  const i = Math.floor(e / 2);
@@ -405,16 +409,17 @@ const ct = ({
405
409
  default: a + 1
406
410
  }, n;
407
411
  };
408
- function G(e) {
409
- return /* @__PURE__ */ c(
412
+ function Q(e) {
413
+ return /* @__PURE__ */ l(
410
414
  "style",
411
415
  {
412
416
  dangerouslySetInnerHTML: { __html: e.styles },
413
- "data-id": e.id
417
+ "data-id": e.id,
418
+ nonce: e.nonce
414
419
  }
415
420
  );
416
421
  }
417
- function ht(e) {
422
+ function ft(e) {
418
423
  const t = function() {
419
424
  const o = Y({
420
425
  block: e.block,
@@ -426,7 +431,7 @@ function ht(e) {
426
431
  });
427
432
  return z(o.hide) ? !o.hide : z(o.show) ? o.show : !0;
428
433
  }, n = function() {
429
- var x, g, I;
434
+ var S, b, k;
430
435
  const o = Y({
431
436
  block: e.block,
432
437
  localState: e.context.localState,
@@ -434,56 +439,63 @@ function ht(e) {
434
439
  rootSetState: e.context.rootSetState,
435
440
  context: e.context.context,
436
441
  shouldEvaluateBindings: !0
437
- }), a = o.responsiveStyles, r = e.context.content, l = Pe(
438
- ((x = r == null ? void 0 : r.meta) == null ? void 0 : x.breakpoints) || {}
442
+ }), a = o.responsiveStyles, r = e.context.content, c = Re(
443
+ ((S = r == null ? void 0 : r.meta) == null ? void 0 : S.breakpoints) || {}
439
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;
440
445
  if (!u)
441
446
  return "";
442
447
  const h = s ? _({
443
448
  className: u,
444
449
  styles: s
445
- }) : "", k = d ? _({
450
+ }) : "", p = d ? _({
446
451
  className: u,
447
452
  styles: d,
448
- mediaQuery: be(
453
+ mediaQuery: he(
449
454
  "medium",
450
- l
455
+ c
451
456
  )
452
- }) : "", w = m ? _({
457
+ }) : "", I = m ? _({
453
458
  className: u,
454
459
  styles: m,
455
- mediaQuery: be(
460
+ mediaQuery: he(
456
461
  "small",
457
- l
462
+ c
458
463
  )
459
- }) : "", p = o.animations && o.animations.find((R) => R.trigger === "hover");
464
+ }) : "", y = o.animations && o.animations.find((T) => T.trigger === "hover");
460
465
  let A = "";
461
- if (p) {
462
- const R = ((I = (g = p.steps) == null ? void 0 : g[1]) == null ? void 0 : I.styles) || {};
466
+ if (y) {
467
+ const T = ((k = (b = y.steps) == null ? void 0 : b[1]) == null ? void 0 : k.styles) || {};
463
468
  A = _({
464
469
  className: `${u}:hover`,
465
470
  styles: {
466
- ...R,
467
- transition: `all ${p.duration}s ${le(
468
- p.easing
471
+ ...T,
472
+ transition: `all ${y.duration}s ${re(
473
+ y.easing
469
474
  )}`,
470
- transitionDelay: p.delay ? `${p.delay}s` : "0s"
475
+ transitionDelay: y.delay ? `${y.delay}s` : "0s"
471
476
  }
472
477
  }) || "";
473
478
  }
474
479
  return [
475
480
  h,
476
- k,
477
- w,
481
+ p,
482
+ I,
478
483
  A
479
484
  ].join(" ");
480
485
  };
481
- return /* @__PURE__ */ c(C, { children: n() && t() ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(G, { id: "builderio-block", styles: n() }) }) : null });
486
+ return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
487
+ Q,
488
+ {
489
+ id: "builderio-block",
490
+ styles: n(),
491
+ nonce: e.context.nonce
492
+ }
493
+ ) }) : null });
482
494
  }
483
- function bt(e) {
495
+ function ht(e) {
484
496
  return e.charAt(0).toUpperCase() + e.slice(1);
485
497
  }
486
- const gt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => H({
498
+ const gt = (e) => `on${ht(e)}`, bt = (e, t) => (n) => H({
487
499
  code: e,
488
500
  context: t.context,
489
501
  localState: t.localState,
@@ -493,7 +505,7 @@ const gt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => H({
493
505
  isExpression: !1,
494
506
  enableCache: !0
495
507
  });
496
- function Be(e) {
508
+ function Ee(e) {
497
509
  var i;
498
510
  const t = {}, n = (i = e.block.actions) != null ? i : {};
499
511
  for (const o in n) {
@@ -510,7 +522,7 @@ function Be(e) {
510
522
  r = r.replace("on:", "");
511
523
  break;
512
524
  }
513
- t[r] = pt(a, e);
525
+ t[r] = bt(a, e);
514
526
  }
515
527
  return t;
516
528
  }
@@ -531,7 +543,7 @@ function ce({
531
543
  ...vt(e),
532
544
  ...e.properties,
533
545
  "builder-id": e.id,
534
- style: lt({
546
+ style: rt({
535
547
  block: e,
536
548
  context: t
537
549
  }),
@@ -544,15 +556,15 @@ function ce({
544
556
  });
545
557
  }
546
558
  function xt(e) {
547
- return /* @__PURE__ */ c(
548
- re,
559
+ return /* @__PURE__ */ l(
560
+ ae,
549
561
  {
550
562
  TagName: e.Wrapper,
551
563
  attributes: ce({
552
564
  block: e.block,
553
565
  context: e.context
554
566
  }),
555
- actionAttributes: Be({
567
+ actionAttributes: Ee({
556
568
  block: e.block,
557
569
  rootState: e.context.rootState,
558
570
  rootSetState: e.context.rootSetState,
@@ -564,14 +576,14 @@ function xt(e) {
564
576
  }
565
577
  );
566
578
  }
567
- function kt(e) {
579
+ function St(e) {
568
580
  function t() {
569
581
  return e.includeBlockProps ? {
570
582
  ...ce({
571
583
  block: e.block,
572
584
  context: e.context
573
585
  }),
574
- ...Be({
586
+ ...Ee({
575
587
  block: e.block,
576
588
  rootState: e.context.rootState,
577
589
  rootSetState: e.context.rootSetState,
@@ -580,9 +592,9 @@ function kt(e) {
580
592
  })
581
593
  } : {};
582
594
  }
583
- 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 });
584
596
  }
585
- const St = ({
597
+ const pt = ({
586
598
  componentOptions: e,
587
599
  builderBlock: t,
588
600
  context: n,
@@ -591,7 +603,7 @@ const St = ({
591
603
  isInteractive: a,
592
604
  contextValue: r
593
605
  }) => {
594
- const l = {
606
+ const c = {
595
607
  ...e,
596
608
  /**
597
609
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -610,15 +622,15 @@ const St = ({
610
622
  context: n,
611
623
  wrapperProps: e,
612
624
  includeBlockProps: o
613
- } : l;
625
+ } : c;
614
626
  };
615
627
  function ge(e) {
616
628
  var n;
617
- const t = e.isInteractive ? kt : e.componentRef;
618
- return /* @__PURE__ */ c(C, { children: e.componentRef ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(
629
+ const t = e.isInteractive ? St : e.componentRef;
630
+ return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
619
631
  t,
620
632
  {
621
- ...St({
633
+ ...pt({
622
634
  componentOptions: e.componentOptions,
623
635
  builderBlock: e.builderBlock,
624
636
  context: e.context,
@@ -628,8 +640,8 @@ function ge(e) {
628
640
  isInteractive: e.isInteractive,
629
641
  contextValue: e.context
630
642
  }),
631
- children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ c(
632
- X,
643
+ children: (n = e.blockChildren) == null ? void 0 : n.map((i) => /* @__PURE__ */ l(
644
+ G,
633
645
  {
634
646
  block: i,
635
647
  context: e.context,
@@ -641,10 +653,10 @@ function ge(e) {
641
653
  }
642
654
  ) }) : null });
643
655
  }
644
- function Ct(e) {
656
+ function kt(e) {
645
657
  const t = e.repeatContext;
646
- return /* @__PURE__ */ c(
647
- X,
658
+ return /* @__PURE__ */ l(
659
+ G,
648
660
  {
649
661
  block: e.block,
650
662
  context: t,
@@ -653,7 +665,7 @@ function Ct(e) {
653
665
  }
654
666
  );
655
667
  }
656
- function X(e) {
668
+ function G(e) {
657
669
  var s, d, m;
658
670
  const t = function() {
659
671
  return ct({
@@ -662,7 +674,7 @@ function X(e) {
662
674
  registeredComponents: e.registeredComponents
663
675
  });
664
676
  }, n = function() {
665
- return st({
677
+ return lt({
666
678
  block: e.block,
667
679
  context: e.context
668
680
  });
@@ -677,28 +689,28 @@ function X(e) {
677
689
  shouldEvaluateBindings: !0
678
690
  });
679
691
  }, o = function() {
680
- var k;
681
- return e.block.tagName === "a" || ((k = i().properties) == null ? void 0 : k.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
692
+ var p;
693
+ return e.block.tagName === "a" || ((p = i().properties) == null ? void 0 : p.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
682
694
  }, a = function() {
683
- var w, p;
684
- if ((w = e.block.repeat) != null && w.collection)
685
- return !!((p = n()) != null && p.length);
695
+ var I, y;
696
+ if ((I = e.block.repeat) != null && I.collection)
697
+ return !!((y = n()) != null && y.length);
686
698
  const h = "hide" in i() ? i().hide : !1;
687
699
  return ("show" in i() ? i().show : !0) && !h;
688
700
  }, r = function() {
689
- var k, w;
690
- return !((k = t()) != null && k.component) && !n() ? (w = i().children) != null ? w : [] : [];
691
- }, l = function() {
692
- var h, k, w, p;
701
+ var p, I;
702
+ return !((p = t()) != null && p.component) && !n() ? (I = i().children) != null ? I : [] : [];
703
+ }, c = function() {
704
+ var h, p, I, y;
693
705
  return {
694
706
  blockChildren: (h = i().children) != null ? h : [],
695
- componentRef: (k = t()) == null ? void 0 : k.component,
707
+ componentRef: (p = t()) == null ? void 0 : p.component,
696
708
  componentOptions: {
697
- ...Qe(i()),
698
- ...mt(t(), i()),
699
- ...ft(t(), e.context),
700
- ...dt(t(), e.linkComponent),
701
- ...ut(
709
+ ...Je(i()),
710
+ ...ut(t(), i()),
711
+ ...mt(t(), e.context),
712
+ ...st(t(), e.linkComponent),
713
+ ...dt(
702
714
  t(),
703
715
  e.registeredComponents
704
716
  )
@@ -707,27 +719,27 @@ function X(e) {
707
719
  linkComponent: e.linkComponent,
708
720
  registeredComponents: e.registeredComponents,
709
721
  builderBlock: i(),
710
- includeBlockProps: ((w = t()) == null ? void 0 : w.noWrap) === !0,
711
- isInteractive: !((p = t()) != null && p.isRSC)
722
+ includeBlockProps: ((I = t()) == null ? void 0 : I.noWrap) === !0,
723
+ isInteractive: !((y = t()) != null && y.isRSC)
712
724
  };
713
725
  };
714
- return /* @__PURE__ */ c(C, { children: a() ? /* @__PURE__ */ P(C, { children: [
715
- /* @__PURE__ */ c(ht, { block: e.block, context: e.context }),
716
- (s = t()) != null && s.noWrap ? /* @__PURE__ */ c(C, { children: /* @__PURE__ */ c(
726
+ return /* @__PURE__ */ l(w, { children: a() ? /* @__PURE__ */ E(w, { children: [
727
+ /* @__PURE__ */ l(ft, { block: e.block, context: e.context }),
728
+ (s = t()) != null && s.noWrap ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
717
729
  ge,
718
730
  {
719
- componentRef: l().componentRef,
720
- componentOptions: l().componentOptions,
721
- blockChildren: l().blockChildren,
722
- context: l().context,
723
- registeredComponents: l().registeredComponents,
724
- linkComponent: l().linkComponent,
725
- builderBlock: l().builderBlock,
726
- includeBlockProps: l().includeBlockProps,
727
- 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
728
740
  }
729
- ) }) : /* @__PURE__ */ c(C, { children: n() ? /* @__PURE__ */ c(C, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ c(
730
- Ct,
741
+ ) }) : /* @__PURE__ */ l(w, { children: n() ? /* @__PURE__ */ l(w, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ l(
742
+ kt,
731
743
  {
732
744
  repeatContext: u.context,
733
745
  block: u.block,
@@ -735,29 +747,29 @@ function X(e) {
735
747
  linkComponent: e.linkComponent
736
748
  },
737
749
  h
738
- )) }) : /* @__PURE__ */ P(
750
+ )) }) : /* @__PURE__ */ E(
739
751
  xt,
740
752
  {
741
753
  Wrapper: o(),
742
754
  block: i(),
743
755
  context: e.context,
744
756
  children: [
745
- /* @__PURE__ */ c(
757
+ /* @__PURE__ */ l(
746
758
  ge,
747
759
  {
748
- componentRef: l().componentRef,
749
- componentOptions: l().componentOptions,
750
- blockChildren: l().blockChildren,
751
- context: l().context,
752
- registeredComponents: l().registeredComponents,
753
- linkComponent: l().linkComponent,
754
- builderBlock: l().builderBlock,
755
- includeBlockProps: l().includeBlockProps,
756
- 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
757
769
  }
758
770
  ),
759
- (d = r()) == null ? void 0 : d.map((u) => /* @__PURE__ */ c(
760
- X,
771
+ (d = r()) == null ? void 0 : d.map((u) => /* @__PURE__ */ l(
772
+ G,
761
773
  {
762
774
  block: u,
763
775
  registeredComponents: e.registeredComponents,
@@ -771,7 +783,7 @@ function X(e) {
771
783
  ) })
772
784
  ] }) : null });
773
785
  }
774
- function It(e) {
786
+ function Ct(e) {
775
787
  function t() {
776
788
  var o;
777
789
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
@@ -802,8 +814,8 @@ function It(e) {
802
814
  "*"
803
815
  ));
804
816
  }
805
- return /* @__PURE__ */ P(C, { children: [
806
- /* @__PURE__ */ c(
817
+ return /* @__PURE__ */ E(w, { children: [
818
+ /* @__PURE__ */ l(
807
819
  e.BlocksWrapper,
808
820
  {
809
821
  className: t() + " props-blocks-wrapper-7cd1560e",
@@ -817,17 +829,17 @@ function It(e) {
817
829
  children: e.children
818
830
  }
819
831
  ),
820
- /* @__PURE__ */ c("style", { children: `.props-blocks-wrapper-7cd1560e {
832
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-7cd1560e {
821
833
  display: flex;
822
834
  flex-direction: column;
823
835
  align-items: stretch;
824
836
  }` })
825
837
  ] });
826
838
  }
827
- function se(e) {
839
+ function le(e) {
828
840
  var t, n, i;
829
- return /* @__PURE__ */ c(
830
- It,
841
+ return /* @__PURE__ */ l(
842
+ Ct,
831
843
  {
832
844
  blocks: e.blocks,
833
845
  parent: e.parent,
@@ -835,8 +847,8 @@ function se(e) {
835
847
  styleProp: e.styleProp,
836
848
  BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
837
849
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
838
- children: e.blocks ? /* @__PURE__ */ c(C, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ c(
839
- X,
850
+ children: e.blocks ? /* @__PURE__ */ l(w, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
851
+ G,
840
852
  {
841
853
  block: o,
842
854
  linkComponent: e.linkComponent,
@@ -849,67 +861,67 @@ function se(e) {
849
861
  );
850
862
  }
851
863
  const wt = (e) => `builder-columns ${e}-breakpoints`;
852
- function Tt(e) {
853
- var p, A;
854
- const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(g) {
855
- return g.link ? e.builderLinkComponent || "a" : "div";
856
- }, a = function(g) {
857
- var I;
858
- return ((I = n[g]) == null ? void 0 : I.width) || 100 / n.length;
859
- }, r = function(g) {
860
- const I = t * (n.length - 1) / n.length;
861
- return `calc(${a(g)}% - ${I}px)`;
862
- }, l = function({
863
- stackedStyle: g,
864
- desktopStyle: I
864
+ function It(e) {
865
+ var y, A;
866
+ const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(b) {
867
+ return b.link ? e.builderLinkComponent || "a" : "div";
868
+ }, a = function(b) {
869
+ var k;
870
+ return ((k = n[b]) == null ? void 0 : k.width) || 100 / n.length;
871
+ }, r = function(b) {
872
+ const k = a(b), T = t * (n.length - 1) * (k / 100);
873
+ return `calc(${k}% - ${T}px)`;
874
+ }, c = function({
875
+ stackedStyle: b,
876
+ desktopStyle: k
865
877
  }) {
866
- return i === "tablet" ? g : I;
878
+ return i === "tablet" ? b : k;
867
879
  }, s = function({
868
- stackedStyle: g,
869
- desktopStyle: I
880
+ stackedStyle: b,
881
+ desktopStyle: k
870
882
  }) {
871
- return i === "never" ? I : g;
883
+ return i === "never" ? k : b;
872
884
  }, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
873
885
  return {
874
886
  "--flex-dir": d,
875
- "--flex-dir-tablet": l({
887
+ "--flex-dir-tablet": c({
876
888
  stackedStyle: d,
877
889
  desktopStyle: "row"
878
890
  })
879
891
  };
880
- }, u = function(g) {
881
- const I = g === 0 ? 0 : t, R = r(g), E = `${I}px`, O = "100%", D = 0;
892
+ }, u = function(b) {
893
+ const k = b === 0 ? 0 : t, T = r(b), B = `${k}px`, O = "100%", D = 0;
882
894
  return {
883
895
  ...{
884
896
  display: "flex",
885
897
  flexDirection: "column",
886
898
  alignItems: "stretch"
887
899
  },
888
- width: R,
889
- ["marginLeft"]: E,
900
+ width: T,
901
+ ["marginLeft"]: B,
890
902
  "--column-width-mobile": s({
891
903
  stackedStyle: O,
892
- desktopStyle: R
904
+ desktopStyle: T
893
905
  }),
894
906
  "--column-margin-left-mobile": s({
895
907
  stackedStyle: D,
896
- desktopStyle: E
908
+ desktopStyle: B
897
909
  }),
898
- "--column-width-tablet": l({
910
+ "--column-width-tablet": c({
899
911
  stackedStyle: O,
900
- desktopStyle: R
912
+ desktopStyle: T
901
913
  }),
902
- "--column-margin-left-tablet": l({
914
+ "--column-margin-left-tablet": c({
903
915
  stackedStyle: D,
904
- desktopStyle: E
916
+ desktopStyle: B
905
917
  })
906
918
  };
907
- }, h = function(g) {
908
- var R, E;
909
- return Pe(
910
- ((E = (R = e.builderContext.content) == null ? void 0 : R.meta) == null ? void 0 : E.breakpoints) || {}
911
- )[g].max;
912
- }, k = function() {
919
+ }, h = function(b) {
920
+ var T, B;
921
+ return Re(
922
+ ((B = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : B.breakpoints) || {}
923
+ )[b].max;
924
+ }, p = function() {
913
925
  return `
914
926
  @media (max-width: ${h("medium")}px) {
915
927
  .${e.builderBlock.id}-breakpoints {
@@ -935,33 +947,40 @@ function Tt(e) {
935
947
  }
936
948
  },
937
949
  `;
938
- }, w = function(g, I) {
950
+ }, I = function(b, k) {
939
951
  return {
940
- ...g.link ? {
941
- href: g.link
952
+ ...b.link ? {
953
+ href: b.link
942
954
  } : {},
943
955
  [j()]: "builder-column",
944
- style: Te(u(I))
956
+ style: Ie(u(k))
945
957
  };
946
958
  };
947
- return /* @__PURE__ */ P(C, { children: [
948
- /* @__PURE__ */ P(
959
+ return /* @__PURE__ */ E(w, { children: [
960
+ /* @__PURE__ */ E(
949
961
  "div",
950
962
  {
951
- className: wt((p = e.builderBlock) == null ? void 0 : p.id) + " div-eeca3604",
963
+ className: wt((y = e.builderBlock) == null ? void 0 : y.id) + " div-c89348d2",
952
964
  style: m(),
953
965
  children: [
954
- /* @__PURE__ */ c(G, { id: "builderio-columns", styles: k() }),
955
- (A = e.columns) == null ? void 0 : A.map((x, g) => /* @__PURE__ */ c(
956
- re,
966
+ /* @__PURE__ */ l(
967
+ Q,
957
968
  {
958
- TagName: o(x),
969
+ id: "builderio-columns",
970
+ styles: p(),
971
+ nonce: e.builderContext.nonce
972
+ }
973
+ ),
974
+ (A = e.columns) == null ? void 0 : A.map((S, b) => /* @__PURE__ */ l(
975
+ ae,
976
+ {
977
+ TagName: o(S),
959
978
  actionAttributes: {},
960
- attributes: w(x, g),
961
- children: /* @__PURE__ */ c(
962
- se,
979
+ attributes: I(S, b),
980
+ children: /* @__PURE__ */ l(
981
+ le,
963
982
  {
964
- path: `component.options.columns.${g}.blocks`,
983
+ path: `component.options.columns.${b}.blocks`,
965
984
  parent: e.builderBlock.id,
966
985
  styleProp: {
967
986
  flexGrow: "1"
@@ -969,56 +988,56 @@ function Tt(e) {
969
988
  context: e.builderContext,
970
989
  registeredComponents: e.builderComponents,
971
990
  linkComponent: e.builderLinkComponent,
972
- blocks: x.blocks
991
+ blocks: S.blocks
973
992
  }
974
993
  )
975
994
  },
976
- g
995
+ b
977
996
  ))
978
997
  ]
979
998
  }
980
999
  ),
981
- /* @__PURE__ */ c("style", { children: `.div-eeca3604 {
1000
+ /* @__PURE__ */ l("style", { children: `.div-c89348d2 {
982
1001
  display: flex;
983
1002
  line-height: normal;
984
1003
  }` })
985
1004
  ] });
986
1005
  }
987
- function Rt(e) {
988
- return /* @__PURE__ */ c("span", { children: e.children });
1006
+ function Tt(e) {
1007
+ return /* @__PURE__ */ l("span", { children: e.children });
989
1008
  }
990
- function pe(e) {
1009
+ function be(e) {
991
1010
  return e.replace(/http(s)?:/, "");
992
1011
  }
993
- function Pt(e = "", t, n) {
1012
+ function Rt(e = "", t, n) {
994
1013
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
995
1014
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
996
1015
  }
997
- function Bt(e, t) {
1016
+ function Et(e, t) {
998
1017
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
999
1018
  return e;
1000
1019
  if (t === "master")
1001
- return pe(e);
1020
+ return be(e);
1002
1021
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1003
1022
  if (n) {
1004
1023
  const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1005
- return pe(`${i[0]}_${a}${o}`);
1024
+ return be(`${i[0]}_${a}${o}`);
1006
1025
  }
1007
1026
  return null;
1008
1027
  }
1009
- function ne(e) {
1028
+ function te(e) {
1010
1029
  if (!e)
1011
1030
  return e;
1012
1031
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
1013
1032
  if (e.match(/builder\.io/)) {
1014
1033
  let n = e;
1015
1034
  const i = Number(e.split("?width=")[1]);
1016
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Pt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1035
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1017
1036
  }
1018
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Bt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
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;
1019
1038
  }
1020
- function Et(e) {
1021
- var o, a, r, l, s, d;
1039
+ function Pt(e) {
1040
+ var o, a, r, c, s, d;
1022
1041
  function t() {
1023
1042
  var h;
1024
1043
  const u = e.image || e.src;
@@ -1028,10 +1047,10 @@ function Et(e) {
1028
1047
  return e.srcset;
1029
1048
  if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
1030
1049
  if (!e.srcset.includes(e.image.split("?")[0]))
1031
- return console.debug("Removed given srcset"), ne(u);
1050
+ return console.debug("Removed given srcset"), te(u);
1032
1051
  } else if (e.image && !e.srcset)
1033
- return ne(u);
1034
- return ne(u);
1052
+ return te(u);
1053
+ return te(u);
1035
1054
  }
1036
1055
  function n() {
1037
1056
  var m;
@@ -1047,11 +1066,11 @@ function Et(e) {
1047
1066
  };
1048
1067
  return e.aspectRatio ? m : void 0;
1049
1068
  }
1050
- return /* @__PURE__ */ P(C, { children: [
1051
- /* @__PURE__ */ P(C, { children: [
1052
- /* @__PURE__ */ P("picture", { children: [
1053
- n() ? /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) : null,
1054
- /* @__PURE__ */ c(
1069
+ return /* @__PURE__ */ E(w, { children: [
1070
+ /* @__PURE__ */ E(w, { children: [
1071
+ /* @__PURE__ */ E("picture", { children: [
1072
+ n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1073
+ /* @__PURE__ */ l(
1055
1074
  "img",
1056
1075
  {
1057
1076
  loading: e.highPriority ? "eager" : "lazy",
@@ -1070,7 +1089,7 @@ function Et(e) {
1070
1089
  }
1071
1090
  )
1072
1091
  ] }),
1073
- e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ c(
1092
+ e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
1074
1093
  "div",
1075
1094
  {
1076
1095
  className: "builder-image-sizer div-ac3dff4a",
@@ -1079,10 +1098,10 @@ function Et(e) {
1079
1098
  }
1080
1099
  }
1081
1100
  ) : null,
1082
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ c(C, { children: e.children }) : null,
1083
- !e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ c("div", { className: "div-ac3dff4a-2", children: e.children }) : null
1101
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(w, { children: e.children }) : null,
1102
+ !e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ l("div", { className: "div-ac3dff4a-2", children: e.children }) : null
1084
1103
  ] }),
1085
- /* @__PURE__ */ c("style", { children: `.img-ac3dff4a {
1104
+ /* @__PURE__ */ l("style", { children: `.img-ac3dff4a {
1086
1105
  opacity: 1;
1087
1106
  transition: opacity 0.2s ease-in-out;
1088
1107
  }.div-ac3dff4a {
@@ -1101,8 +1120,8 @@ function Et(e) {
1101
1120
  }` })
1102
1121
  ] });
1103
1122
  }
1104
- function Wt(e) {
1105
- return /* @__PURE__ */ c(
1123
+ function Bt(e) {
1124
+ return /* @__PURE__ */ l(
1106
1125
  "section",
1107
1126
  {
1108
1127
  ...e.attributes,
@@ -1122,7 +1141,7 @@ function Wt(e) {
1122
1141
  }
1123
1142
  );
1124
1143
  }
1125
- const Nt = {
1144
+ const Wt = {
1126
1145
  name: "Core:Button",
1127
1146
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1128
1147
  defaultStyles: {
@@ -1156,12 +1175,9 @@ const Nt = {
1156
1175
  static: !0,
1157
1176
  noWrap: !0,
1158
1177
  shouldReceiveBuilderProps: {
1159
- builderBlock: !1,
1160
- builderContext: !1,
1161
- builderComponents: !1,
1162
1178
  builderLinkComponent: !0
1163
1179
  }
1164
- }, At = {
1180
+ }, Nt = {
1165
1181
  // TODO: ways to statically preprocess JSON for references, functions, etc
1166
1182
  name: "Columns",
1167
1183
  isRSC: !0,
@@ -1340,7 +1356,7 @@ const Nt = {
1340
1356
  });
1341
1357
  }
1342
1358
  const n = e.get("columns");
1343
- Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((l, s) => l + s.get("width"), 0) !== 100) && t();
1359
+ Array.isArray(n) && n.find((o) => o.get("width")) && (n.find((a) => !a.get("width")) || n.reduce((c, s) => c + s.get("width"), 0) !== 100) && t();
1344
1360
  }
1345
1361
  }, {
1346
1362
  name: "space",
@@ -1368,19 +1384,13 @@ const Nt = {
1368
1384
  builderComponents: !0,
1369
1385
  builderLinkComponent: !0
1370
1386
  }
1371
- }, Vt = {
1372
- shouldReceiveBuilderProps: {
1373
- builderBlock: !1,
1374
- builderContext: !1,
1375
- builderComponents: !1,
1376
- builderLinkComponent: !1
1377
- },
1387
+ }, At = {
1378
1388
  name: "Fragment",
1379
1389
  static: !0,
1380
1390
  hidden: !0,
1381
1391
  canHaveChildren: !0,
1382
1392
  noWrap: !0
1383
- }, $t = {
1393
+ }, Vt = {
1384
1394
  name: "Image",
1385
1395
  static: !0,
1386
1396
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -1400,7 +1410,7 @@ const Nt = {
1400
1410
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1401
1411
  onChange: (e) => {
1402
1412
  e.delete("srcset"), e.delete("noWebp");
1403
- function n(r, l = 6e4) {
1413
+ function n(r, c = 6e4) {
1404
1414
  return new Promise((s, d) => {
1405
1415
  const m = document.createElement("img");
1406
1416
  let u = !1;
@@ -1410,7 +1420,7 @@ const Nt = {
1410
1420
  console.warn("Image load failed", h.error), d(h.error);
1411
1421
  }), m.src = r, setTimeout(() => {
1412
1422
  u || d(new Error("Image load timed out"));
1413
- }, l);
1423
+ }, c);
1414
1424
  });
1415
1425
  }
1416
1426
  function i(r) {
@@ -1421,8 +1431,8 @@ const Nt = {
1421
1431
  r.type.includes("svg") && e.set("noWebp", !0);
1422
1432
  }), o && (!a || a === 0.7041))
1423
1433
  return n(o).then((r) => {
1424
- const l = e.get("aspectRatio");
1425
- e.get("image") === o && (!l || l === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1434
+ const c = e.get("aspectRatio");
1435
+ e.get("image") === o && (!c || c === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1426
1436
  });
1427
1437
  }
1428
1438
  }, {
@@ -1486,18 +1496,9 @@ const Nt = {
1486
1496
  defaultValue: 0.7041
1487
1497
  }],
1488
1498
  shouldReceiveBuilderProps: {
1489
- builderBlock: !0,
1490
- builderContext: !1,
1491
- builderComponents: !1,
1492
- builderLinkComponent: !1
1499
+ builderBlock: !0
1493
1500
  }
1494
- }, Lt = {
1495
- shouldReceiveBuilderProps: {
1496
- builderBlock: !1,
1497
- builderContext: !1,
1498
- builderComponents: !1,
1499
- builderLinkComponent: !1
1500
- },
1501
+ }, $t = {
1501
1502
  name: "Core:Section",
1502
1503
  static: !0,
1503
1504
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1550,15 +1551,12 @@ const Nt = {
1550
1551
  defaultValue: "children"
1551
1552
  }],
1552
1553
  shouldReceiveBuilderProps: {
1553
- builderBlock: !1,
1554
- builderContext: !0,
1555
- builderComponents: !1,
1556
- builderLinkComponent: !1
1554
+ builderContext: !0
1557
1555
  }
1558
1556
  };
1559
- function Ot(e) {
1557
+ function Lt(e) {
1560
1558
  var t, n, i;
1561
- return /* @__PURE__ */ c(
1559
+ return /* @__PURE__ */ l(
1562
1560
  "div",
1563
1561
  {
1564
1562
  style: {
@@ -1567,8 +1565,8 @@ function Ot(e) {
1567
1565
  ...!((t = e.builderContext.context) != null && t.symbolId) && {
1568
1566
  "builder-slot": e.name
1569
1567
  },
1570
- children: /* @__PURE__ */ c(
1571
- se,
1568
+ children: /* @__PURE__ */ l(
1569
+ le,
1572
1570
  {
1573
1571
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1574
1572
  path: `symbol.data.${e.name}`,
@@ -1579,7 +1577,7 @@ function Ot(e) {
1579
1577
  }
1580
1578
  );
1581
1579
  }
1582
- const Dt = {
1580
+ const Ot = {
1583
1581
  name: "Symbol",
1584
1582
  noWrap: !0,
1585
1583
  static: !0,
@@ -1618,12 +1616,9 @@ const Dt = {
1618
1616
  builderComponents: !0,
1619
1617
  builderLinkComponent: !0
1620
1618
  }
1621
- }, jt = {
1619
+ }, Dt = {
1622
1620
  shouldReceiveBuilderProps: {
1623
- builderBlock: !1,
1624
- builderContext: !1,
1625
- builderComponents: !1,
1626
- builderLinkComponent: !1
1621
+ builderBlock: !1
1627
1622
  },
1628
1623
  name: "Text",
1629
1624
  static: !0,
@@ -1643,9 +1638,9 @@ const Dt = {
1643
1638
  textAlign: "center"
1644
1639
  }
1645
1640
  };
1646
- function Ht(e) {
1641
+ function jt(e) {
1647
1642
  var t;
1648
- return /* @__PURE__ */ c(
1643
+ return /* @__PURE__ */ l(
1649
1644
  "div",
1650
1645
  {
1651
1646
  className: "builder-text",
@@ -1656,13 +1651,7 @@ function Ht(e) {
1656
1651
  }
1657
1652
  );
1658
1653
  }
1659
- const Mt = {
1660
- shouldReceiveBuilderProps: {
1661
- builderBlock: !1,
1662
- builderContext: !1,
1663
- builderComponents: !1,
1664
- builderLinkComponent: !1
1665
- },
1654
+ const Ht = {
1666
1655
  name: "Custom Code",
1667
1656
  static: !0,
1668
1657
  requiredPermissions: ["editCode"],
@@ -1685,11 +1674,11 @@ const Mt = {
1685
1674
  advanced: !0
1686
1675
  }]
1687
1676
  };
1688
- function Ut(e) {
1689
- const t = ae(null), [n, i] = N(() => []), [o, a] = N(() => []);
1690
- return T(() => {
1691
- var l;
1692
- if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
1677
+ function Mt(e) {
1678
+ const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []);
1679
+ return R(() => {
1680
+ var c;
1681
+ if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
1693
1682
  return;
1694
1683
  const r = t.current.getElementsByTagName("script");
1695
1684
  for (let s = 0; s < r.length; s++) {
@@ -1714,7 +1703,7 @@ function Ut(e) {
1714
1703
  }
1715
1704
  }
1716
1705
  }
1717
- }, []), /* @__PURE__ */ c(
1706
+ }, []), /* @__PURE__ */ l(
1718
1707
  "div",
1719
1708
  {
1720
1709
  ref: t,
@@ -1723,13 +1712,7 @@ function Ut(e) {
1723
1712
  }
1724
1713
  );
1725
1714
  }
1726
- const _t = {
1727
- shouldReceiveBuilderProps: {
1728
- builderBlock: !1,
1729
- builderContext: !1,
1730
- builderComponents: !1,
1731
- builderLinkComponent: !1
1732
- },
1715
+ const Ut = {
1733
1716
  name: "Embed",
1734
1717
  static: !0,
1735
1718
  inputs: [{
@@ -1744,9 +1727,9 @@ const _t = {
1744
1727
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1745
1728
  hideFromUI: !0
1746
1729
  }]
1747
- }, Kt = ["text/javascript", "application/javascript", "application/ecmascript"], zt = (e) => Kt.includes(e.type);
1748
- function qt(e) {
1749
- const t = ae(null), [n, i] = N(() => []), [o, a] = N(() => []), [r, l] = N(() => !1);
1730
+ }, _t = ["text/javascript", "application/javascript", "application/ecmascript"], Kt = (e) => _t.includes(e.type);
1731
+ function zt(e) {
1732
+ const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []), [r, c] = N(() => !1);
1750
1733
  function s() {
1751
1734
  if (!t.current || !t.current.getElementsByTagName)
1752
1735
  return;
@@ -1757,7 +1740,7 @@ function qt(e) {
1757
1740
  n.push(u.src);
1758
1741
  const h = document.createElement("script");
1759
1742
  h.async = !0, h.src = u.src, document.head.appendChild(h);
1760
- } else if (zt(u) && !o.includes(u.innerText))
1743
+ } else if (Kt(u) && !o.includes(u.innerText))
1761
1744
  try {
1762
1745
  o.push(u.innerText), new Function(u.innerText)();
1763
1746
  } catch (h) {
@@ -1765,9 +1748,9 @@ function qt(e) {
1765
1748
  }
1766
1749
  }
1767
1750
  }
1768
- return T(() => {
1769
- t.current && !r && (l(!0), s());
1770
- }, [t.current, r]), /* @__PURE__ */ c(
1751
+ return R(() => {
1752
+ t.current && !r && (c(!0), s());
1753
+ }, [t.current, r]), /* @__PURE__ */ l(
1771
1754
  "div",
1772
1755
  {
1773
1756
  className: "builder-embed",
@@ -1776,13 +1759,7 @@ function qt(e) {
1776
1759
  }
1777
1760
  );
1778
1761
  }
1779
- const Yt = {
1780
- shouldReceiveBuilderProps: {
1781
- builderBlock: !1,
1782
- builderContext: !1,
1783
- builderComponents: !1,
1784
- builderLinkComponent: !1
1785
- },
1762
+ const qt = {
1786
1763
  // friendlyName?
1787
1764
  name: "Raw:Img",
1788
1765
  hideFromInsertMenu: !0,
@@ -1797,8 +1774,8 @@ const Yt = {
1797
1774
  noWrap: !0,
1798
1775
  static: !0
1799
1776
  };
1800
- function Jt(e) {
1801
- return /* @__PURE__ */ c(
1777
+ function Yt(e) {
1778
+ return /* @__PURE__ */ l(
1802
1779
  "img",
1803
1780
  {
1804
1781
  style: {
@@ -1812,7 +1789,7 @@ function Jt(e) {
1812
1789
  V() && e.imgSrc || "default-key"
1813
1790
  );
1814
1791
  }
1815
- const Qt = {
1792
+ const Jt = {
1816
1793
  name: "Video",
1817
1794
  canHaveChildren: !0,
1818
1795
  defaultStyles: {
@@ -1894,14 +1871,11 @@ const Qt = {
1894
1871
  advanced: !0
1895
1872
  }],
1896
1873
  shouldReceiveBuilderProps: {
1897
- builderBlock: !0,
1898
- builderContext: !1,
1899
- builderComponents: !1,
1900
- builderLinkComponent: !1
1874
+ builderBlock: !0
1901
1875
  }
1902
1876
  };
1903
- function Gt(e) {
1904
- var i, o, a, r, l, s, d;
1877
+ function Qt(e) {
1878
+ var i, o, a, r, c, s, d;
1905
1879
  function t() {
1906
1880
  return {
1907
1881
  ...e.autoPlay === !0 ? {
@@ -1926,14 +1900,14 @@ function Gt(e) {
1926
1900
  ...t()
1927
1901
  };
1928
1902
  }
1929
- return /* @__PURE__ */ P(
1903
+ return /* @__PURE__ */ E(
1930
1904
  "div",
1931
1905
  {
1932
1906
  style: {
1933
1907
  position: "relative"
1934
1908
  },
1935
1909
  children: [
1936
- /* @__PURE__ */ c(
1910
+ /* @__PURE__ */ l(
1937
1911
  "video",
1938
1912
  {
1939
1913
  className: "builder-video",
@@ -1955,10 +1929,10 @@ function Gt(e) {
1955
1929
  },
1956
1930
  src: e.video || "no-src",
1957
1931
  poster: e.posterImage,
1958
- children: e.lazyLoad ? null : /* @__PURE__ */ c("source", { type: "video/mp4", src: e.video })
1932
+ children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
1959
1933
  }
1960
1934
  ),
1961
- e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ c(
1935
+ e.aspectRatio && !(e.fitContent && ((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length)) ? /* @__PURE__ */ l(
1962
1936
  "div",
1963
1937
  {
1964
1938
  style: {
@@ -1969,7 +1943,7 @@ function Gt(e) {
1969
1943
  }
1970
1944
  }
1971
1945
  ) : null,
1972
- (l = (r = e.builderBlock) == null ? void 0 : r.children) != null && l.length && e.fitContent ? /* @__PURE__ */ c(
1946
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(
1973
1947
  "div",
1974
1948
  {
1975
1949
  style: {
@@ -1980,7 +1954,7 @@ function Gt(e) {
1980
1954
  children: e.children
1981
1955
  }
1982
1956
  ) : null,
1983
- (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ c(
1957
+ (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(
1984
1958
  "div",
1985
1959
  {
1986
1960
  style: {
@@ -2001,43 +1975,43 @@ function Gt(e) {
2001
1975
  }
2002
1976
  );
2003
1977
  }
2004
- const Xt = () => [{
2005
- component: Ut,
2006
- ...Mt
1978
+ const Gt = () => [{
1979
+ component: Mt,
1980
+ ...Ht
2007
1981
  }, {
2008
- component: qt,
2009
- ..._t
1982
+ component: zt,
1983
+ ...Ut
2010
1984
  }, {
2011
- component: Jt,
2012
- ...Yt
1985
+ component: Yt,
1986
+ ...qt
2013
1987
  }, {
2014
- component: Gt,
2015
- ...Qt
1988
+ component: Qt,
1989
+ ...Jt
2016
1990
  }], ye = () => [{
2017
- component: Je,
1991
+ component: Ye,
1992
+ ...Wt
1993
+ }, {
1994
+ component: It,
2018
1995
  ...Nt
2019
1996
  }, {
2020
1997
  component: Tt,
2021
1998
  ...At
2022
1999
  }, {
2023
- component: Rt,
2000
+ component: Pt,
2024
2001
  ...Vt
2025
2002
  }, {
2026
- component: Et,
2003
+ component: Bt,
2027
2004
  ...$t
2028
2005
  }, {
2029
- component: Wt,
2030
- ...Lt
2031
- }, {
2032
- component: Ot,
2006
+ component: Lt,
2033
2007
  ...Ft
2034
2008
  }, {
2035
- component: Pn,
2036
- ...Dt
2009
+ component: Rn,
2010
+ ...Ot
2037
2011
  }, {
2038
- component: Ht,
2039
- ...jt
2040
- }, ...Xt()], Zt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2012
+ component: jt,
2013
+ ...Dt
2014
+ }, ...Gt()], Xt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2041
2015
  function getAndSetVariantId() {
2042
2016
  function setCookie(name, value, days) {
2043
2017
  let expires = '';
@@ -2093,7 +2067,7 @@ const Xt = () => [{
2093
2067
  }).join('');
2094
2068
  styleEl.innerHTML = newStyleStr;
2095
2069
  }
2096
- }`, en = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2070
+ }`, Zt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2097
2071
  if (!navigator.cookieEnabled) {
2098
2072
  return;
2099
2073
  }
@@ -2127,35 +2101,36 @@ const Xt = () => [{
2127
2101
  thisScriptEl?.remove();
2128
2102
  }
2129
2103
  return;
2130
- }`, Ee = "builderIoAbTest", We = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2104
+ }`, Pe = "builderIoAbTest", Be = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2131
2105
  ...t,
2132
2106
  testVariationId: t.id,
2133
2107
  id: e == null ? void 0 : e.id
2134
- })), tn = ({
2108
+ })), en = ({
2135
2109
  canTrack: e,
2136
2110
  content: t
2137
- }) => !(!(K(t).length > 0) || !e || F()), nn = (e) => e === "react" || e === "reactNative", Ne = nn(M), on = () => `
2138
- window.${Ee} = ${Zt}
2139
- window.${We} = ${en}
2140
- `, an = (e, t) => `
2141
- window.${Ee}(
2142
- "${t}",${JSON.stringify(e)}, ${Ne}
2143
- )`, rn = ({
2111
+ }) => !(!(K(t).length > 0) || !e || L()), tn = (e) => e === "react" || e === "reactNative", We = tn(M), nn = () => `
2112
+ window.${Pe} = ${Xt}
2113
+ window.${Be} = ${Zt}
2114
+ `, on = (e, t) => `
2115
+ window.${Pe}(
2116
+ "${t}",${JSON.stringify(e)}, ${We}
2117
+ )`, an = ({
2144
2118
  contentId: e,
2145
2119
  variationId: t
2146
- }) => `window.${We}(
2147
- "${t}", "${e}", ${Ne}
2120
+ }) => `window.${Be}(
2121
+ "${t}", "${e}", ${We}
2148
2122
  )`;
2149
- function ie(e) {
2150
- return /* @__PURE__ */ c(
2123
+ function ne(e) {
2124
+ return /* @__PURE__ */ l(
2151
2125
  "script",
2152
2126
  {
2153
2127
  dangerouslySetInnerHTML: { __html: e.scriptStr },
2154
- "data-id": e.id
2128
+ "data-id": e.id,
2129
+ nonce: e.nonce || ""
2155
2130
  }
2156
2131
  );
2157
2132
  }
2158
- const ln = Ke({
2133
+ const rn = _e({
2159
2134
  content: null,
2160
2135
  context: {},
2161
2136
  localState: void 0,
@@ -2167,7 +2142,8 @@ const ln = Ke({
2167
2142
  componentInfos: {},
2168
2143
  inheritedStyles: {},
2169
2144
  BlocksWrapper: "div",
2170
- BlocksWrapperProps: {}
2145
+ BlocksWrapperProps: {},
2146
+ nonce: ""
2171
2147
  });
2172
2148
  function ve(e) {
2173
2149
  return Math.round(e * 1e3) / 1e3;
@@ -2183,7 +2159,7 @@ const cn = (e, t, n = !0) => {
2183
2159
  return i;
2184
2160
  } while (i = i.parentElement);
2185
2161
  return null;
2186
- }, sn = (e) => cn(e, (t) => {
2162
+ }, ln = (e) => cn(e, (t) => {
2187
2163
  const n = t.getAttribute("builder-id") || t.id;
2188
2164
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2189
2165
  }), xe = ({
@@ -2195,8 +2171,8 @@ const cn = (e, t, n = !0) => {
2195
2171
  x: a,
2196
2172
  y: r
2197
2173
  };
2198
- }, dn = (e) => {
2199
- const t = e.target, n = t && sn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2174
+ }, sn = (e) => {
2175
+ const t = e.target, n = t && ln(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2200
2176
  return {
2201
2177
  targetBuilderElement: i || void 0,
2202
2178
  metadata: {
@@ -2212,13 +2188,13 @@ const cn = (e, t, n = !0) => {
2212
2188
  }
2213
2189
  };
2214
2190
  };
2215
- async function un({
2191
+ async function dn({
2216
2192
  key: e,
2217
2193
  value: t
2218
2194
  }) {
2219
2195
  return Fe(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
2220
2196
  }
2221
- function ke(e, ...t) {
2197
+ function Se(e, ...t) {
2222
2198
  const n = Object(e);
2223
2199
  for (let i = 1; i < arguments.length; i++) {
2224
2200
  const o = arguments[i];
@@ -2228,31 +2204,31 @@ function ke(e, ...t) {
2228
2204
  }
2229
2205
  return n;
2230
2206
  }
2231
- function mn(e) {
2207
+ function un(e) {
2232
2208
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
2233
2209
  }
2234
- function fn(e, t) {
2235
- const n = hn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
2236
- for (const l of r)
2210
+ function mn(e, t) {
2211
+ const n = fn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
2212
+ for (const c of r)
2237
2213
  for (const s of n)
2238
- s in l || (l[s] = i[s]);
2214
+ s in c || (c[s] = i[s]);
2239
2215
  }
2240
- function hn(e) {
2216
+ function fn(e) {
2241
2217
  const t = [];
2242
2218
  for (const n of e.steps)
2243
2219
  for (const i in n.styles)
2244
2220
  t.indexOf(i) === -1 && t.push(i);
2245
2221
  return t;
2246
2222
  }
2247
- function bn(e) {
2223
+ function hn(e) {
2248
2224
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
2249
2225
  if (!t.length) {
2250
- mn(e.elementId || e.id || "");
2226
+ un(e.elementId || e.id || "");
2251
2227
  return;
2252
2228
  }
2253
2229
  Array.from(t).forEach((n) => {
2254
- fn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ke(n.style, e.steps[0].styles), setTimeout(() => {
2255
- n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ke(n.style, e.steps[1].styles), setTimeout(() => {
2230
+ mn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Se(n.style, e.steps[0].styles), setTimeout(() => {
2231
+ n.style.transition = `all ${e.duration}s ${re(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Se(n.style, e.steps[1].styles), setTimeout(() => {
2256
2232
  n.style.transition = "", n.style.transitionDelay = "";
2257
2233
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
2258
2234
  });
@@ -2270,21 +2246,21 @@ font-display: fallback;
2270
2246
  font-weight: 400;
2271
2247
  }
2272
2248
  `.trim()), e.files)
2273
- for (const l in e.files) {
2274
- if (!(String(Number(l)) === l))
2249
+ for (const c in e.files) {
2250
+ if (!(String(Number(c)) === c))
2275
2251
  continue;
2276
- const d = e.files[l];
2252
+ const d = e.files[c];
2277
2253
  d && d !== i && (o += `
2278
2254
  @font-face {
2279
2255
  font-family: "${t}";
2280
2256
  src: url('${d}') format('woff2');
2281
2257
  font-display: fallback;
2282
- font-weight: ${l};
2258
+ font-weight: ${c};
2283
2259
  }
2284
2260
  `.trim());
2285
2261
  }
2286
2262
  return o;
2287
- }, pn = ({
2263
+ }, bn = ({
2288
2264
  customFonts: e
2289
2265
  }) => {
2290
2266
  var t;
@@ -2309,38 +2285,38 @@ font-weight: ${l};
2309
2285
  text-align: inherit;
2310
2286
  font-family: inherit;
2311
2287
  }
2312
- `, xn = (e) => e ? "" : vn, kn = (e) => `variant-${e}`;
2313
- function Sn(e) {
2314
- var E, O, D, Z, ee, de, ue;
2315
- const t = ae(null);
2316
- function n(b) {
2317
- var y, v;
2288
+ `, xn = (e) => e ? "" : vn, Sn = (e) => `variant-${e}`;
2289
+ function pn(e) {
2290
+ var B, O, D, X, Z, se, de;
2291
+ const t = oe(null);
2292
+ function n(g) {
2293
+ var v, x;
2318
2294
  const f = {
2319
2295
  ...e.builderContextSignal.rootState,
2320
- ...b
2296
+ ...g
2321
2297
  };
2322
- e.builderContextSignal.rootSetState ? (v = (y = e.builderContextSignal).rootSetState) == null || v.call(y, f) : e.builderContextSignal.rootState = f;
2298
+ e.builderContextSignal.rootSetState ? (x = (v = e.builderContextSignal).rootSetState) == null || x.call(v, f) : e.builderContextSignal.rootState = f;
2323
2299
  }
2324
- function i(b) {
2325
- var y, v, S, B, U;
2300
+ function i(g) {
2301
+ var v, x, C, P, U;
2326
2302
  const f = {
2327
2303
  ...e.builderContextSignal.content,
2328
- ...b,
2304
+ ...g,
2329
2305
  data: {
2330
- ...(y = e.builderContextSignal.content) == null ? void 0 : y.data,
2331
- ...b == null ? void 0 : b.data
2306
+ ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
2307
+ ...g == null ? void 0 : g.data
2332
2308
  },
2333
2309
  meta: {
2334
- ...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
2335
- ...b == null ? void 0 : b.meta,
2336
- breakpoints: ((S = b == null ? void 0 : b.meta) == null ? void 0 : S.breakpoints) || ((U = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : U.breakpoints)
2310
+ ...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
2311
+ ...g == null ? void 0 : g.meta,
2312
+ breakpoints: ((C = g == null ? void 0 : g.meta) == null ? void 0 : C.breakpoints) || ((U = (P = e.builderContextSignal.content) == null ? void 0 : P.meta) == null ? void 0 : U.breakpoints)
2337
2313
  }
2338
2314
  };
2339
- un({
2315
+ dn({
2340
2316
  value: f,
2341
2317
  key: f.id
2342
2318
  }).then(() => {
2343
- R.refresh();
2319
+ T.refresh();
2344
2320
  });
2345
2321
  }
2346
2322
  function o() {
@@ -2352,34 +2328,34 @@ function Sn(e) {
2352
2328
  const [a, r] = N(
2353
2329
  () => e.contentWrapper || "div"
2354
2330
  );
2355
- function l(b) {
2356
- return De({
2331
+ function c(g) {
2332
+ return Oe({
2357
2333
  model: e.model,
2358
2334
  trustedHosts: e.trustedHosts,
2359
2335
  callbacks: {
2360
2336
  configureSdk: (f) => {
2361
- var S;
2362
- const { breakpoints: y, contentId: v } = f;
2363
- !v || v !== ((S = e.builderContextSignal.content) == null ? void 0 : S.id) || y && i({
2337
+ var C;
2338
+ const { breakpoints: v, contentId: x } = f;
2339
+ !x || x !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || v && i({
2364
2340
  meta: {
2365
- breakpoints: y
2341
+ breakpoints: v
2366
2342
  }
2367
2343
  });
2368
2344
  },
2369
2345
  animation: (f) => {
2370
- bn(f);
2346
+ hn(f);
2371
2347
  },
2372
2348
  contentUpdate: (f) => {
2373
2349
  i(f);
2374
2350
  }
2375
2351
  }
2376
- })(b);
2352
+ })(g);
2377
2353
  }
2378
2354
  function s() {
2379
- var f, y;
2380
- const b = (y = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : y.jsCode;
2381
- b && H({
2382
- code: b,
2355
+ var f, v;
2356
+ const g = (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.jsCode;
2357
+ g && H({
2358
+ code: g,
2383
2359
  context: e.context || {},
2384
2360
  localState: void 0,
2385
2361
  rootState: e.builderContextSignal.rootState,
@@ -2390,35 +2366,35 @@ function Sn(e) {
2390
2366
  enableCache: !1
2391
2367
  });
2392
2368
  }
2393
- const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [k, w] = N(() => !1);
2394
- function p(b) {
2395
- var f, y;
2369
+ const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [p, I] = N(() => !1);
2370
+ function y(g) {
2371
+ var f, v;
2396
2372
  if (e.builderContextSignal.content) {
2397
- const v = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, S = (y = e.builderContextSignal.content) == null ? void 0 : y.id;
2398
- me({
2373
+ const x = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, C = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
2374
+ ue({
2399
2375
  type: "click",
2400
2376
  canTrack: q(e.canTrack),
2401
- contentId: S,
2377
+ contentId: C,
2402
2378
  apiKey: e.apiKey,
2403
- variationId: v !== S ? v : void 0,
2404
- ...dn(b),
2405
- unique: !k
2379
+ variationId: x !== C ? x : void 0,
2380
+ ...sn(g),
2381
+ unique: !p
2406
2382
  });
2407
2383
  }
2408
- k || w(!0);
2384
+ p || I(!0);
2409
2385
  }
2410
2386
  function A() {
2411
- var f, y, v;
2412
- const b = (v = (y = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : y.httpRequests) != null ? v : {};
2413
- Object.entries(b).forEach(([S, B]) => {
2414
- if (!B || u[S] || d[S] && !V())
2387
+ var f, v, x;
2388
+ const g = (x = (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.httpRequests) != null ? x : {};
2389
+ Object.entries(g).forEach(([C, P]) => {
2390
+ if (!P || u[C] || d[C] && !V())
2415
2391
  return;
2416
- u[S] = !0;
2417
- const U = B.replace(
2392
+ u[C] = !0;
2393
+ const U = P.replace(
2418
2394
  /{{([^}]+)}}/g,
2419
- ($, Ae) => String(
2395
+ ($, Ne) => String(
2420
2396
  H({
2421
- code: Ae,
2397
+ code: Ne,
2422
2398
  context: e.context || {},
2423
2399
  localState: void 0,
2424
2400
  rootState: e.builderContextSignal.rootState,
@@ -2427,24 +2403,24 @@ function Sn(e) {
2427
2403
  })
2428
2404
  )
2429
2405
  );
2430
- je(U).then(($) => $.json()).then(($) => {
2406
+ De(U).then(($) => $.json()).then(($) => {
2431
2407
  n({
2432
- [S]: $
2433
- }), d[S] = !0;
2408
+ [C]: $
2409
+ }), d[C] = !0;
2434
2410
  }).catch(($) => {
2435
- console.error("error fetching dynamic data", B, $);
2411
+ console.error("error fetching dynamic data", P, $);
2436
2412
  }).finally(() => {
2437
- u[S] = !1;
2413
+ u[C] = !1;
2438
2414
  });
2439
2415
  });
2440
2416
  }
2441
- function x() {
2417
+ function S() {
2442
2418
  V() && window.dispatchEvent(
2443
2419
  new CustomEvent(
2444
2420
  "builder:component:stateChange",
2445
2421
  {
2446
2422
  detail: {
2447
- state: oe(e.builderContextSignal.rootState),
2423
+ state: ie(e.builderContextSignal.rootState),
2448
2424
  ref: {
2449
2425
  name: e.model
2450
2426
  }
@@ -2453,8 +2429,8 @@ function Sn(e) {
2453
2429
  )
2454
2430
  );
2455
2431
  }
2456
- function g(b) {
2457
- window.addEventListener("message", l), He(), Me({
2432
+ function b(g) {
2433
+ window.addEventListener("message", c), je(), He({
2458
2434
  ...e.locale ? {
2459
2435
  locale: e.locale
2460
2436
  } : {},
@@ -2467,125 +2443,132 @@ function Sn(e) {
2467
2443
  }), Object.values(
2468
2444
  e.builderContextSignal.componentInfos
2469
2445
  ).forEach((f) => {
2470
- var v;
2471
- const y = Ue(f);
2472
- (v = window.parent) == null || v.postMessage(y, "*");
2446
+ var x;
2447
+ const v = Me(f);
2448
+ (x = window.parent) == null || x.postMessage(v, "*");
2473
2449
  }), window.addEventListener(
2474
2450
  "builder:component:stateChangeListenerActivated",
2475
- x
2451
+ S
2476
2452
  );
2477
2453
  }
2478
- function I(b) {
2479
- const f = new URL(location.href).searchParams, y = f.get("builder.preview"), v = f.get(
2480
- `builder.overrides.${y}`
2481
- ), S = f.get("apiKey") || f.get("builder.space");
2482
- y === e.model && S === e.apiKey && (!e.content || v === e.content.id) && Ce({
2454
+ function k(g) {
2455
+ const f = new URL(location.href).searchParams, v = f.get("builder.preview"), x = f.get(
2456
+ `builder.overrides.${v}`
2457
+ ), C = f.get("apiKey") || f.get("builder.space");
2458
+ v === e.model && C === e.apiKey && (!e.content || x === e.content.id) && ke({
2483
2459
  model: e.model,
2484
2460
  apiKey: e.apiKey,
2485
2461
  apiVersion: e.builderContextSignal.apiVersion
2486
- }).then((B) => {
2487
- B && i(B);
2462
+ }).then((P) => {
2463
+ P && i(P);
2488
2464
  });
2489
2465
  }
2490
- const R = ze();
2491
- return T(() => {
2492
- var b;
2493
- return (b = t.current) == null || b.addEventListener(
2466
+ const T = Ke();
2467
+ return R(() => {
2468
+ var g;
2469
+ return (g = t.current) == null || g.addEventListener(
2494
2470
  "initeditingbldr",
2495
- g
2471
+ b
2496
2472
  ), () => {
2497
2473
  var f;
2498
2474
  return (f = t.current) == null ? void 0 : f.removeEventListener(
2499
2475
  "initeditingbldr",
2500
- g
2476
+ b
2501
2477
  );
2502
2478
  };
2503
- }, []), T(() => {
2504
- var b;
2505
- return (b = t.current) == null || b.addEventListener(
2479
+ }, []), R(() => {
2480
+ var g;
2481
+ return (g = t.current) == null || g.addEventListener(
2506
2482
  "initpreviewingbldr",
2507
- I
2483
+ k
2508
2484
  ), () => {
2509
2485
  var f;
2510
2486
  return (f = t.current) == null ? void 0 : f.removeEventListener(
2511
2487
  "initpreviewingbldr",
2512
- I
2488
+ k
2513
2489
  );
2514
2490
  };
2515
- }, []), T(() => {
2516
- var b, f;
2517
- if (F()) {
2491
+ }, []), R(() => {
2492
+ var g, f;
2493
+ if (L()) {
2518
2494
  if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
2519
- const v = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, S = (f = e.builderContextSignal.content) == null ? void 0 : f.id, B = e.apiKey;
2520
- me({
2495
+ const x = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, C = (f = e.builderContextSignal.content) == null ? void 0 : f.id, P = e.apiKey;
2496
+ ue({
2521
2497
  type: "impression",
2522
2498
  canTrack: !0,
2523
- contentId: S,
2524
- apiKey: B,
2525
- variationId: v !== S ? v : void 0
2499
+ contentId: C,
2500
+ apiKey: P,
2501
+ variationId: x !== C ? x : void 0
2526
2502
  });
2527
2503
  }
2528
- Oe() && V();
2504
+ Le() && V();
2529
2505
  }
2530
- }, []), T(() => {
2506
+ }, []), R(() => {
2531
2507
  e.apiKey || J.error(
2532
2508
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2533
- ), s(), A(), x();
2534
- }, []), T(() => {
2535
- }, [e.content]), T(() => {
2509
+ ), s(), A(), S();
2510
+ }, []), R(() => {
2511
+ }, [e.content]), R(() => {
2536
2512
  s();
2537
- }, [(O = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : O.jsCode]), T(() => {
2513
+ }, [(O = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : O.jsCode]), R(() => {
2538
2514
  A();
2539
- }, [(Z = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : Z.httpRequests]), T(() => {
2540
- x();
2541
- }, [e.builderContextSignal.rootState]), T(() => {
2515
+ }, [(X = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : X.httpRequests]), R(() => {
2516
+ S();
2517
+ }, [e.builderContextSignal.rootState]), R(() => {
2542
2518
  e.data && n(e.data);
2543
- }, [e.data]), T(() => {
2519
+ }, [e.data]), R(() => {
2544
2520
  e.locale && n({
2545
2521
  locale: e.locale
2546
2522
  });
2547
- }, [e.locale]), T(() => () => {
2548
- F() && (window.removeEventListener("message", l), window.removeEventListener(
2523
+ }, [e.locale]), R(() => () => {
2524
+ L() && (window.removeEventListener("message", c), window.removeEventListener(
2549
2525
  "builder:component:stateChangeListenerActivated",
2550
- x
2526
+ S
2551
2527
  ));
2552
- }, []), /* @__PURE__ */ c(ln.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(
2528
+ }, []), /* @__PURE__ */ l(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
2553
2529
  a,
2554
2530
  {
2555
2531
  ref: t,
2556
- onClick: (b) => p(b),
2557
- "builder-content-id": (ee = e.builderContextSignal.content) == null ? void 0 : ee.id,
2532
+ onClick: (g) => y(g),
2533
+ "builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
2558
2534
  "builder-model": e.model,
2559
2535
  ...o(),
2560
2536
  ...e.contentWrapperProps,
2561
- className: kn(
2562
- ((de = e.content) == null ? void 0 : de.testVariationId) || ((ue = e.content) == null ? void 0 : ue.id)
2537
+ className: Sn(
2538
+ ((se = e.content) == null ? void 0 : se.testVariationId) || ((de = e.content) == null ? void 0 : de.id)
2563
2539
  ),
2564
2540
  children: e.children
2565
2541
  }
2566
2542
  ) : null });
2567
2543
  }
2568
- function Cn(e) {
2544
+ function kn(e) {
2569
2545
  const t = `
2570
2546
  ${yn({
2571
2547
  cssCode: e.cssCode,
2572
2548
  contentId: e.contentId
2573
2549
  })}
2574
- ${pn({
2550
+ ${bn({
2575
2551
  customFonts: e.customFonts
2576
2552
  })}
2577
2553
  ${xn(e.isNestedRender)}
2578
2554
  `.trim();
2579
- return /* @__PURE__ */ c(G, { id: "builderio-content", styles: t });
2555
+ return /* @__PURE__ */ l(
2556
+ Q,
2557
+ {
2558
+ id: "builderio-content",
2559
+ styles: t,
2560
+ nonce: e.nonce
2561
+ }
2562
+ );
2580
2563
  }
2581
- const In = ({
2564
+ const Cn = ({
2582
2565
  content: e,
2583
2566
  data: t,
2584
2567
  locale: n
2585
2568
  }) => {
2586
- var a, r, l;
2569
+ var a, r, c;
2587
2570
  const i = {}, o = ((a = e == null ? void 0 : e.data) == null ? void 0 : a.state) || {};
2588
- return (l = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || l.forEach((s) => {
2571
+ return (c = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || c.forEach((s) => {
2589
2572
  s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
2590
2573
  }), {
2591
2574
  ...i,
@@ -2606,9 +2589,9 @@ const In = ({
2606
2589
  },
2607
2590
  meta: e == null ? void 0 : e.meta
2608
2591
  } : void 0;
2609
- function Se(e) {
2610
- var o, a, r, l, s, d, m, u, h;
2611
- const t = rn({
2592
+ function pe(e) {
2593
+ var o, a, r, c, s, d, m, u, h;
2594
+ const t = an({
2612
2595
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2613
2596
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
2614
2597
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -2617,11 +2600,11 @@ function Se(e) {
2617
2600
  ...ye(),
2618
2601
  ...e.customComponents || []
2619
2602
  ].reduce(
2620
- (k, { component: w, ...p }) => ({
2621
- ...k,
2622
- [p.name]: {
2623
- component: w,
2624
- ...fe(p)
2603
+ (p, { component: I, ...y }) => ({
2604
+ ...p,
2605
+ [y.name]: {
2606
+ component: I,
2607
+ ...me(y)
2625
2608
  }
2626
2609
  }),
2627
2610
  {}
@@ -2631,7 +2614,7 @@ function Se(e) {
2631
2614
  data: e.data
2632
2615
  }),
2633
2616
  localState: void 0,
2634
- rootState: In({
2617
+ rootState: Cn({
2635
2618
  content: e.content,
2636
2619
  data: e.data,
2637
2620
  locale: e.locale
@@ -2645,19 +2628,21 @@ function Se(e) {
2645
2628
  ...ye(),
2646
2629
  ...e.customComponents || []
2647
2630
  ].reduce(
2648
- (k, { component: w, ...p }) => ({
2649
- ...k,
2650
- [p.name]: fe(p)
2631
+ (p, { component: I, ...y }) => ({
2632
+ ...p,
2633
+ [y.name]: me(y)
2651
2634
  }),
2652
2635
  {}
2653
2636
  ),
2654
2637
  inheritedStyles: {},
2655
2638
  BlocksWrapper: e.blocksWrapper || "div",
2656
- BlocksWrapperProps: e.blocksWrapperProps || {}
2639
+ BlocksWrapperProps: e.blocksWrapperProps || {},
2640
+ nonce: e.nonce || ""
2657
2641
  };
2658
- return /* @__PURE__ */ P(
2659
- Sn,
2642
+ return /* @__PURE__ */ E(
2643
+ pn,
2660
2644
  {
2645
+ nonce: e.nonce,
2661
2646
  content: e.content,
2662
2647
  data: e.data,
2663
2648
  model: e.model,
@@ -2672,24 +2657,26 @@ function Se(e) {
2672
2657
  contentWrapperProps: e.contentWrapperProps,
2673
2658
  trustedHosts: e.trustedHosts,
2674
2659
  children: [
2675
- e.isSsrAbTest ? /* @__PURE__ */ c(
2676
- ie,
2660
+ e.isSsrAbTest ? /* @__PURE__ */ l(
2661
+ ne,
2677
2662
  {
2678
2663
  id: "builderio-variant-visibility",
2679
- scriptStr: t
2664
+ scriptStr: t,
2665
+ nonce: e.nonce || ""
2680
2666
  }
2681
2667
  ) : null,
2682
- /* @__PURE__ */ c(
2683
- Cn,
2668
+ /* @__PURE__ */ l(
2669
+ kn,
2684
2670
  {
2671
+ nonce: e.nonce || "",
2685
2672
  isNestedRender: e.isNestedRender,
2686
2673
  contentId: (r = i.content) == null ? void 0 : r.id,
2687
- cssCode: (s = (l = i.content) == null ? void 0 : l.data) == null ? void 0 : s.cssCode,
2674
+ cssCode: (s = (c = i.content) == null ? void 0 : c.data) == null ? void 0 : s.cssCode,
2688
2675
  customFonts: (m = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
2689
2676
  }
2690
2677
  ),
2691
- /* @__PURE__ */ c(
2692
- se,
2678
+ /* @__PURE__ */ l(
2679
+ le,
2693
2680
  {
2694
2681
  blocks: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.blocks,
2695
2682
  context: i,
@@ -2701,59 +2688,63 @@ function Se(e) {
2701
2688
  }
2702
2689
  );
2703
2690
  }
2704
- function Tn(e) {
2691
+ function In(e) {
2705
2692
  var a;
2706
- const t = tn({
2693
+ const t = en({
2707
2694
  canTrack: q(e.canTrack),
2708
2695
  content: e.content
2709
2696
  }), n = function() {
2710
- var l;
2711
- return an(
2697
+ var c;
2698
+ return on(
2712
2699
  K(e.content).map((s) => ({
2713
2700
  id: s.testVariationId,
2714
2701
  testRatio: s.testRatio
2715
2702
  })),
2716
- ((l = e.content) == null ? void 0 : l.id) || ""
2703
+ ((c = e.content) == null ? void 0 : c.id) || ""
2717
2704
  );
2718
2705
  }, i = function() {
2719
- return K(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
2706
+ return K(e.content).map((c) => `.variant-${c.testVariationId} { display: none; } `).join("");
2720
2707
  }, o = function() {
2721
- var l;
2708
+ var c;
2722
2709
  return t ? {
2723
2710
  ...e.content,
2724
- testVariationId: (l = e.content) == null ? void 0 : l.id
2725
- } : _e({
2711
+ testVariationId: (c = e.content) == null ? void 0 : c.id
2712
+ } : Ue({
2726
2713
  item: e.content,
2727
2714
  canTrack: q(e.canTrack)
2728
2715
  });
2729
2716
  };
2730
- return /* @__PURE__ */ P(C, { children: [
2731
- !e.isNestedRender && M !== "reactNative" ? /* @__PURE__ */ c(
2732
- ie,
2717
+ return /* @__PURE__ */ E(w, { children: [
2718
+ !e.isNestedRender && M !== "reactNative" ? /* @__PURE__ */ l(
2719
+ ne,
2733
2720
  {
2734
2721
  id: "builderio-init-variants-fns",
2735
- scriptStr: on()
2722
+ scriptStr: nn(),
2723
+ nonce: e.nonce || ""
2736
2724
  }
2737
2725
  ) : null,
2738
- t ? /* @__PURE__ */ P(C, { children: [
2739
- /* @__PURE__ */ c(
2740
- G,
2726
+ t ? /* @__PURE__ */ E(w, { children: [
2727
+ /* @__PURE__ */ l(
2728
+ Q,
2741
2729
  {
2742
2730
  id: "builderio-variants",
2743
- styles: i()
2731
+ styles: i(),
2732
+ nonce: e.nonce || ""
2744
2733
  }
2745
2734
  ),
2746
- /* @__PURE__ */ c(
2747
- ie,
2735
+ /* @__PURE__ */ l(
2736
+ ne,
2748
2737
  {
2749
2738
  id: "builderio-variants-visibility",
2750
- scriptStr: n()
2739
+ scriptStr: n(),
2740
+ nonce: e.nonce || ""
2751
2741
  }
2752
2742
  ),
2753
- (a = K(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ c(
2754
- Se,
2743
+ (a = K(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
2744
+ pe,
2755
2745
  {
2756
2746
  isNestedRender: e.isNestedRender,
2747
+ nonce: e.nonce,
2757
2748
  content: r,
2758
2749
  showContent: !1,
2759
2750
  model: e.model,
@@ -2776,9 +2767,10 @@ function Tn(e) {
2776
2767
  r.testVariationId
2777
2768
  ))
2778
2769
  ] }) : null,
2779
- /* @__PURE__ */ c(
2780
- Se,
2770
+ /* @__PURE__ */ l(
2771
+ pe,
2781
2772
  {
2773
+ nonce: e.nonce,
2782
2774
  isNestedRender: e.isNestedRender,
2783
2775
  content: o(),
2784
2776
  showContent: !0,
@@ -2802,13 +2794,13 @@ function Tn(e) {
2802
2794
  )
2803
2795
  ] });
2804
2796
  }
2805
- const Rn = async ({
2797
+ const Tn = async ({
2806
2798
  builderContextValue: e,
2807
2799
  symbol: t
2808
2800
  }) => {
2809
2801
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
2810
2802
  (e != null && e.apiKey))
2811
- return Ce({
2803
+ return ke({
2812
2804
  model: t.model,
2813
2805
  apiKey: e.apiKey,
2814
2806
  apiVersion: e.apiVersion,
@@ -2821,8 +2813,8 @@ const Rn = async ({
2821
2813
  J.error("Could not fetch symbol content: ", n);
2822
2814
  });
2823
2815
  };
2824
- async function Pn(e) {
2825
- var a, r, l, s, d;
2816
+ async function Rn(e) {
2817
+ var a, r, c, s, d;
2826
2818
  const t = function() {
2827
2819
  return "div";
2828
2820
  }, n = function() {
@@ -2835,13 +2827,14 @@ async function Pn(e) {
2835
2827
  (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
2836
2828
  (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2837
2829
  ].filter(Boolean).join(" ");
2838
- }, o = ((a = e.symbol) == null ? void 0 : a.content) || await Rn({
2830
+ }, o = ((a = e.symbol) == null ? void 0 : a.content) || await Tn({
2839
2831
  symbol: e.symbol,
2840
2832
  builderContextValue: e.builderContext
2841
2833
  });
2842
- return /* @__PURE__ */ c("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ c(
2843
- Tn,
2834
+ return /* @__PURE__ */ l("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ l(
2835
+ In,
2844
2836
  {
2837
+ nonce: e.builderContext.nonce,
2845
2838
  isNestedRender: !0,
2846
2839
  apiVersion: e.builderContext.apiVersion,
2847
2840
  apiKey: e.builderContext.apiKey,
@@ -2851,7 +2844,7 @@ async function Pn(e) {
2851
2844
  },
2852
2845
  customComponents: Object.values(e.builderComponents),
2853
2846
  data: {
2854
- ...(l = e.symbol) == null ? void 0 : l.data,
2847
+ ...(c = e.symbol) == null ? void 0 : c.data,
2855
2848
  ...e.builderContext.localState,
2856
2849
  ...(s = o == null ? void 0 : o.data) == null ? void 0 : s.state
2857
2850
  },
@@ -2865,15 +2858,15 @@ async function Pn(e) {
2865
2858
  ) });
2866
2859
  }
2867
2860
  export {
2868
- se as Blocks,
2869
- ln as BuilderContext,
2870
- Je as Button,
2871
- Tt as Columns,
2872
- Tn as Content,
2873
- Rt as Fragment,
2874
- Et as Image,
2875
- Wt as Section,
2876
- Pn as Symbol,
2877
- Ht as Text,
2878
- Gt as Video
2861
+ le as Blocks,
2862
+ rn as BuilderContext,
2863
+ Ye as Button,
2864
+ It as Columns,
2865
+ In as Content,
2866
+ Tt as Fragment,
2867
+ Pt as Image,
2868
+ Bt as Section,
2869
+ Rn as Symbol,
2870
+ jt as Text,
2871
+ Qt as Video
2879
2872
  };