@builder.io/sdk-react 0.11.2 → 0.11.4

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 (32) hide show
  1. package/lib/browser/index.cjs +25 -25
  2. package/lib/browser/index.mjs +540 -546
  3. package/lib/edge/index.cjs +31 -31
  4. package/lib/edge/index.mjs +1288 -1294
  5. package/lib/node/index.cjs +16 -16
  6. package/lib/node/index.mjs +342 -348
  7. package/package.json +61 -4
  8. package/types/blocks/button/button.d.ts +1 -9
  9. package/types/blocks/button/button.types.d.ts +6 -0
  10. package/types/blocks/columns/columns.d.ts +2 -14
  11. package/types/blocks/columns/columns.types.d.ts +15 -0
  12. package/types/blocks/fragment/fragment.d.ts +1 -5
  13. package/types/blocks/fragment/fragment.types.d.ts +5 -0
  14. package/types/blocks/image/image.d.ts +1 -19
  15. package/types/blocks/image/image.types.d.ts +19 -0
  16. package/types/blocks/section/section.d.ts +1 -9
  17. package/types/blocks/section/section.types.d.ts +6 -0
  18. package/types/blocks/symbol/symbol.d.ts +2 -23
  19. package/types/blocks/symbol/symbol.types.d.ts +18 -0
  20. package/types/blocks/text/text.d.ts +1 -3
  21. package/types/blocks/text/text.types.d.ts +3 -0
  22. package/types/blocks/video/video.d.ts +1 -21
  23. package/types/blocks/video/video.types.d.ts +21 -0
  24. package/types/components/blocks/blocks.d.ts +1 -6
  25. package/types/components/blocks/blocks.types.d.ts +6 -0
  26. package/types/components/content/components/enable-editor.d.ts +1 -1
  27. package/types/components/content/content.helpers.d.ts +1 -1
  28. package/types/components/content-variants/content-variants.types.d.ts +30 -1
  29. package/types/constants/sdk-version.d.ts +1 -1
  30. package/types/functions/get-content/index.d.ts +1 -1
  31. package/types/functions/get-content/types.d.ts +2 -2
  32. package/types/server-index.d.ts +10 -1
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { jsxs as R, Fragment as f, jsx as l } from "react/jsx-runtime";
3
- import { createContext as Ce, useState as S, useContext as se, createElement as we, useRef as ee, useEffect as W } from "react";
2
+ import { jsxs as P, Fragment as h, jsx as c } from "react/jsx-runtime";
3
+ import { createContext as Ce, useState as S, useContext as se, createElement as we, useRef as ee, useEffect as E } from "react";
4
4
  import { i as V, j as $, k as Ne, l as U, m as te, n as J, T as L, r as Fe, o as D, p as de, a as _e, c as Le, b as Ie, q as je, u as ue, v as me, w as Me } from "./server-entry-f978b3a5.js";
5
- import { _ as un, h as mn, f as fn, g as hn, e as gn, d as bn, s as xn, t as yn } from "./server-entry-f978b3a5.js";
5
+ import { _ as mn, h as fn, f as hn, g as gn, e as bn, d as xn, s as yn, t as Sn } from "./server-entry-f978b3a5.js";
6
6
  function Ue(e) {
7
- return /* @__PURE__ */ R(f, { children: [
8
- e.link ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
7
+ return /* @__PURE__ */ P(h, { children: [
8
+ e.link ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
9
9
  "a",
10
10
  {
11
11
  ...e.attributes,
@@ -14,16 +14,16 @@ function Ue(e) {
14
14
  role: "button",
15
15
  children: e.text
16
16
  }
17
- ) }) : /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
17
+ ) }) : /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
18
18
  "button",
19
19
  {
20
20
  ...e.attributes,
21
21
  style: e.attributes.style,
22
- className: e.attributes.className + " button-3ecc5438",
22
+ className: e.attributes.className + " button-fdf49de0",
23
23
  children: e.text
24
24
  }
25
25
  ) }),
26
- /* @__PURE__ */ l("style", { children: `.button-3ecc5438 {
26
+ /* @__PURE__ */ c("style", { children: `.button-fdf49de0 {
27
27
  all: unset;
28
28
  }` })
29
29
  ] });
@@ -81,13 +81,13 @@ const Oe = ({
81
81
  rootSetState: o,
82
82
  rootState: r
83
83
  }) => {
84
- const c = Oe({
84
+ const s = Oe({
85
85
  builder: t,
86
86
  context: n,
87
87
  event: i,
88
88
  state: ze(r, a, o)
89
89
  });
90
- return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
90
+ return new Function(...s.map(([l]) => l), e)(...s.map(([, l]) => l));
91
91
  };
92
92
  function ze(e, t, n) {
93
93
  if (e === t)
@@ -115,7 +115,7 @@ function _({
115
115
  U.warn("Skipping evaluation of empty code block.");
116
116
  return;
117
117
  }
118
- const c = {
118
+ const s = {
119
119
  code: He(e, {
120
120
  isExpression: r
121
121
  }),
@@ -127,9 +127,9 @@ function _({
127
127
  localState: n
128
128
  };
129
129
  try {
130
- return qe(c);
131
- } catch (s) {
132
- U.error("Failed code evaluation: " + s.message, {
130
+ return qe(s);
131
+ } catch (l) {
132
+ U.error("Failed code evaluation: " + l.message, {
133
133
  code: e
134
134
  });
135
135
  return;
@@ -159,15 +159,15 @@ const Qe = ({
159
159
  ...o.actions
160
160
  }
161
161
  };
162
- for (const c in e.bindings) {
163
- const s = e.bindings[c], d = _({
164
- code: s,
162
+ for (const s in e.bindings) {
163
+ const l = e.bindings[s], d = _({
164
+ code: l,
165
165
  localState: n,
166
166
  rootState: i,
167
167
  rootSetState: a,
168
168
  context: t
169
169
  });
170
- Ye(r, c, d);
170
+ Ye(r, s, d);
171
171
  }
172
172
  return r;
173
173
  };
@@ -230,14 +230,14 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
230
230
  if (!Array.isArray(a))
231
231
  return;
232
232
  const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
233
- return a.map((s, d) => ({
233
+ return a.map((l, d) => ({
234
234
  context: {
235
235
  ...t,
236
236
  localState: {
237
237
  ...t.localState,
238
238
  $index: d,
239
- $item: s,
240
- [r]: s,
239
+ $item: l,
240
+ [r]: l,
241
241
  [`$${r}Index`]: d
242
242
  }
243
243
  },
@@ -302,9 +302,9 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
302
302
  }` : i;
303
303
  };
304
304
  function H(e) {
305
- return /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
305
+ return /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
306
306
  }
307
- function ie(e) {
307
+ function tt(e) {
308
308
  function t() {
309
309
  const i = O({
310
310
  block: e.block,
@@ -317,7 +317,7 @@ function ie(e) {
317
317
  return J(i.hide) ? !i.hide : J(i.show) ? i.show : !0;
318
318
  }
319
319
  function n() {
320
- var x;
320
+ var C;
321
321
  const i = O({
322
322
  block: e.block,
323
323
  localState: e.context.localState,
@@ -326,21 +326,21 @@ function ie(e) {
326
326
  context: e.context.context,
327
327
  shouldEvaluateBindings: !0
328
328
  }), a = i.responsiveStyles, o = e.context.content, r = Ee(
329
- ((x = o == null ? void 0 : o.meta) == null ? void 0 : x.breakpoints) || {}
330
- ), c = a == null ? void 0 : a.large, s = a == null ? void 0 : a.medium, d = a == null ? void 0 : a.small, u = i.id;
329
+ ((C = o == null ? void 0 : o.meta) == null ? void 0 : C.breakpoints) || {}
330
+ ), s = a == null ? void 0 : a.large, l = a == null ? void 0 : a.medium, d = a == null ? void 0 : a.small, u = i.id;
331
331
  if (!u)
332
332
  return "";
333
- const g = c ? Q({
333
+ const b = s ? Q({
334
334
  className: u,
335
- styles: c
336
- }) : "", v = s ? Q({
335
+ styles: s
336
+ }) : "", v = l ? Q({
337
337
  className: u,
338
- styles: s,
338
+ styles: l,
339
339
  mediaQuery: he(
340
340
  "medium",
341
341
  r
342
342
  )
343
- }) : "", P = d ? Q({
343
+ }) : "", y = d ? Q({
344
344
  className: u,
345
345
  styles: d,
346
346
  mediaQuery: he(
@@ -348,14 +348,14 @@ function ie(e) {
348
348
  r
349
349
  )
350
350
  }) : "";
351
- return [g, v, P].join(" ");
351
+ return [b, v, y].join(" ");
352
352
  }
353
- return /* @__PURE__ */ l(f, { children: n() && t() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(H, { styles: n() }) }) : null });
353
+ return /* @__PURE__ */ c(h, { children: n() && t() ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(H, { styles: n() }) }) : null });
354
354
  }
355
- function tt(e) {
355
+ function nt(e) {
356
356
  return e.charAt(0).toUpperCase() + e.slice(1);
357
357
  }
358
- const nt = (e) => `on${tt(e)}`, it = (e, t) => (n) => _({
358
+ const it = (e) => `on${nt(e)}`, at = (e, t) => (n) => _({
359
359
  code: e,
360
360
  context: t.context,
361
361
  localState: t.localState,
@@ -371,7 +371,7 @@ function X(e) {
371
371
  if (!n.hasOwnProperty(a))
372
372
  continue;
373
373
  const o = n[a];
374
- let r = nt(a);
374
+ let r = it(a);
375
375
  if (e.stripPrefix)
376
376
  switch (L) {
377
377
  case "vue":
@@ -381,16 +381,16 @@ function X(e) {
381
381
  r = r.replace("on:", "");
382
382
  break;
383
383
  }
384
- t[r] = it(o, e);
384
+ t[r] = at(o, e);
385
385
  }
386
386
  return t;
387
387
  }
388
- function at({
388
+ function ot({
389
389
  properties: e
390
390
  }) {
391
391
  return e.className = e.class, delete e.class, e;
392
392
  }
393
- const ot = (e) => ({
393
+ const rt = (e) => ({
394
394
  href: e.href
395
395
  });
396
396
  function K({
@@ -399,19 +399,19 @@ function K({
399
399
  }) {
400
400
  var i;
401
401
  const n = {
402
- ...ot(e),
402
+ ...rt(e),
403
403
  ...e.properties,
404
404
  "builder-id": e.id,
405
- style: e.style ? rt(e.style) : void 0,
405
+ style: e.style ? ct(e.style) : void 0,
406
406
  class: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
407
407
  };
408
- return at({
408
+ return ot({
409
409
  properties: n,
410
410
  context: t,
411
411
  block: e
412
412
  });
413
413
  }
414
- function rt(e) {
414
+ function ct(e) {
415
415
  switch (L) {
416
416
  case "svelte":
417
417
  case "vue":
@@ -425,9 +425,9 @@ function rt(e) {
425
425
  }
426
426
  }
427
427
  function ge(e) {
428
- return /* @__PURE__ */ R(f, { children: [
428
+ return /* @__PURE__ */ P(h, { children: [
429
429
  " ",
430
- e.hasChildren ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ R(
430
+ e.hasChildren ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ P(
431
431
  e.Wrapper,
432
432
  {
433
433
  ...K({
@@ -448,7 +448,7 @@ function ge(e) {
448
448
  " "
449
449
  ]
450
450
  }
451
- ) }) : /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
451
+ ) }) : /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
452
452
  e.Wrapper,
453
453
  {
454
454
  ...K({
@@ -469,7 +469,7 @@ function ge(e) {
469
469
  ] });
470
470
  }
471
471
  function lt(e) {
472
- return /* @__PURE__ */ l(
472
+ return /* @__PURE__ */ c(
473
473
  e.Wrapper,
474
474
  {
475
475
  ...e.wrapperProps,
@@ -490,7 +490,7 @@ function lt(e) {
490
490
  }
491
491
  );
492
492
  }
493
- const ct = ({
493
+ const st = ({
494
494
  componentOptions: e,
495
495
  builderBlock: t,
496
496
  context: n,
@@ -499,7 +499,7 @@ const ct = ({
499
499
  isInteractive: o,
500
500
  contextValue: r
501
501
  }) => {
502
- const c = {
502
+ const s = {
503
503
  ...e,
504
504
  /**
505
505
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -518,17 +518,17 @@ const ct = ({
518
518
  context: n,
519
519
  wrapperProps: e,
520
520
  includeBlockProps: a
521
- } : c;
521
+ } : s;
522
522
  };
523
523
  function be(e) {
524
- var i, a;
524
+ var i;
525
525
  const [t, n] = S(
526
526
  () => e.isInteractive ? lt : e.componentRef
527
527
  );
528
- return /* @__PURE__ */ l(f, { children: e.componentRef ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ R(
528
+ return /* @__PURE__ */ c(h, { children: e.componentRef ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
529
529
  t,
530
530
  {
531
- ...ct({
531
+ ...st({
532
532
  componentOptions: e.componentOptions,
533
533
  builderBlock: e.builderBlock,
534
534
  context: e.context,
@@ -537,31 +537,21 @@ function be(e) {
537
537
  isInteractive: e.isInteractive,
538
538
  contextValue: e.context
539
539
  }),
540
- children: [
541
- (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
542
- z,
543
- {
544
- block: o,
545
- context: e.context,
546
- registeredComponents: e.registeredComponents
547
- },
548
- "block-" + o.id
549
- )),
550
- (a = e.blockChildren) == null ? void 0 : a.map((o) => /* @__PURE__ */ l(
551
- ie,
552
- {
553
- block: o,
554
- context: e.context
555
- },
556
- "block-style-" + o.id
557
- ))
558
- ]
540
+ children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ c(
541
+ z,
542
+ {
543
+ block: a,
544
+ context: e.context,
545
+ registeredComponents: e.registeredComponents
546
+ },
547
+ a.id
548
+ ))
559
549
  }
560
550
  ) }) : null });
561
551
  }
562
- function st(e) {
552
+ function dt(e) {
563
553
  const [t, n] = S(() => e.repeatContext);
564
- return /* @__PURE__ */ l(ne.Provider, { value: t, children: /* @__PURE__ */ l(
554
+ return /* @__PURE__ */ c(ne.Provider, { value: t, children: /* @__PURE__ */ c(
565
555
  z,
566
556
  {
567
557
  block: e.block,
@@ -571,7 +561,7 @@ function st(e) {
571
561
  ) });
572
562
  }
573
563
  function z(e) {
574
- var u, g, v, P;
564
+ var u, b, v;
575
565
  function t() {
576
566
  return Je({
577
567
  block: e.block,
@@ -586,8 +576,8 @@ function z(e) {
586
576
  });
587
577
  }
588
578
  function i() {
589
- var x;
590
- return (x = e.block.repeat) != null && x.collection ? e.block : O({
579
+ var y;
580
+ return (y = e.block.repeat) != null && y.collection ? e.block : O({
591
581
  block: e.block,
592
582
  localState: e.context.localState,
593
583
  rootState: e.context.rootState,
@@ -600,111 +590,106 @@ function z(e) {
600
590
  return e.block.tagName || "div";
601
591
  }
602
592
  function o() {
603
- var w, E;
604
- if ((w = e.block.repeat) != null && w.collection)
605
- return !!((E = n == null ? void 0 : n()) != null && E.length);
606
- const x = "hide" in i() ? i().hide : !1;
607
- return ("show" in i() ? i().show : !0) && !x;
593
+ var k, R;
594
+ if ((k = e.block.repeat) != null && k.collection)
595
+ return !!((R = n == null ? void 0 : n()) != null && R.length);
596
+ const y = "hide" in i() ? i().hide : !1;
597
+ return ("show" in i() ? i().show : !0) && !y;
608
598
  }
609
599
  function r() {
610
- var k, w;
611
- return !((k = t == null ? void 0 : t()) != null && k.component) && !n() ? (w = i().children) != null ? w : [] : [];
600
+ var C, k;
601
+ return !((C = t == null ? void 0 : t()) != null && C.component) && !n() ? (k = i().children) != null ? k : [] : [];
612
602
  }
613
- function c() {
614
- var x, k, w, E, I, p;
603
+ function s() {
604
+ var y, C, k, R, W, w;
615
605
  return {
616
- blockChildren: (x = i().children) != null ? x : [],
617
- componentRef: (k = t == null ? void 0 : t()) == null ? void 0 : k.component,
606
+ blockChildren: (y = i().children) != null ? y : [],
607
+ componentRef: (C = t == null ? void 0 : t()) == null ? void 0 : C.component,
618
608
  componentOptions: {
619
609
  ...De(i()),
620
610
  builderContext: e.context,
621
- ...((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Symbol" || ((E = t == null ? void 0 : t()) == null ? void 0 : E.name) === "Columns" ? {
611
+ ...((k = t == null ? void 0 : t()) == null ? void 0 : k.name) === "Symbol" || ((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Columns" ? {
622
612
  builderComponents: e.registeredComponents
623
613
  } : {}
624
614
  },
625
- context: s,
615
+ context: l,
626
616
  registeredComponents: e.registeredComponents,
627
617
  builderBlock: i(),
628
- includeBlockProps: ((I = t == null ? void 0 : t()) == null ? void 0 : I.noWrap) === !0,
629
- isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
618
+ includeBlockProps: ((W = t == null ? void 0 : t()) == null ? void 0 : W.noWrap) === !0,
619
+ isInteractive: !((w = t == null ? void 0 : t()) != null && w.isRSC)
630
620
  };
631
621
  }
632
- const [s, d] = S(() => e.context);
633
- return /* @__PURE__ */ l(f, { children: o() ? /* @__PURE__ */ l(f, { children: (u = t == null ? void 0 : t()) != null && u.noWrap ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
634
- be,
635
- {
636
- componentRef: c().componentRef,
637
- componentOptions: c().componentOptions,
638
- blockChildren: c().blockChildren,
639
- context: c().context,
640
- registeredComponents: c().registeredComponents,
641
- builderBlock: c().builderBlock,
642
- includeBlockProps: c().includeBlockProps,
643
- isInteractive: c().isInteractive
644
- }
645
- ) }) : /* @__PURE__ */ R(f, { children: [
646
- Y(a()) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
647
- ge,
622
+ const [l, d] = S(() => e.context);
623
+ return /* @__PURE__ */ c(h, { children: o() ? /* @__PURE__ */ P(h, { children: [
624
+ /* @__PURE__ */ c(tt, { block: e.block, context: e.context }),
625
+ (u = t == null ? void 0 : t()) != null && u.noWrap ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
626
+ be,
648
627
  {
649
- Wrapper: a(),
650
- block: i(),
651
- context: e.context,
652
- hasChildren: !1
628
+ componentRef: s().componentRef,
629
+ componentOptions: s().componentOptions,
630
+ blockChildren: s().blockChildren,
631
+ context: s().context,
632
+ registeredComponents: s().registeredComponents,
633
+ builderBlock: s().builderBlock,
634
+ includeBlockProps: s().includeBlockProps,
635
+ isInteractive: s().isInteractive
653
636
  }
654
- ) }) : null,
655
- !Y(a()) && n() ? /* @__PURE__ */ l(f, { children: (g = n()) == null ? void 0 : g.map((x, k) => /* @__PURE__ */ l(
656
- st,
657
- {
658
- repeatContext: x.context,
659
- block: x.block,
660
- registeredComponents: e.registeredComponents
661
- },
662
- k
663
- )) }) : null,
664
- !Y(a()) && !n() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ R(
665
- ge,
666
- {
667
- Wrapper: a(),
668
- block: i(),
669
- context: e.context,
670
- hasChildren: !0,
671
- children: [
672
- /* @__PURE__ */ l(
673
- be,
674
- {
675
- componentRef: c().componentRef,
676
- componentOptions: c().componentOptions,
677
- blockChildren: c().blockChildren,
678
- context: c().context,
679
- registeredComponents: c().registeredComponents,
680
- builderBlock: c().builderBlock,
681
- includeBlockProps: c().includeBlockProps,
682
- isInteractive: c().isInteractive
683
- }
684
- ),
685
- (v = r()) == null ? void 0 : v.map((x) => /* @__PURE__ */ l(
686
- z,
687
- {
688
- block: x,
689
- context: s,
690
- registeredComponents: e.registeredComponents
691
- },
692
- "block-" + x.id
693
- )),
694
- (P = r()) == null ? void 0 : P.map((x) => /* @__PURE__ */ l(
695
- ie,
696
- {
697
- block: x,
698
- context: s
699
- },
700
- "block-style-" + x.id
701
- ))
702
- ]
703
- }
704
- ) }) : null
705
- ] }) }) : null });
637
+ ) }) : /* @__PURE__ */ P(h, { children: [
638
+ Y(a()) ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
639
+ ge,
640
+ {
641
+ Wrapper: a(),
642
+ block: i(),
643
+ context: e.context,
644
+ hasChildren: !1
645
+ }
646
+ ) }) : null,
647
+ !Y(a()) && n() ? /* @__PURE__ */ c(h, { children: (b = n()) == null ? void 0 : b.map((y, C) => /* @__PURE__ */ c(
648
+ dt,
649
+ {
650
+ repeatContext: y.context,
651
+ block: y.block,
652
+ registeredComponents: e.registeredComponents
653
+ },
654
+ C
655
+ )) }) : null,
656
+ !Y(a()) && !n() ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ P(
657
+ ge,
658
+ {
659
+ Wrapper: a(),
660
+ block: i(),
661
+ context: e.context,
662
+ hasChildren: !0,
663
+ children: [
664
+ /* @__PURE__ */ c(
665
+ be,
666
+ {
667
+ componentRef: s().componentRef,
668
+ componentOptions: s().componentOptions,
669
+ blockChildren: s().blockChildren,
670
+ context: s().context,
671
+ registeredComponents: s().registeredComponents,
672
+ builderBlock: s().builderBlock,
673
+ includeBlockProps: s().includeBlockProps,
674
+ isInteractive: s().isInteractive
675
+ }
676
+ ),
677
+ (v = r()) == null ? void 0 : v.map((y) => /* @__PURE__ */ c(
678
+ z,
679
+ {
680
+ block: y,
681
+ context: l,
682
+ registeredComponents: e.registeredComponents
683
+ },
684
+ y.id
685
+ ))
686
+ ]
687
+ }
688
+ ) }) : null
689
+ ] })
690
+ ] }) : null });
706
691
  }
707
- function dt(e) {
692
+ function ut(e) {
708
693
  function t() {
709
694
  var a;
710
695
  return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
@@ -735,8 +720,8 @@ function dt(e) {
735
720
  "*"
736
721
  ));
737
722
  }
738
- return /* @__PURE__ */ R(f, { children: [
739
- /* @__PURE__ */ l(
723
+ return /* @__PURE__ */ P(h, { children: [
724
+ /* @__PURE__ */ c(
740
725
  e.BlocksWrapper,
741
726
  {
742
727
  className: t() + " props-blocks-wrapper-4f2c12d8",
@@ -750,18 +735,18 @@ function dt(e) {
750
735
  children: e.children
751
736
  }
752
737
  ),
753
- /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-4f2c12d8 {
738
+ /* @__PURE__ */ c("style", { children: `.props-blocks-wrapper-4f2c12d8 {
754
739
  display: flex;
755
740
  flex-direction: column;
756
741
  align-items: stretch;
757
742
  }` })
758
743
  ] });
759
744
  }
760
- function ae(e) {
761
- var i, a, o, r;
745
+ function ie(e) {
746
+ var i, a, o;
762
747
  const t = se(ne), n = se(Te);
763
- return /* @__PURE__ */ R(
764
- dt,
748
+ return /* @__PURE__ */ c(
749
+ ut,
765
750
  {
766
751
  blocks: e.blocks,
767
752
  parent: e.parent,
@@ -769,69 +754,59 @@ function ae(e) {
769
754
  styleProp: e.styleProp,
770
755
  BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
771
756
  BlocksWrapperProps: (a = e.context) == null ? void 0 : a.BlocksWrapperProps,
772
- children: [
773
- e.blocks ? /* @__PURE__ */ l(f, { children: (o = e.blocks) == null ? void 0 : o.map((c) => /* @__PURE__ */ l(
774
- z,
775
- {
776
- block: c,
777
- context: e.context || t,
778
- registeredComponents: e.registeredComponents || n.registeredComponents
779
- },
780
- "render-block-" + c.id
781
- )) }) : null,
782
- e.blocks ? /* @__PURE__ */ l(f, { children: (r = e.blocks) == null ? void 0 : r.map((c) => /* @__PURE__ */ l(
783
- ie,
784
- {
785
- block: c,
786
- context: e.context || t
787
- },
788
- "block-style-" + c.id
789
- )) }) : null
790
- ]
757
+ children: e.blocks ? /* @__PURE__ */ c(h, { children: (o = e.blocks) == null ? void 0 : o.map((r) => /* @__PURE__ */ c(
758
+ z,
759
+ {
760
+ block: r,
761
+ context: e.context || t,
762
+ registeredComponents: e.registeredComponents || n.registeredComponents
763
+ },
764
+ r.id
765
+ )) }) : null
791
766
  }
792
767
  );
793
768
  }
794
- function ut(e) {
795
- var E;
769
+ function mt(e) {
770
+ var W;
796
771
  const [t, n] = S(
797
772
  () => typeof e.space == "number" ? e.space || 0 : 20
798
773
  ), [i, a] = S(() => e.columns || []), [o, r] = S(
799
774
  () => e.stackColumnsAt || "tablet"
800
775
  );
801
- function c(I) {
802
- var p;
803
- return ((p = i[I]) == null ? void 0 : p.width) || 100 / i.length;
776
+ function s(w) {
777
+ var I;
778
+ return ((I = i[w]) == null ? void 0 : I.width) || 100 / i.length;
804
779
  }
805
- function s(I) {
806
- const p = t * (i.length - 1) / i.length;
807
- return `calc(${c(I)}% - ${p}px)`;
780
+ function l(w) {
781
+ const I = t * (i.length - 1) / i.length;
782
+ return `calc(${s(w)}% - ${I}px)`;
808
783
  }
809
784
  function d({
810
- stackedStyle: I,
811
- desktopStyle: p
785
+ stackedStyle: w,
786
+ desktopStyle: I
812
787
  }) {
813
- return o === "tablet" ? I : p;
788
+ return o === "tablet" ? w : I;
814
789
  }
815
790
  function u({
816
- stackedStyle: I,
817
- desktopStyle: p
791
+ stackedStyle: w,
792
+ desktopStyle: I
818
793
  }) {
819
- return o === "never" ? p : I;
794
+ return o === "never" ? I : w;
820
795
  }
821
- const [g, v] = S(
796
+ const [b, v] = S(
822
797
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
823
798
  );
824
- function P() {
799
+ function y() {
825
800
  return {
826
- "--flex-dir": g,
801
+ "--flex-dir": b,
827
802
  "--flex-dir-tablet": d({
828
- stackedStyle: g,
803
+ stackedStyle: b,
829
804
  desktopStyle: "row"
830
805
  })
831
806
  };
832
807
  }
833
- function x(I) {
834
- const p = I === 0 ? 0 : t, B = s(I), A = `${p}px`, N = "100%", F = 0;
808
+ function C(w) {
809
+ const I = w === 0 ? 0 : t, B = l(w), A = `${I}px`, N = "100%", F = 0;
835
810
  return {
836
811
  width: B,
837
812
  ["marginLeft"]: A,
@@ -853,13 +828,13 @@ function ut(e) {
853
828
  })
854
829
  };
855
830
  }
856
- function k(I) {
831
+ function k(w) {
857
832
  var B, A;
858
833
  return Ee(
859
834
  ((A = (B = e.builderContext.content) == null ? void 0 : B.meta) == null ? void 0 : A.breakpoints) || {}
860
- )[I].max;
835
+ )[w].max;
861
836
  }
862
- function w() {
837
+ function R() {
863
838
  return `
864
839
  @media (max-width: ${k("medium")}px) {
865
840
  .${e.builderBlock.id}-breakpoints {
@@ -886,59 +861,59 @@ function ut(e) {
886
861
  },
887
862
  `;
888
863
  }
889
- return /* @__PURE__ */ R(f, { children: [
890
- /* @__PURE__ */ R(
864
+ return /* @__PURE__ */ P(h, { children: [
865
+ /* @__PURE__ */ P(
891
866
  "div",
892
867
  {
893
- className: `builder-columns ${e.builderBlock.id}-breakpoints div-53636e90`,
894
- style: P(),
868
+ className: `builder-columns ${e.builderBlock.id}-breakpoints div-3c01d6ec`,
869
+ style: y(),
895
870
  children: [
896
- /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(H, { styles: w() }) }),
897
- (E = e.columns) == null ? void 0 : E.map((I, p) => /* @__PURE__ */ we(
871
+ /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(H, { styles: R() }) }),
872
+ (W = e.columns) == null ? void 0 : W.map((w, I) => /* @__PURE__ */ we(
898
873
  "div",
899
874
  {
900
- className: "builder-column div-53636e90-2",
901
- style: x(p),
902
- key: p
875
+ className: "builder-column div-3c01d6ec-2",
876
+ style: C(I),
877
+ key: I
903
878
  },
904
- /* @__PURE__ */ l(
905
- ae,
879
+ /* @__PURE__ */ c(
880
+ ie,
906
881
  {
907
- path: `component.options.columns.${p}.blocks`,
882
+ path: `component.options.columns.${I}.blocks`,
908
883
  parent: e.builderBlock.id,
909
884
  styleProp: {
910
885
  flexGrow: "1"
911
886
  },
912
887
  context: e.builderContext,
913
888
  registeredComponents: e.builderComponents,
914
- blocks: I.blocks
889
+ blocks: w.blocks
915
890
  }
916
891
  )
917
892
  ))
918
893
  ]
919
894
  }
920
895
  ),
921
- /* @__PURE__ */ l("style", { children: `.div-53636e90 {
896
+ /* @__PURE__ */ c("style", { children: `.div-3c01d6ec {
922
897
  display: flex;
923
898
  line-height: normal;
924
- }.div-53636e90-2 {
899
+ }.div-3c01d6ec-2 {
925
900
  display: flex;
926
901
  flex-direction: column;
927
902
  align-items: stretch;
928
903
  }` })
929
904
  ] });
930
905
  }
931
- function mt(e) {
932
- return /* @__PURE__ */ l("span", { children: e.children });
906
+ function ft(e) {
907
+ return /* @__PURE__ */ c("span", { children: e.children });
933
908
  }
934
909
  function xe(e) {
935
910
  return e.replace(/http(s)?:/, "");
936
911
  }
937
- function ft(e = "", t, n) {
912
+ function ht(e = "", t, n) {
938
913
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
939
914
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
940
915
  }
941
- function ht(e, t) {
916
+ function gt(e, t) {
942
917
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
943
918
  return e;
944
919
  if (t === "master")
@@ -957,12 +932,12 @@ function G(e) {
957
932
  if (e.match(/builder\.io/)) {
958
933
  let n = e;
959
934
  const i = Number(e.split("?width=")[1]);
960
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${ft(e, "width", a)} ${a}w`).concat([n]).join(", ");
935
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${ht(e, "width", a)} ${a}w`).concat([n]).join(", ");
961
936
  }
962
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [ht(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
937
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [gt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
963
938
  }
964
- function gt(e) {
965
- var a, o, r, c;
939
+ function bt(e) {
940
+ var a, o, r, s;
966
941
  function t() {
967
942
  var u;
968
943
  const d = e.image || e.src;
@@ -978,24 +953,24 @@ function gt(e) {
978
953
  return G(d);
979
954
  }
980
955
  function n() {
981
- var s;
982
- return (s = t == null ? void 0 : t()) != null && s.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
956
+ var l;
957
+ return (l = t == null ? void 0 : t()) != null && l.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
983
958
  }
984
959
  function i() {
985
- const s = {
960
+ const l = {
986
961
  position: "absolute",
987
962
  height: "100%",
988
963
  width: "100%",
989
964
  left: "0px",
990
965
  top: "0px"
991
966
  };
992
- return e.aspectRatio ? s : void 0;
967
+ return e.aspectRatio ? l : void 0;
993
968
  }
994
- return /* @__PURE__ */ R(f, { children: [
995
- /* @__PURE__ */ R(f, { children: [
996
- /* @__PURE__ */ R("picture", { children: [
997
- n() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) }) : null,
998
- /* @__PURE__ */ l(
969
+ return /* @__PURE__ */ P(h, { children: [
970
+ /* @__PURE__ */ P(h, { children: [
971
+ /* @__PURE__ */ P("picture", { children: [
972
+ n() ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) }) : null,
973
+ /* @__PURE__ */ c(
999
974
  "img",
1000
975
  {
1001
976
  loading: "lazy",
@@ -1006,33 +981,33 @@ function gt(e) {
1006
981
  objectFit: e.backgroundSize || "cover",
1007
982
  ...i()
1008
983
  },
1009
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-dbab4030",
984
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-40c70c9b",
1010
985
  src: e.image,
1011
986
  srcSet: t(),
1012
987
  sizes: e.sizes
1013
988
  }
1014
989
  )
1015
990
  ] }),
1016
- e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
991
+ e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
1017
992
  "div",
1018
993
  {
1019
- className: "builder-image-sizer div-dbab4030",
994
+ className: "builder-image-sizer div-40c70c9b",
1020
995
  style: {
1021
996
  paddingTop: e.aspectRatio * 100 + "%"
1022
997
  }
1023
998
  }
1024
999
  ) }) : null,
1025
- (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(f, { children: e.children }) : null,
1026
- !e.fitContent && e.children ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l("div", { className: "div-dbab4030-2", children: e.children }) }) : null
1000
+ (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ c(h, { children: e.children }) : null,
1001
+ !e.fitContent && e.children ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
1027
1002
  ] }),
1028
- /* @__PURE__ */ l("style", { children: `.img-dbab4030 {
1003
+ /* @__PURE__ */ c("style", { children: `.img-40c70c9b {
1029
1004
  opacity: 1;
1030
1005
  transition: opacity 0.2s ease-in-out;
1031
- }.div-dbab4030 {
1006
+ }.div-40c70c9b {
1032
1007
  width: 100%;
1033
1008
  pointer-events: none;
1034
1009
  font-size: 0;
1035
- }.div-dbab4030-2 {
1010
+ }.div-40c70c9b-2 {
1036
1011
  display: flex;
1037
1012
  flex-direction: column;
1038
1013
  align-items: stretch;
@@ -1044,8 +1019,8 @@ function gt(e) {
1044
1019
  }` })
1045
1020
  ] });
1046
1021
  }
1047
- function bt(e) {
1048
- return /* @__PURE__ */ l(
1022
+ function xt(e) {
1023
+ return /* @__PURE__ */ c(
1049
1024
  "section",
1050
1025
  {
1051
1026
  ...e.attributes,
@@ -1065,7 +1040,7 @@ function bt(e) {
1065
1040
  }
1066
1041
  );
1067
1042
  }
1068
- const xt = {
1043
+ const yt = {
1069
1044
  name: "Core:Button",
1070
1045
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1071
1046
  defaultStyles: {
@@ -1098,7 +1073,7 @@ const xt = {
1098
1073
  }],
1099
1074
  static: !0,
1100
1075
  noWrap: !0
1101
- }, yt = {
1076
+ }, St = {
1102
1077
  // TODO: ways to statically preprocess JSON for references, functions, etc
1103
1078
  name: "Columns",
1104
1079
  isRSC: !0,
@@ -1277,7 +1252,7 @@ const xt = {
1277
1252
  });
1278
1253
  }
1279
1254
  const n = e.get("columns");
1280
- Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((c, s) => c + s.get("width"), 0) !== 100) && t();
1255
+ Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((s, l) => s + l.get("width"), 0) !== 100) && t();
1281
1256
  }
1282
1257
  }, {
1283
1258
  name: "space",
@@ -1299,7 +1274,7 @@ const xt = {
1299
1274
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1300
1275
  advanced: !0
1301
1276
  }]
1302
- }, St = {
1277
+ }, vt = {
1303
1278
  name: "Custom Code",
1304
1279
  static: !0,
1305
1280
  requiredPermissions: ["editCode"],
@@ -1324,13 +1299,13 @@ const xt = {
1324
1299
  };
1325
1300
  function pt(e) {
1326
1301
  const t = ee(null), [n, i] = S(() => []), [a, o] = S(() => []);
1327
- return W(() => {
1328
- var c;
1329
- if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
1302
+ return E(() => {
1303
+ var s;
1304
+ if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
1330
1305
  return;
1331
1306
  const r = t.current.getElementsByTagName("script");
1332
- for (let s = 0; s < r.length; s++) {
1333
- const d = r[s];
1307
+ for (let l = 0; l < r.length; l++) {
1308
+ const d = r[l];
1334
1309
  if (d.src) {
1335
1310
  if (n.includes(d.src))
1336
1311
  continue;
@@ -1351,7 +1326,7 @@ function pt(e) {
1351
1326
  }
1352
1327
  }
1353
1328
  }
1354
- }, []), /* @__PURE__ */ l(
1329
+ }, []), /* @__PURE__ */ c(
1355
1330
  "div",
1356
1331
  {
1357
1332
  ref: t,
@@ -1360,7 +1335,7 @@ function pt(e) {
1360
1335
  }
1361
1336
  );
1362
1337
  }
1363
- const vt = {
1338
+ const kt = {
1364
1339
  name: "Embed",
1365
1340
  static: !0,
1366
1341
  inputs: [{
@@ -1385,30 +1360,30 @@ const vt = {
1385
1360
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1386
1361
  hideFromUI: !0
1387
1362
  }]
1388
- }, kt = ["text/javascript", "application/javascript", "application/ecmascript"], Ct = (e) => kt.includes(e.type);
1389
- function wt(e) {
1390
- const t = ee(null), [n, i] = S(() => []), [a, o] = S(() => []), [r, c] = S(() => !1);
1391
- function s() {
1363
+ }, Ct = ["text/javascript", "application/javascript", "application/ecmascript"], wt = (e) => Ct.includes(e.type);
1364
+ function It(e) {
1365
+ const t = ee(null), [n, i] = S(() => []), [a, o] = S(() => []), [r, s] = S(() => !1);
1366
+ function l() {
1392
1367
  if (!t.current || !t.current.getElementsByTagName)
1393
1368
  return;
1394
1369
  const d = t.current.getElementsByTagName("script");
1395
1370
  for (let u = 0; u < d.length; u++) {
1396
- const g = d[u];
1397
- if (g.src && !n.includes(g.src)) {
1398
- n.push(g.src);
1371
+ const b = d[u];
1372
+ if (b.src && !n.includes(b.src)) {
1373
+ n.push(b.src);
1399
1374
  const v = document.createElement("script");
1400
- v.async = !0, v.src = g.src, document.head.appendChild(v);
1401
- } else if (Ct(g) && !a.includes(g.innerText))
1375
+ v.async = !0, v.src = b.src, document.head.appendChild(v);
1376
+ } else if (wt(b) && !a.includes(b.innerText))
1402
1377
  try {
1403
- a.push(g.innerText), new Function(g.innerText)();
1378
+ a.push(b.innerText), new Function(b.innerText)();
1404
1379
  } catch (v) {
1405
1380
  console.warn("`Embed`: Error running script:", v);
1406
1381
  }
1407
1382
  }
1408
1383
  }
1409
- return W(() => {
1410
- t.current && !r && (c(!0), s());
1411
- }, [t.current, r]), /* @__PURE__ */ l(
1384
+ return E(() => {
1385
+ t.current && !r && (s(!0), l());
1386
+ }, [t.current, r]), /* @__PURE__ */ c(
1412
1387
  "div",
1413
1388
  {
1414
1389
  className: "builder-embed",
@@ -1417,13 +1392,13 @@ function wt(e) {
1417
1392
  }
1418
1393
  );
1419
1394
  }
1420
- const It = {
1395
+ const Tt = {
1421
1396
  name: "Fragment",
1422
1397
  static: !0,
1423
1398
  hidden: !0,
1424
1399
  canHaveChildren: !0,
1425
1400
  noWrap: !0
1426
- }, Tt = {
1401
+ }, Rt = {
1427
1402
  name: "Image",
1428
1403
  static: !0,
1429
1404
  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",
@@ -1443,17 +1418,17 @@ const It = {
1443
1418
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1444
1419
  onChange: (e) => {
1445
1420
  e.delete("srcset"), e.delete("noWebp");
1446
- function n(r, c = 6e4) {
1447
- return new Promise((s, d) => {
1421
+ function n(r, s = 6e4) {
1422
+ return new Promise((l, d) => {
1448
1423
  const u = document.createElement("img");
1449
- let g = !1;
1424
+ let b = !1;
1450
1425
  u.onload = () => {
1451
- g = !0, s(u);
1426
+ b = !0, l(u);
1452
1427
  }, u.addEventListener("error", (v) => {
1453
1428
  console.warn("Image load failed", v.error), d(v.error);
1454
1429
  }), u.src = r, setTimeout(() => {
1455
- g || d(new Error("Image load timed out"));
1456
- }, c);
1430
+ b || d(new Error("Image load timed out"));
1431
+ }, s);
1457
1432
  });
1458
1433
  }
1459
1434
  function i(r) {
@@ -1464,8 +1439,8 @@ const It = {
1464
1439
  r.type.includes("svg") && e.set("noWebp", !0);
1465
1440
  }), a && (!o || o === 0.7041))
1466
1441
  return n(a).then((r) => {
1467
- const c = e.get("aspectRatio");
1468
- e.get("image") === a && (!c || c === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1442
+ const s = e.get("aspectRatio");
1443
+ e.get("image") === a && (!s || s === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1469
1444
  });
1470
1445
  }
1471
1446
  }, {
@@ -1523,7 +1498,7 @@ const It = {
1523
1498
  advanced: !0,
1524
1499
  defaultValue: 0.7041
1525
1500
  }]
1526
- }, Rt = {
1501
+ }, Et = {
1527
1502
  // friendlyName?
1528
1503
  name: "Raw:Img",
1529
1504
  hideFromInsertMenu: !0,
@@ -1538,8 +1513,8 @@ const It = {
1538
1513
  noWrap: !0,
1539
1514
  static: !0
1540
1515
  };
1541
- function Et(e) {
1542
- return /* @__PURE__ */ l(
1516
+ function Pt(e) {
1517
+ return /* @__PURE__ */ c(
1543
1518
  "img",
1544
1519
  {
1545
1520
  style: {
@@ -1553,7 +1528,7 @@ function Et(e) {
1553
1528
  V() && e.imgSrc || "default-key"
1554
1529
  );
1555
1530
  }
1556
- const Pt = {
1531
+ const Wt = {
1557
1532
  name: "Core:Section",
1558
1533
  static: !0,
1559
1534
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1592,7 +1567,7 @@ const Pt = {
1592
1567
  }
1593
1568
  }
1594
1569
  }]
1595
- }, Wt = {
1570
+ }, Bt = {
1596
1571
  name: "Symbol",
1597
1572
  noWrap: !0,
1598
1573
  static: !0,
@@ -1625,7 +1600,7 @@ const Pt = {
1625
1600
  hideFromUI: !0,
1626
1601
  type: "boolean"
1627
1602
  }]
1628
- }, Bt = {
1603
+ }, At = {
1629
1604
  name: "Text",
1630
1605
  static: !0,
1631
1606
  isRSC: !0,
@@ -1644,9 +1619,9 @@ const Pt = {
1644
1619
  textAlign: "center"
1645
1620
  }
1646
1621
  };
1647
- function At(e) {
1622
+ function Vt(e) {
1648
1623
  var t;
1649
- return /* @__PURE__ */ l(
1624
+ return /* @__PURE__ */ c(
1650
1625
  "div",
1651
1626
  {
1652
1627
  className: "builder-text",
@@ -1657,7 +1632,7 @@ function At(e) {
1657
1632
  }
1658
1633
  );
1659
1634
  }
1660
- const Vt = {
1635
+ const $t = {
1661
1636
  name: "Video",
1662
1637
  canHaveChildren: !0,
1663
1638
  defaultStyles: {
@@ -1739,8 +1714,8 @@ const Vt = {
1739
1714
  advanced: !0
1740
1715
  }]
1741
1716
  };
1742
- function $t(e) {
1743
- var i, a, o, r, c, s, d;
1717
+ function Nt(e) {
1718
+ var i, a, o, r, s, l, d;
1744
1719
  function t() {
1745
1720
  return {
1746
1721
  ...e.autoPlay === !0 ? {
@@ -1765,14 +1740,14 @@ function $t(e) {
1765
1740
  ...t()
1766
1741
  };
1767
1742
  }
1768
- return /* @__PURE__ */ R(
1743
+ return /* @__PURE__ */ P(
1769
1744
  "div",
1770
1745
  {
1771
1746
  style: {
1772
1747
  position: "relative"
1773
1748
  },
1774
1749
  children: [
1775
- /* @__PURE__ */ l(
1750
+ /* @__PURE__ */ c(
1776
1751
  "video",
1777
1752
  {
1778
1753
  className: "builder-video",
@@ -1794,10 +1769,10 @@ function $t(e) {
1794
1769
  },
1795
1770
  src: e.video || "no-src",
1796
1771
  poster: e.posterImage,
1797
- children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
1772
+ children: e.lazyLoad ? null : /* @__PURE__ */ c("source", { type: "video/mp4", src: e.video })
1798
1773
  }
1799
1774
  ),
1800
- e.aspectRatio && !(e.fitContent && ((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length)) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
1775
+ e.aspectRatio && !(e.fitContent && ((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length)) ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
1801
1776
  "div",
1802
1777
  {
1803
1778
  style: {
@@ -1808,7 +1783,7 @@ function $t(e) {
1808
1783
  }
1809
1784
  }
1810
1785
  ) }) : null,
1811
- (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
1786
+ (s = (r = e.builderBlock) == null ? void 0 : r.children) != null && s.length && e.fitContent ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
1812
1787
  "div",
1813
1788
  {
1814
1789
  style: {
@@ -1819,7 +1794,7 @@ function $t(e) {
1819
1794
  children: e.children
1820
1795
  }
1821
1796
  ) }) : null,
1822
- (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
1797
+ (d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
1823
1798
  "div",
1824
1799
  {
1825
1800
  style: {
@@ -1842,38 +1817,38 @@ function $t(e) {
1842
1817
  }
1843
1818
  const ye = () => [{
1844
1819
  component: Ue,
1845
- ...xt
1846
- }, {
1847
- component: ut,
1848
1820
  ...yt
1849
1821
  }, {
1850
- component: pt,
1822
+ component: mt,
1851
1823
  ...St
1852
1824
  }, {
1853
- component: wt,
1825
+ component: pt,
1854
1826
  ...vt
1855
1827
  }, {
1856
- component: mt,
1857
- ...It
1828
+ component: It,
1829
+ ...kt
1858
1830
  }, {
1859
- component: gt,
1831
+ component: ft,
1860
1832
  ...Tt
1861
1833
  }, {
1862
- component: Et,
1834
+ component: bt,
1863
1835
  ...Rt
1864
1836
  }, {
1865
- component: bt,
1866
- ...Pt
1837
+ component: Pt,
1838
+ ...Et
1867
1839
  }, {
1868
- component: nn,
1840
+ component: xt,
1869
1841
  ...Wt
1870
1842
  }, {
1871
- component: At,
1843
+ component: an,
1872
1844
  ...Bt
1873
1845
  }, {
1874
- component: $t,
1875
- ...Vt
1876
- }], Nt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1846
+ component: Vt,
1847
+ ...At
1848
+ }, {
1849
+ component: Nt,
1850
+ ...$t
1851
+ }], Ft = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1877
1852
  function getAndSetVariantId() {
1878
1853
  function setCookie(name, value, days) {
1879
1854
  let expires = '';
@@ -1929,7 +1904,7 @@ const ye = () => [{
1929
1904
  }).join('');
1930
1905
  styleEl.innerHTML = newStyleStr;
1931
1906
  }
1932
- }`, Ft = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1907
+ }`, _t = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1933
1908
  if (!navigator.cookieEnabled) {
1934
1909
  return;
1935
1910
  }
@@ -1967,23 +1942,23 @@ const ye = () => [{
1967
1942
  ...t,
1968
1943
  testVariationId: t.id,
1969
1944
  id: e == null ? void 0 : e.id
1970
- })), _t = ({
1945
+ })), Lt = ({
1971
1946
  canTrack: e,
1972
1947
  content: t
1973
- }) => !(!(M(t).length > 0) || !e || $()), Lt = (e) => e === "react" || e === "reactNative", Ae = Lt(L), jt = () => `
1974
- window.${We} = ${Nt}
1975
- window.${Be} = ${Ft}
1976
- `, Mt = (e, t) => `
1948
+ }) => !(!(M(t).length > 0) || !e || $()), jt = (e) => e === "react" || e === "reactNative", Ae = jt(L), Mt = () => `
1949
+ window.${We} = ${Ft}
1950
+ window.${Be} = ${_t}
1951
+ `, Ut = (e, t) => `
1977
1952
  window.${We}(
1978
1953
  "${t}",${JSON.stringify(e)}, ${Ae}
1979
- )`, Ut = ({
1954
+ )`, Dt = ({
1980
1955
  contentId: e,
1981
1956
  variationId: t
1982
1957
  }) => `window.${Be}(
1983
1958
  "${t}", "${e}", ${Ae}
1984
1959
  )`;
1985
1960
  function Z(e) {
1986
- return /* @__PURE__ */ l(
1961
+ return /* @__PURE__ */ c(
1987
1962
  "script",
1988
1963
  {
1989
1964
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -1994,7 +1969,7 @@ function Z(e) {
1994
1969
  function Se(e) {
1995
1970
  return Math.round(e * 1e3) / 1e3;
1996
1971
  }
1997
- const Dt = (e, t, n = !0) => {
1972
+ const Ot = (e, t, n = !0) => {
1998
1973
  if (!(e instanceof HTMLElement))
1999
1974
  return null;
2000
1975
  let i = n ? e : e.parentElement;
@@ -2005,10 +1980,10 @@ const Dt = (e, t, n = !0) => {
2005
1980
  return i;
2006
1981
  } while (i = i.parentElement);
2007
1982
  return null;
2008
- }, Ot = (e) => Dt(e, (t) => {
1983
+ }, Kt = (e) => Ot(e, (t) => {
2009
1984
  const n = t.getAttribute("builder-id") || t.id;
2010
1985
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2011
- }), pe = ({
1986
+ }), ve = ({
2012
1987
  event: e,
2013
1988
  target: t
2014
1989
  }) => {
@@ -2017,23 +1992,23 @@ const Dt = (e, t, n = !0) => {
2017
1992
  x: o,
2018
1993
  y: r
2019
1994
  };
2020
- }, Kt = (e) => {
2021
- const t = e.target, n = t && Ot(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
1995
+ }, Ht = (e) => {
1996
+ const t = e.target, n = t && Kt(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2022
1997
  return {
2023
1998
  targetBuilderElement: i || void 0,
2024
1999
  metadata: {
2025
- targetOffset: t ? pe({
2000
+ targetOffset: t ? ve({
2026
2001
  event: e,
2027
2002
  target: t
2028
2003
  }) : void 0,
2029
- builderTargetOffset: n ? pe({
2004
+ builderTargetOffset: n ? ve({
2030
2005
  event: e,
2031
2006
  target: n
2032
2007
  }) : void 0,
2033
2008
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
2034
2009
  }
2035
2010
  };
2036
- }, Ht = "0.11.2", zt = () => {
2011
+ }, zt = "0.11.4", qt = () => {
2037
2012
  Fe("insertMenu", {
2038
2013
  name: "_default",
2039
2014
  default: !0,
@@ -2056,14 +2031,14 @@ const Dt = (e, t, n = !0) => {
2056
2031
  }]
2057
2032
  });
2058
2033
  };
2059
- let ve = !1;
2060
- const qt = (e = {}) => {
2034
+ let pe = !1;
2035
+ const Yt = (e = {}) => {
2061
2036
  var t, n;
2062
- ve || (ve = !0, $() && ((t = window.parent) == null || t.postMessage({
2037
+ pe || (pe = !0, $() && ((t = window.parent) == null || t.postMessage({
2063
2038
  type: "builder.sdkInfo",
2064
2039
  data: {
2065
2040
  target: L,
2066
- version: Ht,
2041
+ version: zt,
2067
2042
  supportsPatchUpdates: !1,
2068
2043
  // Supports builder-model="..." attribute which is needed to
2069
2044
  // scope our '+ add block' button styling
@@ -2082,25 +2057,25 @@ const qt = (e = {}) => {
2082
2057
  if (i != null && i.type)
2083
2058
  switch (i.type) {
2084
2059
  case "builder.evaluate": {
2085
- const r = i.data.text, c = i.data.arguments || [], s = i.data.id, d = new Function(r);
2086
- let u, g = null;
2060
+ const r = i.data.text, s = i.data.arguments || [], l = i.data.id, d = new Function(r);
2061
+ let u, b = null;
2087
2062
  try {
2088
- u = d.apply(null, c);
2063
+ u = d.apply(null, s);
2089
2064
  } catch (v) {
2090
- g = v;
2065
+ b = v;
2091
2066
  }
2092
- g ? (a = window.parent) == null || a.postMessage({
2067
+ b ? (a = window.parent) == null || a.postMessage({
2093
2068
  type: "builder.evaluateError",
2094
2069
  data: {
2095
- id: s,
2096
- error: g.message
2070
+ id: l,
2071
+ error: b.message
2097
2072
  }
2098
2073
  }, "*") : u && typeof u.then == "function" ? u.then((v) => {
2099
- var P;
2100
- (P = window.parent) == null || P.postMessage({
2074
+ var y;
2075
+ (y = window.parent) == null || y.postMessage({
2101
2076
  type: "builder.evaluateResult",
2102
2077
  data: {
2103
- id: s,
2078
+ id: l,
2104
2079
  result: v
2105
2080
  }
2106
2081
  }, "*");
@@ -2108,7 +2083,7 @@ const qt = (e = {}) => {
2108
2083
  type: "builder.evaluateResult",
2109
2084
  data: {
2110
2085
  result: u,
2111
- id: s
2086
+ id: l
2112
2087
  }
2113
2088
  }, "*");
2114
2089
  break;
@@ -2116,61 +2091,73 @@ const qt = (e = {}) => {
2116
2091
  }
2117
2092
  })));
2118
2093
  };
2119
- function Yt(e) {
2120
- var N, F, q, oe, re, le, ce;
2094
+ function Qt(e) {
2095
+ var F, q, ae, oe, re, ce, le;
2121
2096
  const t = ee(null), [n, i] = S(() => 0);
2097
+ S(() => !0);
2122
2098
  function a(m) {
2123
- var b, y, C, T, j;
2124
- const h = {
2099
+ var g, x;
2100
+ const f = {
2101
+ ...e.builderContextSignal.rootState,
2102
+ ...m
2103
+ };
2104
+ e.builderContextSignal.rootSetState ? (x = (g = e.builderContextSignal).rootSetState) == null || x.call(g, f) : e.setBuilderContextSignal((p) => ({
2105
+ ...p,
2106
+ rootState: f
2107
+ }));
2108
+ }
2109
+ function o(m) {
2110
+ var g, x, p, T, j;
2111
+ const f = {
2125
2112
  ...e.builderContextSignal.content,
2126
2113
  ...m,
2127
2114
  data: {
2128
- ...(b = e.builderContextSignal.content) == null ? void 0 : b.data,
2115
+ ...(g = e.builderContextSignal.content) == null ? void 0 : g.data,
2129
2116
  ...m == null ? void 0 : m.data
2130
2117
  },
2131
2118
  meta: {
2132
- ...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
2119
+ ...(x = e.builderContextSignal.content) == null ? void 0 : x.meta,
2133
2120
  ...m == null ? void 0 : m.meta,
2134
- breakpoints: ((C = m == null ? void 0 : m.meta) == null ? void 0 : C.breakpoints) || ((j = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : j.breakpoints)
2121
+ breakpoints: ((p = m == null ? void 0 : m.meta) == null ? void 0 : p.breakpoints) || ((j = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : j.breakpoints)
2135
2122
  }
2136
2123
  };
2137
2124
  e.setBuilderContextSignal(($e) => ({
2138
2125
  ...$e,
2139
- content: h
2126
+ content: f
2140
2127
  }));
2141
2128
  }
2142
2129
  S(() => 0);
2143
- const [o, r] = S(
2130
+ const [r, s] = S(
2144
2131
  () => !1
2145
- ), [c, s] = S(
2132
+ ), [l, d] = S(
2146
2133
  () => e.contentWrapper || "div"
2147
2134
  );
2148
- function d(m) {
2149
- var b;
2150
- const { data: h } = m;
2151
- if (h)
2152
- switch (h.type) {
2135
+ function u(m) {
2136
+ var g;
2137
+ const { data: f } = m;
2138
+ if (f)
2139
+ switch (f.type) {
2153
2140
  case "builder.configureSdk": {
2154
- const y = h.data, { breakpoints: C, contentId: T } = y;
2155
- if (!T || T !== ((b = e.builderContextSignal.content) == null ? void 0 : b.id))
2141
+ const x = f.data, { breakpoints: p, contentId: T } = x;
2142
+ if (!T || T !== ((g = e.builderContextSignal.content) == null ? void 0 : g.id))
2156
2143
  return;
2157
- C && a({
2144
+ p && o({
2158
2145
  meta: {
2159
- breakpoints: C
2146
+ breakpoints: p
2160
2147
  }
2161
2148
  }), i(n + 1);
2162
2149
  break;
2163
2150
  }
2164
2151
  case "builder.contentUpdate": {
2165
- const y = h.data, C = y.key || y.alias || y.entry || y.modelName, T = y.data;
2166
- C === e.model && (a(T), i(n + 1));
2152
+ const x = f.data, p = x.key || x.alias || x.entry || x.modelName, T = x.data;
2153
+ p === e.model && (o(T), i(n + 1));
2167
2154
  break;
2168
2155
  }
2169
2156
  }
2170
2157
  }
2171
- function u() {
2172
- var h, b;
2173
- const m = (b = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : b.jsCode;
2158
+ function b() {
2159
+ var f, g;
2160
+ const m = (g = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : g.jsCode;
2174
2161
  m && _({
2175
2162
  code: m,
2176
2163
  context: e.context || {},
@@ -2179,28 +2166,28 @@ function Yt(e) {
2179
2166
  rootSetState: e.builderContextSignal.rootSetState
2180
2167
  });
2181
2168
  }
2182
- const [g, v] = S(() => ({})), [P, x] = S(() => !1);
2183
- function k(m) {
2184
- var h, b;
2169
+ const [v, y] = S(() => ({})), [C, k] = S(() => !1);
2170
+ function R(m) {
2171
+ var f, g;
2185
2172
  if (e.builderContextSignal.content) {
2186
- const y = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, C = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
2173
+ const x = (f = e.builderContextSignal.content) == null ? void 0 : f.testVariationId, p = (g = e.builderContextSignal.content) == null ? void 0 : g.id;
2187
2174
  de({
2188
2175
  type: "click",
2189
2176
  canTrack: D(e.canTrack),
2190
- contentId: C,
2177
+ contentId: p,
2191
2178
  apiKey: e.apiKey,
2192
- variationId: y !== C ? y : void 0,
2193
- ...Kt(m),
2194
- unique: !P
2179
+ variationId: x !== p ? x : void 0,
2180
+ ...Ht(m),
2181
+ unique: !C
2195
2182
  });
2196
2183
  }
2197
- P || x(!0);
2184
+ C || k(!0);
2198
2185
  }
2199
- function w(m) {
2186
+ function W(m) {
2200
2187
  return m.replace(
2201
2188
  /{{([^}]+)}}/g,
2202
- (h, b) => _({
2203
- code: b,
2189
+ (f, g) => _({
2190
+ code: g,
2204
2191
  context: e.context || {},
2205
2192
  localState: void 0,
2206
2193
  rootState: e.builderContextSignal.rootState,
@@ -2208,32 +2195,32 @@ function Yt(e) {
2208
2195
  })
2209
2196
  );
2210
2197
  }
2211
- function E({ url: m, key: h }) {
2212
- je(m).then((b) => b.json()).then((b) => {
2213
- var C, T;
2214
- const y = {
2198
+ function w({ url: m, key: f }) {
2199
+ je(m).then((g) => g.json()).then((g) => {
2200
+ var p, T;
2201
+ const x = {
2215
2202
  ...e.builderContextSignal.rootState,
2216
- [h]: b
2203
+ [f]: g
2217
2204
  };
2218
- (T = (C = e.builderContextSignal).rootSetState) == null || T.call(C, y), g[h] = !0;
2219
- }).catch((b) => {
2220
- console.error("error fetching dynamic data", m, b);
2205
+ (T = (p = e.builderContextSignal).rootSetState) == null || T.call(p, x), v[f] = !0;
2206
+ }).catch((g) => {
2207
+ console.error("error fetching dynamic data", m, g);
2221
2208
  });
2222
2209
  }
2223
2210
  function I() {
2224
- var h, b, y;
2225
- const m = (y = (b = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : b.httpRequests) != null ? y : {};
2226
- Object.entries(m).forEach(([C, T]) => {
2227
- if (T && (!g[C] || V())) {
2228
- const j = w(T);
2229
- E({
2211
+ var f, g, x;
2212
+ const m = (x = (g = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : g.httpRequests) != null ? x : {};
2213
+ Object.entries(m).forEach(([p, T]) => {
2214
+ if (T && (!v[p] || V())) {
2215
+ const j = W(T);
2216
+ w({
2230
2217
  url: j,
2231
- key: C
2218
+ key: p
2232
2219
  });
2233
2220
  }
2234
2221
  });
2235
2222
  }
2236
- function p() {
2223
+ function B() {
2237
2224
  V() && window.dispatchEvent(
2238
2225
  new CustomEvent(
2239
2226
  "builder:component:stateChange",
@@ -2248,8 +2235,8 @@ function Yt(e) {
2248
2235
  )
2249
2236
  );
2250
2237
  }
2251
- function B(m) {
2252
- i(n + 1), window.addEventListener("message", d), zt(), qt({
2238
+ function A(m) {
2239
+ i(n + 1), window.addEventListener("message", u), qt(), Yt({
2253
2240
  ...e.locale ? {
2254
2241
  locale: e.locale
2255
2242
  } : {},
@@ -2261,93 +2248,99 @@ function Yt(e) {
2261
2248
  } : {}
2262
2249
  }), Object.values(
2263
2250
  e.builderContextSignal.componentInfos
2264
- ).forEach((h) => {
2265
- var y;
2266
- const b = Le(h);
2267
- (y = window.parent) == null || y.postMessage(b, "*");
2251
+ ).forEach((f) => {
2252
+ var x;
2253
+ const g = Le(f);
2254
+ (x = window.parent) == null || x.postMessage(g, "*");
2268
2255
  }), window.addEventListener(
2269
2256
  "builder:component:stateChangeListenerActivated",
2270
- p
2257
+ B
2271
2258
  );
2272
2259
  }
2273
- function A(m) {
2274
- const h = new URL(location.href).searchParams, b = h.get("builder.preview"), y = h.get(
2275
- `builder.preview.${b}`
2276
- ), C = h.get("apiKey") || h.get("builder.space");
2277
- b === e.model && C === e.apiKey && (!e.content || y === e.content.id) && Ie({
2260
+ function N(m) {
2261
+ const f = new URL(location.href).searchParams, g = f.get("builder.preview"), x = f.get(
2262
+ `builder.preview.${g}`
2263
+ ), p = f.get("apiKey") || f.get("builder.space");
2264
+ g === e.model && p === e.apiKey && (!e.content || x === e.content.id) && Ie({
2278
2265
  model: e.model,
2279
2266
  apiKey: e.apiKey,
2280
2267
  apiVersion: e.builderContextSignal.apiVersion
2281
2268
  }).then((T) => {
2282
- T && a(T);
2269
+ T && o(T);
2283
2270
  });
2284
2271
  }
2285
- return W(() => {
2272
+ return E(() => {
2286
2273
  var m;
2287
2274
  return (m = t.current) == null || m.addEventListener(
2288
2275
  "initeditingbldr",
2289
- B
2276
+ A
2290
2277
  ), () => {
2291
- var h;
2292
- return (h = t.current) == null ? void 0 : h.removeEventListener(
2278
+ var f;
2279
+ return (f = t.current) == null ? void 0 : f.removeEventListener(
2293
2280
  "initeditingbldr",
2294
- B
2281
+ A
2295
2282
  );
2296
2283
  };
2297
- }, []), W(() => {
2284
+ }, []), E(() => {
2298
2285
  var m;
2299
2286
  return (m = t.current) == null || m.addEventListener(
2300
2287
  "initpreviewingbldr",
2301
- A
2288
+ N
2302
2289
  ), () => {
2303
- var h;
2304
- return (h = t.current) == null ? void 0 : h.removeEventListener(
2290
+ var f;
2291
+ return (f = t.current) == null ? void 0 : f.removeEventListener(
2305
2292
  "initpreviewingbldr",
2306
- A
2293
+ N
2307
2294
  );
2308
2295
  };
2309
- }, []), W(() => {
2310
- var m, h;
2296
+ }, []), E(() => {
2297
+ var m, f;
2311
2298
  if ($()) {
2312
2299
  if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && D(e.canTrack)) {
2313
- const y = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, C = (h = e.builderContextSignal.content) == null ? void 0 : h.id, T = e.apiKey;
2300
+ const x = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, p = (f = e.builderContextSignal.content) == null ? void 0 : f.id, T = e.apiKey;
2314
2301
  de({
2315
2302
  type: "impression",
2316
2303
  canTrack: !0,
2317
- contentId: C,
2304
+ contentId: p,
2318
2305
  apiKey: T,
2319
- variationId: y !== C ? y : void 0
2306
+ variationId: x !== p ? x : void 0
2320
2307
  });
2321
2308
  }
2322
2309
  _e() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2323
2310
  }
2324
- }, []), W(() => {
2311
+ }, []), E(() => {
2325
2312
  e.apiKey || U.error(
2326
2313
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2327
- ), u(), I(), p();
2328
- }, []), W(() => {
2329
- e.content && a(e.content);
2330
- }, [e.content]), W(() => {
2331
- }, [o]), W(() => {
2332
- u();
2314
+ ), b(), I(), B();
2315
+ }, []), E(() => {
2316
+ e.content && o(e.content);
2317
+ }, [e.content]), E(() => {
2318
+ }, [r]), E(() => {
2319
+ b();
2333
2320
  }, [
2334
- (F = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : F.jsCode,
2321
+ (q = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : q.jsCode,
2335
2322
  e.builderContextSignal.rootState
2336
- ]), W(() => {
2323
+ ]), E(() => {
2337
2324
  I();
2338
- }, [(oe = (q = e.builderContextSignal.content) == null ? void 0 : q.data) == null ? void 0 : oe.httpRequests]), W(() => {
2339
- p();
2340
- }, [e.builderContextSignal.rootState]), W(() => () => {
2341
- $() && (window.removeEventListener("message", d), window.removeEventListener(
2325
+ }, [(oe = (ae = e.builderContextSignal.content) == null ? void 0 : ae.data) == null ? void 0 : oe.httpRequests]), E(() => {
2326
+ B();
2327
+ }, [e.builderContextSignal.rootState]), E(() => {
2328
+ e.data && a(e.data);
2329
+ }, [e.data]), E(() => {
2330
+ e.locale && a({
2331
+ locale: e.locale
2332
+ });
2333
+ }, [e.locale]), E(() => () => {
2334
+ $() && (window.removeEventListener("message", u), window.removeEventListener(
2342
2335
  "builder:component:stateChangeListenerActivated",
2343
- p
2336
+ B
2344
2337
  ));
2345
- }, []), /* @__PURE__ */ l(ne.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ we(
2346
- c,
2338
+ }, []), /* @__PURE__ */ c(ne.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ we(
2339
+ l,
2347
2340
  {
2348
2341
  key: n,
2349
2342
  ref: t,
2350
- onClick: (m) => k(m),
2343
+ onClick: (m) => R(m),
2351
2344
  "builder-content-id": (re = e.builderContextSignal.content) == null ? void 0 : re.id,
2352
2345
  "builder-model": e.model,
2353
2346
  ...e.showContent ? {} : {
@@ -2355,12 +2348,12 @@ function Yt(e) {
2355
2348
  "aria-hidden": !0
2356
2349
  },
2357
2350
  ...e.contentWrapperProps,
2358
- className: `variant-${((le = e.content) == null ? void 0 : le.testVariationId) || ((ce = e.content) == null ? void 0 : ce.id)}`
2351
+ className: `variant-${((ce = e.content) == null ? void 0 : ce.testVariationId) || ((le = e.content) == null ? void 0 : le.id)}`
2359
2352
  },
2360
2353
  e.children
2361
2354
  ) }) : null });
2362
2355
  }
2363
- const Qt = (e) => {
2356
+ const Gt = (e) => {
2364
2357
  var o, r;
2365
2358
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (o = e == null ? void 0 : e.files) == null ? void 0 : o.regular;
2366
2359
  let a = "";
@@ -2372,37 +2365,37 @@ font-display: fallback;
2372
2365
  font-weight: 400;
2373
2366
  }
2374
2367
  `.trim()), e.files)
2375
- for (const c in e.files) {
2376
- if (!(String(Number(c)) === c))
2368
+ for (const s in e.files) {
2369
+ if (!(String(Number(s)) === s))
2377
2370
  continue;
2378
- const d = e.files[c];
2371
+ const d = e.files[s];
2379
2372
  d && d !== i && (a += `
2380
2373
  @font-face {
2381
2374
  font-family: "${t}";
2382
2375
  src: url('${d}') format('woff2');
2383
2376
  font-display: fallback;
2384
- font-weight: ${c};
2377
+ font-weight: ${s};
2385
2378
  }
2386
2379
  `.trim());
2387
2380
  }
2388
2381
  return a;
2389
- }, Gt = ({
2382
+ }, Jt = ({
2390
2383
  customFonts: e
2391
2384
  }) => {
2392
2385
  var t;
2393
- return ((t = e == null ? void 0 : e.map((n) => Qt(n))) == null ? void 0 : t.join(" ")) || "";
2394
- }, Jt = ({
2386
+ return ((t = e == null ? void 0 : e.map((n) => Gt(n))) == null ? void 0 : t.join(" ")) || "";
2387
+ }, Xt = ({
2395
2388
  cssCode: e,
2396
2389
  contentId: t
2397
2390
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
2398
- function Xt(e) {
2391
+ function Zt(e) {
2399
2392
  const [t, n] = S(
2400
2393
  () => `
2401
- ${Jt({
2394
+ ${Xt({
2402
2395
  cssCode: e.cssCode,
2403
2396
  contentId: e.contentId
2404
2397
  })}
2405
- ${Gt({
2398
+ ${Jt({
2406
2399
  customFonts: e.customFonts
2407
2400
  })}
2408
2401
 
@@ -2420,17 +2413,17 @@ ${Gt({
2420
2413
  }
2421
2414
  `.trim()
2422
2415
  );
2423
- return /* @__PURE__ */ l(H, { styles: t });
2416
+ return /* @__PURE__ */ c(H, { styles: t });
2424
2417
  }
2425
- const Zt = ({
2418
+ const en = ({
2426
2419
  content: e,
2427
2420
  data: t,
2428
2421
  locale: n
2429
2422
  }) => {
2430
- var o, r, c;
2423
+ var o, r, s;
2431
2424
  const i = {}, a = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
2432
- return (c = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || c.forEach((s) => {
2433
- s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
2425
+ return (s = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || s.forEach((l) => {
2426
+ l.name && l.defaultValue !== void 0 && (i[l.name] = l.defaultValue);
2434
2427
  }), {
2435
2428
  ...i,
2436
2429
  ...a,
@@ -2439,7 +2432,7 @@ const Zt = ({
2439
2432
  locale: n
2440
2433
  } : {}
2441
2434
  };
2442
- }, en = ({
2435
+ }, tn = ({
2443
2436
  content: e,
2444
2437
  data: t
2445
2438
  }) => e ? {
@@ -2451,21 +2444,21 @@ const Zt = ({
2451
2444
  meta: e == null ? void 0 : e.meta
2452
2445
  } : void 0;
2453
2446
  function ke(e) {
2454
- var s, d, u, g, v, P, x;
2447
+ var l, d, u, b, v, y, C;
2455
2448
  const [t, n] = S(
2456
2449
  () => {
2457
- var k, w;
2458
- return Ut({
2450
+ var k, R;
2451
+ return Dt({
2459
2452
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2460
2453
  variationId: (k = e.content) == null ? void 0 : k.testVariationId,
2461
2454
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2462
- contentId: (w = e.content) == null ? void 0 : w.id
2455
+ contentId: (R = e.content) == null ? void 0 : R.id
2463
2456
  });
2464
2457
  }
2465
2458
  );
2466
2459
  function i(k) {
2467
- c((w) => ({
2468
- ...w,
2460
+ s((R) => ({
2461
+ ...R,
2469
2462
  rootState: k
2470
2463
  }));
2471
2464
  }
@@ -2480,22 +2473,22 @@ function ke(e) {
2480
2473
  ...ue,
2481
2474
  ...e.customComponents || []
2482
2475
  ].reduce(
2483
- (k, { component: w, ...E }) => ({
2476
+ (k, { component: R, ...W }) => ({
2484
2477
  ...k,
2485
- [E.name]: {
2486
- component: w,
2487
- ...me(E)
2478
+ [W.name]: {
2479
+ component: R,
2480
+ ...me(W)
2488
2481
  }
2489
2482
  }),
2490
2483
  {}
2491
2484
  )
2492
- ), [r, c] = S(() => ({
2493
- content: en({
2485
+ ), [r, s] = S(() => ({
2486
+ content: tn({
2494
2487
  content: e.content,
2495
2488
  data: e.data
2496
2489
  }),
2497
2490
  localState: void 0,
2498
- rootState: Zt({
2491
+ rootState: en({
2499
2492
  content: e.content,
2500
2493
  data: e.data,
2501
2494
  locale: e.locale
@@ -2514,9 +2507,9 @@ function ke(e) {
2514
2507
  ...ue,
2515
2508
  ...e.customComponents || []
2516
2509
  ].reduce(
2517
- (k, { component: w, ...E }) => ({
2510
+ (k, { component: R, ...W }) => ({
2518
2511
  ...k,
2519
- [E.name]: me(E)
2512
+ [W.name]: me(W)
2520
2513
  }),
2521
2514
  {}
2522
2515
  ),
@@ -2524,16 +2517,17 @@ function ke(e) {
2524
2517
  BlocksWrapper: e.blocksWrapper || "div",
2525
2518
  BlocksWrapperProps: e.blocksWrapperProps || {}
2526
2519
  }));
2527
- return /* @__PURE__ */ l(
2520
+ return /* @__PURE__ */ c(
2528
2521
  Te.Provider,
2529
2522
  {
2530
2523
  value: {
2531
2524
  registeredComponents: a
2532
2525
  },
2533
- children: /* @__PURE__ */ R(
2534
- Yt,
2526
+ children: /* @__PURE__ */ P(
2527
+ Qt,
2535
2528
  {
2536
2529
  content: e.content,
2530
+ data: e.data,
2537
2531
  model: e.model,
2538
2532
  context: e.context,
2539
2533
  apiKey: e.apiKey,
@@ -2545,21 +2539,21 @@ function ke(e) {
2545
2539
  builderContextSignal: r,
2546
2540
  contentWrapper: e.contentWrapper,
2547
2541
  contentWrapperProps: e.contentWrapperProps,
2548
- setBuilderContextSignal: c,
2542
+ setBuilderContextSignal: s,
2549
2543
  children: [
2550
- e.isSsrAbTest ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(Z, { scriptStr: t }) }) : null,
2551
- /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
2552
- Xt,
2544
+ e.isSsrAbTest ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(Z, { scriptStr: t }) }) : null,
2545
+ /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(
2546
+ Zt,
2553
2547
  {
2554
- contentId: (s = r.content) == null ? void 0 : s.id,
2548
+ contentId: (l = r.content) == null ? void 0 : l.id,
2555
2549
  cssCode: (u = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
2556
- customFonts: (v = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : v.customFonts
2550
+ customFonts: (v = (b = r.content) == null ? void 0 : b.data) == null ? void 0 : v.customFonts
2557
2551
  }
2558
2552
  ) }),
2559
- /* @__PURE__ */ l(
2560
- ae,
2553
+ /* @__PURE__ */ c(
2554
+ ie,
2561
2555
  {
2562
- blocks: (x = (P = r.content) == null ? void 0 : P.data) == null ? void 0 : x.blocks,
2556
+ blocks: (C = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : C.blocks,
2563
2557
  context: r,
2564
2558
  registeredComponents: a
2565
2559
  }
@@ -2571,52 +2565,52 @@ function ke(e) {
2571
2565
  );
2572
2566
  }
2573
2567
  function Ve(e) {
2574
- var r, c;
2568
+ var r, s;
2575
2569
  const [t, n] = S(
2576
- () => _t({
2570
+ () => Lt({
2577
2571
  canTrack: D(e.canTrack),
2578
2572
  content: e.content
2579
2573
  })
2580
2574
  );
2581
2575
  function i() {
2582
- var s;
2583
- return Mt(
2576
+ var l;
2577
+ return Ut(
2584
2578
  M(e.content).map((d) => ({
2585
2579
  id: d.testVariationId,
2586
2580
  testRatio: d.testRatio
2587
2581
  })),
2588
- ((s = e.content) == null ? void 0 : s.id) || ""
2582
+ ((l = e.content) == null ? void 0 : l.id) || ""
2589
2583
  );
2590
2584
  }
2591
2585
  function a() {
2592
- return M(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
2586
+ return M(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
2593
2587
  }
2594
2588
  function o() {
2595
- var s;
2589
+ var l;
2596
2590
  return t ? {
2597
2591
  ...e.content,
2598
- testVariationId: (s = e.content) == null ? void 0 : s.id
2592
+ testVariationId: (l = e.content) == null ? void 0 : l.id
2599
2593
  } : Me({
2600
2594
  item: e.content,
2601
2595
  canTrack: D(e.canTrack)
2602
2596
  });
2603
2597
  }
2604
- return W(() => {
2605
- }, []), /* @__PURE__ */ R(f, { children: [
2606
- !e.__isNestedRender && L !== "reactNative" ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(Z, { scriptStr: jt() }) }) : null,
2607
- t ? /* @__PURE__ */ R(f, { children: [
2608
- /* @__PURE__ */ l(
2598
+ return E(() => {
2599
+ }, []), /* @__PURE__ */ P(h, { children: [
2600
+ !e.__isNestedRender && L !== "reactNative" ? /* @__PURE__ */ c(h, { children: /* @__PURE__ */ c(Z, { scriptStr: Mt() }) }) : null,
2601
+ t ? /* @__PURE__ */ P(h, { children: [
2602
+ /* @__PURE__ */ c(
2609
2603
  H,
2610
2604
  {
2611
2605
  id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
2612
2606
  styles: a()
2613
2607
  }
2614
2608
  ),
2615
- /* @__PURE__ */ l(Z, { scriptStr: i() }),
2616
- (c = M(e.content)) == null ? void 0 : c.map((s) => /* @__PURE__ */ l(
2609
+ /* @__PURE__ */ c(Z, { scriptStr: i() }),
2610
+ (s = M(e.content)) == null ? void 0 : s.map((l) => /* @__PURE__ */ c(
2617
2611
  ke,
2618
2612
  {
2619
- content: s,
2613
+ content: l,
2620
2614
  showContent: !1,
2621
2615
  model: e.model,
2622
2616
  data: e.data,
@@ -2634,10 +2628,10 @@ function Ve(e) {
2634
2628
  contentWrapper: e.contentWrapper,
2635
2629
  contentWrapperProps: e.contentWrapperProps
2636
2630
  },
2637
- s.testVariationId
2631
+ l.testVariationId
2638
2632
  ))
2639
2633
  ] }) : null,
2640
- /* @__PURE__ */ l(
2634
+ /* @__PURE__ */ c(
2641
2635
  ke,
2642
2636
  {
2643
2637
  content: o(),
@@ -2661,7 +2655,7 @@ function Ve(e) {
2661
2655
  )
2662
2656
  ] });
2663
2657
  }
2664
- const tn = async ({
2658
+ const nn = async ({
2665
2659
  builderContextValue: e,
2666
2660
  symbol: t
2667
2661
  }) => {
@@ -2680,33 +2674,33 @@ const tn = async ({
2680
2674
  U.error("Could not fetch symbol content: ", n);
2681
2675
  });
2682
2676
  };
2683
- function nn(e) {
2684
- var o, r, c;
2677
+ function an(e) {
2678
+ var o, r, s;
2685
2679
  function t() {
2686
- var s, d;
2680
+ var l, d;
2687
2681
  return [
2688
2682
  e.attributes.className,
2689
2683
  "builder-symbol",
2690
- (s = e.symbol) != null && s.inline ? "builder-inline-symbol" : void 0,
2684
+ (l = e.symbol) != null && l.inline ? "builder-inline-symbol" : void 0,
2691
2685
  (d = e.symbol) != null && d.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2692
2686
  ].filter(Boolean).join(" ");
2693
2687
  }
2694
2688
  const [n, i] = S(() => {
2695
- var s;
2696
- return (s = e.symbol) == null ? void 0 : s.content;
2689
+ var l;
2690
+ return (l = e.symbol) == null ? void 0 : l.content;
2697
2691
  });
2698
2692
  function a() {
2699
- n || tn({
2693
+ n || nn({
2700
2694
  symbol: e.symbol,
2701
2695
  builderContextValue: e.builderContext
2702
- }).then((s) => {
2703
- s && i(s);
2696
+ }).then((l) => {
2697
+ l && i(l);
2704
2698
  });
2705
2699
  }
2706
- return W(() => {
2707
- }, []), W(() => {
2700
+ return E(() => {
2701
+ }, []), E(() => {
2708
2702
  a();
2709
- }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
2703
+ }, [e.symbol]), /* @__PURE__ */ c("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ c(
2710
2704
  Ve,
2711
2705
  {
2712
2706
  __isNestedRender: !0,
@@ -2719,36 +2713,36 @@ function nn(e) {
2719
2713
  ...e.builderContext.localState,
2720
2714
  ...(r = n == null ? void 0 : n.data) == null ? void 0 : r.state
2721
2715
  },
2722
- model: (c = e.symbol) == null ? void 0 : c.model,
2716
+ model: (s = e.symbol) == null ? void 0 : s.model,
2723
2717
  content: n
2724
2718
  }
2725
2719
  ) });
2726
2720
  }
2727
- const ln = ae, cn = Ve;
2721
+ const ln = ie, sn = Ve;
2728
2722
  export {
2729
- ae as Blocks,
2723
+ ie as Blocks,
2730
2724
  Ue as Button,
2731
- ut as Columns,
2725
+ mt as Columns,
2732
2726
  Ve as Content,
2733
- mt as Fragment,
2734
- gt as Image,
2727
+ ft as Fragment,
2728
+ bt as Image,
2735
2729
  ln as RenderBlocks,
2736
- cn as RenderContent,
2737
- bt as Section,
2738
- nn as Symbol,
2739
- At as Text,
2740
- $t as Video,
2741
- un as _processContentResult,
2730
+ sn as RenderContent,
2731
+ xt as Section,
2732
+ an as Symbol,
2733
+ Vt as Text,
2734
+ Nt as Video,
2735
+ mn as _processContentResult,
2742
2736
  Le as createRegisterComponentMessage,
2743
- mn as fetchBuilderProps,
2744
- fn as fetchEntries,
2737
+ fn as fetchBuilderProps,
2738
+ hn as fetchEntries,
2745
2739
  Ie as fetchOneEntry,
2746
- hn as getAllContent,
2747
- gn as getBuilderSearchParams,
2748
- bn as getContent,
2740
+ gn as getAllContent,
2741
+ bn as getBuilderSearchParams,
2742
+ xn as getContent,
2749
2743
  V as isEditing,
2750
2744
  _e as isPreviewing,
2751
2745
  Fe as register,
2752
- xn as setEditorSettings,
2753
- yn as track
2746
+ yn as setEditorSettings,
2747
+ Sn as track
2754
2748
  };