@builder.io/sdk-react 0.9.0 → 0.11.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,11 +1,11 @@
1
1
  "use client";
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";
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";
4
+ import { i as A, 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";
6
6
  function Ue(e) {
7
7
  return /* @__PURE__ */ R(f, { children: [
8
- e.link ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
8
+ e.link ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
9
9
  "a",
10
10
  {
11
11
  ...e.attributes,
@@ -14,21 +14,21 @@ function Ue(e) {
14
14
  role: "button",
15
15
  children: e.text
16
16
  }
17
- ) }) : /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
17
+ ) }) : /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
18
18
  "button",
19
19
  {
20
20
  ...e.attributes,
21
21
  style: e.attributes.style,
22
- className: e.attributes.className + " button-5294b10c",
22
+ className: e.attributes.className + " button-3ecc5438",
23
23
  children: e.text
24
24
  }
25
25
  ) }),
26
- /* @__PURE__ */ r("style", { children: `.button-5294b10c {
26
+ /* @__PURE__ */ l("style", { children: `.button-3ecc5438 {
27
27
  all: unset;
28
28
  }` })
29
29
  ] });
30
30
  }
31
- const te = Ce({
31
+ const ne = Ce({
32
32
  content: null,
33
33
  context: {},
34
34
  localState: void 0,
@@ -79,15 +79,15 @@ const Oe = ({
79
79
  event: i,
80
80
  localState: a,
81
81
  rootSetState: o,
82
- rootState: l
82
+ rootState: r
83
83
  }) => {
84
- const s = Oe({
84
+ const c = Oe({
85
85
  builder: t,
86
86
  context: n,
87
87
  event: i,
88
- state: ze(l, a, o)
88
+ state: ze(r, a, o)
89
89
  });
90
- return new Function(...s.map(([c]) => c), e)(...s.map(([, c]) => c));
90
+ return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
91
91
  };
92
92
  function ze(e, t, n) {
93
93
  if (e === t)
@@ -109,15 +109,15 @@ function _({
109
109
  rootState: i,
110
110
  rootSetState: a,
111
111
  event: o,
112
- isExpression: l = !0
112
+ isExpression: r = !0
113
113
  }) {
114
114
  if (e === "") {
115
- M.warn("Skipping evaluation of empty code block.");
115
+ U.warn("Skipping evaluation of empty code block.");
116
116
  return;
117
117
  }
118
- const s = {
118
+ const c = {
119
119
  code: He(e, {
120
- isExpression: l
120
+ isExpression: r
121
121
  }),
122
122
  builder: Ke(),
123
123
  context: t,
@@ -127,9 +127,9 @@ function _({
127
127
  localState: n
128
128
  };
129
129
  try {
130
- return qe(s);
131
- } catch (c) {
132
- M.error("Failed code evaluation: " + c.message, {
130
+ return qe(c);
131
+ } catch (s) {
132
+ U.error("Failed code evaluation: " + s.message, {
133
133
  code: e
134
134
  });
135
135
  return;
@@ -139,7 +139,7 @@ const Ye = (e, t, n) => {
139
139
  if (Object(e) !== e)
140
140
  return e;
141
141
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
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;
142
+ return i.slice(0, -1).reduce((a, o, r) => Object(a[o]) === a[o] ? a[o] : a[o] = Math.abs(Number(i[r + 1])) >> 0 === +i[r + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
143
143
  };
144
144
  const Qe = ({
145
145
  block: e,
@@ -150,7 +150,7 @@ const Qe = ({
150
150
  }) => {
151
151
  if (!e.bindings)
152
152
  return e;
153
- const o = ee(e), l = {
153
+ const o = te(e), r = {
154
154
  ...o,
155
155
  properties: {
156
156
  ...o.properties
@@ -159,19 +159,19 @@ const Qe = ({
159
159
  ...o.actions
160
160
  }
161
161
  };
162
- for (const s in e.bindings) {
163
- const c = e.bindings[s], d = _({
164
- code: c,
162
+ for (const c in e.bindings) {
163
+ const s = e.bindings[c], d = _({
164
+ code: s,
165
165
  localState: n,
166
166
  rootState: i,
167
167
  rootSetState: a,
168
168
  context: t
169
169
  });
170
- Ye(l, s, d);
170
+ Ye(r, c, d);
171
171
  }
172
- return l;
172
+ return r;
173
173
  };
174
- function D({
174
+ function O({
175
175
  block: e,
176
176
  context: t,
177
177
  shouldEvaluateBindings: n,
@@ -179,22 +179,22 @@ function D({
179
179
  rootState: a,
180
180
  rootSetState: o
181
181
  }) {
182
- const l = e;
182
+ const r = e;
183
183
  return n ? Qe({
184
- block: l,
184
+ block: r,
185
185
  localState: i,
186
186
  rootState: a,
187
187
  rootSetState: o,
188
188
  context: t
189
- }) : l;
189
+ }) : r;
190
190
  }
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 = ({
191
+ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], Y = (e) => typeof e == "string" && Ge.includes(e.toLowerCase()), Je = ({
192
192
  block: e,
193
193
  context: t,
194
194
  registeredComponents: n
195
195
  }) => {
196
196
  var o;
197
- const i = (o = D({
197
+ const i = (o = O({
198
198
  block: e,
199
199
  localState: t.localState,
200
200
  rootState: t.rootState,
@@ -229,16 +229,16 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
229
229
  });
230
230
  if (!Array.isArray(a))
231
231
  return;
232
- const o = n.collection.split(".").pop(), l = n.itemName || (o ? o + "Item" : "item");
233
- return a.map((c, d) => ({
232
+ const o = n.collection.split(".").pop(), r = n.itemName || (o ? o + "Item" : "item");
233
+ return a.map((s, d) => ({
234
234
  context: {
235
235
  ...t,
236
236
  localState: {
237
237
  ...t.localState,
238
238
  $index: d,
239
- $item: c,
240
- [l]: c,
241
- [`$${l}Index`]: d
239
+ $item: s,
240
+ [r]: s,
241
+ [`$${r}Index`]: d
242
242
  }
243
243
  },
244
244
  block: i
@@ -263,7 +263,7 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
263
263
  small: e,
264
264
  medium: t
265
265
  }) => {
266
- const n = ee(Re);
266
+ const n = te(Re);
267
267
  if (!e || !t)
268
268
  return n;
269
269
  const i = Math.floor(e / 2);
@@ -288,8 +288,8 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
288
288
  }, Ze = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Pe = (e) => Object.entries(e).map(([n, i]) => {
289
289
  if (typeof i == "string")
290
290
  return `${Ze(n)}: ${i};`;
291
- }).filter(G), et = (e) => Pe(e).join(`
292
- `), Y = ({
291
+ }).filter(J), et = (e) => Pe(e).join(`
292
+ `), Q = ({
293
293
  mediaQuery: e,
294
294
  className: t,
295
295
  styles: n
@@ -301,12 +301,12 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
301
301
  ${i}
302
302
  }` : i;
303
303
  };
304
- function K(e) {
305
- return /* @__PURE__ */ r("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
304
+ function H(e) {
305
+ return /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
306
306
  }
307
- function ne(e) {
307
+ function ie(e) {
308
308
  function t() {
309
- const i = D({
309
+ const i = O({
310
310
  block: e.block,
311
311
  localState: e.context.localState,
312
312
  rootState: e.context.rootState,
@@ -314,43 +314,43 @@ function ne(e) {
314
314
  context: e.context.context,
315
315
  shouldEvaluateBindings: !0
316
316
  });
317
- return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
317
+ return J(i.hide) ? !i.hide : J(i.show) ? i.show : !0;
318
318
  }
319
319
  function n() {
320
320
  var x;
321
- const i = D({
321
+ const i = O({
322
322
  block: e.block,
323
323
  localState: e.context.localState,
324
324
  rootState: e.context.rootState,
325
325
  rootSetState: e.context.rootSetState,
326
326
  context: e.context.context,
327
327
  shouldEvaluateBindings: !0
328
- }), a = i.responsiveStyles, o = e.context.content, l = Ee(
328
+ }), a = i.responsiveStyles, o = e.context.content, r = Ee(
329
329
  ((x = o == null ? void 0 : o.meta) == null ? void 0 : x.breakpoints) || {}
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;
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;
331
331
  if (!u)
332
332
  return "";
333
- const g = s ? Y({
333
+ const g = c ? Q({
334
334
  className: u,
335
- styles: s
336
- }) : "", p = c ? Y({
335
+ styles: c
336
+ }) : "", v = s ? Q({
337
337
  className: u,
338
- styles: c,
338
+ styles: s,
339
339
  mediaQuery: he(
340
340
  "medium",
341
- l
341
+ r
342
342
  )
343
- }) : "", P = d ? Y({
343
+ }) : "", P = d ? Q({
344
344
  className: u,
345
345
  styles: d,
346
346
  mediaQuery: he(
347
347
  "small",
348
- l
348
+ r
349
349
  )
350
350
  }) : "";
351
- return [g, p, P].join(" ");
351
+ return [g, v, P].join(" ");
352
352
  }
353
- return /* @__PURE__ */ r(f, { children: n() && t() ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(K, { styles: n() }) }) : null });
353
+ return /* @__PURE__ */ l(f, { children: n() && t() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(H, { styles: n() }) }) : null });
354
354
  }
355
355
  function tt(e) {
356
356
  return e.charAt(0).toUpperCase() + e.slice(1);
@@ -364,24 +364,24 @@ const nt = (e) => `on${tt(e)}`, it = (e, t) => (n) => _({
364
364
  event: n,
365
365
  isExpression: !1
366
366
  });
367
- function J(e) {
368
- const t = {}, n = e.block.actions ?? {};
369
- for (const i in n) {
370
- if (!n.hasOwnProperty(i))
367
+ function X(e) {
368
+ var i;
369
+ const t = {}, n = (i = e.block.actions) != null ? i : {};
370
+ for (const a in n) {
371
+ if (!n.hasOwnProperty(a))
371
372
  continue;
372
- const a = n[i];
373
- let o = nt(i);
373
+ const o = n[a];
374
+ let r = nt(a);
374
375
  if (e.stripPrefix)
375
376
  switch (L) {
376
- case "vue2":
377
- case "vue3":
378
- o = o.replace("v-on:", "");
377
+ case "vue":
378
+ r = r.replace("v-on:", "");
379
379
  break;
380
380
  case "svelte":
381
- o = o.replace("on:", "");
381
+ r = r.replace("on:", "");
382
382
  break;
383
383
  }
384
- t[o] = it(a, e);
384
+ t[r] = it(o, e);
385
385
  }
386
386
  return t;
387
387
  }
@@ -393,7 +393,7 @@ function at({
393
393
  const ot = (e) => ({
394
394
  href: e.href
395
395
  });
396
- function O({
396
+ function K({
397
397
  block: e,
398
398
  context: t
399
399
  }) {
@@ -414,8 +414,7 @@ function O({
414
414
  function rt(e) {
415
415
  switch (L) {
416
416
  case "svelte":
417
- case "vue2":
418
- case "vue3":
417
+ case "vue":
419
418
  case "solid":
420
419
  return Pe(e).join(" ");
421
420
  case "qwik":
@@ -428,14 +427,14 @@ function rt(e) {
428
427
  function ge(e) {
429
428
  return /* @__PURE__ */ R(f, { children: [
430
429
  " ",
431
- e.hasChildren ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ R(
430
+ e.hasChildren ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ R(
432
431
  e.Wrapper,
433
432
  {
434
- ...O({
433
+ ...K({
435
434
  block: e.block,
436
435
  context: e.context
437
436
  }),
438
- ...J({
437
+ ...X({
439
438
  block: e.block,
440
439
  rootState: e.context.rootState,
441
440
  rootSetState: e.context.rootSetState,
@@ -449,14 +448,14 @@ function ge(e) {
449
448
  " "
450
449
  ]
451
450
  }
452
- ) }) : /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
451
+ ) }) : /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
453
452
  e.Wrapper,
454
453
  {
455
- ...O({
454
+ ...K({
456
455
  block: e.block,
457
456
  context: e.context
458
457
  }),
459
- ...J({
458
+ ...X({
460
459
  block: e.block,
461
460
  rootState: e.context.rootState,
462
461
  rootSetState: e.context.rootSetState,
@@ -470,16 +469,16 @@ function ge(e) {
470
469
  ] });
471
470
  }
472
471
  function lt(e) {
473
- return /* @__PURE__ */ r(
472
+ return /* @__PURE__ */ l(
474
473
  e.Wrapper,
475
474
  {
476
475
  ...e.wrapperProps,
477
476
  attributes: {
478
- ...O({
477
+ ...K({
479
478
  block: e.block,
480
479
  context: e.context
481
480
  }),
482
- ...J({
481
+ ...X({
483
482
  block: e.block,
484
483
  rootState: e.context.rootState,
485
484
  rootSetState: e.context.rootSetState,
@@ -498,7 +497,7 @@ const ct = ({
498
497
  componentRef: i,
499
498
  includeBlockProps: a,
500
499
  isInteractive: o,
501
- contextValue: l
500
+ contextValue: r
502
501
  }) => o ? {
503
502
  Wrapper: i,
504
503
  block: t,
@@ -511,9 +510,9 @@ const ct = ({
511
510
  * component itself directly. Otherwise, they are provided to the wrapper element.
512
511
  */
513
512
  ...a ? {
514
- attributes: O({
513
+ attributes: K({
515
514
  block: t,
516
- context: l
515
+ context: r
517
516
  })
518
517
  } : {}
519
518
  };
@@ -522,7 +521,7 @@ function be(e) {
522
521
  const [t, n] = S(
523
522
  () => e.isInteractive ? lt : e.componentRef
524
523
  );
525
- return /* @__PURE__ */ r(f, { children: e.componentRef ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ R(
524
+ return /* @__PURE__ */ l(f, { children: e.componentRef ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ R(
526
525
  t,
527
526
  {
528
527
  ...ct({
@@ -535,8 +534,8 @@ function be(e) {
535
534
  contextValue: e.context
536
535
  }),
537
536
  children: [
538
- (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ r(
539
- H,
537
+ (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
538
+ z,
540
539
  {
541
540
  block: o,
542
541
  context: e.context,
@@ -544,8 +543,8 @@ function be(e) {
544
543
  },
545
544
  "block-" + o.id
546
545
  )),
547
- (a = e.blockChildren) == null ? void 0 : a.map((o) => /* @__PURE__ */ r(
548
- ne,
546
+ (a = e.blockChildren) == null ? void 0 : a.map((o) => /* @__PURE__ */ l(
547
+ ie,
549
548
  {
550
549
  block: o,
551
550
  context: e.context
@@ -558,8 +557,8 @@ function be(e) {
558
557
  }
559
558
  function st(e) {
560
559
  const [t, n] = S(() => e.repeatContext);
561
- return /* @__PURE__ */ r(te.Provider, { value: t, children: /* @__PURE__ */ r(
562
- H,
560
+ return /* @__PURE__ */ l(ne.Provider, { value: t, children: /* @__PURE__ */ l(
561
+ z,
563
562
  {
564
563
  block: e.block,
565
564
  context: t,
@@ -567,8 +566,8 @@ function st(e) {
567
566
  }
568
567
  ) });
569
568
  }
570
- function H(e) {
571
- var u, g, p, P;
569
+ function z(e) {
570
+ var u, g, v, P;
572
571
  function t() {
573
572
  return Je({
574
573
  block: e.block,
@@ -584,7 +583,7 @@ function H(e) {
584
583
  }
585
584
  function i() {
586
585
  var x;
587
- return (x = e.block.repeat) != null && x.collection ? e.block : D({
586
+ return (x = e.block.repeat) != null && x.collection ? e.block : O({
588
587
  block: e.block,
589
588
  localState: e.context.localState,
590
589
  rootState: e.context.rootState,
@@ -597,50 +596,50 @@ function H(e) {
597
596
  return e.block.tagName || "div";
598
597
  }
599
598
  function o() {
600
- var I, E;
601
- if ((I = e.block.repeat) != null && I.collection)
599
+ var w, E;
600
+ if ((w = e.block.repeat) != null && w.collection)
602
601
  return !!((E = n == null ? void 0 : n()) != null && E.length);
603
602
  const x = "hide" in i() ? i().hide : !1;
604
603
  return ("show" in i() ? i().show : !0) && !x;
605
604
  }
606
- function l() {
607
- var v;
608
- return !((v = t == null ? void 0 : t()) != null && v.component) && !n() ? i().children ?? [] : [];
605
+ function r() {
606
+ var k, w;
607
+ return !((k = t == null ? void 0 : t()) != null && k.component) && !n() ? (w = i().children) != null ? w : [] : [];
609
608
  }
610
- function s() {
611
- var x, v, I, E, C;
609
+ function c() {
610
+ var x, k, w, E, I, p;
612
611
  return {
613
- blockChildren: i().children ?? [],
614
- componentRef: (x = t == null ? void 0 : t()) == null ? void 0 : x.component,
612
+ blockChildren: (x = i().children) != null ? x : [],
613
+ componentRef: (k = t == null ? void 0 : t()) == null ? void 0 : k.component,
615
614
  componentOptions: {
616
615
  ...De(i()),
617
616
  builderContext: e.context,
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" ? {
617
+ ...((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Symbol" || ((E = t == null ? void 0 : t()) == null ? void 0 : E.name) === "Columns" ? {
619
618
  builderComponents: e.registeredComponents
620
619
  } : {}
621
620
  },
622
- context: c,
621
+ context: s,
623
622
  registeredComponents: e.registeredComponents,
624
623
  builderBlock: i(),
625
- includeBlockProps: ((E = t == null ? void 0 : t()) == null ? void 0 : E.noWrap) === !0,
626
- isInteractive: !((C = t == null ? void 0 : t()) != null && C.isRSC)
624
+ includeBlockProps: ((I = t == null ? void 0 : t()) == null ? void 0 : I.noWrap) === !0,
625
+ isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
627
626
  };
628
627
  }
629
- const [c, d] = S(() => e.context);
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(
628
+ const [s, d] = S(() => e.context);
629
+ 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(
631
630
  be,
632
631
  {
633
- componentRef: s().componentRef,
634
- componentOptions: s().componentOptions,
635
- blockChildren: s().blockChildren,
636
- context: s().context,
637
- registeredComponents: s().registeredComponents,
638
- builderBlock: s().builderBlock,
639
- includeBlockProps: s().includeBlockProps,
640
- isInteractive: s().isInteractive
632
+ componentRef: c().componentRef,
633
+ componentOptions: c().componentOptions,
634
+ blockChildren: c().blockChildren,
635
+ context: c().context,
636
+ registeredComponents: c().registeredComponents,
637
+ builderBlock: c().builderBlock,
638
+ includeBlockProps: c().includeBlockProps,
639
+ isInteractive: c().isInteractive
641
640
  }
642
641
  ) }) : /* @__PURE__ */ R(f, { children: [
643
- q(a()) ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
642
+ Y(a()) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
644
643
  ge,
645
644
  {
646
645
  Wrapper: a(),
@@ -649,16 +648,16 @@ function H(e) {
649
648
  hasChildren: !1
650
649
  }
651
650
  ) }) : null,
652
- !q(a()) && n() ? /* @__PURE__ */ r(f, { children: (g = n()) == null ? void 0 : g.map((x, v) => /* @__PURE__ */ r(
651
+ !Y(a()) && n() ? /* @__PURE__ */ l(f, { children: (g = n()) == null ? void 0 : g.map((x, k) => /* @__PURE__ */ l(
653
652
  st,
654
653
  {
655
654
  repeatContext: x.context,
656
655
  block: x.block,
657
656
  registeredComponents: e.registeredComponents
658
657
  },
659
- v
658
+ k
660
659
  )) }) : null,
661
- !q(a()) && !n() ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ R(
660
+ !Y(a()) && !n() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ R(
662
661
  ge,
663
662
  {
664
663
  Wrapper: a(),
@@ -666,33 +665,33 @@ function H(e) {
666
665
  context: e.context,
667
666
  hasChildren: !0,
668
667
  children: [
669
- /* @__PURE__ */ r(
668
+ /* @__PURE__ */ l(
670
669
  be,
671
670
  {
672
- componentRef: s().componentRef,
673
- componentOptions: s().componentOptions,
674
- blockChildren: s().blockChildren,
675
- context: s().context,
676
- registeredComponents: s().registeredComponents,
677
- builderBlock: s().builderBlock,
678
- includeBlockProps: s().includeBlockProps,
679
- isInteractive: s().isInteractive
671
+ componentRef: c().componentRef,
672
+ componentOptions: c().componentOptions,
673
+ blockChildren: c().blockChildren,
674
+ context: c().context,
675
+ registeredComponents: c().registeredComponents,
676
+ builderBlock: c().builderBlock,
677
+ includeBlockProps: c().includeBlockProps,
678
+ isInteractive: c().isInteractive
680
679
  }
681
680
  ),
682
- (p = l()) == null ? void 0 : p.map((x) => /* @__PURE__ */ r(
683
- H,
681
+ (v = r()) == null ? void 0 : v.map((x) => /* @__PURE__ */ l(
682
+ z,
684
683
  {
685
684
  block: x,
686
- context: c,
685
+ context: s,
687
686
  registeredComponents: e.registeredComponents
688
687
  },
689
688
  "block-" + x.id
690
689
  )),
691
- (P = l()) == null ? void 0 : P.map((x) => /* @__PURE__ */ r(
692
- ne,
690
+ (P = r()) == null ? void 0 : P.map((x) => /* @__PURE__ */ l(
691
+ ie,
693
692
  {
694
693
  block: x,
695
- context: c
694
+ context: s
696
695
  },
697
696
  "block-style-" + x.id
698
697
  ))
@@ -733,7 +732,7 @@ function dt(e) {
733
732
  ));
734
733
  }
735
734
  return /* @__PURE__ */ R(f, { children: [
736
- /* @__PURE__ */ r(
735
+ /* @__PURE__ */ l(
737
736
  e.BlocksWrapper,
738
737
  {
739
738
  className: t() + " props-blocks-wrapper-4f2c12d8",
@@ -747,16 +746,16 @@ function dt(e) {
747
746
  children: e.children
748
747
  }
749
748
  ),
750
- /* @__PURE__ */ r("style", { children: `.props-blocks-wrapper-4f2c12d8 {
749
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-4f2c12d8 {
751
750
  display: flex;
752
751
  flex-direction: column;
753
752
  align-items: stretch;
754
753
  }` })
755
754
  ] });
756
755
  }
757
- function ie(e) {
758
- var i, a, o, l;
759
- const t = se(te), n = se(Te);
756
+ function ae(e) {
757
+ var i, a, o, r;
758
+ const t = se(ne), n = se(Te);
760
759
  return /* @__PURE__ */ R(
761
760
  dt,
762
761
  {
@@ -767,22 +766,22 @@ function ie(e) {
767
766
  BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
768
767
  BlocksWrapperProps: (a = e.context) == null ? void 0 : a.BlocksWrapperProps,
769
768
  children: [
770
- e.blocks ? /* @__PURE__ */ r(f, { children: (o = e.blocks) == null ? void 0 : o.map((s) => /* @__PURE__ */ r(
771
- H,
769
+ e.blocks ? /* @__PURE__ */ l(f, { children: (o = e.blocks) == null ? void 0 : o.map((c) => /* @__PURE__ */ l(
770
+ z,
772
771
  {
773
- block: s,
772
+ block: c,
774
773
  context: e.context || t,
775
774
  registeredComponents: e.registeredComponents || n.registeredComponents
776
775
  },
777
- "render-block-" + s.id
776
+ "render-block-" + c.id
778
777
  )) }) : null,
779
- e.blocks ? /* @__PURE__ */ r(f, { children: (l = e.blocks) == null ? void 0 : l.map((s) => /* @__PURE__ */ r(
780
- ne,
778
+ e.blocks ? /* @__PURE__ */ l(f, { children: (r = e.blocks) == null ? void 0 : r.map((c) => /* @__PURE__ */ l(
779
+ ie,
781
780
  {
782
- block: s,
781
+ block: c,
783
782
  context: e.context || t
784
783
  },
785
- "block-style-" + s.id
784
+ "block-style-" + c.id
786
785
  )) }) : null
787
786
  ]
788
787
  }
@@ -792,30 +791,30 @@ function ut(e) {
792
791
  var E;
793
792
  const [t, n] = S(
794
793
  () => typeof e.space == "number" ? e.space || 0 : 20
795
- ), [i, a] = S(() => e.columns || []), [o, l] = S(
794
+ ), [i, a] = S(() => e.columns || []), [o, r] = S(
796
795
  () => e.stackColumnsAt || "tablet"
797
796
  );
798
- function s(C) {
799
- var w;
800
- return ((w = i[C]) == null ? void 0 : w.width) || 100 / i.length;
797
+ function c(I) {
798
+ var p;
799
+ return ((p = i[I]) == null ? void 0 : p.width) || 100 / i.length;
801
800
  }
802
- function c(C) {
803
- const w = t * (i.length - 1) / i.length;
804
- return `calc(${s(C)}% - ${w}px)`;
801
+ function s(I) {
802
+ const p = t * (i.length - 1) / i.length;
803
+ return `calc(${c(I)}% - ${p}px)`;
805
804
  }
806
805
  function d({
807
- stackedStyle: C,
808
- desktopStyle: w
806
+ stackedStyle: I,
807
+ desktopStyle: p
809
808
  }) {
810
- return o === "tablet" ? C : w;
809
+ return o === "tablet" ? I : p;
811
810
  }
812
811
  function u({
813
- stackedStyle: C,
814
- desktopStyle: w
812
+ stackedStyle: I,
813
+ desktopStyle: p
815
814
  }) {
816
- return o === "never" ? w : C;
815
+ return o === "never" ? p : I;
817
816
  }
818
- const [g, p] = S(
817
+ const [g, v] = S(
819
818
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
820
819
  );
821
820
  function P() {
@@ -827,8 +826,8 @@ function ut(e) {
827
826
  })
828
827
  };
829
828
  }
830
- function x(C) {
831
- const w = C === 0 ? 0 : t, B = c(C), V = `${w}px`, N = "100%", F = 0;
829
+ function x(I) {
830
+ const p = I === 0 ? 0 : t, B = s(I), V = `${p}px`, N = "100%", F = 0;
832
831
  return {
833
832
  width: B,
834
833
  ["marginLeft"]: V,
@@ -850,15 +849,15 @@ function ut(e) {
850
849
  })
851
850
  };
852
851
  }
853
- function v(C) {
852
+ function k(I) {
854
853
  var B, V;
855
854
  return Ee(
856
855
  ((V = (B = e.builderContext.content) == null ? void 0 : B.meta) == null ? void 0 : V.breakpoints) || {}
857
- )[C].max;
856
+ )[I].max;
858
857
  }
859
- function I() {
858
+ function w() {
860
859
  return `
861
- @media (max-width: ${v("medium")}px) {
860
+ @media (max-width: ${k("medium")}px) {
862
861
  .${e.builderBlock.id}-breakpoints {
863
862
  flex-direction: var(--flex-dir-tablet);
864
863
  align-items: stretch;
@@ -870,7 +869,7 @@ function ut(e) {
870
869
  }
871
870
  }
872
871
 
873
- @media (max-width: ${v("small")}px) {
872
+ @media (max-width: ${k("small")}px) {
874
873
  .${e.builderBlock.id}-breakpoints {
875
874
  flex-direction: var(--flex-dir);
876
875
  align-items: stretch;
@@ -890,32 +889,32 @@ function ut(e) {
890
889
  className: `builder-columns ${e.builderBlock.id}-breakpoints div-53636e90`,
891
890
  style: P(),
892
891
  children: [
893
- /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(K, { styles: I() }) }),
894
- (E = e.columns) == null ? void 0 : E.map((C, w) => /* @__PURE__ */ we(
892
+ /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(H, { styles: w() }) }),
893
+ (E = e.columns) == null ? void 0 : E.map((I, p) => /* @__PURE__ */ we(
895
894
  "div",
896
895
  {
897
896
  className: "builder-column div-53636e90-2",
898
- style: x(w),
899
- key: w
897
+ style: x(p),
898
+ key: p
900
899
  },
901
- /* @__PURE__ */ r(
902
- ie,
900
+ /* @__PURE__ */ l(
901
+ ae,
903
902
  {
904
- path: `component.options.columns.${w}.blocks`,
903
+ path: `component.options.columns.${p}.blocks`,
905
904
  parent: e.builderBlock.id,
906
905
  styleProp: {
907
906
  flexGrow: "1"
908
907
  },
909
908
  context: e.builderContext,
910
909
  registeredComponents: e.builderComponents,
911
- blocks: C.blocks
910
+ blocks: I.blocks
912
911
  }
913
912
  )
914
913
  ))
915
914
  ]
916
915
  }
917
916
  ),
918
- /* @__PURE__ */ r("style", { children: `.div-53636e90 {
917
+ /* @__PURE__ */ l("style", { children: `.div-53636e90 {
919
918
  display: flex;
920
919
  line-height: normal;
921
920
  }.div-53636e90-2 {
@@ -926,7 +925,7 @@ function ut(e) {
926
925
  ] });
927
926
  }
928
927
  function mt(e) {
929
- return /* @__PURE__ */ r("span", { children: e.children });
928
+ return /* @__PURE__ */ l("span", { children: e.children });
930
929
  }
931
930
  function xe(e) {
932
931
  return e.replace(/http(s)?:/, "");
@@ -947,7 +946,7 @@ function ht(e, t) {
947
946
  }
948
947
  return null;
949
948
  }
950
- function Q(e) {
949
+ function G(e) {
951
950
  if (!e)
952
951
  return e;
953
952
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
@@ -959,7 +958,7 @@ function Q(e) {
959
958
  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;
960
959
  }
961
960
  function gt(e) {
962
- var a, o, l, s;
961
+ var a, o, r, c;
963
962
  function t() {
964
963
  var u;
965
964
  const d = e.image || e.src;
@@ -969,30 +968,30 @@ function gt(e) {
969
968
  return e.srcset;
970
969
  if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
971
970
  if (!e.srcset.includes(e.image.split("?")[0]))
972
- return console.debug("Removed given srcset"), Q(d);
971
+ return console.debug("Removed given srcset"), G(d);
973
972
  } else if (e.image && !e.srcset)
974
- return Q(d);
975
- return Q(d);
973
+ return G(d);
974
+ return G(d);
976
975
  }
977
976
  function n() {
978
- var c;
979
- return (c = t == null ? void 0 : t()) != null && c.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
977
+ var s;
978
+ return (s = t == null ? void 0 : t()) != null && s.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
980
979
  }
981
980
  function i() {
982
- const c = {
981
+ const s = {
983
982
  position: "absolute",
984
983
  height: "100%",
985
984
  width: "100%",
986
985
  left: "0px",
987
986
  top: "0px"
988
987
  };
989
- return e.aspectRatio ? c : void 0;
988
+ return e.aspectRatio ? s : void 0;
990
989
  }
991
990
  return /* @__PURE__ */ R(f, { children: [
992
991
  /* @__PURE__ */ R(f, { children: [
993
992
  /* @__PURE__ */ R("picture", { children: [
994
- n() ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r("source", { type: "image/webp", srcSet: n() }) }) : null,
995
- /* @__PURE__ */ r(
993
+ n() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) }) : null,
994
+ /* @__PURE__ */ l(
996
995
  "img",
997
996
  {
998
997
  loading: "lazy",
@@ -1010,7 +1009,7 @@ function gt(e) {
1010
1009
  }
1011
1010
  )
1012
1011
  ] }),
1013
- e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
1012
+ e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
1014
1013
  "div",
1015
1014
  {
1016
1015
  className: "builder-image-sizer div-dbab4030",
@@ -1019,10 +1018,10 @@ function gt(e) {
1019
1018
  }
1020
1019
  }
1021
1020
  ) }) : null,
1022
- (s = (l = e.builderBlock) == null ? void 0 : l.children) != null && s.length && e.fitContent ? /* @__PURE__ */ r(f, { children: e.children }) : null,
1023
- !e.fitContent && e.children ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r("div", { className: "div-dbab4030-2", children: e.children }) }) : null
1021
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(f, { children: e.children }) : null,
1022
+ !e.fitContent && e.children ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l("div", { className: "div-dbab4030-2", children: e.children }) }) : null
1024
1023
  ] }),
1025
- /* @__PURE__ */ r("style", { children: `.img-dbab4030 {
1024
+ /* @__PURE__ */ l("style", { children: `.img-dbab4030 {
1026
1025
  opacity: 1;
1027
1026
  transition: opacity 0.2s ease-in-out;
1028
1027
  }.div-dbab4030 {
@@ -1042,7 +1041,7 @@ function gt(e) {
1042
1041
  ] });
1043
1042
  }
1044
1043
  function bt(e) {
1045
- return /* @__PURE__ */ r(
1044
+ return /* @__PURE__ */ l(
1046
1045
  "section",
1047
1046
  {
1048
1047
  ...e.attributes,
@@ -1274,7 +1273,7 @@ const xt = {
1274
1273
  });
1275
1274
  }
1276
1275
  const n = e.get("columns");
1277
- Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((s, c) => s + c.get("width"), 0) !== 100) && t();
1276
+ 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();
1278
1277
  }
1279
1278
  }, {
1280
1279
  name: "space",
@@ -1320,14 +1319,14 @@ const xt = {
1320
1319
  }]
1321
1320
  };
1322
1321
  function pt(e) {
1323
- const t = Z(null), [n, i] = S(() => []), [a, o] = S(() => []);
1322
+ const t = ee(null), [n, i] = S(() => []), [a, o] = S(() => []);
1324
1323
  return W(() => {
1325
- var s;
1326
- if (!((s = t.current) != null && s.getElementsByTagName) || typeof window > "u")
1324
+ var c;
1325
+ if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
1327
1326
  return;
1328
- const l = t.current.getElementsByTagName("script");
1329
- for (let c = 0; c < l.length; c++) {
1330
- const d = l[c];
1327
+ const r = t.current.getElementsByTagName("script");
1328
+ for (let s = 0; s < r.length; s++) {
1329
+ const d = r[s];
1331
1330
  if (d.src) {
1332
1331
  if (n.includes(d.src))
1333
1332
  continue;
@@ -1348,7 +1347,7 @@ function pt(e) {
1348
1347
  }
1349
1348
  }
1350
1349
  }
1351
- }, []), /* @__PURE__ */ r(
1350
+ }, []), /* @__PURE__ */ l(
1352
1351
  "div",
1353
1352
  {
1354
1353
  ref: t,
@@ -1384,8 +1383,8 @@ const vt = {
1384
1383
  }]
1385
1384
  }, kt = ["text/javascript", "application/javascript", "application/ecmascript"], Ct = (e) => kt.includes(e.type);
1386
1385
  function wt(e) {
1387
- const t = Z(null), [n, i] = S(() => []), [a, o] = S(() => []), [l, s] = S(() => !1);
1388
- function c() {
1386
+ const t = ee(null), [n, i] = S(() => []), [a, o] = S(() => []), [r, c] = S(() => !1);
1387
+ function s() {
1389
1388
  if (!t.current || !t.current.getElementsByTagName)
1390
1389
  return;
1391
1390
  const d = t.current.getElementsByTagName("script");
@@ -1393,19 +1392,19 @@ function wt(e) {
1393
1392
  const g = d[u];
1394
1393
  if (g.src && !n.includes(g.src)) {
1395
1394
  n.push(g.src);
1396
- const p = document.createElement("script");
1397
- p.async = !0, p.src = g.src, document.head.appendChild(p);
1395
+ const v = document.createElement("script");
1396
+ v.async = !0, v.src = g.src, document.head.appendChild(v);
1398
1397
  } else if (Ct(g) && !a.includes(g.innerText))
1399
1398
  try {
1400
1399
  a.push(g.innerText), new Function(g.innerText)();
1401
- } catch (p) {
1402
- console.warn("`Embed`: Error running script:", p);
1400
+ } catch (v) {
1401
+ console.warn("`Embed`: Error running script:", v);
1403
1402
  }
1404
1403
  }
1405
1404
  }
1406
1405
  return W(() => {
1407
- t.current && !l && (s(!0), c());
1408
- }, [t.current, l]), /* @__PURE__ */ r(
1406
+ t.current && !r && (c(!0), s());
1407
+ }, [t.current, r]), /* @__PURE__ */ l(
1409
1408
  "div",
1410
1409
  {
1411
1410
  className: "builder-embed",
@@ -1440,29 +1439,29 @@ const It = {
1440
1439
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1441
1440
  onChange: (e) => {
1442
1441
  e.delete("srcset"), e.delete("noWebp");
1443
- function n(l, s = 6e4) {
1444
- return new Promise((c, d) => {
1442
+ function n(r, c = 6e4) {
1443
+ return new Promise((s, d) => {
1445
1444
  const u = document.createElement("img");
1446
1445
  let g = !1;
1447
1446
  u.onload = () => {
1448
- g = !0, c(u);
1449
- }, u.addEventListener("error", (p) => {
1450
- console.warn("Image load failed", p.error), d(p.error);
1451
- }), u.src = l, setTimeout(() => {
1447
+ g = !0, s(u);
1448
+ }, u.addEventListener("error", (v) => {
1449
+ console.warn("Image load failed", v.error), d(v.error);
1450
+ }), u.src = r, setTimeout(() => {
1452
1451
  g || d(new Error("Image load timed out"));
1453
- }, s);
1452
+ }, c);
1454
1453
  });
1455
1454
  }
1456
- function i(l) {
1457
- return Math.round(l * 1e3) / 1e3;
1455
+ function i(r) {
1456
+ return Math.round(r * 1e3) / 1e3;
1458
1457
  }
1459
1458
  const a = e.get("image"), o = e.get("aspectRatio");
1460
- if (fetch(a).then((l) => l.blob()).then((l) => {
1461
- l.type.includes("svg") && e.set("noWebp", !0);
1459
+ if (fetch(a).then((r) => r.blob()).then((r) => {
1460
+ r.type.includes("svg") && e.set("noWebp", !0);
1462
1461
  }), a && (!o || o === 0.7041))
1463
- return n(a).then((l) => {
1464
- const s = e.get("aspectRatio");
1465
- e.get("image") === a && (!s || s === 0.7041) && l.width && l.height && (e.set("aspectRatio", i(l.height / l.width)), e.set("height", l.height), e.set("width", l.width));
1462
+ return n(a).then((r) => {
1463
+ const c = e.get("aspectRatio");
1464
+ 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));
1466
1465
  });
1467
1466
  }
1468
1467
  }, {
@@ -1536,7 +1535,7 @@ const It = {
1536
1535
  static: !0
1537
1536
  };
1538
1537
  function Et(e) {
1539
- return /* @__PURE__ */ r(
1538
+ return /* @__PURE__ */ l(
1540
1539
  "img",
1541
1540
  {
1542
1541
  style: {
@@ -1643,7 +1642,7 @@ const Pt = {
1643
1642
  };
1644
1643
  function Vt(e) {
1645
1644
  var t;
1646
- return /* @__PURE__ */ r(
1645
+ return /* @__PURE__ */ l(
1647
1646
  "div",
1648
1647
  {
1649
1648
  className: "builder-text",
@@ -1737,7 +1736,7 @@ const At = {
1737
1736
  }]
1738
1737
  };
1739
1738
  function $t(e) {
1740
- var i, a, o, l, s, c, d;
1739
+ var i, a, o, r, c, s, d;
1741
1740
  function t() {
1742
1741
  return {
1743
1742
  ...e.autoPlay === !0 ? {
@@ -1769,7 +1768,7 @@ function $t(e) {
1769
1768
  position: "relative"
1770
1769
  },
1771
1770
  children: [
1772
- /* @__PURE__ */ r(
1771
+ /* @__PURE__ */ l(
1773
1772
  "video",
1774
1773
  {
1775
1774
  className: "builder-video",
@@ -1791,10 +1790,10 @@ function $t(e) {
1791
1790
  },
1792
1791
  src: e.video || "no-src",
1793
1792
  poster: e.posterImage,
1794
- children: e.lazyLoad ? null : /* @__PURE__ */ r("source", { type: "video/mp4", src: e.video })
1793
+ children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
1795
1794
  }
1796
1795
  ),
1797
- e.aspectRatio && !(e.fitContent && ((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length)) ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
1796
+ e.aspectRatio && !(e.fitContent && ((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length)) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
1798
1797
  "div",
1799
1798
  {
1800
1799
  style: {
@@ -1805,7 +1804,7 @@ function $t(e) {
1805
1804
  }
1806
1805
  }
1807
1806
  ) }) : null,
1808
- (s = (l = e.builderBlock) == null ? void 0 : l.children) != null && s.length && e.fitContent ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
1807
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
1809
1808
  "div",
1810
1809
  {
1811
1810
  style: {
@@ -1816,7 +1815,7 @@ function $t(e) {
1816
1815
  children: e.children
1817
1816
  }
1818
1817
  ) }) : null,
1819
- (d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
1818
+ (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
1820
1819
  "div",
1821
1820
  {
1822
1821
  style: {
@@ -1960,14 +1959,14 @@ const ye = () => [{
1960
1959
  thisScriptEl?.remove();
1961
1960
  }
1962
1961
  return;
1963
- }`, We = "builderIoAbTest", Be = "builderIoRenderContent", j = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1962
+ }`, We = "builderIoAbTest", Be = "builderIoRenderContent", M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1964
1963
  ...t,
1965
1964
  testVariationId: t.id,
1966
1965
  id: e == null ? void 0 : e.id
1967
1966
  })), _t = ({
1968
1967
  canTrack: e,
1969
1968
  content: t
1970
- }) => !(!(j(t).length > 0) || !e || $()), Lt = (e) => e === "react" || e === "reactNative", Ve = Lt(L), jt = () => `
1969
+ }) => !(!(M(t).length > 0) || !e || $()), Lt = (e) => e === "react" || e === "reactNative", Ve = Lt(L), jt = () => `
1971
1970
  window.${We} = ${Nt}
1972
1971
  window.${Be} = ${Ft}
1973
1972
  `, Mt = (e, t) => `
@@ -1979,8 +1978,8 @@ const ye = () => [{
1979
1978
  }) => `window.${Be}(
1980
1979
  "${t}", "${e}", ${Ve}
1981
1980
  )`;
1982
- function X(e) {
1983
- return /* @__PURE__ */ r(
1981
+ function Z(e) {
1982
+ return /* @__PURE__ */ l(
1984
1983
  "script",
1985
1984
  {
1986
1985
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -2009,10 +2008,10 @@ const Dt = (e, t, n = !0) => {
2009
2008
  event: e,
2010
2009
  target: t
2011
2010
  }) => {
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);
2011
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Se(i / n.width), r = Se(a / n.height);
2013
2012
  return {
2014
2013
  x: o,
2015
- y: l
2014
+ y: r
2016
2015
  };
2017
2016
  }, Kt = (e) => {
2018
2017
  const t = e.target, n = t && Ot(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
@@ -2030,7 +2029,7 @@ const Dt = (e, t, n = !0) => {
2030
2029
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
2031
2030
  }
2032
2031
  };
2033
- }, Ht = "0.9.0", zt = () => {
2032
+ }, Ht = "0.11.0", zt = () => {
2034
2033
  Fe("insertMenu", {
2035
2034
  name: "_default",
2036
2035
  default: !0,
@@ -2079,33 +2078,33 @@ const qt = (e = {}) => {
2079
2078
  if (i != null && i.type)
2080
2079
  switch (i.type) {
2081
2080
  case "builder.evaluate": {
2082
- const l = i.data.text, s = i.data.arguments || [], c = i.data.id, d = new Function(l);
2081
+ const r = i.data.text, c = i.data.arguments || [], s = i.data.id, d = new Function(r);
2083
2082
  let u, g = null;
2084
2083
  try {
2085
- u = d.apply(null, s);
2086
- } catch (p) {
2087
- g = p;
2084
+ u = d.apply(null, c);
2085
+ } catch (v) {
2086
+ g = v;
2088
2087
  }
2089
2088
  g ? (a = window.parent) == null || a.postMessage({
2090
2089
  type: "builder.evaluateError",
2091
2090
  data: {
2092
- id: c,
2091
+ id: s,
2093
2092
  error: g.message
2094
2093
  }
2095
- }, "*") : u && typeof u.then == "function" ? u.then((p) => {
2094
+ }, "*") : u && typeof u.then == "function" ? u.then((v) => {
2096
2095
  var P;
2097
2096
  (P = window.parent) == null || P.postMessage({
2098
2097
  type: "builder.evaluateResult",
2099
2098
  data: {
2100
- id: c,
2101
- result: p
2099
+ id: s,
2100
+ result: v
2102
2101
  }
2103
2102
  }, "*");
2104
2103
  }).catch(console.error) : (o = window.parent) == null || o.postMessage({
2105
2104
  type: "builder.evaluateResult",
2106
2105
  data: {
2107
2106
  result: u,
2108
- id: c
2107
+ id: s
2109
2108
  }
2110
2109
  }, "*");
2111
2110
  break;
@@ -2114,10 +2113,10 @@ const qt = (e = {}) => {
2114
2113
  })));
2115
2114
  };
2116
2115
  function Yt(e) {
2117
- var N, F, z, ae, oe, re, le;
2118
- const t = Z(null), [n, i] = S(() => 0);
2116
+ var N, F, q, oe, re, le, ce;
2117
+ const t = ee(null), [n, i] = S(() => 0);
2119
2118
  function a(m) {
2120
- var b, y, k, T, ce;
2119
+ var b, y, C, T, j;
2121
2120
  const h = {
2122
2121
  ...e.builderContextSignal.content,
2123
2122
  ...m,
@@ -2128,7 +2127,7 @@ function Yt(e) {
2128
2127
  meta: {
2129
2128
  ...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
2130
2129
  ...m == null ? void 0 : m.meta,
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)
2130
+ 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)
2132
2131
  }
2133
2132
  };
2134
2133
  e.setBuilderContextSignal(($e) => ({
@@ -2137,9 +2136,9 @@ function Yt(e) {
2137
2136
  }));
2138
2137
  }
2139
2138
  S(() => 0);
2140
- const [o, l] = S(
2139
+ const [o, r] = S(
2141
2140
  () => !1
2142
- ), [s, c] = S(
2141
+ ), [c, s] = S(
2143
2142
  () => e.contentWrapper || "div"
2144
2143
  );
2145
2144
  function d(m) {
@@ -2148,19 +2147,19 @@ function Yt(e) {
2148
2147
  if (h)
2149
2148
  switch (h.type) {
2150
2149
  case "builder.configureSdk": {
2151
- const y = h.data, { breakpoints: k, contentId: T } = y;
2150
+ const y = h.data, { breakpoints: C, contentId: T } = y;
2152
2151
  if (!T || T !== ((b = e.builderContextSignal.content) == null ? void 0 : b.id))
2153
2152
  return;
2154
- k && a({
2153
+ C && a({
2155
2154
  meta: {
2156
- breakpoints: k
2155
+ breakpoints: C
2157
2156
  }
2158
2157
  }), i(n + 1);
2159
2158
  break;
2160
2159
  }
2161
2160
  case "builder.contentUpdate": {
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));
2161
+ const y = h.data, C = y.key || y.alias || y.entry || y.modelName, T = y.data;
2162
+ C === e.model && (a(T), i(n + 1));
2164
2163
  break;
2165
2164
  }
2166
2165
  }
@@ -2176,24 +2175,24 @@ function Yt(e) {
2176
2175
  rootSetState: e.builderContextSignal.rootSetState
2177
2176
  });
2178
2177
  }
2179
- const [g, p] = S(() => ({})), [P, x] = S(() => !1);
2180
- function v(m) {
2178
+ const [g, v] = S(() => ({})), [P, x] = S(() => !1);
2179
+ function k(m) {
2181
2180
  var h, b;
2182
2181
  if (e.builderContextSignal.content) {
2183
- const y = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, k = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
2182
+ const y = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, C = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
2184
2183
  de({
2185
2184
  type: "click",
2186
- canTrack: U(e.canTrack),
2187
- contentId: k,
2185
+ canTrack: D(e.canTrack),
2186
+ contentId: C,
2188
2187
  apiKey: e.apiKey,
2189
- variationId: y !== k ? y : void 0,
2188
+ variationId: y !== C ? y : void 0,
2190
2189
  ...Kt(m),
2191
2190
  unique: !P
2192
2191
  });
2193
2192
  }
2194
2193
  P || x(!0);
2195
2194
  }
2196
- function I(m) {
2195
+ function w(m) {
2197
2196
  return m.replace(
2198
2197
  /{{([^}]+)}}/g,
2199
2198
  (h, b) => _({
@@ -2207,36 +2206,36 @@ function Yt(e) {
2207
2206
  }
2208
2207
  function E({ url: m, key: h }) {
2209
2208
  je(m).then((b) => b.json()).then((b) => {
2210
- var k, T;
2209
+ var C, T;
2211
2210
  const y = {
2212
2211
  ...e.builderContextSignal.rootState,
2213
2212
  [h]: b
2214
2213
  };
2215
- (T = (k = e.builderContextSignal).rootSetState) == null || T.call(k, y), g[h] = !0;
2214
+ (T = (C = e.builderContextSignal).rootSetState) == null || T.call(C, y), g[h] = !0;
2216
2215
  }).catch((b) => {
2217
2216
  console.error("error fetching dynamic data", m, b);
2218
2217
  });
2219
2218
  }
2220
- function C() {
2221
- var h, b;
2222
- const m = ((b = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : b.httpRequests) ?? {};
2223
- Object.entries(m).forEach(([y, k]) => {
2224
- if (k && (!g[y] || A())) {
2225
- const T = I(k);
2219
+ function I() {
2220
+ var h, b, y;
2221
+ const m = (y = (b = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : b.httpRequests) != null ? y : {};
2222
+ Object.entries(m).forEach(([C, T]) => {
2223
+ if (T && (!g[C] || A())) {
2224
+ const j = w(T);
2226
2225
  E({
2227
- url: T,
2228
- key: y
2226
+ url: j,
2227
+ key: C
2229
2228
  });
2230
2229
  }
2231
2230
  });
2232
2231
  }
2233
- function w() {
2232
+ function p() {
2234
2233
  A() && window.dispatchEvent(
2235
2234
  new CustomEvent(
2236
2235
  "builder:component:stateChange",
2237
2236
  {
2238
2237
  detail: {
2239
- state: ee(e.builderContextSignal.rootState),
2238
+ state: te(e.builderContextSignal.rootState),
2240
2239
  ref: {
2241
2240
  name: e.model
2242
2241
  }
@@ -2264,14 +2263,14 @@ function Yt(e) {
2264
2263
  (y = window.parent) == null || y.postMessage(b, "*");
2265
2264
  }), window.addEventListener(
2266
2265
  "builder:component:stateChangeListenerActivated",
2267
- w
2266
+ p
2268
2267
  );
2269
2268
  }
2270
2269
  function V(m) {
2271
2270
  const h = new URL(location.href).searchParams, b = h.get("builder.preview"), y = h.get(
2272
2271
  `builder.preview.${b}`
2273
- ), k = h.get("apiKey") || h.get("builder.space");
2274
- b === e.model && k === e.apiKey && (!e.content || y === e.content.id) && Ie({
2272
+ ), C = h.get("apiKey") || h.get("builder.space");
2273
+ b === e.model && C === e.apiKey && (!e.content || y === e.content.id) && Ie({
2275
2274
  model: e.model,
2276
2275
  apiKey: e.apiKey,
2277
2276
  apiVersion: e.builderContextSignal.apiVersion
@@ -2306,22 +2305,22 @@ function Yt(e) {
2306
2305
  }, []), W(() => {
2307
2306
  var m, h;
2308
2307
  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;
2308
+ if (A() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && D(e.canTrack)) {
2309
+ const y = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, C = (h = e.builderContextSignal.content) == null ? void 0 : h.id, T = e.apiKey;
2311
2310
  de({
2312
2311
  type: "impression",
2313
2312
  canTrack: !0,
2314
- contentId: k,
2313
+ contentId: C,
2315
2314
  apiKey: T,
2316
- variationId: y !== k ? y : void 0
2315
+ variationId: y !== C ? y : void 0
2317
2316
  });
2318
2317
  }
2319
2318
  _e() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2320
2319
  }
2321
2320
  }, []), W(() => {
2322
- e.apiKey || M.error(
2321
+ e.apiKey || U.error(
2323
2322
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2324
- ), u(), C(), w();
2323
+ ), u(), I(), p();
2325
2324
  }, []), W(() => {
2326
2325
  e.content && a(e.content);
2327
2326
  }, [e.content]), W(() => {
@@ -2331,35 +2330,35 @@ function Yt(e) {
2331
2330
  (F = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : F.jsCode,
2332
2331
  e.builderContextSignal.rootState
2333
2332
  ]), W(() => {
2334
- C();
2335
- }, [(ae = (z = e.builderContextSignal.content) == null ? void 0 : z.data) == null ? void 0 : ae.httpRequests]), W(() => {
2336
- w();
2333
+ I();
2334
+ }, [(oe = (q = e.builderContextSignal.content) == null ? void 0 : q.data) == null ? void 0 : oe.httpRequests]), W(() => {
2335
+ p();
2337
2336
  }, [e.builderContextSignal.rootState]), W(() => () => {
2338
2337
  $() && (window.removeEventListener("message", d), window.removeEventListener(
2339
2338
  "builder:component:stateChangeListenerActivated",
2340
- w
2339
+ p
2341
2340
  ));
2342
- }, []), /* @__PURE__ */ r(te.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ we(
2343
- s,
2341
+ }, []), /* @__PURE__ */ l(ne.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ we(
2342
+ c,
2344
2343
  {
2345
2344
  key: n,
2346
2345
  ref: t,
2347
- onClick: (m) => v(m),
2348
- "builder-content-id": (oe = e.builderContextSignal.content) == null ? void 0 : oe.id,
2346
+ onClick: (m) => k(m),
2347
+ "builder-content-id": (re = e.builderContextSignal.content) == null ? void 0 : re.id,
2349
2348
  "builder-model": e.model,
2350
2349
  ...e.showContent ? {} : {
2351
2350
  hidden: !0,
2352
2351
  "aria-hidden": !0
2353
2352
  },
2354
2353
  ...e.contentWrapperProps,
2355
- className: `variant-${((re = e.content) == null ? void 0 : re.testVariationId) || ((le = e.content) == null ? void 0 : le.id)}`
2354
+ className: `variant-${((le = e.content) == null ? void 0 : le.testVariationId) || ((ce = e.content) == null ? void 0 : ce.id)}`
2356
2355
  },
2357
2356
  e.children
2358
2357
  ) }) : null });
2359
2358
  }
2360
2359
  const Qt = (e) => {
2361
- var o;
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);
2360
+ var o, r;
2361
+ 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;
2363
2362
  let a = "";
2364
2363
  if (i && t && n && (a += `
2365
2364
  @font-face {
@@ -2369,16 +2368,16 @@ font-display: fallback;
2369
2368
  font-weight: 400;
2370
2369
  }
2371
2370
  `.trim()), e.files)
2372
- for (const l in e.files) {
2373
- if (!(String(Number(l)) === l))
2371
+ for (const c in e.files) {
2372
+ if (!(String(Number(c)) === c))
2374
2373
  continue;
2375
- const c = e.files[l];
2376
- c && c !== i && (a += `
2374
+ const d = e.files[c];
2375
+ d && d !== i && (a += `
2377
2376
  @font-face {
2378
2377
  font-family: "${t}";
2379
- src: url('${c}') format('woff2');
2378
+ src: url('${d}') format('woff2');
2380
2379
  font-display: fallback;
2381
- font-weight: ${l};
2380
+ font-weight: ${c};
2382
2381
  }
2383
2382
  `.trim());
2384
2383
  }
@@ -2417,17 +2416,17 @@ ${Gt({
2417
2416
  }
2418
2417
  `.trim()
2419
2418
  );
2420
- return /* @__PURE__ */ r(K, { styles: t });
2419
+ return /* @__PURE__ */ l(H, { styles: t });
2421
2420
  }
2422
2421
  const Zt = ({
2423
2422
  content: e,
2424
2423
  data: t,
2425
2424
  locale: n
2426
2425
  }) => {
2427
- var o, l, s;
2426
+ var o, r, c;
2428
2427
  const i = {}, a = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
2429
- return (s = (l = e == null ? void 0 : e.data) == null ? void 0 : l.inputs) == null || s.forEach((c) => {
2430
- c.name && c.defaultValue !== void 0 && (i[c.name] = c.defaultValue);
2428
+ return (c = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || c.forEach((s) => {
2429
+ s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
2431
2430
  }), {
2432
2431
  ...i,
2433
2432
  ...a,
@@ -2448,22 +2447,22 @@ const Zt = ({
2448
2447
  meta: e == null ? void 0 : e.meta
2449
2448
  } : void 0;
2450
2449
  function ke(e) {
2451
- var c, d, u, g, p, P, x;
2450
+ var s, d, u, g, v, P, x;
2452
2451
  const [t, n] = S(
2453
2452
  () => {
2454
- var v, I;
2453
+ var k, w;
2455
2454
  return Ut({
2456
2455
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2457
- variationId: (v = e.content) == null ? void 0 : v.testVariationId,
2456
+ variationId: (k = e.content) == null ? void 0 : k.testVariationId,
2458
2457
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2459
- contentId: (I = e.content) == null ? void 0 : I.id
2458
+ contentId: (w = e.content) == null ? void 0 : w.id
2460
2459
  });
2461
2460
  }
2462
2461
  );
2463
- function i(v) {
2464
- s((I) => ({
2465
- ...I,
2466
- rootState: v
2462
+ function i(k) {
2463
+ c((w) => ({
2464
+ ...w,
2465
+ rootState: k
2467
2466
  }));
2468
2467
  }
2469
2468
  const [a, o] = S(
@@ -2477,16 +2476,16 @@ function ke(e) {
2477
2476
  ...ue,
2478
2477
  ...e.customComponents || []
2479
2478
  ].reduce(
2480
- (v, { component: I, ...E }) => ({
2481
- ...v,
2479
+ (k, { component: w, ...E }) => ({
2480
+ ...k,
2482
2481
  [E.name]: {
2483
- component: I,
2482
+ component: w,
2484
2483
  ...me(E)
2485
2484
  }
2486
2485
  }),
2487
2486
  {}
2488
2487
  )
2489
- ), [l, s] = S(() => ({
2488
+ ), [r, c] = S(() => ({
2490
2489
  content: en({
2491
2490
  content: e.content,
2492
2491
  data: e.data
@@ -2511,8 +2510,8 @@ function ke(e) {
2511
2510
  ...ue,
2512
2511
  ...e.customComponents || []
2513
2512
  ].reduce(
2514
- (v, { component: I, ...E }) => ({
2515
- ...v,
2513
+ (k, { component: w, ...E }) => ({
2514
+ ...k,
2516
2515
  [E.name]: me(E)
2517
2516
  }),
2518
2517
  {}
@@ -2521,7 +2520,7 @@ function ke(e) {
2521
2520
  BlocksWrapper: e.blocksWrapper || "div",
2522
2521
  BlocksWrapperProps: e.blocksWrapperProps || {}
2523
2522
  }));
2524
- return /* @__PURE__ */ r(
2523
+ return /* @__PURE__ */ l(
2525
2524
  Te.Provider,
2526
2525
  {
2527
2526
  value: {
@@ -2539,25 +2538,25 @@ function ke(e) {
2539
2538
  includeRefs: e.includeRefs,
2540
2539
  enrich: e.enrich,
2541
2540
  showContent: e.showContent,
2542
- builderContextSignal: l,
2541
+ builderContextSignal: r,
2543
2542
  contentWrapper: e.contentWrapper,
2544
2543
  contentWrapperProps: e.contentWrapperProps,
2545
- setBuilderContextSignal: s,
2544
+ setBuilderContextSignal: c,
2546
2545
  children: [
2547
- e.isSsrAbTest ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(X, { scriptStr: t }) }) : null,
2548
- /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
2546
+ e.isSsrAbTest ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(Z, { scriptStr: t }) }) : null,
2547
+ /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
2549
2548
  Xt,
2550
2549
  {
2551
- contentId: (c = l.content) == null ? void 0 : c.id,
2552
- cssCode: (u = (d = l.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
2553
- customFonts: (p = (g = l.content) == null ? void 0 : g.data) == null ? void 0 : p.customFonts
2550
+ contentId: (s = r.content) == null ? void 0 : s.id,
2551
+ cssCode: (u = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
2552
+ customFonts: (v = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : v.customFonts
2554
2553
  }
2555
2554
  ) }),
2556
- /* @__PURE__ */ r(
2557
- ie,
2555
+ /* @__PURE__ */ l(
2556
+ ae,
2558
2557
  {
2559
- blocks: (x = (P = l.content) == null ? void 0 : P.data) == null ? void 0 : x.blocks,
2560
- context: l,
2558
+ blocks: (x = (P = r.content) == null ? void 0 : P.data) == null ? void 0 : x.blocks,
2559
+ context: r,
2561
2560
  registeredComponents: a
2562
2561
  }
2563
2562
  )
@@ -2568,52 +2567,52 @@ function ke(e) {
2568
2567
  );
2569
2568
  }
2570
2569
  function Ae(e) {
2571
- var l, s;
2570
+ var r, c;
2572
2571
  const [t, n] = S(
2573
2572
  () => _t({
2574
- canTrack: U(e.canTrack),
2573
+ canTrack: D(e.canTrack),
2575
2574
  content: e.content
2576
2575
  })
2577
2576
  );
2578
2577
  function i() {
2579
- var c;
2578
+ var s;
2580
2579
  return Mt(
2581
- j(e.content).map((d) => ({
2580
+ M(e.content).map((d) => ({
2582
2581
  id: d.testVariationId,
2583
2582
  testRatio: d.testRatio
2584
2583
  })),
2585
- ((c = e.content) == null ? void 0 : c.id) || ""
2584
+ ((s = e.content) == null ? void 0 : s.id) || ""
2586
2585
  );
2587
2586
  }
2588
2587
  function a() {
2589
- return j(e.content).map((c) => `.variant-${c.testVariationId} { display: none; } `).join("");
2588
+ return M(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
2590
2589
  }
2591
2590
  function o() {
2592
- var c;
2591
+ var s;
2593
2592
  return t ? {
2594
2593
  ...e.content,
2595
- testVariationId: (c = e.content) == null ? void 0 : c.id
2594
+ testVariationId: (s = e.content) == null ? void 0 : s.id
2596
2595
  } : Me({
2597
2596
  item: e.content,
2598
- canTrack: U(e.canTrack)
2597
+ canTrack: D(e.canTrack)
2599
2598
  });
2600
2599
  }
2601
2600
  return W(() => {
2602
2601
  }, []), /* @__PURE__ */ R(f, { children: [
2603
- !e.__isNestedRender && L !== "reactNative" ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(X, { scriptStr: jt() }) }) : null,
2602
+ !e.__isNestedRender && L !== "reactNative" ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(Z, { scriptStr: jt() }) }) : null,
2604
2603
  t ? /* @__PURE__ */ R(f, { children: [
2605
- /* @__PURE__ */ r(
2606
- K,
2604
+ /* @__PURE__ */ l(
2605
+ H,
2607
2606
  {
2608
- id: `variants-styles-${(l = e.content) == null ? void 0 : l.id}`,
2607
+ id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
2609
2608
  styles: a()
2610
2609
  }
2611
2610
  ),
2612
- /* @__PURE__ */ r(X, { scriptStr: i() }),
2613
- (s = j(e.content)) == null ? void 0 : s.map((c) => /* @__PURE__ */ r(
2611
+ /* @__PURE__ */ l(Z, { scriptStr: i() }),
2612
+ (c = M(e.content)) == null ? void 0 : c.map((s) => /* @__PURE__ */ l(
2614
2613
  ke,
2615
2614
  {
2616
- content: c,
2615
+ content: s,
2617
2616
  showContent: !1,
2618
2617
  model: e.model,
2619
2618
  data: e.data,
@@ -2631,10 +2630,10 @@ function Ae(e) {
2631
2630
  contentWrapper: e.contentWrapper,
2632
2631
  contentWrapperProps: e.contentWrapperProps
2633
2632
  },
2634
- c.testVariationId
2633
+ s.testVariationId
2635
2634
  ))
2636
2635
  ] }) : null,
2637
- /* @__PURE__ */ r(
2636
+ /* @__PURE__ */ l(
2638
2637
  ke,
2639
2638
  {
2640
2639
  content: o(),
@@ -2674,36 +2673,36 @@ const tn = async ({
2674
2673
  }
2675
2674
  }
2676
2675
  }).catch((n) => {
2677
- M.error("Could not fetch symbol content: ", n);
2676
+ U.error("Could not fetch symbol content: ", n);
2678
2677
  });
2679
2678
  };
2680
2679
  function nn(e) {
2681
- var o, l, s;
2680
+ var o, r, c;
2682
2681
  function t() {
2683
- var c, d;
2682
+ var s, d;
2684
2683
  return [
2685
2684
  e.attributes.className,
2686
2685
  "builder-symbol",
2687
- (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
2686
+ (s = e.symbol) != null && s.inline ? "builder-inline-symbol" : void 0,
2688
2687
  (d = e.symbol) != null && d.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2689
2688
  ].filter(Boolean).join(" ");
2690
2689
  }
2691
2690
  const [n, i] = S(() => {
2692
- var c;
2693
- return (c = e.symbol) == null ? void 0 : c.content;
2691
+ var s;
2692
+ return (s = e.symbol) == null ? void 0 : s.content;
2694
2693
  });
2695
2694
  function a() {
2696
2695
  n || tn({
2697
2696
  symbol: e.symbol,
2698
2697
  builderContextValue: e.builderContext
2699
- }).then((c) => {
2700
- c && i(c);
2698
+ }).then((s) => {
2699
+ s && i(s);
2701
2700
  });
2702
2701
  }
2703
2702
  return W(() => {
2704
2703
  }, []), W(() => {
2705
2704
  a();
2706
- }, [e.symbol]), /* @__PURE__ */ r("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ r(
2705
+ }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
2707
2706
  Ae,
2708
2707
  {
2709
2708
  __isNestedRender: !0,
@@ -2714,16 +2713,16 @@ function nn(e) {
2714
2713
  data: {
2715
2714
  ...(o = e.symbol) == null ? void 0 : o.data,
2716
2715
  ...e.builderContext.localState,
2717
- ...(l = n == null ? void 0 : n.data) == null ? void 0 : l.state
2716
+ ...(r = n == null ? void 0 : n.data) == null ? void 0 : r.state
2718
2717
  },
2719
- model: (s = e.symbol) == null ? void 0 : s.model,
2718
+ model: (c = e.symbol) == null ? void 0 : c.model,
2720
2719
  content: n
2721
2720
  }
2722
2721
  ) });
2723
2722
  }
2724
- const ln = ie, cn = Ae;
2723
+ const ln = ae, cn = Ae;
2725
2724
  export {
2726
- ie as Blocks,
2725
+ ae as Blocks,
2727
2726
  Ue as Button,
2728
2727
  ut as Columns,
2729
2728
  Ae as Content,