@builder.io/sdk-react 0.8.1 → 0.9.0

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.
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { jsxs as E, Fragment as f, jsx as r } from "react/jsx-runtime";
3
- import { createContext as pe, useState as v, useContext as le, createElement as ke, useRef as Z, useEffect as P } from "react";
4
- import { i as $, j as N, k as $e, l as M, m as ee, n as G, T as L, r as Ne, o as U, p as ce, a as Fe, c as We, b as Ce, q as _e, u as se, v as de, w as Le } from "./server-entry-0aebe4be.js";
5
- import { _ as sn, h as dn, f as un, g as mn, e as fn, d as hn, s as gn, t as bn } from "./server-entry-0aebe4be.js";
6
- function je(e) {
7
- return /* @__PURE__ */ E(f, { children: [
2
+ import { jsxs as R, Fragment as f, jsx as r } from "react/jsx-runtime";
3
+ import { createContext as Ce, useState as S, useContext as se, createElement as we, useRef as Z, useEffect as W } from "react";
4
+ import { i as A, j as $, k as Ne, l as M, m as ee, n as G, T as L, r as Fe, o as U, 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-0aebe4be.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-0aebe4be.js";
6
+ function Ue(e) {
7
+ return /* @__PURE__ */ R(f, { children: [
8
8
  e.link ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
9
9
  "a",
10
10
  {
@@ -28,7 +28,7 @@ function je(e) {
28
28
  }` })
29
29
  ] });
30
30
  }
31
- const te = pe({
31
+ const te = Ce({
32
32
  content: null,
33
33
  context: {},
34
34
  localState: void 0,
@@ -38,9 +38,11 @@ const te = pe({
38
38
  apiKey: null,
39
39
  apiVersion: void 0,
40
40
  componentInfos: {},
41
- inheritedStyles: {}
42
- }), we = pe({ registeredComponents: {} });
43
- function Me(e) {
41
+ inheritedStyles: {},
42
+ BlocksWrapper: "div",
43
+ BlocksWrapperProps: {}
44
+ }), Te = Ce({ registeredComponents: {} });
45
+ function De(e) {
44
46
  var t;
45
47
  return {
46
48
  ...(t = e.component) == null ? void 0 : t.options,
@@ -51,7 +53,7 @@ function Me(e) {
51
53
  builderBlock: e
52
54
  };
53
55
  }
54
- const Ue = ({
56
+ const Oe = ({
55
57
  builder: e,
56
58
  context: t,
57
59
  event: n,
@@ -63,14 +65,14 @@ const Ue = ({
63
65
  builder: e,
64
66
  context: t,
65
67
  event: n
66
- }), De = () => ({
67
- isEditing: $(),
68
- isBrowser: N(),
69
- isServer: !N(),
70
- getUserAttributes: () => $e()
71
- }), Oe = (e, {
68
+ }), Ke = () => ({
69
+ isEditing: A(),
70
+ isBrowser: $(),
71
+ isServer: !$(),
72
+ getUserAttributes: () => Ne()
73
+ }), He = (e, {
72
74
  isExpression: t = !0
73
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, ue = ({
75
+ }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, fe = ({
74
76
  code: e,
75
77
  builder: t,
76
78
  context: n,
@@ -79,15 +81,15 @@ const Ue = ({
79
81
  rootSetState: o,
80
82
  rootState: l
81
83
  }) => {
82
- const s = Ue({
84
+ const s = Oe({
83
85
  builder: t,
84
86
  context: n,
85
87
  event: i,
86
- state: Ke(l, a, o)
88
+ state: ze(l, a, o)
87
89
  });
88
90
  return new Function(...s.map(([c]) => c), e)(...s.map(([, c]) => c));
89
91
  };
90
- function Ke(e, t, n) {
92
+ function ze(e, t, n) {
91
93
  if (e === t)
92
94
  throw new Error("rootState === localState");
93
95
  return new Proxy(e, {
@@ -99,7 +101,7 @@ function Ke(e, t, n) {
99
101
  }
100
102
  });
101
103
  }
102
- const He = (e) => (N(), ue(e));
104
+ const qe = (e) => ($(), fe(e));
103
105
  function _({
104
106
  code: e,
105
107
  context: t,
@@ -114,10 +116,10 @@ function _({
114
116
  return;
115
117
  }
116
118
  const s = {
117
- code: Oe(e, {
119
+ code: He(e, {
118
120
  isExpression: l
119
121
  }),
120
- builder: De(),
122
+ builder: Ke(),
121
123
  context: t,
122
124
  event: o,
123
125
  rootSetState: a,
@@ -125,7 +127,7 @@ function _({
125
127
  localState: n
126
128
  };
127
129
  try {
128
- return He(s);
130
+ return qe(s);
129
131
  } catch (c) {
130
132
  M.error("Failed code evaluation: " + c.message, {
131
133
  code: e
@@ -133,13 +135,13 @@ function _({
133
135
  return;
134
136
  }
135
137
  }
136
- const ze = (e, t, n) => {
138
+ const Ye = (e, t, n) => {
137
139
  if (Object(e) !== e)
138
140
  return e;
139
141
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
140
142
  return i.slice(0, -1).reduce((a, o, l) => Object(a[o]) === a[o] ? a[o] : a[o] = Math.abs(Number(i[l + 1])) >> 0 === +i[l + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
141
143
  };
142
- const qe = ({
144
+ const Qe = ({
143
145
  block: e,
144
146
  context: t,
145
147
  localState: n,
@@ -165,7 +167,7 @@ const qe = ({
165
167
  rootSetState: a,
166
168
  context: t
167
169
  });
168
- ze(l, s, d);
170
+ Ye(l, s, d);
169
171
  }
170
172
  return l;
171
173
  };
@@ -178,7 +180,7 @@ function D({
178
180
  rootSetState: o
179
181
  }) {
180
182
  const l = e;
181
- return n ? qe({
183
+ return n ? Qe({
182
184
  block: l,
183
185
  localState: i,
184
186
  rootState: a,
@@ -186,7 +188,7 @@ function D({
186
188
  context: t
187
189
  }) : l;
188
190
  }
189
- const Ye = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], q = (e) => typeof e == "string" && Ye.includes(e.toLowerCase()), Qe = ({
191
+ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], q = (e) => typeof e == "string" && Ge.includes(e.toLowerCase()), Je = ({
190
192
  block: e,
191
193
  context: t,
192
194
  registeredComponents: n
@@ -208,7 +210,7 @@ const Ye = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
208
210
  console.warn(`
209
211
  Could not find a registered component named "${i}".
210
212
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
211
- }, Ge = ({
213
+ }, Xe = ({
212
214
  block: e,
213
215
  context: t
214
216
  }) => {
@@ -241,7 +243,7 @@ const Ye = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
241
243
  },
242
244
  block: i
243
245
  }));
244
- }, Ie = {
246
+ }, Re = {
245
247
  small: {
246
248
  min: 320,
247
249
  default: 321,
@@ -257,11 +259,11 @@ const Ye = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
257
259
  default: 991,
258
260
  max: 1200
259
261
  }
260
- }, me = (e, t = Ie) => `@media (max-width: ${t[e].max}px)`, Te = ({
262
+ }, he = (e, t = Re) => `@media (max-width: ${t[e].max}px)`, Ee = ({
261
263
  small: e,
262
264
  medium: t
263
265
  }) => {
264
- const n = ee(Ie);
266
+ const n = ee(Re);
265
267
  if (!e || !t)
266
268
  return n;
267
269
  const i = Math.floor(e / 2);
@@ -283,17 +285,17 @@ const Ye = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
283
285
  min: o,
284
286
  default: o + 1
285
287
  }, n;
286
- }, Je = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Re = (e) => Object.entries(e).map(([n, i]) => {
288
+ }, Ze = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Pe = (e) => Object.entries(e).map(([n, i]) => {
287
289
  if (typeof i == "string")
288
- return `${Je(n)}: ${i};`;
289
- }).filter(G), Xe = (e) => Re(e).join(`
290
+ return `${Ze(n)}: ${i};`;
291
+ }).filter(G), et = (e) => Pe(e).join(`
290
292
  `), Y = ({
291
293
  mediaQuery: e,
292
294
  className: t,
293
295
  styles: n
294
296
  }) => {
295
297
  const i = `.${t} {
296
- ${Xe(n)}
298
+ ${et(n)}
297
299
  }`;
298
300
  return e ? `${e} {
299
301
  ${i}
@@ -323,7 +325,7 @@ function ne(e) {
323
325
  rootSetState: e.context.rootSetState,
324
326
  context: e.context.context,
325
327
  shouldEvaluateBindings: !0
326
- }), a = i.responsiveStyles, o = e.context.content, l = Te(
328
+ }), a = i.responsiveStyles, o = e.context.content, l = Ee(
327
329
  ((x = o == null ? void 0 : o.meta) == null ? void 0 : x.breakpoints) || {}
328
330
  ), s = a == null ? void 0 : a.large, c = a == null ? void 0 : a.medium, d = a == null ? void 0 : a.small, u = i.id;
329
331
  if (!u)
@@ -331,29 +333,29 @@ function ne(e) {
331
333
  const g = s ? Y({
332
334
  className: u,
333
335
  styles: s
334
- }) : "", S = c ? Y({
336
+ }) : "", p = c ? Y({
335
337
  className: u,
336
338
  styles: c,
337
- mediaQuery: me(
339
+ mediaQuery: he(
338
340
  "medium",
339
341
  l
340
342
  )
341
- }) : "", V = d ? Y({
343
+ }) : "", P = d ? Y({
342
344
  className: u,
343
345
  styles: d,
344
- mediaQuery: me(
346
+ mediaQuery: he(
345
347
  "small",
346
348
  l
347
349
  )
348
350
  }) : "";
349
- return [g, S, V].join(" ");
351
+ return [g, p, P].join(" ");
350
352
  }
351
353
  return /* @__PURE__ */ r(f, { children: n() && t() ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(K, { styles: n() }) }) : null });
352
354
  }
353
- function Ze(e) {
355
+ function tt(e) {
354
356
  return e.charAt(0).toUpperCase() + e.slice(1);
355
357
  }
356
- const et = (e) => `on${Ze(e)}`, tt = (e, t) => (n) => _({
358
+ const nt = (e) => `on${tt(e)}`, it = (e, t) => (n) => _({
357
359
  code: e,
358
360
  context: t.context,
359
361
  localState: t.localState,
@@ -368,7 +370,7 @@ function J(e) {
368
370
  if (!n.hasOwnProperty(i))
369
371
  continue;
370
372
  const a = n[i];
371
- let o = et(i);
373
+ let o = nt(i);
372
374
  if (e.stripPrefix)
373
375
  switch (L) {
374
376
  case "vue2":
@@ -379,14 +381,16 @@ function J(e) {
379
381
  o = o.replace("on:", "");
380
382
  break;
381
383
  }
382
- t[o] = tt(a, e);
384
+ t[o] = it(a, e);
383
385
  }
384
386
  return t;
385
387
  }
386
- function nt(e) {
388
+ function at({
389
+ properties: e
390
+ }) {
387
391
  return e.className = e.class, delete e.class, e;
388
392
  }
389
- const it = (e) => ({
393
+ const ot = (e) => ({
390
394
  href: e.href
391
395
  });
392
396
  function O({
@@ -395,21 +399,25 @@ function O({
395
399
  }) {
396
400
  var i;
397
401
  const n = {
398
- ...it(e),
402
+ ...ot(e),
399
403
  ...e.properties,
400
404
  "builder-id": e.id,
401
- style: e.style ? at(e.style) : void 0,
405
+ style: e.style ? rt(e.style) : void 0,
402
406
  class: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
403
407
  };
404
- return nt(n);
408
+ return at({
409
+ properties: n,
410
+ context: t,
411
+ block: e
412
+ });
405
413
  }
406
- function at(e) {
414
+ function rt(e) {
407
415
  switch (L) {
408
416
  case "svelte":
409
417
  case "vue2":
410
418
  case "vue3":
411
419
  case "solid":
412
- return Re(e).join(" ");
420
+ return Pe(e).join(" ");
413
421
  case "qwik":
414
422
  case "reactNative":
415
423
  case "react":
@@ -417,10 +425,10 @@ function at(e) {
417
425
  return e;
418
426
  }
419
427
  }
420
- function fe(e) {
421
- return /* @__PURE__ */ E(f, { children: [
428
+ function ge(e) {
429
+ return /* @__PURE__ */ R(f, { children: [
422
430
  " ",
423
- e.hasChildren ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ E(
431
+ e.hasChildren ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ R(
424
432
  e.Wrapper,
425
433
  {
426
434
  ...O({
@@ -461,7 +469,7 @@ function fe(e) {
461
469
  " "
462
470
  ] });
463
471
  }
464
- function ot(e) {
472
+ function lt(e) {
465
473
  return /* @__PURE__ */ r(
466
474
  e.Wrapper,
467
475
  {
@@ -483,7 +491,7 @@ function ot(e) {
483
491
  }
484
492
  );
485
493
  }
486
- const rt = ({
494
+ const ct = ({
487
495
  componentOptions: e,
488
496
  builderBlock: t,
489
497
  context: n,
@@ -509,15 +517,15 @@ const rt = ({
509
517
  })
510
518
  } : {}
511
519
  };
512
- function he(e) {
520
+ function be(e) {
513
521
  var i, a;
514
- const [t, n] = v(
515
- () => e.isInteractive ? ot : e.componentRef
522
+ const [t, n] = S(
523
+ () => e.isInteractive ? lt : e.componentRef
516
524
  );
517
- return /* @__PURE__ */ r(f, { children: e.componentRef ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ E(
525
+ return /* @__PURE__ */ r(f, { children: e.componentRef ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ R(
518
526
  t,
519
527
  {
520
- ...rt({
528
+ ...ct({
521
529
  componentOptions: e.componentOptions,
522
530
  builderBlock: e.builderBlock,
523
531
  context: e.context,
@@ -548,8 +556,8 @@ function he(e) {
548
556
  }
549
557
  ) }) : null });
550
558
  }
551
- function lt(e) {
552
- const [t, n] = v(() => e.repeatContext);
559
+ function st(e) {
560
+ const [t, n] = S(() => e.repeatContext);
553
561
  return /* @__PURE__ */ r(te.Provider, { value: t, children: /* @__PURE__ */ r(
554
562
  H,
555
563
  {
@@ -560,16 +568,16 @@ function lt(e) {
560
568
  ) });
561
569
  }
562
570
  function H(e) {
563
- var u, g, S, V;
571
+ var u, g, p, P;
564
572
  function t() {
565
- return Qe({
573
+ return Je({
566
574
  block: e.block,
567
575
  context: e.context,
568
576
  registeredComponents: e.registeredComponents
569
577
  });
570
578
  }
571
579
  function n() {
572
- return Ge({
580
+ return Xe({
573
581
  block: e.block,
574
582
  context: e.context
575
583
  });
@@ -589,38 +597,38 @@ function H(e) {
589
597
  return e.block.tagName || "div";
590
598
  }
591
599
  function o() {
592
- var I, w;
600
+ var I, E;
593
601
  if ((I = e.block.repeat) != null && I.collection)
594
- return !!((w = n == null ? void 0 : n()) != null && w.length);
602
+ return !!((E = n == null ? void 0 : n()) != null && E.length);
595
603
  const x = "hide" in i() ? i().hide : !1;
596
604
  return ("show" in i() ? i().show : !0) && !x;
597
605
  }
598
606
  function l() {
599
- var p;
600
- return !((p = t == null ? void 0 : t()) != null && p.component) && !n() ? i().children ?? [] : [];
607
+ var v;
608
+ return !((v = t == null ? void 0 : t()) != null && v.component) && !n() ? i().children ?? [] : [];
601
609
  }
602
610
  function s() {
603
- var x, p, I, w, C;
611
+ var x, v, I, E, C;
604
612
  return {
605
613
  blockChildren: i().children ?? [],
606
614
  componentRef: (x = t == null ? void 0 : t()) == null ? void 0 : x.component,
607
615
  componentOptions: {
608
- ...Me(i()),
616
+ ...De(i()),
609
617
  builderContext: e.context,
610
- ...((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Symbol" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Columns" ? {
618
+ ...((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Symbol" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Columns" ? {
611
619
  builderComponents: e.registeredComponents
612
620
  } : {}
613
621
  },
614
622
  context: c,
615
623
  registeredComponents: e.registeredComponents,
616
624
  builderBlock: i(),
617
- includeBlockProps: ((w = t == null ? void 0 : t()) == null ? void 0 : w.noWrap) === !0,
625
+ includeBlockProps: ((E = t == null ? void 0 : t()) == null ? void 0 : E.noWrap) === !0,
618
626
  isInteractive: !((C = t == null ? void 0 : t()) != null && C.isRSC)
619
627
  };
620
628
  }
621
- const [c, d] = v(() => e.context);
629
+ const [c, d] = S(() => e.context);
622
630
  return /* @__PURE__ */ r(f, { children: o() ? /* @__PURE__ */ r(f, { children: (u = t == null ? void 0 : t()) != null && u.noWrap ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
623
- he,
631
+ be,
624
632
  {
625
633
  componentRef: s().componentRef,
626
634
  componentOptions: s().componentOptions,
@@ -631,9 +639,9 @@ function H(e) {
631
639
  includeBlockProps: s().includeBlockProps,
632
640
  isInteractive: s().isInteractive
633
641
  }
634
- ) }) : /* @__PURE__ */ E(f, { children: [
642
+ ) }) : /* @__PURE__ */ R(f, { children: [
635
643
  q(a()) ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
636
- fe,
644
+ ge,
637
645
  {
638
646
  Wrapper: a(),
639
647
  block: i(),
@@ -641,17 +649,17 @@ function H(e) {
641
649
  hasChildren: !1
642
650
  }
643
651
  ) }) : null,
644
- !q(a()) && n() ? /* @__PURE__ */ r(f, { children: (g = n()) == null ? void 0 : g.map((x, p) => /* @__PURE__ */ r(
645
- lt,
652
+ !q(a()) && n() ? /* @__PURE__ */ r(f, { children: (g = n()) == null ? void 0 : g.map((x, v) => /* @__PURE__ */ r(
653
+ st,
646
654
  {
647
655
  repeatContext: x.context,
648
656
  block: x.block,
649
657
  registeredComponents: e.registeredComponents
650
658
  },
651
- p
659
+ v
652
660
  )) }) : null,
653
- !q(a()) && !n() ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ E(
654
- fe,
661
+ !q(a()) && !n() ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ R(
662
+ ge,
655
663
  {
656
664
  Wrapper: a(),
657
665
  block: i(),
@@ -659,7 +667,7 @@ function H(e) {
659
667
  hasChildren: !0,
660
668
  children: [
661
669
  /* @__PURE__ */ r(
662
- he,
670
+ be,
663
671
  {
664
672
  componentRef: s().componentRef,
665
673
  componentOptions: s().componentOptions,
@@ -671,7 +679,7 @@ function H(e) {
671
679
  isInteractive: s().isInteractive
672
680
  }
673
681
  ),
674
- (S = l()) == null ? void 0 : S.map((x) => /* @__PURE__ */ r(
682
+ (p = l()) == null ? void 0 : p.map((x) => /* @__PURE__ */ r(
675
683
  H,
676
684
  {
677
685
  block: x,
@@ -680,7 +688,7 @@ function H(e) {
680
688
  },
681
689
  "block-" + x.id
682
690
  )),
683
- (V = l()) == null ? void 0 : V.map((x) => /* @__PURE__ */ r(
691
+ (P = l()) == null ? void 0 : P.map((x) => /* @__PURE__ */ r(
684
692
  ne,
685
693
  {
686
694
  block: x,
@@ -693,14 +701,14 @@ function H(e) {
693
701
  ) }) : null
694
702
  ] }) }) : null });
695
703
  }
696
- function ct(e) {
704
+ function dt(e) {
697
705
  function t() {
698
706
  var a;
699
707
  return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
700
708
  }
701
709
  function n() {
702
710
  var a, o;
703
- $() && !((a = e.blocks) != null && a.length) && ((o = window.parent) == null || o.postMessage(
711
+ A() && !((a = e.blocks) != null && a.length) && ((o = window.parent) == null || o.postMessage(
704
712
  {
705
713
  type: "builder.clickEmptyBlocks",
706
714
  data: {
@@ -713,7 +721,7 @@ function ct(e) {
713
721
  }
714
722
  function i() {
715
723
  var a, o;
716
- $() && !((a = e.blocks) != null && a.length) && ((o = window.parent) == null || o.postMessage(
724
+ A() && !((a = e.blocks) != null && a.length) && ((o = window.parent) == null || o.postMessage(
717
725
  {
718
726
  type: "builder.hoverEmptyBlocks",
719
727
  data: {
@@ -724,21 +732,22 @@ function ct(e) {
724
732
  "*"
725
733
  ));
726
734
  }
727
- return /* @__PURE__ */ E(f, { children: [
735
+ return /* @__PURE__ */ R(f, { children: [
728
736
  /* @__PURE__ */ r(
729
- "div",
737
+ e.BlocksWrapper,
730
738
  {
731
- className: t() + " div-02c7a115",
739
+ className: t() + " props-blocks-wrapper-4f2c12d8",
732
740
  "builder-path": e.path,
733
741
  "builder-parent-id": e.parent,
734
742
  style: e.styleProp,
735
743
  onClick: (a) => n(),
736
744
  onMouseEnter: (a) => i(),
737
745
  onKeyPress: (a) => n(),
746
+ ...e.BlocksWrapperProps,
738
747
  children: e.children
739
748
  }
740
749
  ),
741
- /* @__PURE__ */ r("style", { children: `.div-02c7a115 {
750
+ /* @__PURE__ */ r("style", { children: `.props-blocks-wrapper-4f2c12d8 {
742
751
  display: flex;
743
752
  flex-direction: column;
744
753
  align-items: stretch;
@@ -746,68 +755,70 @@ function ct(e) {
746
755
  ] });
747
756
  }
748
757
  function ie(e) {
749
- var i, a;
750
- const t = le(te), n = le(we);
751
- return /* @__PURE__ */ E(
752
- ct,
758
+ var i, a, o, l;
759
+ const t = se(te), n = se(Te);
760
+ return /* @__PURE__ */ R(
761
+ dt,
753
762
  {
754
763
  blocks: e.blocks,
755
764
  parent: e.parent,
756
765
  path: e.path,
757
766
  styleProp: e.styleProp,
767
+ BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
768
+ BlocksWrapperProps: (a = e.context) == null ? void 0 : a.BlocksWrapperProps,
758
769
  children: [
759
- e.blocks ? /* @__PURE__ */ r(f, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ r(
770
+ e.blocks ? /* @__PURE__ */ r(f, { children: (o = e.blocks) == null ? void 0 : o.map((s) => /* @__PURE__ */ r(
760
771
  H,
761
772
  {
762
- block: o,
773
+ block: s,
763
774
  context: e.context || t,
764
775
  registeredComponents: e.registeredComponents || n.registeredComponents
765
776
  },
766
- "render-block-" + o.id
777
+ "render-block-" + s.id
767
778
  )) }) : null,
768
- e.blocks ? /* @__PURE__ */ r(f, { children: (a = e.blocks) == null ? void 0 : a.map((o) => /* @__PURE__ */ r(
779
+ e.blocks ? /* @__PURE__ */ r(f, { children: (l = e.blocks) == null ? void 0 : l.map((s) => /* @__PURE__ */ r(
769
780
  ne,
770
781
  {
771
- block: o,
782
+ block: s,
772
783
  context: e.context || t
773
784
  },
774
- "block-style-" + o.id
785
+ "block-style-" + s.id
775
786
  )) }) : null
776
787
  ]
777
788
  }
778
789
  );
779
790
  }
780
- function st(e) {
781
- var w;
782
- const [t, n] = v(
791
+ function ut(e) {
792
+ var E;
793
+ const [t, n] = S(
783
794
  () => typeof e.space == "number" ? e.space || 0 : 20
784
- ), [i, a] = v(() => e.columns || []), [o, l] = v(
795
+ ), [i, a] = S(() => e.columns || []), [o, l] = S(
785
796
  () => e.stackColumnsAt || "tablet"
786
797
  );
787
798
  function s(C) {
788
- var T;
789
- return ((T = i[C]) == null ? void 0 : T.width) || 100 / i.length;
799
+ var w;
800
+ return ((w = i[C]) == null ? void 0 : w.width) || 100 / i.length;
790
801
  }
791
802
  function c(C) {
792
- const T = t * (i.length - 1) / i.length;
793
- return `calc(${s(C)}% - ${T}px)`;
803
+ const w = t * (i.length - 1) / i.length;
804
+ return `calc(${s(C)}% - ${w}px)`;
794
805
  }
795
806
  function d({
796
807
  stackedStyle: C,
797
- desktopStyle: T
808
+ desktopStyle: w
798
809
  }) {
799
- return o === "tablet" ? C : T;
810
+ return o === "tablet" ? C : w;
800
811
  }
801
812
  function u({
802
813
  stackedStyle: C,
803
- desktopStyle: T
814
+ desktopStyle: w
804
815
  }) {
805
- return o === "never" ? T : C;
816
+ return o === "never" ? w : C;
806
817
  }
807
- const [g, S] = v(
818
+ const [g, p] = S(
808
819
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
809
820
  );
810
- function V() {
821
+ function P() {
811
822
  return {
812
823
  "--flex-dir": g,
813
824
  "--flex-dir-tablet": d({
@@ -817,37 +828,37 @@ function st(e) {
817
828
  };
818
829
  }
819
830
  function x(C) {
820
- const T = C === 0 ? 0 : t, A = c(C), B = `${T}px`, F = "100%", W = 0;
831
+ const w = C === 0 ? 0 : t, B = c(C), V = `${w}px`, N = "100%", F = 0;
821
832
  return {
822
- width: A,
823
- ["marginLeft"]: B,
833
+ width: B,
834
+ ["marginLeft"]: V,
824
835
  "--column-width-mobile": u({
825
- stackedStyle: F,
826
- desktopStyle: A
836
+ stackedStyle: N,
837
+ desktopStyle: B
827
838
  }),
828
839
  "--column-margin-left-mobile": u({
829
- stackedStyle: W,
830
- desktopStyle: B
840
+ stackedStyle: F,
841
+ desktopStyle: V
831
842
  }),
832
843
  "--column-width-tablet": d({
833
- stackedStyle: F,
834
- desktopStyle: A
844
+ stackedStyle: N,
845
+ desktopStyle: B
835
846
  }),
836
847
  "--column-margin-left-tablet": d({
837
- stackedStyle: W,
838
- desktopStyle: B
848
+ stackedStyle: F,
849
+ desktopStyle: V
839
850
  })
840
851
  };
841
852
  }
842
- function p(C) {
843
- var A, B;
844
- return Te(
845
- ((B = (A = e.builderContext.content) == null ? void 0 : A.meta) == null ? void 0 : B.breakpoints) || {}
853
+ function v(C) {
854
+ var B, V;
855
+ return Ee(
856
+ ((V = (B = e.builderContext.content) == null ? void 0 : B.meta) == null ? void 0 : V.breakpoints) || {}
846
857
  )[C].max;
847
858
  }
848
859
  function I() {
849
860
  return `
850
- @media (max-width: ${p("medium")}px) {
861
+ @media (max-width: ${v("medium")}px) {
851
862
  .${e.builderBlock.id}-breakpoints {
852
863
  flex-direction: var(--flex-dir-tablet);
853
864
  align-items: stretch;
@@ -859,7 +870,7 @@ function st(e) {
859
870
  }
860
871
  }
861
872
 
862
- @media (max-width: ${p("small")}px) {
873
+ @media (max-width: ${v("small")}px) {
863
874
  .${e.builderBlock.id}-breakpoints {
864
875
  flex-direction: var(--flex-dir);
865
876
  align-items: stretch;
@@ -872,25 +883,25 @@ function st(e) {
872
883
  },
873
884
  `;
874
885
  }
875
- return /* @__PURE__ */ E(f, { children: [
876
- /* @__PURE__ */ E(
886
+ return /* @__PURE__ */ R(f, { children: [
887
+ /* @__PURE__ */ R(
877
888
  "div",
878
889
  {
879
890
  className: `builder-columns ${e.builderBlock.id}-breakpoints div-53636e90`,
880
- style: V(),
891
+ style: P(),
881
892
  children: [
882
893
  /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(K, { styles: I() }) }),
883
- (w = e.columns) == null ? void 0 : w.map((C, T) => /* @__PURE__ */ ke(
894
+ (E = e.columns) == null ? void 0 : E.map((C, w) => /* @__PURE__ */ we(
884
895
  "div",
885
896
  {
886
897
  className: "builder-column div-53636e90-2",
887
- style: x(T),
888
- key: T
898
+ style: x(w),
899
+ key: w
889
900
  },
890
901
  /* @__PURE__ */ r(
891
902
  ie,
892
903
  {
893
- path: `component.options.columns.${T}.blocks`,
904
+ path: `component.options.columns.${w}.blocks`,
894
905
  parent: e.builderBlock.id,
895
906
  styleProp: {
896
907
  flexGrow: "1"
@@ -914,25 +925,25 @@ function st(e) {
914
925
  }` })
915
926
  ] });
916
927
  }
917
- function dt(e) {
928
+ function mt(e) {
918
929
  return /* @__PURE__ */ r("span", { children: e.children });
919
930
  }
920
- function ge(e) {
931
+ function xe(e) {
921
932
  return e.replace(/http(s)?:/, "");
922
933
  }
923
- function ut(e = "", t, n) {
934
+ function ft(e = "", t, n) {
924
935
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
925
936
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
926
937
  }
927
- function mt(e, t) {
938
+ function ht(e, t) {
928
939
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
929
940
  return e;
930
941
  if (t === "master")
931
- return ge(e);
942
+ return xe(e);
932
943
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
933
944
  if (n) {
934
945
  const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
935
- return ge(`${i[0]}_${o}${a}`);
946
+ return xe(`${i[0]}_${o}${a}`);
936
947
  }
937
948
  return null;
938
949
  }
@@ -943,11 +954,11 @@ function Q(e) {
943
954
  if (e.match(/builder\.io/)) {
944
955
  let n = e;
945
956
  const i = Number(e.split("?width=")[1]);
946
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${ut(e, "width", a)} ${a}w`).concat([n]).join(", ");
957
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${ft(e, "width", a)} ${a}w`).concat([n]).join(", ");
947
958
  }
948
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [mt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
959
+ 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;
949
960
  }
950
- function ft(e) {
961
+ function gt(e) {
951
962
  var a, o, l, s;
952
963
  function t() {
953
964
  var u;
@@ -977,9 +988,9 @@ function ft(e) {
977
988
  };
978
989
  return e.aspectRatio ? c : void 0;
979
990
  }
980
- return /* @__PURE__ */ E(f, { children: [
981
- /* @__PURE__ */ E(f, { children: [
982
- /* @__PURE__ */ E("picture", { children: [
991
+ return /* @__PURE__ */ R(f, { children: [
992
+ /* @__PURE__ */ R(f, { children: [
993
+ /* @__PURE__ */ R("picture", { children: [
983
994
  n() ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r("source", { type: "image/webp", srcSet: n() }) }) : null,
984
995
  /* @__PURE__ */ r(
985
996
  "img",
@@ -1030,7 +1041,7 @@ function ft(e) {
1030
1041
  }` })
1031
1042
  ] });
1032
1043
  }
1033
- function ht(e) {
1044
+ function bt(e) {
1034
1045
  return /* @__PURE__ */ r(
1035
1046
  "section",
1036
1047
  {
@@ -1051,7 +1062,7 @@ function ht(e) {
1051
1062
  }
1052
1063
  );
1053
1064
  }
1054
- const gt = {
1065
+ const xt = {
1055
1066
  name: "Core:Button",
1056
1067
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1057
1068
  defaultStyles: {
@@ -1084,7 +1095,7 @@ const gt = {
1084
1095
  }],
1085
1096
  static: !0,
1086
1097
  noWrap: !0
1087
- }, bt = {
1098
+ }, yt = {
1088
1099
  // TODO: ways to statically preprocess JSON for references, functions, etc
1089
1100
  name: "Columns",
1090
1101
  isRSC: !0,
@@ -1285,7 +1296,7 @@ const gt = {
1285
1296
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1286
1297
  advanced: !0
1287
1298
  }]
1288
- }, xt = {
1299
+ }, St = {
1289
1300
  name: "Custom Code",
1290
1301
  static: !0,
1291
1302
  requiredPermissions: ["editCode"],
@@ -1308,9 +1319,9 @@ const gt = {
1308
1319
  advanced: !0
1309
1320
  }]
1310
1321
  };
1311
- function yt(e) {
1312
- const t = Z(null), [n, i] = v(() => []), [a, o] = v(() => []);
1313
- return P(() => {
1322
+ function pt(e) {
1323
+ const t = Z(null), [n, i] = S(() => []), [a, o] = S(() => []);
1324
+ return W(() => {
1314
1325
  var s;
1315
1326
  if (!((s = t.current) != null && s.getElementsByTagName) || typeof window > "u")
1316
1327
  return;
@@ -1346,7 +1357,7 @@ function yt(e) {
1346
1357
  }
1347
1358
  );
1348
1359
  }
1349
- const St = {
1360
+ const vt = {
1350
1361
  name: "Embed",
1351
1362
  static: !0,
1352
1363
  inputs: [{
@@ -1371,9 +1382,9 @@ const St = {
1371
1382
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1372
1383
  hideFromUI: !0
1373
1384
  }]
1374
- }, vt = ["text/javascript", "application/javascript", "application/ecmascript"], pt = (e) => vt.includes(e.type);
1375
- function kt(e) {
1376
- const t = Z(null), [n, i] = v(() => []), [a, o] = v(() => []), [l, s] = v(() => !1);
1385
+ }, kt = ["text/javascript", "application/javascript", "application/ecmascript"], Ct = (e) => kt.includes(e.type);
1386
+ function wt(e) {
1387
+ const t = Z(null), [n, i] = S(() => []), [a, o] = S(() => []), [l, s] = S(() => !1);
1377
1388
  function c() {
1378
1389
  if (!t.current || !t.current.getElementsByTagName)
1379
1390
  return;
@@ -1382,17 +1393,17 @@ function kt(e) {
1382
1393
  const g = d[u];
1383
1394
  if (g.src && !n.includes(g.src)) {
1384
1395
  n.push(g.src);
1385
- const S = document.createElement("script");
1386
- S.async = !0, S.src = g.src, document.head.appendChild(S);
1387
- } else if (pt(g) && !a.includes(g.innerText))
1396
+ const p = document.createElement("script");
1397
+ p.async = !0, p.src = g.src, document.head.appendChild(p);
1398
+ } else if (Ct(g) && !a.includes(g.innerText))
1388
1399
  try {
1389
1400
  a.push(g.innerText), new Function(g.innerText)();
1390
- } catch (S) {
1391
- console.warn("`Embed`: Error running script:", S);
1401
+ } catch (p) {
1402
+ console.warn("`Embed`: Error running script:", p);
1392
1403
  }
1393
1404
  }
1394
1405
  }
1395
- return P(() => {
1406
+ return W(() => {
1396
1407
  t.current && !l && (s(!0), c());
1397
1408
  }, [t.current, l]), /* @__PURE__ */ r(
1398
1409
  "div",
@@ -1403,13 +1414,13 @@ function kt(e) {
1403
1414
  }
1404
1415
  );
1405
1416
  }
1406
- const Ct = {
1417
+ const It = {
1407
1418
  name: "Fragment",
1408
1419
  static: !0,
1409
1420
  hidden: !0,
1410
1421
  canHaveChildren: !0,
1411
1422
  noWrap: !0
1412
- }, wt = {
1423
+ }, Tt = {
1413
1424
  name: "Image",
1414
1425
  static: !0,
1415
1426
  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",
@@ -1435,8 +1446,8 @@ const Ct = {
1435
1446
  let g = !1;
1436
1447
  u.onload = () => {
1437
1448
  g = !0, c(u);
1438
- }, u.addEventListener("error", (S) => {
1439
- console.warn("Image load failed", S.error), d(S.error);
1449
+ }, u.addEventListener("error", (p) => {
1450
+ console.warn("Image load failed", p.error), d(p.error);
1440
1451
  }), u.src = l, setTimeout(() => {
1441
1452
  g || d(new Error("Image load timed out"));
1442
1453
  }, s);
@@ -1509,7 +1520,7 @@ const Ct = {
1509
1520
  advanced: !0,
1510
1521
  defaultValue: 0.7041
1511
1522
  }]
1512
- }, It = {
1523
+ }, Rt = {
1513
1524
  // friendlyName?
1514
1525
  name: "Raw:Img",
1515
1526
  hideFromInsertMenu: !0,
@@ -1524,7 +1535,7 @@ const Ct = {
1524
1535
  noWrap: !0,
1525
1536
  static: !0
1526
1537
  };
1527
- function Tt(e) {
1538
+ function Et(e) {
1528
1539
  return /* @__PURE__ */ r(
1529
1540
  "img",
1530
1541
  {
@@ -1536,10 +1547,10 @@ function Tt(e) {
1536
1547
  src: e.imgSrc || e.image,
1537
1548
  ...e.attributes
1538
1549
  },
1539
- $() && e.imgSrc || "default-key"
1550
+ A() && e.imgSrc || "default-key"
1540
1551
  );
1541
1552
  }
1542
- const Rt = {
1553
+ const Pt = {
1543
1554
  name: "Core:Section",
1544
1555
  static: !0,
1545
1556
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1578,7 +1589,7 @@ const Rt = {
1578
1589
  }
1579
1590
  }
1580
1591
  }]
1581
- }, Et = {
1592
+ }, Wt = {
1582
1593
  name: "Symbol",
1583
1594
  noWrap: !0,
1584
1595
  static: !0,
@@ -1611,7 +1622,7 @@ const Rt = {
1611
1622
  hideFromUI: !0,
1612
1623
  type: "boolean"
1613
1624
  }]
1614
- }, Pt = {
1625
+ }, Bt = {
1615
1626
  name: "Text",
1616
1627
  static: !0,
1617
1628
  isRSC: !0,
@@ -1725,7 +1736,7 @@ const At = {
1725
1736
  advanced: !0
1726
1737
  }]
1727
1738
  };
1728
- function Bt(e) {
1739
+ function $t(e) {
1729
1740
  var i, a, o, l, s, c, d;
1730
1741
  function t() {
1731
1742
  return {
@@ -1751,7 +1762,7 @@ function Bt(e) {
1751
1762
  ...t()
1752
1763
  };
1753
1764
  }
1754
- return /* @__PURE__ */ E(
1765
+ return /* @__PURE__ */ R(
1755
1766
  "div",
1756
1767
  {
1757
1768
  style: {
@@ -1826,40 +1837,40 @@ function Bt(e) {
1826
1837
  }
1827
1838
  );
1828
1839
  }
1829
- const be = () => [{
1830
- component: je,
1831
- ...gt
1832
- }, {
1833
- component: st,
1834
- ...bt
1835
- }, {
1836
- component: yt,
1840
+ const ye = () => [{
1841
+ component: Ue,
1837
1842
  ...xt
1838
1843
  }, {
1839
- component: kt,
1840
- ...St
1844
+ component: ut,
1845
+ ...yt
1841
1846
  }, {
1842
- component: dt,
1843
- ...Ct
1847
+ component: pt,
1848
+ ...St
1844
1849
  }, {
1845
- component: ft,
1846
- ...wt
1850
+ component: wt,
1851
+ ...vt
1847
1852
  }, {
1848
- component: Tt,
1853
+ component: mt,
1849
1854
  ...It
1850
1855
  }, {
1851
- component: ht,
1856
+ component: gt,
1857
+ ...Tt
1858
+ }, {
1859
+ component: Et,
1852
1860
  ...Rt
1853
1861
  }, {
1854
- component: en,
1855
- ...Et
1862
+ component: bt,
1863
+ ...Pt
1864
+ }, {
1865
+ component: nn,
1866
+ ...Wt
1856
1867
  }, {
1857
1868
  component: Vt,
1858
- ...Pt
1869
+ ...Bt
1859
1870
  }, {
1860
- component: Bt,
1871
+ component: $t,
1861
1872
  ...At
1862
- }], $t = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1873
+ }], Nt = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1863
1874
  function getAndSetVariantId() {
1864
1875
  function setCookie(name, value, days) {
1865
1876
  let expires = '';
@@ -1915,7 +1926,7 @@ const be = () => [{
1915
1926
  }).join('');
1916
1927
  styleEl.innerHTML = newStyleStr;
1917
1928
  }
1918
- }`, Nt = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1929
+ }`, Ft = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1919
1930
  if (!navigator.cookieEnabled) {
1920
1931
  return;
1921
1932
  }
@@ -1949,23 +1960,23 @@ const be = () => [{
1949
1960
  thisScriptEl?.remove();
1950
1961
  }
1951
1962
  return;
1952
- }`, Ee = "builderIoAbTest", Pe = "builderIoRenderContent", j = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1963
+ }`, We = "builderIoAbTest", Be = "builderIoRenderContent", j = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1953
1964
  ...t,
1954
1965
  testVariationId: t.id,
1955
1966
  id: e == null ? void 0 : e.id
1956
- })), Ft = ({
1967
+ })), _t = ({
1957
1968
  canTrack: e,
1958
1969
  content: t
1959
- }) => !(!(j(t).length > 0) || !e || N()), Wt = (e) => e === "react" || e === "reactNative", Ve = Wt(L), _t = () => `
1960
- window.${Ee} = ${$t}
1961
- window.${Pe} = ${Nt}
1962
- `, Lt = (e, t) => `
1963
- window.${Ee}(
1970
+ }) => !(!(j(t).length > 0) || !e || $()), Lt = (e) => e === "react" || e === "reactNative", Ve = Lt(L), jt = () => `
1971
+ window.${We} = ${Nt}
1972
+ window.${Be} = ${Ft}
1973
+ `, Mt = (e, t) => `
1974
+ window.${We}(
1964
1975
  "${t}",${JSON.stringify(e)}, ${Ve}
1965
- )`, jt = ({
1976
+ )`, Ut = ({
1966
1977
  contentId: e,
1967
1978
  variationId: t
1968
- }) => `window.${Pe}(
1979
+ }) => `window.${Be}(
1969
1980
  "${t}", "${e}", ${Ve}
1970
1981
  )`;
1971
1982
  function X(e) {
@@ -1977,10 +1988,10 @@ function X(e) {
1977
1988
  }
1978
1989
  );
1979
1990
  }
1980
- function xe(e) {
1991
+ function Se(e) {
1981
1992
  return Math.round(e * 1e3) / 1e3;
1982
1993
  }
1983
- const Mt = (e, t, n = !0) => {
1994
+ const Dt = (e, t, n = !0) => {
1984
1995
  if (!(e instanceof HTMLElement))
1985
1996
  return null;
1986
1997
  let i = n ? e : e.parentElement;
@@ -1991,36 +2002,36 @@ const Mt = (e, t, n = !0) => {
1991
2002
  return i;
1992
2003
  } while (i = i.parentElement);
1993
2004
  return null;
1994
- }, Ut = (e) => Mt(e, (t) => {
2005
+ }, Ot = (e) => Dt(e, (t) => {
1995
2006
  const n = t.getAttribute("builder-id") || t.id;
1996
2007
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
1997
- }), ye = ({
2008
+ }), pe = ({
1998
2009
  event: e,
1999
2010
  target: t
2000
2011
  }) => {
2001
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = xe(i / n.width), l = xe(a / n.height);
2012
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Se(i / n.width), l = Se(a / n.height);
2002
2013
  return {
2003
2014
  x: o,
2004
2015
  y: l
2005
2016
  };
2006
- }, Dt = (e) => {
2007
- const t = e.target, n = t && Ut(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2017
+ }, Kt = (e) => {
2018
+ const t = e.target, n = t && Ot(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2008
2019
  return {
2009
2020
  targetBuilderElement: i || void 0,
2010
2021
  metadata: {
2011
- targetOffset: t ? ye({
2022
+ targetOffset: t ? pe({
2012
2023
  event: e,
2013
2024
  target: t
2014
2025
  }) : void 0,
2015
- builderTargetOffset: n ? ye({
2026
+ builderTargetOffset: n ? pe({
2016
2027
  event: e,
2017
2028
  target: n
2018
2029
  }) : void 0,
2019
2030
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
2020
2031
  }
2021
2032
  };
2022
- }, Ot = "0.8.1", Kt = () => {
2023
- Ne("insertMenu", {
2033
+ }, Ht = "0.9.0", zt = () => {
2034
+ Fe("insertMenu", {
2024
2035
  name: "_default",
2025
2036
  default: !0,
2026
2037
  items: [{
@@ -2042,14 +2053,14 @@ const Mt = (e, t, n = !0) => {
2042
2053
  }]
2043
2054
  });
2044
2055
  };
2045
- let Se = !1;
2046
- const Ht = (e = {}) => {
2056
+ let ve = !1;
2057
+ const qt = (e = {}) => {
2047
2058
  var t, n;
2048
- Se || (Se = !0, N() && ((t = window.parent) == null || t.postMessage({
2059
+ ve || (ve = !0, $() && ((t = window.parent) == null || t.postMessage({
2049
2060
  type: "builder.sdkInfo",
2050
2061
  data: {
2051
2062
  target: L,
2052
- version: Ot,
2063
+ version: Ht,
2053
2064
  supportsPatchUpdates: !1,
2054
2065
  // Supports builder-model="..." attribute which is needed to
2055
2066
  // scope our '+ add block' button styling
@@ -2072,8 +2083,8 @@ const Ht = (e = {}) => {
2072
2083
  let u, g = null;
2073
2084
  try {
2074
2085
  u = d.apply(null, s);
2075
- } catch (S) {
2076
- g = S;
2086
+ } catch (p) {
2087
+ g = p;
2077
2088
  }
2078
2089
  g ? (a = window.parent) == null || a.postMessage({
2079
2090
  type: "builder.evaluateError",
@@ -2081,13 +2092,13 @@ const Ht = (e = {}) => {
2081
2092
  id: c,
2082
2093
  error: g.message
2083
2094
  }
2084
- }, "*") : u && typeof u.then == "function" ? u.then((S) => {
2085
- var V;
2086
- (V = window.parent) == null || V.postMessage({
2095
+ }, "*") : u && typeof u.then == "function" ? u.then((p) => {
2096
+ var P;
2097
+ (P = window.parent) == null || P.postMessage({
2087
2098
  type: "builder.evaluateResult",
2088
2099
  data: {
2089
2100
  id: c,
2090
- result: S
2101
+ result: p
2091
2102
  }
2092
2103
  }, "*");
2093
2104
  }).catch(console.error) : (o = window.parent) == null || o.postMessage({
@@ -2102,11 +2113,11 @@ const Ht = (e = {}) => {
2102
2113
  }
2103
2114
  })));
2104
2115
  };
2105
- function zt(e) {
2106
- var A, B, F, W, z, ae, oe;
2107
- const t = Z(null), [n, i] = v(() => 0);
2116
+ function Yt(e) {
2117
+ var N, F, z, ae, oe, re, le;
2118
+ const t = Z(null), [n, i] = S(() => 0);
2108
2119
  function a(m) {
2109
- var b, y, k, R, re;
2120
+ var b, y, k, T, ce;
2110
2121
  const h = {
2111
2122
  ...e.builderContextSignal.content,
2112
2123
  ...m,
@@ -2117,26 +2128,28 @@ function zt(e) {
2117
2128
  meta: {
2118
2129
  ...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
2119
2130
  ...m == null ? void 0 : m.meta,
2120
- breakpoints: ((k = m == null ? void 0 : m.meta) == null ? void 0 : k.breakpoints) || ((re = (R = e.builderContextSignal.content) == null ? void 0 : R.meta) == null ? void 0 : re.breakpoints)
2131
+ breakpoints: ((k = m == null ? void 0 : m.meta) == null ? void 0 : k.breakpoints) || ((ce = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : ce.breakpoints)
2121
2132
  }
2122
2133
  };
2123
- e.setBuilderContextSignal((Be) => ({
2124
- ...Be,
2134
+ e.setBuilderContextSignal(($e) => ({
2135
+ ...$e,
2125
2136
  content: h
2126
2137
  }));
2127
2138
  }
2128
- v(() => 0);
2129
- const [o, l] = v(
2139
+ S(() => 0);
2140
+ const [o, l] = S(
2130
2141
  () => !1
2142
+ ), [s, c] = S(
2143
+ () => e.contentWrapper || "div"
2131
2144
  );
2132
- function s(m) {
2145
+ function d(m) {
2133
2146
  var b;
2134
2147
  const { data: h } = m;
2135
2148
  if (h)
2136
2149
  switch (h.type) {
2137
2150
  case "builder.configureSdk": {
2138
- const y = h.data, { breakpoints: k, contentId: R } = y;
2139
- if (!R || R !== ((b = e.builderContextSignal.content) == null ? void 0 : b.id))
2151
+ const y = h.data, { breakpoints: k, contentId: T } = y;
2152
+ if (!T || T !== ((b = e.builderContextSignal.content) == null ? void 0 : b.id))
2140
2153
  return;
2141
2154
  k && a({
2142
2155
  meta: {
@@ -2146,13 +2159,13 @@ function zt(e) {
2146
2159
  break;
2147
2160
  }
2148
2161
  case "builder.contentUpdate": {
2149
- const y = h.data, k = y.key || y.alias || y.entry || y.modelName, R = y.data;
2150
- k === e.model && (a(R), i(n + 1));
2162
+ const y = h.data, k = y.key || y.alias || y.entry || y.modelName, T = y.data;
2163
+ k === e.model && (a(T), i(n + 1));
2151
2164
  break;
2152
2165
  }
2153
2166
  }
2154
2167
  }
2155
- function c() {
2168
+ function u() {
2156
2169
  var h, b;
2157
2170
  const m = (b = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : b.jsCode;
2158
2171
  m && _({
@@ -2163,24 +2176,24 @@ function zt(e) {
2163
2176
  rootSetState: e.builderContextSignal.rootSetState
2164
2177
  });
2165
2178
  }
2166
- const [d, u] = v(() => ({})), [g, S] = v(() => !1);
2167
- function V(m) {
2179
+ const [g, p] = S(() => ({})), [P, x] = S(() => !1);
2180
+ function v(m) {
2168
2181
  var h, b;
2169
2182
  if (e.builderContextSignal.content) {
2170
2183
  const y = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, k = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
2171
- ce({
2184
+ de({
2172
2185
  type: "click",
2173
2186
  canTrack: U(e.canTrack),
2174
2187
  contentId: k,
2175
2188
  apiKey: e.apiKey,
2176
2189
  variationId: y !== k ? y : void 0,
2177
- ...Dt(m),
2178
- unique: !g
2190
+ ...Kt(m),
2191
+ unique: !P
2179
2192
  });
2180
2193
  }
2181
- g || S(!0);
2194
+ P || x(!0);
2182
2195
  }
2183
- function x(m) {
2196
+ function I(m) {
2184
2197
  return m.replace(
2185
2198
  /{{([^}]+)}}/g,
2186
2199
  (h, b) => _({
@@ -2192,33 +2205,33 @@ function zt(e) {
2192
2205
  })
2193
2206
  );
2194
2207
  }
2195
- function p({ url: m, key: h }) {
2196
- _e(m).then((b) => b.json()).then((b) => {
2197
- var k, R;
2208
+ function E({ url: m, key: h }) {
2209
+ je(m).then((b) => b.json()).then((b) => {
2210
+ var k, T;
2198
2211
  const y = {
2199
2212
  ...e.builderContextSignal.rootState,
2200
2213
  [h]: b
2201
2214
  };
2202
- (R = (k = e.builderContextSignal).rootSetState) == null || R.call(k, y), d[h] = !0;
2215
+ (T = (k = e.builderContextSignal).rootSetState) == null || T.call(k, y), g[h] = !0;
2203
2216
  }).catch((b) => {
2204
2217
  console.error("error fetching dynamic data", m, b);
2205
2218
  });
2206
2219
  }
2207
- function I() {
2220
+ function C() {
2208
2221
  var h, b;
2209
2222
  const m = ((b = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : b.httpRequests) ?? {};
2210
2223
  Object.entries(m).forEach(([y, k]) => {
2211
- if (k && (!d[y] || $())) {
2212
- const R = x(k);
2213
- p({
2214
- url: R,
2224
+ if (k && (!g[y] || A())) {
2225
+ const T = I(k);
2226
+ E({
2227
+ url: T,
2215
2228
  key: y
2216
2229
  });
2217
2230
  }
2218
2231
  });
2219
2232
  }
2220
2233
  function w() {
2221
- $() && window.dispatchEvent(
2234
+ A() && window.dispatchEvent(
2222
2235
  new CustomEvent(
2223
2236
  "builder:component:stateChange",
2224
2237
  {
@@ -2232,8 +2245,8 @@ function zt(e) {
2232
2245
  )
2233
2246
  );
2234
2247
  }
2235
- function C(m) {
2236
- i(n + 1), window.addEventListener("message", s), Kt(), Ht({
2248
+ function B(m) {
2249
+ i(n + 1), window.addEventListener("message", d), zt(), qt({
2237
2250
  ...e.locale ? {
2238
2251
  locale: e.locale
2239
2252
  } : {},
@@ -2247,103 +2260,104 @@ function zt(e) {
2247
2260
  e.builderContextSignal.componentInfos
2248
2261
  ).forEach((h) => {
2249
2262
  var y;
2250
- const b = We(h);
2263
+ const b = Le(h);
2251
2264
  (y = window.parent) == null || y.postMessage(b, "*");
2252
2265
  }), window.addEventListener(
2253
2266
  "builder:component:stateChangeListenerActivated",
2254
2267
  w
2255
2268
  );
2256
2269
  }
2257
- function T(m) {
2270
+ function V(m) {
2258
2271
  const h = new URL(location.href).searchParams, b = h.get("builder.preview"), y = h.get(
2259
2272
  `builder.preview.${b}`
2260
2273
  ), k = h.get("apiKey") || h.get("builder.space");
2261
- b === e.model && k === e.apiKey && (!e.content || y === e.content.id) && Ce({
2274
+ b === e.model && k === e.apiKey && (!e.content || y === e.content.id) && Ie({
2262
2275
  model: e.model,
2263
2276
  apiKey: e.apiKey,
2264
2277
  apiVersion: e.builderContextSignal.apiVersion
2265
- }).then((R) => {
2266
- R && a(R);
2278
+ }).then((T) => {
2279
+ T && a(T);
2267
2280
  });
2268
2281
  }
2269
- return P(() => {
2282
+ return W(() => {
2270
2283
  var m;
2271
2284
  return (m = t.current) == null || m.addEventListener(
2272
2285
  "initeditingbldr",
2273
- C
2286
+ B
2274
2287
  ), () => {
2275
2288
  var h;
2276
2289
  return (h = t.current) == null ? void 0 : h.removeEventListener(
2277
2290
  "initeditingbldr",
2278
- C
2291
+ B
2279
2292
  );
2280
2293
  };
2281
- }, []), P(() => {
2294
+ }, []), W(() => {
2282
2295
  var m;
2283
2296
  return (m = t.current) == null || m.addEventListener(
2284
2297
  "initpreviewingbldr",
2285
- T
2298
+ V
2286
2299
  ), () => {
2287
2300
  var h;
2288
2301
  return (h = t.current) == null ? void 0 : h.removeEventListener(
2289
2302
  "initpreviewingbldr",
2290
- T
2303
+ V
2291
2304
  );
2292
2305
  };
2293
- }, []), P(() => {
2306
+ }, []), W(() => {
2294
2307
  var m, h;
2295
- if (N()) {
2296
- if ($() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && U(e.canTrack)) {
2297
- const y = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, k = (h = e.builderContextSignal.content) == null ? void 0 : h.id, R = e.apiKey;
2298
- ce({
2308
+ if ($()) {
2309
+ if (A() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && U(e.canTrack)) {
2310
+ const y = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, k = (h = e.builderContextSignal.content) == null ? void 0 : h.id, T = e.apiKey;
2311
+ de({
2299
2312
  type: "impression",
2300
2313
  canTrack: !0,
2301
2314
  contentId: k,
2302
- apiKey: R,
2315
+ apiKey: T,
2303
2316
  variationId: y !== k ? y : void 0
2304
2317
  });
2305
2318
  }
2306
- Fe() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2319
+ _e() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2307
2320
  }
2308
- }, []), P(() => {
2321
+ }, []), W(() => {
2309
2322
  e.apiKey || M.error(
2310
2323
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2311
- ), c(), I(), w();
2312
- }, []), P(() => {
2324
+ ), u(), C(), w();
2325
+ }, []), W(() => {
2313
2326
  e.content && a(e.content);
2314
- }, [e.content]), P(() => {
2315
- }, [o]), P(() => {
2316
- c();
2327
+ }, [e.content]), W(() => {
2328
+ }, [o]), W(() => {
2329
+ u();
2317
2330
  }, [
2318
- (B = (A = e.builderContextSignal.content) == null ? void 0 : A.data) == null ? void 0 : B.jsCode,
2331
+ (F = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : F.jsCode,
2319
2332
  e.builderContextSignal.rootState
2320
- ]), P(() => {
2321
- I();
2322
- }, [(W = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : W.httpRequests]), P(() => {
2333
+ ]), W(() => {
2334
+ C();
2335
+ }, [(ae = (z = e.builderContextSignal.content) == null ? void 0 : z.data) == null ? void 0 : ae.httpRequests]), W(() => {
2323
2336
  w();
2324
- }, [e.builderContextSignal.rootState]), P(() => () => {
2325
- N() && (window.removeEventListener("message", s), window.removeEventListener(
2337
+ }, [e.builderContextSignal.rootState]), W(() => () => {
2338
+ $() && (window.removeEventListener("message", d), window.removeEventListener(
2326
2339
  "builder:component:stateChangeListenerActivated",
2327
2340
  w
2328
2341
  ));
2329
- }, []), /* @__PURE__ */ r(te.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ ke(
2330
- "div",
2342
+ }, []), /* @__PURE__ */ r(te.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ we(
2343
+ s,
2331
2344
  {
2332
2345
  key: n,
2333
2346
  ref: t,
2334
- onClick: (m) => V(m),
2335
- "builder-content-id": (z = e.builderContextSignal.content) == null ? void 0 : z.id,
2347
+ onClick: (m) => v(m),
2348
+ "builder-content-id": (oe = e.builderContextSignal.content) == null ? void 0 : oe.id,
2336
2349
  "builder-model": e.model,
2337
2350
  ...e.showContent ? {} : {
2338
2351
  hidden: !0,
2339
2352
  "aria-hidden": !0
2340
2353
  },
2341
- className: `variant-${((ae = e.content) == null ? void 0 : ae.testVariationId) || ((oe = e.content) == null ? void 0 : oe.id)}`
2354
+ ...e.contentWrapperProps,
2355
+ className: `variant-${((re = e.content) == null ? void 0 : re.testVariationId) || ((le = e.content) == null ? void 0 : le.id)}`
2342
2356
  },
2343
2357
  e.children
2344
2358
  ) }) : null });
2345
2359
  }
2346
- const qt = (e) => {
2360
+ const Qt = (e) => {
2347
2361
  var o;
2348
2362
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = e.fileUrl ?? ((o = e == null ? void 0 : e.files) == null ? void 0 : o.regular);
2349
2363
  let a = "";
@@ -2369,23 +2383,23 @@ font-weight: ${l};
2369
2383
  `.trim());
2370
2384
  }
2371
2385
  return a;
2372
- }, Yt = ({
2386
+ }, Gt = ({
2373
2387
  customFonts: e
2374
2388
  }) => {
2375
2389
  var t;
2376
- return ((t = e == null ? void 0 : e.map((n) => qt(n))) == null ? void 0 : t.join(" ")) || "";
2377
- }, Qt = ({
2390
+ return ((t = e == null ? void 0 : e.map((n) => Qt(n))) == null ? void 0 : t.join(" ")) || "";
2391
+ }, Jt = ({
2378
2392
  cssCode: e,
2379
2393
  contentId: t
2380
2394
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
2381
- function Gt(e) {
2382
- const [t, n] = v(
2395
+ function Xt(e) {
2396
+ const [t, n] = S(
2383
2397
  () => `
2384
- ${Qt({
2398
+ ${Jt({
2385
2399
  cssCode: e.cssCode,
2386
2400
  contentId: e.contentId
2387
2401
  })}
2388
- ${Yt({
2402
+ ${Gt({
2389
2403
  customFonts: e.customFonts
2390
2404
  })}
2391
2405
 
@@ -2405,7 +2419,7 @@ ${Yt({
2405
2419
  );
2406
2420
  return /* @__PURE__ */ r(K, { styles: t });
2407
2421
  }
2408
- const Jt = ({
2422
+ const Zt = ({
2409
2423
  content: e,
2410
2424
  data: t,
2411
2425
  locale: n
@@ -2422,7 +2436,7 @@ const Jt = ({
2422
2436
  locale: n
2423
2437
  } : {}
2424
2438
  };
2425
- }, Xt = ({
2439
+ }, en = ({
2426
2440
  content: e,
2427
2441
  data: t
2428
2442
  }) => e ? {
@@ -2433,52 +2447,52 @@ const Jt = ({
2433
2447
  },
2434
2448
  meta: e == null ? void 0 : e.meta
2435
2449
  } : void 0;
2436
- function ve(e) {
2437
- var c, d, u, g, S, V, x;
2438
- const [t, n] = v(
2450
+ function ke(e) {
2451
+ var c, d, u, g, p, P, x;
2452
+ const [t, n] = S(
2439
2453
  () => {
2440
- var p, I;
2441
- return jt({
2454
+ var v, I;
2455
+ return Ut({
2442
2456
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2443
- variationId: (p = e.content) == null ? void 0 : p.testVariationId,
2457
+ variationId: (v = e.content) == null ? void 0 : v.testVariationId,
2444
2458
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2445
2459
  contentId: (I = e.content) == null ? void 0 : I.id
2446
2460
  });
2447
2461
  }
2448
2462
  );
2449
- function i(p) {
2463
+ function i(v) {
2450
2464
  s((I) => ({
2451
2465
  ...I,
2452
- rootState: p
2466
+ rootState: v
2453
2467
  }));
2454
2468
  }
2455
- const [a, o] = v(
2469
+ const [a, o] = S(
2456
2470
  () => [
2457
- ...be(),
2471
+ ...ye(),
2458
2472
  // While this `components` object is deprecated, we must maintain support for it.
2459
2473
  // Since users are able to override our default components, we need to make sure that we do not break such
2460
2474
  // existing usage.
2461
2475
  // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
2462
2476
  // which is the new standard way of providing custom components, and must therefore take precedence.
2463
- ...se,
2477
+ ...ue,
2464
2478
  ...e.customComponents || []
2465
2479
  ].reduce(
2466
- (p, { component: I, ...w }) => ({
2467
- ...p,
2468
- [w.name]: {
2480
+ (v, { component: I, ...E }) => ({
2481
+ ...v,
2482
+ [E.name]: {
2469
2483
  component: I,
2470
- ...de(w)
2484
+ ...me(E)
2471
2485
  }
2472
2486
  }),
2473
2487
  {}
2474
2488
  )
2475
- ), [l, s] = v(() => ({
2476
- content: Xt({
2489
+ ), [l, s] = S(() => ({
2490
+ content: en({
2477
2491
  content: e.content,
2478
2492
  data: e.data
2479
2493
  }),
2480
2494
  localState: void 0,
2481
- rootState: Jt({
2495
+ rootState: Zt({
2482
2496
  content: e.content,
2483
2497
  data: e.data,
2484
2498
  locale: e.locale
@@ -2488,31 +2502,33 @@ function ve(e) {
2488
2502
  apiKey: e.apiKey,
2489
2503
  apiVersion: e.apiVersion,
2490
2504
  componentInfos: [
2491
- ...be(),
2505
+ ...ye(),
2492
2506
  // While this `components` object is deprecated, we must maintain support for it.
2493
2507
  // Since users are able to override our default components, we need to make sure that we do not break such
2494
2508
  // existing usage.
2495
2509
  // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
2496
2510
  // which is the new standard way of providing custom components, and must therefore take precedence.
2497
- ...se,
2511
+ ...ue,
2498
2512
  ...e.customComponents || []
2499
2513
  ].reduce(
2500
- (p, { component: I, ...w }) => ({
2501
- ...p,
2502
- [w.name]: de(w)
2514
+ (v, { component: I, ...E }) => ({
2515
+ ...v,
2516
+ [E.name]: me(E)
2503
2517
  }),
2504
2518
  {}
2505
2519
  ),
2506
- inheritedStyles: {}
2520
+ inheritedStyles: {},
2521
+ BlocksWrapper: e.blocksWrapper || "div",
2522
+ BlocksWrapperProps: e.blocksWrapperProps || {}
2507
2523
  }));
2508
2524
  return /* @__PURE__ */ r(
2509
- we.Provider,
2525
+ Te.Provider,
2510
2526
  {
2511
2527
  value: {
2512
2528
  registeredComponents: a
2513
2529
  },
2514
- children: /* @__PURE__ */ E(
2515
- zt,
2530
+ children: /* @__PURE__ */ R(
2531
+ Yt,
2516
2532
  {
2517
2533
  content: e.content,
2518
2534
  model: e.model,
@@ -2524,21 +2540,23 @@ function ve(e) {
2524
2540
  enrich: e.enrich,
2525
2541
  showContent: e.showContent,
2526
2542
  builderContextSignal: l,
2543
+ contentWrapper: e.contentWrapper,
2544
+ contentWrapperProps: e.contentWrapperProps,
2527
2545
  setBuilderContextSignal: s,
2528
2546
  children: [
2529
2547
  e.isSsrAbTest ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(X, { scriptStr: t }) }) : null,
2530
2548
  /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
2531
- Gt,
2549
+ Xt,
2532
2550
  {
2533
2551
  contentId: (c = l.content) == null ? void 0 : c.id,
2534
2552
  cssCode: (u = (d = l.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
2535
- customFonts: (S = (g = l.content) == null ? void 0 : g.data) == null ? void 0 : S.customFonts
2553
+ customFonts: (p = (g = l.content) == null ? void 0 : g.data) == null ? void 0 : p.customFonts
2536
2554
  }
2537
2555
  ) }),
2538
2556
  /* @__PURE__ */ r(
2539
2557
  ie,
2540
2558
  {
2541
- blocks: (x = (V = l.content) == null ? void 0 : V.data) == null ? void 0 : x.blocks,
2559
+ blocks: (x = (P = l.content) == null ? void 0 : P.data) == null ? void 0 : x.blocks,
2542
2560
  context: l,
2543
2561
  registeredComponents: a
2544
2562
  }
@@ -2551,15 +2569,15 @@ function ve(e) {
2551
2569
  }
2552
2570
  function Ae(e) {
2553
2571
  var l, s;
2554
- const [t, n] = v(
2555
- () => Ft({
2572
+ const [t, n] = S(
2573
+ () => _t({
2556
2574
  canTrack: U(e.canTrack),
2557
2575
  content: e.content
2558
2576
  })
2559
2577
  );
2560
2578
  function i() {
2561
2579
  var c;
2562
- return Lt(
2580
+ return Mt(
2563
2581
  j(e.content).map((d) => ({
2564
2582
  id: d.testVariationId,
2565
2583
  testRatio: d.testRatio
@@ -2575,15 +2593,15 @@ function Ae(e) {
2575
2593
  return t ? {
2576
2594
  ...e.content,
2577
2595
  testVariationId: (c = e.content) == null ? void 0 : c.id
2578
- } : Le({
2596
+ } : Me({
2579
2597
  item: e.content,
2580
2598
  canTrack: U(e.canTrack)
2581
2599
  });
2582
2600
  }
2583
- return P(() => {
2584
- }, []), /* @__PURE__ */ E(f, { children: [
2585
- !e.__isNestedRender && L !== "reactNative" ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(X, { scriptStr: _t() }) }) : null,
2586
- t ? /* @__PURE__ */ E(f, { children: [
2601
+ return W(() => {
2602
+ }, []), /* @__PURE__ */ R(f, { children: [
2603
+ !e.__isNestedRender && L !== "reactNative" ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(X, { scriptStr: jt() }) }) : null,
2604
+ t ? /* @__PURE__ */ R(f, { children: [
2587
2605
  /* @__PURE__ */ r(
2588
2606
  K,
2589
2607
  {
@@ -2593,7 +2611,7 @@ function Ae(e) {
2593
2611
  ),
2594
2612
  /* @__PURE__ */ r(X, { scriptStr: i() }),
2595
2613
  (s = j(e.content)) == null ? void 0 : s.map((c) => /* @__PURE__ */ r(
2596
- ve,
2614
+ ke,
2597
2615
  {
2598
2616
  content: c,
2599
2617
  showContent: !1,
@@ -2607,13 +2625,17 @@ function Ae(e) {
2607
2625
  locale: e.locale,
2608
2626
  includeRefs: e.includeRefs,
2609
2627
  enrich: e.enrich,
2610
- isSsrAbTest: t
2628
+ isSsrAbTest: t,
2629
+ blocksWrapper: e.blocksWrapper,
2630
+ blocksWrapperProps: e.blocksWrapperProps,
2631
+ contentWrapper: e.contentWrapper,
2632
+ contentWrapperProps: e.contentWrapperProps
2611
2633
  },
2612
2634
  c.testVariationId
2613
2635
  ))
2614
2636
  ] }) : null,
2615
2637
  /* @__PURE__ */ r(
2616
- ve,
2638
+ ke,
2617
2639
  {
2618
2640
  content: o(),
2619
2641
  showContent: !0,
@@ -2627,18 +2649,22 @@ function Ae(e) {
2627
2649
  locale: e.locale,
2628
2650
  includeRefs: e.includeRefs,
2629
2651
  enrich: e.enrich,
2630
- isSsrAbTest: t
2652
+ isSsrAbTest: t,
2653
+ blocksWrapper: e.blocksWrapper,
2654
+ blocksWrapperProps: e.blocksWrapperProps,
2655
+ contentWrapper: e.contentWrapper,
2656
+ contentWrapperProps: e.contentWrapperProps
2631
2657
  }
2632
2658
  )
2633
2659
  ] });
2634
2660
  }
2635
- const Zt = async ({
2661
+ const tn = async ({
2636
2662
  builderContextValue: e,
2637
2663
  symbol: t
2638
2664
  }) => {
2639
2665
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
2640
2666
  (e != null && e.apiKey))
2641
- return Ce({
2667
+ return Ie({
2642
2668
  model: t.model,
2643
2669
  apiKey: e.apiKey,
2644
2670
  apiVersion: e.apiVersion,
@@ -2651,7 +2677,7 @@ const Zt = async ({
2651
2677
  M.error("Could not fetch symbol content: ", n);
2652
2678
  });
2653
2679
  };
2654
- function en(e) {
2680
+ function nn(e) {
2655
2681
  var o, l, s;
2656
2682
  function t() {
2657
2683
  var c, d;
@@ -2662,20 +2688,20 @@ function en(e) {
2662
2688
  (d = e.symbol) != null && d.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2663
2689
  ].filter(Boolean).join(" ");
2664
2690
  }
2665
- const [n, i] = v(() => {
2691
+ const [n, i] = S(() => {
2666
2692
  var c;
2667
2693
  return (c = e.symbol) == null ? void 0 : c.content;
2668
2694
  });
2669
2695
  function a() {
2670
- n || Zt({
2696
+ n || tn({
2671
2697
  symbol: e.symbol,
2672
2698
  builderContextValue: e.builderContext
2673
2699
  }).then((c) => {
2674
2700
  c && i(c);
2675
2701
  });
2676
2702
  }
2677
- return P(() => {
2678
- }, []), P(() => {
2703
+ return W(() => {
2704
+ }, []), W(() => {
2679
2705
  a();
2680
2706
  }, [e.symbol]), /* @__PURE__ */ r("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ r(
2681
2707
  Ae,
@@ -2695,31 +2721,31 @@ function en(e) {
2695
2721
  }
2696
2722
  ) });
2697
2723
  }
2698
- const on = ie, rn = Ae;
2724
+ const ln = ie, cn = Ae;
2699
2725
  export {
2700
2726
  ie as Blocks,
2701
- je as Button,
2702
- st as Columns,
2727
+ Ue as Button,
2728
+ ut as Columns,
2703
2729
  Ae as Content,
2704
- dt as Fragment,
2705
- ft as Image,
2706
- on as RenderBlocks,
2707
- rn as RenderContent,
2708
- ht as Section,
2709
- en as Symbol,
2730
+ mt as Fragment,
2731
+ gt as Image,
2732
+ ln as RenderBlocks,
2733
+ cn as RenderContent,
2734
+ bt as Section,
2735
+ nn as Symbol,
2710
2736
  Vt as Text,
2711
- Bt as Video,
2712
- sn as _processContentResult,
2713
- We as createRegisterComponentMessage,
2714
- dn as fetchBuilderProps,
2715
- un as fetchEntries,
2716
- Ce as fetchOneEntry,
2717
- mn as getAllContent,
2718
- fn as getBuilderSearchParams,
2719
- hn as getContent,
2720
- $ as isEditing,
2721
- Fe as isPreviewing,
2722
- Ne as register,
2723
- gn as setEditorSettings,
2724
- bn as track
2737
+ $t as Video,
2738
+ un as _processContentResult,
2739
+ Le as createRegisterComponentMessage,
2740
+ mn as fetchBuilderProps,
2741
+ fn as fetchEntries,
2742
+ Ie as fetchOneEntry,
2743
+ hn as getAllContent,
2744
+ gn as getBuilderSearchParams,
2745
+ bn as getContent,
2746
+ A as isEditing,
2747
+ _e as isPreviewing,
2748
+ Fe as register,
2749
+ xn as setEditorSettings,
2750
+ yn as track
2725
2751
  };