@builder.io/sdk-vue 0.0.2-1 → 0.0.2-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/{block-styles.d7caff48.cjs → block-styles.7900ea80.cjs} +2 -2
  3. package/packages/_vue2/dist/{block-styles.4b780e2e.js → block-styles.dd3d70e3.js} +3 -3
  4. package/packages/{_vue3/dist/get-processed-block.15d39b53.cjs → _vue2/dist/get-processed-block.14848083.cjs} +1 -1
  5. package/packages/{_vue3/dist/get-processed-block.bebdc794.js → _vue2/dist/get-processed-block.eda4b627.js} +1 -1
  6. package/packages/_vue2/dist/{index.e881a81c.cjs → index.9247eff2.cjs} +2 -2
  7. package/packages/_vue2/dist/{index.35b10c2f.js → index.e1356b24.js} +67 -67
  8. package/packages/_vue2/dist/{render-block.3112f40b.js → render-block.a2f51c18.js} +5 -5
  9. package/packages/_vue2/dist/{render-block.37a4bbe9.cjs → render-block.e4f18476.cjs} +2 -2
  10. package/packages/_vue2/dist/{render-component.7c5a2af0.js → render-component.76541f08.js} +3 -3
  11. package/packages/_vue2/dist/{render-component.3c148966.cjs → render-component.fc56f8dc.cjs} +1 -1
  12. package/packages/_vue2/dist/{render-inlined-styles.c3478295.cjs → render-inlined-styles.0a71b4a1.cjs} +1 -1
  13. package/packages/_vue2/dist/{render-inlined-styles.f67a4c7d.js → render-inlined-styles.fb54d112.js} +1 -1
  14. package/packages/_vue2/dist/{render-repeated-block.ea4adce6.cjs → render-repeated-block.0990371f.cjs} +1 -1
  15. package/packages/_vue2/dist/{render-repeated-block.006af118.js → render-repeated-block.caf201fb.js} +2 -2
  16. package/packages/_vue2/dist/{render-styles.e6d20f13.cjs → render-styles.76adf086.cjs} +1 -1
  17. package/packages/_vue2/dist/{render-styles.90704267.js → render-styles.79b15aed.js} +2 -2
  18. package/packages/_vue2/dist/sdk.cjs +1 -1
  19. package/packages/_vue2/dist/sdk.js +1 -1
  20. package/packages/_vue2/dist/style.css +1 -1
  21. package/packages/_vue3/dist/{block-styles.13caf8d7.js → block-styles.1f1fb83d.js} +5 -4
  22. package/packages/_vue3/dist/{block-styles.8cb7f734.cjs → block-styles.eb8f30fe.cjs} +3 -3
  23. package/packages/{_vue2/dist/get-processed-block.a69f90d1.cjs → _vue3/dist/get-processed-block.b7ff491d.cjs} +1 -1
  24. package/packages/{_vue2/dist/get-processed-block.1b0392ce.js → _vue3/dist/get-processed-block.c491559e.js} +1 -1
  25. package/packages/_vue3/dist/index.36507004.cjs +4 -0
  26. package/packages/_vue3/dist/{index.fa54ce28.js → index.eb0e01ba.js} +152 -139
  27. package/packages/_vue3/dist/{render-block.9c550b26.js → render-block.3cdd0c66.js} +31 -30
  28. package/packages/_vue3/dist/{render-block.23c16bfb.cjs → render-block.98541a38.cjs} +2 -2
  29. package/packages/_vue3/dist/render-component.442d659d.cjs +1 -0
  30. package/packages/_vue3/dist/{render-component.9668419b.js → render-component.963a01c2.js} +12 -11
  31. package/packages/_vue3/dist/{render-inlined-styles.08569ffb.js → render-inlined-styles.1c41d49e.js} +8 -7
  32. package/packages/_vue3/dist/render-inlined-styles.662df301.cjs +1 -0
  33. package/packages/_vue3/dist/render-repeated-block.2212c878.cjs +1 -0
  34. package/packages/_vue3/dist/{render-repeated-block.73309b84.js → render-repeated-block.760bb69a.js} +6 -5
  35. package/packages/_vue3/dist/{render-styles.63eb2def.js → render-styles.750ea842.js} +14 -13
  36. package/packages/_vue3/dist/{render-styles.22ddc0bf.cjs → render-styles.c0cc9565.cjs} +2 -2
  37. package/packages/_vue3/dist/sdk.cjs +1 -1
  38. package/packages/_vue3/dist/sdk.js +1 -1
  39. package/packages/_vue3/dist/style.css +1 -1
  40. package/packages/_vue3/dist/index.f58628dd.cjs +0 -4
  41. package/packages/_vue3/dist/render-component.c2e224cc.cjs +0 -1
  42. package/packages/_vue3/dist/render-inlined-styles.32f5f3bc.cjs +0 -1
  43. package/packages/_vue3/dist/render-repeated-block.8c10514d.cjs +0 -1
@@ -1,12 +1,12 @@
1
- import { defineAsyncComponent as y, resolveComponent as v, openBlock as l, createElementBlock as d, normalizeStyle as k, Fragment as R, renderList as E, createVNode as q, createElementVNode as I, createCommentVNode as b, normalizeClass as j, renderSlot as C, mergeProps as x, toDisplayString as P, createBlock as w } from "vue";
2
- const U = "reactNative";
1
+ import { defineAsyncComponent as y, resolveComponent as v, openBlock as l, createElementBlock as d, normalizeStyle as C, Fragment as R, renderList as E, createVNode as z, createElementVNode as I, createCommentVNode as b, normalizeClass as O, renderSlot as k, mergeProps as x, toDisplayString as $, createBlock as w } from "vue";
2
+ const j = "reactNative";
3
3
  function h() {
4
4
  return typeof window < "u" && typeof document < "u";
5
5
  }
6
- const W = {};
6
+ const P = {};
7
7
  function ae(e, n) {
8
- let t = W[e];
9
- if (t || (t = W[e] = []), t.push(n), h()) {
8
+ let t = P[e];
9
+ if (t || (t = P[e] = []), t.push(n), h()) {
10
10
  const o = {
11
11
  type: "builder.register",
12
12
  data: {
@@ -38,7 +38,7 @@ const ie = () => {
38
38
  {
39
39
  type: "builder.sdkInfo",
40
40
  data: {
41
- target: U,
41
+ target: j,
42
42
  supportsPatchUpdates: !1
43
43
  }
44
44
  },
@@ -82,7 +82,7 @@ const ie = () => {
82
82
  }
83
83
  }));
84
84
  };
85
- function V(e) {
85
+ function U(e) {
86
86
  return e;
87
87
  }
88
88
  function pn(e) {
@@ -103,7 +103,7 @@ const le = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
103
103
  "reverseColumnsWhenStacked",
104
104
  "builderBlock"
105
105
  ],
106
- data: () => ({ markMutable: V }),
106
+ data: () => ({ markMutable: U }),
107
107
  computed: {
108
108
  columnsCssVars() {
109
109
  const e = this.stackColumnsAt === "never" ? "inherit" : this.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -141,7 +141,8 @@ const le = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
141
141
  maybeApplyForTablet(e) {
142
142
  return (this.stackColumnsAt || "tablet") === "tablet" ? e : "inherit";
143
143
  }
144
- }
144
+ },
145
+ compatConfig: { MODE: 3 }
145
146
  };
146
147
  const f = (e, n) => {
147
148
  const t = e.__vccOpts || e;
@@ -152,19 +153,19 @@ const f = (e, n) => {
152
153
  function ue(e, n, t, o, r, s) {
153
154
  const a = v("render-blocks");
154
155
  return l(), d("div", {
155
- class: "builder-columns div-7fq9d0i380",
156
- style: k(s.columnsCssVars)
156
+ class: "builder-columns div-2btisl9m7v3",
157
+ style: C(s.columnsCssVars)
157
158
  }, [
158
159
  (l(!0), d(R, null, E(t.columns, (c, i) => (l(), d("div", {
159
160
  key: i,
160
- class: "builder-column div-7fq9d0i380-2",
161
- style: k({
161
+ class: "builder-column div-2btisl9m7v3-2",
162
+ style: C({
162
163
  width: s.getColumnCssWidth(i),
163
164
  marginLeft: `${i === 0 ? 0 : s.getGutterSize()}px`,
164
165
  ...s.columnCssVars
165
166
  })
166
167
  }, [
167
- q(a, {
168
+ z(a, {
168
169
  blocks: e.markMutable(c.blocks),
169
170
  path: `component.options.columns.${i}.blocks`,
170
171
  parent: t.builderBlock.id
@@ -172,8 +173,8 @@ function ue(e, n, t, o, r, s) {
172
173
  ], 4))), 128))
173
174
  ], 4);
174
175
  }
175
- const me = /* @__PURE__ */ f(de, [["render", ue], ["__scopeId", "data-v-6b734aa0"]]);
176
- function B(e) {
176
+ const me = /* @__PURE__ */ f(de, [["render", ue], ["__scopeId", "data-v-ce668c7d"]]);
177
+ function W(e) {
177
178
  return e.replace(/http(s)?:/, "");
178
179
  }
179
180
  function pe(e = "", n, t) {
@@ -184,13 +185,13 @@ function he(e, n) {
184
185
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !n)
185
186
  return e;
186
187
  if (n === "master")
187
- return B(e);
188
+ return W(e);
188
189
  const t = e.match(
189
190
  /(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i
190
191
  );
191
192
  if (t) {
192
193
  const o = e.split(t[0]), r = t[3], s = n.match("x") ? n : `${n}x`;
193
- return B(`${o[0]}_${s}${r}`);
194
+ return W(`${o[0]}_${s}${r}`);
194
195
  }
195
196
  return null;
196
197
  }
@@ -248,11 +249,12 @@ const fe = {
248
249
  n[o] = !0;
249
250
  return n;
250
251
  }
251
- }
252
+ },
253
+ compatConfig: { MODE: 3 }
252
254
  };
253
- const ge = { class: "div-2btisl9m7v3" }, be = ["srcset"], ye = ["alt", "role", "src", "srcset", "sizes"], ve = ["srcset"], xe = {
255
+ const ge = { class: "div-1fogms4bee0" }, be = ["srcset"], ye = ["alt", "role", "src", "srcset", "sizes"], ve = ["srcset"], xe = {
254
256
  key: 2,
255
- class: "div-2btisl9m7v3-3"
257
+ class: "div-1fogms4bee0-3"
256
258
  };
257
259
  function _e(e, n, t, o, r, s) {
258
260
  var a, c, i, u;
@@ -267,13 +269,13 @@ function _e(e, n, t, o, r, s) {
267
269
  loading: "lazy",
268
270
  alt: t.altText,
269
271
  role: t.altText ? "presentation" : void 0,
270
- style: k({
272
+ style: C({
271
273
  objectPosition: t.backgroundSize || "center",
272
274
  objectFit: t.backgroundSize || "cover"
273
275
  }),
274
- class: j(
276
+ class: O(
275
277
  s._classStringToObject(
276
- "builder-image" + (t.className ? " " + t.className : "") + " img-2btisl9m7v3"
278
+ "builder-image" + (t.className ? " " + t.className : "") + " img-1fogms4bee0"
277
279
  )
278
280
  ),
279
281
  src: t.image,
@@ -284,20 +286,21 @@ function _e(e, n, t, o, r, s) {
284
286
  ]),
285
287
  t.aspectRatio && !(t.fitContent && ((c = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : c.length)) ? (l(), d("div", {
286
288
  key: 0,
287
- class: "builder-image-sizer div-2btisl9m7v3-2",
288
- style: k({
289
+ class: "builder-image-sizer div-1fogms4bee0-2",
290
+ style: C({
289
291
  paddingTop: t.aspectRatio * 100 + "%"
290
292
  })
291
293
  }, null, 4)) : b("", !0),
292
- ((u = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : u.length) && t.fitContent ? C(e.$slots, "default", { key: 1 }, void 0, !0) : b("", !0),
294
+ ((u = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : u.length) && t.fitContent ? k(e.$slots, "default", { key: 1 }, void 0, !0) : b("", !0),
293
295
  t.fitContent ? b("", !0) : (l(), d("div", xe, [
294
- C(e.$slots, "default", {}, void 0, !0)
296
+ k(e.$slots, "default", {}, void 0, !0)
295
297
  ]))
296
298
  ]);
297
299
  }
298
- const ke = /* @__PURE__ */ f(fe, [["render", _e], ["__scopeId", "data-v-865f9b2c"]]), Ce = {
300
+ const Ce = /* @__PURE__ */ f(fe, [["render", _e], ["__scopeId", "data-v-83d4ef2e"]]), ke = {
299
301
  name: "builder-text",
300
- props: ["text"]
302
+ props: ["text"],
303
+ compatConfig: { MODE: 3 }
301
304
  }, we = ["innerHTML"];
302
305
  function Se(e, n, t, o, r, s) {
303
306
  return l(), d("span", {
@@ -305,7 +308,7 @@ function Se(e, n, t, o, r, s) {
305
308
  innerHTML: t.text
306
309
  }, null, 8, we);
307
310
  }
308
- const Ie = /* @__PURE__ */ f(Ce, [["render", Se]]), Te = {
311
+ const Ie = /* @__PURE__ */ f(ke, [["render", Se]]), Te = {
309
312
  name: "builder-video",
310
313
  props: [
311
314
  "autoPlay",
@@ -339,7 +342,8 @@ const Ie = /* @__PURE__ */ f(Ce, [["render", Se]]), Te = {
339
342
  } : {}
340
343
  };
341
344
  }
342
- }
345
+ },
346
+ compatConfig: { MODE: 3 }
343
347
  }, Re = ["src", "poster"];
344
348
  function Ee(e, n, t, o, r, s) {
345
349
  var a;
@@ -367,39 +371,39 @@ function F(e, n = null, t = ".") {
367
371
  ].every(Boolean) ? { ...o, ...F(s, a, t) } : { ...o, [a]: s };
368
372
  }, {});
369
373
  }
370
- const L = "builder.", je = (e) => {
374
+ const B = "builder.", Oe = (e) => {
371
375
  const n = {};
372
376
  return e.forEach((t, o) => {
373
377
  n[o] = t;
374
378
  }), n;
375
- }, Ue = (e) => {
379
+ }, je = (e) => {
376
380
  if (!e)
377
381
  return {};
378
- const n = D(e), t = {};
382
+ const n = q(e), t = {};
379
383
  return Object.keys(n).forEach((o) => {
380
- if (o.startsWith(L)) {
381
- const r = o.replace(L, "");
384
+ if (o.startsWith(B)) {
385
+ const r = o.replace(B, "");
382
386
  t[r] = n[o];
383
387
  }
384
388
  }), t;
385
- }, Ve = () => {
389
+ }, Ue = () => {
386
390
  if (!h())
387
391
  return {};
388
392
  const e = new URLSearchParams(window.location.search);
389
- return Ue(e);
390
- }, D = (e) => e instanceof URLSearchParams ? je(e) : e;
391
- function Ae() {
393
+ return je(e);
394
+ }, q = (e) => e instanceof URLSearchParams ? Oe(e) : e;
395
+ function Me() {
392
396
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
393
397
  }
394
398
  async function K() {
395
- const e = Ae().fetch;
399
+ const e = Me().fetch;
396
400
  if (typeof e > "u" && typeof global < "u") {
397
401
  const n = import("node-fetch").then((t) => t.default);
398
402
  return n.default || n;
399
403
  }
400
404
  return e.default || e;
401
405
  }
402
- const $e = (e) => {
406
+ const Ve = (e) => {
403
407
  const n = e.split(".");
404
408
  return n.length > 2 ? n.slice(1).join(".") : e;
405
409
  }, J = async ({
@@ -412,22 +416,22 @@ const $e = (e) => {
412
416
  } catch (o) {
413
417
  console.debug("[COOKIE] GET error: ", o);
414
418
  }
415
- }, Oe = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).join("; "), Pe = [
419
+ }, Ae = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).join("; "), $e = [
416
420
  ["secure", ""],
417
421
  ["SameSite", "None"]
418
- ], We = ({
422
+ ], Pe = ({
419
423
  name: e,
420
424
  value: n,
421
425
  expires: t
422
426
  }) => {
423
- const r = (h() ? location.protocol === "https:" : !0) ? Pe : [[]], s = t ? [["expires", t.toUTCString()]] : [[]], a = [
427
+ const r = (h() ? location.protocol === "https:" : !0) ? $e : [[]], s = t ? [["expires", t.toUTCString()]] : [[]], a = [
424
428
  [e, n],
425
429
  ...s,
426
430
  ["path", "/"],
427
- ["domain", $e(window.location.hostname)],
431
+ ["domain", Ve(window.location.hostname)],
428
432
  ...r
429
433
  ];
430
- return Oe(a);
434
+ return Ae(a);
431
435
  }, G = async ({
432
436
  name: e,
433
437
  value: n,
@@ -437,19 +441,19 @@ const $e = (e) => {
437
441
  try {
438
442
  if (!o)
439
443
  return;
440
- const r = We({ name: e, value: n, expires: t });
444
+ const r = Pe({ name: e, value: n, expires: t });
441
445
  document.cookie = r;
442
446
  } catch (r) {
443
447
  console.warn("[COOKIE] SET error: ", r);
444
448
  }
445
- }, Be = "builderio.variations", Y = (e) => `${Be}.${e}`, Le = ({
449
+ }, We = "builderio.variations", Y = (e) => `${We}.${e}`, Be = ({
446
450
  contentId: e,
447
451
  canTrack: n
448
- }) => J({ name: Y(e), canTrack: n }), Me = ({
452
+ }) => J({ name: Y(e), canTrack: n }), Le = ({
449
453
  contentId: e,
450
454
  canTrack: n,
451
455
  value: t
452
- }) => G({ name: Y(e), value: t, canTrack: n }), S = (e) => e != null, Ne = (e) => S(e.id) && S(e.variations) && Object.keys(e.variations).length > 0, He = ({
456
+ }) => G({ name: Y(e), value: t, canTrack: n }), S = (e) => e != null, Ne = (e) => S(e.id) && S(e.variations) && Object.keys(e.variations).length > 0, De = ({
453
457
  id: e,
454
458
  variations: n
455
459
  }) => {
@@ -460,7 +464,7 @@ const $e = (e) => {
460
464
  if (t += (r = n[s]) == null ? void 0 : r.testRatio, o < t)
461
465
  return s;
462
466
  return e;
463
- }, M = ({
467
+ }, L = ({
464
468
  item: e,
465
469
  testGroupId: n
466
470
  }) => {
@@ -473,42 +477,42 @@ const $e = (e) => {
473
477
  testVariationId: t.id,
474
478
  testVariationName: t.name || (t.id === e.id ? "Default" : "")
475
479
  };
476
- }, ze = async ({
480
+ }, He = async ({
477
481
  item: e,
478
482
  canTrack: n
479
483
  }) => {
480
- const t = await Le({
484
+ const t = await Be({
481
485
  canTrack: n,
482
486
  contentId: e.id
483
- }), o = t ? M({ item: e, testGroupId: t }) : void 0;
487
+ }), o = t ? L({ item: e, testGroupId: t }) : void 0;
484
488
  if (o)
485
489
  return o;
486
490
  {
487
- const r = He({
491
+ const r = De({
488
492
  variations: e.variations,
489
493
  id: e.id
490
494
  });
491
- return Me({
495
+ return Le({
492
496
  contentId: e.id,
493
497
  value: r,
494
498
  canTrack: n
495
499
  }).catch((s) => {
496
500
  console.error("could not store A/B test variation: ", s);
497
- }), M({ item: e, testGroupId: r });
501
+ }), L({ item: e, testGroupId: r });
498
502
  }
499
- }, qe = async ({
503
+ }, ze = async ({
500
504
  item: e,
501
505
  canTrack: n
502
506
  }) => {
503
507
  if (!Ne(e))
504
508
  return;
505
- const t = await ze({ item: e, canTrack: n });
509
+ const t = await He({ item: e, canTrack: n });
506
510
  Object.assign(e, t);
507
511
  };
508
512
  async function X(e) {
509
513
  return (await Ke({ ...e, limit: 1 })).results[0] || null;
510
514
  }
511
- const De = (e) => {
515
+ const qe = (e) => {
512
516
  const {
513
517
  limit: n = 30,
514
518
  userAttributes: t,
@@ -519,8 +523,8 @@ const De = (e) => {
519
523
  } = e, c = new URL(
520
524
  `https://cdn.builder.io/api/v2/content/${s}?apiKey=${a}&limit=${n}&noTraverse=${r}`
521
525
  ), i = {
522
- ...Ve(),
523
- ...D(e.options || {})
526
+ ...Ue(),
527
+ ...q(e.options || {})
524
528
  }, u = F(i);
525
529
  for (const m in u)
526
530
  c.searchParams.set(m, String(u[m]));
@@ -532,12 +536,12 @@ const De = (e) => {
532
536
  return c;
533
537
  };
534
538
  async function Ke(e) {
535
- const n = De(e), o = await (await K())(n.href).then(
539
+ const n = qe(e), o = await (await K())(n.href).then(
536
540
  (s) => s.json()
537
541
  ), r = e.canTrack !== !1;
538
542
  if (r)
539
543
  for (const s of o.results)
540
- await qe({ item: s, canTrack: r });
544
+ await ze({ item: s, canTrack: r });
541
545
  return o;
542
546
  }
543
547
  const Je = () => Promise.resolve().then(() => sn).then((e) => e.default).catch((e) => {
@@ -549,7 +553,7 @@ const Je = () => Promise.resolve().then(() => sn).then((e) => e.default).catch((
549
553
  name: "builder-symbol",
550
554
  components: { "render-content": y(Je) },
551
555
  props: ["symbol", "attributes"],
552
- data: () => ({ className: "builder-symbol", content: null, markMutable: V }),
556
+ data: () => ({ className: "builder-symbol", content: null, markMutable: U }),
553
557
  inject: {
554
558
  builderContext: "BuilderContext"
555
559
  },
@@ -589,7 +593,8 @@ const Je = () => Promise.resolve().then(() => sn).then((e) => e.default).catch((
589
593
  n[o] = !0;
590
594
  return n;
591
595
  }
592
- }
596
+ },
597
+ compatConfig: { MODE: 3 }
593
598
  }, Ye = ["dataSet"];
594
599
  function Xe(e, n, t, o, r, s) {
595
600
  var c, i, u, m, p;
@@ -600,7 +605,7 @@ function Xe(e, n, t, o, r, s) {
600
605
  },
601
606
  class: s._classStringToObject(e.className)
602
607
  }), [
603
- q(a, {
608
+ z(a, {
604
609
  apiKey: s.builderContext.apiKey,
605
610
  context: s.builderContext.context,
606
611
  customComponents: e.markMutable(Object.values(s.builderContext.registeredComponents)),
@@ -616,7 +621,8 @@ function Xe(e, n, t, o, r, s) {
616
621
  }
617
622
  const Qe = /* @__PURE__ */ f(Ge, [["render", Xe]]), Ze = {
618
623
  name: "builder-button",
619
- props: ["attributes", "text", "link", "openLinkInNewTab"]
624
+ props: ["attributes", "text", "link", "openLinkInNewTab"],
625
+ compatConfig: { MODE: 3 }
620
626
  };
621
627
  const et = ["href", "target"];
622
628
  function tt(e, n, t, o, r, s) {
@@ -624,11 +630,12 @@ function tt(e, n, t, o, r, s) {
624
630
  role: "button",
625
631
  href: t.link,
626
632
  target: t.openLinkInNewTab ? "_blank" : void 0
627
- }), P(t.text), 17, et)) : (l(), d("button", x({ key: 1 }, t.attributes, { class: "button-2oa2wtipkzk" }), P(t.text), 17));
633
+ }), $(t.text), 17, et)) : (l(), d("button", x({ key: 1 }, t.attributes, { class: "button-1eih9th5ow6" }), $(t.text), 17));
628
634
  }
629
- const nt = /* @__PURE__ */ f(Ze, [["render", tt], ["__scopeId", "data-v-3cb049f3"]]), ot = {
635
+ const nt = /* @__PURE__ */ f(Ze, [["render", tt], ["__scopeId", "data-v-64b92e6e"]]), ot = {
630
636
  name: "builder-section-component",
631
- props: ["attributes", "maxWidth"]
637
+ props: ["attributes", "maxWidth"],
638
+ compatConfig: { MODE: 3 }
632
639
  };
633
640
  function st(e, n, t, o, r, s) {
634
641
  return l(), d("section", x(t.attributes, {
@@ -636,16 +643,17 @@ function st(e, n, t, o, r, s) {
636
643
  maxWidth: t.maxWidth
637
644
  } : void 0
638
645
  }), [
639
- C(e.$slots, "default")
646
+ k(e.$slots, "default")
640
647
  ], 16);
641
648
  }
642
649
  const rt = /* @__PURE__ */ f(ot, [["render", st]]), at = {
643
650
  name: "builder-fragment-component",
644
- props: []
651
+ props: [],
652
+ compatConfig: { MODE: 3 }
645
653
  };
646
654
  function it(e, n, t, o, r, s) {
647
655
  return l(), d("span", null, [
648
- C(e.$slots, "default")
656
+ k(e.$slots, "default")
649
657
  ]);
650
658
  }
651
659
  const ct = /* @__PURE__ */ f(at, [["render", it]]), lt = {
@@ -686,7 +694,7 @@ const ct = /* @__PURE__ */ f(at, [["render", it]]), lt = {
686
694
  static: !0,
687
695
  noWrap: !0
688
696
  };
689
- function A(e) {
697
+ function M(e) {
690
698
  return e.__qwik_serializable__ = !0, e;
691
699
  }
692
700
  const dt = {
@@ -877,7 +885,7 @@ const dt = {
877
885
  ]
878
886
  }
879
887
  ],
880
- onChange: A((e) => {
888
+ onChange: M((e) => {
881
889
  function n() {
882
890
  t.forEach((o) => {
883
891
  o.delete("width");
@@ -941,7 +949,7 @@ const dt = {
941
949
  allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
942
950
  required: !0,
943
951
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
944
- onChange: A((e) => {
952
+ onChange: M((e) => {
945
953
  e.delete("srcset"), e.delete("noWebp");
946
954
  function t(a, c = 6e4) {
947
955
  return new Promise((i, u) => {
@@ -1264,7 +1272,7 @@ const dt = {
1264
1272
  required: !0,
1265
1273
  defaultValue: "",
1266
1274
  helperText: "e.g. enter a youtube url, google map, etc",
1267
- onChange: A((e) => {
1275
+ onChange: M((e) => {
1268
1276
  const n = e.get("url");
1269
1277
  if (n)
1270
1278
  return e.set("content", "Loading..."), fetch(
@@ -1327,16 +1335,17 @@ const dt = {
1327
1335
  }
1328
1336
  }
1329
1337
  }
1330
- }
1338
+ },
1339
+ compatConfig: { MODE: 3 }
1331
1340
  }, _t = ["innerHTML"];
1332
- function kt(e, n, t, o, r, s) {
1341
+ function Ct(e, n, t, o, r, s) {
1333
1342
  return l(), d("div", {
1334
1343
  class: "builder-embed",
1335
1344
  ref: "elem",
1336
1345
  innerHTML: t.content
1337
1346
  }, null, 8, _t);
1338
1347
  }
1339
- const Ct = /* @__PURE__ */ f(xt, [["render", kt]]);
1348
+ const kt = /* @__PURE__ */ f(xt, [["render", Ct]]);
1340
1349
  function wt() {
1341
1350
  return h() && window.self !== window.top;
1342
1351
  }
@@ -1353,7 +1362,8 @@ const St = {
1353
1362
  "image",
1354
1363
  "attributes"
1355
1364
  ],
1356
- data: () => ({ isEditing: g })
1365
+ data: () => ({ isEditing: g }),
1366
+ compatConfig: { MODE: 3 }
1357
1367
  }, It = ["alt", "src"];
1358
1368
  function Tt(e, n, t, o, r, s) {
1359
1369
  return l(), d("img", x(t.attributes, {
@@ -1426,20 +1436,21 @@ const Rt = /* @__PURE__ */ f(St, [["render", Tt]]), Et = {
1426
1436
  n[o] = !0;
1427
1437
  return n;
1428
1438
  }
1429
- }
1430
- }, jt = ["innerHTML"];
1431
- function Ut(e, n, t, o, r, s) {
1439
+ },
1440
+ compatConfig: { MODE: 3 }
1441
+ }, Ot = ["innerHTML"];
1442
+ function jt(e, n, t, o, r, s) {
1432
1443
  return l(), d("div", {
1433
1444
  ref: "elem",
1434
- class: j(
1445
+ class: O(
1435
1446
  s._classStringToObject(
1436
1447
  "builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
1437
1448
  )
1438
1449
  ),
1439
1450
  innerHTML: t.code
1440
- }, null, 10, jt);
1451
+ }, null, 10, Ot);
1441
1452
  }
1442
- const Vt = /* @__PURE__ */ f(Ft, [["render", Ut]]), At = {
1453
+ const Ut = /* @__PURE__ */ f(Ft, [["render", jt]]), Mt = {
1443
1454
  name: "Custom Code",
1444
1455
  static: !0,
1445
1456
  builtIn: !0,
@@ -1466,9 +1477,9 @@ const Vt = /* @__PURE__ */ f(Ft, [["render", Ut]]), At = {
1466
1477
  advanced: !0
1467
1478
  }
1468
1479
  ]
1469
- }, $t = () => [
1480
+ }, Vt = () => [
1470
1481
  { component: me, ...dt },
1471
- { component: ke, ...mt },
1482
+ { component: Ce, ...mt },
1472
1483
  { component: Rt, ...Et },
1473
1484
  { component: Ie, ...ft },
1474
1485
  { component: Fe, ...gt },
@@ -1476,8 +1487,8 @@ const Vt = /* @__PURE__ */ f(Ft, [["render", Ut]]), At = {
1476
1487
  { component: nt, ...lt },
1477
1488
  { component: rt, ...pt },
1478
1489
  { component: ct, ...ut },
1479
- { component: Ct, ...bt },
1480
- { component: Vt, ...At }
1490
+ { component: kt, ...bt },
1491
+ { component: Ut, ...Mt }
1481
1492
  ];
1482
1493
  function N({
1483
1494
  code: e,
@@ -1515,7 +1526,7 @@ function N({
1515
1526
  );
1516
1527
  }
1517
1528
  }
1518
- function Ot() {
1529
+ function At() {
1519
1530
  return !h() || g() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1520
1531
  }
1521
1532
  const Q = [];
@@ -1524,16 +1535,16 @@ function hn(e, n) {
1524
1535
  "registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
1525
1536
  ), e;
1526
1537
  }
1527
- const Pt = ({
1538
+ const $t = ({
1528
1539
  component: e,
1529
1540
  ...n
1530
1541
  }) => ({
1531
1542
  type: "builder.registerComponent",
1532
- data: Lt(n)
1533
- }), Z = (e) => JSON.parse(JSON.stringify(e)), Wt = (e) => typeof e == "function" ? Bt(e) : Z(e), Bt = (e) => {
1543
+ data: Bt(n)
1544
+ }), Z = (e) => JSON.parse(JSON.stringify(e)), Pt = (e) => typeof e == "function" ? Wt(e) : Z(e), Wt = (e) => {
1534
1545
  const n = e.toString().trim();
1535
1546
  return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
1536
- }, Lt = ({
1547
+ }, Bt = ({
1537
1548
  inputs: e,
1538
1549
  ...n
1539
1550
  }) => ({
@@ -1542,20 +1553,20 @@ const Pt = ({
1542
1553
  (t) => Object.entries(t).reduce(
1543
1554
  (o, [r, s]) => ({
1544
1555
  ...o,
1545
- [r]: Wt(s)
1556
+ [r]: Pt(s)
1546
1557
  }),
1547
1558
  {}
1548
1559
  )
1549
1560
  )
1550
1561
  });
1551
- function Mt() {
1562
+ function Lt() {
1552
1563
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
1553
1564
  const n = Math.random() * 16 | 0;
1554
1565
  return (e == "x" ? n : n & 3 | 8).toString(16);
1555
1566
  });
1556
1567
  }
1557
1568
  function ee() {
1558
- return Mt().replace(/-/g, "");
1569
+ return Lt().replace(/-/g, "");
1559
1570
  }
1560
1571
  const te = "builderSessionId", Nt = async ({ canTrack: e }) => {
1561
1572
  if (!e)
@@ -1567,13 +1578,13 @@ const te = "builderSessionId", Nt = async ({ canTrack: e }) => {
1567
1578
  if (S(n))
1568
1579
  return n;
1569
1580
  {
1570
- const t = Ht();
1571
- zt({ id: t, canTrack: e });
1581
+ const t = Dt();
1582
+ Ht({ id: t, canTrack: e });
1572
1583
  }
1573
- }, Ht = () => ee(), zt = ({
1584
+ }, Dt = () => ee(), Ht = ({
1574
1585
  id: e,
1575
1586
  canTrack: n
1576
- }) => G({ name: te, value: e, canTrack: n }), ne = () => h() && typeof localStorage < "u" ? localStorage : void 0, qt = ({
1587
+ }) => G({ name: te, value: e, canTrack: n }), ne = () => h() && typeof localStorage < "u" ? localStorage : void 0, zt = ({
1577
1588
  key: e,
1578
1589
  canTrack: n
1579
1590
  }) => {
@@ -1583,7 +1594,7 @@ const te = "builderSessionId", Nt = async ({ canTrack: e }) => {
1583
1594
  } catch (o) {
1584
1595
  console.debug("[LocalStorage] GET error: ", o);
1585
1596
  }
1586
- }, Dt = ({
1597
+ }, qt = ({
1587
1598
  key: e,
1588
1599
  canTrack: n,
1589
1600
  value: t
@@ -1597,7 +1608,7 @@ const te = "builderSessionId", Nt = async ({ canTrack: e }) => {
1597
1608
  }, oe = "builderVisitorId", Kt = ({ canTrack: e }) => {
1598
1609
  if (!e)
1599
1610
  return;
1600
- const n = qt({
1611
+ const n = zt({
1601
1612
  key: oe,
1602
1613
  canTrack: e
1603
1614
  });
@@ -1610,7 +1621,7 @@ const te = "builderSessionId", Nt = async ({ canTrack: e }) => {
1610
1621
  }, Jt = () => ee(), Gt = ({
1611
1622
  id: e,
1612
1623
  canTrack: n
1613
- }) => Dt({
1624
+ }) => qt({
1614
1625
  key: oe,
1615
1626
  value: e,
1616
1627
  canTrack: n
@@ -1639,8 +1650,8 @@ const te = "builderSessionId", Nt = async ({ canTrack: e }) => {
1639
1650
  contentId: o
1640
1651
  }
1641
1652
  });
1642
- async function H(e) {
1643
- if (!!e.canTrack && !g() && !!(h() || U === "reactNative"))
1653
+ async function D(e) {
1654
+ if (!!e.canTrack && !g() && !!(h() || j === "reactNative"))
1644
1655
  return fetch("https://builder.io/api/v1/track", {
1645
1656
  method: "POST",
1646
1657
  body: JSON.stringify({
@@ -1659,7 +1670,7 @@ const Qt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1659
1670
  "Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
1660
1671
  e
1661
1672
  ), e;
1662
- }), Zt = () => import("./render-styles.63eb2def.js").then((e) => e.default).catch((e) => {
1673
+ }), Zt = () => import("./render-styles.750ea842.js").then((e) => e.default).catch((e) => {
1663
1674
  throw console.error(
1664
1675
  "Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
1665
1676
  e
@@ -1684,7 +1695,7 @@ const Qt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1684
1695
  overrideContent: null,
1685
1696
  update: 0,
1686
1697
  overrideState: {},
1687
- markMutable: V
1698
+ markMutable: U
1688
1699
  }),
1689
1700
  provide() {
1690
1701
  const e = this;
@@ -1714,18 +1725,18 @@ const Qt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1714
1725
  if (g() && (this.forceReRenderCount = this.forceReRenderCount + 1, ie(), ce(), Object.values(this.allRegisteredComponents).forEach(
1715
1726
  (n) => {
1716
1727
  var o;
1717
- const t = Pt(n);
1728
+ const t = $t(n);
1718
1729
  (o = window.parent) == null || o.postMessage(t, "*");
1719
1730
  }
1720
1731
  ), window.addEventListener("message", this.processMessage), window.addEventListener(
1721
1732
  "builder:component:stateChangeListenerActivated",
1722
1733
  this.emitStateUpdate
1723
- )), this.useContent && H({
1734
+ )), this.useContent && D({
1724
1735
  type: "impression",
1725
1736
  canTrack: this.canTrackToUse,
1726
1737
  contentId: (e = this.useContent) == null ? void 0 : e.id,
1727
1738
  orgId: this.apiKey
1728
- }), Ot()) {
1739
+ }), At()) {
1729
1740
  const n = new URL(location.href).searchParams;
1730
1741
  if (this.model && n.get("builder.preview") === this.model) {
1731
1742
  const t = n.get("apiKey") || n.get("builder.space");
@@ -1786,7 +1797,7 @@ const Qt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1786
1797
  },
1787
1798
  allRegisteredComponents() {
1788
1799
  return [
1789
- ...$t(),
1800
+ ...Vt(),
1790
1801
  ...Q,
1791
1802
  ...this.customComponents || []
1792
1803
  ].reduce(
@@ -1800,7 +1811,7 @@ const Qt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1800
1811
  shouldRenderContentStyles() {
1801
1812
  var e, n, t, o, r;
1802
1813
  return Boolean(
1803
- (((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"
1814
+ (((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)) && j !== "reactNative"
1804
1815
  );
1805
1816
  },
1806
1817
  onUpdateHook0() {
@@ -1844,7 +1855,7 @@ const Qt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1844
1855
  },
1845
1856
  onClick(e) {
1846
1857
  var n;
1847
- this.useContent && H({
1858
+ this.useContent && D({
1848
1859
  type: "click",
1849
1860
  canTrack: this.canTrackToUse,
1850
1861
  contentId: (n = this.useContent) == null ? void 0 : n.id,
@@ -1894,10 +1905,11 @@ const Qt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
1894
1905
  })
1895
1906
  );
1896
1907
  }
1897
- }
1908
+ },
1909
+ compatConfig: { MODE: 3 }
1898
1910
  }, tn = ["builder-content-id"];
1899
1911
  function nn(e, n, t, o, r, s) {
1900
- var i, u, m, p, _, $, O;
1912
+ var i, u, m, p, _, V, A;
1901
1913
  const a = v("render-content-styles"), c = v("render-blocks");
1902
1914
  return s.useContent ? (l(), d("div", {
1903
1915
  key: 0,
@@ -1911,7 +1923,7 @@ function nn(e, n, t, o, r, s) {
1911
1923
  customFonts: (_ = (p = s.useContent) == null ? void 0 : p.data) == null ? void 0 : _.customFonts
1912
1924
  }, null, 8, ["cssCode", "customFonts"])) : b("", !0),
1913
1925
  (l(), w(c, {
1914
- blocks: e.markMutable((O = ($ = s.useContent) == null ? void 0 : $.data) == null ? void 0 : O.blocks),
1926
+ blocks: e.markMutable((A = (V = s.useContent) == null ? void 0 : V.data) == null ? void 0 : A.blocks),
1915
1927
  key: e.forceReRenderCount
1916
1928
  }, null, 8, ["blocks"]))
1917
1929
  ], 8, tn)) : b("", !0);
@@ -1919,12 +1931,12 @@ function nn(e, n, t, o, r, s) {
1919
1931
  const on = /* @__PURE__ */ f(en, [["render", nn]]), sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1920
1932
  __proto__: null,
1921
1933
  default: on
1922
- }, Symbol.toStringTag, { value: "Module" })), rn = () => import("./block-styles.13caf8d7.js").then((e) => e.default).catch((e) => {
1934
+ }, Symbol.toStringTag, { value: "Module" })), rn = () => import("./block-styles.1f1fb83d.js").then((e) => e.default).catch((e) => {
1923
1935
  throw console.error(
1924
1936
  "Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
1925
1937
  e
1926
1938
  ), e;
1927
- }), an = () => import("./render-block.9c550b26.js").then((e) => e.default).catch((e) => {
1939
+ }), an = () => import("./render-block.3cdd0c66.js").then((e) => e.default).catch((e) => {
1928
1940
  throw console.error(
1929
1941
  "Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
1930
1942
  e
@@ -1981,13 +1993,14 @@ const on = /* @__PURE__ */ f(en, [["render", nn]]), sn = /* @__PURE__ */ Object.
1981
1993
  n[o] = !0;
1982
1994
  return n;
1983
1995
  }
1984
- }
1996
+ },
1997
+ compatConfig: { MODE: 3 }
1985
1998
  };
1986
1999
  const ln = ["builder-path", "builder-parent-id", "dataSet"];
1987
2000
  function dn(e, n, t, o, r, s) {
1988
2001
  const a = v("render-block"), c = v("block-styles");
1989
2002
  return l(), d("div", {
1990
- class: j(s._classStringToObject(s.className + " div-3q96myty4lk")),
2003
+ class: O(s._classStringToObject(s.className + " div-3q96myty4lk")),
1991
2004
  "builder-path": t.path,
1992
2005
  "builder-parent-id": t.parent,
1993
2006
  dataSet: {
@@ -2008,16 +2021,16 @@ function dn(e, n, t, o, r, s) {
2008
2021
  }, null, 8, ["block", "context"]))), 128)) : b("", !0)
2009
2022
  ], 42, ln);
2010
2023
  }
2011
- const un = /* @__PURE__ */ f(cn, [["render", dn], ["__scopeId", "data-v-53f55c54"]]), se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2024
+ const un = /* @__PURE__ */ f(cn, [["render", dn], ["__scopeId", "data-v-b37c318e"]]), se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2012
2025
  __proto__: null,
2013
2026
  default: un
2014
- }, Symbol.toStringTag, { value: "Module" })), z = {};
2027
+ }, Symbol.toStringTag, { value: "Module" })), H = {};
2015
2028
  function fn(e) {
2016
2029
  if (h()) {
2017
- Object.assign(z, e);
2030
+ Object.assign(H, e);
2018
2031
  const n = {
2019
2032
  type: "builder.settingsChange",
2020
- data: z
2033
+ data: H
2021
2034
  };
2022
2035
  parent.postMessage(n, "*");
2023
2036
  }
@@ -2026,29 +2039,29 @@ export {
2026
2039
  nt as B,
2027
2040
  me as C,
2028
2041
  ct as F,
2029
- ke as I,
2042
+ Ce as I,
2030
2043
  Qe as S,
2031
- U as T,
2044
+ j as T,
2032
2045
  Fe as V,
2033
2046
  f as _,
2034
2047
  Ie as a,
2035
2048
  rt as b,
2036
2049
  un as c,
2037
- Ot as d,
2050
+ At as d,
2038
2051
  N as e,
2039
2052
  Q as f,
2040
2053
  hn as g,
2041
- Pt as h,
2054
+ $t as h,
2042
2055
  g as i,
2043
2056
  ae as j,
2044
2057
  X as k,
2045
- De as l,
2058
+ qe as l,
2046
2059
  pn as m,
2047
2060
  Ke as n,
2048
- je as o,
2049
- Ue as p,
2050
- Ve as q,
2061
+ Oe as o,
2062
+ je as p,
2063
+ Ue as q,
2051
2064
  on as r,
2052
2065
  fn as s,
2053
- D as t
2066
+ q as t
2054
2067
  };