@builder.io/sdk-vue 0.11.3 → 0.11.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/lib/browser/{block-styles.4dd5487a.js → block-styles.8f0654da.js} +2 -2
  2. package/lib/browser/{block-styles.6d4042d1.cjs → block-styles.d76101ae.cjs} +1 -1
  3. package/lib/browser/{block-wrapper.56a0b862.js → block-wrapper.0135d727.js} +3 -3
  4. package/lib/browser/{block-wrapper.d76c58a5.cjs → block-wrapper.669178c6.cjs} +1 -1
  5. package/lib/browser/{component-ref.6b764356.js → component-ref.9bbf487c.js} +3 -3
  6. package/lib/browser/{component-ref.c01f28a8.cjs → component-ref.f273e2bb.cjs} +1 -1
  7. package/lib/browser/components/content/components/enable-editor.vue.d.ts +12 -0
  8. package/lib/browser/components/content/content.helpers.d.ts +1 -1
  9. package/lib/browser/constants/sdk-version.d.ts +1 -1
  10. package/lib/browser/{css.bee71b93.js → css.0ab8602b.js} +1 -1
  11. package/lib/browser/{css.c905e549.cjs → css.a1dfcd0d.cjs} +1 -1
  12. package/lib/browser/{get-block-actions.6c569f39.cjs → get-block-actions.01d505fc.cjs} +1 -1
  13. package/lib/browser/{get-block-actions.ea82379d.js → get-block-actions.f3ed3777.js} +2 -2
  14. package/lib/browser/{index.cf8f3cf0.js → index.6e613dba.js} +111 -76
  15. package/lib/browser/{index.e420a426.cjs → index.732e9dec.cjs} +9 -9
  16. package/lib/browser/index.cjs +1 -1
  17. package/lib/browser/index.js +1 -1
  18. package/lib/browser/{repeated-block.a2b6e71d.js → repeated-block.ab0829a7.js} +2 -2
  19. package/lib/browser/{repeated-block.0e1c5e05.cjs → repeated-block.c6e24224.cjs} +1 -1
  20. package/lib/edge/{block-styles.6941072a.cjs → block-styles.a2c5d017.cjs} +1 -1
  21. package/lib/edge/{block-styles.c251cc50.js → block-styles.bed8f6d5.js} +2 -2
  22. package/lib/edge/{block-wrapper.17244a32.js → block-wrapper.0057cc28.js} +3 -3
  23. package/lib/edge/{block-wrapper.a4b57a19.cjs → block-wrapper.9a650872.cjs} +1 -1
  24. package/lib/edge/{component-ref.c6ef9f36.cjs → component-ref.d38b1b05.cjs} +1 -1
  25. package/lib/edge/{component-ref.a9555536.js → component-ref.dc15b1b3.js} +3 -3
  26. package/lib/edge/components/content/components/enable-editor.vue.d.ts +12 -0
  27. package/lib/edge/components/content/content.helpers.d.ts +1 -1
  28. package/lib/edge/constants/sdk-version.d.ts +1 -1
  29. package/lib/{node/css.92fd0ea1.cjs → edge/css.85043e1b.cjs} +1 -1
  30. package/lib/{node/css.9a474d8f.js → edge/css.dc615681.js} +1 -1
  31. package/lib/{node/get-block-actions.f7b1ef76.js → edge/get-block-actions.49c48fed.js} +2 -2
  32. package/lib/edge/{get-block-actions.c862ea25.cjs → get-block-actions.998faf5f.cjs} +1 -1
  33. package/lib/edge/{index.6b327d2e.js → index.29ef8c7a.js} +151 -116
  34. package/lib/edge/{index.6014202a.cjs → index.93931a31.cjs} +12 -12
  35. package/lib/edge/index.cjs +1 -1
  36. package/lib/edge/index.js +1 -1
  37. package/lib/edge/{repeated-block.2b8fbf14.js → repeated-block.1815e5e5.js} +2 -2
  38. package/lib/edge/{repeated-block.409149dc.cjs → repeated-block.e2a28b68.cjs} +1 -1
  39. package/lib/node/{block-styles.daaf5082.cjs → block-styles.862ad1e7.cjs} +1 -1
  40. package/lib/node/{block-styles.b4e350c6.js → block-styles.b095e76c.js} +2 -2
  41. package/lib/node/{block-wrapper.7ec7b19a.cjs → block-wrapper.ab4d974f.cjs} +1 -1
  42. package/lib/node/{block-wrapper.35fb80b6.js → block-wrapper.f5507846.js} +3 -3
  43. package/lib/node/{component-ref.04b89158.cjs → component-ref.98e3808c.cjs} +1 -1
  44. package/lib/node/{component-ref.2211624f.js → component-ref.a49a09a7.js} +3 -3
  45. package/lib/node/components/content/components/enable-editor.vue.d.ts +12 -0
  46. package/lib/node/components/content/content.helpers.d.ts +1 -1
  47. package/lib/node/constants/sdk-version.d.ts +1 -1
  48. package/lib/{edge/css.d3b9ec3d.js → node/css.7cf759d3.js} +1 -1
  49. package/lib/{edge/css.a1099f86.cjs → node/css.e4e28b3e.cjs} +1 -1
  50. package/lib/node/{get-block-actions.b15d24e5.cjs → get-block-actions.6ee48138.cjs} +1 -1
  51. package/lib/{edge/get-block-actions.f0aac0c8.js → node/get-block-actions.96799d8b.js} +2 -2
  52. package/lib/node/{index.29fcda33.js → index.8a4deeec.js} +44 -9
  53. package/lib/node/{index.c9e2c835.cjs → index.cf17f259.cjs} +6 -6
  54. package/lib/node/index.cjs +1 -1
  55. package/lib/node/index.js +1 -1
  56. package/lib/node/{repeated-block.f9ea4988.js → repeated-block.93e6e548.js} +2 -2
  57. package/lib/node/{repeated-block.bf2609f9.cjs → repeated-block.b9f01b9c.cjs} +1 -1
  58. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as U, openBlock as E, createElementBlock as I, mergeProps as re, toHandlers as rt, toDisplayString as tr, defineAsyncComponent as Ct, resolveComponent as K, Fragment as ue, createVNode as ke, createBlock as X, createCommentVNode as V, renderList as ot, withCtx as at, resolveDynamicComponent as vr, renderSlot as Ee, h as Ar, createElementVNode as en, normalizeStyle as tn, normalizeClass as Cr, markRaw as mo } from "vue";
2
- function St(e = {}, t, n) {
2
+ function Ft(e = {}, t, n) {
3
3
  const r = {};
4
4
  for (const o in e) {
5
5
  if (!e[o] || n && !o.startsWith(t))
@@ -13,7 +13,7 @@ const go = U({
13
13
  name: "builder-button",
14
14
  props: ["attributes", "text", "link", "openLinkInNewTab"],
15
15
  data() {
16
- return { filterAttrs: St };
16
+ return { filterAttrs: Ft };
17
17
  },
18
18
  methods: {
19
19
  _classStringToObject(e) {
@@ -88,14 +88,14 @@ function Eo() {
88
88
  function me() {
89
89
  return Eo() && (ve === "reactNative" || window.location.search.indexOf("builder.frameEditing=") !== -1);
90
90
  }
91
- const Fo = () => {
91
+ const So = () => {
92
92
  if (J()) {
93
93
  const e = new URL(location.href);
94
94
  return e.pathname === "" && (e.pathname = "/"), e;
95
95
  } else
96
96
  return console.warn("Cannot get location for tracking in non-browser environment"), null;
97
- }, So = () => typeof navigator == "object" && navigator.userAgent || "", kr = () => {
98
- const e = So(), t = {
97
+ }, Fo = () => typeof navigator == "object" && navigator.userAgent || "", kr = () => {
98
+ const e = Fo(), t = {
99
99
  Android() {
100
100
  return e.match(/Android/i);
101
101
  },
@@ -114,7 +114,7 @@ const Fo = () => {
114
114
  any() {
115
115
  return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || ve === "reactNative";
116
116
  }
117
- }, n = e.match(/Tablet|iPad/i), r = Fo();
117
+ }, n = e.match(/Tablet|iPad/i), r = So();
118
118
  return {
119
119
  urlPath: r == null ? void 0 : r.pathname,
120
120
  host: (r == null ? void 0 : r.host) || (r == null ? void 0 : r.hostname),
@@ -167,7 +167,7 @@ function Io(e, t, n) {
167
167
  }
168
168
  });
169
169
  }
170
- const Fr = (e, t, n) => {
170
+ const Sr = (e, t, n) => {
171
171
  if (Object(e) !== e)
172
172
  return e;
173
173
  const r = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
@@ -181,17 +181,17 @@ var x, xo = function(e) {
181
181
  return 65 > s ? s === 36 : 91 > s ? !0 : 97 > s ? s === 95 : 123 > s ? !0 : 170 <= s && er.test(String.fromCharCode(s));
182
182
  }
183
183
  function r(s, a) {
184
- for (var l = g, d = 1, S = 0; ; ) {
185
- At.lastIndex = S;
184
+ for (var l = g, d = 1, F = 0; ; ) {
185
+ At.lastIndex = F;
186
186
  var L = At.exec(l);
187
187
  if (L && L.index < s)
188
- ++d, S = L.index + L[0].length;
188
+ ++d, F = L.index + L[0].length;
189
189
  else
190
190
  break;
191
191
  }
192
192
  throw l = {
193
193
  line: d,
194
- ab: s - S
194
+ ab: s - F
195
195
  }, a += " (" + l.line + ":" + l.ab + ")", a = new SyntaxError(a), a.j = s, a.X = l, a.o = c, a;
196
196
  }
197
197
  function o(s) {
@@ -206,7 +206,7 @@ var x, xo = function(e) {
206
206
  this.line = Be, this.ab = c - ce;
207
207
  }
208
208
  function u(s, a) {
209
- xe = c, B.C && (_t = new i()), F = s, h(), ne = a, Ke = s.m;
209
+ xe = c, B.C && (_t = new i()), S = s, h(), ne = a, Ke = s.m;
210
210
  }
211
211
  function p() {
212
212
  for (var s = c, a = B.va && B.C && new i(), l = g.charCodeAt(c += 2); c < Ie && l !== 10 && l !== 13 && l !== 8232 && l !== 8233; )
@@ -383,10 +383,10 @@ var x, xo = function(e) {
383
383
  if (c >= Ie)
384
384
  return u(Wt);
385
385
  if (s = g.charCodeAt(c), n(s) || s === 92)
386
- return Se();
386
+ return Fe();
387
387
  if (m(s) === !1) {
388
388
  if (s = String.fromCharCode(s), s === "\\" || er.test(s))
389
- return Se();
389
+ return Fe();
390
390
  r(c, "Unexpected character '" + s + "'");
391
391
  }
392
392
  }
@@ -413,14 +413,14 @@ var x, xo = function(e) {
413
413
  }
414
414
  s = g.slice(l, c), ++c, (a = te()) && !/^[gmi]*$/.test(a) && r(l, "Invalid regexp flag");
415
415
  try {
416
- var S = new RegExp(s, a);
416
+ var F = new RegExp(s, a);
417
417
  } catch (L) {
418
418
  throw L instanceof SyntaxError && r(l, L.message), L;
419
419
  }
420
- u(Bn, S);
420
+ u(Bn, F);
421
421
  }
422
422
  function P(s, a) {
423
- for (var l = c, d = 0, S = a === void 0 ? 1 / 0 : a, L = 0; L < S; ++L) {
423
+ for (var l = c, d = 0, F = a === void 0 ? 1 / 0 : a, L = 0; L < F; ++L) {
424
424
  var Y = g.charCodeAt(c);
425
425
  if (Y = 97 <= Y ? Y - 97 + 10 : 65 <= Y ? Y - 65 + 10 : 48 <= Y && 57 >= Y ? Y - 48 : 1 / 0, Y >= s)
426
426
  break;
@@ -431,8 +431,8 @@ var x, xo = function(e) {
431
431
  function R(s) {
432
432
  var a = c, l = !1, d = g.charCodeAt(c) === 48;
433
433
  s || P(10) !== null || r(a, "Invalid number"), g.charCodeAt(c) === 46 && (++c, P(10), l = !0), s = g.charCodeAt(c), (s === 69 || s === 101) && (s = g.charCodeAt(++c), s !== 43 && s !== 45 || ++c, P(10) === null && r(a, "Invalid number"), l = !0), n(g.charCodeAt(c)) && r(c, "Identifier directly after number"), s = g.slice(a, c);
434
- var S;
435
- l ? S = parseFloat(s) : d && s.length !== 1 ? /[89]/.test(s) || Z ? r(a, "Invalid number") : S = parseInt(s, 8) : S = parseInt(s, 10), u(ze, S);
434
+ var F;
435
+ l ? F = parseFloat(s) : d && s.length !== 1 ? /[89]/.test(s) || Z ? r(a, "Invalid number") : F = parseInt(s, 8) : F = parseInt(s, 10), u(ze, F);
436
436
  }
437
437
  function $(s) {
438
438
  return s = P(16, s), s === null && r(W, "Bad character escape sequence"), s;
@@ -445,15 +445,15 @@ var x, xo = function(e) {
445
445
  je && (s += g.charAt(c)), ++c;
446
446
  else if (d === 92) {
447
447
  je || (s = g.slice(l, c)), je = !0, g.charCodeAt(++c) !== 117 && r(c, "Expecting Unicode escape sequence \\uXXXX"), ++c, d = $(4);
448
- var S = String.fromCharCode(d);
449
- S || r(c - 1, "Invalid Unicode escape"), (a ? n(d) : t(d)) || r(c - 4, "Invalid Unicode escape"), s += S;
448
+ var F = String.fromCharCode(d);
449
+ F || r(c - 1, "Invalid Unicode escape"), (a ? n(d) : t(d)) || r(c - 4, "Invalid Unicode escape"), s += F;
450
450
  } else
451
451
  break;
452
452
  a = !1;
453
453
  }
454
454
  return je ? s : g.slice(l, c);
455
455
  }
456
- function Se() {
456
+ function Fe() {
457
457
  var s = te(), a = Te;
458
458
  !je && co(s) && (a = Zr[s]), u(a, s);
459
459
  }
@@ -488,16 +488,16 @@ var x, xo = function(e) {
488
488
  return s.type === "ExpressionStatement" && s.la.type === "Literal" && s.la.value === "use strict";
489
489
  }
490
490
  function O(s) {
491
- return F === s ? (b(), !0) : !1;
491
+ return S === s ? (b(), !0) : !1;
492
492
  }
493
493
  function dt() {
494
- return !B.fc && (F === Wt || F === Re || vt.test(g.slice(Ce, W)));
494
+ return !B.fc && (S === Wt || S === Re || vt.test(g.slice(Ce, W)));
495
495
  }
496
496
  function we() {
497
497
  O(de) || dt() || ae();
498
498
  }
499
499
  function N(s) {
500
- F === s ? b() : ae();
500
+ S === s ? b() : ae();
501
501
  }
502
502
  function ae() {
503
503
  r(W, "Unexpected token");
@@ -506,17 +506,17 @@ var x, xo = function(e) {
506
506
  s.type !== "Identifier" && s.type !== "MemberExpression" && r(s.start, "Assigning to rvalue"), Z && s.type === "Identifier" && yt(s.name) && r(s.start, "Assigning to " + s.name + " in strict mode");
507
507
  }
508
508
  function ie() {
509
- (F === Xn || F === De && ne === "/=") && v(!0);
510
- var s = F, a = j();
509
+ (S === Xn || S === De && ne === "/=") && v(!0);
510
+ var s = S, a = j();
511
511
  switch (s) {
512
512
  case Vt:
513
513
  case In:
514
514
  b();
515
515
  var l = s === Vt;
516
- O(de) || dt() ? a.label = null : F !== Te ? ae() : (a.label = le(), we());
516
+ O(de) || dt() ? a.label = null : S !== Te ? ae() : (a.label = le(), we());
517
517
  for (var d = 0; d < _.length; ++d) {
518
- var S = _[d];
519
- if ((a.label === null || S.name === a.label.name) && (S.kind !== null && (l || S.kind === "loop") || a.label && l))
518
+ var F = _[d];
519
+ if ((a.label === null || F.name === a.label.name) && (F.kind !== null && (l || F.kind === "loop") || a.label && l))
520
520
  break;
521
521
  }
522
522
  return d === _.length && r(a.start, "Unsyntactic " + s.l), w(a, l ? "BreakStatement" : "ContinueStatement");
@@ -525,7 +525,7 @@ var x, xo = function(e) {
525
525
  case Rn:
526
526
  return b(), _.push(Yt), a.body = ie(), _.pop(), N(zt), a.test = Ve(), we(), w(a, "DoWhileStatement");
527
527
  case Pn:
528
- return b(), _.push(Yt), N(pe), F === de ? xt(a, null) : F === Gt ? (s = j(), b(), Sn(s, !0), w(s, "VariableDeclaration"), s.fa.length === 1 && O(gt) ? Fn(a, s) : xt(a, s)) : (s = z(!1, !0), O(gt) ? (ht(s), Fn(a, s)) : xt(a, s));
528
+ return b(), _.push(Yt), N(pe), S === de ? xt(a, null) : S === Gt ? (s = j(), b(), Fn(s, !0), w(s, "VariableDeclaration"), s.fa.length === 1 && O(gt) ? Sn(a, s) : xt(a, s)) : (s = z(!1, !0), O(gt) ? (ht(s), Sn(a, s)) : xt(a, s));
529
529
  case Ht:
530
530
  return b(), Ot(a, !0);
531
531
  case $n:
@@ -533,15 +533,15 @@ var x, xo = function(e) {
533
533
  case Nn:
534
534
  return Ge || B.Ib || r(W, "'return' outside of function"), b(), O(de) || dt() ? a.K = null : (a.K = z(), we()), w(a, "ReturnStatement");
535
535
  case Kt:
536
- for (b(), a.Qb = Ve(), a.tb = [], N(Xe), _.push(fo); F !== Re; )
537
- F === Lt || F === Tn ? (s = F === Lt, d && w(d, "SwitchCase"), a.tb.push(d = j()), d.da = [], b(), s ? d.test = z() : (l && r(Ut, "Multiple default clauses"), l = !0, d.test = null), N(Je)) : (d || ae(), d.da.push(ie()));
536
+ for (b(), a.Qb = Ve(), a.tb = [], N(Xe), _.push(fo); S !== Re; )
537
+ S === Lt || S === Tn ? (s = S === Lt, d && w(d, "SwitchCase"), a.tb.push(d = j()), d.da = [], b(), s ? d.test = z() : (l && r(Ut, "Multiple default clauses"), l = !0, d.test = null), N(Je)) : (d || ae(), d.da.push(ie()));
538
538
  return d && w(d, "SwitchCase"), b(), _.pop(), w(a, "SwitchStatement");
539
539
  case _n:
540
540
  return b(), vt.test(g.slice(Ce, W)) && r(Ce, "Illegal newline after throw"), a.K = z(), we(), w(a, "ThrowStatement");
541
541
  case Un:
542
- return b(), a.block = Le(), a.Ea = null, F === Dn && (s = j(), b(), N(pe), s.Ua = le(), Z && yt(s.Ua.name) && r(s.Ua.start, "Binding " + s.Ua.name + " in strict mode"), N(se), s.body = Le(), a.Ea = w(s, "CatchClause")), a.fb = O(On) ? Le() : null, a.Ea || a.fb || r(a.start, "Missing catch or finally clause"), w(a, "TryStatement");
542
+ return b(), a.block = Le(), a.Ea = null, S === Dn && (s = j(), b(), N(pe), s.Ua = le(), Z && yt(s.Ua.name) && r(s.Ua.start, "Binding " + s.Ua.name + " in strict mode"), N(se), s.body = Le(), a.Ea = w(s, "CatchClause")), a.fb = O(On) ? Le() : null, a.Ea || a.fb || r(a.start, "Missing catch or finally clause"), w(a, "TryStatement");
543
543
  case Gt:
544
- return b(), Sn(a), we(), w(a, "VariableDeclaration");
544
+ return b(), Fn(a), we(), w(a, "VariableDeclaration");
545
545
  case zt:
546
546
  return b(), a.test = Ve(), _.push(Yt), a.body = ie(), _.pop(), w(a, "WhileStatement");
547
547
  case Mn:
@@ -551,15 +551,15 @@ var x, xo = function(e) {
551
551
  case de:
552
552
  return b(), w(a, "EmptyStatement");
553
553
  default:
554
- if (l = ne, S = z(), s === Te && S.type === "Identifier" && O(Je)) {
554
+ if (l = ne, F = z(), s === Te && F.type === "Identifier" && O(Je)) {
555
555
  for (d = 0; d < _.length; ++d)
556
- _[d].name === l && r(S.start, "Label '" + l + "' is already declared");
556
+ _[d].name === l && r(F.start, "Label '" + l + "' is already declared");
557
557
  return _.push({
558
558
  name: l,
559
- kind: F.W ? "loop" : F === Kt ? "switch" : null
560
- }), a.body = ie(), _.pop(), a.label = S, w(a, "LabeledStatement");
559
+ kind: S.W ? "loop" : S === Kt ? "switch" : null
560
+ }), a.body = ie(), _.pop(), a.label = F, w(a, "LabeledStatement");
561
561
  }
562
- return a.la = S, we(), w(a, "ExpressionStatement");
562
+ return a.la = F, we(), w(a, "ExpressionStatement");
563
563
  }
564
564
  }
565
565
  function Ve() {
@@ -570,8 +570,8 @@ var x, xo = function(e) {
570
570
  function Le(s) {
571
571
  var a = j(), l = !0, d = !1;
572
572
  for (a.body = [], N(Xe); !O(Re); ) {
573
- var S = ie();
574
- if (a.body.push(S), l && s && It(S)) {
573
+ var F = ie();
574
+ if (a.body.push(F), l && s && It(F)) {
575
575
  var L = d;
576
576
  Me(d = !0);
577
577
  }
@@ -580,12 +580,12 @@ var x, xo = function(e) {
580
580
  return d && !L && Me(!1), w(a, "BlockStatement");
581
581
  }
582
582
  function xt(s, a) {
583
- return s.ua = a, N(de), s.test = F === de ? null : z(), N(de), s.update = F === se ? null : z(), N(se), s.body = ie(), _.pop(), w(s, "ForStatement");
583
+ return s.ua = a, N(de), s.test = S === de ? null : z(), N(de), s.update = S === se ? null : z(), N(se), s.body = ie(), _.pop(), w(s, "ForStatement");
584
584
  }
585
- function Fn(s, a) {
585
+ function Sn(s, a) {
586
586
  return s.left = a, s.right = z(), N(se), s.body = ie(), _.pop(), w(s, "ForInStatement");
587
587
  }
588
- function Sn(s, a) {
588
+ function Fn(s, a) {
589
589
  for (s.fa = [], s.kind = "var"; ; ) {
590
590
  var l = j();
591
591
  if (l.id = le(), Z && yt(l.id.name) && r(l.id.start, "Binding " + l.id.name + " in strict mode"), l.ua = O(Jn) ? z(!0, a) : null, s.fa.push(w(l, "VariableDeclarator")), !O(be))
@@ -594,7 +594,7 @@ var x, xo = function(e) {
594
594
  }
595
595
  function z(s, a) {
596
596
  var l = Tt(a);
597
- if (!s && F === be) {
597
+ if (!s && S === be) {
598
598
  for (s = Ae(l), s.xb = [l]; O(be); )
599
599
  s.xb.push(Tt(a));
600
600
  return w(s, "SequenceExpression");
@@ -607,22 +607,22 @@ var x, xo = function(e) {
607
607
  var l = Ae(a);
608
608
  l.test = a, l.da = z(!0), N(Je), l.alternate = z(!0, s), a = w(l, "ConditionalExpression");
609
609
  }
610
- return F.Cb ? (l = Ae(a), l.operator = ne, l.left = a, b(), l.right = Tt(s), ht(a), w(l, "AssignmentExpression")) : a;
610
+ return S.Cb ? (l = Ae(a), l.operator = ne, l.left = a, b(), l.right = Tt(s), ht(a), w(l, "AssignmentExpression")) : a;
611
611
  }
612
612
  function Rt(s, a, l) {
613
- var d = F.L;
614
- if (d !== null && (!l || F !== gt) && d > a) {
615
- var S = Ae(s);
616
- return S.left = s, S.operator = ne, s = F, b(), S.right = Rt(jt(), d, l), d = w(S, s === qn || s === Qn ? "LogicalExpression" : "BinaryExpression"), Rt(d, a, l);
613
+ var d = S.L;
614
+ if (d !== null && (!l || S !== gt) && d > a) {
615
+ var F = Ae(s);
616
+ return F.left = s, F.operator = ne, s = S, b(), F.right = Rt(jt(), d, l), d = w(F, s === qn || s === Qn ? "LogicalExpression" : "BinaryExpression"), Rt(d, a, l);
617
617
  }
618
618
  return s;
619
619
  }
620
620
  function jt() {
621
- if (F.prefix) {
622
- var s = j(), a = F.$b;
621
+ if (S.prefix) {
622
+ var s = j(), a = S.$b;
623
623
  return s.operator = ne, Ke = s.prefix = !0, b(), s.K = jt(), a ? ht(s.K) : Z && s.operator === "delete" && s.K.type === "Identifier" && r(s.start, "Deleting local variable in strict mode"), w(s, a ? "UpdateExpression" : "UnaryExpression");
624
624
  }
625
- for (a = He(ft()); F.cc && !dt(); )
625
+ for (a = He(ft()); S.cc && !dt(); )
626
626
  s = Ae(a), s.operator = ne, s.prefix = !1, s.K = a, ht(a), b(), a = w(s, "UpdateExpression");
627
627
  return a;
628
628
  }
@@ -634,7 +634,7 @@ var x, xo = function(e) {
634
634
  return O(Xt) ? (l = Ae(s), l.object = s, l.Wa = z(), l.bb = !0, N(Jt), He(w(l, "MemberExpression"), a)) : !a && O(pe) ? (l = Ae(s), l.callee = s, l.arguments = Pt(se, !1), He(w(l, "CallExpression"), a)) : s;
635
635
  }
636
636
  function ft() {
637
- switch (F) {
637
+ switch (S) {
638
638
  case Vn:
639
639
  var s = j();
640
640
  return b(), w(s, "ThisExpression");
@@ -647,7 +647,7 @@ var x, xo = function(e) {
647
647
  case Ln:
648
648
  case Hn:
649
649
  case Kn:
650
- return s = j(), s.value = F.$a, s.raw = F.l, b(), w(s, "Literal");
650
+ return s = j(), s.value = S.$a, s.raw = S.l, b(), w(s, "Literal");
651
651
  case pe:
652
652
  s = Nt;
653
653
  var a = W;
@@ -663,18 +663,18 @@ var x, xo = function(e) {
663
663
  else if (N(be), B.sb && O(Re))
664
664
  break;
665
665
  var d = {
666
- key: F === ze || F === mt ? ft() : le(!0)
667
- }, S = !1;
666
+ key: S === ze || S === mt ? ft() : le(!0)
667
+ }, F = !1;
668
668
  if (O(Je)) {
669
669
  d.value = z(!0);
670
670
  var L = d.kind = "init";
671
671
  } else
672
- d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ae() : (S = l = !0, L = d.kind = d.key.name, d.key = F === ze || F === mt ? ft() : le(!0), F !== pe && ae(), d.value = Ot(j(), !1));
672
+ d.key.type !== "Identifier" || d.key.name !== "get" && d.key.name !== "set" ? ae() : (F = l = !0, L = d.kind = d.key.name, d.key = S === ze || S === mt ? ft() : le(!0), S !== pe && ae(), d.value = Ot(j(), !1));
673
673
  if (d.key.type === "Identifier" && (Z || l))
674
674
  for (var Y = 0; Y < s.h.length; ++Y) {
675
675
  var Oe = s.h[Y];
676
676
  if (Oe.key.name === d.key.name) {
677
- var qt = L === Oe.kind || S && Oe.kind === "init" || L === "init" && (Oe.kind === "get" || Oe.kind === "set");
677
+ var qt = L === Oe.kind || F && Oe.kind === "init" || L === "init" && (Oe.kind === "get" || Oe.kind === "set");
678
678
  qt && !Z && L === "init" && Oe.kind === "init" && (qt = !1), qt && r(d.key.start, "Redefinition of property");
679
679
  }
680
680
  }
@@ -689,7 +689,7 @@ var x, xo = function(e) {
689
689
  ae();
690
690
  }
691
691
  function Ot(s, a) {
692
- F === Te ? s.id = le() : a ? ae() : s.id = null, s.oa = [];
692
+ S === Te ? s.id = le() : a ? ae() : s.id = null, s.oa = [];
693
693
  var l = !0;
694
694
  for (N(pe); !O(se); )
695
695
  l ? l = !1 : N(be), s.oa.push(le());
@@ -698,24 +698,24 @@ var x, xo = function(e) {
698
698
  if (Ge = !0, _ = [], s.body = Le(!0), Ge = l, _ = d, Z || s.body.body.length && It(s.body.body[0])) {
699
699
  for (l = s.id ? -1 : 0; l < s.oa.length; ++l)
700
700
  if (d = 0 > l ? s.id : s.oa[l], (Zn(d.name) || yt(d.name)) && r(d.start, "Defining '" + d.name + "' in strict mode"), 0 <= l)
701
- for (var S = 0; S < l; ++S)
702
- d.name === s.oa[S].name && r(d.start, "Argument name clash in strict mode");
701
+ for (var F = 0; F < l; ++F)
702
+ d.name === s.oa[F].name && r(d.start, "Argument name clash in strict mode");
703
703
  }
704
704
  return w(s, a ? "FunctionDeclaration" : "FunctionExpression");
705
705
  }
706
706
  function Pt(s, a, l) {
707
- for (var d = [], S = !0; !O(s); ) {
708
- if (S)
709
- S = !1;
707
+ for (var d = [], F = !0; !O(s); ) {
708
+ if (F)
709
+ F = !1;
710
710
  else if (N(be), a && B.sb && O(s))
711
711
  break;
712
- d.push(l && F === be ? null : z(!0));
712
+ d.push(l && S === be ? null : z(!0));
713
713
  }
714
714
  return d;
715
715
  }
716
716
  function le(s) {
717
717
  var a = j();
718
- return s && B.yb === "everywhere" && (s = !1), F === Te ? (!s && (B.yb && lo(ne) || Z && Zn(ne)) && g.slice(W, xe).indexOf("\\") === -1 && r(W, "The keyword '" + ne + "' is reserved"), a.name = ne) : s && F.l ? a.name = F.l : ae(), Ke = !1, b(), w(a, "Identifier");
718
+ return s && B.yb === "everywhere" && (s = !1), S === Te ? (!s && (B.yb && lo(ne) || Z && Zn(ne)) && g.slice(W, xe).indexOf("\\") === -1 && r(W, "The keyword '" + ne + "' is reserved"), a.name = ne) : s && S.l ? a.name = S.l : ae(), Ke = !1, b(), w(a, "Identifier");
719
719
  }
720
720
  e.version = "0.5.0";
721
721
  var B, g = "", Ie, $t;
@@ -723,7 +723,7 @@ var x, xo = function(e) {
723
723
  g = String(s), Ie = g.length, B = a || {};
724
724
  for (var l in wn)
725
725
  Object.prototype.hasOwnProperty.call(B, l) || (B[l] = wn[l]);
726
- for ($t = B.sourceFile, Be = 1, c = ce = 0, Ke = !0, h(), l = B.dc, Ut = Ce = c, B.C && (Mt = new i()), Ge = Z = !1, _ = [], v(), s = l || j(), a = !0, l || (s.body = []); F !== Wt; )
726
+ for ($t = B.sourceFile, Be = 1, c = ce = 0, Ke = !0, h(), l = B.dc, Ut = Ce = c, B.C && (Mt = new i()), Ge = Z = !1, _ = [], v(), s = l || j(), a = !0, l || (s.body = []); S !== Wt; )
727
727
  l = ie(), s.body.push(l), a && It(l) && Me(!0), a = !1;
728
728
  return w(s, "Program");
729
729
  };
@@ -738,7 +738,7 @@ var x, xo = function(e) {
738
738
  dc: null,
739
739
  sourceFile: null,
740
740
  vb: null
741
- }, c = 0, W = 0, xe = 0, Nt, _t, F, ne, Ke, Be, ce, Ut = 0, Ce = 0, Mt, Ge, _, Z, Qr = [], ze = {
741
+ }, c = 0, W = 0, xe = 0, Nt, _t, S, ne, Ke, Be, ce, Ut = 0, Ce = 0, Mt, Ge, _, Z, Qr = [], ze = {
742
742
  type: "num"
743
743
  }, Bn = {
744
744
  type: "regexp"
@@ -981,7 +981,7 @@ var nr = {
981
981
  configurable: !1,
982
982
  enumerable: !0,
983
983
  writable: !0
984
- }, Sr = {
984
+ }, Fr = {
985
985
  STEP_ERROR: !0
986
986
  }, Ue = {
987
987
  SCOPE_REFERENCE: !0
@@ -989,7 +989,7 @@ var nr = {
989
989
  VALUE_IN_DESCRIPTOR: !0
990
990
  }, Pe = {
991
991
  REGEXP_TIMEOUT: !0
992
- }, or = [], fe = null, tt = null, Fe = typeof globalThis > "u" ? void 0 : globalThis, To = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
992
+ }, or = [], fe = null, tt = null, Se = typeof globalThis > "u" ? void 0 : globalThis, To = ["onmessage = function(e) {", "var result;", "var data = e.data;", "switch (data[0]) {", "case 'split':", "result = data[1].split(data[2], data[3]);", "break;", "case 'match':", "result = data[1].match(data[2]);", "break;", "case 'search':", "result = data[1].search(data[2]);", "break;", "case 'replace':", "result = data[1].replace(data[2], data[3]);", "break;", "case 'exec':", "var regexp = data[1];", "regexp.lastIndex = data[2];", "result = [regexp.exec(data[3]), data[1].lastIndex];", "break;", "default:", "throw Error('Unknown RegExp operation: ' + data[0]);", "}", "postMessage(result);", "close();", "};"];
993
993
  function cn(e) {
994
994
  var t = e >>> 0;
995
995
  return t === Number(e) ? t : NaN;
@@ -1018,7 +1018,7 @@ function Ne(e, t) {
1018
1018
  var n = {}, r;
1019
1019
  for (r in nr)
1020
1020
  n[r] = nr[r];
1021
- return n.sourceFile = t, Fe.j.parse(e, n);
1021
+ return n.sourceFile = t, Se.j.parse(e, n);
1022
1022
  }
1023
1023
  x.Jb = function(e) {
1024
1024
  var t = this.o[0];
@@ -1053,7 +1053,7 @@ x.lb = function() {
1053
1053
  try {
1054
1054
  var i = this.rb[r.type](e, n, r);
1055
1055
  } catch (u) {
1056
- if (u !== Sr)
1056
+ if (u !== Fr)
1057
1057
  throw this.value !== u && (this.value = void 0), u;
1058
1058
  } finally {
1059
1059
  tt = o;
@@ -1199,7 +1199,7 @@ function Po(e, t) {
1199
1199
  }
1200
1200
  function $o(e, t) {
1201
1201
  var n = function(r) {
1202
- return r = arguments.length ? Fe.String(r) : "", ye(e) ? (this.data = r, this) : r;
1202
+ return r = arguments.length ? Se.String(r) : "", ye(e) ? (this.data = r, this) : r;
1203
1203
  };
1204
1204
  for (e.J = e.i(n, !0), e.g(t, "String", e.J, y), e.g(e.J, "fromCharCode", e.i(String.fromCharCode, !1), y), t = "charAt charCodeAt concat indexOf lastIndexOf slice substr substring toLocaleLowerCase toLocaleUpperCase toLowerCase toUpperCase trim".split(" "), n = 0; n < t.length; n++)
1205
1205
  H(e, e.J, t[n], String.prototype[t[n]]);
@@ -1282,12 +1282,12 @@ function $o(e, t) {
1282
1282
  }
1283
1283
  function No(e, t) {
1284
1284
  e.mb = e.i(function(n) {
1285
- return n = Fe.Boolean(n), ye(e) ? (this.data = n, this) : n;
1285
+ return n = Se.Boolean(n), ye(e) ? (this.data = n, this) : n;
1286
1286
  }, !0), e.g(t, "Boolean", e.mb, y);
1287
1287
  }
1288
1288
  function _o(e, t) {
1289
1289
  var n = function(r) {
1290
- return r = arguments.length ? Fe.Number(r) : 0, ye(e) ? (this.data = r, this) : r;
1290
+ return r = arguments.length ? Se.Number(r) : 0, ye(e) ? (this.data = r, this) : r;
1291
1291
  };
1292
1292
  for (e.aa = e.i(n, !0), e.g(t, "Number", e.aa, y), t = ["MAX_VALUE", "MIN_VALUE", "NaN", "NEGATIVE_INFINITY", "POSITIVE_INFINITY"], n = 0; n < t.length; n++)
1293
1293
  e.g(e.aa, t[n], Number[t[n]], Ye);
@@ -1327,9 +1327,9 @@ function _o(e, t) {
1327
1327
  function Uo(e, t) {
1328
1328
  var n = function(o, i) {
1329
1329
  if (!ye(e))
1330
- return Fe.Date();
1330
+ return Se.Date();
1331
1331
  var u = [null].concat(Array.from(arguments));
1332
- return this.data = new (Function.prototype.bind.apply(Fe.Date, u))(), this;
1332
+ return this.data = new (Function.prototype.bind.apply(Se.Date, u))(), this;
1333
1333
  };
1334
1334
  e.$ = e.i(n, !0), e.nb = e.$.h.prototype, e.g(t, "Date", e.$, y), e.g(e.$, "now", e.i(Date.now, !1), y), e.g(e.$, "parse", e.i(Date.parse, !1), y), e.g(e.$, "UTC", e.i(Date.UTC, !1), y), t = "getDate getDay getFullYear getHours getMilliseconds getMinutes getMonth getSeconds getTime getTimezoneOffset getUTCDate getUTCDay getUTCFullYear getUTCHours getUTCMilliseconds getUTCMinutes getUTCMonth getUTCSeconds getYear setDate setFullYear setHours setMilliseconds setMinutes setMonth setSeconds setTime setUTCDate setUTCFullYear setUTCHours setUTCMilliseconds setUTCMinutes setUTCMonth setUTCSeconds setYear toDateString toISOString toJSON toGMTString toLocaleDateString toLocaleString toLocaleTimeString toTimeString toUTCString".split(" ");
1335
1335
  for (var r = 0; r < t.length; r++)
@@ -1354,7 +1354,7 @@ function Mo(e, t) {
1354
1354
  }
1355
1355
  r = r === void 0 ? "" : String(r), o = o ? String(o) : "", /^[gmi]*$/.test(o) || C(e, e.T, "Invalid regexp flag: " + o);
1356
1356
  try {
1357
- var u = new Fe.RegExp(r, o);
1357
+ var u = new Se.RegExp(r, o);
1358
1358
  } catch (p) {
1359
1359
  C(e, e.T, p.message);
1360
1360
  }
@@ -1833,7 +1833,7 @@ function vn(e, t, n) {
1833
1833
  return t[0] === Ue ? Br(e, t[1], n) : e.g(t[0], t[1], n);
1834
1834
  }
1835
1835
  function C(e, t, n) {
1836
- throw e.N ? (n !== void 0 && t instanceof D && (t = e.Aa(t), on(e, t, n)), lt(e, 4, t), Sr) : n === void 0 ? t : n;
1836
+ throw e.N ? (n !== void 0 && t instanceof D && (t = e.Aa(t), on(e, t, n)), lt(e, 4, t), Fr) : n === void 0 ? t : n;
1837
1837
  }
1838
1838
  function lt(e, t, n, r) {
1839
1839
  if (t === 0)
@@ -2565,7 +2565,7 @@ f.prototype.stepWithStatement = function(e, t, n) {
2565
2565
  return t.Ca ? (e.pop(), e = mn(this, t.scope, t.value), new A(n.body, e)) : (t.Ca = !0, new A(n.object, t.scope));
2566
2566
  };
2567
2567
  f.prototype.stepWhileStatement = f.prototype.stepDoWhileStatement;
2568
- Fe.Interpreter = f;
2568
+ Se.Interpreter = f;
2569
2569
  f.prototype.step = f.prototype.lb;
2570
2570
  f.prototype.run = f.prototype.Eb;
2571
2571
  f.prototype.appendCode = f.prototype.Jb;
@@ -2628,11 +2628,11 @@ function theFunction() {
2628
2628
  }
2629
2629
  theFunction();
2630
2630
  `, T = (R, $) => {
2631
- const te = Fr(p, R, $);
2631
+ const te = Sr(p, R, $);
2632
2632
  i == null || i(te);
2633
2633
  }, P = function(R, $) {
2634
- h.forEach(([te, Se]) => {
2635
- const b = JSON.stringify(Se);
2634
+ h.forEach(([te, Fe]) => {
2635
+ const b = JSON.stringify(Fe);
2636
2636
  R.setProperty($, ur(te), b);
2637
2637
  }), R.setProperty($, "setRootState", R.createNativeFunction(T));
2638
2638
  };
@@ -2646,7 +2646,7 @@ theFunction();
2646
2646
  return;
2647
2647
  }
2648
2648
  }, Xo = (e) => J() ? Do(e) : zo(e);
2649
- function Ft({
2649
+ function St({
2650
2650
  code: e,
2651
2651
  context: t,
2652
2652
  localState: n,
@@ -2699,14 +2699,14 @@ const Jo = ({
2699
2699
  }
2700
2700
  };
2701
2701
  for (const p in e.bindings) {
2702
- const h = e.bindings[p], m = Ft({
2702
+ const h = e.bindings[p], m = St({
2703
2703
  code: h,
2704
2704
  localState: n,
2705
2705
  rootState: r,
2706
2706
  rootSetState: o,
2707
2707
  context: t
2708
2708
  });
2709
- Fr(u, p, m);
2709
+ Sr(u, p, m);
2710
2710
  }
2711
2711
  return u;
2712
2712
  };
@@ -2759,7 +2759,7 @@ const Yo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
2759
2759
  } = e;
2760
2760
  if (!(n != null && n.collection))
2761
2761
  return;
2762
- const o = Ft({
2762
+ const o = St({
2763
2763
  code: n.collection,
2764
2764
  localState: t.localState,
2765
2765
  rootState: t.rootState,
@@ -2782,22 +2782,22 @@ const Yo = ["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen"
2782
2782
  },
2783
2783
  block: r
2784
2784
  }));
2785
- }, ei = () => import("./block-styles.c251cc50.js").then((e) => e.default).catch((e) => {
2785
+ }, ei = () => import("./block-styles.bed8f6d5.js").then((e) => e.default).catch((e) => {
2786
2786
  throw console.error(
2787
2787
  "Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
2788
2788
  e
2789
2789
  ), e;
2790
- }), ti = () => import("./block-wrapper.17244a32.js").then((e) => e.default).catch((e) => {
2790
+ }), ti = () => import("./block-wrapper.0057cc28.js").then((e) => e.default).catch((e) => {
2791
2791
  throw console.error(
2792
2792
  "Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
2793
2793
  e
2794
2794
  ), e;
2795
- }), ni = () => import("./component-ref.a9555536.js").then((e) => e.default).catch((e) => {
2795
+ }), ni = () => import("./component-ref.dc15b1b3.js").then((e) => e.default).catch((e) => {
2796
2796
  throw console.error(
2797
2797
  "Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
2798
2798
  e
2799
2799
  ), e;
2800
- }), ri = () => import("./repeated-block.2b8fbf14.js").then((e) => e.default).catch((e) => {
2800
+ }), ri = () => import("./repeated-block.1815e5e5.js").then((e) => e.default).catch((e) => {
2801
2801
  throw console.error(
2802
2802
  "Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
2803
2803
  e
@@ -3341,11 +3341,11 @@ const bi = U({
3341
3341
  }
3342
3342
  }
3343
3343
  });
3344
- const ki = ["srcset"], Ei = ["alt", "role", "src", "srcset", "sizes"], Fi = {
3344
+ const ki = ["srcset"], Ei = ["alt", "role", "src", "srcset", "sizes"], Si = {
3345
3345
  key: 2,
3346
3346
  class: "div-1be3j8m9ewb-2"
3347
3347
  };
3348
- function Si(e, t, n, r, o, i) {
3348
+ function Fi(e, t, n, r, o, i) {
3349
3349
  var u, p, h, m;
3350
3350
  return E(), I(ue, null, [
3351
3351
  en("picture", null, [
@@ -3381,16 +3381,16 @@ function Si(e, t, n, r, o, i) {
3381
3381
  })
3382
3382
  }, null, 4)) : V("v-if", !0),
3383
3383
  ((m = (h = e.builderBlock) == null ? void 0 : h.children) == null ? void 0 : m.length) && e.fitContent ? Ee(e.$slots, "default", { key: 1 }, void 0, !0) : V("v-if", !0),
3384
- !e.fitContent && e.$slots.default ? (E(), I("div", Fi, [
3384
+ !e.fitContent && e.$slots.default ? (E(), I("div", Si, [
3385
3385
  Ee(e.$slots, "default", {}, void 0, !0)
3386
3386
  ])) : V("v-if", !0)
3387
3387
  ], 64);
3388
3388
  }
3389
- const wi = /* @__PURE__ */ M(bi, [["render", Si], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/image/image.vue"]]), Bi = U({
3389
+ const wi = /* @__PURE__ */ M(bi, [["render", Fi], ["__scopeId", "data-v-58ca75d1"], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/blocks/image/image.vue"]]), Bi = U({
3390
3390
  name: "builder-section-component",
3391
3391
  props: ["attributes", "maxWidth"],
3392
3392
  data() {
3393
- return { filterAttrs: St };
3393
+ return { filterAttrs: Ft };
3394
3394
  }
3395
3395
  });
3396
3396
  function Di(e, t, n, r, o, i) {
@@ -4061,7 +4061,7 @@ const es = /* @__PURE__ */ M(qi, [["render", Zi], ["__file", "/home/runner/work/
4061
4061
  "attributes"
4062
4062
  ],
4063
4063
  data() {
4064
- return { isEditing: me, filterAttrs: St };
4064
+ return { isEditing: me, filterAttrs: Ft };
4065
4065
  }
4066
4066
  }), is = ["alt", "src"];
4067
4067
  function ss(e, t, n, r, o, i) {
@@ -4405,13 +4405,13 @@ const Es = /* @__PURE__ */ M(gs, [["render", ks], ["__file", "/home/runner/work/
4405
4405
  }, {
4406
4406
  component: Es,
4407
4407
  ...ms
4408
- }], cr = [], Fs = (e) => ({
4408
+ }], cr = [], Ss = (e) => ({
4409
4409
  type: "builder.registerComponent",
4410
4410
  data: un(e)
4411
- }), Ss = (e) => {
4411
+ }), Fs = (e) => {
4412
4412
  const t = e.toString().trim();
4413
4413
  return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
4414
- }, ws = (e) => typeof e == "function" ? Ss(e) : pt(e), un = ({
4414
+ }, ws = (e) => typeof e == "function" ? Fs(e) : pt(e), un = ({
4415
4415
  inputs: e,
4416
4416
  ...t
4417
4417
  }) => ({
@@ -4598,7 +4598,7 @@ const Ns = "v3", pr = "builder.", _s = "options.", Us = (e) => {
4598
4598
  cacheSeconds: R,
4599
4599
  staleCacheSeconds: $,
4600
4600
  sort: te,
4601
- includeUnpublished: Se
4601
+ includeUnpublished: Fe
4602
4602
  } = e;
4603
4603
  if (!u)
4604
4604
  throw new Error("Missing API key");
@@ -4606,7 +4606,7 @@ const Ns = "v3", pr = "builder.", _s = "options.", Us = (e) => {
4606
4606
  throw new Error(`Invalid apiVersion: expected 'v2' or 'v3', received '${v}'`);
4607
4607
  (e.limit === void 0 || e.limit > 1) && !("noTraverse" in e) && (t = !0);
4608
4608
  const b = new URL(`https://cdn.builder.io/api/${v}/content/${i}?apiKey=${u}&limit=${n}&noTraverse=${t}&includeRefs=${p}${m ? `&locale=${m}` : ""}${h ? `&enrich=${h}` : ""}`);
4609
- if (b.searchParams.set("omit", T || "meta.componentsUsed"), k && b.searchParams.set("fields", k), Number.isFinite(P) && P > -1 && b.searchParams.set("offset", String(Math.floor(P))), typeof Se == "boolean" && b.searchParams.set("includeUnpublished", String(Se)), R && dr(R) && b.searchParams.set("cacheSeconds", String(R)), $ && dr($) && b.searchParams.set("staleCacheSeconds", String($)), te) {
4609
+ if (b.searchParams.set("omit", T || "meta.componentsUsed"), k && b.searchParams.set("fields", k), Number.isFinite(P) && P > -1 && b.searchParams.set("offset", String(Math.floor(P))), typeof Fe == "boolean" && b.searchParams.set("includeUnpublished", String(Fe)), R && dr(R) && b.searchParams.set("cacheSeconds", String(R)), $ && dr($) && b.searchParams.set("staleCacheSeconds", String($)), te) {
4610
4610
  const oe = Et({
4611
4611
  sort: te
4612
4612
  });
@@ -4855,7 +4855,7 @@ const nu = (e, t, n = !0) => {
4855
4855
  builderElementIndex: n && r ? [].slice.call(document.getElementsByClassName(r)).indexOf(n) : void 0
4856
4856
  }
4857
4857
  };
4858
- }, iu = "0.11.3", mr = {};
4858
+ }, iu = "0.11.4", mr = {};
4859
4859
  function su(e, t) {
4860
4860
  let n = mr[e];
4861
4861
  if (n || (n = mr[e] = []), n.push(t), J()) {
@@ -4967,11 +4967,13 @@ const au = (e = {}) => {
4967
4967
  "enrich",
4968
4968
  "content",
4969
4969
  "showContent",
4970
- "contentWrapperProps"
4970
+ "contentWrapperProps",
4971
+ "data"
4971
4972
  ],
4972
4973
  data() {
4973
4974
  return {
4974
4975
  forceReRenderCount: 0,
4976
+ firstRender: !0,
4975
4977
  lastUpdated: 0,
4976
4978
  shouldSendResetCookie: !1,
4977
4979
  ContentWrapper: this.contentWrapper || "div",
@@ -5038,6 +5040,20 @@ const au = (e = {}) => {
5038
5040
  this.emitStateUpdate();
5039
5041
  },
5040
5042
  immediate: !0
5043
+ },
5044
+ onUpdateHook5: {
5045
+ handler() {
5046
+ this.data && this.mergeNewRootState(this.data);
5047
+ },
5048
+ immediate: !0
5049
+ },
5050
+ onUpdateHook6: {
5051
+ handler() {
5052
+ this.locale && this.mergeNewRootState({
5053
+ locale: this.locale
5054
+ });
5055
+ },
5056
+ immediate: !0
5041
5057
  }
5042
5058
  },
5043
5059
  unmounted() {
@@ -5074,9 +5090,27 @@ const au = (e = {}) => {
5074
5090
  return {
5075
5091
  0: this.builderContextSignal.rootState
5076
5092
  };
5093
+ },
5094
+ onUpdateHook5() {
5095
+ return {
5096
+ 0: this.data
5097
+ };
5098
+ },
5099
+ onUpdateHook6() {
5100
+ return {
5101
+ 0: this.locale
5102
+ };
5077
5103
  }
5078
5104
  },
5079
5105
  methods: {
5106
+ mergeNewRootState(e) {
5107
+ var n, r;
5108
+ const t = {
5109
+ ...this.builderContextSignal.rootState,
5110
+ ...e
5111
+ };
5112
+ this.builderContextSignal.rootSetState ? (r = (n = this.builderContextSignal).rootSetState) == null || r.call(n, t) : this.builderContextSignal.rootState = t;
5113
+ },
5080
5114
  mergeNewContent(e) {
5081
5115
  var n, r, o, i, u;
5082
5116
  const t = {
@@ -5120,7 +5154,7 @@ const au = (e = {}) => {
5120
5154
  evaluateJsCode() {
5121
5155
  var t, n;
5122
5156
  const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
5123
- e && Ft({
5157
+ e && St({
5124
5158
  code: e,
5125
5159
  context: this.context || {},
5126
5160
  localState: void 0,
@@ -5147,7 +5181,7 @@ const au = (e = {}) => {
5147
5181
  evalExpression(e) {
5148
5182
  return e.replace(
5149
5183
  /{{([^}]+)}}/g,
5150
- (t, n) => Ft({
5184
+ (t, n) => St({
5151
5185
  code: n,
5152
5186
  context: this.context || {},
5153
5187
  localState: void 0,
@@ -5211,7 +5245,7 @@ const au = (e = {}) => {
5211
5245
  this.builderContextSignal.componentInfos
5212
5246
  ).forEach((t) => {
5213
5247
  var r;
5214
- const n = Fs(t);
5248
+ const n = Ss(t);
5215
5249
  (r = window.parent) == null || r.postMessage(n, "*");
5216
5250
  }), window.addEventListener(
5217
5251
  "builder:component:stateChangeListenerActivated",
@@ -5462,6 +5496,7 @@ function ku(e, t, n, r, o, i) {
5462
5496
  const u = K("inlined-script"), p = K("content-styles"), h = K("blocks"), m = K("enable-editor");
5463
5497
  return E(), X(m, re({
5464
5498
  content: e.content,
5499
+ data: e.data,
5465
5500
  model: e.model,
5466
5501
  context: e.context,
5467
5502
  apiKey: e.apiKey,
@@ -5495,9 +5530,9 @@ function ku(e, t, n, r, o, i) {
5495
5530
  ];
5496
5531
  }),
5497
5532
  _: 1
5498
- }, 16, ["content", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps"]);
5533
+ }, 16, ["content", "data", "model", "context", "apiKey", "canTrack", "locale", "includeRefs", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps"]);
5499
5534
  }
5500
- const Eu = /* @__PURE__ */ M(bu, [["render", ku], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/content.vue"]]), Fu = U({
5535
+ const Eu = /* @__PURE__ */ M(bu, [["render", ku], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content/content.vue"]]), Su = U({
5501
5536
  name: "content-variants",
5502
5537
  components: {
5503
5538
  InlinedScript: Vr,
@@ -5562,7 +5597,7 @@ const Eu = /* @__PURE__ */ M(bu, [["render", ku], ["__file", "/home/runner/work/
5562
5597
  }
5563
5598
  }
5564
5599
  });
5565
- function Su(e, t, n, r, o, i) {
5600
+ function Fu(e, t, n, r, o, i) {
5566
5601
  var m;
5567
5602
  const u = K("inlined-script"), p = K("inlined-styles"), h = K("content-component");
5568
5603
  return E(), I(ue, null, [
@@ -5620,7 +5655,7 @@ function Su(e, t, n, r, o, i) {
5620
5655
  }), null, 16, ["content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "canTrack", "locale", "includeRefs", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps"])
5621
5656
  ], 64);
5622
5657
  }
5623
- const qr = /* @__PURE__ */ M(Fu, [["render", Su], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content-variants/content-variants.vue"]]), wu = async ({
5658
+ const qr = /* @__PURE__ */ M(Su, [["render", Fu], ["__file", "/home/runner/work/builder/builder/packages/sdks/output/vue/src/components/content-variants/content-variants.vue"]]), wu = async ({
5624
5659
  builderContextValue: e,
5625
5660
  symbol: t
5626
5661
  }) => {
@@ -5650,7 +5685,7 @@ const qr = /* @__PURE__ */ M(Fu, [["render", Su], ["__file", "/home/runner/work/
5650
5685
  ],
5651
5686
  data() {
5652
5687
  var e;
5653
- return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: St };
5688
+ return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: Ft };
5654
5689
  },
5655
5690
  mounted() {
5656
5691
  this.setContent();
@@ -5768,7 +5803,7 @@ export {
5768
5803
  Ru as b,
5769
5804
  $e as c,
5770
5805
  nn as d,
5771
- Ft as e,
5806
+ St as e,
5772
5807
  Cn as f,
5773
5808
  xr as g,
5774
5809
  Nu as h,
@@ -5779,7 +5814,7 @@ export {
5779
5814
  fs as m,
5780
5815
  me as n,
5781
5816
  Hs as o,
5782
- Fs as p,
5817
+ Ss as p,
5783
5818
  Ls as q,
5784
5819
  su as r,
5785
5820
  _u as s,