@builder.io/sdk-vue 1.0.21 → 1.0.22

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