@builder.io/sdk-vue 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/package.json +1 -1
  2. package/packages/_vue2/dist/block-styles.426683e4.cjs +1 -0
  3. package/packages/_vue2/dist/{block-styles.41c88ebb.js → block-styles.d52d65f7.js} +6 -4
  4. package/packages/{_vue3/dist/get-processed-block.6a1b1b3d.cjs → _vue2/dist/get-processed-block.25e77989.cjs} +1 -1
  5. package/packages/{_vue3/dist/get-processed-block.b14f89d8.js → _vue2/dist/get-processed-block.b1e9044b.js} +1 -1
  6. package/packages/_vue2/dist/{index.c72e7c74.js → index.3403bf5e.js} +579 -473
  7. package/packages/_vue2/dist/index.57d3bafb.cjs +30 -0
  8. package/packages/_vue2/dist/render-block.5069cc94.js +249 -0
  9. package/packages/_vue2/dist/render-block.93fcfc84.cjs +3 -0
  10. package/packages/_vue2/dist/{render-component.1561ae1b.js → render-component.5e59a26d.js} +3 -3
  11. package/packages/_vue2/dist/{render-component.e5dac3a3.cjs → render-component.697eb0f0.cjs} +1 -1
  12. package/packages/_vue2/dist/{render-inlined-styles.e8e46149.js → render-inlined-styles.c4ede85b.js} +4 -2
  13. package/packages/_vue2/dist/render-inlined-styles.d6107d6b.cjs +1 -0
  14. package/packages/_vue2/dist/render-repeated-block.82ac5fdf.cjs +1 -0
  15. package/packages/_vue2/dist/render-repeated-block.88a83bb3.js +41 -0
  16. package/packages/_vue2/dist/{render-styles.571858fa.js → render-styles.78a78d13.js} +2 -2
  17. package/packages/_vue2/dist/{render-styles.29424659.cjs → render-styles.95a1cf8d.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/helpers/ab-tests.d.ts +1 -1
  39. package/packages/_vue2/dist/src/helpers/cookie.d.ts +1 -1
  40. package/packages/_vue2/dist/src/helpers/localStorage.d.ts +2 -1
  41. package/packages/_vue2/dist/src/helpers/sessionId.d.ts +2 -2
  42. package/packages/_vue2/dist/src/index.d.ts +1 -1
  43. package/packages/_vue2/dist/style.css +1 -1
  44. package/packages/_vue3/dist/{block-styles.fee20f95.js → block-styles.b1836f48.js} +19 -17
  45. package/packages/_vue3/dist/block-styles.b81e8e00.cjs +1 -0
  46. package/packages/{_vue2/dist/get-processed-block.7744e4bc.cjs → _vue3/dist/get-processed-block.7681705a.cjs} +1 -1
  47. package/packages/{_vue2/dist/get-processed-block.e326a312.js → _vue3/dist/get-processed-block.aed48c68.js} +1 -1
  48. package/packages/_vue3/dist/index.0bf7b9df.cjs +30 -0
  49. package/packages/_vue3/dist/{index.7a69508d.js → index.dfbf4ad8.js} +537 -432
  50. package/packages/_vue3/dist/render-block.7d6c9594.cjs +3 -0
  51. package/packages/_vue3/dist/render-block.bd00521b.js +258 -0
  52. package/packages/_vue3/dist/{render-component.66d935aa.cjs → render-component.7b0412f1.cjs} +1 -1
  53. package/packages/_vue3/dist/{render-component.12bec717.js → render-component.98c61732.js} +3 -3
  54. package/packages/_vue3/dist/{render-inlined-styles.87ca82f0.js → render-inlined-styles.dc458558.js} +9 -7
  55. package/packages/_vue3/dist/render-inlined-styles.fb31ff26.cjs +1 -0
  56. package/packages/_vue3/dist/render-repeated-block.c0e57489.js +36 -0
  57. package/packages/_vue3/dist/render-repeated-block.dc67945a.cjs +1 -0
  58. package/packages/_vue3/dist/{render-styles.2274749d.cjs → render-styles.c2fe7073.cjs} +1 -1
  59. package/packages/_vue3/dist/{render-styles.e9da8e6c.js → render-styles.c739f8f5.js} +2 -2
  60. package/packages/_vue3/dist/sdk.cjs +1 -1
  61. package/packages/_vue3/dist/sdk.js +6 -6
  62. package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +5 -5
  63. package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +1 -1
  64. package/packages/_vue3/dist/src/blocks/embed/embed.vue.d.ts +5 -2
  65. package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +1 -1
  66. package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +35 -22
  67. package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +2 -2
  68. package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +11 -0
  69. package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +1 -31
  70. package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +8 -1
  71. package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +3 -3
  72. package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +1 -1
  73. package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +29 -19
  74. package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +1 -1
  75. package/packages/_vue3/dist/src/context/builder.context.d.ts +11 -1
  76. package/packages/_vue3/dist/src/functions/track/helpers.d.ts +5 -0
  77. package/packages/{_vue2/dist/src/functions/track.d.ts → _vue3/dist/src/functions/track/index.d.ts} +5 -10
  78. package/packages/_vue3/dist/src/functions/track/interaction.d.ts +13 -0
  79. package/packages/_vue3/dist/src/helpers/ab-tests.d.ts +1 -1
  80. package/packages/_vue3/dist/src/helpers/cookie.d.ts +1 -1
  81. package/packages/_vue3/dist/src/helpers/localStorage.d.ts +2 -1
  82. package/packages/_vue3/dist/src/helpers/sessionId.d.ts +2 -2
  83. package/packages/_vue3/dist/src/index.d.ts +1 -1
  84. package/packages/_vue3/dist/style.css +1 -1
  85. package/packages/_vue2/dist/block-styles.57bb90ae.cjs +0 -1
  86. package/packages/_vue2/dist/index.edd725b5.cjs +0 -30
  87. package/packages/_vue2/dist/render-block.55447f79.js +0 -251
  88. package/packages/_vue2/dist/render-block.fed38662.cjs +0 -3
  89. package/packages/_vue2/dist/render-component-with-context.6996f337.cjs +0 -1
  90. package/packages/_vue2/dist/render-component-with-context.e7fa8487.js +0 -53
  91. package/packages/_vue2/dist/render-inlined-styles.0be888b3.cjs +0 -1
  92. package/packages/_vue2/dist/render-repeated-block.e916911e.js +0 -53
  93. package/packages/_vue2/dist/render-repeated-block.f6ac2dc0.cjs +0 -1
  94. package/packages/_vue2/dist/src/components/render-block/render-component-with-context.vue.d.ts +0 -114
  95. package/packages/_vue3/dist/block-styles.6b0bbe3d.cjs +0 -1
  96. package/packages/_vue3/dist/index.a102bdda.cjs +0 -30
  97. package/packages/_vue3/dist/render-block.4a0e514b.cjs +0 -3
  98. package/packages/_vue3/dist/render-block.9cdf5af8.js +0 -262
  99. package/packages/_vue3/dist/render-component-with-context.7d2eb137.js +0 -50
  100. package/packages/_vue3/dist/render-component-with-context.a37b552e.cjs +0 -1
  101. package/packages/_vue3/dist/render-inlined-styles.540df9a2.cjs +0 -1
  102. package/packages/_vue3/dist/render-repeated-block.0360d32e.js +0 -48
  103. package/packages/_vue3/dist/render-repeated-block.8da78c07.cjs +0 -1
  104. 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 _, createBlock as w, createCommentVNode as b, Fragment as T, renderList as $, createVNode as q, createElementVNode as B, renderSlot as R, mergeProps as C, 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,36 +135,36 @@ 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(), I = (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(I), S = (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
146
146
  }) => {
147
147
  const o = `.${n} {
148
- ${S(t)}
148
+ ${_(t)}
149
149
  }`;
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.87ca82f0.js").then((e) => e.default).catch((e) => {
158
+ }), ye = () => import("./render-inlined-styles.dc458558.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";
@@ -220,21 +222,21 @@ const de = (e = {}) => {
220
222
  return `
221
223
  @media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
222
224
  .${this.builderBlock.id}-breakpoints {
223
- ${S(this.columnStyleObjects.columns.medium)}
225
+ ${_(this.columnStyleObjects.columns.medium)}
224
226
  }
225
227
 
226
228
  .${this.builderBlock.id}-breakpoints > .builder-column {
227
- ${S(this.columnStyleObjects.column.medium)}
229
+ ${_(this.columnStyleObjects.column.medium)}
228
230
  }
229
231
  }
230
232
 
231
233
  @media (max-width: ${this.getWidthForBreakpointSize("small")}px) {
232
234
  .${this.builderBlock.id}-breakpoints {
233
- ${S(this.columnStyleObjects.columns.small)}
235
+ ${_(this.columnStyleObjects.columns.small)}
234
236
  }
235
237
 
236
238
  .${this.builderBlock.id}-breakpoints > .builder-column {
237
- ${S(this.columnStyleObjects.column.small)}
239
+ ${_(this.columnStyleObjects.column.small)}
238
240
  }
239
241
  },
240
242
  `;
@@ -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-256wrwn33ry`
296
298
  )
297
299
  ),
298
- style: _({
299
- ...e.TARGET === "reactNative" ? s.reactNativeColumnsStyles : {},
300
+ style: w({
301
+ ...r.TARGET === "reactNative" ? s.reactNativeColumnsStyles : {},
300
302
  ...s.columnsCssVars
301
303
  })
302
304
  }, [
303
- e.TARGET !== "reactNative" ? (l(), w(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",
310
- style: _({
311
+ class: "builder-column div-256wrwn33ry-2",
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-cdd596ee"]]);
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,63 +416,62 @@ 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-kd7f8ex7am-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,
434
- style: _({
436
+ style: w({
435
437
  objectPosition: t.backgroundPosition || "center",
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-kd7f8ex7am"
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
- style: _({
453
+ class: "builder-image-sizer div-kd7f8ex7am",
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-7ef88ea3"]]), 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,10 +512,10 @@ 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
- return l(), u("video", C({
518
+ return l(), u("video", S({
518
519
  style: {
519
520
  width: "100%",
520
521
  height: "100%",
@@ -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,10 +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) => {
555
+ if (e === "localhost" || e === "127.0.0.1")
556
+ return e;
544
557
  const n = e.split(".");
545
558
  return n.length > 2 ? n.slice(1).join(".") : e;
546
- }, X = async ({
559
+ }, Z = async ({
547
560
  name: e,
548
561
  canTrack: n
549
562
  }) => {
@@ -552,24 +565,25 @@ const J = Ue(), Ve = (e) => {
552
565
  return n ? (t = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : t.split("=")[1] : void 0;
553
566
  } catch (o) {
554
567
  console.debug("[COOKIE] GET error: ", o);
568
+ return;
555
569
  }
556
- }, We = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).join("; "), Le = [
570
+ }, Ne = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).filter(C).join("; "), ze = [
557
571
  ["secure", ""],
558
572
  ["SameSite", "None"]
559
- ], Ne = ({
573
+ ], Ke = ({
560
574
  name: e,
561
575
  value: n,
562
576
  expires: t
563
577
  }) => {
564
- 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 = [
565
579
  [e, n],
566
580
  ...s,
567
581
  ["path", "/"],
568
- ["domain", Ve(window.location.hostname)],
582
+ ["domain", Me(window.location.hostname)],
569
583
  ...r
570
584
  ];
571
- return We(i);
572
- }, Y = async ({
585
+ return Ne(i);
586
+ }, ee = async ({
573
587
  name: e,
574
588
  value: n,
575
589
  expires: t,
@@ -578,19 +592,19 @@ const J = Ue(), Ve = (e) => {
578
592
  try {
579
593
  if (!o)
580
594
  return;
581
- const r = Ne({ name: e, value: n, expires: t });
595
+ const r = Ke({ name: e, value: n, expires: t });
582
596
  document.cookie = r;
583
597
  } catch (r) {
584
598
  console.warn("[COOKIE] SET error: ", r);
585
599
  }
586
- }, Me = "builderio.variations", Q = (e) => `${Me}.${e}`, ze = ({
600
+ }, He = "builderio.variations", te = (e) => `${He}.${e}`, De = ({
587
601
  contentId: e,
588
602
  canTrack: n
589
- }) => X({ name: Q(e), canTrack: n }), He = ({
603
+ }) => Z({ name: te(e), canTrack: n }), qe = ({
590
604
  contentId: e,
591
605
  canTrack: n,
592
606
  value: t
593
- }) => Y({ name: Q(e), value: t, canTrack: n }), Ke = (e) => I(e.id) && I(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 = ({
594
608
  id: e,
595
609
  variations: n
596
610
  }) => {
@@ -601,7 +615,7 @@ const J = Ue(), Ve = (e) => {
601
615
  if (t += (r = n[s]) == null ? void 0 : r.testRatio, o < t)
602
616
  return s;
603
617
  return e;
604
- }, z = ({
618
+ }, K = ({
605
619
  item: e,
606
620
  testGroupId: n
607
621
  }) => {
@@ -614,69 +628,69 @@ const J = Ue(), Ve = (e) => {
614
628
  testVariationId: t.id,
615
629
  testVariationName: t.name || (t.id === e.id ? "Default" : "")
616
630
  };
617
- }, qe = async ({
631
+ }, Xe = async ({
618
632
  item: e,
619
633
  canTrack: n
620
634
  }) => {
621
- const t = await ze({
635
+ const t = await De({
622
636
  canTrack: n,
623
637
  contentId: e.id
624
- }), o = t ? z({ item: e, testGroupId: t }) : void 0;
638
+ }), o = t ? K({ item: e, testGroupId: t }) : void 0;
625
639
  if (o)
626
640
  return o;
627
641
  {
628
- const r = De({
642
+ const r = Je({
629
643
  variations: e.variations,
630
644
  id: e.id
631
645
  });
632
- return He({
646
+ return qe({
633
647
  contentId: e.id,
634
648
  value: r,
635
649
  canTrack: n
636
650
  }).catch((s) => {
637
651
  console.error("could not store A/B test variation: ", s);
638
- }), z({ item: e, testGroupId: r });
652
+ }), K({ item: e, testGroupId: r });
639
653
  }
640
- }, Ge = async ({
654
+ }, Ye = async ({
641
655
  item: e,
642
656
  canTrack: n
643
657
  }) => {
644
- if (!Ke(e))
658
+ if (!Ge(e))
645
659
  return;
646
- const t = await qe({ item: e, canTrack: n });
660
+ const t = await Xe({ item: e, canTrack: n });
647
661
  Object.assign(e, t);
648
662
  };
649
- function O(e, n = null, t = ".") {
663
+ function A(e, n = null, t = ".") {
650
664
  return Object.keys(e).reduce((o, r) => {
651
665
  const s = e[r], i = [n, r].filter(Boolean).join(t);
652
666
  return [
653
667
  typeof s == "object",
654
668
  s !== null,
655
669
  !(Array.isArray(s) && s.length === 0)
656
- ].every(Boolean) ? { ...o, ...O(s, i, t) } : { ...o, [i]: s };
670
+ ].every(Boolean) ? { ...o, ...A(s, i, t) } : { ...o, [i]: s };
657
671
  }, {});
658
672
  }
659
- const H = "builder.", Je = "options.", Xe = (e) => {
673
+ const H = "builder.", Qe = "options.", Ze = (e) => {
660
674
  const n = {};
661
675
  return e.forEach((t, o) => {
662
676
  n[o] = t;
663
677
  }), n;
664
- }, Ye = (e) => {
678
+ }, et = (e) => {
665
679
  if (!e)
666
680
  return {};
667
- const n = Z(e), t = {};
681
+ const n = ne(e), t = {};
668
682
  return Object.keys(n).forEach((o) => {
669
683
  if (o.startsWith(H)) {
670
- const r = o.replace(H, "").replace(Je, "");
684
+ const r = o.replace(H, "").replace(Qe, "");
671
685
  t[r] = n[o];
672
686
  }
673
687
  }), t;
674
- }, Qe = () => {
688
+ }, tt = () => {
675
689
  if (!f())
676
690
  return {};
677
691
  const e = new URLSearchParams(window.location.search);
678
- return Ye(e);
679
- }, 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) => {
680
694
  const {
681
695
  limit: n = 30,
682
696
  userAttributes: t,
@@ -692,53 +706,59 @@ const H = "builder.", Je = "options.", Xe = (e) => {
692
706
  const d = new URL(
693
707
  `https://cdn.builder.io/api/v2/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${r}&includeRefs=${c}${a ? `&locale=${a}` : ""}`
694
708
  ), m = {
695
- ...Qe(),
696
- ...Z(e.options || {})
697
- }, p = O(m);
709
+ ...tt(),
710
+ ...ne(e.options || {})
711
+ }, p = A(m);
698
712
  for (const h in p)
699
713
  d.searchParams.set(h, String(p[h]));
700
714
  if (t && d.searchParams.set("userAttributes", JSON.stringify(t)), o) {
701
- const h = O({ query: o });
715
+ const h = A({ query: o });
702
716
  for (const v in h)
703
717
  d.searchParams.set(v, JSON.stringify(h[v]));
704
718
  }
705
719
  return d;
706
720
  };
707
- async function ee(e) {
708
- return (await et({ ...e, limit: 1 })).results[0] || null;
721
+ async function oe(e) {
722
+ return (await ot({ ...e, limit: 1 })).results[0] || null;
709
723
  }
710
- async function et(e) {
711
- 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;
712
726
  if (r && Array.isArray(o.results))
713
727
  for (const s of o.results)
714
- await Ge({ item: s, canTrack: r });
728
+ await Ye({ item: s, canTrack: r });
715
729
  return o;
716
730
  }
717
- 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) => {
718
732
  throw console.error(
719
733
  "Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
720
734
  e
721
735
  ), e;
722
- }), nt = {
736
+ }), rt = {
723
737
  name: "builder-symbol",
724
- components: { RenderContent: x(tt) },
738
+ components: { RenderContent: x(st) },
725
739
  props: ["attributes", "symbol", "dynamic"],
726
- data: () => ({ fetchedContent: null }),
740
+ data() {
741
+ return { fetchedContent: null };
742
+ },
727
743
  inject: {
728
- builderContext: "BuilderContext"
744
+ builderContext: $.key
729
745
  },
730
746
  watch: {
731
- onUpdateHook0() {
732
- const e = this.symbol;
733
- e && !e.content && !this.fetchedContent && e.model && ee({
734
- model: e.model,
735
- apiKey: this.builderContext.apiKey,
736
- query: {
737
- id: e.entry
738
- }
739
- }).then((n) => {
740
- this.fetchedContent = n;
741
- });
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
742
762
  }
743
763
  },
744
764
  computed: {
@@ -773,17 +793,17 @@ const tt = () => Promise.resolve().then(() => un).then((e) => e.default).catch((
773
793
  return n;
774
794
  }
775
795
  }
776
- }, ot = ["dataSet"];
777
- function st(e, n, t, o, r, s) {
796
+ }, it = ["dataSet"];
797
+ function at(e, n, t, o, r, s) {
778
798
  var c, a, d, m, p;
779
799
  const i = k("render-content");
780
- return l(), u("div", C({
800
+ return l(), u("div", S({
781
801
  dataSet: {
782
802
  class: s.className
783
803
  },
784
804
  class: s._classStringToObject(s.className)
785
805
  }, t.attributes), [
786
- q(i, {
806
+ X(i, {
787
807
  apiKey: s.builderContext.apiKey,
788
808
  context: s.builderContext.context,
789
809
  customComponents: Object.values(s.builderContext.registeredComponents),
@@ -795,30 +815,30 @@ function st(e, n, t, o, r, s) {
795
815
  model: (p = t.symbol) == null ? void 0 : p.model,
796
816
  content: s.contentToUse
797
817
  }, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
798
- ], 16, ot);
818
+ ], 16, it);
799
819
  }
800
- const rt = /* @__PURE__ */ g(nt, [["render", st]]), it = {
820
+ const ct = /* @__PURE__ */ g(rt, [["render", at]]), lt = {
801
821
  name: "builder-button",
802
822
  props: ["attributes", "text", "link", "openLinkInNewTab"]
803
823
  };
804
- const at = ["href", "target"];
805
- function ct(e, n, t, o, r, s) {
806
- return t.link ? (l(), u("a", C({
824
+ const dt = ["href", "target"];
825
+ function ut(e, n, t, o, r, s) {
826
+ return t.link ? (l(), u("a", S({
807
827
  key: 0,
808
828
  role: "button",
809
829
  href: t.link,
810
830
  target: t.openLinkInNewTab ? "_blank" : void 0
811
- }, t.attributes), W(t.text), 17, at)) : (l(), u("button", C({
831
+ }, t.attributes), W(t.text), 17, dt)) : (l(), u("button", S({
812
832
  key: 1,
813
- class: "button-1yj9n7yt24z"
833
+ class: "button-7jvpanrlkn"
814
834
  }, t.attributes), W(t.text), 17));
815
835
  }
816
- const lt = /* @__PURE__ */ g(it, [["render", ct], ["__scopeId", "data-v-d1c063d9"]]), dt = {
836
+ const mt = /* @__PURE__ */ g(lt, [["render", ut], ["__scopeId", "data-v-2f0d6ac2"]]), pt = {
817
837
  name: "builder-section-component",
818
838
  props: ["attributes", "maxWidth"]
819
839
  };
820
- function ut(e, n, t, o, r, s) {
821
- return l(), u("section", C({
840
+ function ht(e, n, t, o, r, s) {
841
+ return l(), u("section", S({
822
842
  style: {
823
843
  width: "100%",
824
844
  alignSelf: "stretch",
@@ -832,19 +852,19 @@ function ut(e, n, t, o, r, s) {
832
852
  marginRight: "auto"
833
853
  }
834
854
  }, t.attributes), [
835
- R(e.$slots, "default")
855
+ E(e.$slots, "default")
836
856
  ], 16);
837
857
  }
838
- const mt = /* @__PURE__ */ g(dt, [["render", ut]]), pt = {
858
+ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
839
859
  name: "builder-fragment-component",
840
860
  props: []
841
861
  };
842
- function ht(e, n, t, o, r, s) {
862
+ function bt(e, n, t, o, r, s) {
843
863
  return l(), u("span", null, [
844
- R(e.$slots, "default")
864
+ E(e.$slots, "default")
845
865
  ]);
846
866
  }
847
- const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
867
+ const yt = /* @__PURE__ */ g(gt, [["render", bt]]), vt = {
848
868
  name: "Core:Button",
849
869
  builtIn: !0,
850
870
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
@@ -881,10 +901,10 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
881
901
  ],
882
902
  static: !0,
883
903
  noWrap: !0
884
- }, F = (e) => {
904
+ }, B = (e) => {
885
905
  const n = e.toString().trim();
886
906
  return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
887
- }, bt = {
907
+ }, xt = {
888
908
  name: "Columns",
889
909
  builtIn: !0,
890
910
  inputs: [
@@ -1072,7 +1092,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1072
1092
  ]
1073
1093
  }
1074
1094
  ],
1075
- onChange: F((e) => {
1095
+ onChange: B((e) => {
1076
1096
  function n() {
1077
1097
  t.forEach((o) => {
1078
1098
  o.delete("width");
@@ -1109,14 +1129,14 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1109
1129
  advanced: !0
1110
1130
  }
1111
1131
  ]
1112
- }, yt = {
1132
+ }, kt = {
1113
1133
  name: "Fragment",
1114
1134
  static: !0,
1115
1135
  hidden: !0,
1116
1136
  builtIn: !0,
1117
1137
  canHaveChildren: !0,
1118
1138
  noWrap: !0
1119
- }, vt = {
1139
+ }, Ct = {
1120
1140
  name: "Image",
1121
1141
  static: !0,
1122
1142
  builtIn: !0,
@@ -1136,33 +1156,35 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1136
1156
  allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
1137
1157
  required: !0,
1138
1158
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
1139
- onChange: F((e) => {
1140
- e.delete("srcset"), e.delete("noWebp");
1141
- function t(i, c = 6e4) {
1142
- return new Promise((a, d) => {
1143
- const m = document.createElement("img");
1144
- let p = !1;
1145
- m.onload = () => {
1146
- p = !0, a(m);
1147
- }, m.addEventListener("error", (h) => {
1148
- console.warn("Image load failed", h.error), d(h.error);
1149
- }), m.src = i, setTimeout(() => {
1150
- p || d(new Error("Image load timed out"));
1151
- }, c);
1152
- });
1153
- }
1154
- function o(i) {
1155
- return Math.round(i * 1e3) / 1e3;
1159
+ onChange: B(
1160
+ (e) => {
1161
+ e.delete("srcset"), e.delete("noWebp");
1162
+ function t(i, c = 6e4) {
1163
+ return new Promise((a, d) => {
1164
+ const m = document.createElement("img");
1165
+ let p = !1;
1166
+ m.onload = () => {
1167
+ p = !0, a(m);
1168
+ }, m.addEventListener("error", (h) => {
1169
+ console.warn("Image load failed", h.error), d(h.error);
1170
+ }), m.src = i, setTimeout(() => {
1171
+ p || d(new Error("Image load timed out"));
1172
+ }, c);
1173
+ });
1174
+ }
1175
+ function o(i) {
1176
+ return Math.round(i * 1e3) / 1e3;
1177
+ }
1178
+ const r = e.get("image"), s = e.get("aspectRatio");
1179
+ if (fetch(r).then((i) => i.blob()).then((i) => {
1180
+ i.type.includes("svg") && e.set("noWebp", !0);
1181
+ }), r && (!s || s === 0.7041))
1182
+ return t(r).then((i) => {
1183
+ const c = e.get("aspectRatio");
1184
+ e.get("image") === r && (!c || c === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
1185
+ });
1156
1186
  }
1157
- const r = e.get("image"), s = e.get("aspectRatio");
1158
- if (fetch(r).then((i) => i.blob()).then((i) => {
1159
- i.type.includes("svg") && e.set("noWebp", !0);
1160
- }), r && (!s || s === 0.7041))
1161
- return t(r).then((i) => {
1162
- const c = e.get("aspectRatio");
1163
- e.get("image") === r && (!c || c === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
1164
- });
1165
- })
1187
+ )
1166
1188
  },
1167
1189
  {
1168
1190
  name: "backgroundSize",
@@ -1242,7 +1264,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1242
1264
  defaultValue: 0.7041
1243
1265
  }
1244
1266
  ]
1245
- }, xt = {
1267
+ }, St = {
1246
1268
  name: "Core:Section",
1247
1269
  static: !0,
1248
1270
  builtIn: !0,
@@ -1287,7 +1309,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1287
1309
  }
1288
1310
  }
1289
1311
  ]
1290
- }, kt = {
1312
+ }, _t = {
1291
1313
  name: "Symbol",
1292
1314
  noWrap: !0,
1293
1315
  static: !0,
@@ -1326,7 +1348,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1326
1348
  type: "boolean"
1327
1349
  }
1328
1350
  ]
1329
- }, Ct = {
1351
+ }, wt = {
1330
1352
  name: "Text",
1331
1353
  static: !0,
1332
1354
  builtIn: !0,
@@ -1346,7 +1368,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1346
1368
  height: "auto",
1347
1369
  textAlign: "center"
1348
1370
  }
1349
- }, St = {
1371
+ }, It = {
1350
1372
  name: "Video",
1351
1373
  canHaveChildren: !0,
1352
1374
  builtIn: !0,
@@ -1448,7 +1470,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1448
1470
  advanced: !0
1449
1471
  }
1450
1472
  ]
1451
- }, _t = {
1473
+ }, Tt = {
1452
1474
  name: "Embed",
1453
1475
  static: !0,
1454
1476
  builtIn: !0,
@@ -1459,21 +1481,23 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1459
1481
  required: !0,
1460
1482
  defaultValue: "",
1461
1483
  helperText: "e.g. enter a youtube url, google map, etc",
1462
- onChange: F((e) => {
1463
- const n = e.get("url");
1464
- if (n)
1465
- return e.set("content", "Loading..."), fetch(
1466
- `https://iframe.ly/api/iframely?url=${n}&api_key=ae0e60e78201a3f2b0de4b`
1467
- ).then((o) => o.json()).then((o) => {
1468
- e.get("url") === n && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
1469
- }).catch((o) => {
1470
- e.set(
1471
- "content",
1472
- "There was an error embedding this URL, please try again or another URL"
1473
- );
1474
- });
1475
- e.delete("content");
1476
- })
1484
+ onChange: B(
1485
+ (e) => {
1486
+ const n = e.get("url");
1487
+ if (n)
1488
+ return e.set("content", "Loading..."), fetch(
1489
+ `https://iframe.ly/api/iframely?url=${n}&api_key=ae0e60e78201a3f2b0de4b`
1490
+ ).then((o) => o.json()).then((o) => {
1491
+ e.get("url") === n && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
1492
+ }).catch((o) => {
1493
+ e.set(
1494
+ "content",
1495
+ "There was an error embedding this URL, please try again or another URL"
1496
+ );
1497
+ });
1498
+ e.delete("content");
1499
+ }
1500
+ )
1477
1501
  },
1478
1502
  {
1479
1503
  name: "content",
@@ -1482,17 +1506,22 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1482
1506
  hideFromUI: !0
1483
1507
  }
1484
1508
  ]
1485
- }, wt = [
1509
+ }, Rt = [
1486
1510
  "text/javascript",
1487
1511
  "application/javascript",
1488
1512
  "application/ecmascript"
1489
- ], It = (e) => wt.includes(e.type), Tt = {
1513
+ ], Et = (e) => Rt.includes(e.type), jt = {
1490
1514
  name: "builder-embed",
1491
1515
  props: ["content"],
1492
- data: () => ({ scriptsInserted: [], scriptsRun: [], ranInitFn: !1 }),
1516
+ data() {
1517
+ return { scriptsInserted: [], scriptsRun: [], ranInitFn: !1 };
1518
+ },
1493
1519
  watch: {
1494
- onUpdateHook0() {
1495
- 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
1496
1525
  }
1497
1526
  },
1498
1527
  computed: {
@@ -1514,7 +1543,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1514
1543
  this.scriptsInserted.push(t.src);
1515
1544
  const o = document.createElement("script");
1516
1545
  o.async = !0, o.src = t.src, document.head.appendChild(o);
1517
- } else if (It(t) && !this.scriptsRun.includes(t.innerText))
1546
+ } else if (Et(t) && !this.scriptsRun.includes(t.innerText))
1518
1547
  try {
1519
1548
  this.scriptsRun.push(t.innerText), new Function(t.innerText)();
1520
1549
  } catch (o) {
@@ -1523,22 +1552,22 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
1523
1552
  }
1524
1553
  }
1525
1554
  }
1526
- }, Rt = ["innerHTML"];
1527
- function Et(e, n, t, o, r, s) {
1555
+ }, Bt = ["innerHTML"];
1556
+ function Ft(e, n, t, o, r, s) {
1528
1557
  return l(), u("div", {
1529
1558
  class: "builder-embed",
1530
1559
  ref: "elem",
1531
1560
  innerHTML: t.content
1532
- }, null, 8, Rt);
1561
+ }, null, 8, Bt);
1533
1562
  }
1534
- const jt = /* @__PURE__ */ g(Tt, [["render", Et]]);
1535
- function Ft() {
1563
+ const Ot = /* @__PURE__ */ g(jt, [["render", Ft]]);
1564
+ function At() {
1536
1565
  return f() && window.self !== window.top;
1537
1566
  }
1538
1567
  function y() {
1539
- return Ft() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1568
+ return At() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1540
1569
  }
1541
- const Bt = {
1570
+ const Pt = {
1542
1571
  name: "builder-img-component",
1543
1572
  props: [
1544
1573
  "backgroundSize",
@@ -1548,20 +1577,22 @@ const Bt = {
1548
1577
  "image",
1549
1578
  "attributes"
1550
1579
  ],
1551
- data: () => ({ isEditing: y })
1552
- }, At = ["alt", "src"];
1580
+ data() {
1581
+ return { isEditing: y };
1582
+ }
1583
+ }, Ut = ["alt", "src"];
1553
1584
  function $t(e, n, t, o, r, s) {
1554
- return l(), u("img", C({
1585
+ return l(), u("img", S({
1555
1586
  style: {
1556
1587
  objectFit: t.backgroundSize || "cover",
1557
1588
  objectPosition: t.backgroundPosition || "center"
1558
1589
  },
1559
- key: e.isEditing() && t.imgSrc || "default-key",
1590
+ key: r.isEditing() && t.imgSrc || "default-key",
1560
1591
  alt: t.altText,
1561
1592
  src: t.imgSrc || t.image
1562
- }, t.attributes), null, 16, At);
1593
+ }, t.attributes), null, 16, Ut);
1563
1594
  }
1564
- const Ot = /* @__PURE__ */ g(Bt, [["render", $t]]), Pt = {
1595
+ const Vt = /* @__PURE__ */ g(Pt, [["render", $t]]), Lt = {
1565
1596
  name: "Raw:Img",
1566
1597
  hideFromInsertMenu: !0,
1567
1598
  builtIn: !0,
@@ -1577,10 +1608,12 @@ const Ot = /* @__PURE__ */ g(Bt, [["render", $t]]), Pt = {
1577
1608
  ],
1578
1609
  noWrap: !0,
1579
1610
  static: !0
1580
- }, Ut = {
1611
+ }, Wt = {
1581
1612
  name: "builder-custom-code",
1582
1613
  props: ["replaceNodes", "code"],
1583
- data: () => ({ scriptsInserted: [], scriptsRun: [] }),
1614
+ data() {
1615
+ return { scriptsInserted: [], scriptsRun: [] };
1616
+ },
1584
1617
  mounted() {
1585
1618
  this.findAndRunScripts();
1586
1619
  },
@@ -1622,19 +1655,19 @@ const Ot = /* @__PURE__ */ g(Bt, [["render", $t]]), Pt = {
1622
1655
  return n;
1623
1656
  }
1624
1657
  }
1625
- }, Vt = ["innerHTML"];
1626
- function Wt(e, n, t, o, r, s) {
1658
+ }, Mt = ["innerHTML"];
1659
+ function Nt(e, n, t, o, r, s) {
1627
1660
  return l(), u("div", {
1628
1661
  ref: "elem",
1629
- class: E(
1662
+ class: j(
1630
1663
  s._classStringToObject(
1631
1664
  "builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
1632
1665
  )
1633
1666
  ),
1634
1667
  innerHTML: t.code
1635
- }, null, 10, Vt);
1668
+ }, null, 10, Mt);
1636
1669
  }
1637
- const Lt = /* @__PURE__ */ g(Ut, [["render", Wt]]), Nt = {
1670
+ const zt = /* @__PURE__ */ g(Wt, [["render", Nt]]), Kt = {
1638
1671
  name: "Custom Code",
1639
1672
  static: !0,
1640
1673
  builtIn: !0,
@@ -1661,20 +1694,20 @@ const Lt = /* @__PURE__ */ g(Ut, [["render", Wt]]), Nt = {
1661
1694
  advanced: !0
1662
1695
  }
1663
1696
  ]
1664
- }, Mt = () => [
1665
- { component: ye, ...bt },
1666
- { component: Te, ...vt },
1667
- { component: Ot, ...Pt },
1668
- { component: Fe, ...Ct },
1669
- { component: Oe, ...St },
1670
- { component: rt, ...kt },
1671
- { component: lt, ...gt },
1672
- { component: mt, ...xt },
1673
- { component: ft, ...yt },
1674
- { component: jt, ..._t },
1675
- { 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 }
1676
1709
  ];
1677
- function K({
1710
+ function D({
1678
1711
  code: e,
1679
1712
  context: n,
1680
1713
  state: t,
@@ -1711,22 +1744,22 @@ function K({
1711
1744
  );
1712
1745
  }
1713
1746
  }
1714
- function zt() {
1747
+ function Dt() {
1715
1748
  return !f() || y() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1716
1749
  }
1717
- const te = [];
1718
- function kn(e, n) {
1719
- 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(
1720
1753
  "registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
1721
1754
  ), e;
1722
1755
  }
1723
- const Ht = ({
1756
+ const qt = ({
1724
1757
  component: e,
1725
1758
  ...n
1726
1759
  }) => ({
1727
1760
  type: "builder.registerComponent",
1728
- data: Dt(n)
1729
- }), 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 = ({
1730
1763
  inputs: e,
1731
1764
  ...n
1732
1765
  }) => ({
@@ -1735,89 +1768,124 @@ const Ht = ({
1735
1768
  (t) => Object.entries(t).reduce(
1736
1769
  (o, [r, s]) => ({
1737
1770
  ...o,
1738
- [r]: Kt(s)
1771
+ [r]: Gt(s)
1739
1772
  }),
1740
1773
  {}
1741
1774
  )
1742
1775
  )
1743
1776
  });
1744
- function qt() {
1777
+ function Xt() {
1745
1778
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
1746
1779
  const n = Math.random() * 16 | 0;
1747
1780
  return (e == "x" ? n : n & 3 | 8).toString(16);
1748
1781
  });
1749
1782
  }
1750
- function ne() {
1751
- return qt().replace(/-/g, "");
1783
+ function re() {
1784
+ return Xt().replace(/-/g, "");
1752
1785
  }
1753
- const oe = "builderSessionId", Gt = async ({ canTrack: e }) => {
1786
+ const ie = "builderSessionId", Yt = async ({
1787
+ canTrack: e
1788
+ }) => {
1754
1789
  if (!e)
1755
1790
  return;
1756
- const n = await X({
1757
- name: oe,
1791
+ const n = await Z({
1792
+ name: ie,
1758
1793
  canTrack: e
1759
1794
  });
1760
- if (I(n))
1795
+ if (C(n))
1761
1796
  return n;
1762
1797
  {
1763
- const t = Jt();
1764
- Xt({ id: t, canTrack: e });
1798
+ const t = Qt();
1799
+ return Zt({ id: t, canTrack: e }), t;
1765
1800
  }
1766
- }, Jt = () => ne(), Xt = ({
1801
+ }, Qt = () => re(), Zt = ({
1767
1802
  id: e,
1768
1803
  canTrack: n
1769
- }) => 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 = ({
1770
1805
  key: e,
1771
1806
  canTrack: n
1772
1807
  }) => {
1773
1808
  var t;
1774
1809
  try {
1775
- 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;
1776
1811
  } catch (o) {
1777
1812
  console.debug("[LocalStorage] GET error: ", o);
1813
+ return;
1778
1814
  }
1779
- }, Qt = ({
1815
+ }, tn = ({
1780
1816
  key: e,
1781
1817
  canTrack: n,
1782
1818
  value: t
1783
1819
  }) => {
1784
1820
  var o;
1785
1821
  try {
1786
- n && ((o = se()) == null || o.setItem(e, t));
1822
+ n && ((o = ae()) == null || o.setItem(e, t));
1787
1823
  } catch (r) {
1788
1824
  console.debug("[LocalStorage] SET error: ", r);
1789
1825
  }
1790
- }, re = "builderVisitorId", Zt = ({ canTrack: e }) => {
1826
+ }, ce = "builderVisitorId", nn = ({ canTrack: e }) => {
1791
1827
  if (!e)
1792
1828
  return;
1793
- const n = Yt({
1794
- key: re,
1829
+ const n = en({
1830
+ key: ce,
1795
1831
  canTrack: e
1796
1832
  });
1797
- if (I(n))
1833
+ if (C(n))
1798
1834
  return n;
1799
1835
  {
1800
- const t = en();
1801
- tn({ id: t, canTrack: e });
1836
+ const t = on();
1837
+ return sn({ id: t, canTrack: e }), t;
1802
1838
  }
1803
- }, en = () => ne(), tn = ({
1839
+ }, on = () => re(), sn = ({
1804
1840
  id: e,
1805
1841
  canTrack: n
1806
- }) => Qt({
1807
- key: re,
1842
+ }) => tn({
1843
+ key: ce,
1808
1844
  value: e,
1809
1845
  canTrack: n
1810
- }), 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 ({
1811
1879
  canTrack: e
1812
1880
  }) => {
1813
1881
  if (!e)
1814
1882
  return { visitorId: void 0, sessionId: void 0 };
1815
- const n = await Gt({ canTrack: e }), t = Zt({ canTrack: e });
1883
+ const n = await Yt({ canTrack: e }), t = nn({ canTrack: e });
1816
1884
  return {
1817
1885
  sessionId: n,
1818
1886
  visitorId: t
1819
1887
  };
1820
- }, on = async ({
1888
+ }, dn = async ({
1821
1889
  type: e,
1822
1890
  canTrack: n,
1823
1891
  apiKey: t,
@@ -1827,8 +1895,12 @@ const oe = "builderSessionId", Gt = async ({ canTrack: e }) => {
1827
1895
  type: e,
1828
1896
  data: {
1829
1897
  ...r,
1830
- metadata: JSON.stringify(o),
1831
- ...await nn({ canTrack: n }),
1898
+ metadata: {
1899
+ url: location.href,
1900
+ ...o
1901
+ },
1902
+ ...await ln({ canTrack: n }),
1903
+ userAttributes: cn(),
1832
1904
  ownerId: t
1833
1905
  }
1834
1906
  });
@@ -1839,11 +1911,11 @@ async function P(e) {
1839
1911
  );
1840
1912
  return;
1841
1913
  }
1842
- if (!!e.canTrack && !y() && !!(f() || j === "reactNative"))
1914
+ if (!!e.canTrack && !y() && !!(f() || T === "reactNative"))
1843
1915
  return fetch("https://builder.io/api/v1/track", {
1844
1916
  method: "POST",
1845
1917
  body: JSON.stringify({
1846
- events: [await on(e)]
1918
+ events: [await dn(e)]
1847
1919
  }),
1848
1920
  headers: {
1849
1921
  "content-type": "application/json"
@@ -1853,21 +1925,58 @@ async function P(e) {
1853
1925
  console.error("Failed to track: ", n);
1854
1926
  });
1855
1927
  }
1856
- 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 q(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 = q(o / t.width), i = q(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) => {
1857
1966
  throw console.error(
1858
1967
  "Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
1859
1968
  e
1860
1969
  ), e;
1861
- }), rn = () => import("./render-styles.e9da8e6c.js").then((e) => e.default).catch((e) => {
1970
+ }), fn = () => import("./render-styles.c739f8f5.js").then((e) => e.default).catch((e) => {
1862
1971
  throw console.error(
1863
1972
  "Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
1864
1973
  e
1865
1974
  ), e;
1866
- }), an = {
1975
+ }), gn = {
1867
1976
  name: "render-content",
1868
1977
  components: {
1869
- RenderContentStyles: x(rn),
1870
- RenderBlocks: x(sn)
1978
+ RenderContentStyles: x(fn),
1979
+ RenderBlocks: x(hn)
1871
1980
  },
1872
1981
  props: [
1873
1982
  "content",
@@ -1880,32 +1989,39 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
1880
1989
  "apiKey",
1881
1990
  "includeRefs"
1882
1991
  ],
1883
- data: () => ({
1884
- forceReRenderCount: 0,
1885
- overrideContent: null,
1886
- update: 0,
1887
- useBreakpoints: null,
1888
- overrideState: {}
1889
- }),
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
+ },
1890
2016
  provide() {
1891
2017
  const e = this;
1892
2018
  return {
1893
- BuilderContext: {
1894
- get content() {
1895
- return e.useContent;
1896
- },
1897
- get state() {
1898
- return e.contentState;
1899
- },
1900
- get context() {
1901
- return e.contextContext;
1902
- },
1903
- get apiKey() {
1904
- return e.apiKey;
1905
- },
1906
- get registeredComponents() {
1907
- return e.allRegisteredComponents;
1908
- }
2019
+ [$.key]: {
2020
+ content: e.useContent,
2021
+ state: e.contentState,
2022
+ context: e.contextContext,
2023
+ apiKey: e.apiKey,
2024
+ registeredComponents: e.allRegisteredComponents
1909
2025
  }
1910
2026
  };
1911
2027
  },
@@ -1914,7 +2030,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
1914
2030
  if (this.apiKey || console.error(
1915
2031
  "[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
1916
2032
  ), f()) {
1917
- if (y() && (this.forceReRenderCount = this.forceReRenderCount + 1, le(), de({
2033
+ if (y() && (this.forceReRenderCount = this.forceReRenderCount + 1, me(), pe({
1918
2034
  ...this.locale ? {
1919
2035
  locale: this.locale
1920
2036
  } : {},
@@ -1924,7 +2040,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
1924
2040
  }), Object.values(this.allRegisteredComponents).forEach(
1925
2041
  (t) => {
1926
2042
  var r;
1927
- const o = Ht(t);
2043
+ const o = qt(t);
1928
2044
  (r = window.parent) == null || r.postMessage(o, "*");
1929
2045
  }
1930
2046
  ), window.addEventListener("message", this.processMessage), window.addEventListener(
@@ -1940,30 +2056,36 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
1940
2056
  variationId: t !== o ? t : void 0
1941
2057
  });
1942
2058
  }
1943
- if (zt()) {
1944
- const t = new URL(location.href).searchParams;
1945
- if (this.model && t.get("builder.preview") === this.model) {
1946
- const o = t.get("apiKey") || t.get("builder.space");
1947
- o && ee({
1948
- model: this.model,
1949
- apiKey: o
1950
- }).then((r) => {
1951
- r && (this.overrideContent = r);
1952
- });
1953
- }
2059
+ if (Dt()) {
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
+ });
1954
2067
  }
1955
2068
  this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
1956
2069
  }
1957
2070
  },
1958
2071
  watch: {
1959
- onUpdateHook0() {
1960
- this.evaluateJsCode();
2072
+ onUpdateHook0: {
2073
+ handler() {
2074
+ this.evaluateJsCode();
2075
+ },
2076
+ immediate: !0
1961
2077
  },
1962
- onUpdateHook1() {
1963
- this.runHttpRequests();
2078
+ onUpdateHook1: {
2079
+ handler() {
2080
+ this.runHttpRequests();
2081
+ },
2082
+ immediate: !0
1964
2083
  },
1965
- onUpdateHook2() {
1966
- this.emitStateUpdate();
2084
+ onUpdateHook2: {
2085
+ handler() {
2086
+ this.emitStateUpdate();
2087
+ },
2088
+ immediate: !0
1967
2089
  }
1968
2090
  },
1969
2091
  unmounted() {
@@ -1974,24 +2096,22 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
1974
2096
  },
1975
2097
  computed: {
1976
2098
  useContent() {
1977
- var n, t, o, r, s, i, c, a;
1978
- return !this.content && !this.overrideContent ? void 0 : {
1979
- ...this.content,
1980
- ...this.overrideContent,
1981
- data: {
1982
- ...(n = this.content) == null ? void 0 : n.data,
1983
- ...this.data,
1984
- ...(t = this.overrideContent) == null ? void 0 : t.data
1985
- },
1986
- meta: {
1987
- ...(o = this.content) == null ? void 0 : o.meta,
1988
- ...(r = this.overrideContent) == null ? void 0 : r.meta,
1989
- 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)
1990
- }
1991
- };
1992
- },
1993
- canTrackToUse() {
1994
- return 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
+ };
1995
2115
  },
1996
2116
  contentState() {
1997
2117
  var e, n;
@@ -2004,29 +2124,10 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
2004
2124
  ...this.overrideState
2005
2125
  };
2006
2126
  },
2007
- contextContext() {
2008
- return this.context || {};
2009
- },
2010
- allRegisteredComponents() {
2011
- return [
2012
- ...Mt(),
2013
- ...te,
2014
- ...this.customComponents || []
2015
- ].reduce(
2016
- (t, o) => ({
2017
- ...t,
2018
- [o.name]: o
2019
- }),
2020
- {}
2021
- );
2022
- },
2023
- httpReqsData() {
2024
- return {};
2025
- },
2026
2127
  shouldRenderContentStyles() {
2027
2128
  var e, n, t, o, r;
2028
2129
  return Boolean(
2029
- (((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"
2030
2131
  );
2031
2132
  },
2032
2133
  onUpdateHook0() {
@@ -2071,7 +2172,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
2071
2172
  evaluateJsCode() {
2072
2173
  var n, t;
2073
2174
  const e = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.jsCode;
2074
- e && K({
2175
+ e && D({
2075
2176
  code: e,
2076
2177
  context: this.contextContext,
2077
2178
  state: this.contentState
@@ -2086,14 +2187,17 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
2086
2187
  canTrack: this.canTrackToUse,
2087
2188
  contentId: r,
2088
2189
  apiKey: this.apiKey,
2089
- variationId: o !== r ? o : void 0
2190
+ variationId: o !== r ? o : void 0,
2191
+ ...pn(e),
2192
+ unique: !this.clicked
2090
2193
  });
2091
2194
  }
2195
+ this.clicked || (this.clicked = !0);
2092
2196
  },
2093
2197
  evalExpression(e) {
2094
2198
  return e.replace(
2095
2199
  /{{([^}]+)}}/g,
2096
- (n, t) => K({
2200
+ (n, t) => D({
2097
2201
  code: t,
2098
2202
  context: this.contextContext,
2099
2203
  state: this.contentState
@@ -2101,7 +2205,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
2101
2205
  );
2102
2206
  },
2103
2207
  handleRequest({ url: e, key: n }) {
2104
- J(e).then((t) => t.json()).then((t) => {
2208
+ Q(e).then((t) => t.json()).then((t) => {
2105
2209
  const o = {
2106
2210
  ...this.overrideState,
2107
2211
  [n]: t
@@ -2137,50 +2241,50 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
2137
2241
  );
2138
2242
  }
2139
2243
  }
2140
- }, cn = ["builder-content-id", "builder-model"];
2141
- function ln(e, n, t, o, r, s) {
2244
+ }, bn = ["builder-content-id", "builder-model"];
2245
+ function yn(e, n, t, o, r, s) {
2142
2246
  var a, d, m, p, h, v, V;
2143
2247
  const i = k("render-content-styles"), c = k("render-blocks");
2144
2248
  return s.useContent ? (l(), u("div", {
2145
2249
  key: 0,
2146
2250
  ref: "elementRef",
2147
- onClick: n[0] || (n[0] = (ae) => s.onClick(ae)),
2251
+ onClick: n[0] || (n[0] = (de) => s.onClick(de)),
2148
2252
  "builder-content-id": (a = s.useContent) == null ? void 0 : a.id,
2149
2253
  "builder-model": t.model
2150
2254
  }, [
2151
- s.shouldRenderContentStyles ? (l(), w(i, {
2255
+ s.shouldRenderContentStyles ? (l(), I(i, {
2152
2256
  key: 0,
2153
2257
  cssCode: (m = (d = s.useContent) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
2154
2258
  customFonts: (h = (p = s.useContent) == null ? void 0 : p.data) == null ? void 0 : h.customFonts
2155
2259
  }, null, 8, ["cssCode", "customFonts"])) : b("", !0),
2156
- (l(), w(c, {
2260
+ (l(), I(c, {
2157
2261
  blocks: (V = (v = s.useContent) == null ? void 0 : v.data) == null ? void 0 : V.blocks,
2158
- key: e.forceReRenderCount
2262
+ key: r.forceReRenderCount
2159
2263
  }, null, 8, ["blocks"]))
2160
- ], 8, cn)) : b("", !0);
2264
+ ], 8, bn)) : b("", !0);
2161
2265
  }
2162
- 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({
2163
2267
  __proto__: null,
2164
- default: dn
2165
- }, Symbol.toStringTag, { value: "Module" })), mn = () => import("./block-styles.fee20f95.js").then((e) => e.default).catch((e) => {
2268
+ default: vn
2269
+ }, Symbol.toStringTag, { value: "Module" })), kn = () => import("./block-styles.b1836f48.js").then((e) => e.default).catch((e) => {
2166
2270
  throw console.error(
2167
2271
  "Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
2168
2272
  e
2169
2273
  ), e;
2170
- }), pn = () => import("./render-block.9cdf5af8.js").then((e) => e.default).catch((e) => {
2274
+ }), Cn = () => import("./render-block.bd00521b.js").then((e) => e.default).catch((e) => {
2171
2275
  throw console.error(
2172
2276
  "Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
2173
2277
  e
2174
2278
  ), e;
2175
- }), hn = {
2279
+ }), Sn = {
2176
2280
  name: "render-blocks",
2177
2281
  components: {
2178
- RenderBlock: x(pn),
2179
- BlockStyles: x(mn)
2282
+ RenderBlock: x(Cn),
2283
+ BlockStyles: x(kn)
2180
2284
  },
2181
2285
  props: ["blocks", "parent", "path", "styleProp"],
2182
2286
  inject: {
2183
- builderContext: "BuilderContext"
2287
+ builderContext: $.key
2184
2288
  },
2185
2289
  computed: {
2186
2290
  className() {
@@ -2226,77 +2330,78 @@ const dn = /* @__PURE__ */ g(an, [["render", ln]]), un = /* @__PURE__ */ Object.
2226
2330
  }
2227
2331
  }
2228
2332
  };
2229
- const fn = ["builder-path", "builder-parent-id", "dataSet"];
2230
- 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) {
2231
2335
  const i = k("render-block"), c = k("block-styles");
2232
2336
  return l(), u("div", {
2233
- class: E(s._classStringToObject(s.className + " div-7fq9d0i380")),
2337
+ class: j(s._classStringToObject(s.className + " div-2oa2wtipkzk")),
2234
2338
  "builder-path": t.path,
2235
2339
  "builder-parent-id": t.parent,
2236
2340
  dataSet: {
2237
2341
  class: s.className
2238
2342
  },
2239
- style: _(t.styleProp),
2343
+ style: w(t.styleProp),
2240
2344
  onClick: n[0] || (n[0] = (a) => s.onClick()),
2241
2345
  onMouseenter: n[1] || (n[1] = (a) => s.onMouseEnter())
2242
2346
  }, [
2243
- t.blocks ? (l(!0), u(T, { key: 0 }, $(t.blocks, (a, d) => (l(), w(i, {
2347
+ t.blocks ? (l(!0), u(R, { key: 0 }, O(t.blocks, (a, d) => (l(), I(i, {
2244
2348
  key: "render-block-" + a.id,
2245
2349
  block: a,
2246
2350
  context: s.builderContext
2247
2351
  }, null, 8, ["block", "context"]))), 128)) : b("", !0),
2248
- t.blocks ? (l(!0), u(T, { key: 1 }, $(t.blocks, (a, d) => (l(), w(c, {
2352
+ t.blocks ? (l(!0), u(R, { key: 1 }, O(t.blocks, (a, d) => (l(), I(c, {
2249
2353
  key: "block-style-" + a.id,
2250
2354
  block: a,
2251
2355
  context: s.builderContext
2252
2356
  }, null, 8, ["block", "context"]))), 128)) : b("", !0)
2253
- ], 46, fn);
2357
+ ], 46, _n);
2254
2358
  }
2255
- 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-0924b77d"]]), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2256
2360
  __proto__: null,
2257
- default: bn
2258
- }, Symbol.toStringTag, { value: "Module" })), D = {};
2259
- function Sn(e) {
2361
+ default: In
2362
+ }, Symbol.toStringTag, { value: "Module" })), J = {};
2363
+ function Fn(e) {
2260
2364
  if (f()) {
2261
- Object.assign(D, e);
2365
+ Object.assign(J, e);
2262
2366
  const n = {
2263
2367
  type: "builder.settingsChange",
2264
- data: D
2368
+ data: J
2265
2369
  };
2266
2370
  parent.postMessage(n, "*");
2267
2371
  }
2268
2372
  }
2269
2373
  export {
2270
- lt as B,
2271
- ye as C,
2272
- ft as F,
2273
- Te as I,
2274
- rt as S,
2275
- j as T,
2276
- 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,
2277
2381
  g as _,
2278
- vn as a,
2279
- pe as b,
2280
- xn as c,
2281
- Fe as d,
2282
- K as e,
2382
+ Rn as a,
2383
+ ge as b,
2384
+ En as c,
2385
+ Oe as d,
2386
+ D as e,
2283
2387
  U as f,
2284
- ue as g,
2388
+ he as g,
2285
2389
  mt as h,
2286
- bn as i,
2287
- y as j,
2288
- zt as k,
2289
- te as l,
2290
- kn as m,
2291
- Ht as n,
2292
- ce as o,
2293
- ee as p,
2294
- et as q,
2295
- dn as r,
2296
- Sn as s,
2297
- Cn as t,
2298
- Xe as u,
2299
- Ye as v,
2300
- Qe as w,
2301
- Z as x
2390
+ ft as i,
2391
+ In as j,
2392
+ y as k,
2393
+ Dt as l,
2394
+ se as m,
2395
+ jn as n,
2396
+ qt 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
2302
2407
  };