@builder.io/sdk-vue 2.0.1 → 2.0.3

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 (55) hide show
  1. package/lib/browser/{block-styles-Csi42CXj.cjs → block-styles-GNMuV-dL.cjs} +1 -1
  2. package/lib/browser/{block-styles-svOVzDaV.js → block-styles-mooo-nyz.js} +1 -1
  3. package/lib/browser/{block-wrapper-KGQI5yrU.js → block-wrapper-3cYhLXDa.js} +3 -3
  4. package/lib/browser/{block-wrapper-GE-RFbYp.cjs → block-wrapper-3lUpHc_o.cjs} +1 -1
  5. package/lib/browser/{component-ref-k5NF2o_L.js → component-ref-A7Jq3Gj-.js} +2 -2
  6. package/lib/browser/{component-ref-X2UZCaau.cjs → component-ref-VU3zC7u4.cjs} +1 -1
  7. package/lib/browser/constants/sdk-version.d.ts +1 -1
  8. package/lib/browser/functions/register-component.d.ts +2 -2
  9. package/lib/browser/{get-block-properties-lkKJCs4_.cjs → get-block-properties-Eyms9W8F.cjs} +1 -1
  10. package/lib/browser/{get-block-properties-1Sn1T_z8.js → get-block-properties-zWa4TdEe.js} +1 -1
  11. package/lib/browser/{index-zc0i09p9.js → index-ToBML8l-.js} +259 -263
  12. package/lib/browser/index-hqlNfni4.cjs +166 -0
  13. package/lib/browser/index.cjs +1 -1
  14. package/lib/browser/index.mjs +1 -1
  15. package/lib/browser/{repeated-block-BxE-FBVv.js → repeated-block-AKO0QANq.js} +2 -2
  16. package/lib/browser/{repeated-block-U8EfEnWl.cjs → repeated-block-EF0Lb_nG.cjs} +1 -1
  17. package/lib/browser/style.css +1 -1
  18. package/lib/edge/{block-styles-fRc_JL86.cjs → block-styles-dvlkOfyP.cjs} +1 -1
  19. package/lib/edge/{block-styles-F04q1oh7.js → block-styles-uNDwUd0D.js} +1 -1
  20. package/lib/{node/block-wrapper-x4ztktEw.cjs → edge/block-wrapper-BGvBDPqY.cjs} +1 -1
  21. package/lib/edge/{block-wrapper-8j2OMXf0.js → block-wrapper-I5fwbjlI.js} +3 -3
  22. package/lib/{node/component-ref-SSAGqUU1.js → edge/component-ref-eBvirZir.js} +2 -2
  23. package/lib/{node/component-ref-Xsv_XmLR.cjs → edge/component-ref-xFqV17uV.cjs} +1 -1
  24. package/lib/edge/constants/sdk-version.d.ts +1 -1
  25. package/lib/edge/functions/register-component.d.ts +2 -2
  26. package/lib/edge/{get-block-properties-T-X8E9sU.cjs → get-block-properties-Kv6zU6Qq.cjs} +1 -1
  27. package/lib/edge/{get-block-properties-aLqPRHin.js → get-block-properties-gUzPvYeh.js} +1 -1
  28. package/lib/edge/{index-Hw76nggP.js → index-R7KJFxff.js} +501 -505
  29. package/lib/edge/index-bWkTiFYf.cjs +186 -0
  30. package/lib/edge/index.cjs +1 -1
  31. package/lib/edge/index.mjs +1 -1
  32. package/lib/edge/{repeated-block-iGJv6g_d.cjs → repeated-block-ixPgqHgZ.cjs} +1 -1
  33. package/lib/edge/{repeated-block-RuwJfamt.js → repeated-block-kklYPBl5.js} +2 -2
  34. package/lib/edge/style.css +1 -1
  35. package/lib/node/{block-styles-akqgR8wB.js → block-styles-AzjY9HjK.js} +1 -1
  36. package/lib/node/{block-styles-fnIQFp0q.cjs → block-styles-zxsWOqgo.cjs} +1 -1
  37. package/lib/node/{block-wrapper-xIeM4taN.js → block-wrapper-cHo1DCUj.js} +3 -3
  38. package/lib/{edge/block-wrapper-ai3_EF77.cjs → node/block-wrapper-fKNvisIf.cjs} +1 -1
  39. package/lib/{edge/component-ref-okii_K_0.js → node/component-ref-Vf2FhwSC.js} +2 -2
  40. package/lib/{edge/component-ref-adfadHtQ.cjs → node/component-ref-xMPuQvi5.cjs} +1 -1
  41. package/lib/node/constants/sdk-version.d.ts +1 -1
  42. package/lib/node/functions/register-component.d.ts +2 -2
  43. package/lib/node/{get-block-properties-gYAacxBD.cjs → get-block-properties-dCFsQQmt.cjs} +1 -1
  44. package/lib/node/{get-block-properties-4897A0cX.js → get-block-properties-l5K2eFkb.js} +1 -1
  45. package/lib/node/{index-ZwTY1dOi.js → index-bsHToMxW.js} +239 -243
  46. package/lib/node/index-xYSllAJG.cjs +213 -0
  47. package/lib/node/index.cjs +1 -1
  48. package/lib/node/index.mjs +1 -1
  49. package/lib/node/{repeated-block-hqi2-jn4.js → repeated-block-7np7Gpgm.js} +2 -2
  50. package/lib/node/{repeated-block-kVVd7Ki5.cjs → repeated-block-DcYWHCj0.cjs} +1 -1
  51. package/lib/node/style.css +1 -1
  52. package/package.json +1 -1
  53. package/lib/browser/index-5WrmkFk4.cjs +0 -166
  54. package/lib/edge/index-kEvRBdly.cjs +0 -186
  55. 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-AzjY9HjK.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-cHo1DCUj.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-Vf2FhwSC.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-7np7Gpgm.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
  };
@@ -1156,6 +1156,7 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1156
1156
  )[e].max;
1157
1157
  },
1158
1158
  columnsStyles() {
1159
+ const e = `.${this.builderBlock.id}-breakpoints > .builder-column`;
1159
1160
  return `
1160
1161
  @media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
1161
1162
  .${this.builderBlock.id}-breakpoints {
@@ -1163,7 +1164,7 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1163
1164
  align-items: stretch;
1164
1165
  }
1165
1166
 
1166
- .${this.builderBlock.id}-breakpoints > .builder-column {
1167
+ ${e} {
1167
1168
  width: var(--column-width-tablet) !important;
1168
1169
  margin-left: var(--column-margin-left-tablet) !important;
1169
1170
  }
@@ -1175,7 +1176,7 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1175
1176
  align-items: stretch;
1176
1177
  }
1177
1178
 
1178
- .${this.builderBlock.id}-breakpoints > .builder-column {
1179
+ ${e} {
1179
1180
  width: var(--column-width-mobile) !important;
1180
1181
  margin-left: var(--column-margin-left-mobile) !important;
1181
1182
  }
@@ -1193,14 +1194,14 @@ const DynamicDiv = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_ren
1193
1194
  }
1194
1195
  }
1195
1196
  });
1196
- function _sfc_render$l(e, t, n, o, r, s) {
1197
+ function _sfc_render$l(e, t, n, o, r, i) {
1197
1198
  var d;
1198
- const i = resolveComponent("InlinedStyles"), l = resolveComponent("Blocks"), a = resolveComponent("DynamicRenderer");
1199
+ const s = resolveComponent("InlinedStyles"), l = resolveComponent("Blocks"), a = resolveComponent("DynamicRenderer");
1199
1200
  return openBlock(), createElementBlock("div", mergeProps({
1200
- class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-2brhoa1k8gd",
1201
+ class: e.getColumnsClass((d = e.builderBlock) == null ? void 0 : d.id) + " div-t9spj7joih",
1201
1202
  style: e.columnsCssVars()
1202
1203
  }, {}), [
1203
- e.TARGET !== "reactNative" ? (openBlock(), createBlock(i, {
1204
+ e.TARGET !== "reactNative" ? (openBlock(), createBlock(s, {
1204
1205
  key: 0,
1205
1206
  id: "builderio-columns",
1206
1207
  styles: e.columnsStyles(),
@@ -1229,11 +1230,11 @@ function _sfc_render$l(e, t, n, o, r, s) {
1229
1230
  }, 1032, ["TagName", "attributes"]))), 128))
1230
1231
  ], 16);
1231
1232
  }
1232
- const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$l], ["__scopeId", "data-v-975347d5"]]), _sfc_main$l = defineComponent({
1233
+ const Columns = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$l], ["__scopeId", "data-v-c214af09"]]), _sfc_main$l = defineComponent({
1233
1234
  name: "builder-fragment-component",
1234
1235
  props: []
1235
1236
  });
1236
- function _sfc_render$k(e, t, n, o, r, s) {
1237
+ function _sfc_render$k(e, t, n, o, r, i) {
1237
1238
  return openBlock(), createElementBlock("span", null, [
1238
1239
  renderSlot(e.$slots, "default")
1239
1240
  ]);
@@ -1253,8 +1254,8 @@ function getShopifyImageUrl(e, t) {
1253
1254
  return removeProtocol(e);
1254
1255
  const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
1255
1256
  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}`);
1257
+ const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
1258
+ return removeProtocol(`${o[0]}_${i}${r}`);
1258
1259
  }
1259
1260
  return null;
1260
1261
  }
@@ -1294,12 +1295,14 @@ const _sfc_main$k = defineComponent({
1294
1295
  // images, otherwise you can supply this prop manually
1295
1296
  !(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
1296
1297
  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)
1298
+ if (!this.noWebp) {
1299
+ if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1300
+ if (!this.srcset.includes(this.image.split("?")[0]))
1301
+ return console.debug("Removed given srcset"), getSrcSet(t);
1302
+ } else if (this.image && !this.srcset)
1303
+ return getSrcSet(t);
1301
1304
  return getSrcSet(t);
1302
- return getSrcSet(t);
1305
+ }
1303
1306
  },
1304
1307
  webpSrcSet() {
1305
1308
  var e;
@@ -1320,8 +1323,8 @@ const _sfc_main$k = defineComponent({
1320
1323
  key: 2,
1321
1324
  class: "div-1pl23ac79ld-2"
1322
1325
  };
1323
- function _sfc_render$j(e, t, n, o, r, s) {
1324
- var i, l, a, d, u, c;
1326
+ function _sfc_render$j(e, t, n, o, r, i) {
1327
+ var s, l, a, d, u, c;
1325
1328
  return openBlock(), createElementBlock(Fragment$1, null, [
1326
1329
  createElementVNode("picture", null, [
1327
1330
  e.webpSrcSet ? (openBlock(), createElementBlock("source", {
@@ -1347,7 +1350,7 @@ function _sfc_render$j(e, t, n, o, r, s) {
1347
1350
  sizes: e.sizes
1348
1351
  }, null, 14, _hoisted_2$4)
1349
1352
  ]),
1350
- e.aspectRatio && !((l = (i = e.builderBlock) == null ? void 0 : i.children) != null && l.length && e.fitContent) ? (openBlock(), createElementBlock("div", {
1353
+ e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (openBlock(), createElementBlock("div", {
1351
1354
  key: 0,
1352
1355
  class: "builder-image-sizer div-1pl23ac79ld",
1353
1356
  style: normalizeStyle({
@@ -1360,14 +1363,14 @@ function _sfc_render$j(e, t, n, o, r, s) {
1360
1363
  ])) : createCommentVNode("", !0)
1361
1364
  ], 64);
1362
1365
  }
1363
- const Image = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$j], ["__scopeId", "data-v-0d528855"]]), _sfc_main$j = defineComponent({
1366
+ const Image = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$j], ["__scopeId", "data-v-ce62b8d6"]]), _sfc_main$j = defineComponent({
1364
1367
  name: "builder-section-component",
1365
1368
  props: ["attributes", "maxWidth"],
1366
1369
  data() {
1367
1370
  return { filterAttrs };
1368
1371
  }
1369
1372
  });
1370
- function _sfc_render$i(e, t, n, o, r, s) {
1373
+ function _sfc_render$i(e, t, n, o, r, i) {
1371
1374
  return openBlock(), createElementBlock("section", mergeProps({
1372
1375
  style: {
1373
1376
  width: "100%",
@@ -1406,8 +1409,8 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
1406
1409
  value: t,
1407
1410
  expires: n
1408
1411
  }) => {
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);
1412
+ 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];
1413
+ return stringifyCookie(s);
1411
1414
  }, setCookie = async ({
1412
1415
  name: e,
1413
1416
  value: t,
@@ -1450,10 +1453,10 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
1450
1453
  var r;
1451
1454
  let n = 0;
1452
1455
  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;
1456
+ for (const i in t) {
1457
+ const s = (r = t[i]) == null ? void 0 : r.testRatio;
1458
+ if (n += s, o < n)
1459
+ return i;
1457
1460
  }
1458
1461
  return e;
1459
1462
  }, getAndSetVariantId = (e) => {
@@ -1697,18 +1700,18 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
1697
1700
  `.builder-accordion-title[data-index="${n}"]`
1698
1701
  );
1699
1702
  if (e = n, r) {
1700
- let s = r.getBoundingClientRect();
1703
+ let i = r.getBoundingClientRect();
1701
1704
  for (; r = r && r.nextElementSibling; )
1702
1705
  if (r) {
1703
1706
  if (r.classList.contains("builder-accordion-detail"))
1704
1707
  continue;
1705
- const i = r.getBoundingClientRect();
1706
- if (i.left > s.left) {
1708
+ const s = r.getBoundingClientRect();
1709
+ if (s.left > i.left) {
1707
1710
  const l = parseInt(
1708
1711
  r.getAttribute("data-index") || "",
1709
1712
  10
1710
1713
  );
1711
- isNaN(l) || (s = i, e = l);
1714
+ isNaN(l) || (i = s, e = l);
1712
1715
  } else
1713
1716
  break;
1714
1717
  }
@@ -1740,8 +1743,8 @@ const Section = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render
1740
1743
  }
1741
1744
  }
1742
1745
  }), _hoisted_1$a = ["data-index", "onClick"];
1743
- function _sfc_render$h(e, t, n, o, r, s) {
1744
- const i = resolveComponent("Blocks");
1746
+ function _sfc_render$h(e, t, n, o, r, i) {
1747
+ const s = resolveComponent("Blocks");
1745
1748
  return openBlock(), createElementBlock("div", {
1746
1749
  class: "builder-accordion",
1747
1750
  style: normalizeStyle(e.accordionStyles)
@@ -1757,7 +1760,7 @@ function _sfc_render$h(e, t, n, o, r, s) {
1757
1760
  "data-index": a,
1758
1761
  onClick: (d) => e.onClick(a)
1759
1762
  }, [
1760
- createVNode(i, {
1763
+ createVNode(s, {
1761
1764
  blocks: l.title,
1762
1765
  path: `items.${a}.title`,
1763
1766
  parent: e.builderBlock.id,
@@ -1771,7 +1774,7 @@ function _sfc_render$h(e, t, n, o, r, s) {
1771
1774
  class: normalizeClass(e.getAccordionDetailClassName(a)),
1772
1775
  style: normalizeStyle(e.accordionDetailStyles)
1773
1776
  }, [
1774
- createVNode(i, {
1777
+ createVNode(s, {
1775
1778
  blocks: l.detail,
1776
1779
  path: `items.${a}.detail`,
1777
1780
  parent: e.builderBlock.id,
@@ -1998,7 +2001,7 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
1998
2001
  });
1999
2002
  }
2000
2003
  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();
2004
+ 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
2005
  }
2003
2006
  }, {
2004
2007
  name: "space",
@@ -2052,7 +2055,7 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2052
2055
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
2053
2056
  onChange: (e) => {
2054
2057
  e.delete("srcset"), e.delete("noWebp");
2055
- function n(i, l = 6e4) {
2058
+ function n(s, l = 6e4) {
2056
2059
  return new Promise((a, d) => {
2057
2060
  const u = document.createElement("img");
2058
2061
  let c = !1;
@@ -2060,21 +2063,21 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2060
2063
  c = !0, a(u);
2061
2064
  }, u.addEventListener("error", (p) => {
2062
2065
  console.warn("Image load failed", p.error), d(p.error);
2063
- }), u.src = i, setTimeout(() => {
2066
+ }), u.src = s, setTimeout(() => {
2064
2067
  c || d(new Error("Image load timed out"));
2065
2068
  }, l);
2066
2069
  });
2067
2070
  }
2068
- function o(i) {
2069
- return Math.round(i * 1e3) / 1e3;
2071
+ function o(s) {
2072
+ return Math.round(s * 1e3) / 1e3;
2070
2073
  }
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) => {
2074
+ const r = e.get("image"), i = e.get("aspectRatio");
2075
+ if (fetch(r).then((s) => s.blob()).then((s) => {
2076
+ s.type.includes("svg") && e.set("noWebp", !0);
2077
+ }), r && (!i || i === 0.7041))
2078
+ return n(r).then((s) => {
2076
2079
  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));
2080
+ 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
2081
  });
2079
2082
  }
2080
2083
  }, {
@@ -2200,9 +2203,9 @@ const Accordion = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_rend
2200
2203
  components: { Blocks },
2201
2204
  props: ["builderContext", "name"]
2202
2205
  });
2203
- function _sfc_render$g(e, t, n, o, r, s) {
2206
+ function _sfc_render$g(e, t, n, o, r, i) {
2204
2207
  var l, a, d;
2205
- const i = resolveComponent("Blocks");
2208
+ const s = resolveComponent("Blocks");
2206
2209
  return openBlock(), createElementBlock("div", mergeProps(
2207
2210
  { style: {
2208
2211
  pointerEvents: "auto"
@@ -2211,7 +2214,7 @@ function _sfc_render$g(e, t, n, o, r, s) {
2211
2214
  "builder-slot": e.name
2212
2215
  }
2213
2216
  ), [
2214
- createVNode(i, {
2217
+ createVNode(s, {
2215
2218
  parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
2216
2219
  path: `symbol.data.${e.name}`,
2217
2220
  context: e.builderContext,
@@ -2425,8 +2428,8 @@ const Slot = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$g]
2425
2428
  }
2426
2429
  }
2427
2430
  }), _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");
2431
+ function _sfc_render$f(e, t, n, o, r, i) {
2432
+ const s = resolveComponent("Blocks");
2430
2433
  return openBlock(), createElementBlock("div", null, [
2431
2434
  createElementVNode("div", {
2432
2435
  class: "builder-tabs-wrap",
@@ -2445,7 +2448,7 @@ function _sfc_render$f(e, t, n, o, r, s) {
2445
2448
  }),
2446
2449
  onClick: (d) => e.onClick(a)
2447
2450
  }, [
2448
- createVNode(i, {
2451
+ createVNode(s, {
2449
2452
  parent: e.builderBlock.id,
2450
2453
  path: `component.options.tabs.${a}.label`,
2451
2454
  blocks: l.label,
@@ -2456,7 +2459,7 @@ function _sfc_render$f(e, t, n, o, r, s) {
2456
2459
  ], 14, _hoisted_1$9))), 128))
2457
2460
  ], 4),
2458
2461
  e.activeTabContent(e.activeTab) ? (openBlock(), createElementBlock("div", _hoisted_2$3, [
2459
- createVNode(i, {
2462
+ createVNode(s, {
2460
2463
  parent: e.builderBlock.id,
2461
2464
  path: `component.options.tabs.${e.activeTab}.content`,
2462
2465
  blocks: e.activeTabContent(e.activeTab),
@@ -2492,11 +2495,11 @@ const Tabs = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$f]
2492
2495
  name: "builder-text",
2493
2496
  props: ["text"]
2494
2497
  }), _hoisted_1$8 = ["innerHTML"];
2495
- function _sfc_render$e(e, t, n, o, r, s) {
2496
- var i;
2498
+ function _sfc_render$e(e, t, n, o, r, i) {
2499
+ var s;
2497
2500
  return openBlock(), createElementBlock("div", {
2498
2501
  class: "builder-text",
2499
- innerHTML: ((i = e.text) == null ? void 0 : i.toString()) || "",
2502
+ innerHTML: ((s = e.text) == null ? void 0 : s.toString()) || "",
2500
2503
  style: {
2501
2504
  outline: "none"
2502
2505
  }
@@ -2559,7 +2562,7 @@ const Text = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$e]
2559
2562
  }
2560
2563
  }
2561
2564
  }), _hoisted_1$7 = ["innerHTML"];
2562
- function _sfc_render$d(e, t, n, o, r, s) {
2565
+ function _sfc_render$d(e, t, n, o, r, i) {
2563
2566
  return openBlock(), createElementBlock("div", {
2564
2567
  ref: "elementRef",
2565
2568
  class: normalizeClass("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
@@ -2624,7 +2627,7 @@ const customCode = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_ren
2624
2627
  }
2625
2628
  }
2626
2629
  }), _hoisted_1$6 = ["innerHTML"];
2627
- function _sfc_render$c(e, t, n, o, r, s) {
2630
+ function _sfc_render$c(e, t, n, o, r, i) {
2628
2631
  return openBlock(), createElementBlock("div", {
2629
2632
  class: "builder-embed",
2630
2633
  ref: "elem",
@@ -2872,7 +2875,7 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
2872
2875
  const e = process.env.NODE_ENV || "production";
2873
2876
  return validEnvList.includes(e) ? e : "production";
2874
2877
  }, get = (e, t, n) => {
2875
- const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, s) => r != null ? r[s] : r, e);
2878
+ const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
2876
2879
  return o === void 0 || o === e ? n : o;
2877
2880
  }, _sfc_main$c = defineComponent({
2878
2881
  name: "builder-form-component",
@@ -2932,8 +2935,8 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
2932
2935
  }
2933
2936
  e.preventDefault();
2934
2937
  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) => {
2938
+ let i;
2939
+ const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((c) => !!c.name).map((c) => {
2937
2940
  let p;
2938
2941
  const f = c.name;
2939
2942
  if (c instanceof HTMLInputElement)
@@ -2961,17 +2964,17 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
2961
2964
  if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: c }) => {
2962
2965
  (c instanceof File || Array.isArray(c) && c[0] instanceof File || c instanceof FileList) && (a = "multipart/form-data");
2963
2966
  }), a !== "application/json")
2964
- s = i;
2967
+ i = s;
2965
2968
  else {
2966
2969
  const c = {};
2967
2970
  Array.from(l).forEach(({ value: p, key: f }) => {
2968
2971
  set(c, f, p);
2969
- }), s = JSON.stringify(c);
2972
+ }), i = JSON.stringify(c);
2970
2973
  }
2971
2974
  a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
2972
2975
  const d = new CustomEvent("presubmit", {
2973
2976
  detail: {
2974
- body: s
2977
+ body: i
2975
2978
  }
2976
2979
  });
2977
2980
  if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(d), d.defaultPrevented))
@@ -2983,7 +2986,7 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
2983
2986
  fetch(
2984
2987
  this.sendSubmissionsTo === "email" ? u : this.action,
2985
2988
  {
2986
- body: s,
2989
+ body: i,
2987
2990
  headers: r,
2988
2991
  method: this.method || "post"
2989
2992
  }
@@ -3037,9 +3040,9 @@ const embed = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$c
3037
3040
  key: 3,
3038
3041
  class: "builder-form-error-text pre-3i4ezorcfhi"
3039
3042
  };
3040
- function _sfc_render$b(e, t, n, o, r, s) {
3043
+ function _sfc_render$b(e, t, n, o, r, i) {
3041
3044
  var a;
3042
- const i = resolveComponent("Block"), l = resolveComponent("Blocks");
3045
+ const s = resolveComponent("Block"), l = resolveComponent("Blocks");
3043
3046
  return openBlock(), createElementBlock("form", mergeProps({
3044
3047
  validate: e.validate,
3045
3048
  ref: "formRef",
@@ -3048,7 +3051,7 @@ function _sfc_render$b(e, t, n, o, r, s) {
3048
3051
  name: e.name,
3049
3052
  onSubmit: t[0] || (t[0] = (d) => e.onSubmit(d))
3050
3053
  }, { ...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, {
3054
+ 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
3055
  key: `form-block-${e.idx}`,
3053
3056
  block: d,
3054
3057
  context: e.builderContext,
@@ -3142,7 +3145,7 @@ const Form = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$b]
3142
3145
  return { isEditing, filterAttrs };
3143
3146
  }
3144
3147
  }), _hoisted_1$4 = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3145
- function _sfc_render$a(e, t, n, o, r, s) {
3148
+ function _sfc_render$a(e, t, n, o, r, i) {
3146
3149
  return openBlock(), createElementBlock("input", mergeProps({
3147
3150
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3148
3151
  placeholder: e.placeholder,
@@ -3202,7 +3205,7 @@ const FormInput = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_rend
3202
3205
  return { isEditing, filterAttrs };
3203
3206
  }
3204
3207
  }), _hoisted_1$3 = ["value", "defaultValue", "name", "required"], _hoisted_2$1 = ["value"];
3205
- function _sfc_render$9(e, t, n, o, r, s) {
3208
+ function _sfc_render$9(e, t, n, o, r, i) {
3206
3209
  return openBlock(), createElementBlock("select", mergeProps({
3207
3210
  value: e.value,
3208
3211
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
@@ -3210,10 +3213,10 @@ function _sfc_render$9(e, t, n, o, r, s) {
3210
3213
  name: e.name,
3211
3214
  required: e.required
3212
3215
  }, 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))
3216
+ (openBlock(!0), createElementBlock(Fragment$1, null, renderList(e.options, (s, l) => (openBlock(), createElementBlock("option", {
3217
+ key: `${s.name}-${l}`,
3218
+ value: s.value
3219
+ }, toDisplayString(s.name || s.value), 9, _hoisted_2$1))), 128))
3217
3220
  ], 16, _hoisted_1$3);
3218
3221
  }
3219
3222
  const FormSelect = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$9]]), componentInfo$3 = {
@@ -3248,7 +3251,7 @@ const FormSelect = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_ren
3248
3251
  return { filterAttrs };
3249
3252
  }
3250
3253
  });
3251
- function _sfc_render$8(e, t, n, o, r, s) {
3254
+ function _sfc_render$8(e, t, n, o, r, i) {
3252
3255
  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
3256
  }
3254
3257
  const FormSubmitButton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$8]]), componentInfo$2 = {
@@ -3301,7 +3304,7 @@ const FormSubmitButton = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _s
3301
3304
  return { filterAttrs };
3302
3305
  }
3303
3306
  }), _hoisted_1$2 = ["placeholder", "name", "value", "defaultValue", "required"];
3304
- function _sfc_render$7(e, t, n, o, r, s) {
3307
+ function _sfc_render$7(e, t, n, o, r, i) {
3305
3308
  return openBlock(), createElementBlock("textarea", mergeProps({
3306
3309
  placeholder: e.placeholder,
3307
3310
  name: e.name,
@@ -3338,7 +3341,7 @@ const Textarea = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_rende
3338
3341
  return { isEditing, filterAttrs };
3339
3342
  }
3340
3343
  }), _hoisted_1$1 = ["alt", "src"];
3341
- function _sfc_render$6(e, t, n, o, r, s) {
3344
+ function _sfc_render$6(e, t, n, o, r, i) {
3342
3345
  return openBlock(), createElementBlock("img", mergeProps({
3343
3346
  style: {
3344
3347
  objectFit: e.backgroundSize || "cover",
@@ -3501,8 +3504,8 @@ const Img = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$6]]
3501
3504
  height: "100%"
3502
3505
  }
3503
3506
  };
3504
- function _sfc_render$5(e, t, n, o, r, s) {
3505
- var i, l, a, d, u, c, p;
3507
+ function _sfc_render$5(e, t, n, o, r, i) {
3508
+ var s, l, a, d, u, c, p;
3506
3509
  return openBlock(), createElementBlock("div", _hoisted_1, [
3507
3510
  createElementVNode("video", mergeProps({
3508
3511
  class: "builder-video",
@@ -3510,7 +3513,7 @@ function _sfc_render$5(e, t, n, o, r, s) {
3510
3513
  style: {
3511
3514
  width: "100%",
3512
3515
  height: "100%",
3513
- ...(i = e.attributes) == null ? void 0 : i.style,
3516
+ ...(s = e.attributes) == null ? void 0 : s.style,
3514
3517
  objectFit: e.fit,
3515
3518
  objectPosition: e.position,
3516
3519
  // Hack to get object fit to work as expected and
@@ -3610,16 +3613,11 @@ const Video = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$5
3610
3613
  }), serializeFn = (e) => {
3611
3614
  const t = e.toString().trim();
3612
3615
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
3613
- }, serializeValue = (e) => typeof e == "function" ? serializeFn(e) : fastClone(e), serializeComponentInfo = ({
3614
- inputs: e,
3615
- ...t
3616
- }) => ({
3617
- ...fastClone(t),
3618
- inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, s]) => ({
3619
- ...o,
3620
- [r]: serializeValue(s)
3621
- }), {}))
3622
- }), UPDATE_COOKIES_AND_STYLES_SCRIPT = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3616
+ };
3617
+ function serializeComponentInfo(e) {
3618
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? serializeFn(n) : n));
3619
+ }
3620
+ const UPDATE_COOKIES_AND_STYLES_SCRIPT = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3623
3621
  function getAndSetVariantId() {
3624
3622
  function setCookie(name, value, days) {
3625
3623
  let expires = '';
@@ -3751,20 +3749,20 @@ function getFetch() {
3751
3749
  const fetch$1 = getFetch();
3752
3750
  function flatten(e, t = null, n = ".") {
3753
3751
  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) ? {
3752
+ const i = e[r], s = [t, r].filter(Boolean).join(n);
3753
+ return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
3756
3754
  ...o,
3757
- ...flatten(s, i, n)
3755
+ ...flatten(i, s, n)
3758
3756
  } : {
3759
3757
  ...o,
3760
- [i]: s
3758
+ [s]: i
3761
3759
  };
3762
3760
  }, {});
3763
3761
  }
3764
3762
  function flattenMongoQuery(e, t, n = {}) {
3765
3763
  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;
3764
+ const r = e[o], i = t ? t + "." + o : o;
3765
+ r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? flattenMongoQuery(r, i, n) : n[i] = r;
3768
3766
  }
3769
3767
  return n;
3770
3768
  }
@@ -3789,8 +3787,8 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
3789
3787
  userAttributes: n,
3790
3788
  query: o,
3791
3789
  model: r,
3792
- apiKey: s,
3793
- enrich: i,
3790
+ apiKey: i,
3791
+ enrich: s,
3794
3792
  locale: l,
3795
3793
  apiVersion: a = DEFAULT_API_VERSION,
3796
3794
  fields: d,
@@ -3801,12 +3799,12 @@ const DEFAULT_API_VERSION = "v3", BUILDER_SEARCHPARAMS_PREFIX = "builder.", BUIL
3801
3799
  sort: m,
3802
3800
  includeUnpublished: b
3803
3801
  } = e;
3804
- if (!s)
3802
+ if (!i)
3805
3803
  throw new Error("Missing API key");
3806
3804
  if (!["v3"].includes(a))
3807
3805
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
3808
3806
  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) {
3807
+ 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
3808
  const k = flatten({
3811
3809
  sort: m
3812
3810
  });
@@ -3844,9 +3842,9 @@ const _fetchContent = async (e) => {
3844
3842
  return t.results;
3845
3843
  try {
3846
3844
  const r = [];
3847
- for (const s of t.results)
3845
+ for (const i of t.results)
3848
3846
  r.push(await handleABTesting({
3849
- item: s,
3847
+ item: i,
3850
3848
  canTrack: o
3851
3849
  }));
3852
3850
  t.results = r;
@@ -4034,10 +4032,10 @@ const findParentElement = (e, t, n = !0) => {
4034
4032
  event: e,
4035
4033
  target: t
4036
4034
  }) => {
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);
4035
+ 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
4036
  return {
4039
- x: s,
4040
- y: i
4037
+ x: i,
4038
+ y: s
4041
4039
  };
4042
4040
  }, getInteractionPropertiesForEvent = (e) => {
4043
4041
  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 +4060,7 @@ function isFromTrustedHost(e, t) {
4062
4060
  const n = new URL(t.origin), o = n.hostname;
4063
4061
  return (e || DEFAULT_TRUSTED_HOSTS).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
4064
4062
  }
4065
- const SDK_VERSION = "2.0.1", registry = {};
4063
+ const SDK_VERSION = "2.0.3", registry = {};
4066
4064
  function register(e, t) {
4067
4065
  let n = registry[e];
4068
4066
  if (n || (n = registry[e] = []), n.push(t), isBrowser()) {
@@ -4123,7 +4121,7 @@ const setupBrowserForEditing = (e = {}) => {
4123
4121
  options: e
4124
4122
  }
4125
4123
  }, "*"), window.addEventListener("message", (o) => {
4126
- var s, i;
4124
+ var i, s;
4127
4125
  if (!isFromTrustedHost(e.trustedHosts, o))
4128
4126
  return;
4129
4127
  const {
@@ -4139,7 +4137,7 @@ const setupBrowserForEditing = (e = {}) => {
4139
4137
  } catch (f) {
4140
4138
  p = f;
4141
4139
  }
4142
- p ? (s = window.parent) == null || s.postMessage({
4140
+ p ? (i = window.parent) == null || i.postMessage({
4143
4141
  type: "builder.evaluateError",
4144
4142
  data: {
4145
4143
  id: d,
@@ -4154,7 +4152,7 @@ const setupBrowserForEditing = (e = {}) => {
4154
4152
  result: f
4155
4153
  }
4156
4154
  }, "*");
4157
- }).catch(console.error) : (i = window.parent) == null || i.postMessage({
4155
+ }).catch(console.error) : (s = window.parent) == null || s.postMessage({
4158
4156
  type: "builder.evaluateResult",
4159
4157
  data: {
4160
4158
  result: c,
@@ -4186,8 +4184,8 @@ const setupBrowserForEditing = (e = {}) => {
4186
4184
  break;
4187
4185
  }
4188
4186
  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);
4187
+ const i = r.data, s = i.key || i.alias || i.entry || i.modelName, l = i.data;
4188
+ s === e && n.contentUpdate(l);
4191
4189
  break;
4192
4190
  }
4193
4191
  }
@@ -4211,8 +4209,8 @@ const setupBrowserForEditing = (e = {}) => {
4211
4209
  window.removeEventListener("message", o);
4212
4210
  };
4213
4211
  }, 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);
4212
+ var i;
4213
+ 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
4214
  let r = "";
4217
4215
  if (o && t && n && (r += `
4218
4216
  @font-face {
@@ -4222,16 +4220,16 @@ font-display: fallback;
4222
4220
  font-weight: 400;
4223
4221
  }
4224
4222
  `.trim()), e.files)
4225
- for (const i in e.files) {
4226
- if (!(String(Number(i)) === i))
4223
+ for (const s in e.files) {
4224
+ if (!(String(Number(s)) === s))
4227
4225
  continue;
4228
- const a = e.files[i];
4226
+ const a = e.files[s];
4229
4227
  a && a !== o && (r += `
4230
4228
  @font-face {
4231
4229
  font-family: "${t}";
4232
4230
  src: url('${a}') format('woff2');
4233
4231
  font-display: fallback;
4234
- font-weight: ${i};
4232
+ font-weight: ${s};
4235
4233
  }
4236
4234
  `.trim());
4237
4235
  }
@@ -4302,13 +4300,13 @@ font-weight: ${i};
4302
4300
  if (isEditing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4303
4301
  new CustomEvent("initeditingbldr")
4304
4302
  ), 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;
4303
+ 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
4304
  _track({
4307
4305
  type: "impression",
4308
4306
  canTrack: !0,
4309
- contentId: i,
4307
+ contentId: s,
4310
4308
  apiKey: l,
4311
- variationId: s !== i ? s : void 0
4309
+ variationId: i !== s ? i : void 0
4312
4310
  });
4313
4311
  }
4314
4312
  isPreviewing() && !isEditing() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
@@ -4417,7 +4415,7 @@ font-weight: ${i};
4417
4415
  this.builderContextSignal.rootSetState ? (o = (n = this.builderContextSignal).rootSetState) == null || o.call(n, t) : this.builderContextSignal.rootState = t;
4418
4416
  },
4419
4417
  mergeNewContent(e) {
4420
- var n, o, r, s, i;
4418
+ var n, o, r, i, s;
4421
4419
  const t = {
4422
4420
  ...this.builderContextSignal.content,
4423
4421
  ...e,
@@ -4428,7 +4426,7 @@ font-weight: ${i};
4428
4426
  meta: {
4429
4427
  ...(o = this.builderContextSignal.content) == null ? void 0 : o.meta,
4430
4428
  ...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)
4429
+ 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
4430
  }
4433
4431
  };
4434
4432
  this.builderContextSignal.content = t;
@@ -4494,9 +4492,9 @@ font-weight: ${i};
4494
4492
  if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !isEditing())
4495
4493
  return;
4496
4494
  this.httpReqsPending[o] = !0;
4497
- const s = r.replace(
4495
+ const i = r.replace(
4498
4496
  /{{([^}]+)}}/g,
4499
- (i, l) => String(
4497
+ (s, l) => String(
4500
4498
  evaluate({
4501
4499
  code: l,
4502
4500
  context: this.context || {},
@@ -4507,12 +4505,12 @@ font-weight: ${i};
4507
4505
  })
4508
4506
  )
4509
4507
  );
4510
- fetch$1(s).then((i) => i.json()).then((i) => {
4508
+ fetch$1(i).then((s) => s.json()).then((s) => {
4511
4509
  this.mergeNewRootState({
4512
- [o]: i
4510
+ [o]: s
4513
4511
  }), this.httpReqsData[o] = !0;
4514
- }).catch((i) => {
4515
- console.error("error fetching dynamic data", r, i);
4512
+ }).catch((s) => {
4513
+ console.error("error fetching dynamic data", r, s);
4516
4514
  }).finally(() => {
4517
4515
  this.httpReqsPending[o] = !1;
4518
4516
  });
@@ -4563,19 +4561,19 @@ font-weight: ${i};
4563
4561
  model: this.model,
4564
4562
  apiKey: this.apiKey,
4565
4563
  apiVersion: this.builderContextSignal.apiVersion
4566
- }).then((s) => {
4567
- s && this.mergeNewContent(s);
4564
+ }).then((i) => {
4565
+ i && this.mergeNewContent(i);
4568
4566
  });
4569
4567
  }
4570
4568
  }
4571
4569
  });
4572
- function _sfc_render$4(e, t, n, o, r, s) {
4573
- var i, l, a;
4570
+ function _sfc_render$4(e, t, n, o, r, i) {
4571
+ var s, l, a;
4574
4572
  return e.builderContextSignal.content ? (openBlock(), createBlock(resolveDynamicComponent(e.ContentWrapper), mergeProps({
4575
4573
  key: 0,
4576
4574
  ref: "elementRef",
4577
4575
  onClick: (d) => e.onClick(d),
4578
- "builder-content-id": (i = e.builderContextSignal.content) == null ? void 0 : i.id,
4576
+ "builder-content-id": (s = e.builderContextSignal.content) == null ? void 0 : s.id,
4579
4577
  "builder-model": e.model,
4580
4578
  class: e.getWrapperClassName(((l = e.content) == null ? void 0 : l.testVariationId) || ((a = e.content) == null ? void 0 : a.id)),
4581
4579
  onIniteditingbldr: (d) => e.elementRef_onIniteditingbldr(d),
@@ -4606,9 +4604,9 @@ ${getDefaultStyles(this.isNestedRender)}
4606
4604
  };
4607
4605
  }
4608
4606
  });
4609
- function _sfc_render$3(e, t, n, o, r, s) {
4610
- const i = resolveComponent("InlinedStyles");
4611
- return openBlock(), createBlock(i, {
4607
+ function _sfc_render$3(e, t, n, o, r, i) {
4608
+ const s = resolveComponent("InlinedStyles");
4609
+ return openBlock(), createBlock(s, {
4612
4610
  id: "builderio-content",
4613
4611
  styles: e.injectedStyles,
4614
4612
  nonce: e.nonce
@@ -4619,9 +4617,9 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4619
4617
  data: t,
4620
4618
  locale: n
4621
4619
  }) => {
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) => {
4620
+ var i, s, l;
4621
+ const o = {}, r = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.state) || {};
4622
+ return (l = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || l.forEach((a) => {
4625
4623
  a.name && a.defaultValue !== void 0 && (o[a.name] = a.defaultValue);
4626
4624
  }), {
4627
4625
  ...o,
@@ -4653,6 +4651,7 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4653
4651
  props: [
4654
4652
  "content",
4655
4653
  "customComponents",
4654
+ "model",
4656
4655
  "data",
4657
4656
  "locale",
4658
4657
  "context",
@@ -4662,7 +4661,6 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4662
4661
  "blocksWrapper",
4663
4662
  "blocksWrapperProps",
4664
4663
  "nonce",
4665
- "model",
4666
4664
  "enrich",
4667
4665
  "showContent",
4668
4666
  "contentWrapper",
@@ -4673,7 +4671,7 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4673
4671
  "linkComponent"
4674
4672
  ],
4675
4673
  data() {
4676
- var e, t;
4674
+ var e, t, n, o;
4677
4675
  return {
4678
4676
  scriptStr: getUpdateVariantVisibilityScript({
4679
4677
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4683,13 +4681,13 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4683
4681
  }),
4684
4682
  registeredComponents: [
4685
4683
  ...getDefaultRegisteredComponents(),
4686
- ...this.customComponents || []
4684
+ ...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4687
4685
  ].reduce(
4688
- (n, { component: o, ...r }) => ({
4689
- ...n,
4690
- [r.name]: {
4691
- component: wrapComponentRef(o),
4692
- ...serializeComponentInfo(r)
4686
+ (r, { component: i, ...s }) => ({
4687
+ ...r,
4688
+ [s.name]: {
4689
+ component: wrapComponentRef(i),
4690
+ ...serializeComponentInfo(s)
4693
4691
  }
4694
4692
  }),
4695
4693
  {}
@@ -4712,11 +4710,11 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4712
4710
  apiVersion: this.apiVersion,
4713
4711
  componentInfos: [
4714
4712
  ...getDefaultRegisteredComponents(),
4715
- ...this.customComponents || []
4713
+ ...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4716
4714
  ].reduce(
4717
- (n, { component: o, ...r }) => ({
4718
- ...n,
4719
- [r.name]: serializeComponentInfo(r)
4715
+ (r, { component: i, ...s }) => ({
4716
+ ...r,
4717
+ [s.name]: serializeComponentInfo(s)
4720
4718
  }),
4721
4719
  {}
4722
4720
  ),
@@ -4742,8 +4740,8 @@ const ContentStyles = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_
4742
4740
  }
4743
4741
  }
4744
4742
  });
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");
4743
+ function _sfc_render$2(e, t, n, o, r, i) {
4744
+ const s = resolveComponent("InlinedScript"), l = resolveComponent("ContentStyles"), a = resolveComponent("Blocks"), d = resolveComponent("EnableEditor");
4747
4745
  return openBlock(), createBlock(d, mergeProps({
4748
4746
  nonce: e.nonce,
4749
4747
  content: e.content,
@@ -4763,7 +4761,7 @@ function _sfc_render$2(e, t, n, o, r, s) {
4763
4761
  default: withCtx(() => {
4764
4762
  var u, c, p, f, m, b, C;
4765
4763
  return [
4766
- e.isSsrAbTest ? (openBlock(), createBlock(i, {
4764
+ e.isSsrAbTest ? (openBlock(), createBlock(s, {
4767
4765
  key: 0,
4768
4766
  id: "builderio-variant-visibility",
4769
4767
  scriptStr: e.scriptStr,
@@ -4828,8 +4826,6 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
4828
4826
  },
4829
4827
  mounted() {
4830
4828
  },
4831
- updated() {
4832
- },
4833
4829
  computed: {
4834
4830
  updateCookieAndStylesScriptStr() {
4835
4831
  var e;
@@ -4856,10 +4852,10 @@ const ContentComponent = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _s
4856
4852
  }
4857
4853
  }
4858
4854
  });
4859
- function _sfc_render$1(e, t, n, o, r, s) {
4860
- const i = resolveComponent("InlinedScript"), l = resolveComponent("InlinedStyles"), a = resolveComponent("ContentComponent");
4855
+ function _sfc_render$1(e, t, n, o, r, i) {
4856
+ const s = resolveComponent("InlinedScript"), l = resolveComponent("InlinedStyles"), a = resolveComponent("ContentComponent");
4861
4857
  return openBlock(), createElementBlock(Fragment$1, null, [
4862
- !e.isNestedRender && e.TARGET !== "reactNative" ? (openBlock(), createBlock(i, {
4858
+ !e.isNestedRender && e.TARGET !== "reactNative" ? (openBlock(), createBlock(s, {
4863
4859
  key: 0,
4864
4860
  id: "builderio-init-variants-fns",
4865
4861
  scriptStr: e.getInitVariantsFnsScriptString(),
@@ -4871,7 +4867,7 @@ function _sfc_render$1(e, t, n, o, r, s) {
4871
4867
  styles: e.hideVariantsStyleString,
4872
4868
  nonce: e.nonce || ""
4873
4869
  }, null, 8, ["styles", "nonce"]),
4874
- createVNode(i, {
4870
+ createVNode(s, {
4875
4871
  id: "builderio-variants-visibility",
4876
4872
  scriptStr: e.updateCookieAndStylesScriptStr,
4877
4873
  nonce: e.nonce || ""
@@ -5004,11 +5000,11 @@ const ContentVariants = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sf
5004
5000
  }
5005
5001
  }
5006
5002
  });
5007
- function _sfc_render(e, t, n, o, r, s) {
5003
+ function _sfc_render(e, t, n, o, r, i) {
5008
5004
  var l, a, d, u, c;
5009
- const i = resolveComponent("ContentVariants");
5005
+ const s = resolveComponent("ContentVariants");
5010
5006
  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, {
5007
+ createVNode(s, {
5012
5008
  nonce: e.builderContext.nonce,
5013
5009
  isNestedRender: !0,
5014
5010
  apiVersion: e.builderContext.apiVersion,
@@ -5044,7 +5040,7 @@ function setEditorSettings(e) {
5044
5040
  }
5045
5041
  }
5046
5042
  const fetchBuilderProps = async (e) => {
5047
- var o, r, s;
5043
+ var o, r, i;
5048
5044
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
5049
5045
  ...e,
5050
5046
  apiKey: e.apiKey,
@@ -5055,7 +5051,7 @@ const fetchBuilderProps = async (e) => {
5055
5051
  urlPath: t
5056
5052
  } : {}
5057
5053
  },
5058
- options: getBuilderSearchParams(e.searchParams || ((s = e.url) == null ? void 0 : s.searchParams) || e.options)
5054
+ options: getBuilderSearchParams(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
5059
5055
  };
5060
5056
  return {
5061
5057
  apiKey: n.apiKey,