@builder.io/sdk-vue 0.0.3 → 0.0.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 (49) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/{block-styles.7d59e6ba.cjs → block-styles.eb369124.cjs} +3 -3
  3. package/packages/_vue2/dist/{block-styles.bc1f94cc.js → block-styles.fc09dcaf.js} +3 -3
  4. package/packages/{_vue3/dist/get-processed-block.19c3700a.js → _vue2/dist/get-processed-block.ae7861fa.js} +1 -1
  5. package/packages/{_vue3/dist/get-processed-block.d0247791.cjs → _vue2/dist/get-processed-block.fce88f96.cjs} +1 -1
  6. package/packages/_vue2/dist/{index.02cbe11b.js → index.a348d39c.js} +122 -112
  7. package/packages/_vue2/dist/index.efd88402.cjs +4 -0
  8. package/packages/_vue2/dist/{render-block.4fdcffb1.js → render-block.089abc43.js} +6 -6
  9. package/packages/_vue2/dist/{render-block.4d368620.cjs → render-block.d62a967f.cjs} +2 -2
  10. package/packages/_vue2/dist/{render-component-with-context.45bddebc.js → render-component-with-context.02a2c528.js} +2 -2
  11. package/packages/_vue2/dist/{render-component-with-context.83718839.cjs → render-component-with-context.1a7fd4e9.cjs} +1 -1
  12. package/packages/_vue2/dist/{render-component.4b341c2e.cjs → render-component.4342df65.cjs} +1 -1
  13. package/packages/_vue2/dist/{render-component.a8a981da.js → render-component.75cfc72e.js} +3 -3
  14. package/packages/_vue2/dist/{render-inlined-styles.d903e589.cjs → render-inlined-styles.36f2f1b9.cjs} +1 -1
  15. package/packages/_vue2/dist/{render-inlined-styles.198fc516.js → render-inlined-styles.6eb4d3ee.js} +1 -1
  16. package/packages/_vue2/dist/{render-repeated-block.7547b966.js → render-repeated-block.c84c107f.js} +2 -2
  17. package/packages/_vue2/dist/{render-repeated-block.d2d7376a.cjs → render-repeated-block.e85c5841.cjs} +1 -1
  18. package/packages/_vue2/dist/{render-styles.2b14f2b8.cjs → render-styles.13fa67a1.cjs} +1 -1
  19. package/packages/_vue2/dist/{render-styles.d7585530.js → render-styles.6722cee5.js} +2 -2
  20. package/packages/_vue2/dist/sdk.cjs +1 -1
  21. package/packages/_vue2/dist/sdk.js +7 -6
  22. package/packages/_vue2/dist/src/functions/track.d.ts +35 -5
  23. package/packages/_vue2/dist/src/index.d.ts +1 -0
  24. package/packages/_vue2/dist/style.css +1 -1
  25. package/packages/_vue3/dist/{block-styles.44a21830.cjs → block-styles.4388e73f.cjs} +2 -2
  26. package/packages/_vue3/dist/{block-styles.4fb6c64e.js → block-styles.e92f0e4a.js} +3 -3
  27. package/packages/{_vue2/dist/get-processed-block.73e1ad82.js → _vue3/dist/get-processed-block.91be815e.js} +1 -1
  28. package/packages/{_vue2/dist/get-processed-block.c83086c1.cjs → _vue3/dist/get-processed-block.da7b258e.cjs} +1 -1
  29. package/packages/_vue3/dist/index.528ea0ff.cjs +4 -0
  30. package/packages/_vue3/dist/{index.c45f283d.js → index.7a037186.js} +242 -232
  31. package/packages/_vue3/dist/{render-block.9c91f64e.cjs → render-block.3d77314f.cjs} +2 -2
  32. package/packages/_vue3/dist/{render-block.a0b27065.js → render-block.7817291b.js} +6 -6
  33. package/packages/_vue3/dist/{render-component-with-context.fd83122c.cjs → render-component-with-context.b67db565.cjs} +1 -1
  34. package/packages/_vue3/dist/{render-component-with-context.205a19d1.js → render-component-with-context.fa0fe72b.js} +2 -2
  35. package/packages/_vue3/dist/{render-component.38a974b8.cjs → render-component.2630f2f7.cjs} +1 -1
  36. package/packages/_vue3/dist/{render-component.fbf7bbcb.js → render-component.cca10188.js} +3 -3
  37. package/packages/_vue3/dist/{render-inlined-styles.631d4b7f.cjs → render-inlined-styles.7be0edda.cjs} +1 -1
  38. package/packages/_vue3/dist/{render-inlined-styles.3f53b0f1.js → render-inlined-styles.bf23044d.js} +1 -1
  39. package/packages/_vue3/dist/{render-repeated-block.35b18332.cjs → render-repeated-block.a972d060.cjs} +1 -1
  40. package/packages/_vue3/dist/{render-repeated-block.4f78496b.js → render-repeated-block.fa7d9eeb.js} +2 -2
  41. package/packages/_vue3/dist/{render-styles.32666ea6.js → render-styles.970e0a2e.js} +2 -2
  42. package/packages/_vue3/dist/{render-styles.1482932c.cjs → render-styles.b4777a9f.cjs} +1 -1
  43. package/packages/_vue3/dist/sdk.cjs +1 -1
  44. package/packages/_vue3/dist/sdk.js +8 -7
  45. package/packages/_vue3/dist/src/functions/track.d.ts +35 -5
  46. package/packages/_vue3/dist/src/index.d.ts +1 -0
  47. package/packages/_vue3/dist/style.css +1 -1
  48. package/packages/_vue2/dist/index.1d7bcb8c.cjs +0 -4
  49. package/packages/_vue3/dist/index.acbcbf48.cjs +0 -4
@@ -1,12 +1,12 @@
1
- import { defineAsyncComponent as y, resolveComponent as v, openBlock as l, createElementBlock as d, normalizeStyle as _, Fragment as C, renderList as E, createVNode as q, createElementVNode as T, createCommentVNode as b, normalizeClass as j, renderSlot as w, mergeProps as x, toDisplayString as P, createBlock as S } from "vue";
2
- const U = "vue3";
1
+ import { defineAsyncComponent as y, resolveComponent as v, openBlock as l, createElementBlock as d, normalizeStyle as _, Fragment as C, renderList as E, createVNode as K, createElementVNode as T, createCommentVNode as b, normalizeClass as U, renderSlot as w, mergeProps as x, toDisplayString as $, createBlock as S } from "vue";
2
+ const V = "vue3";
3
3
  function h() {
4
4
  return typeof window < "u" && typeof document < "u";
5
5
  }
6
- const $ = {};
6
+ const W = {};
7
7
  function ae(e, n) {
8
- let t = $[e];
9
- if (t || (t = $[e] = []), t.push(n), h()) {
8
+ let t = W[e];
9
+ if (t || (t = W[e] = []), t.push(n), h()) {
10
10
  const o = {
11
11
  type: "builder.register",
12
12
  data: {
@@ -16,8 +16,8 @@ function ae(e, n) {
16
16
  };
17
17
  try {
18
18
  parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
19
- } catch (r) {
20
- console.debug("Could not postmessage", r);
19
+ } catch (s) {
20
+ console.debug("Could not postmessage", s);
21
21
  }
22
22
  }
23
23
  }
@@ -42,7 +42,7 @@ const ie = () => {
42
42
  {
43
43
  type: "builder.sdkInfo",
44
44
  data: {
45
- target: U,
45
+ target: V,
46
46
  supportsPatchUpdates: !1,
47
47
  supportsAddBlockScoping: !0
48
48
  }
@@ -53,10 +53,10 @@ const ie = () => {
53
53
  if (!!(n != null && n.type))
54
54
  switch (n.type) {
55
55
  case "builder.evaluate": {
56
- const r = n.data.text, s = n.data.arguments || [], a = n.data.id, c = new Function(r);
56
+ const s = n.data.text, r = n.data.arguments || [], a = n.data.id, c = new Function(s);
57
57
  let i, u = null;
58
58
  try {
59
- i = c.apply(null, s);
59
+ i = c.apply(null, r);
60
60
  } catch (m) {
61
61
  u = m;
62
62
  }
@@ -150,26 +150,26 @@ const le = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
150
150
  };
151
151
  const f = (e, n) => {
152
152
  const t = e.__vccOpts || e;
153
- for (const [o, r] of n)
154
- t[o] = r;
153
+ for (const [o, s] of n)
154
+ t[o] = s;
155
155
  return t;
156
156
  };
157
- function ue(e, n, t, o, r, s) {
157
+ function ue(e, n, t, o, s, r) {
158
158
  const a = v("render-blocks");
159
159
  return l(), d("div", {
160
- class: "builder-columns div-256wrwn33ry",
161
- style: _(s.columnsCssVars)
160
+ class: "builder-columns div-1eih9th5ow6",
161
+ style: _(r.columnsCssVars)
162
162
  }, [
163
163
  (l(!0), d(C, null, E(t.columns, (c, i) => (l(), d("div", {
164
164
  key: i,
165
- class: "builder-column div-256wrwn33ry-2",
165
+ class: "builder-column div-1eih9th5ow6-2",
166
166
  style: _({
167
- width: s.getColumnCssWidth(i),
168
- marginLeft: `${i === 0 ? 0 : s.getGutterSize()}px`,
169
- ...s.columnCssVars
167
+ width: r.getColumnCssWidth(i),
168
+ marginLeft: `${i === 0 ? 0 : r.getGutterSize()}px`,
169
+ ...r.columnCssVars
170
170
  })
171
171
  }, [
172
- q(a, {
172
+ K(a, {
173
173
  blocks: e.markMutable(c.blocks),
174
174
  path: `component.options.columns.${i}.blocks`,
175
175
  parent: t.builderBlock.id,
@@ -180,25 +180,25 @@ function ue(e, n, t, o, r, s) {
180
180
  ], 4))), 128))
181
181
  ], 4);
182
182
  }
183
- const me = /* @__PURE__ */ f(de, [["render", ue], ["__scopeId", "data-v-2e5dc506"]]);
184
- function W(e) {
183
+ const me = /* @__PURE__ */ f(de, [["render", ue], ["__scopeId", "data-v-d50420e7"]]);
184
+ function L(e) {
185
185
  return e.replace(/http(s)?:/, "");
186
186
  }
187
187
  function pe(e = "", n, t) {
188
- const o = new RegExp("([?&])" + n + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
189
- return e.match(o) ? e.replace(o, "$1" + n + "=" + encodeURIComponent(t) + "$2") : e + r + n + "=" + encodeURIComponent(t);
188
+ const o = new RegExp("([?&])" + n + "=.*?(&|$)", "i"), s = e.indexOf("?") !== -1 ? "&" : "?";
189
+ return e.match(o) ? e.replace(o, "$1" + n + "=" + encodeURIComponent(t) + "$2") : e + s + n + "=" + encodeURIComponent(t);
190
190
  }
191
191
  function he(e, n) {
192
192
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !n)
193
193
  return e;
194
194
  if (n === "master")
195
- return W(e);
195
+ return L(e);
196
196
  const t = e.match(
197
197
  /(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i
198
198
  );
199
199
  if (t) {
200
- const o = e.split(t[0]), r = t[3], s = n.match("x") ? n : `${n}x`;
201
- return W(`${o[0]}_${s}${r}`);
200
+ const o = e.split(t[0]), s = t[3], r = n.match("x") ? n : `${n}x`;
201
+ return L(`${o[0]}_${r}${s}`);
202
202
  }
203
203
  return null;
204
204
  }
@@ -209,7 +209,7 @@ function R(e) {
209
209
  if (e.match(/builder\.io/)) {
210
210
  let t = e;
211
211
  const o = Number(e.split("?width=")[1]);
212
- return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${pe(e, "width", r)} ${r}w`).concat([t]).join(", ");
212
+ return isNaN(o) || (t = `${t} ${o}w`), n.filter((s) => s !== o).map((s) => `${pe(e, "width", s)} ${s}w`).concat([t]).join(", ");
213
213
  }
214
214
  return e.match(/cdn\.shopify\.com/) ? n.map((t) => [he(e, `${t}x${t}`), t]).filter(([t]) => !!t).map(([t, o]) => `${t} ${o}w`).concat([e]).join(", ") : e;
215
215
  }
@@ -260,16 +260,16 @@ const fe = {
260
260
  };
261
261
  const ge = ["srcset"], be = ["alt", "role", "src", "srcset", "sizes"], ye = ["srcset"], ve = {
262
262
  key: 2,
263
- class: "div-2inev3z4vnk-2"
263
+ class: "div-kd7f8ex7am-2"
264
264
  };
265
- function xe(e, n, t, o, r, s) {
265
+ function xe(e, n, t, o, s, r) {
266
266
  var a, c, i, u;
267
267
  return l(), d(C, null, [
268
268
  T("picture", null, [
269
- s.webpSrcSet ? (l(), d("source", {
269
+ r.webpSrcSet ? (l(), d("source", {
270
270
  key: 0,
271
271
  type: "image/webp",
272
- srcset: s.webpSrcSet
272
+ srcset: r.webpSrcSet
273
273
  }, null, 8, ge)) : b("", !0),
274
274
  T("img", {
275
275
  loading: "lazy",
@@ -279,20 +279,20 @@ function xe(e, n, t, o, r, s) {
279
279
  objectPosition: t.backgroundSize || "center",
280
280
  objectFit: t.backgroundSize || "cover"
281
281
  }),
282
- class: j(
283
- s._classStringToObject(
284
- "builder-image" + (t.className ? " " + t.className : "") + " img-2inev3z4vnk"
282
+ class: U(
283
+ r._classStringToObject(
284
+ "builder-image" + (t.className ? " " + t.className : "") + " img-kd7f8ex7am"
285
285
  )
286
286
  ),
287
287
  src: t.image,
288
- srcset: s.srcSetToUse,
288
+ srcset: r.srcSetToUse,
289
289
  sizes: t.sizes
290
290
  }, null, 14, be),
291
- T("source", { srcset: s.srcSetToUse }, null, 8, ye)
291
+ T("source", { srcset: r.srcSetToUse }, null, 8, ye)
292
292
  ]),
293
293
  t.aspectRatio && !(((c = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : c.length) && t.fitContent) ? (l(), d("div", {
294
294
  key: 0,
295
- class: "builder-image-sizer div-2inev3z4vnk",
295
+ class: "builder-image-sizer div-kd7f8ex7am",
296
296
  style: _({
297
297
  paddingTop: t.aspectRatio * 100 + "%"
298
298
  })
@@ -303,11 +303,11 @@ function xe(e, n, t, o, r, s) {
303
303
  ])) : b("", !0)
304
304
  ], 64);
305
305
  }
306
- const ke = /* @__PURE__ */ f(fe, [["render", xe], ["__scopeId", "data-v-219500ea"]]), _e = {
306
+ const ke = /* @__PURE__ */ f(fe, [["render", xe], ["__scopeId", "data-v-ebf1c7e3"]]), _e = {
307
307
  name: "builder-text",
308
308
  props: ["text"]
309
309
  }, Ce = ["innerHTML"];
310
- function we(e, n, t, o, r, s) {
310
+ function we(e, n, t, o, s, r) {
311
311
  return l(), d("span", {
312
312
  class: "builder-text",
313
313
  innerHTML: t.text
@@ -355,9 +355,9 @@ const Se = /* @__PURE__ */ f(_e, [["render", we]]), Ie = {
355
355
  }
356
356
  }
357
357
  }, Te = ["src", "poster"];
358
- function Re(e, n, t, o, r, s) {
358
+ function Re(e, n, t, o, s, r) {
359
359
  var a;
360
- return l(), d("video", x(s.spreadProps, {
360
+ return l(), d("video", x(r.spreadProps, {
361
361
  style: {
362
362
  width: "100%",
363
363
  height: "100%",
@@ -372,16 +372,16 @@ function Re(e, n, t, o, r, s) {
372
372
  }
373
373
  const Ee = /* @__PURE__ */ f(Ie, [["render", Re]]);
374
374
  function F(e, n = null, t = ".") {
375
- return Object.keys(e).reduce((o, r) => {
376
- const s = e[r], a = [n, r].filter(Boolean).join(t);
375
+ return Object.keys(e).reduce((o, s) => {
376
+ const r = e[s], a = [n, s].filter(Boolean).join(t);
377
377
  return [
378
- typeof s == "object",
379
- s !== null,
380
- !(Array.isArray(s) && s.length === 0)
381
- ].every(Boolean) ? { ...o, ...F(s, a, t) } : { ...o, [a]: s };
378
+ typeof r == "object",
379
+ r !== null,
380
+ !(Array.isArray(r) && r.length === 0)
381
+ ].every(Boolean) ? { ...o, ...F(r, a, t) } : { ...o, [a]: r };
382
382
  }, {});
383
383
  }
384
- const L = "builder.", Fe = (e) => {
384
+ const M = "builder.", Fe = (e) => {
385
385
  const n = {};
386
386
  return e.forEach((t, o) => {
387
387
  n[o] = t;
@@ -389,11 +389,11 @@ const L = "builder.", Fe = (e) => {
389
389
  }, je = (e) => {
390
390
  if (!e)
391
391
  return {};
392
- const n = D(e), t = {};
392
+ const n = q(e), t = {};
393
393
  return Object.keys(n).forEach((o) => {
394
- if (o.startsWith(L)) {
395
- const r = o.replace(L, "");
396
- t[r] = n[o];
394
+ if (o.startsWith(M)) {
395
+ const s = o.replace(M, "");
396
+ t[s] = n[o];
397
397
  }
398
398
  }), t;
399
399
  }, Ue = () => {
@@ -401,22 +401,22 @@ const L = "builder.", Fe = (e) => {
401
401
  return {};
402
402
  const e = new URLSearchParams(window.location.search);
403
403
  return je(e);
404
- }, D = (e) => e instanceof URLSearchParams ? Fe(e) : e;
405
- function Ae() {
404
+ }, q = (e) => e instanceof URLSearchParams ? Fe(e) : e;
405
+ function Ve() {
406
406
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
407
407
  }
408
- async function K() {
409
- const e = Ae().fetch;
408
+ async function D() {
409
+ const e = Ve().fetch;
410
410
  if (typeof e > "u" && typeof global < "u") {
411
411
  const n = import("node-fetch").then((t) => t.default);
412
412
  return n.default || n;
413
413
  }
414
414
  return e.default || e;
415
415
  }
416
- const Ve = (e) => {
416
+ const Ae = (e) => {
417
417
  const n = e.split(".");
418
418
  return n.length > 2 ? n.slice(1).join(".") : e;
419
- }, G = async ({
419
+ }, J = async ({
420
420
  name: e,
421
421
  canTrack: n
422
422
  }) => {
@@ -434,15 +434,15 @@ const Ve = (e) => {
434
434
  value: n,
435
435
  expires: t
436
436
  }) => {
437
- const r = (h() ? location.protocol === "https:" : !0) ? Be : [[]], s = t ? [["expires", t.toUTCString()]] : [[]], a = [
437
+ const s = (h() ? location.protocol === "https:" : !0) ? Be : [[]], r = t ? [["expires", t.toUTCString()]] : [[]], a = [
438
438
  [e, n],
439
- ...s,
439
+ ...r,
440
440
  ["path", "/"],
441
- ["domain", Ve(window.location.hostname)],
442
- ...r
441
+ ["domain", Ae(window.location.hostname)],
442
+ ...s
443
443
  ];
444
444
  return Oe(a);
445
- }, J = async ({
445
+ }, G = async ({
446
446
  name: e,
447
447
  value: n,
448
448
  expires: t,
@@ -451,30 +451,30 @@ const Ve = (e) => {
451
451
  try {
452
452
  if (!o)
453
453
  return;
454
- const r = Pe({ name: e, value: n, expires: t });
455
- document.cookie = r;
456
- } catch (r) {
457
- console.warn("[COOKIE] SET error: ", r);
454
+ const s = Pe({ name: e, value: n, expires: t });
455
+ document.cookie = s;
456
+ } catch (s) {
457
+ console.warn("[COOKIE] SET error: ", s);
458
458
  }
459
459
  }, $e = "builderio.variations", Y = (e) => `${$e}.${e}`, We = ({
460
460
  contentId: e,
461
461
  canTrack: n
462
- }) => G({ name: Y(e), canTrack: n }), Le = ({
462
+ }) => J({ name: Y(e), canTrack: n }), Le = ({
463
463
  contentId: e,
464
464
  canTrack: n,
465
465
  value: t
466
- }) => J({ name: Y(e), value: t, canTrack: n }), I = (e) => e != null, Me = (e) => I(e.id) && I(e.variations) && Object.keys(e.variations).length > 0, Ne = ({
466
+ }) => G({ name: Y(e), value: t, canTrack: n }), I = (e) => e != null, Me = (e) => I(e.id) && I(e.variations) && Object.keys(e.variations).length > 0, Ne = ({
467
467
  id: e,
468
468
  variations: n
469
469
  }) => {
470
- var r;
470
+ var s;
471
471
  let t = 0;
472
472
  const o = Math.random();
473
- for (const s in n)
474
- if (t += (r = n[s]) == null ? void 0 : r.testRatio, o < t)
475
- return s;
473
+ for (const r in n)
474
+ if (t += (s = n[r]) == null ? void 0 : s.testRatio, o < t)
475
+ return r;
476
476
  return e;
477
- }, M = ({
477
+ }, N = ({
478
478
  item: e,
479
479
  testGroupId: n
480
480
  }) => {
@@ -487,54 +487,54 @@ const Ve = (e) => {
487
487
  testVariationId: t.id,
488
488
  testVariationName: t.name || (t.id === e.id ? "Default" : "")
489
489
  };
490
- }, ze = async ({
490
+ }, He = async ({
491
491
  item: e,
492
492
  canTrack: n
493
493
  }) => {
494
494
  const t = await We({
495
495
  canTrack: n,
496
496
  contentId: e.id
497
- }), o = t ? M({ item: e, testGroupId: t }) : void 0;
497
+ }), o = t ? N({ item: e, testGroupId: t }) : void 0;
498
498
  if (o)
499
499
  return o;
500
500
  {
501
- const r = Ne({
501
+ const s = Ne({
502
502
  variations: e.variations,
503
503
  id: e.id
504
504
  });
505
505
  return Le({
506
506
  contentId: e.id,
507
- value: r,
507
+ value: s,
508
508
  canTrack: n
509
- }).catch((s) => {
510
- console.error("could not store A/B test variation: ", s);
511
- }), M({ item: e, testGroupId: r });
509
+ }).catch((r) => {
510
+ console.error("could not store A/B test variation: ", r);
511
+ }), N({ item: e, testGroupId: s });
512
512
  }
513
- }, He = async ({
513
+ }, ze = async ({
514
514
  item: e,
515
515
  canTrack: n
516
516
  }) => {
517
517
  if (!Me(e))
518
518
  return;
519
- const t = await ze({ item: e, canTrack: n });
519
+ const t = await He({ item: e, canTrack: n });
520
520
  Object.assign(e, t);
521
521
  };
522
522
  async function X(e) {
523
- return (await De({ ...e, limit: 1 })).results[0] || null;
523
+ return (await qe({ ...e, limit: 1 })).results[0] || null;
524
524
  }
525
- const qe = (e) => {
525
+ const Ke = (e) => {
526
526
  const {
527
527
  limit: n = 30,
528
528
  userAttributes: t,
529
529
  query: o,
530
- noTraverse: r = !1,
531
- model: s,
530
+ noTraverse: s = !1,
531
+ model: r,
532
532
  apiKey: a
533
533
  } = e, c = new URL(
534
- `https://cdn.builder.io/api/v2/content/${s}?apiKey=${a}&limit=${n}&noTraverse=${r}`
534
+ `https://cdn.builder.io/api/v2/content/${r}?apiKey=${a}&limit=${n}&noTraverse=${s}`
535
535
  ), i = {
536
536
  ...Ue(),
537
- ...D(e.options || {})
537
+ ...q(e.options || {})
538
538
  }, u = F(i);
539
539
  for (const m in u)
540
540
  c.searchParams.set(m, String(u[m]));
@@ -545,23 +545,23 @@ const qe = (e) => {
545
545
  }
546
546
  return c;
547
547
  };
548
- async function De(e) {
549
- const n = qe(e), o = await (await K())(n.href).then(
550
- (s) => s.json()
551
- ), r = e.canTrack !== !1;
552
- if (r)
553
- for (const s of o.results)
554
- await He({ item: s, canTrack: r });
548
+ async function qe(e) {
549
+ const n = Ke(e), o = await (await D())(n.href).then(
550
+ (r) => r.json()
551
+ ), s = e.canTrack !== !1;
552
+ if (s)
553
+ for (const r of o.results)
554
+ await ze({ item: r, canTrack: s });
555
555
  return o;
556
556
  }
557
- const Ke = () => Promise.resolve().then(() => on).then((e) => e.default).catch((e) => {
557
+ const De = () => Promise.resolve().then(() => on).then((e) => e.default).catch((e) => {
558
558
  throw console.error(
559
559
  "Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
560
560
  e
561
561
  ), e;
562
- }), Ge = {
562
+ }), Je = {
563
563
  name: "builder-symbol",
564
- components: { RenderContent: y(Ke) },
564
+ components: { RenderContent: y(De) },
565
565
  props: ["symbol", "attributes"],
566
566
  data: () => ({
567
567
  className: "builder-symbol",
@@ -608,47 +608,47 @@ const Ke = () => Promise.resolve().then(() => on).then((e) => e.default).catch((
608
608
  return n;
609
609
  }
610
610
  }
611
- }, Je = ["dataSet"];
612
- function Ye(e, n, t, o, r, s) {
611
+ }, Ge = ["dataSet"];
612
+ function Ye(e, n, t, o, s, r) {
613
613
  var c, i, u, m, p;
614
614
  const a = v("render-content");
615
615
  return l(), d("div", x(t.attributes, {
616
616
  dataSet: {
617
617
  class: e.className
618
618
  },
619
- class: s._classStringToObject(e.className)
619
+ class: r._classStringToObject(e.className)
620
620
  }), [
621
- q(a, {
622
- apiKey: s.builderContext.apiKey,
623
- context: s.builderContext.context,
624
- customComponents: e.markMutable(Object.values(s.builderContext.registeredComponents)),
621
+ K(a, {
622
+ apiKey: r.builderContext.apiKey,
623
+ context: r.builderContext.context,
624
+ customComponents: e.markMutable(Object.values(r.builderContext.registeredComponents)),
625
625
  data: e.markMutable({
626
626
  ...(c = t.symbol) == null ? void 0 : c.data,
627
- ...s.builderContext.state,
627
+ ...r.builderContext.state,
628
628
  ...(m = (u = (i = t.symbol) == null ? void 0 : i.content) == null ? void 0 : u.data) == null ? void 0 : m.state
629
629
  }),
630
630
  model: (p = t.symbol) == null ? void 0 : p.model,
631
- content: e.markMutable(s.contentToUse)
631
+ content: e.markMutable(r.contentToUse)
632
632
  }, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
633
- ], 16, Je);
633
+ ], 16, Ge);
634
634
  }
635
- const Xe = /* @__PURE__ */ f(Ge, [["render", Ye]]), Qe = {
635
+ const Xe = /* @__PURE__ */ f(Je, [["render", Ye]]), Qe = {
636
636
  name: "builder-button",
637
637
  props: ["attributes", "text", "link", "openLinkInNewTab"]
638
638
  };
639
639
  const Ze = ["href", "target"];
640
- function et(e, n, t, o, r, s) {
640
+ function et(e, n, t, o, s, r) {
641
641
  return t.link ? (l(), d("a", x({ key: 0 }, t.attributes, {
642
642
  role: "button",
643
643
  href: t.link,
644
644
  target: t.openLinkInNewTab ? "_blank" : void 0
645
- }), P(t.text), 17, Ze)) : (l(), d("button", x({ key: 1 }, t.attributes, { class: "button-20vehov4ay6" }), P(t.text), 17));
645
+ }), $(t.text), 17, Ze)) : (l(), d("button", x({ key: 1 }, t.attributes, { class: "button-1yj9n7yt24z" }), $(t.text), 17));
646
646
  }
647
- const tt = /* @__PURE__ */ f(Qe, [["render", et], ["__scopeId", "data-v-4f342625"]]), nt = {
647
+ const tt = /* @__PURE__ */ f(Qe, [["render", et], ["__scopeId", "data-v-a1cb1b3e"]]), nt = {
648
648
  name: "builder-section-component",
649
649
  props: ["attributes", "maxWidth"]
650
650
  };
651
- function ot(e, n, t, o, r, s) {
651
+ function ot(e, n, t, o, s, r) {
652
652
  return l(), d("section", x(t.attributes, {
653
653
  style: t.maxWidth && typeof t.maxWidth == "number" ? {
654
654
  maxWidth: t.maxWidth
@@ -661,7 +661,7 @@ const st = /* @__PURE__ */ f(nt, [["render", ot]]), rt = {
661
661
  name: "builder-fragment-component",
662
662
  props: []
663
663
  };
664
- function at(e, n, t, o, r, s) {
664
+ function at(e, n, t, o, s, r) {
665
665
  return l(), d("span", null, [
666
666
  w(e.$slots, "default")
667
667
  ]);
@@ -704,7 +704,7 @@ const it = /* @__PURE__ */ f(rt, [["render", at]]), ct = {
704
704
  static: !0,
705
705
  noWrap: !0
706
706
  };
707
- function V(e) {
707
+ function O(e) {
708
708
  return e.__qwik_serializable__ = !0, e;
709
709
  }
710
710
  const lt = {
@@ -895,7 +895,7 @@ const lt = {
895
895
  ]
896
896
  }
897
897
  ],
898
- onChange: V((e) => {
898
+ onChange: O((e) => {
899
899
  function n() {
900
900
  t.forEach((o) => {
901
901
  o.delete("width");
@@ -903,9 +903,9 @@ const lt = {
903
903
  }
904
904
  const t = e.get("columns");
905
905
  Array.isArray(t) && !!t.find(
906
- (r) => r.get("width")
906
+ (s) => s.get("width")
907
907
  ) && (!!t.find(
908
- (s) => !s.get("width")
908
+ (r) => !r.get("width")
909
909
  ) || t.reduce((c, i) => c + i.get("width"), 0) !== 100) && n();
910
910
  })
911
911
  },
@@ -959,7 +959,7 @@ const lt = {
959
959
  allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
960
960
  required: !0,
961
961
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
962
- onChange: V((e) => {
962
+ onChange: O((e) => {
963
963
  e.delete("srcset"), e.delete("noWebp");
964
964
  function t(a, c = 6e4) {
965
965
  return new Promise((i, u) => {
@@ -977,13 +977,13 @@ const lt = {
977
977
  function o(a) {
978
978
  return Math.round(a * 1e3) / 1e3;
979
979
  }
980
- const r = e.get("image"), s = e.get("aspectRatio");
981
- if (fetch(r).then((a) => a.blob()).then((a) => {
980
+ const s = e.get("image"), r = e.get("aspectRatio");
981
+ if (fetch(s).then((a) => a.blob()).then((a) => {
982
982
  a.type.includes("svg") && e.set("noWebp", !0);
983
- }), r && (!s || s === 0.7041))
984
- return t(r).then((a) => {
983
+ }), s && (!r || r === 0.7041))
984
+ return t(s).then((a) => {
985
985
  const c = e.get("aspectRatio");
986
- e.get("image") === r && (!c || c === 0.7041) && a.width && a.height && (e.set("aspectRatio", o(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
986
+ e.get("image") === s && (!c || c === 0.7041) && a.width && a.height && (e.set("aspectRatio", o(a.height / a.width)), e.set("height", a.height), e.set("width", a.width));
987
987
  });
988
988
  })
989
989
  },
@@ -1282,7 +1282,7 @@ const lt = {
1282
1282
  required: !0,
1283
1283
  defaultValue: "",
1284
1284
  helperText: "e.g. enter a youtube url, google map, etc",
1285
- onChange: V((e) => {
1285
+ onChange: O((e) => {
1286
1286
  const n = e.get("url");
1287
1287
  if (n)
1288
1288
  return e.set("content", "Loading..."), fetch(
@@ -1347,7 +1347,7 @@ const lt = {
1347
1347
  }
1348
1348
  }
1349
1349
  }, xt = ["innerHTML"];
1350
- function kt(e, n, t, o, r, s) {
1350
+ function kt(e, n, t, o, s, r) {
1351
1351
  return l(), d("div", {
1352
1352
  class: "builder-embed",
1353
1353
  ref: "elem",
@@ -1373,7 +1373,7 @@ const wt = {
1373
1373
  ],
1374
1374
  data: () => ({ isEditing: g })
1375
1375
  }, St = ["alt", "src"];
1376
- function It(e, n, t, o, r, s) {
1376
+ function It(e, n, t, o, s, r) {
1377
1377
  return l(), d("img", x(t.attributes, {
1378
1378
  style: {
1379
1379
  objectFit: t.backgroundSize || "cover",
@@ -1446,18 +1446,18 @@ const Tt = /* @__PURE__ */ f(wt, [["render", It]]), Rt = {
1446
1446
  }
1447
1447
  }
1448
1448
  }, Ft = ["innerHTML"];
1449
- function jt(e, n, t, o, r, s) {
1449
+ function jt(e, n, t, o, s, r) {
1450
1450
  return l(), d("div", {
1451
1451
  ref: "elem",
1452
- class: j(
1453
- s._classStringToObject(
1452
+ class: U(
1453
+ r._classStringToObject(
1454
1454
  "builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
1455
1455
  )
1456
1456
  ),
1457
1457
  innerHTML: t.code
1458
1458
  }, null, 10, Ft);
1459
1459
  }
1460
- const Ut = /* @__PURE__ */ f(Et, [["render", jt]]), At = {
1460
+ const Ut = /* @__PURE__ */ f(Et, [["render", jt]]), Vt = {
1461
1461
  name: "Custom Code",
1462
1462
  static: !0,
1463
1463
  builtIn: !0,
@@ -1484,7 +1484,7 @@ const Ut = /* @__PURE__ */ f(Et, [["render", jt]]), At = {
1484
1484
  advanced: !0
1485
1485
  }
1486
1486
  ]
1487
- }, Vt = () => [
1487
+ }, At = () => [
1488
1488
  { component: me, ...lt },
1489
1489
  { component: ke, ...ut },
1490
1490
  { component: Tt, ...Rt },
@@ -1495,9 +1495,9 @@ const Ut = /* @__PURE__ */ f(Et, [["render", jt]]), At = {
1495
1495
  { component: st, ...mt },
1496
1496
  { component: it, ...dt },
1497
1497
  { component: _t, ...gt },
1498
- { component: Ut, ...At }
1498
+ { component: Ut, ...Vt }
1499
1499
  ];
1500
- function N({
1500
+ function H({
1501
1501
  code: e,
1502
1502
  context: n,
1503
1503
  state: t,
@@ -1507,7 +1507,7 @@ function N({
1507
1507
  console.warn("Skipping evaluation of empty code block.");
1508
1508
  return;
1509
1509
  }
1510
- const r = {
1510
+ const s = {
1511
1511
  isEditing: g(),
1512
1512
  isBrowser: h(),
1513
1513
  isServer: !h()
@@ -1520,7 +1520,7 @@ function N({
1520
1520
  "context",
1521
1521
  "event",
1522
1522
  a
1523
- )(r, r, t, n, o);
1523
+ )(s, s, t, n, o);
1524
1524
  } catch (c) {
1525
1525
  console.warn(
1526
1526
  `Builder custom code error:
@@ -1558,9 +1558,9 @@ const Bt = ({
1558
1558
  ...Q(n),
1559
1559
  inputs: e == null ? void 0 : e.map(
1560
1560
  (t) => Object.entries(t).reduce(
1561
- (o, [r, s]) => ({
1561
+ (o, [s, r]) => ({
1562
1562
  ...o,
1563
- [r]: Pt(s)
1563
+ [s]: Pt(r)
1564
1564
  }),
1565
1565
  {}
1566
1566
  )
@@ -1578,7 +1578,7 @@ function ee() {
1578
1578
  const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
1579
1579
  if (!e)
1580
1580
  return;
1581
- const n = await G({
1581
+ const n = await J({
1582
1582
  name: te,
1583
1583
  canTrack: e
1584
1584
  });
@@ -1586,12 +1586,12 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
1586
1586
  return n;
1587
1587
  {
1588
1588
  const t = Nt();
1589
- zt({ id: t, canTrack: e });
1589
+ Ht({ id: t, canTrack: e });
1590
1590
  }
1591
- }, Nt = () => ee(), zt = ({
1591
+ }, Nt = () => ee(), Ht = ({
1592
1592
  id: e,
1593
1593
  canTrack: n
1594
- }) => J({ name: te, value: e, canTrack: n }), ne = () => h() && typeof localStorage < "u" ? localStorage : void 0, Ht = ({
1594
+ }) => G({ name: te, value: e, canTrack: n }), ne = () => h() && typeof localStorage < "u" ? localStorage : void 0, zt = ({
1595
1595
  key: e,
1596
1596
  canTrack: n
1597
1597
  }) => {
@@ -1601,7 +1601,7 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
1601
1601
  } catch (o) {
1602
1602
  console.debug("[LocalStorage] GET error: ", o);
1603
1603
  }
1604
- }, qt = ({
1604
+ }, Kt = ({
1605
1605
  key: e,
1606
1606
  canTrack: n,
1607
1607
  value: t
@@ -1609,35 +1609,35 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
1609
1609
  var o;
1610
1610
  try {
1611
1611
  n && ((o = ne()) == null || o.setItem(e, t));
1612
- } catch (r) {
1613
- console.debug("[LocalStorage] SET error: ", r);
1612
+ } catch (s) {
1613
+ console.debug("[LocalStorage] SET error: ", s);
1614
1614
  }
1615
- }, oe = "builderVisitorId", Dt = ({ canTrack: e }) => {
1615
+ }, oe = "builderVisitorId", qt = ({ canTrack: e }) => {
1616
1616
  if (!e)
1617
1617
  return;
1618
- const n = Ht({
1618
+ const n = zt({
1619
1619
  key: oe,
1620
1620
  canTrack: e
1621
1621
  });
1622
1622
  if (I(n))
1623
1623
  return n;
1624
1624
  {
1625
- const t = Kt();
1626
- Gt({ id: t, canTrack: e });
1625
+ const t = Dt();
1626
+ Jt({ id: t, canTrack: e });
1627
1627
  }
1628
- }, Kt = () => ee(), Gt = ({
1628
+ }, Dt = () => ee(), Jt = ({
1629
1629
  id: e,
1630
1630
  canTrack: n
1631
- }) => qt({
1631
+ }) => Kt({
1632
1632
  key: oe,
1633
1633
  value: e,
1634
1634
  canTrack: n
1635
- }), Jt = async ({
1635
+ }), Gt = async ({
1636
1636
  canTrack: e
1637
1637
  }) => {
1638
1638
  if (!e)
1639
1639
  return { visitorId: void 0, sessionId: void 0 };
1640
- const n = await Mt({ canTrack: e }), t = Dt({ canTrack: e });
1640
+ const n = await Mt({ canTrack: e }), t = qt({ canTrack: e });
1641
1641
  return {
1642
1642
  sessionId: n,
1643
1643
  visitorId: t
@@ -1645,20 +1645,20 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
1645
1645
  }, Yt = async ({
1646
1646
  type: e,
1647
1647
  canTrack: n,
1648
- orgId: t,
1649
- contentId: o,
1650
- ...r
1648
+ apiKey: t,
1649
+ metadata: o,
1650
+ ...s
1651
1651
  }) => ({
1652
1652
  type: e,
1653
1653
  data: {
1654
- ...r,
1655
- ...await Jt({ canTrack: n }),
1656
- ownerId: t,
1657
- contentId: o
1654
+ ...s,
1655
+ metadata: JSON.stringify(o),
1656
+ ...await Gt({ canTrack: n }),
1657
+ ownerId: t
1658
1658
  }
1659
1659
  });
1660
- async function z(e) {
1661
- if (!!e.canTrack && !g() && !!(h() || U === "reactNative"))
1660
+ async function j(e) {
1661
+ if (!!e.canTrack && !g() && !!(h() || V === "reactNative"))
1662
1662
  return fetch("https://builder.io/api/v1/track", {
1663
1663
  method: "POST",
1664
1664
  body: JSON.stringify({
@@ -1672,12 +1672,12 @@ async function z(e) {
1672
1672
  console.error("Failed to track: ", n);
1673
1673
  });
1674
1674
  }
1675
- const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((e) => {
1675
+ const hn = (e) => j({ ...e, canTrack: !0 }), Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((e) => {
1676
1676
  throw console.error(
1677
1677
  "Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
1678
1678
  e
1679
1679
  ), e;
1680
- }), Qt = () => import("./render-styles.32666ea6.js").then((e) => e.default).catch((e) => {
1680
+ }), Qt = () => import("./render-styles.970e0a2e.js").then((e) => e.default).catch((e) => {
1681
1681
  throw console.error(
1682
1682
  "Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
1683
1683
  e
@@ -1727,31 +1727,36 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1727
1727
  };
1728
1728
  },
1729
1729
  mounted() {
1730
- var e;
1730
+ var e, n;
1731
1731
  if (h()) {
1732
1732
  if (g() && (this.forceReRenderCount = this.forceReRenderCount + 1, ie(), ce(), Object.values(this.allRegisteredComponents).forEach(
1733
- (n) => {
1734
- var o;
1735
- const t = Bt(n);
1736
- (o = window.parent) == null || o.postMessage(t, "*");
1733
+ (t) => {
1734
+ var s;
1735
+ const o = Bt(t);
1736
+ (s = window.parent) == null || s.postMessage(o, "*");
1737
1737
  }
1738
1738
  ), window.addEventListener("message", this.processMessage), window.addEventListener(
1739
1739
  "builder:component:stateChangeListenerActivated",
1740
1740
  this.emitStateUpdate
1741
- )), this.useContent && z({
1742
- type: "impression",
1743
- canTrack: this.canTrackToUse,
1744
- contentId: (e = this.useContent) == null ? void 0 : e.id,
1745
- orgId: this.apiKey
1746
- }), Ot()) {
1747
- const n = new URL(location.href).searchParams;
1748
- if (this.model && n.get("builder.preview") === this.model) {
1749
- const t = n.get("apiKey") || n.get("builder.space");
1750
- t && X({
1741
+ )), this.useContent) {
1742
+ const t = (e = this.useContent) == null ? void 0 : e.testVariationId, o = (n = this.useContent) == null ? void 0 : n.id;
1743
+ j({
1744
+ type: "impression",
1745
+ canTrack: this.canTrackToUse,
1746
+ contentId: o,
1747
+ apiKey: this.apiKey,
1748
+ variationId: t !== o ? t : void 0
1749
+ });
1750
+ }
1751
+ if (Ot()) {
1752
+ const t = new URL(location.href).searchParams;
1753
+ if (this.model && t.get("builder.preview") === this.model) {
1754
+ const o = t.get("apiKey") || t.get("builder.space");
1755
+ o && X({
1751
1756
  model: this.model,
1752
- apiKey: t
1753
- }).then((o) => {
1754
- o && (this.overrideContent = o);
1757
+ apiKey: o
1758
+ }).then((s) => {
1759
+ s && (this.overrideContent = s);
1755
1760
  });
1756
1761
  }
1757
1762
  }
@@ -1804,7 +1809,7 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1804
1809
  },
1805
1810
  allRegisteredComponents() {
1806
1811
  return [
1807
- ...Vt(),
1812
+ ...At(),
1808
1813
  ...Z,
1809
1814
  ...this.customComponents || []
1810
1815
  ].reduce(
@@ -1819,9 +1824,9 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1819
1824
  return {};
1820
1825
  },
1821
1826
  shouldRenderContentStyles() {
1822
- var e, n, t, o, r;
1827
+ var e, n, t, o, s;
1823
1828
  return Boolean(
1824
- (((n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.cssCode) || ((r = (o = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : o.customFonts) == null ? void 0 : r.length)) && U !== "reactNative"
1829
+ (((n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.cssCode) || ((s = (o = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : o.customFonts) == null ? void 0 : s.length)) && V !== "reactNative"
1825
1830
  );
1826
1831
  },
1827
1832
  onUpdateHook0() {
@@ -1848,8 +1853,8 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1848
1853
  if (n)
1849
1854
  switch (n.type) {
1850
1855
  case "builder.contentUpdate": {
1851
- const t = n.data, o = t.key || t.alias || t.entry || t.modelName, r = t.data;
1852
- o === this.model && (this.overrideContent = r, this.forceReRenderCount = this.forceReRenderCount + 1);
1856
+ const t = n.data, o = t.key || t.alias || t.entry || t.modelName, s = t.data;
1857
+ o === this.model && (this.overrideContent = s, this.forceReRenderCount = this.forceReRenderCount + 1);
1853
1858
  break;
1854
1859
  }
1855
1860
  }
@@ -1857,25 +1862,29 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1857
1862
  evaluateJsCode() {
1858
1863
  var n, t;
1859
1864
  const e = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.jsCode;
1860
- e && N({
1865
+ e && H({
1861
1866
  code: e,
1862
1867
  context: this.contextContext,
1863
1868
  state: this.contentState
1864
1869
  });
1865
1870
  },
1866
1871
  onClick(e) {
1867
- var n;
1868
- this.useContent && z({
1869
- type: "click",
1870
- canTrack: this.canTrackToUse,
1871
- contentId: (n = this.useContent) == null ? void 0 : n.id,
1872
- orgId: this.apiKey
1873
- });
1872
+ var n, t;
1873
+ if (this.useContent) {
1874
+ const o = (n = this.useContent) == null ? void 0 : n.testVariationId, s = (t = this.useContent) == null ? void 0 : t.id;
1875
+ j({
1876
+ type: "click",
1877
+ canTrack: this.canTrackToUse,
1878
+ contentId: s,
1879
+ apiKey: this.apiKey,
1880
+ variationId: o !== s ? o : void 0
1881
+ });
1882
+ }
1874
1883
  },
1875
1884
  evalExpression(e) {
1876
1885
  return e.replace(
1877
1886
  /{{([^}]+)}}/g,
1878
- (n, t) => N({
1887
+ (n, t) => H({
1879
1888
  code: t,
1880
1889
  context: this.contextContext,
1881
1890
  state: this.contentState
@@ -1883,7 +1892,7 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1883
1892
  );
1884
1893
  },
1885
1894
  handleRequest({ url: e, key: n }) {
1886
- K().then((t) => t(e)).then((t) => t.json()).then((t) => {
1895
+ D().then((t) => t(e)).then((t) => t.json()).then((t) => {
1887
1896
  const o = {
1888
1897
  ...this.overrideState,
1889
1898
  [n]: t
@@ -1896,12 +1905,12 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1896
1905
  runHttpRequests() {
1897
1906
  var n, t, o;
1898
1907
  const e = (o = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.httpRequests) != null ? o : {};
1899
- Object.entries(e).forEach(([r, s]) => {
1900
- if (s && (!this.httpReqsData[r] || g())) {
1901
- const a = this.evalExpression(s);
1908
+ Object.entries(e).forEach(([s, r]) => {
1909
+ if (r && (!this.httpReqsData[s] || g())) {
1910
+ const a = this.evalExpression(r);
1902
1911
  this.handleRequest({
1903
1912
  url: a,
1904
- key: r
1913
+ key: s
1905
1914
  });
1906
1915
  }
1907
1916
  });
@@ -1920,23 +1929,23 @@ const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1920
1929
  }
1921
1930
  }
1922
1931
  }, en = ["builder-content-id", "builder-model"];
1923
- function tn(e, n, t, o, r, s) {
1924
- var i, u, m, p, k, O, B;
1932
+ function tn(e, n, t, o, s, r) {
1933
+ var i, u, m, p, k, B, P;
1925
1934
  const a = v("render-content-styles"), c = v("render-blocks");
1926
- return s.useContent ? (l(), d("div", {
1935
+ return r.useContent ? (l(), d("div", {
1927
1936
  key: 0,
1928
1937
  ref: "elementRef",
1929
- onClick: n[0] || (n[0] = (re) => s.onClick(re)),
1930
- "builder-content-id": (i = s.useContent) == null ? void 0 : i.id,
1938
+ onClick: n[0] || (n[0] = (re) => r.onClick(re)),
1939
+ "builder-content-id": (i = r.useContent) == null ? void 0 : i.id,
1931
1940
  "builder-model": t.model
1932
1941
  }, [
1933
- s.shouldRenderContentStyles ? (l(), S(a, {
1942
+ r.shouldRenderContentStyles ? (l(), S(a, {
1934
1943
  key: 0,
1935
- cssCode: (m = (u = s.useContent) == null ? void 0 : u.data) == null ? void 0 : m.cssCode,
1936
- customFonts: (k = (p = s.useContent) == null ? void 0 : p.data) == null ? void 0 : k.customFonts
1944
+ cssCode: (m = (u = r.useContent) == null ? void 0 : u.data) == null ? void 0 : m.cssCode,
1945
+ customFonts: (k = (p = r.useContent) == null ? void 0 : p.data) == null ? void 0 : k.customFonts
1937
1946
  }, null, 8, ["cssCode", "customFonts"])) : b("", !0),
1938
1947
  (l(), S(c, {
1939
- blocks: e.markMutable((B = (O = s.useContent) == null ? void 0 : O.data) == null ? void 0 : B.blocks),
1948
+ blocks: e.markMutable((P = (B = r.useContent) == null ? void 0 : B.data) == null ? void 0 : P.blocks),
1940
1949
  key: e.forceReRenderCount
1941
1950
  }, null, 8, ["blocks"]))
1942
1951
  ], 8, en)) : b("", !0);
@@ -1944,12 +1953,12 @@ function tn(e, n, t, o, r, s) {
1944
1953
  const nn = /* @__PURE__ */ f(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1945
1954
  __proto__: null,
1946
1955
  default: nn
1947
- }, Symbol.toStringTag, { value: "Module" })), sn = () => import("./block-styles.4fb6c64e.js").then((e) => e.default).catch((e) => {
1956
+ }, Symbol.toStringTag, { value: "Module" })), sn = () => import("./block-styles.e92f0e4a.js").then((e) => e.default).catch((e) => {
1948
1957
  throw console.error(
1949
1958
  "Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
1950
1959
  e
1951
1960
  ), e;
1952
- }), rn = () => import("./render-block.a0b27065.js").then((e) => e.default).catch((e) => {
1961
+ }), rn = () => import("./render-block.7817291b.js").then((e) => e.default).catch((e) => {
1953
1962
  throw console.error(
1954
1963
  "Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
1955
1964
  e
@@ -2009,41 +2018,41 @@ const nn = /* @__PURE__ */ f(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.
2009
2018
  }
2010
2019
  };
2011
2020
  const cn = ["builder-path", "builder-parent-id", "dataSet"];
2012
- function ln(e, n, t, o, r, s) {
2021
+ function ln(e, n, t, o, s, r) {
2013
2022
  const a = v("render-block"), c = v("block-styles");
2014
2023
  return l(), d("div", {
2015
- class: j(s._classStringToObject(s.className + " div-2oa2wtipkzk")),
2024
+ class: U(r._classStringToObject(r.className + " div-2oa2wtipkzk")),
2016
2025
  "builder-path": t.path,
2017
2026
  "builder-parent-id": t.parent,
2018
2027
  dataSet: {
2019
- class: s.className
2028
+ class: r.className
2020
2029
  },
2021
2030
  style: _(t.styleProp),
2022
- onClick: n[0] || (n[0] = (i) => s.onClick()),
2023
- onMouseenter: n[1] || (n[1] = (i) => s.onMouseEnter())
2031
+ onClick: n[0] || (n[0] = (i) => r.onClick()),
2032
+ onMouseenter: n[1] || (n[1] = (i) => r.onMouseEnter())
2024
2033
  }, [
2025
2034
  t.blocks ? (l(!0), d(C, { key: 0 }, E(t.blocks, (i, u) => (l(), S(a, {
2026
2035
  key: "render-block-" + i.id,
2027
2036
  block: i,
2028
- context: s.builderContext
2037
+ context: r.builderContext
2029
2038
  }, null, 8, ["block", "context"]))), 128)) : b("", !0),
2030
2039
  t.blocks ? (l(!0), d(C, { key: 1 }, E(t.blocks, (i, u) => (l(), S(c, {
2031
2040
  key: "block-style-" + i.id,
2032
2041
  block: i,
2033
- context: s.builderContext
2042
+ context: r.builderContext
2034
2043
  }, null, 8, ["block", "context"]))), 128)) : b("", !0)
2035
2044
  ], 46, cn);
2036
2045
  }
2037
2046
  const dn = /* @__PURE__ */ f(an, [["render", ln], ["__scopeId", "data-v-75c39314"]]), se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2038
2047
  __proto__: null,
2039
2048
  default: dn
2040
- }, Symbol.toStringTag, { value: "Module" })), H = {};
2041
- function hn(e) {
2049
+ }, Symbol.toStringTag, { value: "Module" })), z = {};
2050
+ function fn(e) {
2042
2051
  if (h()) {
2043
- Object.assign(H, e);
2052
+ Object.assign(z, e);
2044
2053
  const n = {
2045
2054
  type: "builder.settingsChange",
2046
- data: H
2055
+ data: z
2047
2056
  };
2048
2057
  parent.postMessage(n, "*");
2049
2058
  }
@@ -2054,14 +2063,14 @@ export {
2054
2063
  it as F,
2055
2064
  ke as I,
2056
2065
  Xe as S,
2057
- U as T,
2066
+ V as T,
2058
2067
  Ee as V,
2059
2068
  f as _,
2060
2069
  Se as a,
2061
2070
  st as b,
2062
2071
  dn as c,
2063
2072
  Ot as d,
2064
- N as e,
2073
+ H as e,
2065
2074
  Q as f,
2066
2075
  Z as g,
2067
2076
  pn as h,
@@ -2070,12 +2079,13 @@ export {
2070
2079
  ae as k,
2071
2080
  X as l,
2072
2081
  mn as m,
2073
- qe as n,
2074
- De as o,
2082
+ Ke as n,
2083
+ qe as o,
2075
2084
  Fe as p,
2076
2085
  je as q,
2077
2086
  nn as r,
2078
- hn as s,
2079
- Ue as t,
2080
- D as u
2087
+ fn as s,
2088
+ hn as t,
2089
+ Ue as u,
2090
+ q as v
2081
2091
  };