@builder.io/sdk-vue 0.1.2 → 0.1.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 (97) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/{block-styles.e9ae5c99.js → block-styles.062b71eb.js} +6 -4
  3. package/packages/_vue2/dist/block-styles.c799c71a.cjs +1 -0
  4. package/packages/{_vue3/dist/get-processed-block.1220ffe6.js → _vue2/dist/get-processed-block.44306844.js} +1 -1
  5. package/packages/_vue2/dist/{get-processed-block.ac23eb44.cjs → get-processed-block.837e0313.cjs} +1 -1
  6. package/packages/_vue2/dist/index.59a0624f.cjs +30 -0
  7. package/packages/_vue2/dist/{index.71913926.js → index.b2edb9b2.js} +531 -435
  8. package/packages/_vue2/dist/render-block.74bfd4ea.js +249 -0
  9. package/packages/_vue2/dist/render-block.b97311ac.cjs +3 -0
  10. package/packages/_vue2/dist/{render-component.e0a952b3.js → render-component.b325feac.js} +3 -3
  11. package/packages/_vue2/dist/{render-component.4e09cdef.cjs → render-component.e59489c1.cjs} +1 -1
  12. package/packages/_vue2/dist/render-inlined-styles.14b606a5.cjs +1 -0
  13. package/packages/_vue2/dist/{render-inlined-styles.58be9e46.js → render-inlined-styles.734fe2c9.js} +7 -5
  14. package/packages/_vue2/dist/render-repeated-block.bbbfafcc.cjs +1 -0
  15. package/packages/_vue2/dist/render-repeated-block.e1d94c10.js +41 -0
  16. package/packages/_vue2/dist/{render-styles.b0b466c2.js → render-styles.0b296b86.js} +2 -2
  17. package/packages/_vue2/dist/{render-styles.5381508b.cjs → render-styles.6732290e.cjs} +1 -1
  18. package/packages/_vue2/dist/sdk.cjs +1 -1
  19. package/packages/_vue2/dist/sdk.js +3 -3
  20. package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +35 -175
  21. package/packages/_vue2/dist/src/blocks/custom-code/custom-code.vue.d.ts +1 -1
  22. package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +5 -2
  23. package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +1 -1
  24. package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +65 -192
  25. package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +2 -2
  26. package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +11 -0
  27. package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +30 -170
  28. package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +7 -57
  29. package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +28 -168
  30. package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +33 -173
  31. package/packages/_vue2/dist/src/components/render-content/components/render-styles.vue.d.ts +1 -1
  32. package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +59 -189
  33. package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +1 -1
  34. package/packages/_vue2/dist/src/context/builder.context.d.ts +11 -1
  35. package/packages/_vue2/dist/src/functions/track/helpers.d.ts +5 -0
  36. package/packages/{_vue3/dist/src/functions/track.d.ts → _vue2/dist/src/functions/track/index.d.ts} +5 -10
  37. package/packages/_vue2/dist/src/functions/track/interaction.d.ts +13 -0
  38. package/packages/_vue2/dist/src/index.d.ts +1 -1
  39. package/packages/_vue2/dist/style.css +1 -1
  40. package/packages/_vue3/dist/{block-styles.ab09f721.js → block-styles.413a68e9.js} +19 -17
  41. package/packages/_vue3/dist/block-styles.6e935df7.cjs +1 -0
  42. package/packages/{_vue2/dist/get-processed-block.985f56a5.js → _vue3/dist/get-processed-block.ab2d823c.js} +1 -1
  43. package/packages/_vue3/dist/{get-processed-block.c0ffa71e.cjs → get-processed-block.b0588cd8.cjs} +1 -1
  44. package/packages/_vue3/dist/index.218c45a5.cjs +30 -0
  45. package/packages/_vue3/dist/{index.e0d3400f.js → index.7db5ef7e.js} +469 -374
  46. package/packages/_vue3/dist/render-block.a53e9af1.js +258 -0
  47. package/packages/_vue3/dist/render-block.a9195cb6.cjs +3 -0
  48. package/packages/_vue3/dist/{render-component.7a972660.js → render-component.41330655.js} +3 -3
  49. package/packages/_vue3/dist/{render-component.af4b9326.cjs → render-component.adae07fa.cjs} +1 -1
  50. package/packages/_vue3/dist/render-inlined-styles.47114c43.js +32 -0
  51. package/packages/_vue3/dist/render-inlined-styles.c80dee1c.cjs +1 -0
  52. package/packages/_vue3/dist/render-repeated-block.5b77dd2a.cjs +1 -0
  53. package/packages/_vue3/dist/render-repeated-block.648adc14.js +36 -0
  54. package/packages/_vue3/dist/{render-styles.c8214c85.js → render-styles.8780951f.js} +2 -2
  55. package/packages/_vue3/dist/{render-styles.1e95e77c.cjs → render-styles.9f30e56b.cjs} +1 -1
  56. package/packages/_vue3/dist/sdk.cjs +1 -1
  57. package/packages/_vue3/dist/sdk.js +6 -6
  58. package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +5 -5
  59. package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +1 -1
  60. package/packages/_vue3/dist/src/blocks/embed/embed.vue.d.ts +5 -2
  61. package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +1 -1
  62. package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +35 -22
  63. package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +2 -2
  64. package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +11 -0
  65. package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +1 -31
  66. package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +8 -1
  67. package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +3 -3
  68. package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +1 -1
  69. package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +29 -19
  70. package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +1 -1
  71. package/packages/_vue3/dist/src/context/builder.context.d.ts +11 -1
  72. package/packages/_vue3/dist/src/functions/track/helpers.d.ts +5 -0
  73. package/packages/{_vue2/dist/src/functions/track.d.ts → _vue3/dist/src/functions/track/index.d.ts} +5 -10
  74. package/packages/_vue3/dist/src/functions/track/interaction.d.ts +13 -0
  75. package/packages/_vue3/dist/src/index.d.ts +1 -1
  76. package/packages/_vue3/dist/style.css +1 -1
  77. package/packages/_vue2/dist/block-styles.b9cb70e5.cjs +0 -1
  78. package/packages/_vue2/dist/index.50198d49.cjs +0 -30
  79. package/packages/_vue2/dist/render-block.2c42b2ea.cjs +0 -3
  80. package/packages/_vue2/dist/render-block.6f078e8d.js +0 -251
  81. package/packages/_vue2/dist/render-component-with-context.795868f2.js +0 -53
  82. package/packages/_vue2/dist/render-component-with-context.88c14993.cjs +0 -1
  83. package/packages/_vue2/dist/render-inlined-styles.171750b7.cjs +0 -1
  84. package/packages/_vue2/dist/render-repeated-block.2ef95a2e.cjs +0 -1
  85. package/packages/_vue2/dist/render-repeated-block.58051104.js +0 -53
  86. package/packages/_vue2/dist/src/components/render-block/render-component-with-context.vue.d.ts +0 -114
  87. package/packages/_vue3/dist/block-styles.4a2a7b8d.cjs +0 -1
  88. package/packages/_vue3/dist/index.ac143767.cjs +0 -30
  89. package/packages/_vue3/dist/render-block.489f5bb0.cjs +0 -3
  90. package/packages/_vue3/dist/render-block.f4974fcf.js +0 -262
  91. package/packages/_vue3/dist/render-component-with-context.49bb17cb.cjs +0 -1
  92. package/packages/_vue3/dist/render-component-with-context.b7aac17f.js +0 -50
  93. package/packages/_vue3/dist/render-inlined-styles.37596a05.js +0 -30
  94. package/packages/_vue3/dist/render-inlined-styles.ffa23fbe.cjs +0 -1
  95. package/packages/_vue3/dist/render-repeated-block.704b65cb.cjs +0 -1
  96. package/packages/_vue3/dist/render-repeated-block.7b85cf89.js +0 -48
  97. package/packages/_vue3/dist/src/components/render-block/render-component-with-context.vue.d.ts +0 -48
@@ -1,12 +1,12 @@
1
- import { defineAsyncComponent as x, resolveComponent as k, openBlock as l, createElementBlock as u, normalizeClass as E, normalizeStyle as w, createBlock as I, createCommentVNode as b, Fragment as T, renderList as $, createVNode as q, createElementVNode as B, renderSlot as R, mergeProps as S, toDisplayString as W } from "vue";
2
- const j = "vue3";
1
+ import { defineAsyncComponent as x, resolveComponent as k, openBlock as l, createElementBlock as u, normalizeClass as j, normalizeStyle as w, createBlock as I, createCommentVNode as b, Fragment as R, renderList as O, createVNode as X, createElementVNode as L, renderSlot as E, mergeProps as S, toDisplayString as W } from "vue";
2
+ const T = "vue3";
3
3
  function f() {
4
4
  return typeof window < "u" && typeof document < "u";
5
5
  }
6
- const L = {};
7
- function ce(e, n) {
8
- let t = L[e];
9
- if (t || (t = L[e] = []), t.push(n), f()) {
6
+ const M = {};
7
+ function ue(e, n) {
8
+ let t = M[e];
9
+ if (t || (t = M[e] = []), t.push(n), f()) {
10
10
  const o = {
11
11
  type: "builder.register",
12
12
  data: {
@@ -21,8 +21,8 @@ function ce(e, n) {
21
21
  }
22
22
  }
23
23
  }
24
- const le = () => {
25
- ce("insertMenu", {
24
+ const me = () => {
25
+ ue("insertMenu", {
26
26
  name: "_default",
27
27
  default: !0,
28
28
  items: [
@@ -38,13 +38,13 @@ const le = () => {
38
38
  });
39
39
  };
40
40
  let N = !1;
41
- const de = (e = {}) => {
41
+ const pe = (e = {}) => {
42
42
  var n, t;
43
43
  N || (N = !0, f() && ((n = window.parent) == null || n.postMessage(
44
44
  {
45
45
  type: "builder.sdkInfo",
46
46
  data: {
47
- target: j,
47
+ target: T,
48
48
  supportsPatchUpdates: !1,
49
49
  supportsAddBlockScoping: !0,
50
50
  supportsCustomBreakpoints: !0
@@ -97,7 +97,7 @@ const de = (e = {}) => {
97
97
  }
98
98
  }
99
99
  })));
100
- }, U = (e) => JSON.parse(JSON.stringify(e)), G = {
100
+ }, U = (e) => JSON.parse(JSON.stringify(e)), Y = {
101
101
  small: {
102
102
  min: 320,
103
103
  default: 321,
@@ -113,8 +113,8 @@ const de = (e = {}) => {
113
113
  default: 991,
114
114
  max: 1200
115
115
  }
116
- }, vn = (e, n = G) => `@media (max-width: ${n[e].max}px)`, ue = ({ small: e, medium: n }) => {
117
- const t = U(G);
116
+ }, Rn = (e, n = Y) => `@media (max-width: ${n[e].max}px)`, he = ({ small: e, medium: n }) => {
117
+ const t = U(Y);
118
118
  if (!e || !n)
119
119
  return t;
120
120
  const o = Math.floor(e / 2);
@@ -135,11 +135,11 @@ const de = (e = {}) => {
135
135
  min: s,
136
136
  default: s + 1
137
137
  }, t;
138
- }, me = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), C = (e) => e != null, pe = (e) => Object.entries(e).map(([t, o]) => {
138
+ }, fe = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), C = (e) => e != null, ge = (e) => Object.entries(e).map(([t, o]) => {
139
139
  if (typeof o == "string")
140
- return `${me(t)}: ${o};`;
141
- }).filter(C), _ = (e) => pe(e).join(`
142
- `), xn = ({
140
+ return `${fe(t)}: ${o};`;
141
+ }).filter(C), _ = (e) => ge(e).join(`
142
+ `), En = ({
143
143
  mediaQuery: e,
144
144
  className: n,
145
145
  styles: t
@@ -150,21 +150,21 @@ const de = (e = {}) => {
150
150
  return e ? `${e} {
151
151
  ${o}
152
152
  }` : o;
153
- }, he = () => Promise.resolve().then(() => ie).then((e) => e.default).catch((e) => {
153
+ }, be = () => Promise.resolve().then(() => le).then((e) => e.default).catch((e) => {
154
154
  throw console.error(
155
155
  "Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
156
156
  e
157
157
  ), e;
158
- }), fe = () => import("./render-inlined-styles.37596a05.js").then((e) => e.default).catch((e) => {
158
+ }), ye = () => import("./render-inlined-styles.47114c43.js").then((e) => e.default).catch((e) => {
159
159
  throw console.error(
160
160
  "Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",
161
161
  e
162
162
  ), e;
163
- }), ge = {
163
+ }), ve = {
164
164
  name: "builder-columns",
165
165
  components: {
166
- RenderInlinedStyles: x(fe),
167
- RenderBlocks: x(he)
166
+ RenderInlinedStyles: x(ye),
167
+ RenderBlocks: x(be)
168
168
  },
169
169
  props: [
170
170
  "space",
@@ -174,7 +174,9 @@ const de = (e = {}) => {
174
174
  "customBreakpoints",
175
175
  "builderBlock"
176
176
  ],
177
- data: () => ({ TARGET: j }),
177
+ data() {
178
+ return { TARGET: T };
179
+ },
178
180
  computed: {
179
181
  columnsCssVars() {
180
182
  const e = this.stackColumnsAt === "never" ? "inherit" : this.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -266,7 +268,7 @@ const de = (e = {}) => {
266
268
  return (this.stackColumnsAt || "tablet") === "tablet" ? e : "inherit";
267
269
  },
268
270
  getWidthForBreakpointSize(e) {
269
- return ue(
271
+ return he(
270
272
  this.customBreakpoints || {}
271
273
  )[e].max;
272
274
  },
@@ -287,34 +289,34 @@ const g = (e, n) => {
287
289
  t[o] = r;
288
290
  return t;
289
291
  };
290
- function be(e, n, t, o, r, s) {
292
+ function xe(e, n, t, o, r, s) {
291
293
  const i = k("render-inlined-styles"), c = k("render-blocks");
292
294
  return l(), u("div", {
293
- class: E(
295
+ class: j(
294
296
  s._classStringToObject(
295
- `builder-columns ${t.builderBlock.id}-breakpoints div-2oob28krk0a`
297
+ `builder-columns ${t.builderBlock.id}-breakpoints div-7fq9d0i380`
296
298
  )
297
299
  ),
298
300
  style: w({
299
- ...e.TARGET === "reactNative" ? s.reactNativeColumnsStyles : {},
301
+ ...r.TARGET === "reactNative" ? s.reactNativeColumnsStyles : {},
300
302
  ...s.columnsCssVars
301
303
  })
302
304
  }, [
303
- e.TARGET !== "reactNative" ? (l(), I(i, {
305
+ r.TARGET !== "reactNative" ? (l(), I(i, {
304
306
  key: 0,
305
307
  styles: s.columnsStyles
306
308
  }, null, 8, ["styles"])) : b("", !0),
307
- (l(!0), u(T, null, $(t.columns, (a, d) => (l(), u("div", {
309
+ (l(!0), u(R, null, O(t.columns, (a, d) => (l(), u("div", {
308
310
  key: d,
309
- class: "builder-column div-2oob28krk0a-2",
311
+ class: "builder-column div-7fq9d0i380-2",
310
312
  style: w({
311
313
  width: s.getColumnCssWidth(d),
312
314
  marginLeft: `${d === 0 ? 0 : s.getGutterSize()}px`,
313
- ...e.TARGET === "reactNative" ? s.reactNativeColumnStyles : {},
315
+ ...r.TARGET === "reactNative" ? s.reactNativeColumnStyles : {},
314
316
  ...s.columnCssVars
315
317
  })
316
318
  }, [
317
- q(c, {
319
+ X(c, {
318
320
  blocks: a.blocks,
319
321
  path: `component.options.columns.${d}.blocks`,
320
322
  parent: t.builderBlock.id,
@@ -325,40 +327,40 @@ function be(e, n, t, o, r, s) {
325
327
  ], 4))), 128))
326
328
  ], 6);
327
329
  }
328
- const ye = /* @__PURE__ */ g(ge, [["render", be], ["__scopeId", "data-v-e8ae58c5"]]);
329
- function M(e) {
330
+ const ke = /* @__PURE__ */ g(ve, [["render", xe], ["__scopeId", "data-v-1c640f4f"]]);
331
+ function z(e) {
330
332
  return e.replace(/http(s)?:/, "");
331
333
  }
332
- function ve(e = "", n, t) {
334
+ function Ce(e = "", n, t) {
333
335
  const o = new RegExp("([?&])" + n + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
334
336
  return e.match(o) ? e.replace(o, "$1" + n + "=" + encodeURIComponent(t) + "$2") : e + r + n + "=" + encodeURIComponent(t);
335
337
  }
336
- function xe(e, n) {
338
+ function Se(e, n) {
337
339
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !n)
338
340
  return e;
339
341
  if (n === "master")
340
- return M(e);
342
+ return z(e);
341
343
  const t = e.match(
342
344
  /(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i
343
345
  );
344
346
  if (t) {
345
347
  const o = e.split(t[0]), r = t[3], s = n.match("x") ? n : `${n}x`;
346
- return M(`${o[0]}_${s}${r}`);
348
+ return z(`${o[0]}_${s}${r}`);
347
349
  }
348
350
  return null;
349
351
  }
350
- function A(e) {
352
+ function F(e) {
351
353
  if (!e)
352
354
  return e;
353
355
  const n = [100, 200, 400, 800, 1200, 1600, 2e3];
354
356
  if (e.match(/builder\.io/)) {
355
357
  let t = e;
356
358
  const o = Number(e.split("?width=")[1]);
357
- return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${ve(e, "width", r)} ${r}w`).concat([t]).join(", ");
359
+ return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${Ce(e, "width", r)} ${r}w`).concat([t]).join(", ");
358
360
  }
359
- return e.match(/cdn\.shopify\.com/) ? n.map((t) => [xe(e, `${t}x${t}`), t]).filter(([t]) => !!t).map(([t, o]) => `${t} ${o}w`).concat([e]).join(", ") : e;
361
+ return e.match(/cdn\.shopify\.com/) ? n.map((t) => [Se(e, `${t}x${t}`), t]).filter(([t]) => !!t).map(([t, o]) => `${t} ${o}w`).concat([e]).join(", ") : e;
360
362
  }
361
- const ke = {
363
+ const _e = {
362
364
  name: "builder-image",
363
365
  props: [
364
366
  "image",
@@ -382,10 +384,10 @@ const ke = {
382
384
  return this.srcset;
383
385
  if (this.srcset && ((t = this.image) == null ? void 0 : t.includes("builder.io/api/v1/image"))) {
384
386
  if (!this.srcset.includes(this.image.split("?")[0]))
385
- return console.debug("Removed given srcset"), A(n);
387
+ return console.debug("Removed given srcset"), F(n);
386
388
  } else if (this.image && !this.srcset)
387
- return A(n);
388
- return A(n);
389
+ return F(n);
390
+ return F(n);
389
391
  },
390
392
  webpSrcSet() {
391
393
  var e;
@@ -414,20 +416,20 @@ const ke = {
414
416
  }
415
417
  }
416
418
  };
417
- const Ce = ["srcset"], Se = ["alt", "role", "src", "srcset", "sizes"], _e = ["srcset"], we = {
419
+ const we = ["srcset"], Ie = ["alt", "role", "src", "srcset", "sizes"], Te = {
418
420
  key: 2,
419
- class: "div-1n1bt6e2i9n-2"
421
+ class: "div-2pqqf5a7788-2"
420
422
  };
421
- function Ie(e, n, t, o, r, s) {
423
+ function Re(e, n, t, o, r, s) {
422
424
  var i, c, a, d;
423
- return l(), u(T, null, [
424
- B("picture", null, [
425
+ return l(), u(R, null, [
426
+ L("picture", null, [
425
427
  s.webpSrcSet ? (l(), u("source", {
426
428
  key: 0,
427
429
  type: "image/webp",
428
430
  srcset: s.webpSrcSet
429
- }, null, 8, Ce)) : b("", !0),
430
- B("img", {
431
+ }, null, 8, we)) : b("", !0),
432
+ L("img", {
431
433
  loading: "lazy",
432
434
  alt: t.altText,
433
435
  role: t.altText ? "presentation" : void 0,
@@ -436,41 +438,40 @@ function Ie(e, n, t, o, r, s) {
436
438
  objectFit: t.backgroundSize || "cover",
437
439
  ...s.aspectRatioCss
438
440
  }),
439
- class: E(
441
+ class: j(
440
442
  s._classStringToObject(
441
- "builder-image" + (t.className ? " " + t.className : "") + " img-1n1bt6e2i9n"
443
+ "builder-image" + (t.className ? " " + t.className : "") + " img-2pqqf5a7788"
442
444
  )
443
445
  ),
444
446
  src: t.image,
445
447
  srcset: s.srcSetToUse,
446
448
  sizes: t.sizes
447
- }, null, 14, Se),
448
- B("source", { srcset: s.srcSetToUse }, null, 8, _e)
449
+ }, null, 14, Ie)
449
450
  ]),
450
451
  t.aspectRatio && !(((c = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : c.length) && t.fitContent) ? (l(), u("div", {
451
452
  key: 0,
452
- class: "builder-image-sizer div-1n1bt6e2i9n",
453
+ class: "builder-image-sizer div-2pqqf5a7788",
453
454
  style: w({
454
455
  paddingTop: t.aspectRatio * 100 + "%"
455
456
  })
456
457
  }, null, 4)) : b("", !0),
457
- ((d = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : d.length) && t.fitContent ? R(e.$slots, "default", { key: 1 }, void 0, !0) : b("", !0),
458
- !t.fitContent && e.children ? (l(), u("div", we, [
459
- R(e.$slots, "default", {}, void 0, !0)
458
+ ((d = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : d.length) && t.fitContent ? E(e.$slots, "default", { key: 1 }, void 0, !0) : b("", !0),
459
+ !t.fitContent && e.children ? (l(), u("div", Te, [
460
+ E(e.$slots, "default", {}, void 0, !0)
460
461
  ])) : b("", !0)
461
462
  ], 64);
462
463
  }
463
- const Te = /* @__PURE__ */ g(ke, [["render", Ie], ["__scopeId", "data-v-ce478e56"]]), Re = {
464
+ const Ee = /* @__PURE__ */ g(_e, [["render", Re], ["__scopeId", "data-v-50c3283d"]]), je = {
464
465
  name: "builder-text",
465
466
  props: ["text"]
466
- }, Ee = ["innerHTML"];
467
- function je(e, n, t, o, r, s) {
467
+ }, Be = ["innerHTML"];
468
+ function Fe(e, n, t, o, r, s) {
468
469
  return l(), u("span", {
469
470
  class: "builder-text",
470
471
  innerHTML: t.text
471
- }, null, 8, Ee);
472
+ }, null, 8, Be);
472
473
  }
473
- const Fe = /* @__PURE__ */ g(Re, [["render", je]]), Be = {
474
+ const Oe = /* @__PURE__ */ g(je, [["render", Fe]]), Ae = {
474
475
  name: "builder-video",
475
476
  props: [
476
477
  "autoPlay",
@@ -511,8 +512,8 @@ const Fe = /* @__PURE__ */ g(Re, [["render", je]]), Be = {
511
512
  };
512
513
  }
513
514
  }
514
- }, Ae = ["src", "poster"];
515
- function $e(e, n, t, o, r, s) {
515
+ }, Pe = ["src", "poster"];
516
+ function Ue(e, n, t, o, r, s) {
516
517
  var i;
517
518
  return l(), u("video", S({
518
519
  style: {
@@ -525,14 +526,24 @@ function $e(e, n, t, o, r, s) {
525
526
  },
526
527
  src: t.video || "no-src",
527
528
  poster: t.posterImage
528
- }, s.spreadProps), null, 16, Ae);
529
+ }, s.spreadProps), null, 16, Pe);
529
530
  }
530
- const Oe = /* @__PURE__ */ g(Be, [["render", $e]]);
531
- function Pe() {
531
+ const $e = /* @__PURE__ */ g(Ae, [["render", Ue]]), Ve = Symbol(), $ = {
532
+ Builder: {
533
+ content: null,
534
+ context: {},
535
+ state: {},
536
+ apiKey: null,
537
+ registeredComponents: {},
538
+ inheritedStyles: {}
539
+ },
540
+ key: Ve
541
+ };
542
+ function Le() {
532
543
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
533
544
  }
534
- function Ue() {
535
- const e = Pe().fetch;
545
+ function We() {
546
+ const e = Le().fetch;
536
547
  if (typeof e > "u")
537
548
  throw console.warn(
538
549
  `Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
@@ -540,12 +551,12 @@ function Ue() {
540
551
  ), new Error("Builder SDK could not find a global `fetch` function");
541
552
  return e;
542
553
  }
543
- const J = Ue(), Ve = (e) => {
554
+ const Q = We(), Me = (e) => {
544
555
  if (e === "localhost" || e === "127.0.0.1")
545
556
  return e;
546
557
  const n = e.split(".");
547
558
  return n.length > 2 ? n.slice(1).join(".") : e;
548
- }, X = async ({
559
+ }, Z = async ({
549
560
  name: e,
550
561
  canTrack: n
551
562
  }) => {
@@ -556,23 +567,23 @@ const J = Ue(), Ve = (e) => {
556
567
  console.debug("[COOKIE] GET error: ", o);
557
568
  return;
558
569
  }
559
- }, We = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).filter(C).join("; "), Le = [
570
+ }, Ne = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).filter(C).join("; "), ze = [
560
571
  ["secure", ""],
561
572
  ["SameSite", "None"]
562
- ], Ne = ({
573
+ ], Ke = ({
563
574
  name: e,
564
575
  value: n,
565
576
  expires: t
566
577
  }) => {
567
- const r = (f() ? location.protocol === "https:" : !0) ? Le : [[]], s = t ? [["expires", t.toUTCString()]] : [[]], i = [
578
+ const r = (f() ? location.protocol === "https:" : !0) ? ze : [[]], s = t ? [["expires", t.toUTCString()]] : [[]], i = [
568
579
  [e, n],
569
580
  ...s,
570
581
  ["path", "/"],
571
- ["domain", Ve(window.location.hostname)],
582
+ ["domain", Me(window.location.hostname)],
572
583
  ...r
573
584
  ];
574
- return We(i);
575
- }, Y = async ({
585
+ return Ne(i);
586
+ }, ee = async ({
576
587
  name: e,
577
588
  value: n,
578
589
  expires: t,
@@ -581,19 +592,19 @@ const J = Ue(), Ve = (e) => {
581
592
  try {
582
593
  if (!o)
583
594
  return;
584
- const r = Ne({ name: e, value: n, expires: t });
595
+ const r = Ke({ name: e, value: n, expires: t });
585
596
  document.cookie = r;
586
597
  } catch (r) {
587
598
  console.warn("[COOKIE] SET error: ", r);
588
599
  }
589
- }, Me = "builderio.variations", Q = (e) => `${Me}.${e}`, ze = ({
600
+ }, He = "builderio.variations", te = (e) => `${He}.${e}`, qe = ({
590
601
  contentId: e,
591
602
  canTrack: n
592
- }) => X({ name: Q(e), canTrack: n }), He = ({
603
+ }) => Z({ name: te(e), canTrack: n }), De = ({
593
604
  contentId: e,
594
605
  canTrack: n,
595
606
  value: t
596
- }) => Y({ name: Q(e), value: t, canTrack: n }), Ke = (e) => C(e.id) && C(e.variations) && Object.keys(e.variations).length > 0, De = ({
607
+ }) => ee({ name: te(e), value: t, canTrack: n }), Ge = (e) => C(e.id) && C(e.variations) && Object.keys(e.variations).length > 0, Je = ({
597
608
  id: e,
598
609
  variations: n
599
610
  }) => {
@@ -604,7 +615,7 @@ const J = Ue(), Ve = (e) => {
604
615
  if (t += (r = n[s]) == null ? void 0 : r.testRatio, o < t)
605
616
  return s;
606
617
  return e;
607
- }, z = ({
618
+ }, K = ({
608
619
  item: e,
609
620
  testGroupId: n
610
621
  }) => {
@@ -617,69 +628,69 @@ const J = Ue(), Ve = (e) => {
617
628
  testVariationId: t.id,
618
629
  testVariationName: t.name || (t.id === e.id ? "Default" : "")
619
630
  };
620
- }, qe = async ({
631
+ }, Xe = async ({
621
632
  item: e,
622
633
  canTrack: n
623
634
  }) => {
624
- const t = await ze({
635
+ const t = await qe({
625
636
  canTrack: n,
626
637
  contentId: e.id
627
- }), o = t ? z({ item: e, testGroupId: t }) : void 0;
638
+ }), o = t ? K({ item: e, testGroupId: t }) : void 0;
628
639
  if (o)
629
640
  return o;
630
641
  {
631
- const r = De({
642
+ const r = Je({
632
643
  variations: e.variations,
633
644
  id: e.id
634
645
  });
635
- return He({
646
+ return De({
636
647
  contentId: e.id,
637
648
  value: r,
638
649
  canTrack: n
639
650
  }).catch((s) => {
640
651
  console.error("could not store A/B test variation: ", s);
641
- }), z({ item: e, testGroupId: r });
652
+ }), K({ item: e, testGroupId: r });
642
653
  }
643
- }, Ge = async ({
654
+ }, Ye = async ({
644
655
  item: e,
645
656
  canTrack: n
646
657
  }) => {
647
- if (!Ke(e))
658
+ if (!Ge(e))
648
659
  return;
649
- const t = await qe({ item: e, canTrack: n });
660
+ const t = await Xe({ item: e, canTrack: n });
650
661
  Object.assign(e, t);
651
662
  };
652
- function O(e, n = null, t = ".") {
663
+ function A(e, n = null, t = ".") {
653
664
  return Object.keys(e).reduce((o, r) => {
654
665
  const s = e[r], i = [n, r].filter(Boolean).join(t);
655
666
  return [
656
667
  typeof s == "object",
657
668
  s !== null,
658
669
  !(Array.isArray(s) && s.length === 0)
659
- ].every(Boolean) ? { ...o, ...O(s, i, t) } : { ...o, [i]: s };
670
+ ].every(Boolean) ? { ...o, ...A(s, i, t) } : { ...o, [i]: s };
660
671
  }, {});
661
672
  }
662
- const H = "builder.", Je = "options.", Xe = (e) => {
673
+ const H = "builder.", Qe = "options.", Ze = (e) => {
663
674
  const n = {};
664
675
  return e.forEach((t, o) => {
665
676
  n[o] = t;
666
677
  }), n;
667
- }, Ye = (e) => {
678
+ }, et = (e) => {
668
679
  if (!e)
669
680
  return {};
670
- const n = Z(e), t = {};
681
+ const n = ne(e), t = {};
671
682
  return Object.keys(n).forEach((o) => {
672
683
  if (o.startsWith(H)) {
673
- const r = o.replace(H, "").replace(Je, "");
684
+ const r = o.replace(H, "").replace(Qe, "");
674
685
  t[r] = n[o];
675
686
  }
676
687
  }), t;
677
- }, Qe = () => {
688
+ }, tt = () => {
678
689
  if (!f())
679
690
  return {};
680
691
  const e = new URLSearchParams(window.location.search);
681
- return Ye(e);
682
- }, Z = (e) => e instanceof URLSearchParams ? Xe(e) : e, Ze = (e) => {
692
+ return et(e);
693
+ }, ne = (e) => e instanceof URLSearchParams ? Ze(e) : e, nt = (e) => {
683
694
  const {
684
695
  limit: n = 30,
685
696
  userAttributes: t,
@@ -695,53 +706,59 @@ const H = "builder.", Je = "options.", Xe = (e) => {
695
706
  const d = new URL(
696
707
  `https://cdn.builder.io/api/v2/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${r}&includeRefs=${c}${a ? `&locale=${a}` : ""}`
697
708
  ), m = {
698
- ...Qe(),
699
- ...Z(e.options || {})
700
- }, p = O(m);
709
+ ...tt(),
710
+ ...ne(e.options || {})
711
+ }, p = A(m);
701
712
  for (const h in p)
702
713
  d.searchParams.set(h, String(p[h]));
703
714
  if (t && d.searchParams.set("userAttributes", JSON.stringify(t)), o) {
704
- const h = O({ query: o });
715
+ const h = A({ query: o });
705
716
  for (const v in h)
706
717
  d.searchParams.set(v, JSON.stringify(h[v]));
707
718
  }
708
719
  return d;
709
720
  };
710
- async function ee(e) {
711
- return (await et({ ...e, limit: 1 })).results[0] || null;
721
+ async function oe(e) {
722
+ return (await ot({ ...e, limit: 1 })).results[0] || null;
712
723
  }
713
- async function et(e) {
714
- const n = Ze(e), o = await (await J(n.href)).json(), r = e.canTrack !== !1;
724
+ async function ot(e) {
725
+ const n = nt(e), o = await (await Q(n.href)).json(), r = e.canTrack !== !1;
715
726
  if (r && Array.isArray(o.results))
716
727
  for (const s of o.results)
717
- await Ge({ item: s, canTrack: r });
728
+ await Ye({ item: s, canTrack: r });
718
729
  return o;
719
730
  }
720
- const tt = () => Promise.resolve().then(() => un).then((e) => e.default).catch((e) => {
731
+ const st = () => Promise.resolve().then(() => xn).then((e) => e.default).catch((e) => {
721
732
  throw console.error(
722
733
  "Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
723
734
  e
724
735
  ), e;
725
- }), nt = {
736
+ }), rt = {
726
737
  name: "builder-symbol",
727
- components: { RenderContent: x(tt) },
738
+ components: { RenderContent: x(st) },
728
739
  props: ["attributes", "symbol", "dynamic"],
729
- data: () => ({ fetchedContent: null }),
740
+ data() {
741
+ return { fetchedContent: null };
742
+ },
730
743
  inject: {
731
- builderContext: "BuilderContext"
744
+ builderContext: $.key
732
745
  },
733
746
  watch: {
734
- onUpdateHook0() {
735
- const e = this.symbol;
736
- e && !e.content && !this.fetchedContent && e.model && ee({
737
- model: e.model,
738
- apiKey: this.builderContext.apiKey,
739
- query: {
740
- id: e.entry
741
- }
742
- }).then((n) => {
743
- this.fetchedContent = n;
744
- });
747
+ onUpdateHook0: {
748
+ handler() {
749
+ var n;
750
+ const e = this.symbol;
751
+ e && !e.content && !this.fetchedContent && e.model && ((n = this.builderContext) == null ? void 0 : n.apiKey) && oe({
752
+ model: e.model,
753
+ apiKey: this.builderContext.apiKey,
754
+ query: {
755
+ id: e.entry
756
+ }
757
+ }).then((t) => {
758
+ this.fetchedContent = t;
759
+ });
760
+ },
761
+ immediate: !0
745
762
  }
746
763
  },
747
764
  computed: {
@@ -776,8 +793,8 @@ const tt = () => Promise.resolve().then(() => un).then((e) => e.default).catch((
776
793
  return n;
777
794
  }
778
795
  }
779
- }, ot = ["dataSet"];
780
- function st(e, n, t, o, r, s) {
796
+ }, it = ["dataSet"];
797
+ function at(e, n, t, o, r, s) {
781
798
  var c, a, d, m, p;
782
799
  const i = k("render-content");
783
800
  return l(), u("div", S({
@@ -786,7 +803,7 @@ function st(e, n, t, o, r, s) {
786
803
  },
787
804
  class: s._classStringToObject(s.className)
788
805
  }, t.attributes), [
789
- q(i, {
806
+ X(i, {
790
807
  apiKey: s.builderContext.apiKey,
791
808
  context: s.builderContext.context,
792
809
  customComponents: Object.values(s.builderContext.registeredComponents),
@@ -798,29 +815,29 @@ function st(e, n, t, o, r, s) {
798
815
  model: (p = t.symbol) == null ? void 0 : p.model,
799
816
  content: s.contentToUse
800
817
  }, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
801
- ], 16, ot);
818
+ ], 16, it);
802
819
  }
803
- const rt = /* @__PURE__ */ g(nt, [["render", st]]), it = {
820
+ const ct = /* @__PURE__ */ g(rt, [["render", at]]), lt = {
804
821
  name: "builder-button",
805
822
  props: ["attributes", "text", "link", "openLinkInNewTab"]
806
823
  };
807
- const at = ["href", "target"];
808
- function ct(e, n, t, o, r, s) {
824
+ const dt = ["href", "target"];
825
+ function ut(e, n, t, o, r, s) {
809
826
  return t.link ? (l(), u("a", S({
810
827
  key: 0,
811
828
  role: "button",
812
829
  href: t.link,
813
830
  target: t.openLinkInNewTab ? "_blank" : void 0
814
- }, t.attributes), W(t.text), 17, at)) : (l(), u("button", S({
831
+ }, t.attributes), W(t.text), 17, dt)) : (l(), u("button", S({
815
832
  key: 1,
816
- class: "button-1fogms4bee0"
833
+ class: "button-4o9pb21oca6"
817
834
  }, t.attributes), W(t.text), 17));
818
835
  }
819
- const lt = /* @__PURE__ */ g(it, [["render", ct], ["__scopeId", "data-v-bf69ebfa"]]), dt = {
836
+ const mt = /* @__PURE__ */ g(lt, [["render", ut], ["__scopeId", "data-v-f9067262"]]), pt = {
820
837
  name: "builder-section-component",
821
838
  props: ["attributes", "maxWidth"]
822
839
  };
823
- function ut(e, n, t, o, r, s) {
840
+ function ht(e, n, t, o, r, s) {
824
841
  return l(), u("section", S({
825
842
  style: {
826
843
  width: "100%",
@@ -835,19 +852,19 @@ function ut(e, n, t, o, r, s) {
835
852
  marginRight: "auto"
836
853
  }
837
854
  }, t.attributes), [
838
- R(e.$slots, "default")
855
+ E(e.$slots, "default")
839
856
  ], 16);
840
857
  }
841
- const mt = /* @__PURE__ */ g(dt, [["render", ut]]), pt = {
858
+ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
842
859
  name: "builder-fragment-component",
843
860
  props: []
844
861
  };
845
- function ht(e, n, t, o, r, s) {
862
+ function bt(e, n, t, o, r, s) {
846
863
  return l(), u("span", null, [
847
- R(e.$slots, "default")
864
+ E(e.$slots, "default")
848
865
  ]);
849
866
  }
850
- const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
867
+ const yt = /* @__PURE__ */ g(gt, [["render", bt]]), vt = {
851
868
  name: "Core:Button",
852
869
  builtIn: !0,
853
870
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
@@ -884,10 +901,10 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
884
901
  ],
885
902
  static: !0,
886
903
  noWrap: !0
887
- }, F = (e) => {
904
+ }, B = (e) => {
888
905
  const n = e.toString().trim();
889
906
  return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
890
- }, bt = {
907
+ }, xt = {
891
908
  name: "Columns",
892
909
  builtIn: !0,
893
910
  inputs: [
@@ -1075,7 +1092,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1075
1092
  ]
1076
1093
  }
1077
1094
  ],
1078
- onChange: F((e) => {
1095
+ onChange: B((e) => {
1079
1096
  function n() {
1080
1097
  t.forEach((o) => {
1081
1098
  o.delete("width");
@@ -1112,14 +1129,14 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1112
1129
  advanced: !0
1113
1130
  }
1114
1131
  ]
1115
- }, yt = {
1132
+ }, kt = {
1116
1133
  name: "Fragment",
1117
1134
  static: !0,
1118
1135
  hidden: !0,
1119
1136
  builtIn: !0,
1120
1137
  canHaveChildren: !0,
1121
1138
  noWrap: !0
1122
- }, vt = {
1139
+ }, Ct = {
1123
1140
  name: "Image",
1124
1141
  static: !0,
1125
1142
  builtIn: !0,
@@ -1139,7 +1156,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1139
1156
  allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
1140
1157
  required: !0,
1141
1158
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
1142
- onChange: F(
1159
+ onChange: B(
1143
1160
  (e) => {
1144
1161
  e.delete("srcset"), e.delete("noWebp");
1145
1162
  function t(i, c = 6e4) {
@@ -1247,7 +1264,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1247
1264
  defaultValue: 0.7041
1248
1265
  }
1249
1266
  ]
1250
- }, xt = {
1267
+ }, St = {
1251
1268
  name: "Core:Section",
1252
1269
  static: !0,
1253
1270
  builtIn: !0,
@@ -1292,7 +1309,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1292
1309
  }
1293
1310
  }
1294
1311
  ]
1295
- }, kt = {
1312
+ }, _t = {
1296
1313
  name: "Symbol",
1297
1314
  noWrap: !0,
1298
1315
  static: !0,
@@ -1331,7 +1348,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1331
1348
  type: "boolean"
1332
1349
  }
1333
1350
  ]
1334
- }, Ct = {
1351
+ }, wt = {
1335
1352
  name: "Text",
1336
1353
  static: !0,
1337
1354
  builtIn: !0,
@@ -1351,7 +1368,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1351
1368
  height: "auto",
1352
1369
  textAlign: "center"
1353
1370
  }
1354
- }, St = {
1371
+ }, It = {
1355
1372
  name: "Video",
1356
1373
  canHaveChildren: !0,
1357
1374
  builtIn: !0,
@@ -1453,7 +1470,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1453
1470
  advanced: !0
1454
1471
  }
1455
1472
  ]
1456
- }, _t = {
1473
+ }, Tt = {
1457
1474
  name: "Embed",
1458
1475
  static: !0,
1459
1476
  builtIn: !0,
@@ -1464,7 +1481,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1464
1481
  required: !0,
1465
1482
  defaultValue: "",
1466
1483
  helperText: "e.g. enter a youtube url, google map, etc",
1467
- onChange: F(
1484
+ onChange: B(
1468
1485
  (e) => {
1469
1486
  const n = e.get("url");
1470
1487
  if (n)
@@ -1489,17 +1506,22 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1489
1506
  hideFromUI: !0
1490
1507
  }
1491
1508
  ]
1492
- }, wt = [
1509
+ }, Rt = [
1493
1510
  "text/javascript",
1494
1511
  "application/javascript",
1495
1512
  "application/ecmascript"
1496
- ], It = (e) => wt.includes(e.type), Tt = {
1513
+ ], Et = (e) => Rt.includes(e.type), jt = {
1497
1514
  name: "builder-embed",
1498
1515
  props: ["content"],
1499
- data: () => ({ scriptsInserted: [], scriptsRun: [], ranInitFn: !1 }),
1516
+ data() {
1517
+ return { scriptsInserted: [], scriptsRun: [], ranInitFn: !1 };
1518
+ },
1500
1519
  watch: {
1501
- onUpdateHook0() {
1502
- this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
1520
+ onUpdateHook0: {
1521
+ handler() {
1522
+ this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
1523
+ },
1524
+ immediate: !0
1503
1525
  }
1504
1526
  },
1505
1527
  computed: {
@@ -1521,7 +1543,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1521
1543
  this.scriptsInserted.push(t.src);
1522
1544
  const o = document.createElement("script");
1523
1545
  o.async = !0, o.src = t.src, document.head.appendChild(o);
1524
- } else if (It(t) && !this.scriptsRun.includes(t.innerText))
1546
+ } else if (Et(t) && !this.scriptsRun.includes(t.innerText))
1525
1547
  try {
1526
1548
  this.scriptsRun.push(t.innerText), new Function(t.innerText)();
1527
1549
  } catch (o) {
@@ -1530,22 +1552,22 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1530
1552
  }
1531
1553
  }
1532
1554
  }
1533
- }, Rt = ["innerHTML"];
1534
- function Et(e, n, t, o, r, s) {
1555
+ }, Bt = ["innerHTML"];
1556
+ function Ft(e, n, t, o, r, s) {
1535
1557
  return l(), u("div", {
1536
1558
  class: "builder-embed",
1537
1559
  ref: "elem",
1538
1560
  innerHTML: t.content
1539
- }, null, 8, Rt);
1561
+ }, null, 8, Bt);
1540
1562
  }
1541
- const jt = /* @__PURE__ */ g(Tt, [["render", Et]]);
1542
- function Ft() {
1563
+ const Ot = /* @__PURE__ */ g(jt, [["render", Ft]]);
1564
+ function At() {
1543
1565
  return f() && window.self !== window.top;
1544
1566
  }
1545
1567
  function y() {
1546
- return Ft() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1568
+ return At() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1547
1569
  }
1548
- const Bt = {
1570
+ const Pt = {
1549
1571
  name: "builder-img-component",
1550
1572
  props: [
1551
1573
  "backgroundSize",
@@ -1555,20 +1577,22 @@ const Bt = {
1555
1577
  "image",
1556
1578
  "attributes"
1557
1579
  ],
1558
- data: () => ({ isEditing: y })
1559
- }, At = ["alt", "src"];
1580
+ data() {
1581
+ return { isEditing: y };
1582
+ }
1583
+ }, Ut = ["alt", "src"];
1560
1584
  function $t(e, n, t, o, r, s) {
1561
1585
  return l(), u("img", S({
1562
1586
  style: {
1563
1587
  objectFit: t.backgroundSize || "cover",
1564
1588
  objectPosition: t.backgroundPosition || "center"
1565
1589
  },
1566
- key: e.isEditing() && t.imgSrc || "default-key",
1590
+ key: r.isEditing() && t.imgSrc || "default-key",
1567
1591
  alt: t.altText,
1568
1592
  src: t.imgSrc || t.image
1569
- }, t.attributes), null, 16, At);
1593
+ }, t.attributes), null, 16, Ut);
1570
1594
  }
1571
- const Ot = /* @__PURE__ */ g(Bt, [["render", $t]]), Pt = {
1595
+ const Vt = /* @__PURE__ */ g(Pt, [["render", $t]]), Lt = {
1572
1596
  name: "Raw:Img",
1573
1597
  hideFromInsertMenu: !0,
1574
1598
  builtIn: !0,
@@ -1584,10 +1608,12 @@ const Ot = /* @__PURE__ */ g(Bt, [["render", $t]]), Pt = {
1584
1608
  ],
1585
1609
  noWrap: !0,
1586
1610
  static: !0
1587
- }, Ut = {
1611
+ }, Wt = {
1588
1612
  name: "builder-custom-code",
1589
1613
  props: ["replaceNodes", "code"],
1590
- data: () => ({ scriptsInserted: [], scriptsRun: [] }),
1614
+ data() {
1615
+ return { scriptsInserted: [], scriptsRun: [] };
1616
+ },
1591
1617
  mounted() {
1592
1618
  this.findAndRunScripts();
1593
1619
  },
@@ -1629,19 +1655,19 @@ const Ot = /* @__PURE__ */ g(Bt, [["render", $t]]), Pt = {
1629
1655
  return n;
1630
1656
  }
1631
1657
  }
1632
- }, Vt = ["innerHTML"];
1633
- function Wt(e, n, t, o, r, s) {
1658
+ }, Mt = ["innerHTML"];
1659
+ function Nt(e, n, t, o, r, s) {
1634
1660
  return l(), u("div", {
1635
1661
  ref: "elem",
1636
- class: E(
1662
+ class: j(
1637
1663
  s._classStringToObject(
1638
1664
  "builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
1639
1665
  )
1640
1666
  ),
1641
1667
  innerHTML: t.code
1642
- }, null, 10, Vt);
1668
+ }, null, 10, Mt);
1643
1669
  }
1644
- const Lt = /* @__PURE__ */ g(Ut, [["render", Wt]]), Nt = {
1670
+ const zt = /* @__PURE__ */ g(Wt, [["render", Nt]]), Kt = {
1645
1671
  name: "Custom Code",
1646
1672
  static: !0,
1647
1673
  builtIn: !0,
@@ -1668,20 +1694,20 @@ const Lt = /* @__PURE__ */ g(Ut, [["render", Wt]]), Nt = {
1668
1694
  advanced: !0
1669
1695
  }
1670
1696
  ]
1671
- }, Mt = () => [
1672
- { component: ye, ...bt },
1673
- { component: Te, ...vt },
1674
- { component: Ot, ...Pt },
1675
- { component: Fe, ...Ct },
1676
- { component: Oe, ...St },
1677
- { component: rt, ...kt },
1678
- { component: lt, ...gt },
1679
- { component: mt, ...xt },
1680
- { component: ft, ...yt },
1681
- { component: jt, ..._t },
1682
- { component: Lt, ...Nt }
1697
+ }, Ht = () => [
1698
+ { component: ke, ...xt },
1699
+ { component: Ee, ...Ct },
1700
+ { component: Vt, ...Lt },
1701
+ { component: Oe, ...wt },
1702
+ { component: $e, ...It },
1703
+ { component: ct, ..._t },
1704
+ { component: mt, ...vt },
1705
+ { component: ft, ...St },
1706
+ { component: yt, ...kt },
1707
+ { component: Ot, ...Tt },
1708
+ { component: zt, ...Kt }
1683
1709
  ];
1684
- function K({
1710
+ function q({
1685
1711
  code: e,
1686
1712
  context: n,
1687
1713
  state: t,
@@ -1718,22 +1744,22 @@ function K({
1718
1744
  );
1719
1745
  }
1720
1746
  }
1721
- function zt() {
1747
+ function qt() {
1722
1748
  return !f() || y() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1723
1749
  }
1724
- const te = [];
1725
- function kn(e, n) {
1726
- return te.push({ component: e, ...n }), console.warn(
1750
+ const se = [];
1751
+ function jn(e, n) {
1752
+ return se.push({ component: e, ...n }), console.warn(
1727
1753
  "registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
1728
1754
  ), e;
1729
1755
  }
1730
- const Ht = ({
1756
+ const Dt = ({
1731
1757
  component: e,
1732
1758
  ...n
1733
1759
  }) => ({
1734
1760
  type: "builder.registerComponent",
1735
- data: Dt(n)
1736
- }), Kt = (e) => typeof e == "function" ? F(e) : U(e), Dt = ({
1761
+ data: Jt(n)
1762
+ }), Gt = (e) => typeof e == "function" ? B(e) : U(e), Jt = ({
1737
1763
  inputs: e,
1738
1764
  ...n
1739
1765
  }) => ({
@@ -1742,92 +1768,124 @@ const Ht = ({
1742
1768
  (t) => Object.entries(t).reduce(
1743
1769
  (o, [r, s]) => ({
1744
1770
  ...o,
1745
- [r]: Kt(s)
1771
+ [r]: Gt(s)
1746
1772
  }),
1747
1773
  {}
1748
1774
  )
1749
1775
  )
1750
1776
  });
1751
- function qt() {
1777
+ function Xt() {
1752
1778
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
1753
1779
  const n = Math.random() * 16 | 0;
1754
1780
  return (e == "x" ? n : n & 3 | 8).toString(16);
1755
1781
  });
1756
1782
  }
1757
- function ne() {
1758
- return qt().replace(/-/g, "");
1783
+ function re() {
1784
+ return Xt().replace(/-/g, "");
1759
1785
  }
1760
- const oe = "builderSessionId", Gt = async ({
1786
+ const ie = "builderSessionId", Yt = async ({
1761
1787
  canTrack: e
1762
1788
  }) => {
1763
1789
  if (!e)
1764
1790
  return;
1765
- const n = await X({
1766
- name: oe,
1791
+ const n = await Z({
1792
+ name: ie,
1767
1793
  canTrack: e
1768
1794
  });
1769
1795
  if (C(n))
1770
1796
  return n;
1771
1797
  {
1772
- const t = Jt();
1773
- return Xt({ id: t, canTrack: e }), t;
1798
+ const t = Qt();
1799
+ return Zt({ id: t, canTrack: e }), t;
1774
1800
  }
1775
- }, Jt = () => ne(), Xt = ({
1801
+ }, Qt = () => re(), Zt = ({
1776
1802
  id: e,
1777
1803
  canTrack: n
1778
- }) => Y({ name: oe, value: e, canTrack: n }), se = () => f() && typeof localStorage < "u" ? localStorage : void 0, Yt = ({
1804
+ }) => ee({ name: ie, value: e, canTrack: n }), ae = () => f() && typeof localStorage < "u" ? localStorage : void 0, en = ({
1779
1805
  key: e,
1780
1806
  canTrack: n
1781
1807
  }) => {
1782
1808
  var t;
1783
1809
  try {
1784
- return n ? (t = se()) == null ? void 0 : t.getItem(e) : void 0;
1810
+ return n ? (t = ae()) == null ? void 0 : t.getItem(e) : void 0;
1785
1811
  } catch (o) {
1786
1812
  console.debug("[LocalStorage] GET error: ", o);
1787
1813
  return;
1788
1814
  }
1789
- }, Qt = ({
1815
+ }, tn = ({
1790
1816
  key: e,
1791
1817
  canTrack: n,
1792
1818
  value: t
1793
1819
  }) => {
1794
1820
  var o;
1795
1821
  try {
1796
- n && ((o = se()) == null || o.setItem(e, t));
1822
+ n && ((o = ae()) == null || o.setItem(e, t));
1797
1823
  } catch (r) {
1798
1824
  console.debug("[LocalStorage] SET error: ", r);
1799
1825
  }
1800
- }, re = "builderVisitorId", Zt = ({ canTrack: e }) => {
1826
+ }, ce = "builderVisitorId", nn = ({ canTrack: e }) => {
1801
1827
  if (!e)
1802
1828
  return;
1803
- const n = Yt({
1804
- key: re,
1829
+ const n = en({
1830
+ key: ce,
1805
1831
  canTrack: e
1806
1832
  });
1807
1833
  if (C(n))
1808
1834
  return n;
1809
1835
  {
1810
- const t = en();
1811
- return tn({ id: t, canTrack: e }), t;
1836
+ const t = on();
1837
+ return sn({ id: t, canTrack: e }), t;
1812
1838
  }
1813
- }, en = () => ne(), tn = ({
1839
+ }, on = () => re(), sn = ({
1814
1840
  id: e,
1815
1841
  canTrack: n
1816
- }) => Qt({
1817
- key: re,
1842
+ }) => tn({
1843
+ key: ce,
1818
1844
  value: e,
1819
1845
  canTrack: n
1820
- }), nn = async ({
1846
+ }), rn = () => {
1847
+ if (f()) {
1848
+ const e = new URL(location.href);
1849
+ return e.pathname === "" && (e.pathname = "/"), e;
1850
+ } else
1851
+ return console.warn("Cannot get location for tracking in non-browser environment"), null;
1852
+ }, an = () => typeof navigator == "object" && navigator.userAgent || "", cn = () => {
1853
+ const e = an(), n = {
1854
+ Android() {
1855
+ return e.match(/Android/i);
1856
+ },
1857
+ BlackBerry() {
1858
+ return e.match(/BlackBerry/i);
1859
+ },
1860
+ iOS() {
1861
+ return e.match(/iPhone|iPod/i);
1862
+ },
1863
+ Opera() {
1864
+ return e.match(/Opera Mini/i);
1865
+ },
1866
+ Windows() {
1867
+ return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
1868
+ },
1869
+ any() {
1870
+ return n.Android() || n.BlackBerry() || n.iOS() || n.Opera() || n.Windows() || T === "reactNative";
1871
+ }
1872
+ }, t = e.match(/Tablet|iPad/i), o = rn();
1873
+ return {
1874
+ urlPath: o == null ? void 0 : o.pathname,
1875
+ host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
1876
+ device: t ? "tablet" : n.any() ? "mobile" : "desktop"
1877
+ };
1878
+ }, ln = async ({
1821
1879
  canTrack: e
1822
1880
  }) => {
1823
1881
  if (!e)
1824
1882
  return { visitorId: void 0, sessionId: void 0 };
1825
- const n = await Gt({ canTrack: e }), t = Zt({ canTrack: e });
1883
+ const n = await Yt({ canTrack: e }), t = nn({ canTrack: e });
1826
1884
  return {
1827
1885
  sessionId: n,
1828
1886
  visitorId: t
1829
1887
  };
1830
- }, on = async ({
1888
+ }, dn = async ({
1831
1889
  type: e,
1832
1890
  canTrack: n,
1833
1891
  apiKey: t,
@@ -1837,8 +1895,12 @@ const oe = "builderSessionId", Gt = async ({
1837
1895
  type: e,
1838
1896
  data: {
1839
1897
  ...r,
1840
- metadata: JSON.stringify(o),
1841
- ...await nn({ canTrack: n }),
1898
+ metadata: {
1899
+ url: location.href,
1900
+ ...o
1901
+ },
1902
+ ...await ln({ canTrack: n }),
1903
+ userAttributes: cn(),
1842
1904
  ownerId: t
1843
1905
  }
1844
1906
  });
@@ -1849,11 +1911,11 @@ async function P(e) {
1849
1911
  );
1850
1912
  return;
1851
1913
  }
1852
- if (!!e.canTrack && !y() && !!(f() || j === "reactNative"))
1914
+ if (!!e.canTrack && !y() && !!(f() || T === "reactNative"))
1853
1915
  return fetch("https://builder.io/api/v1/track", {
1854
1916
  method: "POST",
1855
1917
  body: JSON.stringify({
1856
- events: [await on(e)]
1918
+ events: [await dn(e)]
1857
1919
  }),
1858
1920
  headers: {
1859
1921
  "content-type": "application/json"
@@ -1863,21 +1925,58 @@ async function P(e) {
1863
1925
  console.error("Failed to track: ", n);
1864
1926
  });
1865
1927
  }
1866
- const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then(() => ie).then((e) => e.default).catch((e) => {
1928
+ const Bn = (e) => P({ ...e, canTrack: !0 });
1929
+ function D(e) {
1930
+ return Math.round(e * 1e3) / 1e3;
1931
+ }
1932
+ const un = (e, n, t = !0) => {
1933
+ if (!(e instanceof HTMLElement))
1934
+ return null;
1935
+ let o = t ? e : e.parentElement;
1936
+ do {
1937
+ if (!o)
1938
+ return null;
1939
+ if (n(o))
1940
+ return o;
1941
+ } while (o = o.parentElement);
1942
+ return null;
1943
+ }, mn = (e) => un(e, (n) => {
1944
+ const t = n.getAttribute("builder-id") || n.id;
1945
+ return Boolean((t == null ? void 0 : t.indexOf("builder-")) === 0);
1946
+ }), G = ({
1947
+ event: e,
1948
+ target: n
1949
+ }) => {
1950
+ const t = n.getBoundingClientRect(), o = e.clientX - t.left, r = e.clientY - t.top, s = D(o / t.width), i = D(r / t.height);
1951
+ return {
1952
+ x: s,
1953
+ y: i
1954
+ };
1955
+ }, pn = (e) => {
1956
+ const n = e.target, t = n && mn(n), o = (t == null ? void 0 : t.getAttribute("builder-id")) || (t == null ? void 0 : t.id);
1957
+ return {
1958
+ targetBuilderElement: o || void 0,
1959
+ metadata: {
1960
+ targetOffset: n ? G({ event: e, target: n }) : void 0,
1961
+ builderTargetOffset: t ? G({ event: e, target: t }) : void 0,
1962
+ builderElementIndex: t && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(t) : void 0
1963
+ }
1964
+ };
1965
+ }, hn = () => Promise.resolve().then(() => le).then((e) => e.default).catch((e) => {
1867
1966
  throw console.error(
1868
1967
  "Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
1869
1968
  e
1870
1969
  ), e;
1871
- }), rn = () => import("./render-styles.c8214c85.js").then((e) => e.default).catch((e) => {
1970
+ }), fn = () => import("./render-styles.8780951f.js").then((e) => e.default).catch((e) => {
1872
1971
  throw console.error(
1873
1972
  "Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
1874
1973
  e
1875
1974
  ), e;
1876
- }), an = {
1975
+ }), gn = {
1877
1976
  name: "render-content",
1878
1977
  components: {
1879
- RenderContentStyles: x(rn),
1880
- RenderBlocks: x(sn)
1978
+ RenderContentStyles: x(fn),
1979
+ RenderBlocks: x(hn)
1881
1980
  },
1882
1981
  props: [
1883
1982
  "content",
@@ -1890,32 +1989,39 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
1890
1989
  "apiKey",
1891
1990
  "includeRefs"
1892
1991
  ],
1893
- data: () => ({
1894
- forceReRenderCount: 0,
1895
- overrideContent: null,
1896
- update: 0,
1897
- useBreakpoints: null,
1898
- overrideState: {}
1899
- }),
1992
+ data() {
1993
+ return {
1994
+ forceReRenderCount: 0,
1995
+ overrideContent: null,
1996
+ update: 0,
1997
+ useBreakpoints: null,
1998
+ canTrackToUse: C(this.canTrack) ? this.canTrack : !0,
1999
+ overrideState: {},
2000
+ contextContext: this.context || {},
2001
+ allRegisteredComponents: [
2002
+ ...Ht(),
2003
+ ...se,
2004
+ ...this.customComponents || []
2005
+ ].reduce(
2006
+ (e, n) => ({
2007
+ ...e,
2008
+ [n.name]: n
2009
+ }),
2010
+ {}
2011
+ ),
2012
+ httpReqsData: {},
2013
+ clicked: !1
2014
+ };
2015
+ },
1900
2016
  provide() {
1901
2017
  const e = this;
1902
2018
  return {
1903
- BuilderContext: {
1904
- get content() {
1905
- return e.useContent;
1906
- },
1907
- get state() {
1908
- return e.contentState;
1909
- },
1910
- get context() {
1911
- return e.contextContext;
1912
- },
1913
- get apiKey() {
1914
- return e.apiKey;
1915
- },
1916
- get registeredComponents() {
1917
- return e.allRegisteredComponents;
1918
- }
2019
+ [$.key]: {
2020
+ content: e.useContent,
2021
+ state: e.contentState,
2022
+ context: e.contextContext,
2023
+ apiKey: e.apiKey,
2024
+ registeredComponents: e.allRegisteredComponents
1919
2025
  }
1920
2026
  };
1921
2027
  },
@@ -1924,7 +2030,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
1924
2030
  if (this.apiKey || console.error(
1925
2031
  "[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
1926
2032
  ), f()) {
1927
- if (y() && (this.forceReRenderCount = this.forceReRenderCount + 1, le(), de({
2033
+ if (y() && (this.forceReRenderCount = this.forceReRenderCount + 1, me(), pe({
1928
2034
  ...this.locale ? {
1929
2035
  locale: this.locale
1930
2036
  } : {},
@@ -1934,7 +2040,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
1934
2040
  }), Object.values(this.allRegisteredComponents).forEach(
1935
2041
  (t) => {
1936
2042
  var r;
1937
- const o = Ht(t);
2043
+ const o = Dt(t);
1938
2044
  (r = window.parent) == null || r.postMessage(o, "*");
1939
2045
  }
1940
2046
  ), window.addEventListener("message", this.processMessage), window.addEventListener(
@@ -1950,30 +2056,36 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
1950
2056
  variationId: t !== o ? t : void 0
1951
2057
  });
1952
2058
  }
1953
- if (zt()) {
1954
- const t = new URL(location.href).searchParams;
1955
- if (this.model && t.get("builder.preview") === this.model) {
1956
- const o = t.get("apiKey") || t.get("builder.space");
1957
- o && ee({
1958
- model: this.model,
1959
- apiKey: o
1960
- }).then((r) => {
1961
- r && (this.overrideContent = r);
1962
- });
1963
- }
2059
+ if (qt()) {
2060
+ const t = new URL(location.href).searchParams, o = t.get("builder.preview"), r = t.get("apiKey") || t.get("builder.space");
2061
+ o === this.model && r === this.apiKey && oe({
2062
+ model: this.model,
2063
+ apiKey: this.apiKey
2064
+ }).then((s) => {
2065
+ s && (this.overrideContent = s);
2066
+ });
1964
2067
  }
1965
2068
  this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
1966
2069
  }
1967
2070
  },
1968
2071
  watch: {
1969
- onUpdateHook0() {
1970
- this.evaluateJsCode();
2072
+ onUpdateHook0: {
2073
+ handler() {
2074
+ this.evaluateJsCode();
2075
+ },
2076
+ immediate: !0
1971
2077
  },
1972
- onUpdateHook1() {
1973
- this.runHttpRequests();
2078
+ onUpdateHook1: {
2079
+ handler() {
2080
+ this.runHttpRequests();
2081
+ },
2082
+ immediate: !0
1974
2083
  },
1975
- onUpdateHook2() {
1976
- this.emitStateUpdate();
2084
+ onUpdateHook2: {
2085
+ handler() {
2086
+ this.emitStateUpdate();
2087
+ },
2088
+ immediate: !0
1977
2089
  }
1978
2090
  },
1979
2091
  unmounted() {
@@ -1984,24 +2096,22 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
1984
2096
  },
1985
2097
  computed: {
1986
2098
  useContent() {
1987
- var n, t, o, r, s, i, c, a;
1988
- return !this.content && !this.overrideContent ? void 0 : {
1989
- ...this.content,
1990
- ...this.overrideContent,
1991
- data: {
1992
- ...(n = this.content) == null ? void 0 : n.data,
1993
- ...this.data,
1994
- ...(t = this.overrideContent) == null ? void 0 : t.data
1995
- },
1996
- meta: {
1997
- ...(o = this.content) == null ? void 0 : o.meta,
1998
- ...(r = this.overrideContent) == null ? void 0 : r.meta,
1999
- breakpoints: this.useBreakpoints || ((i = (s = this.overrideContent) == null ? void 0 : s.meta) == null ? void 0 : i.breakpoints) || ((a = (c = this.content) == null ? void 0 : c.meta) == null ? void 0 : a.breakpoints)
2000
- }
2001
- };
2002
- },
2003
- canTrackToUse() {
2004
- return C(this.canTrack) ? this.canTrack : !0;
2099
+ var e, n, t, o, r, s, i, c;
2100
+ if (!(!this.content && !this.overrideContent))
2101
+ return {
2102
+ ...this.content,
2103
+ ...this.overrideContent,
2104
+ data: {
2105
+ ...(e = this.content) == null ? void 0 : e.data,
2106
+ ...this.data,
2107
+ ...(n = this.overrideContent) == null ? void 0 : n.data
2108
+ },
2109
+ meta: {
2110
+ ...(t = this.content) == null ? void 0 : t.meta,
2111
+ ...(o = this.overrideContent) == null ? void 0 : o.meta,
2112
+ breakpoints: this.useBreakpoints || ((s = (r = this.overrideContent) == null ? void 0 : r.meta) == null ? void 0 : s.breakpoints) || ((c = (i = this.content) == null ? void 0 : i.meta) == null ? void 0 : c.breakpoints)
2113
+ }
2114
+ };
2005
2115
  },
2006
2116
  contentState() {
2007
2117
  var e, n;
@@ -2014,29 +2124,10 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
2014
2124
  ...this.overrideState
2015
2125
  };
2016
2126
  },
2017
- contextContext() {
2018
- return this.context || {};
2019
- },
2020
- allRegisteredComponents() {
2021
- return [
2022
- ...Mt(),
2023
- ...te,
2024
- ...this.customComponents || []
2025
- ].reduce(
2026
- (t, o) => ({
2027
- ...t,
2028
- [o.name]: o
2029
- }),
2030
- {}
2031
- );
2032
- },
2033
- httpReqsData() {
2034
- return {};
2035
- },
2036
2127
  shouldRenderContentStyles() {
2037
2128
  var e, n, t, o, r;
2038
2129
  return Boolean(
2039
- (((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"
2130
+ (((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)) && T !== "reactNative"
2040
2131
  );
2041
2132
  },
2042
2133
  onUpdateHook0() {
@@ -2081,7 +2172,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
2081
2172
  evaluateJsCode() {
2082
2173
  var n, t;
2083
2174
  const e = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.jsCode;
2084
- e && K({
2175
+ e && q({
2085
2176
  code: e,
2086
2177
  context: this.contextContext,
2087
2178
  state: this.contentState
@@ -2096,14 +2187,17 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
2096
2187
  canTrack: this.canTrackToUse,
2097
2188
  contentId: r,
2098
2189
  apiKey: this.apiKey,
2099
- variationId: o !== r ? o : void 0
2190
+ variationId: o !== r ? o : void 0,
2191
+ ...pn(e),
2192
+ unique: !this.clicked
2100
2193
  });
2101
2194
  }
2195
+ this.clicked || (this.clicked = !0);
2102
2196
  },
2103
2197
  evalExpression(e) {
2104
2198
  return e.replace(
2105
2199
  /{{([^}]+)}}/g,
2106
- (n, t) => K({
2200
+ (n, t) => q({
2107
2201
  code: t,
2108
2202
  context: this.contextContext,
2109
2203
  state: this.contentState
@@ -2111,7 +2205,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
2111
2205
  );
2112
2206
  },
2113
2207
  handleRequest({ url: e, key: n }) {
2114
- J(e).then((t) => t.json()).then((t) => {
2208
+ Q(e).then((t) => t.json()).then((t) => {
2115
2209
  const o = {
2116
2210
  ...this.overrideState,
2117
2211
  [n]: t
@@ -2147,14 +2241,14 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
2147
2241
  );
2148
2242
  }
2149
2243
  }
2150
- }, cn = ["builder-content-id", "builder-model"];
2151
- function ln(e, n, t, o, r, s) {
2244
+ }, bn = ["builder-content-id", "builder-model"];
2245
+ function yn(e, n, t, o, r, s) {
2152
2246
  var a, d, m, p, h, v, V;
2153
2247
  const i = k("render-content-styles"), c = k("render-blocks");
2154
2248
  return s.useContent ? (l(), u("div", {
2155
2249
  key: 0,
2156
2250
  ref: "elementRef",
2157
- onClick: n[0] || (n[0] = (ae) => s.onClick(ae)),
2251
+ onClick: n[0] || (n[0] = (de) => s.onClick(de)),
2158
2252
  "builder-content-id": (a = s.useContent) == null ? void 0 : a.id,
2159
2253
  "builder-model": t.model
2160
2254
  }, [
@@ -2165,32 +2259,32 @@ function ln(e, n, t, o, r, s) {
2165
2259
  }, null, 8, ["cssCode", "customFonts"])) : b("", !0),
2166
2260
  (l(), I(c, {
2167
2261
  blocks: (V = (v = s.useContent) == null ? void 0 : v.data) == null ? void 0 : V.blocks,
2168
- key: e.forceReRenderCount
2262
+ key: r.forceReRenderCount
2169
2263
  }, null, 8, ["blocks"]))
2170
- ], 8, cn)) : b("", !0);
2264
+ ], 8, bn)) : b("", !0);
2171
2265
  }
2172
- const dn = /* @__PURE__ */ g(an, [["render", ln]]), un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2266
+ const vn = /* @__PURE__ */ g(gn, [["render", yn]]), xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2173
2267
  __proto__: null,
2174
- default: dn
2175
- }, Symbol.toStringTag, { value: "Module" })), mn = () => import("./block-styles.ab09f721.js").then((e) => e.default).catch((e) => {
2268
+ default: vn
2269
+ }, Symbol.toStringTag, { value: "Module" })), kn = () => import("./block-styles.413a68e9.js").then((e) => e.default).catch((e) => {
2176
2270
  throw console.error(
2177
2271
  "Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
2178
2272
  e
2179
2273
  ), e;
2180
- }), pn = () => import("./render-block.f4974fcf.js").then((e) => e.default).catch((e) => {
2274
+ }), Cn = () => import("./render-block.a53e9af1.js").then((e) => e.default).catch((e) => {
2181
2275
  throw console.error(
2182
2276
  "Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
2183
2277
  e
2184
2278
  ), e;
2185
- }), hn = {
2279
+ }), Sn = {
2186
2280
  name: "render-blocks",
2187
2281
  components: {
2188
- RenderBlock: x(pn),
2189
- BlockStyles: x(mn)
2282
+ RenderBlock: x(Cn),
2283
+ BlockStyles: x(kn)
2190
2284
  },
2191
2285
  props: ["blocks", "parent", "path", "styleProp"],
2192
2286
  inject: {
2193
- builderContext: "BuilderContext"
2287
+ builderContext: $.key
2194
2288
  },
2195
2289
  computed: {
2196
2290
  className() {
@@ -2236,11 +2330,11 @@ const dn = /* @__PURE__ */ g(an, [["render", ln]]), un = /* @__PURE__ */ Object.
2236
2330
  }
2237
2331
  }
2238
2332
  };
2239
- const fn = ["builder-path", "builder-parent-id", "dataSet"];
2240
- function gn(e, n, t, o, r, s) {
2333
+ const _n = ["builder-path", "builder-parent-id", "dataSet"];
2334
+ function wn(e, n, t, o, r, s) {
2241
2335
  const i = k("render-block"), c = k("block-styles");
2242
2336
  return l(), u("div", {
2243
- class: E(s._classStringToObject(s.className + " div-7fq9d0i380")),
2337
+ class: j(s._classStringToObject(s.className + " div-361b1o6wv2k")),
2244
2338
  "builder-path": t.path,
2245
2339
  "builder-parent-id": t.parent,
2246
2340
  dataSet: {
@@ -2250,63 +2344,64 @@ function gn(e, n, t, o, r, s) {
2250
2344
  onClick: n[0] || (n[0] = (a) => s.onClick()),
2251
2345
  onMouseenter: n[1] || (n[1] = (a) => s.onMouseEnter())
2252
2346
  }, [
2253
- t.blocks ? (l(!0), u(T, { key: 0 }, $(t.blocks, (a, d) => (l(), I(i, {
2347
+ t.blocks ? (l(!0), u(R, { key: 0 }, O(t.blocks, (a, d) => (l(), I(i, {
2254
2348
  key: "render-block-" + a.id,
2255
2349
  block: a,
2256
2350
  context: s.builderContext
2257
2351
  }, null, 8, ["block", "context"]))), 128)) : b("", !0),
2258
- t.blocks ? (l(!0), u(T, { key: 1 }, $(t.blocks, (a, d) => (l(), I(c, {
2352
+ t.blocks ? (l(!0), u(R, { key: 1 }, O(t.blocks, (a, d) => (l(), I(c, {
2259
2353
  key: "block-style-" + a.id,
2260
2354
  block: a,
2261
2355
  context: s.builderContext
2262
2356
  }, null, 8, ["block", "context"]))), 128)) : b("", !0)
2263
- ], 46, fn);
2357
+ ], 46, _n);
2264
2358
  }
2265
- const bn = /* @__PURE__ */ g(hn, [["render", gn], ["__scopeId", "data-v-4f5f0a37"]]), ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2359
+ const In = /* @__PURE__ */ g(Sn, [["render", wn], ["__scopeId", "data-v-69d4cd84"]]), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2266
2360
  __proto__: null,
2267
- default: bn
2268
- }, Symbol.toStringTag, { value: "Module" })), D = {};
2269
- function Sn(e) {
2361
+ default: In
2362
+ }, Symbol.toStringTag, { value: "Module" })), J = {};
2363
+ function Fn(e) {
2270
2364
  if (f()) {
2271
- Object.assign(D, e);
2365
+ Object.assign(J, e);
2272
2366
  const n = {
2273
2367
  type: "builder.settingsChange",
2274
- data: D
2368
+ data: J
2275
2369
  };
2276
2370
  parent.postMessage(n, "*");
2277
2371
  }
2278
2372
  }
2279
2373
  export {
2280
- lt as B,
2281
- ye as C,
2282
- ft as F,
2283
- Te as I,
2284
- rt as S,
2285
- j as T,
2286
- Oe as V,
2374
+ $ as B,
2375
+ ke as C,
2376
+ yt as F,
2377
+ Ee as I,
2378
+ ct as S,
2379
+ T,
2380
+ $e as V,
2287
2381
  g as _,
2288
- vn as a,
2289
- pe as b,
2290
- xn as c,
2291
- Fe as d,
2292
- K as e,
2382
+ Rn as a,
2383
+ ge as b,
2384
+ En as c,
2385
+ Oe as d,
2386
+ q as e,
2293
2387
  U as f,
2294
- ue as g,
2388
+ he as g,
2295
2389
  mt as h,
2296
- bn as i,
2297
- y as j,
2298
- zt as k,
2299
- te as l,
2300
- kn as m,
2301
- Ht as n,
2302
- ce as o,
2303
- ee as p,
2304
- et as q,
2305
- dn as r,
2306
- Sn as s,
2307
- Cn as t,
2308
- Xe as u,
2309
- Ye as v,
2310
- Qe as w,
2311
- Z as x
2390
+ ft as i,
2391
+ In as j,
2392
+ y as k,
2393
+ qt as l,
2394
+ se as m,
2395
+ jn as n,
2396
+ Dt as o,
2397
+ ue as p,
2398
+ oe as q,
2399
+ vn as r,
2400
+ Fn as s,
2401
+ Bn as t,
2402
+ ot as u,
2403
+ Ze as v,
2404
+ et as w,
2405
+ tt as x,
2406
+ ne as y
2312
2407
  };