@builder.io/sdk-vue 1.0.21 → 1.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/lib/browser/block-styles-dCtjVM33.js +87 -0
  2. package/lib/browser/block-styles-vJjDjr-p.cjs +1 -0
  3. package/lib/browser/{block-wrapper-mlbE709c.cjs → block-wrapper--ZdEHV8w.cjs} +1 -1
  4. package/lib/browser/{block-wrapper-a1zxMruE.js → block-wrapper-JRsL0Mr2.js} +3 -3
  5. package/lib/browser/{component-ref-5K3RMLKh.js → component-ref-IfYzvEjh.js} +2 -2
  6. package/lib/browser/{component-ref-mNbBuzhy.cjs → component-ref-YU4cmBVZ.cjs} +1 -1
  7. package/lib/browser/components/block/animator.d.ts +1 -1
  8. package/lib/browser/constants/sdk-version.d.ts +1 -1
  9. package/lib/browser/functions/is-previewing.d.ts +1 -1
  10. package/lib/browser/{get-block-properties-4MopDiTP.js → get-block-properties-U49zKnMK.js} +6 -6
  11. package/lib/browser/{get-block-properties-PuGrG7pm.cjs → get-block-properties-qdvSfWjS.cjs} +1 -1
  12. package/lib/browser/{index-mwZzSIN7.js → index-T89gD77O.js} +426 -451
  13. package/lib/browser/{index-OSGu6alT.cjs → index-YYfrLt1V.cjs} +19 -19
  14. package/lib/browser/index.cjs +1 -1
  15. package/lib/browser/index.js +3 -3
  16. package/lib/browser/{repeated-block-VP4euR8a.cjs → repeated-block-GnmpQPxE.cjs} +1 -1
  17. package/lib/browser/{repeated-block-hUFMTXXS.js → repeated-block-oYGHWwW3.js} +2 -2
  18. package/lib/edge/block-styles-9nbFFeOH.cjs +1 -0
  19. package/lib/edge/block-styles-nidJqmvF.js +86 -0
  20. package/lib/edge/{block-wrapper-xgShkhuq.js → block-wrapper-7WuameoR.js} +3 -3
  21. package/lib/{node/block-wrapper-bGeMckW5.cjs → edge/block-wrapper-OitVCHV4.cjs} +1 -1
  22. package/lib/{node/component-ref-YhLendyR.cjs → edge/component-ref-Z3GxM6cH.cjs} +1 -1
  23. package/lib/{node/component-ref-PGVczQrW.js → edge/component-ref-fkgFjHYh.js} +2 -2
  24. package/lib/edge/components/block/animator.d.ts +1 -1
  25. package/lib/edge/constants/sdk-version.d.ts +1 -1
  26. package/lib/edge/functions/is-previewing.d.ts +1 -1
  27. package/lib/edge/{get-block-properties-v6bf_R5d.cjs → get-block-properties-hpLeBYvo.cjs} +1 -1
  28. package/lib/{node/get-block-properties-kAmm-X1q.js → edge/get-block-properties-uUwzuzd6.js} +4 -4
  29. package/lib/edge/{index-xnWjf2tW.cjs → index-CKoC6tWI.cjs} +27 -27
  30. package/lib/edge/{index-Ua4OW_gh.js → index-hIX7Gefu.js} +681 -706
  31. package/lib/edge/index.cjs +1 -1
  32. package/lib/edge/index.js +4 -4
  33. package/lib/edge/{repeated-block-qRyqdxjD.cjs → repeated-block-TT5biOEz.cjs} +1 -1
  34. package/lib/{node/repeated-block-tjhtQDPA.js → edge/repeated-block-otH5LpjC.js} +13 -13
  35. package/lib/node/block-styles-4KxeWlDy.cjs +1 -0
  36. package/lib/node/block-styles-FYc9WmuJ.js +86 -0
  37. package/lib/node/{block-wrapper--vej-Ae6.js → block-wrapper-NWQoMvJs.js} +3 -3
  38. package/lib/{edge/block-wrapper-4RaFHsBw.cjs → node/block-wrapper-a_fu1ViB.cjs} +1 -1
  39. package/lib/{edge/component-ref-KD6yANwg.cjs → node/component-ref-jllHNOll.cjs} +1 -1
  40. package/lib/{edge/component-ref-kGbDg8GR.js → node/component-ref-jqz9fyL1.js} +2 -2
  41. package/lib/node/components/block/animator.d.ts +1 -1
  42. package/lib/node/constants/sdk-version.d.ts +1 -1
  43. package/lib/node/functions/is-previewing.d.ts +1 -1
  44. package/lib/node/{get-block-properties-GTVEiEYp.cjs → get-block-properties-DnPEkmGq.cjs} +1 -1
  45. package/lib/{edge/get-block-properties-yFfbPH85.js → node/get-block-properties-ddOPipN4.js} +4 -4
  46. package/lib/node/{index-mnDtU0q8.js → index-Bc6eCrlT.js} +37 -62
  47. package/lib/node/{index-XIqTnRyC.cjs → index-ixVpFh79.cjs} +5 -5
  48. package/lib/node/index.cjs +1 -1
  49. package/lib/node/index.js +4 -4
  50. package/lib/node/{repeated-block-SWSMCPvd.cjs → repeated-block-W2kKB7D3.cjs} +1 -1
  51. package/lib/{edge/repeated-block-uiPuS74Z.js → node/repeated-block-sdoj-hCY.js} +13 -13
  52. package/package.json +1 -1
  53. package/lib/browser/block-styles-2lYNYVH3.js +0 -70
  54. package/lib/browser/block-styles-y6pFfJz3.cjs +0 -1
  55. package/lib/edge/block-styles-_eYB_Fxz.cjs +0 -1
  56. package/lib/edge/block-styles-nhMA9R4s.js +0 -69
  57. package/lib/node/block-styles-h0iWFk09.cjs +0 -1
  58. package/lib/node/block-styles-rz8jpORX.js +0 -69
@@ -2,7 +2,7 @@ var it = Object.defineProperty;
2
2
  var at = (e, t, n) => t in e ? it(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var _ = (e, t, n) => (at(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import "./style.css";
5
- import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as $, createBlock as g, resolveDynamicComponent as H, mergeProps as w, toHandlers as E, withCtx as B, renderSlot as P, resolveComponent as k, createTextVNode as lt, toDisplayString as X, defineAsyncComponent as z, createVNode as x, renderList as L, createCommentVNode as v, h as Re, createElementVNode as te, normalizeStyle as ne, normalizeClass as Ee, markRaw as ct } from "vue";
5
+ import { defineComponent as f, openBlock as u, createElementBlock as h, Fragment as $, createBlock as g, resolveDynamicComponent as D, mergeProps as w, toHandlers as E, withCtx as B, renderSlot as P, resolveComponent as k, createTextVNode as lt, toDisplayString as X, defineAsyncComponent as q, createVNode as x, renderList as U, createCommentVNode as v, h as Ie, createElementVNode as te, normalizeStyle as ne, normalizeClass as $e, markRaw as ct } from "vue";
6
6
  const dt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), ut = (e) => typeof e == "string" && dt.has(e.toLowerCase());
7
7
  function O(e = {}, t, n) {
8
8
  const o = {};
@@ -27,13 +27,13 @@ const pt = f({
27
27
  return n;
28
28
  };
29
29
  function mt(e, t, n, o, s, r) {
30
- return e.isEmptyElement(e.TagName) ? (u(), g(H(e.TagName), w({ key: 1 }, e.attributes, E(e.actionAttributes)), null, 16)) : (u(), h($, { key: 0 }, [
31
- typeof e.TagName == "string" ? (u(), g(H(e.TagName), w({ key: 0 }, e.attributes, E(e.actionAttributes)), {
30
+ return e.isEmptyElement(e.TagName) ? (u(), g(D(e.TagName), w({ key: 1 }, e.attributes, E(e.actionAttributes)), null, 16)) : (u(), h($, { key: 0 }, [
31
+ typeof e.TagName == "string" ? (u(), g(D(e.TagName), w({ key: 0 }, e.attributes, E(e.actionAttributes)), {
32
32
  default: B(() => [
33
33
  P(e.$slots, "default")
34
34
  ]),
35
35
  _: 3
36
- }, 16)) : (u(), g(H(e.TagName), w({ key: 1 }, e.attributes, E(e.actionAttributes)), {
36
+ }, 16)) : (u(), g(D(e.TagName), w({ key: 1 }, e.attributes, E(e.actionAttributes)), {
37
37
  default: B(() => [
38
38
  P(e.$slots, "default")
39
39
  ]),
@@ -41,7 +41,7 @@ function mt(e, t, n, o, s, r) {
41
41
  }, 16))
42
42
  ], 64));
43
43
  }
44
- const ie = /* @__PURE__ */ y(pt, [["render", mt]]), Zs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44
+ const ie = /* @__PURE__ */ y(pt, [["render", mt]]), Xs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45
45
  __proto__: null,
46
46
  default: ie
47
47
  }, Symbol.toStringTag, { value: "Module" })), V = "vue", ae = () => {
@@ -109,7 +109,7 @@ const bt = /* @__PURE__ */ y(ht, [["render", ft]]), gt = Symbol(), oe = {
109
109
  BlocksWrapperProps: {}
110
110
  },
111
111
  key: gt
112
- }, yt = Symbol(), Pe = {
112
+ }, yt = Symbol(), Te = {
113
113
  Components: { registeredComponents: {} },
114
114
  key: yt
115
115
  };
@@ -124,7 +124,7 @@ function kt(e) {
124
124
  builderBlock: e
125
125
  };
126
126
  }
127
- const J = "[Builder.io]: ", T = {
127
+ const J = "[Builder.io]: ", R = {
128
128
  log: (...e) => console.log(J, ...e),
129
129
  error: (...e) => console.error(J, ...e),
130
130
  warn: (...e) => console.warn(J, ...e),
@@ -138,12 +138,13 @@ const St = (e) => {
138
138
  return e.forEach((n, o) => {
139
139
  t[o] = n;
140
140
  }), t;
141
- }, Ve = (e) => e instanceof URLSearchParams ? St(e) : e, Ae = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
141
+ }, Re = (e) => e instanceof URLSearchParams ? St(e) : e, Ee = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
142
142
  function vt() {
143
143
  return I() && window.self !== window.top;
144
144
  }
145
- function R(e) {
146
- return vt() && Ae(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
145
+ function T(e) {
146
+ return vt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
147
+ Ee(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
147
148
  }
148
149
  const Ct = () => {
149
150
  if (I()) {
@@ -151,7 +152,7 @@ const Ct = () => {
151
152
  return e.pathname === "" && (e.pathname = "/"), e;
152
153
  } else
153
154
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
154
- }, wt = () => typeof navigator == "object" && navigator.userAgent || "", xe = () => {
155
+ }, wt = () => typeof navigator == "object" && navigator.userAgent || "", Pe = () => {
155
156
  const e = wt(), t = {
156
157
  Android() {
157
158
  return e.match(/Android/i);
@@ -190,13 +191,13 @@ const Ct = () => {
190
191
  context: t,
191
192
  event: n
192
193
  }), $t = () => ({
193
- isEditing: R(),
194
+ isEditing: T(),
194
195
  isBrowser: I(),
195
196
  isServer: !I(),
196
- getUserAttributes: () => xe()
197
+ getUserAttributes: () => Pe()
197
198
  }), Tt = (e, {
198
199
  isExpression: t = !0
199
- }) => /* 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, ge = ({
200
+ }) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e, he = ({
200
201
  code: e,
201
202
  builder: t,
202
203
  context: n,
@@ -209,7 +210,7 @@ const Ct = () => {
209
210
  builder: t,
210
211
  context: n,
211
212
  event: o,
212
- state: Be({
213
+ state: Ve({
213
214
  rootState: i,
214
215
  localState: s,
215
216
  rootSetState: r
@@ -217,7 +218,7 @@ const Ct = () => {
217
218
  });
218
219
  return new Function(...a.map(([l]) => l), e)(...a.map(([, l]) => l));
219
220
  };
220
- function Be({
221
+ function Ve({
221
222
  rootState: e,
222
223
  localState: t,
223
224
  rootSetState: n
@@ -227,7 +228,7 @@ function Be({
227
228
  if (t && s in t)
228
229
  return t[s];
229
230
  const r = o[s];
230
- return typeof r == "object" && r !== null ? Be({
231
+ return typeof r == "object" && r !== null ? Ve({
231
232
  rootState: r,
232
233
  localState: void 0,
233
234
  rootSetState: n ? (i) => {
@@ -252,8 +253,8 @@ const Et = () => {
252
253
  if (!Rt())
253
254
  return !1;
254
255
  const e = process.arch === "arm64", t = process.version.startsWith("v20"), n = (o = process.env.NODE_OPTIONS) == null ? void 0 : o.includes("--no-node-snapshot");
255
- return e && t && !n ? (T.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;
256
- }, Pt = (e) => (I() || Et(), ge(e)), A = class A {
256
+ return e && t && !n ? (R.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;
257
+ }, Pt = (e) => (I() || Et(), he(e)), A = class A {
257
258
  static getCacheKey(t) {
258
259
  return JSON.stringify({
259
260
  ...t,
@@ -272,7 +273,7 @@ const Et = () => {
272
273
  }
273
274
  };
274
275
  _(A, "cacheLimit", 20), _(A, "cache", /* @__PURE__ */ new Map());
275
- let M = A;
276
+ let L = A;
276
277
  function Q({
277
278
  code: e,
278
279
  context: t,
@@ -283,10 +284,8 @@ function Q({
283
284
  isExpression: i = !0,
284
285
  enableCache: a
285
286
  }) {
286
- if (e === "") {
287
- T.warn("Skipping evaluation of empty code block.");
287
+ if (e === "")
288
288
  return;
289
- }
290
289
  const l = {
291
290
  code: Tt(e, {
292
291
  isExpression: i
@@ -299,25 +298,25 @@ function Q({
299
298
  localState: n
300
299
  };
301
300
  if (a) {
302
- const c = M.getCacheKey(l), m = M.getCachedValue(c);
301
+ const c = L.getCacheKey(l), m = L.getCachedValue(c);
303
302
  if (m)
304
303
  return m.value;
305
304
  }
306
305
  try {
307
306
  const c = Pt(l);
308
307
  if (a) {
309
- const m = M.getCacheKey(l);
310
- M.setCachedValue(m, c);
308
+ const m = L.getCacheKey(l);
309
+ L.setCachedValue(m, c);
311
310
  }
312
311
  return c;
313
312
  } catch (c) {
314
- T.error("Failed code evaluation: " + c.message, {
313
+ R.error("Failed code evaluation: " + c.message, {
315
314
  code: e
316
315
  });
317
316
  return;
318
317
  }
319
318
  }
320
- const K = (e) => JSON.parse(JSON.stringify(e)), We = (e, t, n) => {
319
+ const K = (e) => JSON.parse(JSON.stringify(e)), Ae = (e, t, n) => {
321
320
  if (Object(e) !== e)
322
321
  return e;
323
322
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
@@ -350,11 +349,11 @@ const Vt = ({
350
349
  context: t,
351
350
  enableCache: !0
352
351
  });
353
- We(i, a, c);
352
+ Ae(i, a, c);
354
353
  }
355
354
  return i;
356
355
  };
357
- function Ne({
356
+ function xe({
358
357
  block: e,
359
358
  context: t,
360
359
  shouldEvaluateBindings: n,
@@ -383,7 +382,7 @@ function At(e, t, n = {}) {
383
382
  return o = this, s = arguments, m <= 0 || m > t ? (i && (clearTimeout(i), i = null), a = c, r = e.apply(o, s), i || (o = s = null)) : !i && n.trailing !== !1 && (i = setTimeout(l, m)), r;
384
383
  };
385
384
  }
386
- function U(e, ...t) {
385
+ function H(e, ...t) {
387
386
  const n = Object(e);
388
387
  for (let o = 1; o < arguments.length; o++) {
389
388
  const s = arguments[o];
@@ -393,25 +392,22 @@ function U(e, ...t) {
393
392
  }
394
393
  return n;
395
394
  }
396
- const le = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
395
+ const Be = (e) => e ? e.replace(/([A-Z])/g, (t) => `-${t[0].toLowerCase()}`) : "";
397
396
  function xt(e) {
398
397
  for (const t of e)
399
398
  switch (t.trigger) {
400
399
  case "pageLoad":
401
400
  Fe(t);
402
401
  break;
403
- case "hover":
404
- Wt(t);
405
- break;
406
402
  case "scrollInView":
407
- Nt(t);
403
+ Wt(t);
408
404
  break;
409
405
  }
410
406
  }
411
- function ce(e) {
407
+ function We(e) {
412
408
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
413
409
  }
414
- function de(e, t) {
410
+ function Ne(e, t) {
415
411
  const n = Bt(e), o = getComputedStyle(t), s = e.steps[0].styles, r = e.steps[e.steps.length - 1].styles, i = [s, r];
416
412
  for (const a of i)
417
413
  for (const l of n)
@@ -427,12 +423,12 @@ function Bt(e) {
427
423
  function Fe(e) {
428
424
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
429
425
  if (!t.length) {
430
- ce(e.elementId || e.id || "");
426
+ We(e.elementId || e.id || "");
431
427
  return;
432
428
  }
433
429
  Array.from(t).forEach((n) => {
434
- de(e, n), n.style.transition = "none", n.style.transitionDelay = "0", U(n.style, e.steps[0].styles), setTimeout(() => {
435
- n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), U(n.style, e.steps[1].styles), setTimeout(() => {
430
+ Ne(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
431
+ n.style.transition = `all ${e.duration}s ${Be(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
436
432
  n.style.transition = "", n.style.transitionDelay = "";
437
433
  }, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
438
434
  });
@@ -441,38 +437,18 @@ function Fe(e) {
441
437
  function Wt(e) {
442
438
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
443
439
  if (!t.length) {
444
- ce(e.elementId || e.id || "");
440
+ We(e.elementId || e.id || "");
445
441
  return;
446
442
  }
447
443
  Array.from(t).forEach((n) => {
448
- de(e, n);
449
- const o = e.steps[0].styles, s = e.steps[1].styles;
450
- function r() {
451
- U(n.style, o);
452
- }
453
- function i() {
454
- U(n.style, s);
455
- }
456
- r(), n.addEventListener("mouseenter", i), n.addEventListener("mouseleave", r), setTimeout(() => {
457
- n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
458
- });
459
- });
460
- }
461
- function Nt(e) {
462
- const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
463
- if (!t.length) {
464
- ce(e.elementId || e.id || "");
465
- return;
466
- }
467
- Array.from(t).forEach((n) => {
468
- de(e, n);
444
+ Ne(e, n);
469
445
  let o = !1, s = !1;
470
446
  function r() {
471
447
  !o && a(n) ? (o = !0, s = !0, setTimeout(() => {
472
- U(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
448
+ H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
473
449
  s = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
474
450
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
475
- })) : e.repeat && o && !s && !a(n) && (o = !1, U(n.style, e.steps[0].styles));
451
+ })) : e.repeat && o && !s && !a(n) && (o = !1, H(n.style, e.steps[0].styles));
476
452
  }
477
453
  const i = At(r, 200, {
478
454
  leading: !1
@@ -483,41 +459,41 @@ function Nt(e) {
483
459
  }
484
460
  const l = e.steps[0].styles;
485
461
  function c() {
486
- U(n.style, l);
462
+ H(n.style, l);
487
463
  }
488
464
  c(), setTimeout(() => {
489
- n.style.transition = `all ${e.duration}s ${le(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
465
+ n.style.transition = `all ${e.duration}s ${Be(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
490
466
  }), document.addEventListener("scroll", i, {
491
467
  capture: !0,
492
468
  passive: !0
493
469
  }), r();
494
470
  });
495
471
  }
496
- const Ft = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Oe = (e) => Object.entries(e).map(([n, o]) => {
472
+ const Nt = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Oe = (e) => Object.entries(e).map(([n, o]) => {
497
473
  if (typeof o == "string")
498
- return `${Ft(n)}: ${o};`;
499
- }).filter(F), Ot = (e) => Oe(e).join(`
500
- `), _s = ({
474
+ return `${Nt(n)}: ${o};`;
475
+ }).filter(F), Ft = (e) => Oe(e).join(`
476
+ `), Zs = ({
501
477
  mediaQuery: e,
502
478
  className: t,
503
479
  styles: n
504
480
  }) => {
505
481
  const o = `.${t} {
506
- ${Ot(n)}
482
+ ${Ft(n)}
507
483
  }`;
508
484
  return e ? `${e} {
509
485
  ${o}
510
486
  }` : o;
511
487
  };
512
- function Ut({
488
+ function Ot({
513
489
  style: e
514
490
  }) {
515
491
  return e;
516
492
  }
517
- const er = ({
493
+ const _s = ({
518
494
  block: e,
519
495
  context: t
520
- }) => Ue(Ut({
496
+ }) => Ue(Ot({
521
497
  style: e.style || {},
522
498
  context: t,
523
499
  block: e
@@ -535,13 +511,13 @@ function Ue(e) {
535
511
  return e;
536
512
  }
537
513
  }
538
- const Lt = ({
514
+ const Ut = ({
539
515
  block: e,
540
516
  context: t,
541
517
  registeredComponents: n
542
518
  }) => {
543
519
  var r;
544
- const o = (r = Ne({
520
+ const o = (r = xe({
545
521
  block: e,
546
522
  localState: t.localState,
547
523
  rootState: t.rootState,
@@ -557,7 +533,7 @@ const Lt = ({
557
533
  console.warn(`
558
534
  Could not find a registered component named "${o}".
559
535
  If you registered it, is the file that registered it imported by the file that needs to render it?`);
560
- }, Mt = ({
536
+ }, Lt = ({
561
537
  block: e,
562
538
  context: t
563
539
  }) => {
@@ -591,39 +567,39 @@ const Lt = ({
591
567
  },
592
568
  block: o
593
569
  }));
594
- }, Dt = () => import("./block-styles-2lYNYVH3.js").then((e) => e.default).catch((e) => {
570
+ }, Mt = () => import("./block-styles-dCtjVM33.js").then((e) => e.default).catch((e) => {
595
571
  throw console.error(
596
572
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
597
573
  e
598
574
  ), e;
599
- }), Ht = () => import("./block-wrapper-a1zxMruE.js").then((e) => e.default).catch((e) => {
575
+ }), Dt = () => import("./block-wrapper-JRsL0Mr2.js").then((e) => e.default).catch((e) => {
600
576
  throw console.error(
601
577
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
602
578
  e
603
579
  ), e;
604
- }), jt = () => import("./component-ref-5K3RMLKh.js").then((e) => e.default).catch((e) => {
580
+ }), Ht = () => import("./component-ref-IfYzvEjh.js").then((e) => e.default).catch((e) => {
605
581
  throw console.error(
606
582
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
607
583
  e
608
584
  ), e;
609
- }), Kt = () => import("./repeated-block-hUFMTXXS.js").then((e) => e.default).catch((e) => {
585
+ }), jt = () => import("./repeated-block-oYGHWwW3.js").then((e) => e.default).catch((e) => {
610
586
  throw console.error(
611
587
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
612
588
  e
613
589
  ), e;
614
- }), qt = f({
590
+ }), Kt = f({
615
591
  name: "block",
616
592
  components: {
617
- BlockStyles: z(Dt),
618
- ComponentRef: z(jt),
619
- RepeatedBlock: z(Kt),
620
- BlockWrapper: z(Ht)
593
+ BlockStyles: q(Mt),
594
+ ComponentRef: q(Ht),
595
+ RepeatedBlock: q(jt),
596
+ BlockWrapper: q(Dt)
621
597
  },
622
598
  props: ["block", "context", "registeredComponents", "linkComponent"],
623
599
  mounted() {
624
600
  const e = this.processedBlock.id, t = this.processedBlock.animations;
625
601
  t && e && xt(
626
- t.filter((n) => n.trigger !== "hover").map((n) => ({
602
+ t.map((n) => ({
627
603
  ...n,
628
604
  elementId: e
629
605
  }))
@@ -631,21 +607,21 @@ const Lt = ({
631
607
  },
632
608
  computed: {
633
609
  blockComponent() {
634
- return Lt({
610
+ return Ut({
635
611
  block: this.block,
636
612
  context: this.context,
637
613
  registeredComponents: this.registeredComponents
638
614
  });
639
615
  },
640
616
  repeatItem() {
641
- return Mt({
617
+ return Lt({
642
618
  block: this.block,
643
619
  context: this.context
644
620
  });
645
621
  },
646
622
  processedBlock() {
647
623
  var e;
648
- return (e = this.block.repeat) != null && e.collection ? this.block : Ne({
624
+ return (e = this.block.repeat) != null && e.collection ? this.block : xe({
649
625
  block: this.block,
650
626
  localState: this.context.localState,
651
627
  rootState: this.context.rootState,
@@ -714,7 +690,7 @@ function zt(e, t, n, o, s, r) {
714
690
  includeBlockProps: e.componentRefProps.includeBlockProps,
715
691
  isInteractive: e.componentRefProps.isInteractive
716
692
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"])) : (u(), h($, { key: 0 }, [
717
- e.repeatItem ? (u(!0), h($, { key: 1 }, L(e.repeatItem, (p, S) => (u(), g(m, {
693
+ e.repeatItem ? (u(!0), h($, { key: 1 }, U(e.repeatItem, (p, S) => (u(), g(m, {
718
694
  key: S,
719
695
  repeatContext: p.context,
720
696
  block: p.block,
@@ -739,7 +715,7 @@ function zt(e, t, n, o, s, r) {
739
715
  includeBlockProps: e.componentRefProps.includeBlockProps,
740
716
  isInteractive: e.componentRefProps.isInteractive
741
717
  }, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
742
- (u(!0), h($, null, L(e.childrenWithoutParentComponent, (p, S) => (u(), g(l, {
718
+ (u(!0), h($, null, U(e.childrenWithoutParentComponent, (p, S) => (u(), g(l, {
743
719
  key: p.id,
744
720
  block: p,
745
721
  registeredComponents: e.registeredComponents,
@@ -752,10 +728,10 @@ function zt(e, t, n, o, s, r) {
752
728
  ], 64))
753
729
  ], 64)) : v("", !0);
754
730
  }
755
- const ue = /* @__PURE__ */ y(qt, [["render", zt]]), tr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
731
+ const le = /* @__PURE__ */ y(Kt, [["render", zt]]), er = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
756
732
  __proto__: null,
757
- default: ue
758
- }, Symbol.toStringTag, { value: "Module" })), Jt = f({
733
+ default: le
734
+ }, Symbol.toStringTag, { value: "Module" })), qt = f({
759
735
  name: "builder-blocks-wrapper",
760
736
  props: [
761
737
  "blocks",
@@ -774,7 +750,7 @@ const ue = /* @__PURE__ */ y(qt, [["render", zt]]), tr = /* @__PURE__ */ Object.
774
750
  methods: {
775
751
  onClick() {
776
752
  var e, t;
777
- R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
753
+ T() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
778
754
  {
779
755
  type: "builder.clickEmptyBlocks",
780
756
  data: {
@@ -787,7 +763,7 @@ const ue = /* @__PURE__ */ y(qt, [["render", zt]]), tr = /* @__PURE__ */ Object.
787
763
  },
788
764
  onMouseEnter() {
789
765
  var e, t;
790
- R() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
766
+ T() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
791
767
  {
792
768
  type: "builder.hoverEmptyBlocks",
793
769
  data: {
@@ -800,8 +776,8 @@ const ue = /* @__PURE__ */ y(qt, [["render", zt]]), tr = /* @__PURE__ */ Object.
800
776
  }
801
777
  }
802
778
  });
803
- function Gt(e, t, n, o, s, r) {
804
- return u(), g(H(e.BlocksWrapper), w({
779
+ function Jt(e, t, n, o, s, r) {
780
+ return u(), g(D(e.BlocksWrapper), w({
805
781
  class: e.className + " component-1o2kztlxdt6",
806
782
  "builder-path": e.path,
807
783
  "builder-parent-id": e.parent,
@@ -816,9 +792,9 @@ function Gt(e, t, n, o, s, r) {
816
792
  _: 3
817
793
  }, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
818
794
  }
819
- const Yt = /* @__PURE__ */ y(Jt, [["render", Gt], ["__scopeId", "data-v-9724ab41"]]), Qt = f({
795
+ const Gt = /* @__PURE__ */ y(qt, [["render", Jt], ["__scopeId", "data-v-9724ab41"]]), Yt = f({
820
796
  name: "builder-blocks",
821
- components: { BlocksWrapper: Yt, Block: ue },
797
+ components: { BlocksWrapper: Gt, Block: le },
822
798
  props: [
823
799
  "blocks",
824
800
  "parent",
@@ -830,10 +806,10 @@ const Yt = /* @__PURE__ */ y(Jt, [["render", Gt], ["__scopeId", "data-v-9724ab41
830
806
  ],
831
807
  inject: {
832
808
  builderContext: oe.key,
833
- componentsContext: Pe.key
809
+ componentsContext: Te.key
834
810
  }
835
811
  });
836
- function Xt(e, t, n, o, s, r) {
812
+ function Qt(e, t, n, o, s, r) {
837
813
  var l, c;
838
814
  const i = k("block"), a = k("blocks-wrapper");
839
815
  return u(), g(a, {
@@ -845,7 +821,7 @@ function Xt(e, t, n, o, s, r) {
845
821
  BlocksWrapperProps: ((c = e.context) == null ? void 0 : c.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
846
822
  }, {
847
823
  default: B(() => [
848
- e.blocks ? (u(!0), h($, { key: 0 }, L(e.blocks, (m, d) => (u(), g(i, {
824
+ e.blocks ? (u(!0), h($, { key: 0 }, U(e.blocks, (m, d) => (u(), g(i, {
849
825
  key: m.id,
850
826
  block: m,
851
827
  linkComponent: e.linkComponent,
@@ -856,9 +832,9 @@ function Xt(e, t, n, o, s, r) {
856
832
  _: 1
857
833
  }, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
858
834
  }
859
- const Z = /* @__PURE__ */ y(Qt, [["render", Xt]]), pe = f({
835
+ const Z = /* @__PURE__ */ y(Yt, [["render", Qt]]), ce = f({
860
836
  render() {
861
- return Re("style", {
837
+ return Ie("style", {
862
838
  innerHTML: this.styles,
863
839
  "data-id": this.id
864
840
  });
@@ -881,7 +857,7 @@ const Z = /* @__PURE__ */ y(Qt, [["render", Xt]]), pe = f({
881
857
  default: 991,
882
858
  max: 1200
883
859
  }
884
- }, nr = (e, t = Le) => `@media (max-width: ${t[e].max}px)`, Zt = ({
860
+ }, tr = (e, t = Le) => `@media (max-width: ${t[e].max}px)`, Xt = ({
885
861
  small: e,
886
862
  medium: t
887
863
  }) => {
@@ -907,10 +883,10 @@ const Z = /* @__PURE__ */ y(Qt, [["render", Xt]]), pe = f({
907
883
  min: r,
908
884
  default: r + 1
909
885
  }, n;
910
- }, _t = f({
886
+ }, Zt = f({
911
887
  name: "builder-columns",
912
888
  components: {
913
- InlinedStyles: pe,
889
+ InlinedStyles: ce,
914
890
  DynamicRenderer: ie,
915
891
  Blocks: Z
916
892
  },
@@ -1024,13 +1000,13 @@ const Z = /* @__PURE__ */ y(Qt, [["render", Xt]]), pe = f({
1024
1000
  },
1025
1001
  getWidthForBreakpointSize(e) {
1026
1002
  var n, o;
1027
- return Zt(
1003
+ return Xt(
1028
1004
  ((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
1029
1005
  )[e].max;
1030
1006
  }
1031
1007
  }
1032
1008
  });
1033
- function en(e, t, n, o, s, r) {
1009
+ function _t(e, t, n, o, s, r) {
1034
1010
  const i = k("inlined-styles"), a = k("blocks"), l = k("dynamic-renderer");
1035
1011
  return u(), h("div", w({
1036
1012
  class: `builder-columns ${e.builderBlock.id}-breakpoints div-2fnk003dqad`,
@@ -1041,7 +1017,7 @@ function en(e, t, n, o, s, r) {
1041
1017
  id: "builderio-columns",
1042
1018
  styles: e.columnsStyles
1043
1019
  }, null, 8, ["styles"])) : v("", !0),
1044
- (u(!0), h($, null, L(e.columns, (c, m) => (u(), g(l, {
1020
+ (u(!0), h($, null, U(e.columns, (c, m) => (u(), g(l, {
1045
1021
  key: m,
1046
1022
  TagName: c.link ? e.builderLinkComponent || "a" : "div",
1047
1023
  actionAttributes: {},
@@ -1070,32 +1046,32 @@ function en(e, t, n, o, s, r) {
1070
1046
  }, 1032, ["TagName", "attributes"]))), 128))
1071
1047
  ], 16);
1072
1048
  }
1073
- const tn = /* @__PURE__ */ y(_t, [["render", en], ["__scopeId", "data-v-6caab097"]]), nn = f({
1049
+ const en = /* @__PURE__ */ y(Zt, [["render", _t], ["__scopeId", "data-v-6caab097"]]), tn = f({
1074
1050
  name: "builder-fragment-component",
1075
1051
  props: []
1076
1052
  });
1077
- function on(e, t, n, o, s, r) {
1053
+ function nn(e, t, n, o, s, r) {
1078
1054
  return u(), h("span", null, [
1079
1055
  P(e.$slots, "default")
1080
1056
  ]);
1081
1057
  }
1082
- const sn = /* @__PURE__ */ y(nn, [["render", on]]);
1083
- function ye(e) {
1058
+ const on = /* @__PURE__ */ y(tn, [["render", nn]]);
1059
+ function fe(e) {
1084
1060
  return e.replace(/http(s)?:/, "");
1085
1061
  }
1086
- function rn(e = "", t, n) {
1062
+ function sn(e = "", t, n) {
1087
1063
  const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
1088
1064
  return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + s + t + "=" + encodeURIComponent(n);
1089
1065
  }
1090
- function an(e, t) {
1066
+ function rn(e, t) {
1091
1067
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
1092
1068
  return e;
1093
1069
  if (t === "master")
1094
- return ye(e);
1070
+ return fe(e);
1095
1071
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1096
1072
  if (n) {
1097
1073
  const o = e.split(n[0]), s = n[3], r = t.match("x") ? t : `${t}x`;
1098
- return ye(`${o[0]}_${r}${s}`);
1074
+ return fe(`${o[0]}_${r}${s}`);
1099
1075
  }
1100
1076
  return null;
1101
1077
  }
@@ -1106,11 +1082,11 @@ function ee(e) {
1106
1082
  if (e.match(/builder\.io/)) {
1107
1083
  let n = e;
1108
1084
  const o = Number(e.split("?width=")[1]);
1109
- return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${rn(e, "width", s)} ${s}w`).concat([n]).join(", ");
1085
+ return isNaN(o) || (n = `${n} ${o}w`), t.filter((s) => s !== o).map((s) => `${sn(e, "width", s)} ${s}w`).concat([n]).join(", ");
1110
1086
  }
1111
- return e.match(/cdn\.shopify\.com/) ? t.map((n) => [an(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1087
+ return e.match(/cdn\.shopify\.com/) ? t.map((n) => [rn(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
1112
1088
  }
1113
- const ln = f({
1089
+ const an = f({
1114
1090
  name: "builder-image",
1115
1091
  props: [
1116
1092
  "image",
@@ -1156,11 +1132,11 @@ const ln = f({
1156
1132
  return this.aspectRatio ? e : void 0;
1157
1133
  }
1158
1134
  }
1159
- }), cn = ["srcset"], dn = ["alt", "role", "src", "srcset", "sizes"], un = {
1135
+ }), ln = ["srcset"], cn = ["alt", "role", "src", "srcset", "sizes"], dn = {
1160
1136
  key: 2,
1161
1137
  class: "div-1be3j8m9ewb-2"
1162
1138
  };
1163
- function pn(e, t, n, o, s, r) {
1139
+ function un(e, t, n, o, s, r) {
1164
1140
  var i, a, l, c;
1165
1141
  return u(), h($, null, [
1166
1142
  te("picture", null, [
@@ -1168,7 +1144,7 @@ function pn(e, t, n, o, s, r) {
1168
1144
  key: 0,
1169
1145
  type: "image/webp",
1170
1146
  srcset: e.webpSrcSet
1171
- }, null, 8, cn)) : v("", !0),
1147
+ }, null, 8, ln)) : v("", !0),
1172
1148
  te("img", {
1173
1149
  loading: "lazy",
1174
1150
  alt: e.altText,
@@ -1178,13 +1154,13 @@ function pn(e, t, n, o, s, r) {
1178
1154
  objectFit: e.backgroundSize || "cover",
1179
1155
  ...e.aspectRatioCss
1180
1156
  }),
1181
- class: Ee(
1157
+ class: $e(
1182
1158
  "builder-image" + (e.className ? " " + e.className : "") + " img-1be3j8m9ewb"
1183
1159
  ),
1184
1160
  src: e.image,
1185
1161
  srcset: e.srcSetToUse,
1186
1162
  sizes: e.sizes
1187
- }, null, 14, dn)
1163
+ }, null, 14, cn)
1188
1164
  ]),
1189
1165
  e.aspectRatio && !((a = (i = e.builderBlock) == null ? void 0 : i.children) != null && a.length && e.fitContent) ? (u(), h("div", {
1190
1166
  key: 0,
@@ -1194,19 +1170,19 @@ function pn(e, t, n, o, s, r) {
1194
1170
  })
1195
1171
  }, null, 4)) : v("", !0),
1196
1172
  (c = (l = e.builderBlock) == null ? void 0 : l.children) != null && c.length && e.fitContent ? P(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
1197
- !e.fitContent && e.$slots.default ? (u(), h("div", un, [
1173
+ !e.fitContent && e.$slots.default ? (u(), h("div", dn, [
1198
1174
  P(e.$slots, "default", {}, void 0, !0)
1199
1175
  ])) : v("", !0)
1200
1176
  ], 64);
1201
1177
  }
1202
- const mn = /* @__PURE__ */ y(ln, [["render", pn], ["__scopeId", "data-v-dde76a35"]]), hn = f({
1178
+ const pn = /* @__PURE__ */ y(an, [["render", un], ["__scopeId", "data-v-dde76a35"]]), mn = f({
1203
1179
  name: "builder-section-component",
1204
1180
  props: ["attributes", "maxWidth"],
1205
1181
  data() {
1206
1182
  return { filterAttrs: O };
1207
1183
  }
1208
1184
  });
1209
- function fn(e, t, n, o, s, r) {
1185
+ function hn(e, t, n, o, s, r) {
1210
1186
  return u(), h("section", w({
1211
1187
  style: {
1212
1188
  width: "100%",
@@ -1224,7 +1200,7 @@ function fn(e, t, n, o, s, r) {
1224
1200
  P(e.$slots, "default")
1225
1201
  ], 16);
1226
1202
  }
1227
- const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1203
+ const fn = /* @__PURE__ */ y(mn, [["render", hn]]), bn = (e) => {
1228
1204
  if (e === "localhost" || e === "127.0.0.1")
1229
1205
  return e;
1230
1206
  const t = e.split(".");
@@ -1237,16 +1213,16 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1237
1213
  try {
1238
1214
  return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
1239
1215
  } catch (o) {
1240
- T.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1216
+ R.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1241
1217
  return;
1242
1218
  }
1243
- }, De = async (e) => Me(e), yn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(F).join("; "), kn = [["secure", ""], ["SameSite", "None"]], Sn = ({
1219
+ }, De = async (e) => Me(e), gn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(F).join("; "), yn = [["secure", ""], ["SameSite", "None"]], kn = ({
1244
1220
  name: e,
1245
1221
  value: t,
1246
1222
  expires: n
1247
1223
  }) => {
1248
- const s = (I() ? location.protocol === "https:" : !0) ? kn : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", gn(window.location.hostname)], ...s];
1249
- return yn(i);
1224
+ const s = (I() ? location.protocol === "https:" : !0) ? yn : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...r, ["path", "/"], ["domain", bn(window.location.hostname)], ...s];
1225
+ return gn(i);
1250
1226
  }, He = async ({
1251
1227
  name: e,
1252
1228
  value: t,
@@ -1256,33 +1232,33 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1256
1232
  try {
1257
1233
  if (!o)
1258
1234
  return;
1259
- const s = Sn({
1235
+ const s = kn({
1260
1236
  name: e,
1261
1237
  value: t,
1262
1238
  expires: n
1263
1239
  });
1264
1240
  document.cookie = s;
1265
1241
  } catch (s) {
1266
- T.warn("[COOKIE] SET error: ", (s == null ? void 0 : s.message) || s);
1242
+ R.warn("[COOKIE] SET error: ", (s == null ? void 0 : s.message) || s);
1267
1243
  }
1268
- }, vn = "builder.tests", me = (e) => `${vn}.${e}`, Cn = ({
1244
+ }, Sn = "builder.tests", de = (e) => `${Sn}.${e}`, vn = ({
1269
1245
  contentId: e
1270
1246
  }) => De({
1271
- name: me(e),
1247
+ name: de(e),
1272
1248
  canTrack: !0
1273
- }), wn = ({
1249
+ }), Cn = ({
1274
1250
  contentId: e
1275
1251
  }) => Me({
1276
- name: me(e),
1252
+ name: de(e),
1277
1253
  canTrack: !0
1278
- }), In = ({
1254
+ }), wn = ({
1279
1255
  contentId: e,
1280
1256
  value: t
1281
1257
  }) => He({
1282
- name: me(e),
1258
+ name: de(e),
1283
1259
  value: t,
1284
1260
  canTrack: !0
1285
- }), je = (e) => F(e.id) && F(e.variations) && Object.keys(e.variations).length > 0, $n = ({
1261
+ }), je = (e) => F(e.id) && F(e.variations) && Object.keys(e.variations).length > 0, In = ({
1286
1262
  id: e,
1287
1263
  variations: t
1288
1264
  }) => {
@@ -1296,14 +1272,14 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1296
1272
  }
1297
1273
  return e;
1298
1274
  }, Ke = (e) => {
1299
- const t = $n(e);
1300
- return In({
1275
+ const t = In(e);
1276
+ return wn({
1301
1277
  contentId: e.id,
1302
1278
  value: t
1303
1279
  }).catch((n) => {
1304
- T.error("could not store A/B test variation: ", n);
1280
+ R.error("could not store A/B test variation: ", n);
1305
1281
  }), t;
1306
- }, qe = ({
1282
+ }, ze = ({
1307
1283
  item: e,
1308
1284
  testGroupId: t
1309
1285
  }) => {
@@ -1317,7 +1293,7 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1317
1293
  testVariationId: n.id,
1318
1294
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
1319
1295
  };
1320
- }, Tn = ({
1296
+ }, $n = ({
1321
1297
  item: e,
1322
1298
  canTrack: t
1323
1299
  }) => {
@@ -1327,12 +1303,12 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1327
1303
  return;
1328
1304
  if (!je(e))
1329
1305
  return e;
1330
- const n = wn({
1306
+ const n = Cn({
1331
1307
  contentId: e.id
1332
1308
  }) || Ke({
1333
1309
  variations: e.variations,
1334
1310
  id: e.id
1335
- }), o = qe({
1311
+ }), o = ze({
1336
1312
  item: e,
1337
1313
  testGroupId: n
1338
1314
  });
@@ -1340,18 +1316,18 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1340
1316
  ...e,
1341
1317
  ...o
1342
1318
  };
1343
- }, Rn = async ({
1319
+ }, Tn = async ({
1344
1320
  item: e,
1345
1321
  canTrack: t
1346
1322
  }) => {
1347
1323
  if (!t || !je(e))
1348
1324
  return e;
1349
- const o = await Cn({
1325
+ const o = await vn({
1350
1326
  contentId: e.id
1351
1327
  }) || Ke({
1352
1328
  variations: e.variations,
1353
1329
  id: e.id
1354
- }), s = qe({
1330
+ }), s = ze({
1355
1331
  item: e,
1356
1332
  testGroupId: o
1357
1333
  });
@@ -1359,7 +1335,7 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1359
1335
  ...e,
1360
1336
  ...s
1361
1337
  };
1362
- }, j = (e) => F(e) ? e : !0, En = {
1338
+ }, j = (e) => F(e) ? e : !0, Rn = {
1363
1339
  name: "Core:Button",
1364
1340
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
1365
1341
  defaultStyles: {
@@ -1392,7 +1368,7 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1392
1368
  }],
1393
1369
  static: !0,
1394
1370
  noWrap: !0
1395
- }, Pn = {
1371
+ }, En = {
1396
1372
  // TODO: ways to statically preprocess JSON for references, functions, etc
1397
1373
  name: "Columns",
1398
1374
  isRSC: !0,
@@ -1593,13 +1569,13 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1593
1569
  helperText: "When stacking columns for mobile devices, reverse the ordering",
1594
1570
  advanced: !0
1595
1571
  }]
1596
- }, Vn = {
1572
+ }, Pn = {
1597
1573
  name: "Fragment",
1598
1574
  static: !0,
1599
1575
  hidden: !0,
1600
1576
  canHaveChildren: !0,
1601
1577
  noWrap: !0
1602
- }, An = {
1578
+ }, Vn = {
1603
1579
  name: "Image",
1604
1580
  static: !0,
1605
1581
  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",
@@ -1699,7 +1675,7 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1699
1675
  advanced: !0,
1700
1676
  defaultValue: 0.7041
1701
1677
  }]
1702
- }, xn = {
1678
+ }, An = {
1703
1679
  name: "Core:Section",
1704
1680
  static: !0,
1705
1681
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
@@ -1738,7 +1714,7 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1738
1714
  }
1739
1715
  }
1740
1716
  }]
1741
- }, Bn = {
1717
+ }, xn = {
1742
1718
  name: "Slot",
1743
1719
  isRSC: !0,
1744
1720
  description: "Allow child blocks to be inserted into this content when used as a Symbol",
@@ -1751,12 +1727,12 @@ const bn = /* @__PURE__ */ y(hn, [["render", fn]]), gn = (e) => {
1751
1727
  required: !0,
1752
1728
  defaultValue: "children"
1753
1729
  }]
1754
- }, Wn = f({
1730
+ }, Bn = f({
1755
1731
  name: "builder-slot",
1756
1732
  components: { Blocks: Z },
1757
1733
  props: ["builderContext", "name"]
1758
1734
  });
1759
- function Nn(e, t, n, o, s, r) {
1735
+ function Wn(e, t, n, o, s, r) {
1760
1736
  var a, l, c;
1761
1737
  const i = k("blocks");
1762
1738
  return u(), h("div", w(
@@ -1775,7 +1751,7 @@ function Nn(e, t, n, o, s, r) {
1775
1751
  }, null, 8, ["parent", "path", "context", "blocks"])
1776
1752
  ], 16);
1777
1753
  }
1778
- const Fn = /* @__PURE__ */ y(Wn, [["render", Nn]]), On = {
1754
+ const Nn = /* @__PURE__ */ y(Bn, [["render", Wn]]), Fn = {
1779
1755
  name: "Symbol",
1780
1756
  noWrap: !0,
1781
1757
  static: !0,
@@ -1808,7 +1784,7 @@ const Fn = /* @__PURE__ */ y(Wn, [["render", Nn]]), On = {
1808
1784
  hideFromUI: !0,
1809
1785
  type: "boolean"
1810
1786
  }]
1811
- }, Un = {
1787
+ }, On = {
1812
1788
  name: "Text",
1813
1789
  static: !0,
1814
1790
  isRSC: !0,
@@ -1826,11 +1802,11 @@ const Fn = /* @__PURE__ */ y(Wn, [["render", Nn]]), On = {
1826
1802
  height: "auto",
1827
1803
  textAlign: "center"
1828
1804
  }
1829
- }, Ln = f({
1805
+ }, Un = f({
1830
1806
  name: "builder-text",
1831
1807
  props: ["text"]
1832
- }), Mn = ["innerHTML"];
1833
- function Dn(e, t, n, o, s, r) {
1808
+ }), Ln = ["innerHTML"];
1809
+ function Mn(e, t, n, o, s, r) {
1834
1810
  var i;
1835
1811
  return u(), h("div", {
1836
1812
  class: "builder-text",
@@ -1838,9 +1814,9 @@ function Dn(e, t, n, o, s, r) {
1838
1814
  style: {
1839
1815
  outline: "none"
1840
1816
  }
1841
- }, null, 8, Mn);
1817
+ }, null, 8, Ln);
1842
1818
  }
1843
- const Hn = /* @__PURE__ */ y(Ln, [["render", Dn]]), jn = {
1819
+ const Dn = /* @__PURE__ */ y(Un, [["render", Mn]]), Hn = {
1844
1820
  name: "Custom Code",
1845
1821
  static: !0,
1846
1822
  requiredPermissions: ["editCode"],
@@ -1862,7 +1838,7 @@ const Hn = /* @__PURE__ */ y(Ln, [["render", Dn]]), jn = {
1862
1838
  helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
1863
1839
  advanced: !0
1864
1840
  }]
1865
- }, Kn = f({
1841
+ }, jn = f({
1866
1842
  name: "builder-custom-code",
1867
1843
  props: ["replaceNodes", "code"],
1868
1844
  data() {
@@ -1896,15 +1872,15 @@ const Hn = /* @__PURE__ */ y(Ln, [["render", Dn]]), jn = {
1896
1872
  }
1897
1873
  }
1898
1874
  }
1899
- }), qn = ["innerHTML"];
1875
+ }), Kn = ["innerHTML"];
1900
1876
  function zn(e, t, n, o, s, r) {
1901
1877
  return u(), h("div", {
1902
1878
  ref: "elementRef",
1903
- class: Ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
1879
+ class: $e("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
1904
1880
  innerHTML: e.code
1905
- }, null, 10, qn);
1881
+ }, null, 10, Kn);
1906
1882
  }
1907
- const Jn = /* @__PURE__ */ y(Kn, [["render", zn]]), Gn = {
1883
+ const qn = /* @__PURE__ */ y(jn, [["render", zn]]), Jn = {
1908
1884
  name: "Embed",
1909
1885
  static: !0,
1910
1886
  inputs: [{
@@ -1929,7 +1905,7 @@ const Jn = /* @__PURE__ */ y(Kn, [["render", zn]]), Gn = {
1929
1905
  defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
1930
1906
  hideFromUI: !0
1931
1907
  }]
1932
- }, Yn = ["text/javascript", "application/javascript", "application/ecmascript"], Qn = (e) => Yn.includes(e.type), Xn = f({
1908
+ }, Gn = ["text/javascript", "application/javascript", "application/ecmascript"], Yn = (e) => Gn.includes(e.type), Qn = f({
1933
1909
  name: "builder-embed",
1934
1910
  props: ["content"],
1935
1911
  data() {
@@ -1962,7 +1938,7 @@ const Jn = /* @__PURE__ */ y(Kn, [["render", zn]]), Gn = {
1962
1938
  this.scriptsInserted.push(n.src);
1963
1939
  const o = document.createElement("script");
1964
1940
  o.async = !0, o.src = n.src, document.head.appendChild(o);
1965
- } else if (Qn(n) && !this.scriptsRun.includes(n.innerText))
1941
+ } else if (Yn(n) && !this.scriptsRun.includes(n.innerText))
1966
1942
  try {
1967
1943
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1968
1944
  } catch (o) {
@@ -1971,15 +1947,15 @@ const Jn = /* @__PURE__ */ y(Kn, [["render", zn]]), Gn = {
1971
1947
  }
1972
1948
  }
1973
1949
  }
1974
- }), Zn = ["innerHTML"];
1975
- function _n(e, t, n, o, s, r) {
1950
+ }), Xn = ["innerHTML"];
1951
+ function Zn(e, t, n, o, s, r) {
1976
1952
  return u(), h("div", {
1977
1953
  class: "builder-embed",
1978
1954
  ref: "elem",
1979
1955
  innerHTML: e.content
1980
- }, null, 8, Zn);
1956
+ }, null, 8, Xn);
1981
1957
  }
1982
- const eo = /* @__PURE__ */ y(Xn, [["render", _n]]), to = {
1958
+ const _n = /* @__PURE__ */ y(Qn, [["render", Zn]]), eo = {
1983
1959
  name: "Form:Form",
1984
1960
  // editableTags: ['builder-form-error']
1985
1961
  defaults: {
@@ -2210,15 +2186,15 @@ const eo = /* @__PURE__ */ y(Xn, [["render", _n]]), to = {
2210
2186
  }
2211
2187
  }
2212
2188
  }]
2213
- }, no = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], oo = () => {
2189
+ }, to = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], no = () => {
2214
2190
  const e = process.env.NODE_ENV || "production";
2215
- return no.includes(e) ? e : "production";
2216
- }, so = (e, t, n) => {
2191
+ return to.includes(e) ? e : "production";
2192
+ }, oo = (e, t, n) => {
2217
2193
  const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((s, r) => s != null ? s[r] : s, e);
2218
2194
  return o === void 0 || o === e ? n : o;
2219
- }, ro = f({
2195
+ }, so = f({
2220
2196
  name: "builder-form-component",
2221
- components: { Block: ue, Blocks: Z },
2197
+ components: { Block: le, Blocks: Z },
2222
2198
  props: [
2223
2199
  "builderContext",
2224
2200
  "previewState",
@@ -2260,7 +2236,7 @@ const eo = /* @__PURE__ */ y(Xn, [["render", _n]]), to = {
2260
2236
  this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
2261
2237
  },
2262
2238
  submissionState() {
2263
- return R() && this.previewState || this.formState;
2239
+ return T() && this.previewState || this.formState;
2264
2240
  },
2265
2241
  onSubmit(e) {
2266
2242
  var n;
@@ -2309,7 +2285,7 @@ const eo = /* @__PURE__ */ y(Xn, [["render", _n]]), to = {
2309
2285
  else {
2310
2286
  const d = {};
2311
2287
  Array.from(a).forEach(({ value: p, key: S }) => {
2312
- We(d, S, p);
2288
+ Ae(d, S, p);
2313
2289
  }), r = JSON.stringify(d);
2314
2290
  }
2315
2291
  l && l !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (s["content-type"] = l));
@@ -2321,7 +2297,7 @@ const eo = /* @__PURE__ */ y(Xn, [["render", _n]]), to = {
2321
2297
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(c), c.defaultPrevented))
2322
2298
  return;
2323
2299
  this.formState = "sending";
2324
- const m = `${oo() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
2300
+ const m = `${no() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
2325
2301
  this.sendSubmissionsToEmail || ""
2326
2302
  )}&name=${encodeURIComponent(this.name || "")}`;
2327
2303
  fetch(
@@ -2336,7 +2312,7 @@ const eo = /* @__PURE__ */ y(Xn, [["render", _n]]), to = {
2336
2312
  let p;
2337
2313
  const S = d.headers.get("content-type");
2338
2314
  if (S && S.indexOf("application/json") !== -1 ? p = await d.json() : p = await d.text(), !d.ok && this.errorMessagePath) {
2339
- let b = so(p, this.errorMessagePath);
2315
+ let b = oo(p, this.errorMessagePath);
2340
2316
  b && (typeof b != "string" && (b = JSON.stringify(b)), this.formErrorMessage = b, this.mergeNewRootState({
2341
2317
  formErrorMessage: b
2342
2318
  }));
@@ -2377,11 +2353,11 @@ const eo = /* @__PURE__ */ y(Xn, [["render", _n]]), to = {
2377
2353
  }
2378
2354
  }
2379
2355
  }
2380
- }), io = ["validate", "action", "method", "name"], ao = {
2356
+ }), ro = ["validate", "action", "method", "name"], io = {
2381
2357
  key: 3,
2382
2358
  class: "builder-form-error-text pre-5vz8uirn7sc"
2383
2359
  };
2384
- function lo(e, t, n, o, s, r) {
2360
+ function ao(e, t, n, o, s, r) {
2385
2361
  var l;
2386
2362
  const i = k("block"), a = k("blocks");
2387
2363
  return u(), h("form", w({
@@ -2392,7 +2368,7 @@ function lo(e, t, n, o, s, r) {
2392
2368
  name: e.name,
2393
2369
  onSubmit: t[0] || (t[0] = (c) => e.onSubmit(c))
2394
2370
  }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2395
- e.builderBlock && e.builderBlock.children ? (u(!0), h($, { key: 0 }, L((l = e.builderBlock) == null ? void 0 : l.children, (c, m) => (u(), g(i, {
2371
+ e.builderBlock && e.builderBlock.children ? (u(!0), h($, { key: 0 }, U((l = e.builderBlock) == null ? void 0 : l.children, (c, m) => (u(), g(i, {
2396
2372
  key: `form-block-${e.idx}`,
2397
2373
  block: c,
2398
2374
  context: e.builderContext,
@@ -2411,16 +2387,16 @@ function lo(e, t, n, o, s, r) {
2411
2387
  blocks: e.sendingMessage,
2412
2388
  context: e.builderContext
2413
2389
  }, null, 8, ["blocks", "context"])) : v("", !0),
2414
- e.submissionState() === "error" && e.responseData ? (u(), h("pre", ao, X(JSON.stringify(e.responseData, null, 2)), 1)) : v("", !0),
2390
+ e.submissionState() === "error" && e.responseData ? (u(), h("pre", io, X(JSON.stringify(e.responseData, null, 2)), 1)) : v("", !0),
2415
2391
  e.submissionState() === "success" ? (u(), g(a, {
2416
2392
  key: 4,
2417
2393
  path: "successMessage",
2418
2394
  blocks: e.successMessage,
2419
2395
  context: e.builderContext
2420
2396
  }, null, 8, ["blocks", "context"])) : v("", !0)
2421
- ], 16, io);
2397
+ ], 16, ro);
2422
2398
  }
2423
- const co = /* @__PURE__ */ y(ro, [["render", lo], ["__scopeId", "data-v-83a4b1d9"]]), uo = {
2399
+ const lo = /* @__PURE__ */ y(so, [["render", ao], ["__scopeId", "data-v-83a4b1d9"]]), co = {
2424
2400
  name: "Form:Input",
2425
2401
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
2426
2402
  inputs: [
@@ -2471,7 +2447,7 @@ const co = /* @__PURE__ */ y(ro, [["render", lo], ["__scopeId", "data-v-83a4b1d9
2471
2447
  borderStyle: "solid",
2472
2448
  borderColor: "#ccc"
2473
2449
  }
2474
- }, po = f({
2450
+ }, uo = f({
2475
2451
  name: "builder-form-input-component",
2476
2452
  props: [
2477
2453
  "attributes",
@@ -2483,10 +2459,10 @@ const co = /* @__PURE__ */ y(ro, [["render", lo], ["__scopeId", "data-v-83a4b1d9
2483
2459
  "required"
2484
2460
  ],
2485
2461
  data() {
2486
- return { isEditing: R, filterAttrs: O };
2462
+ return { isEditing: T, filterAttrs: O };
2487
2463
  }
2488
- }), mo = ["placeholder", "type", "name", "value", "defaultValue", "required"];
2489
- function ho(e, t, n, o, s, r) {
2464
+ }), po = ["placeholder", "type", "name", "value", "defaultValue", "required"];
2465
+ function mo(e, t, n, o, s, r) {
2490
2466
  return u(), h("input", w({
2491
2467
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
2492
2468
  placeholder: e.placeholder,
@@ -2495,9 +2471,9 @@ function ho(e, t, n, o, s, r) {
2495
2471
  value: e.value,
2496
2472
  defaultValue: e.defaultValue,
2497
2473
  required: e.required
2498
- }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, mo);
2474
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, po);
2499
2475
  }
2500
- const fo = /* @__PURE__ */ y(po, [["render", ho]]), bo = {
2476
+ const ho = /* @__PURE__ */ y(uo, [["render", mo]]), fo = {
2501
2477
  name: "Form:Select",
2502
2478
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
2503
2479
  defaultStyles: {
@@ -2539,27 +2515,27 @@ const fo = /* @__PURE__ */ y(po, [["render", ho]]), bo = {
2539
2515
  }],
2540
2516
  static: !0,
2541
2517
  noWrap: !0
2542
- }, go = f({
2518
+ }, bo = f({
2543
2519
  name: "builder-select-component",
2544
2520
  props: ["attributes", "value", "defaultValue", "name", "options"],
2545
2521
  data() {
2546
- return { isEditing: R, filterAttrs: O };
2522
+ return { isEditing: T, filterAttrs: O };
2547
2523
  }
2548
- }), yo = ["value", "defaultValue", "name"], ko = ["value"];
2549
- function So(e, t, n, o, s, r) {
2524
+ }), go = ["value", "defaultValue", "name"], yo = ["value"];
2525
+ function ko(e, t, n, o, s, r) {
2550
2526
  return u(), h("select", w({
2551
2527
  value: e.value,
2552
2528
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
2553
2529
  defaultValue: e.defaultValue,
2554
2530
  name: e.name
2555
2531
  }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
2556
- (u(!0), h($, null, L(e.options, (i, a) => (u(), h("option", {
2532
+ (u(!0), h($, null, U(e.options, (i, a) => (u(), h("option", {
2557
2533
  key: `${i.name}-${a}`,
2558
2534
  value: i.value
2559
- }, X(i.name || i.value), 9, ko))), 128))
2560
- ], 16, yo);
2535
+ }, X(i.name || i.value), 9, yo))), 128))
2536
+ ], 16, go);
2561
2537
  }
2562
- const vo = /* @__PURE__ */ y(go, [["render", So]]), Co = {
2538
+ const So = /* @__PURE__ */ y(bo, [["render", ko]]), vo = {
2563
2539
  name: "Form:SubmitButton",
2564
2540
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
2565
2541
  defaultStyles: {
@@ -2584,17 +2560,17 @@ const vo = /* @__PURE__ */ y(go, [["render", So]]), Co = {
2584
2560
  // that only shows if advanced setting is flipped
2585
2561
  // TODO: defaultChildren
2586
2562
  // canHaveChildren: true,
2587
- }, wo = f({
2563
+ }, Co = f({
2588
2564
  name: "builder-submit-button",
2589
2565
  props: ["attributes", "text"],
2590
2566
  data() {
2591
2567
  return { filterAttrs: O };
2592
2568
  }
2593
2569
  });
2594
- function Io(e, t, n, o, s, r) {
2570
+ function wo(e, t, n, o, s, r) {
2595
2571
  return u(), h("button", w({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), X(e.text), 17);
2596
2572
  }
2597
- const $o = /* @__PURE__ */ y(wo, [["render", Io]]), To = {
2573
+ const Io = /* @__PURE__ */ y(Co, [["render", wo]]), $o = {
2598
2574
  // friendlyName?
2599
2575
  name: "Raw:Img",
2600
2576
  hideFromInsertMenu: !0,
@@ -2608,7 +2584,7 @@ const $o = /* @__PURE__ */ y(wo, [["render", Io]]), To = {
2608
2584
  }],
2609
2585
  noWrap: !0,
2610
2586
  static: !0
2611
- }, Ro = f({
2587
+ }, To = f({
2612
2588
  name: "builder-img-component",
2613
2589
  props: [
2614
2590
  "backgroundSize",
@@ -2619,10 +2595,10 @@ const $o = /* @__PURE__ */ y(wo, [["render", Io]]), To = {
2619
2595
  "attributes"
2620
2596
  ],
2621
2597
  data() {
2622
- return { isEditing: R, filterAttrs: O };
2598
+ return { isEditing: T, filterAttrs: O };
2623
2599
  }
2624
- }), Eo = ["alt", "src"];
2625
- function Po(e, t, n, o, s, r) {
2600
+ }), Ro = ["alt", "src"];
2601
+ function Eo(e, t, n, o, s, r) {
2626
2602
  return u(), h("img", w({
2627
2603
  style: {
2628
2604
  objectFit: e.backgroundSize || "cover",
@@ -2631,9 +2607,9 @@ function Po(e, t, n, o, s, r) {
2631
2607
  key: e.isEditing() && e.imgSrc || "default-key",
2632
2608
  alt: e.altText,
2633
2609
  src: e.imgSrc || e.image
2634
- }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Eo);
2610
+ }, e.filterAttrs(e.attributes, "v-on:", !1), E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ro);
2635
2611
  }
2636
- const Vo = /* @__PURE__ */ y(Ro, [["render", Po]]), Ao = {
2612
+ const Po = /* @__PURE__ */ y(To, [["render", Eo]]), Vo = {
2637
2613
  name: "Video",
2638
2614
  canHaveChildren: !0,
2639
2615
  defaultStyles: {
@@ -2714,7 +2690,7 @@ const Vo = /* @__PURE__ */ y(Ro, [["render", Po]]), Ao = {
2714
2690
  defaultValue: !0,
2715
2691
  advanced: !0
2716
2692
  }]
2717
- }, xo = f({
2693
+ }, Ao = f({
2718
2694
  name: "builder-video",
2719
2695
  props: [
2720
2696
  "autoPlay",
@@ -2759,16 +2735,16 @@ const Vo = /* @__PURE__ */ y(Ro, [["render", Po]]), Ao = {
2759
2735
  };
2760
2736
  }
2761
2737
  }
2762
- }), Bo = { style: {
2738
+ }), xo = { style: {
2763
2739
  position: "relative"
2764
- } }, Wo = ["preload", "src", "poster"], No = ["src"], Fo = {
2740
+ } }, Bo = ["preload", "src", "poster"], Wo = ["src"], No = {
2765
2741
  key: 1,
2766
2742
  style: {
2767
2743
  display: "flex",
2768
2744
  flexDirection: "column",
2769
2745
  alignItems: "stretch"
2770
2746
  }
2771
- }, Oo = {
2747
+ }, Fo = {
2772
2748
  key: 2,
2773
2749
  style: {
2774
2750
  pointerEvents: "none",
@@ -2782,9 +2758,9 @@ const Vo = /* @__PURE__ */ y(Ro, [["render", Po]]), Ao = {
2782
2758
  height: "100%"
2783
2759
  }
2784
2760
  };
2785
- function Uo(e, t, n, o, s, r) {
2761
+ function Oo(e, t, n, o, s, r) {
2786
2762
  var i, a, l, c, m, d, p;
2787
- return u(), h("div", Bo, [
2763
+ return u(), h("div", xo, [
2788
2764
  te("video", w({
2789
2765
  class: "builder-video",
2790
2766
  preload: e.preload || "metadata",
@@ -2809,8 +2785,8 @@ function Uo(e, t, n, o, s, r) {
2809
2785
  key: 0,
2810
2786
  type: "video/mp4",
2811
2787
  src: e.video
2812
- }, null, 8, No))
2813
- ], 16, Wo),
2788
+ }, null, 8, Wo))
2789
+ ], 16, Bo),
2814
2790
  e.aspectRatio && !(e.fitContent && ((l = (a = e.builderBlock) == null ? void 0 : a.children) != null && l.length)) ? (u(), h("div", {
2815
2791
  key: 0,
2816
2792
  style: ne({
@@ -2820,78 +2796,78 @@ function Uo(e, t, n, o, s, r) {
2820
2796
  fontSize: "0px"
2821
2797
  })
2822
2798
  }, null, 4)) : v("", !0),
2823
- (m = (c = e.builderBlock) == null ? void 0 : c.children) != null && m.length && e.fitContent ? (u(), h("div", Fo, [
2799
+ (m = (c = e.builderBlock) == null ? void 0 : c.children) != null && m.length && e.fitContent ? (u(), h("div", No, [
2824
2800
  P(e.$slots, "default")
2825
2801
  ])) : v("", !0),
2826
- (p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && !e.fitContent ? (u(), h("div", Oo, [
2802
+ (p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && !e.fitContent ? (u(), h("div", Fo, [
2827
2803
  P(e.$slots, "default")
2828
2804
  ])) : v("", !0)
2829
2805
  ]);
2830
2806
  }
2831
- const Lo = /* @__PURE__ */ y(xo, [["render", Uo]]), Mo = () => [{
2832
- component: Jn,
2833
- ...jn
2807
+ const Uo = /* @__PURE__ */ y(Ao, [["render", Oo]]), Lo = () => [{
2808
+ component: qn,
2809
+ ...Hn
2834
2810
  }, {
2835
- component: eo,
2836
- ...Gn
2811
+ component: _n,
2812
+ ...Jn
2837
2813
  }, {
2838
- component: co,
2839
- ...to
2814
+ component: lo,
2815
+ ...eo
2840
2816
  }, {
2841
- component: fo,
2842
- ...uo
2817
+ component: ho,
2818
+ ...co
2843
2819
  }, {
2844
- component: $o,
2845
- ...Co
2820
+ component: Io,
2821
+ ...vo
2846
2822
  }, {
2847
- component: vo,
2848
- ...bo
2823
+ component: So,
2824
+ ...fo
2849
2825
  }, {
2850
- component: Vo,
2851
- ...To
2826
+ component: Po,
2827
+ ...$o
2852
2828
  }, {
2853
- component: Lo,
2854
- ...Ao
2855
- }], ke = () => [{
2829
+ component: Uo,
2830
+ ...Vo
2831
+ }], be = () => [{
2856
2832
  component: bt,
2833
+ ...Rn
2834
+ }, {
2835
+ component: en,
2857
2836
  ...En
2858
2837
  }, {
2859
- component: tn,
2838
+ component: on,
2860
2839
  ...Pn
2861
2840
  }, {
2862
- component: sn,
2841
+ component: pn,
2863
2842
  ...Vn
2864
2843
  }, {
2865
- component: mn,
2844
+ component: fn,
2866
2845
  ...An
2867
2846
  }, {
2868
- component: bn,
2847
+ component: Nn,
2869
2848
  ...xn
2870
2849
  }, {
2871
- component: Fn,
2872
- ...Bn
2850
+ component: Js,
2851
+ ...Fn
2873
2852
  }, {
2874
- component: Gs,
2853
+ component: Dn,
2875
2854
  ...On
2876
- }, {
2877
- component: Hn,
2878
- ...Un
2879
- }, ...Mo()], Do = (e) => ({
2855
+ }, ...Lo()], Mo = (e) => ({
2880
2856
  type: "builder.registerComponent",
2881
2857
  data: se(e)
2882
- }), Ho = (e) => {
2858
+ }), Do = (e) => {
2883
2859
  const t = e.toString().trim();
2884
2860
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
2885
- }, jo = (e) => typeof e == "function" ? Ho(e) : K(e), se = ({
2861
+ }, Ho = (e) => typeof e == "function" ? Do(e) : K(e), se = ({
2886
2862
  inputs: e,
2887
2863
  ...t
2888
2864
  }) => ({
2889
2865
  ...K(t),
2890
2866
  inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [s, r]) => ({
2891
2867
  ...o,
2892
- [s]: jo(r)
2868
+ [s]: Ho(r)
2893
2869
  }), {}))
2894
- }), Ko = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2870
+ }), jo = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
2895
2871
  function getAndSetVariantId() {
2896
2872
  function setCookie(name, value, days) {
2897
2873
  let expires = '';
@@ -2947,7 +2923,7 @@ const Lo = /* @__PURE__ */ y(xo, [["render", Uo]]), Mo = () => [{
2947
2923
  }).join('');
2948
2924
  styleEl.innerHTML = newStyleStr;
2949
2925
  }
2950
- }`, qo = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2926
+ }`, Ko = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
2951
2927
  if (!navigator.cookieEnabled) {
2952
2928
  return;
2953
2929
  }
@@ -2981,27 +2957,27 @@ const Lo = /* @__PURE__ */ y(xo, [["render", Uo]]), Mo = () => [{
2981
2957
  thisScriptEl?.remove();
2982
2958
  }
2983
2959
  return;
2984
- }`, ze = "builderIoAbTest", Je = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2960
+ }`, qe = "builderIoAbTest", Je = "builderIoRenderContent", G = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
2985
2961
  ...t,
2986
2962
  testVariationId: t.id,
2987
2963
  id: e == null ? void 0 : e.id
2988
2964
  })), zo = ({
2989
2965
  canTrack: e,
2990
2966
  content: t
2991
- }) => !(!(G(t).length > 0) || !e), Jo = (e) => e === "react" || e === "reactNative", Ge = Jo(V), Go = () => `
2992
- window.${ze} = ${Ko}
2993
- window.${Je} = ${qo}
2994
- `, Yo = (e, t) => `
2995
- window.${ze}(
2967
+ }) => !(!(G(t).length > 0) || !e), qo = (e) => e === "react" || e === "reactNative", Ge = qo(V), Jo = () => `
2968
+ window.${qe} = ${jo}
2969
+ window.${Je} = ${Ko}
2970
+ `, Go = (e, t) => `
2971
+ window.${qe}(
2996
2972
  "${t}",${JSON.stringify(e)}, ${Ge}
2997
- )`, Qo = ({
2973
+ )`, Yo = ({
2998
2974
  contentId: e,
2999
2975
  variationId: t
3000
2976
  }) => `window.${Je}(
3001
2977
  "${t}", "${e}", ${Ge}
3002
2978
  )`, Ye = f({
3003
2979
  render() {
3004
- return Re("script", {
2980
+ return Ie("script", {
3005
2981
  innerHTML: this.scriptStr,
3006
2982
  "data-id": this.id
3007
2983
  });
@@ -3009,17 +2985,17 @@ const Lo = /* @__PURE__ */ y(xo, [["render", Uo]]), Mo = () => [{
3009
2985
  name: "inlined-script",
3010
2986
  props: ["scriptStr", "id"]
3011
2987
  });
3012
- function Xo() {
2988
+ function Qo() {
3013
2989
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
3014
2990
  }
3015
- function Zo() {
3016
- const e = Xo().fetch;
2991
+ function Xo() {
2992
+ const e = Qo().fetch;
3017
2993
  if (typeof e > "u")
3018
2994
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
3019
2995
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
3020
2996
  return e;
3021
2997
  }
3022
- const Qe = Zo();
2998
+ const Qe = Xo();
3023
2999
  function Y(e, t = null, n = ".") {
3024
3000
  return Object.keys(e).reduce((o, s) => {
3025
3001
  const r = e[s], i = [t, s].filter(Boolean).join(n);
@@ -3032,22 +3008,22 @@ function Y(e, t = null, n = ".") {
3032
3008
  };
3033
3009
  }, {});
3034
3010
  }
3035
- const _o = "v3", Se = "builder.", es = "options.", Xe = (e) => {
3011
+ const Zo = "v3", ge = "builder.", _o = "options.", Xe = (e) => {
3036
3012
  if (!e)
3037
3013
  return {};
3038
- const t = Ve(e), n = {};
3014
+ const t = Re(e), n = {};
3039
3015
  return Object.keys(t).forEach((o) => {
3040
- if (o.startsWith(Se)) {
3041
- const s = o.replace(Se, "").replace(es, "");
3016
+ if (o.startsWith(ge)) {
3017
+ const s = o.replace(ge, "").replace(_o, "");
3042
3018
  n[s] = t[o];
3043
3019
  }
3044
3020
  }), n;
3045
- }, ts = () => {
3021
+ }, es = () => {
3046
3022
  if (!I())
3047
3023
  return {};
3048
3024
  const e = new URLSearchParams(window.location.search);
3049
3025
  return Xe(e);
3050
- }, ve = (e) => typeof e == "number" && !isNaN(e) && e >= 0, he = (e) => {
3026
+ }, ye = (e) => typeof e == "number" && !isNaN(e) && e >= 0, ue = (e) => {
3051
3027
  const {
3052
3028
  limit: t = 30,
3053
3029
  userAttributes: n,
@@ -3056,7 +3032,7 @@ const _o = "v3", Se = "builder.", es = "options.", Xe = (e) => {
3056
3032
  apiKey: r,
3057
3033
  enrich: i,
3058
3034
  locale: a,
3059
- apiVersion: l = _o,
3035
+ apiVersion: l = Zo,
3060
3036
  fields: c,
3061
3037
  omit: m,
3062
3038
  offset: d,
@@ -3069,84 +3045,82 @@ const _o = "v3", Se = "builder.", es = "options.", Xe = (e) => {
3069
3045
  throw new Error("Missing API key");
3070
3046
  if (!["v3"].includes(l))
3071
3047
  throw new Error(`Invalid apiVersion: expected 'v3', received '${l}'`);
3072
- const q = t !== 1, C = new URL(`https://cdn.builder.io/api/${l}/content/${s}`);
3073
- if (C.searchParams.set("apiKey", r), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(q)), C.searchParams.set("includeRefs", String(!0)), a && C.searchParams.set("locale", a), i && C.searchParams.set("enrich", String(i)), C.searchParams.set("omit", m || "meta.componentsUsed"), c && C.searchParams.set("fields", c), Number.isFinite(d) && d > -1 && C.searchParams.set("offset", String(Math.floor(d))), typeof W == "boolean" && C.searchParams.set("includeUnpublished", String(W)), p && ve(p) && C.searchParams.set("cacheSeconds", String(p)), S && ve(S) && C.searchParams.set("staleCacheSeconds", String(S)), b) {
3048
+ const z = t !== 1, C = new URL(`https://cdn.builder.io/api/${l}/content/${s}`);
3049
+ if (C.searchParams.set("apiKey", r), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(z)), C.searchParams.set("includeRefs", String(!0)), a && C.searchParams.set("locale", a), i && C.searchParams.set("enrich", String(i)), C.searchParams.set("omit", m || "meta.componentsUsed"), c && C.searchParams.set("fields", c), Number.isFinite(d) && d > -1 && C.searchParams.set("offset", String(Math.floor(d))), typeof W == "boolean" && C.searchParams.set("includeUnpublished", String(W)), p && ye(p) && C.searchParams.set("cacheSeconds", String(p)), S && ye(S) && C.searchParams.set("staleCacheSeconds", String(S)), b) {
3074
3050
  const N = Y({
3075
3051
  sort: b
3076
3052
  });
3077
- for (const D in N)
3078
- C.searchParams.set(D, JSON.stringify(N[D]));
3053
+ for (const M in N)
3054
+ C.searchParams.set(M, JSON.stringify(N[M]));
3079
3055
  }
3080
3056
  const rt = {
3081
- ...ts(),
3082
- ...Ve(e.options || {})
3083
- }, be = Y(rt);
3084
- for (const N in be)
3085
- C.searchParams.set(N, String(be[N]));
3057
+ ...es(),
3058
+ ...Re(e.options || {})
3059
+ }, me = Y(rt);
3060
+ for (const N in me)
3061
+ C.searchParams.set(N, String(me[N]));
3086
3062
  if (n && C.searchParams.set("userAttributes", JSON.stringify(n)), o) {
3087
3063
  const N = Y({
3088
3064
  query: o
3089
3065
  });
3090
- for (const D in N)
3091
- C.searchParams.set(D, JSON.stringify(N[D]));
3066
+ for (const M in N)
3067
+ C.searchParams.set(M, JSON.stringify(N[M]));
3092
3068
  }
3093
3069
  return C;
3094
- }, ns = (e) => "results" in e;
3095
- async function fe(e) {
3096
- const t = await rs({
3070
+ }, ts = (e) => "results" in e;
3071
+ async function pe(e) {
3072
+ const t = await ss({
3097
3073
  ...e,
3098
3074
  limit: 1
3099
3075
  });
3100
3076
  return t && t[0] || null;
3101
3077
  }
3102
- const os = async (e) => {
3103
- const t = he(e);
3078
+ const ns = async (e) => {
3079
+ const t = ue(e);
3104
3080
  return await (await (e.fetch ?? Qe)(t.href, e.fetchOptions)).json();
3105
- }, ss = async (e, t, n = he(e)) => {
3081
+ }, os = async (e, t, n = ue(e)) => {
3106
3082
  const o = j(e.canTrack);
3107
3083
  if (n.search.includes("preview="), !o || !(I() || V === "reactNative"))
3108
3084
  return t.results;
3109
3085
  try {
3110
3086
  const s = [];
3111
3087
  for (const r of t.results)
3112
- s.push(await Rn({
3088
+ s.push(await Tn({
3113
3089
  item: r,
3114
3090
  canTrack: o
3115
3091
  }));
3116
3092
  t.results = s;
3117
3093
  } catch (s) {
3118
- T.error("Could not process A/B tests. ", s);
3094
+ R.error("Could not process A/B tests. ", s);
3119
3095
  }
3120
3096
  return t.results;
3121
3097
  };
3122
- async function rs(e) {
3098
+ async function ss(e) {
3123
3099
  try {
3124
- const t = he(e), n = await os(e);
3125
- return ns(n) ? ss(e, n) : (T.error("Error fetching data. ", {
3100
+ const t = ue(e), n = await ns(e);
3101
+ return ts(n) ? os(e, n) : (R.error("Error fetching data. ", {
3126
3102
  url: t,
3127
3103
  content: n,
3128
3104
  options: e
3129
3105
  }), null);
3130
3106
  } catch (t) {
3131
- return T.error("Error fetching data. ", t), null;
3107
+ return R.error("Error fetching data. ", t), null;
3132
3108
  }
3133
3109
  }
3134
- function is(e) {
3135
- if (!I())
3136
- return !1;
3137
- const t = Ae(e || window.location.search);
3138
- return R(t) ? !1 : t.indexOf("builder.preview=") !== -1;
3110
+ function rs(e) {
3111
+ const t = e || (I() ? window.location.search : void 0);
3112
+ return t ? Ee(t).indexOf("builder.preview=") !== -1 : !1;
3139
3113
  }
3140
- function as() {
3114
+ function is() {
3141
3115
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
3142
3116
  const t = Math.random() * 16 | 0;
3143
3117
  return (e == "x" ? t : t & 3 | 8).toString(16);
3144
3118
  });
3145
3119
  }
3146
3120
  function Ze() {
3147
- return as().replace(/-/g, "");
3121
+ return is().replace(/-/g, "");
3148
3122
  }
3149
- const _e = "builderSessionId", ls = async ({
3123
+ const _e = "builderSessionId", as = async ({
3150
3124
  canTrack: e
3151
3125
  }) => {
3152
3126
  if (!e)
@@ -3158,20 +3132,20 @@ const _e = "builderSessionId", ls = async ({
3158
3132
  if (F(t))
3159
3133
  return t;
3160
3134
  {
3161
- const n = cs();
3162
- return ds({
3135
+ const n = ls();
3136
+ return cs({
3163
3137
  id: n,
3164
3138
  canTrack: e
3165
3139
  }), n;
3166
3140
  }
3167
- }, cs = () => Ze(), ds = ({
3141
+ }, ls = () => Ze(), cs = ({
3168
3142
  id: e,
3169
3143
  canTrack: t
3170
3144
  }) => He({
3171
3145
  name: _e,
3172
3146
  value: e,
3173
3147
  canTrack: t
3174
- }), et = () => I() && typeof localStorage < "u" ? localStorage : void 0, us = ({
3148
+ }), et = () => I() && typeof localStorage < "u" ? localStorage : void 0, ds = ({
3175
3149
  key: e,
3176
3150
  canTrack: t
3177
3151
  }) => {
@@ -3182,7 +3156,7 @@ const _e = "builderSessionId", ls = async ({
3182
3156
  console.debug("[LocalStorage] GET error: ", o);
3183
3157
  return;
3184
3158
  }
3185
- }, ps = ({
3159
+ }, us = ({
3186
3160
  key: e,
3187
3161
  canTrack: t,
3188
3162
  value: n
@@ -3193,32 +3167,32 @@ const _e = "builderSessionId", ls = async ({
3193
3167
  } catch (s) {
3194
3168
  console.debug("[LocalStorage] SET error: ", s);
3195
3169
  }
3196
- }, tt = "builderVisitorId", ms = ({
3170
+ }, tt = "builderVisitorId", ps = ({
3197
3171
  canTrack: e
3198
3172
  }) => {
3199
3173
  if (!e)
3200
3174
  return;
3201
- const t = us({
3175
+ const t = ds({
3202
3176
  key: tt,
3203
3177
  canTrack: e
3204
3178
  });
3205
3179
  if (F(t))
3206
3180
  return t;
3207
3181
  {
3208
- const n = hs();
3209
- return fs({
3182
+ const n = ms();
3183
+ return hs({
3210
3184
  id: n,
3211
3185
  canTrack: e
3212
3186
  }), n;
3213
3187
  }
3214
- }, hs = () => Ze(), fs = ({
3188
+ }, ms = () => Ze(), hs = ({
3215
3189
  id: e,
3216
3190
  canTrack: t
3217
- }) => ps({
3191
+ }) => us({
3218
3192
  key: tt,
3219
3193
  value: e,
3220
3194
  canTrack: t
3221
- }), bs = async ({
3195
+ }), fs = async ({
3222
3196
  canTrack: e
3223
3197
  }) => {
3224
3198
  if (!e)
@@ -3226,16 +3200,16 @@ const _e = "builderSessionId", ls = async ({
3226
3200
  visitorId: void 0,
3227
3201
  sessionId: void 0
3228
3202
  };
3229
- const t = await ls({
3203
+ const t = await as({
3230
3204
  canTrack: e
3231
- }), n = ms({
3205
+ }), n = ps({
3232
3206
  canTrack: e
3233
3207
  });
3234
3208
  return {
3235
3209
  sessionId: t,
3236
3210
  visitorId: n
3237
3211
  };
3238
- }, gs = async ({
3212
+ }, bs = async ({
3239
3213
  type: e,
3240
3214
  canTrack: t,
3241
3215
  apiKey: n,
@@ -3249,23 +3223,23 @@ const _e = "builderSessionId", ls = async ({
3249
3223
  url: location.href,
3250
3224
  ...o
3251
3225
  },
3252
- ...await bs({
3226
+ ...await fs({
3253
3227
  canTrack: t
3254
3228
  }),
3255
- userAttributes: xe(),
3229
+ userAttributes: Pe(),
3256
3230
  ownerId: n
3257
3231
  }
3258
3232
  });
3259
3233
  async function re(e) {
3260
3234
  if (!e.apiKey) {
3261
- T.error("Missing API key for track call. Please provide your API key.");
3235
+ R.error("Missing API key for track call. Please provide your API key.");
3262
3236
  return;
3263
3237
  }
3264
- if (e.canTrack && !R() && (I() || V === "reactNative"))
3238
+ if (e.canTrack && !T() && (I() || V === "reactNative"))
3265
3239
  return fetch("https://cdn.builder.io/api/v1/track", {
3266
3240
  method: "POST",
3267
3241
  body: JSON.stringify({
3268
- events: [await gs(e)]
3242
+ events: [await bs(e)]
3269
3243
  }),
3270
3244
  headers: {
3271
3245
  "content-type": "application/json"
@@ -3275,14 +3249,14 @@ async function re(e) {
3275
3249
  console.error("Failed to track: ", t);
3276
3250
  });
3277
3251
  }
3278
- const or = (e) => re({
3252
+ const nr = (e) => re({
3279
3253
  ...e,
3280
3254
  canTrack: !0
3281
3255
  });
3282
- function Ce(e) {
3256
+ function ke(e) {
3283
3257
  return Math.round(e * 1e3) / 1e3;
3284
3258
  }
3285
- const ys = (e, t, n = !0) => {
3259
+ const gs = (e, t, n = !0) => {
3286
3260
  if (!(e instanceof HTMLElement))
3287
3261
  return null;
3288
3262
  let o = n ? e : e.parentElement;
@@ -3293,43 +3267,43 @@ const ys = (e, t, n = !0) => {
3293
3267
  return o;
3294
3268
  } while (o = o.parentElement);
3295
3269
  return null;
3296
- }, ks = (e) => ys(e, (t) => {
3270
+ }, ys = (e) => gs(e, (t) => {
3297
3271
  const n = t.getAttribute("builder-id") || t.id;
3298
3272
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3299
- }), we = ({
3273
+ }), Se = ({
3300
3274
  event: e,
3301
3275
  target: t
3302
3276
  }) => {
3303
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, r = Ce(o / n.width), i = Ce(s / n.height);
3277
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, s = e.clientY - n.top, r = ke(o / n.width), i = ke(s / n.height);
3304
3278
  return {
3305
3279
  x: r,
3306
3280
  y: i
3307
3281
  };
3308
- }, Ss = (e) => {
3309
- const t = e.target, n = t && ks(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3282
+ }, ks = (e) => {
3283
+ const t = e.target, n = t && ys(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3310
3284
  return {
3311
3285
  targetBuilderElement: o || void 0,
3312
3286
  metadata: {
3313
- targetOffset: t ? we({
3287
+ targetOffset: t ? Se({
3314
3288
  event: e,
3315
3289
  target: t
3316
3290
  }) : void 0,
3317
- builderTargetOffset: n ? we({
3291
+ builderTargetOffset: n ? Se({
3318
3292
  event: e,
3319
3293
  target: n
3320
3294
  }) : void 0,
3321
3295
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
3322
3296
  }
3323
3297
  };
3324
- }, vs = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3298
+ }, Ss = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3325
3299
  function nt(e, t) {
3326
3300
  const n = new URL(t.origin), o = n.hostname;
3327
- return (e || vs).findIndex((s) => s.startsWith("*.") ? o.endsWith(s.slice(1)) : s === o) > -1;
3301
+ return (e || Ss).findIndex((s) => s.startsWith("*.") ? o.endsWith(s.slice(1)) : s === o) > -1;
3328
3302
  }
3329
- const Cs = "1.0.21", Ie = {};
3330
- function ws(e, t) {
3331
- let n = Ie[e];
3332
- if (n || (n = Ie[e] = []), n.push(t), I()) {
3303
+ const vs = "1.0.23", ve = {};
3304
+ function Cs(e, t) {
3305
+ let n = ve[e];
3306
+ if (n || (n = ve[e] = []), n.push(t), I()) {
3333
3307
  const o = {
3334
3308
  type: "builder.register",
3335
3309
  data: {
@@ -3344,8 +3318,8 @@ function ws(e, t) {
3344
3318
  }
3345
3319
  }
3346
3320
  }
3347
- const Is = () => {
3348
- ws("insertMenu", {
3321
+ const ws = () => {
3322
+ Cs("insertMenu", {
3349
3323
  name: "_default",
3350
3324
  default: !0,
3351
3325
  items: [{
@@ -3367,14 +3341,14 @@ const Is = () => {
3367
3341
  }]
3368
3342
  });
3369
3343
  };
3370
- let $e = !1;
3344
+ let Ce = !1;
3371
3345
  const ot = (e = {}) => {
3372
3346
  var t, n;
3373
- $e || ($e = !0, I() && ((t = window.parent) == null || t.postMessage({
3347
+ Ce || (Ce = !0, I() && ((t = window.parent) == null || t.postMessage({
3374
3348
  type: "builder.sdkInfo",
3375
3349
  data: {
3376
3350
  target: V,
3377
- version: Cs,
3351
+ version: vs,
3378
3352
  supportsPatchUpdates: !1,
3379
3353
  // Supports builder-model="..." attribute which is needed to
3380
3354
  // scope our '+ add block' button styling
@@ -3455,9 +3429,9 @@ const ot = (e = {}) => {
3455
3429
  break;
3456
3430
  }
3457
3431
  }
3458
- }, sr = (e, t, n) => {
3432
+ }, or = (e, t, n) => {
3459
3433
  if (!I)
3460
- return T.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
3434
+ return R.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
3461
3435
  };
3462
3436
  ot();
3463
3437
  const o = st({
@@ -3474,7 +3448,7 @@ const ot = (e = {}) => {
3474
3448
  return window.addEventListener("message", o), () => {
3475
3449
  window.removeEventListener("message", o);
3476
3450
  };
3477
- }, $s = f({
3451
+ }, Is = f({
3478
3452
  name: "enable-editor",
3479
3453
  props: [
3480
3454
  "builderContextSignal",
@@ -3510,7 +3484,7 @@ const ot = (e = {}) => {
3510
3484
  (() => {
3511
3485
  var n, o;
3512
3486
  if (I()) {
3513
- if (R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3487
+ if (T() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3514
3488
  new CustomEvent("initeditingbldr")
3515
3489
  ), this.builderContextSignal.content && j(this.canTrack)) {
3516
3490
  const r = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, a = this.apiKey;
@@ -3522,12 +3496,12 @@ const ot = (e = {}) => {
3522
3496
  variationId: r !== i ? r : void 0
3523
3497
  });
3524
3498
  }
3525
- is() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3499
+ rs() && !T() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
3526
3500
  new CustomEvent("initpreviewingbldr")
3527
3501
  );
3528
3502
  }
3529
3503
  })(), (() => {
3530
- this.apiKey || T.error(
3504
+ this.apiKey || R.error(
3531
3505
  "No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
3532
3506
  ), this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
3533
3507
  })();
@@ -3686,7 +3660,7 @@ const ot = (e = {}) => {
3686
3660
  contentId: s,
3687
3661
  apiKey: this.apiKey,
3688
3662
  variationId: o !== s ? o : void 0,
3689
- ...Ss(e),
3663
+ ...ks(e),
3690
3664
  unique: !this.clicked
3691
3665
  });
3692
3666
  }
@@ -3696,7 +3670,7 @@ const ot = (e = {}) => {
3696
3670
  var t, n;
3697
3671
  const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
3698
3672
  Object.entries(e).forEach(([o, s]) => {
3699
- if (!s || this.httpReqsPending[o] || this.httpReqsData[o] && !R())
3673
+ if (!s || this.httpReqsPending[o] || this.httpReqsData[o] && !T())
3700
3674
  return;
3701
3675
  this.httpReqsPending[o] = !0;
3702
3676
  const r = s.replace(
@@ -3724,7 +3698,7 @@ const ot = (e = {}) => {
3724
3698
  });
3725
3699
  },
3726
3700
  emitStateUpdate() {
3727
- R() && window.dispatchEvent(
3701
+ T() && window.dispatchEvent(
3728
3702
  new CustomEvent(
3729
3703
  "builder:component:stateChange",
3730
3704
  {
@@ -3739,7 +3713,7 @@ const ot = (e = {}) => {
3739
3713
  );
3740
3714
  },
3741
3715
  elementRef_onIniteditingbldr(e) {
3742
- window.addEventListener("message", this.processMessage), Is(), ot({
3716
+ window.addEventListener("message", this.processMessage), ws(), ot({
3743
3717
  ...this.locale ? {
3744
3718
  locale: this.locale
3745
3719
  } : {},
@@ -3753,7 +3727,7 @@ const ot = (e = {}) => {
3753
3727
  this.builderContextSignal.componentInfos
3754
3728
  ).forEach((t) => {
3755
3729
  var o;
3756
- const n = Do(t);
3730
+ const n = Mo(t);
3757
3731
  (o = window.parent) == null || o.postMessage(n, "*");
3758
3732
  }), window.addEventListener(
3759
3733
  "builder:component:stateChangeListenerActivated",
@@ -3764,7 +3738,7 @@ const ot = (e = {}) => {
3764
3738
  const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
3765
3739
  `builder.preview.${n}`
3766
3740
  ), s = t.get("apiKey") || t.get("builder.space");
3767
- n === this.model && s === this.apiKey && (!this.content || o === this.content.id) && fe({
3741
+ n === this.model && s === this.apiKey && (!this.content || o === this.content.id) && pe({
3768
3742
  model: this.model,
3769
3743
  apiKey: this.apiKey,
3770
3744
  apiVersion: this.builderContextSignal.apiVersion
@@ -3774,9 +3748,9 @@ const ot = (e = {}) => {
3774
3748
  }
3775
3749
  }
3776
3750
  });
3777
- function Ts(e, t, n, o, s, r) {
3751
+ function $s(e, t, n, o, s, r) {
3778
3752
  var i, a, l;
3779
- return e.builderContextSignal.content ? (u(), g(H(e.ContentWrapper), w({
3753
+ return e.builderContextSignal.content ? (u(), g(D(e.ContentWrapper), w({
3780
3754
  key: 0,
3781
3755
  ref: "elementRef",
3782
3756
  onClick: (c) => e.onClick(c),
@@ -3798,7 +3772,7 @@ function Ts(e, t, n, o, s, r) {
3798
3772
  _: 3
3799
3773
  }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
3800
3774
  }
3801
- const Rs = /* @__PURE__ */ y($s, [["render", Ts]]), Es = (e) => {
3775
+ const Ts = /* @__PURE__ */ y(Is, [["render", $s]]), Rs = (e) => {
3802
3776
  var r;
3803
3777
  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);
3804
3778
  let s = "";
@@ -3824,15 +3798,15 @@ font-weight: ${i};
3824
3798
  `.trim());
3825
3799
  }
3826
3800
  return s;
3827
- }, Ps = ({
3801
+ }, Es = ({
3828
3802
  customFonts: e
3829
3803
  }) => {
3830
3804
  var t;
3831
- return ((t = e == null ? void 0 : e.map((n) => Es(n))) == null ? void 0 : t.join(" ")) || "";
3832
- }, Vs = ({
3805
+ return ((t = e == null ? void 0 : e.map((n) => Rs(n))) == null ? void 0 : t.join(" ")) || "";
3806
+ }, Ps = ({
3833
3807
  cssCode: e,
3834
3808
  contentId: t
3835
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", As = `
3809
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Vs = `
3836
3810
  .builder-button {
3837
3811
  all: unset;
3838
3812
  }
@@ -3849,33 +3823,33 @@ font-weight: ${i};
3849
3823
  text-align: inherit;
3850
3824
  font-family: inherit;
3851
3825
  }
3852
- `, xs = (e) => e ? "" : As, Bs = f({
3826
+ `, As = (e) => e ? "" : Vs, xs = f({
3853
3827
  name: "content-styles",
3854
- components: { InlinedStyles: pe },
3828
+ components: { InlinedStyles: ce },
3855
3829
  props: ["cssCode", "contentId", "customFonts", "isNestedRender"],
3856
3830
  data() {
3857
3831
  return {
3858
3832
  injectedStyles: `
3859
- ${Vs({
3833
+ ${Ps({
3860
3834
  cssCode: this.cssCode,
3861
3835
  contentId: this.contentId
3862
3836
  })}
3863
- ${Ps({
3837
+ ${Es({
3864
3838
  customFonts: this.customFonts
3865
3839
  })}
3866
- ${xs(this.isNestedRender)}
3840
+ ${As(this.isNestedRender)}
3867
3841
  `.trim()
3868
3842
  };
3869
3843
  }
3870
3844
  });
3871
- function Ws(e, t, n, o, s, r) {
3845
+ function Bs(e, t, n, o, s, r) {
3872
3846
  const i = k("inlined-styles");
3873
3847
  return u(), g(i, {
3874
3848
  id: "builderio-content",
3875
3849
  styles: e.injectedStyles
3876
3850
  }, null, 8, ["styles"]);
3877
3851
  }
3878
- const Ns = /* @__PURE__ */ y(Bs, [["render", Ws]]), Fs = ({
3852
+ const Ws = /* @__PURE__ */ y(xs, [["render", Bs]]), Ns = ({
3879
3853
  content: e,
3880
3854
  data: t,
3881
3855
  locale: n
@@ -3892,7 +3866,7 @@ const Ns = /* @__PURE__ */ y(Bs, [["render", Ws]]), Fs = ({
3892
3866
  locale: n
3893
3867
  } : {}
3894
3868
  };
3895
- }, Os = ({
3869
+ }, Fs = ({
3896
3870
  content: e,
3897
3871
  data: t
3898
3872
  }) => e ? {
@@ -3902,12 +3876,12 @@ const Ns = /* @__PURE__ */ y(Bs, [["render", Ws]]), Fs = ({
3902
3876
  ...t
3903
3877
  },
3904
3878
  meta: e == null ? void 0 : e.meta
3905
- } : void 0, Us = ct, Ls = f({
3879
+ } : void 0, Os = ct, Us = f({
3906
3880
  name: "content-component",
3907
3881
  components: {
3908
- EnableEditor: Rs,
3882
+ EnableEditor: Ts,
3909
3883
  InlinedScript: Ye,
3910
- ContentStyles: Ns,
3884
+ ContentStyles: Ws,
3911
3885
  Blocks: Z
3912
3886
  },
3913
3887
  props: [
@@ -3934,32 +3908,32 @@ const Ns = /* @__PURE__ */ y(Bs, [["render", Ws]]), Fs = ({
3934
3908
  data() {
3935
3909
  var e, t;
3936
3910
  return {
3937
- scriptStr: Qo({
3911
+ scriptStr: Yo({
3938
3912
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3939
3913
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
3940
3914
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
3941
3915
  contentId: (t = this.content) == null ? void 0 : t.id
3942
3916
  }),
3943
3917
  registeredComponents: [
3944
- ...ke(),
3918
+ ...be(),
3945
3919
  ...this.customComponents || []
3946
3920
  ].reduce(
3947
3921
  (n, { component: o, ...s }) => ({
3948
3922
  ...n,
3949
3923
  [s.name]: {
3950
- component: Us(o),
3924
+ component: Os(o),
3951
3925
  ...se(s)
3952
3926
  }
3953
3927
  }),
3954
3928
  {}
3955
3929
  ),
3956
3930
  builderContextSignal: {
3957
- content: Os({
3931
+ content: Fs({
3958
3932
  content: this.content,
3959
3933
  data: this.data
3960
3934
  }),
3961
3935
  localState: void 0,
3962
- rootState: Fs({
3936
+ rootState: Ns({
3963
3937
  content: this.content,
3964
3938
  data: this.data,
3965
3939
  locale: this.locale
@@ -3969,7 +3943,7 @@ const Ns = /* @__PURE__ */ y(Bs, [["render", Ws]]), Fs = ({
3969
3943
  apiKey: this.apiKey,
3970
3944
  apiVersion: this.apiVersion,
3971
3945
  componentInfos: [
3972
- ...ke(),
3946
+ ...be(),
3973
3947
  ...this.customComponents || []
3974
3948
  ].reduce(
3975
3949
  (n, { component: o, ...s }) => ({
@@ -3988,7 +3962,7 @@ const Ns = /* @__PURE__ */ y(Bs, [["render", Ws]]), Fs = ({
3988
3962
  provide() {
3989
3963
  const e = this;
3990
3964
  return {
3991
- [Pe.key]: {
3965
+ [Te.key]: {
3992
3966
  registeredComponents: e.registeredComponents
3993
3967
  }
3994
3968
  };
@@ -3999,7 +3973,7 @@ const Ns = /* @__PURE__ */ y(Bs, [["render", Ws]]), Fs = ({
3999
3973
  }
4000
3974
  }
4001
3975
  });
4002
- function Ms(e, t, n, o, s, r) {
3976
+ function Ls(e, t, n, o, s, r) {
4003
3977
  const i = k("inlined-script"), a = k("content-styles"), l = k("blocks"), c = k("enable-editor");
4004
3978
  return u(), g(c, w({
4005
3979
  content: e.content,
@@ -4018,7 +3992,7 @@ function Ms(e, t, n, o, s, r) {
4018
3992
  trustedHosts: e.trustedHosts
4019
3993
  }, {}), {
4020
3994
  default: B(() => {
4021
- var m, d, p, S, b, W, q;
3995
+ var m, d, p, S, b, W, z;
4022
3996
  return [
4023
3997
  e.isSsrAbTest ? (u(), g(i, {
4024
3998
  key: 0,
@@ -4033,7 +4007,7 @@ function Ms(e, t, n, o, s, r) {
4033
4007
  customFonts: (b = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : b.customFonts
4034
4008
  }, null, 8, ["isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
4035
4009
  x(l, {
4036
- blocks: (q = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : q.blocks,
4010
+ blocks: (z = (W = e.builderContextSignal.content) == null ? void 0 : W.data) == null ? void 0 : z.blocks,
4037
4011
  context: e.builderContextSignal,
4038
4012
  registeredComponents: e.registeredComponents,
4039
4013
  linkComponent: e.linkComponent
@@ -4043,12 +4017,12 @@ function Ms(e, t, n, o, s, r) {
4043
4017
  _: 1
4044
4018
  }, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "linkComponent", "trustedHosts"]);
4045
4019
  }
4046
- const Ds = /* @__PURE__ */ y(Ls, [["render", Ms]]), Hs = f({
4020
+ const Ms = /* @__PURE__ */ y(Us, [["render", Ls]]), Ds = f({
4047
4021
  name: "content-variants",
4048
4022
  components: {
4049
4023
  InlinedScript: Ye,
4050
- InlinedStyles: pe,
4051
- ContentComponent: Ds
4024
+ InlinedStyles: ce,
4025
+ ContentComponent: Ms
4052
4026
  },
4053
4027
  props: [
4054
4028
  "canTrack",
@@ -4076,7 +4050,7 @@ const Ds = /* @__PURE__ */ y(Ls, [["render", Ms]]), Hs = f({
4076
4050
  content: this.content
4077
4051
  }),
4078
4052
  TARGET: V,
4079
- getInitVariantsFnsScriptString: Go,
4053
+ getInitVariantsFnsScriptString: Jo,
4080
4054
  getVariants: G
4081
4055
  };
4082
4056
  },
@@ -4085,7 +4059,7 @@ const Ds = /* @__PURE__ */ y(Ls, [["render", Ms]]), Hs = f({
4085
4059
  computed: {
4086
4060
  updateCookieAndStylesScriptStr() {
4087
4061
  var e;
4088
- return Yo(
4062
+ return Go(
4089
4063
  G(this.content).map((t) => ({
4090
4064
  id: t.testVariationId,
4091
4065
  testRatio: t.testRatio
@@ -4101,14 +4075,14 @@ const Ds = /* @__PURE__ */ y(Ls, [["render", Ms]]), Hs = f({
4101
4075
  return this.shouldRenderVariants ? {
4102
4076
  ...this.content,
4103
4077
  testVariationId: (e = this.content) == null ? void 0 : e.id
4104
- } : Tn({
4078
+ } : $n({
4105
4079
  item: this.content,
4106
4080
  canTrack: j(this.canTrack)
4107
4081
  });
4108
4082
  }
4109
4083
  }
4110
4084
  });
4111
- function js(e, t, n, o, s, r) {
4085
+ function Hs(e, t, n, o, s, r) {
4112
4086
  const i = k("inlined-script"), a = k("inlined-styles"), l = k("content-component");
4113
4087
  return u(), h($, null, [
4114
4088
  !e.isNestedRender && e.TARGET !== "reactNative" ? (u(), g(i, {
@@ -4125,7 +4099,7 @@ function js(e, t, n, o, s, r) {
4125
4099
  id: "builderio-variants-visibility",
4126
4100
  scriptStr: e.updateCookieAndStylesScriptStr
4127
4101
  }, null, 8, ["scriptStr"]),
4128
- (u(!0), h($, null, L(e.getVariants(e.content), (c, m) => (u(), g(l, {
4102
+ (u(!0), h($, null, U(e.getVariants(e.content), (c, m) => (u(), g(l, {
4129
4103
  key: c.testVariationId,
4130
4104
  isNestedRender: e.isNestedRender,
4131
4105
  content: c,
@@ -4173,13 +4147,13 @@ function js(e, t, n, o, s, r) {
4173
4147
  }), null, 16, ["isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4174
4148
  ], 64);
4175
4149
  }
4176
- const Ks = /* @__PURE__ */ y(Hs, [["render", js]]), qs = async ({
4150
+ const js = /* @__PURE__ */ y(Ds, [["render", Hs]]), Ks = async ({
4177
4151
  builderContextValue: e,
4178
4152
  symbol: t
4179
4153
  }) => {
4180
4154
  if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
4181
4155
  (e != null && e.apiKey))
4182
- return fe({
4156
+ return pe({
4183
4157
  model: t.model,
4184
4158
  apiKey: e.apiKey,
4185
4159
  apiVersion: e.apiVersion,
@@ -4189,11 +4163,11 @@ const Ks = /* @__PURE__ */ y(Hs, [["render", js]]), qs = async ({
4189
4163
  }
4190
4164
  }
4191
4165
  }).catch((n) => {
4192
- T.error("Could not fetch symbol content: ", n);
4166
+ R.error("Could not fetch symbol content: ", n);
4193
4167
  });
4194
4168
  }, zs = f({
4195
4169
  name: "builder-symbol",
4196
- components: { ContentVariants: Ks },
4170
+ components: { ContentVariants: js },
4197
4171
  props: [
4198
4172
  "symbol",
4199
4173
  "attributes",
@@ -4236,7 +4210,7 @@ const Ks = /* @__PURE__ */ y(Hs, [["render", js]]), qs = async ({
4236
4210
  },
4237
4211
  methods: {
4238
4212
  setContent() {
4239
- this.contentToUse || qs({
4213
+ this.contentToUse || Ks({
4240
4214
  symbol: this.symbol,
4241
4215
  builderContextValue: this.builderContext
4242
4216
  }).then((e) => {
@@ -4245,7 +4219,7 @@ const Ks = /* @__PURE__ */ y(Hs, [["render", js]]), qs = async ({
4245
4219
  }
4246
4220
  }
4247
4221
  });
4248
- function Js(e, t, n, o, s, r) {
4222
+ function qs(e, t, n, o, s, r) {
4249
4223
  var a, l, c, m, d;
4250
4224
  const i = k("content-variants");
4251
4225
  return u(), h("div", w({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, E(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
@@ -4271,18 +4245,18 @@ function Js(e, t, n, o, s, r) {
4271
4245
  }, null, 8, ["apiVersion", "apiKey", "context", "customComponents", "data", "model", "content", "linkComponent"])
4272
4246
  ], 16);
4273
4247
  }
4274
- const Gs = /* @__PURE__ */ y(zs, [["render", Js]]), Te = {};
4275
- function rr(e) {
4248
+ const Js = /* @__PURE__ */ y(zs, [["render", qs]]), we = {};
4249
+ function sr(e) {
4276
4250
  if (I()) {
4277
- Object.assign(Te, e);
4251
+ Object.assign(we, e);
4278
4252
  const t = {
4279
4253
  type: "builder.settingsChange",
4280
- data: Te
4254
+ data: we
4281
4255
  };
4282
4256
  parent.postMessage(t, "*");
4283
4257
  }
4284
4258
  }
4285
- const ir = async (e) => {
4259
+ const rr = async (e) => {
4286
4260
  var o, s, r;
4287
4261
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((s = e.userAttributes) == null ? void 0 : s.urlPath), n = {
4288
4262
  ...e,
@@ -4299,46 +4273,47 @@ const ir = async (e) => {
4299
4273
  return {
4300
4274
  apiKey: n.apiKey,
4301
4275
  model: n.model,
4302
- content: await fe(n)
4276
+ content: await pe(n)
4303
4277
  };
4304
4278
  };
4305
4279
  export {
4306
- rs as A,
4307
- ue as B,
4308
- tn as C,
4309
- fe as D,
4310
- Zs as E,
4311
- sn as F,
4312
- tr as G,
4313
- mn as I,
4314
- bn as S,
4280
+ os as A,
4281
+ le as B,
4282
+ en as C,
4283
+ ss as D,
4284
+ pe as E,
4285
+ on as F,
4286
+ Xs as G,
4287
+ er as H,
4288
+ pn as I,
4289
+ fn as S,
4315
4290
  V as T,
4316
- Lo as V,
4317
- pe as _,
4318
- Zt as a,
4319
- _s as b,
4291
+ Uo as V,
4292
+ ce as _,
4293
+ Xt as a,
4294
+ Zs as b,
4320
4295
  F as c,
4321
- nr as d,
4322
- y as e,
4323
- Q as f,
4324
- Ne as g,
4325
- er as h,
4326
- ae as i,
4327
- oe as j,
4328
- bt as k,
4329
- Gs as l,
4330
- Hn as m,
4331
- Z as n,
4332
- Ks as o,
4333
- R as p,
4334
- is as q,
4335
- Do as r,
4336
- ws as s,
4337
- rr as t,
4338
- Xe as u,
4339
- or as v,
4340
- Us as w,
4341
- sr as x,
4342
- ir as y,
4343
- ss as z
4296
+ tr as d,
4297
+ Be as e,
4298
+ y as f,
4299
+ xe as g,
4300
+ Q as h,
4301
+ _s as i,
4302
+ ae as j,
4303
+ oe as k,
4304
+ bt as l,
4305
+ Js as m,
4306
+ Dn as n,
4307
+ Z as o,
4308
+ js as p,
4309
+ T as q,
4310
+ rs as r,
4311
+ Mo as s,
4312
+ Cs as t,
4313
+ sr as u,
4314
+ Xe as v,
4315
+ Os as w,
4316
+ nr as x,
4317
+ or as y,
4318
+ rr as z
4344
4319
  };