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

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 (66) hide show
  1. package/package.json +4 -3
  2. package/packages/_vue2/dist/block-styles.234651b2.js +86 -0
  3. package/packages/_vue2/dist/block-styles.c531694e.cjs +6 -0
  4. package/packages/_vue2/dist/env.d.ts +1 -0
  5. package/packages/_vue2/dist/get-processed-block.1ba91586.js +40 -0
  6. package/packages/_vue2/dist/get-processed-block.6a23a7de.cjs +1 -0
  7. package/packages/_vue2/dist/{index.e1356b24.js → index.19474a4f.js} +307 -285
  8. package/packages/_vue2/dist/index.e85eb7cf.cjs +4 -0
  9. package/packages/_vue2/dist/render-block.3cf39e0e.js +237 -0
  10. package/packages/_vue2/dist/render-block.4f260352.cjs +3 -0
  11. package/packages/_vue2/dist/render-component-with-context.dcb1f5da.js +53 -0
  12. package/packages/_vue2/dist/render-component-with-context.f76bfccc.cjs +1 -0
  13. package/packages/_vue2/dist/{render-component.76541f08.js → render-component.56e5101d.js} +14 -14
  14. package/packages/_vue2/dist/render-component.a9d4efb1.cjs +1 -0
  15. package/packages/_vue2/dist/{render-inlined-styles.0a71b4a1.cjs → render-inlined-styles.9b6439ce.cjs} +1 -1
  16. package/packages/_vue2/dist/{render-inlined-styles.fb54d112.js → render-inlined-styles.b6534355.js} +1 -1
  17. package/packages/_vue2/dist/{render-repeated-block.caf201fb.js → render-repeated-block.3e536590.js} +11 -8
  18. package/packages/_vue2/dist/render-repeated-block.95861e2e.cjs +1 -0
  19. package/packages/_vue2/dist/{render-styles.76adf086.cjs → render-styles.9d4787d0.cjs} +1 -1
  20. package/packages/_vue2/dist/{render-styles.79b15aed.js → render-styles.ad89c45c.js} +8 -8
  21. package/packages/_vue2/dist/sdk.cjs +1 -1
  22. package/packages/_vue2/dist/sdk.d.ts +1 -0
  23. package/packages/_vue2/dist/sdk.js +1 -1
  24. package/packages/_vue2/dist/style.css +1 -1
  25. package/packages/_vue3/dist/block-styles.88005ace.js +83 -0
  26. package/packages/_vue3/dist/block-styles.e3632a69.cjs +6 -0
  27. package/packages/_vue3/dist/env.d.ts +1 -0
  28. package/packages/_vue3/dist/get-processed-block.0d475a13.js +40 -0
  29. package/packages/_vue3/dist/get-processed-block.c75eb6d1.cjs +1 -0
  30. package/packages/_vue3/dist/{index.eb0e01ba.js → index.2472a241.js} +315 -304
  31. package/packages/_vue3/dist/index.e7c6fe34.cjs +4 -0
  32. package/packages/_vue3/dist/render-block.593fc01c.js +258 -0
  33. package/packages/_vue3/dist/render-block.92199649.cjs +3 -0
  34. package/packages/_vue3/dist/render-component-with-context.f5cab824.js +45 -0
  35. package/packages/_vue3/dist/render-component-with-context.fb4f86a9.cjs +1 -0
  36. package/packages/_vue3/dist/render-component.06b4587b.cjs +1 -0
  37. package/packages/_vue3/dist/{render-component.963a01c2.js → render-component.d5c26257.js} +15 -16
  38. package/packages/_vue3/dist/render-inlined-styles.3fab5467.cjs +1 -0
  39. package/packages/_vue3/dist/{render-inlined-styles.1c41d49e.js → render-inlined-styles.be1aba8b.js} +7 -8
  40. package/packages/_vue3/dist/{render-repeated-block.760bb69a.js → render-repeated-block.1d1c64a8.js} +11 -9
  41. package/packages/_vue3/dist/render-repeated-block.d1580cb5.cjs +1 -0
  42. package/packages/_vue3/dist/{render-styles.c0cc9565.cjs → render-styles.4717b645.cjs} +2 -2
  43. package/packages/_vue3/dist/{render-styles.750ea842.js → render-styles.efaaccdf.js} +14 -15
  44. package/packages/_vue3/dist/sdk.cjs +1 -1
  45. package/packages/_vue3/dist/sdk.d.ts +1 -0
  46. package/packages/_vue3/dist/sdk.js +1 -1
  47. package/packages/_vue3/dist/style.css +1 -1
  48. package/packages/_vue2/dist/block-styles.7900ea80.cjs +0 -10
  49. package/packages/_vue2/dist/block-styles.dd3d70e3.js +0 -56
  50. package/packages/_vue2/dist/get-processed-block.14848083.cjs +0 -1
  51. package/packages/_vue2/dist/get-processed-block.eda4b627.js +0 -57
  52. package/packages/_vue2/dist/index.9247eff2.cjs +0 -4
  53. package/packages/_vue2/dist/render-block.a2f51c18.js +0 -237
  54. package/packages/_vue2/dist/render-block.e4f18476.cjs +0 -3
  55. package/packages/_vue2/dist/render-component.fc56f8dc.cjs +0 -1
  56. package/packages/_vue2/dist/render-repeated-block.0990371f.cjs +0 -1
  57. package/packages/_vue3/dist/block-styles.1f1fb83d.js +0 -54
  58. package/packages/_vue3/dist/block-styles.eb8f30fe.cjs +0 -10
  59. package/packages/_vue3/dist/get-processed-block.b7ff491d.cjs +0 -1
  60. package/packages/_vue3/dist/get-processed-block.c491559e.js +0 -57
  61. package/packages/_vue3/dist/index.36507004.cjs +0 -4
  62. package/packages/_vue3/dist/render-block.3cdd0c66.js +0 -254
  63. package/packages/_vue3/dist/render-block.98541a38.cjs +0 -3
  64. package/packages/_vue3/dist/render-component.442d659d.cjs +0 -1
  65. package/packages/_vue3/dist/render-inlined-styles.662df301.cjs +0 -1
  66. package/packages/_vue3/dist/render-repeated-block.2212c878.cjs +0 -1
@@ -1,11 +1,17 @@
1
- const _ = "reactNative";
2
- function u() {
1
+ const y = "vue2";
2
+ function h() {
3
3
  return typeof window < "u" && typeof document < "u";
4
4
  }
5
- const w = {};
6
- function z(t, e) {
7
- let n = w[t];
8
- if (n || (n = w[t] = []), n.push(e), u()) {
5
+ function H() {
6
+ return h() && window.self !== window.top;
7
+ }
8
+ function f() {
9
+ return H() && window.location.search.indexOf("builder.frameEditing=") !== -1;
10
+ }
11
+ const k = {};
12
+ function q(t, e) {
13
+ let n = k[t];
14
+ if (n || (n = k[t] = []), n.push(e), h()) {
9
15
  const o = {
10
16
  type: "builder.register",
11
17
  data: {
@@ -20,59 +26,71 @@ function z(t, e) {
20
26
  }
21
27
  }
22
28
  }
23
- const q = () => {
24
- z("insertMenu", {
29
+ const D = () => {
30
+ q("insertMenu", {
25
31
  name: "_default",
26
32
  default: !0,
27
33
  items: [
28
34
  { name: "Box" },
29
35
  { name: "Text" },
30
36
  { name: "Image" },
31
- { name: "Columns" }
37
+ { name: "Columns" },
38
+ { name: "Core:Section" },
39
+ { name: "Core:Button" },
40
+ { name: "Embed" },
41
+ { name: "Custom Code" }
32
42
  ]
33
43
  });
34
- }, D = () => {
35
- var t;
36
- u() && ((t = window.parent) == null || t.postMessage(
44
+ }, K = (t) => {
45
+ var e, n;
46
+ f() && ((e = window.parent) == null || e.postMessage(
37
47
  {
38
48
  type: "builder.sdkInfo",
39
49
  data: {
40
- target: _,
50
+ target: y,
41
51
  supportsPatchUpdates: !1
42
52
  }
43
53
  },
44
54
  "*"
45
- ), window.addEventListener("message", ({ data: e }) => {
46
- var n, o;
47
- if (e)
48
- switch (e.type) {
55
+ ), (n = window.parent) == null || n.postMessage(
56
+ {
57
+ type: "builder.updateContent",
58
+ data: {
59
+ options: t
60
+ }
61
+ },
62
+ "*"
63
+ ), window.addEventListener("message", ({ data: o }) => {
64
+ var s, r;
65
+ if (o)
66
+ switch (o.type) {
49
67
  case "builder.evaluate": {
50
- const s = e.data.text, r = e.data.arguments || [], a = e.data.id, c = new Function(s);
51
- let i, l = null;
68
+ const a = o.data.text, c = o.data.arguments || [], i = o.data.id, d = new Function(a);
69
+ let l, m = null;
52
70
  try {
53
- i = c.apply(null, r);
54
- } catch (d) {
55
- l = d;
71
+ l = d.apply(null, c);
72
+ } catch (u) {
73
+ m = u;
56
74
  }
57
- l ? (n = window.parent) == null || n.postMessage(
75
+ m ? (s = window.parent) == null || s.postMessage(
58
76
  {
59
77
  type: "builder.evaluateError",
60
- data: { id: a, error: l.message }
78
+ data: { id: i, error: m.message }
61
79
  },
62
80
  "*"
63
- ) : i && typeof i.then == "function" ? i.then((d) => {
64
- var f;
65
- (f = window.parent) == null || f.postMessage(
81
+ ) : l && typeof l.then == "function" ? l.then((u) => {
82
+ var g;
83
+ (g = window.parent) == null || g.postMessage(
66
84
  {
67
85
  type: "builder.evaluateResult",
68
- data: { id: a, result: d }
86
+ data: { id: i, result: u }
69
87
  },
70
88
  "*"
71
89
  );
72
- }).catch(console.error) : (o = window.parent) == null || o.postMessage(
90
+ }).catch(console.error) : (r = window.parent) == null || r.postMessage(
73
91
  {
74
92
  type: "builder.evaluateResult",
75
- data: { result: i, id: a }
93
+ data: { result: l, id: i }
76
94
  },
77
95
  "*"
78
96
  );
@@ -81,20 +99,20 @@ const q = () => {
81
99
  }
82
100
  }));
83
101
  };
84
- function y(t) {
102
+ function x(t) {
85
103
  return t;
86
104
  }
87
105
  function cn(t) {
88
106
  return t;
89
107
  }
90
- const K = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t) => {
108
+ const G = () => Promise.resolve().then(() => z).then((t) => t.default).catch((t) => {
91
109
  throw console.error(
92
110
  "Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
93
111
  t
94
112
  ), t;
95
113
  }), J = {
96
114
  name: "builder-columns",
97
- components: { "render-blocks": K },
115
+ components: { RenderBlocks: G },
98
116
  props: [
99
117
  "space",
100
118
  "columns",
@@ -102,7 +120,7 @@ const K = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t)
102
120
  "reverseColumnsWhenStacked",
103
121
  "builderBlock"
104
122
  ],
105
- data: () => ({ markMutable: y }),
123
+ data: () => ({ markMutable: x }),
106
124
  computed: {
107
125
  columnsCssVars() {
108
126
  const t = this.stackColumnsAt === "never" ? "inherit" : this.reverseColumnsWhenStacked ? "column-reverse" : "column";
@@ -145,83 +163,85 @@ const K = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t)
145
163
  function p(t, e, n, o, s, r, a, c) {
146
164
  var i = typeof t == "function" ? t.options : t;
147
165
  e && (i.render = e, i.staticRenderFns = n, i._compiled = !0), o && (i.functional = !0), r && (i._scopeId = "data-v-" + r);
148
- var l;
149
- if (a ? (l = function(m) {
150
- m = m || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !m && typeof __VUE_SSR_CONTEXT__ < "u" && (m = __VUE_SSR_CONTEXT__), s && s.call(this, m), m && m._registeredComponents && m._registeredComponents.add(a);
151
- }, i._ssrRegister = l) : s && (l = c ? function() {
166
+ var d;
167
+ if (a ? (d = function(u) {
168
+ u = u || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !u && typeof __VUE_SSR_CONTEXT__ < "u" && (u = __VUE_SSR_CONTEXT__), s && s.call(this, u), u && u._registeredComponents && u._registeredComponents.add(a);
169
+ }, i._ssrRegister = d) : s && (d = c ? function() {
152
170
  s.call(
153
171
  this,
154
172
  (i.functional ? this.parent : this).$root.$options.shadowRoot
155
173
  );
156
- } : s), l)
174
+ } : s), d)
157
175
  if (i.functional) {
158
- i._injectStyles = l;
159
- var d = i.render;
160
- i.render = function(H, C) {
161
- return l.call(C), d(H, C);
176
+ i._injectStyles = d;
177
+ var l = i.render;
178
+ i.render = function(g, w) {
179
+ return d.call(w), l(g, w);
162
180
  };
163
181
  } else {
164
- var f = i.beforeCreate;
165
- i.beforeCreate = f ? [].concat(f, l) : [l];
182
+ var m = i.beforeCreate;
183
+ i.beforeCreate = m ? [].concat(m, d) : [d];
166
184
  }
167
185
  return {
168
186
  exports: t,
169
187
  options: i
170
188
  };
171
189
  }
172
- var G = function() {
190
+ var X = function() {
173
191
  var e = this, n = e._self._c;
174
- return n("div", { staticClass: "builder-columns div-20351ewpue7", style: e.columnsCssVars }, e._l(e.columns, function(o, s) {
175
- return n("div", { key: s, staticClass: "builder-column div-20351ewpue7-2", style: {
192
+ return n("div", { staticClass: "builder-columns div-t9spj7joih", style: e.columnsCssVars }, e._l(e.columns, function(o, s) {
193
+ return n("div", { key: s, staticClass: "builder-column div-t9spj7joih-2", style: {
176
194
  width: e.getColumnCssWidth(s),
177
195
  marginLeft: `${s === 0 ? 0 : e.getGutterSize()}px`,
178
196
  ...e.columnCssVars
179
- } }, [n("render-blocks", { attrs: { blocks: e.markMutable(o.blocks), path: `component.options.columns.${s}.blocks`, parent: e.builderBlock.id } })], 1);
197
+ } }, [n("render-blocks", { style: {
198
+ flexGrow: "1"
199
+ }, attrs: { blocks: e.markMutable(o.blocks), path: `component.options.columns.${s}.blocks`, parent: e.builderBlock.id } })], 1);
180
200
  }), 0);
181
- }, X = [], Y = /* @__PURE__ */ p(
201
+ }, Y = [], Q = /* @__PURE__ */ p(
182
202
  J,
183
- G,
184
203
  X,
204
+ Y,
185
205
  !1,
186
206
  null,
187
- "074f8045",
207
+ "0f3ea004",
188
208
  null,
189
209
  null
190
210
  );
191
- const Q = Y.exports;
192
- function k(t) {
211
+ const Z = Q.exports;
212
+ function S(t) {
193
213
  return t.replace(/http(s)?:/, "");
194
214
  }
195
- function Z(t = "", e, n) {
215
+ function ee(t = "", e, n) {
196
216
  const o = new RegExp("([?&])" + e + "=.*?(&|$)", "i"), s = t.indexOf("?") !== -1 ? "&" : "?";
197
217
  return t.match(o) ? t.replace(o, "$1" + e + "=" + encodeURIComponent(n) + "$2") : t + s + e + "=" + encodeURIComponent(n);
198
218
  }
199
- function ee(t, e) {
219
+ function te(t, e) {
200
220
  if (!t || !(t != null && t.match(/cdn\.shopify\.com/)) || !e)
201
221
  return t;
202
222
  if (e === "master")
203
- return k(t);
223
+ return S(t);
204
224
  const n = t.match(
205
225
  /(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i
206
226
  );
207
227
  if (n) {
208
228
  const o = t.split(n[0]), s = n[3], r = e.match("x") ? e : `${e}x`;
209
- return k(`${o[0]}_${r}${s}`);
229
+ return S(`${o[0]}_${r}${s}`);
210
230
  }
211
231
  return null;
212
232
  }
213
- function b(t) {
233
+ function v(t) {
214
234
  if (!t)
215
235
  return t;
216
236
  const e = [100, 200, 400, 800, 1200, 1600, 2e3];
217
237
  if (t.match(/builder\.io/)) {
218
238
  let n = t;
219
239
  const o = Number(t.split("?width=")[1]);
220
- return isNaN(o) || (n = `${n} ${o}w`), e.filter((s) => s !== o).map((s) => `${Z(t, "width", s)} ${s}w`).concat([n]).join(", ");
240
+ return isNaN(o) || (n = `${n} ${o}w`), e.filter((s) => s !== o).map((s) => `${ee(t, "width", s)} ${s}w`).concat([n]).join(", ");
221
241
  }
222
- return t.match(/cdn\.shopify\.com/) ? e.map((n) => [ee(t, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([t]).join(", ") : t;
242
+ return t.match(/cdn\.shopify\.com/) ? e.map((n) => [te(t, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([t]).join(", ") : t;
223
243
  }
224
- const te = {
244
+ const ne = {
225
245
  name: "builder-image",
226
246
  props: [
227
247
  "image",
@@ -233,8 +253,8 @@ const te = {
233
253
  "className",
234
254
  "sizes",
235
255
  "aspectRatio",
236
- "fitContent",
237
- "builderBlock"
256
+ "builderBlock",
257
+ "fitContent"
238
258
  ],
239
259
  computed: {
240
260
  srcSetToUse() {
@@ -244,10 +264,10 @@ const te = {
244
264
  return this.srcset;
245
265
  if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
246
266
  if (!this.srcset.includes(this.image.split("?")[0]))
247
- return console.debug("Removed given srcset"), b(e);
267
+ return console.debug("Removed given srcset"), v(e);
248
268
  } else if (this.image && !this.srcset)
249
- return b(e);
250
- return b(e);
269
+ return v(e);
270
+ return v(e);
251
271
  },
252
272
  webpSrcSet() {
253
273
  var t;
@@ -266,45 +286,45 @@ const te = {
266
286
  }
267
287
  }
268
288
  };
269
- var ne = function() {
289
+ var oe = function() {
270
290
  var o, s, r, a;
271
291
  var e = this, n = e._self._c;
272
- return n("div", { staticClass: "div-cvp1sc2nsao" }, [n("picture", [e.webpSrcSet ? [n("source", { attrs: { type: "image/webp", srcset: e.webpSrcSet } })] : e._e(), n("img", { class: e._classStringToObject(
273
- "builder-image" + (e.className ? " " + e.className : "") + " img-cvp1sc2nsao"
292
+ return n("div", [n("picture", [e.webpSrcSet ? [n("source", { attrs: { type: "image/webp", srcset: e.webpSrcSet } })] : e._e(), n("img", { class: e._classStringToObject(
293
+ "builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
274
294
  ), style: {
275
295
  objectPosition: e.backgroundSize || "center",
276
296
  objectFit: e.backgroundSize || "cover"
277
- }, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } }), n("source", { attrs: { srcset: e.srcSetToUse } })], 2), e.aspectRatio && !(e.fitContent && ((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length)) ? [n("div", { staticClass: "builder-image-sizer div-cvp1sc2nsao-2", style: {
297
+ }, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } }), n("source", { attrs: { srcset: e.srcSetToUse } })], 2), e.aspectRatio && !(((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length) && e.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-29wpyomtntv", style: {
278
298
  paddingTop: e.aspectRatio * 100 + "%"
279
- } })] : e._e(), ((a = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : a.length) && e.fitContent ? [e._t("default")] : e._e(), e.fitContent ? e._e() : [n("div", { staticClass: "div-cvp1sc2nsao-3" }, [e._t("default")], 2)]], 2);
280
- }, oe = [], se = /* @__PURE__ */ p(
281
- te,
299
+ } })] : e._e(), ((a = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : a.length) && e.fitContent ? [e._t("default")] : e._e(), !e.fitContent && e.children ? [n("div", { staticClass: "div-29wpyomtntv-2" }, [e._t("default")], 2)] : e._e()], 2);
300
+ }, se = [], re = /* @__PURE__ */ p(
282
301
  ne,
283
302
  oe,
303
+ se,
284
304
  !1,
285
305
  null,
286
- "fef5e4cf",
306
+ "d5be32e0",
287
307
  null,
288
308
  null
289
309
  );
290
- const re = se.exports, ae = {
310
+ const ae = re.exports, ie = {
291
311
  name: "builder-text",
292
312
  props: ["text"]
293
313
  };
294
- var ie = function() {
314
+ var ce = function() {
295
315
  var e = this, n = e._self._c;
296
316
  return n("span", { staticClass: "builder-text", domProps: { innerHTML: e._s(e.text) } });
297
- }, ce = [], le = /* @__PURE__ */ p(
298
- ae,
317
+ }, le = [], de = /* @__PURE__ */ p(
299
318
  ie,
300
319
  ce,
320
+ le,
301
321
  !1,
302
322
  null,
303
323
  null,
304
324
  null,
305
325
  null
306
326
  );
307
- const de = le.exports, ue = {
327
+ const ue = de.exports, pe = {
308
328
  name: "builder-video",
309
329
  props: [
310
330
  "autoPlay",
@@ -340,7 +360,7 @@ const de = le.exports, ue = {
340
360
  }
341
361
  }
342
362
  };
343
- var pe = function() {
363
+ var me = function() {
344
364
  var o;
345
365
  var e = this, n = e._self._c;
346
366
  return n("video", e._b({ style: {
@@ -351,63 +371,63 @@ var pe = function() {
351
371
  objectPosition: e.position,
352
372
  borderRadius: 1
353
373
  }, attrs: { src: e.video || "no-src", poster: e.posterImage } }, "video", e.videoProps, !1));
354
- }, me = [], fe = /* @__PURE__ */ p(
355
- ue,
374
+ }, he = [], fe = /* @__PURE__ */ p(
356
375
  pe,
357
376
  me,
377
+ he,
358
378
  !1,
359
379
  null,
360
380
  null,
361
381
  null,
362
382
  null
363
383
  );
364
- const he = fe.exports;
365
- function v(t, e = null, n = ".") {
384
+ const ge = fe.exports;
385
+ function _(t, e = null, n = ".") {
366
386
  return Object.keys(t).reduce((o, s) => {
367
387
  const r = t[s], a = [e, s].filter(Boolean).join(n);
368
388
  return [
369
389
  typeof r == "object",
370
390
  r !== null,
371
391
  !(Array.isArray(r) && r.length === 0)
372
- ].every(Boolean) ? { ...o, ...v(r, a, n) } : { ...o, [a]: r };
392
+ ].every(Boolean) ? { ...o, ..._(r, a, n) } : { ...o, [a]: r };
373
393
  }, {});
374
394
  }
375
- const S = "builder.", ge = (t) => {
395
+ const I = "builder.", be = (t) => {
376
396
  const e = {};
377
397
  return t.forEach((n, o) => {
378
398
  e[o] = n;
379
399
  }), e;
380
- }, be = (t) => {
400
+ }, ve = (t) => {
381
401
  if (!t)
382
402
  return {};
383
403
  const e = F(t), n = {};
384
404
  return Object.keys(e).forEach((o) => {
385
- if (o.startsWith(S)) {
386
- const s = o.replace(S, "");
405
+ if (o.startsWith(I)) {
406
+ const s = o.replace(I, "");
387
407
  n[s] = e[o];
388
408
  }
389
409
  }), n;
390
- }, ve = () => {
391
- if (!u())
410
+ }, _e = () => {
411
+ if (!h())
392
412
  return {};
393
413
  const t = new URLSearchParams(window.location.search);
394
- return be(t);
395
- }, F = (t) => t instanceof URLSearchParams ? ge(t) : t;
396
- function _e() {
414
+ return ve(t);
415
+ }, F = (t) => t instanceof URLSearchParams ? be(t) : t;
416
+ function ye() {
397
417
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
398
418
  }
399
- async function E() {
400
- const t = _e().fetch;
419
+ async function j() {
420
+ const t = ye().fetch;
401
421
  if (typeof t > "u" && typeof global < "u") {
402
422
  const e = import("node-fetch").then((n) => n.default);
403
423
  return e.default || e;
404
424
  }
405
425
  return t.default || t;
406
426
  }
407
- const ye = (t) => {
427
+ const xe = (t) => {
408
428
  const e = t.split(".");
409
429
  return e.length > 2 ? e.slice(1).join(".") : t;
410
- }, j = async ({
430
+ }, U = async ({
411
431
  name: t,
412
432
  canTrack: e
413
433
  }) => {
@@ -417,23 +437,23 @@ const ye = (t) => {
417
437
  } catch (o) {
418
438
  console.debug("[COOKIE] GET error: ", o);
419
439
  }
420
- }, xe = (t) => t.map(([e, n]) => n ? `${e}=${n}` : e).join("; "), Ce = [
440
+ }, Ce = (t) => t.map(([e, n]) => n ? `${e}=${n}` : e).join("; "), we = [
421
441
  ["secure", ""],
422
442
  ["SameSite", "None"]
423
- ], we = ({
443
+ ], ke = ({
424
444
  name: t,
425
445
  value: e,
426
446
  expires: n
427
447
  }) => {
428
- const s = (u() ? location.protocol === "https:" : !0) ? Ce : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [
448
+ const s = (h() ? location.protocol === "https:" : !0) ? we : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [
429
449
  [t, e],
430
450
  ...r,
431
451
  ["path", "/"],
432
- ["domain", ye(window.location.hostname)],
452
+ ["domain", xe(window.location.hostname)],
433
453
  ...s
434
454
  ];
435
- return xe(a);
436
- }, U = async ({
455
+ return Ce(a);
456
+ }, V = async ({
437
457
  name: t,
438
458
  value: e,
439
459
  expires: n,
@@ -442,19 +462,19 @@ const ye = (t) => {
442
462
  try {
443
463
  if (!o)
444
464
  return;
445
- const s = we({ name: t, value: e, expires: n });
465
+ const s = ke({ name: t, value: e, expires: n });
446
466
  document.cookie = s;
447
467
  } catch (s) {
448
468
  console.warn("[COOKIE] SET error: ", s);
449
469
  }
450
- }, ke = "builderio.variations", V = (t) => `${ke}.${t}`, Se = ({
470
+ }, Se = "builderio.variations", A = (t) => `${Se}.${t}`, Ie = ({
451
471
  contentId: t,
452
472
  canTrack: e
453
- }) => j({ name: V(t), canTrack: e }), Ie = ({
473
+ }) => U({ name: A(t), canTrack: e }), Re = ({
454
474
  contentId: t,
455
475
  canTrack: e,
456
476
  value: n
457
- }) => U({ name: V(t), value: n, canTrack: e }), g = (t) => t != null, Te = (t) => g(t.id) && g(t.variations) && Object.keys(t.variations).length > 0, Re = ({
477
+ }) => V({ name: A(t), value: n, canTrack: e }), b = (t) => t != null, Te = (t) => b(t.id) && b(t.variations) && Object.keys(t.variations).length > 0, $e = ({
458
478
  id: t,
459
479
  variations: e
460
480
  }) => {
@@ -465,7 +485,7 @@ const ye = (t) => {
465
485
  if (n += (s = e[r]) == null ? void 0 : s.testRatio, o < n)
466
486
  return r;
467
487
  return t;
468
- }, I = ({
488
+ }, R = ({
469
489
  item: t,
470
490
  testGroupId: e
471
491
  }) => {
@@ -478,28 +498,28 @@ const ye = (t) => {
478
498
  testVariationId: n.id,
479
499
  testVariationName: n.name || (n.id === t.id ? "Default" : "")
480
500
  };
481
- }, $e = async ({
501
+ }, Ee = async ({
482
502
  item: t,
483
503
  canTrack: e
484
504
  }) => {
485
- const n = await Se({
505
+ const n = await Ie({
486
506
  canTrack: e,
487
507
  contentId: t.id
488
- }), o = n ? I({ item: t, testGroupId: n }) : void 0;
508
+ }), o = n ? R({ item: t, testGroupId: n }) : void 0;
489
509
  if (o)
490
510
  return o;
491
511
  {
492
- const s = Re({
512
+ const s = $e({
493
513
  variations: t.variations,
494
514
  id: t.id
495
515
  });
496
- return Ie({
516
+ return Re({
497
517
  contentId: t.id,
498
518
  value: s,
499
519
  canTrack: e
500
520
  }).catch((r) => {
501
521
  console.error("could not store A/B test variation: ", r);
502
- }), I({ item: t, testGroupId: s });
522
+ }), R({ item: t, testGroupId: s });
503
523
  }
504
524
  }, Fe = async ({
505
525
  item: t,
@@ -507,13 +527,13 @@ const ye = (t) => {
507
527
  }) => {
508
528
  if (!Te(t))
509
529
  return;
510
- const n = await $e({ item: t, canTrack: e });
530
+ const n = await Ee({ item: t, canTrack: e });
511
531
  Object.assign(t, n);
512
532
  };
513
- async function A(t) {
514
- return (await je({ ...t, limit: 1 })).results[0] || null;
533
+ async function O(t) {
534
+ return (await Ue({ ...t, limit: 1 })).results[0] || null;
515
535
  }
516
- const Ee = (t) => {
536
+ const je = (t) => {
517
537
  const {
518
538
  limit: e = 30,
519
539
  userAttributes: n,
@@ -524,20 +544,20 @@ const Ee = (t) => {
524
544
  } = t, c = new URL(
525
545
  `https://cdn.builder.io/api/v2/content/${r}?apiKey=${a}&limit=${e}&noTraverse=${s}`
526
546
  ), i = {
527
- ...ve(),
547
+ ..._e(),
528
548
  ...F(t.options || {})
529
- }, l = v(i);
530
- for (const d in l)
531
- c.searchParams.set(d, String(l[d]));
549
+ }, d = _(i);
550
+ for (const l in d)
551
+ c.searchParams.set(l, String(d[l]));
532
552
  if (n && c.searchParams.set("userAttributes", JSON.stringify(n)), o) {
533
- const d = v({ query: o });
534
- for (const f in d)
535
- c.searchParams.set(f, JSON.stringify(d[f]));
553
+ const l = _({ query: o });
554
+ for (const m in l)
555
+ c.searchParams.set(m, JSON.stringify(l[m]));
536
556
  }
537
557
  return c;
538
558
  };
539
- async function je(t) {
540
- const e = Ee(t), o = await (await E())(e.href).then(
559
+ async function Ue(t) {
560
+ const e = je(t), o = await (await j())(e.href).then(
541
561
  (r) => r.json()
542
562
  ), s = t.canTrack !== !1;
543
563
  if (s)
@@ -545,16 +565,16 @@ async function je(t) {
545
565
  await Fe({ item: r, canTrack: s });
546
566
  return o;
547
567
  }
548
- const Ue = () => Promise.resolve().then(() => Zt).then((t) => t.default).catch((t) => {
568
+ const Ve = () => Promise.resolve().then(() => Zt).then((t) => t.default).catch((t) => {
549
569
  throw console.error(
550
570
  "Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
551
571
  t
552
572
  ), t;
553
- }), Ve = {
573
+ }), Ae = {
554
574
  name: "builder-symbol",
555
- components: { "render-content": Ue },
575
+ components: { RenderContent: Ve },
556
576
  props: ["symbol", "attributes"],
557
- data: () => ({ className: "builder-symbol", content: null, markMutable: y }),
577
+ data: () => ({ className: "builder-symbol", content: null, markMutable: x }),
558
578
  inject: {
559
579
  builderContext: "BuilderContext"
560
580
  },
@@ -565,7 +585,7 @@ const Ue = () => Promise.resolve().then(() => Zt).then((t) => t.default).catch((
565
585
  watch: {
566
586
  onUpdateHook0() {
567
587
  const t = this.symbol;
568
- t && !t.content && !this.content && t.model && A({
588
+ t && !t.content && !this.content && t.model && O({
569
589
  model: t.model,
570
590
  apiKey: this.builderContext.apiKey,
571
591
  query: {
@@ -596,7 +616,7 @@ const Ue = () => Promise.resolve().then(() => Zt).then((t) => t.default).catch((
596
616
  }
597
617
  }
598
618
  };
599
- var Ae = function() {
619
+ var Oe = function() {
600
620
  var o, s, r, a, c;
601
621
  var e = this, n = e._self._c;
602
622
  return n("div", e._b({ class: e._classStringToObject(e.className), attrs: { dataSet: {
@@ -606,70 +626,70 @@ var Ae = function() {
606
626
  ...e.builderContext.state,
607
627
  ...(a = (r = (s = e.symbol) == null ? void 0 : s.content) == null ? void 0 : r.data) == null ? void 0 : a.state
608
628
  }), model: (c = e.symbol) == null ? void 0 : c.model, content: e.markMutable(e.content) } })], 1);
609
- }, Oe = [], Pe = /* @__PURE__ */ p(
610
- Ve,
629
+ }, Pe = [], We = /* @__PURE__ */ p(
611
630
  Ae,
612
631
  Oe,
632
+ Pe,
613
633
  !1,
614
634
  null,
615
635
  null,
616
636
  null,
617
637
  null
618
638
  );
619
- const We = Pe.exports, Be = {
639
+ const Be = We.exports, Le = {
620
640
  name: "builder-button",
621
641
  props: ["attributes", "text", "link", "openLinkInNewTab"]
622
642
  };
623
- var Le = function() {
643
+ var Me = function() {
624
644
  var e = this, n = e._self._c;
625
- return e.link ? n("a", e._b({ attrs: { role: "button", href: e.link, target: e.openLinkInNewTab ? "_blank" : void 0 } }, "a", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]) : n("button", e._b({ staticClass: "button-1be3j8m9ewb" }, "button", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]);
626
- }, Me = [], Ne = /* @__PURE__ */ p(
627
- Be,
645
+ return e.link ? n("a", e._b({ attrs: { role: "button", href: e.link, target: e.openLinkInNewTab ? "_blank" : void 0 } }, "a", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]) : n("button", e._b({ staticClass: "button-2fnk003dqad" }, "button", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]);
646
+ }, Ne = [], ze = /* @__PURE__ */ p(
628
647
  Le,
629
648
  Me,
649
+ Ne,
630
650
  !1,
631
651
  null,
632
- "4348d458",
652
+ "490b8c29",
633
653
  null,
634
654
  null
635
655
  );
636
- const He = Ne.exports, ze = {
656
+ const He = ze.exports, qe = {
637
657
  name: "builder-section-component",
638
658
  props: ["attributes", "maxWidth"]
639
659
  };
640
- var qe = function() {
660
+ var De = function() {
641
661
  var e = this, n = e._self._c;
642
662
  return n("section", e._b({ style: e.maxWidth && typeof e.maxWidth == "number" ? {
643
663
  maxWidth: e.maxWidth
644
664
  } : void 0 }, "section", e.attributes, !1), [e._t("default")], 2);
645
- }, De = [], Ke = /* @__PURE__ */ p(
646
- ze,
665
+ }, Ke = [], Ge = /* @__PURE__ */ p(
647
666
  qe,
648
667
  De,
668
+ Ke,
649
669
  !1,
650
670
  null,
651
671
  null,
652
672
  null,
653
673
  null
654
674
  );
655
- const Je = Ke.exports, Ge = {
675
+ const Je = Ge.exports, Xe = {
656
676
  name: "builder-fragment-component",
657
677
  props: []
658
678
  };
659
- var Xe = function() {
679
+ var Ye = function() {
660
680
  var e = this, n = e._self._c;
661
681
  return n("span", [e._t("default")], 2);
662
- }, Ye = [], Qe = /* @__PURE__ */ p(
663
- Ge,
682
+ }, Qe = [], Ze = /* @__PURE__ */ p(
664
683
  Xe,
665
684
  Ye,
685
+ Qe,
666
686
  !1,
667
687
  null,
668
688
  null,
669
689
  null,
670
690
  null
671
691
  );
672
- const Ze = Qe.exports, et = {
692
+ const et = Ze.exports, tt = {
673
693
  name: "Core:Button",
674
694
  builtIn: !0,
675
695
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
@@ -707,10 +727,10 @@ const Ze = Qe.exports, et = {
707
727
  static: !0,
708
728
  noWrap: !0
709
729
  };
710
- function x(t) {
730
+ function C(t) {
711
731
  return t.__qwik_serializable__ = !0, t;
712
732
  }
713
- const tt = {
733
+ const nt = {
714
734
  name: "Columns",
715
735
  builtIn: !0,
716
736
  inputs: [
@@ -898,7 +918,7 @@ const tt = {
898
918
  ]
899
919
  }
900
920
  ],
901
- onChange: x((t) => {
921
+ onChange: C((t) => {
902
922
  function e() {
903
923
  n.forEach((o) => {
904
924
  o.delete("width");
@@ -935,14 +955,14 @@ const tt = {
935
955
  advanced: !0
936
956
  }
937
957
  ]
938
- }, nt = {
958
+ }, ot = {
939
959
  name: "Fragment",
940
960
  static: !0,
941
961
  hidden: !0,
942
962
  builtIn: !0,
943
963
  canHaveChildren: !0,
944
964
  noWrap: !0
945
- }, ot = {
965
+ }, st = {
946
966
  name: "Image",
947
967
  static: !0,
948
968
  builtIn: !0,
@@ -962,18 +982,18 @@ const tt = {
962
982
  allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
963
983
  required: !0,
964
984
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
965
- onChange: x((t) => {
985
+ onChange: C((t) => {
966
986
  t.delete("srcset"), t.delete("noWebp");
967
987
  function n(a, c = 6e4) {
968
- return new Promise((i, l) => {
969
- const d = document.createElement("img");
970
- let f = !1;
971
- d.onload = () => {
972
- f = !0, i(d);
973
- }, d.addEventListener("error", (m) => {
974
- console.warn("Image load failed", m.error), l(m.error);
975
- }), d.src = a, setTimeout(() => {
976
- f || l(new Error("Image load timed out"));
988
+ return new Promise((i, d) => {
989
+ const l = document.createElement("img");
990
+ let m = !1;
991
+ l.onload = () => {
992
+ m = !0, i(l);
993
+ }, l.addEventListener("error", (u) => {
994
+ console.warn("Image load failed", u.error), d(u.error);
995
+ }), l.src = a, setTimeout(() => {
996
+ m || d(new Error("Image load timed out"));
977
997
  }, c);
978
998
  });
979
999
  }
@@ -1068,7 +1088,7 @@ const tt = {
1068
1088
  defaultValue: 0.7041
1069
1089
  }
1070
1090
  ]
1071
- }, st = {
1091
+ }, rt = {
1072
1092
  name: "Core:Section",
1073
1093
  static: !0,
1074
1094
  builtIn: !0,
@@ -1113,7 +1133,7 @@ const tt = {
1113
1133
  }
1114
1134
  }
1115
1135
  ]
1116
- }, rt = {
1136
+ }, at = {
1117
1137
  name: "Symbol",
1118
1138
  noWrap: !0,
1119
1139
  static: !0,
@@ -1152,7 +1172,7 @@ const tt = {
1152
1172
  type: "boolean"
1153
1173
  }
1154
1174
  ]
1155
- }, at = {
1175
+ }, it = {
1156
1176
  name: "Text",
1157
1177
  static: !0,
1158
1178
  builtIn: !0,
@@ -1172,7 +1192,7 @@ const tt = {
1172
1192
  height: "auto",
1173
1193
  textAlign: "center"
1174
1194
  }
1175
- }, it = {
1195
+ }, ct = {
1176
1196
  name: "Video",
1177
1197
  canHaveChildren: !0,
1178
1198
  builtIn: !0,
@@ -1274,7 +1294,7 @@ const tt = {
1274
1294
  advanced: !0
1275
1295
  }
1276
1296
  ]
1277
- }, ct = {
1297
+ }, lt = {
1278
1298
  name: "Embed",
1279
1299
  static: !0,
1280
1300
  builtIn: !0,
@@ -1285,7 +1305,7 @@ const tt = {
1285
1305
  required: !0,
1286
1306
  defaultValue: "",
1287
1307
  helperText: "e.g. enter a youtube url, google map, etc",
1288
- onChange: x((t) => {
1308
+ onChange: C((t) => {
1289
1309
  const e = t.get("url");
1290
1310
  if (e)
1291
1311
  return t.set("content", "Loading..."), fetch(
@@ -1308,11 +1328,11 @@ const tt = {
1308
1328
  hideFromUI: !0
1309
1329
  }
1310
1330
  ]
1311
- }, lt = [
1331
+ }, dt = [
1312
1332
  "text/javascript",
1313
1333
  "application/javascript",
1314
1334
  "application/ecmascript"
1315
- ], dt = (t) => lt.includes(t.type), ut = {
1335
+ ], ut = (t) => dt.includes(t.type), pt = {
1316
1336
  name: "builder-embed",
1317
1337
  props: ["content"],
1318
1338
  data: () => ({ scriptsInserted: [], scriptsRun: [], ranInitFn: !1 }),
@@ -1340,7 +1360,7 @@ const tt = {
1340
1360
  this.scriptsInserted.push(n.src);
1341
1361
  const o = document.createElement("script");
1342
1362
  o.async = !0, o.src = n.src, document.head.appendChild(o);
1343
- } else if (dt(n) && !this.scriptsRun.includes(n.innerText))
1363
+ } else if (ut(n) && !this.scriptsRun.includes(n.innerText))
1344
1364
  try {
1345
1365
  this.scriptsRun.push(n.innerText), new Function(n.innerText)();
1346
1366
  } catch (o) {
@@ -1350,27 +1370,20 @@ const tt = {
1350
1370
  }
1351
1371
  }
1352
1372
  };
1353
- var pt = function() {
1373
+ var mt = function() {
1354
1374
  var e = this, n = e._self._c;
1355
1375
  return n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: e._s(e.content) } });
1356
- }, mt = [], ft = /* @__PURE__ */ p(
1357
- ut,
1376
+ }, ht = [], ft = /* @__PURE__ */ p(
1358
1377
  pt,
1359
1378
  mt,
1379
+ ht,
1360
1380
  !1,
1361
1381
  null,
1362
1382
  null,
1363
1383
  null,
1364
1384
  null
1365
1385
  );
1366
- const ht = ft.exports;
1367
- function gt() {
1368
- return u() && window.self !== window.top;
1369
- }
1370
- function h() {
1371
- return gt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1372
- }
1373
- const bt = {
1386
+ const gt = ft.exports, bt = {
1374
1387
  name: "builder-img-component",
1375
1388
  props: [
1376
1389
  "backgroundSize",
@@ -1380,7 +1393,7 @@ const bt = {
1380
1393
  "image",
1381
1394
  "attributes"
1382
1395
  ],
1383
- data: () => ({ isEditing: h })
1396
+ data: () => ({ isEditing: f })
1384
1397
  };
1385
1398
  var vt = function() {
1386
1399
  var e = this, n = e._self._c;
@@ -1475,7 +1488,7 @@ var kt = function() {
1475
1488
  null,
1476
1489
  null
1477
1490
  );
1478
- const Tt = It.exports, Rt = {
1491
+ const Rt = It.exports, Tt = {
1479
1492
  name: "Custom Code",
1480
1493
  static: !0,
1481
1494
  builtIn: !0,
@@ -1503,17 +1516,17 @@ const Tt = It.exports, Rt = {
1503
1516
  }
1504
1517
  ]
1505
1518
  }, $t = () => [
1506
- { component: Q, ...tt },
1507
- { component: re, ...ot },
1519
+ { component: Z, ...nt },
1520
+ { component: ae, ...st },
1508
1521
  { component: xt, ...Ct },
1509
- { component: de, ...at },
1510
- { component: he, ...it },
1511
- { component: We, ...rt },
1512
- { component: He, ...et },
1513
- { component: Je, ...st },
1514
- { component: Ze, ...nt },
1515
- { component: ht, ...ct },
1516
- { component: Tt, ...Rt }
1522
+ { component: ue, ...it },
1523
+ { component: ge, ...ct },
1524
+ { component: Be, ...at },
1525
+ { component: He, ...tt },
1526
+ { component: Je, ...rt },
1527
+ { component: et, ...ot },
1528
+ { component: gt, ...lt },
1529
+ { component: Rt, ...Tt }
1517
1530
  ];
1518
1531
  function T({
1519
1532
  code: t,
@@ -1526,9 +1539,9 @@ function T({
1526
1539
  return;
1527
1540
  }
1528
1541
  const s = {
1529
- isEditing: h(),
1530
- isBrowser: u(),
1531
- isServer: !u()
1542
+ isEditing: f(),
1543
+ isBrowser: h(),
1544
+ isServer: !h()
1532
1545
  }, a = !(t.includes(";") || t.includes(" return ") || t.trim().startsWith("return ")) ? `return (${t});` : t;
1533
1546
  try {
1534
1547
  return new Function(
@@ -1551,29 +1564,29 @@ function T({
1551
1564
  );
1552
1565
  }
1553
1566
  }
1554
- function Ft() {
1555
- return !u() || h() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1567
+ function Et() {
1568
+ return !h() || f() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1556
1569
  }
1557
- const O = [];
1570
+ const P = [];
1558
1571
  function ln(t, e) {
1559
- return O.push({ component: t, ...e }), console.warn(
1572
+ return P.push({ component: t, ...e }), console.warn(
1560
1573
  "registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
1561
1574
  ), t;
1562
1575
  }
1563
- const Et = ({
1576
+ const Ft = ({
1564
1577
  component: t,
1565
1578
  ...e
1566
1579
  }) => ({
1567
1580
  type: "builder.registerComponent",
1568
1581
  data: Vt(e)
1569
- }), P = (t) => JSON.parse(JSON.stringify(t)), jt = (t) => typeof t == "function" ? Ut(t) : P(t), Ut = (t) => {
1582
+ }), W = (t) => JSON.parse(JSON.stringify(t)), jt = (t) => typeof t == "function" ? Ut(t) : W(t), Ut = (t) => {
1570
1583
  const e = t.toString().trim();
1571
1584
  return `return (${!e.startsWith("function") && !e.startsWith("(") ? "function " : ""}${e}).apply(this, arguments)`;
1572
1585
  }, Vt = ({
1573
1586
  inputs: t,
1574
1587
  ...e
1575
1588
  }) => ({
1576
- ...P(e),
1589
+ ...W(e),
1577
1590
  inputs: t == null ? void 0 : t.map(
1578
1591
  (n) => Object.entries(n).reduce(
1579
1592
  (o, [s, r]) => ({
@@ -1590,32 +1603,32 @@ function At() {
1590
1603
  return (t == "x" ? e : e & 3 | 8).toString(16);
1591
1604
  });
1592
1605
  }
1593
- function W() {
1606
+ function B() {
1594
1607
  return At().replace(/-/g, "");
1595
1608
  }
1596
- const B = "builderSessionId", Ot = async ({ canTrack: t }) => {
1609
+ const L = "builderSessionId", Ot = async ({ canTrack: t }) => {
1597
1610
  if (!t)
1598
1611
  return;
1599
- const e = await j({
1600
- name: B,
1612
+ const e = await U({
1613
+ name: L,
1601
1614
  canTrack: t
1602
1615
  });
1603
- if (g(e))
1616
+ if (b(e))
1604
1617
  return e;
1605
1618
  {
1606
1619
  const n = Pt();
1607
1620
  Wt({ id: n, canTrack: t });
1608
1621
  }
1609
- }, Pt = () => W(), Wt = ({
1622
+ }, Pt = () => B(), Wt = ({
1610
1623
  id: t,
1611
1624
  canTrack: e
1612
- }) => U({ name: B, value: t, canTrack: e }), L = () => u() && typeof localStorage < "u" ? localStorage : void 0, Bt = ({
1625
+ }) => V({ name: L, value: t, canTrack: e }), M = () => h() && typeof localStorage < "u" ? localStorage : void 0, Bt = ({
1613
1626
  key: t,
1614
1627
  canTrack: e
1615
1628
  }) => {
1616
1629
  var n;
1617
1630
  try {
1618
- return e ? (n = L()) == null ? void 0 : n.getItem(t) : void 0;
1631
+ return e ? (n = M()) == null ? void 0 : n.getItem(t) : void 0;
1619
1632
  } catch (o) {
1620
1633
  console.debug("[LocalStorage] GET error: ", o);
1621
1634
  }
@@ -1626,31 +1639,31 @@ const B = "builderSessionId", Ot = async ({ canTrack: t }) => {
1626
1639
  }) => {
1627
1640
  var o;
1628
1641
  try {
1629
- e && ((o = L()) == null || o.setItem(t, n));
1642
+ e && ((o = M()) == null || o.setItem(t, n));
1630
1643
  } catch (s) {
1631
1644
  console.debug("[LocalStorage] SET error: ", s);
1632
1645
  }
1633
- }, M = "builderVisitorId", Mt = ({ canTrack: t }) => {
1646
+ }, N = "builderVisitorId", Mt = ({ canTrack: t }) => {
1634
1647
  if (!t)
1635
1648
  return;
1636
1649
  const e = Bt({
1637
- key: M,
1650
+ key: N,
1638
1651
  canTrack: t
1639
1652
  });
1640
- if (g(e))
1653
+ if (b(e))
1641
1654
  return e;
1642
1655
  {
1643
1656
  const n = Nt();
1644
- Ht({ id: n, canTrack: t });
1657
+ zt({ id: n, canTrack: t });
1645
1658
  }
1646
- }, Nt = () => W(), Ht = ({
1659
+ }, Nt = () => B(), zt = ({
1647
1660
  id: t,
1648
1661
  canTrack: e
1649
1662
  }) => Lt({
1650
- key: M,
1663
+ key: N,
1651
1664
  value: t,
1652
1665
  canTrack: e
1653
- }), zt = async ({
1666
+ }), Ht = async ({
1654
1667
  canTrack: t
1655
1668
  }) => {
1656
1669
  if (!t)
@@ -1670,13 +1683,13 @@ const B = "builderSessionId", Ot = async ({ canTrack: t }) => {
1670
1683
  type: t,
1671
1684
  data: {
1672
1685
  ...s,
1673
- ...await zt({ canTrack: e }),
1686
+ ...await Ht({ canTrack: e }),
1674
1687
  ownerId: n,
1675
1688
  contentId: o
1676
1689
  }
1677
1690
  });
1678
- async function R(t) {
1679
- if (!!t.canTrack && !h() && !!(u() || _ === "reactNative"))
1691
+ async function $(t) {
1692
+ if (!!t.canTrack && !f() && !!(h() || y === "reactNative"))
1680
1693
  return fetch("https://builder.io/api/v1/track", {
1681
1694
  method: "POST",
1682
1695
  body: JSON.stringify({
@@ -1690,21 +1703,21 @@ async function R(t) {
1690
1703
  console.error("Failed to track: ", e);
1691
1704
  });
1692
1705
  }
1693
- const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t) => {
1706
+ const Dt = () => Promise.resolve().then(() => z).then((t) => t.default).catch((t) => {
1694
1707
  throw console.error(
1695
1708
  "Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
1696
1709
  t
1697
1710
  ), t;
1698
- }), Kt = () => import("./render-styles.79b15aed.js").then((t) => t.default).catch((t) => {
1711
+ }), Kt = () => import("./render-styles.ad89c45c.js").then((t) => t.default).catch((t) => {
1699
1712
  throw console.error(
1700
1713
  "Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
1701
1714
  t
1702
1715
  ), t;
1703
- }), Jt = {
1716
+ }), Gt = {
1704
1717
  name: "render-content",
1705
1718
  components: {
1706
- "render-content-styles": Kt,
1707
- "render-blocks": Dt
1719
+ RenderContentStyles: Kt,
1720
+ RenderBlocks: Dt
1708
1721
  },
1709
1722
  props: [
1710
1723
  "content",
@@ -1713,14 +1726,16 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
1713
1726
  "context",
1714
1727
  "customComponents",
1715
1728
  "model",
1716
- "apiKey"
1729
+ "apiKey",
1730
+ "locale",
1731
+ "includeRefs"
1717
1732
  ],
1718
1733
  data: () => ({
1719
1734
  forceReRenderCount: 0,
1720
1735
  overrideContent: null,
1721
1736
  update: 0,
1722
1737
  overrideState: {},
1723
- markMutable: y
1738
+ markMutable: x
1724
1739
  }),
1725
1740
  provide() {
1726
1741
  const t = this;
@@ -1746,26 +1761,33 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
1746
1761
  },
1747
1762
  mounted() {
1748
1763
  var t;
1749
- if (u()) {
1750
- if (h() && (this.forceReRenderCount = this.forceReRenderCount + 1, q(), D(), Object.values(this.allRegisteredComponents).forEach(
1764
+ if (h()) {
1765
+ if (f() && (this.forceReRenderCount = this.forceReRenderCount + 1, D(), K({
1766
+ ...this.locale ? {
1767
+ locale: this.locale
1768
+ } : {},
1769
+ ...this.includeRefs ? {
1770
+ includeRefs: this.includeRefs
1771
+ } : {}
1772
+ }), Object.values(this.allRegisteredComponents).forEach(
1751
1773
  (e) => {
1752
1774
  var o;
1753
- const n = Et(e);
1775
+ const n = Ft(e);
1754
1776
  (o = window.parent) == null || o.postMessage(n, "*");
1755
1777
  }
1756
1778
  ), window.addEventListener("message", this.processMessage), window.addEventListener(
1757
1779
  "builder:component:stateChangeListenerActivated",
1758
1780
  this.emitStateUpdate
1759
- )), this.useContent && R({
1781
+ )), this.useContent && $({
1760
1782
  type: "impression",
1761
1783
  canTrack: this.canTrackToUse,
1762
1784
  contentId: (t = this.useContent) == null ? void 0 : t.id,
1763
1785
  orgId: this.apiKey
1764
- }), Ft()) {
1786
+ }), Et()) {
1765
1787
  const e = new URL(location.href).searchParams;
1766
1788
  if (this.model && e.get("builder.preview") === this.model) {
1767
1789
  const n = e.get("apiKey") || e.get("builder.space");
1768
- n && A({
1790
+ n && O({
1769
1791
  model: this.model,
1770
1792
  apiKey: n
1771
1793
  }).then((o) => {
@@ -1788,7 +1810,7 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
1788
1810
  }
1789
1811
  },
1790
1812
  unmounted() {
1791
- u() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
1813
+ h() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
1792
1814
  "builder:component:stateChangeListenerActivated",
1793
1815
  this.emitStateUpdate
1794
1816
  ));
@@ -1823,7 +1845,7 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
1823
1845
  allRegisteredComponents() {
1824
1846
  return [
1825
1847
  ...$t(),
1826
- ...O,
1848
+ ...P,
1827
1849
  ...this.customComponents || []
1828
1850
  ].reduce(
1829
1851
  (n, o) => ({ ...n, [o.name]: o }),
@@ -1836,7 +1858,7 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
1836
1858
  shouldRenderContentStyles() {
1837
1859
  var t, e, n, o, s;
1838
1860
  return Boolean(
1839
- (((e = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : e.cssCode) || ((s = (o = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : o.customFonts) == null ? void 0 : s.length)) && _ !== "reactNative"
1861
+ (((e = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : e.cssCode) || ((s = (o = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : o.customFonts) == null ? void 0 : s.length)) && y !== "reactNative"
1840
1862
  );
1841
1863
  },
1842
1864
  onUpdateHook0() {
@@ -1880,7 +1902,7 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
1880
1902
  },
1881
1903
  onClick(t) {
1882
1904
  var e;
1883
- this.useContent && R({
1905
+ this.useContent && $({
1884
1906
  type: "click",
1885
1907
  canTrack: this.canTrackToUse,
1886
1908
  contentId: (e = this.useContent) == null ? void 0 : e.id,
@@ -1898,7 +1920,7 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
1898
1920
  );
1899
1921
  },
1900
1922
  handleRequest({ url: t, key: e }) {
1901
- E().then((n) => n(t)).then((n) => n.json()).then((n) => {
1923
+ j().then((n) => n(t)).then((n) => n.json()).then((n) => {
1902
1924
  const o = { ...this.overrideState, [e]: n };
1903
1925
  this.overrideState = o;
1904
1926
  }).catch((n) => {
@@ -1909,7 +1931,7 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
1909
1931
  var e, n, o;
1910
1932
  const t = (o = (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.httpRequests) != null ? o : {};
1911
1933
  Object.entries(t).forEach(([s, r]) => {
1912
- if (r && (!this.httpReqsData[s] || h())) {
1934
+ if (r && (!this.httpReqsData[s] || f())) {
1913
1935
  const a = this.evalExpression(r);
1914
1936
  this.handleRequest({
1915
1937
  url: a,
@@ -1919,7 +1941,7 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
1919
1941
  });
1920
1942
  },
1921
1943
  emitStateUpdate() {
1922
- h() && window.dispatchEvent(
1944
+ f() && window.dispatchEvent(
1923
1945
  new CustomEvent("builder:component:stateChange", {
1924
1946
  detail: {
1925
1947
  state: this.contentState,
@@ -1932,15 +1954,15 @@ const Dt = () => Promise.resolve().then(() => N).then((t) => t.default).catch((t
1932
1954
  }
1933
1955
  }
1934
1956
  };
1935
- var Gt = function() {
1936
- var o, s, r, a, c, i, l;
1957
+ var Jt = function() {
1958
+ var o, s, r, a, c, i, d;
1937
1959
  var e = this, n = e._self._c;
1938
- return e.useContent ? n("div", { ref: "elementRef", attrs: { "builder-content-id": (o = e.useContent) == null ? void 0 : o.id }, on: { click: function(d) {
1939
- return e.onClick(d);
1940
- } } }, [e.shouldRenderContentStyles ? [n("render-content-styles", { attrs: { cssCode: (r = (s = e.useContent) == null ? void 0 : s.data) == null ? void 0 : r.cssCode, customFonts: (c = (a = e.useContent) == null ? void 0 : a.data) == null ? void 0 : c.customFonts } })] : e._e(), n("render-blocks", { key: e.forceReRenderCount, attrs: { blocks: e.markMutable((l = (i = e.useContent) == null ? void 0 : i.data) == null ? void 0 : l.blocks) } })], 2) : e._e();
1960
+ return e.useContent ? n("div", { ref: "elementRef", attrs: { "builder-content-id": (o = e.useContent) == null ? void 0 : o.id }, on: { click: function(l) {
1961
+ return e.onClick(l);
1962
+ } } }, [e.shouldRenderContentStyles ? [n("render-content-styles", { attrs: { cssCode: (r = (s = e.useContent) == null ? void 0 : s.data) == null ? void 0 : r.cssCode, customFonts: (c = (a = e.useContent) == null ? void 0 : a.data) == null ? void 0 : c.customFonts } })] : e._e(), n("render-blocks", { key: e.forceReRenderCount, attrs: { blocks: e.markMutable((d = (i = e.useContent) == null ? void 0 : i.data) == null ? void 0 : d.blocks) } })], 2) : e._e();
1941
1963
  }, Xt = [], Yt = /* @__PURE__ */ p(
1942
- Jt,
1943
1964
  Gt,
1965
+ Jt,
1944
1966
  Xt,
1945
1967
  !1,
1946
1968
  null,
@@ -1951,20 +1973,20 @@ var Gt = function() {
1951
1973
  const Qt = Yt.exports, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1952
1974
  __proto__: null,
1953
1975
  default: Qt
1954
- }, Symbol.toStringTag, { value: "Module" })), en = () => import("./block-styles.dd3d70e3.js").then((t) => t.default).catch((t) => {
1976
+ }, Symbol.toStringTag, { value: "Module" })), en = () => import("./block-styles.234651b2.js").then((t) => t.default).catch((t) => {
1955
1977
  throw console.error(
1956
1978
  "Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
1957
1979
  t
1958
1980
  ), t;
1959
- }), tn = () => import("./render-block.a2f51c18.js").then((t) => t.default).catch((t) => {
1981
+ }), tn = () => import("./render-block.3cf39e0e.js").then((t) => t.default).catch((t) => {
1960
1982
  throw console.error(
1961
1983
  "Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
1962
1984
  t
1963
1985
  ), t;
1964
1986
  }), nn = {
1965
1987
  name: "render-blocks",
1966
- components: { "render-block": tn, "block-styles": en },
1967
- props: ["blocks", "parent", "path"],
1988
+ components: { RenderBlock: tn, BlockStyles: en },
1989
+ props: ["blocks", "parent", "path", "style"],
1968
1990
  inject: {
1969
1991
  builderContext: "BuilderContext"
1970
1992
  },
@@ -1977,7 +1999,7 @@ const Qt = Yt.exports, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
1977
1999
  methods: {
1978
2000
  onClick() {
1979
2001
  var t, e;
1980
- h() && !((t = this.blocks) != null && t.length) && ((e = window.parent) == null || e.postMessage(
2002
+ f() && !((t = this.blocks) != null && t.length) && ((e = window.parent) == null || e.postMessage(
1981
2003
  {
1982
2004
  type: "builder.clickEmptyBlocks",
1983
2005
  data: {
@@ -1990,7 +2012,7 @@ const Qt = Yt.exports, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
1990
2012
  },
1991
2013
  onMouseEnter() {
1992
2014
  var t, e;
1993
- h() && !((t = this.blocks) != null && t.length) && ((e = window.parent) == null || e.postMessage(
2015
+ f() && !((t = this.blocks) != null && t.length) && ((e = window.parent) == null || e.postMessage(
1994
2016
  {
1995
2017
  type: "builder.hoverEmptyBlocks",
1996
2018
  data: {
@@ -2014,7 +2036,7 @@ const Qt = Yt.exports, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
2014
2036
  };
2015
2037
  var on = function() {
2016
2038
  var e = this, n = e._self._c;
2017
- return n("div", { class: e._classStringToObject(e.className + " div-23e8fqt91nf"), attrs: { "builder-path": e.path, "builder-parent-id": e.parent, dataSet: {
2039
+ return n("div", { class: e._classStringToObject(e.className + " div-21azgz5avex"), style: e.style, attrs: { "builder-path": e.path, "builder-parent-id": e.parent, dataSet: {
2018
2040
  class: e.className
2019
2041
  } }, on: { click: function(o) {
2020
2042
  return e.onClick();
@@ -2031,51 +2053,51 @@ var on = function() {
2031
2053
  sn,
2032
2054
  !1,
2033
2055
  null,
2034
- "69abb8b2",
2056
+ "75050a7e",
2035
2057
  null,
2036
2058
  null
2037
2059
  );
2038
- const an = rn.exports, N = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2060
+ const an = rn.exports, z = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2039
2061
  __proto__: null,
2040
2062
  default: an
2041
- }, Symbol.toStringTag, { value: "Module" })), $ = {};
2063
+ }, Symbol.toStringTag, { value: "Module" })), E = {};
2042
2064
  function dn(t) {
2043
- if (u()) {
2044
- Object.assign($, t);
2065
+ if (h()) {
2066
+ Object.assign(E, t);
2045
2067
  const e = {
2046
2068
  type: "builder.settingsChange",
2047
- data: $
2069
+ data: E
2048
2070
  };
2049
2071
  parent.postMessage(e, "*");
2050
2072
  }
2051
2073
  }
2052
2074
  export {
2053
2075
  He as B,
2054
- Q as C,
2055
- Ze as F,
2056
- re as I,
2057
- We as S,
2058
- _ as T,
2059
- he as V,
2060
- de as a,
2076
+ Z as C,
2077
+ et as F,
2078
+ ae as I,
2079
+ Be as S,
2080
+ y as T,
2081
+ ge as V,
2082
+ ue as a,
2061
2083
  Je as b,
2062
2084
  an as c,
2063
- Ft as d,
2085
+ Et as d,
2064
2086
  T as e,
2065
- O as f,
2087
+ P as f,
2066
2088
  ln as g,
2067
- Et as h,
2068
- h as i,
2069
- z as j,
2070
- A as k,
2071
- Ee as l,
2089
+ Ft as h,
2090
+ f as i,
2091
+ q as j,
2092
+ O as k,
2093
+ je as l,
2072
2094
  cn as m,
2073
2095
  p as n,
2074
- je as o,
2075
- ge as p,
2076
- be as q,
2096
+ Ue as o,
2097
+ be as p,
2098
+ ve as q,
2077
2099
  Qt as r,
2078
2100
  dn as s,
2079
- ve as t,
2101
+ _e as t,
2080
2102
  F as u
2081
2103
  };