@builder.io/sdk-react-nextjs 0.14.14 → 0.14.16

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 (36) hide show
  1. package/lib/browser/{USE_CLIENT_BUNDLE-70154bac.cjs → USE_CLIENT_BUNDLE-026b8026.cjs} +3 -3
  2. package/lib/{node/USE_CLIENT_BUNDLE-89941ef9.js → browser/USE_CLIENT_BUNDLE-30c6c6c1.js} +15 -15
  3. package/lib/{edge/USE_SERVER_BUNDLE-1121f242.js → browser/USE_SERVER_BUNDLE-685e6983.js} +1 -1
  4. package/lib/{edge/USE_SERVER_BUNDLE-d3cc548d.cjs → browser/USE_SERVER_BUNDLE-ce31724e.cjs} +1 -1
  5. package/lib/browser/{bundle-f1cd7d0a.js → bundle-5c0a9d7a.js} +555 -538
  6. package/lib/browser/bundle-9744b895.cjs +169 -0
  7. package/lib/browser/index.cjs +1 -1
  8. package/lib/browser/index.mjs +3 -3
  9. package/lib/{browser/USE_CLIENT_BUNDLE-ad032551.js → edge/USE_CLIENT_BUNDLE-5b0b3e9b.js} +15 -15
  10. package/lib/{node/USE_CLIENT_BUNDLE-3989e89a.cjs → edge/USE_CLIENT_BUNDLE-9b110136.cjs} +3 -3
  11. package/lib/{node/USE_SERVER_BUNDLE-f4da05aa.js → edge/USE_SERVER_BUNDLE-0f9fd6f2.js} +1 -1
  12. package/lib/{node/USE_SERVER_BUNDLE-3ab6385f.cjs → edge/USE_SERVER_BUNDLE-b3d619da.cjs} +1 -1
  13. package/lib/edge/{bundle-8245f8e0.js → bundle-b24e7c9b.js} +1049 -1032
  14. package/lib/edge/{bundle-b9b92cc4.cjs → bundle-f1760904.cjs} +29 -29
  15. package/lib/edge/index.cjs +1 -1
  16. package/lib/edge/index.mjs +3 -3
  17. package/lib/{edge/USE_CLIENT_BUNDLE-c5064905.js → node/USE_CLIENT_BUNDLE-f8067984.js} +15 -15
  18. package/lib/{edge/USE_CLIENT_BUNDLE-eb046f66.cjs → node/USE_CLIENT_BUNDLE-f9ebade4.cjs} +3 -3
  19. package/lib/{browser/USE_SERVER_BUNDLE-ad177672.js → node/USE_SERVER_BUNDLE-4b52a0c0.js} +1 -1
  20. package/lib/{browser/USE_SERVER_BUNDLE-f82cfb7c.cjs → node/USE_SERVER_BUNDLE-e1e73ba6.cjs} +1 -1
  21. package/lib/node/{bundle-67ae1b65.cjs → bundle-0fc157c8.cjs} +19 -12
  22. package/lib/node/{bundle-eb971cd7.js → bundle-8d3cab60.js} +189 -154
  23. package/lib/node/index.cjs +1 -1
  24. package/lib/node/index.mjs +3 -3
  25. package/package.json +1 -1
  26. package/types/cjs/components/block/animator.d.ts +1 -1
  27. package/types/cjs/constants/sdk-version.d.ts +1 -1
  28. package/types/cjs/functions/get-content/types.d.ts +3 -3
  29. package/types/cjs/functions/is-previewing.d.ts +1 -1
  30. package/types/cjs/helpers/logger.d.ts +1 -0
  31. package/types/esm/components/block/animator.d.ts +1 -1
  32. package/types/esm/constants/sdk-version.d.ts +1 -1
  33. package/types/esm/functions/get-content/types.d.ts +3 -3
  34. package/types/esm/functions/is-previewing.d.ts +1 -1
  35. package/types/esm/helpers/logger.d.ts +1 -0
  36. package/lib/browser/bundle-e04a480e.cjs +0 -169
@@ -1,10 +1,10 @@
1
- import { jsx as l, Fragment as k, jsxs as R } from "react/jsx-runtime";
1
+ import { jsx as l, Fragment as x, jsxs as R } from "react/jsx-runtime";
2
2
  import "react";
3
- import { I as We, B as Oe, a as Ne, D as $e, C as Fe, E as Le, b as Ue, V as De, c as _e, F as Me, d as je, S as He, e as Ke } from "./USE_CLIENT_BUNDLE-ad032551.js";
4
- import { LRUCache as ze } from "lru-cache";
3
+ import { I as Oe, B as $e, a as Ne, D as Fe, C as Le, E as Ue, b as De, V as _e, c as Me, F as je, d as He, S as Ke, e as ze } from "./USE_CLIENT_BUNDLE-30c6c6c1.js";
4
+ import { LRUCache as qe } from "lru-cache";
5
5
  import "next/navigation";
6
- const qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), so = (e) => typeof e == "string" && qe.has(e.toLowerCase()), T = "rsc", M = () => {
7
- switch (T) {
6
+ const Ye = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), so = (e) => typeof e == "string" && Ye.has(e.toLowerCase()), E = "rsc", M = () => {
7
+ switch (E) {
8
8
  case "react":
9
9
  case "reactNative":
10
10
  case "rsc":
@@ -16,7 +16,7 @@ const qe = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr",
16
16
  return "class";
17
17
  }
18
18
  };
19
- function Ye(e) {
19
+ function Ge(e) {
20
20
  var t;
21
21
  return {
22
22
  ...(t = e.component) == null ? void 0 : t.options,
@@ -27,35 +27,36 @@ function Ye(e) {
27
27
  builderBlock: e
28
28
  };
29
29
  }
30
- const A = "[Builder.io]: ", x = {
30
+ const A = "[Builder.io]: ", C = {
31
31
  log: (...e) => console.log(A, ...e),
32
32
  error: (...e) => console.error(A, ...e),
33
33
  warn: (...e) => console.warn(A, ...e),
34
34
  debug: (...e) => console.debug(A, ...e)
35
35
  };
36
- function S() {
36
+ function v() {
37
37
  return typeof window < "u" && typeof document < "u";
38
38
  }
39
- const Ge = (e) => {
39
+ const Je = (e) => {
40
40
  const t = {};
41
41
  return e.forEach((n, o) => {
42
42
  t[o] = n;
43
43
  }), t;
44
- }, le = (e) => e instanceof URLSearchParams ? Ge(e) : e, de = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
45
- function Je() {
46
- return S() && window.self !== window.top;
44
+ }, ce = (e) => e instanceof URLSearchParams ? Je(e) : e, le = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
45
+ function Qe() {
46
+ return v() && window.self !== window.top;
47
47
  }
48
- function j(e) {
49
- return Je() && de(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
48
+ function de(e) {
49
+ return Qe() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
50
+ le(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
50
51
  }
51
- const Qe = () => {
52
- if (S()) {
52
+ const Xe = () => {
53
+ if (v()) {
53
54
  const e = new URL(location.href);
54
55
  return e.pathname === "" && (e.pathname = "/"), e;
55
56
  } else
56
57
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
57
- }, Xe = () => typeof navigator == "object" && navigator.userAgent || "", ue = () => {
58
- const e = Xe(), t = {
58
+ }, Ze = () => typeof navigator == "object" && navigator.userAgent || "", ue = () => {
59
+ const e = Ze(), t = {
59
60
  Android() {
60
61
  return e.match(/Android/i);
61
62
  },
@@ -72,15 +73,15 @@ const Qe = () => {
72
73
  return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
73
74
  },
74
75
  any() {
75
- return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || T === "reactNative";
76
+ return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || E === "reactNative";
76
77
  }
77
- }, n = e.match(/Tablet|iPad/i), o = Qe();
78
+ }, n = e.match(/Tablet|iPad/i), o = Xe();
78
79
  return {
79
80
  urlPath: o == null ? void 0 : o.pathname,
80
81
  host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
81
82
  device: n ? "tablet" : t.any() ? "mobile" : "desktop"
82
83
  };
83
- }, Ze = ({
84
+ }, et = ({
84
85
  builder: e,
85
86
  context: t,
86
87
  event: n,
@@ -92,14 +93,14 @@ const Qe = () => {
92
93
  builder: e,
93
94
  context: t,
94
95
  event: n
95
- }), et = () => ({
96
- isEditing: j(),
97
- isBrowser: S(),
98
- isServer: !S(),
96
+ }), tt = () => ({
97
+ isEditing: de(),
98
+ isBrowser: v(),
99
+ isServer: !v(),
99
100
  getUserAttributes: () => ue()
100
- }), tt = (e, {
101
+ }), nt = (e, {
101
102
  isExpression: t = !0
102
- }) => /* 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, G = ({
103
+ }) => /* 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, Y = ({
103
104
  code: e,
104
105
  builder: t,
105
106
  context: n,
@@ -108,7 +109,7 @@ const Qe = () => {
108
109
  rootSetState: r,
109
110
  rootState: a
110
111
  }) => {
111
- const s = Ze({
112
+ const s = et({
112
113
  builder: t,
113
114
  context: n,
114
115
  event: o,
@@ -145,18 +146,18 @@ function me({
145
146
  }
146
147
  });
147
148
  }
148
- const w = (e) => e != null;
149
- function nt() {
149
+ const I = (e) => e != null;
150
+ function ot() {
150
151
  var e;
151
- return typeof process < "u" && w((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
152
+ return typeof process < "u" && I((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
152
153
  }
153
- const ot = () => {
154
+ const it = () => {
154
155
  var o;
155
- if (!nt())
156
+ if (!ot())
156
157
  return !1;
157
158
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
158
- 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;
159
- }, it = (e) => (S() || ot(), G(e)), H = class P {
159
+ return e && t && !n ? (C.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;
160
+ }, rt = (e) => (v() || it(), Y(e)), j = class P {
160
161
  static getCacheKey(t) {
161
162
  return JSON.stringify({
162
163
  ...t,
@@ -174,10 +175,10 @@ const ot = () => {
174
175
  });
175
176
  }
176
177
  };
177
- H.cacheLimit = 20;
178
- H.cache = /* @__PURE__ */ new Map();
179
- let V = H;
180
- function K({
178
+ j.cacheLimit = 20;
179
+ j.cache = /* @__PURE__ */ new Map();
180
+ let V = j;
181
+ function H({
181
182
  code: e,
182
183
  context: t,
183
184
  localState: n,
@@ -188,14 +189,14 @@ function K({
188
189
  enableCache: s
189
190
  }) {
190
191
  if (e === "") {
191
- x.warn("Skipping evaluation of empty code block.");
192
+ C.warn("Skipping evaluation of empty code block.");
192
193
  return;
193
194
  }
194
195
  const c = {
195
- code: tt(e, {
196
+ code: nt(e, {
196
197
  isExpression: a
197
198
  }),
198
- builder: et(),
199
+ builder: tt(),
199
200
  context: t,
200
201
  event: r,
201
202
  rootSetState: i,
@@ -203,31 +204,31 @@ function K({
203
204
  localState: n
204
205
  };
205
206
  if (s) {
206
- const u = V.getCacheKey(c), p = V.getCachedValue(u);
207
- if (p)
208
- return p.value;
207
+ const m = V.getCacheKey(c), g = V.getCachedValue(m);
208
+ if (g)
209
+ return g.value;
209
210
  }
210
211
  try {
211
- const u = it(c);
212
+ const m = rt(c);
212
213
  if (s) {
213
- const p = V.getCacheKey(c);
214
- V.setCachedValue(p, u);
214
+ const g = V.getCacheKey(c);
215
+ V.setCachedValue(g, m);
215
216
  }
216
- return u;
217
- } catch (u) {
218
- x.error("Failed code evaluation: " + u.message, {
217
+ return m;
218
+ } catch (m) {
219
+ C.error("Failed code evaluation: " + m.message, {
219
220
  code: e
220
221
  });
221
222
  return;
222
223
  }
223
224
  }
224
- const N = (e) => JSON.parse(JSON.stringify(e)), rt = (e, t, n) => {
225
+ const N = (e) => JSON.parse(JSON.stringify(e)), at = (e, t, n) => {
225
226
  if (Object(e) !== e)
226
227
  return e;
227
228
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
228
229
  return o.slice(0, -1).reduce((i, r, a) => Object(i[r]) === i[r] ? i[r] : i[r] = Math.abs(Number(o[a + 1])) >> 0 === +o[a + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
229
230
  };
230
- const at = ({
231
+ const st = ({
231
232
  block: e,
232
233
  context: t,
233
234
  localState: n,
@@ -246,7 +247,7 @@ const at = ({
246
247
  }
247
248
  };
248
249
  for (const s in e.bindings) {
249
- const c = e.bindings[s], u = K({
250
+ const c = e.bindings[s], m = H({
250
251
  code: c,
251
252
  localState: n,
252
253
  rootState: o,
@@ -254,11 +255,11 @@ const at = ({
254
255
  context: t,
255
256
  enableCache: !0
256
257
  });
257
- rt(a, s, u);
258
+ at(a, s, m);
258
259
  }
259
260
  return a;
260
261
  };
261
- function O({
262
+ function $({
262
263
  block: e,
263
264
  context: t,
264
265
  shouldEvaluateBindings: n,
@@ -267,7 +268,7 @@ function O({
267
268
  rootSetState: r
268
269
  }) {
269
270
  const a = e;
270
- return n ? at({
271
+ return n ? st({
271
272
  block: a,
272
273
  localState: o,
273
274
  rootState: i,
@@ -275,37 +276,37 @@ function O({
275
276
  context: t
276
277
  }) : a;
277
278
  }
278
- const st = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), fe = (e) => Object.entries(e).map(([n, o]) => {
279
+ const ct = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), fe = (e) => Object.entries(e).map(([n, o]) => {
279
280
  if (typeof o == "string")
280
- return `${st(n)}: ${o};`;
281
- }).filter(w), ct = (e) => fe(e).join(`
282
- `), L = ({
281
+ return `${ct(n)}: ${o};`;
282
+ }).filter(I), lt = (e) => fe(e).join(`
283
+ `), B = ({
283
284
  mediaQuery: e,
284
285
  className: t,
285
286
  styles: n
286
287
  }) => {
287
288
  const o = `.${t} {
288
- ${ct(n)}
289
+ ${lt(n)}
289
290
  }`;
290
291
  return e ? `${e} {
291
292
  ${o}
292
293
  }` : o;
293
294
  };
294
- function lt({
295
+ function dt({
295
296
  style: e
296
297
  }) {
297
298
  return e;
298
299
  }
299
- const dt = ({
300
+ const ut = ({
300
301
  block: e,
301
302
  context: t
302
- }) => he(lt({
303
+ }) => he(dt({
303
304
  style: e.style || {},
304
305
  context: t,
305
306
  block: e
306
307
  }));
307
308
  function he(e) {
308
- switch (T) {
309
+ switch (E) {
309
310
  case "svelte":
310
311
  case "vue":
311
312
  case "solid":
@@ -317,13 +318,13 @@ function he(e) {
317
318
  return e;
318
319
  }
319
320
  }
320
- const ut = ({
321
+ const mt = ({
321
322
  block: e,
322
323
  context: t,
323
324
  registeredComponents: n
324
325
  }) => {
325
326
  var r;
326
- const o = (r = O({
327
+ const o = (r = $({
327
328
  block: e,
328
329
  localState: t.localState,
329
330
  rootState: t.rootState,
@@ -339,7 +340,7 @@ const ut = ({
339
340
  console.warn(`
340
341
  Could not find a registered component named "${o}".
341
342
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
342
- }, mt = ({
343
+ }, ft = ({
343
344
  block: e,
344
345
  context: t
345
346
  }) => {
@@ -349,7 +350,7 @@ const ut = ({
349
350
  } = e;
350
351
  if (!(n != null && n.collection))
351
352
  return;
352
- const i = K({
353
+ const i = H({
353
354
  code: n.collection,
354
355
  localState: t.localState,
355
356
  rootState: t.rootState,
@@ -360,15 +361,15 @@ const ut = ({
360
361
  if (!Array.isArray(i))
361
362
  return;
362
363
  const r = n.collection.split(".").pop(), a = n.itemName || (r ? r + "Item" : "item");
363
- return i.map((c, u) => ({
364
+ return i.map((c, m) => ({
364
365
  context: {
365
366
  ...t,
366
367
  localState: {
367
368
  ...t.localState,
368
- $index: u,
369
+ $index: m,
369
370
  $item: c,
370
371
  [a]: c,
371
- [`$${a}Index`]: u
372
+ [`$${a}Index`]: m
372
373
  }
373
374
  },
374
375
  block: o
@@ -389,7 +390,7 @@ const ut = ({
389
390
  default: 991,
390
391
  max: 1200
391
392
  }
392
- }, J = (e, t = pe) => `@media (max-width: ${t[e].max}px)`, ge = ({
393
+ }, G = (e, t = pe) => `@media (max-width: ${t[e].max}px)`, ge = ({
393
394
  small: e,
394
395
  medium: t
395
396
  }) => {
@@ -416,7 +417,7 @@ const ut = ({
416
417
  default: r + 1
417
418
  }, n;
418
419
  };
419
- function $(e) {
420
+ function F(e) {
420
421
  return /* @__PURE__ */ l(
421
422
  "style",
422
423
  {
@@ -425,9 +426,50 @@ function $(e) {
425
426
  }
426
427
  );
427
428
  }
428
- function ft(e) {
429
+ function J(e, ...t) {
430
+ const n = Object(e);
431
+ for (let o = 1; o < arguments.length; o++) {
432
+ const i = arguments[o];
433
+ if (i != null)
434
+ for (const r in i)
435
+ Object.prototype.hasOwnProperty.call(i, r) && (n[r] = i[r]);
436
+ }
437
+ return n;
438
+ }
439
+ const be = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
440
+ function ht(e) {
441
+ console.warn(`Cannot animate element: element with ID ${e} not found!`);
442
+ }
443
+ function pt(e, t) {
444
+ const n = gt(e), o = getComputedStyle(t), i = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [i, r];
445
+ for (const s of a)
446
+ for (const c of n)
447
+ c in s || (s[c] = o[c]);
448
+ }
449
+ function gt(e) {
450
+ const t = [];
451
+ for (const n of e.steps)
452
+ for (const o in n.styles)
453
+ t.indexOf(o) === -1 && t.push(o);
454
+ return t;
455
+ }
456
+ function co(e) {
457
+ const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
458
+ if (!t.length) {
459
+ ht(e.elementId || e.id || "");
460
+ return;
461
+ }
462
+ Array.from(t).forEach((n) => {
463
+ pt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", J(n.style, e.steps[0].styles), setTimeout(() => {
464
+ n.style.transition = `all ${e.duration}s ${be(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), J(n.style, e.steps[1].styles), setTimeout(() => {
465
+ n.style.transition = "", n.style.transitionDelay = "";
466
+ }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
467
+ });
468
+ });
469
+ }
470
+ function bt(e) {
429
471
  const t = function() {
430
- const i = O({
472
+ const i = $({
431
473
  block: e.block,
432
474
  localState: e.context.localState,
433
475
  rootState: e.context.rootState,
@@ -435,10 +477,10 @@ function ft(e) {
435
477
  context: e.context.context,
436
478
  shouldEvaluateBindings: !0
437
479
  });
438
- return w(i.hide) ? !i.hide : w(i.show) ? i.show : !0;
480
+ return I(i.hide) ? !i.hide : I(i.show) ? i.show : !0;
439
481
  }, n = function() {
440
- var m;
441
- const i = O({
482
+ var f, k, w;
483
+ const i = $({
442
484
  block: e.block,
443
485
  localState: e.context.localState,
444
486
  rootState: e.context.rootState,
@@ -446,36 +488,55 @@ function ft(e) {
446
488
  context: e.context.context,
447
489
  shouldEvaluateBindings: !0
448
490
  }), r = i.responsiveStyles, a = e.context.content, s = ge(
449
- ((m = a == null ? void 0 : a.meta) == null ? void 0 : m.breakpoints) || {}
450
- ), c = r == null ? void 0 : r.large, u = r == null ? void 0 : r.medium, p = r == null ? void 0 : r.small, d = i.id;
451
- if (!d)
491
+ ((f = a == null ? void 0 : a.meta) == null ? void 0 : f.breakpoints) || {}
492
+ ), c = r == null ? void 0 : r.large, m = r == null ? void 0 : r.medium, g = r == null ? void 0 : r.small, u = i.id;
493
+ if (!u)
452
494
  return "";
453
- const f = c ? L({
454
- className: d,
495
+ const h = c ? B({
496
+ className: u,
455
497
  styles: c
456
- }) : "", b = u ? L({
457
- className: d,
458
- styles: u,
459
- mediaQuery: J(
498
+ }) : "", b = m ? B({
499
+ className: u,
500
+ styles: m,
501
+ mediaQuery: G(
460
502
  "medium",
461
503
  s
462
504
  )
463
- }) : "", h = p ? L({
464
- className: d,
465
- styles: p,
466
- mediaQuery: J(
505
+ }) : "", p = g ? B({
506
+ className: u,
507
+ styles: g,
508
+ mediaQuery: G(
467
509
  "small",
468
510
  s
469
511
  )
470
- }) : "";
471
- return [f, b, h].join(" ");
512
+ }) : "", d = i.animations && i.animations.find((S) => S.trigger === "hover");
513
+ let y = "";
514
+ if (d) {
515
+ const S = ((w = (k = d.steps) == null ? void 0 : k[1]) == null ? void 0 : w.styles) || {};
516
+ y = B({
517
+ className: `${u}:hover`,
518
+ styles: {
519
+ ...S,
520
+ transition: `all ${d.duration}s ${be(
521
+ d.easing
522
+ )}`,
523
+ transitionDelay: d.delay ? `${d.delay}s` : "0s"
524
+ }
525
+ }) || "";
526
+ }
527
+ return [
528
+ h,
529
+ b,
530
+ p,
531
+ y
532
+ ].join(" ");
472
533
  };
473
- return /* @__PURE__ */ l(k, { children: n() && t() ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l($, { id: "builderio-block", styles: n() }) }) : null });
534
+ return /* @__PURE__ */ l(x, { children: n() && t() ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(F, { id: "builderio-block", styles: n() }) }) : null });
474
535
  }
475
- function ht(e) {
536
+ function yt(e) {
476
537
  return e.charAt(0).toUpperCase() + e.slice(1);
477
538
  }
478
- const pt = (e) => `on${ht(e)}`, gt = (e, t) => (n) => K({
539
+ const St = (e) => `on${yt(e)}`, vt = (e, t) => (n) => H({
479
540
  code: e,
480
541
  context: t.context,
481
542
  localState: t.localState,
@@ -485,15 +546,15 @@ const pt = (e) => `on${ht(e)}`, gt = (e, t) => (n) => K({
485
546
  isExpression: !1,
486
547
  enableCache: !0
487
548
  });
488
- function co(e) {
549
+ function lo(e) {
489
550
  const t = {}, n = e.block.actions ?? {};
490
551
  for (const o in n) {
491
552
  if (!n.hasOwnProperty(o))
492
553
  continue;
493
554
  const i = n[o];
494
- let r = pt(o);
555
+ let r = St(o);
495
556
  if (e.stripPrefix)
496
- switch (T) {
557
+ switch (E) {
497
558
  case "vue":
498
559
  r = r.replace("v-on:", "");
499
560
  break;
@@ -501,40 +562,40 @@ function co(e) {
501
562
  r = r.replace("on:", "");
502
563
  break;
503
564
  }
504
- t[r] = gt(i, e);
565
+ t[r] = vt(i, e);
505
566
  }
506
567
  return t;
507
568
  }
508
- function bt({
569
+ function kt({
509
570
  properties: e
510
571
  }) {
511
572
  return e;
512
573
  }
513
- const yt = (e) => ({
574
+ const xt = (e) => ({
514
575
  href: e.href
515
576
  });
516
- function St({
577
+ function Ct({
517
578
  block: e,
518
579
  context: t
519
580
  }) {
520
581
  var o;
521
582
  const n = {
522
- ...yt(e),
583
+ ...xt(e),
523
584
  ...e.properties,
524
585
  "builder-id": e.id,
525
- style: dt({
586
+ style: ut({
526
587
  block: e,
527
588
  context: t
528
589
  }),
529
590
  [M()]: [e.id, "builder-block", e.class, (o = e.properties) == null ? void 0 : o.class].filter(Boolean).join(" ")
530
591
  };
531
- return bt({
592
+ return kt({
532
593
  properties: n,
533
594
  context: t,
534
595
  block: e
535
596
  });
536
597
  }
537
- const vt = ({
598
+ const wt = ({
538
599
  componentOptions: e,
539
600
  builderBlock: t,
540
601
  context: n,
@@ -550,7 +611,7 @@ const vt = ({
550
611
  * component itself directly. Otherwise, they are provided to the wrapper element.
551
612
  */
552
613
  ...i ? {
553
- attributes: St({
614
+ attributes: Ct({
554
615
  block: t,
555
616
  context: a
556
617
  })
@@ -566,11 +627,11 @@ const vt = ({
566
627
  };
567
628
  function Q(e) {
568
629
  var n;
569
- const t = e.isInteractive ? We : e.componentRef;
570
- return /* @__PURE__ */ l(k, { children: e.componentRef ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(
630
+ const t = e.isInteractive ? Oe : e.componentRef;
631
+ return /* @__PURE__ */ l(x, { children: e.componentRef ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(
571
632
  t,
572
633
  {
573
- ...vt({
634
+ ...wt({
574
635
  componentOptions: e.componentOptions,
575
636
  builderBlock: e.builderBlock,
576
637
  context: e.context,
@@ -581,7 +642,7 @@ function Q(e) {
581
642
  contextValue: e.context
582
643
  }),
583
644
  children: (n = e.blockChildren) == null ? void 0 : n.map((o) => /* @__PURE__ */ l(
584
- F,
645
+ L,
585
646
  {
586
647
  block: o,
587
648
  context: e.context,
@@ -593,10 +654,10 @@ function Q(e) {
593
654
  }
594
655
  ) }) : null });
595
656
  }
596
- function kt(e) {
657
+ function It(e) {
597
658
  const t = e.repeatContext;
598
659
  return /* @__PURE__ */ l(
599
- F,
660
+ L,
600
661
  {
601
662
  block: e.block,
602
663
  context: t,
@@ -605,22 +666,22 @@ function kt(e) {
605
666
  }
606
667
  );
607
668
  }
608
- function F(e) {
609
- var c, u, p;
669
+ function L(e) {
670
+ var c, m, g;
610
671
  const t = function() {
611
- return ut({
672
+ return mt({
612
673
  block: e.block,
613
674
  context: e.context,
614
675
  registeredComponents: e.registeredComponents
615
676
  });
616
677
  }, n = function() {
617
- return mt({
678
+ return ft({
618
679
  block: e.block,
619
680
  context: e.context
620
681
  });
621
682
  }, o = function() {
622
- var f;
623
- return (f = e.block.repeat) != null && f.collection ? e.block : O({
683
+ var h;
684
+ return (h = e.block.repeat) != null && h.collection ? e.block : $({
624
685
  block: e.block,
625
686
  localState: e.context.localState,
626
687
  rootState: e.context.rootState,
@@ -632,26 +693,26 @@ function F(e) {
632
693
  var b;
633
694
  return e.block.tagName === "a" || ((b = o().properties) == null ? void 0 : b.href) || o().href ? e.linkComponent || "a" : e.block.tagName || "div";
634
695
  }, r = function() {
635
- var h, m;
636
- if ((h = e.block.repeat) != null && h.collection)
637
- return !!((m = n()) != null && m.length);
638
- const f = "hide" in o() ? o().hide : !1;
639
- return ("show" in o() ? o().show : !0) && !f;
696
+ var p, d;
697
+ if ((p = e.block.repeat) != null && p.collection)
698
+ return !!((d = n()) != null && d.length);
699
+ const h = "hide" in o() ? o().hide : !1;
700
+ return ("show" in o() ? o().show : !0) && !h;
640
701
  }, a = function() {
641
702
  var b;
642
703
  return !((b = t()) != null && b.component) && !n() ? o().children ?? [] : [];
643
704
  }, s = function() {
644
- var f, b, h, m, y, g, C, E, v, I;
705
+ var h, b, p, d, y, f, k, w, S, T;
645
706
  return {
646
707
  blockChildren: o().children ?? [],
647
- componentRef: (f = t()) == null ? void 0 : f.component,
708
+ componentRef: (h = t()) == null ? void 0 : h.component,
648
709
  componentOptions: {
649
- ...Ye(o()),
710
+ ...Ge(o()),
650
711
  builderContext: e.context,
651
- ...((b = t()) == null ? void 0 : b.name) === "Core:Button" || ((h = t()) == null ? void 0 : h.name) === "Symbol" || ((m = t()) == null ? void 0 : m.name) === "Columns" || ((y = t()) == null ? void 0 : y.name) === "Form:Form" ? {
712
+ ...((b = t()) == null ? void 0 : b.name) === "Core:Button" || ((p = t()) == null ? void 0 : p.name) === "Symbol" || ((d = t()) == null ? void 0 : d.name) === "Columns" || ((y = t()) == null ? void 0 : y.name) === "Form:Form" ? {
652
713
  builderLinkComponent: e.linkComponent
653
714
  } : {},
654
- ...((g = t()) == null ? void 0 : g.name) === "Symbol" || ((C = t()) == null ? void 0 : C.name) === "Columns" || ((E = t()) == null ? void 0 : E.name) === "Form:Form" ? {
715
+ ...((f = t()) == null ? void 0 : f.name) === "Symbol" || ((k = t()) == null ? void 0 : k.name) === "Columns" || ((w = t()) == null ? void 0 : w.name) === "Form:Form" ? {
655
716
  builderComponents: e.registeredComponents
656
717
  } : {}
657
718
  },
@@ -659,13 +720,13 @@ function F(e) {
659
720
  linkComponent: e.linkComponent,
660
721
  registeredComponents: e.registeredComponents,
661
722
  builderBlock: o(),
662
- includeBlockProps: ((v = t()) == null ? void 0 : v.noWrap) === !0,
663
- isInteractive: !((I = t()) != null && I.isRSC)
723
+ includeBlockProps: ((S = t()) == null ? void 0 : S.noWrap) === !0,
724
+ isInteractive: !((T = t()) != null && T.isRSC)
664
725
  };
665
726
  };
666
- return /* @__PURE__ */ l(k, { children: r() ? /* @__PURE__ */ R(k, { children: [
667
- /* @__PURE__ */ l(ft, { block: e.block, context: e.context }),
668
- (c = t()) != null && c.noWrap ? /* @__PURE__ */ l(k, { children: /* @__PURE__ */ l(
727
+ return /* @__PURE__ */ l(x, { children: r() ? /* @__PURE__ */ R(x, { children: [
728
+ /* @__PURE__ */ l(bt, { block: e.block, context: e.context }),
729
+ (c = t()) != null && c.noWrap ? /* @__PURE__ */ l(x, { children: /* @__PURE__ */ l(
669
730
  Q,
670
731
  {
671
732
  componentRef: s().componentRef,
@@ -678,17 +739,17 @@ function F(e) {
678
739
  includeBlockProps: s().includeBlockProps,
679
740
  isInteractive: s().isInteractive
680
741
  }
681
- ) }) : /* @__PURE__ */ l(k, { children: n() ? /* @__PURE__ */ l(k, { children: (p = n()) == null ? void 0 : p.map((d, f) => /* @__PURE__ */ l(
682
- kt,
742
+ ) }) : /* @__PURE__ */ l(x, { children: n() ? /* @__PURE__ */ l(x, { children: (g = n()) == null ? void 0 : g.map((u, h) => /* @__PURE__ */ l(
743
+ It,
683
744
  {
684
- repeatContext: d.context,
685
- block: d.block,
745
+ repeatContext: u.context,
746
+ block: u.block,
686
747
  registeredComponents: e.registeredComponents,
687
748
  linkComponent: e.linkComponent
688
749
  },
689
- f
750
+ h
690
751
  )) }) : /* @__PURE__ */ R(
691
- Oe,
752
+ $e,
692
753
  {
693
754
  Wrapper: i(),
694
755
  block: o(),
@@ -709,22 +770,22 @@ function F(e) {
709
770
  isInteractive: s().isInteractive
710
771
  }
711
772
  ),
712
- (u = a()) == null ? void 0 : u.map((d) => /* @__PURE__ */ l(
713
- F,
773
+ (m = a()) == null ? void 0 : m.map((u) => /* @__PURE__ */ l(
774
+ L,
714
775
  {
715
- block: d,
776
+ block: u,
716
777
  registeredComponents: e.registeredComponents,
717
778
  linkComponent: e.linkComponent,
718
779
  context: e.context
719
780
  },
720
- d.id
781
+ u.id
721
782
  ))
722
783
  ]
723
784
  }
724
785
  ) })
725
786
  ] }) : null });
726
787
  }
727
- function z(e) {
788
+ function K(e) {
728
789
  var t, n, o;
729
790
  return /* @__PURE__ */ l(
730
791
  Ne,
@@ -735,8 +796,8 @@ function z(e) {
735
796
  styleProp: e.styleProp,
736
797
  BlocksWrapper: (t = e.context) == null ? void 0 : t.BlocksWrapper,
737
798
  BlocksWrapperProps: (n = e.context) == null ? void 0 : n.BlocksWrapperProps,
738
- children: e.blocks ? /* @__PURE__ */ l(k, { children: (o = e.blocks) == null ? void 0 : o.map((i) => /* @__PURE__ */ l(
739
- F,
799
+ children: e.blocks ? /* @__PURE__ */ l(x, { children: (o = e.blocks) == null ? void 0 : o.map((i) => /* @__PURE__ */ l(
800
+ L,
740
801
  {
741
802
  block: i,
742
803
  linkComponent: e.linkComponent,
@@ -748,25 +809,25 @@ function z(e) {
748
809
  }
749
810
  );
750
811
  }
751
- function xt(e) {
812
+ function Tt(e) {
752
813
  var b;
753
- const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], o = e.stackColumnsAt || "tablet", i = function(m) {
814
+ const t = typeof e.space == "number" ? e.space || 0 : 20, n = e.columns || [], o = e.stackColumnsAt || "tablet", i = function(d) {
754
815
  var y;
755
- return ((y = n[m]) == null ? void 0 : y.width) || 100 / n.length;
756
- }, r = function(m) {
816
+ return ((y = n[d]) == null ? void 0 : y.width) || 100 / n.length;
817
+ }, r = function(d) {
757
818
  const y = t * (n.length - 1) / n.length;
758
- return `calc(${i(m)}% - ${y}px)`;
819
+ return `calc(${i(d)}% - ${y}px)`;
759
820
  }, a = function({
760
- stackedStyle: m,
821
+ stackedStyle: d,
761
822
  desktopStyle: y
762
823
  }) {
763
- return o === "tablet" ? m : y;
824
+ return o === "tablet" ? d : y;
764
825
  }, s = function({
765
- stackedStyle: m,
826
+ stackedStyle: d,
766
827
  desktopStyle: y
767
828
  }) {
768
- return o === "never" ? y : m;
769
- }, c = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", u = function() {
829
+ return o === "never" ? y : d;
830
+ }, c = e.stackColumnsAt === "never" ? "row" : e.reverseColumnsWhenStacked ? "column-reverse" : "column", m = function() {
770
831
  return {
771
832
  "--flex-dir": c,
772
833
  "--flex-dir-tablet": a({
@@ -774,41 +835,41 @@ function xt(e) {
774
835
  desktopStyle: "row"
775
836
  })
776
837
  };
777
- }, p = function(m) {
778
- const y = m === 0 ? 0 : t, g = r(m), C = `${y}px`, E = "100%", v = 0;
838
+ }, g = function(d) {
839
+ const y = d === 0 ? 0 : t, f = r(d), k = `${y}px`, w = "100%", S = 0;
779
840
  return {
780
841
  ...{
781
842
  display: "flex",
782
843
  flexDirection: "column",
783
844
  alignItems: "stretch"
784
845
  },
785
- width: g,
786
- ["marginLeft"]: C,
846
+ width: f,
847
+ ["marginLeft"]: k,
787
848
  "--column-width-mobile": s({
788
- stackedStyle: E,
789
- desktopStyle: g
849
+ stackedStyle: w,
850
+ desktopStyle: f
790
851
  }),
791
852
  "--column-margin-left-mobile": s({
792
- stackedStyle: v,
793
- desktopStyle: C
853
+ stackedStyle: S,
854
+ desktopStyle: k
794
855
  }),
795
856
  "--column-width-tablet": a({
796
- stackedStyle: E,
797
- desktopStyle: g
857
+ stackedStyle: w,
858
+ desktopStyle: f
798
859
  }),
799
860
  "--column-margin-left-tablet": a({
800
- stackedStyle: v,
801
- desktopStyle: C
861
+ stackedStyle: S,
862
+ desktopStyle: k
802
863
  })
803
864
  };
804
- }, d = function(m) {
805
- var g, C;
865
+ }, u = function(d) {
866
+ var f, k;
806
867
  return ge(
807
- ((C = (g = e.builderContext.content) == null ? void 0 : g.meta) == null ? void 0 : C.breakpoints) || {}
808
- )[m].max;
809
- }, f = function() {
868
+ ((k = (f = e.builderContext.content) == null ? void 0 : f.meta) == null ? void 0 : k.breakpoints) || {}
869
+ )[d].max;
870
+ }, h = function() {
810
871
  return `
811
- @media (max-width: ${d("medium")}px) {
872
+ @media (max-width: ${u("medium")}px) {
812
873
  .${e.builderBlock.id}-breakpoints {
813
874
  flex-direction: var(--flex-dir-tablet);
814
875
  align-items: stretch;
@@ -820,7 +881,7 @@ function xt(e) {
820
881
  }
821
882
  }
822
883
 
823
- @media (max-width: ${d("small")}px) {
884
+ @media (max-width: ${u("small")}px) {
824
885
  .${e.builderBlock.id}-breakpoints {
825
886
  flex-direction: var(--flex-dir);
826
887
  align-items: stretch;
@@ -833,30 +894,30 @@ function xt(e) {
833
894
  },
834
895
  `;
835
896
  };
836
- return /* @__PURE__ */ R(k, { children: [
897
+ return /* @__PURE__ */ R(x, { children: [
837
898
  /* @__PURE__ */ R(
838
899
  "div",
839
900
  {
840
901
  className: `builder-columns ${e.builderBlock.id}-breakpoints div-664216e4`,
841
- style: u(),
902
+ style: m(),
842
903
  children: [
843
- /* @__PURE__ */ l($, { id: "builderio-columns", styles: f() }),
844
- (b = e.columns) == null ? void 0 : b.map((h, m) => /* @__PURE__ */ l(
845
- $e,
904
+ /* @__PURE__ */ l(F, { id: "builderio-columns", styles: h() }),
905
+ (b = e.columns) == null ? void 0 : b.map((p, d) => /* @__PURE__ */ l(
906
+ Fe,
846
907
  {
847
- TagName: h.link ? e.builderLinkComponent || "a" : "div",
908
+ TagName: p.link ? e.builderLinkComponent || "a" : "div",
848
909
  actionAttributes: {},
849
910
  attributes: {
850
- ...h.link ? {
851
- href: h.link
911
+ ...p.link ? {
912
+ href: p.link
852
913
  } : {},
853
914
  [M()]: "builder-column",
854
- style: he(p(m))
915
+ style: he(g(d))
855
916
  },
856
917
  children: /* @__PURE__ */ l(
857
- z,
918
+ K,
858
919
  {
859
- path: `component.options.columns.${m}.blocks`,
920
+ path: `component.options.columns.${d}.blocks`,
860
921
  parent: e.builderBlock.id,
861
922
  styleProp: {
862
923
  flexGrow: "1"
@@ -864,11 +925,11 @@ function xt(e) {
864
925
  context: e.builderContext,
865
926
  registeredComponents: e.builderComponents,
866
927
  linkComponent: e.builderLinkComponent,
867
- blocks: h.blocks
928
+ blocks: p.blocks
868
929
  }
869
930
  )
870
931
  },
871
- m
932
+ d
872
933
  ))
873
934
  ]
874
935
  }
@@ -882,11 +943,11 @@ function xt(e) {
882
943
  function X(e) {
883
944
  return e.replace(/http(s)?:/, "");
884
945
  }
885
- function Ct(e = "", t, n) {
946
+ function Et(e = "", t, n) {
886
947
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), i = e.indexOf("?") !== -1 ? "&" : "?";
887
948
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + i + t + "=" + encodeURIComponent(n);
888
949
  }
889
- function wt(e, t) {
950
+ function Rt(e, t) {
890
951
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
891
952
  return e;
892
953
  if (t === "master")
@@ -898,23 +959,23 @@ function wt(e, t) {
898
959
  }
899
960
  return null;
900
961
  }
901
- function lo(e) {
962
+ function uo(e) {
902
963
  if (!e)
903
964
  return e;
904
965
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
905
966
  if (e.match(/builder\.io/)) {
906
967
  let n = e;
907
968
  const o = Number(e.split("?width=")[1]);
908
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${Ct(e, "width", i)} ${i}w`).concat([n]).join(", ");
969
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((i) => i !== o).map((i) => `${Et(e, "width", i)} ${i}w`).concat([n]).join(", ");
909
970
  }
910
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [wt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
971
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Rt(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
911
972
  }
912
- const It = (e) => {
973
+ const Pt = (e) => {
913
974
  if (e === "localhost" || e === "127.0.0.1")
914
975
  return e;
915
976
  const t = e.split(".");
916
977
  return t.length > 2 ? t.slice(1).join(".") : e;
917
- }, be = ({
978
+ }, ye = ({
918
979
  name: e,
919
980
  canTrack: t
920
981
  }) => {
@@ -922,17 +983,17 @@ const It = (e) => {
922
983
  try {
923
984
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
924
985
  } catch (o) {
925
- x.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
986
+ C.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
926
987
  return;
927
988
  }
928
- }, ye = async (e) => be(e), Tt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(w).join("; "), Et = [["secure", ""], ["SameSite", "None"]], Rt = ({
989
+ }, Se = async (e) => ye(e), At = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(I).join("; "), Vt = [["secure", ""], ["SameSite", "None"]], Bt = ({
929
990
  name: e,
930
991
  value: t,
931
992
  expires: n
932
993
  }) => {
933
- const i = (S() ? location.protocol === "https:" : !0) ? Et : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...r, ["path", "/"], ["domain", It(window.location.hostname)], ...i];
934
- return Tt(a);
935
- }, Se = async ({
994
+ const i = (v() ? location.protocol === "https:" : !0) ? Vt : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [[e, t], ...r, ["path", "/"], ["domain", Pt(window.location.hostname)], ...i];
995
+ return At(a);
996
+ }, ve = async ({
936
997
  name: e,
937
998
  value: t,
938
999
  expires: n,
@@ -941,33 +1002,33 @@ const It = (e) => {
941
1002
  try {
942
1003
  if (!o)
943
1004
  return;
944
- const i = Rt({
1005
+ const i = Bt({
945
1006
  name: e,
946
1007
  value: t,
947
1008
  expires: n
948
1009
  });
949
1010
  document.cookie = i;
950
1011
  } catch (i) {
951
- x.warn("[COOKIE] SET error: ", (i == null ? void 0 : i.message) || i);
1012
+ C.warn("[COOKIE] SET error: ", (i == null ? void 0 : i.message) || i);
952
1013
  }
953
- }, Pt = "builder.tests", q = (e) => `${Pt}.${e}`, At = ({
1014
+ }, Wt = "builder.tests", z = (e) => `${Wt}.${e}`, Ot = ({
954
1015
  contentId: e
955
- }) => ye({
956
- name: q(e),
1016
+ }) => Se({
1017
+ name: z(e),
957
1018
  canTrack: !0
958
- }), Vt = ({
1019
+ }), $t = ({
959
1020
  contentId: e
960
- }) => be({
961
- name: q(e),
1021
+ }) => ye({
1022
+ name: z(e),
962
1023
  canTrack: !0
963
- }), Bt = ({
1024
+ }), Nt = ({
964
1025
  contentId: e,
965
1026
  value: t
966
- }) => Se({
967
- name: q(e),
1027
+ }) => ve({
1028
+ name: z(e),
968
1029
  value: t,
969
1030
  canTrack: !0
970
- }), ve = (e) => w(e.id) && w(e.variations) && Object.keys(e.variations).length > 0, Wt = ({
1031
+ }), ke = (e) => I(e.id) && I(e.variations) && Object.keys(e.variations).length > 0, Ft = ({
971
1032
  id: e,
972
1033
  variations: t
973
1034
  }) => {
@@ -980,15 +1041,15 @@ const It = (e) => {
980
1041
  return r;
981
1042
  }
982
1043
  return e;
983
- }, ke = (e) => {
984
- const t = Wt(e);
985
- return Bt({
1044
+ }, xe = (e) => {
1045
+ const t = Ft(e);
1046
+ return Nt({
986
1047
  contentId: e.id,
987
1048
  value: t
988
1049
  }).catch((n) => {
989
- x.error("could not store A/B test variation: ", n);
1050
+ C.error("could not store A/B test variation: ", n);
990
1051
  }), t;
991
- }, xe = ({
1052
+ }, Ce = ({
992
1053
  item: e,
993
1054
  testGroupId: t
994
1055
  }) => {
@@ -1002,7 +1063,7 @@ const It = (e) => {
1002
1063
  testVariationId: n.id,
1003
1064
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
1004
1065
  };
1005
- }, Ot = ({
1066
+ }, Lt = ({
1006
1067
  item: e,
1007
1068
  canTrack: t
1008
1069
  }) => {
@@ -1010,14 +1071,14 @@ const It = (e) => {
1010
1071
  return e;
1011
1072
  if (!e)
1012
1073
  return;
1013
- if (!ve(e))
1074
+ if (!ke(e))
1014
1075
  return e;
1015
- const n = Vt({
1076
+ const n = $t({
1016
1077
  contentId: e.id
1017
- }) || ke({
1078
+ }) || xe({
1018
1079
  variations: e.variations,
1019
1080
  id: e.id
1020
- }), o = xe({
1081
+ }), o = Ce({
1021
1082
  item: e,
1022
1083
  testGroupId: n
1023
1084
  });
@@ -1025,18 +1086,18 @@ const It = (e) => {
1025
1086
  ...e,
1026
1087
  ...o
1027
1088
  };
1028
- }, Nt = async ({
1089
+ }, Ut = async ({
1029
1090
  item: e,
1030
1091
  canTrack: t
1031
1092
  }) => {
1032
- if (!t || !ve(e))
1093
+ if (!t || !ke(e))
1033
1094
  return e;
1034
- const o = await At({
1095
+ const o = await Ot({
1035
1096
  contentId: e.id
1036
- }) || ke({
1097
+ }) || xe({
1037
1098
  variations: e.variations,
1038
1099
  id: e.id
1039
- }), i = xe({
1100
+ }), i = Ce({
1040
1101
  item: e,
1041
1102
  testGroupId: o
1042
1103
  });
@@ -1044,7 +1105,7 @@ const It = (e) => {
1044
1105
  ...e,
1045
1106
  ...i
1046
1107
  };
1047
- }, U = (e) => w(e) ? e : !0, $t = {
1108
+ }, U = (e) => I(e) ? e : !0, Dt = {
1048
1109
  name: "Core:Button",
1049
1110
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1050
1111
  defaultStyles: {
@@ -1077,7 +1138,7 @@ const It = (e) => {
1077
1138
  }],
1078
1139
  static: !0,
1079
1140
  noWrap: !0
1080
- }, Ft = {
1141
+ }, _t = {
1081
1142
  // TODO: ways to statically preprocess JSON for references, functions, etc
1082
1143
  name: "Columns",
1083
1144
  isRSC: !0,
@@ -1278,13 +1339,13 @@ const It = (e) => {
1278
1339
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1279
1340
  advanced: !0
1280
1341
  }]
1281
- }, Lt = {
1342
+ }, Mt = {
1282
1343
  name: "Fragment",
1283
1344
  static: !0,
1284
1345
  hidden: !0,
1285
1346
  canHaveChildren: !0,
1286
1347
  noWrap: !0
1287
- }, Ut = {
1348
+ }, jt = {
1288
1349
  name: "Image",
1289
1350
  static: !0,
1290
1351
  image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
@@ -1305,15 +1366,15 @@ const It = (e) => {
1305
1366
  onChange: (e) => {
1306
1367
  e.delete("srcset"), e.delete("noWebp");
1307
1368
  function n(a, s = 6e4) {
1308
- return new Promise((c, u) => {
1309
- const p = document.createElement("img");
1310
- let d = !1;
1311
- p.onload = () => {
1312
- d = !0, c(p);
1313
- }, p.addEventListener("error", (f) => {
1314
- console.warn("Image load failed", f.error), u(f.error);
1315
- }), p.src = a, setTimeout(() => {
1316
- d || u(new Error("Image load timed out"));
1369
+ return new Promise((c, m) => {
1370
+ const g = document.createElement("img");
1371
+ let u = !1;
1372
+ g.onload = () => {
1373
+ u = !0, c(g);
1374
+ }, g.addEventListener("error", (h) => {
1375
+ console.warn("Image load failed", h.error), m(h.error);
1376
+ }), g.src = a, setTimeout(() => {
1377
+ u || m(new Error("Image load timed out"));
1317
1378
  }, s);
1318
1379
  });
1319
1380
  }
@@ -1384,7 +1445,7 @@ const It = (e) => {
1384
1445
  advanced: !0,
1385
1446
  defaultValue: 0.7041
1386
1447
  }]
1387
- }, Dt = {
1448
+ }, Ht = {
1388
1449
  name: "Core:Section",
1389
1450
  static: !0,
1390
1451
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1423,7 +1484,7 @@ const It = (e) => {
1423
1484
  }
1424
1485
  }
1425
1486
  }]
1426
- }, _t = {
1487
+ }, Kt = {
1427
1488
  name: "Slot",
1428
1489
  isRSC: !0,
1429
1490
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1437,7 +1498,7 @@ const It = (e) => {
1437
1498
  defaultValue: "children"
1438
1499
  }]
1439
1500
  };
1440
- function Mt(e) {
1501
+ function zt(e) {
1441
1502
  var t, n, o;
1442
1503
  return /* @__PURE__ */ l(
1443
1504
  "div",
@@ -1449,7 +1510,7 @@ function Mt(e) {
1449
1510
  "builder-slot": e.name
1450
1511
  },
1451
1512
  children: /* @__PURE__ */ l(
1452
- z,
1513
+ K,
1453
1514
  {
1454
1515
  parent: (n = e.builderContext.context) == null ? void 0 : n.symbolId,
1455
1516
  path: `symbol.data.${e.name}`,
@@ -1460,7 +1521,7 @@ function Mt(e) {
1460
1521
  }
1461
1522
  );
1462
1523
  }
1463
- const jt = {
1524
+ const qt = {
1464
1525
  name: "Symbol",
1465
1526
  noWrap: !0,
1466
1527
  static: !0,
@@ -1493,7 +1554,7 @@ const jt = {
1493
1554
  hideFromUI: !0,
1494
1555
  type: "boolean"
1495
1556
  }]
1496
- }, Ht = {
1557
+ }, Yt = {
1497
1558
  name: "Text",
1498
1559
  static: !0,
1499
1560
  isRSC: !0,
@@ -1512,7 +1573,7 @@ const jt = {
1512
1573
  textAlign: "center"
1513
1574
  }
1514
1575
  };
1515
- function Kt(e) {
1576
+ function Gt(e) {
1516
1577
  var t;
1517
1578
  return /* @__PURE__ */ l(
1518
1579
  "div",
@@ -1525,7 +1586,7 @@ function Kt(e) {
1525
1586
  }
1526
1587
  );
1527
1588
  }
1528
- const zt = {
1589
+ const Jt = {
1529
1590
  name: "Custom Code",
1530
1591
  static: !0,
1531
1592
  requiredPermissions: ["editCode"],
@@ -1547,7 +1608,7 @@ const zt = {
1547
1608
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1548
1609
  advanced: !0
1549
1610
  }]
1550
- }, qt = {
1611
+ }, Qt = {
1551
1612
  name: "Embed",
1552
1613
  static: !0,
1553
1614
  inputs: [{
@@ -1572,7 +1633,7 @@ const zt = {
1572
1633
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1573
1634
  hideFromUI: !0
1574
1635
  }]
1575
- }, Yt = ["text/javascript", "application/javascript", "application/ecmascript"], uo = (e) => Yt.includes(e.type), Gt = {
1636
+ }, Xt = ["text/javascript", "application/javascript", "application/ecmascript"], mo = (e) => Xt.includes(e.type), Zt = {
1576
1637
  // friendlyName?
1577
1638
  name: "Raw:Img",
1578
1639
  hideFromInsertMenu: !0,
@@ -1586,7 +1647,7 @@ const zt = {
1586
1647
  }],
1587
1648
  noWrap: !0,
1588
1649
  static: !0
1589
- }, Jt = {
1650
+ }, en = {
1590
1651
  name: "Video",
1591
1652
  canHaveChildren: !0,
1592
1653
  defaultStyles: {
@@ -1667,58 +1728,58 @@ const zt = {
1667
1728
  defaultValue: !0,
1668
1729
  advanced: !0
1669
1730
  }]
1670
- }, Qt = () => [{
1671
- component: Fe,
1672
- ...zt
1673
- }, {
1731
+ }, tn = () => [{
1674
1732
  component: Le,
1675
- ...qt
1733
+ ...Jt
1676
1734
  }, {
1677
1735
  component: Ue,
1678
- ...Gt
1736
+ ...Qt
1679
1737
  }, {
1680
1738
  component: De,
1681
- ...Jt
1682
- }], Z = () => [{
1683
- component: _e,
1684
- ...$t
1685
- }, {
1686
- component: xt,
1687
- ...Ft
1739
+ ...Zt
1688
1740
  }, {
1741
+ component: _e,
1742
+ ...en
1743
+ }], Z = () => [{
1689
1744
  component: Me,
1690
- ...Lt
1745
+ ...Dt
1746
+ }, {
1747
+ component: Tt,
1748
+ ..._t
1691
1749
  }, {
1692
1750
  component: je,
1693
- ...Ut
1751
+ ...Mt
1694
1752
  }, {
1695
1753
  component: He,
1696
- ...Dt
1754
+ ...jt
1697
1755
  }, {
1698
- component: Mt,
1699
- ..._t
1756
+ component: Ke,
1757
+ ...Ht
1758
+ }, {
1759
+ component: zt,
1760
+ ...Kt
1700
1761
  }, {
1701
1762
  component: eo,
1702
- ...jt
1763
+ ...qt
1703
1764
  }, {
1704
- component: Kt,
1705
- ...Ht
1706
- }, ...Qt()], mo = (e) => ({
1765
+ component: Gt,
1766
+ ...Yt
1767
+ }, ...tn()], fo = (e) => ({
1707
1768
  type: "builder.registerComponent",
1708
1769
  data: D(e)
1709
- }), Xt = (e) => {
1770
+ }), nn = (e) => {
1710
1771
  const t = e.toString().trim();
1711
1772
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
1712
- }, Zt = (e) => typeof e == "function" ? Xt(e) : N(e), D = ({
1773
+ }, on = (e) => typeof e == "function" ? nn(e) : N(e), D = ({
1713
1774
  inputs: e,
1714
1775
  ...t
1715
1776
  }) => ({
1716
1777
  ...N(t),
1717
1778
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [i, r]) => ({
1718
1779
  ...o,
1719
- [i]: Zt(r)
1780
+ [i]: on(r)
1720
1781
  }), {}))
1721
- }), en = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1782
+ }), rn = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
1722
1783
  function getAndSetVariantId() {
1723
1784
  function setCookie(name, value, days) {
1724
1785
  let expires = '';
@@ -1774,7 +1835,7 @@ const zt = {
1774
1835
  }).join('');
1775
1836
  styleEl.innerHTML = newStyleStr;
1776
1837
  }
1777
- }`, tn = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1838
+ }`, an = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
1778
1839
  if (!navigator.cookieEnabled) {
1779
1840
  return;
1780
1841
  }
@@ -1808,24 +1869,24 @@ const zt = {
1808
1869
  thisScriptEl?.remove();
1809
1870
  }
1810
1871
  return;
1811
- }`, Ce = "builderIoAbTest", we = "builderIoRenderContent", B = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1872
+ }`, we = "builderIoAbTest", Ie = "builderIoRenderContent", W = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
1812
1873
  ...t,
1813
1874
  testVariationId: t.id,
1814
1875
  id: e == null ? void 0 : e.id
1815
- })), nn = ({
1876
+ })), sn = ({
1816
1877
  canTrack: e,
1817
1878
  content: t
1818
- }) => !(!(B(t).length > 0) || !e || S()), on = (e) => e === "react" || e === "reactNative", Ie = on(T), rn = () => `
1819
- window.${Ce} = ${en}
1820
- window.${we} = ${tn}
1821
- `, an = (e, t) => `
1822
- window.${Ce}(
1823
- "${t}",${JSON.stringify(e)}, ${Ie}
1824
- )`, sn = ({
1879
+ }) => !(!(W(t).length > 0) || !e || v()), cn = (e) => e === "react" || e === "reactNative", Te = cn(E), ln = () => `
1880
+ window.${we} = ${rn}
1881
+ window.${Ie} = ${an}
1882
+ `, dn = (e, t) => `
1883
+ window.${we}(
1884
+ "${t}",${JSON.stringify(e)}, ${Te}
1885
+ )`, un = ({
1825
1886
  contentId: e,
1826
1887
  variationId: t
1827
- }) => `window.${we}(
1828
- "${t}", "${e}", ${Ie}
1888
+ }) => `window.${Ie}(
1889
+ "${t}", "${e}", ${Te}
1829
1890
  )`;
1830
1891
  function _(e) {
1831
1892
  return /* @__PURE__ */ l(
@@ -1836,61 +1897,61 @@ function _(e) {
1836
1897
  }
1837
1898
  );
1838
1899
  }
1839
- const cn = (e) => {
1900
+ const mn = (e) => {
1840
1901
  const t = e.get("preview"), n = e.get("overrides." + t);
1841
- return n || x.warn("No previewed ID found in search params."), n;
1902
+ return n || C.warn("No previewed ID found in search params."), n;
1842
1903
  };
1843
- function ln() {
1844
- globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new ze({
1904
+ function fn() {
1905
+ globalThis._BUILDER_PREVIEW_LRU_CACHE || (globalThis._BUILDER_PREVIEW_LRU_CACHE = new qe({
1845
1906
  max: 500,
1846
1907
  // how long to live in ms
1847
1908
  ttl: 1e3 * 60 * 5
1848
1909
  }));
1849
1910
  }
1850
- function dn(e) {
1851
- ln();
1852
- const t = cn(e);
1911
+ function hn(e) {
1912
+ fn();
1913
+ const t = mn(e);
1853
1914
  return typeof t == "string" ? globalThis._BUILDER_PREVIEW_LRU_CACHE.get(t) : void 0;
1854
1915
  }
1855
- function un() {
1916
+ function pn() {
1856
1917
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
1857
1918
  }
1858
- function mn() {
1859
- const e = un().fetch;
1919
+ function gn() {
1920
+ const e = pn().fetch;
1860
1921
  if (typeof e > "u")
1861
1922
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
1862
1923
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
1863
1924
  return e;
1864
1925
  }
1865
- const fn = mn();
1866
- function W(e, t = null, n = ".") {
1926
+ const bn = gn();
1927
+ function O(e, t = null, n = ".") {
1867
1928
  return Object.keys(e).reduce((o, i) => {
1868
1929
  const r = e[i], a = [t, i].filter(Boolean).join(n);
1869
1930
  return [typeof r == "object", r !== null, !(Array.isArray(r) && r.length === 0)].every(Boolean) ? {
1870
1931
  ...o,
1871
- ...W(r, a, n)
1932
+ ...O(r, a, n)
1872
1933
  } : {
1873
1934
  ...o,
1874
1935
  [a]: r
1875
1936
  };
1876
1937
  }, {});
1877
1938
  }
1878
- const hn = "v3", ee = "builder.", pn = "options.", Te = (e) => {
1939
+ const yn = "v3", ee = "builder.", Sn = "options.", Ee = (e) => {
1879
1940
  if (!e)
1880
1941
  return {};
1881
- const t = le(e), n = {};
1942
+ const t = ce(e), n = {};
1882
1943
  return Object.keys(t).forEach((o) => {
1883
1944
  if (o.startsWith(ee)) {
1884
- const i = o.replace(ee, "").replace(pn, "");
1945
+ const i = o.replace(ee, "").replace(Sn, "");
1885
1946
  n[i] = t[o];
1886
1947
  }
1887
1948
  }), n;
1888
- }, gn = () => {
1889
- if (!S())
1949
+ }, vn = () => {
1950
+ if (!v())
1890
1951
  return {};
1891
1952
  const e = new URLSearchParams(window.location.search);
1892
- return Te(e);
1893
- }, te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Y = (e) => {
1953
+ return Ee(e);
1954
+ }, te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, q = (e) => {
1894
1955
  const {
1895
1956
  limit: t = 30,
1896
1957
  userAttributes: n,
@@ -1899,177 +1960,175 @@ const hn = "v3", ee = "builder.", pn = "options.", Te = (e) => {
1899
1960
  apiKey: r,
1900
1961
  enrich: a,
1901
1962
  locale: s,
1902
- apiVersion: c = hn,
1903
- fields: u,
1904
- omit: p,
1905
- offset: d,
1906
- cacheSeconds: f,
1963
+ apiVersion: c = yn,
1964
+ fields: m,
1965
+ omit: g,
1966
+ offset: u,
1967
+ cacheSeconds: h,
1907
1968
  staleCacheSeconds: b,
1908
- sort: h,
1909
- includeUnpublished: m
1969
+ sort: p,
1970
+ includeUnpublished: d
1910
1971
  } = e;
1911
1972
  if (!r)
1912
1973
  throw new Error("Missing API key");
1913
1974
  if (!["v3"].includes(c))
1914
1975
  throw new Error(`Invalid apiVersion: expected 'v3', received '${c}'`);
1915
- const y = t !== 1, g = new URL(`https://cdn.builder.io/api/${c}/content/${i}`);
1916
- if (g.searchParams.set("apiKey", r), g.searchParams.set("limit", String(t)), g.searchParams.set("noTraverse", String(y)), g.searchParams.set("includeRefs", String(!0)), s && g.searchParams.set("locale", s), a && g.searchParams.set("enrich", String(a)), g.searchParams.set("omit", p || "meta.componentsUsed"), u && g.searchParams.set("fields", u), Number.isFinite(d) && d > -1 && g.searchParams.set("offset", String(Math.floor(d))), typeof m == "boolean" && g.searchParams.set("includeUnpublished", String(m)), f && te(f) && g.searchParams.set("cacheSeconds", String(f)), b && te(b) && g.searchParams.set("staleCacheSeconds", String(b)), h) {
1917
- const v = W({
1918
- sort: h
1976
+ const y = t !== 1, f = new URL(`https://cdn.builder.io/api/${c}/content/${i}`);
1977
+ if (f.searchParams.set("apiKey", r), f.searchParams.set("limit", String(t)), f.searchParams.set("noTraverse", String(y)), f.searchParams.set("includeRefs", String(!0)), s && f.searchParams.set("locale", s), a && f.searchParams.set("enrich", String(a)), f.searchParams.set("omit", g || "meta.componentsUsed"), m && f.searchParams.set("fields", m), Number.isFinite(u) && u > -1 && f.searchParams.set("offset", String(Math.floor(u))), typeof d == "boolean" && f.searchParams.set("includeUnpublished", String(d)), h && te(h) && f.searchParams.set("cacheSeconds", String(h)), b && te(b) && f.searchParams.set("staleCacheSeconds", String(b)), p) {
1978
+ const S = O({
1979
+ sort: p
1919
1980
  });
1920
- for (const I in v)
1921
- g.searchParams.set(I, JSON.stringify(v[I]));
1981
+ for (const T in S)
1982
+ f.searchParams.set(T, JSON.stringify(S[T]));
1922
1983
  }
1923
- const C = {
1924
- ...gn(),
1925
- ...le(e.options || {})
1926
- }, E = W(C);
1927
- for (const v in E)
1928
- g.searchParams.set(v, String(E[v]));
1929
- if (n && g.searchParams.set("userAttributes", JSON.stringify(n)), o) {
1930
- const v = W({
1984
+ const k = {
1985
+ ...vn(),
1986
+ ...ce(e.options || {})
1987
+ }, w = O(k);
1988
+ for (const S in w)
1989
+ f.searchParams.set(S, String(w[S]));
1990
+ if (n && f.searchParams.set("userAttributes", JSON.stringify(n)), o) {
1991
+ const S = O({
1931
1992
  query: o
1932
1993
  });
1933
- for (const I in v)
1934
- g.searchParams.set(I, JSON.stringify(v[I]));
1994
+ for (const T in S)
1995
+ f.searchParams.set(T, JSON.stringify(S[T]));
1935
1996
  }
1936
- return g;
1937
- }, bn = (e) => "results" in e;
1938
- async function Ee(e) {
1939
- const t = await vn({
1997
+ return f;
1998
+ }, kn = (e) => "results" in e;
1999
+ async function Re(e) {
2000
+ const t = await wn({
1940
2001
  ...e,
1941
2002
  limit: 1
1942
2003
  });
1943
2004
  return t && t[0] || null;
1944
2005
  }
1945
- const yn = async (e) => {
1946
- const t = Y(e);
1947
- return await (await (e.fetch ?? fn)(t.href, e.fetchOptions)).json();
1948
- }, Sn = async (e, t, n = Y(e)) => {
2006
+ const xn = async (e) => {
2007
+ const t = q(e);
2008
+ return await (await (e.fetch ?? bn)(t.href, e.fetchOptions)).json();
2009
+ }, Cn = async (e, t, n = q(e)) => {
1949
2010
  const o = U(e.canTrack);
1950
2011
  if (n.search.includes("preview=")) {
1951
2012
  const r = [];
1952
2013
  for (const a of t.results) {
1953
- const s = dn(n.searchParams);
2014
+ const s = hn(n.searchParams);
1954
2015
  r.push(s || a);
1955
2016
  }
1956
2017
  t.results = r;
1957
2018
  }
1958
- if (!o || !(S() || T === "reactNative"))
2019
+ if (!o || !(v() || E === "reactNative"))
1959
2020
  return t.results;
1960
2021
  try {
1961
2022
  const r = [];
1962
2023
  for (const a of t.results)
1963
- r.push(await Nt({
2024
+ r.push(await Ut({
1964
2025
  item: a,
1965
2026
  canTrack: o
1966
2027
  }));
1967
2028
  t.results = r;
1968
2029
  } catch (r) {
1969
- x.error("Could not process A/B tests. ", r);
2030
+ C.error("Could not process A/B tests. ", r);
1970
2031
  }
1971
2032
  return t.results;
1972
2033
  };
1973
- async function vn(e) {
2034
+ async function wn(e) {
1974
2035
  try {
1975
- const t = Y(e), n = await yn(e);
1976
- return bn(n) ? Sn(e, n) : (x.error("Error fetching data. ", {
2036
+ const t = q(e), n = await xn(e);
2037
+ return kn(n) ? Cn(e, n) : (C.error("Error fetching data. ", {
1977
2038
  url: t,
1978
2039
  content: n,
1979
2040
  options: e
1980
2041
  }), null);
1981
2042
  } catch (t) {
1982
- return x.error("Error fetching data. ", t), null;
2043
+ return C.error("Error fetching data. ", t), null;
1983
2044
  }
1984
2045
  }
1985
- function fo(e) {
1986
- if (!S())
1987
- return !1;
1988
- const t = de(e || window.location.search);
1989
- return j(t) ? !1 : t.indexOf("builder.preview=") !== -1;
2046
+ function ho(e) {
2047
+ const t = e || (v() ? window.location.search : void 0);
2048
+ return t ? le(t).indexOf("builder.preview=") !== -1 : !1;
1990
2049
  }
1991
- function kn() {
2050
+ function In() {
1992
2051
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
1993
2052
  const t = Math.random() * 16 | 0;
1994
2053
  return (e == "x" ? t : t & 3 | 8).toString(16);
1995
2054
  });
1996
2055
  }
1997
- function Re() {
1998
- return kn().replace(/-/g, "");
2056
+ function Pe() {
2057
+ return In().replace(/-/g, "");
1999
2058
  }
2000
- const Pe = "builderSessionId", xn = async ({
2059
+ const Ae = "builderSessionId", Tn = async ({
2001
2060
  canTrack: e
2002
2061
  }) => {
2003
2062
  if (!e)
2004
2063
  return;
2005
- const t = await ye({
2006
- name: Pe,
2064
+ const t = await Se({
2065
+ name: Ae,
2007
2066
  canTrack: e
2008
2067
  });
2009
- if (w(t))
2068
+ if (I(t))
2010
2069
  return t;
2011
2070
  {
2012
- const n = Cn();
2013
- return wn({
2071
+ const n = En();
2072
+ return Rn({
2014
2073
  id: n,
2015
2074
  canTrack: e
2016
2075
  }), n;
2017
2076
  }
2018
- }, Cn = () => Re(), wn = ({
2077
+ }, En = () => Pe(), Rn = ({
2019
2078
  id: e,
2020
2079
  canTrack: t
2021
- }) => Se({
2022
- name: Pe,
2080
+ }) => ve({
2081
+ name: Ae,
2023
2082
  value: e,
2024
2083
  canTrack: t
2025
- }), Ae = () => S() && typeof localStorage < "u" ? localStorage : void 0, In = ({
2084
+ }), Ve = () => v() && typeof localStorage < "u" ? localStorage : void 0, Pn = ({
2026
2085
  key: e,
2027
2086
  canTrack: t
2028
2087
  }) => {
2029
2088
  var n;
2030
2089
  try {
2031
- return t ? (n = Ae()) == null ? void 0 : n.getItem(e) : void 0;
2090
+ return t ? (n = Ve()) == null ? void 0 : n.getItem(e) : void 0;
2032
2091
  } catch (o) {
2033
2092
  console.debug("[LocalStorage] GET error: ", o);
2034
2093
  return;
2035
2094
  }
2036
- }, Tn = ({
2095
+ }, An = ({
2037
2096
  key: e,
2038
2097
  canTrack: t,
2039
2098
  value: n
2040
2099
  }) => {
2041
2100
  var o;
2042
2101
  try {
2043
- t && ((o = Ae()) == null || o.setItem(e, n));
2102
+ t && ((o = Ve()) == null || o.setItem(e, n));
2044
2103
  } catch (i) {
2045
2104
  console.debug("[LocalStorage] SET error: ", i);
2046
2105
  }
2047
- }, Ve = "builderVisitorId", En = ({
2106
+ }, Be = "builderVisitorId", Vn = ({
2048
2107
  canTrack: e
2049
2108
  }) => {
2050
2109
  if (!e)
2051
2110
  return;
2052
- const t = In({
2053
- key: Ve,
2111
+ const t = Pn({
2112
+ key: Be,
2054
2113
  canTrack: e
2055
2114
  });
2056
- if (w(t))
2115
+ if (I(t))
2057
2116
  return t;
2058
2117
  {
2059
- const n = Rn();
2060
- return Pn({
2118
+ const n = Bn();
2119
+ return Wn({
2061
2120
  id: n,
2062
2121
  canTrack: e
2063
2122
  }), n;
2064
2123
  }
2065
- }, Rn = () => Re(), Pn = ({
2124
+ }, Bn = () => Pe(), Wn = ({
2066
2125
  id: e,
2067
2126
  canTrack: t
2068
- }) => Tn({
2069
- key: Ve,
2127
+ }) => An({
2128
+ key: Be,
2070
2129
  value: e,
2071
2130
  canTrack: t
2072
- }), An = async ({
2131
+ }), On = async ({
2073
2132
  canTrack: e
2074
2133
  }) => {
2075
2134
  if (!e)
@@ -2077,16 +2136,16 @@ const Pe = "builderSessionId", xn = async ({
2077
2136
  visitorId: void 0,
2078
2137
  sessionId: void 0
2079
2138
  };
2080
- const t = await xn({
2139
+ const t = await Tn({
2081
2140
  canTrack: e
2082
- }), n = En({
2141
+ }), n = Vn({
2083
2142
  canTrack: e
2084
2143
  });
2085
2144
  return {
2086
2145
  sessionId: t,
2087
2146
  visitorId: n
2088
2147
  };
2089
- }, Vn = async ({
2148
+ }, $n = async ({
2090
2149
  type: e,
2091
2150
  canTrack: t,
2092
2151
  apiKey: n,
@@ -2100,23 +2159,23 @@ const Pe = "builderSessionId", xn = async ({
2100
2159
  url: location.href,
2101
2160
  ...o
2102
2161
  },
2103
- ...await An({
2162
+ ...await On({
2104
2163
  canTrack: t
2105
2164
  }),
2106
2165
  userAttributes: ue(),
2107
2166
  ownerId: n
2108
2167
  }
2109
2168
  });
2110
- async function Bn(e) {
2169
+ async function Nn(e) {
2111
2170
  if (!e.apiKey) {
2112
- x.error("Missing API key for track call. Please provide your API key.");
2171
+ C.error("Missing API key for track call. Please provide your API key.");
2113
2172
  return;
2114
2173
  }
2115
- if (e.canTrack && !j() && (S() || T === "reactNative"))
2174
+ if (e.canTrack && !de() && (v() || E === "reactNative"))
2116
2175
  return fetch("https://cdn.builder.io/api/v1/track", {
2117
2176
  method: "POST",
2118
2177
  body: JSON.stringify({
2119
- events: [await Vn(e)]
2178
+ events: [await $n(e)]
2120
2179
  }),
2121
2180
  headers: {
2122
2181
  "content-type": "application/json"
@@ -2126,14 +2185,14 @@ async function Bn(e) {
2126
2185
  console.error("Failed to track: ", t);
2127
2186
  });
2128
2187
  }
2129
- const ho = (e) => Bn({
2188
+ const po = (e) => Nn({
2130
2189
  ...e,
2131
2190
  canTrack: !0
2132
2191
  });
2133
2192
  function ne(e) {
2134
2193
  return Math.round(e * 1e3) / 1e3;
2135
2194
  }
2136
- const Wn = (e, t, n = !0) => {
2195
+ const Fn = (e, t, n = !0) => {
2137
2196
  if (!(e instanceof HTMLElement))
2138
2197
  return null;
2139
2198
  let o = n ? e : e.parentElement;
@@ -2144,7 +2203,7 @@ const Wn = (e, t, n = !0) => {
2144
2203
  return o;
2145
2204
  } while (o = o.parentElement);
2146
2205
  return null;
2147
- }, On = (e) => Wn(e, (t) => {
2206
+ }, Ln = (e) => Fn(e, (t) => {
2148
2207
  const n = t.getAttribute("builder-id") || t.id;
2149
2208
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
2150
2209
  }), oe = ({
@@ -2156,8 +2215,8 @@ const Wn = (e, t, n = !0) => {
2156
2215
  x: r,
2157
2216
  y: a
2158
2217
  };
2159
- }, po = (e) => {
2160
- const t = e.target, n = t && On(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2218
+ }, go = (e) => {
2219
+ const t = e.target, n = t && Ln(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
2161
2220
  return {
2162
2221
  targetBuilderElement: o || void 0,
2163
2222
  metadata: {
@@ -2172,15 +2231,15 @@ const Wn = (e, t, n = !0) => {
2172
2231
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
2173
2232
  }
2174
2233
  };
2175
- }, Nn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
2176
- function Be(e, t) {
2234
+ }, Un = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
2235
+ function We(e, t) {
2177
2236
  const n = new URL(t.origin), o = n.hostname;
2178
- return (e || Nn).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
2237
+ return (e || Un).findIndex((i) => i.startsWith("*.") ? o.endsWith(i.slice(1)) : i === o) > -1;
2179
2238
  }
2180
- const $n = "0.14.14", ie = {};
2181
- function Fn(e, t) {
2239
+ const Dn = "0.14.16", ie = {};
2240
+ function _n(e, t) {
2182
2241
  let n = ie[e];
2183
- if (n || (n = ie[e] = []), n.push(t), S()) {
2242
+ if (n || (n = ie[e] = []), n.push(t), v()) {
2184
2243
  const o = {
2185
2244
  type: "builder.register",
2186
2245
  data: {
@@ -2195,8 +2254,8 @@ function Fn(e, t) {
2195
2254
  }
2196
2255
  }
2197
2256
  }
2198
- const go = () => {
2199
- Fn("insertMenu", {
2257
+ const bo = () => {
2258
+ _n("insertMenu", {
2200
2259
  name: "_default",
2201
2260
  default: !0,
2202
2261
  items: [{
@@ -2219,13 +2278,13 @@ const go = () => {
2219
2278
  });
2220
2279
  };
2221
2280
  let re = !1;
2222
- const Ln = (e = {}) => {
2281
+ const Mn = (e = {}) => {
2223
2282
  var t, n;
2224
- re || (re = !0, S() && ((t = window.parent) == null || t.postMessage({
2283
+ re || (re = !0, v() && ((t = window.parent) == null || t.postMessage({
2225
2284
  type: "builder.sdkInfo",
2226
2285
  data: {
2227
- target: T,
2228
- version: $n,
2286
+ target: E,
2287
+ version: Dn,
2229
2288
  supportsPatchUpdates: !1,
2230
2289
  // Supports builder-model="..." attribute which is needed to
2231
2290
  // scope our '+ add block' button styling
@@ -2239,7 +2298,7 @@ const Ln = (e = {}) => {
2239
2298
  }
2240
2299
  }, "*"), window.addEventListener("message", (o) => {
2241
2300
  var r, a;
2242
- if (!Be(e.trustedHosts, o))
2301
+ if (!We(e.trustedHosts, o))
2243
2302
  return;
2244
2303
  const {
2245
2304
  data: i
@@ -2247,45 +2306,45 @@ const Ln = (e = {}) => {
2247
2306
  if (i != null && i.type)
2248
2307
  switch (i.type) {
2249
2308
  case "builder.evaluate": {
2250
- const s = i.data.text, c = i.data.arguments || [], u = i.data.id, p = new Function(s);
2251
- let d, f = null;
2309
+ const s = i.data.text, c = i.data.arguments || [], m = i.data.id, g = new Function(s);
2310
+ let u, h = null;
2252
2311
  try {
2253
- d = p.apply(null, c);
2312
+ u = g.apply(null, c);
2254
2313
  } catch (b) {
2255
- f = b;
2314
+ h = b;
2256
2315
  }
2257
- f ? (r = window.parent) == null || r.postMessage({
2316
+ h ? (r = window.parent) == null || r.postMessage({
2258
2317
  type: "builder.evaluateError",
2259
2318
  data: {
2260
- id: u,
2261
- error: f.message
2319
+ id: m,
2320
+ error: h.message
2262
2321
  }
2263
- }, "*") : d && typeof d.then == "function" ? d.then((b) => {
2264
- var h;
2265
- (h = window.parent) == null || h.postMessage({
2322
+ }, "*") : u && typeof u.then == "function" ? u.then((b) => {
2323
+ var p;
2324
+ (p = window.parent) == null || p.postMessage({
2266
2325
  type: "builder.evaluateResult",
2267
2326
  data: {
2268
- id: u,
2327
+ id: m,
2269
2328
  result: b
2270
2329
  }
2271
2330
  }, "*");
2272
2331
  }).catch(console.error) : (a = window.parent) == null || a.postMessage({
2273
2332
  type: "builder.evaluateResult",
2274
2333
  data: {
2275
- result: d,
2276
- id: u
2334
+ result: u,
2335
+ id: m
2277
2336
  }
2278
2337
  }, "*");
2279
2338
  break;
2280
2339
  }
2281
2340
  }
2282
2341
  })));
2283
- }, Un = ({
2342
+ }, jn = ({
2284
2343
  model: e,
2285
2344
  trustedHosts: t,
2286
2345
  callbacks: n
2287
2346
  }) => (o) => {
2288
- if (!Be(t, o))
2347
+ if (!We(t, o))
2289
2348
  return;
2290
2349
  const {
2291
2350
  data: i
@@ -2306,12 +2365,12 @@ const Ln = (e = {}) => {
2306
2365
  break;
2307
2366
  }
2308
2367
  }
2309
- }, bo = (e, t, n) => {
2310
- if (!S)
2311
- return x.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
2368
+ }, yo = (e, t, n) => {
2369
+ if (!v)
2370
+ return C.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
2312
2371
  };
2313
- Ln();
2314
- const o = Un({
2372
+ Mn();
2373
+ const o = jn({
2315
2374
  callbacks: {
2316
2375
  contentUpdate: t,
2317
2376
  animation: () => {
@@ -2325,49 +2384,7 @@ const Ln = (e = {}) => {
2325
2384
  return window.addEventListener("message", o), () => {
2326
2385
  window.removeEventListener("message", o);
2327
2386
  };
2328
- };
2329
- function ae(e, ...t) {
2330
- const n = Object(e);
2331
- for (let o = 1; o < arguments.length; o++) {
2332
- const i = arguments[o];
2333
- if (i != null)
2334
- for (const r in i)
2335
- Object.prototype.hasOwnProperty.call(i, r) && (n[r] = i[r]);
2336
- }
2337
- return n;
2338
- }
2339
- const Dn = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
2340
- function _n(e) {
2341
- console.warn(`Cannot animate element: element with ID ${e} not found!`);
2342
- }
2343
- function Mn(e, t) {
2344
- const n = jn(e), o = getComputedStyle(t), i = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, a = [i, r];
2345
- for (const s of a)
2346
- for (const c of n)
2347
- c in s || (s[c] = o[c]);
2348
- }
2349
- function jn(e) {
2350
- const t = [];
2351
- for (const n of e.steps)
2352
- for (const o in n.styles)
2353
- t.indexOf(o) === -1 && t.push(o);
2354
- return t;
2355
- }
2356
- function yo(e) {
2357
- const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
2358
- if (!t.length) {
2359
- _n(e.elementId || e.id || "");
2360
- return;
2361
- }
2362
- Array.from(t).forEach((n) => {
2363
- Mn(e, n), n.style.transition = "none", n.style.transitionDelay = "0", ae(n.style, e.steps[0].styles), setTimeout(() => {
2364
- n.style.transition = `all ${e.duration}s ${Dn(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), ae(n.style, e.steps[1].styles), setTimeout(() => {
2365
- n.style.transition = "", n.style.transitionDelay = "";
2366
- }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
2367
- });
2368
- });
2369
- }
2370
- const Hn = (e) => {
2387
+ }, Hn = (e) => {
2371
2388
  var r;
2372
2389
  const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((r = e == null ? void 0 : e.files) == null ? void 0 : r.regular);
2373
2390
  let i = "";
@@ -2430,7 +2447,7 @@ ${Kn({
2430
2447
  })}
2431
2448
  ${Yn(e.isNestedRender)}
2432
2449
  `.trim();
2433
- return /* @__PURE__ */ l($, { id: "builderio-content", styles: t });
2450
+ return /* @__PURE__ */ l(F, { id: "builderio-content", styles: t });
2434
2451
  }
2435
2452
  const Jn = ({
2436
2453
  content: e,
@@ -2460,9 +2477,9 @@ const Jn = ({
2460
2477
  },
2461
2478
  meta: e == null ? void 0 : e.meta
2462
2479
  } : void 0;
2463
- function se(e) {
2464
- var i, r, a, s, c, u, p, d, f;
2465
- const t = sn({
2480
+ function ae(e) {
2481
+ var i, r, a, s, c, m, g, u, h;
2482
+ const t = un({
2466
2483
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
2467
2484
  variationId: (i = e.content) == null ? void 0 : i.testVariationId,
2468
2485
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -2471,11 +2488,11 @@ function se(e) {
2471
2488
  ...Z(),
2472
2489
  ...e.customComponents || []
2473
2490
  ].reduce(
2474
- (b, { component: h, ...m }) => ({
2491
+ (b, { component: p, ...d }) => ({
2475
2492
  ...b,
2476
- [m.name]: {
2477
- component: h,
2478
- ...D(m)
2493
+ [d.name]: {
2494
+ component: p,
2495
+ ...D(d)
2479
2496
  }
2480
2497
  }),
2481
2498
  {}
@@ -2498,9 +2515,9 @@ function se(e) {
2498
2515
  ...Z(),
2499
2516
  ...e.customComponents || []
2500
2517
  ].reduce(
2501
- (b, { component: h, ...m }) => ({
2518
+ (b, { component: p, ...d }) => ({
2502
2519
  ...b,
2503
- [m.name]: D(m)
2520
+ [d.name]: D(d)
2504
2521
  }),
2505
2522
  {}
2506
2523
  ),
@@ -2509,7 +2526,7 @@ function se(e) {
2509
2526
  BlocksWrapperProps: e.blocksWrapperProps || {}
2510
2527
  };
2511
2528
  return /* @__PURE__ */ R(
2512
- Ke,
2529
+ ze,
2513
2530
  {
2514
2531
  content: e.content,
2515
2532
  data: e.data,
@@ -2539,13 +2556,13 @@ function se(e) {
2539
2556
  isNestedRender: e.isNestedRender,
2540
2557
  contentId: (a = o.content) == null ? void 0 : a.id,
2541
2558
  cssCode: (c = (s = o.content) == null ? void 0 : s.data) == null ? void 0 : c.cssCode,
2542
- customFonts: (p = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : p.customFonts
2559
+ customFonts: (g = (m = o.content) == null ? void 0 : m.data) == null ? void 0 : g.customFonts
2543
2560
  }
2544
2561
  ),
2545
2562
  /* @__PURE__ */ l(
2546
- z,
2563
+ K,
2547
2564
  {
2548
- blocks: (f = (d = o.content) == null ? void 0 : d.data) == null ? void 0 : f.blocks,
2565
+ blocks: (h = (u = o.content) == null ? void 0 : u.data) == null ? void 0 : h.blocks,
2549
2566
  context: o,
2550
2567
  registeredComponents: n,
2551
2568
  linkComponent: e.linkComponent
@@ -2557,41 +2574,41 @@ function se(e) {
2557
2574
  }
2558
2575
  function Xn(e) {
2559
2576
  var r;
2560
- const t = nn({
2577
+ const t = sn({
2561
2578
  canTrack: U(e.canTrack),
2562
2579
  content: e.content
2563
2580
  }), n = function() {
2564
2581
  var s;
2565
- return an(
2566
- B(e.content).map((c) => ({
2582
+ return dn(
2583
+ W(e.content).map((c) => ({
2567
2584
  id: c.testVariationId,
2568
2585
  testRatio: c.testRatio
2569
2586
  })),
2570
2587
  ((s = e.content) == null ? void 0 : s.id) || ""
2571
2588
  );
2572
2589
  }, o = function() {
2573
- return B(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
2590
+ return W(e.content).map((s) => `.variant-${s.testVariationId} { display: none; } `).join("");
2574
2591
  }, i = function() {
2575
2592
  var s;
2576
2593
  return t ? {
2577
2594
  ...e.content,
2578
2595
  testVariationId: (s = e.content) == null ? void 0 : s.id
2579
- } : Ot({
2596
+ } : Lt({
2580
2597
  item: e.content,
2581
2598
  canTrack: U(e.canTrack)
2582
2599
  });
2583
2600
  };
2584
- return /* @__PURE__ */ R(k, { children: [
2585
- !e.isNestedRender && T !== "reactNative" ? /* @__PURE__ */ l(
2601
+ return /* @__PURE__ */ R(x, { children: [
2602
+ !e.isNestedRender && E !== "reactNative" ? /* @__PURE__ */ l(
2586
2603
  _,
2587
2604
  {
2588
2605
  id: "builderio-init-variants-fns",
2589
- scriptStr: rn()
2606
+ scriptStr: ln()
2590
2607
  }
2591
2608
  ) : null,
2592
- t ? /* @__PURE__ */ R(k, { children: [
2609
+ t ? /* @__PURE__ */ R(x, { children: [
2593
2610
  /* @__PURE__ */ l(
2594
- $,
2611
+ F,
2595
2612
  {
2596
2613
  id: "builderio-variants",
2597
2614
  styles: o()
@@ -2604,8 +2621,8 @@ function Xn(e) {
2604
2621
  scriptStr: n()
2605
2622
  }
2606
2623
  ),
2607
- (r = B(e.content)) == null ? void 0 : r.map((a) => /* @__PURE__ */ l(
2608
- se,
2624
+ (r = W(e.content)) == null ? void 0 : r.map((a) => /* @__PURE__ */ l(
2625
+ ae,
2609
2626
  {
2610
2627
  isNestedRender: e.isNestedRender,
2611
2628
  content: a,
@@ -2631,7 +2648,7 @@ function Xn(e) {
2631
2648
  ))
2632
2649
  ] }) : null,
2633
2650
  /* @__PURE__ */ l(
2634
- se,
2651
+ ae,
2635
2652
  {
2636
2653
  isNestedRender: e.isNestedRender,
2637
2654
  content: i(),
@@ -2662,7 +2679,7 @@ const Zn = async ({
2662
2679
  }) => {
2663
2680
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
2664
2681
  (e != null && e.apiKey))
2665
- return Ee({
2682
+ return Re({
2666
2683
  model: t.model,
2667
2684
  apiKey: e.apiKey,
2668
2685
  apiVersion: e.apiVersion,
@@ -2672,18 +2689,18 @@ const Zn = async ({
2672
2689
  }
2673
2690
  }
2674
2691
  }).catch((n) => {
2675
- x.error("Could not fetch symbol content: ", n);
2692
+ C.error("Could not fetch symbol content: ", n);
2676
2693
  });
2677
2694
  };
2678
2695
  async function eo(e) {
2679
2696
  var o, i, r, a, s;
2680
2697
  const t = function() {
2681
- var u, p;
2698
+ var m, g;
2682
2699
  return [
2683
2700
  e.attributes[M()],
2684
2701
  "builder-symbol",
2685
- (u = e.symbol) != null && u.inline ? "builder-inline-symbol" : void 0,
2686
- (p = e.symbol) != null && p.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2702
+ (m = e.symbol) != null && m.inline ? "builder-inline-symbol" : void 0,
2703
+ (g = e.symbol) != null && g.dynamic || e.dynamic ? "builder-dynamic-symbol" : void 0
2687
2704
  ].filter(Boolean).join(" ");
2688
2705
  }, n = ((o = e.symbol) == null ? void 0 : o.content) || await Zn({
2689
2706
  symbol: e.symbol,
@@ -2713,13 +2730,13 @@ async function eo(e) {
2713
2730
  }
2714
2731
  ) });
2715
2732
  }
2716
- const ce = {};
2733
+ const se = {};
2717
2734
  function So(e) {
2718
- if (S()) {
2719
- Object.assign(ce, e);
2735
+ if (v()) {
2736
+ Object.assign(se, e);
2720
2737
  const t = {
2721
2738
  type: "builder.settingsChange",
2722
- data: ce
2739
+ data: se
2723
2740
  };
2724
2741
  parent.postMessage(t, "*");
2725
2742
  }
@@ -2736,49 +2753,49 @@ const vo = async (e) => {
2736
2753
  urlPath: t
2737
2754
  } : {}
2738
2755
  },
2739
- options: Te(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
2756
+ options: Ee(e.searchParams || ((r = e.url) == null ? void 0 : r.searchParams) || e.options)
2740
2757
  };
2741
2758
  return {
2742
2759
  apiKey: n.apiKey,
2743
2760
  model: n.model,
2744
- content: await Ee(n)
2761
+ content: await Re(n)
2745
2762
  };
2746
2763
  };
2747
2764
  export {
2748
- ho as A,
2749
- z as B,
2750
- xt as C,
2751
- bo as D,
2765
+ po as A,
2766
+ K as B,
2767
+ Tt as C,
2768
+ yo as D,
2752
2769
  vo as E,
2753
- Sn as F,
2754
- vn as G,
2770
+ Cn as F,
2771
+ wn as G,
2755
2772
  eo as S,
2756
- Kt as T,
2757
- Bn as _,
2758
- St as a,
2759
- co as b,
2760
- j as c,
2761
- lo as d,
2762
- uo as e,
2763
- S as f,
2773
+ Gt as T,
2774
+ Nn as _,
2775
+ Ct as a,
2776
+ lo as b,
2777
+ de as c,
2778
+ uo as d,
2779
+ mo as e,
2780
+ v as f,
2764
2781
  M as g,
2765
2782
  U as h,
2766
2783
  so as i,
2767
- fo as j,
2768
- Un as k,
2769
- x as l,
2770
- K as m,
2771
- po as n,
2772
- fn as o,
2784
+ ho as j,
2785
+ jn as k,
2786
+ C as l,
2787
+ H as m,
2788
+ go as n,
2789
+ bn as o,
2773
2790
  N as p,
2774
- mo as q,
2775
- go as r,
2776
- Ln as s,
2777
- yo as t,
2778
- Ee as u,
2779
- ln as v,
2791
+ fo as q,
2792
+ bo as r,
2793
+ Mn as s,
2794
+ co as t,
2795
+ Re as u,
2796
+ fn as v,
2780
2797
  Xn as w,
2781
- Fn as x,
2798
+ _n as x,
2782
2799
  So as y,
2783
- Te as z
2800
+ Ee as z
2784
2801
  };