@builder.io/sdk-react 1.0.20 → 1.0.22

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.
Files changed (66) hide show
  1. package/lib/browser/blocks-exports.cjs +22 -22
  2. package/lib/browser/blocks-exports.mjs +428 -432
  3. package/lib/browser/index.cjs +1 -1
  4. package/lib/browser/index.mjs +1 -1
  5. package/lib/browser/init.cjs +1 -0
  6. package/lib/browser/init.mjs +13 -0
  7. package/lib/browser/{server-entry-a562cf23.js → server-entry-3e30c656.js} +81 -82
  8. package/lib/browser/server-entry-8951c0c5.cjs +2 -0
  9. package/lib/browser/server-entry.cjs +1 -1
  10. package/lib/browser/server-entry.mjs +1 -1
  11. package/lib/edge/blocks-5705f416.cjs +32 -0
  12. package/lib/edge/{blocks-683aad9f.js → blocks-b1f5ec2b.js} +742 -747
  13. package/lib/edge/blocks-exports.cjs +1 -1
  14. package/lib/edge/blocks-exports.mjs +2 -2
  15. package/lib/edge/{button-9f6acf3e.js → button-2b710146.js} +2 -2
  16. package/lib/edge/{button-0d418bcf.cjs → button-3c20ccff.cjs} +1 -1
  17. package/lib/edge/{columns-b0785992.js → columns-38a397cd.js} +3 -3
  18. package/lib/edge/{columns-1613d62d.cjs → columns-761d98c4.cjs} +1 -1
  19. package/lib/edge/{content-variants-281298f6.cjs → content-variants-befe3587.cjs} +4 -4
  20. package/lib/edge/{content-variants-13f821c6.js → content-variants-f165fa88.js} +21 -21
  21. package/lib/edge/{form-0483aa64.cjs → form-b0d65d74.cjs} +1 -1
  22. package/lib/edge/{form-db27fc26.js → form-d0cfb830.js} +3 -3
  23. package/lib/edge/{get-class-prop-name-e3ba0522.cjs → get-class-prop-name-27f8a4f1.cjs} +1 -1
  24. package/lib/edge/{get-class-prop-name-6bfc4756.js → get-class-prop-name-49d9b54f.js} +1 -1
  25. package/lib/edge/{img-43a8ffe0.js → img-e321016e.js} +1 -1
  26. package/lib/edge/{img-f01d904d.cjs → img-fcf6e57f.cjs} +1 -1
  27. package/lib/edge/index.cjs +1 -1
  28. package/lib/edge/index.mjs +1 -1
  29. package/lib/edge/init.cjs +1 -0
  30. package/lib/edge/init.mjs +13 -0
  31. package/lib/edge/{input-805a9ac6.js → input-27f575fe.js} +1 -1
  32. package/lib/edge/{input-e6483bd7.cjs → input-f0319ee6.cjs} +1 -1
  33. package/lib/edge/{select-4966723f.js → select-dd4c61db.js} +1 -1
  34. package/lib/edge/{select-e5d1e627.cjs → select-e31522ee.cjs} +1 -1
  35. package/lib/edge/{server-entry-c13e82bd.js → server-entry-253a0fa1.js} +80 -81
  36. package/lib/edge/server-entry-dd363108.cjs +2 -0
  37. package/lib/edge/server-entry.cjs +1 -1
  38. package/lib/edge/server-entry.mjs +1 -1
  39. package/lib/edge/{slot-3ef77ae1.cjs → slot-a2388031.cjs} +1 -1
  40. package/lib/edge/{slot-1b0351de.js → slot-fea27ccf.js} +3 -3
  41. package/lib/edge/{symbol-f1632f93.js → symbol-686edeb8.js} +2 -2
  42. package/lib/edge/{symbol-883d624f.cjs → symbol-ba2c6245.cjs} +1 -1
  43. package/lib/node/blocks-exports.cjs +30 -70
  44. package/lib/node/blocks-exports.mjs +916 -1046
  45. package/lib/node/index.cjs +1 -1
  46. package/lib/node/index.mjs +23 -22
  47. package/lib/node/init.cjs +1 -0
  48. package/lib/node/init.mjs +9 -0
  49. package/lib/node/node-runtime-6587ed2e.js +155 -0
  50. package/lib/node/node-runtime-fa43cf07.cjs +48 -0
  51. package/lib/node/{server-entry-8c712c9b.js → server-entry-14d7a1d0.js} +82 -82
  52. package/lib/node/server-entry-3abae5dd.cjs +2 -0
  53. package/lib/node/server-entry.cjs +1 -1
  54. package/lib/node/server-entry.mjs +1 -1
  55. package/package.json +6 -1
  56. package/types/components/block/animator.d.ts +1 -1
  57. package/types/constants/sdk-version.d.ts +1 -1
  58. package/types/functions/evaluate/node-runtime/init.d.ts +10 -0
  59. package/types/functions/evaluate/node-runtime/node-runtime.d.ts +6 -0
  60. package/types/functions/get-content/types.d.ts +3 -3
  61. package/types/functions/is-previewing.d.ts +1 -1
  62. package/types/helpers/logger.d.ts +1 -0
  63. package/lib/browser/server-entry-a77461d4.cjs +0 -2
  64. package/lib/edge/blocks-523eb4f1.cjs +0 -32
  65. package/lib/edge/server-entry-83648311.cjs +0 -2
  66. package/lib/node/server-entry-bedf45f8.cjs +0 -2
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  var De = Object.defineProperty;
3
3
  var Me = (e, t, n) => t in e ? De(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
4
- var ee = (e, t, n) => (Me(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ var te = (e, t, n) => (Me(e, typeof t != "symbol" ? t + "" : t, n), n);
5
5
  import { jsx as s, Fragment as T, jsxs as B } from "react/jsx-runtime";
6
- import { TARGET as z, isEditing as N, isBrowser as j, getUserAttributes as Oe, checkIsDefined as Y, logger as H, fastClone as oe, registerInsertMenu as Ue, setupBrowserForEditing as je, createRegisterComponentMessage as He, getDefaultCanTrack as G, _track as ue, isPreviewing as Ke, fetchOneEntry as ke, createEditorListener as qe, fetch as ze, serializeComponentInfo as me, handleABTestingSync as _e } from "./server-entry-a562cf23.js";
7
- import { createContext as Ce, useState as k, useEffect as V, useContext as fe, useRef as X, createElement as we } from "react";
6
+ import { TARGET as z, isEditing as N, isBrowser as U, getUserAttributes as Oe, checkIsDefined as G, logger as H, fastClone as oe, registerInsertMenu as Ue, setupBrowserForEditing as je, createRegisterComponentMessage as He, getDefaultCanTrack as Q, _track as ce, isPreviewing as Ke, fetchOneEntry as Se, createEditorListener as qe, fetch as ze, serializeComponentInfo as de, handleABTestingSync as _e } from "./server-entry-3e30c656.js";
7
+ import { createContext as ve, useState as I, useEffect as V, useContext as ue, useRef as Z, createElement as ke } from "react";
8
8
  const Je = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Ye = (e) => typeof e == "string" && Je.has(e.toLowerCase());
9
9
  function ae(e) {
10
10
  return /* @__PURE__ */ s(T, { children: Ye(e.TagName) ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes }) }) : /* @__PURE__ */ s(T, { children: typeof e.TagName == "string" ? /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) : /* @__PURE__ */ s(e.TagName, { ...e.attributes, ...e.actionAttributes, children: e.children }) }) });
@@ -43,7 +43,7 @@ function Ge(e) {
43
43
  }
44
44
  );
45
45
  }
46
- const re = Ce({
46
+ const re = ve({
47
47
  content: null,
48
48
  context: {},
49
49
  localState: void 0,
@@ -56,7 +56,7 @@ const re = Ce({
56
56
  inheritedStyles: {},
57
57
  BlocksWrapper: "div",
58
58
  BlocksWrapperProps: {}
59
- }), Ie = Ce({ registeredComponents: {} });
59
+ }), Ce = ve({ registeredComponents: {} });
60
60
  function Qe(e) {
61
61
  var t;
62
62
  return {
@@ -82,12 +82,12 @@ const Xe = ({
82
82
  event: n
83
83
  }), Ze = () => ({
84
84
  isEditing: N(),
85
- isBrowser: j(),
86
- isServer: !j(),
85
+ isBrowser: U(),
86
+ isServer: !U(),
87
87
  getUserAttributes: () => Oe()
88
88
  }), et = (e, {
89
89
  isExpression: t = !0
90
- }) => /* 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, he = ({
90
+ }) => /* 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 = ({
91
91
  code: e,
92
92
  builder: t,
93
93
  context: n,
@@ -100,7 +100,7 @@ const Xe = ({
100
100
  builder: t,
101
101
  context: n,
102
102
  event: i,
103
- state: Te({
103
+ state: we({
104
104
  rootState: r,
105
105
  localState: o,
106
106
  rootSetState: a
@@ -108,7 +108,7 @@ const Xe = ({
108
108
  });
109
109
  return new Function(...l.map(([d]) => d), e)(...l.map(([, d]) => d));
110
110
  };
111
- function Te({
111
+ function we({
112
112
  rootState: e,
113
113
  localState: t,
114
114
  rootSetState: n
@@ -118,7 +118,7 @@ function Te({
118
118
  if (t && o in t)
119
119
  return t[o];
120
120
  const a = i[o];
121
- return typeof a == "object" && a !== null ? Te({
121
+ return typeof a == "object" && a !== null ? we({
122
122
  rootState: a,
123
123
  localState: void 0,
124
124
  rootSetState: n ? (r) => {
@@ -135,7 +135,7 @@ function Te({
135
135
  }
136
136
  function tt() {
137
137
  var e;
138
- return typeof process != "undefined" && Y((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
138
+ return typeof process != "undefined" && G((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
139
139
  }
140
140
  const nt = () => {
141
141
  var i;
@@ -143,7 +143,7 @@ const nt = () => {
143
143
  return !1;
144
144
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (i = process.env.NODE_OPTIONS) == null ? void 0 : i.includes("--no-node-snapshot");
145
145
  return e && t && !n ? (H.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
146
- }, it = (e) => (j() || nt(), he(e)), F = class F {
146
+ }, it = (e) => (U() || nt(), me(e)), $ = class $ {
147
147
  static getCacheKey(t) {
148
148
  return JSON.stringify({
149
149
  ...t,
@@ -153,16 +153,16 @@ const nt = () => {
153
153
  });
154
154
  }
155
155
  static getCachedValue(t) {
156
- return F.cache.get(t);
156
+ return $.cache.get(t);
157
157
  }
158
158
  static setCachedValue(t, n) {
159
- F.cache.size > 20 && F.cache.delete(F.cache.keys().next().value), F.cache.set(t, {
159
+ $.cache.size > 20 && $.cache.delete($.cache.keys().next().value), $.cache.set(t, {
160
160
  value: n
161
161
  });
162
162
  }
163
163
  };
164
- ee(F, "cacheLimit", 20), ee(F, "cache", /* @__PURE__ */ new Map());
165
- let O = F;
164
+ te($, "cacheLimit", 20), te($, "cache", /* @__PURE__ */ new Map());
165
+ let M = $;
166
166
  function q({
167
167
  code: e,
168
168
  context: t,
@@ -189,15 +189,15 @@ function q({
189
189
  localState: n
190
190
  };
191
191
  if (l) {
192
- const c = O.getCacheKey(d), m = O.getCachedValue(c);
192
+ const c = M.getCacheKey(d), m = M.getCachedValue(c);
193
193
  if (m)
194
194
  return m.value;
195
195
  }
196
196
  try {
197
197
  const c = it(d);
198
198
  if (l) {
199
- const m = O.getCacheKey(d);
200
- O.setCachedValue(m, c);
199
+ const m = M.getCacheKey(d);
200
+ M.setCachedValue(m, c);
201
201
  }
202
202
  return c;
203
203
  } catch (c) {
@@ -207,7 +207,7 @@ function q({
207
207
  return;
208
208
  }
209
209
  }
210
- const Ee = (e, t, n) => {
210
+ const Ie = (e, t, n) => {
211
211
  if (Object(e) !== e)
212
212
  return e;
213
213
  const i = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
@@ -240,11 +240,11 @@ const ot = ({
240
240
  context: t,
241
241
  enableCache: !0
242
242
  });
243
- Ee(r, l, c);
243
+ Ie(r, l, c);
244
244
  }
245
245
  return r;
246
246
  };
247
- function Q({
247
+ function X({
248
248
  block: e,
249
249
  context: t,
250
250
  shouldEvaluateBindings: n,
@@ -273,7 +273,7 @@ function at(e, t, n = {}) {
273
273
  return i = this, o = arguments, m <= 0 || m > t ? (r && (clearTimeout(r), r = null), l = c, a = e.apply(i, o), r || (i = o = null)) : !r && n.trailing !== !1 && (r = setTimeout(d, m)), a;
274
274
  };
275
275
  }
276
- function D(e, ...t) {
276
+ function j(e, ...t) {
277
277
  const n = Object(e);
278
278
  for (let i = 1; i < arguments.length; i++) {
279
279
  const o = arguments[i];
@@ -290,18 +290,15 @@ function rt(e) {
290
290
  case "pageLoad":
291
291
  Re(t);
292
292
  break;
293
- case "hover":
294
- st(t);
295
- break;
296
293
  case "scrollInView":
297
- ct(t);
294
+ st(t);
298
295
  break;
299
296
  }
300
297
  }
301
- function se(e) {
298
+ function Te(e) {
302
299
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
303
300
  }
304
- function ce(e, t) {
301
+ function Ee(e, t) {
305
302
  const n = lt(e), i = getComputedStyle(t), o = e.steps[0].styles, a = e.steps[e.steps.length - 1].styles, r = [o, a];
306
303
  for (const l of r)
307
304
  for (const d of n)
@@ -317,12 +314,12 @@ function lt(e) {
317
314
  function Re(e) {
318
315
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
319
316
  if (!t.length) {
320
- se(e.elementId || e.id || "");
317
+ Te(e.elementId || e.id || "");
321
318
  return;
322
319
  }
323
320
  Array.from(t).forEach((n) => {
324
- ce(e, n), n.style.transition = "none", n.style.transitionDelay = "0", D(n.style, e.steps[0].styles), setTimeout(() => {
325
- n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), D(n.style, e.steps[1].styles), setTimeout(() => {
321
+ Ee(e, n), n.style.transition = "none", n.style.transitionDelay = "0", j(n.style, e.steps[0].styles), setTimeout(() => {
322
+ n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), j(n.style, e.steps[1].styles), setTimeout(() => {
326
323
  n.style.transition = "", n.style.transitionDelay = "";
327
324
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
328
325
  });
@@ -331,49 +328,29 @@ function Re(e) {
331
328
  function st(e) {
332
329
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
333
330
  if (!t.length) {
334
- se(e.elementId || e.id || "");
335
- return;
336
- }
337
- Array.from(t).forEach((n) => {
338
- ce(e, n);
339
- const i = e.steps[0].styles, o = e.steps[1].styles;
340
- function a() {
341
- D(n.style, i);
342
- }
343
- function r() {
344
- D(n.style, o);
345
- }
346
- a(), n.addEventListener("mouseenter", r), n.addEventListener("mouseleave", a), setTimeout(() => {
347
- n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
348
- });
349
- });
350
- }
351
- function ct(e) {
352
- const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
353
- if (!t.length) {
354
- se(e.elementId || e.id || "");
331
+ Te(e.elementId || e.id || "");
355
332
  return;
356
333
  }
357
334
  Array.from(t).forEach((n) => {
358
- ce(e, n);
335
+ Ee(e, n);
359
336
  let i = !1, o = !1;
360
337
  function a() {
361
338
  !i && l(n) ? (i = !0, o = !0, setTimeout(() => {
362
- D(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
339
+ j(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", r), setTimeout(() => {
363
340
  o = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
364
341
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
365
- })) : e.repeat && i && !o && !l(n) && (i = !1, D(n.style, e.steps[0].styles));
342
+ })) : e.repeat && i && !o && !l(n) && (i = !1, j(n.style, e.steps[0].styles));
366
343
  }
367
344
  const r = at(a, 200, {
368
345
  leading: !1
369
346
  });
370
347
  function l(m) {
371
- const f = m.getBoundingClientRect(), g = window.innerHeight, S = (e.thresholdPercent || 0) / 100 * g;
372
- return f.bottom > S && f.top < g - S;
348
+ const f = m.getBoundingClientRect(), g = window.innerHeight, x = (e.thresholdPercent || 0) / 100 * g;
349
+ return f.bottom > x && f.top < g - x;
373
350
  }
374
351
  const d = e.steps[0].styles;
375
352
  function c() {
376
- D(n.style, d);
353
+ j(n.style, d);
377
354
  }
378
355
  c(), setTimeout(() => {
379
356
  n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
@@ -383,31 +360,31 @@ function ct(e) {
383
360
  }), a();
384
361
  });
385
362
  }
386
- const dt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Pe = (e) => Object.entries(e).map(([n, i]) => {
363
+ const ct = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Pe = (e) => Object.entries(e).map(([n, i]) => {
387
364
  if (typeof i == "string")
388
- return `${dt(n)}: ${i};`;
389
- }).filter(Y), ut = (e) => Pe(e).join(`
390
- `), te = ({
365
+ return `${ct(n)}: ${i};`;
366
+ }).filter(G), dt = (e) => Pe(e).join(`
367
+ `), J = ({
391
368
  mediaQuery: e,
392
369
  className: t,
393
370
  styles: n
394
371
  }) => {
395
372
  const i = `.${t} {
396
- ${ut(n)}
373
+ ${dt(n)}
397
374
  }`;
398
375
  return e ? `${e} {
399
376
  ${i}
400
377
  }` : i;
401
378
  };
402
- function mt({
379
+ function ut({
403
380
  style: e
404
381
  }) {
405
382
  return e;
406
383
  }
407
- const ft = ({
384
+ const mt = ({
408
385
  block: e,
409
386
  context: t
410
- }) => Ve(mt({
387
+ }) => Ve(ut({
411
388
  style: e.style || {},
412
389
  context: t,
413
390
  block: e
@@ -425,13 +402,13 @@ function Ve(e) {
425
402
  return e;
426
403
  }
427
404
  }
428
- const ht = ({
405
+ const ft = ({
429
406
  block: e,
430
407
  context: t,
431
408
  registeredComponents: n
432
409
  }) => {
433
410
  var a;
434
- const i = (a = Q({
411
+ const i = (a = X({
435
412
  block: e,
436
413
  localState: t.localState,
437
414
  rootState: t.rootState,
@@ -447,7 +424,7 @@ const ht = ({
447
424
  console.warn(`
448
425
  Could not find a registered component named "${i}".
449
426
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
450
- }, gt = ({
427
+ }, ht = ({
451
428
  block: e,
452
429
  context: t
453
430
  }) => {
@@ -497,7 +474,7 @@ const ht = ({
497
474
  default: 991,
498
475
  max: 1200
499
476
  }
500
- }, ge = (e, t = Be) => `@media (max-width: ${t[e].max}px)`, Ae = ({
477
+ }, fe = (e, t = Be) => `@media (max-width: ${t[e].max}px)`, We = ({
501
478
  small: e,
502
479
  medium: t
503
480
  }) => {
@@ -524,7 +501,7 @@ const ht = ({
524
501
  default: a + 1
525
502
  }, n;
526
503
  };
527
- function Z(e) {
504
+ function ee(e) {
528
505
  return /* @__PURE__ */ s(
529
506
  "style",
530
507
  {
@@ -533,9 +510,9 @@ function Z(e) {
533
510
  }
534
511
  );
535
512
  }
536
- function bt(e) {
513
+ function gt(e) {
537
514
  function t() {
538
- const i = Q({
515
+ const i = X({
539
516
  block: e.block,
540
517
  localState: e.context.localState,
541
518
  rootState: e.context.rootState,
@@ -543,48 +520,67 @@ function bt(e) {
543
520
  context: e.context.context,
544
521
  shouldEvaluateBindings: !0
545
522
  });
546
- return Y(i.hide) ? !i.hide : Y(i.show) ? i.show : !0;
523
+ return G(i.hide) ? !i.hide : G(i.show) ? i.show : !0;
547
524
  }
548
525
  function n() {
549
- var S;
550
- const i = Q({
526
+ var w, E, p;
527
+ const i = X({
551
528
  block: e.block,
552
529
  localState: e.context.localState,
553
530
  rootState: e.context.rootState,
554
531
  rootSetState: e.context.rootSetState,
555
532
  context: e.context.context,
556
533
  shouldEvaluateBindings: !0
557
- }), o = i.responsiveStyles, a = e.context.content, r = Ae(
558
- ((S = a == null ? void 0 : a.meta) == null ? void 0 : S.breakpoints) || {}
534
+ }), o = i.responsiveStyles, a = e.context.content, r = We(
535
+ ((w = a == null ? void 0 : a.meta) == null ? void 0 : w.breakpoints) || {}
559
536
  ), l = o == null ? void 0 : o.large, d = o == null ? void 0 : o.medium, c = o == null ? void 0 : o.small, m = i.id;
560
537
  if (!m)
561
538
  return "";
562
- const f = l ? te({
539
+ const f = l ? J({
563
540
  className: m,
564
541
  styles: l
565
- }) : "", g = d ? te({
542
+ }) : "", g = d ? J({
566
543
  className: m,
567
544
  styles: d,
568
- mediaQuery: ge(
545
+ mediaQuery: fe(
569
546
  "medium",
570
547
  r
571
548
  )
572
- }) : "", y = c ? te({
549
+ }) : "", y = c ? J({
573
550
  className: m,
574
551
  styles: c,
575
- mediaQuery: ge(
552
+ mediaQuery: fe(
576
553
  "small",
577
554
  r
578
555
  )
579
- }) : "";
580
- return [f, g, y].join(" ");
556
+ }) : "", x = i.animations && i.animations.find((v) => v.trigger === "hover");
557
+ let k = "";
558
+ if (x) {
559
+ const v = ((p = (E = x.steps) == null ? void 0 : E[1]) == null ? void 0 : p.styles) || {};
560
+ k = J({
561
+ className: `${m}:hover`,
562
+ styles: {
563
+ ...v,
564
+ transition: `all ${x.duration}s ${le(
565
+ x.easing
566
+ )}`,
567
+ transitionDelay: x.delay ? `${x.delay}s` : "0s"
568
+ }
569
+ }) || "";
570
+ }
571
+ return [
572
+ f,
573
+ g,
574
+ y,
575
+ k
576
+ ].join(" ");
581
577
  }
582
- return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(Z, { id: "builderio-block", styles: n() }) }) : null });
578
+ return /* @__PURE__ */ s(T, { children: n() && t() ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(ee, { id: "builderio-block", styles: n() }) }) : null });
583
579
  }
584
- function yt(e) {
580
+ function bt(e) {
585
581
  return e.charAt(0).toUpperCase() + e.slice(1);
586
582
  }
587
- const pt = (e) => `on${yt(e)}`, xt = (e, t) => (n) => q({
583
+ const yt = (e) => `on${bt(e)}`, pt = (e, t) => (n) => q({
588
584
  code: e,
589
585
  context: t.context,
590
586
  localState: t.localState,
@@ -594,14 +590,14 @@ const pt = (e) => `on${yt(e)}`, xt = (e, t) => (n) => q({
594
590
  isExpression: !1,
595
591
  enableCache: !0
596
592
  });
597
- function We(e) {
593
+ function Ae(e) {
598
594
  var i;
599
595
  const t = {}, n = (i = e.block.actions) != null ? i : {};
600
596
  for (const o in n) {
601
597
  if (!n.hasOwnProperty(o))
602
598
  continue;
603
599
  const a = n[o];
604
- let r = pt(o);
600
+ let r = yt(o);
605
601
  if (e.stripPrefix)
606
602
  switch (z) {
607
603
  case "vue":
@@ -611,49 +607,49 @@ function We(e) {
611
607
  r = r.replace("on:", "");
612
608
  break;
613
609
  }
614
- t[r] = xt(a, e);
610
+ t[r] = pt(a, e);
615
611
  }
616
612
  return t;
617
613
  }
618
- function St({
614
+ function xt({
619
615
  properties: e
620
616
  }) {
621
617
  return e;
622
618
  }
623
- const vt = (e) => ({
619
+ const St = (e) => ({
624
620
  href: e.href
625
621
  });
626
- function de({
622
+ function se({
627
623
  block: e,
628
624
  context: t
629
625
  }) {
630
626
  var i;
631
627
  const n = {
632
- ...vt(e),
628
+ ...St(e),
633
629
  ...e.properties,
634
630
  "builder-id": e.id,
635
- style: ft({
631
+ style: mt({
636
632
  block: e,
637
633
  context: t
638
634
  }),
639
635
  [K()]: [e.id, "builder-block", e.class, (i = e.properties) == null ? void 0 : i.class].filter(Boolean).join(" ")
640
636
  };
641
- return St({
637
+ return xt({
642
638
  properties: n,
643
639
  context: t,
644
640
  block: e
645
641
  });
646
642
  }
647
- function kt(e) {
643
+ function vt(e) {
648
644
  return /* @__PURE__ */ s(
649
645
  ae,
650
646
  {
651
647
  TagName: e.Wrapper,
652
- attributes: de({
648
+ attributes: se({
653
649
  block: e.block,
654
650
  context: e.context
655
651
  }),
656
- actionAttributes: We({
652
+ actionAttributes: Ae({
657
653
  block: e.block,
658
654
  rootState: e.context.rootState,
659
655
  rootSetState: e.context.rootSetState,
@@ -665,17 +661,17 @@ function kt(e) {
665
661
  }
666
662
  );
667
663
  }
668
- function Ct(e) {
664
+ function kt(e) {
669
665
  return /* @__PURE__ */ s(
670
666
  e.Wrapper,
671
667
  {
672
668
  ...e.wrapperProps,
673
669
  attributes: e.includeBlockProps ? {
674
- ...de({
670
+ ...se({
675
671
  block: e.block,
676
672
  context: e.context
677
673
  }),
678
- ...We({
674
+ ...Ae({
679
675
  block: e.block,
680
676
  rootState: e.context.rootState,
681
677
  rootSetState: e.context.rootSetState,
@@ -687,7 +683,7 @@ function Ct(e) {
687
683
  }
688
684
  );
689
685
  }
690
- const wt = ({
686
+ const Ct = ({
691
687
  componentOptions: e,
692
688
  builderBlock: t,
693
689
  context: n,
@@ -703,7 +699,7 @@ const wt = ({
703
699
  * component itself directly. Otherwise, they are provided to the wrapper element.
704
700
  */
705
701
  ...o ? {
706
- attributes: de({
702
+ attributes: se({
707
703
  block: t,
708
704
  context: r
709
705
  })
@@ -717,15 +713,15 @@ const wt = ({
717
713
  includeBlockProps: o
718
714
  } : l;
719
715
  };
720
- function be(e) {
716
+ function he(e) {
721
717
  var i;
722
- const [t, n] = k(
723
- () => e.isInteractive ? Ct : e.componentRef
718
+ const [t, n] = I(
719
+ () => e.isInteractive ? kt : e.componentRef
724
720
  );
725
721
  return /* @__PURE__ */ s(T, { children: e.componentRef ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
726
722
  t,
727
723
  {
728
- ...wt({
724
+ ...Ct({
729
725
  componentOptions: e.componentOptions,
730
726
  builderBlock: e.builderBlock,
731
727
  context: e.context,
@@ -748,8 +744,8 @@ function be(e) {
748
744
  }
749
745
  ) }) : null });
750
746
  }
751
- function It(e) {
752
- const [t, n] = k(() => e.repeatContext);
747
+ function wt(e) {
748
+ const [t, n] = I(() => e.repeatContext);
753
749
  return /* @__PURE__ */ s(re.Provider, { value: t, children: /* @__PURE__ */ s(
754
750
  _,
755
751
  {
@@ -763,21 +759,21 @@ function It(e) {
763
759
  function _(e) {
764
760
  var d, c, m;
765
761
  function t() {
766
- return ht({
762
+ return ft({
767
763
  block: e.block,
768
764
  context: e.context,
769
765
  registeredComponents: e.registeredComponents
770
766
  });
771
767
  }
772
768
  function n() {
773
- return gt({
769
+ return ht({
774
770
  block: e.block,
775
771
  context: e.context
776
772
  });
777
773
  }
778
774
  function i() {
779
775
  var f;
780
- return (f = e.block.repeat) != null && f.collection ? e.block : Q({
776
+ return (f = e.block.repeat) != null && f.collection ? e.block : X({
781
777
  block: e.block,
782
778
  localState: e.context.localState,
783
779
  rootState: e.context.rootState,
@@ -791,9 +787,9 @@ function _(e) {
791
787
  return e.block.tagName === "a" || ((g = i().properties) == null ? void 0 : g.href) || i().href ? e.linkComponent || "a" : e.block.tagName || "div";
792
788
  }
793
789
  function a() {
794
- var y, S;
790
+ var y, x;
795
791
  if ((y = e.block.repeat) != null && y.collection)
796
- return !!((S = n == null ? void 0 : n()) != null && S.length);
792
+ return !!((x = n == null ? void 0 : n()) != null && x.length);
797
793
  const f = "hide" in i() ? i().hide : !1;
798
794
  return ("show" in i() ? i().show : !0) && !f;
799
795
  }
@@ -802,17 +798,17 @@ function _(e) {
802
798
  return !((g = t == null ? void 0 : t()) != null && g.component) && !n() ? (y = i().children) != null ? y : [] : [];
803
799
  }
804
800
  function l() {
805
- var f, g, y, S, C, I, R, p, w, P, E;
801
+ var f, g, y, x, k, w, E, p, v, P, R;
806
802
  return {
807
803
  blockChildren: (f = i().children) != null ? f : [],
808
804
  componentRef: (g = t == null ? void 0 : t()) == null ? void 0 : g.component,
809
805
  componentOptions: {
810
806
  ...Qe(i()),
811
807
  builderContext: e.context,
812
- ...((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Core:Button" || ((S = t == null ? void 0 : t()) == null ? void 0 : S.name) === "Symbol" || ((C = t == null ? void 0 : t()) == null ? void 0 : C.name) === "Columns" || ((I = t == null ? void 0 : t()) == null ? void 0 : I.name) === "Form:Form" ? {
808
+ ...((y = t == null ? void 0 : t()) == null ? void 0 : y.name) === "Core:Button" || ((x = t == null ? void 0 : t()) == null ? void 0 : x.name) === "Symbol" || ((k = t == null ? void 0 : t()) == null ? void 0 : k.name) === "Columns" || ((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Form:Form" ? {
813
809
  builderLinkComponent: e.linkComponent
814
810
  } : {},
815
- ...((R = t == null ? void 0 : t()) == null ? void 0 : R.name) === "Symbol" || ((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Columns" || ((w = t == null ? void 0 : t()) == null ? void 0 : w.name) === "Form:Form" ? {
811
+ ...((E = t == null ? void 0 : t()) == null ? void 0 : E.name) === "Symbol" || ((p = t == null ? void 0 : t()) == null ? void 0 : p.name) === "Columns" || ((v = t == null ? void 0 : t()) == null ? void 0 : v.name) === "Form:Form" ? {
816
812
  builderComponents: e.registeredComponents
817
813
  } : {}
818
814
  },
@@ -821,21 +817,21 @@ function _(e) {
821
817
  registeredComponents: e.registeredComponents,
822
818
  builderBlock: i(),
823
819
  includeBlockProps: ((P = t == null ? void 0 : t()) == null ? void 0 : P.noWrap) === !0,
824
- isInteractive: !((E = t == null ? void 0 : t()) != null && E.isRSC)
820
+ isInteractive: !((R = t == null ? void 0 : t()) != null && R.isRSC)
825
821
  };
826
822
  }
827
823
  return V(() => {
828
824
  const f = i().id, g = i().animations;
829
825
  g && f && rt(
830
- g.filter((y) => y.trigger !== "hover").map((y) => ({
826
+ g.map((y) => ({
831
827
  ...y,
832
828
  elementId: f
833
829
  }))
834
830
  );
835
831
  }, []), /* @__PURE__ */ s(T, { children: a() ? /* @__PURE__ */ B(T, { children: [
836
- /* @__PURE__ */ s(bt, { block: e.block, context: e.context }),
832
+ /* @__PURE__ */ s(gt, { block: e.block, context: e.context }),
837
833
  (d = t == null ? void 0 : t()) != null && d.noWrap ? /* @__PURE__ */ s(T, { children: /* @__PURE__ */ s(
838
- be,
834
+ he,
839
835
  {
840
836
  componentRef: l().componentRef,
841
837
  componentOptions: l().componentOptions,
@@ -848,7 +844,7 @@ function _(e) {
848
844
  isInteractive: l().isInteractive
849
845
  }
850
846
  ) }) : /* @__PURE__ */ s(T, { children: n() ? /* @__PURE__ */ s(T, { children: (m = n()) == null ? void 0 : m.map((f, g) => /* @__PURE__ */ s(
851
- It,
847
+ wt,
852
848
  {
853
849
  repeatContext: f.context,
854
850
  block: f.block,
@@ -857,7 +853,7 @@ function _(e) {
857
853
  },
858
854
  g
859
855
  )) }) : /* @__PURE__ */ B(
860
- kt,
856
+ vt,
861
857
  {
862
858
  Wrapper: o(),
863
859
  block: i(),
@@ -865,7 +861,7 @@ function _(e) {
865
861
  linkComponent: e.linkComponent,
866
862
  children: [
867
863
  /* @__PURE__ */ s(
868
- be,
864
+ he,
869
865
  {
870
866
  componentRef: l().componentRef,
871
867
  componentOptions: l().componentOptions,
@@ -893,7 +889,7 @@ function _(e) {
893
889
  ) })
894
890
  ] }) : null });
895
891
  }
896
- function Tt(e) {
892
+ function It(e) {
897
893
  function t() {
898
894
  var o;
899
895
  return "builder-blocks" + ((o = e.blocks) != null && o.length ? "" : " no-blocks");
@@ -946,11 +942,11 @@ function Tt(e) {
946
942
  }` })
947
943
  ] });
948
944
  }
949
- function U(e) {
945
+ function O(e) {
950
946
  var i, o, a;
951
- const t = fe(re), n = fe(Ie);
947
+ const t = ue(re), n = ue(Ce);
952
948
  return /* @__PURE__ */ s(
953
- Tt,
949
+ It,
954
950
  {
955
951
  blocks: e.blocks,
956
952
  parent: e.parent,
@@ -971,34 +967,34 @@ function U(e) {
971
967
  }
972
968
  );
973
969
  }
974
- function Et(e) {
975
- var R;
976
- const [t, n] = k(
970
+ function Tt(e) {
971
+ var E;
972
+ const [t, n] = I(
977
973
  () => typeof e.space == "number" ? e.space || 0 : 20
978
- ), [i, o] = k(() => e.columns || []), [a, r] = k(
974
+ ), [i, o] = I(() => e.columns || []), [a, r] = I(
979
975
  () => e.stackColumnsAt || "tablet"
980
976
  );
981
977
  function l(p) {
982
- var w;
983
- return ((w = i[p]) == null ? void 0 : w.width) || 100 / i.length;
978
+ var v;
979
+ return ((v = i[p]) == null ? void 0 : v.width) || 100 / i.length;
984
980
  }
985
981
  function d(p) {
986
- const w = t * (i.length - 1) / i.length;
987
- return `calc(${l(p)}% - ${w}px)`;
982
+ const v = t * (i.length - 1) / i.length;
983
+ return `calc(${l(p)}% - ${v}px)`;
988
984
  }
989
985
  function c({
990
986
  stackedStyle: p,
991
- desktopStyle: w
987
+ desktopStyle: v
992
988
  }) {
993
- return a === "tablet" ? p : w;
989
+ return a === "tablet" ? p : v;
994
990
  }
995
991
  function m({
996
992
  stackedStyle: p,
997
- desktopStyle: w
993
+ desktopStyle: v
998
994
  }) {
999
- return a === "never" ? w : p;
995
+ return a === "never" ? v : p;
1000
996
  }
1001
- const [f, g] = k(
997
+ const [f, g] = I(
1002
998
  () => e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column"
1003
999
  );
1004
1000
  function y() {
@@ -1010,8 +1006,8 @@ function Et(e) {
1010
1006
  })
1011
1007
  };
1012
1008
  }
1013
- function S(p) {
1014
- const w = p === 0 ? 0 : t, P = d(p), E = `${w}px`, $ = "100%", L = 0;
1009
+ function x(p) {
1010
+ const v = p === 0 ? 0 : t, P = d(p), R = `${v}px`, F = "100%", L = 0;
1015
1011
  return {
1016
1012
  ...{
1017
1013
  display: "flex",
@@ -1019,34 +1015,34 @@ function Et(e) {
1019
1015
  alignItems: "stretch"
1020
1016
  },
1021
1017
  width: P,
1022
- ["marginLeft"]: E,
1018
+ ["marginLeft"]: R,
1023
1019
  "--column-width-mobile": m({
1024
- stackedStyle: $,
1020
+ stackedStyle: F,
1025
1021
  desktopStyle: P
1026
1022
  }),
1027
1023
  "--column-margin-left-mobile": m({
1028
1024
  stackedStyle: L,
1029
- desktopStyle: E
1025
+ desktopStyle: R
1030
1026
  }),
1031
1027
  "--column-width-tablet": c({
1032
- stackedStyle: $,
1028
+ stackedStyle: F,
1033
1029
  desktopStyle: P
1034
1030
  }),
1035
1031
  "--column-margin-left-tablet": c({
1036
1032
  stackedStyle: L,
1037
- desktopStyle: E
1033
+ desktopStyle: R
1038
1034
  })
1039
1035
  };
1040
1036
  }
1041
- function C(p) {
1042
- var P, E;
1043
- return Ae(
1044
- ((E = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : E.breakpoints) || {}
1037
+ function k(p) {
1038
+ var P, R;
1039
+ return We(
1040
+ ((R = (P = e.builderContext.content) == null ? void 0 : P.meta) == null ? void 0 : R.breakpoints) || {}
1045
1041
  )[p].max;
1046
1042
  }
1047
- function I() {
1043
+ function w() {
1048
1044
  return `
1049
- @media (max-width: ${C("medium")}px) {
1045
+ @media (max-width: ${k("medium")}px) {
1050
1046
  .${e.builderBlock.id}-breakpoints {
1051
1047
  flex-direction: var(--flex-dir-tablet);
1052
1048
  align-items: stretch;
@@ -1058,7 +1054,7 @@ function Et(e) {
1058
1054
  }
1059
1055
  }
1060
1056
 
1061
- @media (max-width: ${C("small")}px) {
1057
+ @media (max-width: ${k("small")}px) {
1062
1058
  .${e.builderBlock.id}-breakpoints {
1063
1059
  flex-direction: var(--flex-dir);
1064
1060
  align-items: stretch;
@@ -1078,8 +1074,8 @@ function Et(e) {
1078
1074
  className: `builder-columns ${e.builderBlock.id}-breakpoints div-003f4b1c`,
1079
1075
  style: y(),
1080
1076
  children: [
1081
- /* @__PURE__ */ s(Z, { id: "builderio-columns", styles: I() }),
1082
- (R = e.columns) == null ? void 0 : R.map((p, w) => /* @__PURE__ */ s(
1077
+ /* @__PURE__ */ s(ee, { id: "builderio-columns", styles: w() }),
1078
+ (E = e.columns) == null ? void 0 : E.map((p, v) => /* @__PURE__ */ s(
1083
1079
  ae,
1084
1080
  {
1085
1081
  TagName: p.link ? e.builderLinkComponent || "a" : "div",
@@ -1089,12 +1085,12 @@ function Et(e) {
1089
1085
  href: p.link
1090
1086
  } : {},
1091
1087
  [K()]: "builder-column",
1092
- style: Ve(S(w))
1088
+ style: Ve(x(v))
1093
1089
  },
1094
1090
  children: /* @__PURE__ */ s(
1095
- U,
1091
+ O,
1096
1092
  {
1097
- path: `component.options.columns.${w}.blocks`,
1093
+ path: `component.options.columns.${v}.blocks`,
1098
1094
  parent: e.builderBlock.id,
1099
1095
  styleProp: {
1100
1096
  flexGrow: "1"
@@ -1106,7 +1102,7 @@ function Et(e) {
1106
1102
  }
1107
1103
  )
1108
1104
  },
1109
- w
1105
+ v
1110
1106
  ))
1111
1107
  ]
1112
1108
  }
@@ -1117,25 +1113,25 @@ function Et(e) {
1117
1113
  }` })
1118
1114
  ] });
1119
1115
  }
1120
- function Rt(e) {
1116
+ function Et(e) {
1121
1117
  return /* @__PURE__ */ s("span", { children: e.children });
1122
1118
  }
1123
- function ye(e) {
1119
+ function ge(e) {
1124
1120
  return e.replace(/http(s)?:/, "");
1125
1121
  }
1126
- function Pt(e = "", t, n) {
1122
+ function Rt(e = "", t, n) {
1127
1123
  const i = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), o = e.indexOf("?") !== -1 ? "&" : "?";
1128
1124
  return e.match(i) ? e.replace(i, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + o + t + "=" + encodeURIComponent(n);
1129
1125
  }
1130
- function Vt(e, t) {
1126
+ function Pt(e, t) {
1131
1127
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1132
1128
  return e;
1133
1129
  if (t === "master")
1134
- return ye(e);
1130
+ return ge(e);
1135
1131
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1136
1132
  if (n) {
1137
1133
  const i = e.split(n[0]), o = n[3], a = t.match("x") ? t : `${t}x`;
1138
- return ye(`${i[0]}_${a}${o}`);
1134
+ return ge(`${i[0]}_${a}${o}`);
1139
1135
  }
1140
1136
  return null;
1141
1137
  }
@@ -1146,11 +1142,11 @@ function ne(e) {
1146
1142
  if (e.match(/builder\.io/)) {
1147
1143
  let n = e;
1148
1144
  const i = Number(e.split("?width=")[1]);
1149
- return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Pt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1145
+ return isNaN(i) || (n = `${n} ${i}w`), t.filter((o) => o !== i).map((o) => `${Rt(e, "width", o)} ${o}w`).concat([n]).join(", ");
1150
1146
  }
1151
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Vt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1147
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Pt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, i]) => `${n} ${i}w`).concat([e]).join(", ") : e;
1152
1148
  }
1153
- function Bt(e) {
1149
+ function Vt(e) {
1154
1150
  var o, a, r, l;
1155
1151
  function t() {
1156
1152
  var m;
@@ -1233,7 +1229,7 @@ function Bt(e) {
1233
1229
  }` })
1234
1230
  ] });
1235
1231
  }
1236
- function At(e) {
1232
+ function Bt(e) {
1237
1233
  return /* @__PURE__ */ s(
1238
1234
  "section",
1239
1235
  {
@@ -1287,7 +1283,7 @@ const Wt = {
1287
1283
  }],
1288
1284
  static: !0,
1289
1285
  noWrap: !0
1290
- }, Nt = {
1286
+ }, At = {
1291
1287
  // TODO: ways to statically preprocess JSON for references, functions, etc
1292
1288
  name: "Columns",
1293
1289
  isRSC: !0,
@@ -1488,7 +1484,7 @@ const Wt = {
1488
1484
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1489
1485
  advanced: !0
1490
1486
  }]
1491
- }, Ft = {
1487
+ }, Nt = {
1492
1488
  name: "Fragment",
1493
1489
  static: !0,
1494
1490
  hidden: !0,
@@ -1594,7 +1590,7 @@ const Wt = {
1594
1590
  advanced: !0,
1595
1591
  defaultValue: 0.7041
1596
1592
  }]
1597
- }, Lt = {
1593
+ }, Ft = {
1598
1594
  name: "Core:Section",
1599
1595
  static: !0,
1600
1596
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1633,7 +1629,7 @@ const Wt = {
1633
1629
  }
1634
1630
  }
1635
1631
  }]
1636
- }, Dt = {
1632
+ }, Lt = {
1637
1633
  name: "Slot",
1638
1634
  isRSC: !0,
1639
1635
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1647,7 +1643,7 @@ const Wt = {
1647
1643
  defaultValue: "children"
1648
1644
  }]
1649
1645
  };
1650
- function Mt(e) {
1646
+ function Dt(e) {
1651
1647
  var t, n, i;
1652
1648
  return /* @__PURE__ */ s(
1653
1649
  "div",
@@ -1659,7 +1655,7 @@ function Mt(e) {
1659
1655
  "builder-slot": e.name
1660
1656
  },
1661
1657
  children: /* @__PURE__ */ s(
1662
- U,
1658
+ O,
1663
1659
  {
1664
1660
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1665
1661
  path: `symbol.data.${e.name}`,
@@ -1670,7 +1666,7 @@ function Mt(e) {
1670
1666
  }
1671
1667
  );
1672
1668
  }
1673
- const Ot = {
1669
+ const Mt = {
1674
1670
  name: "Symbol",
1675
1671
  noWrap: !0,
1676
1672
  static: !0,
@@ -1703,7 +1699,7 @@ const Ot = {
1703
1699
  hideFromUI: !0,
1704
1700
  type: "boolean"
1705
1701
  }]
1706
- }, Ut = {
1702
+ }, Ot = {
1707
1703
  name: "Text",
1708
1704
  static: !0,
1709
1705
  isRSC: !0,
@@ -1722,7 +1718,7 @@ const Ot = {
1722
1718
  textAlign: "center"
1723
1719
  }
1724
1720
  };
1725
- function jt(e) {
1721
+ function Ut(e) {
1726
1722
  var t;
1727
1723
  return /* @__PURE__ */ s(
1728
1724
  "div",
@@ -1735,7 +1731,7 @@ function jt(e) {
1735
1731
  }
1736
1732
  );
1737
1733
  }
1738
- const Ht = {
1734
+ const jt = {
1739
1735
  name: "Custom Code",
1740
1736
  static: !0,
1741
1737
  requiredPermissions: ["editCode"],
@@ -1758,8 +1754,8 @@ const Ht = {
1758
1754
  advanced: !0
1759
1755
  }]
1760
1756
  };
1761
- function Kt(e) {
1762
- const t = X(null), [n, i] = k(() => []), [o, a] = k(() => []);
1757
+ function Ht(e) {
1758
+ const t = Z(null), [n, i] = I(() => []), [o, a] = I(() => []);
1763
1759
  return V(() => {
1764
1760
  var l;
1765
1761
  if (!((l = t.current) != null && l.getElementsByTagName) || typeof window == "undefined")
@@ -1796,7 +1792,7 @@ function Kt(e) {
1796
1792
  }
1797
1793
  );
1798
1794
  }
1799
- const qt = {
1795
+ const Kt = {
1800
1796
  name: "Embed",
1801
1797
  static: !0,
1802
1798
  inputs: [{
@@ -1821,9 +1817,9 @@ const qt = {
1821
1817
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1822
1818
  hideFromUI: !0
1823
1819
  }]
1824
- }, zt = ["text/javascript", "application/javascript", "application/ecmascript"], _t = (e) => zt.includes(e.type);
1825
- function Jt(e) {
1826
- const t = X(null), [n, i] = k(() => []), [o, a] = k(() => []), [r, l] = k(() => !1);
1820
+ }, qt = ["text/javascript", "application/javascript", "application/ecmascript"], zt = (e) => qt.includes(e.type);
1821
+ function _t(e) {
1822
+ const t = Z(null), [n, i] = I(() => []), [o, a] = I(() => []), [r, l] = I(() => !1);
1827
1823
  function d() {
1828
1824
  if (!t.current || !t.current.getElementsByTagName)
1829
1825
  return;
@@ -1834,7 +1830,7 @@ function Jt(e) {
1834
1830
  n.push(f.src);
1835
1831
  const g = document.createElement("script");
1836
1832
  g.async = !0, g.src = f.src, document.head.appendChild(g);
1837
- } else if (_t(f) && !o.includes(f.innerText))
1833
+ } else if (zt(f) && !o.includes(f.innerText))
1838
1834
  try {
1839
1835
  o.push(f.innerText), new Function(f.innerText)();
1840
1836
  } catch (g) {
@@ -1853,7 +1849,7 @@ function Jt(e) {
1853
1849
  }
1854
1850
  );
1855
1851
  }
1856
- const Yt = {
1852
+ const Jt = {
1857
1853
  name: "Form:Form",
1858
1854
  // editableTags: ['builder-form-error']
1859
1855
  defaults: {
@@ -2084,50 +2080,50 @@ const Yt = {
2084
2080
  }
2085
2081
  }
2086
2082
  }]
2087
- }, Gt = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Qt = () => {
2083
+ }, Yt = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Gt = () => {
2088
2084
  const e = process.env.NODE_ENV || "production";
2089
- return Gt.includes(e) ? e : "production";
2090
- }, Xt = (e, t, n) => {
2085
+ return Yt.includes(e) ? e : "production";
2086
+ }, Qt = (e, t, n) => {
2091
2087
  const i = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((o, a) => o != null ? o[a] : o, e);
2092
2088
  return i === void 0 || i === e ? n : i;
2093
2089
  };
2094
- function Zt(e) {
2090
+ function Xt(e) {
2095
2091
  var f, g;
2096
- const t = X(null), [n, i] = k(() => "unsubmitted"), [o, a] = k(() => null), [r, l] = k(() => "");
2092
+ const t = Z(null), [n, i] = I(() => "unsubmitted"), [o, a] = I(() => null), [r, l] = I(() => "");
2097
2093
  function d(y) {
2098
- var C, I;
2099
- const S = {
2094
+ var k, w;
2095
+ const x = {
2100
2096
  ...e.builderContext.rootState,
2101
2097
  ...y
2102
2098
  };
2103
- e.builderContext.rootSetState ? (I = (C = e.builderContext).rootSetState) == null || I.call(C, S) : e.builderContext.rootState = S;
2099
+ e.builderContext.rootSetState ? (w = (k = e.builderContext).rootSetState) == null || w.call(k, x) : e.builderContext.rootState = x;
2104
2100
  }
2105
2101
  function c() {
2106
2102
  return N() && e.previewState || n;
2107
2103
  }
2108
2104
  function m(y) {
2109
- var C;
2110
- const S = e.sendWithJs || e.sendSubmissionsTo === "email";
2105
+ var k;
2106
+ const x = e.sendWithJs || e.sendSubmissionsTo === "email";
2111
2107
  if (e.sendSubmissionsTo === "zapier")
2112
2108
  y.preventDefault();
2113
- else if (S) {
2109
+ else if (x) {
2114
2110
  if (!(e.action || e.sendSubmissionsTo === "email")) {
2115
2111
  y.preventDefault();
2116
2112
  return;
2117
2113
  }
2118
2114
  y.preventDefault();
2119
- const I = y.currentTarget, R = e.customHeaders || {};
2115
+ const w = y.currentTarget, E = e.customHeaders || {};
2120
2116
  let p;
2121
- const w = new FormData(I), P = Array.from(
2117
+ const v = new FormData(w), P = Array.from(
2122
2118
  y.currentTarget.querySelectorAll("input,select,textarea")
2123
2119
  ).filter((u) => !!u.name).map((u) => {
2124
2120
  let h;
2125
- const v = u.name;
2121
+ const C = u.name;
2126
2122
  if (u instanceof HTMLInputElement)
2127
2123
  if (u.type === "radio") {
2128
2124
  if (u.checked)
2129
2125
  return h = u.name, {
2130
- key: v,
2126
+ key: C,
2131
2127
  value: h
2132
2128
  };
2133
2129
  } else if (u.type === "checkbox")
@@ -2140,38 +2136,38 @@ function Zt(e) {
2140
2136
  else
2141
2137
  h = u.value;
2142
2138
  return {
2143
- key: v,
2139
+ key: C,
2144
2140
  value: h
2145
2141
  };
2146
2142
  });
2147
- let E = e.contentType;
2148
- if (e.sendSubmissionsTo === "email" && (E = "multipart/form-data"), Array.from(P).forEach(({ value: u }) => {
2149
- (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (E = "multipart/form-data");
2150
- }), E !== "application/json")
2151
- p = w;
2143
+ let R = e.contentType;
2144
+ if (e.sendSubmissionsTo === "email" && (R = "multipart/form-data"), Array.from(P).forEach(({ value: u }) => {
2145
+ (u instanceof File || Array.isArray(u) && u[0] instanceof File || u instanceof FileList) && (R = "multipart/form-data");
2146
+ }), R !== "application/json")
2147
+ p = v;
2152
2148
  else {
2153
2149
  const u = {};
2154
- Array.from(P).forEach(({ value: h, key: v }) => {
2155
- Ee(u, v, h);
2150
+ Array.from(P).forEach(({ value: h, key: C }) => {
2151
+ Ie(u, C, h);
2156
2152
  }), p = JSON.stringify(u);
2157
2153
  }
2158
- E && E !== "multipart/form-data" && (S && ((C = e.action) != null && C.includes("zapier.com")) || (R["content-type"] = E));
2159
- const $ = new CustomEvent("presubmit", { detail: { body: p } });
2160
- if (t.current && (t.current.dispatchEvent($), $.defaultPrevented))
2154
+ R && R !== "multipart/form-data" && (x && ((k = e.action) != null && k.includes("zapier.com")) || (E["content-type"] = R));
2155
+ const F = new CustomEvent("presubmit", { detail: { body: p } });
2156
+ if (t.current && (t.current.dispatchEvent(F), F.defaultPrevented))
2161
2157
  return;
2162
2158
  i("sending");
2163
- const L = `${Qt() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2159
+ const L = `${Gt() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${e.builderContext.apiKey}&to=${btoa(
2164
2160
  e.sendSubmissionsToEmail || ""
2165
2161
  )}&name=${encodeURIComponent(e.name || "")}`;
2166
2162
  fetch(
2167
2163
  e.sendSubmissionsTo === "email" ? L : e.action,
2168
- { body: p, headers: R, method: e.method || "post" }
2164
+ { body: p, headers: E, method: e.method || "post" }
2169
2165
  ).then(
2170
2166
  async (u) => {
2171
2167
  let h;
2172
- const v = u.headers.get("content-type");
2173
- if (v && v.indexOf("application/json") !== -1 ? h = await u.json() : h = await u.text(), !u.ok && e.errorMessagePath) {
2174
- let b = Xt(h, e.errorMessagePath);
2168
+ const C = u.headers.get("content-type");
2169
+ if (C && C.indexOf("application/json") !== -1 ? h = await u.json() : h = await u.text(), !u.ok && e.errorMessagePath) {
2170
+ let b = Qt(h, e.errorMessagePath);
2175
2171
  b && (typeof b != "string" && (b = JSON.stringify(b)), l(b), d({ formErrorMessage: b }));
2176
2172
  }
2177
2173
  if (a(h), i(u.ok ? "success" : "error"), u.ok) {
@@ -2185,10 +2181,10 @@ function Zt(e) {
2185
2181
  }
2186
2182
  if (e.successUrl)
2187
2183
  if (t.current) {
2188
- const x = new CustomEvent("route", {
2184
+ const S = new CustomEvent("route", {
2189
2185
  detail: { url: e.successUrl }
2190
2186
  });
2191
- t.current.dispatchEvent(x), x.defaultPrevented || (location.href = e.successUrl);
2187
+ t.current.dispatchEvent(S), S.defaultPrevented || (location.href = e.successUrl);
2192
2188
  } else
2193
2189
  location.href = e.successUrl;
2194
2190
  }
@@ -2215,7 +2211,7 @@ function Zt(e) {
2215
2211
  onSubmit: (y) => m(y),
2216
2212
  ...e.attributes,
2217
2213
  children: [
2218
- e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (g = (f = e.builderBlock) == null ? void 0 : f.children) == null ? void 0 : g.map((y, S) => /* @__PURE__ */ s(
2214
+ e.builderBlock && e.builderBlock.children ? /* @__PURE__ */ s(T, { children: (g = (f = e.builderBlock) == null ? void 0 : f.children) == null ? void 0 : g.map((y, x) => /* @__PURE__ */ s(
2219
2215
  _,
2220
2216
  {
2221
2217
  block: y,
@@ -2223,10 +2219,10 @@ function Zt(e) {
2223
2219
  registeredComponents: e.builderComponents,
2224
2220
  linkComponent: e.builderLinkComponent
2225
2221
  },
2226
- `form-block-${S}`
2222
+ `form-block-${x}`
2227
2223
  )) }) : null,
2228
2224
  c() === "error" ? /* @__PURE__ */ s(
2229
- U,
2225
+ O,
2230
2226
  {
2231
2227
  path: "errorMessage",
2232
2228
  blocks: e.errorMessage,
@@ -2234,7 +2230,7 @@ function Zt(e) {
2234
2230
  }
2235
2231
  ) : null,
2236
2232
  c() === "sending" ? /* @__PURE__ */ s(
2237
- U,
2233
+ O,
2238
2234
  {
2239
2235
  path: "sendingMessage",
2240
2236
  blocks: e.sendingMessage,
@@ -2243,7 +2239,7 @@ function Zt(e) {
2243
2239
  ) : null,
2244
2240
  c() === "error" && o ? /* @__PURE__ */ s("pre", { className: "builder-form-error-text pre-31bf8a14", children: JSON.stringify(o, null, 2) }) : null,
2245
2241
  c() === "success" ? /* @__PURE__ */ s(
2246
- U,
2242
+ O,
2247
2243
  {
2248
2244
  path: "successMessage",
2249
2245
  blocks: e.successMessage,
@@ -2258,7 +2254,7 @@ function Zt(e) {
2258
2254
  " "
2259
2255
  ] });
2260
2256
  }
2261
- const en = {
2257
+ const Zt = {
2262
2258
  name: "Form:Input",
2263
2259
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2264
2260
  inputs: [
@@ -2310,8 +2306,8 @@ const en = {
2310
2306
  borderColor: "#ccc"
2311
2307
  }
2312
2308
  };
2313
- function tn(e) {
2314
- return /* @__PURE__ */ we(
2309
+ function en(e) {
2310
+ return /* @__PURE__ */ ke(
2315
2311
  "input",
2316
2312
  {
2317
2313
  ...e.attributes,
@@ -2325,7 +2321,7 @@ function tn(e) {
2325
2321
  }
2326
2322
  );
2327
2323
  }
2328
- const nn = {
2324
+ const tn = {
2329
2325
  name: "Form:Select",
2330
2326
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2331
2327
  defaultStyles: {
@@ -2368,9 +2364,9 @@ const nn = {
2368
2364
  static: !0,
2369
2365
  noWrap: !0
2370
2366
  };
2371
- function on(e) {
2367
+ function nn(e) {
2372
2368
  var t;
2373
- return /* @__PURE__ */ we(
2369
+ return /* @__PURE__ */ ke(
2374
2370
  "select",
2375
2371
  {
2376
2372
  ...e.attributes,
@@ -2382,7 +2378,7 @@ function on(e) {
2382
2378
  (t = e.options) == null ? void 0 : t.map((n, i) => /* @__PURE__ */ s("option", { value: n.value, children: n.name || n.value }, `${n.name}-${i}`))
2383
2379
  );
2384
2380
  }
2385
- const an = {
2381
+ const on = {
2386
2382
  name: "Form:SubmitButton",
2387
2383
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2388
2384
  defaultStyles: {
@@ -2408,10 +2404,10 @@ const an = {
2408
2404
  // TODO: defaultChildren
2409
2405
  // canHaveChildren: true,
2410
2406
  };
2411
- function rn(e) {
2407
+ function an(e) {
2412
2408
  return /* @__PURE__ */ s("button", { type: "submit", ...e.attributes, children: e.text });
2413
2409
  }
2414
- const ln = {
2410
+ const rn = {
2415
2411
  // friendlyName?
2416
2412
  name: "Raw:Img",
2417
2413
  hideFromInsertMenu: !0,
@@ -2426,7 +2422,7 @@ const ln = {
2426
2422
  noWrap: !0,
2427
2423
  static: !0
2428
2424
  };
2429
- function sn(e) {
2425
+ function ln(e) {
2430
2426
  return /* @__PURE__ */ s(
2431
2427
  "img",
2432
2428
  {
@@ -2441,7 +2437,7 @@ function sn(e) {
2441
2437
  N() && e.imgSrc || "default-key"
2442
2438
  );
2443
2439
  }
2444
- const cn = {
2440
+ const sn = {
2445
2441
  name: "Video",
2446
2442
  canHaveChildren: !0,
2447
2443
  defaultStyles: {
@@ -2523,7 +2519,7 @@ const cn = {
2523
2519
  advanced: !0
2524
2520
  }]
2525
2521
  };
2526
- function dn(e) {
2522
+ function cn(e) {
2527
2523
  var i, o, a, r, l, d, c;
2528
2524
  function t() {
2529
2525
  return {
@@ -2624,55 +2620,55 @@ function dn(e) {
2624
2620
  }
2625
2621
  );
2626
2622
  }
2627
- const un = () => [{
2628
- component: Kt,
2629
- ...Ht
2623
+ const dn = () => [{
2624
+ component: Ht,
2625
+ ...jt
2630
2626
  }, {
2631
- component: Jt,
2632
- ...qt
2627
+ component: _t,
2628
+ ...Kt
2633
2629
  }, {
2634
- component: Zt,
2635
- ...Yt
2630
+ component: Xt,
2631
+ ...Jt
2636
2632
  }, {
2637
- component: tn,
2638
- ...en
2633
+ component: en,
2634
+ ...Zt
2639
2635
  }, {
2640
- component: rn,
2641
- ...an
2636
+ component: an,
2637
+ ...on
2642
2638
  }, {
2643
- component: on,
2644
- ...nn
2639
+ component: nn,
2640
+ ...tn
2645
2641
  }, {
2646
- component: sn,
2647
- ...ln
2642
+ component: ln,
2643
+ ...rn
2648
2644
  }, {
2649
- component: dn,
2650
- ...cn
2651
- }], pe = () => [{
2645
+ component: cn,
2646
+ ...sn
2647
+ }], be = () => [{
2652
2648
  component: Ge,
2653
2649
  ...Wt
2650
+ }, {
2651
+ component: Tt,
2652
+ ...At
2654
2653
  }, {
2655
2654
  component: Et,
2656
2655
  ...Nt
2657
2656
  }, {
2658
- component: Rt,
2659
- ...Ft
2657
+ component: Vt,
2658
+ ...$t
2660
2659
  }, {
2661
2660
  component: Bt,
2662
- ...$t
2661
+ ...Ft
2663
2662
  }, {
2664
- component: At,
2663
+ component: Dt,
2665
2664
  ...Lt
2666
- }, {
2667
- component: Mt,
2668
- ...Dt
2669
2665
  }, {
2670
2666
  component: Wn,
2671
- ...Ot
2667
+ ...Mt
2672
2668
  }, {
2673
- component: jt,
2674
- ...Ut
2675
- }, ...un()], mn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2669
+ component: Ut,
2670
+ ...Ot
2671
+ }, ...dn()], un = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2676
2672
  function getAndSetVariantId() {
2677
2673
  function setCookie(name, value, days) {
2678
2674
  let expires = '';
@@ -2728,7 +2724,7 @@ const un = () => [{
2728
2724
  }).join('');
2729
2725
  styleEl.innerHTML = newStyleStr;
2730
2726
  }
2731
- }`, fn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2727
+ }`, mn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2732
2728
  if (!navigator.cookieEnabled) {
2733
2729
  return;
2734
2730
  }
@@ -2762,24 +2758,24 @@ const un = () => [{
2762
2758
  thisScriptEl?.remove();
2763
2759
  }
2764
2760
  return;
2765
- }`, Ne = "builderIoAbTest", Fe = "builderIoRenderContent", J = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2761
+ }`, Ne = "builderIoAbTest", $e = "builderIoRenderContent", Y = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2766
2762
  ...t,
2767
2763
  testVariationId: t.id,
2768
2764
  id: e == null ? void 0 : e.id
2769
- })), hn = ({
2765
+ })), fn = ({
2770
2766
  canTrack: e,
2771
2767
  content: t
2772
- }) => !(!(J(t).length > 0) || !e || j()), gn = (e) => e === "react" || e === "reactNative", $e = gn(z), bn = () => `
2773
- window.${Ne} = ${mn}
2774
- window.${Fe} = ${fn}
2775
- `, yn = (e, t) => `
2768
+ }) => !(!(Y(t).length > 0) || !e || U()), hn = (e) => e === "react" || e === "reactNative", Fe = hn(z), gn = () => `
2769
+ window.${Ne} = ${un}
2770
+ window.${$e} = ${mn}
2771
+ `, bn = (e, t) => `
2776
2772
  window.${Ne}(
2777
- "${t}",${JSON.stringify(e)}, ${$e}
2778
- )`, pn = ({
2773
+ "${t}",${JSON.stringify(e)}, ${Fe}
2774
+ )`, yn = ({
2779
2775
  contentId: e,
2780
2776
  variationId: t
2781
- }) => `window.${Fe}(
2782
- "${t}", "${e}", ${$e}
2777
+ }) => `window.${$e}(
2778
+ "${t}", "${e}", ${Fe}
2783
2779
  )`;
2784
2780
  function ie(e) {
2785
2781
  return /* @__PURE__ */ s(
@@ -2790,10 +2786,10 @@ function ie(e) {
2790
2786
  }
2791
2787
  );
2792
2788
  }
2793
- function xe(e) {
2789
+ function ye(e) {
2794
2790
  return Math.round(e * 1e3) / 1e3;
2795
2791
  }
2796
- const xn = (e, t, n = !0) => {
2792
+ const pn = (e, t, n = !0) => {
2797
2793
  if (!(e instanceof HTMLElement))
2798
2794
  return null;
2799
2795
  let i = n ? e : e.parentElement;
@@ -2804,28 +2800,28 @@ const xn = (e, t, n = !0) => {
2804
2800
  return i;
2805
2801
  } while (i = i.parentElement);
2806
2802
  return null;
2807
- }, Sn = (e) => xn(e, (t) => {
2803
+ }, xn = (e) => pn(e, (t) => {
2808
2804
  const n = t.getAttribute("builder-id") || t.id;
2809
2805
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2810
- }), Se = ({
2806
+ }), pe = ({
2811
2807
  event: e,
2812
2808
  target: t
2813
2809
  }) => {
2814
- const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = xe(i / n.width), r = xe(o / n.height);
2810
+ const n = t.getBoundingClientRect(), i = e.clientX - n.left, o = e.clientY - n.top, a = ye(i / n.width), r = ye(o / n.height);
2815
2811
  return {
2816
2812
  x: a,
2817
2813
  y: r
2818
2814
  };
2819
- }, vn = (e) => {
2820
- const t = e.target, n = t && Sn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2815
+ }, Sn = (e) => {
2816
+ const t = e.target, n = t && xn(t), i = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2821
2817
  return {
2822
2818
  targetBuilderElement: i || void 0,
2823
2819
  metadata: {
2824
- targetOffset: t ? Se({
2820
+ targetOffset: t ? pe({
2825
2821
  event: e,
2826
2822
  target: t
2827
2823
  }) : void 0,
2828
- builderTargetOffset: n ? Se({
2824
+ builderTargetOffset: n ? pe({
2829
2825
  event: e,
2830
2826
  target: n
2831
2827
  }) : void 0,
@@ -2833,41 +2829,41 @@ const xn = (e, t, n = !0) => {
2833
2829
  }
2834
2830
  };
2835
2831
  };
2836
- function kn(e) {
2837
- var R, p, w, P, E, $, L;
2838
- const t = X(null);
2832
+ function vn(e) {
2833
+ var E, p, v, P, R, F, L;
2834
+ const t = Z(null);
2839
2835
  function n(u) {
2840
- var v, b;
2836
+ var C, b;
2841
2837
  const h = {
2842
2838
  ...e.builderContextSignal.rootState,
2843
2839
  ...u
2844
2840
  };
2845
- e.builderContextSignal.rootSetState ? (b = (v = e.builderContextSignal).rootSetState) == null || b.call(v, h) : e.setBuilderContextSignal((x) => ({
2846
- ...x,
2841
+ e.builderContextSignal.rootSetState ? (b = (C = e.builderContextSignal).rootSetState) == null || b.call(C, h) : e.setBuilderContextSignal((S) => ({
2842
+ ...S,
2847
2843
  rootState: h
2848
2844
  }));
2849
2845
  }
2850
2846
  function i(u) {
2851
- var v, b, x, A, M;
2847
+ var C, b, S, W, D;
2852
2848
  const h = {
2853
2849
  ...e.builderContextSignal.content,
2854
2850
  ...u,
2855
2851
  data: {
2856
- ...(v = e.builderContextSignal.content) == null ? void 0 : v.data,
2852
+ ...(C = e.builderContextSignal.content) == null ? void 0 : C.data,
2857
2853
  ...u == null ? void 0 : u.data
2858
2854
  },
2859
2855
  meta: {
2860
2856
  ...(b = e.builderContextSignal.content) == null ? void 0 : b.meta,
2861
2857
  ...u == null ? void 0 : u.meta,
2862
- breakpoints: ((x = u == null ? void 0 : u.meta) == null ? void 0 : x.breakpoints) || ((M = (A = e.builderContextSignal.content) == null ? void 0 : A.meta) == null ? void 0 : M.breakpoints)
2858
+ breakpoints: ((S = u == null ? void 0 : u.meta) == null ? void 0 : S.breakpoints) || ((D = (W = e.builderContextSignal.content) == null ? void 0 : W.meta) == null ? void 0 : D.breakpoints)
2863
2859
  }
2864
2860
  };
2865
- e.setBuilderContextSignal((W) => ({
2866
- ...W,
2861
+ e.setBuilderContextSignal((A) => ({
2862
+ ...A,
2867
2863
  content: h
2868
2864
  }));
2869
2865
  }
2870
- const [o, a] = k(
2866
+ const [o, a] = I(
2871
2867
  () => e.contentWrapper || "div"
2872
2868
  );
2873
2869
  function r(u) {
@@ -2876,11 +2872,11 @@ function kn(e) {
2876
2872
  trustedHosts: e.trustedHosts,
2877
2873
  callbacks: {
2878
2874
  configureSdk: (h) => {
2879
- var x;
2880
- const { breakpoints: v, contentId: b } = h;
2881
- !b || b !== ((x = e.builderContextSignal.content) == null ? void 0 : x.id) || v && i({
2875
+ var S;
2876
+ const { breakpoints: C, contentId: b } = h;
2877
+ !b || b !== ((S = e.builderContextSignal.content) == null ? void 0 : S.id) || C && i({
2882
2878
  meta: {
2883
- breakpoints: v
2879
+ breakpoints: C
2884
2880
  }
2885
2881
  });
2886
2882
  },
@@ -2894,8 +2890,8 @@ function kn(e) {
2894
2890
  })(u);
2895
2891
  }
2896
2892
  function l() {
2897
- var h, v;
2898
- const u = (v = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : v.jsCode;
2893
+ var h, C;
2894
+ const u = (C = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : C.jsCode;
2899
2895
  u && q({
2900
2896
  code: u,
2901
2897
  context: e.context || {},
@@ -2908,33 +2904,33 @@ function kn(e) {
2908
2904
  enableCache: !1
2909
2905
  });
2910
2906
  }
2911
- const [d, c] = k(() => ({})), [m, f] = k(() => ({})), [g, y] = k(() => !1);
2912
- function S(u) {
2913
- var h, v;
2907
+ const [d, c] = I(() => ({})), [m, f] = I(() => ({})), [g, y] = I(() => !1);
2908
+ function x(u) {
2909
+ var h, C;
2914
2910
  if (e.builderContextSignal.content) {
2915
- const b = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, x = (v = e.builderContextSignal.content) == null ? void 0 : v.id;
2916
- ue({
2911
+ const b = (h = e.builderContextSignal.content) == null ? void 0 : h.testVariationId, S = (C = e.builderContextSignal.content) == null ? void 0 : C.id;
2912
+ ce({
2917
2913
  type: "click",
2918
- canTrack: G(e.canTrack),
2919
- contentId: x,
2914
+ canTrack: Q(e.canTrack),
2915
+ contentId: S,
2920
2916
  apiKey: e.apiKey,
2921
- variationId: b !== x ? b : void 0,
2922
- ...vn(u),
2917
+ variationId: b !== S ? b : void 0,
2918
+ ...Sn(u),
2923
2919
  unique: !g
2924
2920
  });
2925
2921
  }
2926
2922
  g || y(!0);
2927
2923
  }
2928
- function C() {
2929
- var h, v, b;
2930
- const u = (b = (v = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : v.httpRequests) != null ? b : {};
2931
- Object.entries(u).forEach(([x, A]) => {
2932
- if (!A || m[x] || d[x] && !N())
2924
+ function k() {
2925
+ var h, C, b;
2926
+ const u = (b = (C = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : C.httpRequests) != null ? b : {};
2927
+ Object.entries(u).forEach(([S, W]) => {
2928
+ if (!W || m[S] || d[S] && !N())
2933
2929
  return;
2934
- m[x] = !0;
2935
- const M = A.replace(
2930
+ m[S] = !0;
2931
+ const D = W.replace(
2936
2932
  /{{([^}]+)}}/g,
2937
- (W, Le) => String(
2933
+ (A, Le) => String(
2938
2934
  q({
2939
2935
  code: Le,
2940
2936
  context: e.context || {},
@@ -2945,18 +2941,18 @@ function kn(e) {
2945
2941
  })
2946
2942
  )
2947
2943
  );
2948
- ze(M).then((W) => W.json()).then((W) => {
2944
+ ze(D).then((A) => A.json()).then((A) => {
2949
2945
  n({
2950
- [x]: W
2951
- }), d[x] = !0;
2952
- }).catch((W) => {
2953
- console.error("error fetching dynamic data", A, W);
2946
+ [S]: A
2947
+ }), d[S] = !0;
2948
+ }).catch((A) => {
2949
+ console.error("error fetching dynamic data", W, A);
2954
2950
  }).finally(() => {
2955
- m[x] = !1;
2951
+ m[S] = !1;
2956
2952
  });
2957
2953
  });
2958
2954
  }
2959
- function I() {
2955
+ function w() {
2960
2956
  N() && window.dispatchEvent(
2961
2957
  new CustomEvent(
2962
2958
  "builder:component:stateChange",
@@ -2973,7 +2969,7 @@ function kn(e) {
2973
2969
  }
2974
2970
  return V(() => {
2975
2971
  var u, h;
2976
- if (j()) {
2972
+ if (U()) {
2977
2973
  if (N() && (window.addEventListener("message", r), Ue(), je({
2978
2974
  ...e.locale ? {
2979
2975
  locale: e.locale
@@ -2987,47 +2983,47 @@ function kn(e) {
2987
2983
  }), Object.values(
2988
2984
  e.builderContextSignal.componentInfos
2989
2985
  ).forEach((b) => {
2990
- var A;
2991
- const x = He(b);
2992
- (A = window.parent) == null || A.postMessage(x, "*");
2986
+ var W;
2987
+ const S = He(b);
2988
+ (W = window.parent) == null || W.postMessage(S, "*");
2993
2989
  }), window.addEventListener(
2994
2990
  "builder:component:stateChangeListenerActivated",
2995
- I
2996
- )), e.builderContextSignal.content && G(e.canTrack)) {
2997
- const b = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, x = (h = e.builderContextSignal.content) == null ? void 0 : h.id, A = e.apiKey;
2998
- ue({
2991
+ w
2992
+ )), e.builderContextSignal.content && Q(e.canTrack)) {
2993
+ const b = (u = e.builderContextSignal.content) == null ? void 0 : u.testVariationId, S = (h = e.builderContextSignal.content) == null ? void 0 : h.id, W = e.apiKey;
2994
+ ce({
2999
2995
  type: "impression",
3000
2996
  canTrack: !0,
3001
- contentId: x,
3002
- apiKey: A,
3003
- variationId: b !== x ? b : void 0
2997
+ contentId: S,
2998
+ apiKey: W,
2999
+ variationId: b !== S ? b : void 0
3004
3000
  });
3005
3001
  }
3006
- if (Ke()) {
3007
- const b = new URL(location.href).searchParams, x = b.get("builder.preview"), A = b.get(
3008
- `builder.preview.${x}`
3009
- ), M = b.get("apiKey") || b.get("builder.space");
3010
- x === e.model && M === e.apiKey && (!e.content || A === e.content.id) && ke({
3002
+ if (Ke() && !N()) {
3003
+ const b = new URL(location.href).searchParams, S = b.get("builder.preview"), W = b.get(
3004
+ `builder.preview.${S}`
3005
+ ), D = b.get("apiKey") || b.get("builder.space");
3006
+ S === e.model && D === e.apiKey && (!e.content || W === e.content.id) && Se({
3011
3007
  model: e.model,
3012
3008
  apiKey: e.apiKey,
3013
3009
  apiVersion: e.builderContextSignal.apiVersion
3014
- }).then((W) => {
3015
- W && i(W);
3010
+ }).then((A) => {
3011
+ A && i(A);
3016
3012
  });
3017
3013
  }
3018
3014
  }
3019
3015
  }, []), V(() => {
3020
3016
  e.apiKey || H.error(
3021
3017
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3022
- ), l(), C(), I();
3018
+ ), l(), k(), w();
3023
3019
  }, []), V(() => {
3024
3020
  e.content && i(e.content);
3025
3021
  }, [e.content]), V(() => {
3026
3022
  l();
3027
- }, [(p = (R = e.builderContextSignal.content) == null ? void 0 : R.data) == null ? void 0 : p.jsCode]), V(() => {
3028
- C();
3029
- }, [(P = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : P.httpRequests]), V(() => {
3030
- I();
3023
+ }, [(p = (E = e.builderContextSignal.content) == null ? void 0 : E.data) == null ? void 0 : p.jsCode]), V(() => {
3024
+ k();
3025
+ }, [(P = (v = e.builderContextSignal.content) == null ? void 0 : v.data) == null ? void 0 : P.httpRequests]), V(() => {
3026
+ w();
3031
3027
  }, [e.builderContextSignal.rootState]), V(() => {
3032
3028
  e.data && n(e.data);
3033
3029
  }, [e.data]), V(() => {
@@ -3035,28 +3031,28 @@ function kn(e) {
3035
3031
  locale: e.locale
3036
3032
  });
3037
3033
  }, [e.locale]), V(() => () => {
3038
- j() && (window.removeEventListener("message", r), window.removeEventListener(
3034
+ U() && (window.removeEventListener("message", r), window.removeEventListener(
3039
3035
  "builder:component:stateChangeListenerActivated",
3040
- I
3036
+ w
3041
3037
  ));
3042
3038
  }, []), /* @__PURE__ */ s(re.Provider, { value: e.builderContextSignal, children: e.builderContextSignal.content ? /* @__PURE__ */ s(
3043
3039
  o,
3044
3040
  {
3045
3041
  ref: t,
3046
- onClick: (u) => S(u),
3047
- "builder-content-id": (E = e.builderContextSignal.content) == null ? void 0 : E.id,
3042
+ onClick: (u) => x(u),
3043
+ "builder-content-id": (R = e.builderContextSignal.content) == null ? void 0 : R.id,
3048
3044
  "builder-model": e.model,
3049
3045
  ...e.showContent ? {} : {
3050
3046
  hidden: !0,
3051
3047
  "aria-hidden": !0
3052
3048
  },
3053
3049
  ...e.contentWrapperProps,
3054
- className: `variant-${(($ = e.content) == null ? void 0 : $.testVariationId) || ((L = e.content) == null ? void 0 : L.id)}`,
3050
+ className: `variant-${((F = e.content) == null ? void 0 : F.testVariationId) || ((L = e.content) == null ? void 0 : L.id)}`,
3055
3051
  children: e.children
3056
3052
  }
3057
3053
  ) : null });
3058
3054
  }
3059
- const Cn = (e) => {
3055
+ const kn = (e) => {
3060
3056
  var a, r;
3061
3057
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], i = (r = e.fileUrl) != null ? r : (a = e == null ? void 0 : e.files) == null ? void 0 : a.regular;
3062
3058
  let o = "";
@@ -3082,15 +3078,15 @@ font-weight: ${l};
3082
3078
  `.trim());
3083
3079
  }
3084
3080
  return o;
3085
- }, wn = ({
3081
+ }, Cn = ({
3086
3082
  customFonts: e
3087
3083
  }) => {
3088
3084
  var t;
3089
- return ((t = e == null ? void 0 : e.map((n) => Cn(n))) == null ? void 0 : t.join(" ")) || "";
3090
- }, In = ({
3085
+ return ((t = e == null ? void 0 : e.map((n) => kn(n))) == null ? void 0 : t.join(" ")) || "";
3086
+ }, wn = ({
3091
3087
  cssCode: e,
3092
3088
  contentId: t
3093
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Tn = `
3089
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", In = `
3094
3090
  .builder-button {
3095
3091
  all: unset;
3096
3092
  }
@@ -3107,23 +3103,23 @@ font-weight: ${l};
3107
3103
  text-align: inherit;
3108
3104
  font-family: inherit;
3109
3105
  }
3110
- `, En = (e) => e ? "" : Tn;
3111
- function Rn(e) {
3112
- const [t, n] = k(
3106
+ `, Tn = (e) => e ? "" : In;
3107
+ function En(e) {
3108
+ const [t, n] = I(
3113
3109
  () => `
3114
- ${In({
3110
+ ${wn({
3115
3111
  cssCode: e.cssCode,
3116
3112
  contentId: e.contentId
3117
3113
  })}
3118
- ${wn({
3114
+ ${Cn({
3119
3115
  customFonts: e.customFonts
3120
3116
  })}
3121
- ${En(e.isNestedRender)}
3117
+ ${Tn(e.isNestedRender)}
3122
3118
  `.trim()
3123
3119
  );
3124
- return /* @__PURE__ */ s(Z, { id: "builderio-content", styles: t });
3120
+ return /* @__PURE__ */ s(ee, { id: "builderio-content", styles: t });
3125
3121
  }
3126
- const Pn = ({
3122
+ const Rn = ({
3127
3123
  content: e,
3128
3124
  data: t,
3129
3125
  locale: n
@@ -3140,7 +3136,7 @@ const Pn = ({
3140
3136
  locale: n
3141
3137
  } : {}
3142
3138
  };
3143
- }, Vn = ({
3139
+ }, Pn = ({
3144
3140
  content: e,
3145
3141
  data: t
3146
3142
  }) => e ? {
@@ -3151,46 +3147,46 @@ const Pn = ({
3151
3147
  },
3152
3148
  meta: e == null ? void 0 : e.meta
3153
3149
  } : void 0;
3154
- function ve(e) {
3155
- var d, c, m, f, g, y, S;
3156
- const [t, n] = k(
3150
+ function xe(e) {
3151
+ var d, c, m, f, g, y, x;
3152
+ const [t, n] = I(
3157
3153
  () => {
3158
- var C, I;
3159
- return pn({
3154
+ var k, w;
3155
+ return yn({
3160
3156
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3161
- variationId: (C = e.content) == null ? void 0 : C.testVariationId,
3157
+ variationId: (k = e.content) == null ? void 0 : k.testVariationId,
3162
3158
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3163
- contentId: (I = e.content) == null ? void 0 : I.id
3159
+ contentId: (w = e.content) == null ? void 0 : w.id
3164
3160
  });
3165
3161
  }
3166
3162
  );
3167
- function i(C) {
3168
- l((I) => ({
3169
- ...I,
3170
- rootState: C
3163
+ function i(k) {
3164
+ l((w) => ({
3165
+ ...w,
3166
+ rootState: k
3171
3167
  }));
3172
3168
  }
3173
- const [o, a] = k(
3169
+ const [o, a] = I(
3174
3170
  () => [
3175
- ...pe(),
3171
+ ...be(),
3176
3172
  ...e.customComponents || []
3177
3173
  ].reduce(
3178
- (C, { component: I, ...R }) => ({
3179
- ...C,
3180
- [R.name]: {
3181
- component: I,
3182
- ...me(R)
3174
+ (k, { component: w, ...E }) => ({
3175
+ ...k,
3176
+ [E.name]: {
3177
+ component: w,
3178
+ ...de(E)
3183
3179
  }
3184
3180
  }),
3185
3181
  {}
3186
3182
  )
3187
- ), [r, l] = k(() => ({
3188
- content: Vn({
3183
+ ), [r, l] = I(() => ({
3184
+ content: Pn({
3189
3185
  content: e.content,
3190
3186
  data: e.data
3191
3187
  }),
3192
3188
  localState: void 0,
3193
- rootState: Pn({
3189
+ rootState: Rn({
3194
3190
  content: e.content,
3195
3191
  data: e.data,
3196
3192
  locale: e.locale
@@ -3200,12 +3196,12 @@ function ve(e) {
3200
3196
  apiKey: e.apiKey,
3201
3197
  apiVersion: e.apiVersion,
3202
3198
  componentInfos: [
3203
- ...pe(),
3199
+ ...be(),
3204
3200
  ...e.customComponents || []
3205
3201
  ].reduce(
3206
- (C, { component: I, ...R }) => ({
3207
- ...C,
3208
- [R.name]: me(R)
3202
+ (k, { component: w, ...E }) => ({
3203
+ ...k,
3204
+ [E.name]: de(E)
3209
3205
  }),
3210
3206
  {}
3211
3207
  ),
@@ -3214,13 +3210,13 @@ function ve(e) {
3214
3210
  BlocksWrapperProps: e.blocksWrapperProps || {}
3215
3211
  }));
3216
3212
  return /* @__PURE__ */ s(
3217
- Ie.Provider,
3213
+ Ce.Provider,
3218
3214
  {
3219
3215
  value: {
3220
3216
  registeredComponents: o
3221
3217
  },
3222
3218
  children: /* @__PURE__ */ B(
3223
- kn,
3219
+ vn,
3224
3220
  {
3225
3221
  content: e.content,
3226
3222
  data: e.data,
@@ -3246,7 +3242,7 @@ function ve(e) {
3246
3242
  }
3247
3243
  ) : null,
3248
3244
  /* @__PURE__ */ s(
3249
- Rn,
3245
+ En,
3250
3246
  {
3251
3247
  isNestedRender: e.isNestedRender,
3252
3248
  contentId: (d = r.content) == null ? void 0 : d.id,
@@ -3255,9 +3251,9 @@ function ve(e) {
3255
3251
  }
3256
3252
  ),
3257
3253
  /* @__PURE__ */ s(
3258
- U,
3254
+ O,
3259
3255
  {
3260
- blocks: (S = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : S.blocks,
3256
+ blocks: (x = (y = r.content) == null ? void 0 : y.data) == null ? void 0 : x.blocks,
3261
3257
  context: r,
3262
3258
  registeredComponents: o,
3263
3259
  linkComponent: e.linkComponent
@@ -3269,18 +3265,18 @@ function ve(e) {
3269
3265
  }
3270
3266
  );
3271
3267
  }
3272
- function Bn(e) {
3268
+ function Vn(e) {
3273
3269
  var r;
3274
- const [t, n] = k(
3275
- () => hn({
3276
- canTrack: G(e.canTrack),
3270
+ const [t, n] = I(
3271
+ () => fn({
3272
+ canTrack: Q(e.canTrack),
3277
3273
  content: e.content
3278
3274
  })
3279
3275
  );
3280
3276
  function i() {
3281
3277
  var l;
3282
- return yn(
3283
- J(e.content).map((d) => ({
3278
+ return bn(
3279
+ Y(e.content).map((d) => ({
3284
3280
  id: d.testVariationId,
3285
3281
  testRatio: d.testRatio
3286
3282
  })),
@@ -3288,7 +3284,7 @@ function Bn(e) {
3288
3284
  );
3289
3285
  }
3290
3286
  function o() {
3291
- return J(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3287
+ return Y(e.content).map((l) => `.variant-${l.testVariationId} { display: none; } `).join("");
3292
3288
  }
3293
3289
  function a() {
3294
3290
  var l;
@@ -3297,7 +3293,7 @@ function Bn(e) {
3297
3293
  testVariationId: (l = e.content) == null ? void 0 : l.id
3298
3294
  } : _e({
3299
3295
  item: e.content,
3300
- canTrack: G(e.canTrack)
3296
+ canTrack: Q(e.canTrack)
3301
3297
  });
3302
3298
  }
3303
3299
  return V(() => {
@@ -3306,12 +3302,12 @@ function Bn(e) {
3306
3302
  ie,
3307
3303
  {
3308
3304
  id: "builderio-init-variants-fns",
3309
- scriptStr: bn()
3305
+ scriptStr: gn()
3310
3306
  }
3311
3307
  ) : null,
3312
3308
  t ? /* @__PURE__ */ B(T, { children: [
3313
3309
  /* @__PURE__ */ s(
3314
- Z,
3310
+ ee,
3315
3311
  {
3316
3312
  id: "builderio-variants",
3317
3313
  styles: o()
@@ -3324,8 +3320,8 @@ function Bn(e) {
3324
3320
  scriptStr: i()
3325
3321
  }
3326
3322
  ),
3327
- (r = J(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
3328
- ve,
3323
+ (r = Y(e.content)) == null ? void 0 : r.map((l) => /* @__PURE__ */ s(
3324
+ xe,
3329
3325
  {
3330
3326
  isNestedRender: e.isNestedRender,
3331
3327
  content: l,
@@ -3351,7 +3347,7 @@ function Bn(e) {
3351
3347
  ))
3352
3348
  ] }) : null,
3353
3349
  /* @__PURE__ */ s(
3354
- ve,
3350
+ xe,
3355
3351
  {
3356
3352
  isNestedRender: e.isNestedRender,
3357
3353
  content: a(),
@@ -3376,13 +3372,13 @@ function Bn(e) {
3376
3372
  )
3377
3373
  ] });
3378
3374
  }
3379
- const An = async ({
3375
+ const Bn = async ({
3380
3376
  builderContextValue: e,
3381
3377
  symbol: t
3382
3378
  }) => {
3383
3379
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
3384
3380
  (e != null && e.apiKey))
3385
- return ke({
3381
+ return Se({
3386
3382
  model: t.model,
3387
3383
  apiKey: e.apiKey,
3388
3384
  apiVersion: e.apiVersion,
@@ -3406,12 +3402,12 @@ function Wn(e) {
3406
3402
  (m = e.symbol) != null && m.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
3407
3403
  ].filter(Boolean).join(" ");
3408
3404
  }
3409
- const [n, i] = k(() => {
3405
+ const [n, i] = I(() => {
3410
3406
  var c;
3411
3407
  return (c = e.symbol) == null ? void 0 : c.content;
3412
3408
  });
3413
3409
  function o() {
3414
- n || An({
3410
+ n || Bn({
3415
3411
  symbol: e.symbol,
3416
3412
  builderContextValue: e.builderContext
3417
3413
  }).then((c) => {
@@ -3422,7 +3418,7 @@ function Wn(e) {
3422
3418
  }, []), V(() => {
3423
3419
  o();
3424
3420
  }, [e.symbol]), /* @__PURE__ */ s("div", { ...e.attributes, className: t(), children: /* @__PURE__ */ s(
3425
- Bn,
3421
+ Vn,
3426
3422
  {
3427
3423
  isNestedRender: !0,
3428
3424
  apiVersion: e.builderContext.apiVersion,
@@ -3446,15 +3442,15 @@ function Wn(e) {
3446
3442
  ) });
3447
3443
  }
3448
3444
  export {
3449
- U as Blocks,
3445
+ O as Blocks,
3450
3446
  re as BuilderContext,
3451
3447
  Ge as Button,
3452
- Et as Columns,
3453
- Bn as Content,
3454
- Rt as Fragment,
3455
- Bt as Image,
3456
- At as Section,
3448
+ Tt as Columns,
3449
+ Vn as Content,
3450
+ Et as Fragment,
3451
+ Vt as Image,
3452
+ Bt as Section,
3457
3453
  Wn as Symbol,
3458
- jt as Text,
3459
- dn as Video
3454
+ Ut as Text,
3455
+ cn as Video
3460
3456
  };