@builder.io/sdk-react 0.9.0 → 0.10.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,7 +14,7 @@ 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,
@@ -23,12 +23,12 @@ function Ue(e) {
23
23
  children: e.text
24
24
  }
25
25
  ) }),
26
- /* @__PURE__ */ r("style", { children: `.button-5294b10c {
26
+ /* @__PURE__ */ l("style", { children: `.button-5294b10c {
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,25 @@ 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
377
  case "vue2":
377
378
  case "vue3":
378
- o = o.replace("v-on:", "");
379
+ r = r.replace("v-on:", "");
379
380
  break;
380
381
  case "svelte":
381
- o = o.replace("on:", "");
382
+ r = r.replace("on:", "");
382
383
  break;
383
384
  }
384
- t[o] = it(a, e);
385
+ t[r] = it(o, e);
385
386
  }
386
387
  return t;
387
388
  }
@@ -393,7 +394,7 @@ function at({
393
394
  const ot = (e) => ({
394
395
  href: e.href
395
396
  });
396
- function O({
397
+ function K({
397
398
  block: e,
398
399
  context: t
399
400
  }) {
@@ -428,14 +429,14 @@ function rt(e) {
428
429
  function ge(e) {
429
430
  return /* @__PURE__ */ R(f, { children: [
430
431
  " ",
431
- e.hasChildren ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ R(
432
+ e.hasChildren ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ R(
432
433
  e.Wrapper,
433
434
  {
434
- ...O({
435
+ ...K({
435
436
  block: e.block,
436
437
  context: e.context
437
438
  }),
438
- ...J({
439
+ ...X({
439
440
  block: e.block,
440
441
  rootState: e.context.rootState,
441
442
  rootSetState: e.context.rootSetState,
@@ -449,14 +450,14 @@ function ge(e) {
449
450
  " "
450
451
  ]
451
452
  }
452
- ) }) : /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
453
+ ) }) : /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
453
454
  e.Wrapper,
454
455
  {
455
- ...O({
456
+ ...K({
456
457
  block: e.block,
457
458
  context: e.context
458
459
  }),
459
- ...J({
460
+ ...X({
460
461
  block: e.block,
461
462
  rootState: e.context.rootState,
462
463
  rootSetState: e.context.rootSetState,
@@ -470,16 +471,16 @@ function ge(e) {
470
471
  ] });
471
472
  }
472
473
  function lt(e) {
473
- return /* @__PURE__ */ r(
474
+ return /* @__PURE__ */ l(
474
475
  e.Wrapper,
475
476
  {
476
477
  ...e.wrapperProps,
477
478
  attributes: {
478
- ...O({
479
+ ...K({
479
480
  block: e.block,
480
481
  context: e.context
481
482
  }),
482
- ...J({
483
+ ...X({
483
484
  block: e.block,
484
485
  rootState: e.context.rootState,
485
486
  rootSetState: e.context.rootSetState,
@@ -498,7 +499,7 @@ const ct = ({
498
499
  componentRef: i,
499
500
  includeBlockProps: a,
500
501
  isInteractive: o,
501
- contextValue: l
502
+ contextValue: r
502
503
  }) => o ? {
503
504
  Wrapper: i,
504
505
  block: t,
@@ -511,9 +512,9 @@ const ct = ({
511
512
  * component itself directly. Otherwise, they are provided to the wrapper element.
512
513
  */
513
514
  ...a ? {
514
- attributes: O({
515
+ attributes: K({
515
516
  block: t,
516
- context: l
517
+ context: r
517
518
  })
518
519
  } : {}
519
520
  };
@@ -522,7 +523,7 @@ function be(e) {
522
523
  const [t, n] = S(
523
524
  () => e.isInteractive ? lt : e.componentRef
524
525
  );
525
- return /* @__PURE__ */ r(f, { children: e.componentRef ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ R(
526
+ return /* @__PURE__ */ l(f, { children: e.componentRef ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ R(
526
527
  t,
527
528
  {
528
529
  ...ct({
@@ -535,8 +536,8 @@ function be(e) {
535
536
  contextValue: e.context
536
537
  }),
537
538
  children: [
538
- (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ r(
539
- H,
539
+ (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
540
+ z,
540
541
  {
541
542
  block: o,
542
543
  context: e.context,
@@ -544,8 +545,8 @@ function be(e) {
544
545
  },
545
546
  "block-" + o.id
546
547
  )),
547
- (a = e.blockChildren) == null ? void 0 : a.map((o) => /* @__PURE__ */ r(
548
- ne,
548
+ (a = e.blockChildren) == null ? void 0 : a.map((o) => /* @__PURE__ */ l(
549
+ ie,
549
550
  {
550
551
  block: o,
551
552
  context: e.context
@@ -558,8 +559,8 @@ function be(e) {
558
559
  }
559
560
  function st(e) {
560
561
  const [t, n] = S(() => e.repeatContext);
561
- return /* @__PURE__ */ r(te.Provider, { value: t, children: /* @__PURE__ */ r(
562
- H,
562
+ return /* @__PURE__ */ l(ne.Provider, { value: t, children: /* @__PURE__ */ l(
563
+ z,
563
564
  {
564
565
  block: e.block,
565
566
  context: t,
@@ -567,8 +568,8 @@ function st(e) {
567
568
  }
568
569
  ) });
569
570
  }
570
- function H(e) {
571
- var u, g, p, P;
571
+ function z(e) {
572
+ var u, g, v, P;
572
573
  function t() {
573
574
  return Je({
574
575
  block: e.block,
@@ -584,7 +585,7 @@ function H(e) {
584
585
  }
585
586
  function i() {
586
587
  var x;
587
- return (x = e.block.repeat) != null && x.collection ? e.block : D({
588
+ return (x = e.block.repeat) != null && x.collection ? e.block : O({
588
589
  block: e.block,
589
590
  localState: e.context.localState,
590
591
  rootState: e.context.rootState,
@@ -597,50 +598,50 @@ function H(e) {
597
598
  return e.block.tagName || "div";
598
599
  }
599
600
  function o() {
600
- var I, E;
601
- if ((I = e.block.repeat) != null && I.collection)
601
+ var w, E;
602
+ if ((w = e.block.repeat) != null && w.collection)
602
603
  return !!((E = n == null ? void 0 : n()) != null && E.length);
603
604
  const x = "hide" in i() ? i().hide : !1;
604
605
  return ("show" in i() ? i().show : !0) && !x;
605
606
  }
606
- function l() {
607
- var v;
608
- return !((v = t == null ? void 0 : t()) != null && v.component) && !n() ? i().children ?? [] : [];
607
+ function r() {
608
+ var k, w;
609
+ return !((k = t == null ? void 0 : t()) != null && k.component) && !n() ? (w = i().children) != null ? w : [] : [];
609
610
  }
610
- function s() {
611
- var x, v, I, E, C;
611
+ function c() {
612
+ var x, k, w, E, I, p;
612
613
  return {
613
- blockChildren: i().children ?? [],
614
- componentRef: (x = t == null ? void 0 : t()) == null ? void 0 : x.component,
614
+ blockChildren: (x = i().children) != null ? x : [],
615
+ componentRef: (k = t == null ? void 0 : t()) == null ? void 0 : k.component,
615
616
  componentOptions: {
616
617
  ...De(i()),
617
618
  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" ? {
619
+ ...((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
620
  builderComponents: e.registeredComponents
620
621
  } : {}
621
622
  },
622
- context: c,
623
+ context: s,
623
624
  registeredComponents: e.registeredComponents,
624
625
  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)
626
+ includeBlockProps: ((I = t == null ? void 0 : t()) == null ? void 0 : I.noWrap) === !0,
627
+ isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
627
628
  };
628
629
  }
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(
630
+ const [s, d] = S(() => e.context);
631
+ 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
632
  be,
632
633
  {
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
634
+ componentRef: c().componentRef,
635
+ componentOptions: c().componentOptions,
636
+ blockChildren: c().blockChildren,
637
+ context: c().context,
638
+ registeredComponents: c().registeredComponents,
639
+ builderBlock: c().builderBlock,
640
+ includeBlockProps: c().includeBlockProps,
641
+ isInteractive: c().isInteractive
641
642
  }
642
643
  ) }) : /* @__PURE__ */ R(f, { children: [
643
- q(a()) ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
644
+ Y(a()) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
644
645
  ge,
645
646
  {
646
647
  Wrapper: a(),
@@ -649,16 +650,16 @@ function H(e) {
649
650
  hasChildren: !1
650
651
  }
651
652
  ) }) : null,
652
- !q(a()) && n() ? /* @__PURE__ */ r(f, { children: (g = n()) == null ? void 0 : g.map((x, v) => /* @__PURE__ */ r(
653
+ !Y(a()) && n() ? /* @__PURE__ */ l(f, { children: (g = n()) == null ? void 0 : g.map((x, k) => /* @__PURE__ */ l(
653
654
  st,
654
655
  {
655
656
  repeatContext: x.context,
656
657
  block: x.block,
657
658
  registeredComponents: e.registeredComponents
658
659
  },
659
- v
660
+ k
660
661
  )) }) : null,
661
- !q(a()) && !n() ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ R(
662
+ !Y(a()) && !n() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ R(
662
663
  ge,
663
664
  {
664
665
  Wrapper: a(),
@@ -666,33 +667,33 @@ function H(e) {
666
667
  context: e.context,
667
668
  hasChildren: !0,
668
669
  children: [
669
- /* @__PURE__ */ r(
670
+ /* @__PURE__ */ l(
670
671
  be,
671
672
  {
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
673
+ componentRef: c().componentRef,
674
+ componentOptions: c().componentOptions,
675
+ blockChildren: c().blockChildren,
676
+ context: c().context,
677
+ registeredComponents: c().registeredComponents,
678
+ builderBlock: c().builderBlock,
679
+ includeBlockProps: c().includeBlockProps,
680
+ isInteractive: c().isInteractive
680
681
  }
681
682
  ),
682
- (p = l()) == null ? void 0 : p.map((x) => /* @__PURE__ */ r(
683
- H,
683
+ (v = r()) == null ? void 0 : v.map((x) => /* @__PURE__ */ l(
684
+ z,
684
685
  {
685
686
  block: x,
686
- context: c,
687
+ context: s,
687
688
  registeredComponents: e.registeredComponents
688
689
  },
689
690
  "block-" + x.id
690
691
  )),
691
- (P = l()) == null ? void 0 : P.map((x) => /* @__PURE__ */ r(
692
- ne,
692
+ (P = r()) == null ? void 0 : P.map((x) => /* @__PURE__ */ l(
693
+ ie,
693
694
  {
694
695
  block: x,
695
- context: c
696
+ context: s
696
697
  },
697
698
  "block-style-" + x.id
698
699
  ))
@@ -733,7 +734,7 @@ function dt(e) {
733
734
  ));
734
735
  }
735
736
  return /* @__PURE__ */ R(f, { children: [
736
- /* @__PURE__ */ r(
737
+ /* @__PURE__ */ l(
737
738
  e.BlocksWrapper,
738
739
  {
739
740
  className: t() + " props-blocks-wrapper-4f2c12d8",
@@ -747,16 +748,16 @@ function dt(e) {
747
748
  children: e.children
748
749
  }
749
750
  ),
750
- /* @__PURE__ */ r("style", { children: `.props-blocks-wrapper-4f2c12d8 {
751
+ /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-4f2c12d8 {
751
752
  display: flex;
752
753
  flex-direction: column;
753
754
  align-items: stretch;
754
755
  }` })
755
756
  ] });
756
757
  }
757
- function ie(e) {
758
- var i, a, o, l;
759
- const t = se(te), n = se(Te);
758
+ function ae(e) {
759
+ var i, a, o, r;
760
+ const t = se(ne), n = se(Te);
760
761
  return /* @__PURE__ */ R(
761
762
  dt,
762
763
  {
@@ -767,22 +768,22 @@ function ie(e) {
767
768
  BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
768
769
  BlocksWrapperProps: (a = e.context) == null ? void 0 : a.BlocksWrapperProps,
769
770
  children: [
770
- e.blocks ? /* @__PURE__ */ r(f, { children: (o = e.blocks) == null ? void 0 : o.map((s) => /* @__PURE__ */ r(
771
- H,
771
+ e.blocks ? /* @__PURE__ */ l(f, { children: (o = e.blocks) == null ? void 0 : o.map((c) => /* @__PURE__ */ l(
772
+ z,
772
773
  {
773
- block: s,
774
+ block: c,
774
775
  context: e.context || t,
775
776
  registeredComponents: e.registeredComponents || n.registeredComponents
776
777
  },
777
- "render-block-" + s.id
778
+ "render-block-" + c.id
778
779
  )) }) : null,
779
- e.blocks ? /* @__PURE__ */ r(f, { children: (l = e.blocks) == null ? void 0 : l.map((s) => /* @__PURE__ */ r(
780
- ne,
780
+ e.blocks ? /* @__PURE__ */ l(f, { children: (r = e.blocks) == null ? void 0 : r.map((c) => /* @__PURE__ */ l(
781
+ ie,
781
782
  {
782
- block: s,
783
+ block: c,
783
784
  context: e.context || t
784
785
  },
785
- "block-style-" + s.id
786
+ "block-style-" + c.id
786
787
  )) }) : null
787
788
  ]
788
789
  }
@@ -792,30 +793,30 @@ function ut(e) {
792
793
  var E;
793
794
  const [t, n] = S(
794
795
  () => typeof e.space == "number" ? e.space || 0 : 20
795
- ), [i, a] = S(() => e.columns || []), [o, l] = S(
796
+ ), [i, a] = S(() => e.columns || []), [o, r] = S(
796
797
  () => e.stackColumnsAt || "tablet"
797
798
  );
798
- function s(C) {
799
- var w;
800
- return ((w = i[C]) == null ? void 0 : w.width) || 100 / i.length;
799
+ function c(I) {
800
+ var p;
801
+ return ((p = i[I]) == null ? void 0 : p.width) || 100 / i.length;
801
802
  }
802
- function c(C) {
803
- const w = t * (i.length - 1) / i.length;
804
- return `calc(${s(C)}% - ${w}px)`;
803
+ function s(I) {
804
+ const p = t * (i.length - 1) / i.length;
805
+ return `calc(${c(I)}% - ${p}px)`;
805
806
  }
806
807
  function d({
807
- stackedStyle: C,
808
- desktopStyle: w
808
+ stackedStyle: I,
809
+ desktopStyle: p
809
810
  }) {
810
- return o === "tablet" ? C : w;
811
+ return o === "tablet" ? I : p;
811
812
  }
812
813
  function u({
813
- stackedStyle: C,
814
- desktopStyle: w
814
+ stackedStyle: I,
815
+ desktopStyle: p
815
816
  }) {
816
- return o === "never" ? w : C;
817
+ return o === "never" ? p : I;
817
818
  }
818
- const [g, p] = S(
819
+ const [g, v] = S(
819
820
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
820
821
  );
821
822
  function P() {
@@ -827,8 +828,8 @@ function ut(e) {
827
828
  })
828
829
  };
829
830
  }
830
- function x(C) {
831
- const w = C === 0 ? 0 : t, B = c(C), V = `${w}px`, N = "100%", F = 0;
831
+ function x(I) {
832
+ const p = I === 0 ? 0 : t, B = s(I), V = `${p}px`, N = "100%", F = 0;
832
833
  return {
833
834
  width: B,
834
835
  ["marginLeft"]: V,
@@ -850,15 +851,15 @@ function ut(e) {
850
851
  })
851
852
  };
852
853
  }
853
- function v(C) {
854
+ function k(I) {
854
855
  var B, V;
855
856
  return Ee(
856
857
  ((V = (B = e.builderContext.content) == null ? void 0 : B.meta) == null ? void 0 : V.breakpoints) || {}
857
- )[C].max;
858
+ )[I].max;
858
859
  }
859
- function I() {
860
+ function w() {
860
861
  return `
861
- @media (max-width: ${v("medium")}px) {
862
+ @media (max-width: ${k("medium")}px) {
862
863
  .${e.builderBlock.id}-breakpoints {
863
864
  flex-direction: var(--flex-dir-tablet);
864
865
  align-items: stretch;
@@ -870,7 +871,7 @@ function ut(e) {
870
871
  }
871
872
  }
872
873
 
873
- @media (max-width: ${v("small")}px) {
874
+ @media (max-width: ${k("small")}px) {
874
875
  .${e.builderBlock.id}-breakpoints {
875
876
  flex-direction: var(--flex-dir);
876
877
  align-items: stretch;
@@ -890,32 +891,32 @@ function ut(e) {
890
891
  className: `builder-columns ${e.builderBlock.id}-breakpoints div-53636e90`,
891
892
  style: P(),
892
893
  children: [
893
- /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(K, { styles: I() }) }),
894
- (E = e.columns) == null ? void 0 : E.map((C, w) => /* @__PURE__ */ we(
894
+ /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(H, { styles: w() }) }),
895
+ (E = e.columns) == null ? void 0 : E.map((I, p) => /* @__PURE__ */ we(
895
896
  "div",
896
897
  {
897
898
  className: "builder-column div-53636e90-2",
898
- style: x(w),
899
- key: w
899
+ style: x(p),
900
+ key: p
900
901
  },
901
- /* @__PURE__ */ r(
902
- ie,
902
+ /* @__PURE__ */ l(
903
+ ae,
903
904
  {
904
- path: `component.options.columns.${w}.blocks`,
905
+ path: `component.options.columns.${p}.blocks`,
905
906
  parent: e.builderBlock.id,
906
907
  styleProp: {
907
908
  flexGrow: "1"
908
909
  },
909
910
  context: e.builderContext,
910
911
  registeredComponents: e.builderComponents,
911
- blocks: C.blocks
912
+ blocks: I.blocks
912
913
  }
913
914
  )
914
915
  ))
915
916
  ]
916
917
  }
917
918
  ),
918
- /* @__PURE__ */ r("style", { children: `.div-53636e90 {
919
+ /* @__PURE__ */ l("style", { children: `.div-53636e90 {
919
920
  display: flex;
920
921
  line-height: normal;
921
922
  }.div-53636e90-2 {
@@ -926,7 +927,7 @@ function ut(e) {
926
927
  ] });
927
928
  }
928
929
  function mt(e) {
929
- return /* @__PURE__ */ r("span", { children: e.children });
930
+ return /* @__PURE__ */ l("span", { children: e.children });
930
931
  }
931
932
  function xe(e) {
932
933
  return e.replace(/http(s)?:/, "");
@@ -947,7 +948,7 @@ function ht(e, t) {
947
948
  }
948
949
  return null;
949
950
  }
950
- function Q(e) {
951
+ function G(e) {
951
952
  if (!e)
952
953
  return e;
953
954
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
@@ -959,7 +960,7 @@ function Q(e) {
959
960
  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
961
  }
961
962
  function gt(e) {
962
- var a, o, l, s;
963
+ var a, o, r, c;
963
964
  function t() {
964
965
  var u;
965
966
  const d = e.image || e.src;
@@ -969,30 +970,30 @@ function gt(e) {
969
970
  return e.srcset;
970
971
  if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
971
972
  if (!e.srcset.includes(e.image.split("?")[0]))
972
- return console.debug("Removed given srcset"), Q(d);
973
+ return console.debug("Removed given srcset"), G(d);
973
974
  } else if (e.image && !e.srcset)
974
- return Q(d);
975
- return Q(d);
975
+ return G(d);
976
+ return G(d);
976
977
  }
977
978
  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&") : "";
979
+ var s;
980
+ return (s = t == null ? void 0 : t()) != null && s.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
980
981
  }
981
982
  function i() {
982
- const c = {
983
+ const s = {
983
984
  position: "absolute",
984
985
  height: "100%",
985
986
  width: "100%",
986
987
  left: "0px",
987
988
  top: "0px"
988
989
  };
989
- return e.aspectRatio ? c : void 0;
990
+ return e.aspectRatio ? s : void 0;
990
991
  }
991
992
  return /* @__PURE__ */ R(f, { children: [
992
993
  /* @__PURE__ */ R(f, { children: [
993
994
  /* @__PURE__ */ R("picture", { children: [
994
- n() ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r("source", { type: "image/webp", srcSet: n() }) }) : null,
995
- /* @__PURE__ */ r(
995
+ n() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) }) : null,
996
+ /* @__PURE__ */ l(
996
997
  "img",
997
998
  {
998
999
  loading: "lazy",
@@ -1010,7 +1011,7 @@ function gt(e) {
1010
1011
  }
1011
1012
  )
1012
1013
  ] }),
1013
- e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
1014
+ e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
1014
1015
  "div",
1015
1016
  {
1016
1017
  className: "builder-image-sizer div-dbab4030",
@@ -1019,10 +1020,10 @@ function gt(e) {
1019
1020
  }
1020
1021
  }
1021
1022
  ) }) : 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
1023
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(f, { children: e.children }) : null,
1024
+ !e.fitContent && e.children ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l("div", { className: "div-dbab4030-2", children: e.children }) }) : null
1024
1025
  ] }),
1025
- /* @__PURE__ */ r("style", { children: `.img-dbab4030 {
1026
+ /* @__PURE__ */ l("style", { children: `.img-dbab4030 {
1026
1027
  opacity: 1;
1027
1028
  transition: opacity 0.2s ease-in-out;
1028
1029
  }.div-dbab4030 {
@@ -1042,7 +1043,7 @@ function gt(e) {
1042
1043
  ] });
1043
1044
  }
1044
1045
  function bt(e) {
1045
- return /* @__PURE__ */ r(
1046
+ return /* @__PURE__ */ l(
1046
1047
  "section",
1047
1048
  {
1048
1049
  ...e.attributes,
@@ -1274,7 +1275,7 @@ const xt = {
1274
1275
  });
1275
1276
  }
1276
1277
  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();
1278
+ 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
1279
  }
1279
1280
  }, {
1280
1281
  name: "space",
@@ -1320,14 +1321,14 @@ const xt = {
1320
1321
  }]
1321
1322
  };
1322
1323
  function pt(e) {
1323
- const t = Z(null), [n, i] = S(() => []), [a, o] = S(() => []);
1324
+ const t = ee(null), [n, i] = S(() => []), [a, o] = S(() => []);
1324
1325
  return W(() => {
1325
- var s;
1326
- if (!((s = t.current) != null && s.getElementsByTagName) || typeof window > "u")
1326
+ var c;
1327
+ if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
1327
1328
  return;
1328
- const l = t.current.getElementsByTagName("script");
1329
- for (let c = 0; c < l.length; c++) {
1330
- const d = l[c];
1329
+ const r = t.current.getElementsByTagName("script");
1330
+ for (let s = 0; s < r.length; s++) {
1331
+ const d = r[s];
1331
1332
  if (d.src) {
1332
1333
  if (n.includes(d.src))
1333
1334
  continue;
@@ -1348,7 +1349,7 @@ function pt(e) {
1348
1349
  }
1349
1350
  }
1350
1351
  }
1351
- }, []), /* @__PURE__ */ r(
1352
+ }, []), /* @__PURE__ */ l(
1352
1353
  "div",
1353
1354
  {
1354
1355
  ref: t,
@@ -1384,8 +1385,8 @@ const vt = {
1384
1385
  }]
1385
1386
  }, kt = ["text/javascript", "application/javascript", "application/ecmascript"], Ct = (e) => kt.includes(e.type);
1386
1387
  function wt(e) {
1387
- const t = Z(null), [n, i] = S(() => []), [a, o] = S(() => []), [l, s] = S(() => !1);
1388
- function c() {
1388
+ const t = ee(null), [n, i] = S(() => []), [a, o] = S(() => []), [r, c] = S(() => !1);
1389
+ function s() {
1389
1390
  if (!t.current || !t.current.getElementsByTagName)
1390
1391
  return;
1391
1392
  const d = t.current.getElementsByTagName("script");
@@ -1393,19 +1394,19 @@ function wt(e) {
1393
1394
  const g = d[u];
1394
1395
  if (g.src && !n.includes(g.src)) {
1395
1396
  n.push(g.src);
1396
- const p = document.createElement("script");
1397
- p.async = !0, p.src = g.src, document.head.appendChild(p);
1397
+ const v = document.createElement("script");
1398
+ v.async = !0, v.src = g.src, document.head.appendChild(v);
1398
1399
  } else if (Ct(g) && !a.includes(g.innerText))
1399
1400
  try {
1400
1401
  a.push(g.innerText), new Function(g.innerText)();
1401
- } catch (p) {
1402
- console.warn("`Embed`: Error running script:", p);
1402
+ } catch (v) {
1403
+ console.warn("`Embed`: Error running script:", v);
1403
1404
  }
1404
1405
  }
1405
1406
  }
1406
1407
  return W(() => {
1407
- t.current && !l && (s(!0), c());
1408
- }, [t.current, l]), /* @__PURE__ */ r(
1408
+ t.current && !r && (c(!0), s());
1409
+ }, [t.current, r]), /* @__PURE__ */ l(
1409
1410
  "div",
1410
1411
  {
1411
1412
  className: "builder-embed",
@@ -1440,29 +1441,29 @@ const It = {
1440
1441
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1441
1442
  onChange: (e) => {
1442
1443
  e.delete("srcset"), e.delete("noWebp");
1443
- function n(l, s = 6e4) {
1444
- return new Promise((c, d) => {
1444
+ function n(r, c = 6e4) {
1445
+ return new Promise((s, d) => {
1445
1446
  const u = document.createElement("img");
1446
1447
  let g = !1;
1447
1448
  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(() => {
1449
+ g = !0, s(u);
1450
+ }, u.addEventListener("error", (v) => {
1451
+ console.warn("Image load failed", v.error), d(v.error);
1452
+ }), u.src = r, setTimeout(() => {
1452
1453
  g || d(new Error("Image load timed out"));
1453
- }, s);
1454
+ }, c);
1454
1455
  });
1455
1456
  }
1456
- function i(l) {
1457
- return Math.round(l * 1e3) / 1e3;
1457
+ function i(r) {
1458
+ return Math.round(r * 1e3) / 1e3;
1458
1459
  }
1459
1460
  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);
1461
+ if (fetch(a).then((r) => r.blob()).then((r) => {
1462
+ r.type.includes("svg") && e.set("noWebp", !0);
1462
1463
  }), 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));
1464
+ return n(a).then((r) => {
1465
+ const c = e.get("aspectRatio");
1466
+ 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
1467
  });
1467
1468
  }
1468
1469
  }, {
@@ -1536,7 +1537,7 @@ const It = {
1536
1537
  static: !0
1537
1538
  };
1538
1539
  function Et(e) {
1539
- return /* @__PURE__ */ r(
1540
+ return /* @__PURE__ */ l(
1540
1541
  "img",
1541
1542
  {
1542
1543
  style: {
@@ -1643,7 +1644,7 @@ const Pt = {
1643
1644
  };
1644
1645
  function Vt(e) {
1645
1646
  var t;
1646
- return /* @__PURE__ */ r(
1647
+ return /* @__PURE__ */ l(
1647
1648
  "div",
1648
1649
  {
1649
1650
  className: "builder-text",
@@ -1737,7 +1738,7 @@ const At = {
1737
1738
  }]
1738
1739
  };
1739
1740
  function $t(e) {
1740
- var i, a, o, l, s, c, d;
1741
+ var i, a, o, r, c, s, d;
1741
1742
  function t() {
1742
1743
  return {
1743
1744
  ...e.autoPlay === !0 ? {
@@ -1769,7 +1770,7 @@ function $t(e) {
1769
1770
  position: "relative"
1770
1771
  },
1771
1772
  children: [
1772
- /* @__PURE__ */ r(
1773
+ /* @__PURE__ */ l(
1773
1774
  "video",
1774
1775
  {
1775
1776
  className: "builder-video",
@@ -1791,10 +1792,10 @@ function $t(e) {
1791
1792
  },
1792
1793
  src: e.video || "no-src",
1793
1794
  poster: e.posterImage,
1794
- children: e.lazyLoad ? null : /* @__PURE__ */ r("source", { type: "video/mp4", src: e.video })
1795
+ children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
1795
1796
  }
1796
1797
  ),
1797
- e.aspectRatio && !(e.fitContent && ((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length)) ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
1798
+ e.aspectRatio && !(e.fitContent && ((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length)) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
1798
1799
  "div",
1799
1800
  {
1800
1801
  style: {
@@ -1805,7 +1806,7 @@ function $t(e) {
1805
1806
  }
1806
1807
  }
1807
1808
  ) }) : null,
1808
- (s = (l = e.builderBlock) == null ? void 0 : l.children) != null && s.length && e.fitContent ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
1809
+ (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
1809
1810
  "div",
1810
1811
  {
1811
1812
  style: {
@@ -1816,7 +1817,7 @@ function $t(e) {
1816
1817
  children: e.children
1817
1818
  }
1818
1819
  ) }) : null,
1819
- (d = (c = e.builderBlock) == null ? void 0 : c.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
1820
+ (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
1820
1821
  "div",
1821
1822
  {
1822
1823
  style: {
@@ -1960,14 +1961,14 @@ const ye = () => [{
1960
1961
  thisScriptEl?.remove();
1961
1962
  }
1962
1963
  return;
1963
- }`, We = "builderIoAbTest", Be = "builderIoRenderContent", j = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1964
+ }`, We = "builderIoAbTest", Be = "builderIoRenderContent", M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1964
1965
  ...t,
1965
1966
  testVariationId: t.id,
1966
1967
  id: e == null ? void 0 : e.id
1967
1968
  })), _t = ({
1968
1969
  canTrack: e,
1969
1970
  content: t
1970
- }) => !(!(j(t).length > 0) || !e || $()), Lt = (e) => e === "react" || e === "reactNative", Ve = Lt(L), jt = () => `
1971
+ }) => !(!(M(t).length > 0) || !e || $()), Lt = (e) => e === "react" || e === "reactNative", Ve = Lt(L), jt = () => `
1971
1972
  window.${We} = ${Nt}
1972
1973
  window.${Be} = ${Ft}
1973
1974
  `, Mt = (e, t) => `
@@ -1979,8 +1980,8 @@ const ye = () => [{
1979
1980
  }) => `window.${Be}(
1980
1981
  "${t}", "${e}", ${Ve}
1981
1982
  )`;
1982
- function X(e) {
1983
- return /* @__PURE__ */ r(
1983
+ function Z(e) {
1984
+ return /* @__PURE__ */ l(
1984
1985
  "script",
1985
1986
  {
1986
1987
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -2009,10 +2010,10 @@ const Dt = (e, t, n = !0) => {
2009
2010
  event: e,
2010
2011
  target: t
2011
2012
  }) => {
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);
2013
+ 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
2014
  return {
2014
2015
  x: o,
2015
- y: l
2016
+ y: r
2016
2017
  };
2017
2018
  }, Kt = (e) => {
2018
2019
  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 +2031,7 @@ const Dt = (e, t, n = !0) => {
2030
2031
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
2031
2032
  }
2032
2033
  };
2033
- }, Ht = "0.9.0", zt = () => {
2034
+ }, Ht = "0.10.0", zt = () => {
2034
2035
  Fe("insertMenu", {
2035
2036
  name: "_default",
2036
2037
  default: !0,
@@ -2079,33 +2080,33 @@ const qt = (e = {}) => {
2079
2080
  if (i != null && i.type)
2080
2081
  switch (i.type) {
2081
2082
  case "builder.evaluate": {
2082
- const l = i.data.text, s = i.data.arguments || [], c = i.data.id, d = new Function(l);
2083
+ const r = i.data.text, c = i.data.arguments || [], s = i.data.id, d = new Function(r);
2083
2084
  let u, g = null;
2084
2085
  try {
2085
- u = d.apply(null, s);
2086
- } catch (p) {
2087
- g = p;
2086
+ u = d.apply(null, c);
2087
+ } catch (v) {
2088
+ g = v;
2088
2089
  }
2089
2090
  g ? (a = window.parent) == null || a.postMessage({
2090
2091
  type: "builder.evaluateError",
2091
2092
  data: {
2092
- id: c,
2093
+ id: s,
2093
2094
  error: g.message
2094
2095
  }
2095
- }, "*") : u && typeof u.then == "function" ? u.then((p) => {
2096
+ }, "*") : u && typeof u.then == "function" ? u.then((v) => {
2096
2097
  var P;
2097
2098
  (P = window.parent) == null || P.postMessage({
2098
2099
  type: "builder.evaluateResult",
2099
2100
  data: {
2100
- id: c,
2101
- result: p
2101
+ id: s,
2102
+ result: v
2102
2103
  }
2103
2104
  }, "*");
2104
2105
  }).catch(console.error) : (o = window.parent) == null || o.postMessage({
2105
2106
  type: "builder.evaluateResult",
2106
2107
  data: {
2107
2108
  result: u,
2108
- id: c
2109
+ id: s
2109
2110
  }
2110
2111
  }, "*");
2111
2112
  break;
@@ -2114,10 +2115,10 @@ const qt = (e = {}) => {
2114
2115
  })));
2115
2116
  };
2116
2117
  function Yt(e) {
2117
- var N, F, z, ae, oe, re, le;
2118
- const t = Z(null), [n, i] = S(() => 0);
2118
+ var N, F, q, oe, re, le, ce;
2119
+ const t = ee(null), [n, i] = S(() => 0);
2119
2120
  function a(m) {
2120
- var b, y, k, T, ce;
2121
+ var b, y, C, T, j;
2121
2122
  const h = {
2122
2123
  ...e.builderContextSignal.content,
2123
2124
  ...m,
@@ -2128,7 +2129,7 @@ function Yt(e) {
2128
2129
  meta: {
2129
2130
  ...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
2130
2131
  ...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)
2132
+ 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
2133
  }
2133
2134
  };
2134
2135
  e.setBuilderContextSignal(($e) => ({
@@ -2137,9 +2138,9 @@ function Yt(e) {
2137
2138
  }));
2138
2139
  }
2139
2140
  S(() => 0);
2140
- const [o, l] = S(
2141
+ const [o, r] = S(
2141
2142
  () => !1
2142
- ), [s, c] = S(
2143
+ ), [c, s] = S(
2143
2144
  () => e.contentWrapper || "div"
2144
2145
  );
2145
2146
  function d(m) {
@@ -2148,19 +2149,19 @@ function Yt(e) {
2148
2149
  if (h)
2149
2150
  switch (h.type) {
2150
2151
  case "builder.configureSdk": {
2151
- const y = h.data, { breakpoints: k, contentId: T } = y;
2152
+ const y = h.data, { breakpoints: C, contentId: T } = y;
2152
2153
  if (!T || T !== ((b = e.builderContextSignal.content) == null ? void 0 : b.id))
2153
2154
  return;
2154
- k && a({
2155
+ C && a({
2155
2156
  meta: {
2156
- breakpoints: k
2157
+ breakpoints: C
2157
2158
  }
2158
2159
  }), i(n + 1);
2159
2160
  break;
2160
2161
  }
2161
2162
  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));
2163
+ const y = h.data, C = y.key || y.alias || y.entry || y.modelName, T = y.data;
2164
+ C === e.model && (a(T), i(n + 1));
2164
2165
  break;
2165
2166
  }
2166
2167
  }
@@ -2176,24 +2177,24 @@ function Yt(e) {
2176
2177
  rootSetState: e.builderContextSignal.rootSetState
2177
2178
  });
2178
2179
  }
2179
- const [g, p] = S(() => ({})), [P, x] = S(() => !1);
2180
- function v(m) {
2180
+ const [g, v] = S(() => ({})), [P, x] = S(() => !1);
2181
+ function k(m) {
2181
2182
  var h, b;
2182
2183
  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;
2184
+ const y = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, C = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
2184
2185
  de({
2185
2186
  type: "click",
2186
- canTrack: U(e.canTrack),
2187
- contentId: k,
2187
+ canTrack: D(e.canTrack),
2188
+ contentId: C,
2188
2189
  apiKey: e.apiKey,
2189
- variationId: y !== k ? y : void 0,
2190
+ variationId: y !== C ? y : void 0,
2190
2191
  ...Kt(m),
2191
2192
  unique: !P
2192
2193
  });
2193
2194
  }
2194
2195
  P || x(!0);
2195
2196
  }
2196
- function I(m) {
2197
+ function w(m) {
2197
2198
  return m.replace(
2198
2199
  /{{([^}]+)}}/g,
2199
2200
  (h, b) => _({
@@ -2207,36 +2208,36 @@ function Yt(e) {
2207
2208
  }
2208
2209
  function E({ url: m, key: h }) {
2209
2210
  je(m).then((b) => b.json()).then((b) => {
2210
- var k, T;
2211
+ var C, T;
2211
2212
  const y = {
2212
2213
  ...e.builderContextSignal.rootState,
2213
2214
  [h]: b
2214
2215
  };
2215
- (T = (k = e.builderContextSignal).rootSetState) == null || T.call(k, y), g[h] = !0;
2216
+ (T = (C = e.builderContextSignal).rootSetState) == null || T.call(C, y), g[h] = !0;
2216
2217
  }).catch((b) => {
2217
2218
  console.error("error fetching dynamic data", m, b);
2218
2219
  });
2219
2220
  }
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);
2221
+ function I() {
2222
+ var h, b, y;
2223
+ const m = (y = (b = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : b.httpRequests) != null ? y : {};
2224
+ Object.entries(m).forEach(([C, T]) => {
2225
+ if (T && (!g[C] || A())) {
2226
+ const j = w(T);
2226
2227
  E({
2227
- url: T,
2228
- key: y
2228
+ url: j,
2229
+ key: C
2229
2230
  });
2230
2231
  }
2231
2232
  });
2232
2233
  }
2233
- function w() {
2234
+ function p() {
2234
2235
  A() && window.dispatchEvent(
2235
2236
  new CustomEvent(
2236
2237
  "builder:component:stateChange",
2237
2238
  {
2238
2239
  detail: {
2239
- state: ee(e.builderContextSignal.rootState),
2240
+ state: te(e.builderContextSignal.rootState),
2240
2241
  ref: {
2241
2242
  name: e.model
2242
2243
  }
@@ -2264,14 +2265,14 @@ function Yt(e) {
2264
2265
  (y = window.parent) == null || y.postMessage(b, "*");
2265
2266
  }), window.addEventListener(
2266
2267
  "builder:component:stateChangeListenerActivated",
2267
- w
2268
+ p
2268
2269
  );
2269
2270
  }
2270
2271
  function V(m) {
2271
2272
  const h = new URL(location.href).searchParams, b = h.get("builder.preview"), y = h.get(
2272
2273
  `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({
2274
+ ), C = h.get("apiKey") || h.get("builder.space");
2275
+ b === e.model && C === e.apiKey && (!e.content || y === e.content.id) && Ie({
2275
2276
  model: e.model,
2276
2277
  apiKey: e.apiKey,
2277
2278
  apiVersion: e.builderContextSignal.apiVersion
@@ -2306,22 +2307,22 @@ function Yt(e) {
2306
2307
  }, []), W(() => {
2307
2308
  var m, h;
2308
2309
  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;
2310
+ if (A() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && D(e.canTrack)) {
2311
+ 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
2312
  de({
2312
2313
  type: "impression",
2313
2314
  canTrack: !0,
2314
- contentId: k,
2315
+ contentId: C,
2315
2316
  apiKey: T,
2316
- variationId: y !== k ? y : void 0
2317
+ variationId: y !== C ? y : void 0
2317
2318
  });
2318
2319
  }
2319
2320
  _e() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2320
2321
  }
2321
2322
  }, []), W(() => {
2322
- e.apiKey || M.error(
2323
+ e.apiKey || U.error(
2323
2324
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2324
- ), u(), C(), w();
2325
+ ), u(), I(), p();
2325
2326
  }, []), W(() => {
2326
2327
  e.content && a(e.content);
2327
2328
  }, [e.content]), W(() => {
@@ -2331,35 +2332,35 @@ function Yt(e) {
2331
2332
  (F = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : F.jsCode,
2332
2333
  e.builderContextSignal.rootState
2333
2334
  ]), W(() => {
2334
- C();
2335
- }, [(ae = (z = e.builderContextSignal.content) == null ? void 0 : z.data) == null ? void 0 : ae.httpRequests]), W(() => {
2336
- w();
2335
+ I();
2336
+ }, [(oe = (q = e.builderContextSignal.content) == null ? void 0 : q.data) == null ? void 0 : oe.httpRequests]), W(() => {
2337
+ p();
2337
2338
  }, [e.builderContextSignal.rootState]), W(() => () => {
2338
2339
  $() && (window.removeEventListener("message", d), window.removeEventListener(
2339
2340
  "builder:component:stateChangeListenerActivated",
2340
- w
2341
+ p
2341
2342
  ));
2342
- }, []), /* @__PURE__ */ r(te.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ we(
2343
- s,
2343
+ }, []), /* @__PURE__ */ l(ne.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ we(
2344
+ c,
2344
2345
  {
2345
2346
  key: n,
2346
2347
  ref: t,
2347
- onClick: (m) => v(m),
2348
- "builder-content-id": (oe = e.builderContextSignal.content) == null ? void 0 : oe.id,
2348
+ onClick: (m) => k(m),
2349
+ "builder-content-id": (re = e.builderContextSignal.content) == null ? void 0 : re.id,
2349
2350
  "builder-model": e.model,
2350
2351
  ...e.showContent ? {} : {
2351
2352
  hidden: !0,
2352
2353
  "aria-hidden": !0
2353
2354
  },
2354
2355
  ...e.contentWrapperProps,
2355
- className: `variant-${((re = e.content) == null ? void 0 : re.testVariationId) || ((le = e.content) == null ? void 0 : le.id)}`
2356
+ className: `variant-${((le = e.content) == null ? void 0 : le.testVariationId) || ((ce = e.content) == null ? void 0 : ce.id)}`
2356
2357
  },
2357
2358
  e.children
2358
2359
  ) }) : null });
2359
2360
  }
2360
2361
  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);
2362
+ var o, r;
2363
+ 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
2364
  let a = "";
2364
2365
  if (i && t && n && (a += `
2365
2366
  @font-face {
@@ -2369,16 +2370,16 @@ font-display: fallback;
2369
2370
  font-weight: 400;
2370
2371
  }
2371
2372
  `.trim()), e.files)
2372
- for (const l in e.files) {
2373
- if (!(String(Number(l)) === l))
2373
+ for (const c in e.files) {
2374
+ if (!(String(Number(c)) === c))
2374
2375
  continue;
2375
- const c = e.files[l];
2376
- c && c !== i && (a += `
2376
+ const d = e.files[c];
2377
+ d && d !== i && (a += `
2377
2378
  @font-face {
2378
2379
  font-family: "${t}";
2379
- src: url('${c}') format('woff2');
2380
+ src: url('${d}') format('woff2');
2380
2381
  font-display: fallback;
2381
- font-weight: ${l};
2382
+ font-weight: ${c};
2382
2383
  }
2383
2384
  `.trim());
2384
2385
  }
@@ -2417,17 +2418,17 @@ ${Gt({
2417
2418
  }
2418
2419
  `.trim()
2419
2420
  );
2420
- return /* @__PURE__ */ r(K, { styles: t });
2421
+ return /* @__PURE__ */ l(H, { styles: t });
2421
2422
  }
2422
2423
  const Zt = ({
2423
2424
  content: e,
2424
2425
  data: t,
2425
2426
  locale: n
2426
2427
  }) => {
2427
- var o, l, s;
2428
+ var o, r, c;
2428
2429
  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);
2430
+ return (c = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || c.forEach((s) => {
2431
+ s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
2431
2432
  }), {
2432
2433
  ...i,
2433
2434
  ...a,
@@ -2448,22 +2449,22 @@ const Zt = ({
2448
2449
  meta: e == null ? void 0 : e.meta
2449
2450
  } : void 0;
2450
2451
  function ke(e) {
2451
- var c, d, u, g, p, P, x;
2452
+ var s, d, u, g, v, P, x;
2452
2453
  const [t, n] = S(
2453
2454
  () => {
2454
- var v, I;
2455
+ var k, w;
2455
2456
  return Ut({
2456
2457
  // 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,
2458
+ variationId: (k = e.content) == null ? void 0 : k.testVariationId,
2458
2459
  // 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
2460
+ contentId: (w = e.content) == null ? void 0 : w.id
2460
2461
  });
2461
2462
  }
2462
2463
  );
2463
- function i(v) {
2464
- s((I) => ({
2465
- ...I,
2466
- rootState: v
2464
+ function i(k) {
2465
+ c((w) => ({
2466
+ ...w,
2467
+ rootState: k
2467
2468
  }));
2468
2469
  }
2469
2470
  const [a, o] = S(
@@ -2477,16 +2478,16 @@ function ke(e) {
2477
2478
  ...ue,
2478
2479
  ...e.customComponents || []
2479
2480
  ].reduce(
2480
- (v, { component: I, ...E }) => ({
2481
- ...v,
2481
+ (k, { component: w, ...E }) => ({
2482
+ ...k,
2482
2483
  [E.name]: {
2483
- component: I,
2484
+ component: w,
2484
2485
  ...me(E)
2485
2486
  }
2486
2487
  }),
2487
2488
  {}
2488
2489
  )
2489
- ), [l, s] = S(() => ({
2490
+ ), [r, c] = S(() => ({
2490
2491
  content: en({
2491
2492
  content: e.content,
2492
2493
  data: e.data
@@ -2511,8 +2512,8 @@ function ke(e) {
2511
2512
  ...ue,
2512
2513
  ...e.customComponents || []
2513
2514
  ].reduce(
2514
- (v, { component: I, ...E }) => ({
2515
- ...v,
2515
+ (k, { component: w, ...E }) => ({
2516
+ ...k,
2516
2517
  [E.name]: me(E)
2517
2518
  }),
2518
2519
  {}
@@ -2521,7 +2522,7 @@ function ke(e) {
2521
2522
  BlocksWrapper: e.blocksWrapper || "div",
2522
2523
  BlocksWrapperProps: e.blocksWrapperProps || {}
2523
2524
  }));
2524
- return /* @__PURE__ */ r(
2525
+ return /* @__PURE__ */ l(
2525
2526
  Te.Provider,
2526
2527
  {
2527
2528
  value: {
@@ -2539,25 +2540,25 @@ function ke(e) {
2539
2540
  includeRefs: e.includeRefs,
2540
2541
  enrich: e.enrich,
2541
2542
  showContent: e.showContent,
2542
- builderContextSignal: l,
2543
+ builderContextSignal: r,
2543
2544
  contentWrapper: e.contentWrapper,
2544
2545
  contentWrapperProps: e.contentWrapperProps,
2545
- setBuilderContextSignal: s,
2546
+ setBuilderContextSignal: c,
2546
2547
  children: [
2547
- e.isSsrAbTest ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(X, { scriptStr: t }) }) : null,
2548
- /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(
2548
+ e.isSsrAbTest ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(Z, { scriptStr: t }) }) : null,
2549
+ /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
2549
2550
  Xt,
2550
2551
  {
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
2552
+ contentId: (s = r.content) == null ? void 0 : s.id,
2553
+ cssCode: (u = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
2554
+ customFonts: (v = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : v.customFonts
2554
2555
  }
2555
2556
  ) }),
2556
- /* @__PURE__ */ r(
2557
- ie,
2557
+ /* @__PURE__ */ l(
2558
+ ae,
2558
2559
  {
2559
- blocks: (x = (P = l.content) == null ? void 0 : P.data) == null ? void 0 : x.blocks,
2560
- context: l,
2560
+ blocks: (x = (P = r.content) == null ? void 0 : P.data) == null ? void 0 : x.blocks,
2561
+ context: r,
2561
2562
  registeredComponents: a
2562
2563
  }
2563
2564
  )
@@ -2568,52 +2569,52 @@ function ke(e) {
2568
2569
  );
2569
2570
  }
2570
2571
  function Ae(e) {
2571
- var l, s;
2572
+ var r, c;
2572
2573
  const [t, n] = S(
2573
2574
  () => _t({
2574
- canTrack: U(e.canTrack),
2575
+ canTrack: D(e.canTrack),
2575
2576
  content: e.content
2576
2577
  })
2577
2578
  );
2578
2579
  function i() {
2579
- var c;
2580
+ var s;
2580
2581
  return Mt(
2581
- j(e.content).map((d) => ({
2582
+ M(e.content).map((d) => ({
2582
2583
  id: d.testVariationId,
2583
2584
  testRatio: d.testRatio
2584
2585
  })),
2585
- ((c = e.content) == null ? void 0 : c.id) || ""
2586
+ ((s = e.content) == null ? void 0 : s.id) || ""
2586
2587
  );
2587
2588
  }
2588
2589
  function a() {
2589
- return j(e.content).map((c) => `.variant-${c.testVariationId} { display: none; } `).join("");
2590
+ return M(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
2590
2591
  }
2591
2592
  function o() {
2592
- var c;
2593
+ var s;
2593
2594
  return t ? {
2594
2595
  ...e.content,
2595
- testVariationId: (c = e.content) == null ? void 0 : c.id
2596
+ testVariationId: (s = e.content) == null ? void 0 : s.id
2596
2597
  } : Me({
2597
2598
  item: e.content,
2598
- canTrack: U(e.canTrack)
2599
+ canTrack: D(e.canTrack)
2599
2600
  });
2600
2601
  }
2601
2602
  return W(() => {
2602
2603
  }, []), /* @__PURE__ */ R(f, { children: [
2603
- !e.__isNestedRender && L !== "reactNative" ? /* @__PURE__ */ r(f, { children: /* @__PURE__ */ r(X, { scriptStr: jt() }) }) : null,
2604
+ !e.__isNestedRender && L !== "reactNative" ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(Z, { scriptStr: jt() }) }) : null,
2604
2605
  t ? /* @__PURE__ */ R(f, { children: [
2605
- /* @__PURE__ */ r(
2606
- K,
2606
+ /* @__PURE__ */ l(
2607
+ H,
2607
2608
  {
2608
- id: `variants-styles-${(l = e.content) == null ? void 0 : l.id}`,
2609
+ id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
2609
2610
  styles: a()
2610
2611
  }
2611
2612
  ),
2612
- /* @__PURE__ */ r(X, { scriptStr: i() }),
2613
- (s = j(e.content)) == null ? void 0 : s.map((c) => /* @__PURE__ */ r(
2613
+ /* @__PURE__ */ l(Z, { scriptStr: i() }),
2614
+ (c = M(e.content)) == null ? void 0 : c.map((s) => /* @__PURE__ */ l(
2614
2615
  ke,
2615
2616
  {
2616
- content: c,
2617
+ content: s,
2617
2618
  showContent: !1,
2618
2619
  model: e.model,
2619
2620
  data: e.data,
@@ -2631,10 +2632,10 @@ function Ae(e) {
2631
2632
  contentWrapper: e.contentWrapper,
2632
2633
  contentWrapperProps: e.contentWrapperProps
2633
2634
  },
2634
- c.testVariationId
2635
+ s.testVariationId
2635
2636
  ))
2636
2637
  ] }) : null,
2637
- /* @__PURE__ */ r(
2638
+ /* @__PURE__ */ l(
2638
2639
  ke,
2639
2640
  {
2640
2641
  content: o(),
@@ -2674,36 +2675,36 @@ const tn = async ({
2674
2675
  }
2675
2676
  }
2676
2677
  }).catch((n) => {
2677
- M.error("Could not fetch symbol content: ", n);
2678
+ U.error("Could not fetch symbol content: ", n);
2678
2679
  });
2679
2680
  };
2680
2681
  function nn(e) {
2681
- var o, l, s;
2682
+ var o, r, c;
2682
2683
  function t() {
2683
- var c, d;
2684
+ var s, d;
2684
2685
  return [
2685
2686
  e.attributes.className,
2686
2687
  "builder-symbol",
2687
- (c = e.symbol) != null && c.inline ? "builder-inline-symbol" : void 0,
2688
+ (s = e.symbol) != null && s.inline ? "builder-inline-symbol" : void 0,
2688
2689
  (d = e.symbol) != null && d.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2689
2690
  ].filter(Boolean).join(" ");
2690
2691
  }
2691
2692
  const [n, i] = S(() => {
2692
- var c;
2693
- return (c = e.symbol) == null ? void 0 : c.content;
2693
+ var s;
2694
+ return (s = e.symbol) == null ? void 0 : s.content;
2694
2695
  });
2695
2696
  function a() {
2696
2697
  n || tn({
2697
2698
  symbol: e.symbol,
2698
2699
  builderContextValue: e.builderContext
2699
- }).then((c) => {
2700
- c && i(c);
2700
+ }).then((s) => {
2701
+ s && i(s);
2701
2702
  });
2702
2703
  }
2703
2704
  return W(() => {
2704
2705
  }, []), W(() => {
2705
2706
  a();
2706
- }, [e.symbol]), /* @__PURE__ */ r("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ r(
2707
+ }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
2707
2708
  Ae,
2708
2709
  {
2709
2710
  __isNestedRender: !0,
@@ -2714,16 +2715,16 @@ function nn(e) {
2714
2715
  data: {
2715
2716
  ...(o = e.symbol) == null ? void 0 : o.data,
2716
2717
  ...e.builderContext.localState,
2717
- ...(l = n == null ? void 0 : n.data) == null ? void 0 : l.state
2718
+ ...(r = n == null ? void 0 : n.data) == null ? void 0 : r.state
2718
2719
  },
2719
- model: (s = e.symbol) == null ? void 0 : s.model,
2720
+ model: (c = e.symbol) == null ? void 0 : c.model,
2720
2721
  content: n
2721
2722
  }
2722
2723
  ) });
2723
2724
  }
2724
- const ln = ie, cn = Ae;
2725
+ const ln = ae, cn = Ae;
2725
2726
  export {
2726
- ie as Blocks,
2727
+ ae as Blocks,
2727
2728
  Ue as Button,
2728
2729
  ut as Columns,
2729
2730
  Ae as Content,