@builder.io/sdk-react 4.0.7 → 4.0.8

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 (68) hide show
  1. package/lib/browser/blocks-exports.cjs +13 -13
  2. package/lib/browser/blocks-exports.mjs +613 -605
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/{server-entry-4c650ff5.cjs → server-entry-8ea5d047.cjs} +1 -1
  6. package/lib/browser/{server-entry-e70c12ff.js → server-entry-d0b98fb0.js} +1 -1
  7. package/lib/browser/server-entry.cjs +1 -1
  8. package/lib/browser/server-entry.mjs +1 -1
  9. package/lib/edge/{accordion-742ca147.js → accordion-8ef468e5.js} +1 -1
  10. package/lib/edge/{accordion-c97e6506.cjs → accordion-94839d7d.cjs} +1 -1
  11. package/lib/edge/{blocks-2a015bd6.js → blocks-548ec8c2.js} +879 -876
  12. package/lib/edge/{blocks-70894a53.cjs → blocks-7e8837dc.cjs} +15 -15
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-deecd9b5.js → button-09f38c2e.js} +2 -2
  16. package/lib/edge/{button-6a072716.cjs → button-66c37b9c.cjs} +1 -1
  17. package/lib/edge/{columns-0e9b2bf4.js → columns-42cbe467.js} +3 -3
  18. package/lib/edge/{columns-02352a9f.cjs → columns-67ded4b4.cjs} +1 -1
  19. package/lib/edge/{content-variants-6948115a.js → content-variants-5a4eecaf.js} +12 -12
  20. package/lib/edge/{content-variants-41781d1f.cjs → content-variants-cf107f82.cjs} +1 -1
  21. package/lib/edge/{custom-code-73f76f76.js → custom-code-cf216b27.js} +1 -1
  22. package/lib/edge/{custom-code-77f98605.cjs → custom-code-ea534e98.cjs} +1 -1
  23. package/lib/edge/{embed-26470ea1.js → embed-12b85639.js} +1 -1
  24. package/lib/edge/{embed-9aaf87f9.cjs → embed-7ca4af6e.cjs} +1 -1
  25. package/lib/edge/{form-0213200e.cjs → form-85ea06df.cjs} +1 -1
  26. package/lib/edge/{form-652ef8a9.js → form-f1188ad2.js} +3 -3
  27. package/lib/edge/{get-class-prop-name-8647a440.cjs → get-class-prop-name-316a93c9.cjs} +1 -1
  28. package/lib/edge/{get-class-prop-name-1a003fac.js → get-class-prop-name-90df5962.js} +1 -1
  29. package/lib/edge/{img-f0b9e982.cjs → img-81a7f4d7.cjs} +1 -1
  30. package/lib/edge/{img-2d35513d.js → img-ee2838af.js} +1 -1
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.mjs +1 -1
  33. package/lib/edge/{input-e61cf32f.cjs → input-231ec63f.cjs} +1 -1
  34. package/lib/edge/{input-cdd96bc7.js → input-b8907c7d.js} +1 -1
  35. package/lib/edge/{personalization-container-e1f03976.js → personalization-container-896a298a.js} +4 -4
  36. package/lib/edge/{personalization-container-4f73fbdf.cjs → personalization-container-95cba946.cjs} +1 -1
  37. package/lib/edge/{select-f1165866.cjs → select-b1650a75.cjs} +1 -1
  38. package/lib/edge/{select-de96bdc0.js → select-ffee7a69.js} +1 -1
  39. package/lib/edge/{server-entry-10ca8502.cjs → server-entry-1b560ddb.cjs} +1 -1
  40. package/lib/edge/{server-entry-637ed5ff.js → server-entry-e9974799.js} +1 -1
  41. package/lib/edge/server-entry.cjs +1 -1
  42. package/lib/edge/server-entry.mjs +1 -1
  43. package/lib/edge/{slot-3ecf31d9.cjs → slot-ddddba8d.cjs} +1 -1
  44. package/lib/edge/{slot-72846242.js → slot-fe93ec42.js} +3 -3
  45. package/lib/edge/symbol-c266ba83.js +90 -0
  46. package/lib/edge/symbol-d9175a66.cjs +1 -0
  47. package/lib/edge/{tabs-ea0258b8.js → tabs-3481a6f6.js} +3 -3
  48. package/lib/edge/{tabs-788974d9.cjs → tabs-f76f757a.cjs} +1 -1
  49. package/lib/node/blocks-exports.cjs +17 -17
  50. package/lib/node/blocks-exports.mjs +426 -418
  51. package/lib/node/index.cjs +1 -1
  52. package/lib/node/index.mjs +3 -3
  53. package/lib/node/init.cjs +1 -1
  54. package/lib/node/init.mjs +3 -3
  55. package/lib/node/{server-entry-e76904a8.cjs → server-entry-03fc1c6d.cjs} +1 -1
  56. package/lib/node/{server-entry-7167da7c.js → server-entry-2b91f2d9.js} +1 -1
  57. package/lib/node/server-entry.cjs +1 -1
  58. package/lib/node/server-entry.mjs +1 -1
  59. package/lib/node/{setIvm-e89d1a08.cjs → setIvm-26e766c5.cjs} +1 -1
  60. package/lib/node/{setIvm-72c91afa.js → setIvm-419a94e0.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-09a401d5.js → should-force-browser-runtime-in-node-67506521.js} +1 -1
  64. package/lib/node/{should-force-browser-runtime-in-node-b3e23348.cjs → should-force-browser-runtime-in-node-fe3d9cb0.cjs} +1 -1
  65. package/package.json +1 -1
  66. package/types/constants/sdk-version.d.ts +1 -1
  67. package/lib/edge/symbol-49ed2192.cjs +0 -1
  68. package/lib/edge/symbol-61a3651b.js +0 -85
@@ -1,14 +1,14 @@
1
1
  "use client";
2
- import { TARGET as O, isBrowser as U, logger as z, checkIsDefined as se, isPreviewing as X, isEditing as N, userAttributesService as be, getDefaultCanTrack as M, logFetch as Pe, registerInsertMenu as Qe, setupBrowserForEditing as Ye, createRegisterComponentMessage as Xe, getCookieSync as Ze, _track as pe, fetchOneEntry as Be, createEditorListener as et, serializeIncludingFunctions as ye, handleABTestingSync as tt } from "./server-entry-7167da7c.js";
3
- import { setClientUserAttributes as Vi } from "./server-entry-7167da7c.js";
4
- import { jsx as s, Fragment as R, jsxs as B } from "react/jsx-runtime";
2
+ import { TARGET as O, isBrowser as U, logger as z, checkIsDefined as se, isPreviewing as X, isEditing as N, userAttributesService as be, getDefaultCanTrack as M, logFetch as Ve, registerInsertMenu as Qe, setupBrowserForEditing as Ye, createRegisterComponentMessage as Xe, getCookieSync as Ze, _track as pe, fetchOneEntry as Be, createEditorListener as et, serializeIncludingFunctions as ye, handleABTestingSync as tt } from "./server-entry-2b91f2d9.js";
3
+ import { setClientUserAttributes as Pi } from "./server-entry-2b91f2d9.js";
4
+ import { jsx as s, Fragment as P, jsxs as B } from "react/jsx-runtime";
5
5
  import * as nt from "react";
6
- import { createContext as Ae, useEffect as P, useState as I, useRef as L, useContext as ve, createElement as Ne } from "react";
7
- import { getFunctionArguments as it, flattenState as at, runInNode as ot, parseCode as rt, getBuilderGlobals as lt, set as We, fastClone as ue } from "./setIvm-72c91afa.js";
8
- import { shouldForceBrowserRuntimeInNode as st } from "./should-force-browser-runtime-in-node-09a401d5.js";
6
+ import { createContext as Ae, useEffect as R, useState as I, useRef as L, useContext as ve, createElement as Ne } from "react";
7
+ import { getFunctionArguments as it, flattenState as at, runInNode as ot, parseCode as rt, getBuilderGlobals as lt, set as We, fastClone as ue } from "./setIvm-419a94e0.js";
8
+ import { shouldForceBrowserRuntimeInNode as st } from "./should-force-browser-runtime-in-node-67506521.js";
9
9
  const ct = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ut = (e) => typeof e == "string" && ct.has(e.toLowerCase());
10
10
  function de(e) {
11
- return /* @__PURE__ */ s(R, { children: ut(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 }) }) });
11
+ return /* @__PURE__ */ s(P, { children: ut(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 }) }) });
12
12
  }
13
13
  const j = () => {
14
14
  switch (O) {
@@ -122,8 +122,8 @@ function _({
122
122
  };
123
123
  try {
124
124
  return ft(d);
125
- } catch (u) {
126
- z.error("Failed code evaluation: " + u.message, {
125
+ } catch (c) {
126
+ z.error("Failed code evaluation: " + c.message, {
127
127
  code: e
128
128
  });
129
129
  return;
@@ -281,10 +281,10 @@ function Et(e, t, n = {}) {
281
281
  l = n.leading === !1 ? 0 : Date.now(), o = null, r = e.apply(i, a), o || (i = a = null);
282
282
  };
283
283
  return function() {
284
- const u = Date.now();
285
- !l && n.leading === !1 && (l = u);
286
- const h = t - (u - l);
287
- return i = this, a = arguments, h <= 0 || h > t ? (o && (clearTimeout(o), o = null), l = u, r = e.apply(i, a), o || (i = a = null)) : !o && n.trailing !== !1 && (o = setTimeout(d, h)), r;
284
+ const c = Date.now();
285
+ !l && n.leading === !1 && (l = c);
286
+ const h = t - (c - l);
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(d, h)), r;
288
288
  };
289
289
  }
290
290
  function H(e, ...t) {
@@ -304,7 +304,7 @@ function Rt(e) {
304
304
  Ue(t);
305
305
  break;
306
306
  case "scrollInView":
307
- Pt(t);
307
+ Vt(t);
308
308
  break;
309
309
  }
310
310
  }
@@ -312,12 +312,12 @@ function Le(e) {
312
312
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
313
313
  }
314
314
  function Oe(e, t) {
315
- const n = Vt(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
315
+ const n = Pt(e), i = getComputedStyle(t), a = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, o = [a, r];
316
316
  for (const l of o)
317
317
  for (const d of n)
318
318
  d in l || (l[d] = i[d]);
319
319
  }
320
- function Vt(e) {
320
+ function Pt(e) {
321
321
  const t = [];
322
322
  for (const n of e.steps)
323
323
  for (const i in n.styles)
@@ -338,7 +338,7 @@ function Ue(e) {
338
338
  });
339
339
  });
340
340
  }
341
- function Pt(e) {
341
+ function Vt(e) {
342
342
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
343
343
  if (!t.length) {
344
344
  Le(e.elementId || e.id || "");
@@ -358,14 +358,14 @@ function Pt(e) {
358
358
  leading: !1
359
359
  });
360
360
  function l(h) {
361
- const g = h.getBoundingClientRect(), c = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * c;
362
- return g.bottom > f && g.top < c - f;
361
+ const b = h.getBoundingClientRect(), m = window.innerHeight, u = (e.thresholdPercent || 0) / 100 * m;
362
+ return b.bottom > u && b.top < m - u;
363
363
  }
364
364
  const d = e.steps[0].styles;
365
- function u() {
365
+ function c() {
366
366
  H(n.style, d);
367
367
  }
368
- u(), setTimeout(() => {
368
+ c(), setTimeout(() => {
369
369
  n.style.transition = `all ${e.duration}s ${Z(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
370
370
  }), document.addEventListener("scroll", o, {
371
371
  capture: !0,
@@ -453,15 +453,15 @@ const He = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
453
453
  if (!Array.isArray(a))
454
454
  return;
455
455
  const r = n.collection.split(".").pop(), o = n.itemName || (r ? r + "Item" : "item");
456
- return a.map((d, u) => ({
456
+ return a.map((d, c) => ({
457
457
  context: {
458
458
  ...t,
459
459
  localState: {
460
460
  ...t.localState,
461
- $index: u,
461
+ $index: c,
462
462
  $item: d,
463
463
  [o]: d,
464
- [`$${o}Index`]: u
464
+ [`$${o}Index`]: c
465
465
  }
466
466
  },
467
467
  block: i
@@ -562,32 +562,32 @@ function Ut(e) {
562
562
  return se(i.hide) ? !i.hide : se(i.show) ? i.show : !0;
563
563
  }
564
564
  function n() {
565
- var C, V, w, x, m;
565
+ var C, V, w, S, f;
566
566
  const i = e.block, a = i.responsiveStyles, r = e.context.content, o = je(
567
567
  ((C = r == null ? void 0 : r.meta) == null ? void 0 : C.breakpoints) || {}
568
- ), l = !!((w = (V = r == null ? void 0 : r.meta) == null ? void 0 : V.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, u = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, g = a == null ? void 0 : a.xsmall, c = i.id;
569
- if (!c)
568
+ ), l = !!((w = (V = r == null ? void 0 : r.meta) == null ? void 0 : V.breakpoints) != null && w.xsmall), d = a == null ? void 0 : a.large, c = a == null ? void 0 : a.medium, h = a == null ? void 0 : a.small, b = a == null ? void 0 : a.xsmall, m = i.id;
569
+ if (!m)
570
570
  return "";
571
- const v = d ? q({
572
- className: c,
571
+ const x = d ? q({
572
+ className: m,
573
573
  styles: d
574
- }) : "", f = u ? q({
575
- className: c,
576
- styles: u,
574
+ }) : "", u = c ? q({
575
+ className: m,
576
+ styles: c,
577
577
  mediaQuery: ne(
578
578
  "medium",
579
579
  o
580
580
  )
581
- }) : "", b = h ? q({
582
- className: c,
581
+ }) : "", g = h ? q({
582
+ className: m,
583
583
  styles: h,
584
584
  mediaQuery: ne(
585
585
  "small",
586
586
  o
587
587
  )
588
- }) : "", S = g && l ? q({
589
- className: c,
590
- styles: g,
588
+ }) : "", v = b && l ? q({
589
+ className: m,
590
+ styles: b,
591
591
  mediaQuery: ne(
592
592
  "xsmall",
593
593
  o
@@ -595,9 +595,9 @@ function Ut(e) {
595
595
  }) : "", p = i.animations && i.animations.find((y) => y.trigger === "hover");
596
596
  let k = "";
597
597
  if (p) {
598
- const y = ((m = (x = p.steps) == null ? void 0 : x[1]) == null ? void 0 : m.styles) || {};
598
+ const y = ((f = (S = p.steps) == null ? void 0 : S[1]) == null ? void 0 : f.styles) || {};
599
599
  k = q({
600
- className: `${c}:hover`,
600
+ className: `${m}:hover`,
601
601
  styles: {
602
602
  ...y,
603
603
  transition: `all ${p.duration}s ${Z(
@@ -608,14 +608,14 @@ function Ut(e) {
608
608
  }) || "";
609
609
  }
610
610
  return [
611
+ x,
612
+ u,
613
+ g,
611
614
  v,
612
- f,
613
- b,
614
- S,
615
615
  k
616
616
  ].join(" ");
617
617
  }
618
- return /* @__PURE__ */ s(R, { children: n() && t() ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
618
+ return /* @__PURE__ */ s(P, { children: n() && t() ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
619
619
  K,
620
620
  {
621
621
  id: "builderio-block",
@@ -708,10 +708,12 @@ function zt(e) {
708
708
  );
709
709
  }
710
710
  function Kt(e) {
711
- return P(() => {
712
- }, []), /* @__PURE__ */ s(R, { children: e.children });
711
+ return R(() => {
712
+ }, []), /* @__PURE__ */ s(P, { children: e.children });
713
713
  }
714
714
  function Jt(e) {
715
+ var i, a;
716
+ I(() => 0);
715
717
  function t() {
716
718
  return e.includeBlockProps ? {
717
719
  ...fe({
@@ -730,7 +732,8 @@ function Jt(e) {
730
732
  function n() {
731
733
  return e.wrapperProps;
732
734
  }
733
- return /* @__PURE__ */ s(R, { children: e.Wrapper.load ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
735
+ return R(() => {
736
+ }, [e.wrapperProps, (a = (i = e.block) == null ? void 0 : i.component) == null ? void 0 : a.options]), /* @__PURE__ */ s(P, { children: e.Wrapper.load ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
734
737
  Kt,
735
738
  {
736
739
  load: e.Wrapper.load,
@@ -777,8 +780,8 @@ function Se(e) {
777
780
  const [t, n] = I(
778
781
  () => e.isInteractive ? Jt : e.componentRef
779
782
  );
780
- return P(() => {
781
- }, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(R, { children: e.componentRef ? /* @__PURE__ */ s(R, { children: /* @__PURE__ */ s(
783
+ return R(() => {
784
+ }, [e.componentOptions, e.blockChildren]), /* @__PURE__ */ s(P, { children: e.componentRef ? /* @__PURE__ */ s(P, { children: /* @__PURE__ */ s(
782
785
  t,
783
786
  {
784
787
  ...Gt({
@@ -806,7 +809,7 @@ function Se(e) {
806
809
  }
807
810
  function ke(e) {
808
811
  const [t, n] = I(() => e.repeatContext);
809
- return P(() => {
812
+ return R(() => {
810
813
  n(e.repeatContext);
811
814
  }, [e.repeatContext]), /* @__PURE__ */ s(me.Provider, { value: t, children: /* @__PURE__ */ s(
812
815
  ee,
@@ -819,7 +822,7 @@ function ke(e) {
819
822
  ) });
820
823
  }
821
824
  function ee(e) {
822
- var h, g, c, v;
825
+ var h, b, m, x;
823
826
  function t() {
824
827
  return Dt({
825
828
  block: e.block,
@@ -831,17 +834,17 @@ function ee(e) {
831
834
  update: !1
832
835
  }));
833
836
  function a() {
834
- var b;
837
+ var g;
835
838
  if (n.value && !n.update && !X())
836
839
  return n.value;
837
- const f = (b = e.block.repeat) != null && b.collection ? e.block : It({
840
+ const u = (g = e.block.repeat) != null && g.collection ? e.block : It({
838
841
  block: e.block,
839
842
  localState: e.context.localState,
840
843
  rootState: e.context.rootState,
841
844
  rootSetState: e.context.rootSetState,
842
845
  context: e.context.context
843
846
  });
844
- return n.value = f, n.update = !1, f;
847
+ return n.value = u, n.update = !1, u;
845
848
  }
846
849
  function r() {
847
850
  return Wt({
@@ -851,25 +854,25 @@ function ee(e) {
851
854
  });
852
855
  }
853
856
  function o() {
854
- var b;
855
- return e.block.tagName === "a" || ((b = a().properties) == null ? void 0 : b.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
857
+ var g;
858
+ return e.block.tagName === "a" || ((g = a().properties) == null ? void 0 : g.href) || a().href ? e.linkComponent || "a" : e.block.tagName || "div";
856
859
  }
857
860
  function l() {
858
- var S, p;
859
- if ((S = e.block.repeat) != null && S.collection)
861
+ var v, p;
862
+ if ((v = e.block.repeat) != null && v.collection)
860
863
  return !!((p = t == null ? void 0 : t()) != null && p.length);
861
- const f = "hide" in a() ? a().hide : !1;
862
- return ("show" in a() ? a().show : !0) && !f;
864
+ const u = "hide" in a() ? a().hide : !1;
865
+ return ("show" in a() ? a().show : !0) && !u;
863
866
  }
864
867
  function d() {
865
- var b, S;
866
- return !((b = r == null ? void 0 : r()) != null && b.component) && !t() ? (S = a().children) != null ? S : [] : [];
868
+ var g, v;
869
+ return !((g = r == null ? void 0 : r()) != null && g.component) && !t() ? (v = a().children) != null ? v : [] : [];
867
870
  }
868
- function u() {
869
- var f, b, S, p;
871
+ function c() {
872
+ var u, g, v, p;
870
873
  return {
871
- blockChildren: (f = a().children) != null ? f : [],
872
- componentRef: (b = r == null ? void 0 : r()) == null ? void 0 : b.component,
874
+ blockChildren: (u = a().children) != null ? u : [],
875
+ componentRef: (g = r == null ? void 0 : r()) == null ? void 0 : g.component,
873
876
  componentOptions: {
874
877
  ...pt(a(), e.context),
875
878
  ...Lt(r(), a()),
@@ -885,53 +888,53 @@ function ee(e) {
885
888
  linkComponent: e.linkComponent,
886
889
  registeredComponents: e.registeredComponents,
887
890
  builderBlock: a(),
888
- includeBlockProps: ((S = r == null ? void 0 : r()) == null ? void 0 : S.noWrap) === !0,
891
+ includeBlockProps: ((v = r == null ? void 0 : r()) == null ? void 0 : v.noWrap) === !0,
889
892
  isInteractive: !((p = r == null ? void 0 : r()) != null && p.isRSC && O === "rsc")
890
893
  };
891
894
  }
892
- return P(() => {
893
- const f = a().id, b = a().animations;
894
- b && f && Rt(
895
- b.map((S) => ({
896
- ...S,
897
- elementId: f
895
+ return R(() => {
896
+ const u = a().id, g = a().animations;
897
+ g && u && Rt(
898
+ g.map((v) => ({
899
+ ...v,
900
+ elementId: u
898
901
  }))
899
902
  );
900
- }, []), P(() => {
903
+ }, []), R(() => {
901
904
  n.update = !0;
902
- }), /* @__PURE__ */ s(R, { children: l() ? /* @__PURE__ */ B(R, { children: [
905
+ }), /* @__PURE__ */ s(P, { children: l() ? /* @__PURE__ */ B(P, { children: [
903
906
  /* @__PURE__ */ s(Ut, { block: a(), context: e.context }),
904
- (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(R, { children: (v = t()) == null ? void 0 : v.map((f, b) => /* @__PURE__ */ s(
907
+ (h = r == null ? void 0 : r()) != null && h.noWrap ? t() ? /* @__PURE__ */ s(P, { children: (x = t()) == null ? void 0 : x.map((u, g) => /* @__PURE__ */ s(
905
908
  ke,
906
909
  {
907
- repeatContext: f.context,
908
- block: f.block,
910
+ repeatContext: u.context,
911
+ block: u.block,
909
912
  registeredComponents: e.registeredComponents,
910
913
  linkComponent: e.linkComponent
911
914
  },
912
- xe(b)
915
+ xe(g)
913
916
  )) }) : /* @__PURE__ */ s(
914
917
  Se,
915
918
  {
916
- componentRef: u().componentRef,
917
- componentOptions: u().componentOptions,
918
- blockChildren: u().blockChildren,
919
- context: u().context,
920
- registeredComponents: u().registeredComponents,
921
- linkComponent: u().linkComponent,
922
- builderBlock: u().builderBlock,
923
- includeBlockProps: u().includeBlockProps,
924
- isInteractive: u().isInteractive
919
+ componentRef: c().componentRef,
920
+ componentOptions: c().componentOptions,
921
+ blockChildren: c().blockChildren,
922
+ context: c().context,
923
+ registeredComponents: c().registeredComponents,
924
+ linkComponent: c().linkComponent,
925
+ builderBlock: c().builderBlock,
926
+ includeBlockProps: c().includeBlockProps,
927
+ isInteractive: c().isInteractive
925
928
  }
926
- ) : /* @__PURE__ */ s(R, { children: t() ? /* @__PURE__ */ s(R, { children: (c = t()) == null ? void 0 : c.map((f, b) => /* @__PURE__ */ s(
929
+ ) : /* @__PURE__ */ s(P, { children: t() ? /* @__PURE__ */ s(P, { children: (m = t()) == null ? void 0 : m.map((u, g) => /* @__PURE__ */ s(
927
930
  ke,
928
931
  {
929
- repeatContext: f.context,
930
- block: f.block,
932
+ repeatContext: u.context,
933
+ block: u.block,
931
934
  registeredComponents: e.registeredComponents,
932
935
  linkComponent: e.linkComponent
933
936
  },
934
- xe(b)
937
+ xe(g)
935
938
  )) }) : /* @__PURE__ */ B(
936
939
  zt,
937
940
  {
@@ -942,26 +945,26 @@ function ee(e) {
942
945
  /* @__PURE__ */ s(
943
946
  Se,
944
947
  {
945
- componentRef: u().componentRef,
946
- componentOptions: u().componentOptions,
947
- blockChildren: u().blockChildren,
948
- context: u().context,
949
- registeredComponents: u().registeredComponents,
950
- linkComponent: u().linkComponent,
951
- builderBlock: u().builderBlock,
952
- includeBlockProps: u().includeBlockProps,
953
- isInteractive: u().isInteractive
948
+ componentRef: c().componentRef,
949
+ componentOptions: c().componentOptions,
950
+ blockChildren: c().blockChildren,
951
+ context: c().context,
952
+ registeredComponents: c().registeredComponents,
953
+ linkComponent: c().linkComponent,
954
+ builderBlock: c().builderBlock,
955
+ includeBlockProps: c().includeBlockProps,
956
+ isInteractive: c().isInteractive
954
957
  }
955
958
  ),
956
- (g = d()) == null ? void 0 : g.map((f) => /* @__PURE__ */ s(
959
+ (b = d()) == null ? void 0 : b.map((u) => /* @__PURE__ */ s(
957
960
  ee,
958
961
  {
959
- block: f,
962
+ block: u,
960
963
  registeredComponents: e.registeredComponents,
961
964
  linkComponent: e.linkComponent,
962
965
  context: e.context
963
966
  },
964
- f.id
967
+ u.id
965
968
  ))
966
969
  ]
967
970
  }
@@ -1011,9 +1014,9 @@ function Qt(e) {
1011
1014
  "*"
1012
1015
  ));
1013
1016
  }
1014
- return P(() => {
1015
- }, []), P(() => {
1016
- }, [e.blocks]), /* @__PURE__ */ B(R, { children: [
1017
+ return R(() => {
1018
+ }, []), R(() => {
1019
+ }, [e.blocks]), /* @__PURE__ */ B(P, { children: [
1017
1020
  /* @__PURE__ */ s(
1018
1021
  e.BlocksWrapper,
1019
1022
  {
@@ -1049,7 +1052,7 @@ function $(e) {
1049
1052
  classNameProp: e.className,
1050
1053
  BlocksWrapper: ((i = e.context) == null ? void 0 : i.BlocksWrapper) || (t == null ? void 0 : t.BlocksWrapper),
1051
1054
  BlocksWrapperProps: ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || (t == null ? void 0 : t.BlocksWrapperProps),
1052
- children: e.blocks ? /* @__PURE__ */ s(R, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ s(
1055
+ children: e.blocks ? /* @__PURE__ */ s(P, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ s(
1053
1056
  ee,
1054
1057
  {
1055
1058
  block: o,
@@ -1064,7 +1067,7 @@ function $(e) {
1064
1067
  }
1065
1068
  const Yt = (e) => `builder-columns ${e}-breakpoints`;
1066
1069
  function Xt(e) {
1067
- var b, S;
1070
+ var g, v;
1068
1071
  function t() {
1069
1072
  return typeof e.space == "number" ? e.space || 0 : 20;
1070
1073
  }
@@ -1097,20 +1100,20 @@ function Xt(e) {
1097
1100
  }) {
1098
1101
  return i() === "never" ? k : p;
1099
1102
  }
1100
- function u() {
1103
+ function c() {
1101
1104
  return e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column";
1102
1105
  }
1103
1106
  function h() {
1104
1107
  return {
1105
- "--flex-dir": u(),
1108
+ "--flex-dir": c(),
1106
1109
  "--flex-dir-tablet": l({
1107
- stackedStyle: u(),
1110
+ stackedStyle: c(),
1108
1111
  desktopStyle: "row"
1109
1112
  })
1110
1113
  };
1111
1114
  }
1112
- function g(p) {
1113
- const k = p === 0 ? 0 : t(), C = o(p), V = `${k}px`, w = "100%", x = 0;
1115
+ function b(p) {
1116
+ const k = p === 0 ? 0 : t(), C = o(p), V = `${k}px`, w = "100%", S = 0;
1114
1117
  return {
1115
1118
  ...{
1116
1119
  display: "flex",
@@ -1124,7 +1127,7 @@ function Xt(e) {
1124
1127
  desktopStyle: C
1125
1128
  }),
1126
1129
  "--column-margin-left-mobile": d({
1127
- stackedStyle: x,
1130
+ stackedStyle: S,
1128
1131
  desktopStyle: V
1129
1132
  }),
1130
1133
  "--column-width-tablet": l({
@@ -1132,21 +1135,21 @@ function Xt(e) {
1132
1135
  desktopStyle: C
1133
1136
  }),
1134
1137
  "--column-margin-left-tablet": l({
1135
- stackedStyle: x,
1138
+ stackedStyle: S,
1136
1139
  desktopStyle: V
1137
1140
  })
1138
1141
  };
1139
1142
  }
1140
- function c(p) {
1143
+ function m(p) {
1141
1144
  var C, V;
1142
1145
  return je(
1143
1146
  ((V = (C = e.builderContext.content) == null ? void 0 : C.meta) == null ? void 0 : V.breakpoints) || {}
1144
1147
  )[p].max;
1145
1148
  }
1146
- function v() {
1149
+ function x() {
1147
1150
  const p = `.${e.builderBlock.id}-breakpoints > .builder-column`;
1148
1151
  return `
1149
- @media (max-width: ${c("medium")}px) {
1152
+ @media (max-width: ${m("medium")}px) {
1150
1153
  .${e.builderBlock.id}-breakpoints {
1151
1154
  flex-direction: var(--flex-dir-tablet);
1152
1155
  align-items: stretch;
@@ -1158,7 +1161,7 @@ function Xt(e) {
1158
1161
  }
1159
1162
  }
1160
1163
 
1161
- @media (max-width: ${c("small")}px) {
1164
+ @media (max-width: ${m("small")}px) {
1162
1165
  .${e.builderBlock.id}-breakpoints {
1163
1166
  flex-direction: var(--flex-dir);
1164
1167
  align-items: stretch;
@@ -1171,36 +1174,36 @@ function Xt(e) {
1171
1174
  },
1172
1175
  `;
1173
1176
  }
1174
- function f(p, k) {
1177
+ function u(p, k) {
1175
1178
  return {
1176
1179
  ...p.link ? {
1177
1180
  href: p.link
1178
1181
  } : {},
1179
1182
  [j()]: "builder-column",
1180
- style: qe(g(k))
1183
+ style: qe(b(k))
1181
1184
  };
1182
1185
  }
1183
- return /* @__PURE__ */ B(R, { children: [
1186
+ return /* @__PURE__ */ B(P, { children: [
1184
1187
  /* @__PURE__ */ B(
1185
1188
  "div",
1186
1189
  {
1187
- className: Yt((b = e.builderBlock) == null ? void 0 : b.id) + " div-0369db37",
1190
+ className: Yt((g = e.builderBlock) == null ? void 0 : g.id) + " div-0369db37",
1188
1191
  style: h(),
1189
1192
  children: [
1190
1193
  /* @__PURE__ */ s(
1191
1194
  K,
1192
1195
  {
1193
1196
  id: "builderio-columns",
1194
- styles: v(),
1197
+ styles: x(),
1195
1198
  nonce: e.builderContext.nonce
1196
1199
  }
1197
1200
  ),
1198
- (S = e.columns) == null ? void 0 : S.map((p, k) => /* @__PURE__ */ s(
1201
+ (v = e.columns) == null ? void 0 : v.map((p, k) => /* @__PURE__ */ s(
1199
1202
  de,
1200
1203
  {
1201
1204
  TagName: a(p),
1202
1205
  actionAttributes: {},
1203
- attributes: f(p, k),
1206
+ attributes: u(p, k),
1204
1207
  children: /* @__PURE__ */ s(
1205
1208
  $,
1206
1209
  {
@@ -1262,21 +1265,21 @@ function ie(e) {
1262
1265
  return e.match(/cdn\.shopify\.com/) ? t.map((n) => [tn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1263
1266
  }
1264
1267
  function nn(e) {
1265
- var a, r, o, l, d, u;
1268
+ var a, r, o, l, d, c;
1266
1269
  function t() {
1267
- var c;
1268
- const g = e.image || e.src;
1269
- if (!g || // We can auto add srcset for cdn.builder.io and shopify
1270
+ var m;
1271
+ const b = e.image || e.src;
1272
+ if (!b || // We can auto add srcset for cdn.builder.io and shopify
1270
1273
  // images, otherwise you can supply this prop manually
1271
- !(typeof g == "string" && (g.match(/builder\.io/) || g.match(/cdn\.shopify\.com/))))
1274
+ !(typeof b == "string" && (b.match(/builder\.io/) || b.match(/cdn\.shopify\.com/))))
1272
1275
  return e.srcset;
1273
1276
  if (!e.noWebp) {
1274
- if (e.srcset && ((c = e.image) != null && c.includes("builder.io/api/v1/image"))) {
1277
+ if (e.srcset && ((m = e.image) != null && m.includes("builder.io/api/v1/image"))) {
1275
1278
  if (!e.srcset.includes(e.image.split("?")[0]))
1276
- return console.debug("Removed given srcset"), ie(g);
1279
+ return console.debug("Removed given srcset"), ie(b);
1277
1280
  } else if (e.image && !e.srcset)
1278
- return ie(g);
1279
- return ie(g);
1281
+ return ie(b);
1282
+ return ie(b);
1280
1283
  }
1281
1284
  }
1282
1285
  function n() {
@@ -1293,9 +1296,9 @@ function nn(e) {
1293
1296
  };
1294
1297
  return e.aspectRatio ? h : void 0;
1295
1298
  }
1296
- return P(() => {
1297
- }, []), /* @__PURE__ */ B(R, { children: [
1298
- /* @__PURE__ */ B(R, { children: [
1299
+ return R(() => {
1300
+ }, []), /* @__PURE__ */ B(P, { children: [
1301
+ /* @__PURE__ */ B(P, { children: [
1299
1302
  /* @__PURE__ */ B("picture", { children: [
1300
1303
  n() ? /* @__PURE__ */ s("source", { type: "image/webp", srcSet: n() }) : null,
1301
1304
  /* @__PURE__ */ s(
@@ -1327,8 +1330,8 @@ function nn(e) {
1327
1330
  }
1328
1331
  }
1329
1332
  ) : null,
1330
- (l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(R, { children: e.children }) : null,
1331
- !e.fitContent && ((u = (d = e.builderBlock) == null ? void 0 : d.children) != null && u.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
1333
+ (l = (o = e.builderBlock) == null ? void 0 : o.children) != null && l.length && e.fitContent ? /* @__PURE__ */ s(P, { children: e.children }) : null,
1334
+ !e.fitContent && ((c = (d = e.builderBlock) == null ? void 0 : d.children) != null && c.length) ? /* @__PURE__ */ s("div", { className: "div-3cc22d08-2", children: e.children }) : null
1332
1335
  ] }),
1333
1336
  /* @__PURE__ */ s("style", { children: `.img-3cc22d08 {
1334
1337
  opacity: 1;
@@ -1496,7 +1499,7 @@ const ae = {
1496
1499
  }
1497
1500
  }, Te = (e) => e.toString();
1498
1501
  function rn(e) {
1499
- var g;
1502
+ var b;
1500
1503
  const [t, n] = I(() => []);
1501
1504
  function i() {
1502
1505
  return !!(e.grid || e.oneAtATime);
@@ -1514,7 +1517,7 @@ function rn(e) {
1514
1517
  };
1515
1518
  }
1516
1519
  function r() {
1517
- const v = {
1520
+ const x = {
1518
1521
  ...{
1519
1522
  display: "flex",
1520
1523
  flexDirection: "column"
@@ -1523,75 +1526,75 @@ function rn(e) {
1523
1526
  cursor: "pointer"
1524
1527
  };
1525
1528
  return Object.fromEntries(
1526
- Object.entries(v).filter(([f, b]) => b !== void 0)
1529
+ Object.entries(x).filter(([u, g]) => g !== void 0)
1527
1530
  );
1528
1531
  }
1529
- function o(c) {
1530
- return `builder-accordion-title builder-accordion-title-${t.includes(c) ? "open" : "closed"}`;
1532
+ function o(m) {
1533
+ return `builder-accordion-title builder-accordion-title-${t.includes(m) ? "open" : "closed"}`;
1531
1534
  }
1532
- function l(c) {
1533
- return `builder-accordion-detail builder-accordion-detail-${t.includes(c) ? "open" : "closed"}`;
1535
+ function l(m) {
1536
+ return `builder-accordion-detail builder-accordion-detail-${t.includes(m) ? "open" : "closed"}`;
1534
1537
  }
1535
1538
  function d() {
1536
- let c = null;
1539
+ let m = null;
1537
1540
  if (e.grid && t.length && document) {
1538
- const f = t[0];
1539
- let S = document.querySelector(
1540
- `.builder-accordion-title[data-index="${f}"]`
1541
+ const u = t[0];
1542
+ let v = document.querySelector(
1543
+ `.builder-accordion-title[data-index="${u}"]`
1541
1544
  );
1542
- if (c = f, S) {
1543
- let p = S.getBoundingClientRect();
1544
- for (; S = S && S.nextElementSibling; )
1545
- if (S) {
1546
- if (S.classList.contains("builder-accordion-detail"))
1545
+ if (m = u, v) {
1546
+ let p = v.getBoundingClientRect();
1547
+ for (; v = v && v.nextElementSibling; )
1548
+ if (v) {
1549
+ if (v.classList.contains("builder-accordion-detail"))
1547
1550
  continue;
1548
- const k = S.getBoundingClientRect();
1551
+ const k = v.getBoundingClientRect();
1549
1552
  if (k.left > p.left) {
1550
1553
  const C = parseInt(
1551
- S.getAttribute("data-index") || "",
1554
+ v.getAttribute("data-index") || "",
1552
1555
  10
1553
1556
  );
1554
- isNaN(C) || (p = k, c = C);
1557
+ isNaN(C) || (p = k, m = C);
1555
1558
  } else
1556
1559
  break;
1557
1560
  }
1558
1561
  }
1559
1562
  }
1560
- return typeof c == "number" && (c = c + 1), c;
1563
+ return typeof m == "number" && (m = m + 1), m;
1561
1564
  }
1562
- function u() {
1563
- const c = {
1565
+ function c() {
1566
+ const m = {
1564
1567
  order: typeof d() == "number" ? d() : void 0,
1565
1568
  ...e.grid && {
1566
1569
  width: "100%"
1567
1570
  }
1568
1571
  };
1569
1572
  return Object.fromEntries(
1570
- Object.entries(c).filter(([v, f]) => f !== void 0)
1573
+ Object.entries(m).filter(([x, u]) => u !== void 0)
1571
1574
  );
1572
1575
  }
1573
- function h(c) {
1574
- t.includes(c) ? n(i() ? [] : t.filter((v) => v !== c)) : n(i() ? [c] : t.concat(c));
1576
+ function h(m) {
1577
+ t.includes(m) ? n(i() ? [] : t.filter((x) => x !== m)) : n(i() ? [m] : t.concat(m));
1575
1578
  }
1576
- return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (g = e.items) == null ? void 0 : g.map((c, v) => /* @__PURE__ */ B(nt.Fragment, { children: [
1579
+ return /* @__PURE__ */ s("div", { className: "builder-accordion", style: a(), children: (b = e.items) == null ? void 0 : b.map((m, x) => /* @__PURE__ */ B(nt.Fragment, { children: [
1577
1580
  /* @__PURE__ */ s(
1578
1581
  "div",
1579
1582
  {
1580
- className: o(v),
1583
+ className: o(x),
1581
1584
  style: {
1582
1585
  ...r(),
1583
1586
  ...e.grid && {
1584
1587
  width: e.gridRowWidth,
1585
- order: d() !== null ? Te(v) : Te(v + 1)
1588
+ order: d() !== null ? Te(x) : Te(x + 1)
1586
1589
  }
1587
1590
  },
1588
- "data-index": v,
1589
- onClick: (f) => h(v),
1591
+ "data-index": x,
1592
+ onClick: (u) => h(x),
1590
1593
  children: /* @__PURE__ */ s(
1591
1594
  $,
1592
1595
  {
1593
- blocks: c.title,
1594
- path: `items.${v}.title`,
1596
+ blocks: m.title,
1597
+ path: `items.${x}.title`,
1595
1598
  parent: e.builderBlock.id,
1596
1599
  context: e.builderContext,
1597
1600
  registeredComponents: e.builderComponents,
@@ -1600,16 +1603,16 @@ function rn(e) {
1600
1603
  )
1601
1604
  }
1602
1605
  ),
1603
- t.includes(v) ? /* @__PURE__ */ s(
1606
+ t.includes(x) ? /* @__PURE__ */ s(
1604
1607
  "div",
1605
1608
  {
1606
- className: l(v),
1607
- style: u(),
1609
+ className: l(x),
1610
+ style: c(),
1608
1611
  children: /* @__PURE__ */ s(
1609
1612
  $,
1610
1613
  {
1611
- blocks: c.detail,
1612
- path: `items.${v}.detail`,
1614
+ blocks: m.detail,
1615
+ path: `items.${x}.detail`,
1613
1616
  parent: e.builderBlock.id,
1614
1617
  context: e.builderContext,
1615
1618
  registeredComponents: e.builderComponents,
@@ -1618,7 +1621,7 @@ function rn(e) {
1618
1621
  )
1619
1622
  }
1620
1623
  ) : null
1621
- ] }, v)) });
1624
+ ] }, x)) });
1622
1625
  }
1623
1626
  const ln = {
1624
1627
  name: "Core:Button",
@@ -1890,15 +1893,15 @@ const ln = {
1890
1893
  onChange: (e) => {
1891
1894
  e.delete("srcset"), e.delete("noWebp");
1892
1895
  function n(o, l = 6e4) {
1893
- return new Promise((d, u) => {
1896
+ return new Promise((d, c) => {
1894
1897
  const h = document.createElement("img");
1895
- let g = !1;
1898
+ let b = !1;
1896
1899
  h.onload = () => {
1897
- g = !0, d(h);
1898
- }, h.addEventListener("error", (c) => {
1899
- console.warn("Image load failed", c.error), u(c.error);
1900
+ b = !0, d(h);
1901
+ }, h.addEventListener("error", (m) => {
1902
+ console.warn("Image load failed", m.error), c(m.error);
1900
1903
  }), h.src = o, setTimeout(() => {
1901
- g || u(new Error("Image load timed out"));
1904
+ b || c(new Error("Image load timed out"));
1902
1905
  }, l);
1903
1906
  });
1904
1907
  }
@@ -2028,50 +2031,50 @@ function Y(e) {
2028
2031
  );
2029
2032
  }
2030
2033
  function fn(e, t, n, i) {
2031
- function a(u) {
2032
- return typeof u == "string";
2034
+ function a(c) {
2035
+ return typeof c == "string";
2033
2036
  }
2034
- function r(u) {
2035
- return typeof u == "number";
2037
+ function r(c) {
2038
+ return typeof c == "number";
2036
2039
  }
2037
- function o(u, h) {
2040
+ function o(c, h) {
2038
2041
  return (() => {
2039
- const c = h.property, v = h.operator;
2040
- let f = h.value;
2041
- if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (f = h.value.slice(0, -1)), !(c && v))
2042
+ const m = h.property, x = h.operator;
2043
+ let u = h.value;
2044
+ if (h && h.property === "urlPath" && h.value && typeof h.value == "string" && h.value !== "/" && h.value.endsWith("/") && (u = h.value.slice(0, -1)), !(m && x))
2042
2045
  return !0;
2043
- if (Array.isArray(f))
2044
- return v === "isNot" ? f.every((S) => o(u, {
2045
- property: c,
2046
- operator: v,
2047
- value: S
2048
- })) : !!f.find((S) => o(u, {
2049
- property: c,
2050
- operator: v,
2051
- value: S
2046
+ if (Array.isArray(u))
2047
+ return x === "isNot" ? u.every((v) => o(c, {
2048
+ property: m,
2049
+ operator: x,
2050
+ value: v
2051
+ })) : !!u.find((v) => o(c, {
2052
+ property: m,
2053
+ operator: x,
2054
+ value: v
2052
2055
  }));
2053
- const b = u[c];
2054
- if (Array.isArray(b))
2055
- return b.includes(f);
2056
- switch (v) {
2056
+ const g = c[m];
2057
+ if (Array.isArray(g))
2058
+ return g.includes(u);
2059
+ switch (x) {
2057
2060
  case "is":
2058
- return b === f;
2061
+ return g === u;
2059
2062
  case "isNot":
2060
- return b !== f;
2063
+ return g !== u;
2061
2064
  case "contains":
2062
- return (a(b) || Array.isArray(b)) && b.includes(String(f));
2065
+ return (a(g) || Array.isArray(g)) && g.includes(String(u));
2063
2066
  case "startsWith":
2064
- return a(b) && b.startsWith(String(f));
2067
+ return a(g) && g.startsWith(String(u));
2065
2068
  case "endsWith":
2066
- return a(b) && b.endsWith(String(f));
2069
+ return a(g) && g.endsWith(String(u));
2067
2070
  case "greaterThan":
2068
- return r(b) && r(f) && b > f;
2071
+ return r(g) && r(u) && g > u;
2069
2072
  case "lessThan":
2070
- return r(b) && r(f) && b < f;
2073
+ return r(g) && r(u) && g < u;
2071
2074
  case "greaterThanOrEqualTo":
2072
- return r(b) && r(f) && b >= f;
2075
+ return r(g) && r(u) && g >= u;
2073
2076
  case "lessThanOrEqualTo":
2074
- return r(b) && r(f) && b <= f;
2077
+ return r(g) && r(u) && g <= u;
2075
2078
  default:
2076
2079
  return !1;
2077
2080
  }
@@ -2082,7 +2085,7 @@ function fn(e, t, n, i) {
2082
2085
  startDate: n,
2083
2086
  endDate: i
2084
2087
  }, d = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
2085
- return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => o(e, u));
2088
+ return l.startDate && new Date(l.startDate) > d || l.endDate && new Date(l.endDate) < d ? !1 : !l.query || !l.query.length ? !0 : l.query.every((c) => o(e, c));
2086
2089
  }
2087
2090
  const hn = `function getPersonalizedVariant(variants, blockId, locale) {
2088
2091
  if (!navigator.cookieEnabled) {
@@ -2254,76 +2257,76 @@ const yn = (e, t, n) => `
2254
2257
  })();
2255
2258
  `;
2256
2259
  function vn(e) {
2257
- var b, S, p, k, C, V, w;
2260
+ var g, v, p, k, C, V, w;
2258
2261
  const t = L(null), [n, i] = I(
2259
2262
  () => be.getUserAttributes()
2260
2263
  ), [a, r] = I(
2261
2264
  () => {
2262
- var x, m, y;
2265
+ var S, f, y;
2263
2266
  return yn(
2264
2267
  e.variants,
2265
- ((x = e.builderBlock) == null ? void 0 : x.id) || "none",
2266
- (y = (m = e.builderContext) == null ? void 0 : m.rootState) == null ? void 0 : y.locale
2268
+ ((S = e.builderBlock) == null ? void 0 : S.id) || "none",
2269
+ (y = (f = e.builderContext) == null ? void 0 : f.rootState) == null ? void 0 : y.locale
2267
2270
  );
2268
2271
  }
2269
- ), [o, l] = I(() => []), [d, u] = I(
2272
+ ), [o, l] = I(() => []), [d, c] = I(
2270
2273
  () => {
2271
- var x;
2274
+ var S;
2272
2275
  return bn(
2273
2276
  e.variants,
2274
- M((x = e.builderContext) == null ? void 0 : x.canTrack)
2277
+ M((S = e.builderContext) == null ? void 0 : S.canTrack)
2275
2278
  );
2276
2279
  }
2277
- ), [h, g] = I(() => !1);
2278
- function c() {
2279
- return (e.variants || []).filter((x) => {
2280
- var m, y, T, E;
2280
+ ), [h, b] = I(() => !1);
2281
+ function m() {
2282
+ return (e.variants || []).filter((S) => {
2283
+ var f, y, T, E;
2281
2284
  return fn(
2282
2285
  {
2283
- ...(y = (m = e.builderContext) == null ? void 0 : m.rootState) != null && y.locale ? {
2286
+ ...(y = (f = e.builderContext) == null ? void 0 : f.rootState) != null && y.locale ? {
2284
2287
  locale: (E = (T = e.builderContext) == null ? void 0 : T.rootState) == null ? void 0 : E.locale
2285
2288
  } : {},
2286
2289
  ...n
2287
2290
  },
2288
- x.query,
2289
- x.startDate,
2290
- x.endDate
2291
+ S.query,
2292
+ S.startDate,
2293
+ S.endDate
2291
2294
  );
2292
2295
  });
2293
2296
  }
2294
- function v() {
2295
- var x;
2297
+ function x() {
2298
+ var S;
2296
2299
  return pn({
2297
2300
  variants: e.variants,
2298
- fallbackBlocks: (x = e.builderBlock) == null ? void 0 : x.children,
2301
+ fallbackBlocks: (S = e.builderBlock) == null ? void 0 : S.children,
2299
2302
  isHydrated: h,
2300
- filteredVariants: c(),
2303
+ filteredVariants: m(),
2301
2304
  previewingIndex: e.previewingIndex
2302
2305
  });
2303
2306
  }
2304
- function f() {
2307
+ function u() {
2305
2308
  return (e.variants || []).map(
2306
- (x, m) => {
2309
+ (S, f) => {
2307
2310
  var y;
2308
- return `[data-variant-id="${(y = e.builderBlock) == null ? void 0 : y.id}-${m}"] { display: none; } `;
2311
+ return `[data-variant-id="${(y = e.builderBlock) == null ? void 0 : y.id}-${f}"] { display: none; } `;
2309
2312
  }
2310
2313
  ).join("");
2311
2314
  }
2312
- return P(() => {
2313
- var m;
2314
- g(!0);
2315
- const x = be.subscribeOnUserAttributesChange(
2315
+ return R(() => {
2316
+ var f;
2317
+ b(!0);
2318
+ const S = be.subscribeOnUserAttributesChange(
2316
2319
  (y) => {
2317
2320
  i(y);
2318
2321
  }
2319
2322
  );
2320
2323
  if (!(N() || X())) {
2321
- const y = c()[0];
2324
+ const y = m()[0];
2322
2325
  t.current && (t.current.dispatchEvent(
2323
2326
  new CustomEvent("builder.variantLoaded", {
2324
2327
  detail: {
2325
2328
  variant: y || "default",
2326
- content: (m = e.builderContext) == null ? void 0 : m.content
2329
+ content: (f = e.builderContext) == null ? void 0 : f.content
2327
2330
  },
2328
2331
  bubbles: !0
2329
2332
  })
@@ -2342,40 +2345,40 @@ function vn(e) {
2342
2345
  });
2343
2346
  }).observe(t.current));
2344
2347
  }
2345
- o.push(x);
2346
- }, []), P(() => () => {
2347
- o.forEach((x) => x());
2348
+ o.push(S);
2349
+ }, []), R(() => () => {
2350
+ o.forEach((S) => S());
2348
2351
  }, []), /* @__PURE__ */ B(
2349
2352
  "div",
2350
2353
  {
2351
2354
  ref: t,
2352
2355
  ...e.attributes,
2353
- className: `builder-personalization-container ${((b = e.attributes) == null ? void 0 : b.className) || ""}`,
2356
+ className: `builder-personalization-container ${((g = e.attributes) == null ? void 0 : g.className) || ""}`,
2354
2357
  children: [
2355
- d ? /* @__PURE__ */ B(R, { children: [
2356
- (S = e.variants) == null ? void 0 : S.map((x, m) => {
2358
+ d ? /* @__PURE__ */ B(P, { children: [
2359
+ (v = e.variants) == null ? void 0 : v.map((S, f) => {
2357
2360
  var y, T;
2358
2361
  return /* @__PURE__ */ s(
2359
2362
  "template",
2360
2363
  {
2361
- "data-variant-id": `${(y = e.builderBlock) == null ? void 0 : y.id}-${m}`,
2364
+ "data-variant-id": `${(y = e.builderBlock) == null ? void 0 : y.id}-${f}`,
2362
2365
  children: /* @__PURE__ */ s(
2363
2366
  $,
2364
2367
  {
2365
- blocks: x.blocks,
2368
+ blocks: S.blocks,
2366
2369
  parent: (T = e.builderBlock) == null ? void 0 : T.id,
2367
- path: `component.options.variants.${m}.blocks`
2370
+ path: `component.options.variants.${f}.blocks`
2368
2371
  }
2369
2372
  )
2370
2373
  },
2371
- m
2374
+ f
2372
2375
  );
2373
2376
  }),
2374
2377
  /* @__PURE__ */ s(
2375
2378
  K,
2376
2379
  {
2377
2380
  nonce: ((p = e.builderContext) == null ? void 0 : p.nonce) || "",
2378
- styles: f(),
2381
+ styles: u(),
2379
2382
  id: `variants-styles-${(k = e.builderBlock) == null ? void 0 : k.id}`
2380
2383
  }
2381
2384
  ),
@@ -2391,9 +2394,9 @@ function vn(e) {
2391
2394
  /* @__PURE__ */ s(
2392
2395
  $,
2393
2396
  {
2394
- blocks: v().blocks,
2397
+ blocks: x().blocks,
2395
2398
  parent: (w = e.builderBlock) == null ? void 0 : w.id,
2396
- path: v().path
2399
+ path: x().path
2397
2400
  }
2398
2401
  )
2399
2402
  ]
@@ -2777,21 +2780,21 @@ const Rn = {
2777
2780
  advanced: !0
2778
2781
  }]
2779
2782
  };
2780
- function Vn(e) {
2783
+ function Pn(e) {
2781
2784
  const t = L(null), [n, i] = I(() => []), [a, r] = I(() => []);
2782
2785
  function o() {
2783
2786
  var d;
2784
2787
  if (!t.current || !((d = t.current) != null && d.getElementsByTagName) || typeof window == "undefined")
2785
2788
  return;
2786
2789
  const l = t.current.getElementsByTagName("script");
2787
- for (let u = 0; u < l.length; u++) {
2788
- const h = l[u];
2790
+ for (let c = 0; c < l.length; c++) {
2791
+ const h = l[c];
2789
2792
  if (h.src) {
2790
2793
  if (n.includes(h.src))
2791
2794
  continue;
2792
2795
  n.push(h.src);
2793
- const g = document.createElement("script");
2794
- g.async = !0, g.src = h.src, document.head.appendChild(g);
2796
+ const b = document.createElement("script");
2797
+ b.async = !0, b.src = h.src, document.head.appendChild(b);
2795
2798
  } else if (!h.type || [
2796
2799
  "text/javascript",
2797
2800
  "application/javascript",
@@ -2801,18 +2804,18 @@ function Vn(e) {
2801
2804
  continue;
2802
2805
  try {
2803
2806
  a.push(h.innerText), new Function(h.innerText)();
2804
- } catch (g) {
2807
+ } catch (b) {
2805
2808
  z.warn(
2806
2809
  "[BUILDER.IO] `CustomCode`: Error running script:",
2807
- g
2810
+ b
2808
2811
  );
2809
2812
  }
2810
2813
  }
2811
2814
  }
2812
2815
  }
2813
- return P(() => {
2816
+ return R(() => {
2814
2817
  o();
2815
- }, []), P(() => {
2818
+ }, []), R(() => {
2816
2819
  N() && o();
2817
2820
  }, [e.code]), /* @__PURE__ */ s(
2818
2821
  "div",
@@ -2823,7 +2826,7 @@ function Vn(e) {
2823
2826
  }
2824
2827
  );
2825
2828
  }
2826
- const Pn = {
2829
+ const Vn = {
2827
2830
  name: "Embed",
2828
2831
  static: !0,
2829
2832
  inputs: [{
@@ -2844,22 +2847,22 @@ function Nn(e) {
2844
2847
  function d() {
2845
2848
  if (!t.current || !t.current.getElementsByTagName)
2846
2849
  return;
2847
- const u = t.current.getElementsByTagName("script");
2848
- for (let h = 0; h < u.length; h++) {
2849
- const g = u[h];
2850
- if (g.src && !n.includes(g.src)) {
2851
- n.push(g.src);
2852
- const c = document.createElement("script");
2853
- c.async = !0, c.src = g.src, document.head.appendChild(c);
2854
- } else if (An(g) && !a.includes(g.innerText))
2850
+ const c = t.current.getElementsByTagName("script");
2851
+ for (let h = 0; h < c.length; h++) {
2852
+ const b = c[h];
2853
+ if (b.src && !n.includes(b.src)) {
2854
+ n.push(b.src);
2855
+ const m = document.createElement("script");
2856
+ m.async = !0, m.src = b.src, document.head.appendChild(m);
2857
+ } else if (An(b) && !a.includes(b.innerText))
2855
2858
  try {
2856
- a.push(g.innerText), new Function(g.innerText)();
2857
- } catch (c) {
2858
- z.warn("[BUILDER.IO] `Embed`: Error running script:", c);
2859
+ a.push(b.innerText), new Function(b.innerText)();
2860
+ } catch (m) {
2861
+ z.warn("[BUILDER.IO] `Embed`: Error running script:", m);
2859
2862
  }
2860
2863
  }
2861
2864
  }
2862
- return P(() => {
2865
+ return R(() => {
2863
2866
  t.current && !o && (l(!0), d());
2864
2867
  }, [t.current, o]), /* @__PURE__ */ s(
2865
2868
  "div",
@@ -3113,84 +3116,84 @@ const Wn = {
3113
3116
  };
3114
3117
  function Fn(e) {
3115
3118
  const t = L(null), [n, i] = I(() => "unsubmitted"), [a, r] = I(() => null), [o, l] = I(() => "");
3116
- function d(g) {
3117
- var v, f;
3118
- const c = {
3119
+ function d(b) {
3120
+ var x, u;
3121
+ const m = {
3119
3122
  ...e.builderContext.rootState,
3120
- ...g
3123
+ ...b
3121
3124
  };
3122
- e.builderContext.rootSetState ? (f = (v = e.builderContext).rootSetState) == null || f.call(v, c) : e.builderContext.rootState = c;
3125
+ e.builderContext.rootSetState ? (u = (x = e.builderContext).rootSetState) == null || u.call(x, m) : e.builderContext.rootState = m;
3123
3126
  }
3124
- function u() {
3127
+ function c() {
3125
3128
  return N() && e.previewState || n;
3126
3129
  }
3127
- function h(g) {
3128
- var v;
3129
- const c = e.sendWithJs || e.sendSubmissionsTo === "email";
3130
+ function h(b) {
3131
+ var x;
3132
+ const m = e.sendWithJs || e.sendSubmissionsTo === "email";
3130
3133
  if (e.sendSubmissionsTo === "zapier")
3131
- g.preventDefault();
3132
- else if (c) {
3134
+ b.preventDefault();
3135
+ else if (m) {
3133
3136
  if (!(e.action || e.sendSubmissionsTo === "email")) {
3134
- g.preventDefault();
3137
+ b.preventDefault();
3135
3138
  return;
3136
3139
  }
3137
- g.preventDefault();
3138
- const f = g.currentTarget || g.target, b = e.customHeaders || {};
3139
- let S;
3140
- const p = new FormData(f), k = Array.from(f.querySelectorAll("input,select,textarea")).filter((m) => !!m.name).map((m) => {
3140
+ b.preventDefault();
3141
+ const u = b.currentTarget || b.target, g = e.customHeaders || {};
3142
+ let v;
3143
+ const p = new FormData(u), k = Array.from(u.querySelectorAll("input,select,textarea")).filter((f) => !!f.name).map((f) => {
3141
3144
  let y;
3142
- const T = m.name;
3143
- if (m instanceof HTMLInputElement)
3144
- if (m.type === "radio") {
3145
- if (m.checked)
3146
- return y = m.name, {
3145
+ const T = f.name;
3146
+ if (f instanceof HTMLInputElement)
3147
+ if (f.type === "radio") {
3148
+ if (f.checked)
3149
+ return y = f.name, {
3147
3150
  key: T,
3148
3151
  value: y
3149
3152
  };
3150
- } else if (m.type === "checkbox")
3151
- y = m.checked;
3152
- else if (m.type === "number" || m.type === "range") {
3153
- const E = m.valueAsNumber;
3153
+ } else if (f.type === "checkbox")
3154
+ y = f.checked;
3155
+ else if (f.type === "number" || f.type === "range") {
3156
+ const E = f.valueAsNumber;
3154
3157
  isNaN(E) || (y = E);
3155
3158
  } else
3156
- m.type === "file" ? y = m.files : y = m.value;
3159
+ f.type === "file" ? y = f.files : y = f.value;
3157
3160
  else
3158
- y = m.value;
3161
+ y = f.value;
3159
3162
  return {
3160
3163
  key: T,
3161
3164
  value: y
3162
3165
  };
3163
3166
  });
3164
3167
  let C = e.contentType;
3165
- if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: m }) => {
3166
- (m instanceof File || Array.isArray(m) && m[0] instanceof File || m instanceof FileList) && (C = "multipart/form-data");
3168
+ if (e.sendSubmissionsTo === "email" && (C = "multipart/form-data"), Array.from(k).forEach(({ value: f }) => {
3169
+ (f instanceof File || Array.isArray(f) && f[0] instanceof File || f instanceof FileList) && (C = "multipart/form-data");
3167
3170
  }), C !== "application/json")
3168
- S = p;
3171
+ v = p;
3169
3172
  else {
3170
- const m = {};
3173
+ const f = {};
3171
3174
  Array.from(k).forEach(({ value: y, key: T }) => {
3172
- We(m, T, y);
3173
- }), S = JSON.stringify(m);
3175
+ We(f, T, y);
3176
+ }), v = JSON.stringify(f);
3174
3177
  }
3175
- C && C !== "multipart/form-data" && (c && ((v = e.action) != null && v.includes("zapier.com")) || (b["content-type"] = C));
3176
- const V = new CustomEvent("presubmit", { detail: { body: S } });
3178
+ C && C !== "multipart/form-data" && (m && ((x = e.action) != null && x.includes("zapier.com")) || (g["content-type"] = C));
3179
+ const V = new CustomEvent("presubmit", { detail: { body: v } });
3177
3180
  if (t.current && (t.current.dispatchEvent(V), V.defaultPrevented))
3178
3181
  return;
3179
3182
  i("sending");
3180
3183
  const w = `${$n() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
3181
3184
  e.sendSubmissionsToEmail || ""
3182
- )}&name=${encodeURIComponent(e.name || "")}`, x = e.sendSubmissionsTo === "email" ? w : e.action;
3183
- Pe(x), fetch(x, { body: S, headers: b, method: e.method || "post" }).then(
3184
- async (m) => {
3185
+ )}&name=${encodeURIComponent(e.name || "")}`, S = e.sendSubmissionsTo === "email" ? w : e.action;
3186
+ Ve(S), fetch(S, { body: v, headers: g, method: e.method || "post" }).then(
3187
+ async (f) => {
3185
3188
  let y;
3186
- const T = m.headers.get("content-type");
3187
- if (T && T.indexOf("application/json") !== -1 ? y = await m.json() : y = await m.text(), !m.ok && e.errorMessagePath) {
3189
+ const T = f.headers.get("content-type");
3190
+ if (T && T.indexOf("application/json") !== -1 ? y = await f.json() : y = await f.text(), !f.ok && e.errorMessagePath) {
3188
3191
  let E = $e(y, e.errorMessagePath);
3189
3192
  E && (typeof E != "string" && (E = JSON.stringify(E)), l(E), d({ formErrorMessage: E }));
3190
3193
  }
3191
- if (r(y), i(m.ok ? "success" : "error"), m.ok) {
3194
+ if (r(y), i(f.ok ? "success" : "error"), f.ok) {
3192
3195
  const E = new CustomEvent("submit:success", {
3193
- detail: { res: m, body: y }
3196
+ detail: { res: f, body: y }
3194
3197
  });
3195
3198
  if (t.current) {
3196
3199
  if (t.current.dispatchEvent(E), E.defaultPrevented)
@@ -3207,16 +3210,16 @@ function Fn(e) {
3207
3210
  location.href = e.successUrl;
3208
3211
  }
3209
3212
  },
3210
- (m) => {
3213
+ (f) => {
3211
3214
  const y = new CustomEvent("submit:error", {
3212
- detail: { error: m }
3215
+ detail: { error: f }
3213
3216
  });
3214
- t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (r(m), i("error"));
3217
+ t.current && (t.current.dispatchEvent(y), y.defaultPrevented) || (r(f), i("error"));
3215
3218
  }
3216
3219
  );
3217
3220
  }
3218
3221
  }
3219
- return /* @__PURE__ */ B(R, { children: [
3222
+ return /* @__PURE__ */ B(P, { children: [
3220
3223
  " ",
3221
3224
  /* @__PURE__ */ B(
3222
3225
  "form",
@@ -3226,11 +3229,11 @@ function Fn(e) {
3226
3229
  action: !e.sendWithJs && e.action,
3227
3230
  method: e.method,
3228
3231
  name: e.name,
3229
- onSubmit: (g) => h(g),
3232
+ onSubmit: (b) => h(b),
3230
3233
  ...e.attributes,
3231
3234
  children: [
3232
3235
  e.children,
3233
- u() === "error" ? /* @__PURE__ */ s(
3236
+ c() === "error" ? /* @__PURE__ */ s(
3234
3237
  $,
3235
3238
  {
3236
3239
  path: "errorMessage",
@@ -3238,7 +3241,7 @@ function Fn(e) {
3238
3241
  context: e.builderContext
3239
3242
  }
3240
3243
  ) : null,
3241
- u() === "sending" ? /* @__PURE__ */ s(
3244
+ c() === "sending" ? /* @__PURE__ */ s(
3242
3245
  $,
3243
3246
  {
3244
3247
  path: "sendingMessage",
@@ -3246,8 +3249,8 @@ function Fn(e) {
3246
3249
  context: e.builderContext
3247
3250
  }
3248
3251
  ) : null,
3249
- u() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
3250
- u() === "success" ? /* @__PURE__ */ s(
3252
+ c() === "error" && a ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-7acc3b46", children: JSON.stringify(a, null, 2) }) : null,
3253
+ c() === "success" ? /* @__PURE__ */ s(
3251
3254
  $,
3252
3255
  {
3253
3256
  path: "successMessage",
@@ -3583,7 +3586,7 @@ const Jn = {
3583
3586
  }
3584
3587
  };
3585
3588
  function Gn(e) {
3586
- var o, l, d, u, h, g, c;
3589
+ var o, l, d, c, h, b, m;
3587
3590
  const t = L(null);
3588
3591
  function n() {
3589
3592
  return {
@@ -3611,28 +3614,28 @@ function Gn(e) {
3611
3614
  }
3612
3615
  const [a, r] = I(() => {
3613
3616
  });
3614
- return P(() => {
3617
+ return R(() => {
3615
3618
  if (e.lazyLoad) {
3616
- const v = new IntersectionObserver(function(f) {
3617
- f.forEach(function(b) {
3618
- if (!b.isIntersecting)
3619
+ const x = new IntersectionObserver(function(u) {
3620
+ u.forEach(function(g) {
3621
+ if (!g.isIntersecting)
3619
3622
  return;
3620
- const S = b.target;
3623
+ const v = g.target;
3621
3624
  try {
3622
- Array.from(S.children).filter(
3625
+ Array.from(v.children).filter(
3623
3626
  (p) => p instanceof HTMLElement && p.tagName === "SOURCE"
3624
3627
  ).forEach((p) => {
3625
3628
  const k = p.dataset.src;
3626
3629
  k && (p.src = k);
3627
- }), S.load(), v.unobserve(S);
3630
+ }), v.load(), x.unobserve(v);
3628
3631
  } catch (p) {
3629
3632
  console.error("Error loading lazy video:", p);
3630
3633
  }
3631
3634
  });
3632
3635
  });
3633
- t.current && v.observe(t.current), r(v);
3636
+ t.current && x.observe(t.current), r(x);
3634
3637
  }
3635
- }, []), P(() => () => {
3638
+ }, []), R(() => () => {
3636
3639
  a && a.disconnect();
3637
3640
  }, []), /* @__PURE__ */ B(
3638
3641
  "div",
@@ -3686,7 +3689,7 @@ function Gn(e) {
3686
3689
  }
3687
3690
  }
3688
3691
  ) : null,
3689
- (h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
3692
+ (h = (c = e.builderBlock) == null ? void 0 : c.children) != null && h.length && e.fitContent ? /* @__PURE__ */ s(
3690
3693
  "div",
3691
3694
  {
3692
3695
  style: {
@@ -3697,7 +3700,7 @@ function Gn(e) {
3697
3700
  children: e.children
3698
3701
  }
3699
3702
  ) : null,
3700
- (c = (g = e.builderBlock) == null ? void 0 : g.children) != null && c.length && !e.fitContent ? /* @__PURE__ */ s(
3703
+ (m = (b = e.builderBlock) == null ? void 0 : b.children) != null && m.length && !e.fitContent ? /* @__PURE__ */ s(
3701
3704
  "div",
3702
3705
  {
3703
3706
  style: {
@@ -3719,11 +3722,11 @@ function Gn(e) {
3719
3722
  );
3720
3723
  }
3721
3724
  const Qn = () => [{
3722
- component: Vn,
3725
+ component: Pn,
3723
3726
  ...Rn
3724
3727
  }, {
3725
3728
  component: Nn,
3726
- ...Pn
3729
+ ...Vn
3727
3730
  }, {
3728
3731
  component: Fn,
3729
3732
  ...Wn
@@ -3947,11 +3950,11 @@ font-weight: 400;
3947
3950
  for (const l in e.files) {
3948
3951
  if (!(String(Number(l)) === l))
3949
3952
  continue;
3950
- const u = e.files[l];
3951
- u && u !== i && (a += `
3953
+ const c = e.files[l];
3954
+ c && c !== i && (a += `
3952
3955
  @font-face {
3953
3956
  font-family: "${t}";
3954
- src: url('${u}') format('woff2');
3957
+ src: url('${c}') format('woff2');
3955
3958
  font-display: fallback;
3956
3959
  font-weight: ${l};
3957
3960
  }
@@ -3989,23 +3992,23 @@ function gi(e) {
3989
3992
  const t = L(null);
3990
3993
  I(() => !1);
3991
3994
  function n(w) {
3992
- var m, y;
3993
- const x = {
3995
+ var f, y;
3996
+ const S = {
3994
3997
  ...e.builderContextSignal.rootState,
3995
3998
  ...w
3996
3999
  };
3997
- e.builderContextSignal.rootSetState ? (y = (m = e.builderContextSignal).rootSetState) == null || y.call(m, x) : e.setBuilderContextSignal((T) => ({
4000
+ e.builderContextSignal.rootSetState ? (y = (f = e.builderContextSignal).rootSetState) == null || y.call(f, S) : e.setBuilderContextSignal((T) => ({
3998
4001
  ...T,
3999
- rootState: x
4002
+ rootState: S
4000
4003
  }));
4001
4004
  }
4002
4005
  function i(w) {
4003
- var m, y, T, E, A;
4004
- const x = {
4006
+ var f, y, T, E, A;
4007
+ const S = {
4005
4008
  ...e.builderContextSignal.content,
4006
4009
  ...w,
4007
4010
  data: {
4008
- ...(m = e.builderContextSignal.content) == null ? void 0 : m.data,
4011
+ ...(f = e.builderContextSignal.content) == null ? void 0 : f.data,
4009
4012
  ...w == null ? void 0 : w.data
4010
4013
  },
4011
4014
  meta: {
@@ -4016,7 +4019,7 @@ function gi(e) {
4016
4019
  };
4017
4020
  e.setBuilderContextSignal((W) => ({
4018
4021
  ...W,
4019
- content: x
4022
+ content: S
4020
4023
  }));
4021
4024
  }
4022
4025
  function a() {
@@ -4033,32 +4036,32 @@ function gi(e) {
4033
4036
  model: e.model,
4034
4037
  trustedHosts: e.trustedHosts,
4035
4038
  callbacks: {
4036
- configureSdk: (x) => {
4039
+ configureSdk: (S) => {
4037
4040
  var T;
4038
- const { breakpoints: m, contentId: y } = x;
4039
- !y || y !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || m && i({
4041
+ const { breakpoints: f, contentId: y } = S;
4042
+ !y || y !== ((T = e.builderContextSignal.content) == null ? void 0 : T.id) || f && i({
4040
4043
  meta: {
4041
- breakpoints: m
4044
+ breakpoints: f
4042
4045
  }
4043
4046
  });
4044
4047
  },
4045
- animation: (x) => {
4046
- Ue(x);
4048
+ animation: (S) => {
4049
+ Ue(S);
4047
4050
  },
4048
- contentUpdate: (x) => {
4049
- i(x);
4051
+ contentUpdate: (S) => {
4052
+ i(S);
4050
4053
  },
4051
- stateUpdate: (x) => {
4052
- n(x);
4054
+ stateUpdate: (S) => {
4055
+ n(S);
4053
4056
  }
4054
4057
  }
4055
4058
  })(w);
4056
4059
  }
4057
- const [d, u] = I(() => ({})), [h, g] = I(() => ({})), [c, v] = I(() => !1);
4058
- function f(w) {
4059
- var x, m;
4060
+ const [d, c] = I(() => ({})), [h, b] = I(() => ({})), [m, x] = I(() => !1);
4061
+ function u(w) {
4062
+ var S, f;
4060
4063
  if (e.builderContextSignal.content) {
4061
- const y = (x = e.builderContextSignal.content) == null ? void 0 : x.testVariationId, T = (m = e.builderContextSignal.content) == null ? void 0 : m.id;
4064
+ const y = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, T = (f = e.builderContextSignal.content) == null ? void 0 : f.id;
4062
4065
  pe({
4063
4066
  apiHost: e.apiHost,
4064
4067
  type: "click",
@@ -4067,14 +4070,14 @@ function gi(e) {
4067
4070
  apiKey: e.apiKey,
4068
4071
  variationId: y !== T ? y : void 0,
4069
4072
  ...li(w),
4070
- unique: !c
4073
+ unique: !m
4071
4074
  });
4072
4075
  }
4073
- c || v(!0);
4076
+ m || x(!0);
4074
4077
  }
4075
- function b() {
4076
- var x, m, y;
4077
- const w = (y = (m = (x = e.builderContextSignal.content) == null ? void 0 : x.data) == null ? void 0 : m.httpRequests) != null ? y : {};
4078
+ function g() {
4079
+ var S, f, y;
4080
+ const w = (y = (f = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : f.httpRequests) != null ? y : {};
4078
4081
  Object.entries(w).forEach(([T, E]) => {
4079
4082
  if (!E || h[T] || d[T] && !N())
4080
4083
  return;
@@ -4091,7 +4094,7 @@ function gi(e) {
4091
4094
  })
4092
4095
  )
4093
4096
  );
4094
- Pe(A), fetch(A).then((W) => W.json()).then((W) => {
4097
+ Ve(A), fetch(A).then((W) => W.json()).then((W) => {
4095
4098
  n({
4096
4099
  [T]: W
4097
4100
  }), d[T] = !0;
@@ -4102,7 +4105,7 @@ function gi(e) {
4102
4105
  });
4103
4106
  });
4104
4107
  }
4105
- function S() {
4108
+ function v() {
4106
4109
  N() && window.dispatchEvent(
4107
4110
  new CustomEvent(
4108
4111
  "builder:component:stateChange",
@@ -4118,8 +4121,8 @@ function gi(e) {
4118
4121
  );
4119
4122
  }
4120
4123
  const p = L(!1);
4121
- return p.current || (b(), S(), p.current = !0), P(() => {
4122
- var w, x, m, y, T;
4124
+ return p.current || (g(), v(), p.current = !0), R(() => {
4125
+ var w, S, f, y, T;
4123
4126
  if (U()) {
4124
4127
  N() && !e.isNestedRender && (window.addEventListener("message", l), Qe(), Ye({
4125
4128
  ...e.locale ? {
@@ -4143,12 +4146,12 @@ function gi(e) {
4143
4146
  }
4144
4147
  }), window.addEventListener(
4145
4148
  "builder:component:stateChangeListenerActivated",
4146
- S
4149
+ v
4147
4150
  ));
4148
4151
  const E = e.builderContextSignal.content && M(e.canTrack), A = Ze({
4149
- name: `builder.tests.${(x = e.builderContextSignal.content) == null ? void 0 : x.id}`,
4152
+ name: `builder.tests.${(S = e.builderContextSignal.content) == null ? void 0 : S.id}`,
4150
4153
  canTrack: !0
4151
- }), W = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId;
4154
+ }), W = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId;
4152
4155
  if (E && W === A) {
4153
4156
  const D = (y = e.builderContextSignal.content) == null ? void 0 : y.id, F = e.apiKey;
4154
4157
  pe({
@@ -4178,26 +4181,26 @@ function gi(e) {
4178
4181
  });
4179
4182
  }
4180
4183
  }
4181
- }, []), P(() => {
4184
+ }, []), R(() => {
4182
4185
  e.content && i(e.content);
4183
- }, [e.content]), P(() => {
4184
- S();
4185
- }, [e.builderContextSignal.rootState]), P(() => {
4186
+ }, [e.content]), R(() => {
4187
+ v();
4188
+ }, [e.builderContextSignal.rootState]), R(() => {
4186
4189
  e.data && n(e.data);
4187
- }, [e.data]), P(() => {
4190
+ }, [e.data]), R(() => {
4188
4191
  e.locale && n({
4189
4192
  locale: e.locale
4190
4193
  });
4191
- }, [e.locale]), P(() => () => {
4194
+ }, [e.locale]), R(() => () => {
4192
4195
  U() && (window.removeEventListener("message", l), window.removeEventListener(
4193
4196
  "builder:component:stateChangeListenerActivated",
4194
- S
4197
+ v
4195
4198
  ));
4196
4199
  }, []), /* @__PURE__ */ s(me.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content || Re() ? /* @__PURE__ */ s(
4197
4200
  r,
4198
4201
  {
4199
4202
  ref: t,
4200
- onClick: (w) => f(w),
4203
+ onClick: (w) => u(w),
4201
4204
  "builder-content-id": (k = e.builderContextSignal.content) == null ? void 0 : k.id,
4202
4205
  "builder-model": e.model,
4203
4206
  className: hi(
@@ -4262,8 +4265,8 @@ const pi = ({
4262
4265
  },
4263
4266
  meta: e == null ? void 0 : e.meta
4264
4267
  } : void 0;
4265
- function Ve(e) {
4266
- var u, h, g, c, v, f, b, S, p;
4268
+ function Pe(e) {
4269
+ var c, h, b, m, x, u, g, v, p;
4267
4270
  const [t, n] = I(
4268
4271
  () => {
4269
4272
  var k, C;
@@ -4331,7 +4334,7 @@ function Ve(e) {
4331
4334
  e.apiKey || z.error(
4332
4335
  "No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
4333
4336
  );
4334
- const k = (h = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : h.jsCode;
4337
+ const k = (h = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : h.jsCode;
4335
4338
  k && _({
4336
4339
  code: k,
4337
4340
  context: e.context || {},
@@ -4383,15 +4386,15 @@ function Ve(e) {
4383
4386
  {
4384
4387
  nonce: e.nonce || "",
4385
4388
  isNestedRender: e.isNestedRender,
4386
- contentId: (g = o.content) == null ? void 0 : g.id,
4387
- cssCode: (v = (c = o.content) == null ? void 0 : c.data) == null ? void 0 : v.cssCode,
4388
- customFonts: (b = (f = o.content) == null ? void 0 : f.data) == null ? void 0 : b.customFonts
4389
+ contentId: (b = o.content) == null ? void 0 : b.id,
4390
+ cssCode: (x = (m = o.content) == null ? void 0 : m.data) == null ? void 0 : x.cssCode,
4391
+ customFonts: (g = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : g.customFonts
4389
4392
  }
4390
4393
  ),
4391
4394
  /* @__PURE__ */ s(
4392
4395
  $,
4393
4396
  {
4394
- blocks: (p = (S = o.content) == null ? void 0 : S.data) == null ? void 0 : p.blocks,
4397
+ blocks: (p = (v = o.content) == null ? void 0 : v.data) == null ? void 0 : p.blocks,
4395
4398
  context: o,
4396
4399
  registeredComponents: a,
4397
4400
  linkComponent: e.linkComponent
@@ -4434,8 +4437,8 @@ function vi(e) {
4434
4437
  canTrack: M(e.canTrack)
4435
4438
  });
4436
4439
  }
4437
- return P(() => {
4438
- }, []), /* @__PURE__ */ B(R, { children: [
4440
+ return R(() => {
4441
+ }, []), /* @__PURE__ */ B(P, { children: [
4439
4442
  !e.isNestedRender && O !== "reactNative" ? /* @__PURE__ */ s(
4440
4443
  Y,
4441
4444
  {
@@ -4444,7 +4447,7 @@ function vi(e) {
4444
4447
  nonce: e.nonce || ""
4445
4448
  }
4446
4449
  ) : null,
4447
- t ? /* @__PURE__ */ B(R, { children: [
4450
+ t ? /* @__PURE__ */ B(P, { children: [
4448
4451
  /* @__PURE__ */ s(
4449
4452
  K,
4450
4453
  {
@@ -4462,7 +4465,7 @@ function vi(e) {
4462
4465
  }
4463
4466
  ),
4464
4467
  (o = G(e.content)) == null ? void 0 : o.map((l) => /* @__PURE__ */ s(
4465
- Ve,
4468
+ Pe,
4466
4469
  {
4467
4470
  apiHost: e.apiHost,
4468
4471
  isNestedRender: e.isNestedRender,
@@ -4490,7 +4493,7 @@ function vi(e) {
4490
4493
  ))
4491
4494
  ] }) : null,
4492
4495
  /* @__PURE__ */ s(
4493
- Ve,
4496
+ Pe,
4494
4497
  {
4495
4498
  apiHost: e.apiHost,
4496
4499
  nonce: e.nonce,
@@ -4537,7 +4540,7 @@ const xi = async ({
4537
4540
  });
4538
4541
  };
4539
4542
  function Si(e) {
4540
- var l, d, u, h, g;
4543
+ var c, h, b, m, x;
4541
4544
  function t() {
4542
4545
  return "div";
4543
4546
  }
@@ -4545,29 +4548,34 @@ function Si(e) {
4545
4548
  return "div";
4546
4549
  }
4547
4550
  function i() {
4548
- var c, v;
4551
+ var u, g;
4549
4552
  return [
4550
4553
  e.attributes[j()],
4551
4554
  "builder-symbol",
4552
- (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
4553
- (v = e.symbol) != null && v.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4555
+ (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
4556
+ (g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
4554
4557
  ].filter(Boolean).join(" ");
4555
4558
  }
4556
4559
  const [a, r] = I(() => {
4557
- var c;
4558
- return (c = e.symbol) == null ? void 0 : c.content;
4560
+ var u;
4561
+ return (u = e.symbol) == null ? void 0 : u.content;
4562
+ }), [o, l] = I(() => {
4563
+ var u;
4564
+ return (u = e.symbol) == null ? void 0 : u.entry;
4559
4565
  });
4560
- function o() {
4561
- a || xi({
4566
+ function d() {
4567
+ var u;
4568
+ a && o === ((u = e.symbol) == null ? void 0 : u.entry) || xi({
4562
4569
  symbol: e.symbol,
4563
4570
  builderContextValue: e.builderContext
4564
- }).then((c) => {
4565
- c && r(c);
4571
+ }).then((g) => {
4572
+ var v;
4573
+ g && (r(g), l((v = e.symbol) == null ? void 0 : v.entry));
4566
4574
  });
4567
4575
  }
4568
- return P(() => {
4569
- }, []), P(() => {
4570
- o();
4576
+ return R(() => {
4577
+ }, []), R(() => {
4578
+ d();
4571
4579
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: i(), children: /* @__PURE__ */ s(
4572
4580
  vi,
4573
4581
  {
@@ -4577,16 +4585,16 @@ function Si(e) {
4577
4585
  apiKey: e.builderContext.apiKey,
4578
4586
  context: {
4579
4587
  ...e.builderContext.context,
4580
- symbolId: (l = e.builderBlock) == null ? void 0 : l.id
4588
+ symbolId: (c = e.builderBlock) == null ? void 0 : c.id
4581
4589
  },
4582
4590
  customComponents: Object.values(e.builderComponents),
4583
4591
  data: {
4584
- ...(d = e.symbol) == null ? void 0 : d.data,
4592
+ ...(h = e.symbol) == null ? void 0 : h.data,
4585
4593
  ...e.builderContext.localState,
4586
- ...(u = a == null ? void 0 : a.data) == null ? void 0 : u.state
4594
+ ...(b = a == null ? void 0 : a.data) == null ? void 0 : b.state
4587
4595
  },
4588
4596
  canTrack: e.builderContext.canTrack,
4589
- model: (g = (h = e.symbol) == null ? void 0 : h.model) != null ? g : "",
4597
+ model: (x = (m = e.symbol) == null ? void 0 : m.model) != null ? x : "",
4590
4598
  content: a,
4591
4599
  linkComponent: e.builderLinkComponent,
4592
4600
  blocksWrapper: t(),
@@ -4606,5 +4614,5 @@ export {
4606
4614
  Si as Symbol,
4607
4615
  En as Text,
4608
4616
  Gn as Video,
4609
- Vi as setClientUserAttributes
4617
+ Pi as setClientUserAttributes
4610
4618
  };