@builder.io/sdk-react 1.0.21 → 1.0.23

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