@builder.io/sdk-react-nextjs 0.14.15 → 0.14.17

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