@builder.io/sdk-react 4.2.0 → 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 (78) hide show
  1. package/lib/browser/blocks-exports.cjs +17 -17
  2. package/lib/browser/blocks-exports.mjs +759 -740
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +6 -5
  5. package/lib/browser/server-entry-06504dba.cjs +2 -0
  6. package/lib/browser/{server-entry-065ec411.js → server-entry-074665de.js} +24 -13
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +7 -6
  9. package/lib/edge/{accordion-c239771d.cjs → accordion-0768e15a.cjs} +1 -1
  10. package/lib/edge/{accordion-79f6d62c.js → accordion-d3831f48.js} +1 -1
  11. package/lib/edge/{blocks-3cb3a9cd.js → blocks-0269007e.js} +105 -106
  12. package/lib/edge/{blocks-56f79850.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-759b43fb.cjs → button-050f4fef.cjs} +1 -1
  16. package/lib/edge/{button-6dee05c9.js → button-a478ff1a.js} +2 -2
  17. package/lib/edge/{columns-2743498a.js → columns-0b3181f1.js} +3 -3
  18. package/lib/edge/{columns-a29ec0ac.cjs → columns-25375990.cjs} +1 -1
  19. package/lib/edge/{content-variants-4d5a1e3c.js → content-variants-0dd65b50.js} +426 -415
  20. package/lib/edge/content-variants-4cab7215.cjs +302 -0
  21. package/lib/edge/{custom-code-6129bd8c.cjs → custom-code-eb5aedd2.cjs} +1 -1
  22. package/lib/edge/{custom-code-8034fac0.js → custom-code-f7a0f1c1.js} +1 -1
  23. package/lib/edge/{embed-b2ea5150.cjs → embed-69114c35.cjs} +1 -1
  24. package/lib/edge/{embed-f5b10eeb.js → embed-e4979560.js} +1 -1
  25. package/lib/edge/{form-14942d4f.js → form-30fba682.js} +27 -22
  26. package/lib/edge/form-7b4bd399.cjs +1 -0
  27. package/lib/edge/{get-class-prop-name-f6a63f4a.js → get-class-prop-name-770bdff2.js} +1 -1
  28. package/lib/edge/{get-class-prop-name-7e739c9f.cjs → get-class-prop-name-f470d5ce.cjs} +1 -1
  29. package/lib/edge/{img-ba2ef9ee.js → img-3bb375bf.js} +1 -1
  30. package/lib/edge/{img-f33a2e42.cjs → img-ddf74e12.cjs} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +4 -3
  33. package/lib/edge/{input-c2f95825.cjs → input-a6caf021.cjs} +1 -1
  34. package/lib/edge/{input-7089e95f.js → input-e4a9fe0b.js} +1 -1
  35. package/lib/edge/{personalization-container-eb1ecef2.js → personalization-container-64f3cd71.js} +4 -4
  36. package/lib/edge/{personalization-container-794b3939.cjs → personalization-container-f7030f08.cjs} +1 -1
  37. package/lib/edge/{select-af0bb9fe.cjs → select-c217566c.cjs} +1 -1
  38. package/lib/edge/{select-8f01592a.js → select-c59c9ac6.js} +1 -1
  39. package/lib/edge/server-entry-67200cf1.cjs +2 -0
  40. package/lib/edge/{server-entry-7c65c9a8.js → server-entry-fb5f2b80.js} +22 -11
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +7 -6
  43. package/lib/edge/{slot-2638fd6d.js → slot-26ec2911.js} +3 -3
  44. package/lib/edge/{slot-db37860e.cjs → slot-ccd946e2.cjs} +1 -1
  45. package/lib/edge/{symbol-7faca118.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-2eee6422.js → tabs-f9110171.js} +24 -23
  49. package/lib/node/blocks-exports.cjs +20 -20
  50. package/lib/node/blocks-exports.mjs +919 -900
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +6 -5
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +3 -3
  55. package/lib/node/{server-entry-581dd491.js → server-entry-83d3751d.js} +24 -13
  56. package/lib/node/server-entry-d40e4b66.cjs +2 -0
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +7 -6
  59. package/lib/node/{setIvm-2eb44b9d.cjs → setIvm-0a5b2ba2.cjs} +1 -1
  60. package/lib/node/{setIvm-8d02dc72.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-f461467e.js → should-force-browser-runtime-in-node-180c3315.js} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-ed3fa1f9.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/types/functions/register.d.ts +18 -0
  71. package/types/server-index.d.ts +1 -1
  72. package/lib/browser/server-entry-09953757.cjs +0 -2
  73. package/lib/edge/content-variants-bdf1748b.cjs +0 -302
  74. package/lib/edge/form-26c3a03e.cjs +0 -1
  75. package/lib/edge/server-entry-142a50e9.cjs +0 -2
  76. package/lib/edge/symbol-630b9a57.cjs +0 -1
  77. package/lib/edge/tabs-502123df.cjs +0 -1
  78. package/lib/node/server-entry-375d06e8.cjs +0 -2
@@ -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-065ec411.js";
3
- import { setClientUserAttributes as Hi } from "./server-entry-065ec411.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, g;
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
- }) : "", h = 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 = ((g = (w = y.steps) == null ? void 0 : w[1]) == null ? void 0 : g.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
- h,
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 h;
898
+ var m;
900
899
  if (n.value && !n.update && !se())
901
900
  return n.value;
902
- const d = (h = e.block.repeat) != null && h.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 h;
920
- return e.block.tagName === "a" || ((h = r().properties) == null ? void 0 : h.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 h, p;
931
- return !((h = o == null ? void 0 : o()) != null && h.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, h, p, y;
932
+ function d() {
933
+ var f, m, y, g;
935
934
  return {
936
- blockChildren: (d = r().children) != null ? d : [],
937
- componentRef: (h = o == null ? void 0 : o()) == null ? void 0 : h.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, h = r().animations;
959
- h && d && Lt(
960
- h.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, h) => /* @__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(h)
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, h) => /* @__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(h)
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 h, 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((h = e.builderBlock) == null ? void 0 : h.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 h = u[m];
1465
- if (Array.isArray(h))
1466
- return h.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 h === d;
1468
+ return m === f;
1470
1469
  case "isNot":
1471
- return h !== d;
1470
+ return m !== f;
1472
1471
  case "contains":
1473
- return (r(h) || Array.isArray(h)) && h.includes(String(d));
1472
+ return (r(m) || Array.isArray(m)) && m.includes(String(f));
1474
1473
  case "startsWith":
1475
- return r(h) && h.startsWith(String(d));
1474
+ return r(m) && m.startsWith(String(f));
1476
1475
  case "endsWith":
1477
- return r(h) && h.endsWith(String(d));
1476
+ return r(m) && m.endsWith(String(f));
1478
1477
  case "greaterThan":
1479
- return o(h) && o(d) && h > d;
1478
+ return o(m) && o(f) && m > f;
1480
1479
  case "lessThan":
1481
- return o(h) && o(d) && h < d;
1480
+ return o(m) && o(f) && m < f;
1482
1481
  case "greaterThanOrEqualTo":
1483
- return o(h) && o(d) && h >= d;
1482
+ return o(m) && o(f) && m >= f;
1484
1483
  case "lessThanOrEqualTo":
1485
- return o(h) && o(d) && h <= 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, h]) => h !== 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, g, 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 h() {
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: h(),
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 = h()[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: ((g = e.builderContext) == null ? void 0 : g.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,127 +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
3281
  }
3282
- function u() {
3283
- return L() && e.previewState || n;
3282
+ function d() {
3283
+ return _() && e.previewState || n;
3284
+ }
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, h = e.customHeaders || {};
3297
- let p;
3298
- const y = new FormData(d), S = Array.from(d.querySelectorAll("input,select,textarea")).filter((g) => !!g.name).map((g) => {
3299
- let x;
3300
- const E = g.name;
3301
- if (g instanceof HTMLInputElement)
3302
- if (g.type === "radio") {
3303
- if (g.checked)
3304
- return x = g.name, {
3305
- key: E,
3306
- 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
3307
3312
  };
3308
- } else if (g.type === "checkbox")
3309
- x = g.checked;
3310
- else if (g.type === "number" || g.type === "range") {
3311
- const N = g.valueAsNumber;
3312
- 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);
3313
3318
  } else
3314
- g.type === "file" ? x = g.files : x = g.value;
3319
+ p.type === "file" ? v = p.files : v = p.value;
3315
3320
  else
3316
- x = g.value;
3321
+ v = p.value;
3317
3322
  return {
3318
- key: E,
3319
- value: x
3323
+ key: I,
3324
+ value: v
3320
3325
  };
3321
3326
  });
3322
- let k = e.contentType;
3323
- if (e.sendSubmissionsTo === "email" && (k = "multipart/form-data"), Array.from(S).forEach(({ value: g }) => {
3324
- (g instanceof File || Array.isArray(g) && g[0] instanceof File || g instanceof FileList) && (k = "multipart/form-data");
3325
- }), k !== "application/json")
3326
- 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;
3327
3332
  else {
3328
- const g = {};
3329
- Array.from(S).forEach(({ value: x, key: E }) => {
3330
- ze(g, E, x);
3331
- }), p = JSON.stringify(g);
3333
+ const p = {};
3334
+ Array.from(T).forEach(({ value: v, key: I }) => {
3335
+ ze(p, I, v);
3336
+ }), g = JSON.stringify(p);
3332
3337
  }
3333
- k && k !== "multipart/form-data" && (m && ((v = e.action) != null && v.includes("zapier.com")) || (h["content-type"] = k));
3334
- const A = new CustomEvent("presubmit", { detail: { body: p } });
3335
- 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))
3336
3341
  return;
3337
3342
  if (i("sending"), e.sendSubmissionsTo === "email" && (e.sendSubmissionsToEmail === "your@email.com" || !e.sendSubmissionsToEmail)) {
3338
- const g = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3339
- console.error(g), i("error"), c({ formErrorMessage: g });
3343
+ const p = "SubmissionsToEmail is required when sendSubmissionsTo is set to email";
3344
+ console.error(p), i("error"), c({ formErrorMessage: p });
3340
3345
  return;
3341
3346
  }
3342
- 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(
3343
3348
  e.sendSubmissionsToEmail || ""
3344
- )}&name=${encodeURIComponent(e.name || "")}`, w = e.sendSubmissionsTo === "email" ? T : e.action;
3345
- Fe(w), fetch(w, { body: p, headers: h, method: e.method || "post" }).then(
3346
- async (g) => {
3347
- var N, F;
3348
- let x;
3349
- const E = g.headers.get("content-type");
3350
- if (E && E.indexOf("application/json") !== -1 ? x = await g.json() : x = await g.text(), !g.ok) {
3351
- const _ = new CustomEvent("submit:error", {
3352
- detail: { error: x, status: g.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 }
3353
3358
  });
3354
- 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))
3355
3360
  return;
3356
- o(x), i("error");
3357
- let P = e.errorMessagePath ? Me(x, e.errorMessagePath) : x.message || x.error || x;
3358
- 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 });
3359
3364
  return;
3360
3365
  }
3361
- if (o(x), i(g.ok ? "success" : "error"), g.ok) {
3362
- const _ = new CustomEvent("submit:success", {
3363
- detail: { res: g, 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 }
3364
3369
  });
3365
3370
  if (t.current) {
3366
- if (t.current.dispatchEvent(_), _.defaultPrevented)
3371
+ if (t.current.dispatchEvent(R), R.defaultPrevented)
3367
3372
  return;
3368
3373
  e.resetFormOnSubmit !== !1 && t.current.reset();
3369
3374
  }
3370
3375
  if (e.successUrl)
3371
3376
  if (t.current) {
3372
- const P = new CustomEvent("route", {
3377
+ const A = new CustomEvent("route", {
3373
3378
  detail: { url: e.successUrl }
3374
3379
  });
3375
- t.current.dispatchEvent(P), P.defaultPrevented || (location.href = e.successUrl);
3380
+ t.current.dispatchEvent(A), A.defaultPrevented || (location.href = e.successUrl);
3376
3381
  } else
3377
3382
  location.href = e.successUrl;
3378
3383
  }
3379
3384
  },
3380
- (g) => {
3381
- const x = new CustomEvent("submit:error", {
3382
- detail: { error: g }
3385
+ (p) => {
3386
+ const v = new CustomEvent("submit:error", {
3387
+ detail: { error: p }
3383
3388
  });
3384
- t.current && (t.current.dispatchEvent(x), x.defaultPrevented) || (o(g), i("error"));
3389
+ t.current && (t.current.dispatchEvent(v), v.defaultPrevented) || (o(p), i("error"));
3385
3390
  }
3386
3391
  );
3387
3392
  }
3388
3393
  }
3389
- return /* @__PURE__ */ $(R, { children: [
3394
+ return /* @__PURE__ */ D(P, { children: [
3390
3395
  " ",
3391
- /* @__PURE__ */ s("style", { children: ".pre-7c90c93e { padding: 10px; color: red; text-align: center; }" }),
3396
+ /* @__PURE__ */ s("style", { children: ".pre-abc898ba { padding: 10px; color: red; text-align: center; }" }),
3392
3397
  " ",
3393
- /* @__PURE__ */ $(
3398
+ /* @__PURE__ */ D(
3394
3399
  "form",
3395
3400
  {
3396
3401
  validate: e.validate,
@@ -3398,29 +3403,29 @@ function Xn(e) {
3398
3403
  action: !e.sendWithJs && e.action,
3399
3404
  method: e.method,
3400
3405
  name: e.name,
3401
- onSubmit: (b) => f(b),
3406
+ onSubmit: (u) => b(u),
3402
3407
  ...e.attributes,
3403
3408
  children: [
3404
3409
  e.children,
3405
- u() === "error" ? /* @__PURE__ */ s(
3406
- U,
3410
+ d() === "error" ? /* @__PURE__ */ s(
3411
+ M,
3407
3412
  {
3408
3413
  path: "errorMessage",
3409
3414
  blocks: e.errorMessage,
3410
3415
  context: e.builderContext
3411
3416
  }
3412
3417
  ) : null,
3413
- u() === "sending" ? /* @__PURE__ */ s(
3414
- U,
3418
+ d() === "sending" ? /* @__PURE__ */ s(
3419
+ M,
3415
3420
  {
3416
3421
  path: "sendingMessage",
3417
3422
  blocks: e.sendingMessage,
3418
3423
  context: e.builderContext
3419
3424
  }
3420
3425
  ) : null,
3421
- u() === "error" && r ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7c90c93e", children: JSON.stringify(r, null, 2) }) : null,
3422
- u() === "success" ? /* @__PURE__ */ s(
3423
- 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,
3424
3429
  {
3425
3430
  path: "successMessage",
3426
3431
  blocks: e.successMessage,
@@ -3490,7 +3495,7 @@ function ei(e) {
3490
3495
  "input",
3491
3496
  {
3492
3497
  ...e.attributes,
3493
- key: L() && e.defaultValue ? e.defaultValue : "default-key",
3498
+ key: _() && e.defaultValue ? e.defaultValue : "default-key",
3494
3499
  placeholder: e.placeholder,
3495
3500
  type: e.type,
3496
3501
  name: e.name,
@@ -3550,7 +3555,7 @@ function ni(e) {
3550
3555
  {
3551
3556
  ...e.attributes,
3552
3557
  value: e.value,
3553
- key: L() && e.defaultValue ? e.defaultValue : "default-key",
3558
+ key: _() && e.defaultValue ? e.defaultValue : "default-key",
3554
3559
  defaultValue: e.defaultValue,
3555
3560
  name: e.name,
3556
3561
  required: e.required
@@ -3671,7 +3676,7 @@ function si(e) {
3671
3676
  srcSet: t(),
3672
3677
  ...e.attributes
3673
3678
  },
3674
- L() && e.imgSrc || "default-key"
3679
+ _() && e.imgSrc || "default-key"
3675
3680
  );
3676
3681
  }
3677
3682
  const ci = {
@@ -3760,8 +3765,8 @@ const ci = {
3760
3765
  }
3761
3766
  };
3762
3767
  function ui(e) {
3763
- var a, l, c, u, f, b, m;
3764
- const t = H(null);
3768
+ var a, l, c, d, h, b, u;
3769
+ const t = z(null);
3765
3770
  function n() {
3766
3771
  return {
3767
3772
  ...e.autoPlay === !0 ? {
@@ -3786,32 +3791,32 @@ function ui(e) {
3786
3791
  ...n()
3787
3792
  };
3788
3793
  }
3789
- const [r, o] = C(() => {
3794
+ const [r, o] = k(() => {
3790
3795
  });
3791
- return V(() => {
3796
+ return N(() => {
3792
3797
  if (e.lazyLoad) {
3793
- const v = new IntersectionObserver(function(d) {
3794
- d.forEach(function(h) {
3795
- if (!h.isIntersecting)
3798
+ const x = new IntersectionObserver(function(f) {
3799
+ f.forEach(function(m) {
3800
+ if (!m.isIntersecting)
3796
3801
  return;
3797
- const p = h.target;
3802
+ const y = m.target;
3798
3803
  try {
3799
- Array.from(p.children).filter(
3800
- (y) => y instanceof HTMLElement && y.tagName === "SOURCE"
3801
- ).forEach((y) => {
3802
- const S = y.dataset.src;
3803
- S && (y.src = S);
3804
- }), p.load(), v.unobserve(p);
3805
- } catch (y) {
3806
- 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);
3807
3812
  }
3808
3813
  });
3809
3814
  });
3810
- t.current && v.observe(t.current), o(v);
3815
+ t.current && x.observe(t.current), o(x);
3811
3816
  }
3812
- }, []), V(() => () => {
3817
+ }, []), N(() => () => {
3813
3818
  r && r.disconnect();
3814
- }, []), /* @__PURE__ */ $(
3819
+ }, []), /* @__PURE__ */ D(
3815
3820
  "div",
3816
3821
  {
3817
3822
  style: {
@@ -3863,7 +3868,7 @@ function ui(e) {
3863
3868
  }
3864
3869
  }
3865
3870
  ) : null,
3866
- (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(
3867
3872
  "div",
3868
3873
  {
3869
3874
  style: {
@@ -3874,7 +3879,7 @@ function ui(e) {
3874
3879
  children: e.children
3875
3880
  }
3876
3881
  ) : null,
3877
- (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(
3878
3883
  "div",
3879
3884
  {
3880
3885
  style: {
@@ -4055,7 +4060,7 @@ const di = () => [{
4055
4060
  })), hi = ({
4056
4061
  canTrack: e,
4057
4062
  content: t
4058
- }) => !(!(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 = () => `
4059
4064
  window.${at} = ${mi}
4060
4065
  window.${lt} = ${fi}
4061
4066
  `, pi = (e, t) => `
@@ -4109,7 +4114,7 @@ const xi = (e, t, n = !0) => {
4109
4114
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
4110
4115
  }
4111
4116
  };
4112
- }, Ci = ["svelte", "qwik", "vue"], De = () => Ci.includes(O) && (L() || se()), Ti = (e) => {
4117
+ }, Ci = ["svelte", "qwik", "vue"], De = () => Ci.includes(O) && (_() || se()), Ti = (e) => {
4113
4118
  var o, a;
4114
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;
4115
4120
  let r = "";
@@ -4124,11 +4129,11 @@ font-weight: 400;
4124
4129
  for (const l in e.files) {
4125
4130
  if (!(String(Number(l)) === l))
4126
4131
  continue;
4127
- const u = e.files[l];
4128
- u && u !== i && (r += `
4132
+ const d = e.files[l];
4133
+ d && d !== i && (r += `
4129
4134
  @font-face {
4130
4135
  font-family: "${t}";
4131
- src: url('${u}') format('woff2');
4136
+ src: url('${d}') format('woff2');
4132
4137
  font-display: fallback;
4133
4138
  font-weight: ${l};
4134
4139
  }
@@ -4162,147 +4167,150 @@ font-weight: ${l};
4162
4167
  }
4163
4168
  `, Ri = (e) => e ? "" : Ei, Pi = (e) => `variant-${e}`;
4164
4169
  function Vi(e) {
4165
- var S, k, A;
4166
- const t = H(null);
4167
- C(() => !1);
4168
- function n(T) {
4169
- var g, x;
4170
- 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 = {
4171
4177
  ...e.builderContextSignal.rootState,
4172
- ...T
4178
+ ...v
4173
4179
  };
4174
- e.builderContextSignal.rootSetState ? (x = (g = e.builderContextSignal).rootSetState) == null || x.call(g, w) : e.setBuilderContextSignal((E) => ({
4175
- ...E,
4176
- rootState: w
4180
+ e.builderContextSignal.rootSetState ? (W = (V = e.builderContextSignal).rootSetState) == null || W.call(V, I) : e.setBuilderContextSignal((R) => ({
4181
+ ...R,
4182
+ rootState: I
4177
4183
  }));
4178
4184
  }
4179
- function i(T) {
4180
- var g, x, E, N, F;
4181
- const w = {
4185
+ function l(v) {
4186
+ var V, W, R, A, w;
4187
+ const I = {
4182
4188
  ...e.builderContextSignal.content,
4183
- ...T,
4189
+ ...v,
4184
4190
  data: {
4185
- ...(g = e.builderContextSignal.content) == null ? void 0 : g.data,
4186
- ...T == null ? void 0 : T.data
4191
+ ...(V = e.builderContextSignal.content) == null ? void 0 : V.data,
4192
+ ...v == null ? void 0 : v.data
4187
4193
  },
4188
4194
  meta: {
4189
- ...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
4190
- ...T == null ? void 0 : T.meta,
4191
- 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)
4192
4198
  }
4193
4199
  };
4194
- e.setBuilderContextSignal((_) => ({
4195
- ..._,
4196
- content: w
4200
+ e.setBuilderContextSignal((B) => ({
4201
+ ...B,
4202
+ content: I
4197
4203
  }));
4198
4204
  }
4199
- function r() {
4205
+ function c() {
4200
4206
  return e.showContent ? {} : {
4201
4207
  hidden: !0,
4202
4208
  "aria-hidden": !0
4203
4209
  };
4204
4210
  }
4205
- const [o, a] = C(
4211
+ const [d, h] = k(
4206
4212
  () => e.contentWrapper || "div"
4207
4213
  );
4208
- function l(T) {
4214
+ function b(v) {
4209
4215
  return ft({
4210
4216
  model: e.model,
4211
4217
  trustedHosts: e.trustedHosts,
4212
4218
  callbacks: {
4213
- configureSdk: (w) => {
4214
- var E;
4215
- const { breakpoints: g, contentId: x } = w;
4216
- !x || x !== ((E = e.builderContextSignal.content) == null ? void 0 : E.id) || g && 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({
4217
4223
  meta: {
4218
- breakpoints: g
4224
+ breakpoints: V
4219
4225
  }
4220
4226
  });
4221
4227
  },
4222
- animation: (w) => {
4223
- Ge(w);
4228
+ animation: (I) => {
4229
+ Ge(I);
4224
4230
  },
4225
- contentUpdate: (w) => {
4226
- i(w);
4231
+ contentUpdate: (I) => {
4232
+ l(I);
4227
4233
  },
4228
- stateUpdate: (w) => {
4229
- n(w);
4234
+ stateUpdate: (I) => {
4235
+ a(I);
4230
4236
  }
4231
4237
  }
4232
- })(T);
4238
+ })(v);
4233
4239
  }
4234
- const [c, u] = C(() => ({})), [f, b] = C(() => ({})), [m, v] = C(() => !1);
4235
- function d(T) {
4236
- var w, g;
4240
+ const [u, x] = k(() => ({})), [f, m] = k(() => ({})), [y, g] = k(() => !1);
4241
+ function S(v) {
4242
+ var I, V;
4237
4243
  if (e.builderContextSignal.content) {
4238
- const x = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, E = (g = e.builderContextSignal.content) == null ? void 0 : g.id;
4244
+ const W = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, R = (V = e.builderContextSignal.content) == null ? void 0 : V.id;
4239
4245
  Te({
4240
4246
  apiHost: e.apiHost,
4241
4247
  type: "click",
4242
- canTrack: Z(e.canTrack),
4243
- contentId: E,
4248
+ canTrack: ee(e.canTrack),
4249
+ contentId: R,
4244
4250
  apiKey: e.apiKey,
4245
- variationId: x !== E ? x : void 0,
4246
- ...ki(T),
4247
- unique: !m
4251
+ variationId: W !== R ? W : void 0,
4252
+ ...ki(v),
4253
+ unique: !y
4248
4254
  });
4249
4255
  }
4250
- m || v(!0);
4256
+ y || g(!0);
4251
4257
  }
4252
- function h() {
4253
- var w, g, x;
4254
- const T = (x = (g = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : g.httpRequests) != null ? x : {};
4255
- Object.entries(T).forEach(
4256
- ([E, N]) => {
4257
- 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)
4258
4264
  return;
4259
- const F = typeof N == "object" && N["@type"] === "@builder.io/core:Request";
4260
- if (f[E] || c[E] && !L())
4265
+ const w = typeof A == "object" && A["@type"] === "@builder.io/core:Request";
4266
+ if (f[R] || u[R] && !_())
4261
4267
  return;
4262
- const _ = F ? N.request.url : N;
4263
- f[E] = !0;
4264
- const P = _.replace(
4268
+ const B = w ? A.request.url : A;
4269
+ f[R] = !0;
4270
+ const C = B.replace(
4265
4271
  /{{([^}]+)}}/g,
4266
- (I, B) => String(
4267
- G({
4268
- code: B,
4272
+ (L, j) => String(
4273
+ Y({
4274
+ code: j,
4269
4275
  context: e.context || {},
4270
4276
  localState: void 0,
4271
4277
  rootState: e.builderContextSignal.rootState,
4272
4278
  rootSetState: e.builderContextSignal.rootSetState
4273
4279
  })
4274
4280
  )
4275
- ), D = F ? {
4276
- url: P,
4277
- method: N.request.method,
4278
- headers: N.request.headers,
4279
- body: N.request.body
4281
+ ), $ = w ? {
4282
+ url: C,
4283
+ method: A.request.method,
4284
+ headers: A.request.headers,
4285
+ body: A.request.body
4280
4286
  } : {
4281
- url: P,
4287
+ url: C,
4282
4288
  method: "GET"
4283
4289
  };
4284
- Fe(JSON.stringify(D)), fetch(D.url, {
4285
- method: D.method,
4286
- headers: D.headers,
4287
- body: D.body
4288
- }).then((I) => I.json()).then((I) => {
4289
- n({
4290
- [E]: I
4291
- }), c[E] = !0;
4292
- }).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) => {
4293
4301
  console.error(
4294
4302
  "error fetching dynamic data",
4295
- JSON.stringify(N),
4296
- I
4303
+ JSON.stringify(A),
4304
+ L
4297
4305
  );
4298
4306
  }).finally(() => {
4299
- f[E] = !1;
4307
+ f[R] = !1;
4300
4308
  });
4301
4309
  }
4302
4310
  );
4303
4311
  }
4304
- function p() {
4305
- L() && window.dispatchEvent(
4312
+ function E() {
4313
+ _() && window.dispatchEvent(
4306
4314
  new CustomEvent(
4307
4315
  "builder:component:stateChange",
4308
4316
  {
@@ -4316,11 +4324,11 @@ function Vi(e) {
4316
4324
  )
4317
4325
  );
4318
4326
  }
4319
- const y = H(!1);
4320
- return y.current || (h(), p(), y.current = !0), V(() => {
4321
- var T, w, g, x, E;
4322
- if (M()) {
4323
- 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({
4324
4332
  ...e.locale ? {
4325
4333
  locale: e.locale
4326
4334
  } : {},
@@ -4330,89 +4338,97 @@ function Vi(e) {
4330
4338
  ...e.trustedHosts ? {
4331
4339
  trustedHosts: e.trustedHosts
4332
4340
  } : {},
4333
- modelName: (T = e.model) != null ? T : "",
4341
+ modelName: (v = e.model) != null ? v : "",
4334
4342
  apiKey: e.apiKey
4335
4343
  }), Object.values(
4336
4344
  e.builderContextSignal.componentInfos
4337
- ).forEach((P) => {
4338
- var D, I;
4339
- if (!((D = P.models) != null && D.length) || P.models.includes(e.model)) {
4340
- const B = dt(P);
4341
- (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, "*");
4342
4350
  }
4343
4351
  }), window.addEventListener(
4344
4352
  "builder:component:stateChangeListenerActivated",
4345
- p
4353
+ E
4346
4354
  ));
4347
- const N = e.builderContextSignal.content && Z(e.canTrack), F = mt({
4348
- 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}`,
4349
4357
  canTrack: !0
4350
- }), _ = (g = e.builderContextSignal.content) == null ? void 0 : g.testVariationId;
4351
- if (N && _ === F) {
4352
- 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;
4353
4361
  Te({
4354
4362
  apiHost: e.apiHost,
4355
4363
  type: "impression",
4356
4364
  canTrack: !0,
4357
- contentId: P,
4358
- apiKey: D,
4359
- variationId: F !== P ? F : void 0
4365
+ contentId: C,
4366
+ apiKey: $,
4367
+ variationId: w !== C ? w : void 0
4360
4368
  });
4361
4369
  }
4362
- if (se() && !L()) {
4363
- const P = new URL(location.href).searchParams, D = P.get("builder.preview"), I = P.get(
4364
- `builder.overrides.${D}`
4365
- ), B = P.get("apiKey") || P.get("builder.space");
4366
- (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({
4367
4375
  model: e.model,
4368
4376
  apiKey: e.apiKey,
4369
4377
  apiVersion: e.builderContextSignal.apiVersion,
4370
- ...D === "BUILDER_STUDIO" && ((E = e.context) != null && E.symbolId) ? {
4378
+ ...$ === "BUILDER_STUDIO" && ((R = e.context) != null && R.symbolId) ? {
4371
4379
  query: {
4372
4380
  id: e.context.symbolId
4373
4381
  }
4374
4382
  } : {}
4375
- }).then((W) => {
4376
- W && i(W);
4383
+ }).then((j) => {
4384
+ j && l(j);
4377
4385
  });
4378
4386
  }
4379
4387
  }
4380
- }, []), V(() => {
4381
- e.content && i(e.content);
4382
- }, [e.content]), V(() => {
4383
- p();
4384
- }, [e.builderContextSignal.rootState]), V(() => {
4385
- e.data && n(e.data);
4386
- }, [e.data]), V(() => {
4387
- e.locale && n({
4388
- locale: e.locale
4389
- });
4390
- }, [e.locale]), V(() => () => {
4391
- 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(
4392
4408
  "builder:component:stateChangeListenerActivated",
4393
- p
4409
+ E
4394
4410
  ));
4395
4411
  }, []), /* @__PURE__ */ s(pe.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || De() ? /* @__PURE__ */ s(
4396
- o,
4412
+ d,
4397
4413
  {
4398
4414
  ref: t,
4399
- onClick: (T) => d(T),
4400
- "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,
4401
4417
  "builder-model": e.model,
4402
4418
  className: Pi(
4403
- ((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)
4404
4420
  ),
4405
4421
  style: {
4406
4422
  display: !e.builderContextSignal.content && De() ? "none" : void 0
4407
4423
  },
4408
- ...r(),
4424
+ ...c(),
4409
4425
  ...e.contentWrapperProps,
4410
4426
  children: e.children
4411
4427
  }
4412
4428
  ) : null });
4413
4429
  }
4414
4430
  function Ai(e) {
4415
- const [t, n] = C(
4431
+ const [t, n] = k(
4416
4432
  () => `
4417
4433
  ${wi({
4418
4434
  cssCode: e.cssCode,
@@ -4425,7 +4441,7 @@ ${Ri(e.isNestedRender)}
4425
4441
  `.trim()
4426
4442
  );
4427
4443
  return /* @__PURE__ */ s(
4428
- ee,
4444
+ te,
4429
4445
  {
4430
4446
  id: "builderio-content",
4431
4447
  styles: t,
@@ -4462,39 +4478,39 @@ const Bi = ({
4462
4478
  meta: e == null ? void 0 : e.meta
4463
4479
  } : void 0;
4464
4480
  function Oe(e) {
4465
- var u, f, b, m, v, d, h, p, y;
4466
- const [t, n] = C(
4481
+ var d, h, b, u, x, f, m, y, g;
4482
+ const [t, n] = k(
4467
4483
  () => {
4468
- var S, k;
4484
+ var S, T;
4469
4485
  return vi({
4470
4486
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4471
4487
  variationId: (S = e.content) == null ? void 0 : S.testVariationId,
4472
4488
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4473
- contentId: (k = e.content) == null ? void 0 : k.id
4489
+ contentId: (T = e.content) == null ? void 0 : T.id
4474
4490
  });
4475
4491
  }
4476
4492
  );
4477
4493
  function i(S) {
4478
- l((k) => ({
4479
- ...k,
4494
+ l((T) => ({
4495
+ ...T,
4480
4496
  rootState: S
4481
4497
  }));
4482
4498
  }
4483
- const [r, o] = C(
4499
+ const [r, o] = k(
4484
4500
  () => [
4485
4501
  ...Ne(),
4486
4502
  ...e.customComponents || []
4487
4503
  ].reduce(
4488
- (S, { component: k, ...A }) => ({
4504
+ (S, { component: T, ...E }) => ({
4489
4505
  ...S,
4490
- [A.name]: {
4491
- component: k,
4492
- ...Ie(A)
4506
+ [E.name]: {
4507
+ component: T,
4508
+ ...Ie(E)
4493
4509
  }
4494
4510
  }),
4495
4511
  {}
4496
4512
  )
4497
- ), [a, l] = C(() => ({
4513
+ ), [a, l] = k(() => ({
4498
4514
  content: Ni({
4499
4515
  content: e.content,
4500
4516
  data: e.data
@@ -4514,9 +4530,9 @@ function Oe(e) {
4514
4530
  ...Ne(),
4515
4531
  ...e.customComponents || []
4516
4532
  ].reduce(
4517
- (S, { component: k, ...A }) => ({
4533
+ (S, { component: T, ...E }) => ({
4518
4534
  ...S,
4519
- [A.name]: Ie(A)
4535
+ [E.name]: Ie(E)
4520
4536
  }),
4521
4537
  {}
4522
4538
  ),
@@ -4525,19 +4541,19 @@ function Oe(e) {
4525
4541
  BlocksWrapperProps: e.blocksWrapperProps || {},
4526
4542
  nonce: e.nonce || "",
4527
4543
  model: e.model
4528
- })), c = H(!1);
4544
+ })), c = z(!1);
4529
4545
  if (!c.current) {
4530
- e.apiKey || J.error(
4546
+ e.apiKey || Q.error(
4531
4547
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4532
4548
  );
4533
- const S = (f = (u = a.content) == null ? void 0 : u.data) == null ? void 0 : f.jsCode;
4534
- S && G({
4549
+ const S = (h = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : h.jsCode;
4550
+ S && Y({
4535
4551
  code: S,
4536
4552
  context: e.context || {},
4537
4553
  localState: void 0,
4538
4554
  rootState: a.rootState,
4539
- rootSetState: (k) => {
4540
- Object.assign(a.rootState, k);
4555
+ rootSetState: (T) => {
4556
+ Object.assign(a.rootState, T);
4541
4557
  },
4542
4558
  isExpression: !1
4543
4559
  }), c.current = !0;
@@ -4548,7 +4564,7 @@ function Oe(e) {
4548
4564
  value: {
4549
4565
  registeredComponents: r
4550
4566
  },
4551
- children: /* @__PURE__ */ $(
4567
+ children: /* @__PURE__ */ D(
4552
4568
  Vi,
4553
4569
  {
4554
4570
  apiHost: e.apiHost,
@@ -4570,7 +4586,7 @@ function Oe(e) {
4570
4586
  setBuilderContextSignal: l,
4571
4587
  children: [
4572
4588
  e.isSsrAbTest ? /* @__PURE__ */ s(
4573
- j,
4589
+ J,
4574
4590
  {
4575
4591
  id: "builderio-variant-visibility",
4576
4592
  scriptStr: t,
@@ -4583,14 +4599,14 @@ function Oe(e) {
4583
4599
  nonce: e.nonce || "",
4584
4600
  isNestedRender: e.isNestedRender,
4585
4601
  contentId: (b = a.content) == null ? void 0 : b.id,
4586
- cssCode: (v = (m = a.content) == null ? void 0 : m.data) == null ? void 0 : v.cssCode,
4587
- customFonts: (h = (d = a.content) == null ? void 0 : d.data) == null ? void 0 : h.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
4588
4604
  }
4589
4605
  ),
4590
4606
  /* @__PURE__ */ s(
4591
- U,
4607
+ M,
4592
4608
  {
4593
- 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,
4594
4610
  context: a,
4595
4611
  registeredComponents: r,
4596
4612
  linkComponent: e.linkComponent
@@ -4604,9 +4620,9 @@ function Oe(e) {
4604
4620
  }
4605
4621
  function Wi(e) {
4606
4622
  var a;
4607
- const [t, n] = C(
4623
+ const [t, n] = k(
4608
4624
  () => hi({
4609
- canTrack: Z(e.canTrack),
4625
+ canTrack: ee(e.canTrack),
4610
4626
  content: e.content
4611
4627
  })
4612
4628
  );
@@ -4630,14 +4646,14 @@ function Wi(e) {
4630
4646
  testVariationId: (l = e.content) == null ? void 0 : l.id
4631
4647
  } : ht({
4632
4648
  item: e.content,
4633
- canTrack: Z(e.canTrack)
4649
+ canTrack: ee(e.canTrack)
4634
4650
  });
4635
4651
  }
4636
- return V(() => {
4637
- }, []), /* @__PURE__ */ $(R, { children: [
4638
- !e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ $(R, { children: [
4652
+ return N(() => {
4653
+ }, []), /* @__PURE__ */ D(P, { children: [
4654
+ !e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ D(P, { children: [
4639
4655
  /* @__PURE__ */ s(
4640
- j,
4656
+ J,
4641
4657
  {
4642
4658
  id: "builderio-init-variants-fns",
4643
4659
  scriptStr: yi(),
@@ -4645,7 +4661,7 @@ function Wi(e) {
4645
4661
  }
4646
4662
  ),
4647
4663
  rt.includes(O) ? /* @__PURE__ */ s(
4648
- j,
4664
+ J,
4649
4665
  {
4650
4666
  id: "builderio-init-personalization-variants-fns",
4651
4667
  nonce: e.nonce || "",
@@ -4653,9 +4669,9 @@ function Wi(e) {
4653
4669
  }
4654
4670
  ) : null
4655
4671
  ] }) : null,
4656
- t ? /* @__PURE__ */ $(R, { children: [
4672
+ t ? /* @__PURE__ */ D(P, { children: [
4657
4673
  /* @__PURE__ */ s(
4658
- ee,
4674
+ te,
4659
4675
  {
4660
4676
  id: "builderio-variants",
4661
4677
  styles: r(),
@@ -4663,7 +4679,7 @@ function Wi(e) {
4663
4679
  }
4664
4680
  ),
4665
4681
  /* @__PURE__ */ s(
4666
- j,
4682
+ J,
4667
4683
  {
4668
4684
  id: "builderio-variants-visibility",
4669
4685
  scriptStr: i(),
@@ -4742,11 +4758,11 @@ const $i = async ({
4742
4758
  }
4743
4759
  }
4744
4760
  }).catch((n) => {
4745
- J.error("Could not fetch symbol content: ", n);
4761
+ Q.error("Could not fetch symbol content: ", n);
4746
4762
  });
4747
4763
  };
4748
4764
  function Di(e) {
4749
- var u, f, b, m, v;
4765
+ var h, b, u, x, f;
4750
4766
  function t() {
4751
4767
  return "div";
4752
4768
  }
@@ -4754,35 +4770,38 @@ function Di(e) {
4754
4770
  return "div";
4755
4771
  }
4756
4772
  function i() {
4757
- var d, h;
4773
+ return Object.values(e.builderComponents);
4774
+ }
4775
+ function r() {
4776
+ var m, y;
4758
4777
  return [
4759
- e.attributes[z()],
4778
+ e.attributes[G()],
4760
4779
  "builder-symbol",
4761
- (d = e.symbol) != null && d.inline ? "builder-inline-symbol" : void 0,
4762
- (h = e.symbol) != null && h.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
4763
4782
  ].filter(Boolean).join(" ");
4764
4783
  }
4765
- const [r, o] = C(() => {
4766
- var d;
4767
- return (d = e.symbol) == null ? void 0 : d.content;
4768
- }), [a, l] = C(() => {
4769
- var d;
4770
- 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;
4771
4790
  });
4772
- function c() {
4773
- var d;
4774
- 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({
4775
4794
  symbol: e.symbol,
4776
4795
  builderContextValue: e.builderContext
4777
- }).then((h) => {
4778
- var p;
4779
- h && (o(h), 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));
4780
4799
  });
4781
4800
  }
4782
- return V(() => {
4783
- }, []), V(() => {
4784
- c();
4785
- }, [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(
4786
4805
  Wi,
4787
4806
  {
4788
4807
  nonce: e.builderContext.nonce,
@@ -4791,17 +4810,17 @@ function Di(e) {
4791
4810
  apiKey: e.builderContext.apiKey,
4792
4811
  context: {
4793
4812
  ...e.builderContext.context,
4794
- symbolId: (u = e.builderBlock) == null ? void 0 : u.id
4813
+ symbolId: (h = e.builderBlock) == null ? void 0 : h.id
4795
4814
  },
4796
- customComponents: Object.values(e.builderComponents),
4815
+ customComponents: i(),
4797
4816
  data: {
4798
- ...(f = e.symbol) == null ? void 0 : f.data,
4817
+ ...(b = e.symbol) == null ? void 0 : b.data,
4799
4818
  ...e.builderContext.localState,
4800
- ...(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
4801
4820
  },
4802
4821
  canTrack: e.builderContext.canTrack,
4803
- model: (v = (m = e.symbol) == null ? void 0 : m.model) != null ? v : "",
4804
- content: r,
4822
+ model: (f = (x = e.symbol) == null ? void 0 : x.model) != null ? f : "",
4823
+ content: o,
4805
4824
  linkComponent: e.builderLinkComponent,
4806
4825
  blocksWrapper: t(),
4807
4826
  contentWrapper: n()
@@ -4809,7 +4828,7 @@ function Di(e) {
4809
4828
  ) });
4810
4829
  }
4811
4830
  export {
4812
- U as Blocks,
4831
+ M as Blocks,
4813
4832
  pe as BuilderContext,
4814
4833
  pt as Button,
4815
4834
  un as Columns,