@builder.io/sdk-react 0.11.1 → 0.11.3

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 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 V, j as $, k as Ne, l as U, m as te, n as J, T as L, r as Fe, o as D, p as de, a as _e, c as Le, b as Ie, q as je, u as ue, v as me, w as Me } from "./server-entry-f978b3a5.js";
2
+ import { jsxs as E, Fragment as f, jsx as c } from "react/jsx-runtime";
3
+ import { createContext as ke, useState as S, useContext as le, createElement as Ce, useRef as ee, useEffect as P } from "react";
4
+ import { i as V, j as $, k as $e, l as U, m as te, n as J, T as L, r as Ne, o as D, p as se, a as Fe, c as _e, b as we, q as Le, u as de, v as ue, w as je } from "./server-entry-f978b3a5.js";
5
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
- function Ue(e) {
7
- return /* @__PURE__ */ R(f, { children: [
8
- e.link ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
6
+ function Me(e) {
7
+ return /* @__PURE__ */ E(f, { children: [
8
+ e.link ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(
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__ */ l(f, { children: /* @__PURE__ */ l(
17
+ ) }) : /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(
18
18
  "button",
19
19
  {
20
20
  ...e.attributes,
21
21
  style: e.attributes.style,
22
- className: e.attributes.className + " button-3ecc5438",
22
+ className: e.attributes.className + " button-fdf49de0",
23
23
  children: e.text
24
24
  }
25
25
  ) }),
26
- /* @__PURE__ */ l("style", { children: `.button-3ecc5438 {
26
+ /* @__PURE__ */ c("style", { children: `.button-fdf49de0 {
27
27
  all: unset;
28
28
  }` })
29
29
  ] });
30
30
  }
31
- const ne = Ce({
31
+ const ne = ke({
32
32
  content: null,
33
33
  context: {},
34
34
  localState: void 0,
@@ -41,8 +41,8 @@ const ne = Ce({
41
41
  inheritedStyles: {},
42
42
  BlocksWrapper: "div",
43
43
  BlocksWrapperProps: {}
44
- }), Te = Ce({ registeredComponents: {} });
45
- function De(e) {
44
+ }), Ie = ke({ registeredComponents: {} });
45
+ function Ue(e) {
46
46
  var t;
47
47
  return {
48
48
  ...(t = e.component) == null ? void 0 : t.options,
@@ -53,7 +53,7 @@ function De(e) {
53
53
  builderBlock: e
54
54
  };
55
55
  }
56
- const Oe = ({
56
+ const De = ({
57
57
  builder: e,
58
58
  context: t,
59
59
  event: n,
@@ -65,83 +65,83 @@ const Oe = ({
65
65
  builder: e,
66
66
  context: t,
67
67
  event: n
68
- }), Ke = () => ({
68
+ }), Oe = () => ({
69
69
  isEditing: V(),
70
70
  isBrowser: $(),
71
71
  isServer: !$(),
72
- getUserAttributes: () => Ne()
73
- }), He = (e, {
72
+ getUserAttributes: () => $e()
73
+ }), Ke = (e, {
74
74
  isExpression: t = !0
75
- }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, fe = ({
75
+ }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, me = ({
76
76
  code: e,
77
77
  builder: t,
78
78
  context: n,
79
79
  event: i,
80
80
  localState: a,
81
- rootSetState: o,
82
- rootState: r
81
+ rootSetState: r,
82
+ rootState: o
83
83
  }) => {
84
- const c = Oe({
84
+ const s = De({
85
85
  builder: t,
86
86
  context: n,
87
87
  event: i,
88
- state: ze(r, a, o)
88
+ state: He(o, a, r)
89
89
  });
90
- return new Function(...c.map(([s]) => s), e)(...c.map(([, s]) => s));
90
+ return new Function(...s.map(([l]) => l), e)(...s.map(([, l]) => l));
91
91
  };
92
- function ze(e, t, n) {
92
+ function He(e, t, n) {
93
93
  if (e === t)
94
94
  throw new Error("rootState === localState");
95
95
  return new Proxy(e, {
96
96
  get: (i, a) => t && a in t ? t[a] : e[a],
97
- set: (i, a, o) => {
97
+ set: (i, a, r) => {
98
98
  if (t && a in t)
99
99
  throw new Error("Writing to local state is not allowed as it is read-only.");
100
- return e[a] = o, n == null || n(e), !0;
100
+ return e[a] = r, n == null || n(e), !0;
101
101
  }
102
102
  });
103
103
  }
104
- const qe = (e) => ($(), fe(e));
104
+ const ze = (e) => ($(), me(e));
105
105
  function _({
106
106
  code: e,
107
107
  context: t,
108
108
  localState: n,
109
109
  rootState: i,
110
110
  rootSetState: a,
111
- event: o,
112
- isExpression: r = !0
111
+ event: r,
112
+ isExpression: o = !0
113
113
  }) {
114
114
  if (e === "") {
115
115
  U.warn("Skipping evaluation of empty code block.");
116
116
  return;
117
117
  }
118
- const c = {
119
- code: He(e, {
120
- isExpression: r
118
+ const s = {
119
+ code: Ke(e, {
120
+ isExpression: o
121
121
  }),
122
- builder: Ke(),
122
+ builder: Oe(),
123
123
  context: t,
124
- event: o,
124
+ event: r,
125
125
  rootSetState: a,
126
126
  rootState: i,
127
127
  localState: n
128
128
  };
129
129
  try {
130
- return qe(c);
131
- } catch (s) {
132
- U.error("Failed code evaluation: " + s.message, {
130
+ return ze(s);
131
+ } catch (l) {
132
+ U.error("Failed code evaluation: " + l.message, {
133
133
  code: e
134
134
  });
135
135
  return;
136
136
  }
137
137
  }
138
- const Ye = (e, t, n) => {
138
+ const qe = (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, 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;
142
+ return i.slice(0, -1).reduce((a, r, o) => Object(a[r]) === a[r] ? a[r] : a[r] = Math.abs(Number(i[o + 1])) >> 0 === +i[o + 1] ? [] : {}, e)[i[i.length - 1]] = n, e;
143
143
  };
144
- const Qe = ({
144
+ const Ye = ({
145
145
  block: e,
146
146
  context: t,
147
147
  localState: n,
@@ -150,26 +150,26 @@ const Qe = ({
150
150
  }) => {
151
151
  if (!e.bindings)
152
152
  return e;
153
- const o = te(e), r = {
154
- ...o,
153
+ const r = te(e), o = {
154
+ ...r,
155
155
  properties: {
156
- ...o.properties
156
+ ...r.properties
157
157
  },
158
158
  actions: {
159
- ...o.actions
159
+ ...r.actions
160
160
  }
161
161
  };
162
- for (const c in e.bindings) {
163
- const s = e.bindings[c], d = _({
164
- code: s,
162
+ for (const s in e.bindings) {
163
+ const l = e.bindings[s], d = _({
164
+ code: l,
165
165
  localState: n,
166
166
  rootState: i,
167
167
  rootSetState: a,
168
168
  context: t
169
169
  });
170
- Ye(r, c, d);
170
+ qe(o, s, d);
171
171
  }
172
- return r;
172
+ return o;
173
173
  };
174
174
  function O({
175
175
  block: e,
@@ -177,31 +177,31 @@ function O({
177
177
  shouldEvaluateBindings: n,
178
178
  localState: i,
179
179
  rootState: a,
180
- rootSetState: o
180
+ rootSetState: r
181
181
  }) {
182
- const r = e;
183
- return n ? Qe({
184
- block: r,
182
+ const o = e;
183
+ return n ? Ye({
184
+ block: o,
185
185
  localState: i,
186
186
  rootState: a,
187
- rootSetState: o,
187
+ rootSetState: r,
188
188
  context: t
189
- }) : r;
189
+ }) : o;
190
190
  }
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 = ({
191
+ const Qe = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], Y = (e) => typeof e == "string" && Qe.includes(e.toLowerCase()), Ge = ({
192
192
  block: e,
193
193
  context: t,
194
194
  registeredComponents: n
195
195
  }) => {
196
- var o;
197
- const i = (o = O({
196
+ var r;
197
+ const i = (r = O({
198
198
  block: e,
199
199
  localState: t.localState,
200
200
  rootState: t.rootState,
201
201
  rootSetState: t.rootSetState,
202
202
  context: t.context,
203
203
  shouldEvaluateBindings: !1
204
- }).component) == null ? void 0 : o.name;
204
+ }).component) == null ? void 0 : r.name;
205
205
  if (!i)
206
206
  return null;
207
207
  const a = n[i];
@@ -210,7 +210,7 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
210
210
  console.warn(`
211
211
  Could not find a registered component named "${i}".
212
212
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
213
- }, Xe = ({
213
+ }, Je = ({
214
214
  block: e,
215
215
  context: t
216
216
  }) => {
@@ -229,21 +229,21 @@ 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(), r = n.itemName || (o ? o + "Item" : "item");
233
- return a.map((s, d) => ({
232
+ const r = n.collection.split(".").pop(), o = n.itemName || (r ? r + "Item" : "item");
233
+ return a.map((l, d) => ({
234
234
  context: {
235
235
  ...t,
236
236
  localState: {
237
237
  ...t.localState,
238
238
  $index: d,
239
- $item: s,
240
- [r]: s,
241
- [`$${r}Index`]: d
239
+ $item: l,
240
+ [o]: l,
241
+ [`$${o}Index`]: d
242
242
  }
243
243
  },
244
244
  block: i
245
245
  }));
246
- }, Re = {
246
+ }, Te = {
247
247
  small: {
248
248
  min: 320,
249
249
  default: 321,
@@ -259,11 +259,11 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
259
259
  default: 991,
260
260
  max: 1200
261
261
  }
262
- }, he = (e, t = Re) => `@media (max-width: ${t[e].max}px)`, Ee = ({
262
+ }, fe = (e, t = Te) => `@media (max-width: ${t[e].max}px)`, Re = ({
263
263
  small: e,
264
264
  medium: t
265
265
  }) => {
266
- const n = te(Re);
266
+ const n = te(Te);
267
267
  if (!e || !t)
268
268
  return n;
269
269
  const i = Math.floor(e / 2);
@@ -278,33 +278,33 @@ const Ge = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
278
278
  min: a,
279
279
  default: a + 1
280
280
  };
281
- const o = n.medium.max + 1;
281
+ const r = n.medium.max + 1;
282
282
  return n.large = {
283
283
  max: 2e3,
284
284
  // TODO: decide upper limit
285
- min: o,
286
- default: o + 1
285
+ min: r,
286
+ default: r + 1
287
287
  }, n;
288
- }, Ze = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Pe = (e) => Object.entries(e).map(([n, i]) => {
288
+ }, Xe = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Ee = (e) => Object.entries(e).map(([n, i]) => {
289
289
  if (typeof i == "string")
290
- return `${Ze(n)}: ${i};`;
291
- }).filter(J), et = (e) => Pe(e).join(`
290
+ return `${Xe(n)}: ${i};`;
291
+ }).filter(J), Ze = (e) => Ee(e).join(`
292
292
  `), Q = ({
293
293
  mediaQuery: e,
294
294
  className: t,
295
295
  styles: n
296
296
  }) => {
297
297
  const i = `.${t} {
298
- ${et(n)}
298
+ ${Ze(n)}
299
299
  }`;
300
300
  return e ? `${e} {
301
301
  ${i}
302
302
  }` : i;
303
303
  };
304
304
  function H(e) {
305
- return /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
305
+ return /* @__PURE__ */ c("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
306
306
  }
307
- function ie(e) {
307
+ function et(e) {
308
308
  function t() {
309
309
  const i = O({
310
310
  block: e.block,
@@ -317,7 +317,7 @@ function ie(e) {
317
317
  return J(i.hide) ? !i.hide : J(i.show) ? i.show : !0;
318
318
  }
319
319
  function n() {
320
- var x;
320
+ var I;
321
321
  const i = O({
322
322
  block: e.block,
323
323
  localState: e.context.localState,
@@ -325,32 +325,32 @@ function ie(e) {
325
325
  rootSetState: e.context.rootSetState,
326
326
  context: e.context.context,
327
327
  shouldEvaluateBindings: !0
328
- }), a = i.responsiveStyles, o = e.context.content, r = Ee(
329
- ((x = o == null ? void 0 : o.meta) == null ? void 0 : x.breakpoints) || {}
330
- ), c = a == null ? void 0 : a.large, s = a == null ? void 0 : a.medium, d = a == null ? void 0 : a.small, u = i.id;
328
+ }), a = i.responsiveStyles, r = e.context.content, o = Re(
329
+ ((I = r == null ? void 0 : r.meta) == null ? void 0 : I.breakpoints) || {}
330
+ ), s = a == null ? void 0 : a.large, l = a == null ? void 0 : a.medium, d = a == null ? void 0 : a.small, u = i.id;
331
331
  if (!u)
332
332
  return "";
333
- const g = c ? Q({
333
+ const g = s ? Q({
334
334
  className: u,
335
- styles: c
336
- }) : "", v = s ? Q({
335
+ styles: s
336
+ }) : "", p = l ? Q({
337
337
  className: u,
338
- styles: s,
339
- mediaQuery: he(
338
+ styles: l,
339
+ mediaQuery: fe(
340
340
  "medium",
341
- r
341
+ o
342
342
  )
343
- }) : "", P = d ? Q({
343
+ }) : "", x = d ? Q({
344
344
  className: u,
345
345
  styles: d,
346
- mediaQuery: he(
346
+ mediaQuery: fe(
347
347
  "small",
348
- r
348
+ o
349
349
  )
350
350
  }) : "";
351
- return [g, v, P].join(" ");
351
+ return [g, p, x].join(" ");
352
352
  }
353
- return /* @__PURE__ */ l(f, { children: n() && t() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(H, { styles: n() }) }) : null });
353
+ return /* @__PURE__ */ c(f, { children: n() && t() ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(H, { styles: n() }) }) : null });
354
354
  }
355
355
  function tt(e) {
356
356
  return e.charAt(0).toUpperCase() + e.slice(1);
@@ -370,18 +370,18 @@ function X(e) {
370
370
  for (const a in n) {
371
371
  if (!n.hasOwnProperty(a))
372
372
  continue;
373
- const o = n[a];
374
- let r = nt(a);
373
+ const r = n[a];
374
+ let o = nt(a);
375
375
  if (e.stripPrefix)
376
376
  switch (L) {
377
377
  case "vue":
378
- r = r.replace("v-on:", "");
378
+ o = o.replace("v-on:", "");
379
379
  break;
380
380
  case "svelte":
381
- r = r.replace("on:", "");
381
+ o = o.replace("on:", "");
382
382
  break;
383
383
  }
384
- t[r] = it(o, e);
384
+ t[o] = it(r, e);
385
385
  }
386
386
  return t;
387
387
  }
@@ -416,7 +416,7 @@ function rt(e) {
416
416
  case "svelte":
417
417
  case "vue":
418
418
  case "solid":
419
- return Pe(e).join(" ");
419
+ return Ee(e).join(" ");
420
420
  case "qwik":
421
421
  case "reactNative":
422
422
  case "react":
@@ -424,10 +424,10 @@ function rt(e) {
424
424
  return e;
425
425
  }
426
426
  }
427
- function ge(e) {
428
- return /* @__PURE__ */ R(f, { children: [
427
+ function he(e) {
428
+ return /* @__PURE__ */ E(f, { children: [
429
429
  " ",
430
- e.hasChildren ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ R(
430
+ e.hasChildren ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ E(
431
431
  e.Wrapper,
432
432
  {
433
433
  ...K({
@@ -448,7 +448,7 @@ function ge(e) {
448
448
  " "
449
449
  ]
450
450
  }
451
- ) }) : /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
451
+ ) }) : /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(
452
452
  e.Wrapper,
453
453
  {
454
454
  ...K({
@@ -468,8 +468,8 @@ function ge(e) {
468
468
  " "
469
469
  ] });
470
470
  }
471
- function lt(e) {
472
- return /* @__PURE__ */ l(
471
+ function ct(e) {
472
+ return /* @__PURE__ */ c(
473
473
  e.Wrapper,
474
474
  {
475
475
  ...e.wrapperProps,
@@ -490,16 +490,16 @@ function lt(e) {
490
490
  }
491
491
  );
492
492
  }
493
- const ct = ({
493
+ const lt = ({
494
494
  componentOptions: e,
495
495
  builderBlock: t,
496
496
  context: n,
497
497
  componentRef: i,
498
498
  includeBlockProps: a,
499
- isInteractive: o,
500
- contextValue: r
499
+ isInteractive: r,
500
+ contextValue: o
501
501
  }) => {
502
- const c = {
502
+ const s = {
503
503
  ...e,
504
504
  /**
505
505
  * If `noWrap` is set to `true`, then the block's props/attributes are provided to the
@@ -508,27 +508,27 @@ const ct = ({
508
508
  ...a ? {
509
509
  attributes: K({
510
510
  block: t,
511
- context: r
511
+ context: o
512
512
  })
513
513
  } : {}
514
514
  };
515
- return o ? {
515
+ return r ? {
516
516
  Wrapper: i,
517
517
  block: t,
518
518
  context: n,
519
519
  wrapperProps: e,
520
520
  includeBlockProps: a
521
- } : c;
521
+ } : s;
522
522
  };
523
- function be(e) {
524
- var i, a;
523
+ function ge(e) {
524
+ var i;
525
525
  const [t, n] = S(
526
- () => e.isInteractive ? lt : e.componentRef
526
+ () => e.isInteractive ? ct : e.componentRef
527
527
  );
528
- return /* @__PURE__ */ l(f, { children: e.componentRef ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ R(
528
+ return /* @__PURE__ */ c(f, { children: e.componentRef ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(
529
529
  t,
530
530
  {
531
- ...ct({
531
+ ...lt({
532
532
  componentOptions: e.componentOptions,
533
533
  builderBlock: e.builderBlock,
534
534
  context: e.context,
@@ -537,31 +537,21 @@ function be(e) {
537
537
  isInteractive: e.isInteractive,
538
538
  contextValue: e.context
539
539
  }),
540
- children: [
541
- (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
542
- z,
543
- {
544
- block: o,
545
- context: e.context,
546
- registeredComponents: e.registeredComponents
547
- },
548
- "block-" + o.id
549
- )),
550
- (a = e.blockChildren) == null ? void 0 : a.map((o) => /* @__PURE__ */ l(
551
- ie,
552
- {
553
- block: o,
554
- context: e.context
555
- },
556
- "block-style-" + o.id
557
- ))
558
- ]
540
+ children: (i = e.blockChildren) == null ? void 0 : i.map((a) => /* @__PURE__ */ c(
541
+ z,
542
+ {
543
+ block: a,
544
+ context: e.context,
545
+ registeredComponents: e.registeredComponents
546
+ },
547
+ a.id
548
+ ))
559
549
  }
560
550
  ) }) : null });
561
551
  }
562
552
  function st(e) {
563
553
  const [t, n] = S(() => e.repeatContext);
564
- return /* @__PURE__ */ l(ne.Provider, { value: t, children: /* @__PURE__ */ l(
554
+ return /* @__PURE__ */ c(ne.Provider, { value: t, children: /* @__PURE__ */ c(
565
555
  z,
566
556
  {
567
557
  block: e.block,
@@ -571,16 +561,16 @@ function st(e) {
571
561
  ) });
572
562
  }
573
563
  function z(e) {
574
- var u, g, v, P;
564
+ var u, g, p;
575
565
  function t() {
576
- return Je({
566
+ return Ge({
577
567
  block: e.block,
578
568
  context: e.context,
579
569
  registeredComponents: e.registeredComponents
580
570
  });
581
571
  }
582
572
  function n() {
583
- return Xe({
573
+ return Je({
584
574
  block: e.block,
585
575
  context: e.context
586
576
  });
@@ -599,110 +589,105 @@ function z(e) {
599
589
  function a() {
600
590
  return e.block.tagName || "div";
601
591
  }
602
- function o() {
603
- var w, E;
604
- if ((w = e.block.repeat) != null && w.collection)
605
- return !!((E = n == null ? void 0 : n()) != null && E.length);
592
+ function r() {
593
+ var v, R;
594
+ if ((v = e.block.repeat) != null && v.collection)
595
+ return !!((R = n == null ? void 0 : n()) != null && R.length);
606
596
  const x = "hide" in i() ? i().hide : !1;
607
597
  return ("show" in i() ? i().show : !0) && !x;
608
598
  }
609
- function r() {
610
- var k, w;
611
- return !((k = t == null ? void 0 : t()) != null && k.component) && !n() ? (w = i().children) != null ? w : [] : [];
599
+ function o() {
600
+ var I, v;
601
+ return !((I = t == null ? void 0 : t()) != null && I.component) && !n() ? (v = i().children) != null ? v : [] : [];
612
602
  }
613
- function c() {
614
- var x, k, w, E, I, p;
603
+ function s() {
604
+ var x, I, v, R, W, C;
615
605
  return {
616
606
  blockChildren: (x = i().children) != null ? x : [],
617
- componentRef: (k = t == null ? void 0 : t()) == null ? void 0 : k.component,
607
+ componentRef: (I = t == null ? void 0 : t()) == null ? void 0 : I.component,
618
608
  componentOptions: {
619
- ...De(i()),
609
+ ...Ue(i()),
620
610
  builderContext: e.context,
621
- ...((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Symbol" || ((E = t == null ? void 0 : t()) == null ? void 0 : E.name) === "Columns" ? {
611
+ ...((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Symbol" || ((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Columns" ? {
622
612
  builderComponents: e.registeredComponents
623
613
  } : {}
624
614
  },
625
- context: s,
615
+ context: l,
626
616
  registeredComponents: e.registeredComponents,
627
617
  builderBlock: i(),
628
- includeBlockProps: ((I = t == null ? void 0 : t()) == null ? void 0 : I.noWrap) === !0,
629
- isInteractive: !((p = t == null ? void 0 : t()) != null && p.isRSC)
618
+ includeBlockProps: ((W = t == null ? void 0 : t()) == null ? void 0 : W.noWrap) === !0,
619
+ isInteractive: !((C = t == null ? void 0 : t()) != null && C.isRSC)
630
620
  };
631
621
  }
632
- const [s, d] = S(() => e.context);
633
- return /* @__PURE__ */ l(f, { children: o() ? /* @__PURE__ */ l(f, { children: (u = t == null ? void 0 : t()) != null && u.noWrap ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
634
- be,
635
- {
636
- componentRef: c().componentRef,
637
- componentOptions: c().componentOptions,
638
- blockChildren: c().blockChildren,
639
- context: c().context,
640
- registeredComponents: c().registeredComponents,
641
- builderBlock: c().builderBlock,
642
- includeBlockProps: c().includeBlockProps,
643
- isInteractive: c().isInteractive
644
- }
645
- ) }) : /* @__PURE__ */ R(f, { children: [
646
- Y(a()) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
622
+ const [l, d] = S(() => e.context);
623
+ return /* @__PURE__ */ c(f, { children: r() ? /* @__PURE__ */ E(f, { children: [
624
+ /* @__PURE__ */ c(et, { block: e.block, context: e.context }),
625
+ (u = t == null ? void 0 : t()) != null && u.noWrap ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(
647
626
  ge,
648
627
  {
649
- Wrapper: a(),
650
- block: i(),
651
- context: e.context,
652
- hasChildren: !1
628
+ componentRef: s().componentRef,
629
+ componentOptions: s().componentOptions,
630
+ blockChildren: s().blockChildren,
631
+ context: s().context,
632
+ registeredComponents: s().registeredComponents,
633
+ builderBlock: s().builderBlock,
634
+ includeBlockProps: s().includeBlockProps,
635
+ isInteractive: s().isInteractive
653
636
  }
654
- ) }) : null,
655
- !Y(a()) && n() ? /* @__PURE__ */ l(f, { children: (g = n()) == null ? void 0 : g.map((x, k) => /* @__PURE__ */ l(
656
- st,
657
- {
658
- repeatContext: x.context,
659
- block: x.block,
660
- registeredComponents: e.registeredComponents
661
- },
662
- k
663
- )) }) : null,
664
- !Y(a()) && !n() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ R(
665
- ge,
666
- {
667
- Wrapper: a(),
668
- block: i(),
669
- context: e.context,
670
- hasChildren: !0,
671
- children: [
672
- /* @__PURE__ */ l(
673
- be,
674
- {
675
- componentRef: c().componentRef,
676
- componentOptions: c().componentOptions,
677
- blockChildren: c().blockChildren,
678
- context: c().context,
679
- registeredComponents: c().registeredComponents,
680
- builderBlock: c().builderBlock,
681
- includeBlockProps: c().includeBlockProps,
682
- isInteractive: c().isInteractive
683
- }
684
- ),
685
- (v = r()) == null ? void 0 : v.map((x) => /* @__PURE__ */ l(
686
- z,
687
- {
688
- block: x,
689
- context: s,
690
- registeredComponents: e.registeredComponents
691
- },
692
- "block-" + x.id
693
- )),
694
- (P = r()) == null ? void 0 : P.map((x) => /* @__PURE__ */ l(
695
- ie,
696
- {
697
- block: x,
698
- context: s
699
- },
700
- "block-style-" + x.id
701
- ))
702
- ]
703
- }
704
- ) }) : null
705
- ] }) }) : null });
637
+ ) }) : /* @__PURE__ */ E(f, { children: [
638
+ Y(a()) ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(
639
+ he,
640
+ {
641
+ Wrapper: a(),
642
+ block: i(),
643
+ context: e.context,
644
+ hasChildren: !1
645
+ }
646
+ ) }) : null,
647
+ !Y(a()) && n() ? /* @__PURE__ */ c(f, { children: (g = n()) == null ? void 0 : g.map((x, I) => /* @__PURE__ */ c(
648
+ st,
649
+ {
650
+ repeatContext: x.context,
651
+ block: x.block,
652
+ registeredComponents: e.registeredComponents
653
+ },
654
+ I
655
+ )) }) : null,
656
+ !Y(a()) && !n() ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ E(
657
+ he,
658
+ {
659
+ Wrapper: a(),
660
+ block: i(),
661
+ context: e.context,
662
+ hasChildren: !0,
663
+ children: [
664
+ /* @__PURE__ */ c(
665
+ ge,
666
+ {
667
+ componentRef: s().componentRef,
668
+ componentOptions: s().componentOptions,
669
+ blockChildren: s().blockChildren,
670
+ context: s().context,
671
+ registeredComponents: s().registeredComponents,
672
+ builderBlock: s().builderBlock,
673
+ includeBlockProps: s().includeBlockProps,
674
+ isInteractive: s().isInteractive
675
+ }
676
+ ),
677
+ (p = o()) == null ? void 0 : p.map((x) => /* @__PURE__ */ c(
678
+ z,
679
+ {
680
+ block: x,
681
+ context: l,
682
+ registeredComponents: e.registeredComponents
683
+ },
684
+ x.id
685
+ ))
686
+ ]
687
+ }
688
+ ) }) : null
689
+ ] })
690
+ ] }) : null });
706
691
  }
707
692
  function dt(e) {
708
693
  function t() {
@@ -710,8 +695,8 @@ function dt(e) {
710
695
  return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
711
696
  }
712
697
  function n() {
713
- var a, o;
714
- V() && !((a = e.blocks) != null && a.length) && ((o = window.parent) == null || o.postMessage(
698
+ var a, r;
699
+ V() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
715
700
  {
716
701
  type: "builder.clickEmptyBlocks",
717
702
  data: {
@@ -723,8 +708,8 @@ function dt(e) {
723
708
  ));
724
709
  }
725
710
  function i() {
726
- var a, o;
727
- V() && !((a = e.blocks) != null && a.length) && ((o = window.parent) == null || o.postMessage(
711
+ var a, r;
712
+ V() && !((a = e.blocks) != null && a.length) && ((r = window.parent) == null || r.postMessage(
728
713
  {
729
714
  type: "builder.hoverEmptyBlocks",
730
715
  data: {
@@ -735,8 +720,8 @@ function dt(e) {
735
720
  "*"
736
721
  ));
737
722
  }
738
- return /* @__PURE__ */ R(f, { children: [
739
- /* @__PURE__ */ l(
723
+ return /* @__PURE__ */ E(f, { children: [
724
+ /* @__PURE__ */ c(
740
725
  e.BlocksWrapper,
741
726
  {
742
727
  className: t() + " props-blocks-wrapper-4f2c12d8",
@@ -750,17 +735,17 @@ function dt(e) {
750
735
  children: e.children
751
736
  }
752
737
  ),
753
- /* @__PURE__ */ l("style", { children: `.props-blocks-wrapper-4f2c12d8 {
738
+ /* @__PURE__ */ c("style", { children: `.props-blocks-wrapper-4f2c12d8 {
754
739
  display: flex;
755
740
  flex-direction: column;
756
741
  align-items: stretch;
757
742
  }` })
758
743
  ] });
759
744
  }
760
- function ae(e) {
761
- var i, a, o, r;
762
- const t = se(ne), n = se(Te);
763
- return /* @__PURE__ */ R(
745
+ function ie(e) {
746
+ var i, a, r;
747
+ const t = le(ne), n = le(Ie);
748
+ return /* @__PURE__ */ c(
764
749
  dt,
765
750
  {
766
751
  blocks: e.blocks,
@@ -769,59 +754,49 @@ function ae(e) {
769
754
  styleProp: e.styleProp,
770
755
  BlocksWrapper: (i = e.context) == null ? void 0 : i.BlocksWrapper,
771
756
  BlocksWrapperProps: (a = e.context) == null ? void 0 : a.BlocksWrapperProps,
772
- children: [
773
- e.blocks ? /* @__PURE__ */ l(f, { children: (o = e.blocks) == null ? void 0 : o.map((c) => /* @__PURE__ */ l(
774
- z,
775
- {
776
- block: c,
777
- context: e.context || t,
778
- registeredComponents: e.registeredComponents || n.registeredComponents
779
- },
780
- "render-block-" + c.id
781
- )) }) : null,
782
- e.blocks ? /* @__PURE__ */ l(f, { children: (r = e.blocks) == null ? void 0 : r.map((c) => /* @__PURE__ */ l(
783
- ie,
784
- {
785
- block: c,
786
- context: e.context || t
787
- },
788
- "block-style-" + c.id
789
- )) }) : null
790
- ]
757
+ children: e.blocks ? /* @__PURE__ */ c(f, { children: (r = e.blocks) == null ? void 0 : r.map((o) => /* @__PURE__ */ c(
758
+ z,
759
+ {
760
+ block: o,
761
+ context: e.context || t,
762
+ registeredComponents: e.registeredComponents || n.registeredComponents
763
+ },
764
+ o.id
765
+ )) }) : null
791
766
  }
792
767
  );
793
768
  }
794
769
  function ut(e) {
795
- var E;
770
+ var W;
796
771
  const [t, n] = S(
797
772
  () => typeof e.space == "number" ? e.space || 0 : 20
798
- ), [i, a] = S(() => e.columns || []), [o, r] = S(
773
+ ), [i, a] = S(() => e.columns || []), [r, o] = S(
799
774
  () => e.stackColumnsAt || "tablet"
800
775
  );
801
- function c(I) {
802
- var p;
803
- return ((p = i[I]) == null ? void 0 : p.width) || 100 / i.length;
776
+ function s(C) {
777
+ var w;
778
+ return ((w = i[C]) == null ? void 0 : w.width) || 100 / i.length;
804
779
  }
805
- function s(I) {
806
- const p = t * (i.length - 1) / i.length;
807
- return `calc(${c(I)}% - ${p}px)`;
780
+ function l(C) {
781
+ const w = t * (i.length - 1) / i.length;
782
+ return `calc(${s(C)}% - ${w}px)`;
808
783
  }
809
784
  function d({
810
- stackedStyle: I,
811
- desktopStyle: p
785
+ stackedStyle: C,
786
+ desktopStyle: w
812
787
  }) {
813
- return o === "tablet" ? I : p;
788
+ return r === "tablet" ? C : w;
814
789
  }
815
790
  function u({
816
- stackedStyle: I,
817
- desktopStyle: p
791
+ stackedStyle: C,
792
+ desktopStyle: w
818
793
  }) {
819
- return o === "never" ? p : I;
794
+ return r === "never" ? w : C;
820
795
  }
821
- const [g, v] = S(
796
+ const [g, p] = S(
822
797
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
823
798
  );
824
- function P() {
799
+ function x() {
825
800
  return {
826
801
  "--flex-dir": g,
827
802
  "--flex-dir-tablet": d({
@@ -830,8 +805,8 @@ function ut(e) {
830
805
  })
831
806
  };
832
807
  }
833
- function x(I) {
834
- const p = I === 0 ? 0 : t, B = s(I), A = `${p}px`, N = "100%", F = 0;
808
+ function I(C) {
809
+ const w = C === 0 ? 0 : t, B = l(C), A = `${w}px`, N = "100%", F = 0;
835
810
  return {
836
811
  width: B,
837
812
  ["marginLeft"]: A,
@@ -853,15 +828,15 @@ function ut(e) {
853
828
  })
854
829
  };
855
830
  }
856
- function k(I) {
831
+ function v(C) {
857
832
  var B, A;
858
- return Ee(
833
+ return Re(
859
834
  ((A = (B = e.builderContext.content) == null ? void 0 : B.meta) == null ? void 0 : A.breakpoints) || {}
860
- )[I].max;
835
+ )[C].max;
861
836
  }
862
- function w() {
837
+ function R() {
863
838
  return `
864
- @media (max-width: ${k("medium")}px) {
839
+ @media (max-width: ${v("medium")}px) {
865
840
  .${e.builderBlock.id}-breakpoints {
866
841
  flex-direction: var(--flex-dir-tablet);
867
842
  align-items: stretch;
@@ -873,7 +848,7 @@ function ut(e) {
873
848
  }
874
849
  }
875
850
 
876
- @media (max-width: ${k("small")}px) {
851
+ @media (max-width: ${v("small")}px) {
877
852
  .${e.builderBlock.id}-breakpoints {
878
853
  flex-direction: var(--flex-dir);
879
854
  align-items: stretch;
@@ -886,42 +861,42 @@ function ut(e) {
886
861
  },
887
862
  `;
888
863
  }
889
- return /* @__PURE__ */ R(f, { children: [
890
- /* @__PURE__ */ R(
864
+ return /* @__PURE__ */ E(f, { children: [
865
+ /* @__PURE__ */ E(
891
866
  "div",
892
867
  {
893
- className: `builder-columns ${e.builderBlock.id}-breakpoints div-53636e90`,
894
- style: P(),
868
+ className: `builder-columns ${e.builderBlock.id}-breakpoints div-3c01d6ec`,
869
+ style: x(),
895
870
  children: [
896
- /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(H, { styles: w() }) }),
897
- (E = e.columns) == null ? void 0 : E.map((I, p) => /* @__PURE__ */ we(
871
+ /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(H, { styles: R() }) }),
872
+ (W = e.columns) == null ? void 0 : W.map((C, w) => /* @__PURE__ */ Ce(
898
873
  "div",
899
874
  {
900
- className: "builder-column div-53636e90-2",
901
- style: x(p),
902
- key: p
875
+ className: "builder-column div-3c01d6ec-2",
876
+ style: I(w),
877
+ key: w
903
878
  },
904
- /* @__PURE__ */ l(
905
- ae,
879
+ /* @__PURE__ */ c(
880
+ ie,
906
881
  {
907
- path: `component.options.columns.${p}.blocks`,
882
+ path: `component.options.columns.${w}.blocks`,
908
883
  parent: e.builderBlock.id,
909
884
  styleProp: {
910
885
  flexGrow: "1"
911
886
  },
912
887
  context: e.builderContext,
913
888
  registeredComponents: e.builderComponents,
914
- blocks: I.blocks
889
+ blocks: C.blocks
915
890
  }
916
891
  )
917
892
  ))
918
893
  ]
919
894
  }
920
895
  ),
921
- /* @__PURE__ */ l("style", { children: `.div-53636e90 {
896
+ /* @__PURE__ */ c("style", { children: `.div-3c01d6ec {
922
897
  display: flex;
923
898
  line-height: normal;
924
- }.div-53636e90-2 {
899
+ }.div-3c01d6ec-2 {
925
900
  display: flex;
926
901
  flex-direction: column;
927
902
  align-items: stretch;
@@ -929,9 +904,9 @@ function ut(e) {
929
904
  ] });
930
905
  }
931
906
  function mt(e) {
932
- return /* @__PURE__ */ l("span", { children: e.children });
907
+ return /* @__PURE__ */ c("span", { children: e.children });
933
908
  }
934
- function xe(e) {
909
+ function be(e) {
935
910
  return e.replace(/http(s)?:/, "");
936
911
  }
937
912
  function ft(e = "", t, n) {
@@ -942,11 +917,11 @@ function ht(e, t) {
942
917
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
943
918
  return e;
944
919
  if (t === "master")
945
- return xe(e);
920
+ return be(e);
946
921
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
947
922
  if (n) {
948
- const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
949
- return xe(`${i[0]}_${o}${a}`);
923
+ const i = e.split(n[0]), a = n[3], r = t.match("x") ? t : `${t}x`;
924
+ return be(`${i[0]}_${r}${a}`);
950
925
  }
951
926
  return null;
952
927
  }
@@ -962,7 +937,7 @@ function G(e) {
962
937
  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;
963
938
  }
964
939
  function gt(e) {
965
- var a, o, r, c;
940
+ var a, r, o, s;
966
941
  function t() {
967
942
  var u;
968
943
  const d = e.image || e.src;
@@ -978,24 +953,24 @@ function gt(e) {
978
953
  return G(d);
979
954
  }
980
955
  function n() {
981
- var s;
982
- return (s = t == null ? void 0 : t()) != null && s.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
956
+ var l;
957
+ return (l = t == null ? void 0 : t()) != null && l.match(/builder\.io/) && !e.noWebp ? t().replace(/\?/g, "?format=webp&") : "";
983
958
  }
984
959
  function i() {
985
- const s = {
960
+ const l = {
986
961
  position: "absolute",
987
962
  height: "100%",
988
963
  width: "100%",
989
964
  left: "0px",
990
965
  top: "0px"
991
966
  };
992
- return e.aspectRatio ? s : void 0;
967
+ return e.aspectRatio ? l : void 0;
993
968
  }
994
- return /* @__PURE__ */ R(f, { children: [
995
- /* @__PURE__ */ R(f, { children: [
996
- /* @__PURE__ */ R("picture", { children: [
997
- n() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l("source", { type: "image/webp", srcSet: n() }) }) : null,
998
- /* @__PURE__ */ l(
969
+ return /* @__PURE__ */ E(f, { children: [
970
+ /* @__PURE__ */ E(f, { children: [
971
+ /* @__PURE__ */ E("picture", { children: [
972
+ n() ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c("source", { type: "image/webp", srcSet: n() }) }) : null,
973
+ /* @__PURE__ */ c(
999
974
  "img",
1000
975
  {
1001
976
  loading: "lazy",
@@ -1006,33 +981,33 @@ function gt(e) {
1006
981
  objectFit: e.backgroundSize || "cover",
1007
982
  ...i()
1008
983
  },
1009
- className: "builder-image" + (e.className ? " " + e.className : "") + " img-dbab4030",
984
+ className: "builder-image" + (e.className ? " " + e.className : "") + " img-40c70c9b",
1010
985
  src: e.image,
1011
986
  srcSet: t(),
1012
987
  sizes: e.sizes
1013
988
  }
1014
989
  )
1015
990
  ] }),
1016
- e.aspectRatio && !((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length && e.fitContent) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
991
+ e.aspectRatio && !((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length && e.fitContent) ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(
1017
992
  "div",
1018
993
  {
1019
- className: "builder-image-sizer div-dbab4030",
994
+ className: "builder-image-sizer div-40c70c9b",
1020
995
  style: {
1021
996
  paddingTop: e.aspectRatio * 100 + "%"
1022
997
  }
1023
998
  }
1024
999
  ) }) : null,
1025
- (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(f, { children: e.children }) : null,
1026
- !e.fitContent && e.children ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l("div", { className: "div-dbab4030-2", children: e.children }) }) : null
1000
+ (s = (o = e.builderBlock) == null ? void 0 : o.children) != null && s.length && e.fitContent ? /* @__PURE__ */ c(f, { children: e.children }) : null,
1001
+ !e.fitContent && e.children ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c("div", { className: "div-40c70c9b-2", children: e.children }) }) : null
1027
1002
  ] }),
1028
- /* @__PURE__ */ l("style", { children: `.img-dbab4030 {
1003
+ /* @__PURE__ */ c("style", { children: `.img-40c70c9b {
1029
1004
  opacity: 1;
1030
1005
  transition: opacity 0.2s ease-in-out;
1031
- }.div-dbab4030 {
1006
+ }.div-40c70c9b {
1032
1007
  width: 100%;
1033
1008
  pointer-events: none;
1034
1009
  font-size: 0;
1035
- }.div-dbab4030-2 {
1010
+ }.div-40c70c9b-2 {
1036
1011
  display: flex;
1037
1012
  flex-direction: column;
1038
1013
  align-items: stretch;
@@ -1045,7 +1020,7 @@ function gt(e) {
1045
1020
  ] });
1046
1021
  }
1047
1022
  function bt(e) {
1048
- return /* @__PURE__ */ l(
1023
+ return /* @__PURE__ */ c(
1049
1024
  "section",
1050
1025
  {
1051
1026
  ...e.attributes,
@@ -1277,7 +1252,7 @@ const xt = {
1277
1252
  });
1278
1253
  }
1279
1254
  const n = e.get("columns");
1280
- Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((o) => !o.get("width")) || n.reduce((c, s) => c + s.get("width"), 0) !== 100) && t();
1255
+ Array.isArray(n) && n.find((a) => a.get("width")) && (n.find((r) => !r.get("width")) || n.reduce((s, l) => s + l.get("width"), 0) !== 100) && t();
1281
1256
  }
1282
1257
  }, {
1283
1258
  name: "space",
@@ -1323,14 +1298,14 @@ const xt = {
1323
1298
  }]
1324
1299
  };
1325
1300
  function pt(e) {
1326
- const t = ee(null), [n, i] = S(() => []), [a, o] = S(() => []);
1327
- return W(() => {
1328
- var c;
1329
- if (!((c = t.current) != null && c.getElementsByTagName) || typeof window == "undefined")
1301
+ const t = ee(null), [n, i] = S(() => []), [a, r] = S(() => []);
1302
+ return P(() => {
1303
+ var s;
1304
+ if (!((s = t.current) != null && s.getElementsByTagName) || typeof window == "undefined")
1330
1305
  return;
1331
- const r = t.current.getElementsByTagName("script");
1332
- for (let s = 0; s < r.length; s++) {
1333
- const d = r[s];
1306
+ const o = t.current.getElementsByTagName("script");
1307
+ for (let l = 0; l < o.length; l++) {
1308
+ const d = o[l];
1334
1309
  if (d.src) {
1335
1310
  if (n.includes(d.src))
1336
1311
  continue;
@@ -1351,7 +1326,7 @@ function pt(e) {
1351
1326
  }
1352
1327
  }
1353
1328
  }
1354
- }, []), /* @__PURE__ */ l(
1329
+ }, []), /* @__PURE__ */ c(
1355
1330
  "div",
1356
1331
  {
1357
1332
  ref: t,
@@ -1387,8 +1362,8 @@ const vt = {
1387
1362
  }]
1388
1363
  }, kt = ["text/javascript", "application/javascript", "application/ecmascript"], Ct = (e) => kt.includes(e.type);
1389
1364
  function wt(e) {
1390
- const t = ee(null), [n, i] = S(() => []), [a, o] = S(() => []), [r, c] = S(() => !1);
1391
- function s() {
1365
+ const t = ee(null), [n, i] = S(() => []), [a, r] = S(() => []), [o, s] = S(() => !1);
1366
+ function l() {
1392
1367
  if (!t.current || !t.current.getElementsByTagName)
1393
1368
  return;
1394
1369
  const d = t.current.getElementsByTagName("script");
@@ -1396,19 +1371,19 @@ function wt(e) {
1396
1371
  const g = d[u];
1397
1372
  if (g.src && !n.includes(g.src)) {
1398
1373
  n.push(g.src);
1399
- const v = document.createElement("script");
1400
- v.async = !0, v.src = g.src, document.head.appendChild(v);
1374
+ const p = document.createElement("script");
1375
+ p.async = !0, p.src = g.src, document.head.appendChild(p);
1401
1376
  } else if (Ct(g) && !a.includes(g.innerText))
1402
1377
  try {
1403
1378
  a.push(g.innerText), new Function(g.innerText)();
1404
- } catch (v) {
1405
- console.warn("`Embed`: Error running script:", v);
1379
+ } catch (p) {
1380
+ console.warn("`Embed`: Error running script:", p);
1406
1381
  }
1407
1382
  }
1408
1383
  }
1409
- return W(() => {
1410
- t.current && !r && (c(!0), s());
1411
- }, [t.current, r]), /* @__PURE__ */ l(
1384
+ return P(() => {
1385
+ t.current && !o && (s(!0), l());
1386
+ }, [t.current, o]), /* @__PURE__ */ c(
1412
1387
  "div",
1413
1388
  {
1414
1389
  className: "builder-embed",
@@ -1443,29 +1418,29 @@ const It = {
1443
1418
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
1444
1419
  onChange: (e) => {
1445
1420
  e.delete("srcset"), e.delete("noWebp");
1446
- function n(r, c = 6e4) {
1447
- return new Promise((s, d) => {
1421
+ function n(o, s = 6e4) {
1422
+ return new Promise((l, d) => {
1448
1423
  const u = document.createElement("img");
1449
1424
  let g = !1;
1450
1425
  u.onload = () => {
1451
- g = !0, s(u);
1452
- }, u.addEventListener("error", (v) => {
1453
- console.warn("Image load failed", v.error), d(v.error);
1454
- }), u.src = r, setTimeout(() => {
1426
+ g = !0, l(u);
1427
+ }, u.addEventListener("error", (p) => {
1428
+ console.warn("Image load failed", p.error), d(p.error);
1429
+ }), u.src = o, setTimeout(() => {
1455
1430
  g || d(new Error("Image load timed out"));
1456
- }, c);
1431
+ }, s);
1457
1432
  });
1458
1433
  }
1459
- function i(r) {
1460
- return Math.round(r * 1e3) / 1e3;
1434
+ function i(o) {
1435
+ return Math.round(o * 1e3) / 1e3;
1461
1436
  }
1462
- const a = e.get("image"), o = e.get("aspectRatio");
1463
- if (fetch(a).then((r) => r.blob()).then((r) => {
1464
- r.type.includes("svg") && e.set("noWebp", !0);
1465
- }), a && (!o || o === 0.7041))
1466
- return n(a).then((r) => {
1467
- const c = e.get("aspectRatio");
1468
- e.get("image") === a && (!c || c === 0.7041) && r.width && r.height && (e.set("aspectRatio", i(r.height / r.width)), e.set("height", r.height), e.set("width", r.width));
1437
+ const a = e.get("image"), r = e.get("aspectRatio");
1438
+ if (fetch(a).then((o) => o.blob()).then((o) => {
1439
+ o.type.includes("svg") && e.set("noWebp", !0);
1440
+ }), a && (!r || r === 0.7041))
1441
+ return n(a).then((o) => {
1442
+ const s = e.get("aspectRatio");
1443
+ e.get("image") === a && (!s || s === 0.7041) && o.width && o.height && (e.set("aspectRatio", i(o.height / o.width)), e.set("height", o.height), e.set("width", o.width));
1469
1444
  });
1470
1445
  }
1471
1446
  }, {
@@ -1539,7 +1514,7 @@ const It = {
1539
1514
  static: !0
1540
1515
  };
1541
1516
  function Et(e) {
1542
- return /* @__PURE__ */ l(
1517
+ return /* @__PURE__ */ c(
1543
1518
  "img",
1544
1519
  {
1545
1520
  style: {
@@ -1646,7 +1621,7 @@ const Pt = {
1646
1621
  };
1647
1622
  function At(e) {
1648
1623
  var t;
1649
- return /* @__PURE__ */ l(
1624
+ return /* @__PURE__ */ c(
1650
1625
  "div",
1651
1626
  {
1652
1627
  className: "builder-text",
@@ -1740,7 +1715,7 @@ const Vt = {
1740
1715
  }]
1741
1716
  };
1742
1717
  function $t(e) {
1743
- var i, a, o, r, c, s, d;
1718
+ var i, a, r, o, s, l, d;
1744
1719
  function t() {
1745
1720
  return {
1746
1721
  ...e.autoPlay === !0 ? {
@@ -1765,14 +1740,14 @@ function $t(e) {
1765
1740
  ...t()
1766
1741
  };
1767
1742
  }
1768
- return /* @__PURE__ */ R(
1743
+ return /* @__PURE__ */ E(
1769
1744
  "div",
1770
1745
  {
1771
1746
  style: {
1772
1747
  position: "relative"
1773
1748
  },
1774
1749
  children: [
1775
- /* @__PURE__ */ l(
1750
+ /* @__PURE__ */ c(
1776
1751
  "video",
1777
1752
  {
1778
1753
  className: "builder-video",
@@ -1794,10 +1769,10 @@ function $t(e) {
1794
1769
  },
1795
1770
  src: e.video || "no-src",
1796
1771
  poster: e.posterImage,
1797
- children: e.lazyLoad ? null : /* @__PURE__ */ l("source", { type: "video/mp4", src: e.video })
1772
+ children: e.lazyLoad ? null : /* @__PURE__ */ c("source", { type: "video/mp4", src: e.video })
1798
1773
  }
1799
1774
  ),
1800
- e.aspectRatio && !(e.fitContent && ((o = (a = e.builderBlock) == null ? void 0 : a.children) != null && o.length)) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
1775
+ e.aspectRatio && !(e.fitContent && ((r = (a = e.builderBlock) == null ? void 0 : a.children) != null && r.length)) ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(
1801
1776
  "div",
1802
1777
  {
1803
1778
  style: {
@@ -1808,7 +1783,7 @@ function $t(e) {
1808
1783
  }
1809
1784
  }
1810
1785
  ) }) : null,
1811
- (c = (r = e.builderBlock) == null ? void 0 : r.children) != null && c.length && e.fitContent ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
1786
+ (s = (o = e.builderBlock) == null ? void 0 : o.children) != null && s.length && e.fitContent ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(
1812
1787
  "div",
1813
1788
  {
1814
1789
  style: {
@@ -1819,7 +1794,7 @@ function $t(e) {
1819
1794
  children: e.children
1820
1795
  }
1821
1796
  ) }) : null,
1822
- (d = (s = e.builderBlock) == null ? void 0 : s.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
1797
+ (d = (l = e.builderBlock) == null ? void 0 : l.children) != null && d.length && !e.fitContent ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(
1823
1798
  "div",
1824
1799
  {
1825
1800
  style: {
@@ -1840,8 +1815,8 @@ function $t(e) {
1840
1815
  }
1841
1816
  );
1842
1817
  }
1843
- const ye = () => [{
1844
- component: Ue,
1818
+ const xe = () => [{
1819
+ component: Me,
1845
1820
  ...xt
1846
1821
  }, {
1847
1822
  component: ut,
@@ -1963,27 +1938,27 @@ const ye = () => [{
1963
1938
  thisScriptEl?.remove();
1964
1939
  }
1965
1940
  return;
1966
- }`, We = "builderIoAbTest", Be = "builderIoRenderContent", M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1941
+ }`, Pe = "builderIoAbTest", We = "builderIoRenderContent", M = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1967
1942
  ...t,
1968
1943
  testVariationId: t.id,
1969
1944
  id: e == null ? void 0 : e.id
1970
1945
  })), _t = ({
1971
1946
  canTrack: e,
1972
1947
  content: t
1973
- }) => !(!(M(t).length > 0) || !e || $()), Lt = (e) => e === "react" || e === "reactNative", Ae = Lt(L), jt = () => `
1974
- window.${We} = ${Nt}
1975
- window.${Be} = ${Ft}
1948
+ }) => !(!(M(t).length > 0) || !e || $()), Lt = (e) => e === "react" || e === "reactNative", Be = Lt(L), jt = () => `
1949
+ window.${Pe} = ${Nt}
1950
+ window.${We} = ${Ft}
1976
1951
  `, Mt = (e, t) => `
1977
- window.${We}(
1978
- "${t}",${JSON.stringify(e)}, ${Ae}
1952
+ window.${Pe}(
1953
+ "${t}",${JSON.stringify(e)}, ${Be}
1979
1954
  )`, Ut = ({
1980
1955
  contentId: e,
1981
1956
  variationId: t
1982
- }) => `window.${Be}(
1983
- "${t}", "${e}", ${Ae}
1957
+ }) => `window.${We}(
1958
+ "${t}", "${e}", ${Be}
1984
1959
  )`;
1985
1960
  function Z(e) {
1986
- return /* @__PURE__ */ l(
1961
+ return /* @__PURE__ */ c(
1987
1962
  "script",
1988
1963
  {
1989
1964
  dangerouslySetInnerHTML: { __html: e.scriptStr },
@@ -1991,7 +1966,7 @@ function Z(e) {
1991
1966
  }
1992
1967
  );
1993
1968
  }
1994
- function Se(e) {
1969
+ function ye(e) {
1995
1970
  return Math.round(e * 1e3) / 1e3;
1996
1971
  }
1997
1972
  const Dt = (e, t, n = !0) => {
@@ -2008,33 +1983,33 @@ const Dt = (e, t, n = !0) => {
2008
1983
  }, Ot = (e) => Dt(e, (t) => {
2009
1984
  const n = t.getAttribute("builder-id") || t.id;
2010
1985
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2011
- }), pe = ({
1986
+ }), Se = ({
2012
1987
  event: e,
2013
1988
  target: t
2014
1989
  }) => {
2015
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = Se(i / n.width), r = Se(a / n.height);
1990
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, r = ye(i / n.width), o = ye(a / n.height);
2016
1991
  return {
2017
- x: o,
2018
- y: r
1992
+ x: r,
1993
+ y: o
2019
1994
  };
2020
1995
  }, Kt = (e) => {
2021
1996
  const t = e.target, n = t && Ot(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2022
1997
  return {
2023
1998
  targetBuilderElement: i || void 0,
2024
1999
  metadata: {
2025
- targetOffset: t ? pe({
2000
+ targetOffset: t ? Se({
2026
2001
  event: e,
2027
2002
  target: t
2028
2003
  }) : void 0,
2029
- builderTargetOffset: n ? pe({
2004
+ builderTargetOffset: n ? Se({
2030
2005
  event: e,
2031
2006
  target: n
2032
2007
  }) : void 0,
2033
2008
  builderElementIndex: n && i ? [].slice.call(document.getElementsByClassName(i)).indexOf(n) : void 0
2034
2009
  }
2035
2010
  };
2036
- }, Ht = "0.11.1", zt = () => {
2037
- Fe("insertMenu", {
2011
+ }, Ht = "0.11.3", zt = () => {
2012
+ Ne("insertMenu", {
2038
2013
  name: "_default",
2039
2014
  default: !0,
2040
2015
  items: [{
@@ -2056,10 +2031,10 @@ const Dt = (e, t, n = !0) => {
2056
2031
  }]
2057
2032
  });
2058
2033
  };
2059
- let ve = !1;
2034
+ let pe = !1;
2060
2035
  const qt = (e = {}) => {
2061
2036
  var t, n;
2062
- ve || (ve = !0, $() && ((t = window.parent) == null || t.postMessage({
2037
+ pe || (pe = !0, $() && ((t = window.parent) == null || t.postMessage({
2063
2038
  type: "builder.sdkInfo",
2064
2039
  data: {
2065
2040
  target: L,
@@ -2078,37 +2053,37 @@ const qt = (e = {}) => {
2078
2053
  }, "*"), window.addEventListener("message", ({
2079
2054
  data: i
2080
2055
  }) => {
2081
- var a, o;
2056
+ var a, r;
2082
2057
  if (i != null && i.type)
2083
2058
  switch (i.type) {
2084
2059
  case "builder.evaluate": {
2085
- const r = i.data.text, c = i.data.arguments || [], s = i.data.id, d = new Function(r);
2060
+ const o = i.data.text, s = i.data.arguments || [], l = i.data.id, d = new Function(o);
2086
2061
  let u, g = null;
2087
2062
  try {
2088
- u = d.apply(null, c);
2089
- } catch (v) {
2090
- g = v;
2063
+ u = d.apply(null, s);
2064
+ } catch (p) {
2065
+ g = p;
2091
2066
  }
2092
2067
  g ? (a = window.parent) == null || a.postMessage({
2093
2068
  type: "builder.evaluateError",
2094
2069
  data: {
2095
- id: s,
2070
+ id: l,
2096
2071
  error: g.message
2097
2072
  }
2098
- }, "*") : u && typeof u.then == "function" ? u.then((v) => {
2099
- var P;
2100
- (P = window.parent) == null || P.postMessage({
2073
+ }, "*") : u && typeof u.then == "function" ? u.then((p) => {
2074
+ var x;
2075
+ (x = window.parent) == null || x.postMessage({
2101
2076
  type: "builder.evaluateResult",
2102
2077
  data: {
2103
- id: s,
2104
- result: v
2078
+ id: l,
2079
+ result: p
2105
2080
  }
2106
2081
  }, "*");
2107
- }).catch(console.error) : (o = window.parent) == null || o.postMessage({
2082
+ }).catch(console.error) : (r = window.parent) == null || r.postMessage({
2108
2083
  type: "builder.evaluateResult",
2109
2084
  data: {
2110
2085
  result: u,
2111
- id: s
2086
+ id: l
2112
2087
  }
2113
2088
  }, "*");
2114
2089
  break;
@@ -2117,10 +2092,10 @@ const qt = (e = {}) => {
2117
2092
  })));
2118
2093
  };
2119
2094
  function Yt(e) {
2120
- var N, F, q, oe, re, le, ce;
2095
+ var N, F, q, ae, oe, re, ce;
2121
2096
  const t = ee(null), [n, i] = S(() => 0);
2122
2097
  function a(m) {
2123
- var b, y, C, T, j;
2098
+ var b, y, k, T, j;
2124
2099
  const h = {
2125
2100
  ...e.builderContextSignal.content,
2126
2101
  ...m,
@@ -2131,18 +2106,18 @@ function Yt(e) {
2131
2106
  meta: {
2132
2107
  ...(y = e.builderContextSignal.content) == null ? void 0 : y.meta,
2133
2108
  ...m == null ? void 0 : m.meta,
2134
- breakpoints: ((C = m == null ? void 0 : m.meta) == null ? void 0 : C.breakpoints) || ((j = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : j.breakpoints)
2109
+ breakpoints: ((k = m == null ? void 0 : m.meta) == null ? void 0 : k.breakpoints) || ((j = (T = e.builderContextSignal.content) == null ? void 0 : T.meta) == null ? void 0 : j.breakpoints)
2135
2110
  }
2136
2111
  };
2137
- e.setBuilderContextSignal(($e) => ({
2138
- ...$e,
2112
+ e.setBuilderContextSignal((Ve) => ({
2113
+ ...Ve,
2139
2114
  content: h
2140
2115
  }));
2141
2116
  }
2142
2117
  S(() => 0);
2143
- const [o, r] = S(
2118
+ const [r, o] = S(
2144
2119
  () => !1
2145
- ), [c, s] = S(
2120
+ ), [s, l] = S(
2146
2121
  () => e.contentWrapper || "div"
2147
2122
  );
2148
2123
  function d(m) {
@@ -2151,19 +2126,19 @@ function Yt(e) {
2151
2126
  if (h)
2152
2127
  switch (h.type) {
2153
2128
  case "builder.configureSdk": {
2154
- const y = h.data, { breakpoints: C, contentId: T } = y;
2129
+ const y = h.data, { breakpoints: k, contentId: T } = y;
2155
2130
  if (!T || T !== ((b = e.builderContextSignal.content) == null ? void 0 : b.id))
2156
2131
  return;
2157
- C && a({
2132
+ k && a({
2158
2133
  meta: {
2159
- breakpoints: C
2134
+ breakpoints: k
2160
2135
  }
2161
2136
  }), i(n + 1);
2162
2137
  break;
2163
2138
  }
2164
2139
  case "builder.contentUpdate": {
2165
- const y = h.data, C = y.key || y.alias || y.entry || y.modelName, T = y.data;
2166
- C === e.model && (a(T), i(n + 1));
2140
+ const y = h.data, k = y.key || y.alias || y.entry || y.modelName, T = y.data;
2141
+ k === e.model && (a(T), i(n + 1));
2167
2142
  break;
2168
2143
  }
2169
2144
  }
@@ -2179,24 +2154,24 @@ function Yt(e) {
2179
2154
  rootSetState: e.builderContextSignal.rootSetState
2180
2155
  });
2181
2156
  }
2182
- const [g, v] = S(() => ({})), [P, x] = S(() => !1);
2183
- function k(m) {
2157
+ const [g, p] = S(() => ({})), [x, I] = S(() => !1);
2158
+ function v(m) {
2184
2159
  var h, b;
2185
2160
  if (e.builderContextSignal.content) {
2186
- const y = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, C = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
2187
- de({
2161
+ const y = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, k = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
2162
+ se({
2188
2163
  type: "click",
2189
2164
  canTrack: D(e.canTrack),
2190
- contentId: C,
2165
+ contentId: k,
2191
2166
  apiKey: e.apiKey,
2192
- variationId: y !== C ? y : void 0,
2167
+ variationId: y !== k ? y : void 0,
2193
2168
  ...Kt(m),
2194
- unique: !P
2169
+ unique: !x
2195
2170
  });
2196
2171
  }
2197
- P || x(!0);
2172
+ x || I(!0);
2198
2173
  }
2199
- function w(m) {
2174
+ function R(m) {
2200
2175
  return m.replace(
2201
2176
  /{{([^}]+)}}/g,
2202
2177
  (h, b) => _({
@@ -2208,32 +2183,32 @@ function Yt(e) {
2208
2183
  })
2209
2184
  );
2210
2185
  }
2211
- function E({ url: m, key: h }) {
2212
- je(m).then((b) => b.json()).then((b) => {
2213
- var C, T;
2186
+ function W({ url: m, key: h }) {
2187
+ Le(m).then((b) => b.json()).then((b) => {
2188
+ var k, T;
2214
2189
  const y = {
2215
2190
  ...e.builderContextSignal.rootState,
2216
2191
  [h]: b
2217
2192
  };
2218
- (T = (C = e.builderContextSignal).rootSetState) == null || T.call(C, y), g[h] = !0;
2193
+ (T = (k = e.builderContextSignal).rootSetState) == null || T.call(k, y), g[h] = !0;
2219
2194
  }).catch((b) => {
2220
2195
  console.error("error fetching dynamic data", m, b);
2221
2196
  });
2222
2197
  }
2223
- function I() {
2198
+ function C() {
2224
2199
  var h, b, y;
2225
2200
  const m = (y = (b = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : b.httpRequests) != null ? y : {};
2226
- Object.entries(m).forEach(([C, T]) => {
2227
- if (T && (!g[C] || V())) {
2228
- const j = w(T);
2229
- E({
2201
+ Object.entries(m).forEach(([k, T]) => {
2202
+ if (T && (!g[k] || V())) {
2203
+ const j = R(T);
2204
+ W({
2230
2205
  url: j,
2231
- key: C
2206
+ key: k
2232
2207
  });
2233
2208
  }
2234
2209
  });
2235
2210
  }
2236
- function p() {
2211
+ function w() {
2237
2212
  V() && window.dispatchEvent(
2238
2213
  new CustomEvent(
2239
2214
  "builder:component:stateChange",
@@ -2263,18 +2238,18 @@ function Yt(e) {
2263
2238
  e.builderContextSignal.componentInfos
2264
2239
  ).forEach((h) => {
2265
2240
  var y;
2266
- const b = Le(h);
2241
+ const b = _e(h);
2267
2242
  (y = window.parent) == null || y.postMessage(b, "*");
2268
2243
  }), window.addEventListener(
2269
2244
  "builder:component:stateChangeListenerActivated",
2270
- p
2245
+ w
2271
2246
  );
2272
2247
  }
2273
2248
  function A(m) {
2274
2249
  const h = new URL(location.href).searchParams, b = h.get("builder.preview"), y = h.get(
2275
2250
  `builder.preview.${b}`
2276
- ), C = h.get("apiKey") || h.get("builder.space");
2277
- b === e.model && C === e.apiKey && (!e.content || y === e.content.id) && Ie({
2251
+ ), k = h.get("apiKey") || h.get("builder.space");
2252
+ b === e.model && k === e.apiKey && (!e.content || y === e.content.id) && we({
2278
2253
  model: e.model,
2279
2254
  apiKey: e.apiKey,
2280
2255
  apiVersion: e.builderContextSignal.apiVersion
@@ -2282,7 +2257,7 @@ function Yt(e) {
2282
2257
  T && a(T);
2283
2258
  });
2284
2259
  }
2285
- return W(() => {
2260
+ return P(() => {
2286
2261
  var m;
2287
2262
  return (m = t.current) == null || m.addEventListener(
2288
2263
  "initeditingbldr",
@@ -2294,7 +2269,7 @@ function Yt(e) {
2294
2269
  B
2295
2270
  );
2296
2271
  };
2297
- }, []), W(() => {
2272
+ }, []), P(() => {
2298
2273
  var m;
2299
2274
  return (m = t.current) == null || m.addEventListener(
2300
2275
  "initpreviewingbldr",
@@ -2306,63 +2281,63 @@ function Yt(e) {
2306
2281
  A
2307
2282
  );
2308
2283
  };
2309
- }, []), W(() => {
2284
+ }, []), P(() => {
2310
2285
  var m, h;
2311
2286
  if ($()) {
2312
2287
  if (V() && t.current && t.current.dispatchEvent(new CustomEvent("initeditingbldr")), e.builderContextSignal.content && D(e.canTrack)) {
2313
- const y = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, C = (h = e.builderContextSignal.content) == null ? void 0 : h.id, T = e.apiKey;
2314
- de({
2288
+ const y = (m = e.builderContextSignal.content) == null ? void 0 : m.testVariationId, k = (h = e.builderContextSignal.content) == null ? void 0 : h.id, T = e.apiKey;
2289
+ se({
2315
2290
  type: "impression",
2316
2291
  canTrack: !0,
2317
- contentId: C,
2292
+ contentId: k,
2318
2293
  apiKey: T,
2319
- variationId: y !== C ? y : void 0
2294
+ variationId: y !== k ? y : void 0
2320
2295
  });
2321
2296
  }
2322
- _e() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2297
+ Fe() && t.current && t.current.dispatchEvent(new CustomEvent("initpreviewingbldr"));
2323
2298
  }
2324
- }, []), W(() => {
2299
+ }, []), P(() => {
2325
2300
  e.apiKey || U.error(
2326
2301
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2327
- ), u(), I(), p();
2328
- }, []), W(() => {
2302
+ ), u(), C(), w();
2303
+ }, []), P(() => {
2329
2304
  e.content && a(e.content);
2330
- }, [e.content]), W(() => {
2331
- }, [o]), W(() => {
2305
+ }, [e.content]), P(() => {
2306
+ }, [r]), P(() => {
2332
2307
  u();
2333
2308
  }, [
2334
2309
  (F = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : F.jsCode,
2335
2310
  e.builderContextSignal.rootState
2336
- ]), W(() => {
2337
- I();
2338
- }, [(oe = (q = e.builderContextSignal.content) == null ? void 0 : q.data) == null ? void 0 : oe.httpRequests]), W(() => {
2339
- p();
2340
- }, [e.builderContextSignal.rootState]), W(() => () => {
2311
+ ]), P(() => {
2312
+ C();
2313
+ }, [(ae = (q = e.builderContextSignal.content) == null ? void 0 : q.data) == null ? void 0 : ae.httpRequests]), P(() => {
2314
+ w();
2315
+ }, [e.builderContextSignal.rootState]), P(() => () => {
2341
2316
  $() && (window.removeEventListener("message", d), window.removeEventListener(
2342
2317
  "builder:component:stateChangeListenerActivated",
2343
- p
2318
+ w
2344
2319
  ));
2345
- }, []), /* @__PURE__ */ l(ne.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ we(
2346
- c,
2320
+ }, []), /* @__PURE__ */ c(ne.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ Ce(
2321
+ s,
2347
2322
  {
2348
2323
  key: n,
2349
2324
  ref: t,
2350
- onClick: (m) => k(m),
2351
- "builder-content-id": (re = e.builderContextSignal.content) == null ? void 0 : re.id,
2325
+ onClick: (m) => v(m),
2326
+ "builder-content-id": (oe = e.builderContextSignal.content) == null ? void 0 : oe.id,
2352
2327
  "builder-model": e.model,
2353
2328
  ...e.showContent ? {} : {
2354
2329
  hidden: !0,
2355
2330
  "aria-hidden": !0
2356
2331
  },
2357
2332
  ...e.contentWrapperProps,
2358
- className: `variant-${((le = e.content) == null ? void 0 : le.testVariationId) || ((ce = e.content) == null ? void 0 : ce.id)}`
2333
+ className: `variant-${((re = e.content) == null ? void 0 : re.testVariationId) || ((ce = e.content) == null ? void 0 : ce.id)}`
2359
2334
  },
2360
2335
  e.children
2361
2336
  ) }) : null });
2362
2337
  }
2363
2338
  const Qt = (e) => {
2364
- var o, r;
2365
- 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;
2339
+ var r, o;
2340
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (o = e.fileUrl) != null ? o : (r = e == null ? void 0 : e.files) == null ? void 0 : r.regular;
2366
2341
  let a = "";
2367
2342
  if (i && t && n && (a += `
2368
2343
  @font-face {
@@ -2372,16 +2347,16 @@ font-display: fallback;
2372
2347
  font-weight: 400;
2373
2348
  }
2374
2349
  `.trim()), e.files)
2375
- for (const c in e.files) {
2376
- if (!(String(Number(c)) === c))
2350
+ for (const s in e.files) {
2351
+ if (!(String(Number(s)) === s))
2377
2352
  continue;
2378
- const d = e.files[c];
2353
+ const d = e.files[s];
2379
2354
  d && d !== i && (a += `
2380
2355
  @font-face {
2381
2356
  font-family: "${t}";
2382
2357
  src: url('${d}') format('woff2');
2383
2358
  font-display: fallback;
2384
- font-weight: ${c};
2359
+ font-weight: ${s};
2385
2360
  }
2386
2361
  `.trim());
2387
2362
  }
@@ -2420,17 +2395,17 @@ ${Gt({
2420
2395
  }
2421
2396
  `.trim()
2422
2397
  );
2423
- return /* @__PURE__ */ l(H, { styles: t });
2398
+ return /* @__PURE__ */ c(H, { styles: t });
2424
2399
  }
2425
2400
  const Zt = ({
2426
2401
  content: e,
2427
2402
  data: t,
2428
2403
  locale: n
2429
2404
  }) => {
2430
- var o, r, c;
2431
- const i = {}, a = ((o = e == null ? void 0 : e.data) == null ? void 0 : o.state) || {};
2432
- return (c = (r = e == null ? void 0 : e.data) == null ? void 0 : r.inputs) == null || c.forEach((s) => {
2433
- s.name && s.defaultValue !== void 0 && (i[s.name] = s.defaultValue);
2405
+ var r, o, s;
2406
+ const i = {}, a = ((r = e == null ? void 0 : e.data) == null ? void 0 : r.state) || {};
2407
+ return (s = (o = e == null ? void 0 : e.data) == null ? void 0 : o.inputs) == null || s.forEach((l) => {
2408
+ l.name && l.defaultValue !== void 0 && (i[l.name] = l.defaultValue);
2434
2409
  }), {
2435
2410
  ...i,
2436
2411
  ...a,
@@ -2450,46 +2425,46 @@ const Zt = ({
2450
2425
  },
2451
2426
  meta: e == null ? void 0 : e.meta
2452
2427
  } : void 0;
2453
- function ke(e) {
2454
- var s, d, u, g, v, P, x;
2428
+ function ve(e) {
2429
+ var l, d, u, g, p, x, I;
2455
2430
  const [t, n] = S(
2456
2431
  () => {
2457
- var k, w;
2432
+ var v, R;
2458
2433
  return Ut({
2459
2434
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2460
- variationId: (k = e.content) == null ? void 0 : k.testVariationId,
2435
+ variationId: (v = e.content) == null ? void 0 : v.testVariationId,
2461
2436
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2462
- contentId: (w = e.content) == null ? void 0 : w.id
2437
+ contentId: (R = e.content) == null ? void 0 : R.id
2463
2438
  });
2464
2439
  }
2465
2440
  );
2466
- function i(k) {
2467
- c((w) => ({
2468
- ...w,
2469
- rootState: k
2441
+ function i(v) {
2442
+ s((R) => ({
2443
+ ...R,
2444
+ rootState: v
2470
2445
  }));
2471
2446
  }
2472
- const [a, o] = S(
2447
+ const [a, r] = S(
2473
2448
  () => [
2474
- ...ye(),
2449
+ ...xe(),
2475
2450
  // While this `components` object is deprecated, we must maintain support for it.
2476
2451
  // Since users are able to override our default components, we need to make sure that we do not break such
2477
2452
  // existing usage.
2478
2453
  // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
2479
2454
  // which is the new standard way of providing custom components, and must therefore take precedence.
2480
- ...ue,
2455
+ ...de,
2481
2456
  ...e.customComponents || []
2482
2457
  ].reduce(
2483
- (k, { component: w, ...E }) => ({
2484
- ...k,
2485
- [E.name]: {
2486
- component: w,
2487
- ...me(E)
2458
+ (v, { component: R, ...W }) => ({
2459
+ ...v,
2460
+ [W.name]: {
2461
+ component: R,
2462
+ ...ue(W)
2488
2463
  }
2489
2464
  }),
2490
2465
  {}
2491
2466
  )
2492
- ), [r, c] = S(() => ({
2467
+ ), [o, s] = S(() => ({
2493
2468
  content: en({
2494
2469
  content: e.content,
2495
2470
  data: e.data
@@ -2505,18 +2480,18 @@ function ke(e) {
2505
2480
  apiKey: e.apiKey,
2506
2481
  apiVersion: e.apiVersion,
2507
2482
  componentInfos: [
2508
- ...ye(),
2483
+ ...xe(),
2509
2484
  // While this `components` object is deprecated, we must maintain support for it.
2510
2485
  // Since users are able to override our default components, we need to make sure that we do not break such
2511
2486
  // existing usage.
2512
2487
  // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
2513
2488
  // which is the new standard way of providing custom components, and must therefore take precedence.
2514
- ...ue,
2489
+ ...de,
2515
2490
  ...e.customComponents || []
2516
2491
  ].reduce(
2517
- (k, { component: w, ...E }) => ({
2518
- ...k,
2519
- [E.name]: me(E)
2492
+ (v, { component: R, ...W }) => ({
2493
+ ...v,
2494
+ [W.name]: ue(W)
2520
2495
  }),
2521
2496
  {}
2522
2497
  ),
@@ -2524,13 +2499,13 @@ function ke(e) {
2524
2499
  BlocksWrapper: e.blocksWrapper || "div",
2525
2500
  BlocksWrapperProps: e.blocksWrapperProps || {}
2526
2501
  }));
2527
- return /* @__PURE__ */ l(
2528
- Te.Provider,
2502
+ return /* @__PURE__ */ c(
2503
+ Ie.Provider,
2529
2504
  {
2530
2505
  value: {
2531
2506
  registeredComponents: a
2532
2507
  },
2533
- children: /* @__PURE__ */ R(
2508
+ children: /* @__PURE__ */ E(
2534
2509
  Yt,
2535
2510
  {
2536
2511
  content: e.content,
@@ -2542,25 +2517,25 @@ function ke(e) {
2542
2517
  includeRefs: e.includeRefs,
2543
2518
  enrich: e.enrich,
2544
2519
  showContent: e.showContent,
2545
- builderContextSignal: r,
2520
+ builderContextSignal: o,
2546
2521
  contentWrapper: e.contentWrapper,
2547
2522
  contentWrapperProps: e.contentWrapperProps,
2548
- setBuilderContextSignal: c,
2523
+ setBuilderContextSignal: s,
2549
2524
  children: [
2550
- e.isSsrAbTest ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(Z, { scriptStr: t }) }) : null,
2551
- /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
2525
+ e.isSsrAbTest ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(Z, { scriptStr: t }) }) : null,
2526
+ /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(
2552
2527
  Xt,
2553
2528
  {
2554
- contentId: (s = r.content) == null ? void 0 : s.id,
2555
- cssCode: (u = (d = r.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
2556
- customFonts: (v = (g = r.content) == null ? void 0 : g.data) == null ? void 0 : v.customFonts
2529
+ contentId: (l = o.content) == null ? void 0 : l.id,
2530
+ cssCode: (u = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : u.cssCode,
2531
+ customFonts: (p = (g = o.content) == null ? void 0 : g.data) == null ? void 0 : p.customFonts
2557
2532
  }
2558
2533
  ) }),
2559
- /* @__PURE__ */ l(
2560
- ae,
2534
+ /* @__PURE__ */ c(
2535
+ ie,
2561
2536
  {
2562
- blocks: (x = (P = r.content) == null ? void 0 : P.data) == null ? void 0 : x.blocks,
2563
- context: r,
2537
+ blocks: (I = (x = o.content) == null ? void 0 : x.data) == null ? void 0 : I.blocks,
2538
+ context: o,
2564
2539
  registeredComponents: a
2565
2540
  }
2566
2541
  )
@@ -2570,8 +2545,8 @@ function ke(e) {
2570
2545
  }
2571
2546
  );
2572
2547
  }
2573
- function Ve(e) {
2574
- var r, c;
2548
+ function Ae(e) {
2549
+ var o, s;
2575
2550
  const [t, n] = S(
2576
2551
  () => _t({
2577
2552
  canTrack: D(e.canTrack),
@@ -2579,44 +2554,44 @@ function Ve(e) {
2579
2554
  })
2580
2555
  );
2581
2556
  function i() {
2582
- var s;
2557
+ var l;
2583
2558
  return Mt(
2584
2559
  M(e.content).map((d) => ({
2585
2560
  id: d.testVariationId,
2586
2561
  testRatio: d.testRatio
2587
2562
  })),
2588
- ((s = e.content) == null ? void 0 : s.id) || ""
2563
+ ((l = e.content) == null ? void 0 : l.id) || ""
2589
2564
  );
2590
2565
  }
2591
2566
  function a() {
2592
- return M(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
2567
+ return M(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
2593
2568
  }
2594
- function o() {
2595
- var s;
2569
+ function r() {
2570
+ var l;
2596
2571
  return t ? {
2597
2572
  ...e.content,
2598
- testVariationId: (s = e.content) == null ? void 0 : s.id
2599
- } : Me({
2573
+ testVariationId: (l = e.content) == null ? void 0 : l.id
2574
+ } : je({
2600
2575
  item: e.content,
2601
2576
  canTrack: D(e.canTrack)
2602
2577
  });
2603
2578
  }
2604
- return W(() => {
2605
- }, []), /* @__PURE__ */ R(f, { children: [
2606
- !e.__isNestedRender && L !== "reactNative" ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(Z, { scriptStr: jt() }) }) : null,
2607
- t ? /* @__PURE__ */ R(f, { children: [
2608
- /* @__PURE__ */ l(
2579
+ return P(() => {
2580
+ }, []), /* @__PURE__ */ E(f, { children: [
2581
+ !e.__isNestedRender && L !== "reactNative" ? /* @__PURE__ */ c(f, { children: /* @__PURE__ */ c(Z, { scriptStr: jt() }) }) : null,
2582
+ t ? /* @__PURE__ */ E(f, { children: [
2583
+ /* @__PURE__ */ c(
2609
2584
  H,
2610
2585
  {
2611
- id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
2586
+ id: `variants-styles-${(o = e.content) == null ? void 0 : o.id}`,
2612
2587
  styles: a()
2613
2588
  }
2614
2589
  ),
2615
- /* @__PURE__ */ l(Z, { scriptStr: i() }),
2616
- (c = M(e.content)) == null ? void 0 : c.map((s) => /* @__PURE__ */ l(
2617
- ke,
2590
+ /* @__PURE__ */ c(Z, { scriptStr: i() }),
2591
+ (s = M(e.content)) == null ? void 0 : s.map((l) => /* @__PURE__ */ c(
2592
+ ve,
2618
2593
  {
2619
- content: s,
2594
+ content: l,
2620
2595
  showContent: !1,
2621
2596
  model: e.model,
2622
2597
  data: e.data,
@@ -2634,13 +2609,13 @@ function Ve(e) {
2634
2609
  contentWrapper: e.contentWrapper,
2635
2610
  contentWrapperProps: e.contentWrapperProps
2636
2611
  },
2637
- s.testVariationId
2612
+ l.testVariationId
2638
2613
  ))
2639
2614
  ] }) : null,
2640
- /* @__PURE__ */ l(
2641
- ke,
2615
+ /* @__PURE__ */ c(
2616
+ ve,
2642
2617
  {
2643
- content: o(),
2618
+ content: r(),
2644
2619
  showContent: !0,
2645
2620
  model: e.model,
2646
2621
  data: e.data,
@@ -2667,7 +2642,7 @@ const tn = async ({
2667
2642
  }) => {
2668
2643
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
2669
2644
  (e != null && e.apiKey))
2670
- return Ie({
2645
+ return we({
2671
2646
  model: t.model,
2672
2647
  apiKey: e.apiKey,
2673
2648
  apiVersion: e.apiVersion,
@@ -2681,33 +2656,33 @@ const tn = async ({
2681
2656
  });
2682
2657
  };
2683
2658
  function nn(e) {
2684
- var o, r, c;
2659
+ var r, o, s;
2685
2660
  function t() {
2686
- var s, d;
2661
+ var l, d;
2687
2662
  return [
2688
2663
  e.attributes.className,
2689
2664
  "builder-symbol",
2690
- (s = e.symbol) != null && s.inline ? "builder-inline-symbol" : void 0,
2665
+ (l = e.symbol) != null && l.inline ? "builder-inline-symbol" : void 0,
2691
2666
  (d = e.symbol) != null && d.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2692
2667
  ].filter(Boolean).join(" ");
2693
2668
  }
2694
2669
  const [n, i] = S(() => {
2695
- var s;
2696
- return (s = e.symbol) == null ? void 0 : s.content;
2670
+ var l;
2671
+ return (l = e.symbol) == null ? void 0 : l.content;
2697
2672
  });
2698
2673
  function a() {
2699
2674
  n || tn({
2700
2675
  symbol: e.symbol,
2701
2676
  builderContextValue: e.builderContext
2702
- }).then((s) => {
2703
- s && i(s);
2677
+ }).then((l) => {
2678
+ l && i(l);
2704
2679
  });
2705
2680
  }
2706
- return W(() => {
2707
- }, []), W(() => {
2681
+ return P(() => {
2682
+ }, []), P(() => {
2708
2683
  a();
2709
- }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
2710
- Ve,
2684
+ }, [e.symbol]), /* @__PURE__ */ c("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ c(
2685
+ Ae,
2711
2686
  {
2712
2687
  __isNestedRender: !0,
2713
2688
  apiVersion: e.builderContext.apiVersion,
@@ -2715,40 +2690,40 @@ function nn(e) {
2715
2690
  context: e.builderContext.context,
2716
2691
  customComponents: Object.values(e.builderComponents),
2717
2692
  data: {
2718
- ...(o = e.symbol) == null ? void 0 : o.data,
2693
+ ...(r = e.symbol) == null ? void 0 : r.data,
2719
2694
  ...e.builderContext.localState,
2720
- ...(r = n == null ? void 0 : n.data) == null ? void 0 : r.state
2695
+ ...(o = n == null ? void 0 : n.data) == null ? void 0 : o.state
2721
2696
  },
2722
- model: (c = e.symbol) == null ? void 0 : c.model,
2697
+ model: (s = e.symbol) == null ? void 0 : s.model,
2723
2698
  content: n
2724
2699
  }
2725
2700
  ) });
2726
2701
  }
2727
- const ln = ae, cn = Ve;
2702
+ const cn = ie, ln = Ae;
2728
2703
  export {
2729
- ae as Blocks,
2730
- Ue as Button,
2704
+ ie as Blocks,
2705
+ Me as Button,
2731
2706
  ut as Columns,
2732
- Ve as Content,
2707
+ Ae as Content,
2733
2708
  mt as Fragment,
2734
2709
  gt as Image,
2735
- ln as RenderBlocks,
2736
- cn as RenderContent,
2710
+ cn as RenderBlocks,
2711
+ ln as RenderContent,
2737
2712
  bt as Section,
2738
2713
  nn as Symbol,
2739
2714
  At as Text,
2740
2715
  $t as Video,
2741
2716
  un as _processContentResult,
2742
- Le as createRegisterComponentMessage,
2717
+ _e as createRegisterComponentMessage,
2743
2718
  mn as fetchBuilderProps,
2744
2719
  fn as fetchEntries,
2745
- Ie as fetchOneEntry,
2720
+ we as fetchOneEntry,
2746
2721
  hn as getAllContent,
2747
2722
  gn as getBuilderSearchParams,
2748
2723
  bn as getContent,
2749
2724
  V as isEditing,
2750
- _e as isPreviewing,
2751
- Fe as register,
2725
+ Fe as isPreviewing,
2726
+ Ne as register,
2752
2727
  xn as setEditorSettings,
2753
2728
  yn as track
2754
2729
  };