@builder.io/sdk-react 4.2.1 → 4.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/lib/browser/blocks-exports.cjs +17 -17
  2. package/lib/browser/blocks-exports.mjs +759 -742
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-4cf669a1.cjs → server-entry-06504dba.cjs} +1 -1
  6. package/lib/browser/{server-entry-5e98a993.js → server-entry-074665de.js} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-4bab42b1.cjs → accordion-0768e15a.cjs} +1 -1
  10. package/lib/edge/{accordion-a8a363e4.js → accordion-d3831f48.js} +1 -1
  11. package/lib/edge/{blocks-e1f5b0d0.js → blocks-0269007e.js} +105 -106
  12. package/lib/edge/{blocks-d07d0261.cjs → blocks-2af1d7c9.cjs} +10 -10
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-6734c0bb.cjs → button-050f4fef.cjs} +1 -1
  16. package/lib/edge/{button-bbcadacf.js → button-a478ff1a.js} +2 -2
  17. package/lib/edge/{columns-cf3081c6.js → columns-0b3181f1.js} +3 -3
  18. package/lib/edge/{columns-821cba14.cjs → columns-25375990.cjs} +1 -1
  19. package/lib/edge/{content-variants-a704e35c.js → content-variants-0dd65b50.js} +426 -415
  20. package/lib/edge/content-variants-4cab7215.cjs +302 -0
  21. package/lib/edge/{custom-code-8fcaa31e.cjs → custom-code-eb5aedd2.cjs} +1 -1
  22. package/lib/edge/{custom-code-f6c30129.js → custom-code-f7a0f1c1.js} +1 -1
  23. package/lib/edge/{embed-666d3cc4.cjs → embed-69114c35.cjs} +1 -1
  24. package/lib/edge/{embed-3c0b5564.js → embed-e4979560.js} +1 -1
  25. package/lib/edge/{form-8b068721.js → form-30fba682.js} +24 -21
  26. package/lib/edge/form-7b4bd399.cjs +1 -0
  27. package/lib/edge/{get-class-prop-name-d6d821d6.js → get-class-prop-name-770bdff2.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-2869a960.cjs → get-class-prop-name-f470d5ce.cjs} +1 -1
  29. package/lib/edge/{img-dfbd4080.js → img-3bb375bf.js} +1 -1
  30. package/lib/edge/{img-b04b9b6d.cjs → img-ddf74e12.cjs} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/{input-d31d6451.cjs → input-a6caf021.cjs} +1 -1
  34. package/lib/edge/{input-665ef328.js → input-e4a9fe0b.js} +1 -1
  35. package/lib/edge/{personalization-container-e784836e.js → personalization-container-64f3cd71.js} +4 -4
  36. package/lib/edge/{personalization-container-d12566e8.cjs → personalization-container-f7030f08.cjs} +1 -1
  37. package/lib/edge/{select-c3085265.cjs → select-c217566c.cjs} +1 -1
  38. package/lib/edge/{select-5fe49bd4.js → select-c59c9ac6.js} +1 -1
  39. package/lib/edge/{server-entry-acf5ce7d.cjs → server-entry-67200cf1.cjs} +1 -1
  40. package/lib/edge/{server-entry-c9d5300f.js → server-entry-fb5f2b80.js} +1 -1
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +1 -1
  43. package/lib/edge/{slot-a17ee2d7.js → slot-26ec2911.js} +3 -3
  44. package/lib/edge/{slot-cbbbb02e.cjs → slot-ccd946e2.cjs} +1 -1
  45. package/lib/edge/{symbol-9f960685.js → symbol-10cb2f77.js} +26 -23
  46. package/lib/edge/symbol-4548e942.cjs +1 -0
  47. package/lib/edge/tabs-82a9170c.cjs +1 -0
  48. package/lib/edge/{tabs-26ac5b2f.js → tabs-f9110171.js} +24 -23
  49. package/lib/node/blocks-exports.cjs +20 -20
  50. package/lib/node/blocks-exports.mjs +919 -902
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +3 -3
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +3 -3
  55. package/lib/node/{server-entry-48724189.js → server-entry-83d3751d.js} +1 -1
  56. package/lib/node/{server-entry-562c0663.cjs → server-entry-d40e4b66.cjs} +1 -1
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/lib/node/{setIvm-3b6199a0.cjs → setIvm-0a5b2ba2.cjs} +1 -1
  60. package/lib/node/{setIvm-a7aba6d2.js → setIvm-596668c3.js} +1 -1
  61. package/lib/node/setIvm.cjs +1 -1
  62. package/lib/node/setIvm.mjs +2 -2
  63. package/lib/node/{should-force-browser-runtime-in-node-fdc70f22.js → should-force-browser-runtime-in-node-180c3315.js} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-cbe0ef14.cjs → should-force-browser-runtime-in-node-5b9e373d.cjs} +1 -1
  65. package/package.json +1 -1
  66. package/types/blocks/symbol/symbol.types.d.ts +1 -2
  67. package/types/components/awaiter.d.ts +1 -11
  68. package/types/components/awaiter.types.d.ts +7 -0
  69. package/types/constants/sdk-version.d.ts +1 -1
  70. package/lib/edge/content-variants-ec180883.cjs +0 -302
  71. package/lib/edge/form-51f639ab.cjs +0 -1
  72. package/lib/edge/symbol-b56b5675.cjs +0 -1
  73. package/lib/edge/tabs-bf6643d7.cjs +0 -1
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { TARGET as O, isEditing as L, isBrowser as M, getUserAttributes as ct, checkIsDefined as ae, logger as J, isPreviewing as se, userAttributesService as Ce, getDefaultCanTrack as Z, logFetch as Fe, setupBrowserForEditing as ut, createRegisterComponentMessage as dt, getCookieSync as mt, _track as Te, fetchOneEntry as Le, createEditorListener as ft, serializeIncludingFunctions as Ie, handleABTestingSync as ht } from "./server-entry-5e98a993.js";
3
- import { setClientUserAttributes as Hi } from "./server-entry-5e98a993.js";
4
- import { jsx as s, Fragment as R, jsxs as $ } from "react/jsx-runtime";
2
+ import { TARGET as O, isEditing as _, isBrowser as K, getUserAttributes as ct, checkIsDefined as ae, logger as Q, isPreviewing as se, userAttributesService as Ce, getDefaultCanTrack as ee, logFetch as Fe, setupBrowserForEditing as ut, createRegisterComponentMessage as dt, getCookieSync as mt, _track as Te, fetchOneEntry as Le, createEditorListener as ft, serializeIncludingFunctions as Ie, handleABTestingSync as ht } from "./server-entry-074665de.js";
3
+ import { setClientUserAttributes as Hi } from "./server-entry-074665de.js";
4
+ import { jsx as s, Fragment as P, jsxs as D } from "react/jsx-runtime";
5
5
  import * as gt from "react";
6
- import { createContext as _e, useEffect as V, useState as C, useRef as H, useContext as we, createElement as Ue } from "react";
6
+ import { createContext as _e, useEffect as N, useState as k, useRef as z, useContext as we, createElement as Ue } from "react";
7
7
  const bt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), yt = (e) => typeof e == "string" && bt.has(e.toLowerCase());
8
8
  function ye(e) {
9
- return /* @__PURE__ */ s(R, { children: yt(e.TagName) ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(R, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
9
+ return /* @__PURE__ */ s(P, { children: yt(e.TagName) ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(P, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
10
10
  }
11
- const z = () => {
11
+ const G = () => {
12
12
  switch (O) {
13
13
  case "react":
14
14
  case "reactNative":
@@ -26,7 +26,7 @@ function pt(e) {
26
26
  function t() {
27
27
  return {
28
28
  ...e.attributes,
29
- [z()]: `${e.link ? "" : "builder-button"} ${e.attributes[z()] || ""}`,
29
+ [G()]: `${e.link ? "" : "builder-button"} ${e.attributes[G()] || ""}`,
30
30
  ...e.link ? {
31
31
  href: e.link,
32
32
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -77,9 +77,9 @@ const pe = _e({
77
77
  context: t,
78
78
  event: n
79
79
  }), xt = () => ({
80
- isEditing: L(),
81
- isBrowser: M(),
82
- isServer: !M(),
80
+ isEditing: _(),
81
+ isBrowser: K(),
82
+ isServer: !K(),
83
83
  getUserAttributes: () => ct()
84
84
  }), St = (e, {
85
85
  isExpression: t = !0
@@ -141,14 +141,14 @@ const Ct = ({
141
141
  if (!kt())
142
142
  return !1;
143
143
  const t = process.arch === "arm64", n = process.version.startsWith("v20"), i = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
144
- return t && n && !i ? (e && 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;
145
- }, Tt = (e) => (M() || Ct({
144
+ return t && n && !i ? (e && Q.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;
145
+ }, Tt = (e) => (K() || Ct({
146
146
  shouldLogWarning: !0
147
147
  }), Ee(e)), It = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, wt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Et = (e) => {
148
148
  var t, n, i, r, o, a;
149
149
  return ((i = (n = (t = It.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : i.slice(1)) || ((a = (o = (r = wt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : o.getPath) == null ? void 0 : a.slice(1));
150
150
  };
151
- function G({
151
+ function Y({
152
152
  code: e,
153
153
  context: t,
154
154
  localState: n,
@@ -178,8 +178,8 @@ function G({
178
178
  };
179
179
  try {
180
180
  return Tt(c);
181
- } catch (u) {
182
- J.error("Failed code evaluation: " + u.message, {
181
+ } catch (d) {
182
+ Q.error("Failed code evaluation: " + d.message, {
183
183
  code: e
184
184
  });
185
185
  return;
@@ -198,7 +198,7 @@ const Pt = (e, t) => {
198
198
  if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((i = e.component.options) != null && i.text) && typeof e.component.options.text == "string")
199
199
  return {
200
200
  ...e.component.options,
201
- text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, o) => G({
201
+ text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, o) => Y({
202
202
  code: o,
203
203
  context: t,
204
204
  localState: t.localState,
@@ -309,7 +309,7 @@ const Wt = ["svelte", "vue", "angular", "qwik", "solid"].includes(O), $t = (e) =
309
309
  return e;
310
310
  const o = $t(e);
311
311
  for (const a in e.bindings) {
312
- const l = e.bindings[a], c = G({
312
+ const l = e.bindings[a], c = Y({
313
313
  code: l,
314
314
  localState: n,
315
315
  rootState: i,
@@ -343,13 +343,13 @@ function Ft(e, t, n = {}) {
343
343
  l = n.leading === !1 ? 0 : Date.now(), a = null, o = e.apply(i, r), a || (i = r = null);
344
344
  };
345
345
  return function() {
346
- const u = Date.now();
347
- !l && n.leading === !1 && (l = u);
348
- const f = t - (u - l);
349
- return i = this, r = arguments, f <= 0 || f > t ? (a && (clearTimeout(a), a = null), l = u, o = e.apply(i, r), a || (i = r = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, f)), o;
346
+ const d = Date.now();
347
+ !l && n.leading === !1 && (l = d);
348
+ const h = t - (d - l);
349
+ return i = this, r = arguments, h <= 0 || h > t ? (a && (clearTimeout(a), a = null), l = d, o = e.apply(i, r), a || (i = r = null)) : !a && n.trailing !== !1 && (a = setTimeout(c, h)), o;
350
350
  };
351
351
  }
352
- function X(e, ...t) {
352
+ function Z(e, ...t) {
353
353
  const n = Object(e);
354
354
  for (let i = 1; i < arguments.length; i++) {
355
355
  const r = arguments[i];
@@ -393,8 +393,8 @@ function Ge(e) {
393
393
  return;
394
394
  }
395
395
  Array.from(t).forEach((n) => {
396
- Je(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
397
- n.style.transition = `all ${e.duration}s ${ce(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
396
+ Je(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
397
+ n.style.transition = `all ${e.duration}s ${ce(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
398
398
  n.style.transition = "", n.style.transitionDelay = "";
399
399
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
400
400
  });
@@ -411,23 +411,23 @@ function Ut(e) {
411
411
  let i = !1, r = !1;
412
412
  function o() {
413
413
  !i && l(n) ? (i = !0, r = !0, setTimeout(() => {
414
- X(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
414
+ Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", a), setTimeout(() => {
415
415
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
416
416
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
417
- })) : e.repeat && i && !r && !l(n) && (i = !1, X(n.style, e.steps[0].styles));
417
+ })) : e.repeat && i && !r && !l(n) && (i = !1, Z(n.style, e.steps[0].styles));
418
418
  }
419
419
  const a = Ft(o, 200, {
420
420
  leading: !1
421
421
  });
422
- function l(f) {
423
- const b = f.getBoundingClientRect(), m = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * m;
424
- return b.bottom > d && b.top < m - d;
422
+ function l(h) {
423
+ const b = h.getBoundingClientRect(), u = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * u;
424
+ return b.bottom > f && b.top < u - f;
425
425
  }
426
426
  const c = e.steps[0].styles;
427
- function u() {
428
- X(n.style, c);
427
+ function d() {
428
+ Z(n.style, c);
429
429
  }
430
- u(), setTimeout(() => {
430
+ d(), setTimeout(() => {
431
431
  n.style.transition = `all ${e.duration}s ${ce(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
432
432
  }), document.addEventListener("scroll", a, {
433
433
  capture: !0,
@@ -439,7 +439,7 @@ const Qe = (e) => Object.entries(e).map(([n, i]) => {
439
439
  if (typeof i == "string")
440
440
  return `${ce(n)}: ${i};`;
441
441
  }).filter(ae), Ht = (e) => Qe(e).join(`
442
- `), Y = ({
442
+ `), X = ({
443
443
  mediaQuery: e,
444
444
  className: t,
445
445
  styles: n
@@ -505,7 +505,7 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
505
505
  } = e;
506
506
  if (!(n != null && n.collection))
507
507
  return;
508
- const r = G({
508
+ const r = Y({
509
509
  code: n.collection,
510
510
  localState: t.localState,
511
511
  rootState: t.rootState,
@@ -515,15 +515,15 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
515
515
  if (!Array.isArray(r))
516
516
  return;
517
517
  const o = n.collection.split(".").pop(), a = n.itemName || (o ? o + "Item" : "item");
518
- return r.map((c, u) => ({
518
+ return r.map((c, d) => ({
519
519
  context: {
520
520
  ...t,
521
521
  localState: {
522
522
  ...t.localState,
523
- $index: u,
523
+ $index: d,
524
524
  $item: c,
525
525
  [a]: c,
526
- [`$${a}Index`]: u
526
+ [`$${a}Index`]: d
527
527
  }
528
528
  },
529
529
  block: i
@@ -608,7 +608,7 @@ const Xe = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
608
608
  default: l + 1
609
609
  }, t;
610
610
  };
611
- function ee(e) {
611
+ function te(e) {
612
612
  return /* @__PURE__ */ s(
613
613
  "style",
614
614
  {
@@ -624,61 +624,61 @@ function Yt(e) {
624
624
  return ae(i.hide) ? !i.hide : ae(i.show) ? i.show : !0;
625
625
  }
626
626
  function n() {
627
- var k, A, T, w, h;
627
+ var T, E, U, H, q;
628
628
  const i = e.block, r = i.responsiveStyles, o = e.context.content, a = et(
629
- ((k = o == null ? void 0 : o.meta) == null ? void 0 : k.breakpoints) || {}
630
- ), l = !!((T = (A = o == null ? void 0 : o.meta) == null ? void 0 : A.breakpoints) != null && T.xsmall), c = r == null ? void 0 : r.large, u = r == null ? void 0 : r.medium, f = r == null ? void 0 : r.small, b = r == null ? void 0 : r.xsmall, m = i.id;
631
- if (!m)
629
+ ((T = o == null ? void 0 : o.meta) == null ? void 0 : T.breakpoints) || {}
630
+ ), l = !!((U = (E = o == null ? void 0 : o.meta) == null ? void 0 : E.breakpoints) != null && U.xsmall), c = r == null ? void 0 : r.large, d = r == null ? void 0 : r.medium, h = r == null ? void 0 : r.small, b = r == null ? void 0 : r.xsmall, u = i.id;
631
+ if (!u)
632
632
  return "";
633
- const v = c ? Y({
634
- className: m,
633
+ const x = c ? X({
634
+ className: u,
635
635
  styles: c
636
- }) : "", d = u ? Y({
637
- className: m,
638
- styles: u,
636
+ }) : "", f = d ? X({
637
+ className: u,
638
+ styles: d,
639
639
  mediaQuery: de(
640
640
  "medium",
641
641
  a
642
642
  )
643
- }) : "", g = f ? Y({
644
- className: m,
645
- styles: f,
643
+ }) : "", m = h ? X({
644
+ className: u,
645
+ styles: h,
646
646
  mediaQuery: de(
647
647
  "small",
648
648
  a
649
649
  )
650
- }) : "", p = b && l ? Y({
651
- className: m,
650
+ }) : "", y = b && l ? X({
651
+ className: u,
652
652
  styles: b,
653
653
  mediaQuery: de(
654
654
  "xsmall",
655
655
  a
656
656
  )
657
- }) : "", y = i.animations && i.animations.find((x) => x.trigger === "hover");
657
+ }) : "", g = i.animations && i.animations.find((p) => p.trigger === "hover");
658
658
  let S = "";
659
- if (y) {
660
- const x = ((h = (w = y.steps) == null ? void 0 : w[1]) == null ? void 0 : h.styles) || {};
661
- S = Y({
662
- className: `${m}:hover`,
659
+ if (g) {
660
+ const p = ((q = (H = g.steps) == null ? void 0 : H[1]) == null ? void 0 : q.styles) || {};
661
+ S = X({
662
+ className: `${u}:hover`,
663
663
  styles: {
664
- ...x,
665
- transition: `all ${y.duration}s ${ce(
666
- y.easing
664
+ ...p,
665
+ transition: `all ${g.duration}s ${ce(
666
+ g.easing
667
667
  )}`,
668
- transitionDelay: y.delay ? `${y.delay}s` : "0s"
668
+ transitionDelay: g.delay ? `${g.delay}s` : "0s"
669
669
  }
670
670
  }) || "";
671
671
  }
672
672
  return [
673
- v,
674
- d,
675
- g,
676
- p,
673
+ x,
674
+ f,
675
+ m,
676
+ y,
677
677
  S
678
678
  ].join(" ");
679
679
  }
680
- return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
681
- ee,
680
+ return /* @__PURE__ */ s(P, { children: n() && t() ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
681
+ te,
682
682
  {
683
683
  id: "builderio-block",
684
684
  styles: n(),
@@ -689,7 +689,7 @@ function Yt(e) {
689
689
  function Xt(e) {
690
690
  return e.charAt(0).toUpperCase() + e.slice(1);
691
691
  }
692
- const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => G({
692
+ const Zt = (e) => `on${Xt(e)}`, en = (e, t) => (n) => Y({
693
693
  code: e,
694
694
  context: t.context,
695
695
  localState: t.localState,
@@ -740,7 +740,7 @@ function xe({
740
740
  block: e,
741
741
  context: t
742
742
  }),
743
- [z()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
743
+ [G()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
744
744
  };
745
745
  return tn({
746
746
  properties: n,
@@ -770,12 +770,12 @@ function rn(e) {
770
770
  );
771
771
  }
772
772
  function on(e) {
773
- return V(() => {
774
- }, []), /* @__PURE__ */ s(R, { children: e.children });
773
+ return N(() => {
774
+ }, []), /* @__PURE__ */ s(P, { children: e.children });
775
775
  }
776
776
  function an(e) {
777
777
  var i, r;
778
- C(() => 0);
778
+ k(() => 0);
779
779
  function t() {
780
780
  return e.includeBlockProps ? {
781
781
  ...xe({
@@ -794,8 +794,8 @@ function an(e) {
794
794
  function n() {
795
795
  return e.wrapperProps;
796
796
  }
797
- return V(() => {
798
- }, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
797
+ return N(() => {
798
+ }, [e.wrapperProps, (r = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : r.options]), /* @__PURE__ */ s(P, { children: e.Wrapper.load ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
799
799
  on,
800
800
  {
801
801
  load: e.Wrapper.load,
@@ -838,12 +838,11 @@ const ln = ({
838
838
  };
839
839
  function Pe(e) {
840
840
  var i;
841
- C(() => !1);
842
- const [t, n] = C(
841
+ k(() => !1);
842
+ const [t, n] = k(
843
843
  () => e.isInteractive ? an : e.componentRef
844
844
  );
845
- return V(() => {
846
- }, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
845
+ return /* @__PURE__ */ s(P, { children: e.componentRef ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
847
846
  t,
848
847
  {
849
848
  ...ln({
@@ -856,7 +855,7 @@ function Pe(e) {
856
855
  isInteractive: e.isInteractive,
857
856
  contextValue: e.context
858
857
  }),
859
- children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
858
+ children: e.componentRef ? /* @__PURE__ */ s(P, { children: (i = e.blockChildren) == null ? void 0 : i.map((r) => /* @__PURE__ */ s(
860
859
  ue,
861
860
  {
862
861
  block: r,
@@ -865,13 +864,13 @@ function Pe(e) {
865
864
  linkComponent: e.linkComponent
866
865
  },
867
866
  r.id
868
- ))
867
+ )) }) : null
869
868
  }
870
869
  ) }) : null });
871
870
  }
872
871
  function Ve(e) {
873
- const [t, n] = C(() => e.repeatContext);
874
- return V(() => {
872
+ const [t, n] = k(() => e.repeatContext);
873
+ return N(() => {
875
874
  n(e.repeatContext);
876
875
  }, [e.repeatContext]), /* @__PURE__ */ s(pe.Provider, { value: t, children: /* @__PURE__ */ s(
877
876
  ue,
@@ -884,29 +883,29 @@ function Ve(e) {
884
883
  ) });
885
884
  }
886
885
  function ue(e) {
887
- var f, b, m, v;
886
+ var h, b, u, x;
888
887
  function t() {
889
888
  return zt({
890
889
  block: e.block,
891
890
  context: e.context
892
891
  });
893
892
  }
894
- const [n, i] = C(() => ({
893
+ const [n, i] = k(() => ({
895
894
  value: null,
896
895
  update: !1
897
896
  }));
898
897
  function r() {
899
- var g;
898
+ var m;
900
899
  if (n.value && !n.update && !se())
901
900
  return n.value;
902
- const d = (g = e.block.repeat) != null && g.collection ? e.block : Ot({
901
+ const f = (m = e.block.repeat) != null && m.collection ? e.block : Ot({
903
902
  block: e.block,
904
903
  localState: e.context.localState,
905
904
  rootState: e.context.rootState,
906
905
  rootSetState: e.context.rootSetState,
907
906
  context: e.context.context
908
907
  });
909
- return n.value = d, n.update = !1, d;
908
+ return n.value = f, n.update = !1, f;
910
909
  }
911
910
  function o() {
912
911
  return jt({
@@ -916,25 +915,25 @@ function ue(e) {
916
915
  });
917
916
  }
918
917
  function a() {
919
- var g;
920
- return e.block.tagName === "a" || ((g = r().properties) == null ? void 0 : g.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
918
+ var m;
919
+ return e.block.tagName === "a" || ((m = r().properties) == null ? void 0 : m.href) || r().href ? e.linkComponent || "a" : e.block.tagName || "div";
921
920
  }
922
921
  function l() {
923
- var p, y;
924
- if ((p = e.block.repeat) != null && p.collection)
925
- return !!((y = t == null ? void 0 : t()) != null && y.length);
926
- const d = "hide" in r() ? r().hide : !1;
927
- return ("show" in r() ? r().show : !0) && !d;
922
+ var y, g;
923
+ if ((y = e.block.repeat) != null && y.collection)
924
+ return !!((g = t == null ? void 0 : t()) != null && g.length);
925
+ const f = "hide" in r() ? r().hide : !1;
926
+ return ("show" in r() ? r().show : !0) && !f;
928
927
  }
929
928
  function c() {
930
- var g, p;
931
- return !((g = o == null ? void 0 : o()) != null && g.component) && !t() ? (p = r().children) != null ? p : [] : [];
929
+ var m, y;
930
+ return !((m = o == null ? void 0 : o()) != null && m.component) && !t() ? (y = r().children) != null ? y : [] : [];
932
931
  }
933
- function u() {
934
- var d, g, p, y;
932
+ function d() {
933
+ var f, m, y, g;
935
934
  return {
936
- blockChildren: (d = r().children) != null ? d : [],
937
- componentRef: (g = o == null ? void 0 : o()) == null ? void 0 : g.component,
935
+ blockChildren: (f = r().children) != null ? f : [],
936
+ componentRef: (m = o == null ? void 0 : o()) == null ? void 0 : m.component,
938
937
  componentOptions: {
939
938
  ...Rt(r(), e.context),
940
939
  ...Gt(o(), r()),
@@ -950,54 +949,54 @@ function ue(e) {
950
949
  linkComponent: e.linkComponent,
951
950
  registeredComponents: e.registeredComponents,
952
951
  builderBlock: r(),
953
- includeBlockProps: ((p = o == null ? void 0 : o()) == null ? void 0 : p.noWrap) === !0,
954
- isInteractive: !((y = o == null ? void 0 : o()) != null && y.isRSC && O === "rsc")
952
+ includeBlockProps: ((y = o == null ? void 0 : o()) == null ? void 0 : y.noWrap) === !0,
953
+ isInteractive: !((g = o == null ? void 0 : o()) != null && g.isRSC && O === "rsc")
955
954
  };
956
955
  }
957
- return V(() => {
958
- const d = r().id, g = r().animations;
959
- g && d && Lt(
960
- g.map((p) => ({
961
- ...p,
962
- elementId: d
956
+ return N(() => {
957
+ const f = r().id, m = r().animations;
958
+ m && f && Lt(
959
+ m.map((y) => ({
960
+ ...y,
961
+ elementId: f
963
962
  }))
964
963
  );
965
- }, []), V(() => {
964
+ }, []), N(() => {
966
965
  n.update = !0;
967
- }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ $(R, { children: [
966
+ }), /* @__PURE__ */ s(P, { children: l() ? /* @__PURE__ */ D(P, { children: [
968
967
  /* @__PURE__ */ s(Yt, { block: r(), context: e.context }),
969
- (f = o == null ? void 0 : o()) != null && f.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((d, g) => /* @__PURE__ */ s(
968
+ (h = o == null ? void 0 : o()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(P, { children: (x = t()) == null ? void 0 : x.map((f, m) => /* @__PURE__ */ s(
970
969
  Ve,
971
970
  {
972
- repeatContext: d.context,
973
- block: d.block,
971
+ repeatContext: f.context,
972
+ block: f.block,
974
973
  registeredComponents: e.registeredComponents,
975
974
  linkComponent: e.linkComponent
976
975
  },
977
- Re(g)
976
+ Re(m)
978
977
  )) }) : /* @__PURE__ */ s(
979
978
  Pe,
980
979
  {
981
- componentRef: u().componentRef,
982
- componentOptions: u().componentOptions,
983
- blockChildren: u().blockChildren,
984
- context: u().context,
985
- registeredComponents: u().registeredComponents,
986
- linkComponent: u().linkComponent,
987
- builderBlock: u().builderBlock,
988
- includeBlockProps: u().includeBlockProps,
989
- isInteractive: u().isInteractive
980
+ componentRef: d().componentRef,
981
+ componentOptions: d().componentOptions,
982
+ blockChildren: d().blockChildren,
983
+ context: d().context,
984
+ registeredComponents: d().registeredComponents,
985
+ linkComponent: d().linkComponent,
986
+ builderBlock: d().builderBlock,
987
+ includeBlockProps: d().includeBlockProps,
988
+ isInteractive: d().isInteractive
990
989
  }
991
- ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (m = t()) == null ? void 0 : m.map((d, g) => /* @__PURE__ */ s(
990
+ ) : /* @__PURE__ */ s(P, { children: t() ? /* @__PURE__ */ s(P, { children: (u = t()) == null ? void 0 : u.map((f, m) => /* @__PURE__ */ s(
992
991
  Ve,
993
992
  {
994
- repeatContext: d.context,
995
- block: d.block,
993
+ repeatContext: f.context,
994
+ block: f.block,
996
995
  registeredComponents: e.registeredComponents,
997
996
  linkComponent: e.linkComponent
998
997
  },
999
- Re(g)
1000
- )) }) : /* @__PURE__ */ $(
998
+ Re(m)
999
+ )) }) : /* @__PURE__ */ D(
1001
1000
  rn,
1002
1001
  {
1003
1002
  Wrapper: a(),
@@ -1007,26 +1006,26 @@ function ue(e) {
1007
1006
  /* @__PURE__ */ s(
1008
1007
  Pe,
1009
1008
  {
1010
- componentRef: u().componentRef,
1011
- componentOptions: u().componentOptions,
1012
- blockChildren: u().blockChildren,
1013
- context: u().context,
1014
- registeredComponents: u().registeredComponents,
1015
- linkComponent: u().linkComponent,
1016
- builderBlock: u().builderBlock,
1017
- includeBlockProps: u().includeBlockProps,
1018
- isInteractive: u().isInteractive
1009
+ componentRef: d().componentRef,
1010
+ componentOptions: d().componentOptions,
1011
+ blockChildren: d().blockChildren,
1012
+ context: d().context,
1013
+ registeredComponents: d().registeredComponents,
1014
+ linkComponent: d().linkComponent,
1015
+ builderBlock: d().builderBlock,
1016
+ includeBlockProps: d().includeBlockProps,
1017
+ isInteractive: d().isInteractive
1019
1018
  }
1020
1019
  ),
1021
- (b = c()) == null ? void 0 : b.map((d) => /* @__PURE__ */ s(
1020
+ (b = c()) == null ? void 0 : b.map((f) => /* @__PURE__ */ s(
1022
1021
  ue,
1023
1022
  {
1024
- block: d,
1023
+ block: f,
1025
1024
  registeredComponents: e.registeredComponents,
1026
1025
  linkComponent: e.linkComponent,
1027
1026
  context: e.context
1028
1027
  },
1029
- d.id
1028
+ f.id
1030
1029
  ))
1031
1030
  ]
1032
1031
  }
@@ -1034,8 +1033,8 @@ function ue(e) {
1034
1033
  ] }) : null });
1035
1034
  }
1036
1035
  function sn(e) {
1037
- const t = H(null);
1038
- C(() => !1);
1036
+ const t = z(null);
1037
+ k(() => !1);
1039
1038
  function n() {
1040
1039
  var a;
1041
1040
  return [
@@ -1052,7 +1051,7 @@ function sn(e) {
1052
1051
  }
1053
1052
  function r() {
1054
1053
  var a, l;
1055
- L() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
1054
+ _() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
1056
1055
  {
1057
1056
  type: "builder.clickEmptyBlocks",
1058
1057
  data: {
@@ -1065,7 +1064,7 @@ function sn(e) {
1065
1064
  }
1066
1065
  function o() {
1067
1066
  var a, l;
1068
- L() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
1067
+ _() && !((a = e.blocks) != null && a.length) && ((l = window.parent) == null || l.postMessage(
1069
1068
  {
1070
1069
  type: "builder.hoverEmptyBlocks",
1071
1070
  data: {
@@ -1076,10 +1075,10 @@ function sn(e) {
1076
1075
  "*"
1077
1076
  ));
1078
1077
  }
1079
- return V(() => {
1080
- }, []), V(() => {
1081
- }, [e.blocks]), /* @__PURE__ */ $(R, { children: [
1082
- /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-8834791c {
1078
+ return N(() => {
1079
+ }, []), N(() => {
1080
+ }, [e.blocks]), /* @__PURE__ */ D(P, { children: [
1081
+ /* @__PURE__ */ s("style", { children: `.props-blocks-wrapper-b46bf284 {
1083
1082
  display: flex;
1084
1083
  flex-direction: column;
1085
1084
  align-items: stretch;
@@ -1088,7 +1087,7 @@ function sn(e) {
1088
1087
  e.BlocksWrapper,
1089
1088
  {
1090
1089
  ref: t,
1091
- className: n() + " props-blocks-wrapper-8834791c",
1090
+ className: n() + " props-blocks-wrapper-b46bf284",
1092
1091
  "builder-path": i(),
1093
1092
  "builder-parent-id": e.parent,
1094
1093
  style: e.styleProp,
@@ -1101,10 +1100,10 @@ function sn(e) {
1101
1100
  )
1102
1101
  ] });
1103
1102
  }
1104
- function U(e) {
1103
+ function M(e) {
1105
1104
  var i, r, o;
1106
1105
  const t = we(pe), n = we(He);
1107
- return /* @__PURE__ */ $(
1106
+ return /* @__PURE__ */ D(
1108
1107
  sn,
1109
1108
  {
1110
1109
  blocks: e.blocks,
@@ -1116,7 +1115,7 @@ function U(e) {
1116
1115
  BlocksWrapper: ((r = e.context) == null ? void 0 : r.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1117
1116
  children: [
1118
1117
  e.children,
1119
- e.blocks ? /* @__PURE__ */ s(R, { children: (o = e.blocks) == null ? void 0 : o.map((a) => /* @__PURE__ */ s(
1118
+ e.blocks ? /* @__PURE__ */ s(P, { children: (o = e.blocks) == null ? void 0 : o.map((a) => /* @__PURE__ */ s(
1120
1119
  ue,
1121
1120
  {
1122
1121
  block: a,
@@ -1132,7 +1131,7 @@ function U(e) {
1132
1131
  }
1133
1132
  const cn = (e) => `builder-columns ${e}-breakpoints`;
1134
1133
  function un(e) {
1135
- var g, p;
1134
+ var m, y;
1136
1135
  function t() {
1137
1136
  return typeof e.space == "number" ? e.space || 0 : 20;
1138
1137
  }
@@ -1142,147 +1141,147 @@ function un(e) {
1142
1141
  function i() {
1143
1142
  return e.stackColumnsAt || "tablet";
1144
1143
  }
1145
- function r(y) {
1146
- return y.link ? e.builderLinkComponent || "a" : "div";
1144
+ function r(g) {
1145
+ return g.link ? e.builderLinkComponent || "a" : "div";
1147
1146
  }
1148
- function o(y) {
1147
+ function o(g) {
1149
1148
  var S;
1150
- return ((S = n()[y]) == null ? void 0 : S.width) || 100 / n().length;
1149
+ return ((S = n()[g]) == null ? void 0 : S.width) || 100 / n().length;
1151
1150
  }
1152
- function a(y) {
1153
- const S = o(y), k = t() * (n().length - 1) * (S / 100);
1154
- return `calc(${S}% - ${k}px)`;
1151
+ function a(g) {
1152
+ const S = o(g), T = t() * (n().length - 1) * (S / 100);
1153
+ return `calc(${S}% - ${T}px)`;
1155
1154
  }
1156
1155
  function l({
1157
- stackedStyle: y,
1156
+ stackedStyle: g,
1158
1157
  desktopStyle: S
1159
1158
  }) {
1160
- return i() === "tablet" ? y : S;
1159
+ return i() === "tablet" ? g : S;
1161
1160
  }
1162
1161
  function c({
1163
- stackedStyle: y,
1162
+ stackedStyle: g,
1164
1163
  desktopStyle: S
1165
1164
  }) {
1166
- return i() === "never" ? S : y;
1165
+ return i() === "never" ? S : g;
1167
1166
  }
1168
- function u() {
1167
+ function d() {
1169
1168
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
1170
1169
  }
1171
- function f() {
1170
+ function h() {
1172
1171
  return {
1173
- "--flex-dir": u(),
1172
+ "--flex-dir": d(),
1174
1173
  "--flex-dir-tablet": l({
1175
- stackedStyle: u(),
1174
+ stackedStyle: d(),
1176
1175
  desktopStyle: "row"
1177
1176
  })
1178
1177
  };
1179
1178
  }
1180
- function b(y) {
1181
- const S = y === 0 ? 0 : t(), k = a(y), A = `${S}px`, T = "100%", w = 0;
1179
+ function b(g) {
1180
+ const S = g === 0 ? 0 : t(), T = a(g), E = `${S}px`, U = "100%", H = 0;
1182
1181
  return {
1183
1182
  ...{
1184
1183
  display: "flex",
1185
1184
  flexDirection: "column",
1186
1185
  alignItems: "stretch"
1187
1186
  },
1188
- width: k,
1189
- ["marginLeft"]: A,
1187
+ width: T,
1188
+ ["marginLeft"]: E,
1190
1189
  "--column-width-mobile": c({
1191
- stackedStyle: T,
1192
- desktopStyle: k
1190
+ stackedStyle: U,
1191
+ desktopStyle: T
1193
1192
  }),
1194
1193
  "--column-margin-left-mobile": c({
1195
- stackedStyle: w,
1196
- desktopStyle: A
1194
+ stackedStyle: H,
1195
+ desktopStyle: E
1197
1196
  }),
1198
1197
  "--column-width-tablet": l({
1199
- stackedStyle: T,
1200
- desktopStyle: k
1198
+ stackedStyle: U,
1199
+ desktopStyle: T
1201
1200
  }),
1202
1201
  "--column-margin-left-tablet": l({
1203
- stackedStyle: w,
1204
- desktopStyle: A
1202
+ stackedStyle: H,
1203
+ desktopStyle: E
1205
1204
  })
1206
1205
  };
1207
1206
  }
1208
- function m(y) {
1209
- var k, A;
1207
+ function u(g) {
1208
+ var T, E;
1210
1209
  return et(
1211
- ((A = (k = e.builderContext.content) == null ? void 0 : k.meta) == null ? void 0 : A.breakpoints) || {}
1212
- )[y].max;
1210
+ ((E = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || {}
1211
+ )[g].max;
1213
1212
  }
1214
- function v() {
1215
- const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1213
+ function x() {
1214
+ const g = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1216
1215
  return `
1217
- @media (max-width: ${m("medium")}px) {
1216
+ @media (max-width: ${u("medium")}px) {
1218
1217
  .${e.builderBlock.id}-breakpoints {
1219
1218
  flex-direction: var(--flex-dir-tablet);
1220
1219
  align-items: stretch;
1221
1220
  }
1222
1221
 
1223
- ${y} {
1222
+ ${g} {
1224
1223
  width: var(--column-width-tablet) !important;
1225
1224
  margin-left: var(--column-margin-left-tablet) !important;
1226
1225
  }
1227
1226
  }
1228
1227
 
1229
- @media (max-width: ${m("small")}px) {
1228
+ @media (max-width: ${u("small")}px) {
1230
1229
  .${e.builderBlock.id}-breakpoints {
1231
1230
  flex-direction: var(--flex-dir);
1232
1231
  align-items: stretch;
1233
1232
  }
1234
1233
 
1235
- ${y} {
1234
+ ${g} {
1236
1235
  width: var(--column-width-mobile) !important;
1237
1236
  margin-left: var(--column-margin-left-mobile) !important;
1238
1237
  }
1239
1238
  },
1240
1239
  `;
1241
1240
  }
1242
- function d(y, S) {
1241
+ function f(g, S) {
1243
1242
  return {
1244
- ...y.link ? {
1245
- href: y.link
1243
+ ...g.link ? {
1244
+ href: g.link
1246
1245
  } : {},
1247
- [z()]: "builder-column",
1246
+ [G()]: "builder-column",
1248
1247
  style: Ye(b(S))
1249
1248
  };
1250
1249
  }
1251
- return /* @__PURE__ */ $(R, { children: [
1250
+ return /* @__PURE__ */ D(P, { children: [
1252
1251
  /* @__PURE__ */ s("style", { children: `.div-0369db37 {
1253
1252
  display: flex;
1254
1253
  line-height: normal;
1255
1254
  height: 100%;
1256
1255
  }` }),
1257
- /* @__PURE__ */ $(
1256
+ /* @__PURE__ */ D(
1258
1257
  "div",
1259
1258
  {
1260
- className: cn((g = e.builderBlock) == null ? void 0 : g.id) + " div-0369db37",
1261
- style: f(),
1259
+ className: cn((m = e.builderBlock) == null ? void 0 : m.id) + " div-0369db37",
1260
+ style: h(),
1262
1261
  children: [
1263
1262
  /* @__PURE__ */ s(
1264
- ee,
1263
+ te,
1265
1264
  {
1266
1265
  id: "builderio-columns",
1267
- styles: v(),
1266
+ styles: x(),
1268
1267
  nonce: e.builderContext.nonce
1269
1268
  }
1270
1269
  ),
1271
- (p = e.columns) == null ? void 0 : p.map((y, S) => /* @__PURE__ */ s(
1270
+ (y = e.columns) == null ? void 0 : y.map((g, S) => /* @__PURE__ */ s(
1272
1271
  ye,
1273
1272
  {
1274
- TagName: r(y),
1273
+ TagName: r(g),
1275
1274
  actionAttributes: {},
1276
- attributes: d(y, S),
1275
+ attributes: f(g, S),
1277
1276
  children: /* @__PURE__ */ s(
1278
- U,
1277
+ M,
1279
1278
  {
1280
1279
  path: `columns.${S}.blocks`,
1281
1280
  parent: e.builderBlock.id,
1282
1281
  context: e.builderContext,
1283
1282
  registeredComponents: e.builderComponents,
1284
1283
  linkComponent: e.builderLinkComponent,
1285
- blocks: y.blocks,
1284
+ blocks: g.blocks,
1286
1285
  styleProp: {
1287
1286
  flexGrow: "1"
1288
1287
  }
@@ -1330,16 +1329,16 @@ function ne(e) {
1330
1329
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [fn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1331
1330
  }
1332
1331
  function hn(e) {
1333
- var r, o, a, l, c, u;
1332
+ var r, o, a, l, c, d;
1334
1333
  function t() {
1335
- var m;
1334
+ var u;
1336
1335
  const b = e.image || e.src;
1337
1336
  if (!b || // We can auto add srcset for cdn.builder.io and shopify
1338
1337
  // images, otherwise you can supply this prop manually
1339
1338
  !(typeof b == "string" && (b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/))))
1340
1339
  return e.srcset;
1341
1340
  if (!e.noWebp) {
1342
- if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1341
+ if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
1343
1342
  if (!e.srcset.includes(e.image.split("?")[0]))
1344
1343
  return console.debug("Removed given srcset"), ne(b);
1345
1344
  } else if (e.image && !e.srcset)
@@ -1348,21 +1347,21 @@ function hn(e) {
1348
1347
  }
1349
1348
  }
1350
1349
  function n() {
1351
- var f;
1352
- return (f = t == null ? void 0 : t()) != null && f.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1350
+ var h;
1351
+ return (h = t == null ? void 0 : t()) != null && h.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
1353
1352
  }
1354
1353
  function i() {
1355
- const f = {
1354
+ const h = {
1356
1355
  position: "absolute",
1357
1356
  height: "100%",
1358
1357
  width: "100%",
1359
1358
  left: "0px",
1360
1359
  top: "0px"
1361
1360
  };
1362
- return e.aspectRatio ? f : void 0;
1361
+ return e.aspectRatio ? h : void 0;
1363
1362
  }
1364
- return V(() => {
1365
- }, []), /* @__PURE__ */ $(R, { children: [
1363
+ return N(() => {
1364
+ }, []), /* @__PURE__ */ D(P, { children: [
1366
1365
  /* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
1367
1366
  opacity: 1;
1368
1367
  transition: opacity 0.2s ease-in-out;
@@ -1380,8 +1379,8 @@ function hn(e) {
1380
1379
  width: 100%;
1381
1380
  height: 100%;
1382
1381
  }` }),
1383
- /* @__PURE__ */ $(R, { children: [
1384
- /* @__PURE__ */ $("picture", { children: [
1382
+ /* @__PURE__ */ D(P, { children: [
1383
+ /* @__PURE__ */ D("picture", { children: [
1385
1384
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1386
1385
  /* @__PURE__ */ s(
1387
1386
  "img",
@@ -1412,8 +1411,8 @@ function hn(e) {
1412
1411
  }
1413
1412
  }
1414
1413
  ) : null,
1415
- (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1416
- !e.fitContent && ((u = (c = e.builderBlock) == null ? void 0 : c.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
1414
+ (l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(P, { children: e.children }) : null,
1415
+ !e.fitContent && ((d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
1417
1416
  ] })
1418
1417
  ] });
1419
1418
  }
@@ -1439,50 +1438,50 @@ function gn(e) {
1439
1438
  );
1440
1439
  }
1441
1440
  function bn(e, t, n, i) {
1442
- function r(u) {
1443
- return typeof u == "string";
1441
+ function r(d) {
1442
+ return typeof d == "string";
1444
1443
  }
1445
- function o(u) {
1446
- return typeof u == "number";
1444
+ function o(d) {
1445
+ return typeof d == "number";
1447
1446
  }
1448
- function a(u, f) {
1447
+ function a(d, h) {
1449
1448
  return (() => {
1450
- const m = f.property, v = f.operator;
1451
- let d = f.value;
1452
- if (f && f.property === "urlPath" && f.value && typeof f.value == "string" && f.value !== "/" && f.value.endsWith("/") && (d = f.value.slice(0, -1)), !(m && v))
1449
+ const u = h.property, x = h.operator;
1450
+ let f = h.value;
1451
+ if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(u && x))
1453
1452
  return !0;
1454
- if (Array.isArray(d))
1455
- return v === "isNot" ? d.every((p) => a(u, {
1456
- property: m,
1457
- operator: v,
1458
- value: p
1459
- })) : !!d.find((p) => a(u, {
1460
- property: m,
1461
- operator: v,
1462
- value: p
1453
+ if (Array.isArray(f))
1454
+ return x === "isNot" ? f.every((y) => a(d, {
1455
+ property: u,
1456
+ operator: x,
1457
+ value: y
1458
+ })) : !!f.find((y) => a(d, {
1459
+ property: u,
1460
+ operator: x,
1461
+ value: y
1463
1462
  }));
1464
- const g = u[m];
1465
- if (Array.isArray(g))
1466
- return g.includes(d);
1467
- switch (v) {
1463
+ const m = d[u];
1464
+ if (Array.isArray(m))
1465
+ return m.includes(f);
1466
+ switch (x) {
1468
1467
  case "is":
1469
- return g === d;
1468
+ return m === f;
1470
1469
  case "isNot":
1471
- return g !== d;
1470
+ return m !== f;
1472
1471
  case "contains":
1473
- return (r(g) || Array.isArray(g)) && g.includes(String(d));
1472
+ return (r(m) || Array.isArray(m)) && m.includes(String(f));
1474
1473
  case "startsWith":
1475
- return r(g) && g.startsWith(String(d));
1474
+ return r(m) && m.startsWith(String(f));
1476
1475
  case "endsWith":
1477
- return r(g) && g.endsWith(String(d));
1476
+ return r(m) && m.endsWith(String(f));
1478
1477
  case "greaterThan":
1479
- return o(g) && o(d) && g > d;
1478
+ return o(m) && o(f) && m > f;
1480
1479
  case "lessThan":
1481
- return o(g) && o(d) && g < d;
1480
+ return o(m) && o(f) && m < f;
1482
1481
  case "greaterThanOrEqualTo":
1483
- return o(g) && o(d) && g >= d;
1482
+ return o(m) && o(f) && m >= f;
1484
1483
  case "lessThanOrEqualTo":
1485
- return o(g) && o(d) && g <= d;
1484
+ return o(m) && o(f) && m <= f;
1486
1485
  default:
1487
1486
  return !1;
1488
1487
  }
@@ -1493,7 +1492,7 @@ function bn(e, t, n, i) {
1493
1492
  startDate: n,
1494
1493
  endDate: i
1495
1494
  }, c = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
1496
- return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => a(e, u));
1495
+ return l.startDate && new Date(l.startDate) > c || l.endDate && new Date(l.endDate) < c ? !1 : !l.query || !l.query.length ? !0 : l.query.every((d) => a(e, d));
1497
1496
  }
1498
1497
  const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
1499
1498
  if (!navigator.cookieEnabled) {
@@ -1658,7 +1657,7 @@ const yn = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
1658
1657
  }
1659
1658
  }`, ie = "default", xn = "filterWithCustomTargeting", nt = "builderIoPersonalization", it = "updateVisibilityStylesScript", rt = ["react", "vue", "svelte", "qwik"], re = ["vue", "svelte", "qwik"];
1660
1659
  function Sn(e, t) {
1661
- return !(e && e.length > 0) || !t ? !1 : re.includes(O) ? !0 : !M();
1660
+ return !(e && e.length > 0) || !t ? !1 : re.includes(O) ? !0 : !K();
1662
1661
  }
1663
1662
  function kn({
1664
1663
  variants: e,
@@ -1673,7 +1672,7 @@ function kn({
1673
1672
  path: "this.children",
1674
1673
  index: ie
1675
1674
  };
1676
- if (n && L()) {
1675
+ if (n && _()) {
1677
1676
  if (typeof t == "number" && t < ((a = e == null ? void 0 : e.length) != null ? a : 0)) {
1678
1677
  const l = e == null ? void 0 : e[t];
1679
1678
  if (l)
@@ -1685,7 +1684,7 @@ function kn({
1685
1684
  }
1686
1685
  return o;
1687
1686
  }
1688
- if (M()) {
1687
+ if (K()) {
1689
1688
  const l = i == null ? void 0 : i[0];
1690
1689
  if (l && e) {
1691
1690
  const c = e.indexOf(l);
@@ -1830,7 +1829,7 @@ const Cn = () => `
1830
1829
  }, Be = (e) => e.toString();
1831
1830
  function En(e) {
1832
1831
  var b;
1833
- const [t, n] = C(() => []);
1832
+ const [t, n] = k(() => []);
1834
1833
  function i() {
1835
1834
  return !!(e.grid || e.oneAtATime);
1836
1835
  }
@@ -1847,7 +1846,7 @@ function En(e) {
1847
1846
  };
1848
1847
  }
1849
1848
  function o() {
1850
- const v = {
1849
+ const x = {
1851
1850
  ...{
1852
1851
  display: "flex",
1853
1852
  flexDirection: "column"
@@ -1856,75 +1855,75 @@ function En(e) {
1856
1855
  cursor: "pointer"
1857
1856
  };
1858
1857
  return Object.fromEntries(
1859
- Object.entries(v).filter(([d, g]) => g !== void 0)
1858
+ Object.entries(x).filter(([f, m]) => m !== void 0)
1860
1859
  );
1861
1860
  }
1862
- function a(m) {
1863
- return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1861
+ function a(u) {
1862
+ return `builder-accordion-title builder-accordion-title-${t.includes(u) ? "open" : "closed"}`;
1864
1863
  }
1865
- function l(m) {
1866
- return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1864
+ function l(u) {
1865
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(u) ? "open" : "closed"}`;
1867
1866
  }
1868
1867
  function c() {
1869
- let m = null;
1868
+ let u = null;
1870
1869
  if (e.grid && t.length && document) {
1871
- const d = t[0];
1872
- let p = document.querySelector(
1873
- `.builder-accordion-title[data-index="${d}"]`
1870
+ const f = t[0];
1871
+ let y = document.querySelector(
1872
+ `.builder-accordion-title[data-index="${f}"]`
1874
1873
  );
1875
- if (m = d, p) {
1876
- let y = p.getBoundingClientRect();
1877
- for (; p = p && p.nextElementSibling; )
1878
- if (p) {
1879
- if (p.classList.contains("builder-accordion-detail"))
1874
+ if (u = f, y) {
1875
+ let g = y.getBoundingClientRect();
1876
+ for (; y = y && y.nextElementSibling; )
1877
+ if (y) {
1878
+ if (y.classList.contains("builder-accordion-detail"))
1880
1879
  continue;
1881
- const S = p.getBoundingClientRect();
1882
- if (S.left > y.left) {
1883
- const k = parseInt(
1884
- p.getAttribute("data-index") || "",
1880
+ const S = y.getBoundingClientRect();
1881
+ if (S.left > g.left) {
1882
+ const T = parseInt(
1883
+ y.getAttribute("data-index") || "",
1885
1884
  10
1886
1885
  );
1887
- isNaN(k) || (y = S, m = k);
1886
+ isNaN(T) || (g = S, u = T);
1888
1887
  } else
1889
1888
  break;
1890
1889
  }
1891
1890
  }
1892
1891
  }
1893
- return typeof m == "number" && (m = m + 1), m;
1892
+ return typeof u == "number" && (u = u + 1), u;
1894
1893
  }
1895
- function u() {
1896
- const m = {
1894
+ function d() {
1895
+ const u = {
1897
1896
  order: typeof c() == "number" ? c() : void 0,
1898
1897
  ...e.grid && {
1899
1898
  width: "100%"
1900
1899
  }
1901
1900
  };
1902
1901
  return Object.fromEntries(
1903
- Object.entries(m).filter(([v, d]) => d !== void 0)
1902
+ Object.entries(u).filter(([x, f]) => f !== void 0)
1904
1903
  );
1905
1904
  }
1906
- function f(m) {
1907
- t.includes(m) ? n(i() ? [] : t.filter((v) => v !== m)) : n(i() ? [m] : t.concat(m));
1905
+ function h(u) {
1906
+ t.includes(u) ? n(i() ? [] : t.filter((x) => x !== u)) : n(i() ? [u] : t.concat(u));
1908
1907
  }
1909
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((m, v) => /* @__PURE__ */ $(gt.Fragment, { children: [
1908
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: r(), children: (b = e.items) == null ? void 0 : b.map((u, x) => /* @__PURE__ */ D(gt.Fragment, { children: [
1910
1909
  /* @__PURE__ */ s(
1911
1910
  "div",
1912
1911
  {
1913
- className: a(v),
1912
+ className: a(x),
1914
1913
  style: {
1915
1914
  ...o(),
1916
1915
  ...e.grid && {
1917
1916
  width: e.gridRowWidth,
1918
- order: c() !== null ? Be(v) : Be(v + 1)
1917
+ order: c() !== null ? Be(x) : Be(x + 1)
1919
1918
  }
1920
1919
  },
1921
- "data-index": v,
1922
- onClick: (d) => f(v),
1920
+ "data-index": x,
1921
+ onClick: (f) => h(x),
1923
1922
  children: /* @__PURE__ */ s(
1924
- U,
1923
+ M,
1925
1924
  {
1926
- blocks: m.title,
1927
- path: `items.${v}.title`,
1925
+ blocks: u.title,
1926
+ path: `items.${x}.title`,
1928
1927
  parent: e.builderBlock.id,
1929
1928
  context: e.builderContext,
1930
1929
  registeredComponents: e.builderComponents,
@@ -1933,16 +1932,16 @@ function En(e) {
1933
1932
  )
1934
1933
  }
1935
1934
  ),
1936
- t.includes(v) ? /* @__PURE__ */ s(
1935
+ t.includes(x) ? /* @__PURE__ */ s(
1937
1936
  "div",
1938
1937
  {
1939
- className: l(v),
1940
- style: u(),
1938
+ className: l(x),
1939
+ style: d(),
1941
1940
  children: /* @__PURE__ */ s(
1942
- U,
1941
+ M,
1943
1942
  {
1944
- blocks: m.detail,
1945
- path: `items.${v}.detail`,
1943
+ blocks: u.detail,
1944
+ path: `items.${x}.detail`,
1946
1945
  parent: e.builderBlock.id,
1947
1946
  context: e.builderContext,
1948
1947
  registeredComponents: e.builderComponents,
@@ -1951,7 +1950,7 @@ function En(e) {
1951
1950
  )
1952
1951
  }
1953
1952
  ) : null
1954
- ] }, v)) });
1953
+ ] }, x)) });
1955
1954
  }
1956
1955
  const Rn = {
1957
1956
  name: "Core:Button",
@@ -2223,15 +2222,15 @@ const Rn = {
2223
2222
  onChange: (e) => {
2224
2223
  e.delete("srcset"), e.delete("noWebp");
2225
2224
  function n(a, l = 6e4) {
2226
- return new Promise((c, u) => {
2227
- const f = document.createElement("img");
2225
+ return new Promise((c, d) => {
2226
+ const h = document.createElement("img");
2228
2227
  let b = !1;
2229
- f.onload = () => {
2230
- b = !0, c(f);
2231
- }, f.addEventListener("error", (m) => {
2232
- console.warn("Image load failed", m.error), u(m.error);
2233
- }), f.src = a, setTimeout(() => {
2234
- b || u(new Error("Image load timed out"));
2228
+ h.onload = () => {
2229
+ b = !0, c(h);
2230
+ }, h.addEventListener("error", (u) => {
2231
+ console.warn("Image load failed", u.error), d(u.error);
2232
+ }), h.src = a, setTimeout(() => {
2233
+ b || d(new Error("Image load timed out"));
2235
2234
  }, l);
2236
2235
  });
2237
2236
  }
@@ -2351,7 +2350,7 @@ const Rn = {
2351
2350
  }]
2352
2351
  }]
2353
2352
  };
2354
- function j(e) {
2353
+ function J(e) {
2355
2354
  return /* @__PURE__ */ s(
2356
2355
  "script",
2357
2356
  {
@@ -2362,105 +2361,105 @@ function j(e) {
2362
2361
  );
2363
2362
  }
2364
2363
  function Wn(e) {
2365
- var S, k, A, T, w, h, x, E, N, F, _, P, D;
2366
- const t = H(null), [n, i] = C(
2364
+ var S, T, E, U, H, q, p, v, I, V, W, R, A;
2365
+ const t = z(null), [n, i] = k(
2367
2366
  () => Ce.getUserAttributes()
2368
- ), [r, o] = C(
2367
+ ), [r, o] = k(
2369
2368
  () => {
2370
- var I, B, W;
2369
+ var w, B, C;
2371
2370
  return Tn(
2372
2371
  e.variants,
2373
- ((I = e.builderBlock) == null ? void 0 : I.id) || "none",
2374
- (W = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : W.locale
2372
+ ((w = e.builderBlock) == null ? void 0 : w.id) || "none",
2373
+ (C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
2375
2374
  );
2376
2375
  }
2377
- ), [a, l] = C(
2376
+ ), [a, l] = k(
2378
2377
  () => {
2379
- var I, B, W;
2378
+ var w, B, C;
2380
2379
  return In(
2381
2380
  e.variants,
2382
- ((I = e.builderBlock) == null ? void 0 : I.id) || "none",
2383
- (W = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : W.locale
2381
+ ((w = e.builderBlock) == null ? void 0 : w.id) || "none",
2382
+ (C = (B = e.builderContext) == null ? void 0 : B.rootState) == null ? void 0 : C.locale
2384
2383
  );
2385
2384
  }
2386
- ), [c, u] = C(() => []), [f, b] = C(
2385
+ ), [c, d] = k(() => []), [h, b] = k(
2387
2386
  () => {
2388
- var I;
2387
+ var w;
2389
2388
  return Sn(
2390
2389
  e.variants,
2391
- Z((I = e.builderContext) == null ? void 0 : I.canTrack)
2390
+ ee((w = e.builderContext) == null ? void 0 : w.canTrack)
2392
2391
  );
2393
2392
  }
2394
- ), [m, v] = C(() => !1);
2395
- function d() {
2393
+ ), [u, x] = k(() => !1);
2394
+ function f() {
2396
2395
  return {
2397
2396
  ...e.attributes,
2398
- [z()]: `builder-personalization-container ${e.attributes[z()] || ""}`
2397
+ [G()]: `builder-personalization-container ${e.attributes[G()] || ""}`
2399
2398
  };
2400
2399
  }
2401
- function g() {
2402
- return (e.variants || []).filter((I) => {
2403
- var B, W, K, q;
2400
+ function m() {
2401
+ return (e.variants || []).filter((w) => {
2402
+ var B, C, $, F;
2404
2403
  return bn(
2405
2404
  {
2406
- ...(W = (B = e.builderContext) == null ? void 0 : B.rootState) != null && W.locale ? {
2407
- locale: (q = (K = e.builderContext) == null ? void 0 : K.rootState) == null ? void 0 : q.locale
2405
+ ...(C = (B = e.builderContext) == null ? void 0 : B.rootState) != null && C.locale ? {
2406
+ locale: (F = ($ = e.builderContext) == null ? void 0 : $.rootState) == null ? void 0 : F.locale
2408
2407
  } : {},
2409
2408
  ...n
2410
2409
  },
2411
- I.query,
2412
- I.startDate,
2413
- I.endDate
2410
+ w.query,
2411
+ w.startDate,
2412
+ w.endDate
2414
2413
  );
2415
2414
  });
2416
2415
  }
2417
- function p() {
2418
- var I;
2416
+ function y() {
2417
+ var w;
2419
2418
  return kn({
2420
2419
  variants: e.variants,
2421
- fallbackBlocks: (I = e.builderBlock) == null ? void 0 : I.children,
2422
- isHydrated: m,
2423
- filteredVariants: g(),
2420
+ fallbackBlocks: (w = e.builderBlock) == null ? void 0 : w.children,
2421
+ isHydrated: u,
2422
+ filteredVariants: m(),
2424
2423
  previewingIndex: e.previewingIndex
2425
2424
  });
2426
2425
  }
2427
- function y() {
2426
+ function g() {
2428
2427
  return (e.variants || []).map(
2429
- (I, B) => {
2430
- var W;
2431
- return `div[data-variant-id="${(W = e.builderBlock) == null ? void 0 : W.id}-${B}"] { display: none !important; } `;
2428
+ (w, B) => {
2429
+ var C;
2430
+ return `div[data-variant-id="${(C = e.builderBlock) == null ? void 0 : C.id}-${B}"] { display: none !important; } `;
2432
2431
  }
2433
2432
  ).join("");
2434
2433
  }
2435
- return V(() => {
2434
+ return N(() => {
2436
2435
  var B;
2437
- v(!0);
2438
- const I = Ce.subscribeOnUserAttributesChange(
2439
- (W) => {
2440
- i(W);
2436
+ x(!0);
2437
+ const w = Ce.subscribeOnUserAttributesChange(
2438
+ (C) => {
2439
+ i(C);
2441
2440
  },
2442
2441
  {
2443
2442
  fireImmediately: O === "qwik"
2444
2443
  }
2445
2444
  );
2446
- if (!(L() || se())) {
2447
- const W = g()[0];
2445
+ if (!(_() || se())) {
2446
+ const C = m()[0];
2448
2447
  t.current && (t.current.dispatchEvent(
2449
2448
  new CustomEvent("builder.variantLoaded", {
2450
2449
  detail: {
2451
- variant: W || ie,
2450
+ variant: C || ie,
2452
2451
  content: (B = e.builderContext) == null ? void 0 : B.content
2453
2452
  },
2454
2453
  bubbles: !0
2455
2454
  })
2456
- ), new IntersectionObserver((q) => {
2457
- q.forEach((te) => {
2458
- var Q;
2459
- te.isIntersecting && t.current && t.current.dispatchEvent(
2455
+ ), new IntersectionObserver((F) => {
2456
+ F.forEach((L) => {
2457
+ var j;
2458
+ L.isIntersecting && t.current && t.current.dispatchEvent(
2460
2459
  new CustomEvent("builder.variantDisplayed", {
2461
2460
  detail: {
2462
- variant: W || ie,
2463
- content: (Q = e.builderContext) == null ? void 0 : Q.content
2461
+ variant: C || ie,
2462
+ content: (j = e.builderContext) == null ? void 0 : j.content
2464
2463
  },
2465
2464
  bubbles: !0
2466
2465
  })
@@ -2468,64 +2467,64 @@ function Wn(e) {
2468
2467
  });
2469
2468
  }).observe(t.current));
2470
2469
  }
2471
- c.push(I);
2472
- }, []), V(() => () => {
2473
- c.forEach((I) => I());
2474
- }, []), /* @__PURE__ */ $("div", { ref: t, ...d(), children: [
2475
- m && re.includes(O) ? /* @__PURE__ */ s(
2476
- U,
2470
+ c.push(w);
2471
+ }, []), N(() => () => {
2472
+ c.forEach((w) => w());
2473
+ }, []), /* @__PURE__ */ D("div", { ref: t, ...f(), children: [
2474
+ u && re.includes(O) ? /* @__PURE__ */ s(
2475
+ M,
2477
2476
  {
2478
- blocks: p().blocks,
2477
+ blocks: y().blocks,
2479
2478
  parent: (S = e.builderBlock) == null ? void 0 : S.id,
2480
- path: p().path,
2479
+ path: y().path,
2481
2480
  context: e.builderContext,
2482
2481
  registeredComponents: e.builderComponents,
2483
2482
  BlocksWrapperProps: {
2484
- ...(k = e.builderContext) == null ? void 0 : k.BlocksWrapperProps,
2485
- "data-variant-id": `${(A = e.builderBlock) == null ? void 0 : A.id}-${p().index}`
2483
+ ...(T = e.builderContext) == null ? void 0 : T.BlocksWrapperProps,
2484
+ "data-variant-id": `${(E = e.builderBlock) == null ? void 0 : E.id}-${y().index}`
2486
2485
  }
2487
2486
  }
2488
2487
  ) : null,
2489
- !m && re.includes(O) || !re.includes(O) ? /* @__PURE__ */ $(R, { children: [
2490
- f ? /* @__PURE__ */ $(R, { children: [
2488
+ !u && re.includes(O) || !re.includes(O) ? /* @__PURE__ */ D(P, { children: [
2489
+ h ? /* @__PURE__ */ D(P, { children: [
2491
2490
  /* @__PURE__ */ s(
2492
- ee,
2491
+ te,
2493
2492
  {
2494
- nonce: ((T = e.builderContext) == null ? void 0 : T.nonce) || "",
2495
- styles: y(),
2496
- id: `variants-styles-${(w = e.builderBlock) == null ? void 0 : w.id}`
2493
+ nonce: ((U = e.builderContext) == null ? void 0 : U.nonce) || "",
2494
+ styles: g(),
2495
+ id: `variants-styles-${(H = e.builderBlock) == null ? void 0 : H.id}`
2497
2496
  }
2498
2497
  ),
2499
2498
  /* @__PURE__ */ s(
2500
- j,
2499
+ J,
2501
2500
  {
2502
- nonce: ((h = e.builderContext) == null ? void 0 : h.nonce) || "",
2501
+ nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
2503
2502
  scriptStr: a,
2504
- id: `variants-visibility-script-${(x = e.builderBlock) == null ? void 0 : x.id}`
2503
+ id: `variants-visibility-script-${(p = e.builderBlock) == null ? void 0 : p.id}`
2505
2504
  }
2506
2505
  ),
2507
- (E = e.variants) == null ? void 0 : E.map((I, B) => {
2508
- var W, K, q, te, Q, ke;
2506
+ (v = e.variants) == null ? void 0 : v.map((w, B) => {
2507
+ var C, $, F, L, j, ke;
2509
2508
  return /* @__PURE__ */ s(
2510
- U,
2509
+ M,
2511
2510
  {
2512
2511
  BlocksWrapperProps: {
2513
- ...(W = e.builderContext) == null ? void 0 : W.BlocksWrapperProps,
2512
+ ...(C = e.builderContext) == null ? void 0 : C.BlocksWrapperProps,
2514
2513
  "aria-hidden": !0,
2515
2514
  hidden: !0,
2516
- "data-variant-id": `${(K = e.builderBlock) == null ? void 0 : K.id}-${B}`
2515
+ "data-variant-id": `${($ = e.builderBlock) == null ? void 0 : $.id}-${B}`
2517
2516
  },
2518
- blocks: I.blocks,
2519
- parent: (q = e.builderBlock) == null ? void 0 : q.id,
2517
+ blocks: w.blocks,
2518
+ parent: (F = e.builderBlock) == null ? void 0 : F.id,
2520
2519
  path: `component.options.variants.${B}.blocks`,
2521
2520
  context: e.builderContext,
2522
2521
  registeredComponents: e.builderComponents,
2523
2522
  children: /* @__PURE__ */ s(
2524
- j,
2523
+ J,
2525
2524
  {
2526
- nonce: ((te = e.builderContext) == null ? void 0 : te.nonce) || "",
2525
+ nonce: ((L = e.builderContext) == null ? void 0 : L.nonce) || "",
2527
2526
  scriptStr: r,
2528
- id: `variants-script-${(Q = e.builderBlock) == null ? void 0 : Q.id}-${B}`
2527
+ id: `variants-script-${(j = e.builderBlock) == null ? void 0 : j.id}-${B}`
2529
2528
  }
2530
2529
  )
2531
2530
  },
@@ -2534,23 +2533,23 @@ function Wn(e) {
2534
2533
  })
2535
2534
  ] }) : null,
2536
2535
  /* @__PURE__ */ s(
2537
- U,
2536
+ M,
2538
2537
  {
2539
- blocks: p().blocks,
2540
- parent: (N = e.builderBlock) == null ? void 0 : N.id,
2541
- path: p().path,
2538
+ blocks: y().blocks,
2539
+ parent: (I = e.builderBlock) == null ? void 0 : I.id,
2540
+ path: y().path,
2542
2541
  context: e.builderContext,
2543
2542
  registeredComponents: e.builderComponents,
2544
2543
  BlocksWrapperProps: {
2545
- ...(F = e.builderContext) == null ? void 0 : F.BlocksWrapperProps,
2546
- "data-variant-id": `${(_ = e.builderBlock) == null ? void 0 : _.id}-${p().index}`
2544
+ ...(V = e.builderContext) == null ? void 0 : V.BlocksWrapperProps,
2545
+ "data-variant-id": `${(W = e.builderBlock) == null ? void 0 : W.id}-${y().index}`
2547
2546
  },
2548
- children: f ? /* @__PURE__ */ s(
2549
- j,
2547
+ children: h ? /* @__PURE__ */ s(
2548
+ J,
2550
2549
  {
2551
- nonce: ((P = e.builderContext) == null ? void 0 : P.nonce) || "",
2550
+ nonce: ((R = e.builderContext) == null ? void 0 : R.nonce) || "",
2552
2551
  scriptStr: r,
2553
- id: `variants-script-${(D = e.builderBlock) == null ? void 0 : D.id}-${ie}`
2552
+ id: `variants-script-${(A = e.builderBlock) == null ? void 0 : A.id}-${ie}`
2554
2553
  }
2555
2554
  ) : null
2556
2555
  }
@@ -2627,7 +2626,7 @@ function On(e) {
2627
2626
  "builder-slot": e.name
2628
2627
  },
2629
2628
  children: /* @__PURE__ */ s(
2630
- U,
2629
+ M,
2631
2630
  {
2632
2631
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
2633
2632
  path: `symbol.data.${e.name}`,
@@ -2821,17 +2820,20 @@ const Fn = {
2821
2820
  }
2822
2821
  };
2823
2822
  function _n(e) {
2824
- var o;
2825
- const [t, n] = C(
2823
+ var a;
2824
+ const [t, n] = k(
2826
2825
  () => e.defaultActiveTab ? e.defaultActiveTab - 1 : 0
2827
2826
  );
2828
- function i(a) {
2829
- return e.tabs && e.tabs[a].content;
2827
+ function i(l) {
2828
+ return e.tabs && e.tabs[l].content;
2829
+ }
2830
+ function r(l) {
2831
+ return l === t ? e.activeTabStyle : {};
2830
2832
  }
2831
- function r(a) {
2832
- a === t && e.collapsible ? n(-1) : n(a);
2833
+ function o(l) {
2834
+ l === t && e.collapsible ? n(-1) : n(l);
2833
2835
  }
2834
- return /* @__PURE__ */ $("div", { children: [
2836
+ return /* @__PURE__ */ D("div", { children: [
2835
2837
  /* @__PURE__ */ s(
2836
2838
  "div",
2837
2839
  {
@@ -2842,32 +2844,30 @@ function _n(e) {
2842
2844
  justifyContent: e.tabHeaderLayout || "flex-start",
2843
2845
  overflow: "auto"
2844
2846
  },
2845
- children: (o = e.tabs) == null ? void 0 : o.map((a, l) => /* @__PURE__ */ s(
2847
+ children: (a = e.tabs) == null ? void 0 : a.map((l, c) => /* @__PURE__ */ s(
2846
2848
  "span",
2847
2849
  {
2848
- className: `builder-tab-wrap ${t === l ? "builder-tab-active" : ""}`,
2849
- style: {
2850
- ...t === l ? e.activeTabStyle : {}
2851
- },
2852
- onClick: (c) => r(l),
2850
+ className: `builder-tab-wrap ${t === c ? "builder-tab-active" : ""}`,
2851
+ style: r(c),
2852
+ onClick: (d) => o(c),
2853
2853
  children: /* @__PURE__ */ s(
2854
- U,
2854
+ M,
2855
2855
  {
2856
2856
  parent: e.builderBlock.id,
2857
- path: `tabs.${l}.label`,
2858
- blocks: a.label,
2857
+ path: `tabs.${c}.label`,
2858
+ blocks: l.label,
2859
2859
  context: e.builderContext,
2860
2860
  registeredComponents: e.builderComponents,
2861
2861
  linkComponent: e.builderLinkComponent
2862
2862
  }
2863
2863
  )
2864
2864
  },
2865
- l
2865
+ c
2866
2866
  ))
2867
2867
  }
2868
2868
  ),
2869
2869
  i(t) ? /* @__PURE__ */ s("div", { children: /* @__PURE__ */ s(
2870
- U,
2870
+ M,
2871
2871
  {
2872
2872
  parent: e.builderBlock.id,
2873
2873
  path: `tabs.${t}.content`,
@@ -2936,31 +2936,31 @@ const Mn = {
2936
2936
  }]
2937
2937
  };
2938
2938
  function qn(e) {
2939
- const t = H(null), [n, i] = C(() => []), [r, o] = C(() => []);
2939
+ const t = z(null), [n, i] = k(() => []), [r, o] = k(() => []);
2940
2940
  function a() {
2941
2941
  var c;
2942
2942
  if (!t.current || !((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
2943
2943
  return;
2944
2944
  const l = t.current.getElementsByTagName("script");
2945
- for (let u = 0; u < l.length; u++) {
2946
- const f = l[u];
2947
- if (f.src) {
2948
- if (n.includes(f.src))
2945
+ for (let d = 0; d < l.length; d++) {
2946
+ const h = l[d];
2947
+ if (h.src) {
2948
+ if (n.includes(h.src))
2949
2949
  continue;
2950
- n.push(f.src);
2950
+ n.push(h.src);
2951
2951
  const b = document.createElement("script");
2952
- b.async = !0, b.src = f.src, document.head.appendChild(b);
2953
- } else if (!f.type || [
2952
+ b.async = !0, b.src = h.src, document.head.appendChild(b);
2953
+ } else if (!h.type || [
2954
2954
  "text/javascript",
2955
2955
  "application/javascript",
2956
2956
  "application/ecmascript"
2957
- ].includes(f.type)) {
2958
- if (r.includes(f.innerText))
2957
+ ].includes(h.type)) {
2958
+ if (r.includes(h.innerText))
2959
2959
  continue;
2960
2960
  try {
2961
- r.push(f.innerText), new Function(f.innerText)();
2961
+ r.push(h.innerText), new Function(h.innerText)();
2962
2962
  } catch (b) {
2963
- J.warn(
2963
+ Q.warn(
2964
2964
  "[BUILDER.IO] `CustomCode`: Error running script:",
2965
2965
  b
2966
2966
  );
@@ -2968,10 +2968,10 @@ function qn(e) {
2968
2968
  }
2969
2969
  }
2970
2970
  }
2971
- return V(() => {
2971
+ return N(() => {
2972
2972
  a();
2973
- }, []), V(() => {
2974
- L() && a();
2973
+ }, []), N(() => {
2974
+ _() && a();
2975
2975
  }, [e.code]), /* @__PURE__ */ s(
2976
2976
  "div",
2977
2977
  {
@@ -2998,26 +2998,26 @@ const jn = {
2998
2998
  }]
2999
2999
  }, zn = ["text/javascript", "application/javascript", "application/ecmascript"], Kn = (e) => zn.includes(e.type);
3000
3000
  function Jn(e) {
3001
- const t = H(null), [n, i] = C(() => []), [r, o] = C(() => []), [a, l] = C(() => !1);
3001
+ const t = z(null), [n, i] = k(() => []), [r, o] = k(() => []), [a, l] = k(() => !1);
3002
3002
  function c() {
3003
3003
  if (!t.current || !t.current.getElementsByTagName)
3004
3004
  return;
3005
- const u = t.current.getElementsByTagName("script");
3006
- for (let f = 0; f < u.length; f++) {
3007
- const b = u[f];
3005
+ const d = t.current.getElementsByTagName("script");
3006
+ for (let h = 0; h < d.length; h++) {
3007
+ const b = d[h];
3008
3008
  if (b.src && !n.includes(b.src)) {
3009
3009
  n.push(b.src);
3010
- const m = document.createElement("script");
3011
- m.async = !0, m.src = b.src, document.head.appendChild(m);
3010
+ const u = document.createElement("script");
3011
+ u.async = !0, u.src = b.src, document.head.appendChild(u);
3012
3012
  } else if (Kn(b) && !r.includes(b.innerText))
3013
3013
  try {
3014
3014
  r.push(b.innerText), new Function(b.innerText)();
3015
- } catch (m) {
3016
- J.warn("[BUILDER.IO] `Embed`: Error running script:", m);
3015
+ } catch (u) {
3016
+ Q.warn("[BUILDER.IO] `Embed`: Error running script:", u);
3017
3017
  }
3018
3018
  }
3019
3019
  }
3020
- return V(() => {
3020
+ return N(() => {
3021
3021
  t.current && !a && (l(!0), c());
3022
3022
  }, [t.current, a]), /* @__PURE__ */ s(
3023
3023
  "div",
@@ -3270,129 +3270,132 @@ const Gn = {
3270
3270
  return Qn.includes(e) ? e : "production";
3271
3271
  };
3272
3272
  function Xn(e) {
3273
- const t = H(null), [n, i] = C(() => "unsubmitted"), [r, o] = C(() => null), [a, l] = C(() => "");
3274
- function c(b) {
3275
- var v, d;
3276
- const m = {
3273
+ const t = z(null), [n, i] = k(() => "unsubmitted"), [r, o] = k(() => null), [a, l] = k(() => "");
3274
+ function c(u) {
3275
+ var f, m;
3276
+ const x = {
3277
3277
  ...e.builderContext.rootState,
3278
- ...b
3278
+ ...u
3279
3279
  };
3280
- e.builderContext.rootSetState ? (d = (v = e.builderContext).rootSetState) == null || d.call(v, m) : e.builderContext.rootState = m;
3280
+ e.builderContext.rootSetState ? (m = (f = e.builderContext).rootSetState) == null || m.call(f, x) : e.builderContext.rootState = x;
3281
+ }
3282
+ function d() {
3283
+ return _() && e.previewState || n;
3281
3284
  }
3282
- function u() {
3283
- return L() && e.previewState || n;
3285
+ function h(u) {
3286
+ return JSON.stringify(u, null, 2);
3284
3287
  }
3285
- function f(b) {
3286
- var v;
3287
- const m = e.sendWithJs || e.sendSubmissionsTo === "email";
3288
+ function b(u) {
3289
+ var f;
3290
+ const x = e.sendWithJs || e.sendSubmissionsTo === "email";
3288
3291
  if (e.sendSubmissionsTo === "zapier")
3289
- b.preventDefault();
3290
- else if (m) {
3292
+ u.preventDefault();
3293
+ else if (x) {
3291
3294
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3292
- b.preventDefault();
3295
+ u.preventDefault();
3293
3296
  return;
3294
3297
  }
3295
- b.preventDefault();
3296
- const d = b.currentTarget || b.target, g = e.customHeaders || {};
3297
- let p;
3298
- const y = new FormData(d), S = Array.from(d.querySelectorAll("input,select,textarea")).filter((h) => !!h.name).filter(
3299
- (h) => !!h.name && (h.type !== "radio" || h.checked)
3300
- ).map((h) => {
3301
- let x;
3302
- const E = h.name;
3303
- if (h instanceof HTMLInputElement)
3304
- if (h.type === "radio") {
3305
- if (h.checked)
3306
- return x = h.value, {
3307
- key: E,
3308
- value: x
3298
+ u.preventDefault();
3299
+ const m = u.currentTarget || u.target, y = e.customHeaders || {};
3300
+ let g;
3301
+ const S = new FormData(m), T = Array.from(m.querySelectorAll("input,select,textarea")).filter((p) => !!p.name).filter(
3302
+ (p) => !!p.name && (p.type !== "radio" || p.checked)
3303
+ ).map((p) => {
3304
+ let v;
3305
+ const I = p.name;
3306
+ if (p instanceof HTMLInputElement)
3307
+ if (p.type === "radio") {
3308
+ if (p.checked)
3309
+ return v = p.value, {
3310
+ key: I,
3311
+ value: v
3309
3312
  };
3310
- } else if (h.type === "checkbox")
3311
- x = h.checked;
3312
- else if (h.type === "number" || h.type === "range") {
3313
- const N = h.valueAsNumber;
3314
- isNaN(N) || (x = N);
3313
+ } else if (p.type === "checkbox")
3314
+ v = p.checked;
3315
+ else if (p.type === "number" || p.type === "range") {
3316
+ const V = p.valueAsNumber;
3317
+ isNaN(V) || (v = V);
3315
3318
  } else
3316
- h.type === "file" ? x = h.files : x = h.value;
3319
+ p.type === "file" ? v = p.files : v = p.value;
3317
3320
  else
3318
- x = h.value;
3321
+ v = p.value;
3319
3322
  return {
3320
- key: E,
3321
- value: x
3323
+ key: I,
3324
+ value: v
3322
3325
  };
3323
3326
  });
3324
- let k = e.contentType;
3325
- if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(S).forEach(({ value: h }) => {
3326
- (h instanceof File || Array.isArray(h) && h[0] instanceof File || h instanceof FileList) && (k = "multipart/form-data");
3327
- }), k !== "application/json")
3328
- p = y;
3327
+ let E = e.contentType;
3328
+ if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(T).forEach(({ value: p }) => {
3329
+ (p instanceof File || Array.isArray(p) && p[0] instanceof File || p instanceof FileList) && (E = "multipart/form-data");
3330
+ }), E !== "application/json")
3331
+ g = S;
3329
3332
  else {
3330
- const h = {};
3331
- Array.from(S).forEach(({ value: x, key: E }) => {
3332
- ze(h, E, x);
3333
- }), p = JSON.stringify(h);
3333
+ const p = {};
3334
+ Array.from(T).forEach(({ value: v, key: I }) => {
3335
+ ze(p, I, v);
3336
+ }), g = JSON.stringify(p);
3334
3337
  }
3335
- k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (g["content-type"] = k));
3336
- const A = new CustomEvent("presubmit", { detail: { body: p } });
3337
- if (t.current && (t.current.dispatchEvent(A), A.defaultPrevented))
3338
+ E && E !== "multipart/form-data" && (x && ((f = e.action) != null && f.includes("zapier.com")) || (y["content-type"] = E));
3339
+ const U = new CustomEvent("presubmit", { detail: { body: g } });
3340
+ if (t.current && (t.current.dispatchEvent(U), U.defaultPrevented))
3338
3341
  return;
3339
3342
  if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
3340
- const h = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3341
- console.error(h), i("error"), c({ formErrorMessage: h });
3343
+ const p = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3344
+ console.error(p), i("error"), c({ formErrorMessage: p });
3342
3345
  return;
3343
3346
  }
3344
- const T = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3347
+ const H = `${Yn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3345
3348
  e.sendSubmissionsToEmail || ""
3346
- )}&name=${encodeURIComponent(e.name || "")}`, w = e.sendSubmissionsTo === "email" ? T : e.action;
3347
- Fe(w), fetch(w, { body: p, headers: g, method: e.method || "post" }).then(
3348
- async (h) => {
3349
- var N, F;
3350
- let x;
3351
- const E = h.headers.get("content-type");
3352
- if (E && E.indexOf("application/json") !== -1 ? x = await h.json() : x = await h.text(), !h.ok) {
3353
- const _ = new CustomEvent("submit:error", {
3354
- detail: { error: x, status: h.status }
3349
+ )}&name=${encodeURIComponent(e.name || "")}`, q = e.sendSubmissionsTo === "email" ? H : e.action;
3350
+ Fe(q), fetch(q, { body: g, headers: y, method: e.method || "post" }).then(
3351
+ async (p) => {
3352
+ var V, W;
3353
+ let v;
3354
+ const I = p.headers.get("content-type");
3355
+ if (I && I.indexOf("application/json") !== -1 ? v = await p.json() : v = await p.text(), !p.ok) {
3356
+ const R = new CustomEvent("submit:error", {
3357
+ detail: { error: v, status: p.status }
3355
3358
  });
3356
- if ((N = t.current) != null && N.nativeElement && ((F = t.current) == null || F.nativeElement.dispatchEvent(_), _.defaultPrevented))
3359
+ if ((V = t.current) != null && V.nativeElement && ((W = t.current) == null || W.nativeElement.dispatchEvent(R), R.defaultPrevented))
3357
3360
  return;
3358
- o(x), i("error");
3359
- let P = e.errorMessagePath ? Me(x, e.errorMessagePath) : x.message || x.error || x;
3360
- typeof P != "string" && (P = JSON.stringify(P)), l(P), c({ formErrorMessage: P });
3361
+ o(v), i("error");
3362
+ let A = e.errorMessagePath ? Me(v, e.errorMessagePath) : v.message || v.error || v;
3363
+ typeof A != "string" && (A = JSON.stringify(A)), l(A), c({ formErrorMessage: A });
3361
3364
  return;
3362
3365
  }
3363
- if (o(x), i(h.ok ? "success" : "error"), h.ok) {
3364
- const _ = new CustomEvent("submit:success", {
3365
- detail: { res: h, body: x }
3366
+ if (o(v), i(p.ok ? "success" : "error"), p.ok) {
3367
+ const R = new CustomEvent("submit:success", {
3368
+ detail: { res: p, body: v }
3366
3369
  });
3367
3370
  if (t.current) {
3368
- if (t.current.dispatchEvent(_), _.defaultPrevented)
3371
+ if (t.current.dispatchEvent(R), R.defaultPrevented)
3369
3372
  return;
3370
3373
  e.resetFormOnSubmit !== !1 && t.current.reset();
3371
3374
  }
3372
3375
  if (e.successUrl)
3373
3376
  if (t.current) {
3374
- const P = new CustomEvent("route", {
3377
+ const A = new CustomEvent("route", {
3375
3378
  detail: { url: e.successUrl }
3376
3379
  });
3377
- t.current.dispatchEvent(P), P.defaultPrevented || (location.href = e.successUrl);
3380
+ t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
3378
3381
  } else
3379
3382
  location.href = e.successUrl;
3380
3383
  }
3381
3384
  },
3382
- (h) => {
3383
- const x = new CustomEvent("submit:error", {
3384
- detail: { error: h }
3385
+ (p) => {
3386
+ const v = new CustomEvent("submit:error", {
3387
+ detail: { error: p }
3385
3388
  });
3386
- t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (o(h), i("error"));
3389
+ t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (o(p), i("error"));
3387
3390
  }
3388
3391
  );
3389
3392
  }
3390
3393
  }
3391
- return /* @__PURE__ */ $(R, { children: [
3394
+ return /* @__PURE__ */ D(P, { children: [
3392
3395
  " ",
3393
- /* @__PURE__ */ s("style", { children: ".pre-26f6d56a { padding: 10px; color: red; text-align: center; }" }),
3396
+ /* @__PURE__ */ s("style", { children: ".pre-abc898ba { padding: 10px; color: red; text-align: center; }" }),
3394
3397
  " ",
3395
- /* @__PURE__ */ $(
3398
+ /* @__PURE__ */ D(
3396
3399
  "form",
3397
3400
  {
3398
3401
  validate: e.validate,
@@ -3400,29 +3403,29 @@ function Xn(e) {
3400
3403
  action: !e.sendWithJs && e.action,
3401
3404
  method: e.method,
3402
3405
  name: e.name,
3403
- onSubmit: (b) => f(b),
3406
+ onSubmit: (u) => b(u),
3404
3407
  ...e.attributes,
3405
3408
  children: [
3406
3409
  e.children,
3407
- u() === "error" ? /* @__PURE__ */ s(
3408
- U,
3410
+ d() === "error" ? /* @__PURE__ */ s(
3411
+ M,
3409
3412
  {
3410
3413
  path: "errorMessage",
3411
3414
  blocks: e.errorMessage,
3412
3415
  context: e.builderContext
3413
3416
  }
3414
3417
  ) : null,
3415
- u() === "sending" ? /* @__PURE__ */ s(
3416
- U,
3418
+ d() === "sending" ? /* @__PURE__ */ s(
3419
+ M,
3417
3420
  {
3418
3421
  path: "sendingMessage",
3419
3422
  blocks: e.sendingMessage,
3420
3423
  context: e.builderContext
3421
3424
  }
3422
3425
  ) : null,
3423
- u() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-26f6d56a", children: JSON.stringify(r, null, 2) }) : null,
3424
- u() === "success" ? /* @__PURE__ */ s(
3425
- U,
3426
+ d() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-abc898ba", children: h(r) }) : null,
3427
+ d() === "success" ? /* @__PURE__ */ s(
3428
+ M,
3426
3429
  {
3427
3430
  path: "successMessage",
3428
3431
  blocks: e.successMessage,
@@ -3492,7 +3495,7 @@ function ei(e) {
3492
3495
  "input",
3493
3496
  {
3494
3497
  ...e.attributes,
3495
- key: L() && e.defaultValue ? e.defaultValue : "default-key",
3498
+ key: _() && e.defaultValue ? e.defaultValue : "default-key",
3496
3499
  placeholder: e.placeholder,
3497
3500
  type: e.type,
3498
3501
  name: e.name,
@@ -3552,7 +3555,7 @@ function ni(e) {
3552
3555
  {
3553
3556
  ...e.attributes,
3554
3557
  value: e.value,
3555
- key: L() && e.defaultValue ? e.defaultValue : "default-key",
3558
+ key: _() && e.defaultValue ? e.defaultValue : "default-key",
3556
3559
  defaultValue: e.defaultValue,
3557
3560
  name: e.name,
3558
3561
  required: e.required
@@ -3673,7 +3676,7 @@ function si(e) {
3673
3676
  srcSet: t(),
3674
3677
  ...e.attributes
3675
3678
  },
3676
- L() && e.imgSrc || "default-key"
3679
+ _() && e.imgSrc || "default-key"
3677
3680
  );
3678
3681
  }
3679
3682
  const ci = {
@@ -3762,8 +3765,8 @@ const ci = {
3762
3765
  }
3763
3766
  };
3764
3767
  function ui(e) {
3765
- var a, l, c, u, f, b, m;
3766
- const t = H(null);
3768
+ var a, l, c, d, h, b, u;
3769
+ const t = z(null);
3767
3770
  function n() {
3768
3771
  return {
3769
3772
  ...e.autoPlay === !0 ? {
@@ -3788,32 +3791,32 @@ function ui(e) {
3788
3791
  ...n()
3789
3792
  };
3790
3793
  }
3791
- const [r, o] = C(() => {
3794
+ const [r, o] = k(() => {
3792
3795
  });
3793
- return V(() => {
3796
+ return N(() => {
3794
3797
  if (e.lazyLoad) {
3795
- const v = new IntersectionObserver(function(d) {
3796
- d.forEach(function(g) {
3797
- if (!g.isIntersecting)
3798
+ const x = new IntersectionObserver(function(f) {
3799
+ f.forEach(function(m) {
3800
+ if (!m.isIntersecting)
3798
3801
  return;
3799
- const p = g.target;
3802
+ const y = m.target;
3800
3803
  try {
3801
- Array.from(p.children).filter(
3802
- (y) => y instanceof HTMLElement && y.tagName === "SOURCE"
3803
- ).forEach((y) => {
3804
- const S = y.dataset.src;
3805
- S && (y.src = S);
3806
- }), p.load(), v.unobserve(p);
3807
- } catch (y) {
3808
- console.error("Error loading lazy video:", y);
3804
+ Array.from(y.children).filter(
3805
+ (g) => g instanceof HTMLElement && g.tagName === "SOURCE"
3806
+ ).forEach((g) => {
3807
+ const S = g.dataset.src;
3808
+ S && (g.src = S);
3809
+ }), y.load(), x.unobserve(y);
3810
+ } catch (g) {
3811
+ console.error("Error loading lazy video:", g);
3809
3812
  }
3810
3813
  });
3811
3814
  });
3812
- t.current && v.observe(t.current), o(v);
3815
+ t.current && x.observe(t.current), o(x);
3813
3816
  }
3814
- }, []), V(() => () => {
3817
+ }, []), N(() => () => {
3815
3818
  r && r.disconnect();
3816
- }, []), /* @__PURE__ */ $(
3819
+ }, []), /* @__PURE__ */ D(
3817
3820
  "div",
3818
3821
  {
3819
3822
  style: {
@@ -3865,7 +3868,7 @@ function ui(e) {
3865
3868
  }
3866
3869
  }
3867
3870
  ) : null,
3868
- (f = (u = e.builderBlock) == null ? void 0 : u.children) != null && f.length && e.fitContent ? /* @__PURE__ */ s(
3871
+ (h = (d = e.builderBlock) == null ? void 0 : d.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
3869
3872
  "div",
3870
3873
  {
3871
3874
  style: {
@@ -3876,7 +3879,7 @@ function ui(e) {
3876
3879
  children: e.children
3877
3880
  }
3878
3881
  ) : null,
3879
- (m = (b = e.builderBlock) == null ? void 0 : b.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ s(
3882
+ (u = (b = e.builderBlock) == null ? void 0 : b.children) != null && u.length && !e.fitContent ? /* @__PURE__ */ s(
3880
3883
  "div",
3881
3884
  {
3882
3885
  style: {
@@ -4057,7 +4060,7 @@ const di = () => [{
4057
4060
  })), hi = ({
4058
4061
  canTrack: e,
4059
4062
  content: t
4060
- }) => !(!(oe(t).length > 0) || !e || M()), gi = (e) => e === "react" || e === "reactNative", bi = O === "angular", st = gi(O), yi = () => `
4063
+ }) => !(!(oe(t).length > 0) || !e || K()), gi = (e) => e === "react" || e === "reactNative", bi = O === "angular", st = gi(O), yi = () => `
4061
4064
  window.${at} = ${mi}
4062
4065
  window.${lt} = ${fi}
4063
4066
  `, pi = (e, t) => `
@@ -4111,7 +4114,7 @@ const xi = (e, t, n = !0) => {
4111
4114
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
4112
4115
  }
4113
4116
  };
4114
- }, Ci = ["svelte", "qwik", "vue"], De = () => Ci.includes(O) && (L() || se()), Ti = (e) => {
4117
+ }, Ci = ["svelte", "qwik", "vue"], De = () => Ci.includes(O) && (_() || se()), Ti = (e) => {
4115
4118
  var o, a;
4116
4119
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (a = e.fileUrl) != null ? a : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
4117
4120
  let r = "";
@@ -4126,11 +4129,11 @@ font-weight: 400;
4126
4129
  for (const l in e.files) {
4127
4130
  if (!(String(Number(l)) === l))
4128
4131
  continue;
4129
- const u = e.files[l];
4130
- u && u !== i && (r += `
4132
+ const d = e.files[l];
4133
+ d && d !== i && (r += `
4131
4134
  @font-face {
4132
4135
  font-family: "${t}";
4133
- src: url('${u}') format('woff2');
4136
+ src: url('${d}') format('woff2');
4134
4137
  font-display: fallback;
4135
4138
  font-weight: ${l};
4136
4139
  }
@@ -4164,147 +4167,150 @@ font-weight: ${l};
4164
4167
  }
4165
4168
  `, Ri = (e) => e ? "" : Ei, Pi = (e) => `variant-${e}`;
4166
4169
  function Vi(e) {
4167
- var S, k, A;
4168
- const t = H(null);
4169
- C(() => !1);
4170
- function n(T) {
4171
- var h, x;
4172
- const w = {
4170
+ var H, q, p;
4171
+ const t = z(null);
4172
+ k(() => !1);
4173
+ const [n, i] = k(() => null), [r, o] = k(() => "");
4174
+ function a(v) {
4175
+ var V, W;
4176
+ const I = {
4173
4177
  ...e.builderContextSignal.rootState,
4174
- ...T
4178
+ ...v
4175
4179
  };
4176
- e.builderContextSignal.rootSetState ? (x = (h = e.builderContextSignal).rootSetState) == null || x.call(h, w) : e.setBuilderContextSignal((E) => ({
4177
- ...E,
4178
- rootState: w
4180
+ e.builderContextSignal.rootSetState ? (W = (V = e.builderContextSignal).rootSetState) == null || W.call(V, I) : e.setBuilderContextSignal((R) => ({
4181
+ ...R,
4182
+ rootState: I
4179
4183
  }));
4180
4184
  }
4181
- function i(T) {
4182
- var h, x, E, N, F;
4183
- const w = {
4185
+ function l(v) {
4186
+ var V, W, R, A, w;
4187
+ const I = {
4184
4188
  ...e.builderContextSignal.content,
4185
- ...T,
4189
+ ...v,
4186
4190
  data: {
4187
- ...(h = e.builderContextSignal.content) == null ? void 0 : h.data,
4188
- ...T == null ? void 0 : T.data
4191
+ ...(V = e.builderContextSignal.content) == null ? void 0 : V.data,
4192
+ ...v == null ? void 0 : v.data
4189
4193
  },
4190
4194
  meta: {
4191
- ...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
4192
- ...T == null ? void 0 : T.meta,
4193
- breakpoints: ((E = T == null ? void 0 : T.meta) == null ? void 0 : E.breakpoints) || ((F = (N = e.builderContextSignal.content) == null ? void 0 : N.meta) == null ? void 0 : F.breakpoints)
4195
+ ...(W = e.builderContextSignal.content) == null ? void 0 : W.meta,
4196
+ ...v == null ? void 0 : v.meta,
4197
+ breakpoints: ((R = v == null ? void 0 : v.meta) == null ? void 0 : R.breakpoints) || ((w = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : w.breakpoints)
4194
4198
  }
4195
4199
  };
4196
- e.setBuilderContextSignal((_) => ({
4197
- ..._,
4198
- content: w
4200
+ e.setBuilderContextSignal((B) => ({
4201
+ ...B,
4202
+ content: I
4199
4203
  }));
4200
4204
  }
4201
- function r() {
4205
+ function c() {
4202
4206
  return e.showContent ? {} : {
4203
4207
  hidden: !0,
4204
4208
  "aria-hidden": !0
4205
4209
  };
4206
4210
  }
4207
- const [o, a] = C(
4211
+ const [d, h] = k(
4208
4212
  () => e.contentWrapper || "div"
4209
4213
  );
4210
- function l(T) {
4214
+ function b(v) {
4211
4215
  return ft({
4212
4216
  model: e.model,
4213
4217
  trustedHosts: e.trustedHosts,
4214
4218
  callbacks: {
4215
- configureSdk: (w) => {
4216
- var E;
4217
- const { breakpoints: h, contentId: x } = w;
4218
- !x || x !== ((E = e.builderContextSignal.content) == null ? void 0 : E.id) || h && i({
4219
+ configureSdk: (I) => {
4220
+ var R;
4221
+ const { breakpoints: V, contentId: W } = I;
4222
+ !W || W !== ((R = e.builderContextSignal.content) == null ? void 0 : R.id) || V && l({
4219
4223
  meta: {
4220
- breakpoints: h
4224
+ breakpoints: V
4221
4225
  }
4222
4226
  });
4223
4227
  },
4224
- animation: (w) => {
4225
- Ge(w);
4228
+ animation: (I) => {
4229
+ Ge(I);
4226
4230
  },
4227
- contentUpdate: (w) => {
4228
- i(w);
4231
+ contentUpdate: (I) => {
4232
+ l(I);
4229
4233
  },
4230
- stateUpdate: (w) => {
4231
- n(w);
4234
+ stateUpdate: (I) => {
4235
+ a(I);
4232
4236
  }
4233
4237
  }
4234
- })(T);
4238
+ })(v);
4235
4239
  }
4236
- const [c, u] = C(() => ({})), [f, b] = C(() => ({})), [m, v] = C(() => !1);
4237
- function d(T) {
4238
- var w, h;
4240
+ const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, g] = k(() => !1);
4241
+ function S(v) {
4242
+ var I, V;
4239
4243
  if (e.builderContextSignal.content) {
4240
- const x = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, E = (h = e.builderContextSignal.content) == null ? void 0 : h.id;
4244
+ const W = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, R = (V = e.builderContextSignal.content) == null ? void 0 : V.id;
4241
4245
  Te({
4242
4246
  apiHost: e.apiHost,
4243
4247
  type: "click",
4244
- canTrack: Z(e.canTrack),
4245
- contentId: E,
4248
+ canTrack: ee(e.canTrack),
4249
+ contentId: R,
4246
4250
  apiKey: e.apiKey,
4247
- variationId: x !== E ? x : void 0,
4248
- ...ki(T),
4249
- unique: !m
4251
+ variationId: W !== R ? W : void 0,
4252
+ ...ki(v),
4253
+ unique: !y
4250
4254
  });
4251
4255
  }
4252
- m || v(!0);
4256
+ y || g(!0);
4253
4257
  }
4254
- function g() {
4255
- var w, h, x;
4256
- const T = (x = (h = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : h.httpRequests) != null ? x : {};
4257
- Object.entries(T).forEach(
4258
- ([E, N]) => {
4259
- if (!N)
4258
+ function T() {
4259
+ var I, V, W;
4260
+ const v = (W = (V = (I = e.builderContextSignal.content) == null ? void 0 : I.data) == null ? void 0 : V.httpRequests) != null ? W : {};
4261
+ Object.entries(v).forEach(
4262
+ ([R, A]) => {
4263
+ if (!A)
4260
4264
  return;
4261
- const F = typeof N == "object" && N["@type"] === "@builder.io/core:Request";
4262
- if (f[E] || c[E] && !L())
4265
+ const w = typeof A == "object" && A["@type"] === "@builder.io/core:Request";
4266
+ if (f[R] || u[R] && !_())
4263
4267
  return;
4264
- const _ = F ? N.request.url : N;
4265
- f[E] = !0;
4266
- const P = _.replace(
4268
+ const B = w ? A.request.url : A;
4269
+ f[R] = !0;
4270
+ const C = B.replace(
4267
4271
  /{{([^}]+)}}/g,
4268
- (I, B) => String(
4269
- G({
4270
- code: B,
4272
+ (L, j) => String(
4273
+ Y({
4274
+ code: j,
4271
4275
  context: e.context || {},
4272
4276
  localState: void 0,
4273
4277
  rootState: e.builderContextSignal.rootState,
4274
4278
  rootSetState: e.builderContextSignal.rootSetState
4275
4279
  })
4276
4280
  )
4277
- ), D = F ? {
4278
- url: P,
4279
- method: N.request.method,
4280
- headers: N.request.headers,
4281
- body: N.request.body
4281
+ ), $ = w ? {
4282
+ url: C,
4283
+ method: A.request.method,
4284
+ headers: A.request.headers,
4285
+ body: A.request.body
4282
4286
  } : {
4283
- url: P,
4287
+ url: C,
4284
4288
  method: "GET"
4285
4289
  };
4286
- Fe(JSON.stringify(D)), fetch(D.url, {
4287
- method: D.method,
4288
- headers: D.headers,
4289
- body: D.body
4290
- }).then((I) => I.json()).then((I) => {
4291
- n({
4292
- [E]: I
4293
- }), c[E] = !0;
4294
- }).catch((I) => {
4290
+ Fe(JSON.stringify($));
4291
+ const F = {
4292
+ method: $.method,
4293
+ headers: $.headers,
4294
+ body: $.body
4295
+ };
4296
+ $.method === "GET" && delete F.body, fetch($.url, F).then((L) => L.json()).then((L) => {
4297
+ a({
4298
+ [R]: L
4299
+ }), u[R] = !0;
4300
+ }).catch((L) => {
4295
4301
  console.error(
4296
4302
  "error fetching dynamic data",
4297
- JSON.stringify(N),
4298
- I
4303
+ JSON.stringify(A),
4304
+ L
4299
4305
  );
4300
4306
  }).finally(() => {
4301
- f[E] = !1;
4307
+ f[R] = !1;
4302
4308
  });
4303
4309
  }
4304
4310
  );
4305
4311
  }
4306
- function p() {
4307
- L() && window.dispatchEvent(
4312
+ function E() {
4313
+ _() && window.dispatchEvent(
4308
4314
  new CustomEvent(
4309
4315
  "builder:component:stateChange",
4310
4316
  {
@@ -4318,11 +4324,11 @@ function Vi(e) {
4318
4324
  )
4319
4325
  );
4320
4326
  }
4321
- const y = H(!1);
4322
- return y.current || (g(), p(), y.current = !0), V(() => {
4323
- var T, w, h, x, E;
4324
- if (M()) {
4325
- L() && !e.isNestedRender && (window.addEventListener("message", l), ut({
4327
+ const U = z(!1);
4328
+ return U.current || (T(), E(), U.current = !0), N(() => {
4329
+ var v, I, V, W, R;
4330
+ if (K()) {
4331
+ _() && !e.isNestedRender && (window.addEventListener("message", b), ut({
4326
4332
  ...e.locale ? {
4327
4333
  locale: e.locale
4328
4334
  } : {},
@@ -4332,89 +4338,97 @@ function Vi(e) {
4332
4338
  ...e.trustedHosts ? {
4333
4339
  trustedHosts: e.trustedHosts
4334
4340
  } : {},
4335
- modelName: (T = e.model) != null ? T : "",
4341
+ modelName: (v = e.model) != null ? v : "",
4336
4342
  apiKey: e.apiKey
4337
4343
  }), Object.values(
4338
4344
  e.builderContextSignal.componentInfos
4339
- ).forEach((P) => {
4340
- var D, I;
4341
- if (!((D = P.models) != null && D.length) || P.models.includes(e.model)) {
4342
- const B = dt(P);
4343
- (I = window.parent) == null || I.postMessage(B, "*");
4345
+ ).forEach((C) => {
4346
+ var $, F;
4347
+ if (!(($ = C.models) != null && $.length) || C.models.includes(e.model)) {
4348
+ const L = dt(C);
4349
+ (F = window.parent) == null || F.postMessage(L, "*");
4344
4350
  }
4345
4351
  }), window.addEventListener(
4346
4352
  "builder:component:stateChangeListenerActivated",
4347
- p
4353
+ E
4348
4354
  ));
4349
- const N = e.builderContextSignal.content && Z(e.canTrack), F = mt({
4350
- name: `builder.tests.${(w = e.builderContextSignal.content) == null ? void 0 : w.id}`,
4355
+ const A = e.builderContextSignal.content && ee(e.canTrack), w = mt({
4356
+ name: `builder.tests.${(I = e.builderContextSignal.content) == null ? void 0 : I.id}`,
4351
4357
  canTrack: !0
4352
- }), _ = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId;
4353
- if (N && _ === F) {
4354
- const P = (x = e.builderContextSignal.content) == null ? void 0 : x.id, D = e.apiKey;
4358
+ }), B = (V = e.builderContextSignal.content) == null ? void 0 : V.testVariationId;
4359
+ if (A && B === w) {
4360
+ const C = (W = e.builderContextSignal.content) == null ? void 0 : W.id, $ = e.apiKey;
4355
4361
  Te({
4356
4362
  apiHost: e.apiHost,
4357
4363
  type: "impression",
4358
4364
  canTrack: !0,
4359
- contentId: P,
4360
- apiKey: D,
4361
- variationId: F !== P ? F : void 0
4365
+ contentId: C,
4366
+ apiKey: $,
4367
+ variationId: w !== C ? w : void 0
4362
4368
  });
4363
4369
  }
4364
- if (se() && !L()) {
4365
- const P = new URL(location.href).searchParams, D = P.get("builder.preview"), I = P.get(
4366
- `builder.overrides.${D}`
4367
- ), B = P.get("apiKey") || P.get("builder.space");
4368
- (D === "BUILDER_STUDIO" || D === e.model && B === e.apiKey && (!e.content || I === e.content.id)) && Le({
4370
+ if (se() && !_()) {
4371
+ const C = new URL(location.href).searchParams, $ = C.get("builder.preview"), F = C.get(
4372
+ `builder.overrides.${$}`
4373
+ ), L = C.get("apiKey") || C.get("builder.space");
4374
+ ($ === "BUILDER_STUDIO" || $ === e.model && L === e.apiKey && (!e.content || F === e.content.id)) && Le({
4369
4375
  model: e.model,
4370
4376
  apiKey: e.apiKey,
4371
4377
  apiVersion: e.builderContextSignal.apiVersion,
4372
- ...D === "BUILDER_STUDIO" && ((E = e.context) != null && E.symbolId) ? {
4378
+ ...$ === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
4373
4379
  query: {
4374
4380
  id: e.context.symbolId
4375
4381
  }
4376
4382
  } : {}
4377
- }).then((W) => {
4378
- W && i(W);
4383
+ }).then((j) => {
4384
+ j && l(j);
4379
4385
  });
4380
4386
  }
4381
4387
  }
4382
- }, []), V(() => {
4383
- e.content && i(e.content);
4384
- }, [e.content]), V(() => {
4385
- p();
4386
- }, [e.builderContextSignal.rootState]), V(() => {
4387
- e.data && n(e.data);
4388
- }, [e.data]), V(() => {
4389
- e.locale && n({
4390
- locale: e.locale
4391
- });
4392
- }, [e.locale]), V(() => () => {
4393
- M() && (window.removeEventListener("message", l), window.removeEventListener(
4388
+ }, []), N(() => {
4389
+ e.content && l(e.content);
4390
+ }, [e.content]), N(() => {
4391
+ E();
4392
+ }, [e.builderContextSignal.rootState]), N(() => {
4393
+ if (e.data) {
4394
+ if (n === e.data)
4395
+ return;
4396
+ a(e.data), i(e.data);
4397
+ }
4398
+ }, [e.data]), N(() => {
4399
+ if (e.locale) {
4400
+ if (r === e.locale)
4401
+ return;
4402
+ a({
4403
+ locale: e.locale
4404
+ }), o(e.locale);
4405
+ }
4406
+ }, [e.locale]), N(() => () => {
4407
+ K() && (window.removeEventListener("message", b), window.removeEventListener(
4394
4408
  "builder:component:stateChangeListenerActivated",
4395
- p
4409
+ E
4396
4410
  ));
4397
4411
  }, []), /* @__PURE__ */ s(pe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || De() ? /* @__PURE__ */ s(
4398
- o,
4412
+ d,
4399
4413
  {
4400
4414
  ref: t,
4401
- onClick: (T) => d(T),
4402
- "builder-content-id": (S = e.builderContextSignal.content) == null ? void 0 : S.id,
4415
+ onClick: (v) => S(v),
4416
+ "builder-content-id": (H = e.builderContextSignal.content) == null ? void 0 : H.id,
4403
4417
  "builder-model": e.model,
4404
4418
  className: Pi(
4405
- ((k = e.content) == null ? void 0 : k.testVariationId) || ((A = e.content) == null ? void 0 : A.id)
4419
+ ((q = e.content) == null ? void 0 : q.testVariationId) || ((p = e.content) == null ? void 0 : p.id)
4406
4420
  ),
4407
4421
  style: {
4408
4422
  display: !e.builderContextSignal.content && De() ? "none" : void 0
4409
4423
  },
4410
- ...r(),
4424
+ ...c(),
4411
4425
  ...e.contentWrapperProps,
4412
4426
  children: e.children
4413
4427
  }
4414
4428
  ) : null });
4415
4429
  }
4416
4430
  function Ai(e) {
4417
- const [t, n] = C(
4431
+ const [t, n] = k(
4418
4432
  () => `
4419
4433
  ${wi({
4420
4434
  cssCode: e.cssCode,
@@ -4427,7 +4441,7 @@ ${Ri(e.isNestedRender)}
4427
4441
  `.trim()
4428
4442
  );
4429
4443
  return /* @__PURE__ */ s(
4430
- ee,
4444
+ te,
4431
4445
  {
4432
4446
  id: "builderio-content",
4433
4447
  styles: t,
@@ -4464,39 +4478,39 @@ const Bi = ({
4464
4478
  meta: e == null ? void 0 : e.meta
4465
4479
  } : void 0;
4466
4480
  function Oe(e) {
4467
- var u, f, b, m, v, d, g, p, y;
4468
- const [t, n] = C(
4481
+ var d, h, b, u, x, f, m, y, g;
4482
+ const [t, n] = k(
4469
4483
  () => {
4470
- var S, k;
4484
+ var S, T;
4471
4485
  return vi({
4472
4486
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4473
4487
  variationId: (S = e.content) == null ? void 0 : S.testVariationId,
4474
4488
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4475
- contentId: (k = e.content) == null ? void 0 : k.id
4489
+ contentId: (T = e.content) == null ? void 0 : T.id
4476
4490
  });
4477
4491
  }
4478
4492
  );
4479
4493
  function i(S) {
4480
- l((k) => ({
4481
- ...k,
4494
+ l((T) => ({
4495
+ ...T,
4482
4496
  rootState: S
4483
4497
  }));
4484
4498
  }
4485
- const [r, o] = C(
4499
+ const [r, o] = k(
4486
4500
  () => [
4487
4501
  ...Ne(),
4488
4502
  ...e.customComponents || []
4489
4503
  ].reduce(
4490
- (S, { component: k, ...A }) => ({
4504
+ (S, { component: T, ...E }) => ({
4491
4505
  ...S,
4492
- [A.name]: {
4493
- component: k,
4494
- ...Ie(A)
4506
+ [E.name]: {
4507
+ component: T,
4508
+ ...Ie(E)
4495
4509
  }
4496
4510
  }),
4497
4511
  {}
4498
4512
  )
4499
- ), [a, l] = C(() => ({
4513
+ ), [a, l] = k(() => ({
4500
4514
  content: Ni({
4501
4515
  content: e.content,
4502
4516
  data: e.data
@@ -4516,9 +4530,9 @@ function Oe(e) {
4516
4530
  ...Ne(),
4517
4531
  ...e.customComponents || []
4518
4532
  ].reduce(
4519
- (S, { component: k, ...A }) => ({
4533
+ (S, { component: T, ...E }) => ({
4520
4534
  ...S,
4521
- [A.name]: Ie(A)
4535
+ [E.name]: Ie(E)
4522
4536
  }),
4523
4537
  {}
4524
4538
  ),
@@ -4527,19 +4541,19 @@ function Oe(e) {
4527
4541
  BlocksWrapperProps: e.blocksWrapperProps || {},
4528
4542
  nonce: e.nonce || "",
4529
4543
  model: e.model
4530
- })), c = H(!1);
4544
+ })), c = z(!1);
4531
4545
  if (!c.current) {
4532
- e.apiKey || J.error(
4546
+ e.apiKey || Q.error(
4533
4547
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4534
4548
  );
4535
- const S = (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.jsCode;
4536
- S && G({
4549
+ const S = (h = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
4550
+ S && Y({
4537
4551
  code: S,
4538
4552
  context: e.context || {},
4539
4553
  localState: void 0,
4540
4554
  rootState: a.rootState,
4541
- rootSetState: (k) => {
4542
- Object.assign(a.rootState, k);
4555
+ rootSetState: (T) => {
4556
+ Object.assign(a.rootState, T);
4543
4557
  },
4544
4558
  isExpression: !1
4545
4559
  }), c.current = !0;
@@ -4550,7 +4564,7 @@ function Oe(e) {
4550
4564
  value: {
4551
4565
  registeredComponents: r
4552
4566
  },
4553
- children: /* @__PURE__ */ $(
4567
+ children: /* @__PURE__ */ D(
4554
4568
  Vi,
4555
4569
  {
4556
4570
  apiHost: e.apiHost,
@@ -4572,7 +4586,7 @@ function Oe(e) {
4572
4586
  setBuilderContextSignal: l,
4573
4587
  children: [
4574
4588
  e.isSsrAbTest ? /* @__PURE__ */ s(
4575
- j,
4589
+ J,
4576
4590
  {
4577
4591
  id: "builderio-variant-visibility",
4578
4592
  scriptStr: t,
@@ -4585,14 +4599,14 @@ function Oe(e) {
4585
4599
  nonce: e.nonce || "",
4586
4600
  isNestedRender: e.isNestedRender,
4587
4601
  contentId: (b = a.content) == null ? void 0 : b.id,
4588
- cssCode: (v = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
4589
- customFonts: (g = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : g.customFonts
4602
+ cssCode: (x = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : x.cssCode,
4603
+ customFonts: (m = (f = a.content) == null ? void 0 : f.data) == null ? void 0 : m.customFonts
4590
4604
  }
4591
4605
  ),
4592
4606
  /* @__PURE__ */ s(
4593
- U,
4607
+ M,
4594
4608
  {
4595
- blocks: (y = (p = a.content) == null ? void 0 : p.data) == null ? void 0 : y.blocks,
4609
+ blocks: (g = (y = a.content) == null ? void 0 : y.data) == null ? void 0 : g.blocks,
4596
4610
  context: a,
4597
4611
  registeredComponents: r,
4598
4612
  linkComponent: e.linkComponent
@@ -4606,9 +4620,9 @@ function Oe(e) {
4606
4620
  }
4607
4621
  function Wi(e) {
4608
4622
  var a;
4609
- const [t, n] = C(
4623
+ const [t, n] = k(
4610
4624
  () => hi({
4611
- canTrack: Z(e.canTrack),
4625
+ canTrack: ee(e.canTrack),
4612
4626
  content: e.content
4613
4627
  })
4614
4628
  );
@@ -4632,14 +4646,14 @@ function Wi(e) {
4632
4646
  testVariationId: (l = e.content) == null ? void 0 : l.id
4633
4647
  } : ht({
4634
4648
  item: e.content,
4635
- canTrack: Z(e.canTrack)
4649
+ canTrack: ee(e.canTrack)
4636
4650
  });
4637
4651
  }
4638
- return V(() => {
4639
- }, []), /* @__PURE__ */ $(R, { children: [
4640
- !e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ $(R, { children: [
4652
+ return N(() => {
4653
+ }, []), /* @__PURE__ */ D(P, { children: [
4654
+ !e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ D(P, { children: [
4641
4655
  /* @__PURE__ */ s(
4642
- j,
4656
+ J,
4643
4657
  {
4644
4658
  id: "builderio-init-variants-fns",
4645
4659
  scriptStr: yi(),
@@ -4647,7 +4661,7 @@ function Wi(e) {
4647
4661
  }
4648
4662
  ),
4649
4663
  rt.includes(O) ? /* @__PURE__ */ s(
4650
- j,
4664
+ J,
4651
4665
  {
4652
4666
  id: "builderio-init-personalization-variants-fns",
4653
4667
  nonce: e.nonce || "",
@@ -4655,9 +4669,9 @@ function Wi(e) {
4655
4669
  }
4656
4670
  ) : null
4657
4671
  ] }) : null,
4658
- t ? /* @__PURE__ */ $(R, { children: [
4672
+ t ? /* @__PURE__ */ D(P, { children: [
4659
4673
  /* @__PURE__ */ s(
4660
- ee,
4674
+ te,
4661
4675
  {
4662
4676
  id: "builderio-variants",
4663
4677
  styles: r(),
@@ -4665,7 +4679,7 @@ function Wi(e) {
4665
4679
  }
4666
4680
  ),
4667
4681
  /* @__PURE__ */ s(
4668
- j,
4682
+ J,
4669
4683
  {
4670
4684
  id: "builderio-variants-visibility",
4671
4685
  scriptStr: i(),
@@ -4744,11 +4758,11 @@ const $i = async ({
4744
4758
  }
4745
4759
  }
4746
4760
  }).catch((n) => {
4747
- J.error("Could not fetch symbol content: ", n);
4761
+ Q.error("Could not fetch symbol content: ", n);
4748
4762
  });
4749
4763
  };
4750
4764
  function Di(e) {
4751
- var u, f, b, m, v;
4765
+ var h, b, u, x, f;
4752
4766
  function t() {
4753
4767
  return "div";
4754
4768
  }
@@ -4756,35 +4770,38 @@ function Di(e) {
4756
4770
  return "div";
4757
4771
  }
4758
4772
  function i() {
4759
- var d, g;
4773
+ return Object.values(e.builderComponents);
4774
+ }
4775
+ function r() {
4776
+ var m, y;
4760
4777
  return [
4761
- e.attributes[z()],
4778
+ e.attributes[G()],
4762
4779
  "builder-symbol",
4763
- (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
4764
- (g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4780
+ (m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
4781
+ (y = e.symbol) != null && y.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4765
4782
  ].filter(Boolean).join(" ");
4766
4783
  }
4767
- const [r, o] = C(() => {
4768
- var d;
4769
- return (d = e.symbol) == null ? void 0 : d.content;
4770
- }), [a, l] = C(() => {
4771
- var d;
4772
- return (d = e.symbol) == null ? void 0 : d.entry;
4784
+ const [o, a] = k(() => {
4785
+ var m;
4786
+ return (m = e.symbol) == null ? void 0 : m.content;
4787
+ }), [l, c] = k(() => {
4788
+ var m;
4789
+ return (m = e.symbol) == null ? void 0 : m.entry;
4773
4790
  });
4774
- function c() {
4775
- var d;
4776
- r && a === ((d = e.symbol) == null ? void 0 : d.entry) || $i({
4791
+ function d() {
4792
+ var m;
4793
+ o && l === ((m = e.symbol) == null ? void 0 : m.entry) || $i({
4777
4794
  symbol: e.symbol,
4778
4795
  builderContextValue: e.builderContext
4779
- }).then((g) => {
4780
- var p;
4781
- g && (o(g), l((p = e.symbol) == null ? void 0 : p.entry));
4796
+ }).then((y) => {
4797
+ var g;
4798
+ y && (a(y), c((g = e.symbol) == null ? void 0 : g.entry));
4782
4799
  });
4783
4800
  }
4784
- return V(() => {
4785
- }, []), V(() => {
4786
- c();
4787
- }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4801
+ return N(() => {
4802
+ }, []), N(() => {
4803
+ d();
4804
+ }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: r(), children: /* @__PURE__ */ s(
4788
4805
  Wi,
4789
4806
  {
4790
4807
  nonce: e.builderContext.nonce,
@@ -4793,17 +4810,17 @@ function Di(e) {
4793
4810
  apiKey: e.builderContext.apiKey,
4794
4811
  context: {
4795
4812
  ...e.builderContext.context,
4796
- symbolId: (u = e.builderBlock) == null ? void 0 : u.id
4813
+ symbolId: (h = e.builderBlock) == null ? void 0 : h.id
4797
4814
  },
4798
- customComponents: Object.values(e.builderComponents),
4815
+ customComponents: i(),
4799
4816
  data: {
4800
- ...(f = e.symbol) == null ? void 0 : f.data,
4817
+ ...(b = e.symbol) == null ? void 0 : b.data,
4801
4818
  ...e.builderContext.localState,
4802
- ...(b = r == null ? void 0 : r.data) == null ? void 0 : b.state
4819
+ ...(u = o == null ? void 0 : o.data) == null ? void 0 : u.state
4803
4820
  },
4804
4821
  canTrack: e.builderContext.canTrack,
4805
- model: (v = (m = e.symbol) == null ? void 0 : m.model) != null ? v : "",
4806
- content: r,
4822
+ model: (f = (x = e.symbol) == null ? void 0 : x.model) != null ? f : "",
4823
+ content: o,
4807
4824
  linkComponent: e.builderLinkComponent,
4808
4825
  blocksWrapper: t(),
4809
4826
  contentWrapper: n()
@@ -4811,7 +4828,7 @@ function Di(e) {
4811
4828
  ) });
4812
4829
  }
4813
4830
  export {
4814
- U as Blocks,
4831
+ M as Blocks,
4815
4832
  pe as BuilderContext,
4816
4833
  pt as Button,
4817
4834
  un as Columns,