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

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 (40) hide show
  1. package/lib/browser/blocks-exports.cjs +26 -26
  2. package/lib/browser/blocks-exports.mjs +240 -237
  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-8a47b9f9.cjs +2 -0
  8. package/lib/{node/server-entry-e47775d7.js → browser/server-entry-b8ecec52.js} +152 -158
  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 +35 -35
  12. package/lib/edge/blocks-exports.mjs +300 -296
  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-8a47b9f9.cjs +2 -0
  18. package/lib/{browser/server-entry-8a4d2728.js → edge/server-entry-b8ecec52.js} +152 -158
  19. package/lib/edge/server-entry.cjs +1 -1
  20. package/lib/edge/server-entry.mjs +1 -1
  21. package/lib/node/blocks-exports.cjs +13 -13
  22. package/lib/node/blocks-exports.mjs +189 -186
  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-1e70fe16.cjs → node-runtime-e2a21ba1.cjs} +2 -2
  28. package/lib/node/{node-runtime-753c71f6.js → node-runtime-ffe74dec.js} +3 -2
  29. package/lib/node/server-entry-8a47b9f9.cjs +2 -0
  30. package/lib/{edge/server-entry-8a4d2728.js → node/server-entry-b8ecec52.js} +152 -158
  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/constants/sdk-version.d.ts +1 -1
  35. package/types/cjs/functions/register-component.d.ts +2 -2
  36. package/types/esm/constants/sdk-version.d.ts +1 -1
  37. package/types/esm/functions/register-component.d.ts +2 -2
  38. package/lib/browser/server-entry-555ce264.cjs +0 -2
  39. package/lib/edge/server-entry-555ce264.cjs +0 -2
  40. package/lib/node/server-entry-61a8c25a.cjs +0 -2
@@ -2,14 +2,14 @@
2
2
  var Ae = Object.defineProperty;
3
3
  var Ve = (e, t, n) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
4
  var ee = (e, t, n) => (Ve(e, typeof t != "symbol" ? t + "" : t, n), n);
5
- import { jsx as 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";
5
+ import { jsx as l, Fragment as C, jsxs as E } from "react/jsx-runtime";
6
+ import { TARGET as M, isEditing as V, isBrowser as L, getUserAttributes as $e, checkIsDefined as z, logger as J, 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-b8ecec52.js";
7
+ import { useRef as ie, useState as A, useEffect as R, createContext as _e } from "react";
8
8
  import { useRouter as Ke } from "next/navigation";
9
9
  import "lru-cache";
10
10
  const ze = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), qe = (e) => typeof e == "string" && ze.has(e.toLowerCase());
11
- 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 }) }) });
11
+ function oe(e) {
12
+ return /* @__PURE__ */ l(C, { children: qe(e.TagName) ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ l(C, { children: typeof e.TagName == "string" ? /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ l(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
13
13
  }
14
14
  const j = () => {
15
15
  switch (M) {
@@ -40,7 +40,7 @@ function Ye(e) {
40
40
  };
41
41
  }
42
42
  return /* @__PURE__ */ l(
43
- ae,
43
+ oe,
44
44
  {
45
45
  attributes: t(),
46
46
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -75,7 +75,7 @@ const Qe = ({
75
75
  getUserAttributes: () => $e()
76
76
  }), Xe = (e, {
77
77
  isExpression: t = !0
78
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, fe = ({
78
+ }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, he = ({
79
79
  code: e,
80
80
  builder: t,
81
81
  context: n,
@@ -131,7 +131,7 @@ const et = () => {
131
131
  return !1;
132
132
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
133
133
  return e && t && !n ? (J.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
134
- }, tt = (e) => (L() || et(), fe(e)), W = class W {
134
+ }, tt = (e) => (L() || et(), he(e)), N = class N {
135
135
  static getCacheKey(t) {
136
136
  return JSON.stringify({
137
137
  ...t,
@@ -141,16 +141,16 @@ const et = () => {
141
141
  });
142
142
  }
143
143
  static getCachedValue(t) {
144
- return W.cache.get(t);
144
+ return N.cache.get(t);
145
145
  }
146
146
  static setCachedValue(t, n) {
147
- W.cache.size > 20 && W.cache.delete(W.cache.keys().next().value), W.cache.set(t, {
147
+ N.cache.size > 20 && N.cache.delete(N.cache.keys().next().value), N.cache.set(t, {
148
148
  value: n
149
149
  });
150
150
  }
151
151
  };
152
- ee(W, "cacheLimit", 20), ee(W, "cache", /* @__PURE__ */ new Map());
153
- let F = W;
152
+ ee(N, "cacheLimit", 20), ee(N, "cache", /* @__PURE__ */ new Map());
153
+ let F = N;
154
154
  function H({
155
155
  code: e,
156
156
  context: t,
@@ -193,7 +193,7 @@ function H({
193
193
  return;
194
194
  }
195
195
  }
196
- const nt = (e, t, n) => {
196
+ const ae = (e) => JSON.parse(JSON.stringify(e)), 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);
@@ -208,7 +208,7 @@ const it = ({
208
208
  }) => {
209
209
  if (!e.bindings)
210
210
  return e;
211
- const a = ie(e), r = {
211
+ const a = ae(e), r = {
212
212
  ...a,
213
213
  properties: {
214
214
  ...a.properties
@@ -382,11 +382,11 @@ const ct = ({
382
382
  default: 991,
383
383
  max: 1200
384
384
  }
385
- }, he = (e, t = Te) => `@media (max-width: ${t[e].max}px)`, Re = ({
385
+ }, fe = (e, t = Te) => `@media (max-width: ${t[e].max}px)`, Re = ({
386
386
  small: e,
387
387
  medium: t
388
388
  }) => {
389
- const n = ie(Te);
389
+ const n = ae(Te);
390
390
  if (!e || !t)
391
391
  return n;
392
392
  const i = Math.floor(e / 2);
@@ -419,7 +419,7 @@ function Q(e) {
419
419
  }
420
420
  );
421
421
  }
422
- function ft(e) {
422
+ function ht(e) {
423
423
  const t = function() {
424
424
  const o = Y({
425
425
  block: e.block,
@@ -431,7 +431,7 @@ function ft(e) {
431
431
  });
432
432
  return z(o.hide) ? !o.hide : z(o.show) ? o.show : !0;
433
433
  }, n = function() {
434
- var S, b, k;
434
+ var v, y, p;
435
435
  const o = Y({
436
436
  block: e.block,
437
437
  localState: e.context.localState,
@@ -440,50 +440,50 @@ function ft(e) {
440
440
  context: e.context.context,
441
441
  shouldEvaluateBindings: !0
442
442
  }), a = o.responsiveStyles, r = e.context.content, c = Re(
443
- ((S = r == null ? void 0 : r.meta) == null ? void 0 : S.breakpoints) || {}
443
+ ((v = r == null ? void 0 : r.meta) == null ? void 0 : v.breakpoints) || {}
444
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;
445
445
  if (!u)
446
446
  return "";
447
- const h = s ? _({
447
+ const f = s ? _({
448
448
  className: u,
449
449
  styles: s
450
- }) : "", p = d ? _({
450
+ }) : "", w = d ? _({
451
451
  className: u,
452
452
  styles: d,
453
- mediaQuery: he(
453
+ mediaQuery: fe(
454
454
  "medium",
455
455
  c
456
456
  )
457
457
  }) : "", I = m ? _({
458
458
  className: u,
459
459
  styles: m,
460
- mediaQuery: he(
460
+ mediaQuery: fe(
461
461
  "small",
462
462
  c
463
463
  )
464
- }) : "", y = o.animations && o.animations.find((T) => T.trigger === "hover");
465
- let A = "";
466
- if (y) {
467
- const T = ((k = (b = y.steps) == null ? void 0 : b[1]) == null ? void 0 : k.styles) || {};
468
- A = _({
464
+ }) : "", b = o.animations && o.animations.find((T) => T.trigger === "hover");
465
+ let P = "";
466
+ if (b) {
467
+ const T = ((p = (y = b.steps) == null ? void 0 : y[1]) == null ? void 0 : p.styles) || {};
468
+ P = _({
469
469
  className: `${u}:hover`,
470
470
  styles: {
471
471
  ...T,
472
- transition: `all ${y.duration}s ${re(
473
- y.easing
472
+ transition: `all ${b.duration}s ${re(
473
+ b.easing
474
474
  )}`,
475
- transitionDelay: y.delay ? `${y.delay}s` : "0s"
475
+ transitionDelay: b.delay ? `${b.delay}s` : "0s"
476
476
  }
477
477
  }) || "";
478
478
  }
479
479
  return [
480
- h,
481
- p,
480
+ f,
481
+ w,
482
482
  I,
483
- A
483
+ P
484
484
  ].join(" ");
485
485
  };
486
- return /* @__PURE__ */ l(w, { children: n() && t() ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
486
+ return /* @__PURE__ */ l(C, { children: n() && t() ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
487
487
  Q,
488
488
  {
489
489
  id: "builderio-block",
@@ -492,10 +492,10 @@ function ft(e) {
492
492
  }
493
493
  ) }) : null });
494
494
  }
495
- function ht(e) {
495
+ function ft(e) {
496
496
  return e.charAt(0).toUpperCase() + e.slice(1);
497
497
  }
498
- const gt = (e) => `on${ht(e)}`, bt = (e, t) => (n) => H({
498
+ const gt = (e) => `on${ft(e)}`, bt = (e, t) => (n) => H({
499
499
  code: e,
500
500
  context: t.context,
501
501
  localState: t.localState,
@@ -555,9 +555,9 @@ function ce({
555
555
  block: e
556
556
  });
557
557
  }
558
- function xt(e) {
558
+ function St(e) {
559
559
  return /* @__PURE__ */ l(
560
- ae,
560
+ oe,
561
561
  {
562
562
  TagName: e.Wrapper,
563
563
  attributes: ce({
@@ -576,7 +576,7 @@ function xt(e) {
576
576
  }
577
577
  );
578
578
  }
579
- function St(e) {
579
+ function xt(e) {
580
580
  function t() {
581
581
  return e.includeBlockProps ? {
582
582
  ...ce({
@@ -626,8 +626,8 @@ const pt = ({
626
626
  };
627
627
  function ge(e) {
628
628
  var n;
629
- const t = e.isInteractive ? St : e.componentRef;
630
- return /* @__PURE__ */ l(w, { children: e.componentRef ? /* @__PURE__ */ l(w, { children: /* @__PURE__ */ l(
629
+ const t = e.isInteractive ? xt : e.componentRef;
630
+ return /* @__PURE__ */ l(C, { children: e.componentRef ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
631
631
  t,
632
632
  {
633
633
  ...pt({
@@ -679,8 +679,8 @@ function G(e) {
679
679
  context: e.context
680
680
  });
681
681
  }, i = function() {
682
- var h;
683
- return (h = e.block.repeat) != null && h.collection ? e.block : Y({
682
+ var f;
683
+ return (f = e.block.repeat) != null && f.collection ? e.block : Y({
684
684
  block: e.block,
685
685
  localState: e.context.localState,
686
686
  rootState: e.context.rootState,
@@ -689,22 +689,22 @@ function G(e) {
689
689
  shouldEvaluateBindings: !0
690
690
  });
691
691
  }, o = function() {
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";
692
+ var w;
693
+ return e.block.tagName === "a" || ((w = i().properties) == null ? void 0 : w.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
694
694
  }, a = function() {
695
- var I, y;
695
+ var I, b;
696
696
  if ((I = e.block.repeat) != null && I.collection)
697
- return !!((y = n()) != null && y.length);
698
- const h = "hide" in i() ? i().hide : !1;
699
- return ("show" in i() ? i().show : !0) && !h;
697
+ return !!((b = n()) != null && b.length);
698
+ const f = "hide" in i() ? i().hide : !1;
699
+ return ("show" in i() ? i().show : !0) && !f;
700
700
  }, r = function() {
701
- var p, I;
702
- return !((p = t()) != null && p.component) && !n() ? (I = i().children) != null ? I : [] : [];
701
+ var w, I;
702
+ return !((w = t()) != null && w.component) && !n() ? (I = i().children) != null ? I : [] : [];
703
703
  }, c = function() {
704
- var h, p, I, y;
704
+ var f, w, I, b;
705
705
  return {
706
- blockChildren: (h = i().children) != null ? h : [],
707
- componentRef: (p = t()) == null ? void 0 : p.component,
706
+ blockChildren: (f = i().children) != null ? f : [],
707
+ componentRef: (w = t()) == null ? void 0 : w.component,
708
708
  componentOptions: {
709
709
  ...Je(i()),
710
710
  ...ut(t(), i()),
@@ -720,12 +720,12 @@ function G(e) {
720
720
  registeredComponents: e.registeredComponents,
721
721
  builderBlock: i(),
722
722
  includeBlockProps: ((I = t()) == null ? void 0 : I.noWrap) === !0,
723
- isInteractive: !((y = t()) != null && y.isRSC)
723
+ isInteractive: !((b = t()) != null && b.isRSC)
724
724
  };
725
725
  };
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(
726
+ return /* @__PURE__ */ l(C, { children: a() ? /* @__PURE__ */ E(C, { children: [
727
+ /* @__PURE__ */ l(ht, { block: e.block, context: e.context }),
728
+ (s = t()) != null && s.noWrap ? /* @__PURE__ */ l(C, { children: /* @__PURE__ */ l(
729
729
  ge,
730
730
  {
731
731
  componentRef: c().componentRef,
@@ -738,7 +738,7 @@ function G(e) {
738
738
  includeBlockProps: c().includeBlockProps,
739
739
  isInteractive: c().isInteractive
740
740
  }
741
- ) }) : /* @__PURE__ */ l(w, { children: n() ? /* @__PURE__ */ l(w, { children: (m = n()) == null ? void 0 : m.map((u, h) => /* @__PURE__ */ l(
741
+ ) }) : /* @__PURE__ */ l(C, { children: n() ? /* @__PURE__ */ l(C, { children: (m = n()) == null ? void 0 : m.map((u, f) => /* @__PURE__ */ l(
742
742
  kt,
743
743
  {
744
744
  repeatContext: u.context,
@@ -746,9 +746,9 @@ function G(e) {
746
746
  registeredComponents: e.registeredComponents,
747
747
  linkComponent: e.linkComponent
748
748
  },
749
- h
749
+ f
750
750
  )) }) : /* @__PURE__ */ E(
751
- xt,
751
+ St,
752
752
  {
753
753
  Wrapper: o(),
754
754
  block: i(),
@@ -814,7 +814,7 @@ function Ct(e) {
814
814
  "*"
815
815
  ));
816
816
  }
817
- return /* @__PURE__ */ E(w, { children: [
817
+ return /* @__PURE__ */ E(C, { children: [
818
818
  /* @__PURE__ */ l(
819
819
  e.BlocksWrapper,
820
820
  {
@@ -847,7 +847,7 @@ function le(e) {
847
847
  styleProp: e.styleProp,
848
848
  BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
849
849
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
850
- children: e.blocks ? /* @__PURE__ */ l(w, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
850
+ children: e.blocks ? /* @__PURE__ */ l(C, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
851
851
  G,
852
852
  {
853
853
  block: o,
@@ -862,25 +862,25 @@ function le(e) {
862
862
  }
863
863
  const wt = (e) => `builder-columns ${e}-breakpoints`;
864
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)`;
865
+ var b, P;
866
+ const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], i = e.stackColumnsAt || "tablet", o = function(y) {
867
+ return y.link ? e.builderLinkComponent || "a" : "div";
868
+ }, a = function(y) {
869
+ var p;
870
+ return ((p = n[y]) == null ? void 0 : p.width) || 100 / n.length;
871
+ }, r = function(y) {
872
+ const p = a(y), T = t * (n.length - 1) * (p / 100);
873
+ return `calc(${p}% - ${T}px)`;
874
874
  }, c = function({
875
- stackedStyle: b,
876
- desktopStyle: k
875
+ stackedStyle: y,
876
+ desktopStyle: p
877
877
  }) {
878
- return i === "tablet" ? b : k;
878
+ return i === "tablet" ? y : p;
879
879
  }, s = function({
880
- stackedStyle: b,
881
- desktopStyle: k
880
+ stackedStyle: y,
881
+ desktopStyle: p
882
882
  }) {
883
- return i === "never" ? k : b;
883
+ return i === "never" ? p : y;
884
884
  }, d = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
885
885
  return {
886
886
  "--flex-dir": d,
@@ -889,8 +889,8 @@ function It(e) {
889
889
  desktopStyle: "row"
890
890
  })
891
891
  };
892
- }, u = function(b) {
893
- const k = b === 0 ? 0 : t, T = r(b), B = `${k}px`, O = "100%", D = 0;
892
+ }, u = function(y) {
893
+ const p = y === 0 ? 0 : t, T = r(y), W = `${p}px`, O = "100%", D = 0;
894
894
  return {
895
895
  ...{
896
896
  display: "flex",
@@ -898,14 +898,14 @@ function It(e) {
898
898
  alignItems: "stretch"
899
899
  },
900
900
  width: T,
901
- ["marginLeft"]: B,
901
+ ["marginLeft"]: W,
902
902
  "--column-width-mobile": s({
903
903
  stackedStyle: O,
904
904
  desktopStyle: T
905
905
  }),
906
906
  "--column-margin-left-mobile": s({
907
907
  stackedStyle: D,
908
- desktopStyle: B
908
+ desktopStyle: W
909
909
  }),
910
910
  "--column-width-tablet": c({
911
911
  stackedStyle: O,
@@ -913,74 +913,75 @@ function It(e) {
913
913
  }),
914
914
  "--column-margin-left-tablet": c({
915
915
  stackedStyle: D,
916
- desktopStyle: B
916
+ desktopStyle: W
917
917
  })
918
918
  };
919
- }, h = function(b) {
920
- var T, B;
919
+ }, f = function(y) {
920
+ var T, W;
921
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() {
922
+ ((W = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : W.breakpoints) || {}
923
+ )[y].max;
924
+ }, w = function() {
925
+ const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
925
926
  return `
926
- @media (max-width: ${h("medium")}px) {
927
+ @media (max-width: ${f("medium")}px) {
927
928
  .${e.builderBlock.id}-breakpoints {
928
929
  flex-direction: var(--flex-dir-tablet);
929
930
  align-items: stretch;
930
931
  }
931
932
 
932
- .${e.builderBlock.id}-breakpoints > .builder-column {
933
+ ${y} {
933
934
  width: var(--column-width-tablet) !important;
934
935
  margin-left: var(--column-margin-left-tablet) !important;
935
936
  }
936
937
  }
937
938
 
938
- @media (max-width: ${h("small")}px) {
939
+ @media (max-width: ${f("small")}px) {
939
940
  .${e.builderBlock.id}-breakpoints {
940
941
  flex-direction: var(--flex-dir);
941
942
  align-items: stretch;
942
943
  }
943
944
 
944
- .${e.builderBlock.id}-breakpoints > .builder-column {
945
+ ${y} {
945
946
  width: var(--column-width-mobile) !important;
946
947
  margin-left: var(--column-margin-left-mobile) !important;
947
948
  }
948
949
  },
949
950
  `;
950
- }, I = function(b, k) {
951
+ }, I = function(y, p) {
951
952
  return {
952
- ...b.link ? {
953
- href: b.link
953
+ ...y.link ? {
954
+ href: y.link
954
955
  } : {},
955
956
  [j()]: "builder-column",
956
- style: Ie(u(k))
957
+ style: Ie(u(p))
957
958
  };
958
959
  };
959
- return /* @__PURE__ */ E(w, { children: [
960
+ return /* @__PURE__ */ E(C, { children: [
960
961
  /* @__PURE__ */ E(
961
962
  "div",
962
963
  {
963
- className: wt((y = e.builderBlock) == null ? void 0 : y.id) + " div-c89348d2",
964
+ className: wt((b = e.builderBlock) == null ? void 0 : b.id) + " div-2cd13691",
964
965
  style: m(),
965
966
  children: [
966
967
  /* @__PURE__ */ l(
967
968
  Q,
968
969
  {
969
970
  id: "builderio-columns",
970
- styles: p(),
971
+ styles: w(),
971
972
  nonce: e.builderContext.nonce
972
973
  }
973
974
  ),
974
- (A = e.columns) == null ? void 0 : A.map((S, b) => /* @__PURE__ */ l(
975
- ae,
975
+ (P = e.columns) == null ? void 0 : P.map((v, y) => /* @__PURE__ */ l(
976
+ oe,
976
977
  {
977
- TagName: o(S),
978
+ TagName: o(v),
978
979
  actionAttributes: {},
979
- attributes: I(S, b),
980
+ attributes: I(v, y),
980
981
  children: /* @__PURE__ */ l(
981
982
  le,
982
983
  {
983
- path: `component.options.columns.${b}.blocks`,
984
+ path: `component.options.columns.${y}.blocks`,
984
985
  parent: e.builderBlock.id,
985
986
  styleProp: {
986
987
  flexGrow: "1"
@@ -988,16 +989,16 @@ function It(e) {
988
989
  context: e.builderContext,
989
990
  registeredComponents: e.builderComponents,
990
991
  linkComponent: e.builderLinkComponent,
991
- blocks: S.blocks
992
+ blocks: v.blocks
992
993
  }
993
994
  )
994
995
  },
995
- b
996
+ y
996
997
  ))
997
998
  ]
998
999
  }
999
1000
  ),
1000
- /* @__PURE__ */ l("style", { children: `.div-c89348d2 {
1001
+ /* @__PURE__ */ l("style", { children: `.div-2cd13691 {
1001
1002
  display: flex;
1002
1003
  line-height: normal;
1003
1004
  }` })
@@ -1039,18 +1040,20 @@ function te(e) {
1039
1040
  function Pt(e) {
1040
1041
  var o, a, r, c, s, d;
1041
1042
  function t() {
1042
- var h;
1043
+ var f;
1043
1044
  const u = e.image || e.src;
1044
1045
  if (!u || // We can auto add srcset for cdn.builder.io and shopify
1045
1046
  // images, otherwise you can supply this prop manually
1046
1047
  !(u.match(/builder\.io/) || u.match(/cdn\.shopify\.com/)))
1047
1048
  return e.srcset;
1048
- if (e.srcset && ((h = e.image) != null && h.includes("builder.io/api/v1/image"))) {
1049
- if (!e.srcset.includes(e.image.split("?")[0]))
1050
- return console.debug("Removed given srcset"), te(u);
1051
- } else if (e.image && !e.srcset)
1049
+ if (!e.noWebp) {
1050
+ if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
1051
+ if (!e.srcset.includes(e.image.split("?")[0]))
1052
+ return console.debug("Removed given srcset"), te(u);
1053
+ } else if (e.image && !e.srcset)
1054
+ return te(u);
1052
1055
  return te(u);
1053
- return te(u);
1056
+ }
1054
1057
  }
1055
1058
  function n() {
1056
1059
  var m;
@@ -1066,8 +1069,8 @@ function Pt(e) {
1066
1069
  };
1067
1070
  return e.aspectRatio ? m : void 0;
1068
1071
  }
1069
- return /* @__PURE__ */ E(w, { children: [
1070
- /* @__PURE__ */ E(w, { children: [
1072
+ return /* @__PURE__ */ E(C, { children: [
1073
+ /* @__PURE__ */ E(C, { children: [
1071
1074
  /* @__PURE__ */ E("picture", { children: [
1072
1075
  n() ? /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) : null,
1073
1076
  /* @__PURE__ */ l(
@@ -1082,7 +1085,7 @@ function Pt(e) {
1082
1085
  objectFit: e.backgroundSize || "cover",
1083
1086
  ...i()
1084
1087
  },
1085
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-ac3dff4a",
1088
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-56bbd606",
1086
1089
  src: e.image,
1087
1090
  srcSet: t(),
1088
1091
  sizes: e.sizes
@@ -1092,23 +1095,23 @@ function Pt(e) {
1092
1095
  e.aspectRatio && !((a = (o = e.builderBlock) == null ? void 0 : o.children) != null && a.length && e.fitContent) ? /* @__PURE__ */ l(
1093
1096
  "div",
1094
1097
  {
1095
- className: "builder-image-sizer div-ac3dff4a",
1098
+ className: "builder-image-sizer div-56bbd606",
1096
1099
  style: {
1097
1100
  paddingTop: e.aspectRatio * 100 + "%"
1098
1101
  }
1099
1102
  }
1100
1103
  ) : 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
1104
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(C, { children: e.children }) : null,
1105
+ !e.fitContent && ((d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length) ? /* @__PURE__ */ l("div", { className: "div-56bbd606-2", children: e.children }) : null
1103
1106
  ] }),
1104
- /* @__PURE__ */ l("style", { children: `.img-ac3dff4a {
1107
+ /* @__PURE__ */ l("style", { children: `.img-56bbd606 {
1105
1108
  opacity: 1;
1106
1109
  transition: opacity 0.2s ease-in-out;
1107
- }.div-ac3dff4a {
1110
+ }.div-56bbd606 {
1108
1111
  width: 100%;
1109
1112
  pointer-events: none;
1110
1113
  font-size: 0;
1111
- }.div-ac3dff4a-2 {
1114
+ }.div-56bbd606-2 {
1112
1115
  display: flex;
1113
1116
  flex-direction: column;
1114
1117
  align-items: stretch;
@@ -1416,8 +1419,8 @@ const Wt = {
1416
1419
  let u = !1;
1417
1420
  m.onload = () => {
1418
1421
  u = !0, s(m);
1419
- }, m.addEventListener("error", (h) => {
1420
- console.warn("Image load failed", h.error), d(h.error);
1422
+ }, m.addEventListener("error", (f) => {
1423
+ console.warn("Image load failed", f.error), d(f.error);
1421
1424
  }), m.src = r, setTimeout(() => {
1422
1425
  u || d(new Error("Image load timed out"));
1423
1426
  }, c);
@@ -1675,7 +1678,7 @@ const Ht = {
1675
1678
  }]
1676
1679
  };
1677
1680
  function Mt(e) {
1678
- const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []);
1681
+ const t = ie(null), [n, i] = A(() => []), [o, a] = A(() => []);
1679
1682
  return R(() => {
1680
1683
  var c;
1681
1684
  if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
@@ -1729,7 +1732,7 @@ const Ut = {
1729
1732
  }]
1730
1733
  }, _t = ["text/javascript", "application/javascript", "application/ecmascript"], Kt = (e) => _t.includes(e.type);
1731
1734
  function zt(e) {
1732
- const t = oe(null), [n, i] = N(() => []), [o, a] = N(() => []), [r, c] = N(() => !1);
1735
+ const t = ie(null), [n, i] = A(() => []), [o, a] = A(() => []), [r, c] = A(() => !1);
1733
1736
  function s() {
1734
1737
  if (!t.current || !t.current.getElementsByTagName)
1735
1738
  return;
@@ -1738,13 +1741,13 @@ function zt(e) {
1738
1741
  const u = d[m];
1739
1742
  if (u.src && !n.includes(u.src)) {
1740
1743
  n.push(u.src);
1741
- const h = document.createElement("script");
1742
- h.async = !0, h.src = u.src, document.head.appendChild(h);
1744
+ const f = document.createElement("script");
1745
+ f.async = !0, f.src = u.src, document.head.appendChild(f);
1743
1746
  } else if (Kt(u) && !o.includes(u.innerText))
1744
1747
  try {
1745
1748
  o.push(u.innerText), new Function(u.innerText)();
1746
- } catch (h) {
1747
- console.warn("`Embed`: Error running script:", h);
1749
+ } catch (f) {
1750
+ console.warn("`Embed`: Error running script:", f);
1748
1751
  }
1749
1752
  }
1750
1753
  }
@@ -2162,7 +2165,7 @@ const cn = (e, t, n = !0) => {
2162
2165
  }, ln = (e) => cn(e, (t) => {
2163
2166
  const n = t.getAttribute("builder-id") || t.id;
2164
2167
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2165
- }), xe = ({
2168
+ }), Se = ({
2166
2169
  event: e,
2167
2170
  target: t
2168
2171
  }) => {
@@ -2176,11 +2179,11 @@ const cn = (e, t, n = !0) => {
2176
2179
  return {
2177
2180
  targetBuilderElement: i || void 0,
2178
2181
  metadata: {
2179
- targetOffset: t ? xe({
2182
+ targetOffset: t ? Se({
2180
2183
  event: e,
2181
2184
  target: t
2182
2185
  }) : void 0,
2183
- builderTargetOffset: n ? xe({
2186
+ builderTargetOffset: n ? Se({
2184
2187
  event: e,
2185
2188
  target: n
2186
2189
  }) : void 0,
@@ -2194,7 +2197,7 @@ async function dn({
2194
2197
  }) {
2195
2198
  return Fe(), globalThis._BUILDER_PREVIEW_LRU_CACHE.set(e, t), { [e]: t };
2196
2199
  }
2197
- function Se(e, ...t) {
2200
+ function xe(e, ...t) {
2198
2201
  const n = Object(e);
2199
2202
  for (let i = 1; i < arguments.length; i++) {
2200
2203
  const o = arguments[i];
@@ -2208,27 +2211,27 @@ function un(e) {
2208
2211
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
2209
2212
  }
2210
2213
  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];
2214
+ const n = hn(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
2212
2215
  for (const c of r)
2213
2216
  for (const s of n)
2214
2217
  s in c || (c[s] = i[s]);
2215
2218
  }
2216
- function fn(e) {
2219
+ function hn(e) {
2217
2220
  const t = [];
2218
2221
  for (const n of e.steps)
2219
2222
  for (const i in n.styles)
2220
2223
  t.indexOf(i) === -1 && t.push(i);
2221
2224
  return t;
2222
2225
  }
2223
- function hn(e) {
2226
+ function fn(e) {
2224
2227
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
2225
2228
  if (!t.length) {
2226
2229
  un(e.elementId || e.id || "");
2227
2230
  return;
2228
2231
  }
2229
2232
  Array.from(t).forEach((n) => {
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(() => {
2233
+ mn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", xe(n.style, e.steps[0].styles), setTimeout(() => {
2234
+ 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(() => {
2232
2235
  n.style.transition = "", n.style.transitionDelay = "";
2233
2236
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
2234
2237
  });
@@ -2285,36 +2288,36 @@ font-weight: ${c};
2285
2288
  text-align: inherit;
2286
2289
  font-family: inherit;
2287
2290
  }
2288
- `, xn = (e) => e ? "" : vn, Sn = (e) => `variant-${e}`;
2291
+ `, Sn = (e) => e ? "" : vn, xn = (e) => `variant-${e}`;
2289
2292
  function pn(e) {
2290
- var B, O, D, X, Z, se, de;
2291
- const t = oe(null);
2293
+ var W, O, D, X, Z, se, de;
2294
+ const t = ie(null);
2292
2295
  function n(g) {
2293
- var v, x;
2294
- const f = {
2296
+ var S, x;
2297
+ const h = {
2295
2298
  ...e.builderContextSignal.rootState,
2296
2299
  ...g
2297
2300
  };
2298
- e.builderContextSignal.rootSetState ? (x = (v = e.builderContextSignal).rootSetState) == null || x.call(v, f) : e.builderContextSignal.rootState = f;
2301
+ e.builderContextSignal.rootSetState ? (x = (S = e.builderContextSignal).rootSetState) == null || x.call(S, h) : e.builderContextSignal.rootState = h;
2299
2302
  }
2300
2303
  function i(g) {
2301
- var v, x, C, P, U;
2302
- const f = {
2304
+ var S, x, k, B, U;
2305
+ const h = {
2303
2306
  ...e.builderContextSignal.content,
2304
2307
  ...g,
2305
2308
  data: {
2306
- ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
2309
+ ...(S = e.builderContextSignal.content) == null ? void 0 : S.data,
2307
2310
  ...g == null ? void 0 : g.data
2308
2311
  },
2309
2312
  meta: {
2310
2313
  ...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
2311
2314
  ...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)
2315
+ breakpoints: ((k = g == null ? void 0 : g.meta) == null ? void 0 : k.breakpoints) || ((U = (B = e.builderContextSignal.content) == null ? void 0 : B.meta) == null ? void 0 : U.breakpoints)
2313
2316
  }
2314
2317
  };
2315
2318
  dn({
2316
- value: f,
2317
- key: f.id
2319
+ value: h,
2320
+ key: h.id
2318
2321
  }).then(() => {
2319
2322
  T.refresh();
2320
2323
  });
@@ -2325,7 +2328,7 @@ function pn(e) {
2325
2328
  "aria-hidden": !0
2326
2329
  };
2327
2330
  }
2328
- const [a, r] = N(
2331
+ const [a, r] = A(
2329
2332
  () => e.contentWrapper || "div"
2330
2333
  );
2331
2334
  function c(g) {
@@ -2333,27 +2336,27 @@ function pn(e) {
2333
2336
  model: e.model,
2334
2337
  trustedHosts: e.trustedHosts,
2335
2338
  callbacks: {
2336
- configureSdk: (f) => {
2337
- var C;
2338
- const { breakpoints: v, contentId: x } = f;
2339
- !x || x !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || v && i({
2339
+ configureSdk: (h) => {
2340
+ var k;
2341
+ const { breakpoints: S, contentId: x } = h;
2342
+ !x || x !== ((k = e.builderContextSignal.content) == null ? void 0 : k.id) || S && i({
2340
2343
  meta: {
2341
- breakpoints: v
2344
+ breakpoints: S
2342
2345
  }
2343
2346
  });
2344
2347
  },
2345
- animation: (f) => {
2346
- hn(f);
2348
+ animation: (h) => {
2349
+ fn(h);
2347
2350
  },
2348
- contentUpdate: (f) => {
2349
- i(f);
2351
+ contentUpdate: (h) => {
2352
+ i(h);
2350
2353
  }
2351
2354
  }
2352
2355
  })(g);
2353
2356
  }
2354
2357
  function s() {
2355
- var f, v;
2356
- const g = (v = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : v.jsCode;
2358
+ var h, S;
2359
+ const g = (S = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : S.jsCode;
2357
2360
  g && H({
2358
2361
  code: g,
2359
2362
  context: e.context || {},
@@ -2366,31 +2369,31 @@ function pn(e) {
2366
2369
  enableCache: !1
2367
2370
  });
2368
2371
  }
2369
- const [d, m] = N(() => ({})), [u, h] = N(() => ({})), [p, I] = N(() => !1);
2370
- function y(g) {
2371
- var f, v;
2372
+ const [d, m] = A(() => ({})), [u, f] = A(() => ({})), [w, I] = A(() => !1);
2373
+ function b(g) {
2374
+ var h, S;
2372
2375
  if (e.builderContextSignal.content) {
2373
- const x = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, C = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
2376
+ const x = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, k = (S = e.builderContextSignal.content) == null ? void 0 : S.id;
2374
2377
  ue({
2375
2378
  type: "click",
2376
2379
  canTrack: q(e.canTrack),
2377
- contentId: C,
2380
+ contentId: k,
2378
2381
  apiKey: e.apiKey,
2379
- variationId: x !== C ? x : void 0,
2382
+ variationId: x !== k ? x : void 0,
2380
2383
  ...sn(g),
2381
- unique: !p
2384
+ unique: !w
2382
2385
  });
2383
2386
  }
2384
- p || I(!0);
2387
+ w || I(!0);
2385
2388
  }
2386
- function A() {
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())
2389
+ function P() {
2390
+ var h, S, x;
2391
+ const g = (x = (S = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : S.httpRequests) != null ? x : {};
2392
+ Object.entries(g).forEach(([k, B]) => {
2393
+ if (!B || u[k] || d[k] && !V())
2391
2394
  return;
2392
- u[C] = !0;
2393
- const U = P.replace(
2395
+ u[k] = !0;
2396
+ const U = B.replace(
2394
2397
  /{{([^}]+)}}/g,
2395
2398
  ($, Ne) => String(
2396
2399
  H({
@@ -2405,22 +2408,22 @@ function pn(e) {
2405
2408
  );
2406
2409
  De(U).then(($) => $.json()).then(($) => {
2407
2410
  n({
2408
- [C]: $
2409
- }), d[C] = !0;
2411
+ [k]: $
2412
+ }), d[k] = !0;
2410
2413
  }).catch(($) => {
2411
- console.error("error fetching dynamic data", P, $);
2414
+ console.error("error fetching dynamic data", B, $);
2412
2415
  }).finally(() => {
2413
- u[C] = !1;
2416
+ u[k] = !1;
2414
2417
  });
2415
2418
  });
2416
2419
  }
2417
- function S() {
2420
+ function v() {
2418
2421
  V() && window.dispatchEvent(
2419
2422
  new CustomEvent(
2420
2423
  "builder:component:stateChange",
2421
2424
  {
2422
2425
  detail: {
2423
- state: ie(e.builderContextSignal.rootState),
2426
+ state: ae(e.builderContextSignal.rootState),
2424
2427
  ref: {
2425
2428
  name: e.model
2426
2429
  }
@@ -2429,7 +2432,7 @@ function pn(e) {
2429
2432
  )
2430
2433
  );
2431
2434
  }
2432
- function b(g) {
2435
+ function y(g) {
2433
2436
  window.addEventListener("message", c), je(), He({
2434
2437
  ...e.locale ? {
2435
2438
  locale: e.locale
@@ -2442,25 +2445,25 @@ function pn(e) {
2442
2445
  } : {}
2443
2446
  }), Object.values(
2444
2447
  e.builderContextSignal.componentInfos
2445
- ).forEach((f) => {
2448
+ ).forEach((h) => {
2446
2449
  var x;
2447
- const v = Me(f);
2448
- (x = window.parent) == null || x.postMessage(v, "*");
2450
+ const S = Me(h);
2451
+ (x = window.parent) == null || x.postMessage(S, "*");
2449
2452
  }), window.addEventListener(
2450
2453
  "builder:component:stateChangeListenerActivated",
2451
- S
2454
+ v
2452
2455
  );
2453
2456
  }
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({
2457
+ function p(g) {
2458
+ const h = new URL(location.href).searchParams, S = h.get("builder.preview"), x = h.get(
2459
+ `builder.overrides.${S}`
2460
+ ), k = h.get("apiKey") || h.get("builder.space");
2461
+ S === e.model && k === e.apiKey && (!e.content || x === e.content.id) && ke({
2459
2462
  model: e.model,
2460
2463
  apiKey: e.apiKey,
2461
2464
  apiVersion: e.builderContextSignal.apiVersion
2462
- }).then((P) => {
2463
- P && i(P);
2465
+ }).then((B) => {
2466
+ B && i(B);
2464
2467
  });
2465
2468
  }
2466
2469
  const T = Ke();
@@ -2468,37 +2471,37 @@ function pn(e) {
2468
2471
  var g;
2469
2472
  return (g = t.current) == null || g.addEventListener(
2470
2473
  "initeditingbldr",
2471
- b
2474
+ y
2472
2475
  ), () => {
2473
- var f;
2474
- return (f = t.current) == null ? void 0 : f.removeEventListener(
2476
+ var h;
2477
+ return (h = t.current) == null ? void 0 : h.removeEventListener(
2475
2478
  "initeditingbldr",
2476
- b
2479
+ y
2477
2480
  );
2478
2481
  };
2479
2482
  }, []), R(() => {
2480
2483
  var g;
2481
2484
  return (g = t.current) == null || g.addEventListener(
2482
2485
  "initpreviewingbldr",
2483
- k
2486
+ p
2484
2487
  ), () => {
2485
- var f;
2486
- return (f = t.current) == null ? void 0 : f.removeEventListener(
2488
+ var h;
2489
+ return (h = t.current) == null ? void 0 : h.removeEventListener(
2487
2490
  "initpreviewingbldr",
2488
- k
2491
+ p
2489
2492
  );
2490
2493
  };
2491
2494
  }, []), R(() => {
2492
- var g, f;
2495
+ var g, h;
2493
2496
  if (L()) {
2494
2497
  if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && q(e.canTrack)) {
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;
2498
+ const x = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId, k = (h = e.builderContextSignal.content) == null ? void 0 : h.id, B = e.apiKey;
2496
2499
  ue({
2497
2500
  type: "impression",
2498
2501
  canTrack: !0,
2499
- contentId: C,
2500
- apiKey: P,
2501
- variationId: x !== C ? x : void 0
2502
+ contentId: k,
2503
+ apiKey: B,
2504
+ variationId: x !== k ? x : void 0
2502
2505
  });
2503
2506
  }
2504
2507
  Le() && V();
@@ -2506,14 +2509,14 @@ function pn(e) {
2506
2509
  }, []), R(() => {
2507
2510
  e.apiKey || J.error(
2508
2511
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2509
- ), s(), A(), S();
2512
+ ), s(), P(), v();
2510
2513
  }, []), R(() => {
2511
2514
  }, [e.content]), R(() => {
2512
2515
  s();
2513
- }, [(O = (B = e.builderContextSignal.content) == null ? void 0 : B.data) == null ? void 0 : O.jsCode]), R(() => {
2514
- A();
2516
+ }, [(O = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : O.jsCode]), R(() => {
2517
+ P();
2515
2518
  }, [(X = (D = e.builderContextSignal.content) == null ? void 0 : D.data) == null ? void 0 : X.httpRequests]), R(() => {
2516
- S();
2519
+ v();
2517
2520
  }, [e.builderContextSignal.rootState]), R(() => {
2518
2521
  e.data && n(e.data);
2519
2522
  }, [e.data]), R(() => {
@@ -2523,18 +2526,18 @@ function pn(e) {
2523
2526
  }, [e.locale]), R(() => () => {
2524
2527
  L() && (window.removeEventListener("message", c), window.removeEventListener(
2525
2528
  "builder:component:stateChangeListenerActivated",
2526
- S
2529
+ v
2527
2530
  ));
2528
2531
  }, []), /* @__PURE__ */ l(rn.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(
2529
2532
  a,
2530
2533
  {
2531
2534
  ref: t,
2532
- onClick: (g) => y(g),
2535
+ onClick: (g) => b(g),
2533
2536
  "builder-content-id": (Z = e.builderContextSignal.content) == null ? void 0 : Z.id,
2534
2537
  "builder-model": e.model,
2535
2538
  ...o(),
2536
2539
  ...e.contentWrapperProps,
2537
- className: Sn(
2540
+ className: xn(
2538
2541
  ((se = e.content) == null ? void 0 : se.testVariationId) || ((de = e.content) == null ? void 0 : de.id)
2539
2542
  ),
2540
2543
  children: e.children
@@ -2550,7 +2553,7 @@ ${yn({
2550
2553
  ${bn({
2551
2554
  customFonts: e.customFonts
2552
2555
  })}
2553
- ${xn(e.isNestedRender)}
2556
+ ${Sn(e.isNestedRender)}
2554
2557
  `.trim();
2555
2558
  return /* @__PURE__ */ l(
2556
2559
  Q,
@@ -2590,7 +2593,7 @@ const Cn = ({
2590
2593
  meta: e == null ? void 0 : e.meta
2591
2594
  } : void 0;
2592
2595
  function pe(e) {
2593
- var o, a, r, c, s, d, m, u, h;
2596
+ var o, a, r, c, s, d, m, u, f, w, I;
2594
2597
  const t = an({
2595
2598
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2596
2599
  variationId: (o = e.content) == null ? void 0 : o.testVariationId,
@@ -2598,13 +2601,13 @@ function pe(e) {
2598
2601
  contentId: (a = e.content) == null ? void 0 : a.id
2599
2602
  }), n = [
2600
2603
  ...ye(),
2601
- ...e.customComponents || []
2604
+ ...((r = e.customComponents) == null ? void 0 : r.filter(({ models: b }) => !(b != null && b.length) || !e.model ? !0 : b.includes(e.model))) || []
2602
2605
  ].reduce(
2603
- (p, { component: I, ...y }) => ({
2604
- ...p,
2605
- [y.name]: {
2606
- component: I,
2607
- ...me(y)
2606
+ (b, { component: P, ...v }) => ({
2607
+ ...b,
2608
+ [v.name]: {
2609
+ component: P,
2610
+ ...me(v)
2608
2611
  }
2609
2612
  }),
2610
2613
  {}
@@ -2626,11 +2629,11 @@ function pe(e) {
2626
2629
  apiVersion: e.apiVersion,
2627
2630
  componentInfos: [
2628
2631
  ...ye(),
2629
- ...e.customComponents || []
2632
+ ...((c = e.customComponents) == null ? void 0 : c.filter(({ models: b }) => !(b != null && b.length) || !e.model ? !0 : b.includes(e.model))) || []
2630
2633
  ].reduce(
2631
- (p, { component: I, ...y }) => ({
2632
- ...p,
2633
- [y.name]: me(y)
2634
+ (b, { component: P, ...v }) => ({
2635
+ ...b,
2636
+ [v.name]: me(v)
2634
2637
  }),
2635
2638
  {}
2636
2639
  ),
@@ -2670,15 +2673,15 @@ function pe(e) {
2670
2673
  {
2671
2674
  nonce: e.nonce || "",
2672
2675
  isNestedRender: e.isNestedRender,
2673
- contentId: (r = i.content) == null ? void 0 : r.id,
2674
- cssCode: (s = (c = i.content) == null ? void 0 : c.data) == null ? void 0 : s.cssCode,
2675
- customFonts: (m = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : m.customFonts
2676
+ contentId: (s = i.content) == null ? void 0 : s.id,
2677
+ cssCode: (m = (d = i.content) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
2678
+ customFonts: (f = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : f.customFonts
2676
2679
  }
2677
2680
  ),
2678
2681
  /* @__PURE__ */ l(
2679
2682
  le,
2680
2683
  {
2681
- blocks: (h = (u = i.content) == null ? void 0 : u.data) == null ? void 0 : h.blocks,
2684
+ blocks: (I = (w = i.content) == null ? void 0 : w.data) == null ? void 0 : I.blocks,
2682
2685
  context: i,
2683
2686
  registeredComponents: n,
2684
2687
  linkComponent: e.linkComponent
@@ -2714,7 +2717,7 @@ function In(e) {
2714
2717
  canTrack: q(e.canTrack)
2715
2718
  });
2716
2719
  };
2717
- return /* @__PURE__ */ E(w, { children: [
2720
+ return /* @__PURE__ */ E(C, { children: [
2718
2721
  !e.isNestedRender && M !== "reactNative" ? /* @__PURE__ */ l(
2719
2722
  ne,
2720
2723
  {
@@ -2723,7 +2726,7 @@ function In(e) {
2723
2726
  nonce: e.nonce || ""
2724
2727
  }
2725
2728
  ) : null,
2726
- t ? /* @__PURE__ */ E(w, { children: [
2729
+ t ? /* @__PURE__ */ E(C, { children: [
2727
2730
  /* @__PURE__ */ l(
2728
2731
  Q,
2729
2732
  {
@@ -2820,12 +2823,12 @@ async function Rn(e) {
2820
2823
  }, n = function() {
2821
2824
  return "div";
2822
2825
  }, i = function() {
2823
- var u, h;
2826
+ var u, f;
2824
2827
  return [
2825
2828
  e.attributes[j()],
2826
2829
  "builder-symbol",
2827
2830
  (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
2828
- (h = e.symbol) != null && h.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2831
+ (f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2829
2832
  ].filter(Boolean).join(" ");
2830
2833
  }, o = ((a = e.symbol) == null ? void 0 : a.content) || await Tn({
2831
2834
  symbol: e.symbol,