@builder.io/sdk-vue 2.0.1 → 2.0.2

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 (51) hide show
  1. package/lib/browser/{block-styles-Csi42CXj.cjs → block-styles-Mn6wJduZ.cjs} +1 -1
  2. package/lib/browser/{block-styles-svOVzDaV.js → block-styles-sZJR1URf.js} +1 -1
  3. package/lib/browser/{block-wrapper-KGQI5yrU.js → block-wrapper-ody6Sxkr.js} +3 -3
  4. package/lib/browser/{block-wrapper-GE-RFbYp.cjs → block-wrapper-qFFX6RFF.cjs} +1 -1
  5. package/lib/browser/{component-ref-X2UZCaau.cjs → component-ref-DSNF4azA.cjs} +1 -1
  6. package/lib/browser/{component-ref-k5NF2o_L.js → component-ref-rf4-wS3o.js} +2 -2
  7. package/lib/browser/constants/sdk-version.d.ts +1 -1
  8. package/lib/browser/{get-block-properties-1Sn1T_z8.js → get-block-properties-O0W_2V2s.js} +1 -1
  9. package/lib/browser/{get-block-properties-lkKJCs4_.cjs → get-block-properties-trq7EGpq.cjs} +1 -1
  10. package/lib/browser/{index-zc0i09p9.js → index---sv1Dmc.js} +25 -25
  11. package/lib/browser/index-5K25vfnv.cjs +166 -0
  12. package/lib/browser/index.cjs +1 -1
  13. package/lib/browser/index.mjs +1 -1
  14. package/lib/browser/{repeated-block-BxE-FBVv.js → repeated-block-4hDqPbdf.js} +2 -2
  15. package/lib/browser/{repeated-block-U8EfEnWl.cjs → repeated-block-LqvC87RV.cjs} +1 -1
  16. package/lib/browser/style.css +1 -1
  17. package/lib/edge/{block-styles-F04q1oh7.js → block-styles-QLPVQ54j.js} +1 -1
  18. package/lib/edge/{block-styles-fRc_JL86.cjs → block-styles-VkVzS7vd.cjs} +1 -1
  19. package/lib/{node/block-wrapper-x4ztktEw.cjs → edge/block-wrapper-C3QWzorc.cjs} +1 -1
  20. package/lib/edge/{block-wrapper-8j2OMXf0.js → block-wrapper-Lrmvcvj2.js} +3 -3
  21. package/lib/{node/component-ref-SSAGqUU1.js → edge/component-ref-BzjW_J7Z.js} +2 -2
  22. package/lib/{node/component-ref-Xsv_XmLR.cjs → edge/component-ref-_MrpnWQq.cjs} +1 -1
  23. package/lib/edge/constants/sdk-version.d.ts +1 -1
  24. package/lib/edge/{get-block-properties-aLqPRHin.js → get-block-properties-YDq-FuAs.js} +1 -1
  25. package/lib/edge/{get-block-properties-T-X8E9sU.cjs → get-block-properties-ZdU2gihP.cjs} +1 -1
  26. package/lib/edge/{index-Hw76nggP.js → index-8mGnZrt9.js} +25 -25
  27. package/lib/edge/{index-kEvRBdly.cjs → index-tYqLns-6.cjs} +18 -18
  28. package/lib/edge/index.cjs +1 -1
  29. package/lib/edge/index.mjs +1 -1
  30. package/lib/edge/{repeated-block-iGJv6g_d.cjs → repeated-block-IOMTx4Ek.cjs} +1 -1
  31. package/lib/edge/{repeated-block-RuwJfamt.js → repeated-block-c9Qq8PaK.js} +2 -2
  32. package/lib/edge/style.css +1 -1
  33. package/lib/node/{block-styles-fnIQFp0q.cjs → block-styles-GqJTbD8X.cjs} +1 -1
  34. package/lib/node/{block-styles-akqgR8wB.js → block-styles-Tyg1fV88.js} +1 -1
  35. package/lib/{edge/block-wrapper-ai3_EF77.cjs → node/block-wrapper-0rr8eTCE.cjs} +1 -1
  36. package/lib/node/{block-wrapper-xIeM4taN.js → block-wrapper-iBhEa5rI.js} +3 -3
  37. package/lib/{edge/component-ref-okii_K_0.js → node/component-ref-FN9Rzqu_.js} +2 -2
  38. package/lib/{edge/component-ref-adfadHtQ.cjs → node/component-ref-j2PWej8h.cjs} +1 -1
  39. package/lib/node/constants/sdk-version.d.ts +1 -1
  40. package/lib/node/{get-block-properties-4897A0cX.js → get-block-properties-HOAtHaKD.js} +1 -1
  41. package/lib/node/{get-block-properties-gYAacxBD.cjs → get-block-properties-NZJwLalB.cjs} +1 -1
  42. package/lib/node/{index-ZwTY1dOi.js → index-AtsvJZco.js} +231 -231
  43. package/lib/node/index-_k1NN43c.cjs +213 -0
  44. package/lib/node/index.cjs +1 -1
  45. package/lib/node/index.mjs +1 -1
  46. package/lib/node/{repeated-block-kVVd7Ki5.cjs → repeated-block-Smn39W6t.cjs} +1 -1
  47. package/lib/node/{repeated-block-hqi2-jn4.js → repeated-block-ztDvgKZz.js} +2 -2
  48. package/lib/node/style.css +1 -1
  49. package/package.json +1 -1
  50. package/lib/browser/index-5WrmkFk4.cjs +0 -166
  51. package/lib/node/index-zlCXfe4Y.cjs +0 -213
@@ -9,8 +9,8 @@ function filterAttrs(e = {}, t, n) {
9
9
  for (const r in e) {
10
10
  if (!e[r] || n && !r.startsWith(t))
11
11
  continue;
12
- const s = n ? r.replace(t, "") : r;
13
- o[s] = e[r];
12
+ const i = n ? r.replace(t, "") : r;
13
+ o[i] = e[r];
14
14
  }
15
15
  return o;
16
16
  }
@@ -26,7 +26,7 @@ const _sfc_main$t = defineComponent({
26
26
  n[o] = r;
27
27
  return n;
28
28
  };
29
- function _sfc_render$r(e, t, n, o, r, s) {
29
+ function _sfc_render$r(e, t, n, o, r, i) {
30
30
  return e.isEmptyElement(e.TagName) ? (openBlock(), createBlock(resolveDynamicComponent(e.TagName), mergeProps({ key: 1 }, e.attributes, toHandlers(e.actionAttributes)), null, 16)) : (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
31
31
  typeof e.TagName == "string" ? (openBlock(), createBlock(resolveDynamicComponent(e.TagName), mergeProps({ key: 0 }, e.attributes, toHandlers(e.actionAttributes)), {
32
32
  default: withCtx(() => [
@@ -86,9 +86,9 @@ const DynamicRenderer = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sf
86
86
  }
87
87
  }
88
88
  });
89
- function _sfc_render$q(e, t, n, o, r, s) {
90
- const i = resolveComponent("DynamicRenderer");
91
- return openBlock(), createBlock(i, {
89
+ function _sfc_render$q(e, t, n, o, r, i) {
90
+ const s = resolveComponent("DynamicRenderer");
91
+ return openBlock(), createBlock(s, {
92
92
  attributes: e.attrs(),
93
93
  TagName: e.link ? e.builderLinkComponent || "a" : "button",
94
94
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
@@ -206,17 +206,17 @@ const getLocation = () => {
206
206
  context: n,
207
207
  event: o,
208
208
  localState: r,
209
- rootSetState: s,
210
- rootState: i
209
+ rootSetState: i,
210
+ rootState: s
211
211
  }) => {
212
212
  const l = getFunctionArguments({
213
213
  builder: t,
214
214
  context: n,
215
215
  event: o,
216
216
  state: flattenState({
217
- rootState: i,
217
+ rootState: s,
218
218
  localState: r,
219
- rootSetState: s
219
+ rootSetState: i
220
220
  })
221
221
  });
222
222
  return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
@@ -230,19 +230,19 @@ function flattenState({
230
230
  get: (o, r) => {
231
231
  if (t && r in t)
232
232
  return t[r];
233
- const s = o[r];
234
- return typeof s == "object" && s !== null ? flattenState({
235
- rootState: s,
233
+ const i = o[r];
234
+ return typeof i == "object" && i !== null ? flattenState({
235
+ rootState: i,
236
236
  localState: void 0,
237
- rootSetState: n ? (i) => {
238
- o[r] = i, n(o);
237
+ rootSetState: n ? (s) => {
238
+ o[r] = s, n(o);
239
239
  } : void 0
240
- }) : s;
240
+ }) : i;
241
241
  },
242
- set: (o, r, s) => {
242
+ set: (o, r, i) => {
243
243
  if (t && r in t)
244
244
  throw new Error("Writing to local state is not allowed as it is read-only.");
245
- return o[r] = s, n == null || n(o), !0;
245
+ return o[r] = i, n == null || n(o), !0;
246
246
  }
247
247
  });
248
248
  }
@@ -259,7 +259,7 @@ const SDK_NAME_FOR_TARGET = (() => {
259
259
  if (Object(e) !== e)
260
260
  return e;
261
261
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
262
- return o.slice(0, -1).reduce((r, s, i) => Object(r[s]) === r[s] ? r[s] : r[s] = Math.abs(Number(o[i + 1])) >> 0 === +o[i + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
262
+ return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
263
263
  }, noop = () => {
264
264
  };
265
265
  let safeDynamicRequire = noop;
@@ -341,8 +341,8 @@ function setIsolateContext(e = {
341
341
  memoryLimit: 128
342
342
  }) {
343
343
  const t = getIvm(), o = new t.Isolate(e).createContextSync(), r = o.global;
344
- return r.setSync("global", r.derefInto()), r.setSync("log", function(...s) {
345
- console.log(...s);
344
+ return r.setSync("global", r.derefInto()), r.setSync("log", function(...i) {
345
+ console.log(...i);
346
346
  }), r.setSync(INJECTED_IVM_GLOBAL, t), IVM_CONTEXT = o, o;
347
347
  }
348
348
  const getIsolateContext = () => IVM_CONTEXT || setIsolateContext(), runInNode = ({
@@ -351,11 +351,11 @@ const getIsolateContext = () => IVM_CONTEXT || setIsolateContext(), runInNode =
351
351
  context: n,
352
352
  event: o,
353
353
  localState: r,
354
- rootSetState: s,
355
- rootState: i
354
+ rootSetState: i,
355
+ rootState: s
356
356
  }) => {
357
357
  const l = getIvm(), a = fastClone({
358
- ...i,
358
+ ...s,
359
359
  ...r
360
360
  }), d = getFunctionArguments({
361
361
  builder: t,
@@ -364,7 +364,7 @@ const getIsolateContext = () => IVM_CONTEXT || setIsolateContext(), runInNode =
364
364
  state: a
365
365
  }), u = getIsolateContext(), c = u.global;
366
366
  c.setSync(BUILDER_SET_STATE_NAME, function(m, b) {
367
- set(i, m, b), s == null || s(i);
367
+ set(s, m, b), i == null || i(s);
368
368
  }), d.forEach(([m, b]) => {
369
369
  const C = typeof b == "object" ? new l.Reference(
370
370
  // workaround: methods with default values for arguments is not being cloned over
@@ -421,19 +421,19 @@ function evaluate({
421
421
  localState: n,
422
422
  rootState: o,
423
423
  rootSetState: r,
424
- event: s,
425
- isExpression: i = !0,
424
+ event: i,
425
+ isExpression: s = !0,
426
426
  enableCache: l
427
427
  }) {
428
428
  if (e === "")
429
429
  return;
430
430
  const a = {
431
431
  code: parseCode(e, {
432
- isExpression: i
432
+ isExpression: s
433
433
  }),
434
434
  builder: getBuilderGlobals(),
435
435
  context: t,
436
- event: s,
436
+ event: i,
437
437
  rootSetState: r,
438
438
  rootState: o,
439
439
  localState: n
@@ -469,13 +469,13 @@ const evaluateBindings = ({
469
469
  }) => {
470
470
  if (!e.bindings)
471
471
  return e;
472
- const s = fastClone(e), i = {
473
- ...s,
472
+ const i = fastClone(e), s = {
473
+ ...i,
474
474
  properties: {
475
- ...s.properties
475
+ ...i.properties
476
476
  },
477
477
  actions: {
478
- ...s.actions
478
+ ...i.actions
479
479
  }
480
480
  };
481
481
  for (const l in e.bindings) {
@@ -487,9 +487,9 @@ const evaluateBindings = ({
487
487
  context: t,
488
488
  enableCache: !0
489
489
  });
490
- set(i, l, d);
490
+ set(s, l, d);
491
491
  }
492
- return i;
492
+ return s;
493
493
  };
494
494
  function getProcessedBlock({
495
495
  block: e,
@@ -497,28 +497,28 @@ function getProcessedBlock({
497
497
  shouldEvaluateBindings: n,
498
498
  localState: o,
499
499
  rootState: r,
500
- rootSetState: s
500
+ rootSetState: i
501
501
  }) {
502
- const i = e;
502
+ const s = e;
503
503
  return n ? evaluateBindings({
504
- block: i,
504
+ block: s,
505
505
  localState: o,
506
506
  rootState: r,
507
- rootSetState: s,
507
+ rootSetState: i,
508
508
  context: t
509
- }) : i;
509
+ }) : s;
510
510
  }
511
511
  const camelToKebabCase = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
512
512
  function throttle(e, t, n = {}) {
513
- let o, r, s, i = null, l = 0;
513
+ let o, r, i, s = null, l = 0;
514
514
  const a = function() {
515
- l = n.leading === !1 ? 0 : Date.now(), i = null, s = e.apply(o, r), i || (o = r = null);
515
+ l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
516
516
  };
517
517
  return function() {
518
518
  const d = Date.now();
519
519
  !l && n.leading === !1 && (l = d);
520
520
  const u = t - (d - l);
521
- return o = this, r = arguments, u <= 0 || u > t ? (i && (clearTimeout(i), i = null), l = d, s = e.apply(o, r), i || (o = r = null)) : !i && n.trailing !== !1 && (i = setTimeout(a, u)), s;
521
+ return o = this, r = arguments, u <= 0 || u > t ? (s && (clearTimeout(s), s = null), l = d, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, u)), i;
522
522
  };
523
523
  }
524
524
  function assign(e, ...t) {
@@ -526,8 +526,8 @@ function assign(e, ...t) {
526
526
  for (let o = 1; o < arguments.length; o++) {
527
527
  const r = arguments[o];
528
528
  if (r != null)
529
- for (const s in r)
530
- Object.prototype.hasOwnProperty.call(r, s) && (n[s] = r[s]);
529
+ for (const i in r)
530
+ Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
531
531
  }
532
532
  return n;
533
533
  }
@@ -546,8 +546,8 @@ function warnElementNotPresent(e) {
546
546
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
547
547
  }
548
548
  function augmentAnimation(e, t) {
549
- const n = getAllStylesUsed(e), o = getComputedStyle(t), r = e.steps[0].styles, s = e.steps[e.steps.length - 1].styles, i = [r, s];
550
- for (const l of i)
549
+ const n = getAllStylesUsed(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
550
+ for (const l of s)
551
551
  for (const a of n)
552
552
  a in l || (l[a] = o[a]);
553
553
  }
@@ -581,14 +581,14 @@ function bindScrollInViewAnimation(e) {
581
581
  Array.from(t).forEach((n) => {
582
582
  augmentAnimation(e, n);
583
583
  let o = !1, r = !1;
584
- function s() {
584
+ function i() {
585
585
  !o && l(n) ? (o = !0, r = !0, setTimeout(() => {
586
- assign(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", i), setTimeout(() => {
586
+ assign(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
587
587
  r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
588
588
  }, (e.duration + (e.delay || 0)) * 1e3 + 100);
589
589
  })) : e.repeat && o && !r && !l(n) && (o = !1, assign(n.style, e.steps[0].styles));
590
590
  }
591
- const i = throttle(s, 200, {
591
+ const s = throttle(i, 200, {
592
592
  leading: !1
593
593
  });
594
594
  function l(u) {
@@ -601,10 +601,10 @@ function bindScrollInViewAnimation(e) {
601
601
  }
602
602
  d(), setTimeout(() => {
603
603
  n.style.transition = `all ${e.duration}s ${camelToKebabCase(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
604
- }), document.addEventListener("scroll", i, {
604
+ }), document.addEventListener("scroll", s, {
605
605
  capture: !0,
606
606
  passive: !0
607
- }), s();
607
+ }), i();
608
608
  });
609
609
  }
610
610
  const convertStyleMapToCSSArray = (e) => Object.entries(e).map(([n, o]) => {
@@ -655,15 +655,15 @@ const getComponent = ({
655
655
  context: t,
656
656
  registeredComponents: n
657
657
  }) => {
658
- var s;
659
- const o = (s = getProcessedBlock({
658
+ var i;
659
+ const o = (i = getProcessedBlock({
660
660
  block: e,
661
661
  localState: t.localState,
662
662
  rootState: t.rootState,
663
663
  rootSetState: t.rootSetState,
664
664
  context: t.context,
665
665
  shouldEvaluateBindings: !1
666
- }).component) == null ? void 0 : s.name;
666
+ }).component) == null ? void 0 : i.name;
667
667
  if (!o)
668
668
  return null;
669
669
  const r = n[o];
@@ -692,7 +692,7 @@ const getComponent = ({
692
692
  });
693
693
  if (!Array.isArray(r))
694
694
  return;
695
- const s = n.collection.split(".").pop(), i = n.itemName || (s ? s + "Item" : "item");
695
+ const i = n.collection.split(".").pop(), s = n.itemName || (i ? i + "Item" : "item");
696
696
  return r.map((a, d) => ({
697
697
  context: {
698
698
  ...t,
@@ -700,8 +700,8 @@ const getComponent = ({
700
700
  ...t.localState,
701
701
  $index: d,
702
702
  $item: a,
703
- [i]: a,
704
- [`$${i}Index`]: d
703
+ [s]: a,
704
+ [`$${s}Index`]: d
705
705
  }
706
706
  },
707
707
  block: o
@@ -731,22 +731,22 @@ const getComponent = ({
731
731
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
732
732
  e
733
733
  ), e;
734
- }), BlockStyles = () => import("./block-styles-akqgR8wB.js").then((e) => e.default).catch((e) => {
734
+ }), BlockStyles = () => import("./block-styles-Tyg1fV88.js").then((e) => e.default).catch((e) => {
735
735
  throw console.error(
736
736
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
737
737
  e
738
738
  ), e;
739
- }), BlockWrapper = () => import("./block-wrapper-xIeM4taN.js").then((e) => e.default).catch((e) => {
739
+ }), BlockWrapper = () => import("./block-wrapper-iBhEa5rI.js").then((e) => e.default).catch((e) => {
740
740
  throw console.error(
741
741
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
742
742
  e
743
743
  ), e;
744
- }), ComponentRef = () => import("./component-ref-SSAGqUU1.js").then((e) => e.default).catch((e) => {
744
+ }), ComponentRef = () => import("./component-ref-FN9Rzqu_.js").then((e) => e.default).catch((e) => {
745
745
  throw console.error(
746
746
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
747
747
  e
748
748
  ), e;
749
- }), RepeatedBlock = () => import("./repeated-block-hqi2-jn4.js").then((e) => e.default).catch((e) => {
749
+ }), RepeatedBlock = () => import("./repeated-block-ztDvgKZz.js").then((e) => e.default).catch((e) => {
750
750
  throw console.error(
751
751
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
752
752
  e
@@ -835,11 +835,11 @@ const getComponent = ({
835
835
  }
836
836
  }
837
837
  });
838
- function _sfc_render$p(e, t, n, o, r, s) {
838
+ function _sfc_render$p(e, t, n, o, r, i) {
839
839
  var c;
840
- const i = resolveComponent("BlockStyles"), l = resolveComponent("ComponentRef"), a = resolveComponent("Block", !0), d = resolveComponent("BlockWrapper"), u = resolveComponent("RepeatedBlock");
840
+ const s = resolveComponent("BlockStyles"), l = resolveComponent("ComponentRef"), a = resolveComponent("Block", !0), d = resolveComponent("BlockWrapper"), u = resolveComponent("RepeatedBlock");
841
841
  return e.canShowBlock ? (openBlock(), createElementBlock(Fragment$1, { key: 0 }, [
842
- createVNode(i, {
842
+ createVNode(s, {
843
843
  block: e.block,
844
844
  context: e.context
845
845
  }, null, 8, ["block", "context"]),
@@ -940,15 +940,15 @@ const Block = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$p
940
940
  }
941
941
  }
942
942
  });
943
- function _sfc_render$o(e, t, n, o, r, s) {
943
+ function _sfc_render$o(e, t, n, o, r, i) {
944
944
  return openBlock(), createBlock(resolveDynamicComponent(e.BlocksWrapper), mergeProps({
945
945
  class: e.className + " component-178o76acnws",
946
946
  "builder-path": e.path,
947
947
  "builder-parent-id": e.parent,
948
948
  style: e.styleProp,
949
- onClick: (i) => e.onClick(),
950
- onMouseEnter: (i) => e.onMouseEnter(),
951
- onKeyPress: (i) => e.onClick()
949
+ onClick: (s) => e.onClick(),
950
+ onMouseEnter: (s) => e.onMouseEnter(),
951
+ onKeyPress: (s) => e.onClick()
952
952
  }, { ...e.BlocksWrapperProps }), {
953
953
  default: withCtx(() => [
954
954
  renderSlot(e.$slots, "default", {}, void 0, !0)
@@ -973,9 +973,9 @@ const BlocksWrapper = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_
973
973
  componentsContext: ComponentsContext.key
974
974
  }
975
975
  });
976
- function _sfc_render$n(e, t, n, o, r, s) {
976
+ function _sfc_render$n(e, t, n, o, r, i) {
977
977
  var a, d;
978
- const i = resolveComponent("Block"), l = resolveComponent("BlocksWrapper");
978
+ const s = resolveComponent("Block"), l = resolveComponent("BlocksWrapper");
979
979
  return openBlock(), createBlock(l, {
980
980
  blocks: e.blocks,
981
981
  parent: e.parent,
@@ -985,7 +985,7 @@ function _sfc_render$n(e, t, n, o, r, s) {
985
985
  BlocksWrapperProps: ((d = e.context) == null ? void 0 : d.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
986
986
  }, {
987
987
  default: withCtx(() => [
988
- e.blocks ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList(e.blocks, (u, c) => (openBlock(), createBlock(i, {
988
+ e.blocks ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList(e.blocks, (u, c) => (openBlock(), createBlock(s, {
989
989
  key: u.id,
990
990
  block: u,
991
991
  linkComponent: e.linkComponent,
@@ -1000,7 +1000,7 @@ const Blocks = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$
1000
1000
  name: "dynamic-div",
1001
1001
  props: []
1002
1002
  });
1003
- function _sfc_render$m(e, t, n, o, r, s) {
1003
+ function _sfc_render$m(e, t, n, o, r, i) {
1004
1004
  return openBlock(), createElementBlock("div", null, [
1005
1005
  renderSlot(e.$slots, "default")
1006
1006
  ]);
@@ -1053,12 +1053,12 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1053
1053
  min: r,
1054
1054
  default: r + 1
1055
1055
  };
1056
- const s = n.medium.max + 1;
1056
+ const i = n.medium.max + 1;
1057
1057
  return n.large = {
1058
1058
  max: 2e3,
1059
1059
  // TODO: decide upper limit
1060
- min: s,
1061
- default: s + 1
1060
+ min: i,
1061
+ default: i + 1
1062
1062
  }, n;
1063
1063
  }, getColumnsClass = (e) => `builder-columns ${e}-breakpoints`, _sfc_main$m = defineComponent({
1064
1064
  name: "builder-columns",
@@ -1122,7 +1122,7 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1122
1122
  };
1123
1123
  },
1124
1124
  columnCssVars(e) {
1125
- const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", s = 0;
1125
+ const t = e === 0 ? 0 : this.gutterSize, n = this.getColumnCssWidth(e), o = `${t}px`, r = "100%", i = 0;
1126
1126
  return {
1127
1127
  ...{
1128
1128
  display: "flex",
@@ -1136,7 +1136,7 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1136
1136
  desktopStyle: n
1137
1137
  }),
1138
1138
  "--column-margin-left-mobile": this.getMobileStyle({
1139
- stackedStyle: s,
1139
+ stackedStyle: i,
1140
1140
  desktopStyle: o
1141
1141
  }),
1142
1142
  "--column-width-tablet": this.getTabletStyle({
@@ -1144,7 +1144,7 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1144
1144
  desktopStyle: n
1145
1145
  }),
1146
1146
  "--column-margin-left-tablet": this.getTabletStyle({
1147
- stackedStyle: s,
1147
+ stackedStyle: i,
1148
1148
  desktopStyle: o
1149
1149
  })
1150
1150
  };
@@ -1193,14 +1193,14 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1193
1193
  }
1194
1194
  }
1195
1195
  });
1196
- function _sfc_render$l(e, t, n, o, r, s) {
1196
+ function _sfc_render$l(e, t, n, o, r, i) {
1197
1197
  var d;
1198
- const i = resolveComponent("InlinedStyles"), l = resolveComponent("Blocks"), a = resolveComponent("DynamicRenderer");
1198
+ const s = resolveComponent("InlinedStyles"), l = resolveComponent("Blocks"), a = resolveComponent("DynamicRenderer");
1199
1199
  return openBlock(), createElementBlock("div", mergeProps({
1200
1200
  class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-2brhoa1k8gd",
1201
1201
  style: e.columnsCssVars()
1202
1202
  }, {}), [
1203
- e.TARGET !== "reactNative" ? (openBlock(), createBlock(i, {
1203
+ e.TARGET !== "reactNative" ? (openBlock(), createBlock(s, {
1204
1204
  key: 0,
1205
1205
  id: "builderio-columns",
1206
1206
  styles: e.columnsStyles(),
@@ -1233,7 +1233,7 @@ const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render
1233
1233
  name: "builder-fragment-component",
1234
1234
  props: []
1235
1235
  });
1236
- function _sfc_render$k(e, t, n, o, r, s) {
1236
+ function _sfc_render$k(e, t, n, o, r, i) {
1237
1237
  return openBlock(), createElementBlock("span", null, [
1238
1238
  renderSlot(e.$slots, "default")
1239
1239
  ]);
@@ -1253,8 +1253,8 @@ function getShopifyImageUrl(e, t) {
1253
1253
  return removeProtocol(e);
1254
1254
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1255
1255
  if (n) {
1256
- const o = e.split(n[0]), r = n[3], s = t.match("x") ? t : `${t}x`;
1257
- return removeProtocol(`${o[0]}_${s}${r}`);
1256
+ const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
1257
+ return removeProtocol(`${o[0]}_${i}${r}`);
1258
1258
  }
1259
1259
  return null;
1260
1260
  }
@@ -1294,12 +1294,14 @@ const _sfc_main$k = defineComponent({
1294
1294
  // images, otherwise you can supply this prop manually
1295
1295
  !(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
1296
1296
  return this.srcset;
1297
- if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1298
- if (!this.srcset.includes(this.image.split("?")[0]))
1299
- return console.debug("Removed given srcset"), getSrcSet(t);
1300
- } else if (this.image && !this.srcset)
1297
+ if (!this.noWebp) {
1298
+ if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1299
+ if (!this.srcset.includes(this.image.split("?")[0]))
1300
+ return console.debug("Removed given srcset"), getSrcSet(t);
1301
+ } else if (this.image && !this.srcset)
1302
+ return getSrcSet(t);
1301
1303
  return getSrcSet(t);
1302
- return getSrcSet(t);
1304
+ }
1303
1305
  },
1304
1306
  webpSrcSet() {
1305
1307
  var e;
@@ -1320,8 +1322,8 @@ const _sfc_main$k = defineComponent({
1320
1322
  key: 2,
1321
1323
  class: "div-1pl23ac79ld-2"
1322
1324
  };
1323
- function _sfc_render$j(e, t, n, o, r, s) {
1324
- var i, l, a, d, u, c;
1325
+ function _sfc_render$j(e, t, n, o, r, i) {
1326
+ var s, l, a, d, u, c;
1325
1327
  return openBlock(), createElementBlock(Fragment$1, null, [
1326
1328
  createElementVNode("picture", null, [
1327
1329
  e.webpSrcSet ? (openBlock(), createElementBlock("source", {
@@ -1347,7 +1349,7 @@ function _sfc_render$j(e, t, n, o, r, s) {
1347
1349
  sizes: e.sizes
1348
1350
  }, null, 14, _hoisted_2$4)
1349
1351
  ]),
1350
- e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (openBlock(), createElementBlock("div", {
1352
+ e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (openBlock(), createElementBlock("div", {
1351
1353
  key: 0,
1352
1354
  class: "builder-image-sizer div-1pl23ac79ld",
1353
1355
  style: normalizeStyle({
@@ -1360,14 +1362,14 @@ function _sfc_render$j(e, t, n, o, r, s) {
1360
1362
  ])) : createCommentVNode("", !0)
1361
1363
  ], 64);
1362
1364
  }
1363
- const Image = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$j], ["__scopeId", "data-v-0d528855"]]), _sfc_main$j = defineComponent({
1365
+ const Image = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$j], ["__scopeId", "data-v-ce62b8d6"]]), _sfc_main$j = defineComponent({
1364
1366
  name: "builder-section-component",
1365
1367
  props: ["attributes", "maxWidth"],
1366
1368
  data() {
1367
1369
  return { filterAttrs };
1368
1370
  }
1369
1371
  });
1370
- function _sfc_render$i(e, t, n, o, r, s) {
1372
+ function _sfc_render$i(e, t, n, o, r, i) {
1371
1373
  return openBlock(), createElementBlock("section", mergeProps({
1372
1374
  style: {
1373
1375
  width: "100%",
@@ -1406,8 +1408,8 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
1406
1408
  value: t,
1407
1409
  expires: n
1408
1410
  }) => {
1409
- const r = (isBrowser() ? location.protocol === "https:" : !0) ? SECURE_CONFIG : [[]], s = n ? [["expires", n.toUTCString()]] : [[]], i = [[e, t], ...s, ["path", "/"], ["domain", getTopLevelDomain(window.location.hostname)], ...r];
1410
- return stringifyCookie(i);
1411
+ const r = (isBrowser() ? location.protocol === "https:" : !0) ? SECURE_CONFIG : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", getTopLevelDomain(window.location.hostname)], ...r];
1412
+ return stringifyCookie(s);
1411
1413
  }, setCookie = async ({
1412
1414
  name: e,
1413
1415
  value: t,
@@ -1450,10 +1452,10 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
1450
1452
  var r;
1451
1453
  let n = 0;
1452
1454
  const o = Math.random();
1453
- for (const s in t) {
1454
- const i = (r = t[s]) == null ? void 0 : r.testRatio;
1455
- if (n += i, o < n)
1456
- return s;
1455
+ for (const i in t) {
1456
+ const s = (r = t[i]) == null ? void 0 : r.testRatio;
1457
+ if (n += s, o < n)
1458
+ return i;
1457
1459
  }
1458
1460
  return e;
1459
1461
  }, getAndSetVariantId = (e) => {
@@ -1697,18 +1699,18 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
1697
1699
  `.builder-accordion-title[data-index="${n}"]`
1698
1700
  );
1699
1701
  if (e = n, r) {
1700
- let s = r.getBoundingClientRect();
1702
+ let i = r.getBoundingClientRect();
1701
1703
  for (; r = r && r.nextElementSibling; )
1702
1704
  if (r) {
1703
1705
  if (r.classList.contains("builder-accordion-detail"))
1704
1706
  continue;
1705
- const i = r.getBoundingClientRect();
1706
- if (i.left > s.left) {
1707
+ const s = r.getBoundingClientRect();
1708
+ if (s.left > i.left) {
1707
1709
  const l = parseInt(
1708
1710
  r.getAttribute("data-index") || "",
1709
1711
  10
1710
1712
  );
1711
- isNaN(l) || (s = i, e = l);
1713
+ isNaN(l) || (i = s, e = l);
1712
1714
  } else
1713
1715
  break;
1714
1716
  }
@@ -1740,8 +1742,8 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
1740
1742
  }
1741
1743
  }
1742
1744
  }), _hoisted_1$a = ["data-index", "onClick"];
1743
- function _sfc_render$h(e, t, n, o, r, s) {
1744
- const i = resolveComponent("Blocks");
1745
+ function _sfc_render$h(e, t, n, o, r, i) {
1746
+ const s = resolveComponent("Blocks");
1745
1747
  return openBlock(), createElementBlock("div", {
1746
1748
  class: "builder-accordion",
1747
1749
  style: normalizeStyle(e.accordionStyles)
@@ -1757,7 +1759,7 @@ function _sfc_render$h(e, t, n, o, r, s) {
1757
1759
  "data-index": a,
1758
1760
  onClick: (d) => e.onClick(a)
1759
1761
  }, [
1760
- createVNode(i, {
1762
+ createVNode(s, {
1761
1763
  blocks: l.title,
1762
1764
  path: `items.${a}.title`,
1763
1765
  parent: e.builderBlock.id,
@@ -1771,7 +1773,7 @@ function _sfc_render$h(e, t, n, o, r, s) {
1771
1773
  class: normalizeClass(e.getAccordionDetailClassName(a)),
1772
1774
  style: normalizeStyle(e.accordionDetailStyles)
1773
1775
  }, [
1774
- createVNode(i, {
1776
+ createVNode(s, {
1775
1777
  blocks: l.detail,
1776
1778
  path: `items.${a}.detail`,
1777
1779
  parent: e.builderBlock.id,
@@ -1998,7 +2000,7 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
1998
2000
  });
1999
2001
  }
2000
2002
  const n = e.get("columns");
2001
- Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((s) => !s.get("width")) || n.reduce((l, a) => l + a.get("width"), 0) !== 100) && t();
2003
+ Array.isArray(n) && n.find((r) => r.get("width")) && (n.find((i) => !i.get("width")) || n.reduce((l, a) => l + a.get("width"), 0) !== 100) && t();
2002
2004
  }
2003
2005
  }, {
2004
2006
  name: "space",
@@ -2052,7 +2054,7 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2052
2054
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2053
2055
  onChange: (e) => {
2054
2056
  e.delete("srcset"), e.delete("noWebp");
2055
- function n(i, l = 6e4) {
2057
+ function n(s, l = 6e4) {
2056
2058
  return new Promise((a, d) => {
2057
2059
  const u = document.createElement("img");
2058
2060
  let c = !1;
@@ -2060,21 +2062,21 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2060
2062
  c = !0, a(u);
2061
2063
  }, u.addEventListener("error", (p) => {
2062
2064
  console.warn("Image load failed", p.error), d(p.error);
2063
- }), u.src = i, setTimeout(() => {
2065
+ }), u.src = s, setTimeout(() => {
2064
2066
  c || d(new Error("Image load timed out"));
2065
2067
  }, l);
2066
2068
  });
2067
2069
  }
2068
- function o(i) {
2069
- return Math.round(i * 1e3) / 1e3;
2070
+ function o(s) {
2071
+ return Math.round(s * 1e3) / 1e3;
2070
2072
  }
2071
- const r = e.get("image"), s = e.get("aspectRatio");
2072
- if (fetch(r).then((i) => i.blob()).then((i) => {
2073
- i.type.includes("svg") && e.set("noWebp", !0);
2074
- }), r && (!s || s === 0.7041))
2075
- return n(r).then((i) => {
2073
+ const r = e.get("image"), i = e.get("aspectRatio");
2074
+ if (fetch(r).then((s) => s.blob()).then((s) => {
2075
+ s.type.includes("svg") && e.set("noWebp", !0);
2076
+ }), r && (!i || i === 0.7041))
2077
+ return n(r).then((s) => {
2076
2078
  const l = e.get("aspectRatio");
2077
- e.get("image") === r && (!l || l === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
2079
+ e.get("image") === r && (!l || l === 0.7041) && s.width && s.height && (e.set("aspectRatio", o(s.height / s.width)), e.set("height", s.height), e.set("width", s.width));
2078
2080
  });
2079
2081
  }
2080
2082
  }, {
@@ -2200,9 +2202,9 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2200
2202
  components: { Blocks },
2201
2203
  props: ["builderContext", "name"]
2202
2204
  });
2203
- function _sfc_render$g(e, t, n, o, r, s) {
2205
+ function _sfc_render$g(e, t, n, o, r, i) {
2204
2206
  var l, a, d;
2205
- const i = resolveComponent("Blocks");
2207
+ const s = resolveComponent("Blocks");
2206
2208
  return openBlock(), createElementBlock("div", mergeProps(
2207
2209
  { style: {
2208
2210
  pointerEvents: "auto"
@@ -2211,7 +2213,7 @@ function _sfc_render$g(e, t, n, o, r, s) {
2211
2213
  "builder-slot": e.name
2212
2214
  }
2213
2215
  ), [
2214
- createVNode(i, {
2216
+ createVNode(s, {
2215
2217
  parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
2216
2218
  path: `symbol.data.${e.name}`,
2217
2219
  context: e.builderContext,
@@ -2425,8 +2427,8 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2425
2427
  }
2426
2428
  }
2427
2429
  }), _hoisted_1$9 = ["onClick"], _hoisted_2$3 = { key: 0 };
2428
- function _sfc_render$f(e, t, n, o, r, s) {
2429
- const i = resolveComponent("Blocks");
2430
+ function _sfc_render$f(e, t, n, o, r, i) {
2431
+ const s = resolveComponent("Blocks");
2430
2432
  return openBlock(), createElementBlock("div", null, [
2431
2433
  createElementVNode("div", {
2432
2434
  class: "builder-tabs-wrap",
@@ -2445,7 +2447,7 @@ function _sfc_render$f(e, t, n, o, r, s) {
2445
2447
  }),
2446
2448
  onClick: (d) => e.onClick(a)
2447
2449
  }, [
2448
- createVNode(i, {
2450
+ createVNode(s, {
2449
2451
  parent: e.builderBlock.id,
2450
2452
  path: `component.options.tabs.${a}.label`,
2451
2453
  blocks: l.label,
@@ -2456,7 +2458,7 @@ function _sfc_render$f(e, t, n, o, r, s) {
2456
2458
  ], 14, _hoisted_1$9))), 128))
2457
2459
  ], 4),
2458
2460
  e.activeTabContent(e.activeTab) ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
2459
- createVNode(i, {
2461
+ createVNode(s, {
2460
2462
  parent: e.builderBlock.id,
2461
2463
  path: `component.options.tabs.${e.activeTab}.content`,
2462
2464
  blocks: e.activeTabContent(e.activeTab),
@@ -2492,11 +2494,11 @@ const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]
2492
2494
  name: "builder-text",
2493
2495
  props: ["text"]
2494
2496
  }), _hoisted_1$8 = ["innerHTML"];
2495
- function _sfc_render$e(e, t, n, o, r, s) {
2496
- var i;
2497
+ function _sfc_render$e(e, t, n, o, r, i) {
2498
+ var s;
2497
2499
  return openBlock(), createElementBlock("div", {
2498
2500
  class: "builder-text",
2499
- innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
2501
+ innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
2500
2502
  style: {
2501
2503
  outline: "none"
2502
2504
  }
@@ -2559,7 +2561,7 @@ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e]
2559
2561
  }
2560
2562
  }
2561
2563
  }), _hoisted_1$7 = ["innerHTML"];
2562
- function _sfc_render$d(e, t, n, o, r, s) {
2564
+ function _sfc_render$d(e, t, n, o, r, i) {
2563
2565
  return openBlock(), createElementBlock("div", {
2564
2566
  ref: "elementRef",
2565
2567
  class: normalizeClass("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
@@ -2624,7 +2626,7 @@ const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_ren
2624
2626
  }
2625
2627
  }
2626
2628
  }), _hoisted_1$6 = ["innerHTML"];
2627
- function _sfc_render$c(e, t, n, o, r, s) {
2629
+ function _sfc_render$c(e, t, n, o, r, i) {
2628
2630
  return openBlock(), createElementBlock("div", {
2629
2631
  class: "builder-embed",
2630
2632
  ref: "elem",
@@ -2872,7 +2874,7 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
2872
2874
  const e = process.env.NODE_ENV || "production";
2873
2875
  return validEnvList.includes(e) ? e : "production";
2874
2876
  }, get = (e, t, n) => {
2875
- const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
2877
+ const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
2876
2878
  return o === void 0 || o === e ? n : o;
2877
2879
  }, _sfc_main$c = defineComponent({
2878
2880
  name: "builder-form-component",
@@ -2932,8 +2934,8 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
2932
2934
  }
2933
2935
  e.preventDefault();
2934
2936
  const o = e.currentTarget || e.target, r = this.customHeaders || {};
2935
- let s;
2936
- const i = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
2937
+ let i;
2938
+ const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
2937
2939
  let p;
2938
2940
  const f = c.name;
2939
2941
  if (c instanceof HTMLInputElement)
@@ -2961,17 +2963,17 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
2961
2963
  if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
2962
2964
  (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
2963
2965
  }), a !== "application/json")
2964
- s = i;
2966
+ i = s;
2965
2967
  else {
2966
2968
  const c = {};
2967
2969
  Array.from(l).forEach(({ value: p, key: f }) => {
2968
2970
  set(c, f, p);
2969
- }), s = JSON.stringify(c);
2971
+ }), i = JSON.stringify(c);
2970
2972
  }
2971
2973
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
2972
2974
  const d = new CustomEvent("presubmit", {
2973
2975
  detail: {
2974
- body: s
2976
+ body: i
2975
2977
  }
2976
2978
  });
2977
2979
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
@@ -2983,7 +2985,7 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
2983
2985
  fetch(
2984
2986
  this.sendSubmissionsTo === "email" ? u : this.action,
2985
2987
  {
2986
- body: s,
2988
+ body: i,
2987
2989
  headers: r,
2988
2990
  method: this.method || "post"
2989
2991
  }
@@ -3037,9 +3039,9 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
3037
3039
  key: 3,
3038
3040
  class: "builder-form-error-text pre-3i4ezorcfhi"
3039
3041
  };
3040
- function _sfc_render$b(e, t, n, o, r, s) {
3042
+ function _sfc_render$b(e, t, n, o, r, i) {
3041
3043
  var a;
3042
- const i = resolveComponent("Block"), l = resolveComponent("Blocks");
3044
+ const s = resolveComponent("Block"), l = resolveComponent("Blocks");
3043
3045
  return openBlock(), createElementBlock("form", mergeProps({
3044
3046
  validate: e.validate,
3045
3047
  ref: "formRef",
@@ -3048,7 +3050,7 @@ function _sfc_render$b(e, t, n, o, r, s) {
3048
3050
  name: e.name,
3049
3051
  onSubmit: t[0] || (t[0] = (d) => e.onSubmit(d))
3050
3052
  }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3051
- e.builderBlock && e.builderBlock.children ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList((a = e.builderBlock) == null ? void 0 : a.children, (d, u) => (openBlock(), createBlock(i, {
3053
+ e.builderBlock && e.builderBlock.children ? (openBlock(!0), createElementBlock(Fragment$1, { key: 0 }, renderList((a = e.builderBlock) == null ? void 0 : a.children, (d, u) => (openBlock(), createBlock(s, {
3052
3054
  key: `form-block-${e.idx}`,
3053
3055
  block: d,
3054
3056
  context: e.builderContext,
@@ -3142,7 +3144,7 @@ const Form = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b]
3142
3144
  return { isEditing, filterAttrs };
3143
3145
  }
3144
3146
  }), _hoisted_1$4 = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3145
- function _sfc_render$a(e, t, n, o, r, s) {
3147
+ function _sfc_render$a(e, t, n, o, r, i) {
3146
3148
  return openBlock(), createElementBlock("input", mergeProps({
3147
3149
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3148
3150
  placeholder: e.placeholder,
@@ -3202,7 +3204,7 @@ const FormInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_rend
3202
3204
  return { isEditing, filterAttrs };
3203
3205
  }
3204
3206
  }), _hoisted_1$3 = ["value", "defaultValue", "name", "required"], _hoisted_2$1 = ["value"];
3205
- function _sfc_render$9(e, t, n, o, r, s) {
3207
+ function _sfc_render$9(e, t, n, o, r, i) {
3206
3208
  return openBlock(), createElementBlock("select", mergeProps({
3207
3209
  value: e.value,
3208
3210
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
@@ -3210,10 +3212,10 @@ function _sfc_render$9(e, t, n, o, r, s) {
3210
3212
  name: e.name,
3211
3213
  required: e.required
3212
3214
  }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
3213
- (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.options, (i, l) => (openBlock(), createElementBlock("option", {
3214
- key: `${i.name}-${l}`,
3215
- value: i.value
3216
- }, toDisplayString(i.name || i.value), 9, _hoisted_2$1))), 128))
3215
+ (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.options, (s, l) => (openBlock(), createElementBlock("option", {
3216
+ key: `${s.name}-${l}`,
3217
+ value: s.value
3218
+ }, toDisplayString(s.name || s.value), 9, _hoisted_2$1))), 128))
3217
3219
  ], 16, _hoisted_1$3);
3218
3220
  }
3219
3221
  const FormSelect = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9]]), componentInfo$3 = {
@@ -3248,7 +3250,7 @@ const FormSelect = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_ren
3248
3250
  return { filterAttrs };
3249
3251
  }
3250
3252
  });
3251
- function _sfc_render$8(e, t, n, o, r, s) {
3253
+ function _sfc_render$8(e, t, n, o, r, i) {
3252
3254
  return openBlock(), createElementBlock("button", mergeProps({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), toDisplayString(e.text), 17);
3253
3255
  }
3254
3256
  const FormSubmitButton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8]]), componentInfo$2 = {
@@ -3301,7 +3303,7 @@ const FormSubmitButton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _s
3301
3303
  return { filterAttrs };
3302
3304
  }
3303
3305
  }), _hoisted_1$2 = ["placeholder", "name", "value", "defaultValue", "required"];
3304
- function _sfc_render$7(e, t, n, o, r, s) {
3306
+ function _sfc_render$7(e, t, n, o, r, i) {
3305
3307
  return openBlock(), createElementBlock("textarea", mergeProps({
3306
3308
  placeholder: e.placeholder,
3307
3309
  name: e.name,
@@ -3338,7 +3340,7 @@ const Textarea = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_rende
3338
3340
  return { isEditing, filterAttrs };
3339
3341
  }
3340
3342
  }), _hoisted_1$1 = ["alt", "src"];
3341
- function _sfc_render$6(e, t, n, o, r, s) {
3343
+ function _sfc_render$6(e, t, n, o, r, i) {
3342
3344
  return openBlock(), createElementBlock("img", mergeProps({
3343
3345
  style: {
3344
3346
  objectFit: e.backgroundSize || "cover",
@@ -3501,8 +3503,8 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]
3501
3503
  height: "100%"
3502
3504
  }
3503
3505
  };
3504
- function _sfc_render$5(e, t, n, o, r, s) {
3505
- var i, l, a, d, u, c, p;
3506
+ function _sfc_render$5(e, t, n, o, r, i) {
3507
+ var s, l, a, d, u, c, p;
3506
3508
  return openBlock(), createElementBlock("div", _hoisted_1, [
3507
3509
  createElementVNode("video", mergeProps({
3508
3510
  class: "builder-video",
@@ -3510,7 +3512,7 @@ function _sfc_render$5(e, t, n, o, r, s) {
3510
3512
  style: {
3511
3513
  width: "100%",
3512
3514
  height: "100%",
3513
- ...(i = e.attributes) == null ? void 0 : i.style,
3515
+ ...(s = e.attributes) == null ? void 0 : s.style,
3514
3516
  objectFit: e.fit,
3515
3517
  objectPosition: e.position,
3516
3518
  // Hack to get object fit to work as expected and
@@ -3615,9 +3617,9 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
3615
3617
  ...t
3616
3618
  }) => ({
3617
3619
  ...fastClone(t),
3618
- inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
3620
+ inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, i]) => ({
3619
3621
  ...o,
3620
- [r]: serializeValue(s)
3622
+ [r]: serializeValue(i)
3621
3623
  }), {}))
3622
3624
  }), UPDATE_COOKIES_AND_STYLES_SCRIPT = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3623
3625
  function getAndSetVariantId() {
@@ -3751,20 +3753,20 @@ function getFetch() {
3751
3753
  const fetch$1 = getFetch();
3752
3754
  function flatten(e, t = null, n = ".") {
3753
3755
  return Object.keys(e).reduce((o, r) => {
3754
- const s = e[r], i = [t, r].filter(Boolean).join(n);
3755
- return [typeof s == "object", s !== null, !(Array.isArray(s) && s.length === 0)].every(Boolean) ? {
3756
+ const i = e[r], s = [t, r].filter(Boolean).join(n);
3757
+ return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
3756
3758
  ...o,
3757
- ...flatten(s, i, n)
3759
+ ...flatten(i, s, n)
3758
3760
  } : {
3759
3761
  ...o,
3760
- [i]: s
3762
+ [s]: i
3761
3763
  };
3762
3764
  }, {});
3763
3765
  }
3764
3766
  function flattenMongoQuery(e, t, n = {}) {
3765
3767
  for (const o in e) {
3766
- const r = e[o], s = t ? t + "." + o : o;
3767
- r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((i) => i.startsWith("$")) ? flattenMongoQuery(r, s, n) : n[s] = r;
3768
+ const r = e[o], i = t ? t + "." + o : o;
3769
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? flattenMongoQuery(r, i, n) : n[i] = r;
3768
3770
  }
3769
3771
  return n;
3770
3772
  }
@@ -3789,8 +3791,8 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
3789
3791
  userAttributes: n,
3790
3792
  query: o,
3791
3793
  model: r,
3792
- apiKey: s,
3793
- enrich: i,
3794
+ apiKey: i,
3795
+ enrich: s,
3794
3796
  locale: l,
3795
3797
  apiVersion: a = DEFAULT_API_VERSION,
3796
3798
  fields: d,
@@ -3801,12 +3803,12 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
3801
3803
  sort: m,
3802
3804
  includeUnpublished: b
3803
3805
  } = e;
3804
- if (!s)
3806
+ if (!i)
3805
3807
  throw new Error("Missing API key");
3806
3808
  if (!["v3"].includes(a))
3807
3809
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
3808
3810
  const C = t !== 1, g = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
3809
- if (g.searchParams.set("apiKey", s), g.searchParams.set("limit", String(t)), g.searchParams.set("noTraverse", String(C)), g.searchParams.set("includeRefs", String(!0)), l && g.searchParams.set("locale", l), i && g.searchParams.set("enrich", String(i)), g.searchParams.set("omit", u || "meta.componentsUsed"), d && g.searchParams.set("fields", d), Number.isFinite(c) && c > -1 && g.searchParams.set("offset", String(Math.floor(c))), typeof b == "boolean" && g.searchParams.set("includeUnpublished", String(b)), p && isPositiveNumber(p) && g.searchParams.set("cacheSeconds", String(p)), f && isPositiveNumber(f) && g.searchParams.set("staleCacheSeconds", String(f)), m) {
3811
+ if (g.searchParams.set("apiKey", i), g.searchParams.set("limit", String(t)), g.searchParams.set("noTraverse", String(C)), g.searchParams.set("includeRefs", String(!0)), l && g.searchParams.set("locale", l), s && g.searchParams.set("enrich", String(s)), g.searchParams.set("omit", u || "meta.componentsUsed"), d && g.searchParams.set("fields", d), Number.isFinite(c) && c > -1 && g.searchParams.set("offset", String(Math.floor(c))), typeof b == "boolean" && g.searchParams.set("includeUnpublished", String(b)), p && isPositiveNumber(p) && g.searchParams.set("cacheSeconds", String(p)), f && isPositiveNumber(f) && g.searchParams.set("staleCacheSeconds", String(f)), m) {
3810
3812
  const k = flatten({
3811
3813
  sort: m
3812
3814
  });
@@ -3844,9 +3846,9 @@ const _fetchContent = async (e) => {
3844
3846
  return t.results;
3845
3847
  try {
3846
3848
  const r = [];
3847
- for (const s of t.results)
3849
+ for (const i of t.results)
3848
3850
  r.push(await handleABTesting({
3849
- item: s,
3851
+ item: i,
3850
3852
  canTrack: o
3851
3853
  }));
3852
3854
  t.results = r;
@@ -4034,10 +4036,10 @@ const findParentElement = (e, t, n = !0) => {
4034
4036
  event: e,
4035
4037
  target: t
4036
4038
  }) => {
4037
- const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, s = round(o / n.width), i = round(r / n.height);
4039
+ const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = round(o / n.width), s = round(r / n.height);
4038
4040
  return {
4039
- x: s,
4040
- y: i
4041
+ x: i,
4042
+ y: s
4041
4043
  };
4042
4044
  }, getInteractionPropertiesForEvent = (e) => {
4043
4045
  const t = e.target, n = t && findBuilderParent(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
@@ -4062,7 +4064,7 @@ function isFromTrustedHost(e, t) {
4062
4064
  const n = new URL(t.origin), o = n.hostname;
4063
4065
  return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
4064
4066
  }
4065
- const SDK_VERSION = "2.0.1", registry = {};
4067
+ const SDK_VERSION = "2.0.2", registry = {};
4066
4068
  function register(e, t) {
4067
4069
  let n = registry[e];
4068
4070
  if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
@@ -4123,7 +4125,7 @@ const setupBrowserForEditing = (e = {}) => {
4123
4125
  options: e
4124
4126
  }
4125
4127
  }, "*"), window.addEventListener("message", (o) => {
4126
- var s, i;
4128
+ var i, s;
4127
4129
  if (!isFromTrustedHost(e.trustedHosts, o))
4128
4130
  return;
4129
4131
  const {
@@ -4139,7 +4141,7 @@ const setupBrowserForEditing = (e = {}) => {
4139
4141
  } catch (f) {
4140
4142
  p = f;
4141
4143
  }
4142
- p ? (s = window.parent) == null || s.postMessage({
4144
+ p ? (i = window.parent) == null || i.postMessage({
4143
4145
  type: "builder.evaluateError",
4144
4146
  data: {
4145
4147
  id: d,
@@ -4154,7 +4156,7 @@ const setupBrowserForEditing = (e = {}) => {
4154
4156
  result: f
4155
4157
  }
4156
4158
  }, "*");
4157
- }).catch(console.error) : (i = window.parent) == null || i.postMessage({
4159
+ }).catch(console.error) : (s = window.parent) == null || s.postMessage({
4158
4160
  type: "builder.evaluateResult",
4159
4161
  data: {
4160
4162
  result: c,
@@ -4186,8 +4188,8 @@ const setupBrowserForEditing = (e = {}) => {
4186
4188
  break;
4187
4189
  }
4188
4190
  case "builder.contentUpdate": {
4189
- const s = r.data, i = s.key || s.alias || s.entry || s.modelName, l = s.data;
4190
- i === e && n.contentUpdate(l);
4191
+ const i = r.data, s = i.key || i.alias || i.entry || i.modelName, l = i.data;
4192
+ s === e && n.contentUpdate(l);
4191
4193
  break;
4192
4194
  }
4193
4195
  }
@@ -4211,8 +4213,8 @@ const setupBrowserForEditing = (e = {}) => {
4211
4213
  window.removeEventListener("message", o);
4212
4214
  };
4213
4215
  }, getCssFromFont = (e) => {
4214
- var s;
4215
- const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((s = e == null ? void 0 : e.files) == null ? void 0 : s.regular);
4216
+ var i;
4217
+ const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
4216
4218
  let r = "";
4217
4219
  if (o && t && n && (r += `
4218
4220
  @font-face {
@@ -4222,16 +4224,16 @@ font-display: fallback;
4222
4224
  font-weight: 400;
4223
4225
  }
4224
4226
  `.trim()), e.files)
4225
- for (const i in e.files) {
4226
- if (!(String(Number(i)) === i))
4227
+ for (const s in e.files) {
4228
+ if (!(String(Number(s)) === s))
4227
4229
  continue;
4228
- const a = e.files[i];
4230
+ const a = e.files[s];
4229
4231
  a && a !== o && (r += `
4230
4232
  @font-face {
4231
4233
  font-family: "${t}";
4232
4234
  src: url('${a}') format('woff2');
4233
4235
  font-display: fallback;
4234
- font-weight: ${i};
4236
+ font-weight: ${s};
4235
4237
  }
4236
4238
  `.trim());
4237
4239
  }
@@ -4302,13 +4304,13 @@ font-weight: ${i};
4302
4304
  if (isEditing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4303
4305
  new CustomEvent("initeditingbldr")
4304
4306
  ), this.builderContextSignal.content && getDefaultCanTrack(this.canTrack)) {
4305
- const s = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, i = (o = this.builderContextSignal.content) == null ? void 0 : o.id, l = this.apiKey;
4307
+ const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, s = (o = this.builderContextSignal.content) == null ? void 0 : o.id, l = this.apiKey;
4306
4308
  _track({
4307
4309
  type: "impression",
4308
4310
  canTrack: !0,
4309
- contentId: i,
4311
+ contentId: s,
4310
4312
  apiKey: l,
4311
- variationId: s !== i ? s : void 0
4313
+ variationId: i !== s ? i : void 0
4312
4314
  });
4313
4315
  }
4314
4316
  isPreviewing() && !isEditing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
@@ -4417,7 +4419,7 @@ font-weight: ${i};
4417
4419
  this.builderContextSignal.rootSetState ? (o = (n = this.builderContextSignal).rootSetState) == null || o.call(n, t) : this.builderContextSignal.rootState = t;
4418
4420
  },
4419
4421
  mergeNewContent(e) {
4420
- var n, o, r, s, i;
4422
+ var n, o, r, i, s;
4421
4423
  const t = {
4422
4424
  ...this.builderContextSignal.content,
4423
4425
  ...e,
@@ -4428,7 +4430,7 @@ font-weight: ${i};
4428
4430
  meta: {
4429
4431
  ...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
4430
4432
  ...e == null ? void 0 : e.meta,
4431
- breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((i = (s = this.builderContextSignal.content) == null ? void 0 : s.meta) == null ? void 0 : i.breakpoints)
4433
+ breakpoints: ((r = e == null ? void 0 : e.meta) == null ? void 0 : r.breakpoints) || ((s = (i = this.builderContextSignal.content) == null ? void 0 : i.meta) == null ? void 0 : s.breakpoints)
4432
4434
  }
4433
4435
  };
4434
4436
  this.builderContextSignal.content = t;
@@ -4494,9 +4496,9 @@ font-weight: ${i};
4494
4496
  if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !isEditing())
4495
4497
  return;
4496
4498
  this.httpReqsPending[o] = !0;
4497
- const s = r.replace(
4499
+ const i = r.replace(
4498
4500
  /{{([^}]+)}}/g,
4499
- (i, l) => String(
4501
+ (s, l) => String(
4500
4502
  evaluate({
4501
4503
  code: l,
4502
4504
  context: this.context || {},
@@ -4507,12 +4509,12 @@ font-weight: ${i};
4507
4509
  })
4508
4510
  )
4509
4511
  );
4510
- fetch$1(s).then((i) => i.json()).then((i) => {
4512
+ fetch$1(i).then((s) => s.json()).then((s) => {
4511
4513
  this.mergeNewRootState({
4512
- [o]: i
4514
+ [o]: s
4513
4515
  }), this.httpReqsData[o] = !0;
4514
- }).catch((i) => {
4515
- console.error("error fetching dynamic data", r, i);
4516
+ }).catch((s) => {
4517
+ console.error("error fetching dynamic data", r, s);
4516
4518
  }).finally(() => {
4517
4519
  this.httpReqsPending[o] = !1;
4518
4520
  });
@@ -4563,19 +4565,19 @@ font-weight: ${i};
4563
4565
  model: this.model,
4564
4566
  apiKey: this.apiKey,
4565
4567
  apiVersion: this.builderContextSignal.apiVersion
4566
- }).then((s) => {
4567
- s && this.mergeNewContent(s);
4568
+ }).then((i) => {
4569
+ i && this.mergeNewContent(i);
4568
4570
  });
4569
4571
  }
4570
4572
  }
4571
4573
  });
4572
- function _sfc_render$4(e, t, n, o, r, s) {
4573
- var i, l, a;
4574
+ function _sfc_render$4(e, t, n, o, r, i) {
4575
+ var s, l, a;
4574
4576
  return e.builderContextSignal.content ? (openBlock(), createBlock(resolveDynamicComponent(e.ContentWrapper), mergeProps({
4575
4577
  key: 0,
4576
4578
  ref: "elementRef",
4577
4579
  onClick: (d) => e.onClick(d),
4578
- "builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
4580
+ "builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
4579
4581
  "builder-model": e.model,
4580
4582
  class: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
4581
4583
  onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
@@ -4606,9 +4608,9 @@ ${getDefaultStyles(this.isNestedRender)}
4606
4608
  };
4607
4609
  }
4608
4610
  });
4609
- function _sfc_render$3(e, t, n, o, r, s) {
4610
- const i = resolveComponent("InlinedStyles");
4611
- return openBlock(), createBlock(i, {
4611
+ function _sfc_render$3(e, t, n, o, r, i) {
4612
+ const s = resolveComponent("InlinedStyles");
4613
+ return openBlock(), createBlock(s, {
4612
4614
  id: "builderio-content",
4613
4615
  styles: e.injectedStyles,
4614
4616
  nonce: e.nonce
@@ -4619,9 +4621,9 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4619
4621
  data: t,
4620
4622
  locale: n
4621
4623
  }) => {
4622
- var s, i, l;
4623
- const o = {}, r = ((s = e == null ? void 0 : e.data) == null ? void 0 : s.state) || {};
4624
- return (l = (i = e == null ? void 0 : e.data) == null ? void 0 : i.inputs) == null || l.forEach((a) => {
4624
+ var i, s, l;
4625
+ const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
4626
+ return (l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || l.forEach((a) => {
4625
4627
  a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
4626
4628
  }), {
4627
4629
  ...o,
@@ -4653,6 +4655,7 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4653
4655
  props: [
4654
4656
  "content",
4655
4657
  "customComponents",
4658
+ "model",
4656
4659
  "data",
4657
4660
  "locale",
4658
4661
  "context",
@@ -4662,7 +4665,6 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4662
4665
  "blocksWrapper",
4663
4666
  "blocksWrapperProps",
4664
4667
  "nonce",
4665
- "model",
4666
4668
  "enrich",
4667
4669
  "showContent",
4668
4670
  "contentWrapper",
@@ -4673,7 +4675,7 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4673
4675
  "linkComponent"
4674
4676
  ],
4675
4677
  data() {
4676
- var e, t;
4678
+ var e, t, n, o;
4677
4679
  return {
4678
4680
  scriptStr: getUpdateVariantVisibilityScript({
4679
4681
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4683,13 +4685,13 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4683
4685
  }),
4684
4686
  registeredComponents: [
4685
4687
  ...getDefaultRegisteredComponents(),
4686
- ...this.customComponents || []
4688
+ ...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4687
4689
  ].reduce(
4688
- (n, { component: o, ...r }) => ({
4689
- ...n,
4690
- [r.name]: {
4691
- component: wrapComponentRef(o),
4692
- ...serializeComponentInfo(r)
4690
+ (r, { component: i, ...s }) => ({
4691
+ ...r,
4692
+ [s.name]: {
4693
+ component: wrapComponentRef(i),
4694
+ ...serializeComponentInfo(s)
4693
4695
  }
4694
4696
  }),
4695
4697
  {}
@@ -4712,11 +4714,11 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4712
4714
  apiVersion: this.apiVersion,
4713
4715
  componentInfos: [
4714
4716
  ...getDefaultRegisteredComponents(),
4715
- ...this.customComponents || []
4717
+ ...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4716
4718
  ].reduce(
4717
- (n, { component: o, ...r }) => ({
4718
- ...n,
4719
- [r.name]: serializeComponentInfo(r)
4719
+ (r, { component: i, ...s }) => ({
4720
+ ...r,
4721
+ [s.name]: serializeComponentInfo(s)
4720
4722
  }),
4721
4723
  {}
4722
4724
  ),
@@ -4742,8 +4744,8 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4742
4744
  }
4743
4745
  }
4744
4746
  });
4745
- function _sfc_render$2(e, t, n, o, r, s) {
4746
- const i = resolveComponent("InlinedScript"), l = resolveComponent("ContentStyles"), a = resolveComponent("Blocks"), d = resolveComponent("EnableEditor");
4747
+ function _sfc_render$2(e, t, n, o, r, i) {
4748
+ const s = resolveComponent("InlinedScript"), l = resolveComponent("ContentStyles"), a = resolveComponent("Blocks"), d = resolveComponent("EnableEditor");
4747
4749
  return openBlock(), createBlock(d, mergeProps({
4748
4750
  nonce: e.nonce,
4749
4751
  content: e.content,
@@ -4763,7 +4765,7 @@ function _sfc_render$2(e, t, n, o, r, s) {
4763
4765
  default: withCtx(() => {
4764
4766
  var u, c, p, f, m, b, C;
4765
4767
  return [
4766
- e.isSsrAbTest ? (openBlock(), createBlock(i, {
4768
+ e.isSsrAbTest ? (openBlock(), createBlock(s, {
4767
4769
  key: 0,
4768
4770
  id: "builderio-variant-visibility",
4769
4771
  scriptStr: e.scriptStr,
@@ -4828,8 +4830,6 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
4828
4830
  },
4829
4831
  mounted() {
4830
4832
  },
4831
- updated() {
4832
- },
4833
4833
  computed: {
4834
4834
  updateCookieAndStylesScriptStr() {
4835
4835
  var e;
@@ -4856,10 +4856,10 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
4856
4856
  }
4857
4857
  }
4858
4858
  });
4859
- function _sfc_render$1(e, t, n, o, r, s) {
4860
- const i = resolveComponent("InlinedScript"), l = resolveComponent("InlinedStyles"), a = resolveComponent("ContentComponent");
4859
+ function _sfc_render$1(e, t, n, o, r, i) {
4860
+ const s = resolveComponent("InlinedScript"), l = resolveComponent("InlinedStyles"), a = resolveComponent("ContentComponent");
4861
4861
  return openBlock(), createElementBlock(Fragment$1, null, [
4862
- !e.isNestedRender && e.TARGET !== "reactNative" ? (openBlock(), createBlock(i, {
4862
+ !e.isNestedRender && e.TARGET !== "reactNative" ? (openBlock(), createBlock(s, {
4863
4863
  key: 0,
4864
4864
  id: "builderio-init-variants-fns",
4865
4865
  scriptStr: e.getInitVariantsFnsScriptString(),
@@ -4871,7 +4871,7 @@ function _sfc_render$1(e, t, n, o, r, s) {
4871
4871
  styles: e.hideVariantsStyleString,
4872
4872
  nonce: e.nonce || ""
4873
4873
  }, null, 8, ["styles", "nonce"]),
4874
- createVNode(i, {
4874
+ createVNode(s, {
4875
4875
  id: "builderio-variants-visibility",
4876
4876
  scriptStr: e.updateCookieAndStylesScriptStr,
4877
4877
  nonce: e.nonce || ""
@@ -5004,11 +5004,11 @@ const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sf
5004
5004
  }
5005
5005
  }
5006
5006
  });
5007
- function _sfc_render(e, t, n, o, r, s) {
5007
+ function _sfc_render(e, t, n, o, r, i) {
5008
5008
  var l, a, d, u, c;
5009
- const i = resolveComponent("ContentVariants");
5009
+ const s = resolveComponent("ContentVariants");
5010
5010
  return openBlock(), createElementBlock("div", mergeProps({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, toHandlers(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
5011
- createVNode(i, {
5011
+ createVNode(s, {
5012
5012
  nonce: e.builderContext.nonce,
5013
5013
  isNestedRender: !0,
5014
5014
  apiVersion: e.builderContext.apiVersion,
@@ -5044,7 +5044,7 @@ function setEditorSettings(e) {
5044
5044
  }
5045
5045
  }
5046
5046
  const fetchBuilderProps = async (e) => {
5047
- var o, r, s;
5047
+ var o, r, i;
5048
5048
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
5049
5049
  ...e,
5050
5050
  apiKey: e.apiKey,
@@ -5055,7 +5055,7 @@ const fetchBuilderProps = async (e) => {
5055
5055
  urlPath: t
5056
5056
  } : {}
5057
5057
  },
5058
- options: getBuilderSearchParams(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
5058
+ options: getBuilderSearchParams(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
5059
5059
  };
5060
5060
  return {
5061
5061
  apiKey: n.apiKey,