@builder.io/sdk-react-nextjs 0.16.8 → 0.16.10

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 (37) hide show
  1. package/lib/browser/blocks-exports.cjs +20 -20
  2. package/lib/browser/blocks-exports.mjs +295 -284
  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-30b63436.js → server-entry-2ebaabac.js} +1 -1
  8. package/lib/{node/server-entry-89b4c0d0.cjs → browser/server-entry-70af6805.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 +28 -28
  12. package/lib/edge/blocks-exports.mjs +599 -588
  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/{node/server-entry-30b63436.js → edge/server-entry-2ebaabac.js} +1 -1
  18. package/lib/{browser/server-entry-89b4c0d0.cjs → edge/server-entry-70af6805.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 +20 -20
  22. package/lib/node/blocks-exports.mjs +292 -281
  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-c36924d7.js → node-runtime-74db042b.js} +1 -1
  28. package/lib/node/{node-runtime-60abefbd.cjs → node-runtime-df244bfe.cjs} +1 -1
  29. package/lib/{edge/server-entry-30b63436.js → node/server-entry-2ebaabac.js} +1 -1
  30. package/lib/{edge/server-entry-89b4c0d0.cjs → node/server-entry-70af6805.cjs} +1 -1
  31. package/lib/node/server-entry.cjs +1 -1
  32. package/lib/node/server-entry.mjs +1 -1
  33. package/package.json +3 -2
  34. package/types/cjs/blocks/slot/slot.d.ts +2 -2
  35. package/types/cjs/constants/sdk-version.d.ts +1 -1
  36. package/types/esm/blocks/slot/slot.d.ts +2 -2
  37. package/types/esm/constants/sdk-version.d.ts +1 -1
@@ -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 ee = (e, t, n) => ($e(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as l, Fragment as I, jsxs as P } from "react/jsx-runtime";
6
- import { TARGET as $, isEditing as V, isBrowser as O, getUserAttributes as Fe, checkIsDefined as z, logger as Y, isPreviewing as ke, init as Le, getDefaultCanTrack as q, _track as ue, createEditorListener as Oe, fetch as De, registerInsertMenu as He, setupBrowserForEditing as _e, createRegisterComponentMessage as Ue, fetchOneEntry as Ce, serializeIncludingFunctions as me, handleABTestingSync as je } from "./server-entry-30b63436.js";
2
+ var $e = Object.defineProperty;
3
+ var Fe = (e, t, n) => t in e ? $e(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
+ var ee = (e, t, n) => (Fe(e, typeof t != "symbol" ? t + "" : t, n), n);
5
+ import { jsx as l, Fragment as T, jsxs as P } from "react/jsx-runtime";
6
+ import { TARGET as $, isEditing as V, isBrowser as O, getUserAttributes as Le, checkIsDefined as z, logger as Y, isPreviewing as Ce, init as Oe, getDefaultCanTrack as q, _track as ue, createEditorListener as De, fetch as He, registerInsertMenu as _e, setupBrowserForEditing as Ue, createRegisterComponentMessage as je, fetchOneEntry as we, serializeIncludingFunctions as me, handleABTestingSync as Me } from "./server-entry-2ebaabac.js";
7
7
  import "lru-cache";
8
- import { useRef as J, useEffect as R, useState as N, createContext as Me } from "react";
9
- import { useRouter as Ke } from "next/navigation";
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());
8
+ import { useRef as J, useEffect as R, useState as N, createContext as Ke } from "react";
9
+ import { useRouter as ze } from "next/navigation";
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
11
  function oe(e) {
12
- return /* @__PURE__ */ l(I, { children: qe(e.TagName) ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(I, { 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 }) }) });
12
+ return /* @__PURE__ */ l(T, { children: Ye(e.TagName) ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(T, { 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 U = () => {
15
15
  switch ($) {
@@ -25,7 +25,7 @@ const U = () => {
25
25
  return "class";
26
26
  }
27
27
  };
28
- function Ye(e) {
28
+ function Je(e) {
29
29
  function t() {
30
30
  return {
31
31
  ...e.attributes,
@@ -49,20 +49,20 @@ function Ye(e) {
49
49
  }
50
50
  );
51
51
  }
52
- function Je(e) {
52
+ function Qe(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
- function Qe(e, ...t) {
59
+ function Ge(e, ...t) {
60
60
  const n = Object.assign({}, e);
61
61
  for (const i of t)
62
62
  delete n[i];
63
63
  return n;
64
64
  }
65
- const Ge = ({
65
+ const Xe = ({
66
66
  builder: e,
67
67
  context: t,
68
68
  event: n,
@@ -74,12 +74,12 @@ const Ge = ({
74
74
  builder: e,
75
75
  context: t,
76
76
  event: n
77
- }), Xe = () => ({
77
+ }), Ze = () => ({
78
78
  isEditing: V(),
79
79
  isBrowser: O(),
80
80
  isServer: !O(),
81
- getUserAttributes: () => Fe()
82
- }), Ze = (e, {
81
+ getUserAttributes: () => Le()
82
+ }), et = (e, {
83
83
  isExpression: t = !0
84
84
  }) => /* 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 = ({
85
85
  code: e,
@@ -90,11 +90,11 @@ const Ge = ({
90
90
  rootSetState: a,
91
91
  rootState: r
92
92
  }) => {
93
- const s = Ge({
93
+ const s = Xe({
94
94
  builder: t,
95
95
  context: n,
96
96
  event: i,
97
- state: we({
97
+ state: Ie({
98
98
  rootState: r,
99
99
  localState: o,
100
100
  rootSetState: a
@@ -102,7 +102,7 @@ const Ge = ({
102
102
  });
103
103
  return new Function(...s.map(([c]) => c), e)(...s.map(([, c]) => c));
104
104
  };
105
- function we({
105
+ function Ie({
106
106
  rootState: e,
107
107
  localState: t,
108
108
  rootSetState: n
@@ -112,7 +112,7 @@ function we({
112
112
  if (t && o in t)
113
113
  return t[o];
114
114
  const a = i[o];
115
- return typeof a == "object" && a !== null ? we({
115
+ return typeof a == "object" && a !== null ? Ie({
116
116
  rootState: a,
117
117
  localState: void 0,
118
118
  rootSetState: n ? (r) => {
@@ -127,17 +127,17 @@ function we({
127
127
  }
128
128
  });
129
129
  }
130
- function et() {
130
+ function tt() {
131
131
  var e;
132
132
  return typeof process != "undefined" && z((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
133
133
  }
134
- const tt = () => {
134
+ const nt = () => {
135
135
  var i;
136
- if (!et())
136
+ if (!tt())
137
137
  return !1;
138
138
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
139
139
  return e && t && !n ? (Y.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;
140
- }, nt = (e) => (O() || tt(), fe(e)), it = !0, A = class A {
140
+ }, it = (e) => (O() || nt(), fe(e)), ot = !0, A = class A {
141
141
  static getCacheKey(t) {
142
142
  return JSON.stringify({
143
143
  ...t,
@@ -170,23 +170,23 @@ function D({
170
170
  if (e === "")
171
171
  return;
172
172
  const c = {
173
- code: Ze(e, {
173
+ code: et(e, {
174
174
  isExpression: r
175
175
  }),
176
- builder: Xe(),
176
+ builder: Ze(),
177
177
  context: t,
178
178
  event: a,
179
179
  rootSetState: o,
180
180
  rootState: i,
181
181
  localState: n
182
182
  };
183
- if (s && !it) {
183
+ if (s && !ot) {
184
184
  const d = L.getCacheKey(c), u = L.getCachedValue(d);
185
185
  if (u)
186
186
  return u.value;
187
187
  }
188
188
  try {
189
- const d = nt(c);
189
+ const d = it(c);
190
190
  if (s) {
191
191
  const u = L.getCacheKey(c);
192
192
  L.setCachedValue(u, d);
@@ -199,7 +199,7 @@ function D({
199
199
  return;
200
200
  }
201
201
  }
202
- const ae = (e) => JSON.parse(JSON.stringify(e)), ot = (e, t, n) => {
202
+ const ae = (e) => JSON.parse(JSON.stringify(e)), at = (e, t, n) => {
203
203
  if (Object(e) !== e)
204
204
  return e;
205
205
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
@@ -217,8 +217,8 @@ function ne(e) {
217
217
  n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ne(e[n]));
218
218
  return t;
219
219
  }
220
- const at = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rt = (e) => {
221
- if (at) {
220
+ const rt = ["svelte", "vue", "angular", "qwik", "solid"].includes($), ct = (e) => {
221
+ if (rt) {
222
222
  const t = ae(e);
223
223
  return {
224
224
  ...t,
@@ -230,7 +230,7 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rt = (e) =
230
230
  }
231
231
  };
232
232
  } else {
233
- const t = ne(Qe(e, "children", "meta"));
233
+ const t = ne(Ge(e, "children", "meta"));
234
234
  return {
235
235
  ...t,
236
236
  properties: {
@@ -243,7 +243,7 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rt = (e) =
243
243
  meta: e.meta
244
244
  };
245
245
  }
246
- }, ct = ({
246
+ }, lt = ({
247
247
  block: e,
248
248
  context: t,
249
249
  localState: n,
@@ -252,7 +252,7 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rt = (e) =
252
252
  }) => {
253
253
  if (!e.bindings)
254
254
  return e;
255
- const a = rt(e);
255
+ const a = ct(e);
256
256
  for (const r in e.bindings) {
257
257
  const s = e.bindings[r], c = D({
258
258
  code: s,
@@ -262,11 +262,11 @@ const at = ["svelte", "vue", "angular", "qwik", "solid"].includes($), rt = (e) =
262
262
  context: t,
263
263
  enableCache: !0
264
264
  });
265
- ot(a, r, c);
265
+ at(a, r, c);
266
266
  }
267
267
  return a;
268
268
  };
269
- function lt({
269
+ function st({
270
270
  block: e,
271
271
  context: t,
272
272
  shouldEvaluateBindings: n,
@@ -275,7 +275,7 @@ function lt({
275
275
  rootSetState: a
276
276
  }) {
277
277
  const r = e;
278
- return n ? ct({
278
+ return n ? lt({
279
279
  block: r,
280
280
  localState: i,
281
281
  rootState: o,
@@ -283,42 +283,42 @@ function lt({
283
283
  context: t
284
284
  }) : r;
285
285
  }
286
- const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", Ie = (e) => Object.entries(e).map(([n, i]) => {
286
+ const re = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "", Te = (e) => Object.entries(e).map(([n, i]) => {
287
287
  if (typeof i == "string")
288
288
  return `${re(n)}: ${i};`;
289
- }).filter(z), st = (e) => Ie(e).join(`
289
+ }).filter(z), dt = (e) => Te(e).join(`
290
290
  `), M = ({
291
291
  mediaQuery: e,
292
292
  className: t,
293
293
  styles: n
294
294
  }) => {
295
295
  const i = `.${t} {
296
- ${st(n)}
296
+ ${dt(n)}
297
297
  }`;
298
298
  return e ? `${e} {
299
299
  ${i}
300
300
  }` : i;
301
301
  };
302
- function dt({
302
+ function ut({
303
303
  style: e
304
304
  }) {
305
305
  return e;
306
306
  }
307
- const ut = ({
307
+ const mt = ({
308
308
  block: e,
309
309
  context: t
310
- }) => Te(dt({
310
+ }) => Re(ut({
311
311
  style: e.style || {},
312
312
  context: t,
313
313
  block: e
314
314
  }));
315
- function Te(e) {
315
+ function Re(e) {
316
316
  switch ($) {
317
317
  case "svelte":
318
318
  case "vue":
319
319
  case "solid":
320
320
  case "angular":
321
- return Ie(e).join(" ");
321
+ return Te(e).join(" ");
322
322
  case "qwik":
323
323
  case "reactNative":
324
324
  case "react":
@@ -326,7 +326,7 @@ function Te(e) {
326
326
  return e;
327
327
  }
328
328
  }
329
- const mt = ({
329
+ const ft = ({
330
330
  block: e,
331
331
  registeredComponents: t
332
332
  }) => {
@@ -340,7 +340,7 @@ const mt = ({
340
340
  console.warn(`
341
341
  Could not find a registered component named "${n}".
342
342
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
343
- }, ft = ({
343
+ }, ht = ({
344
344
  block: e,
345
345
  context: t
346
346
  }) => {
@@ -374,27 +374,27 @@ const mt = ({
374
374
  },
375
375
  block: i
376
376
  }));
377
- }, ht = (e, t) => {
377
+ }, gt = (e, t) => {
378
378
  var n;
379
379
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
380
380
  builderLinkComponent: t
381
381
  } : {};
382
- }, gt = (e, t) => {
382
+ }, bt = (e, t) => {
383
383
  var n;
384
384
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
385
385
  builderComponents: t
386
386
  } : {};
387
- }, bt = (e, t) => {
387
+ }, yt = (e, t) => {
388
388
  var n;
389
389
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
390
390
  builderBlock: t
391
391
  } : {};
392
- }, yt = (e, t) => {
392
+ }, pt = (e, t) => {
393
393
  var n;
394
394
  return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
395
395
  builderContext: t
396
396
  } : {};
397
- }, Re = {
397
+ }, Ee = {
398
398
  small: {
399
399
  min: 320,
400
400
  default: 321,
@@ -410,11 +410,11 @@ const mt = ({
410
410
  default: 991,
411
411
  max: 1200
412
412
  }
413
- }, he = (e, t = Re) => `@media (max-width: ${t[e].max}px)`, Ee = ({
413
+ }, he = (e, t = Ee) => `@media (max-width: ${t[e].max}px)`, Pe = ({
414
414
  small: e,
415
415
  medium: t
416
416
  }) => {
417
- const n = ae(Re);
417
+ const n = ae(Ee);
418
418
  if (!e || !t)
419
419
  return n;
420
420
  const i = Math.floor(e / 2);
@@ -447,57 +447,57 @@ function Q(e) {
447
447
  }
448
448
  );
449
449
  }
450
- function pt(e) {
450
+ function vt(e) {
451
451
  const t = function() {
452
452
  const o = e.block;
453
453
  return z(o.hide) ? !o.hide : z(o.show) ? o.show : !0;
454
454
  }, n = function() {
455
- var p, y, C;
456
- const o = e.block, a = o.responsiveStyles, r = e.context.content, s = Ee(
457
- ((p = r == null ? void 0 : r.meta) == null ? void 0 : p.breakpoints) || {}
455
+ var b, y, w;
456
+ const o = e.block, a = o.responsiveStyles, r = e.context.content, s = Pe(
457
+ ((b = r == null ? void 0 : r.meta) == null ? void 0 : b.breakpoints) || {}
458
458
  ), c = a == null ? void 0 : a.large, d = a == null ? void 0 : a.medium, u = a == null ? void 0 : a.small, m = o.id;
459
459
  if (!m)
460
460
  return "";
461
- const f = c ? M({
461
+ const p = c ? M({
462
462
  className: m,
463
463
  styles: c
464
- }) : "", S = d ? M({
464
+ }) : "", v = d ? M({
465
465
  className: m,
466
466
  styles: d,
467
467
  mediaQuery: he(
468
468
  "medium",
469
469
  s
470
470
  )
471
- }) : "", k = u ? M({
471
+ }) : "", S = u ? M({
472
472
  className: m,
473
473
  styles: u,
474
474
  mediaQuery: he(
475
475
  "small",
476
476
  s
477
477
  )
478
- }) : "", g = o.animations && o.animations.find((E) => E.trigger === "hover");
479
- let T = "";
480
- if (g) {
481
- const E = ((C = (y = g.steps) == null ? void 0 : y[1]) == null ? void 0 : C.styles) || {};
482
- T = M({
478
+ }) : "", f = o.animations && o.animations.find((E) => E.trigger === "hover");
479
+ let C = "";
480
+ if (f) {
481
+ const E = ((w = (y = f.steps) == null ? void 0 : y[1]) == null ? void 0 : w.styles) || {};
482
+ C = M({
483
483
  className: `${m}:hover`,
484
484
  styles: {
485
485
  ...E,
486
- transition: `all ${g.duration}s ${re(
487
- g.easing
486
+ transition: `all ${f.duration}s ${re(
487
+ f.easing
488
488
  )}`,
489
- transitionDelay: g.delay ? `${g.delay}s` : "0s"
489
+ transitionDelay: f.delay ? `${f.delay}s` : "0s"
490
490
  }
491
491
  }) || "";
492
492
  }
493
493
  return [
494
- f,
494
+ p,
495
+ v,
495
496
  S,
496
- k,
497
- T
497
+ C
498
498
  ].join(" ");
499
499
  };
500
- return /* @__PURE__ */ l(I, { children: n() && t() ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
500
+ return /* @__PURE__ */ l(T, { children: n() && t() ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
501
501
  Q,
502
502
  {
503
503
  id: "builderio-block",
@@ -506,10 +506,10 @@ function pt(e) {
506
506
  }
507
507
  ) }) : null });
508
508
  }
509
- function vt(e) {
509
+ function xt(e) {
510
510
  return e.charAt(0).toUpperCase() + e.slice(1);
511
511
  }
512
- const xt = (e) => `on${vt(e)}`, St = (e, t) => (n) => D({
512
+ const St = (e) => `on${xt(e)}`, kt = (e, t) => (n) => D({
513
513
  code: e,
514
514
  context: t.context,
515
515
  localState: t.localState,
@@ -519,14 +519,14 @@ const xt = (e) => `on${vt(e)}`, St = (e, t) => (n) => D({
519
519
  isExpression: !1,
520
520
  enableCache: !0
521
521
  });
522
- function Pe(e) {
522
+ function Be(e) {
523
523
  var i;
524
524
  const t = {}, n = (i = e.block.actions) != null ? i : {};
525
525
  for (const o in n) {
526
526
  if (!n.hasOwnProperty(o))
527
527
  continue;
528
528
  const a = n[o];
529
- let r = xt(o);
529
+ let r = St(o);
530
530
  if (e.stripPrefix)
531
531
  switch ($) {
532
532
  case "vue":
@@ -536,16 +536,16 @@ function Pe(e) {
536
536
  r = r.replace("on:", "");
537
537
  break;
538
538
  }
539
- t[r] = St(a, e);
539
+ t[r] = kt(a, e);
540
540
  }
541
541
  return t;
542
542
  }
543
- function kt({
543
+ function Ct({
544
544
  properties: e
545
545
  }) {
546
546
  return e;
547
547
  }
548
- const Ct = (e) => ({
548
+ const wt = (e) => ({
549
549
  href: e.href
550
550
  });
551
551
  function ce({
@@ -554,22 +554,22 @@ function ce({
554
554
  }) {
555
555
  var i;
556
556
  const n = {
557
- ...Ct(e),
557
+ ...wt(e),
558
558
  ...e.properties,
559
559
  "builder-id": e.id,
560
- style: ut({
560
+ style: mt({
561
561
  block: e,
562
562
  context: t
563
563
  }),
564
564
  [U()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
565
565
  };
566
- return kt({
566
+ return Ct({
567
567
  properties: n,
568
568
  context: t,
569
569
  block: e
570
570
  });
571
571
  }
572
- function wt(e) {
572
+ function It(e) {
573
573
  return /* @__PURE__ */ l(
574
574
  oe,
575
575
  {
@@ -578,7 +578,7 @@ function wt(e) {
578
578
  block: e.block,
579
579
  context: e.context
580
580
  }),
581
- actionAttributes: Pe({
581
+ actionAttributes: Be({
582
582
  block: e.block,
583
583
  rootState: e.context.rootState,
584
584
  rootSetState: e.context.rootSetState,
@@ -590,14 +590,14 @@ function wt(e) {
590
590
  }
591
591
  );
592
592
  }
593
- function It(e) {
593
+ function Tt(e) {
594
594
  function t() {
595
595
  return e.includeBlockProps ? {
596
596
  ...ce({
597
597
  block: e.block,
598
598
  context: e.context
599
599
  }),
600
- ...Pe({
600
+ ...Be({
601
601
  block: e.block,
602
602
  rootState: e.context.rootState,
603
603
  rootSetState: e.context.rootSetState,
@@ -608,7 +608,7 @@ function It(e) {
608
608
  }
609
609
  return /* @__PURE__ */ l(e.Wrapper, { ...e.wrapperProps, attributes: t(), children: e.children });
610
610
  }
611
- const Tt = ({
611
+ const Rt = ({
612
612
  componentOptions: e,
613
613
  builderBlock: t,
614
614
  context: n,
@@ -640,11 +640,11 @@ const Tt = ({
640
640
  };
641
641
  function ge(e) {
642
642
  var n;
643
- const t = e.isInteractive ? It : e.componentRef;
644
- return /* @__PURE__ */ l(I, { children: e.componentRef ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
643
+ const t = e.isInteractive ? Tt : e.componentRef;
644
+ return /* @__PURE__ */ l(T, { children: e.componentRef ? /* @__PURE__ */ l(T, { children: /* @__PURE__ */ l(
645
645
  t,
646
646
  {
647
- ...Tt({
647
+ ...Rt({
648
648
  componentOptions: e.componentOptions,
649
649
  builderBlock: e.builderBlock,
650
650
  context: e.context,
@@ -667,7 +667,7 @@ function ge(e) {
667
667
  }
668
668
  ) }) : null });
669
669
  }
670
- function Rt(e) {
670
+ function be(e) {
671
671
  const t = e.repeatContext;
672
672
  return /* @__PURE__ */ l(
673
673
  G,
@@ -680,9 +680,9 @@ function Rt(e) {
680
680
  );
681
681
  }
682
682
  function G(e) {
683
- var d, u, m;
683
+ var d, u, m, p;
684
684
  const t = function() {
685
- return ft({
685
+ return ht({
686
686
  block: e.block,
687
687
  context: e.context
688
688
  });
@@ -690,10 +690,10 @@ function G(e) {
690
690
  value: null,
691
691
  update: !1
692
692
  }, i = function() {
693
- var k;
694
- if (n.value && !n.update && !ke())
693
+ var f;
694
+ if (n.value && !n.update && !Ce())
695
695
  return n.value;
696
- const S = (k = e.block.repeat) != null && k.collection ? e.block : lt({
696
+ const S = (f = e.block.repeat) != null && f.collection ? e.block : st({
697
697
  block: e.block,
698
698
  localState: e.context.localState,
699
699
  rootState: e.context.rootState,
@@ -703,33 +703,33 @@ function G(e) {
703
703
  });
704
704
  return n.value = S, n.update = !1, S;
705
705
  }, o = function() {
706
- return mt({
706
+ return ft({
707
707
  block: i(),
708
708
  registeredComponents: e.registeredComponents
709
709
  });
710
710
  }, a = function() {
711
- var k;
712
- return e.block.tagName === "a" || ((k = i().properties) == null ? void 0 : k.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
711
+ var f;
712
+ return e.block.tagName === "a" || ((f = i().properties) == null ? void 0 : f.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
713
713
  }, r = function() {
714
- var g, T;
715
- if ((g = e.block.repeat) != null && g.collection)
716
- return !!((T = t()) != null && T.length);
714
+ var C, b;
715
+ if ((C = e.block.repeat) != null && C.collection)
716
+ return !!((b = t()) != null && b.length);
717
717
  const S = "hide" in i() ? i().hide : !1;
718
718
  return ("show" in i() ? i().show : !0) && !S;
719
719
  }, s = function() {
720
- var k, g;
721
- return !((k = o()) != null && k.component) && !t() ? (g = i().children) != null ? g : [] : [];
720
+ var f, C;
721
+ return !((f = o()) != null && f.component) && !t() ? (C = i().children) != null ? C : [] : [];
722
722
  }, c = function() {
723
- var S, k, g, T;
723
+ var S, f, C, b;
724
724
  return {
725
725
  blockChildren: (S = i().children) != null ? S : [],
726
- componentRef: (k = o()) == null ? void 0 : k.component,
726
+ componentRef: (f = o()) == null ? void 0 : f.component,
727
727
  componentOptions: {
728
- ...Je(i()),
729
- ...bt(o(), i()),
730
- ...yt(o(), e.context),
731
- ...ht(o(), e.linkComponent),
732
- ...gt(
728
+ ...Qe(i()),
729
+ ...yt(o(), i()),
730
+ ...pt(o(), e.context),
731
+ ...gt(o(), e.linkComponent),
732
+ ...bt(
733
733
  o(),
734
734
  e.registeredComponents
735
735
  )
@@ -738,13 +738,22 @@ function G(e) {
738
738
  linkComponent: e.linkComponent,
739
739
  registeredComponents: e.registeredComponents,
740
740
  builderBlock: i(),
741
- includeBlockProps: ((g = o()) == null ? void 0 : g.noWrap) === !0,
742
- isInteractive: !((T = o()) != null && T.isRSC && $ === "rsc")
741
+ includeBlockProps: ((C = o()) == null ? void 0 : C.noWrap) === !0,
742
+ isInteractive: !((b = o()) != null && b.isRSC && $ === "rsc")
743
743
  };
744
744
  };
745
- return /* @__PURE__ */ l(I, { children: r() ? /* @__PURE__ */ P(I, { children: [
746
- /* @__PURE__ */ l(pt, { block: i(), context: e.context }),
747
- (d = o()) != null && d.noWrap ? /* @__PURE__ */ l(I, { children: /* @__PURE__ */ l(
745
+ return /* @__PURE__ */ l(T, { children: r() ? /* @__PURE__ */ P(T, { children: [
746
+ /* @__PURE__ */ l(vt, { block: i(), context: e.context }),
747
+ (d = o()) != null && d.noWrap ? t() ? /* @__PURE__ */ l(T, { children: (p = t()) == null ? void 0 : p.map((v, S) => /* @__PURE__ */ l(
748
+ be,
749
+ {
750
+ repeatContext: v.context,
751
+ block: v.block,
752
+ registeredComponents: e.registeredComponents,
753
+ linkComponent: e.linkComponent
754
+ },
755
+ S
756
+ )) }) : /* @__PURE__ */ l(
748
757
  ge,
749
758
  {
750
759
  componentRef: c().componentRef,
@@ -757,17 +766,17 @@ function G(e) {
757
766
  includeBlockProps: c().includeBlockProps,
758
767
  isInteractive: c().isInteractive
759
768
  }
760
- ) }) : /* @__PURE__ */ l(I, { children: t() ? /* @__PURE__ */ l(I, { children: (m = t()) == null ? void 0 : m.map((f, S) => /* @__PURE__ */ l(
761
- Rt,
769
+ ) : /* @__PURE__ */ l(T, { children: t() ? /* @__PURE__ */ l(T, { children: (m = t()) == null ? void 0 : m.map((v, S) => /* @__PURE__ */ l(
770
+ be,
762
771
  {
763
- repeatContext: f.context,
764
- block: f.block,
772
+ repeatContext: v.context,
773
+ block: v.block,
765
774
  registeredComponents: e.registeredComponents,
766
775
  linkComponent: e.linkComponent
767
776
  },
768
777
  S
769
778
  )) }) : /* @__PURE__ */ P(
770
- wt,
779
+ It,
771
780
  {
772
781
  Wrapper: a(),
773
782
  block: i(),
@@ -787,15 +796,15 @@ function G(e) {
787
796
  isInteractive: c().isInteractive
788
797
  }
789
798
  ),
790
- (u = s()) == null ? void 0 : u.map((f) => /* @__PURE__ */ l(
799
+ (u = s()) == null ? void 0 : u.map((v) => /* @__PURE__ */ l(
791
800
  G,
792
801
  {
793
- block: f,
802
+ block: v,
794
803
  registeredComponents: e.registeredComponents,
795
804
  linkComponent: e.linkComponent,
796
805
  context: e.context
797
806
  },
798
- f.id
807
+ v.id
799
808
  ))
800
809
  ]
801
810
  }
@@ -835,7 +844,7 @@ function Et(e) {
835
844
  ));
836
845
  }
837
846
  return R(() => {
838
- }, []), /* @__PURE__ */ P(I, { children: [
847
+ }, []), /* @__PURE__ */ P(T, { children: [
839
848
  /* @__PURE__ */ l(
840
849
  e.BlocksWrapper,
841
850
  {
@@ -869,7 +878,7 @@ function le(e) {
869
878
  styleProp: e.styleProp,
870
879
  BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
871
880
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
872
- children: e.blocks ? /* @__PURE__ */ l(I, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
881
+ children: e.blocks ? /* @__PURE__ */ l(T, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
873
882
  G,
874
883
  {
875
884
  block: o,
@@ -884,25 +893,25 @@ function le(e) {
884
893
  }
885
894
  const Pt = (e) => `builder-columns ${e}-breakpoints`;
886
895
  function Bt(e) {
887
- var g, T;
896
+ var f, C;
888
897
  const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(y) {
889
898
  return y.link ? e.builderLinkComponent || "a" : "div";
890
899
  }, a = function(y) {
891
- var C;
892
- return ((C = n[y]) == null ? void 0 : C.width) || 100 / n.length;
900
+ var w;
901
+ return ((w = n[y]) == null ? void 0 : w.width) || 100 / n.length;
893
902
  }, r = function(y) {
894
- const C = a(y), E = t * (n.length - 1) * (C / 100);
895
- return `calc(${C}% - ${E}px)`;
903
+ const w = a(y), E = t * (n.length - 1) * (w / 100);
904
+ return `calc(${w}% - ${E}px)`;
896
905
  }, s = function({
897
906
  stackedStyle: y,
898
- desktopStyle: C
907
+ desktopStyle: w
899
908
  }) {
900
- return i === "tablet" ? y : C;
909
+ return i === "tablet" ? y : w;
901
910
  }, c = function({
902
911
  stackedStyle: y,
903
- desktopStyle: C
912
+ desktopStyle: w
904
913
  }) {
905
- return i === "never" ? C : y;
914
+ return i === "never" ? w : y;
906
915
  }, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", u = function() {
907
916
  return {
908
917
  "--flex-dir": d,
@@ -912,7 +921,7 @@ function Bt(e) {
912
921
  })
913
922
  };
914
923
  }, m = function(y) {
915
- const C = y === 0 ? 0 : t, E = r(y), W = `${C}px`, H = "100%", _ = 0;
924
+ const w = y === 0 ? 0 : t, E = r(y), W = `${w}px`, H = "100%", _ = 0;
916
925
  return {
917
926
  ...{
918
927
  display: "flex",
@@ -938,15 +947,15 @@ function Bt(e) {
938
947
  desktopStyle: W
939
948
  })
940
949
  };
941
- }, f = function(y) {
950
+ }, p = function(y) {
942
951
  var E, W;
943
- return Ee(
952
+ return Pe(
944
953
  ((W = (E = e.builderContext.content) == null ? void 0 : E.meta) == null ? void 0 : W.breakpoints) || {}
945
954
  )[y].max;
946
- }, S = function() {
955
+ }, v = function() {
947
956
  const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
948
957
  return `
949
- @media (max-width: ${f("medium")}px) {
958
+ @media (max-width: ${p("medium")}px) {
950
959
  .${e.builderBlock.id}-breakpoints {
951
960
  flex-direction: var(--flex-dir-tablet);
952
961
  align-items: stretch;
@@ -958,7 +967,7 @@ function Bt(e) {
958
967
  }
959
968
  }
960
969
 
961
- @media (max-width: ${f("small")}px) {
970
+ @media (max-width: ${p("small")}px) {
962
971
  .${e.builderBlock.id}-breakpoints {
963
972
  flex-direction: var(--flex-dir);
964
973
  align-items: stretch;
@@ -970,36 +979,36 @@ function Bt(e) {
970
979
  }
971
980
  },
972
981
  `;
973
- }, k = function(y, C) {
982
+ }, S = function(y, w) {
974
983
  return {
975
984
  ...y.link ? {
976
985
  href: y.link
977
986
  } : {},
978
987
  [U()]: "builder-column",
979
- style: Te(m(C))
988
+ style: Re(m(w))
980
989
  };
981
990
  };
982
- return /* @__PURE__ */ P(I, { children: [
991
+ return /* @__PURE__ */ P(T, { children: [
983
992
  /* @__PURE__ */ P(
984
993
  "div",
985
994
  {
986
- className: Pt((g = e.builderBlock) == null ? void 0 : g.id) + " div-2cd13691",
995
+ className: Pt((f = e.builderBlock) == null ? void 0 : f.id) + " div-2cd13691",
987
996
  style: u(),
988
997
  children: [
989
998
  /* @__PURE__ */ l(
990
999
  Q,
991
1000
  {
992
1001
  id: "builderio-columns",
993
- styles: S(),
1002
+ styles: v(),
994
1003
  nonce: e.builderContext.nonce
995
1004
  }
996
1005
  ),
997
- (T = e.columns) == null ? void 0 : T.map((p, y) => /* @__PURE__ */ l(
1006
+ (C = e.columns) == null ? void 0 : C.map((b, y) => /* @__PURE__ */ l(
998
1007
  oe,
999
1008
  {
1000
- TagName: o(p),
1009
+ TagName: o(b),
1001
1010
  actionAttributes: {},
1002
- attributes: k(p, y),
1011
+ attributes: S(b, y),
1003
1012
  children: /* @__PURE__ */ l(
1004
1013
  le,
1005
1014
  {
@@ -1011,7 +1020,7 @@ function Bt(e) {
1011
1020
  context: e.builderContext,
1012
1021
  registeredComponents: e.builderComponents,
1013
1022
  linkComponent: e.builderLinkComponent,
1014
- blocks: p.blocks
1023
+ blocks: b.blocks
1015
1024
  }
1016
1025
  )
1017
1026
  },
@@ -1029,7 +1038,7 @@ function Bt(e) {
1029
1038
  function Wt(e) {
1030
1039
  return /* @__PURE__ */ l("span", { children: e.children });
1031
1040
  }
1032
- function be(e) {
1041
+ function ye(e) {
1033
1042
  return e.replace(/http(s)?:/, "");
1034
1043
  }
1035
1044
  function At(e = "", t, n) {
@@ -1040,11 +1049,11 @@ function Nt(e, t) {
1040
1049
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1041
1050
  return e;
1042
1051
  if (t === "master")
1043
- return be(e);
1052
+ return ye(e);
1044
1053
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1045
1054
  if (n) {
1046
1055
  const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1047
- return be(`${i[0]}_${a}${o}`);
1056
+ return ye(`${i[0]}_${a}${o}`);
1048
1057
  }
1049
1058
  return null;
1050
1059
  }
@@ -1062,14 +1071,14 @@ function te(e) {
1062
1071
  function Vt(e) {
1063
1072
  var o, a, r, s, c, d;
1064
1073
  function t() {
1065
- var f;
1074
+ var p;
1066
1075
  const m = e.image || e.src;
1067
1076
  if (!m || // We can auto add srcset for cdn.builder.io and shopify
1068
1077
  // images, otherwise you can supply this prop manually
1069
1078
  !(m.match(/builder\.io/) || m.match(/cdn\.shopify\.com/)))
1070
1079
  return e.srcset;
1071
1080
  if (!e.noWebp) {
1072
- if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
1081
+ if (e.srcset && ((p = e.image) != null && p.includes("builder.io/api/v1/image"))) {
1073
1082
  if (!e.srcset.includes(e.image.split("?")[0]))
1074
1083
  return console.debug("Removed given srcset"), te(m);
1075
1084
  } else if (e.image && !e.srcset)
@@ -1092,8 +1101,8 @@ function Vt(e) {
1092
1101
  return e.aspectRatio ? u : void 0;
1093
1102
  }
1094
1103
  return R(() => {
1095
- }, []), /* @__PURE__ */ P(I, { children: [
1096
- /* @__PURE__ */ P(I, { children: [
1104
+ }, []), /* @__PURE__ */ P(T, { children: [
1105
+ /* @__PURE__ */ P(T, { children: [
1097
1106
  /* @__PURE__ */ P("picture", { children: [
1098
1107
  n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1099
1108
  /* @__PURE__ */ l(
@@ -1124,7 +1133,7 @@ function Vt(e) {
1124
1133
  }
1125
1134
  }
1126
1135
  ) : null,
1127
- (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(I, { children: e.children }) : null,
1136
+ (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ l(T, { children: e.children }) : null,
1128
1137
  !e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ l("div", { className: "div-2d6925f2-2", children: e.children }) : null
1129
1138
  ] }),
1130
1139
  /* @__PURE__ */ l("style", { children: `.img-2d6925f2 {
@@ -1442,8 +1451,8 @@ const Ft = {
1442
1451
  let m = !1;
1443
1452
  u.onload = () => {
1444
1453
  m = !0, c(u);
1445
- }, u.addEventListener("error", (f) => {
1446
- console.warn("Image load failed", f.error), d(f.error);
1454
+ }, u.addEventListener("error", (p) => {
1455
+ console.warn("Image load failed", p.error), d(p.error);
1447
1456
  }), u.src = r, setTimeout(() => {
1448
1457
  m || d(new Error("Image load timed out"));
1449
1458
  }, s);
@@ -1577,7 +1586,8 @@ const Ft = {
1577
1586
  defaultValue: "children"
1578
1587
  }],
1579
1588
  shouldReceiveBuilderProps: {
1580
- builderContext: !0
1589
+ builderContext: !0,
1590
+ builderComponents: !0
1581
1591
  }
1582
1592
  };
1583
1593
  function Ut(e) {
@@ -1597,6 +1607,7 @@ function Ut(e) {
1597
1607
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1598
1608
  path: `symbol.data.${e.name}`,
1599
1609
  context: e.builderContext,
1610
+ registeredComponents: e.builderComponents,
1600
1611
  blocks: (i = e.builderContext.rootState) == null ? void 0 : i[e.name]
1601
1612
  }
1602
1613
  )
@@ -1783,13 +1794,13 @@ function Gt(e) {
1783
1794
  const m = d[u];
1784
1795
  if (m.src && !n.includes(m.src)) {
1785
1796
  n.push(m.src);
1786
- const f = document.createElement("script");
1787
- f.async = !0, f.src = m.src, document.head.appendChild(f);
1797
+ const p = document.createElement("script");
1798
+ p.async = !0, p.src = m.src, document.head.appendChild(p);
1788
1799
  } else if (Qt(m) && !o.includes(m.innerText))
1789
1800
  try {
1790
1801
  o.push(m.innerText), new Function(m.innerText)();
1791
- } catch (f) {
1792
- console.warn("`Embed`: Error running script:", f);
1802
+ } catch (p) {
1803
+ console.warn("`Embed`: Error running script:", p);
1793
1804
  }
1794
1805
  }
1795
1806
  }
@@ -2032,8 +2043,8 @@ const nn = () => [{
2032
2043
  }, {
2033
2044
  component: tn,
2034
2045
  ...en
2035
- }], ye = () => [{
2036
- component: Ye,
2046
+ }], pe = () => [{
2047
+ component: Je,
2037
2048
  ...Ft
2038
2049
  }, {
2039
2050
  component: Bt,
@@ -2146,24 +2157,24 @@ const nn = () => [{
2146
2157
  thisScriptEl?.remove();
2147
2158
  }
2148
2159
  return;
2149
- }`, Be = "builderIoAbTest", We = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2160
+ }`, We = "builderIoAbTest", Ae = "builderIoRenderContent", K = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2150
2161
  ...t,
2151
2162
  testVariationId: t.id,
2152
2163
  id: e == null ? void 0 : e.id
2153
2164
  })), rn = ({
2154
2165
  canTrack: e,
2155
2166
  content: t
2156
- }) => !(!(K(t).length > 0) || !e || O()), cn = (e) => e === "react" || e === "reactNative", Ae = cn($), ln = () => `
2157
- window.${Be} = ${on}
2158
- window.${We} = ${an}
2167
+ }) => !(!(K(t).length > 0) || !e || O()), cn = (e) => e === "react" || e === "reactNative", Ne = cn($), ln = () => `
2168
+ window.${We} = ${on}
2169
+ window.${Ae} = ${an}
2159
2170
  `, sn = (e, t) => `
2160
- window.${Be}(
2161
- "${t}",${JSON.stringify(e)}, ${Ae}
2171
+ window.${We}(
2172
+ "${t}",${JSON.stringify(e)}, ${Ne}
2162
2173
  )`, dn = ({
2163
2174
  contentId: e,
2164
2175
  variationId: t
2165
- }) => `window.${We}(
2166
- "${t}", "${e}", ${Ae}
2176
+ }) => `window.${Ae}(
2177
+ "${t}", "${e}", ${Ne}
2167
2178
  )`;
2168
2179
  function ie(e) {
2169
2180
  return /* @__PURE__ */ l(
@@ -2175,7 +2186,7 @@ function ie(e) {
2175
2186
  }
2176
2187
  );
2177
2188
  }
2178
- const un = Me({
2189
+ const un = Ke({
2179
2190
  content: null,
2180
2191
  context: {},
2181
2192
  localState: void 0,
@@ -2190,7 +2201,7 @@ const un = Me({
2190
2201
  BlocksWrapperProps: {},
2191
2202
  nonce: ""
2192
2203
  });
2193
- function pe(e) {
2204
+ function ve(e) {
2194
2205
  return Math.round(e * 1e3) / 1e3;
2195
2206
  }
2196
2207
  const mn = (e, t, n = !0) => {
@@ -2207,11 +2218,11 @@ const mn = (e, t, n = !0) => {
2207
2218
  }, fn = (e) => mn(e, (t) => {
2208
2219
  const n = t.getAttribute("builder-id") || t.id;
2209
2220
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2210
- }), ve = ({
2221
+ }), xe = ({
2211
2222
  event: e,
2212
2223
  target: t
2213
2224
  }) => {
2214
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = pe(i / n.width), r = pe(o / n.height);
2225
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ve(i / n.width), r = ve(o / n.height);
2215
2226
  return {
2216
2227
  x: a,
2217
2228
  y: r
@@ -2221,11 +2232,11 @@ const mn = (e, t, n = !0) => {
2221
2232
  return {
2222
2233
  targetBuilderElement: i || void 0,
2223
2234
  metadata: {
2224
- targetOffset: t ? ve({
2235
+ targetOffset: t ? xe({
2225
2236
  event: e,
2226
2237
  target: t
2227
2238
  }) : void 0,
2228
- builderTargetOffset: n ? ve({
2239
+ builderTargetOffset: n ? xe({
2229
2240
  event: e,
2230
2241
  target: n
2231
2242
  }) : void 0,
@@ -2237,9 +2248,9 @@ async function gn({
2237
2248
  key: e,
2238
2249
  value: t
2239
2250
  }) {
2240
- return Le(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
2251
+ return Oe(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
2241
2252
  }
2242
- function xe(e, ...t) {
2253
+ function Se(e, ...t) {
2243
2254
  const n = Object(e);
2244
2255
  for (let i = 1; i < arguments.length; i++) {
2245
2256
  const o = arguments[i];
@@ -2272,8 +2283,8 @@ function vn(e) {
2272
2283
  return;
2273
2284
  }
2274
2285
  Array.from(t).forEach((n) => {
2275
- yn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", xe(n.style, e.steps[0].styles), setTimeout(() => {
2276
- 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(() => {
2286
+ yn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Se(n.style, e.steps[0].styles), setTimeout(() => {
2287
+ 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(() => {
2277
2288
  n.style.transition = "", n.style.transitionDelay = "";
2278
2289
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
2279
2290
  });
@@ -2334,27 +2345,27 @@ font-weight: ${s};
2334
2345
  function Tn(e) {
2335
2346
  var W, H, _, X, Z, se, de;
2336
2347
  const t = J(null);
2337
- function n(b) {
2338
- var v, x;
2348
+ function n(g) {
2349
+ var x, k;
2339
2350
  const h = {
2340
2351
  ...e.builderContextSignal.rootState,
2341
- ...b
2352
+ ...g
2342
2353
  };
2343
- e.builderContextSignal.rootSetState ? (x = (v = e.builderContextSignal).rootSetState) == null || x.call(v, h) : e.builderContextSignal.rootState = h;
2354
+ e.builderContextSignal.rootSetState ? (k = (x = e.builderContextSignal).rootSetState) == null || k.call(x, h) : e.builderContextSignal.rootState = h;
2344
2355
  }
2345
- function i(b) {
2346
- var v, x, w, B, j;
2356
+ function i(g) {
2357
+ var x, k, I, B, j;
2347
2358
  const h = {
2348
2359
  ...e.builderContextSignal.content,
2349
- ...b,
2360
+ ...g,
2350
2361
  data: {
2351
- ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
2352
- ...b == null ? void 0 : b.data
2362
+ ...(x = e.builderContextSignal.content) == null ? void 0 : x.data,
2363
+ ...g == null ? void 0 : g.data
2353
2364
  },
2354
2365
  meta: {
2355
- ...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
2356
- ...b == null ? void 0 : b.meta,
2357
- breakpoints: ((w = b == null ? void 0 : b.meta) == null ? void 0 : w.breakpoints) || ((j = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : j.breakpoints)
2366
+ ...(k = e.builderContextSignal.content) == null ? void 0 : k.meta,
2367
+ ...g == null ? void 0 : g.meta,
2368
+ breakpoints: ((I = g == null ? void 0 : g.meta) == null ? void 0 : I.breakpoints) || ((j = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : j.breakpoints)
2358
2369
  }
2359
2370
  };
2360
2371
  gn({
@@ -2373,17 +2384,17 @@ function Tn(e) {
2373
2384
  const [a, r] = N(
2374
2385
  () => e.contentWrapper || "div"
2375
2386
  );
2376
- function s(b) {
2377
- return Oe({
2387
+ function s(g) {
2388
+ return De({
2378
2389
  model: e.model,
2379
2390
  trustedHosts: e.trustedHosts,
2380
2391
  callbacks: {
2381
2392
  configureSdk: (h) => {
2382
- var w;
2383
- const { breakpoints: v, contentId: x } = h;
2384
- !x || x !== ((w = e.builderContextSignal.content) == null ? void 0 : w.id) || v && i({
2393
+ var I;
2394
+ const { breakpoints: x, contentId: k } = h;
2395
+ !k || k !== ((I = e.builderContextSignal.content) == null ? void 0 : I.id) || x && i({
2385
2396
  meta: {
2386
- breakpoints: v
2397
+ breakpoints: x
2387
2398
  }
2388
2399
  });
2389
2400
  },
@@ -2394,13 +2405,13 @@ function Tn(e) {
2394
2405
  i(h);
2395
2406
  }
2396
2407
  }
2397
- })(b);
2408
+ })(g);
2398
2409
  }
2399
2410
  function c() {
2400
- var h, v;
2401
- const b = (v = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : v.jsCode;
2402
- b && D({
2403
- code: b,
2411
+ var h, x;
2412
+ const g = (x = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : x.jsCode;
2413
+ g && D({
2414
+ code: g,
2404
2415
  context: e.context || {},
2405
2416
  localState: void 0,
2406
2417
  rootState: e.builderContextSignal.rootState,
@@ -2411,35 +2422,35 @@ function Tn(e) {
2411
2422
  enableCache: !1
2412
2423
  });
2413
2424
  }
2414
- const [d, u] = N(() => ({})), [m, f] = N(() => ({})), [S, k] = N(() => !1);
2415
- function g(b) {
2416
- var h, v;
2425
+ const [d, u] = N(() => ({})), [m, p] = N(() => ({})), [v, S] = N(() => !1);
2426
+ function f(g) {
2427
+ var h, x;
2417
2428
  if (e.builderContextSignal.content) {
2418
- const x = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, w = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
2429
+ const k = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, I = (x = e.builderContextSignal.content) == null ? void 0 : x.id;
2419
2430
  ue({
2420
2431
  type: "click",
2421
2432
  canTrack: q(e.canTrack),
2422
- contentId: w,
2433
+ contentId: I,
2423
2434
  apiKey: e.apiKey,
2424
- variationId: x !== w ? x : void 0,
2425
- ...hn(b),
2426
- unique: !S
2435
+ variationId: k !== I ? k : void 0,
2436
+ ...hn(g),
2437
+ unique: !v
2427
2438
  });
2428
2439
  }
2429
- S || k(!0);
2440
+ v || S(!0);
2430
2441
  }
2431
- function T() {
2432
- var h, v, x;
2433
- const b = (x = (v = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : v.httpRequests) != null ? x : {};
2434
- Object.entries(b).forEach(([w, B]) => {
2435
- if (!B || m[w] || d[w] && !V())
2442
+ function C() {
2443
+ var h, x, k;
2444
+ const g = (k = (x = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : x.httpRequests) != null ? k : {};
2445
+ Object.entries(g).forEach(([I, B]) => {
2446
+ if (!B || m[I] || d[I] && !V())
2436
2447
  return;
2437
- m[w] = !0;
2448
+ m[I] = !0;
2438
2449
  const j = B.replace(
2439
2450
  /{{([^}]+)}}/g,
2440
- (F, Ne) => String(
2451
+ (F, Ve) => String(
2441
2452
  D({
2442
- code: Ne,
2453
+ code: Ve,
2443
2454
  context: e.context || {},
2444
2455
  localState: void 0,
2445
2456
  rootState: e.builderContextSignal.rootState,
@@ -2448,18 +2459,18 @@ function Tn(e) {
2448
2459
  })
2449
2460
  )
2450
2461
  );
2451
- De(j).then((F) => F.json()).then((F) => {
2462
+ He(j).then((F) => F.json()).then((F) => {
2452
2463
  n({
2453
- [w]: F
2454
- }), d[w] = !0;
2464
+ [I]: F
2465
+ }), d[I] = !0;
2455
2466
  }).catch((F) => {
2456
2467
  console.error("error fetching dynamic data", B, F);
2457
2468
  }).finally(() => {
2458
- m[w] = !1;
2469
+ m[I] = !1;
2459
2470
  });
2460
2471
  });
2461
2472
  }
2462
- function p() {
2473
+ function b() {
2463
2474
  V() && window.dispatchEvent(
2464
2475
  new CustomEvent(
2465
2476
  "builder:component:stateChange",
@@ -2474,8 +2485,8 @@ function Tn(e) {
2474
2485
  )
2475
2486
  );
2476
2487
  }
2477
- function y(b) {
2478
- window.addEventListener("message", s), He(), _e({
2488
+ function y(g) {
2489
+ window.addEventListener("message", s), _e(), Ue({
2479
2490
  ...e.locale ? {
2480
2491
  locale: e.locale
2481
2492
  } : {},
@@ -2488,19 +2499,19 @@ function Tn(e) {
2488
2499
  }), Object.values(
2489
2500
  e.builderContextSignal.componentInfos
2490
2501
  ).forEach((h) => {
2491
- var x;
2492
- const v = Ue(h);
2493
- (x = window.parent) == null || x.postMessage(v, "*");
2502
+ var k;
2503
+ const x = je(h);
2504
+ (k = window.parent) == null || k.postMessage(x, "*");
2494
2505
  }), window.addEventListener(
2495
2506
  "builder:component:stateChangeListenerActivated",
2496
- p
2507
+ b
2497
2508
  );
2498
2509
  }
2499
- function C(b) {
2500
- const h = new URL(location.href).searchParams, v = h.get("builder.preview"), x = h.get(
2501
- `builder.overrides.${v}`
2502
- ), w = h.get("apiKey") || h.get("builder.space");
2503
- v === e.model && w === e.apiKey && (!e.content || x === e.content.id) && Ce({
2510
+ function w(g) {
2511
+ const h = new URL(location.href).searchParams, x = h.get("builder.preview"), k = h.get(
2512
+ `builder.overrides.${x}`
2513
+ ), I = h.get("apiKey") || h.get("builder.space");
2514
+ x === e.model && I === e.apiKey && (!e.content || k === e.content.id) && we({
2504
2515
  model: e.model,
2505
2516
  apiKey: e.apiKey,
2506
2517
  apiVersion: e.builderContextSignal.apiVersion
@@ -2508,10 +2519,10 @@ function Tn(e) {
2508
2519
  B && i(B);
2509
2520
  });
2510
2521
  }
2511
- const E = Ke();
2522
+ const E = ze();
2512
2523
  return R(() => {
2513
- var b;
2514
- return (b = t.current) == null || b.addEventListener(
2524
+ var g;
2525
+ return (g = t.current) == null || g.addEventListener(
2515
2526
  "initeditingbldr",
2516
2527
  y
2517
2528
  ), () => {
@@ -2522,43 +2533,43 @@ function Tn(e) {
2522
2533
  );
2523
2534
  };
2524
2535
  }, []), R(() => {
2525
- var b;
2526
- return (b = t.current) == null || b.addEventListener(
2536
+ var g;
2537
+ return (g = t.current) == null || g.addEventListener(
2527
2538
  "initpreviewingbldr",
2528
- C
2539
+ w
2529
2540
  ), () => {
2530
2541
  var h;
2531
2542
  return (h = t.current) == null ? void 0 : h.removeEventListener(
2532
2543
  "initpreviewingbldr",
2533
- C
2544
+ w
2534
2545
  );
2535
2546
  };
2536
2547
  }, []), R(() => {
2537
- var b, h;
2548
+ var g, h;
2538
2549
  if (O()) {
2539
2550
  if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
2540
- const x = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, w = (h = e.builderContextSignal.content) == null ? void 0 : h.id, B = e.apiKey;
2551
+ const k = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, I = (h = e.builderContextSignal.content) == null ? void 0 : h.id, B = e.apiKey;
2541
2552
  ue({
2542
2553
  type: "impression",
2543
2554
  canTrack: !0,
2544
- contentId: w,
2555
+ contentId: I,
2545
2556
  apiKey: B,
2546
- variationId: x !== w ? x : void 0
2557
+ variationId: k !== I ? k : void 0
2547
2558
  });
2548
2559
  }
2549
- ke() && V();
2560
+ Ce() && V();
2550
2561
  }
2551
2562
  }, []), R(() => {
2552
2563
  e.apiKey || Y.error(
2553
2564
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2554
- ), c(), T(), p();
2565
+ ), c(), C(), b();
2555
2566
  }, []), R(() => {
2556
2567
  }, [e.content]), R(() => {
2557
2568
  c();
2558
2569
  }, [(H = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : H.jsCode]), R(() => {
2559
- T();
2570
+ C();
2560
2571
  }, [(X = (_ = e.builderContextSignal.content) == null ? void 0 : _.data) == null ? void 0 : X.httpRequests]), R(() => {
2561
- p();
2572
+ b();
2562
2573
  }, [e.builderContextSignal.rootState]), R(() => {
2563
2574
  e.data && n(e.data);
2564
2575
  }, [e.data]), R(() => {
@@ -2568,13 +2579,13 @@ function Tn(e) {
2568
2579
  }, [e.locale]), R(() => () => {
2569
2580
  O() && (window.removeEventListener("message", s), window.removeEventListener(
2570
2581
  "builder:component:stateChangeListenerActivated",
2571
- p
2582
+ b
2572
2583
  ));
2573
2584
  }, []), /* @__PURE__ */ l(un.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
2574
2585
  a,
2575
2586
  {
2576
2587
  ref: t,
2577
- onClick: (b) => g(b),
2588
+ onClick: (g) => f(g),
2578
2589
  "builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
2579
2590
  "builder-model": e.model,
2580
2591
  ...o(),
@@ -2634,22 +2645,22 @@ const En = ({
2634
2645
  },
2635
2646
  meta: e == null ? void 0 : e.meta
2636
2647
  } : void 0;
2637
- function Se(e) {
2638
- var o, a, r, s, c, d, u, m, f, S, k;
2648
+ function ke(e) {
2649
+ var o, a, r, s, c, d, u, m, p, v, S;
2639
2650
  const t = dn({
2640
2651
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2641
2652
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
2642
2653
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2643
2654
  contentId: (a = e.content) == null ? void 0 : a.id
2644
2655
  }), n = [
2645
- ...ye(),
2646
- ...((r = e.customComponents) == null ? void 0 : r.filter(({ models: g }) => !(g != null && g.length) || !e.model ? !0 : g.includes(e.model))) || []
2656
+ ...pe(),
2657
+ ...((r = e.customComponents) == null ? void 0 : r.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
2647
2658
  ].reduce(
2648
- (g, { component: T, ...p }) => ({
2649
- ...g,
2650
- [p.name]: {
2651
- component: T,
2652
- ...me(p)
2659
+ (f, { component: C, ...b }) => ({
2660
+ ...f,
2661
+ [b.name]: {
2662
+ component: C,
2663
+ ...me(b)
2653
2664
  }
2654
2665
  }),
2655
2666
  {}
@@ -2670,12 +2681,12 @@ function Se(e) {
2670
2681
  apiKey: e.apiKey,
2671
2682
  apiVersion: e.apiVersion,
2672
2683
  componentInfos: [
2673
- ...ye(),
2674
- ...((s = e.customComponents) == null ? void 0 : s.filter(({ models: g }) => !(g != null && g.length) || !e.model ? !0 : g.includes(e.model))) || []
2684
+ ...pe(),
2685
+ ...((s = e.customComponents) == null ? void 0 : s.filter(({ models: f }) => !(f != null && f.length) || !e.model ? !0 : f.includes(e.model))) || []
2675
2686
  ].reduce(
2676
- (g, { component: T, ...p }) => ({
2677
- ...g,
2678
- [p.name]: me(p)
2687
+ (f, { component: C, ...b }) => ({
2688
+ ...f,
2689
+ [b.name]: me(b)
2679
2690
  }),
2680
2691
  {}
2681
2692
  ),
@@ -2717,13 +2728,13 @@ function Se(e) {
2717
2728
  isNestedRender: e.isNestedRender,
2718
2729
  contentId: (c = i.content) == null ? void 0 : c.id,
2719
2730
  cssCode: (u = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
2720
- customFonts: (f = (m = i.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
2731
+ customFonts: (p = (m = i.content) == null ? void 0 : m.data) == null ? void 0 : p.customFonts
2721
2732
  }
2722
2733
  ),
2723
2734
  /* @__PURE__ */ l(
2724
2735
  le,
2725
2736
  {
2726
- blocks: (k = (S = i.content) == null ? void 0 : S.data) == null ? void 0 : k.blocks,
2737
+ blocks: (S = (v = i.content) == null ? void 0 : v.data) == null ? void 0 : S.blocks,
2727
2738
  context: i,
2728
2739
  registeredComponents: n,
2729
2740
  linkComponent: e.linkComponent
@@ -2754,12 +2765,12 @@ function Bn(e) {
2754
2765
  return t ? {
2755
2766
  ...e.content,
2756
2767
  testVariationId: (s = e.content) == null ? void 0 : s.id
2757
- } : je({
2768
+ } : Me({
2758
2769
  item: e.content,
2759
2770
  canTrack: q(e.canTrack)
2760
2771
  });
2761
2772
  };
2762
- return /* @__PURE__ */ P(I, { children: [
2773
+ return /* @__PURE__ */ P(T, { children: [
2763
2774
  !e.isNestedRender && $ !== "reactNative" ? /* @__PURE__ */ l(
2764
2775
  ie,
2765
2776
  {
@@ -2768,7 +2779,7 @@ function Bn(e) {
2768
2779
  nonce: e.nonce || ""
2769
2780
  }
2770
2781
  ) : null,
2771
- t ? /* @__PURE__ */ P(I, { children: [
2782
+ t ? /* @__PURE__ */ P(T, { children: [
2772
2783
  /* @__PURE__ */ l(
2773
2784
  Q,
2774
2785
  {
@@ -2786,7 +2797,7 @@ function Bn(e) {
2786
2797
  }
2787
2798
  ),
2788
2799
  (a = K(e.content)) == null ? void 0 : a.map((r) => /* @__PURE__ */ l(
2789
- Se,
2800
+ ke,
2790
2801
  {
2791
2802
  isNestedRender: e.isNestedRender,
2792
2803
  nonce: e.nonce,
@@ -2813,7 +2824,7 @@ function Bn(e) {
2813
2824
  ))
2814
2825
  ] }) : null,
2815
2826
  /* @__PURE__ */ l(
2816
- Se,
2827
+ ke,
2817
2828
  {
2818
2829
  nonce: e.nonce,
2819
2830
  isNestedRender: e.isNestedRender,
@@ -2845,7 +2856,7 @@ const Wn = async ({
2845
2856
  }) => {
2846
2857
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
2847
2858
  (e != null && e.apiKey))
2848
- return Ce({
2859
+ return we({
2849
2860
  model: t.model,
2850
2861
  apiKey: e.apiKey,
2851
2862
  apiVersion: e.apiVersion,
@@ -2865,12 +2876,12 @@ async function An(e) {
2865
2876
  }, n = function() {
2866
2877
  return "div";
2867
2878
  }, i = function() {
2868
- var m, f;
2879
+ var m, p;
2869
2880
  return [
2870
2881
  e.attributes[U()],
2871
2882
  "builder-symbol",
2872
2883
  (m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
2873
- (f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2884
+ (p = e.symbol) != null && p.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2874
2885
  ].filter(Boolean).join(" ");
2875
2886
  }, o = ((a = e.symbol) == null ? void 0 : a.content) || await Wn({
2876
2887
  symbol: e.symbol,
@@ -2905,7 +2916,7 @@ async function An(e) {
2905
2916
  export {
2906
2917
  le as Blocks,
2907
2918
  un as BuilderContext,
2908
- Ye as Button,
2919
+ Je as Button,
2909
2920
  Bt as Columns,
2910
2921
  Bn as Content,
2911
2922
  Wt as Fragment,