@builder.io/sdk-react 0.6.4 → 0.7.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,9 +1,9 @@
1
1
  "use client";
2
2
  import { jsxs as E, Fragment as f, jsx as l } from "react/jsx-runtime";
3
- import { createContext as ye, useState as p, useContext as ae, createElement as $e, useRef as Z, useEffect as P } from "react";
4
- import { j as ee, l as _, i as V, k as F, m as Pe, n as K, T as U, r as Ae, c as Be, o as oe, a as Ve, b as Se, p as Fe, q as re, u as le, v as ce, w as Ne } from "./server-entry-f7504f89.mjs";
5
- import { _ as an, h as on, f as rn, g as ln, e as cn, d as sn, s as dn, t as un } from "./server-entry-f7504f89.mjs";
6
- function We(e) {
3
+ import { createContext as be, useState as I, useContext as ie, createElement as Re, useRef as X, useEffect as P } from "react";
4
+ import { j as Z, l as U, i as V, k as F, m as Ee, n as Y, T as M, r as $e, c as Pe, o as ae, p as _, a as Ae, b as xe, q as Be, u as oe, v as re, w as Ve } from "./server-entry-f341a184.mjs";
5
+ import { _ as tn, h as nn, f as an, g as on, e as rn, d as ln, s as cn, t as sn } from "./server-entry-f341a184.mjs";
6
+ function Fe(e) {
7
7
  return /* @__PURE__ */ E(f, { children: [
8
8
  e.link ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
9
9
  "a",
@@ -28,7 +28,7 @@ function We(e) {
28
28
  }` })
29
29
  ] });
30
30
  }
31
- const ve = {
31
+ const ye = {
32
32
  small: {
33
33
  min: 320,
34
34
  default: 321,
@@ -44,11 +44,11 @@ const ve = {
44
44
  default: 991,
45
45
  max: 1200
46
46
  }
47
- }, se = (e, t = ve) => `@media (max-width: ${t[e].max}px)`, ke = ({
47
+ }, le = (e, t = ye) => `@media (max-width: ${t[e].max}px)`, Se = ({
48
48
  small: e,
49
49
  medium: t
50
50
  }) => {
51
- const n = ee(ve);
51
+ const n = Z(ye);
52
52
  if (!e || !t)
53
53
  return n;
54
54
  const i = Math.floor(e / 2);
@@ -70,7 +70,7 @@ const ve = {
70
70
  min: o,
71
71
  default: o + 1
72
72
  }, n;
73
- }, je = ({
73
+ }, Ne = ({
74
74
  builder: e,
75
75
  context: t,
76
76
  event: n,
@@ -82,7 +82,7 @@ const ve = {
82
82
  builder: e,
83
83
  context: t,
84
84
  event: n
85
- }), Me = ({
85
+ }), We = ({
86
86
  code: e,
87
87
  builder: t,
88
88
  context: n,
@@ -91,15 +91,15 @@ const ve = {
91
91
  rootSetState: o,
92
92
  rootState: r
93
93
  }) => {
94
- const d = je({
94
+ const d = Ne({
95
95
  builder: t,
96
96
  context: n,
97
97
  event: i,
98
- state: Ue(r, a, o)
98
+ state: je(r, a, o)
99
99
  });
100
100
  return new Function(...d.map(([c]) => c), e)(...d.map(([, c]) => c));
101
101
  };
102
- function Ue(e, t, n) {
102
+ function je(e, t, n) {
103
103
  if (e === t)
104
104
  throw new Error("rootState === localState");
105
105
  return new Proxy(e, {
@@ -111,7 +111,7 @@ function Ue(e, t, n) {
111
111
  }
112
112
  });
113
113
  }
114
- function M({
114
+ function j({
115
115
  code: e,
116
116
  context: t,
117
117
  localState: n,
@@ -121,14 +121,14 @@ function M({
121
121
  isExpression: r = !0
122
122
  }) {
123
123
  if (e === "") {
124
- _.warn("Skipping evaluation of empty code block.");
124
+ U.warn("Skipping evaluation of empty code block.");
125
125
  return;
126
126
  }
127
127
  const d = {
128
128
  isEditing: V(),
129
129
  isBrowser: F(),
130
130
  isServer: !F(),
131
- getUserAttributes: () => Pe()
131
+ getUserAttributes: () => Ee()
132
132
  }, u = {
133
133
  code: /* we disable this for cases where we definitely don't want a return */ r && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e,
134
134
  builder: d,
@@ -139,21 +139,21 @@ function M({
139
139
  localState: n
140
140
  };
141
141
  try {
142
- return Me(u);
142
+ return We(u);
143
143
  } catch (m) {
144
- _.error("Failed code evaluation: " + m.message, {
144
+ U.error("Failed code evaluation: " + m.message, {
145
145
  code: e
146
146
  });
147
147
  return;
148
148
  }
149
149
  }
150
- const Le = (e, t, n) => {
150
+ const Me = (e, t, n) => {
151
151
  if (Object(e) !== e)
152
152
  return e;
153
153
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
154
154
  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;
155
155
  };
156
- const _e = ({
156
+ const Le = ({
157
157
  block: e,
158
158
  context: t,
159
159
  localState: n,
@@ -162,7 +162,7 @@ const _e = ({
162
162
  }) => {
163
163
  if (!e.bindings)
164
164
  return e;
165
- const o = ee(e), r = {
165
+ const o = Z(e), r = {
166
166
  ...o,
167
167
  properties: {
168
168
  ...o.properties
@@ -172,18 +172,18 @@ const _e = ({
172
172
  }
173
173
  };
174
174
  for (const d in e.bindings) {
175
- const c = e.bindings[d], s = M({
175
+ const c = e.bindings[d], s = j({
176
176
  code: c,
177
177
  localState: n,
178
178
  rootState: i,
179
179
  rootSetState: a,
180
180
  context: t
181
181
  });
182
- Le(r, d, s);
182
+ Me(r, d, s);
183
183
  }
184
184
  return r;
185
185
  };
186
- function O({
186
+ function K({
187
187
  block: e,
188
188
  context: t,
189
189
  shouldEvaluateBindings: n,
@@ -192,7 +192,7 @@ function O({
192
192
  rootSetState: o
193
193
  }) {
194
194
  const r = e;
195
- return n ? _e({
195
+ return n ? Le({
196
196
  block: r,
197
197
  localState: i,
198
198
  rootState: a,
@@ -200,28 +200,28 @@ function O({
200
200
  context: t
201
201
  }) : r;
202
202
  }
203
- const Ke = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), pe = (e) => Object.entries(e).map(([n, i]) => {
203
+ const Ue = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), ve = (e) => Object.entries(e).map(([n, i]) => {
204
204
  if (typeof i == "string")
205
- return `${Ke(n)}: ${i};`;
206
- }).filter(K), Oe = (e) => pe(e).join(`
207
- `), J = ({
205
+ return `${Ue(n)}: ${i};`;
206
+ }).filter(Y), _e = (e) => ve(e).join(`
207
+ `), q = ({
208
208
  mediaQuery: e,
209
209
  className: t,
210
210
  styles: n
211
211
  }) => {
212
212
  const i = `.${t} {
213
- ${Oe(n)}
213
+ ${_e(n)}
214
214
  }`;
215
215
  return e ? `${e} {
216
216
  ${i}
217
217
  }` : i;
218
218
  };
219
- function z(e) {
219
+ function H(e) {
220
220
  return /* @__PURE__ */ l("style", { dangerouslySetInnerHTML: { __html: e.styles }, id: e.id });
221
221
  }
222
- function te(e) {
222
+ function ee(e) {
223
223
  function t() {
224
- const i = O({
224
+ const i = K({
225
225
  block: e.block,
226
226
  localState: e.context.localState,
227
227
  rootState: e.context.rootState,
@@ -229,45 +229,45 @@ function te(e) {
229
229
  context: e.context.context,
230
230
  shouldEvaluateBindings: !0
231
231
  });
232
- return K(i.hide) ? !i.hide : K(i.show) ? i.show : !0;
232
+ return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
233
233
  }
234
234
  function n() {
235
235
  var h;
236
- const i = O({
236
+ const i = K({
237
237
  block: e.block,
238
238
  localState: e.context.localState,
239
239
  rootState: e.context.rootState,
240
240
  rootSetState: e.context.rootSetState,
241
241
  context: e.context.context,
242
242
  shouldEvaluateBindings: !0
243
- }), a = i.responsiveStyles, o = e.context.content, r = ke(
243
+ }), a = i.responsiveStyles, o = e.context.content, r = Se(
244
244
  ((h = o == null ? void 0 : o.meta) == null ? void 0 : h.breakpoints) || {}
245
245
  ), d = a == null ? void 0 : a.large, c = a == null ? void 0 : a.medium, s = a == null ? void 0 : a.small, u = i.id;
246
246
  if (!u)
247
247
  return "";
248
- const m = d ? J({
248
+ const m = d ? q({
249
249
  className: u,
250
250
  styles: d
251
- }) : "", y = c ? J({
251
+ }) : "", y = c ? q({
252
252
  className: u,
253
253
  styles: c,
254
- mediaQuery: se(
254
+ mediaQuery: le(
255
255
  "medium",
256
256
  r
257
257
  )
258
- }) : "", k = s ? J({
258
+ }) : "", k = s ? q({
259
259
  className: u,
260
260
  styles: s,
261
- mediaQuery: se(
261
+ mediaQuery: le(
262
262
  "small",
263
263
  r
264
264
  )
265
265
  }) : "";
266
266
  return [m, y, k].join(" ");
267
267
  }
268
- return /* @__PURE__ */ l(f, { children: n() && t() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(z, { styles: n() }) }) : null });
268
+ return /* @__PURE__ */ l(f, { children: n() && t() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(H, { styles: n() }) }) : null });
269
269
  }
270
- function He(e) {
270
+ function Ke(e) {
271
271
  var t;
272
272
  return {
273
273
  ...(t = e.component) == null ? void 0 : t.options,
@@ -278,13 +278,13 @@ function He(e) {
278
278
  builderBlock: e
279
279
  };
280
280
  }
281
- const ze = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], Y = (e) => typeof e == "string" && ze.includes(e.toLowerCase()), qe = ({
281
+ const Oe = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"], D = (e) => typeof e == "string" && Oe.includes(e.toLowerCase()), He = ({
282
282
  block: e,
283
283
  context: t,
284
284
  registeredComponents: n
285
285
  }) => {
286
286
  var o;
287
- const i = (o = O({
287
+ const i = (o = K({
288
288
  block: e,
289
289
  localState: t.localState,
290
290
  rootState: t.rootState,
@@ -300,7 +300,7 @@ const ze = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
300
300
  console.warn(`
301
301
  Could not find a registered component named "${i}".
302
302
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
303
- }, De = ({
303
+ }, ze = ({
304
304
  block: e,
305
305
  context: t
306
306
  }) => {
@@ -310,7 +310,7 @@ const ze = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
310
310
  } = e;
311
311
  if (!(n != null && n.collection))
312
312
  return;
313
- const a = M({
313
+ const a = j({
314
314
  code: n.collection,
315
315
  localState: t.localState,
316
316
  rootState: t.rootState,
@@ -333,7 +333,7 @@ const ze = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
333
333
  },
334
334
  block: i
335
335
  }));
336
- }, ne = ye({
336
+ }, te = be({
337
337
  content: null,
338
338
  context: {},
339
339
  localState: void 0,
@@ -345,10 +345,10 @@ const ze = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
345
345
  componentInfos: {},
346
346
  inheritedStyles: {}
347
347
  });
348
- function Je(e) {
349
- const [t, n] = p(() => e.repeatContext);
350
- return /* @__PURE__ */ l(ne.Provider, { value: t, children: /* @__PURE__ */ l(
351
- q,
348
+ function qe(e) {
349
+ const [t, n] = I(() => e.repeatContext);
350
+ return /* @__PURE__ */ l(te.Provider, { value: t, children: /* @__PURE__ */ l(
351
+ z,
352
352
  {
353
353
  block: e.block,
354
354
  context: t,
@@ -356,10 +356,10 @@ function Je(e) {
356
356
  }
357
357
  ) });
358
358
  }
359
- function Ye(e) {
359
+ function De(e) {
360
360
  return e.charAt(0).toUpperCase() + e.slice(1);
361
361
  }
362
- const Ge = (e) => `on${Ye(e)}`, Qe = (e, t) => (n) => M({
362
+ const Je = (e) => `on${De(e)}`, Ye = (e, t) => (n) => j({
363
363
  code: e,
364
364
  context: t.context,
365
365
  localState: t.localState,
@@ -368,15 +368,15 @@ const Ge = (e) => `on${Ye(e)}`, Qe = (e, t) => (n) => M({
368
368
  event: n,
369
369
  isExpression: !1
370
370
  });
371
- function Q(e) {
371
+ function G(e) {
372
372
  const t = {}, n = e.block.actions ?? {};
373
373
  for (const i in n) {
374
374
  if (!n.hasOwnProperty(i))
375
375
  continue;
376
376
  const a = n[i];
377
- let o = Ge(i);
377
+ let o = Je(i);
378
378
  if (e.stripPrefix)
379
- switch (U) {
379
+ switch (M) {
380
380
  case "vue2":
381
381
  case "vue3":
382
382
  o = o.replace("v-on:", "");
@@ -385,37 +385,37 @@ function Q(e) {
385
385
  o = o.replace("on:", "");
386
386
  break;
387
387
  }
388
- t[o] = Qe(a, e);
388
+ t[o] = Ye(a, e);
389
389
  }
390
390
  return t;
391
391
  }
392
- function Xe(e) {
392
+ function Ge(e) {
393
393
  return e.className = e.class, delete e.class, e;
394
394
  }
395
- const Ze = (e) => ({
395
+ const Qe = (e) => ({
396
396
  href: e.href
397
397
  });
398
- function H({
398
+ function O({
399
399
  block: e,
400
400
  context: t
401
401
  }) {
402
402
  var i;
403
403
  const n = {
404
- ...Ze(e),
404
+ ...Qe(e),
405
405
  ...e.properties,
406
406
  "builder-id": e.id,
407
- style: e.style ? et(e.style) : void 0,
407
+ style: e.style ? Xe(e.style) : void 0,
408
408
  class: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
409
409
  };
410
- return Xe(n);
410
+ return Ge(n);
411
411
  }
412
- function et(e) {
413
- switch (U) {
412
+ function Xe(e) {
413
+ switch (M) {
414
414
  case "svelte":
415
415
  case "vue2":
416
416
  case "vue3":
417
417
  case "solid":
418
- return pe(e).join(" ");
418
+ return ve(e).join(" ");
419
419
  case "qwik":
420
420
  case "reactNative":
421
421
  case "react":
@@ -423,17 +423,17 @@ function et(e) {
423
423
  return e;
424
424
  }
425
425
  }
426
- function tt(e) {
426
+ function Ze(e) {
427
427
  return /* @__PURE__ */ l(
428
428
  e.Wrapper,
429
429
  {
430
430
  ...e.wrapperProps,
431
431
  attributes: {
432
- ...H({
432
+ ...O({
433
433
  block: e.block,
434
434
  context: e.context
435
435
  }),
436
- ...Q({
436
+ ...G({
437
437
  block: e.block,
438
438
  rootState: e.context.rootState,
439
439
  rootSetState: e.context.rootSetState,
@@ -445,7 +445,7 @@ function tt(e) {
445
445
  }
446
446
  );
447
447
  }
448
- const nt = ({
448
+ const et = ({
449
449
  componentOptions: e,
450
450
  builderBlock: t,
451
451
  context: n,
@@ -465,21 +465,21 @@ const nt = ({
465
465
  * component itself directly. Otherwise, they are provided to the wrapper element.
466
466
  */
467
467
  ...a ? {
468
- attributes: H({
468
+ attributes: O({
469
469
  block: t,
470
470
  context: r
471
471
  })
472
472
  } : {}
473
473
  };
474
- function de(e) {
474
+ function ce(e) {
475
475
  var i, a;
476
- const [t, n] = p(
477
- () => e.isInteractive ? tt : e.componentRef
476
+ const [t, n] = I(
477
+ () => e.isInteractive ? Ze : e.componentRef
478
478
  );
479
479
  return /* @__PURE__ */ l(f, { children: e.componentRef ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ E(
480
480
  t,
481
481
  {
482
- ...nt({
482
+ ...et({
483
483
  componentOptions: e.componentOptions,
484
484
  builderBlock: e.builderBlock,
485
485
  context: e.context,
@@ -490,7 +490,7 @@ function de(e) {
490
490
  }),
491
491
  children: [
492
492
  (i = e.blockChildren) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
493
- q,
493
+ z,
494
494
  {
495
495
  block: o,
496
496
  context: e.context,
@@ -499,7 +499,7 @@ function de(e) {
499
499
  "block-" + o.id
500
500
  )),
501
501
  (a = e.blockChildren) == null ? void 0 : a.map((o) => /* @__PURE__ */ l(
502
- te,
502
+ ee,
503
503
  {
504
504
  block: o,
505
505
  context: e.context
@@ -510,17 +510,17 @@ function de(e) {
510
510
  }
511
511
  ) }) : null });
512
512
  }
513
- function ue(e) {
513
+ function se(e) {
514
514
  return /* @__PURE__ */ E(f, { children: [
515
515
  " ",
516
516
  e.hasChildren ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ E(
517
517
  e.Wrapper,
518
518
  {
519
- ...H({
519
+ ...O({
520
520
  block: e.block,
521
521
  context: e.context
522
522
  }),
523
- ...Q({
523
+ ...G({
524
524
  block: e.block,
525
525
  rootState: e.context.rootState,
526
526
  rootSetState: e.context.rootSetState,
@@ -537,11 +537,11 @@ function ue(e) {
537
537
  ) }) : /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
538
538
  e.Wrapper,
539
539
  {
540
- ...H({
540
+ ...O({
541
541
  block: e.block,
542
542
  context: e.context
543
543
  }),
544
- ...Q({
544
+ ...G({
545
545
  block: e.block,
546
546
  rootState: e.context.rootState,
547
547
  rootSetState: e.context.rootSetState,
@@ -554,23 +554,23 @@ function ue(e) {
554
554
  " "
555
555
  ] });
556
556
  }
557
- function q(e) {
557
+ function z(e) {
558
558
  var u, m, y, k;
559
559
  function t() {
560
- return qe({
560
+ return He({
561
561
  block: e.block,
562
562
  context: e.context,
563
563
  registeredComponents: e.registeredComponents
564
564
  });
565
565
  }
566
566
  function n() {
567
- return De({
567
+ return ze({
568
568
  block: e.block,
569
569
  context: e.context
570
570
  });
571
571
  }
572
572
  function i() {
573
- return n() ? e.block : O({
573
+ return n() ? e.block : K({
574
574
  block: e.block,
575
575
  localState: e.context.localState,
576
576
  rootState: e.context.rootState,
@@ -586,32 +586,32 @@ function q(e) {
586
586
  return "hide" in i() ? !i().hide : "show" in i() ? i().show : !0;
587
587
  }
588
588
  function r() {
589
- var x;
590
- return !((x = t == null ? void 0 : t()) != null && x.component) && !n() ? i().children ?? [] : [];
589
+ var S;
590
+ return !((S = t == null ? void 0 : t()) != null && S.component) && !n() ? i().children ?? [] : [];
591
591
  }
592
592
  function d() {
593
- var h, x, C, T, g;
593
+ var h, S, p, C, g;
594
594
  return {
595
595
  blockChildren: i().children ?? [],
596
596
  componentRef: (h = t == null ? void 0 : t()) == null ? void 0 : h.component,
597
597
  componentOptions: {
598
- ...He(i()),
598
+ ...Ke(i()),
599
599
  builderContext: e.context,
600
- ...((x = t == null ? void 0 : t()) == null ? void 0 : x.name) === "Symbol" || ((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "Columns" ? {
600
+ ...((S = t == null ? void 0 : t()) == null ? void 0 : S.name) === "Symbol" || ((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Columns" ? {
601
601
  builderComponents: e.registeredComponents
602
602
  } : {}
603
603
  },
604
604
  context: c,
605
605
  registeredComponents: e.registeredComponents,
606
606
  builderBlock: i(),
607
- includeBlockProps: ((T = t == null ? void 0 : t()) == null ? void 0 : T.noWrap) === !0,
607
+ includeBlockProps: ((C = t == null ? void 0 : t()) == null ? void 0 : C.noWrap) === !0,
608
608
  isInteractive: !((g = t == null ? void 0 : t()) != null && g.isRSC)
609
609
  };
610
610
  }
611
- const [c, s] = p(() => e.context);
612
- 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(de, { ...d() }) }) : /* @__PURE__ */ E(f, { children: [
613
- Y(a()) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
614
- ue,
611
+ const [c, s] = I(() => e.context);
612
+ 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(ce, { ...d() }) }) : /* @__PURE__ */ E(f, { children: [
613
+ D(a()) ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
614
+ se,
615
615
  {
616
616
  Wrapper: a(),
617
617
  block: i(),
@@ -619,26 +619,26 @@ function q(e) {
619
619
  hasChildren: !1
620
620
  }
621
621
  ) }) : null,
622
- !Y(a()) && n() ? /* @__PURE__ */ l(f, { children: (m = n()) == null ? void 0 : m.map((h, x) => /* @__PURE__ */ l(
623
- Je,
622
+ !D(a()) && n() ? /* @__PURE__ */ l(f, { children: (m = n()) == null ? void 0 : m.map((h, S) => /* @__PURE__ */ l(
623
+ qe,
624
624
  {
625
625
  repeatContext: h.context,
626
626
  block: h.block,
627
627
  registeredComponents: e.registeredComponents
628
628
  },
629
- x
629
+ S
630
630
  )) }) : null,
631
- !Y(a()) && !n() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ E(
632
- ue,
631
+ !D(a()) && !n() ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ E(
632
+ se,
633
633
  {
634
634
  Wrapper: a(),
635
635
  block: i(),
636
636
  context: e.context,
637
637
  hasChildren: !0,
638
638
  children: [
639
- /* @__PURE__ */ l(de, { ...d() }),
639
+ /* @__PURE__ */ l(ce, { ...d() }),
640
640
  (y = r()) == null ? void 0 : y.map((h) => /* @__PURE__ */ l(
641
- q,
641
+ z,
642
642
  {
643
643
  block: h,
644
644
  context: c,
@@ -647,7 +647,7 @@ function q(e) {
647
647
  "block-" + h.id
648
648
  )),
649
649
  (k = r()) == null ? void 0 : k.map((h) => /* @__PURE__ */ l(
650
- te,
650
+ ee,
651
651
  {
652
652
  block: h,
653
653
  context: c
@@ -659,7 +659,7 @@ function q(e) {
659
659
  ) }) : null
660
660
  ] }) }) : null });
661
661
  }
662
- function it(e) {
662
+ function tt(e) {
663
663
  function t() {
664
664
  var a;
665
665
  return "builder-blocks" + ((a = e.blocks) != null && a.length ? "" : " no-blocks");
@@ -711,12 +711,12 @@ function it(e) {
711
711
  }` })
712
712
  ] });
713
713
  }
714
- const Ce = ye({ registeredComponents: {} });
715
- function ie(e) {
714
+ const ke = be({ registeredComponents: {} });
715
+ function ne(e) {
716
716
  var i, a;
717
- const t = ae(ne), n = ae(Ce);
717
+ const t = ie(te), n = ie(ke);
718
718
  return /* @__PURE__ */ E(
719
- it,
719
+ tt,
720
720
  {
721
721
  blocks: e.blocks,
722
722
  parent: e.parent,
@@ -724,7 +724,7 @@ function ie(e) {
724
724
  styleProp: e.styleProp,
725
725
  children: [
726
726
  e.blocks ? /* @__PURE__ */ l(f, { children: (i = e.blocks) == null ? void 0 : i.map((o) => /* @__PURE__ */ l(
727
- q,
727
+ z,
728
728
  {
729
729
  block: o,
730
730
  context: e.context || t,
@@ -733,7 +733,7 @@ function ie(e) {
733
733
  "render-block-" + o.id
734
734
  )) }) : null,
735
735
  e.blocks ? /* @__PURE__ */ l(f, { children: (a = e.blocks) == null ? void 0 : a.map((o) => /* @__PURE__ */ l(
736
- te,
736
+ ee,
737
737
  {
738
738
  block: o,
739
739
  context: e.context || t
@@ -744,11 +744,11 @@ function ie(e) {
744
744
  }
745
745
  );
746
746
  }
747
- function at(e) {
748
- var T;
749
- const [t, n] = p(
747
+ function nt(e) {
748
+ var C;
749
+ const [t, n] = I(
750
750
  () => typeof e.space == "number" ? e.space || 0 : 20
751
- ), [i, a] = p(() => e.columns || []), [o, r] = p(
751
+ ), [i, a] = I(() => e.columns || []), [o, r] = I(
752
752
  () => e.stackColumnsAt || "tablet"
753
753
  );
754
754
  function d(g) {
@@ -771,7 +771,7 @@ function at(e) {
771
771
  }) {
772
772
  return o === "never" ? R : g;
773
773
  }
774
- const [m, y] = p(
774
+ const [m, y] = I(
775
775
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
776
776
  );
777
777
  function k() {
@@ -784,7 +784,7 @@ function at(e) {
784
784
  };
785
785
  }
786
786
  function h(g) {
787
- const R = g === 0 ? 0 : t, A = c(g), B = `${R}px`, N = "100%", W = 0;
787
+ const R = g === 0 ? 0 : t, A = c(g), B = `${R}px`, N = "100%", b = 0;
788
788
  return {
789
789
  width: A,
790
790
  ["marginLeft"]: B,
@@ -793,7 +793,7 @@ function at(e) {
793
793
  desktopStyle: A
794
794
  }),
795
795
  "--column-margin-left-mobile": u({
796
- stackedStyle: W,
796
+ stackedStyle: b,
797
797
  desktopStyle: B
798
798
  }),
799
799
  "--column-width-tablet": s({
@@ -801,20 +801,20 @@ function at(e) {
801
801
  desktopStyle: A
802
802
  }),
803
803
  "--column-margin-left-tablet": s({
804
- stackedStyle: W,
804
+ stackedStyle: b,
805
805
  desktopStyle: B
806
806
  })
807
807
  };
808
808
  }
809
- function x(g) {
809
+ function S(g) {
810
810
  var A, B;
811
- return ke(
811
+ return Se(
812
812
  ((B = (A = e.builderContext.content) == null ? void 0 : A.meta) == null ? void 0 : B.breakpoints) || {}
813
813
  )[g].max;
814
814
  }
815
- function C() {
815
+ function p() {
816
816
  return `
817
- @media (max-width: ${x("medium")}px) {
817
+ @media (max-width: ${S("medium")}px) {
818
818
  .${e.builderBlock.id}-breakpoints {
819
819
  flex-direction: var(--flex-dir-tablet);
820
820
  align-items: stretch;
@@ -826,7 +826,7 @@ function at(e) {
826
826
  }
827
827
  }
828
828
 
829
- @media (max-width: ${x("small")}px) {
829
+ @media (max-width: ${S("small")}px) {
830
830
  .${e.builderBlock.id}-breakpoints {
831
831
  flex-direction: var(--flex-dir);
832
832
  align-items: stretch;
@@ -846,8 +846,8 @@ function at(e) {
846
846
  className: `builder-columns ${e.builderBlock.id}-breakpoints div-d734ad62`,
847
847
  style: k(),
848
848
  children: [
849
- /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(z, { styles: C() }) }),
850
- (T = e.columns) == null ? void 0 : T.map((g, R) => /* @__PURE__ */ $e(
849
+ /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(H, { styles: p() }) }),
850
+ (C = e.columns) == null ? void 0 : C.map((g, R) => /* @__PURE__ */ Re(
851
851
  "div",
852
852
  {
853
853
  className: "builder-column div-d734ad62-2",
@@ -855,7 +855,7 @@ function at(e) {
855
855
  key: R
856
856
  },
857
857
  /* @__PURE__ */ l(
858
- ie,
858
+ ne,
859
859
  {
860
860
  path: `component.options.columns.${R}.blocks`,
861
861
  parent: e.builderBlock.id,
@@ -881,40 +881,40 @@ function at(e) {
881
881
  }` })
882
882
  ] });
883
883
  }
884
- function ot(e) {
884
+ function it(e) {
885
885
  return /* @__PURE__ */ l("span", { children: e.children });
886
886
  }
887
- function me(e) {
887
+ function de(e) {
888
888
  return e.replace(/http(s)?:/, "");
889
889
  }
890
- function rt(e = "", t, n) {
890
+ function at(e = "", t, n) {
891
891
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), a = e.indexOf("?") !== -1 ? "&" : "?";
892
892
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + a + t + "=" + encodeURIComponent(n);
893
893
  }
894
- function lt(e, t) {
894
+ function ot(e, t) {
895
895
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
896
896
  return e;
897
897
  if (t === "master")
898
- return me(e);
898
+ return de(e);
899
899
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
900
900
  if (n) {
901
901
  const i = e.split(n[0]), a = n[3], o = t.match("x") ? t : `${t}x`;
902
- return me(`${i[0]}_${o}${a}`);
902
+ return de(`${i[0]}_${o}${a}`);
903
903
  }
904
904
  return null;
905
905
  }
906
- function G(e) {
906
+ function J(e) {
907
907
  if (!e)
908
908
  return e;
909
909
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
910
910
  if (e.match(/builder\.io/)) {
911
911
  let n = e;
912
912
  const i = Number(e.split("?width=")[1]);
913
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${rt(e, "width", a)} ${a}w`).concat([n]).join(", ");
913
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((a) => a !== i).map((a) => `${at(e, "width", a)} ${a}w`).concat([n]).join(", ");
914
914
  }
915
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [lt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
915
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [ot(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
916
916
  }
917
- function ct(e) {
917
+ function rt(e) {
918
918
  var a, o, r, d;
919
919
  function t() {
920
920
  var u;
@@ -925,10 +925,10 @@ function ct(e) {
925
925
  return e.srcset;
926
926
  if (e.srcset && ((u = e.image) != null && u.includes("builder.io/api/v1/image"))) {
927
927
  if (!e.srcset.includes(e.image.split("?")[0]))
928
- return console.debug("Removed given srcset"), G(s);
928
+ return console.debug("Removed given srcset"), J(s);
929
929
  } else if (e.image && !e.srcset)
930
- return G(s);
931
- return G(s);
930
+ return J(s);
931
+ return J(s);
932
932
  }
933
933
  function n() {
934
934
  var c;
@@ -997,7 +997,7 @@ function ct(e) {
997
997
  }` })
998
998
  ] });
999
999
  }
1000
- function st(e) {
1000
+ function lt(e) {
1001
1001
  return /* @__PURE__ */ l(
1002
1002
  "section",
1003
1003
  {
@@ -1022,29 +1022,29 @@ const L = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t
1022
1022
  ...t,
1023
1023
  testVariationId: t.id,
1024
1024
  id: e == null ? void 0 : e.id
1025
- })), dt = ({
1025
+ })), ct = ({
1026
1026
  canTrack: e,
1027
1027
  content: t
1028
1028
  }) => !(!(L(t).length > 0) || !e || F());
1029
- function ut(e, t, n) {
1029
+ function st(e, t, n) {
1030
1030
  var r;
1031
1031
  function i() {
1032
- function d(h, x, C) {
1033
- let T = "";
1034
- if (C) {
1032
+ function d(h, S, p) {
1033
+ let C = "";
1034
+ if (p) {
1035
1035
  const g = /* @__PURE__ */ new Date();
1036
- g.setTime(g.getTime() + C * 24 * 60 * 60 * 1e3), T = "; expires=" + g.toUTCString();
1036
+ g.setTime(g.getTime() + p * 24 * 60 * 60 * 1e3), C = "; expires=" + g.toUTCString();
1037
1037
  }
1038
- document.cookie = h + "=" + (x || "") + T + "; path=/; Secure; SameSite=None";
1038
+ document.cookie = h + "=" + (S || "") + C + "; path=/; Secure; SameSite=None";
1039
1039
  }
1040
1040
  function c(h) {
1041
- const x = h + "=", C = document.cookie.split(";");
1042
- for (let T = 0; T < C.length; T++) {
1043
- let g = C[T];
1041
+ const S = h + "=", p = document.cookie.split(";");
1042
+ for (let C = 0; C < p.length; C++) {
1043
+ let g = p[C];
1044
1044
  for (; g.charAt(0) === " "; )
1045
1045
  g = g.substring(1, g.length);
1046
- if (g.indexOf(x) === 0)
1047
- return g.substring(x.length, g.length);
1046
+ if (g.indexOf(S) === 0)
1047
+ return g.substring(S.length, g.length);
1048
1048
  }
1049
1049
  return null;
1050
1050
  }
@@ -1054,9 +1054,9 @@ function ut(e, t, n) {
1054
1054
  let y = 0;
1055
1055
  const k = Math.random();
1056
1056
  for (let h = 0; h < t.length; h++) {
1057
- const x = t[h], C = x.testRatio;
1058
- if (y += C, k < y)
1059
- return d(s, x.id), x.id;
1057
+ const S = t[h], p = S.testRatio;
1058
+ if (y += p, k < y)
1059
+ return d(s, S.id), S.id;
1060
1060
  }
1061
1061
  return d(s, e), e;
1062
1062
  }
@@ -1073,7 +1073,7 @@ function ut(e, t, n) {
1073
1073
  o.innerHTML = d;
1074
1074
  }
1075
1075
  }
1076
- function mt(e, t, n) {
1076
+ function dt(e, t, n) {
1077
1077
  var c;
1078
1078
  if (!navigator.cookieEnabled)
1079
1079
  return;
@@ -1098,18 +1098,18 @@ function mt(e, t, n) {
1098
1098
  return;
1099
1099
  }
1100
1100
  }
1101
- const ft = (e) => e === "react" || e === "reactNative", we = ft(U), Ie = "builderIoAbTest", Te = "builderIoRenderContent", ht = () => {
1102
- const e = ut.toString().replace(/\s+/g, " "), t = mt.toString().replace(/\s+/g, " ");
1101
+ const ut = (e) => e === "react" || e === "reactNative", pe = ut(M), Ce = "builderIoAbTest", we = "builderIoRenderContent", mt = () => {
1102
+ const e = st.toString().replace(/\s+/g, " "), t = dt.toString().replace(/\s+/g, " ");
1103
1103
  return `
1104
- window.${Ie} = ${e}
1105
- window.${Te} = ${t}
1104
+ window.${Ce} = ${e}
1105
+ window.${we} = ${t}
1106
1106
  `;
1107
- }, gt = (e, t) => `
1108
- window.${Ie}("${t}",${JSON.stringify(e)}, ${we})`, bt = ({
1107
+ }, ft = (e, t) => `
1108
+ window.${Ce}("${t}",${JSON.stringify(e)}, ${pe})`, ht = ({
1109
1109
  contentId: e,
1110
1110
  variationId: t
1111
1111
  }) => `
1112
- window.${Te}("${t}", "${e}", ${we})`, xt = {
1112
+ window.${we}("${t}", "${e}", ${pe})`, gt = {
1113
1113
  name: "Core:Button",
1114
1114
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1115
1115
  defaultStyles: {
@@ -1142,7 +1142,7 @@ const ft = (e) => e === "react" || e === "reactNative", we = ft(U), Ie = "builde
1142
1142
  }],
1143
1143
  static: !0,
1144
1144
  noWrap: !0
1145
- }, yt = {
1145
+ }, bt = {
1146
1146
  // TODO: ways to statically preprocess JSON for references, functions, etc
1147
1147
  name: "Columns",
1148
1148
  isRSC: !0,
@@ -1343,13 +1343,13 @@ const ft = (e) => e === "react" || e === "reactNative", we = ft(U), Ie = "builde
1343
1343
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1344
1344
  advanced: !0
1345
1345
  }]
1346
- }, St = {
1346
+ }, xt = {
1347
1347
  name: "Fragment",
1348
1348
  static: !0,
1349
1349
  hidden: !0,
1350
1350
  canHaveChildren: !0,
1351
1351
  noWrap: !0
1352
- }, vt = {
1352
+ }, yt = {
1353
1353
  name: "Image",
1354
1354
  static: !0,
1355
1355
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -1449,7 +1449,7 @@ const ft = (e) => e === "react" || e === "reactNative", we = ft(U), Ie = "builde
1449
1449
  advanced: !0,
1450
1450
  defaultValue: 0.7041
1451
1451
  }]
1452
- }, kt = {
1452
+ }, St = {
1453
1453
  name: "Core:Section",
1454
1454
  static: !0,
1455
1455
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1488,7 +1488,7 @@ const ft = (e) => e === "react" || e === "reactNative", we = ft(U), Ie = "builde
1488
1488
  }
1489
1489
  }
1490
1490
  }]
1491
- }, pt = {
1491
+ }, vt = {
1492
1492
  name: "Symbol",
1493
1493
  noWrap: !0,
1494
1494
  static: !0,
@@ -1521,7 +1521,7 @@ const ft = (e) => e === "react" || e === "reactNative", we = ft(U), Ie = "builde
1521
1521
  hideFromUI: !0,
1522
1522
  type: "boolean"
1523
1523
  }]
1524
- }, Ct = {
1524
+ }, kt = {
1525
1525
  name: "Text",
1526
1526
  static: !0,
1527
1527
  isRSC: !0,
@@ -1540,7 +1540,7 @@ const ft = (e) => e === "react" || e === "reactNative", we = ft(U), Ie = "builde
1540
1540
  textAlign: "center"
1541
1541
  }
1542
1542
  };
1543
- function wt(e) {
1543
+ function pt(e) {
1544
1544
  var t;
1545
1545
  return /* @__PURE__ */ l(
1546
1546
  "div",
@@ -1553,7 +1553,7 @@ function wt(e) {
1553
1553
  }
1554
1554
  );
1555
1555
  }
1556
- const It = {
1556
+ const Ct = {
1557
1557
  name: "Video",
1558
1558
  canHaveChildren: !0,
1559
1559
  defaultStyles: {
@@ -1635,7 +1635,7 @@ const It = {
1635
1635
  advanced: !0
1636
1636
  }]
1637
1637
  };
1638
- function Tt(e) {
1638
+ function wt(e) {
1639
1639
  var i;
1640
1640
  function t() {
1641
1641
  return {
@@ -1682,7 +1682,7 @@ function Tt(e) {
1682
1682
  }
1683
1683
  );
1684
1684
  }
1685
- const Rt = {
1685
+ const It = {
1686
1686
  name: "Embed",
1687
1687
  static: !0,
1688
1688
  inputs: [{
@@ -1707,9 +1707,9 @@ const Rt = {
1707
1707
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1708
1708
  hideFromUI: !0
1709
1709
  }]
1710
- }, Et = ["text/javascript", "application/javascript", "application/ecmascript"], $t = (e) => Et.includes(e.type);
1711
- function Pt(e) {
1712
- const t = Z(null), [n, i] = p(() => []), [a, o] = p(() => []), [r, d] = p(() => !1);
1710
+ }, Tt = ["text/javascript", "application/javascript", "application/ecmascript"], Rt = (e) => Tt.includes(e.type);
1711
+ function Et(e) {
1712
+ const t = X(null), [n, i] = I(() => []), [a, o] = I(() => []), [r, d] = I(() => !1);
1713
1713
  function c() {
1714
1714
  if (!t.current || !t.current.getElementsByTagName)
1715
1715
  return;
@@ -1720,7 +1720,7 @@ function Pt(e) {
1720
1720
  n.push(m.src);
1721
1721
  const y = document.createElement("script");
1722
1722
  y.async = !0, y.src = m.src, document.head.appendChild(y);
1723
- } else if ($t(m) && !a.includes(m.innerText))
1723
+ } else if (Rt(m) && !a.includes(m.innerText))
1724
1724
  try {
1725
1725
  a.push(m.innerText), new Function(m.innerText)();
1726
1726
  } catch (y) {
@@ -1739,7 +1739,7 @@ function Pt(e) {
1739
1739
  }
1740
1740
  );
1741
1741
  }
1742
- function At(e) {
1742
+ function $t(e) {
1743
1743
  return /* @__PURE__ */ l(
1744
1744
  "img",
1745
1745
  {
@@ -1754,7 +1754,7 @@ function At(e) {
1754
1754
  V() && e.imgSrc || "default-key"
1755
1755
  );
1756
1756
  }
1757
- const Bt = {
1757
+ const Pt = {
1758
1758
  // friendlyName?
1759
1759
  name: "Raw:Img",
1760
1760
  hideFromInsertMenu: !0,
@@ -1769,8 +1769,8 @@ const Bt = {
1769
1769
  noWrap: !0,
1770
1770
  static: !0
1771
1771
  };
1772
- function Vt(e) {
1773
- const t = Z(null), [n, i] = p(() => []), [a, o] = p(() => []);
1772
+ function At(e) {
1773
+ const t = X(null), [n, i] = I(() => []), [a, o] = I(() => []);
1774
1774
  function r() {
1775
1775
  if (t.current && t.current.getElementsByTagName && typeof window < "u") {
1776
1776
  const d = t.current.getElementsByTagName("script");
@@ -1809,7 +1809,7 @@ function Vt(e) {
1809
1809
  }
1810
1810
  );
1811
1811
  }
1812
- const Ft = {
1812
+ const Bt = {
1813
1813
  name: "Custom Code",
1814
1814
  static: !0,
1815
1815
  requiredPermissions: ["editCode"],
@@ -1831,40 +1831,40 @@ const Ft = {
1831
1831
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1832
1832
  advanced: !0
1833
1833
  }]
1834
- }, fe = () => [{
1835
- component: We,
1834
+ }, ue = () => [{
1835
+ component: Fe,
1836
+ ...gt
1837
+ }, {
1838
+ component: nt,
1839
+ ...bt
1840
+ }, {
1841
+ component: At,
1842
+ ...Bt
1843
+ }, {
1844
+ component: Et,
1845
+ ...It
1846
+ }, {
1847
+ component: it,
1836
1848
  ...xt
1837
1849
  }, {
1838
- component: at,
1850
+ component: rt,
1839
1851
  ...yt
1840
1852
  }, {
1841
- component: Vt,
1842
- ...Ft
1843
- }, {
1844
- component: Pt,
1845
- ...Rt
1853
+ component: $t,
1854
+ ...Pt
1846
1855
  }, {
1847
- component: ot,
1856
+ component: lt,
1848
1857
  ...St
1849
1858
  }, {
1850
- component: ct,
1859
+ component: Dt,
1851
1860
  ...vt
1852
1861
  }, {
1853
- component: At,
1854
- ...Bt
1855
- }, {
1856
- component: st,
1862
+ component: pt,
1857
1863
  ...kt
1858
- }, {
1859
- component: Yt,
1860
- ...pt
1861
1864
  }, {
1862
1865
  component: wt,
1863
1866
  ...Ct
1864
- }, {
1865
- component: Tt,
1866
- ...It
1867
- }], Nt = (e) => {
1867
+ }], Vt = (e) => {
1868
1868
  var o;
1869
1869
  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);
1870
1870
  let a = "";
@@ -1890,23 +1890,23 @@ font-weight: ${r};
1890
1890
  `.trim());
1891
1891
  }
1892
1892
  return a;
1893
- }, Wt = ({
1893
+ }, Ft = ({
1894
1894
  customFonts: e
1895
1895
  }) => {
1896
1896
  var t;
1897
- return ((t = e == null ? void 0 : e.map((n) => Nt(n))) == null ? void 0 : t.join(" ")) || "";
1898
- }, jt = ({
1897
+ return ((t = e == null ? void 0 : e.map((n) => Vt(n))) == null ? void 0 : t.join(" ")) || "";
1898
+ }, Nt = ({
1899
1899
  cssCode: e,
1900
1900
  contentId: t
1901
1901
  }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "";
1902
- function Mt(e) {
1903
- const [t, n] = p(
1902
+ function Wt(e) {
1903
+ const [t, n] = I(
1904
1904
  () => `
1905
- ${jt({
1905
+ ${Nt({
1906
1906
  cssCode: e.cssCode,
1907
1907
  contentId: e.contentId
1908
1908
  })}
1909
- ${Wt({
1909
+ ${Ft({
1910
1910
  customFonts: e.customFonts
1911
1911
  })}
1912
1912
 
@@ -1924,9 +1924,9 @@ ${Wt({
1924
1924
  }
1925
1925
  `.trim()
1926
1926
  );
1927
- return /* @__PURE__ */ l(z, { styles: t });
1927
+ return /* @__PURE__ */ l(H, { styles: t });
1928
1928
  }
1929
- const Ut = ({
1929
+ const jt = ({
1930
1930
  content: e,
1931
1931
  data: t,
1932
1932
  locale: n
@@ -1948,7 +1948,7 @@ const Ut = ({
1948
1948
  ...i,
1949
1949
  ...a
1950
1950
  };
1951
- }, Lt = ({
1951
+ }, Mt = ({
1952
1952
  content: e,
1953
1953
  data: t
1954
1954
  }) => e ? {
@@ -1958,8 +1958,8 @@ const Ut = ({
1958
1958
  ...t
1959
1959
  },
1960
1960
  meta: e == null ? void 0 : e.meta
1961
- } : void 0, _t = "0.6.4", Kt = () => {
1962
- Ae("insertMenu", {
1961
+ } : void 0, Lt = "0.7.0", Ut = () => {
1962
+ $e("insertMenu", {
1963
1963
  name: "_default",
1964
1964
  default: !0,
1965
1965
  items: [{
@@ -1981,14 +1981,14 @@ const Ut = ({
1981
1981
  }]
1982
1982
  });
1983
1983
  };
1984
- let he = !1;
1985
- const Ot = (e = {}) => {
1984
+ let me = !1;
1985
+ const _t = (e = {}) => {
1986
1986
  var t, n;
1987
- he || (he = !0, F() && ((t = window.parent) == null || t.postMessage({
1987
+ me || (me = !0, F() && ((t = window.parent) == null || t.postMessage({
1988
1988
  type: "builder.sdkInfo",
1989
1989
  data: {
1990
- target: U,
1991
- version: _t,
1990
+ target: M,
1991
+ version: Lt,
1992
1992
  supportsPatchUpdates: !1,
1993
1993
  // Supports builder-model="..." attribute which is needed to
1994
1994
  // scope our '+ add block' button styling
@@ -2041,10 +2041,10 @@ const Ot = (e = {}) => {
2041
2041
  }
2042
2042
  })));
2043
2043
  };
2044
- function ge(e) {
2044
+ function fe(e) {
2045
2045
  return Math.round(e * 1e3) / 1e3;
2046
2046
  }
2047
- const Ht = (e, t, n = !0) => {
2047
+ const Kt = (e, t, n = !0) => {
2048
2048
  if (!(e instanceof HTMLElement))
2049
2049
  return null;
2050
2050
  let i = n ? e : e.parentElement;
@@ -2055,28 +2055,28 @@ const Ht = (e, t, n = !0) => {
2055
2055
  return i;
2056
2056
  } while (i = i.parentElement);
2057
2057
  return null;
2058
- }, zt = (e) => Ht(e, (t) => {
2058
+ }, Ot = (e) => Kt(e, (t) => {
2059
2059
  const n = t.getAttribute("builder-id") || t.id;
2060
2060
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2061
- }), be = ({
2061
+ }), he = ({
2062
2062
  event: e,
2063
2063
  target: t
2064
2064
  }) => {
2065
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = ge(i / n.width), r = ge(a / n.height);
2065
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, a = e.clientY - n.top, o = fe(i / n.width), r = fe(a / n.height);
2066
2066
  return {
2067
2067
  x: o,
2068
2068
  y: r
2069
2069
  };
2070
- }, qt = (e) => {
2071
- const t = e.target, n = t && zt(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2070
+ }, Ht = (e) => {
2071
+ const t = e.target, n = t && Ot(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2072
2072
  return {
2073
2073
  targetBuilderElement: i || void 0,
2074
2074
  metadata: {
2075
- targetOffset: t ? be({
2075
+ targetOffset: t ? he({
2076
2076
  event: e,
2077
2077
  target: t
2078
2078
  }) : void 0,
2079
- builderTargetOffset: n ? be({
2079
+ builderTargetOffset: n ? he({
2080
2080
  event: e,
2081
2081
  target: n
2082
2082
  }) : void 0,
@@ -2084,91 +2084,89 @@ const Ht = (e, t, n = !0) => {
2084
2084
  }
2085
2085
  };
2086
2086
  };
2087
- function Dt(e) {
2088
- var A, B, N, W, D;
2089
- const t = Z(null), [n, i] = p(
2090
- () => K(e.canTrack) ? e.canTrack : !0
2091
- ), [a, o] = p(() => 0);
2092
- function r(S) {
2093
- var b, v, I, $, j;
2087
+ function zt(e) {
2088
+ var g, R, A, B, N;
2089
+ const t = X(null), [n, i] = I(() => 0);
2090
+ function a(b) {
2091
+ var x, v, T, $, W;
2094
2092
  const w = {
2095
2093
  ...e.builderContextSignal.content,
2096
- ...S,
2094
+ ...b,
2097
2095
  data: {
2098
- ...(b = e.builderContextSignal.content) == null ? void 0 : b.data,
2099
- ...S == null ? void 0 : S.data
2096
+ ...(x = e.builderContextSignal.content) == null ? void 0 : x.data,
2097
+ ...b == null ? void 0 : b.data
2100
2098
  },
2101
2099
  meta: {
2102
2100
  ...(v = e.builderContextSignal.content) == null ? void 0 : v.meta,
2103
- ...S == null ? void 0 : S.meta,
2104
- breakpoints: ((I = S == null ? void 0 : S.meta) == null ? void 0 : I.breakpoints) || ((j = ($ = e.builderContextSignal.content) == null ? void 0 : $.meta) == null ? void 0 : j.breakpoints)
2101
+ ...b == null ? void 0 : b.meta,
2102
+ breakpoints: ((T = b == null ? void 0 : b.meta) == null ? void 0 : T.breakpoints) || ((W = ($ = e.builderContextSignal.content) == null ? void 0 : $.meta) == null ? void 0 : W.breakpoints)
2105
2103
  }
2106
2104
  };
2107
- e.setBuilderContextSignal((Ee) => ({
2108
- ...Ee,
2105
+ e.setBuilderContextSignal((Te) => ({
2106
+ ...Te,
2109
2107
  content: w
2110
2108
  }));
2111
2109
  }
2112
- p(() => 0);
2113
- const [d, c] = p(
2110
+ I(() => 0);
2111
+ const [o, r] = I(
2114
2112
  () => !1
2115
2113
  );
2116
- function s(S) {
2117
- var b;
2118
- const { data: w } = S;
2114
+ function d(b) {
2115
+ var x;
2116
+ const { data: w } = b;
2119
2117
  if (w)
2120
2118
  switch (w.type) {
2121
2119
  case "builder.configureSdk": {
2122
- const v = w.data, { breakpoints: I, contentId: $ } = v;
2123
- if (!$ || $ !== ((b = e.builderContextSignal.content) == null ? void 0 : b.id))
2120
+ const v = w.data, { breakpoints: T, contentId: $ } = v;
2121
+ if (!$ || $ !== ((x = e.builderContextSignal.content) == null ? void 0 : x.id))
2124
2122
  return;
2125
- I && r({
2123
+ T && a({
2126
2124
  meta: {
2127
- breakpoints: I
2125
+ breakpoints: T
2128
2126
  }
2129
- }), o(a + 1);
2127
+ }), i(n + 1);
2130
2128
  break;
2131
2129
  }
2132
2130
  case "builder.contentUpdate": {
2133
- const v = w.data, I = v.key || v.alias || v.entry || v.modelName, $ = v.data;
2134
- I === e.model && (r($), o(a + 1));
2131
+ const v = w.data, T = v.key || v.alias || v.entry || v.modelName, $ = v.data;
2132
+ T === e.model && (a($), i(n + 1));
2135
2133
  break;
2136
2134
  }
2137
2135
  }
2138
2136
  }
2139
- function u() {
2140
- var w, b;
2141
- const S = (b = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : b.jsCode;
2142
- S && M({
2143
- code: S,
2137
+ function c() {
2138
+ var w, x;
2139
+ const b = (x = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : x.jsCode;
2140
+ b && j({
2141
+ code: b,
2144
2142
  context: e.context || {},
2145
2143
  localState: void 0,
2146
2144
  rootState: e.builderContextSignal.rootState,
2147
2145
  rootSetState: e.builderContextSignal.rootSetState
2148
2146
  });
2149
2147
  }
2150
- const [m, y] = p(() => ({})), [k, h] = p(() => !1);
2151
- function x(S) {
2152
- var w, b;
2148
+ const [s, u] = I(() => ({})), [m, y] = I(() => !1);
2149
+ function k(b) {
2150
+ var w, x;
2153
2151
  if (e.builderContextSignal.content) {
2154
- const v = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, I = (b = e.builderContextSignal.content) == null ? void 0 : b.id;
2155
- oe({
2152
+ const v = (w = e.builderContextSignal.content) == null ? void 0 : w.testVariationId, T = (x = e.builderContextSignal.content) == null ? void 0 : x.id;
2153
+ ae({
2156
2154
  type: "click",
2157
- canTrack: n,
2158
- contentId: I,
2155
+ canTrack: _(e.canTrack),
2156
+ contentId: T,
2159
2157
  apiKey: e.apiKey,
2160
- variationId: v !== I ? v : void 0,
2161
- ...qt(S),
2162
- unique: !k
2158
+ variationId: v !== T ? v : void 0,
2159
+ ...Ht(b),
2160
+ unique: !m
2163
2161
  });
2164
2162
  }
2165
- k || h(!0);
2163
+ m || y(!0);
2166
2164
  }
2167
- function C(S) {
2168
- return S.replace(
2165
+ function h(b) {
2166
+ return b.replace(
2169
2167
  /{{([^}]+)}}/g,
2170
- (w, b) => M({
2171
- code: b,
2168
+ (w, x) => j({
2169
+ code: x,
2172
2170
  context: e.context || {},
2173
2171
  localState: void 0,
2174
2172
  rootState: e.builderContextSignal.rootState,
@@ -2176,38 +2174,38 @@ function Dt(e) {
2176
2174
  })
2177
2175
  );
2178
2176
  }
2179
- function T({ url: S, key: w }) {
2180
- Fe(S).then((b) => b.json()).then((b) => {
2181
- var I, $;
2177
+ function S({ url: b, key: w }) {
2178
+ Be(b).then((x) => x.json()).then((x) => {
2179
+ var T, $;
2182
2180
  const v = {
2183
2181
  ...e.builderContextSignal.rootState,
2184
- [w]: b
2182
+ [w]: x
2185
2183
  };
2186
- ($ = (I = e.builderContextSignal).rootSetState) == null || $.call(I, v), m[w] = !0;
2187
- }).catch((b) => {
2188
- console.error("error fetching dynamic data", S, b);
2184
+ ($ = (T = e.builderContextSignal).rootSetState) == null || $.call(T, v), s[w] = !0;
2185
+ }).catch((x) => {
2186
+ console.error("error fetching dynamic data", b, x);
2189
2187
  });
2190
2188
  }
2191
- function g() {
2192
- var w, b;
2193
- const S = ((b = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : b.httpRequests) ?? {};
2194
- Object.entries(S).forEach(([v, I]) => {
2195
- if (I && (!m[v] || V())) {
2196
- const $ = C(I);
2197
- T({
2189
+ function p() {
2190
+ var w, x;
2191
+ const b = ((x = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : x.httpRequests) ?? {};
2192
+ Object.entries(b).forEach(([v, T]) => {
2193
+ if (T && (!s[v] || V())) {
2194
+ const $ = h(T);
2195
+ S({
2198
2196
  url: $,
2199
2197
  key: v
2200
2198
  });
2201
2199
  }
2202
2200
  });
2203
2201
  }
2204
- function R() {
2202
+ function C() {
2205
2203
  V() && window.dispatchEvent(
2206
2204
  new CustomEvent(
2207
2205
  "builder:component:stateChange",
2208
2206
  {
2209
2207
  detail: {
2210
- state: ee(e.builderContextSignal.rootState),
2208
+ state: Z(e.builderContextSignal.rootState),
2211
2209
  ref: {
2212
2210
  name: e.model
2213
2211
  }
@@ -2217,11 +2215,11 @@ function Dt(e) {
2217
2215
  );
2218
2216
  }
2219
2217
  return P(() => {
2220
- var S, w;
2221
- if (e.apiKey || _.error(
2218
+ var b, w;
2219
+ if (e.apiKey || U.error(
2222
2220
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
2223
2221
  ), F()) {
2224
- if (V() && (o(a + 1), window.addEventListener("message", s), Kt(), Ot({
2222
+ if (V() && (i(n + 1), window.addEventListener("message", d), Ut(), _t({
2225
2223
  ...e.locale ? {
2226
2224
  locale: e.locale
2227
2225
  } : {},
@@ -2233,60 +2231,60 @@ function Dt(e) {
2233
2231
  } : {}
2234
2232
  }), Object.values(
2235
2233
  e.builderContextSignal.componentInfos
2236
- ).forEach((b) => {
2237
- var I;
2238
- const v = Be(b);
2239
- (I = window.parent) == null || I.postMessage(v, "*");
2234
+ ).forEach((x) => {
2235
+ var T;
2236
+ const v = Pe(x);
2237
+ (T = window.parent) == null || T.postMessage(v, "*");
2240
2238
  }), window.addEventListener(
2241
2239
  "builder:component:stateChangeListenerActivated",
2242
- R
2240
+ C
2243
2241
  )), e.builderContextSignal.content) {
2244
- const b = (S = e.builderContextSignal.content) == null ? void 0 : S.testVariationId, v = (w = e.builderContextSignal.content) == null ? void 0 : w.id;
2245
- oe({
2242
+ const x = (b = e.builderContextSignal.content) == null ? void 0 : b.testVariationId, v = (w = e.builderContextSignal.content) == null ? void 0 : w.id;
2243
+ ae({
2246
2244
  type: "impression",
2247
- canTrack: n,
2245
+ canTrack: _(e.canTrack),
2248
2246
  contentId: v,
2249
2247
  apiKey: e.apiKey,
2250
- variationId: b !== v ? b : void 0
2248
+ variationId: x !== v ? x : void 0
2251
2249
  });
2252
2250
  }
2253
- if (Ve()) {
2254
- const b = new URL(location.href).searchParams, v = b.get("builder.preview"), I = b.get(
2251
+ if (Ae()) {
2252
+ const x = new URL(location.href).searchParams, v = x.get("builder.preview"), T = x.get(
2255
2253
  `builder.preview.${v}`
2256
- ), $ = b.get("apiKey") || b.get("builder.space");
2257
- v === e.model && $ === e.apiKey && (!e.content || I === e.content.id) && Se({
2254
+ ), $ = x.get("apiKey") || x.get("builder.space");
2255
+ v === e.model && $ === e.apiKey && (!e.content || T === e.content.id) && xe({
2258
2256
  model: e.model,
2259
2257
  apiKey: e.apiKey,
2260
2258
  apiVersion: e.builderContextSignal.apiVersion
2261
- }).then((j) => {
2262
- j && r(j);
2259
+ }).then((W) => {
2260
+ W && a(W);
2263
2261
  });
2264
2262
  }
2265
- u(), g(), R();
2263
+ c(), p(), C();
2266
2264
  }
2267
2265
  }, []), P(() => {
2268
- e.content && r(e.content);
2266
+ e.content && a(e.content);
2269
2267
  }, [e.content]), P(() => {
2270
- }, [d]), P(() => {
2271
- u();
2268
+ }, [o]), P(() => {
2269
+ c();
2272
2270
  }, [
2273
- (B = (A = e.builderContextSignal.content) == null ? void 0 : A.data) == null ? void 0 : B.jsCode,
2271
+ (R = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : R.jsCode,
2274
2272
  e.builderContextSignal.rootState
2275
2273
  ]), P(() => {
2276
- g();
2277
- }, [(W = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : W.httpRequests]), P(() => {
2278
- R();
2274
+ p();
2275
+ }, [(B = (A = e.builderContextSignal.content) == null ? void 0 : A.data) == null ? void 0 : B.httpRequests]), P(() => {
2276
+ C();
2279
2277
  }, [e.builderContextSignal.rootState]), P(() => () => {
2280
- F() && (window.removeEventListener("message", s), window.removeEventListener(
2278
+ F() && (window.removeEventListener("message", d), window.removeEventListener(
2281
2279
  "builder:component:stateChangeListenerActivated",
2282
- R
2280
+ C
2283
2281
  ));
2284
- }, []), /* @__PURE__ */ l(ne.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
2282
+ }, []), /* @__PURE__ */ l(te.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
2285
2283
  "div",
2286
2284
  {
2287
2285
  ref: t,
2288
- onClick: (S) => x(S),
2289
- "builder-content-id": (D = e.builderContextSignal.content) == null ? void 0 : D.id,
2286
+ onClick: (b) => k(b),
2287
+ "builder-content-id": (N = e.builderContextSignal.content) == null ? void 0 : N.id,
2290
2288
  "builder-model": e.model,
2291
2289
  ...e.showContent ? {} : {
2292
2290
  hidden: !0,
@@ -2295,10 +2293,10 @@ function Dt(e) {
2295
2293
  className: e.classNameProp,
2296
2294
  children: e.children
2297
2295
  },
2298
- a
2296
+ n
2299
2297
  ) }) : null });
2300
2298
  }
2301
- function X(e) {
2299
+ function Q(e) {
2302
2300
  return /* @__PURE__ */ l(
2303
2301
  "script",
2304
2302
  {
@@ -2307,52 +2305,52 @@ function X(e) {
2307
2305
  }
2308
2306
  );
2309
2307
  }
2310
- function xe(e) {
2308
+ function ge(e) {
2311
2309
  var c, s, u, m, y, k, h;
2312
- const [t, n] = p(
2310
+ const [t, n] = I(
2313
2311
  () => {
2314
- var x, C;
2315
- return bt({
2312
+ var S, p;
2313
+ return ht({
2316
2314
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2317
- variationId: (x = e.content) == null ? void 0 : x.testVariationId,
2315
+ variationId: (S = e.content) == null ? void 0 : S.testVariationId,
2318
2316
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2319
- contentId: (C = e.content) == null ? void 0 : C.id
2317
+ contentId: (p = e.content) == null ? void 0 : p.id
2320
2318
  });
2321
2319
  }
2322
2320
  );
2323
- function i(x) {
2324
- d((C) => ({
2325
- ...C,
2326
- rootState: x
2321
+ function i(S) {
2322
+ d((p) => ({
2323
+ ...p,
2324
+ rootState: S
2327
2325
  }));
2328
2326
  }
2329
- const [a, o] = p(
2327
+ const [a, o] = I(
2330
2328
  () => [
2331
- ...fe(),
2329
+ ...ue(),
2332
2330
  // While this `components` object is deprecated, we must maintain support for it.
2333
2331
  // Since users are able to override our default components, we need to make sure that we do not break such
2334
2332
  // existing usage.
2335
2333
  // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
2336
2334
  // which is the new standard way of providing custom components, and must therefore take precedence.
2337
- ...re,
2335
+ ...oe,
2338
2336
  ...e.customComponents || []
2339
2337
  ].reduce(
2340
- (x, { component: C, ...T }) => ({
2341
- ...x,
2342
- [T.name]: {
2343
- component: C,
2344
- ...le(T)
2338
+ (S, { component: p, ...C }) => ({
2339
+ ...S,
2340
+ [C.name]: {
2341
+ component: p,
2342
+ ...re(C)
2345
2343
  }
2346
2344
  }),
2347
2345
  {}
2348
2346
  )
2349
- ), [r, d] = p(() => ({
2350
- content: Lt({
2347
+ ), [r, d] = I(() => ({
2348
+ content: Mt({
2351
2349
  content: e.content,
2352
2350
  data: e.data
2353
2351
  }),
2354
2352
  localState: void 0,
2355
- rootState: Ut({
2353
+ rootState: jt({
2356
2354
  content: e.content,
2357
2355
  data: e.data,
2358
2356
  locale: e.locale
@@ -2362,31 +2360,31 @@ function xe(e) {
2362
2360
  apiKey: e.apiKey,
2363
2361
  apiVersion: e.apiVersion,
2364
2362
  componentInfos: [
2365
- ...fe(),
2363
+ ...ue(),
2366
2364
  // While this `components` object is deprecated, we must maintain support for it.
2367
2365
  // Since users are able to override our default components, we need to make sure that we do not break such
2368
2366
  // existing usage.
2369
2367
  // This is why we spread `components` after the default Builder.io components, but before the `props.customComponents`,
2370
2368
  // which is the new standard way of providing custom components, and must therefore take precedence.
2371
- ...re,
2369
+ ...oe,
2372
2370
  ...e.customComponents || []
2373
2371
  ].reduce(
2374
- (x, { component: C, ...T }) => ({
2375
- ...x,
2376
- [T.name]: le(T)
2372
+ (S, { component: p, ...C }) => ({
2373
+ ...S,
2374
+ [C.name]: re(C)
2377
2375
  }),
2378
2376
  {}
2379
2377
  ),
2380
2378
  inheritedStyles: {}
2381
2379
  }));
2382
2380
  return /* @__PURE__ */ l(
2383
- Ce.Provider,
2381
+ ke.Provider,
2384
2382
  {
2385
2383
  value: {
2386
2384
  registeredComponents: a
2387
2385
  },
2388
2386
  children: /* @__PURE__ */ E(
2389
- Dt,
2387
+ zt,
2390
2388
  {
2391
2389
  content: e.content,
2392
2390
  model: e.model,
@@ -2401,9 +2399,9 @@ function xe(e) {
2401
2399
  builderContextSignal: r,
2402
2400
  setBuilderContextSignal: d,
2403
2401
  children: [
2404
- e.isSsrAbTest ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(X, { scriptStr: t }) }) : null,
2402
+ e.isSsrAbTest ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(Q, { scriptStr: t }) }) : null,
2405
2403
  /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(
2406
- Mt,
2404
+ Wt,
2407
2405
  {
2408
2406
  contentId: (c = r.content) == null ? void 0 : c.id,
2409
2407
  cssCode: (u = (s = r.content) == null ? void 0 : s.data) == null ? void 0 : u.cssCode,
@@ -2411,7 +2409,7 @@ function xe(e) {
2411
2409
  }
2412
2410
  ) }),
2413
2411
  /* @__PURE__ */ l(
2414
- ie,
2412
+ ne,
2415
2413
  {
2416
2414
  blocks: (h = (k = r.content) == null ? void 0 : k.data) == null ? void 0 : h.blocks,
2417
2415
  context: r,
@@ -2424,17 +2422,17 @@ function xe(e) {
2424
2422
  }
2425
2423
  );
2426
2424
  }
2427
- function Re(e) {
2425
+ function Ie(e) {
2428
2426
  var r, d, c;
2429
- const [t, n] = p(
2430
- () => dt({
2431
- canTrack: ce(e.canTrack),
2427
+ const [t, n] = I(
2428
+ () => ct({
2429
+ canTrack: _(e.canTrack),
2432
2430
  content: e.content
2433
2431
  })
2434
2432
  );
2435
2433
  function i() {
2436
2434
  var s;
2437
- return gt(
2435
+ return ft(
2438
2436
  L(e.content).map((u) => ({
2439
2437
  id: u.testVariationId,
2440
2438
  testRatio: u.testRatio
@@ -2450,25 +2448,25 @@ function Re(e) {
2450
2448
  return t ? {
2451
2449
  ...e.content,
2452
2450
  testVariationId: (s = e.content) == null ? void 0 : s.id
2453
- } : Ne({
2451
+ } : Ve({
2454
2452
  item: e.content,
2455
- canTrack: ce(e.canTrack)
2453
+ canTrack: _(e.canTrack)
2456
2454
  });
2457
2455
  }
2458
2456
  return P(() => {
2459
2457
  }, []), /* @__PURE__ */ E(f, { children: [
2460
- !e.__isNestedRender && U !== "reactNative" ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(X, { scriptStr: ht() }) }) : null,
2458
+ !e.__isNestedRender && M !== "reactNative" ? /* @__PURE__ */ l(f, { children: /* @__PURE__ */ l(Q, { scriptStr: mt() }) }) : null,
2461
2459
  t ? /* @__PURE__ */ E(f, { children: [
2462
2460
  /* @__PURE__ */ l(
2463
- z,
2461
+ H,
2464
2462
  {
2465
2463
  id: `variants-styles-${(r = e.content) == null ? void 0 : r.id}`,
2466
2464
  styles: a()
2467
2465
  }
2468
2466
  ),
2469
- /* @__PURE__ */ l(X, { scriptStr: i() }),
2467
+ /* @__PURE__ */ l(Q, { scriptStr: i() }),
2470
2468
  (d = L(e.content)) == null ? void 0 : d.map((s) => /* @__PURE__ */ l(
2471
- xe,
2469
+ ge,
2472
2470
  {
2473
2471
  content: s,
2474
2472
  showContent: !1,
@@ -2489,7 +2487,7 @@ function Re(e) {
2489
2487
  ))
2490
2488
  ] }) : null,
2491
2489
  /* @__PURE__ */ l(
2492
- xe,
2490
+ ge,
2493
2491
  {
2494
2492
  content: o(),
2495
2493
  classNameProp: `variant-${(c = e.content) == null ? void 0 : c.id}`,
@@ -2509,13 +2507,13 @@ function Re(e) {
2509
2507
  )
2510
2508
  ] });
2511
2509
  }
2512
- const Jt = async ({
2510
+ const qt = async ({
2513
2511
  builderContextValue: e,
2514
2512
  symbol: t
2515
2513
  }) => {
2516
2514
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
2517
2515
  (e != null && e.apiKey))
2518
- return Se({
2516
+ return xe({
2519
2517
  model: t.model,
2520
2518
  apiKey: e.apiKey,
2521
2519
  apiVersion: e.apiVersion,
@@ -2525,10 +2523,10 @@ const Jt = async ({
2525
2523
  }
2526
2524
  }
2527
2525
  }).catch((n) => {
2528
- _.error("Could not fetch symbol content: ", n);
2526
+ U.error("Could not fetch symbol content: ", n);
2529
2527
  });
2530
2528
  };
2531
- function Yt(e) {
2529
+ function Dt(e) {
2532
2530
  var o, r, d;
2533
2531
  function t() {
2534
2532
  var c, s;
@@ -2539,12 +2537,12 @@ function Yt(e) {
2539
2537
  (s = e.symbol) != null && s.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2540
2538
  ].filter(Boolean).join(" ");
2541
2539
  }
2542
- const [n, i] = p(() => {
2540
+ const [n, i] = I(() => {
2543
2541
  var c;
2544
2542
  return (c = e.symbol) == null ? void 0 : c.content;
2545
2543
  });
2546
2544
  function a() {
2547
- n || Jt({
2545
+ n || qt({
2548
2546
  symbol: e.symbol,
2549
2547
  builderContextValue: e.builderContext
2550
2548
  }).then((c) => {
@@ -2556,7 +2554,7 @@ function Yt(e) {
2556
2554
  }, []), P(() => {
2557
2555
  a();
2558
2556
  }, [e.symbol]), /* @__PURE__ */ l("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ l(
2559
- Re,
2557
+ Ie,
2560
2558
  {
2561
2559
  __isNestedRender: !0,
2562
2560
  apiVersion: e.builderContext.apiVersion,
@@ -2573,31 +2571,31 @@ function Yt(e) {
2573
2571
  }
2574
2572
  ) });
2575
2573
  }
2576
- const Zt = ie, en = Re;
2574
+ const Qt = ne, Xt = Ie;
2577
2575
  export {
2578
- ie as Blocks,
2579
- We as Button,
2580
- at as Columns,
2581
- Re as Content,
2582
- ot as Fragment,
2583
- ct as Image,
2584
- Zt as RenderBlocks,
2585
- en as RenderContent,
2586
- st as Section,
2587
- Yt as Symbol,
2588
- wt as Text,
2589
- Tt as Video,
2590
- an as _processContentResult,
2591
- Be as createRegisterComponentMessage,
2592
- on as fetchBuilderProps,
2593
- rn as fetchEntries,
2594
- Se as fetchOneEntry,
2595
- ln as getAllContent,
2596
- cn as getBuilderSearchParams,
2597
- sn as getContent,
2576
+ ne as Blocks,
2577
+ Fe as Button,
2578
+ nt as Columns,
2579
+ Ie as Content,
2580
+ it as Fragment,
2581
+ rt as Image,
2582
+ Qt as RenderBlocks,
2583
+ Xt as RenderContent,
2584
+ lt as Section,
2585
+ Dt as Symbol,
2586
+ pt as Text,
2587
+ wt as Video,
2588
+ tn as _processContentResult,
2589
+ Pe as createRegisterComponentMessage,
2590
+ nn as fetchBuilderProps,
2591
+ an as fetchEntries,
2592
+ xe as fetchOneEntry,
2593
+ on as getAllContent,
2594
+ rn as getBuilderSearchParams,
2595
+ ln as getContent,
2598
2596
  V as isEditing,
2599
- Ve as isPreviewing,
2600
- Ae as register,
2601
- dn as setEditorSettings,
2602
- un as track
2597
+ Ae as isPreviewing,
2598
+ $e as register,
2599
+ cn as setEditorSettings,
2600
+ sn as track
2603
2601
  };