@builder.io/sdk-react 3.0.6 → 3.0.7

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 (66) hide show
  1. package/lib/browser/blocks-exports.cjs +16 -16
  2. package/lib/browser/blocks-exports.mjs +540 -515
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-df5e89e5.js → server-entry-20c79b90.js} +28 -27
  6. package/lib/browser/{server-entry-a1c64831.cjs → server-entry-762e29e0.cjs} +2 -2
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-fbfb71f4.cjs → accordion-071aa4f9.cjs} +1 -1
  10. package/lib/edge/{accordion-289f3464.js → accordion-22c2c037.js} +1 -1
  11. package/lib/edge/{blocks-582a7fd7.js → blocks-2989e629.js} +1305 -1280
  12. package/lib/edge/blocks-d3f37507.cjs +30 -0
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-9b112da6.js → button-2b5270c4.js} +2 -2
  16. package/lib/edge/{button-da357144.cjs → button-a2cc6565.cjs} +1 -1
  17. package/lib/edge/{columns-aba58dda.js → columns-21b9be25.js} +3 -3
  18. package/lib/edge/{columns-a211113f.cjs → columns-b7240242.cjs} +1 -1
  19. package/lib/edge/{content-variants-08f4371c.js → content-variants-88f4dc64.js} +10 -10
  20. package/lib/edge/{content-variants-4b5899b5.cjs → content-variants-fdd5ee50.cjs} +1 -1
  21. package/lib/edge/{form-e3a3afd4.cjs → form-77687883.cjs} +1 -1
  22. package/lib/edge/{form-4d4553c2.js → form-d29f3cc0.js} +3 -3
  23. package/lib/edge/{get-class-prop-name-38c2baca.js → get-class-prop-name-dbc5d99c.js} +1 -1
  24. package/lib/edge/{get-class-prop-name-fbe244e3.cjs → get-class-prop-name-f597545d.cjs} +1 -1
  25. package/lib/edge/{img-8d549af8.cjs → img-03f9002b.cjs} +1 -1
  26. package/lib/edge/{img-c49066fa.js → img-fed70928.js} +1 -1
  27. package/lib/edge/index.cjs +1 -1
  28. package/lib/edge/index.mjs +1 -1
  29. package/lib/edge/{input-e7301f4e.js → input-083c3c35.js} +1 -1
  30. package/lib/edge/{input-1ae3842f.cjs → input-1e548fd0.cjs} +1 -1
  31. package/lib/edge/{personalization-container-035be6ba.js → personalization-container-bcff3433.js} +4 -4
  32. package/lib/edge/{personalization-container-25cd8b5e.cjs → personalization-container-dde10a09.cjs} +1 -1
  33. package/lib/edge/{select-64fdaa79.cjs → select-21e33225.cjs} +1 -1
  34. package/lib/edge/{select-4187b229.js → select-9f22c2ba.js} +1 -1
  35. package/lib/edge/{server-entry-61fca4f7.js → server-entry-43a6f5be.js} +28 -27
  36. package/lib/edge/{server-entry-2ef4e66a.cjs → server-entry-ac35a5c8.cjs} +2 -2
  37. package/lib/edge/server-entry.cjs +1 -1
  38. package/lib/edge/server-entry.mjs +1 -1
  39. package/lib/edge/{slot-995f63c2.cjs → slot-a9f5d6c0.cjs} +1 -1
  40. package/lib/edge/{slot-d6c46a42.js → slot-ca171e8c.js} +3 -3
  41. package/lib/edge/{symbol-623dc717.js → symbol-8f6ff028.js} +2 -2
  42. package/lib/edge/{symbol-498daa97.cjs → symbol-a2015c7e.cjs} +1 -1
  43. package/lib/edge/{tabs-12ba41b1.js → tabs-6b67fca2.js} +3 -3
  44. package/lib/edge/{tabs-d39499cd.cjs → tabs-880c9088.cjs} +1 -1
  45. package/lib/node/blocks-exports.cjs +14 -14
  46. package/lib/node/blocks-exports.mjs +357 -332
  47. package/lib/node/index.cjs +1 -1
  48. package/lib/node/index.mjs +3 -3
  49. package/lib/node/init.cjs +1 -1
  50. package/lib/node/init.mjs +3 -3
  51. package/lib/node/{server-entry-98ebff74.cjs → server-entry-0b433783.cjs} +2 -2
  52. package/lib/node/{server-entry-27d9d31e.js → server-entry-6626257d.js} +28 -27
  53. package/lib/node/server-entry.cjs +1 -1
  54. package/lib/node/server-entry.mjs +1 -1
  55. package/lib/node/{setIvm-784fe19f.cjs → setIvm-49abbae6.cjs} +1 -1
  56. package/lib/node/{setIvm-2dde9074.js → setIvm-5cb298bf.js} +1 -1
  57. package/lib/node/setIvm.cjs +1 -1
  58. package/lib/node/setIvm.mjs +2 -2
  59. package/lib/node/{should-force-browser-runtime-in-node-cd6baa94.cjs → should-force-browser-runtime-in-node-11e8399e.cjs} +1 -1
  60. package/lib/node/{should-force-browser-runtime-in-node-80f081c8.js → should-force-browser-runtime-in-node-94f1a5b3.js} +1 -1
  61. package/package.json +1 -1
  62. package/types/constants/device-sizes.d.ts +3 -2
  63. package/types/constants/sdk-version.d.ts +1 -1
  64. package/types/types/builder-block.d.ts +0 -1
  65. package/types/types/builder-content.d.ts +1 -0
  66. package/lib/edge/blocks-459a090b.cjs +0 -30
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { TARGET as F, isBrowser as L, logger as oe, checkIsDefined as ie, isPreviewing as G, isEditing as W, userAttributesService as de, getDefaultCanTrack as _, logFetch as we, registerInsertMenu as Me, setupBrowserForEditing as ze, createRegisterComponentMessage as Ke, _track as me, fetchOneEntry as Ie, createEditorListener as Je, serializeIncludingFunctions as fe, handleABTestingSync as Ge } from "./server-entry-27d9d31e.js";
3
- import { setClientUserAttributes as ki } from "./server-entry-27d9d31e.js";
2
+ import { TARGET as F, isBrowser as L, logger as re, checkIsDefined as ae, isPreviewing as G, isEditing as W, userAttributesService as me, getDefaultCanTrack as q, logFetch as we, registerInsertMenu as je, setupBrowserForEditing as ze, createRegisterComponentMessage as Ke, _track as fe, fetchOneEntry as Ie, createEditorListener as Je, serializeIncludingFunctions as he, handleABTestingSync as Ge } from "./server-entry-6626257d.js";
3
+ import { setClientUserAttributes as ki } from "./server-entry-6626257d.js";
4
4
  import { jsx as s, Fragment as R, jsxs as V } from "react/jsx-runtime";
5
5
  import * as Qe from "react";
6
- import { createContext as Ee, useEffect as A, useState as E, useRef as D, useContext as he, createElement as Re } from "react";
7
- import { getFunctionArguments as Ye, flattenState as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Pe, fastClone as re } from "./setIvm-2dde9074.js";
8
- import { shouldForceBrowserRuntimeInNode as nt } from "./should-force-browser-runtime-in-node-80f081c8.js";
6
+ import { createContext as Ee, useEffect as A, useState as E, useRef as D, useContext as ge, createElement as Re } from "react";
7
+ import { getFunctionArguments as Ye, flattenState as Xe, runInNode as Ze, parseCode as et, getBuilderGlobals as tt, set as Pe, fastClone as le } from "./setIvm-5cb298bf.js";
8
+ import { shouldForceBrowserRuntimeInNode as nt } from "./should-force-browser-runtime-in-node-94f1a5b3.js";
9
9
  const it = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), at = (e) => typeof e == "string" && it.has(e.toLowerCase());
10
- function le(e) {
10
+ function se(e) {
11
11
  return /* @__PURE__ */ s(R, { children: at(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 }) }) });
12
12
  }
13
- const q = () => {
13
+ const H = () => {
14
14
  switch (F) {
15
15
  case "react":
16
16
  case "reactNative":
@@ -28,7 +28,7 @@ function ot(e) {
28
28
  function t() {
29
29
  return {
30
30
  ...e.attributes,
31
- [q()]: `${e.link ? "" : "builder-button"} ${e.attributes[q()] || ""}`,
31
+ [H()]: `${e.link ? "" : "builder-button"} ${e.attributes[H()] || ""}`,
32
32
  ...e.link ? {
33
33
  href: e.link,
34
34
  target: e.openLinkInNewTab ? "_blank" : void 0,
@@ -39,7 +39,7 @@ function ot(e) {
39
39
  };
40
40
  }
41
41
  return /* @__PURE__ */ s(
42
- le,
42
+ se,
43
43
  {
44
44
  attributes: t(),
45
45
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
@@ -48,7 +48,7 @@ function ot(e) {
48
48
  }
49
49
  );
50
50
  }
51
- const se = Ee({
51
+ const ce = Ee({
52
52
  content: null,
53
53
  context: {},
54
54
  localState: void 0,
@@ -123,7 +123,7 @@ function O({
123
123
  try {
124
124
  return lt(u);
125
125
  } catch (c) {
126
- oe.error("Failed code evaluation: " + c.message, {
126
+ re.error("Failed code evaluation: " + c.message, {
127
127
  code: e
128
128
  });
129
129
  return;
@@ -198,21 +198,21 @@ function bt(e, t) {
198
198
  var n, i;
199
199
  return (n = e.component) != null && n.options && ht((i = e.component) == null ? void 0 : i.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = gt(e.component.options, t != null ? t : "Default")), e;
200
200
  }
201
- function ae(e) {
201
+ function oe(e) {
202
202
  if (e === null || typeof e != "object")
203
203
  return e;
204
204
  if (Array.isArray(e))
205
- return e.map((n) => ae(n));
205
+ return e.map((n) => oe(n));
206
206
  if (e["@type"] === "@builder.io/sdk:Element")
207
207
  return e;
208
208
  const t = {};
209
209
  for (const n in e)
210
- n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ae(e[n]));
210
+ n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = oe(e[n]));
211
211
  return t;
212
212
  }
213
213
  const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), yt = (e) => {
214
214
  if (pt) {
215
- const t = re(e);
215
+ const t = le(e);
216
216
  return {
217
217
  ...t,
218
218
  properties: {
@@ -223,7 +223,7 @@ const pt = ["svelte", "vue", "angular", "qwik", "solid"].includes(F), yt = (e) =
223
223
  }
224
224
  };
225
225
  } else {
226
- const t = ae(ft(e, "children", "meta"));
226
+ const t = oe(ft(e, "children", "meta"));
227
227
  return {
228
228
  ...t,
229
229
  properties: {
@@ -287,7 +287,7 @@ function St(e, t, n = {}) {
287
287
  return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = c, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(u, h)), r;
288
288
  };
289
289
  }
290
- function U(e, ...t) {
290
+ function _(e, ...t) {
291
291
  const n = Object(e);
292
292
  for (let i = 1; i < arguments.length; i++) {
293
293
  const a = arguments[i];
@@ -331,8 +331,8 @@ function $e(e) {
331
331
  return;
332
332
  }
333
333
  Array.from(t).forEach((n) => {
334
- We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
335
- n.style.transition = `all ${e.duration}s ${Q(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
334
+ We(e, n), n.style.transition = "none", n.style.transitionDelay = "0", _(n.style, e.steps[0].styles), setTimeout(() => {
335
+ n.style.transition = `all ${e.duration}s ${Q(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
336
336
  n.style.transition = "", n.style.transitionDelay = "";
337
337
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
338
338
  });
@@ -349,21 +349,21 @@ function Tt(e) {
349
349
  let i = !1, a = !1;
350
350
  function r() {
351
351
  !i && l(n) ? (i = !0, a = !0, setTimeout(() => {
352
- U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
352
+ _(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", o), setTimeout(() => {
353
353
  a = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
354
354
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
355
- })) : e.repeat && i && !a && !l(n) && (i = !1, U(n.style, e.steps[0].styles));
355
+ })) : e.repeat && i && !a && !l(n) && (i = !1, _(n.style, e.steps[0].styles));
356
356
  }
357
357
  const o = St(r, 200, {
358
358
  leading: !1
359
359
  });
360
360
  function l(h) {
361
- const g = h.getBoundingClientRect(), f = window.innerHeight, d = (e.thresholdPercent || 0) / 100 * f;
362
- return g.bottom > d && g.top < f - d;
361
+ const g = h.getBoundingClientRect(), d = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * d;
362
+ return g.bottom > f && g.top < d - f;
363
363
  }
364
364
  const u = e.steps[0].styles;
365
365
  function c() {
366
- U(n.style, u);
366
+ _(n.style, u);
367
367
  }
368
368
  c(), setTimeout(() => {
369
369
  n.style.transition = `all ${e.duration}s ${Q(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
@@ -376,8 +376,8 @@ function Tt(e) {
376
376
  const De = (e) => Object.entries(e).map(([n, i]) => {
377
377
  if (typeof i == "string")
378
378
  return `${Q(n)}: ${i};`;
379
- }).filter(ie), wt = (e) => De(e).join(`
380
- `), M = ({
379
+ }).filter(ae), wt = (e) => De(e).join(`
380
+ `), U = ({
381
381
  mediaQuery: e,
382
382
  className: t,
383
383
  styles: n
@@ -487,8 +487,13 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
487
487
  builderContext: t
488
488
  } : {};
489
489
  }, Oe = {
490
+ xsmall: {
491
+ min: 0,
492
+ default: 160,
493
+ max: 320
494
+ },
490
495
  small: {
491
- min: 320,
496
+ min: 321,
492
497
  default: 321,
493
498
  max: 640
494
499
  },
@@ -502,34 +507,46 @@ const Le = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
502
507
  default: 991,
503
508
  max: 1200
504
509
  }
505
- }, ge = (e, t = Oe) => `@media (max-width: ${t[e].max}px)`, Ue = ({
506
- small: e,
507
- medium: t
508
- }) => {
509
- const n = re(Oe);
510
- if (!e || !t)
511
- return n;
512
- const i = Math.floor(e / 2);
513
- n.small = {
514
- max: e,
515
- min: i,
516
- default: i + 1
510
+ }, X = (e, t = Oe) => `@media (max-width: ${t[e].max}px)`, Ue = (e) => {
511
+ const t = le(Oe);
512
+ if (!e)
513
+ return t;
514
+ const {
515
+ xsmall: n,
516
+ small: i,
517
+ medium: a
518
+ } = e;
519
+ if (n) {
520
+ const u = Math.floor(n / 2);
521
+ t.xsmall = {
522
+ max: n,
523
+ min: u,
524
+ default: u + 1
525
+ };
526
+ }
527
+ if (!i || !a)
528
+ return t;
529
+ const r = n ? t.xsmall.max + 1 : Math.floor(i / 2);
530
+ t.small = {
531
+ max: i,
532
+ min: r,
533
+ default: r + 1
517
534
  };
518
- const a = n.small.max + 1;
519
- n.medium = {
520
- max: t,
521
- min: a,
522
- default: a + 1
535
+ const o = t.small.max + 1;
536
+ t.medium = {
537
+ max: a,
538
+ min: o,
539
+ default: o + 1
523
540
  };
524
- const r = n.medium.max + 1;
525
- return n.large = {
541
+ const l = t.medium.max + 1;
542
+ return t.large = {
526
543
  max: 2e3,
527
544
  // TODO: decide upper limit
528
- min: r,
529
- default: r + 1
530
- }, n;
545
+ min: l,
546
+ default: l + 1
547
+ }, t;
531
548
  };
532
- function H(e) {
549
+ function M(e) {
533
550
  return /* @__PURE__ */ s(
534
551
  "style",
535
552
  {
@@ -542,56 +559,64 @@ function H(e) {
542
559
  function Wt(e) {
543
560
  function t() {
544
561
  const i = e.block;
545
- return ie(i.hide) ? !i.hide : ie(i.show) ? i.show : !0;
562
+ return ae(i.hide) ? !i.hide : ae(i.show) ? i.show : !0;
546
563
  }
547
564
  function n() {
548
- var v, y, x;
565
+ var T, P, I, v, m;
549
566
  const i = e.block, a = i.responsiveStyles, r = e.context.content, o = Ue(
550
- ((v = r == null ? void 0 : r.meta) == null ? void 0 : v.breakpoints) || {}
551
- ), l = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, c = a == null ? void 0 : a.small, h = i.id;
552
- if (!h)
567
+ ((T = r == null ? void 0 : r.meta) == null ? void 0 : T.breakpoints) || {}
568
+ ), l = !!((I = (P = r == null ? void 0 : r.meta) == null ? void 0 : P.breakpoints) != null && I.xsmall), u = a == null ? void 0 : a.large, c = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, d = i.id;
569
+ if (!d)
553
570
  return "";
554
- const g = l ? M({
555
- className: h,
556
- styles: l
557
- }) : "", f = u ? M({
558
- className: h,
559
- styles: u,
560
- mediaQuery: ge(
571
+ const k = u ? U({
572
+ className: d,
573
+ styles: u
574
+ }) : "", f = c ? U({
575
+ className: d,
576
+ styles: c,
577
+ mediaQuery: X(
561
578
  "medium",
562
579
  o
563
580
  )
564
- }) : "", k = c ? M({
565
- className: h,
566
- styles: c,
567
- mediaQuery: ge(
581
+ }) : "", b = h ? U({
582
+ className: d,
583
+ styles: h,
584
+ mediaQuery: X(
568
585
  "small",
569
586
  o
570
587
  )
571
- }) : "", d = i.animations && i.animations.find((T) => T.trigger === "hover");
572
- let b = "";
573
- if (d) {
574
- const T = ((x = (y = d.steps) == null ? void 0 : y[1]) == null ? void 0 : x.styles) || {};
575
- b = M({
576
- className: `${h}:hover`,
588
+ }) : "", x = g && l ? U({
589
+ className: d,
590
+ styles: g,
591
+ mediaQuery: X(
592
+ "xsmall",
593
+ o
594
+ )
595
+ }) : "", y = i.animations && i.animations.find((p) => p.trigger === "hover");
596
+ let S = "";
597
+ if (y) {
598
+ const p = ((m = (v = y.steps) == null ? void 0 : v[1]) == null ? void 0 : m.styles) || {};
599
+ S = U({
600
+ className: `${d}:hover`,
577
601
  styles: {
578
- ...T,
579
- transition: `all ${d.duration}s ${Q(
580
- d.easing
602
+ ...p,
603
+ transition: `all ${y.duration}s ${Q(
604
+ y.easing
581
605
  )}`,
582
- transitionDelay: d.delay ? `${d.delay}s` : "0s"
606
+ transitionDelay: y.delay ? `${y.delay}s` : "0s"
583
607
  }
584
608
  }) || "";
585
609
  }
586
610
  return [
587
- g,
588
- f,
589
611
  k,
590
- b
612
+ f,
613
+ b,
614
+ x,
615
+ S
591
616
  ].join(" ");
592
617
  }
593
618
  return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
594
- H,
619
+ M,
595
620
  {
596
621
  id: "builderio-block",
597
622
  styles: n(),
@@ -640,7 +665,7 @@ function Lt({
640
665
  const Ot = (e) => ({
641
666
  href: e.href
642
667
  });
643
- function ce({
668
+ function ue({
644
669
  block: e,
645
670
  context: t
646
671
  }) {
@@ -653,7 +678,7 @@ function ce({
653
678
  block: e,
654
679
  context: t
655
680
  }),
656
- [q()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
681
+ [H()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
657
682
  };
658
683
  return Lt({
659
684
  properties: n,
@@ -663,10 +688,10 @@ function ce({
663
688
  }
664
689
  function Ut(e) {
665
690
  return /* @__PURE__ */ s(
666
- le,
691
+ se,
667
692
  {
668
693
  TagName: e.Wrapper,
669
- attributes: ce({
694
+ attributes: ue({
670
695
  block: e.block,
671
696
  context: e.context
672
697
  }),
@@ -689,7 +714,7 @@ function _t(e) {
689
714
  function qt(e) {
690
715
  function t() {
691
716
  return e.includeBlockProps ? {
692
- ...ce({
717
+ ...ue({
693
718
  block: e.block,
694
719
  context: e.context
695
720
  }),
@@ -729,7 +754,7 @@ const Ht = ({
729
754
  * component itself directly. Otherwise, they are provided to the wrapper element.
730
755
  */
731
756
  ...a ? {
732
- attributes: ce({
757
+ attributes: ue({
733
758
  block: t,
734
759
  context: o
735
760
  })
@@ -776,7 +801,7 @@ function be(e) {
776
801
  }
777
802
  function pe(e) {
778
803
  const [t, n] = E(() => e.repeatContext);
779
- return /* @__PURE__ */ s(se.Provider, { value: t, children: /* @__PURE__ */ s(
804
+ return /* @__PURE__ */ s(ce.Provider, { value: t, children: /* @__PURE__ */ s(
780
805
  Y,
781
806
  {
782
807
  block: e.block,
@@ -787,7 +812,7 @@ function pe(e) {
787
812
  ) });
788
813
  }
789
814
  function Y(e) {
790
- var h, g, f, k;
815
+ var h, g, d, k;
791
816
  function t() {
792
817
  return Pt({
793
818
  block: e.block,
@@ -802,14 +827,14 @@ function Y(e) {
802
827
  var b;
803
828
  if (n.value && !n.update && !G())
804
829
  return n.value;
805
- const d = (b = e.block.repeat) != null && b.collection ? e.block : xt({
830
+ const f = (b = e.block.repeat) != null && b.collection ? e.block : xt({
806
831
  block: e.block,
807
832
  localState: e.context.localState,
808
833
  rootState: e.context.rootState,
809
834
  rootSetState: e.context.rootSetState,
810
835
  context: e.context.context
811
836
  });
812
- return n.value = d, n.update = !1, d;
837
+ return n.value = f, n.update = !1, f;
813
838
  }
814
839
  function r() {
815
840
  return Rt({
@@ -823,20 +848,20 @@ function Y(e) {
823
848
  return e.block.tagName === "a" || ((b = a().properties) == null ? void 0 : b.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
824
849
  }
825
850
  function l() {
826
- var v, y;
827
- if ((v = e.block.repeat) != null && v.collection)
851
+ var x, y;
852
+ if ((x = e.block.repeat) != null && x.collection)
828
853
  return !!((y = t == null ? void 0 : t()) != null && y.length);
829
- const d = "hide" in a() ? a().hide : !1;
830
- return ("show" in a() ? a().show : !0) && !d;
854
+ const f = "hide" in a() ? a().hide : !1;
855
+ return ("show" in a() ? a().show : !0) && !f;
831
856
  }
832
857
  function u() {
833
- var b, v;
834
- return !((b = r == null ? void 0 : r()) != null && b.component) && !t() ? (v = a().children) != null ? v : [] : [];
858
+ var b, x;
859
+ return !((b = r == null ? void 0 : r()) != null && b.component) && !t() ? (x = a().children) != null ? x : [] : [];
835
860
  }
836
861
  function c() {
837
- var d, b, v, y;
862
+ var f, b, x, y;
838
863
  return {
839
- blockChildren: (d = a().children) != null ? d : [],
864
+ blockChildren: (f = a().children) != null ? f : [],
840
865
  componentRef: (b = r == null ? void 0 : r()) == null ? void 0 : b.component,
841
866
  componentOptions: {
842
867
  ...dt(a(), e.context),
@@ -853,27 +878,27 @@ function Y(e) {
853
878
  linkComponent: e.linkComponent,
854
879
  registeredComponents: e.registeredComponents,
855
880
  builderBlock: a(),
856
- includeBlockProps: ((v = r == null ? void 0 : r()) == null ? void 0 : v.noWrap) === !0,
881
+ includeBlockProps: ((x = r == null ? void 0 : r()) == null ? void 0 : x.noWrap) === !0,
857
882
  isInteractive: !((y = r == null ? void 0 : r()) != null && y.isRSC && F === "rsc")
858
883
  };
859
884
  }
860
885
  return A(() => {
861
- const d = a().id, b = a().animations;
862
- b && d && kt(
863
- b.map((v) => ({
864
- ...v,
865
- elementId: d
886
+ const f = a().id, b = a().animations;
887
+ b && f && kt(
888
+ b.map((x) => ({
889
+ ...x,
890
+ elementId: f
866
891
  }))
867
892
  );
868
893
  }, []), A(() => {
869
894
  n.update = !0;
870
895
  }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ V(R, { children: [
871
896
  /* @__PURE__ */ s(Wt, { block: a(), context: e.context }),
872
- (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (k = t()) == null ? void 0 : k.map((d, b) => /* @__PURE__ */ s(
897
+ (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (k = t()) == null ? void 0 : k.map((f, b) => /* @__PURE__ */ s(
873
898
  pe,
874
899
  {
875
- repeatContext: d.context,
876
- block: d.block,
900
+ repeatContext: f.context,
901
+ block: f.block,
877
902
  registeredComponents: e.registeredComponents,
878
903
  linkComponent: e.linkComponent
879
904
  },
@@ -891,11 +916,11 @@ function Y(e) {
891
916
  includeBlockProps: c().includeBlockProps,
892
917
  isInteractive: c().isInteractive
893
918
  }
894
- ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (f = t()) == null ? void 0 : f.map((d, b) => /* @__PURE__ */ s(
919
+ ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (d = t()) == null ? void 0 : d.map((f, b) => /* @__PURE__ */ s(
895
920
  pe,
896
921
  {
897
- repeatContext: d.context,
898
- block: d.block,
922
+ repeatContext: f.context,
923
+ block: f.block,
899
924
  registeredComponents: e.registeredComponents,
900
925
  linkComponent: e.linkComponent
901
926
  },
@@ -921,22 +946,22 @@ function Y(e) {
921
946
  isInteractive: c().isInteractive
922
947
  }
923
948
  ),
924
- (g = u()) == null ? void 0 : g.map((d) => /* @__PURE__ */ s(
949
+ (g = u()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
925
950
  Y,
926
951
  {
927
- block: d,
952
+ block: f,
928
953
  registeredComponents: e.registeredComponents,
929
954
  linkComponent: e.linkComponent,
930
955
  context: e.context
931
956
  },
932
- d.id
957
+ f.id
933
958
  ))
934
959
  ]
935
960
  }
936
961
  ) })
937
962
  ] }) : null });
938
963
  }
939
- function jt(e) {
964
+ function Mt(e) {
940
965
  const t = D(null);
941
966
  function n() {
942
967
  var o;
@@ -1004,9 +1029,9 @@ function jt(e) {
1004
1029
  }
1005
1030
  function $(e) {
1006
1031
  var i, a, r;
1007
- const t = he(se), n = he(Ve);
1032
+ const t = ge(ce), n = ge(Ve);
1008
1033
  return /* @__PURE__ */ s(
1009
- jt,
1034
+ Mt,
1010
1035
  {
1011
1036
  blocks: e.blocks,
1012
1037
  parent: e.parent,
@@ -1028,9 +1053,9 @@ function $(e) {
1028
1053
  }
1029
1054
  );
1030
1055
  }
1031
- const Mt = (e) => `builder-columns ${e}-breakpoints`;
1056
+ const jt = (e) => `builder-columns ${e}-breakpoints`;
1032
1057
  function zt(e) {
1033
- var b, v;
1058
+ var b, x;
1034
1059
  function t() {
1035
1060
  return typeof e.space == "number" ? e.space || 0 : 20;
1036
1061
  }
@@ -1044,24 +1069,24 @@ function zt(e) {
1044
1069
  return y.link ? e.builderLinkComponent || "a" : "div";
1045
1070
  }
1046
1071
  function r(y) {
1047
- var x;
1048
- return ((x = n()[y]) == null ? void 0 : x.width) || 100 / n().length;
1072
+ var S;
1073
+ return ((S = n()[y]) == null ? void 0 : S.width) || 100 / n().length;
1049
1074
  }
1050
1075
  function o(y) {
1051
- const x = r(y), T = t() * (n().length - 1) * (x / 100);
1052
- return `calc(${x}% - ${T}px)`;
1076
+ const S = r(y), T = t() * (n().length - 1) * (S / 100);
1077
+ return `calc(${S}% - ${T}px)`;
1053
1078
  }
1054
1079
  function l({
1055
1080
  stackedStyle: y,
1056
- desktopStyle: x
1081
+ desktopStyle: S
1057
1082
  }) {
1058
- return i() === "tablet" ? y : x;
1083
+ return i() === "tablet" ? y : S;
1059
1084
  }
1060
1085
  function u({
1061
1086
  stackedStyle: y,
1062
- desktopStyle: x
1087
+ desktopStyle: S
1063
1088
  }) {
1064
- return i() === "never" ? x : y;
1089
+ return i() === "never" ? S : y;
1065
1090
  }
1066
1091
  function c() {
1067
1092
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -1076,7 +1101,7 @@ function zt(e) {
1076
1101
  };
1077
1102
  }
1078
1103
  function g(y) {
1079
- const x = y === 0 ? 0 : t(), T = o(y), P = `${x}px`, I = "100%", S = 0;
1104
+ const S = y === 0 ? 0 : t(), T = o(y), P = `${S}px`, I = "100%", v = 0;
1080
1105
  return {
1081
1106
  ...{
1082
1107
  display: "flex",
@@ -1090,7 +1115,7 @@ function zt(e) {
1090
1115
  desktopStyle: T
1091
1116
  }),
1092
1117
  "--column-margin-left-mobile": u({
1093
- stackedStyle: S,
1118
+ stackedStyle: v,
1094
1119
  desktopStyle: P
1095
1120
  }),
1096
1121
  "--column-width-tablet": l({
@@ -1098,12 +1123,12 @@ function zt(e) {
1098
1123
  desktopStyle: T
1099
1124
  }),
1100
1125
  "--column-margin-left-tablet": l({
1101
- stackedStyle: S,
1126
+ stackedStyle: v,
1102
1127
  desktopStyle: P
1103
1128
  })
1104
1129
  };
1105
1130
  }
1106
- function f(y) {
1131
+ function d(y) {
1107
1132
  var T, P;
1108
1133
  return Ue(
1109
1134
  ((P = (T = e.builderContext.content) == null ? void 0 : T.meta) == null ? void 0 : P.breakpoints) || {}
@@ -1112,7 +1137,7 @@ function zt(e) {
1112
1137
  function k() {
1113
1138
  const y = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1114
1139
  return `
1115
- @media (max-width: ${f("medium")}px) {
1140
+ @media (max-width: ${d("medium")}px) {
1116
1141
  .${e.builderBlock.id}-breakpoints {
1117
1142
  flex-direction: var(--flex-dir-tablet);
1118
1143
  align-items: stretch;
@@ -1124,7 +1149,7 @@ function zt(e) {
1124
1149
  }
1125
1150
  }
1126
1151
 
1127
- @media (max-width: ${f("small")}px) {
1152
+ @media (max-width: ${d("small")}px) {
1128
1153
  .${e.builderBlock.id}-breakpoints {
1129
1154
  flex-direction: var(--flex-dir);
1130
1155
  align-items: stretch;
@@ -1137,40 +1162,40 @@ function zt(e) {
1137
1162
  },
1138
1163
  `;
1139
1164
  }
1140
- function d(y, x) {
1165
+ function f(y, S) {
1141
1166
  return {
1142
1167
  ...y.link ? {
1143
1168
  href: y.link
1144
1169
  } : {},
1145
- [q()]: "builder-column",
1146
- style: Fe(g(x))
1170
+ [H()]: "builder-column",
1171
+ style: Fe(g(S))
1147
1172
  };
1148
1173
  }
1149
1174
  return /* @__PURE__ */ V(R, { children: [
1150
1175
  /* @__PURE__ */ V(
1151
1176
  "div",
1152
1177
  {
1153
- className: Mt((b = e.builderBlock) == null ? void 0 : b.id) + " div-a6f3faac",
1178
+ className: jt((b = e.builderBlock) == null ? void 0 : b.id) + " div-a6f3faac",
1154
1179
  style: h(),
1155
1180
  children: [
1156
1181
  /* @__PURE__ */ s(
1157
- H,
1182
+ M,
1158
1183
  {
1159
1184
  id: "builderio-columns",
1160
1185
  styles: k(),
1161
1186
  nonce: e.builderContext.nonce
1162
1187
  }
1163
1188
  ),
1164
- (v = e.columns) == null ? void 0 : v.map((y, x) => /* @__PURE__ */ s(
1165
- le,
1189
+ (x = e.columns) == null ? void 0 : x.map((y, S) => /* @__PURE__ */ s(
1190
+ se,
1166
1191
  {
1167
1192
  TagName: a(y),
1168
1193
  actionAttributes: {},
1169
- attributes: d(y, x),
1194
+ attributes: f(y, S),
1170
1195
  children: /* @__PURE__ */ s(
1171
1196
  $,
1172
1197
  {
1173
- path: `columns.${x}.blocks`,
1198
+ path: `columns.${S}.blocks`,
1174
1199
  parent: e.builderBlock.id,
1175
1200
  context: e.builderContext,
1176
1201
  registeredComponents: e.builderComponents,
@@ -1182,7 +1207,7 @@ function zt(e) {
1182
1207
  }
1183
1208
  )
1184
1209
  },
1185
- x
1210
+ S
1186
1211
  ))
1187
1212
  ]
1188
1213
  }
@@ -1215,7 +1240,7 @@ function Gt(e, t) {
1215
1240
  }
1216
1241
  return null;
1217
1242
  }
1218
- function X(e) {
1243
+ function Z(e) {
1219
1244
  if (!e)
1220
1245
  return e;
1221
1246
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
@@ -1229,19 +1254,19 @@ function X(e) {
1229
1254
  function Qt(e) {
1230
1255
  var a, r, o, l, u, c;
1231
1256
  function t() {
1232
- var f;
1257
+ var d;
1233
1258
  const g = e.image || e.src;
1234
1259
  if (!g || // We can auto add srcset for cdn.builder.io and shopify
1235
1260
  // images, otherwise you can supply this prop manually
1236
1261
  !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1237
1262
  return e.srcset;
1238
1263
  if (!e.noWebp) {
1239
- if (e.srcset && ((f = e.image) != null && f.includes("builder.io/api/v1/image"))) {
1264
+ if (e.srcset && ((d = e.image) != null && d.includes("builder.io/api/v1/image"))) {
1240
1265
  if (!e.srcset.includes(e.image.split("?")[0]))
1241
- return console.debug("Removed given srcset"), X(g);
1266
+ return console.debug("Removed given srcset"), Z(g);
1242
1267
  } else if (e.image && !e.srcset)
1243
- return X(g);
1244
- return X(g);
1268
+ return Z(g);
1269
+ return Z(g);
1245
1270
  }
1246
1271
  }
1247
1272
  function n() {
@@ -1333,7 +1358,7 @@ function Yt(e) {
1333
1358
  }
1334
1359
  );
1335
1360
  }
1336
- const Z = {
1361
+ const ee = {
1337
1362
  "@type": "@builder.io/sdk:Element",
1338
1363
  layerName: "Accordion item title",
1339
1364
  responsiveStyles: {
@@ -1362,7 +1387,7 @@ const Z = {
1362
1387
  }
1363
1388
  }
1364
1389
  }]
1365
- }, ee = {
1390
+ }, te = {
1366
1391
  "@type": "@builder.io/sdk:Element",
1367
1392
  layerName: "Accordion item detail",
1368
1393
  responsiveStyles: {
@@ -1410,19 +1435,19 @@ const Z = {
1410
1435
  name: "title",
1411
1436
  type: "uiBlocks",
1412
1437
  hideFromUI: !0,
1413
- defaultValue: [Z]
1438
+ defaultValue: [ee]
1414
1439
  }, {
1415
1440
  name: "detail",
1416
1441
  type: "uiBlocks",
1417
1442
  hideFromUI: !0,
1418
- defaultValue: [ee]
1443
+ defaultValue: [te]
1419
1444
  }],
1420
1445
  defaultValue: [{
1421
- title: [Z],
1422
- detail: [ee]
1446
+ title: [ee],
1447
+ detail: [te]
1423
1448
  }, {
1424
- title: [Z],
1425
- detail: [ee]
1449
+ title: [ee],
1450
+ detail: [te]
1426
1451
  }],
1427
1452
  showIf: (e) => !e.get("useChildrenForItems")
1428
1453
  }, {
@@ -1486,57 +1511,57 @@ function Zt(e) {
1486
1511
  cursor: "pointer"
1487
1512
  };
1488
1513
  return Object.fromEntries(
1489
- Object.entries(k).filter(([d, b]) => b !== void 0)
1514
+ Object.entries(k).filter(([f, b]) => b !== void 0)
1490
1515
  );
1491
1516
  }
1492
- function o(f) {
1493
- return `builder-accordion-title builder-accordion-title-${t.includes(f) ? "open" : "closed"}`;
1517
+ function o(d) {
1518
+ return `builder-accordion-title builder-accordion-title-${t.includes(d) ? "open" : "closed"}`;
1494
1519
  }
1495
- function l(f) {
1496
- return `builder-accordion-detail builder-accordion-detail-${t.includes(f) ? "open" : "closed"}`;
1520
+ function l(d) {
1521
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(d) ? "open" : "closed"}`;
1497
1522
  }
1498
1523
  function u() {
1499
- let f = null;
1524
+ let d = null;
1500
1525
  if (e.grid && t.length && document) {
1501
- const d = t[0];
1502
- let v = document.querySelector(
1503
- `.builder-accordion-title[data-index="${d}"]`
1526
+ const f = t[0];
1527
+ let x = document.querySelector(
1528
+ `.builder-accordion-title[data-index="${f}"]`
1504
1529
  );
1505
- if (f = d, v) {
1506
- let y = v.getBoundingClientRect();
1507
- for (; v = v && v.nextElementSibling; )
1508
- if (v) {
1509
- if (v.classList.contains("builder-accordion-detail"))
1530
+ if (d = f, x) {
1531
+ let y = x.getBoundingClientRect();
1532
+ for (; x = x && x.nextElementSibling; )
1533
+ if (x) {
1534
+ if (x.classList.contains("builder-accordion-detail"))
1510
1535
  continue;
1511
- const x = v.getBoundingClientRect();
1512
- if (x.left > y.left) {
1536
+ const S = x.getBoundingClientRect();
1537
+ if (S.left > y.left) {
1513
1538
  const T = parseInt(
1514
- v.getAttribute("data-index") || "",
1539
+ x.getAttribute("data-index") || "",
1515
1540
  10
1516
1541
  );
1517
- isNaN(T) || (y = x, f = T);
1542
+ isNaN(T) || (y = S, d = T);
1518
1543
  } else
1519
1544
  break;
1520
1545
  }
1521
1546
  }
1522
1547
  }
1523
- return typeof f == "number" && (f = f + 1), f;
1548
+ return typeof d == "number" && (d = d + 1), d;
1524
1549
  }
1525
1550
  function c() {
1526
- const f = {
1551
+ const d = {
1527
1552
  order: typeof u() == "number" ? u() : void 0,
1528
1553
  ...e.grid && {
1529
1554
  width: "100%"
1530
1555
  }
1531
1556
  };
1532
1557
  return Object.fromEntries(
1533
- Object.entries(f).filter(([k, d]) => d !== void 0)
1558
+ Object.entries(d).filter(([k, f]) => f !== void 0)
1534
1559
  );
1535
1560
  }
1536
- function h(f) {
1537
- t.includes(f) ? n(i() ? [] : t.filter((k) => k !== f)) : n(i() ? [f] : t.concat(f));
1561
+ function h(d) {
1562
+ t.includes(d) ? n(i() ? [] : t.filter((k) => k !== d)) : n(i() ? [d] : t.concat(d));
1538
1563
  }
1539
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((f, k) => /* @__PURE__ */ V(Qe.Fragment, { children: [
1564
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((d, k) => /* @__PURE__ */ V(Qe.Fragment, { children: [
1540
1565
  /* @__PURE__ */ s(
1541
1566
  "div",
1542
1567
  {
@@ -1549,11 +1574,11 @@ function Zt(e) {
1549
1574
  }
1550
1575
  },
1551
1576
  "data-index": k,
1552
- onClick: (d) => h(k),
1577
+ onClick: (f) => h(k),
1553
1578
  children: /* @__PURE__ */ s(
1554
1579
  $,
1555
1580
  {
1556
- blocks: f.title,
1581
+ blocks: d.title,
1557
1582
  path: `items.${k}.title`,
1558
1583
  parent: e.builderBlock.id,
1559
1584
  context: e.builderContext,
@@ -1571,7 +1596,7 @@ function Zt(e) {
1571
1596
  children: /* @__PURE__ */ s(
1572
1597
  $,
1573
1598
  {
1574
- blocks: f.detail,
1599
+ blocks: d.detail,
1575
1600
  path: `items.${k}.detail`,
1576
1601
  parent: e.builderBlock.id,
1577
1602
  context: e.builderContext,
@@ -1832,7 +1857,7 @@ const en = {
1832
1857
  hidden: !0,
1833
1858
  canHaveChildren: !0,
1834
1859
  noWrap: !0
1835
- }, ue = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], an = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], on = {
1860
+ }, de = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], an = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], on = {
1836
1861
  name: "Image",
1837
1862
  static: !0,
1838
1863
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -1847,7 +1872,7 @@ const en = {
1847
1872
  name: "image",
1848
1873
  type: "file",
1849
1874
  bubble: !0,
1850
- allowedFileTypes: ue,
1875
+ allowedFileTypes: de,
1851
1876
  required: !0,
1852
1877
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1853
1878
  onChange: (e) => {
@@ -1858,8 +1883,8 @@ const en = {
1858
1883
  let g = !1;
1859
1884
  h.onload = () => {
1860
1885
  g = !0, u(h);
1861
- }, h.addEventListener("error", (f) => {
1862
- console.warn("Image load failed", f.error), c(f.error);
1886
+ }, h.addEventListener("error", (d) => {
1887
+ console.warn("Image load failed", d.error), c(d.error);
1863
1888
  }), h.src = o, setTimeout(() => {
1864
1889
  g || c(new Error("Image load timed out"));
1865
1890
  }, l);
@@ -1995,42 +2020,42 @@ function ln(e, t, n, i) {
1995
2020
  }
1996
2021
  function o(c, h) {
1997
2022
  return (() => {
1998
- const f = h.property, k = h.operator;
1999
- let d = h.value;
2000
- if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (d = h.value.slice(0, -1)), !(f && k))
2023
+ const d = h.property, k = h.operator;
2024
+ let f = h.value;
2025
+ if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(d && k))
2001
2026
  return !0;
2002
- if (Array.isArray(d))
2003
- return k === "isNot" ? d.every((v) => o(c, {
2004
- property: f,
2027
+ if (Array.isArray(f))
2028
+ return k === "isNot" ? f.every((x) => o(c, {
2029
+ property: d,
2005
2030
  operator: k,
2006
- value: v
2007
- })) : !!d.find((v) => o(c, {
2008
- property: f,
2031
+ value: x
2032
+ })) : !!f.find((x) => o(c, {
2033
+ property: d,
2009
2034
  operator: k,
2010
- value: v
2035
+ value: x
2011
2036
  }));
2012
- const b = c[f];
2037
+ const b = c[d];
2013
2038
  if (Array.isArray(b))
2014
- return b.includes(d);
2039
+ return b.includes(f);
2015
2040
  switch (k) {
2016
2041
  case "is":
2017
- return b === d;
2042
+ return b === f;
2018
2043
  case "isNot":
2019
- return b !== d;
2044
+ return b !== f;
2020
2045
  case "contains":
2021
- return (a(b) || Array.isArray(b)) && b.includes(String(d));
2046
+ return (a(b) || Array.isArray(b)) && b.includes(String(f));
2022
2047
  case "startsWith":
2023
- return a(b) && b.startsWith(String(d));
2048
+ return a(b) && b.startsWith(String(f));
2024
2049
  case "endsWith":
2025
- return a(b) && b.endsWith(String(d));
2050
+ return a(b) && b.endsWith(String(f));
2026
2051
  case "greaterThan":
2027
- return r(b) && r(d) && b > d;
2052
+ return r(b) && r(f) && b > f;
2028
2053
  case "lessThan":
2029
- return r(b) && r(d) && b < d;
2054
+ return r(b) && r(f) && b < f;
2030
2055
  case "greaterThanOrEqualTo":
2031
- return r(b) && r(d) && b >= d;
2056
+ return r(b) && r(f) && b >= f;
2032
2057
  case "lessThanOrEqualTo":
2033
- return r(b) && r(d) && b <= d;
2058
+ return r(b) && r(f) && b <= f;
2034
2059
  default:
2035
2060
  return !1;
2036
2061
  }
@@ -2213,29 +2238,29 @@ const mn = (e, t, n) => `
2213
2238
  })();
2214
2239
  `;
2215
2240
  function fn(e) {
2216
- var b, v, y, x, T, P, I;
2241
+ var b, x, y, S, T, P, I;
2217
2242
  const t = D(null), [n, i] = E(
2218
- () => de.getUserAttributes()
2243
+ () => me.getUserAttributes()
2219
2244
  ), [a, r] = E(
2220
2245
  () => {
2221
- var S, m, p;
2246
+ var v, m, p;
2222
2247
  return mn(
2223
2248
  e.variants,
2224
- ((S = e.builderBlock) == null ? void 0 : S.id) || "none",
2249
+ ((v = e.builderBlock) == null ? void 0 : v.id) || "none",
2225
2250
  (p = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : p.locale
2226
2251
  );
2227
2252
  }
2228
2253
  ), [o, l] = E(() => []), [u, c] = E(
2229
2254
  () => {
2230
- var S;
2255
+ var v;
2231
2256
  return un(
2232
2257
  e.variants,
2233
- _((S = e.builderContext) == null ? void 0 : S.canTrack)
2258
+ q((v = e.builderContext) == null ? void 0 : v.canTrack)
2234
2259
  );
2235
2260
  }
2236
2261
  ), [h, g] = E(() => !1);
2237
- function f() {
2238
- return (e.variants || []).filter((S) => {
2262
+ function d() {
2263
+ return (e.variants || []).filter((v) => {
2239
2264
  var m, p, C, w;
2240
2265
  return ln(
2241
2266
  {
@@ -2244,25 +2269,25 @@ function fn(e) {
2244
2269
  } : {},
2245
2270
  ...n
2246
2271
  },
2247
- S.query,
2248
- S.startDate,
2249
- S.endDate
2272
+ v.query,
2273
+ v.startDate,
2274
+ v.endDate
2250
2275
  );
2251
2276
  });
2252
2277
  }
2253
2278
  function k() {
2254
- var S;
2279
+ var v;
2255
2280
  return dn({
2256
2281
  variants: e.variants,
2257
- fallbackBlocks: (S = e.builderBlock) == null ? void 0 : S.children,
2282
+ fallbackBlocks: (v = e.builderBlock) == null ? void 0 : v.children,
2258
2283
  isHydrated: h,
2259
- filteredVariants: f(),
2284
+ filteredVariants: d(),
2260
2285
  previewingIndex: e.previewingIndex
2261
2286
  });
2262
2287
  }
2263
- function d() {
2288
+ function f() {
2264
2289
  return (e.variants || []).map(
2265
- (S, m) => {
2290
+ (v, m) => {
2266
2291
  var p;
2267
2292
  return `[data-variant-id="${(p = e.builderBlock) == null ? void 0 : p.id}-${m}"] { display: none; } `;
2268
2293
  }
@@ -2271,13 +2296,13 @@ function fn(e) {
2271
2296
  return A(() => {
2272
2297
  var m;
2273
2298
  g(!0);
2274
- const S = de.subscribeOnUserAttributesChange(
2299
+ const v = me.subscribeOnUserAttributesChange(
2275
2300
  (p) => {
2276
2301
  i(p);
2277
2302
  }
2278
2303
  );
2279
2304
  if (!(W() || G())) {
2280
- const p = f()[0];
2305
+ const p = d()[0];
2281
2306
  t.current && (t.current.dispatchEvent(
2282
2307
  new CustomEvent("builder.variantLoaded", {
2283
2308
  detail: {
@@ -2301,9 +2326,9 @@ function fn(e) {
2301
2326
  });
2302
2327
  }).observe(t.current));
2303
2328
  }
2304
- o.push(S);
2329
+ o.push(v);
2305
2330
  }, []), A(() => () => {
2306
- o.forEach((S) => S());
2331
+ o.forEach((v) => v());
2307
2332
  }, []), /* @__PURE__ */ V(
2308
2333
  "div",
2309
2334
  {
@@ -2312,7 +2337,7 @@ function fn(e) {
2312
2337
  className: `builder-personalization-container ${((b = e.attributes) == null ? void 0 : b.className) || ""}`,
2313
2338
  children: [
2314
2339
  u ? /* @__PURE__ */ V(R, { children: [
2315
- (v = e.variants) == null ? void 0 : v.map((S, m) => {
2340
+ (x = e.variants) == null ? void 0 : x.map((v, m) => {
2316
2341
  var p, C;
2317
2342
  return /* @__PURE__ */ s(
2318
2343
  "template",
@@ -2321,7 +2346,7 @@ function fn(e) {
2321
2346
  children: /* @__PURE__ */ s(
2322
2347
  $,
2323
2348
  {
2324
- blocks: S.blocks,
2349
+ blocks: v.blocks,
2325
2350
  parent: (C = e.builderBlock) == null ? void 0 : C.id,
2326
2351
  path: `component.options.variants.${m}.blocks`
2327
2352
  }
@@ -2331,11 +2356,11 @@ function fn(e) {
2331
2356
  );
2332
2357
  }),
2333
2358
  /* @__PURE__ */ s(
2334
- H,
2359
+ M,
2335
2360
  {
2336
2361
  nonce: ((y = e.builderContext) == null ? void 0 : y.nonce) || "",
2337
- styles: d(),
2338
- id: `variants-styles-${(x = e.builderBlock) == null ? void 0 : x.id}`
2362
+ styles: f(),
2363
+ id: `variants-styles-${(S = e.builderBlock) == null ? void 0 : S.id}`
2339
2364
  }
2340
2365
  ),
2341
2366
  /* @__PURE__ */ s(
@@ -2479,7 +2504,7 @@ const pn = {
2479
2504
  builderComponents: !0,
2480
2505
  builderLinkComponent: !0
2481
2506
  }
2482
- }, te = {
2507
+ }, ne = {
2483
2508
  "@type": "@builder.io/sdk:Element",
2484
2509
  responsiveStyles: {
2485
2510
  large: {
@@ -2501,7 +2526,7 @@ const pn = {
2501
2526
  text: "New tab"
2502
2527
  }
2503
2528
  }
2504
- }, ne = {
2529
+ }, ie = {
2505
2530
  "@type": "@builder.io/sdk:Element",
2506
2531
  responsiveStyles: {
2507
2532
  large: {
@@ -2527,16 +2552,16 @@ const pn = {
2527
2552
  name: "label",
2528
2553
  type: "uiBlocks",
2529
2554
  hideFromUI: !0,
2530
- defaultValue: [te]
2555
+ defaultValue: [ne]
2531
2556
  }, {
2532
2557
  name: "content",
2533
2558
  type: "uiBlocks",
2534
2559
  hideFromUI: !0,
2535
- defaultValue: [ne]
2560
+ defaultValue: [ie]
2536
2561
  }],
2537
2562
  defaultValue: [{
2538
2563
  label: [{
2539
- ...te,
2564
+ ...ne,
2540
2565
  component: {
2541
2566
  name: "Text",
2542
2567
  options: {
@@ -2545,7 +2570,7 @@ const pn = {
2545
2570
  }
2546
2571
  }],
2547
2572
  content: [{
2548
- ...ne,
2573
+ ...ie,
2549
2574
  component: {
2550
2575
  name: "Text",
2551
2576
  options: {
@@ -2555,7 +2580,7 @@ const pn = {
2555
2580
  }]
2556
2581
  }, {
2557
2582
  label: [{
2558
- ...te,
2583
+ ...ne,
2559
2584
  component: {
2560
2585
  name: "Text",
2561
2586
  options: {
@@ -2564,7 +2589,7 @@ const pn = {
2564
2589
  }
2565
2590
  }],
2566
2591
  content: [{
2567
- ...ne,
2592
+ ...ie,
2568
2593
  component: {
2569
2594
  name: "Text",
2570
2595
  options: {
@@ -2803,13 +2828,13 @@ function En(e) {
2803
2828
  const g = c[h];
2804
2829
  if (g.src && !n.includes(g.src)) {
2805
2830
  n.push(g.src);
2806
- const f = document.createElement("script");
2807
- f.async = !0, f.src = g.src, document.head.appendChild(f);
2831
+ const d = document.createElement("script");
2832
+ d.async = !0, d.src = g.src, document.head.appendChild(d);
2808
2833
  } else if (In(g) && !a.includes(g.innerText))
2809
2834
  try {
2810
2835
  a.push(g.innerText), new Function(g.innerText)();
2811
- } catch (f) {
2812
- console.warn("`Embed`: Error running script:", f);
2836
+ } catch (d) {
2837
+ console.warn("`Embed`: Error running script:", d);
2813
2838
  }
2814
2839
  }
2815
2840
  }
@@ -3068,30 +3093,30 @@ const Rn = {
3068
3093
  function Bn(e) {
3069
3094
  const t = D(null), [n, i] = E(() => "unsubmitted"), [a, r] = E(() => null), [o, l] = E(() => "");
3070
3095
  function u(g) {
3071
- var k, d;
3072
- const f = {
3096
+ var k, f;
3097
+ const d = {
3073
3098
  ...e.builderContext.rootState,
3074
3099
  ...g
3075
3100
  };
3076
- e.builderContext.rootSetState ? (d = (k = e.builderContext).rootSetState) == null || d.call(k, f) : e.builderContext.rootState = f;
3101
+ e.builderContext.rootSetState ? (f = (k = e.builderContext).rootSetState) == null || f.call(k, d) : e.builderContext.rootState = d;
3077
3102
  }
3078
3103
  function c() {
3079
3104
  return W() && e.previewState || n;
3080
3105
  }
3081
3106
  function h(g) {
3082
3107
  var k;
3083
- const f = e.sendWithJs || e.sendSubmissionsTo === "email";
3108
+ const d = e.sendWithJs || e.sendSubmissionsTo === "email";
3084
3109
  if (e.sendSubmissionsTo === "zapier")
3085
3110
  g.preventDefault();
3086
- else if (f) {
3111
+ else if (d) {
3087
3112
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3088
3113
  g.preventDefault();
3089
3114
  return;
3090
3115
  }
3091
3116
  g.preventDefault();
3092
- const d = g.currentTarget || g.target, b = e.customHeaders || {};
3093
- let v;
3094
- const y = new FormData(d), x = Array.from(d.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3117
+ const f = g.currentTarget || g.target, b = e.customHeaders || {};
3118
+ let x;
3119
+ const y = new FormData(f), S = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3095
3120
  let p;
3096
3121
  const C = m.name;
3097
3122
  if (m instanceof HTMLInputElement)
@@ -3116,25 +3141,25 @@ function Bn(e) {
3116
3141
  };
3117
3142
  });
3118
3143
  let T = e.contentType;
3119
- if (e.sendSubmissionsTo === "email" && (T = "multipart/form-data"), Array.from(x).forEach(({ value: m }) => {
3144
+ if (e.sendSubmissionsTo === "email" && (T = "multipart/form-data"), Array.from(S).forEach(({ value: m }) => {
3120
3145
  (m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (T = "multipart/form-data");
3121
3146
  }), T !== "application/json")
3122
- v = y;
3147
+ x = y;
3123
3148
  else {
3124
3149
  const m = {};
3125
- Array.from(x).forEach(({ value: p, key: C }) => {
3150
+ Array.from(S).forEach(({ value: p, key: C }) => {
3126
3151
  Pe(m, C, p);
3127
- }), v = JSON.stringify(m);
3152
+ }), x = JSON.stringify(m);
3128
3153
  }
3129
- T && T !== "multipart/form-data" && (f && ((k = e.action) != null && k.includes("zapier.com")) || (b["content-type"] = T));
3130
- const P = new CustomEvent("presubmit", { detail: { body: v } });
3154
+ T && T !== "multipart/form-data" && (d && ((k = e.action) != null && k.includes("zapier.com")) || (b["content-type"] = T));
3155
+ const P = new CustomEvent("presubmit", { detail: { body: x } });
3131
3156
  if (t.current && (t.current.dispatchEvent(P), P.defaultPrevented))
3132
3157
  return;
3133
3158
  i("sending");
3134
3159
  const I = `${Vn() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3135
3160
  e.sendSubmissionsToEmail || ""
3136
- )}&name=${encodeURIComponent(e.name || "")}`, S = e.sendSubmissionsTo === "email" ? I : e.action;
3137
- we(S), fetch(S, { body: v, headers: b, method: e.method || "post" }).then(
3161
+ )}&name=${encodeURIComponent(e.name || "")}`, v = e.sendSubmissionsTo === "email" ? I : e.action;
3162
+ we(v), fetch(v, { body: x, headers: b, method: e.method || "post" }).then(
3138
3163
  async (m) => {
3139
3164
  let p;
3140
3165
  const C = m.headers.get("content-type");
@@ -3430,7 +3455,7 @@ const Un = {
3430
3455
  name: "image",
3431
3456
  bubble: !0,
3432
3457
  type: "file",
3433
- allowedFileTypes: ue,
3458
+ allowedFileTypes: de,
3434
3459
  required: !0
3435
3460
  }],
3436
3461
  noWrap: !0,
@@ -3469,7 +3494,7 @@ const qn = {
3469
3494
  }, {
3470
3495
  name: "posterImage",
3471
3496
  type: "file",
3472
- allowedFileTypes: ue,
3497
+ allowedFileTypes: de,
3473
3498
  helperText: "Image to show before the video plays"
3474
3499
  }, {
3475
3500
  name: "autoPlay",
@@ -3636,7 +3661,7 @@ function Hn(e) {
3636
3661
  }
3637
3662
  );
3638
3663
  }
3639
- const jn = () => [{
3664
+ const Mn = () => [{
3640
3665
  component: Cn,
3641
3666
  ...kn
3642
3667
  }, {
@@ -3696,7 +3721,7 @@ const jn = () => [{
3696
3721
  }, {
3697
3722
  component: Zt,
3698
3723
  ...Xt
3699
- }, ...jn()], Mn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3724
+ }, ...Mn()], jn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3700
3725
  function getAndSetVariantId() {
3701
3726
  function setCookie(name, value, days) {
3702
3727
  let expires = '';
@@ -3793,17 +3818,17 @@ const jn = () => [{
3793
3818
  })), Kn = ({
3794
3819
  canTrack: e,
3795
3820
  content: t
3796
- }) => !(!(z(t).length > 0) || !e || L()), Jn = (e) => e === "react" || e === "reactNative", je = Jn(F), Gn = () => `
3797
- window.${qe} = ${Mn}
3821
+ }) => !(!(z(t).length > 0) || !e || L()), Jn = (e) => e === "react" || e === "reactNative", Me = Jn(F), Gn = () => `
3822
+ window.${qe} = ${jn}
3798
3823
  window.${He} = ${zn}
3799
3824
  `, Qn = (e, t) => `
3800
3825
  window.${qe}(
3801
- "${t}",${JSON.stringify(e)}, ${je}
3826
+ "${t}",${JSON.stringify(e)}, ${Me}
3802
3827
  )`, Yn = ({
3803
3828
  contentId: e,
3804
3829
  variationId: t
3805
3830
  }) => `window.${He}(
3806
- "${t}", "${e}", ${je}
3831
+ "${t}", "${e}", ${Me}
3807
3832
  )`;
3808
3833
  function Se(e) {
3809
3834
  return Math.round(e * 1e3) / 1e3;
@@ -3900,22 +3925,22 @@ font-weight: ${l};
3900
3925
  }
3901
3926
  `, ri = (e) => e ? "" : oi, li = (e) => `variant-${e}`;
3902
3927
  function si(e) {
3903
- var x, T, P;
3928
+ var S, T, P;
3904
3929
  const t = D(null);
3905
3930
  function n(I) {
3906
3931
  var m, p;
3907
- const S = {
3932
+ const v = {
3908
3933
  ...e.builderContextSignal.rootState,
3909
3934
  ...I
3910
3935
  };
3911
- e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, S) : e.setBuilderContextSignal((C) => ({
3936
+ e.builderContextSignal.rootSetState ? (p = (m = e.builderContextSignal).rootSetState) == null || p.call(m, v) : e.setBuilderContextSignal((C) => ({
3912
3937
  ...C,
3913
- rootState: S
3938
+ rootState: v
3914
3939
  }));
3915
3940
  }
3916
3941
  function i(I) {
3917
3942
  var m, p, C, w, B;
3918
- const S = {
3943
+ const v = {
3919
3944
  ...e.builderContextSignal.content,
3920
3945
  ...I,
3921
3946
  data: {
@@ -3930,7 +3955,7 @@ function si(e) {
3930
3955
  };
3931
3956
  e.setBuilderContextSignal((N) => ({
3932
3957
  ...N,
3933
- content: S
3958
+ content: v
3934
3959
  }));
3935
3960
  }
3936
3961
  function a() {
@@ -3947,45 +3972,45 @@ function si(e) {
3947
3972
  model: e.model,
3948
3973
  trustedHosts: e.trustedHosts,
3949
3974
  callbacks: {
3950
- configureSdk: (S) => {
3975
+ configureSdk: (v) => {
3951
3976
  var C;
3952
- const { breakpoints: m, contentId: p } = S;
3977
+ const { breakpoints: m, contentId: p } = v;
3953
3978
  !p || p !== ((C = e.builderContextSignal.content) == null ? void 0 : C.id) || m && i({
3954
3979
  meta: {
3955
3980
  breakpoints: m
3956
3981
  }
3957
3982
  });
3958
3983
  },
3959
- animation: (S) => {
3960
- $e(S);
3984
+ animation: (v) => {
3985
+ $e(v);
3961
3986
  },
3962
- contentUpdate: (S) => {
3963
- i(S);
3987
+ contentUpdate: (v) => {
3988
+ i(v);
3964
3989
  }
3965
3990
  }
3966
3991
  })(I);
3967
3992
  }
3968
- const [u, c] = E(() => ({})), [h, g] = E(() => ({})), [f, k] = E(() => !1);
3969
- function d(I) {
3970
- var S, m;
3993
+ const [u, c] = E(() => ({})), [h, g] = E(() => ({})), [d, k] = E(() => !1);
3994
+ function f(I) {
3995
+ var v, m;
3971
3996
  if (e.builderContextSignal.content) {
3972
- const p = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, C = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
3973
- me({
3997
+ const p = (v = e.builderContextSignal.content) == null ? void 0 : v.testVariationId, C = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
3998
+ fe({
3974
3999
  apiHost: e.apiHost,
3975
4000
  type: "click",
3976
- canTrack: _(e.canTrack),
4001
+ canTrack: q(e.canTrack),
3977
4002
  contentId: C,
3978
4003
  apiKey: e.apiKey,
3979
4004
  variationId: p !== C ? p : void 0,
3980
4005
  ...ei(I),
3981
- unique: !f
4006
+ unique: !d
3982
4007
  });
3983
4008
  }
3984
- f || k(!0);
4009
+ d || k(!0);
3985
4010
  }
3986
4011
  function b() {
3987
- var S, m, p;
3988
- const I = (p = (m = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : m.httpRequests) != null ? p : {};
4012
+ var v, m, p;
4013
+ const I = (p = (m = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : m.httpRequests) != null ? p : {};
3989
4014
  Object.entries(I).forEach(([C, w]) => {
3990
4015
  if (!w || h[C] || u[C] && !W())
3991
4016
  return;
@@ -4013,13 +4038,13 @@ function si(e) {
4013
4038
  });
4014
4039
  });
4015
4040
  }
4016
- function v() {
4041
+ function x() {
4017
4042
  W() && window.dispatchEvent(
4018
4043
  new CustomEvent(
4019
4044
  "builder:component:stateChange",
4020
4045
  {
4021
4046
  detail: {
4022
- state: re(e.builderContextSignal.rootState),
4047
+ state: le(e.builderContextSignal.rootState),
4023
4048
  ref: {
4024
4049
  name: e.model
4025
4050
  }
@@ -4029,10 +4054,10 @@ function si(e) {
4029
4054
  );
4030
4055
  }
4031
4056
  const y = D(!1);
4032
- return y.current || (b(), v(), y.current = !0), A(() => {
4033
- var I, S, m;
4057
+ return y.current || (b(), x(), y.current = !0), A(() => {
4058
+ var I, v, m;
4034
4059
  if (L()) {
4035
- if (W() && !e.isNestedRender && (window.addEventListener("message", l), Me(), ze({
4060
+ if (W() && !e.isNestedRender && (window.addEventListener("message", l), je(), ze({
4036
4061
  ...e.locale ? {
4037
4062
  locale: e.locale
4038
4063
  } : {},
@@ -4052,10 +4077,10 @@ function si(e) {
4052
4077
  }
4053
4078
  }), window.addEventListener(
4054
4079
  "builder:component:stateChangeListenerActivated",
4055
- v
4056
- )), e.builderContextSignal.content && _(e.canTrack)) {
4057
- const C = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (S = e.builderContextSignal.content) == null ? void 0 : S.id, B = e.apiKey;
4058
- me({
4080
+ x
4081
+ )), e.builderContextSignal.content && q(e.canTrack)) {
4082
+ const C = (I = e.builderContextSignal.content) == null ? void 0 : I.testVariationId, w = (v = e.builderContextSignal.content) == null ? void 0 : v.id, B = e.apiKey;
4083
+ fe({
4059
4084
  apiHost: e.apiHost,
4060
4085
  type: "impression",
4061
4086
  canTrack: !0,
@@ -4085,7 +4110,7 @@ function si(e) {
4085
4110
  }, []), A(() => {
4086
4111
  e.content && i(e.content);
4087
4112
  }, [e.content]), A(() => {
4088
- v();
4113
+ x();
4089
4114
  }, [e.builderContextSignal.rootState]), A(() => {
4090
4115
  e.data && n(e.data);
4091
4116
  }, [e.data]), A(() => {
@@ -4095,14 +4120,14 @@ function si(e) {
4095
4120
  }, [e.locale]), A(() => () => {
4096
4121
  L() && (window.removeEventListener("message", l), window.removeEventListener(
4097
4122
  "builder:component:stateChangeListenerActivated",
4098
- v
4123
+ x
4099
4124
  ));
4100
- }, []), /* @__PURE__ */ s(se.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Ce() ? /* @__PURE__ */ s(
4125
+ }, []), /* @__PURE__ */ s(ce.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Ce() ? /* @__PURE__ */ s(
4101
4126
  r,
4102
4127
  {
4103
4128
  ref: t,
4104
- onClick: (I) => d(I),
4105
- "builder-content-id": (x = e.builderContextSignal.content) == null ? void 0 : x.id,
4129
+ onClick: (I) => f(I),
4130
+ "builder-content-id": (S = e.builderContextSignal.content) == null ? void 0 : S.id,
4106
4131
  "builder-model": e.model,
4107
4132
  className: li(
4108
4133
  ((T = e.content) == null ? void 0 : T.testVariationId) || ((P = e.content) == null ? void 0 : P.id)
@@ -4130,7 +4155,7 @@ ${ri(e.isNestedRender)}
4130
4155
  `.trim()
4131
4156
  );
4132
4157
  return /* @__PURE__ */ s(
4133
- H,
4158
+ M,
4134
4159
  {
4135
4160
  id: "builderio-content",
4136
4161
  styles: t,
@@ -4167,22 +4192,22 @@ const ui = ({
4167
4192
  meta: e == null ? void 0 : e.meta
4168
4193
  } : void 0;
4169
4194
  function Te(e) {
4170
- var c, h, g, f, k, d, b, v, y;
4195
+ var c, h, g, d, k, f, b, x, y;
4171
4196
  const [t, n] = E(
4172
4197
  () => {
4173
- var x, T;
4198
+ var S, T;
4174
4199
  return Yn({
4175
4200
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4176
- variationId: (x = e.content) == null ? void 0 : x.testVariationId,
4201
+ variationId: (S = e.content) == null ? void 0 : S.testVariationId,
4177
4202
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4178
4203
  contentId: (T = e.content) == null ? void 0 : T.id
4179
4204
  });
4180
4205
  }
4181
4206
  );
4182
- function i(x) {
4207
+ function i(S) {
4183
4208
  l((T) => ({
4184
4209
  ...T,
4185
- rootState: x
4210
+ rootState: S
4186
4211
  }));
4187
4212
  }
4188
4213
  const [a, r] = E(
@@ -4190,11 +4215,11 @@ function Te(e) {
4190
4215
  ...xe(),
4191
4216
  ...e.customComponents || []
4192
4217
  ].reduce(
4193
- (x, { component: T, ...P }) => ({
4194
- ...x,
4218
+ (S, { component: T, ...P }) => ({
4219
+ ...S,
4195
4220
  [P.name]: {
4196
4221
  component: T,
4197
- ...fe(P)
4222
+ ...he(P)
4198
4223
  }
4199
4224
  }),
4200
4225
  {}
@@ -4219,9 +4244,9 @@ function Te(e) {
4219
4244
  ...xe(),
4220
4245
  ...e.customComponents || []
4221
4246
  ].reduce(
4222
- (x, { component: T, ...P }) => ({
4223
- ...x,
4224
- [P.name]: fe(P)
4247
+ (S, { component: T, ...P }) => ({
4248
+ ...S,
4249
+ [P.name]: he(P)
4225
4250
  }),
4226
4251
  {}
4227
4252
  ),
@@ -4232,12 +4257,12 @@ function Te(e) {
4232
4257
  model: e.model || ""
4233
4258
  })), u = D(!1);
4234
4259
  if (!u.current) {
4235
- e.apiKey || oe.error(
4260
+ e.apiKey || re.error(
4236
4261
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4237
4262
  );
4238
- const x = (h = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
4239
- x && O({
4240
- code: x,
4263
+ const S = (h = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
4264
+ S && O({
4265
+ code: S,
4241
4266
  context: e.context || {},
4242
4267
  localState: void 0,
4243
4268
  rootState: o.rootState,
@@ -4288,14 +4313,14 @@ function Te(e) {
4288
4313
  nonce: e.nonce || "",
4289
4314
  isNestedRender: e.isNestedRender,
4290
4315
  contentId: (g = o.content) == null ? void 0 : g.id,
4291
- cssCode: (k = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : k.cssCode,
4292
- customFonts: (b = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : b.customFonts
4316
+ cssCode: (k = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : k.cssCode,
4317
+ customFonts: (b = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
4293
4318
  }
4294
4319
  ),
4295
4320
  /* @__PURE__ */ s(
4296
4321
  $,
4297
4322
  {
4298
- blocks: (y = (v = o.content) == null ? void 0 : v.data) == null ? void 0 : y.blocks,
4323
+ blocks: (y = (x = o.content) == null ? void 0 : x.data) == null ? void 0 : y.blocks,
4299
4324
  context: o,
4300
4325
  registeredComponents: a,
4301
4326
  linkComponent: e.linkComponent
@@ -4311,7 +4336,7 @@ function mi(e) {
4311
4336
  var o;
4312
4337
  const [t, n] = E(
4313
4338
  () => Kn({
4314
- canTrack: _(e.canTrack),
4339
+ canTrack: q(e.canTrack),
4315
4340
  content: e.content
4316
4341
  })
4317
4342
  );
@@ -4335,7 +4360,7 @@ function mi(e) {
4335
4360
  testVariationId: (l = e.content) == null ? void 0 : l.id
4336
4361
  } : Ge({
4337
4362
  item: e.content,
4338
- canTrack: _(e.canTrack)
4363
+ canTrack: q(e.canTrack)
4339
4364
  });
4340
4365
  }
4341
4366
  return A(() => {
@@ -4350,7 +4375,7 @@ function mi(e) {
4350
4375
  ) : null,
4351
4376
  t ? /* @__PURE__ */ V(R, { children: [
4352
4377
  /* @__PURE__ */ s(
4353
- H,
4378
+ M,
4354
4379
  {
4355
4380
  id: "builderio-variants",
4356
4381
  styles: a(),
@@ -4437,7 +4462,7 @@ const fi = async ({
4437
4462
  }
4438
4463
  }
4439
4464
  }).catch((n) => {
4440
- oe.error("Could not fetch symbol content: ", n);
4465
+ re.error("Could not fetch symbol content: ", n);
4441
4466
  });
4442
4467
  };
4443
4468
  function hi(e) {
@@ -4449,12 +4474,12 @@ function hi(e) {
4449
4474
  return "div";
4450
4475
  }
4451
4476
  function i() {
4452
- var g, f;
4477
+ var g, d;
4453
4478
  return [
4454
- e.attributes[q()],
4479
+ e.attributes[H()],
4455
4480
  "builder-symbol",
4456
4481
  (g = e.symbol) != null && g.inline ? "builder-inline-symbol" : void 0,
4457
- (f = e.symbol) != null && f.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4482
+ (d = e.symbol) != null && d.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4458
4483
  ].filter(Boolean).join(" ");
4459
4484
  }
4460
4485
  const [a, r] = E(() => {
@@ -4500,7 +4525,7 @@ function hi(e) {
4500
4525
  }
4501
4526
  export {
4502
4527
  $ as Blocks,
4503
- se as BuilderContext,
4528
+ ce as BuilderContext,
4504
4529
  ot as Button,
4505
4530
  zt as Columns,
4506
4531
  mi as Content,