@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
@@ -1,8 +1,8 @@
1
1
  var pt = Object.defineProperty;
2
2
  var mt = (e, t, n) => t in e ? pt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var oe = (e, t, n) => (mt(e, typeof t != "symbol" ? t + "" : t, n), n);
3
+ var ne = (e, t, n) => (mt(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import "./style.css";
5
- import { defineComponent as f, openBlock as d, createElementBlock as p, Fragment as I, createBlock as k, resolveDynamicComponent as K, mergeProps as C, toHandlers as P, withCtx as W, renderSlot as E, resolveComponent as g, createTextVNode as ht, toDisplayString as ne, defineAsyncComponent as H, createVNode as $, renderList as N, createCommentVNode as v, h as xe, createElementVNode as z, normalizeStyle as L, normalizeClass as J, markRaw as ft } from "vue";
5
+ import { defineComponent as f, openBlock as d, createElementBlock as p, Fragment as I, createBlock as k, resolveDynamicComponent as K, mergeProps as C, toHandlers as P, withCtx as W, renderSlot as E, resolveComponent as g, createTextVNode as ht, toDisplayString as te, defineAsyncComponent as H, createVNode as $, renderList as N, createCommentVNode as v, h as xe, createElementVNode as z, normalizeStyle as D, normalizeClass as J, markRaw as ft } from "vue";
6
6
  const bt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), gt = (e) => typeof e == "string" && bt.has(e.toLowerCase());
7
7
  function x(e = {}, t, n) {
8
8
  const o = {};
@@ -41,10 +41,10 @@ function kt(e, t, n, o, r, i) {
41
41
  }, 16))
42
42
  ], 64));
43
43
  }
44
- const me = /* @__PURE__ */ b(yt, [["render", kt]]), Pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44
+ const pe = /* @__PURE__ */ b(yt, [["render", kt]]), Bi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
45
45
  __proto__: null,
46
- default: me
47
- }, Symbol.toStringTag, { value: "Module" })), A = "vue", ee = () => {
46
+ default: pe
47
+ }, Symbol.toStringTag, { value: "Module" })), A = "vue", _ = () => {
48
48
  switch (A) {
49
49
  case "react":
50
50
  case "reactNative":
@@ -59,7 +59,7 @@ const me = /* @__PURE__ */ b(yt, [["render", kt]]), Pi = /* @__PURE__ */ Object.
59
59
  }
60
60
  }, vt = f({
61
61
  name: "builder-button",
62
- components: { DynamicRenderer: me },
62
+ components: { DynamicRenderer: pe },
63
63
  props: [
64
64
  "attributes",
65
65
  "link",
@@ -74,7 +74,7 @@ const me = /* @__PURE__ */ b(yt, [["render", kt]]), Pi = /* @__PURE__ */ Object.
74
74
  attrs() {
75
75
  return {
76
76
  ...x(this.attributes, "v-on:", !1),
77
- [ee()]: `${this.link ? "" : "builder-button"} ${this.attributes[ee()] || ""}`,
77
+ [_()]: `${this.link ? "" : "builder-button"} ${this.attributes[_()] || ""}`,
78
78
  ...this.link ? {
79
79
  href: this.link,
80
80
  target: this.openLinkInNewTab ? "_blank" : void 0,
@@ -94,12 +94,12 @@ function St(e, t, n, o, r, i) {
94
94
  actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
95
95
  }, {
96
96
  default: W(() => [
97
- ht(ne(e.text), 1)
97
+ ht(te(e.text), 1)
98
98
  ]),
99
99
  _: 1
100
100
  }, 8, ["attributes", "TagName", "actionAttributes"]);
101
101
  }
102
- const Ct = /* @__PURE__ */ b(vt, [["render", St]]), wt = Symbol(), ce = {
102
+ const Ct = /* @__PURE__ */ b(vt, [["render", St]]), wt = Symbol(), le = {
103
103
  Builder: {
104
104
  content: null,
105
105
  context: {},
@@ -127,11 +127,11 @@ function It(e) {
127
127
  ...e.options
128
128
  };
129
129
  }
130
- const Z = "[Builder.io]: ", B = {
131
- log: (...e) => console.log(Z, ...e),
132
- error: (...e) => console.error(Z, ...e),
133
- warn: (...e) => console.warn(Z, ...e),
134
- debug: (...e) => console.debug(Z, ...e)
130
+ const X = "[Builder.io]: ", B = {
131
+ log: (...e) => console.log(X, ...e),
132
+ error: (...e) => console.error(X, ...e),
133
+ warn: (...e) => console.warn(X, ...e),
134
+ debug: (...e) => console.debug(X, ...e)
135
135
  };
136
136
  function T() {
137
137
  return typeof window < "u" && typeof document < "u";
@@ -246,10 +246,10 @@ function Fe({
246
246
  }
247
247
  });
248
248
  }
249
- const D = (e) => e != null;
249
+ const L = (e) => e != null;
250
250
  function Vt() {
251
251
  var e;
252
- return typeof process < "u" && D((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
252
+ return typeof process < "u" && L((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
253
253
  }
254
254
  const Wt = () => {
255
255
  var o;
@@ -275,9 +275,9 @@ const Wt = () => {
275
275
  });
276
276
  }
277
277
  };
278
- oe(V, "cacheLimit", 20), oe(V, "cache", /* @__PURE__ */ new Map());
278
+ ne(V, "cacheLimit", 20), ne(V, "cache", /* @__PURE__ */ new Map());
279
279
  let U = V;
280
- function te({
280
+ function ee({
281
281
  code: e,
282
282
  context: t,
283
283
  localState: n,
@@ -319,7 +319,7 @@ function te({
319
319
  return;
320
320
  }
321
321
  }
322
- const Y = (e) => JSON.parse(JSON.stringify(e)), Oe = (e, t, n) => {
322
+ const me = (e) => JSON.parse(JSON.stringify(e)), Oe = (e, t, n) => {
323
323
  if (Object(e) !== e)
324
324
  return e;
325
325
  const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
@@ -334,7 +334,7 @@ const Ft = ({
334
334
  }) => {
335
335
  if (!e.bindings)
336
336
  return e;
337
- const i = Y(e), s = {
337
+ const i = me(e), s = {
338
338
  ...i,
339
339
  properties: {
340
340
  ...i.properties
@@ -344,7 +344,7 @@ const Ft = ({
344
344
  }
345
345
  };
346
346
  for (const l in e.bindings) {
347
- const a = e.bindings[l], u = te({
347
+ const a = e.bindings[l], u = ee({
348
348
  code: a,
349
349
  localState: n,
350
350
  rootState: o,
@@ -356,7 +356,7 @@ const Ft = ({
356
356
  }
357
357
  return s;
358
358
  };
359
- function Le({
359
+ function De({
360
360
  block: e,
361
361
  context: t,
362
362
  shouldEvaluateBindings: n,
@@ -396,7 +396,7 @@ function q(e, ...t) {
396
396
  }
397
397
  return n;
398
398
  }
399
- function Lt(e) {
399
+ function Dt(e) {
400
400
  for (const t of e)
401
401
  switch (t.trigger) {
402
402
  case "pageLoad":
@@ -407,16 +407,16 @@ function Lt(e) {
407
407
  break;
408
408
  }
409
409
  }
410
- function De(e) {
410
+ function Le(e) {
411
411
  console.warn(`Cannot animate element: element with ID ${e} not found!`);
412
412
  }
413
413
  function Ue(e, t) {
414
- const n = Dt(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
414
+ const n = Lt(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
415
415
  for (const l of s)
416
416
  for (const a of n)
417
417
  a in l || (l[a] = o[a]);
418
418
  }
419
- function Dt(e) {
419
+ function Lt(e) {
420
420
  const t = [];
421
421
  for (const n of e.steps)
422
422
  for (const o in n.styles)
@@ -426,7 +426,7 @@ function Dt(e) {
426
426
  function Me(e) {
427
427
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
428
428
  if (!t.length) {
429
- De(e.elementId || e.id || "");
429
+ Le(e.elementId || e.id || "");
430
430
  return;
431
431
  }
432
432
  Array.from(t).forEach((n) => {
@@ -440,7 +440,7 @@ function Me(e) {
440
440
  function Ut(e) {
441
441
  const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
442
442
  if (!t.length) {
443
- De(e.elementId || e.id || "");
443
+ Le(e.elementId || e.id || "");
444
444
  return;
445
445
  }
446
446
  Array.from(t).forEach((n) => {
@@ -475,8 +475,8 @@ function Ut(e) {
475
475
  const je = (e) => Object.entries(e).map(([n, o]) => {
476
476
  if (typeof o == "string")
477
477
  return `${he(n)}: ${o};`;
478
- }).filter(D), Mt = (e) => je(e).join(`
479
- `), Ei = ({
478
+ }).filter(L), Mt = (e) => je(e).join(`
479
+ `), Pi = ({
480
480
  mediaQuery: e,
481
481
  className: t,
482
482
  styles: n
@@ -493,7 +493,7 @@ function jt({
493
493
  }) {
494
494
  return e;
495
495
  }
496
- const xi = ({
496
+ const Ei = ({
497
497
  block: e,
498
498
  context: t
499
499
  }) => He(jt({
@@ -521,7 +521,7 @@ const Ht = ({
521
521
  registeredComponents: n
522
522
  }) => {
523
523
  var i;
524
- const o = (i = Le({
524
+ const o = (i = De({
525
525
  block: e,
526
526
  localState: t.localState,
527
527
  rootState: t.rootState,
@@ -547,7 +547,7 @@ const Ht = ({
547
547
  } = e;
548
548
  if (!(n != null && n.collection))
549
549
  return;
550
- const r = te({
550
+ const r = ee({
551
551
  code: n.collection,
552
552
  localState: t.localState,
553
553
  rootState: t.rootState,
@@ -596,22 +596,22 @@ const Ht = ({
596
596
  "Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
597
597
  e
598
598
  ), e;
599
- }), Qt = () => import("./block-styles-svOVzDaV.js").then((e) => e.default).catch((e) => {
599
+ }), Qt = () => import("./block-styles-mooo-nyz.js").then((e) => e.default).catch((e) => {
600
600
  throw console.error(
601
601
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
602
602
  e
603
603
  ), e;
604
- }), Xt = () => import("./block-wrapper-KGQI5yrU.js").then((e) => e.default).catch((e) => {
604
+ }), Xt = () => import("./block-wrapper-3cYhLXDa.js").then((e) => e.default).catch((e) => {
605
605
  throw console.error(
606
606
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
607
607
  e
608
608
  ), e;
609
- }), Zt = () => import("./component-ref-k5NF2o_L.js").then((e) => e.default).catch((e) => {
609
+ }), Zt = () => import("./component-ref-A7Jq3Gj-.js").then((e) => e.default).catch((e) => {
610
610
  throw console.error(
611
611
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
612
612
  e
613
613
  ), e;
614
- }), _t = () => import("./repeated-block-BxE-FBVv.js").then((e) => e.default).catch((e) => {
614
+ }), _t = () => import("./repeated-block-AKO0QANq.js").then((e) => e.default).catch((e) => {
615
615
  throw console.error(
616
616
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
617
617
  e
@@ -628,7 +628,7 @@ const Ht = ({
628
628
  props: ["block", "context", "registeredComponents", "linkComponent"],
629
629
  mounted() {
630
630
  const e = this.processedBlock.id, t = this.processedBlock.animations;
631
- t && e && Lt(
631
+ t && e && Dt(
632
632
  t.map((n) => ({
633
633
  ...n,
634
634
  elementId: e
@@ -651,7 +651,7 @@ const Ht = ({
651
651
  },
652
652
  processedBlock() {
653
653
  var e;
654
- return (e = this.block.repeat) != null && e.collection ? this.block : Le({
654
+ return (e = this.block.repeat) != null && e.collection ? this.block : De({
655
655
  block: this.block,
656
656
  localState: this.context.localState,
657
657
  rootState: this.context.rootState,
@@ -757,7 +757,7 @@ function tn(e, t, n, o, r, i) {
757
757
  ], 64))
758
758
  ], 64)) : v("", !0);
759
759
  }
760
- const fe = /* @__PURE__ */ b(en, [["render", tn]]), Ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
760
+ const fe = /* @__PURE__ */ b(en, [["render", tn]]), xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
761
761
  __proto__: null,
762
762
  default: fe
763
763
  }, Symbol.toStringTag, { value: "Module" })), nn = f({
@@ -834,7 +834,7 @@ const rn = /* @__PURE__ */ b(nn, [["render", on], ["__scopeId", "data-v-a5b13ef9
834
834
  "registeredComponents"
835
835
  ],
836
836
  inject: {
837
- builderContext: ce.key,
837
+ builderContext: le.key,
838
838
  componentsContext: Ae.key
839
839
  }
840
840
  });
@@ -870,9 +870,9 @@ function cn(e, t, n, o, r, i) {
870
870
  E(e.$slots, "default")
871
871
  ]);
872
872
  }
873
- const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
873
+ const Y = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
874
874
  __proto__: null,
875
- default: Q
875
+ default: Y
876
876
  }, Symbol.toStringTag, { value: "Module" })), be = f({
877
877
  render() {
878
878
  return xe("style", {
@@ -899,11 +899,11 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
899
899
  default: 991,
900
900
  max: 1200
901
901
  }
902
- }, Vi = (e, t = Ke) => `@media (max-width: ${t[e].max}px)`, un = ({
902
+ }, Ai = (e, t = Ke) => `@media (max-width: ${t[e].max}px)`, un = ({
903
903
  small: e,
904
904
  medium: t
905
905
  }) => {
906
- const n = Y(Ke);
906
+ const n = me(Ke);
907
907
  if (!e || !t)
908
908
  return n;
909
909
  const o = Math.floor(e / 2);
@@ -929,9 +929,9 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
929
929
  name: "builder-columns",
930
930
  components: {
931
931
  InlinedStyles: be,
932
- DynamicRenderer: me,
932
+ DynamicRenderer: pe,
933
933
  Blocks: M,
934
- DynamicDiv: Q
934
+ DynamicDiv: Y
935
935
  },
936
936
  props: [
937
937
  "space",
@@ -1021,6 +1021,7 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
1021
1021
  )[e].max;
1022
1022
  },
1023
1023
  columnsStyles() {
1024
+ const e = `.${this.builderBlock.id}-breakpoints > .builder-column`;
1024
1025
  return `
1025
1026
  @media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
1026
1027
  .${this.builderBlock.id}-breakpoints {
@@ -1028,7 +1029,7 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
1028
1029
  align-items: stretch;
1029
1030
  }
1030
1031
 
1031
- .${this.builderBlock.id}-breakpoints > .builder-column {
1032
+ ${e} {
1032
1033
  width: var(--column-width-tablet) !important;
1033
1034
  margin-left: var(--column-margin-left-tablet) !important;
1034
1035
  }
@@ -1040,7 +1041,7 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
1040
1041
  align-items: stretch;
1041
1042
  }
1042
1043
 
1043
- .${this.builderBlock.id}-breakpoints > .builder-column {
1044
+ ${e} {
1044
1045
  width: var(--column-width-mobile) !important;
1045
1046
  margin-left: var(--column-margin-left-mobile) !important;
1046
1047
  }
@@ -1052,7 +1053,7 @@ const Q = /* @__PURE__ */ b(ln, [["render", cn]]), dn = /* @__PURE__ */ Object.f
1052
1053
  ...e.link ? {
1053
1054
  href: e.link
1054
1055
  } : {},
1055
- [ee()]: "builder-column",
1056
+ [_()]: "builder-column",
1056
1057
  style: He(this.columnCssVars(t))
1057
1058
  };
1058
1059
  }
@@ -1062,7 +1063,7 @@ function hn(e, t, n, o, r, i) {
1062
1063
  var u;
1063
1064
  const s = g("InlinedStyles"), l = g("Blocks"), a = g("DynamicRenderer");
1064
1065
  return d(), p("div", C({
1065
- class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-2brhoa1k8gd",
1066
+ class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-t9spj7joih",
1066
1067
  style: e.columnsCssVars()
1067
1068
  }, {}), [
1068
1069
  e.TARGET !== "reactNative" ? (d(), k(s, {
@@ -1094,7 +1095,7 @@ function hn(e, t, n, o, r, i) {
1094
1095
  }, 1032, ["TagName", "attributes"]))), 128))
1095
1096
  ], 16);
1096
1097
  }
1097
- const fn = /* @__PURE__ */ b(mn, [["render", hn], ["__scopeId", "data-v-975347d5"]]), bn = f({
1098
+ const fn = /* @__PURE__ */ b(mn, [["render", hn], ["__scopeId", "data-v-c214af09"]]), bn = f({
1098
1099
  name: "builder-fragment-component",
1099
1100
  props: []
1100
1101
  });
@@ -1123,7 +1124,7 @@ function vn(e, t) {
1123
1124
  }
1124
1125
  return null;
1125
1126
  }
1126
- function re(e) {
1127
+ function oe(e) {
1127
1128
  if (!e)
1128
1129
  return e;
1129
1130
  const t = [100, 200, 400, 800, 1200, 1600, 2e3];
@@ -1159,12 +1160,14 @@ const Sn = f({
1159
1160
  // images, otherwise you can supply this prop manually
1160
1161
  !(t.match(/builder\.io/) || t.match(/cdn\.shopify\.com/)))
1161
1162
  return this.srcset;
1162
- if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1163
- if (!this.srcset.includes(this.image.split("?")[0]))
1164
- return console.debug("Removed given srcset"), re(t);
1165
- } else if (this.image && !this.srcset)
1166
- return re(t);
1167
- return re(t);
1163
+ if (!this.noWebp) {
1164
+ if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
1165
+ if (!this.srcset.includes(this.image.split("?")[0]))
1166
+ return console.debug("Removed given srcset"), oe(t);
1167
+ } else if (this.image && !this.srcset)
1168
+ return oe(t);
1169
+ return oe(t);
1170
+ }
1168
1171
  },
1169
1172
  webpSrcSet() {
1170
1173
  var e;
@@ -1199,7 +1202,7 @@ function In(e, t, n, o, r, i) {
1199
1202
  fetchpriority: e.highPriority ? "high" : "auto",
1200
1203
  alt: e.altText,
1201
1204
  role: e.altText ? void 0 : "presentation",
1202
- style: L({
1205
+ style: D({
1203
1206
  objectPosition: e.backgroundPosition || "center",
1204
1207
  objectFit: e.backgroundSize || "cover",
1205
1208
  ...e.aspectRatioCss
@@ -1215,7 +1218,7 @@ function In(e, t, n, o, r, i) {
1215
1218
  e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), p("div", {
1216
1219
  key: 0,
1217
1220
  class: "builder-image-sizer div-1pl23ac79ld",
1218
- style: L({
1221
+ style: D({
1219
1222
  paddingTop: e.aspectRatio * 100 + "%"
1220
1223
  })
1221
1224
  }, null, 4)) : v("", !0),
@@ -1225,7 +1228,7 @@ function In(e, t, n, o, r, i) {
1225
1228
  ])) : v("", !0)
1226
1229
  ], 64);
1227
1230
  }
1228
- const $n = /* @__PURE__ */ b(Sn, [["render", In], ["__scopeId", "data-v-0d528855"]]), Rn = f({
1231
+ const $n = /* @__PURE__ */ b(Sn, [["render", In], ["__scopeId", "data-v-ce62b8d6"]]), Rn = f({
1229
1232
  name: "builder-section-component",
1230
1233
  props: ["attributes", "maxWidth"],
1231
1234
  data() {
@@ -1266,7 +1269,7 @@ const Pn = /* @__PURE__ */ b(Rn, [["render", Bn]]), En = (e) => {
1266
1269
  B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
1267
1270
  return;
1268
1271
  }
1269
- }, ze = async (e) => qe(e), xn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), An = [["secure", ""], ["SameSite", "None"]], Vn = ({
1272
+ }, ze = async (e) => qe(e), xn = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(L).join("; "), An = [["secure", ""], ["SameSite", "None"]], Vn = ({
1270
1273
  name: e,
1271
1274
  value: t,
1272
1275
  expires: n
@@ -1308,7 +1311,7 @@ const Pn = /* @__PURE__ */ b(Rn, [["render", Bn]]), En = (e) => {
1308
1311
  name: ge(e),
1309
1312
  value: t,
1310
1313
  canTrack: !0
1311
- }), Ge = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, Ln = ({
1314
+ }), Ge = (e) => L(e.id) && L(e.variations) && Object.keys(e.variations).length > 0, Dn = ({
1312
1315
  id: e,
1313
1316
  variations: t
1314
1317
  }) => {
@@ -1322,7 +1325,7 @@ const Pn = /* @__PURE__ */ b(Rn, [["render", Bn]]), En = (e) => {
1322
1325
  }
1323
1326
  return e;
1324
1327
  }, Ye = (e) => {
1325
- const t = Ln(e);
1328
+ const t = Dn(e);
1326
1329
  return On({
1327
1330
  contentId: e.id,
1328
1331
  value: t
@@ -1343,7 +1346,7 @@ const Pn = /* @__PURE__ */ b(Rn, [["render", Bn]]), En = (e) => {
1343
1346
  testVariationId: n.id,
1344
1347
  testVariationName: n.name || (n.id === e.id ? "Default" : "")
1345
1348
  };
1346
- }, Dn = ({
1349
+ }, Ln = ({
1347
1350
  item: e,
1348
1351
  canTrack: t
1349
1352
  }) => {
@@ -1385,7 +1388,7 @@ const Pn = /* @__PURE__ */ b(Rn, [["render", Bn]]), En = (e) => {
1385
1388
  ...e,
1386
1389
  ...r
1387
1390
  };
1388
- }, G = (e) => D(e) ? e : !0, ie = {
1391
+ }, G = (e) => L(e) ? e : !0, re = {
1389
1392
  "@type": "@builder.io/sdk:Element",
1390
1393
  layerName: "Accordion item title",
1391
1394
  responsiveStyles: {
@@ -1414,7 +1417,7 @@ const Pn = /* @__PURE__ */ b(Rn, [["render", Bn]]), En = (e) => {
1414
1417
  }
1415
1418
  }
1416
1419
  }]
1417
- }, se = {
1420
+ }, ie = {
1418
1421
  "@type": "@builder.io/sdk:Element",
1419
1422
  layerName: "Accordion item detail",
1420
1423
  responsiveStyles: {
@@ -1462,19 +1465,19 @@ const Pn = /* @__PURE__ */ b(Rn, [["render", Bn]]), En = (e) => {
1462
1465
  name: "title",
1463
1466
  type: "uiBlocks",
1464
1467
  hideFromUI: !0,
1465
- defaultValue: [ie]
1468
+ defaultValue: [re]
1466
1469
  }, {
1467
1470
  name: "detail",
1468
1471
  type: "uiBlocks",
1469
1472
  hideFromUI: !0,
1470
- defaultValue: [se]
1473
+ defaultValue: [ie]
1471
1474
  }],
1472
1475
  defaultValue: [{
1473
- title: [ie],
1474
- detail: [se]
1476
+ title: [re],
1477
+ detail: [ie]
1475
1478
  }, {
1476
- title: [ie],
1477
- detail: [se]
1479
+ title: [re],
1480
+ detail: [ie]
1478
1481
  }],
1479
1482
  showIf: (e) => !e.get("useChildrenForItems")
1480
1483
  }, {
@@ -1609,12 +1612,12 @@ function qn(e, t, n, o, r, i) {
1609
1612
  const s = g("Blocks");
1610
1613
  return d(), p("div", {
1611
1614
  class: "builder-accordion",
1612
- style: L(e.accordionStyles)
1615
+ style: D(e.accordionStyles)
1613
1616
  }, [
1614
1617
  (d(!0), p(I, null, N(e.items, (l, a) => (d(), p(I, { key: a }, [
1615
1618
  z("div", {
1616
1619
  class: J(e.getAccordionTitleClassName(a)),
1617
- style: L({
1620
+ style: D({
1618
1621
  ...e.accordionTitleStyles,
1619
1622
  width: e.grid ? e.gridRowWidth : void 0,
1620
1623
  order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
@@ -1634,7 +1637,7 @@ function qn(e, t, n, o, r, i) {
1634
1637
  e.open.includes(a) ? (d(), p("div", {
1635
1638
  key: 0,
1636
1639
  class: J(e.getAccordionDetailClassName(a)),
1637
- style: L(e.accordionDetailStyles)
1640
+ style: D(e.accordionDetailStyles)
1638
1641
  }, [
1639
1642
  $(s, {
1640
1643
  blocks: l.detail,
@@ -2123,7 +2126,7 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2123
2126
  builderComponents: !0,
2124
2127
  builderLinkComponent: !0
2125
2128
  }
2126
- }, ae = {
2129
+ }, se = {
2127
2130
  "@type": "@builder.io/sdk:Element",
2128
2131
  responsiveStyles: {
2129
2132
  large: {
@@ -2145,7 +2148,7 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2145
2148
  text: "New tab"
2146
2149
  }
2147
2150
  }
2148
- }, le = {
2151
+ }, ae = {
2149
2152
  "@type": "@builder.io/sdk:Element",
2150
2153
  responsiveStyles: {
2151
2154
  large: {
@@ -2171,16 +2174,16 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2171
2174
  name: "label",
2172
2175
  type: "uiBlocks",
2173
2176
  hideFromUI: !0,
2174
- defaultValue: [ae]
2177
+ defaultValue: [se]
2175
2178
  }, {
2176
2179
  name: "content",
2177
2180
  type: "uiBlocks",
2178
2181
  hideFromUI: !0,
2179
- defaultValue: [le]
2182
+ defaultValue: [ae]
2180
2183
  }],
2181
2184
  defaultValue: [{
2182
2185
  label: [{
2183
- ...ae,
2186
+ ...se,
2184
2187
  component: {
2185
2188
  name: "Text",
2186
2189
  options: {
@@ -2189,7 +2192,7 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2189
2192
  }
2190
2193
  }],
2191
2194
  content: [{
2192
- ...le,
2195
+ ...ae,
2193
2196
  component: {
2194
2197
  name: "Text",
2195
2198
  options: {
@@ -2199,7 +2202,7 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2199
2202
  }]
2200
2203
  }, {
2201
2204
  label: [{
2202
- ...ae,
2205
+ ...se,
2203
2206
  component: {
2204
2207
  name: "Text",
2205
2208
  options: {
@@ -2208,7 +2211,7 @@ const to = /* @__PURE__ */ b(_n, [["render", eo]]), no = {
2208
2211
  }
2209
2212
  }],
2210
2213
  content: [{
2211
- ...le,
2214
+ ...ae,
2212
2215
  component: {
2213
2216
  name: "Text",
2214
2217
  options: {
@@ -2295,7 +2298,7 @@ function ao(e, t, n, o, r, i) {
2295
2298
  return d(), p("div", null, [
2296
2299
  z("div", {
2297
2300
  class: "builder-tabs-wrap",
2298
- style: L({
2301
+ style: D({
2299
2302
  display: "flex",
2300
2303
  flexDirection: "row",
2301
2304
  justifyContent: e.tabHeaderLayout || "flex-start",
@@ -2305,7 +2308,7 @@ function ao(e, t, n, o, r, i) {
2305
2308
  (d(!0), p(I, null, N(e.tabs, (l, a) => (d(), p("span", {
2306
2309
  key: a,
2307
2310
  class: J(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
2308
- style: L({
2311
+ style: D({
2309
2312
  ...e.activeTab === a ? e.activeTabStyle : {}
2310
2313
  }),
2311
2314
  onClick: (u) => e.onClick(a)
@@ -2932,7 +2935,7 @@ function Wo(e, t, n, o, r, i) {
2932
2935
  blocks: e.sendingMessage,
2933
2936
  context: e.builderContext
2934
2937
  }, null, 8, ["blocks", "context"])) : v("", !0),
2935
- e.submissionState() === "error" && e.responseData ? (d(), p("pre", Vo, ne(JSON.stringify(e.responseData, null, 2)), 1)) : v("", !0),
2938
+ e.submissionState() === "error" && e.responseData ? (d(), p("pre", Vo, te(JSON.stringify(e.responseData, null, 2)), 1)) : v("", !0),
2936
2939
  e.submissionState() === "success" ? (d(), k(l, {
2937
2940
  key: 4,
2938
2941
  path: "successMessage",
@@ -3006,8 +3009,8 @@ const No = /* @__PURE__ */ b(xo, [["render", Wo], ["__scopeId", "data-v-489330f7
3006
3009
  data() {
3007
3010
  return { isEditing: R, filterAttrs: x };
3008
3011
  }
3009
- }), Lo = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3010
- function Do(e, t, n, o, r, i) {
3012
+ }), Do = ["placeholder", "type", "name", "value", "defaultValue", "required"];
3013
+ function Lo(e, t, n, o, r, i) {
3011
3014
  return d(), p("input", C({
3012
3015
  key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
3013
3016
  placeholder: e.placeholder,
@@ -3016,9 +3019,9 @@ function Do(e, t, n, o, r, i) {
3016
3019
  value: e.value,
3017
3020
  defaultValue: e.defaultValue,
3018
3021
  required: e.required
3019
- }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Lo);
3022
+ }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Do);
3020
3023
  }
3021
- const Uo = /* @__PURE__ */ b(Oo, [["render", Do]]), Mo = {
3024
+ const Uo = /* @__PURE__ */ b(Oo, [["render", Lo]]), Mo = {
3022
3025
  name: "Form:Select",
3023
3026
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
3024
3027
  defaultStyles: {
@@ -3078,7 +3081,7 @@ function qo(e, t, n, o, r, i) {
3078
3081
  (d(!0), p(I, null, N(e.options, (s, l) => (d(), p("option", {
3079
3082
  key: `${s.name}-${l}`,
3080
3083
  value: s.value
3081
- }, ne(s.name || s.value), 9, Ko))), 128))
3084
+ }, te(s.name || s.value), 9, Ko))), 128))
3082
3085
  ], 16, Ho);
3083
3086
  }
3084
3087
  const zo = /* @__PURE__ */ b(jo, [["render", qo]]), Jo = {
@@ -3114,7 +3117,7 @@ const zo = /* @__PURE__ */ b(jo, [["render", qo]]), Jo = {
3114
3117
  }
3115
3118
  });
3116
3119
  function Yo(e, t, n, o, r, i) {
3117
- return d(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ne(e.text), 17);
3120
+ return d(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), te(e.text), 17);
3118
3121
  }
3119
3122
  const Qo = /* @__PURE__ */ b(Go, [["render", Yo]]), Xo = {
3120
3123
  name: "Form:TextArea",
@@ -3397,7 +3400,7 @@ function hr(e, t, n, o, r, i) {
3397
3400
  ], 16, dr),
3398
3401
  e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), p("div", {
3399
3402
  key: 0,
3400
- style: L({
3403
+ style: D({
3401
3404
  width: "100%",
3402
3405
  paddingTop: e.aspectRatio * 100 + "%",
3403
3406
  pointerEvents: "none",
@@ -3458,7 +3461,7 @@ const fr = /* @__PURE__ */ b(lr, [["render", hr]]), br = () => [{
3458
3461
  component: to,
3459
3462
  ...Zn
3460
3463
  }, {
3461
- component: Ii,
3464
+ component: Ti,
3462
3465
  ...no
3463
3466
  }, {
3464
3467
  component: ho,
@@ -3471,20 +3474,15 @@ const fr = /* @__PURE__ */ b(lr, [["render", hr]]), br = () => [{
3471
3474
  ...Mn
3472
3475
  }, ...br()], gr = (e) => ({
3473
3476
  type: "builder.registerComponent",
3474
- data: de(e)
3477
+ data: ce(e)
3475
3478
  }), yr = (e) => {
3476
3479
  const t = e.toString().trim();
3477
3480
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
3478
- }, kr = (e) => typeof e == "function" ? yr(e) : Y(e), de = ({
3479
- inputs: e,
3480
- ...t
3481
- }) => ({
3482
- ...Y(t),
3483
- inputs: e == null ? void 0 : e.map((n) => Object.entries(n).reduce((o, [r, i]) => ({
3484
- ...o,
3485
- [r]: kr(i)
3486
- }), {}))
3487
- }), vr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3481
+ };
3482
+ function ce(e) {
3483
+ return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? yr(n) : n));
3484
+ }
3485
+ const kr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
3488
3486
  function getAndSetVariantId() {
3489
3487
  function setCookie(name, value, days) {
3490
3488
  let expires = '';
@@ -3540,7 +3538,7 @@ const fr = /* @__PURE__ */ b(lr, [["render", hr]]), br = () => [{
3540
3538
  }).join('');
3541
3539
  styleEl.innerHTML = newStyleStr;
3542
3540
  }
3543
- }`, Sr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3541
+ }`, vr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
3544
3542
  if (!navigator.cookieEnabled) {
3545
3543
  return;
3546
3544
  }
@@ -3574,20 +3572,20 @@ const fr = /* @__PURE__ */ b(lr, [["render", hr]]), br = () => [{
3574
3572
  thisScriptEl?.remove();
3575
3573
  }
3576
3574
  return;
3577
- }`, Xe = "builderIoAbTest", Ze = "builderIoRenderContent", _ = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3575
+ }`, Xe = "builderIoAbTest", Ze = "builderIoRenderContent", Z = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
3578
3576
  ...t,
3579
3577
  testVariationId: t.id,
3580
3578
  id: e == null ? void 0 : e.id
3581
- })), Cr = ({
3579
+ })), Sr = ({
3582
3580
  canTrack: e,
3583
3581
  content: t
3584
- }) => !(!(_(t).length > 0) || !e), wr = (e) => e === "react" || e === "reactNative", _e = wr(A), Tr = () => `
3585
- window.${Xe} = ${vr}
3586
- window.${Ze} = ${Sr}
3587
- `, Ir = (e, t) => `
3582
+ }) => !(!(Z(t).length > 0) || !e), Cr = (e) => e === "react" || e === "reactNative", _e = Cr(A), wr = () => `
3583
+ window.${Xe} = ${kr}
3584
+ window.${Ze} = ${vr}
3585
+ `, Tr = (e, t) => `
3588
3586
  window.${Xe}(
3589
3587
  "${t}",${JSON.stringify(e)}, ${_e}
3590
- )`, $r = ({
3588
+ )`, Ir = ({
3591
3589
  contentId: e,
3592
3590
  variationId: t
3593
3591
  }) => `window.${Ze}(
@@ -3603,23 +3601,23 @@ const fr = /* @__PURE__ */ b(lr, [["render", hr]]), br = () => [{
3603
3601
  name: "inlined-script",
3604
3602
  props: ["scriptStr", "id", "nonce"]
3605
3603
  });
3606
- function Rr() {
3604
+ function $r() {
3607
3605
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
3608
3606
  }
3609
- function Br() {
3610
- const e = Rr().fetch;
3607
+ function Rr() {
3608
+ const e = $r().fetch;
3611
3609
  if (typeof e > "u")
3612
3610
  throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
3613
3611
  For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
3614
3612
  return e;
3615
3613
  }
3616
- const tt = Br();
3617
- function ue(e, t = null, n = ".") {
3614
+ const tt = Rr();
3615
+ function de(e, t = null, n = ".") {
3618
3616
  return Object.keys(e).reduce((o, r) => {
3619
3617
  const i = e[r], s = [t, r].filter(Boolean).join(n);
3620
3618
  return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
3621
3619
  ...o,
3622
- ...ue(i, s, n)
3620
+ ...de(i, s, n)
3623
3621
  } : {
3624
3622
  ...o,
3625
3623
  [s]: i
@@ -3633,17 +3631,17 @@ function nt(e, t, n = {}) {
3633
3631
  }
3634
3632
  return n;
3635
3633
  }
3636
- const Pr = "v3", Te = "builder.", Er = "options.", ot = (e) => {
3634
+ const Br = "v3", Te = "builder.", Pr = "options.", ot = (e) => {
3637
3635
  if (!e)
3638
3636
  return {};
3639
3637
  const t = Ve(e), n = {};
3640
3638
  return Object.keys(t).forEach((o) => {
3641
3639
  if (o.startsWith(Te)) {
3642
- const r = o.replace(Te, "").replace(Er, "");
3640
+ const r = o.replace(Te, "").replace(Pr, "");
3643
3641
  n[r] = t[o];
3644
3642
  }
3645
3643
  }), n;
3646
- }, xr = () => {
3644
+ }, Er = () => {
3647
3645
  if (!T())
3648
3646
  return {};
3649
3647
  const e = new URLSearchParams(window.location.search);
@@ -3657,7 +3655,7 @@ const Pr = "v3", Te = "builder.", Er = "options.", ot = (e) => {
3657
3655
  apiKey: i,
3658
3656
  enrich: s,
3659
3657
  locale: l,
3660
- apiVersion: a = Pr,
3658
+ apiVersion: a = Br,
3661
3659
  fields: u,
3662
3660
  omit: h,
3663
3661
  offset: c,
@@ -3670,18 +3668,18 @@ const Pr = "v3", Te = "builder.", Er = "options.", ot = (e) => {
3670
3668
  throw new Error("Missing API key");
3671
3669
  if (!["v3"].includes(a))
3672
3670
  throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
3673
- const X = t !== 1, w = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
3674
- if (w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(X)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && w.searchParams.set("offset", String(Math.floor(c))), typeof F == "boolean" && w.searchParams.set("includeUnpublished", String(F)), m && Ie(m) && w.searchParams.set("cacheSeconds", String(m)), S && Ie(S) && w.searchParams.set("staleCacheSeconds", String(S)), y) {
3675
- const O = ue({
3671
+ const Q = t !== 1, w = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
3672
+ if (w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(Q)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l), s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", h || "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(c) && c > -1 && w.searchParams.set("offset", String(Math.floor(c))), typeof F == "boolean" && w.searchParams.set("includeUnpublished", String(F)), m && Ie(m) && w.searchParams.set("cacheSeconds", String(m)), S && Ie(S) && w.searchParams.set("staleCacheSeconds", String(S)), y) {
3673
+ const O = de({
3676
3674
  sort: y
3677
3675
  });
3678
3676
  for (const j in O)
3679
3677
  w.searchParams.set(j, JSON.stringify(O[j]));
3680
3678
  }
3681
3679
  const ut = {
3682
- ...xr(),
3680
+ ...Er(),
3683
3681
  ...Ve(e.options || {})
3684
- }, ve = ue(ut);
3682
+ }, ve = de(ut);
3685
3683
  for (const O in ve)
3686
3684
  w.searchParams.set(O, String(ve[O]));
3687
3685
  if (n && w.searchParams.set("userAttributes", JSON.stringify(n)), o) {
@@ -3692,18 +3690,18 @@ const Pr = "v3", Te = "builder.", Er = "options.", ot = (e) => {
3692
3690
  w.searchParams.set(j, JSON.stringify(O[j]));
3693
3691
  }
3694
3692
  return w;
3695
- }, Ar = (e) => "results" in e;
3693
+ }, xr = (e) => "results" in e;
3696
3694
  async function ke(e) {
3697
- const t = await Nr({
3695
+ const t = await Wr({
3698
3696
  ...e,
3699
3697
  limit: 1
3700
3698
  });
3701
3699
  return t && t[0] || null;
3702
3700
  }
3703
- const Vr = async (e) => {
3701
+ const Ar = async (e) => {
3704
3702
  const t = ye(e);
3705
3703
  return await (await (e.fetch ?? tt)(t.href, e.fetchOptions)).json();
3706
- }, Wr = async (e, t, n = ye(e)) => {
3704
+ }, Vr = async (e, t, n = ye(e)) => {
3707
3705
  const o = G(e.canTrack);
3708
3706
  if (n.search.includes("preview="), !o || !(T() || A === "reactNative"))
3709
3707
  return t.results;
@@ -3720,10 +3718,10 @@ const Vr = async (e) => {
3720
3718
  }
3721
3719
  return t.results;
3722
3720
  };
3723
- async function Nr(e) {
3721
+ async function Wr(e) {
3724
3722
  try {
3725
- const t = ye(e), n = await Vr(e);
3726
- return Ar(n) ? Wr(e, n) : (B.error("Error fetching data. ", {
3723
+ const t = ye(e), n = await Ar(e);
3724
+ return xr(n) ? Vr(e, n) : (B.error("Error fetching data. ", {
3727
3725
  url: t,
3728
3726
  content: n,
3729
3727
  options: e
@@ -3732,20 +3730,20 @@ async function Nr(e) {
3732
3730
  return B.error("Error fetching data. ", t), null;
3733
3731
  }
3734
3732
  }
3735
- function Fr(e) {
3733
+ function Nr(e) {
3736
3734
  const t = e || (T() ? window.location.search : void 0);
3737
3735
  return t ? We(t).indexOf("builder.preview=") !== -1 : !1;
3738
3736
  }
3739
- function Or() {
3737
+ function Fr() {
3740
3738
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
3741
3739
  const t = Math.random() * 16 | 0;
3742
3740
  return (e == "x" ? t : t & 3 | 8).toString(16);
3743
3741
  });
3744
3742
  }
3745
3743
  function rt() {
3746
- return Or().replace(/-/g, "");
3744
+ return Fr().replace(/-/g, "");
3747
3745
  }
3748
- const it = "builderSessionId", Lr = async ({
3746
+ const it = "builderSessionId", Or = async ({
3749
3747
  canTrack: e
3750
3748
  }) => {
3751
3749
  if (!e)
@@ -3754,23 +3752,23 @@ const it = "builderSessionId", Lr = async ({
3754
3752
  name: it,
3755
3753
  canTrack: e
3756
3754
  });
3757
- if (D(t))
3755
+ if (L(t))
3758
3756
  return t;
3759
3757
  {
3760
3758
  const n = Dr();
3761
- return Ur({
3759
+ return Lr({
3762
3760
  id: n,
3763
3761
  canTrack: e
3764
3762
  }), n;
3765
3763
  }
3766
- }, Dr = () => rt(), Ur = ({
3764
+ }, Dr = () => rt(), Lr = ({
3767
3765
  id: e,
3768
3766
  canTrack: t
3769
3767
  }) => Je({
3770
3768
  name: it,
3771
3769
  value: e,
3772
3770
  canTrack: t
3773
- }), st = () => T() && typeof localStorage < "u" ? localStorage : void 0, Mr = ({
3771
+ }), st = () => T() && typeof localStorage < "u" ? localStorage : void 0, Ur = ({
3774
3772
  key: e,
3775
3773
  canTrack: t
3776
3774
  }) => {
@@ -3781,7 +3779,7 @@ const it = "builderSessionId", Lr = async ({
3781
3779
  console.debug("[LocalStorage] GET error: ", o);
3782
3780
  return;
3783
3781
  }
3784
- }, jr = ({
3782
+ }, Mr = ({
3785
3783
  key: e,
3786
3784
  canTrack: t,
3787
3785
  value: n
@@ -3792,32 +3790,32 @@ const it = "builderSessionId", Lr = async ({
3792
3790
  } catch (r) {
3793
3791
  console.debug("[LocalStorage] SET error: ", r);
3794
3792
  }
3795
- }, at = "builderVisitorId", Hr = ({
3793
+ }, at = "builderVisitorId", jr = ({
3796
3794
  canTrack: e
3797
3795
  }) => {
3798
3796
  if (!e)
3799
3797
  return;
3800
- const t = Mr({
3798
+ const t = Ur({
3801
3799
  key: at,
3802
3800
  canTrack: e
3803
3801
  });
3804
- if (D(t))
3802
+ if (L(t))
3805
3803
  return t;
3806
3804
  {
3807
- const n = Kr();
3808
- return qr({
3805
+ const n = Hr();
3806
+ return Kr({
3809
3807
  id: n,
3810
3808
  canTrack: e
3811
3809
  }), n;
3812
3810
  }
3813
- }, Kr = () => rt(), qr = ({
3811
+ }, Hr = () => rt(), Kr = ({
3814
3812
  id: e,
3815
3813
  canTrack: t
3816
- }) => jr({
3814
+ }) => Mr({
3817
3815
  key: at,
3818
3816
  value: e,
3819
3817
  canTrack: t
3820
- }), zr = async ({
3818
+ }), qr = async ({
3821
3819
  canTrack: e
3822
3820
  }) => {
3823
3821
  if (!e)
@@ -3825,16 +3823,16 @@ const it = "builderSessionId", Lr = async ({
3825
3823
  visitorId: void 0,
3826
3824
  sessionId: void 0
3827
3825
  };
3828
- const t = await Lr({
3826
+ const t = await Or({
3829
3827
  canTrack: e
3830
- }), n = Hr({
3828
+ }), n = jr({
3831
3829
  canTrack: e
3832
3830
  });
3833
3831
  return {
3834
3832
  sessionId: t,
3835
3833
  visitorId: n
3836
3834
  };
3837
- }, Jr = async ({
3835
+ }, zr = async ({
3838
3836
  type: e,
3839
3837
  canTrack: t,
3840
3838
  apiKey: n,
@@ -3848,14 +3846,14 @@ const it = "builderSessionId", Lr = async ({
3848
3846
  url: location.href,
3849
3847
  ...o
3850
3848
  },
3851
- ...await zr({
3849
+ ...await qr({
3852
3850
  canTrack: t
3853
3851
  }),
3854
3852
  userAttributes: Ne(),
3855
3853
  ownerId: n
3856
3854
  }
3857
3855
  });
3858
- async function pe(e) {
3856
+ async function ue(e) {
3859
3857
  if (!e.apiKey) {
3860
3858
  B.error("Missing API key for track call. Please provide your API key.");
3861
3859
  return;
@@ -3864,7 +3862,7 @@ async function pe(e) {
3864
3862
  return fetch("https://cdn.builder.io/api/v1/track", {
3865
3863
  method: "POST",
3866
3864
  body: JSON.stringify({
3867
- events: [await Jr(e)]
3865
+ events: [await zr(e)]
3868
3866
  }),
3869
3867
  headers: {
3870
3868
  "content-type": "application/json"
@@ -3874,14 +3872,14 @@ async function pe(e) {
3874
3872
  console.error("Failed to track: ", t);
3875
3873
  });
3876
3874
  }
3877
- const Wi = (e) => pe({
3875
+ const Vi = (e) => ue({
3878
3876
  ...e,
3879
3877
  canTrack: !0
3880
3878
  });
3881
3879
  function $e(e) {
3882
3880
  return Math.round(e * 1e3) / 1e3;
3883
3881
  }
3884
- const Gr = (e, t, n = !0) => {
3882
+ const Jr = (e, t, n = !0) => {
3885
3883
  if (!(e instanceof HTMLElement))
3886
3884
  return null;
3887
3885
  let o = n ? e : e.parentElement;
@@ -3892,7 +3890,7 @@ const Gr = (e, t, n = !0) => {
3892
3890
  return o;
3893
3891
  } while (o = o.parentElement);
3894
3892
  return null;
3895
- }, Yr = (e) => Gr(e, (t) => {
3893
+ }, Gr = (e) => Jr(e, (t) => {
3896
3894
  const n = t.getAttribute("builder-id") || t.id;
3897
3895
  return (n == null ? void 0 : n.indexOf("builder-")) === 0;
3898
3896
  }), Re = ({
@@ -3904,8 +3902,8 @@ const Gr = (e, t, n = !0) => {
3904
3902
  x: i,
3905
3903
  y: s
3906
3904
  };
3907
- }, Qr = (e) => {
3908
- const t = e.target, n = t && Yr(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3905
+ }, Yr = (e) => {
3906
+ const t = e.target, n = t && Gr(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
3909
3907
  return {
3910
3908
  targetBuilderElement: o || void 0,
3911
3909
  metadata: {
@@ -3920,15 +3918,15 @@ const Gr = (e, t, n = !0) => {
3920
3918
  builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
3921
3919
  }
3922
3920
  };
3923
- }, Xr = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3921
+ }, Qr = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
3924
3922
  function lt(e, t) {
3925
3923
  if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
3926
3924
  return !1;
3927
3925
  const n = new URL(t.origin), o = n.hostname;
3928
- return (e || Xr).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
3926
+ return (e || Qr).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
3929
3927
  }
3930
- const Zr = "2.0.1", Be = {};
3931
- function _r(e, t) {
3928
+ const Xr = "2.0.3", Be = {};
3929
+ function Zr(e, t) {
3932
3930
  let n = Be[e];
3933
3931
  if (n || (n = Be[e] = []), n.push(t), T()) {
3934
3932
  const o = {
@@ -3945,8 +3943,8 @@ function _r(e, t) {
3945
3943
  }
3946
3944
  }
3947
3945
  }
3948
- const ei = () => {
3949
- _r("insertMenu", {
3946
+ const _r = () => {
3947
+ Zr("insertMenu", {
3950
3948
  name: "_default",
3951
3949
  default: !0,
3952
3950
  items: [{
@@ -3975,7 +3973,7 @@ const ct = (e = {}) => {
3975
3973
  type: "builder.sdkInfo",
3976
3974
  data: {
3977
3975
  target: A,
3978
- version: Zr,
3976
+ version: Xr,
3979
3977
  supportsPatchUpdates: !1,
3980
3978
  // Supports builder-model="..." attribute which is needed to
3981
3979
  // scope our '+ add block' button styling
@@ -4056,7 +4054,7 @@ const ct = (e = {}) => {
4056
4054
  break;
4057
4055
  }
4058
4056
  }
4059
- }, Ni = (e, t, n) => {
4057
+ }, Wi = (e, t, n) => {
4060
4058
  if (!T)
4061
4059
  return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
4062
4060
  };
@@ -4075,7 +4073,7 @@ const ct = (e = {}) => {
4075
4073
  return window.addEventListener("message", o), () => {
4076
4074
  window.removeEventListener("message", o);
4077
4075
  };
4078
- }, ti = (e) => {
4076
+ }, ei = (e) => {
4079
4077
  var i;
4080
4078
  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);
4081
4079
  let r = "";
@@ -4101,15 +4099,15 @@ font-weight: ${s};
4101
4099
  `.trim());
4102
4100
  }
4103
4101
  return r;
4104
- }, ni = ({
4102
+ }, ti = ({
4105
4103
  customFonts: e
4106
4104
  }) => {
4107
4105
  var t;
4108
- return ((t = e == null ? void 0 : e.map((n) => ti(n))) == null ? void 0 : t.join(" ")) || "";
4109
- }, oi = ({
4106
+ return ((t = e == null ? void 0 : e.map((n) => ei(n))) == null ? void 0 : t.join(" ")) || "";
4107
+ }, ni = ({
4110
4108
  cssCode: e,
4111
4109
  contentId: t
4112
- }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ri = `
4110
+ }) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", oi = `
4113
4111
  .builder-button {
4114
4112
  all: unset;
4115
4113
  }
@@ -4126,9 +4124,9 @@ font-weight: ${s};
4126
4124
  text-align: inherit;
4127
4125
  font-family: inherit;
4128
4126
  }
4129
- `, ii = (e) => e ? "" : ri, si = (e) => `variant-${e}`, ai = f({
4127
+ `, ri = (e) => e ? "" : oi, ii = (e) => `variant-${e}`, si = f({
4130
4128
  name: "enable-editor",
4131
- components: { DynamicDiv: Q },
4129
+ components: { DynamicDiv: Y },
4132
4130
  props: [
4133
4131
  "builderContextSignal",
4134
4132
  "canTrack",
@@ -4150,14 +4148,14 @@ font-weight: ${s};
4150
4148
  httpReqsData: {},
4151
4149
  httpReqsPending: {},
4152
4150
  clicked: !1,
4153
- builderContext: ce,
4154
- getWrapperClassName: si
4151
+ builderContext: le,
4152
+ getWrapperClassName: ii
4155
4153
  };
4156
4154
  },
4157
4155
  provide() {
4158
4156
  const e = this;
4159
4157
  return {
4160
- [ce.key]: e.builderContextSignal
4158
+ [le.key]: e.builderContextSignal
4161
4159
  };
4162
4160
  },
4163
4161
  mounted() {
@@ -4168,7 +4166,7 @@ font-weight: ${s};
4168
4166
  new CustomEvent("initeditingbldr")
4169
4167
  ), this.builderContextSignal.content && G(this.canTrack)) {
4170
4168
  const i = (n = this.builderContextSignal.content) == null ? void 0 : n.testVariationId, s = (o = this.builderContextSignal.content) == null ? void 0 : o.id, l = this.apiKey;
4171
- pe({
4169
+ ue({
4172
4170
  type: "impression",
4173
4171
  canTrack: !0,
4174
4172
  contentId: s,
@@ -4176,7 +4174,7 @@ font-weight: ${s};
4176
4174
  variationId: i !== s ? i : void 0
4177
4175
  });
4178
4176
  }
4179
- Fr() && !R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4177
+ Nr() && !R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
4180
4178
  new CustomEvent("initpreviewingbldr")
4181
4179
  );
4182
4180
  }
@@ -4324,7 +4322,7 @@ font-weight: ${s};
4324
4322
  evaluateJsCode() {
4325
4323
  var t, n;
4326
4324
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
4327
- e && te({
4325
+ e && ee({
4328
4326
  code: e,
4329
4327
  context: this.context || {},
4330
4328
  localState: void 0,
@@ -4340,13 +4338,13 @@ font-weight: ${s};
4340
4338
  var t, n;
4341
4339
  if (this.builderContextSignal.content) {
4342
4340
  const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
4343
- pe({
4341
+ ue({
4344
4342
  type: "click",
4345
4343
  canTrack: G(this.canTrack),
4346
4344
  contentId: r,
4347
4345
  apiKey: this.apiKey,
4348
4346
  variationId: o !== r ? o : void 0,
4349
- ...Qr(e),
4347
+ ...Yr(e),
4350
4348
  unique: !this.clicked
4351
4349
  });
4352
4350
  }
@@ -4362,7 +4360,7 @@ font-weight: ${s};
4362
4360
  const i = r.replace(
4363
4361
  /{{([^}]+)}}/g,
4364
4362
  (s, l) => String(
4365
- te({
4363
+ ee({
4366
4364
  code: l,
4367
4365
  context: this.context || {},
4368
4366
  localState: void 0,
@@ -4389,7 +4387,7 @@ font-weight: ${s};
4389
4387
  "builder:component:stateChange",
4390
4388
  {
4391
4389
  detail: {
4392
- state: Y(this.builderContextSignal.rootState),
4390
+ state: me(this.builderContextSignal.rootState),
4393
4391
  ref: {
4394
4392
  name: this.model
4395
4393
  }
@@ -4399,7 +4397,7 @@ font-weight: ${s};
4399
4397
  );
4400
4398
  },
4401
4399
  elementRef_onIniteditingbldr(e) {
4402
- window.addEventListener("message", this.processMessage), ei(), ct({
4400
+ window.addEventListener("message", this.processMessage), _r(), ct({
4403
4401
  ...this.locale ? {
4404
4402
  locale: this.locale
4405
4403
  } : {},
@@ -4434,7 +4432,7 @@ font-weight: ${s};
4434
4432
  }
4435
4433
  }
4436
4434
  });
4437
- function li(e, t, n, o, r, i) {
4435
+ function ai(e, t, n, o, r, i) {
4438
4436
  var s, l, a;
4439
4437
  return e.builderContextSignal.content ? (d(), k(K(e.ContentWrapper), C({
4440
4438
  key: 0,
@@ -4452,26 +4450,26 @@ function li(e, t, n, o, r, i) {
4452
4450
  _: 3
4453
4451
  }, 16, ["onClick", "builder-content-id", "builder-model", "class", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
4454
4452
  }
4455
- const ci = /* @__PURE__ */ b(ai, [["render", li]]), di = f({
4453
+ const li = /* @__PURE__ */ b(si, [["render", ai]]), ci = f({
4456
4454
  name: "content-styles",
4457
4455
  components: { InlinedStyles: be },
4458
4456
  props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
4459
4457
  data() {
4460
4458
  return {
4461
4459
  injectedStyles: `
4462
- ${oi({
4460
+ ${ni({
4463
4461
  cssCode: this.cssCode,
4464
4462
  contentId: this.contentId
4465
4463
  })}
4466
- ${ni({
4464
+ ${ti({
4467
4465
  customFonts: this.customFonts
4468
4466
  })}
4469
- ${ii(this.isNestedRender)}
4467
+ ${ri(this.isNestedRender)}
4470
4468
  `.trim()
4471
4469
  };
4472
4470
  }
4473
4471
  });
4474
- function ui(e, t, n, o, r, i) {
4472
+ function di(e, t, n, o, r, i) {
4475
4473
  const s = g("InlinedStyles");
4476
4474
  return d(), k(s, {
4477
4475
  id: "builderio-content",
@@ -4479,7 +4477,7 @@ function ui(e, t, n, o, r, i) {
4479
4477
  nonce: e.nonce
4480
4478
  }, null, 8, ["styles", "nonce"]);
4481
4479
  }
4482
- const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4480
+ const ui = /* @__PURE__ */ b(ci, [["render", di]]), pi = ({
4483
4481
  content: e,
4484
4482
  data: t,
4485
4483
  locale: n
@@ -4496,7 +4494,7 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4496
4494
  locale: n
4497
4495
  } : {}
4498
4496
  };
4499
- }, hi = ({
4497
+ }, mi = ({
4500
4498
  content: e,
4501
4499
  data: t
4502
4500
  }) => e ? {
@@ -4506,18 +4504,19 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4506
4504
  ...t
4507
4505
  },
4508
4506
  meta: e == null ? void 0 : e.meta
4509
- } : void 0, fi = ft, bi = f({
4507
+ } : void 0, hi = ft, fi = f({
4510
4508
  name: "content-component",
4511
4509
  components: {
4512
- EnableEditor: ci,
4510
+ EnableEditor: li,
4513
4511
  InlinedScript: et,
4514
- ContentStyles: pi,
4512
+ ContentStyles: ui,
4515
4513
  Blocks: M,
4516
- DynamicDiv: Q
4514
+ DynamicDiv: Y
4517
4515
  },
4518
4516
  props: [
4519
4517
  "content",
4520
4518
  "customComponents",
4519
+ "model",
4521
4520
  "data",
4522
4521
  "locale",
4523
4522
  "context",
@@ -4527,7 +4526,6 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4527
4526
  "blocksWrapper",
4528
4527
  "blocksWrapperProps",
4529
4528
  "nonce",
4530
- "model",
4531
4529
  "enrich",
4532
4530
  "showContent",
4533
4531
  "contentWrapper",
@@ -4538,9 +4536,9 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4538
4536
  "linkComponent"
4539
4537
  ],
4540
4538
  data() {
4541
- var e, t;
4539
+ var e, t, n, o;
4542
4540
  return {
4543
- scriptStr: $r({
4541
+ scriptStr: Ir({
4544
4542
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
4545
4543
  variationId: (e = this.content) == null ? void 0 : e.testVariationId,
4546
4544
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
@@ -4548,24 +4546,24 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4548
4546
  }),
4549
4547
  registeredComponents: [
4550
4548
  ...we(),
4551
- ...this.customComponents || []
4549
+ ...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4552
4550
  ].reduce(
4553
- (n, { component: o, ...r }) => ({
4554
- ...n,
4555
- [r.name]: {
4556
- component: fi(o),
4557
- ...de(r)
4551
+ (r, { component: i, ...s }) => ({
4552
+ ...r,
4553
+ [s.name]: {
4554
+ component: hi(i),
4555
+ ...ce(s)
4558
4556
  }
4559
4557
  }),
4560
4558
  {}
4561
4559
  ),
4562
4560
  builderContextSignal: {
4563
- content: hi({
4561
+ content: mi({
4564
4562
  content: this.content,
4565
4563
  data: this.data
4566
4564
  }),
4567
4565
  localState: void 0,
4568
- rootState: mi({
4566
+ rootState: pi({
4569
4567
  content: this.content,
4570
4568
  data: this.data,
4571
4569
  locale: this.locale
@@ -4577,11 +4575,11 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4577
4575
  apiVersion: this.apiVersion,
4578
4576
  componentInfos: [
4579
4577
  ...we(),
4580
- ...this.customComponents || []
4578
+ ...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
4581
4579
  ].reduce(
4582
- (n, { component: o, ...r }) => ({
4583
- ...n,
4584
- [r.name]: de(r)
4580
+ (r, { component: i, ...s }) => ({
4581
+ ...r,
4582
+ [s.name]: ce(s)
4585
4583
  }),
4586
4584
  {}
4587
4585
  ),
@@ -4607,7 +4605,7 @@ const pi = /* @__PURE__ */ b(di, [["render", ui]]), mi = ({
4607
4605
  }
4608
4606
  }
4609
4607
  });
4610
- function gi(e, t, n, o, r, i) {
4608
+ function bi(e, t, n, o, r, i) {
4611
4609
  const s = g("InlinedScript"), l = g("ContentStyles"), a = g("Blocks"), u = g("EnableEditor");
4612
4610
  return d(), k(u, C({
4613
4611
  nonce: e.nonce,
@@ -4626,7 +4624,7 @@ function gi(e, t, n, o, r, i) {
4626
4624
  trustedHosts: e.trustedHosts
4627
4625
  }, {}), {
4628
4626
  default: W(() => {
4629
- var h, c, m, S, y, F, X;
4627
+ var h, c, m, S, y, F, Q;
4630
4628
  return [
4631
4629
  e.isSsrAbTest ? (d(), k(s, {
4632
4630
  key: 0,
@@ -4643,7 +4641,7 @@ function gi(e, t, n, o, r, i) {
4643
4641
  customFonts: (y = (S = e.builderContextSignal.content) == null ? void 0 : S.data) == null ? void 0 : y.customFonts
4644
4642
  }, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
4645
4643
  $(a, {
4646
- blocks: (X = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : X.blocks,
4644
+ blocks: (Q = (F = e.builderContextSignal.content) == null ? void 0 : F.data) == null ? void 0 : Q.blocks,
4647
4645
  context: e.builderContextSignal,
4648
4646
  registeredComponents: e.registeredComponents,
4649
4647
  linkComponent: e.linkComponent
@@ -4653,12 +4651,12 @@ function gi(e, t, n, o, r, i) {
4653
4651
  _: 1
4654
4652
  }, 16, ["nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
4655
4653
  }
4656
- const yi = /* @__PURE__ */ b(bi, [["render", gi]]), ki = f({
4654
+ const gi = /* @__PURE__ */ b(fi, [["render", bi]]), yi = f({
4657
4655
  name: "content-variants",
4658
4656
  components: {
4659
4657
  InlinedScript: et,
4660
4658
  InlinedStyles: be,
4661
- ContentComponent: yi
4659
+ ContentComponent: gi
4662
4660
  },
4663
4661
  props: [
4664
4662
  "canTrack",
@@ -4682,24 +4680,22 @@ const yi = /* @__PURE__ */ b(bi, [["render", gi]]), ki = f({
4682
4680
  ],
4683
4681
  data() {
4684
4682
  return {
4685
- shouldRenderVariants: Cr({
4683
+ shouldRenderVariants: Sr({
4686
4684
  canTrack: G(this.canTrack),
4687
4685
  content: this.content
4688
4686
  }),
4689
4687
  TARGET: A,
4690
- getInitVariantsFnsScriptString: Tr,
4691
- getVariants: _
4688
+ getInitVariantsFnsScriptString: wr,
4689
+ getVariants: Z
4692
4690
  };
4693
4691
  },
4694
4692
  mounted() {
4695
4693
  },
4696
- updated() {
4697
- },
4698
4694
  computed: {
4699
4695
  updateCookieAndStylesScriptStr() {
4700
4696
  var e;
4701
- return Ir(
4702
- _(this.content).map((t) => ({
4697
+ return Tr(
4698
+ Z(this.content).map((t) => ({
4703
4699
  id: t.testVariationId,
4704
4700
  testRatio: t.testRatio
4705
4701
  })),
@@ -4707,21 +4703,21 @@ const yi = /* @__PURE__ */ b(bi, [["render", gi]]), ki = f({
4707
4703
  );
4708
4704
  },
4709
4705
  hideVariantsStyleString() {
4710
- return _(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4706
+ return Z(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
4711
4707
  },
4712
4708
  defaultContent() {
4713
4709
  var e;
4714
4710
  return this.shouldRenderVariants ? {
4715
4711
  ...this.content,
4716
4712
  testVariationId: (e = this.content) == null ? void 0 : e.id
4717
- } : Dn({
4713
+ } : Ln({
4718
4714
  item: this.content,
4719
4715
  canTrack: G(this.canTrack)
4720
4716
  });
4721
4717
  }
4722
4718
  }
4723
4719
  });
4724
- function vi(e, t, n, o, r, i) {
4720
+ function ki(e, t, n, o, r, i) {
4725
4721
  const s = g("InlinedScript"), l = g("InlinedStyles"), a = g("ContentComponent");
4726
4722
  return d(), p(I, null, [
4727
4723
  !e.isNestedRender && e.TARGET !== "reactNative" ? (d(), k(s, {
@@ -4791,7 +4787,7 @@ function vi(e, t, n, o, r, i) {
4791
4787
  }), null, 16, ["nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
4792
4788
  ], 64);
4793
4789
  }
4794
- const Si = /* @__PURE__ */ b(ki, [["render", vi]]), Ci = async ({
4790
+ const vi = /* @__PURE__ */ b(yi, [["render", ki]]), Si = async ({
4795
4791
  builderContextValue: e,
4796
4792
  symbol: t
4797
4793
  }) => {
@@ -4809,9 +4805,9 @@ const Si = /* @__PURE__ */ b(ki, [["render", vi]]), Ci = async ({
4809
4805
  }).catch((n) => {
4810
4806
  B.error("Could not fetch symbol content: ", n);
4811
4807
  });
4812
- }, wi = f({
4808
+ }, Ci = f({
4813
4809
  name: "builder-symbol",
4814
- components: { ContentVariants: Si, DynamicDiv: Q },
4810
+ components: { ContentVariants: vi, DynamicDiv: Y },
4815
4811
  props: [
4816
4812
  "symbol",
4817
4813
  "attributes",
@@ -4846,7 +4842,7 @@ const Si = /* @__PURE__ */ b(ki, [["render", vi]]), Ci = async ({
4846
4842
  className() {
4847
4843
  var e, t;
4848
4844
  return [
4849
- this.attributes[ee()],
4845
+ this.attributes[_()],
4850
4846
  "builder-symbol",
4851
4847
  (e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
4852
4848
  (t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
@@ -4860,7 +4856,7 @@ const Si = /* @__PURE__ */ b(ki, [["render", vi]]), Ci = async ({
4860
4856
  },
4861
4857
  methods: {
4862
4858
  setContent() {
4863
- this.contentToUse || Ci({
4859
+ this.contentToUse || Si({
4864
4860
  symbol: this.symbol,
4865
4861
  builderContextValue: this.builderContext
4866
4862
  }).then((e) => {
@@ -4869,7 +4865,7 @@ const Si = /* @__PURE__ */ b(ki, [["render", vi]]), Ci = async ({
4869
4865
  }
4870
4866
  }
4871
4867
  });
4872
- function Ti(e, t, n, o, r, i) {
4868
+ function wi(e, t, n, o, r, i) {
4873
4869
  var l, a, u, h, c;
4874
4870
  const s = g("ContentVariants");
4875
4871
  return d(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, P(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
@@ -4897,8 +4893,8 @@ function Ti(e, t, n, o, r, i) {
4897
4893
  }, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
4898
4894
  ], 16);
4899
4895
  }
4900
- const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), Ee = {};
4901
- function Fi(e) {
4896
+ const Ti = /* @__PURE__ */ b(Ci, [["render", wi]]), Ee = {};
4897
+ function Ni(e) {
4902
4898
  if (T()) {
4903
4899
  Object.assign(Ee, e);
4904
4900
  const t = {
@@ -4908,7 +4904,7 @@ function Fi(e) {
4908
4904
  parent.postMessage(t, "*");
4909
4905
  }
4910
4906
  }
4911
- const Oi = async (e) => {
4907
+ const Fi = async (e) => {
4912
4908
  var o, r, i;
4913
4909
  const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
4914
4910
  ...e,
@@ -4929,43 +4925,43 @@ const Oi = async (e) => {
4929
4925
  };
4930
4926
  };
4931
4927
  export {
4932
- Wr as A,
4928
+ Vr as A,
4933
4929
  fe as B,
4934
4930
  fn as C,
4935
- Nr as D,
4931
+ Wr as D,
4936
4932
  ke as E,
4937
4933
  yn as F,
4938
- Pi as G,
4939
- Ai as H,
4934
+ Bi as G,
4935
+ xi as H,
4940
4936
  $n as I,
4941
4937
  Pn as S,
4942
4938
  A as T,
4943
4939
  fr as V,
4944
4940
  be as _,
4945
4941
  un as a,
4946
- Ei as b,
4947
- D as c,
4948
- Vi as d,
4942
+ Pi as b,
4943
+ L as c,
4944
+ Ai as d,
4949
4945
  he as e,
4950
4946
  b as f,
4951
- Le as g,
4952
- te as h,
4953
- xi as i,
4954
- ee as j,
4955
- ce as k,
4947
+ De as g,
4948
+ ee as h,
4949
+ Ei as i,
4950
+ _ as j,
4951
+ le as k,
4956
4952
  Ct as l,
4957
- Ii as m,
4953
+ Ti as m,
4958
4954
  ho as n,
4959
4955
  M as o,
4960
- Si as p,
4956
+ vi as p,
4961
4957
  R as q,
4962
- Fr as r,
4958
+ Nr as r,
4963
4959
  gr as s,
4964
- _r as t,
4965
- Fi as u,
4960
+ Zr as t,
4961
+ Ni as u,
4966
4962
  ot as v,
4967
- fi as w,
4968
- Wi as x,
4969
- Ni as y,
4970
- Oi as z
4963
+ hi as w,
4964
+ Vi as x,
4965
+ Wi as y,
4966
+ Fi as z
4971
4967
  };