@builder.io/sdk-vue 0.0.1-73 → 0.0.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 (55) hide show
  1. package/dist/vue-2/{block-styles.4027f1b9.js → block-styles.3f130795.js} +21 -18
  2. package/dist/vue-2/block-styles.da610cf5.cjs +10 -0
  3. package/dist/{vue-3/get-processed-block.36f8ee1a.cjs → vue-2/get-processed-block.2bcd0d2b.cjs} +1 -1
  4. package/dist/{vue-3/get-processed-block.3fdcf745.js → vue-2/get-processed-block.c01e4ddc.js} +1 -1
  5. package/dist/vue-2/{index.62438203.js → index.0622ae10.js} +767 -631
  6. package/dist/vue-2/index.dcdf302c.cjs +4 -0
  7. package/dist/vue-2/render-block.bdaa8069.js +243 -0
  8. package/dist/vue-2/render-block.f41ce0b2.cjs +3 -0
  9. package/dist/vue-2/{render-inlined-styles.50d42108.js → render-inlined-styles.7974da9f.js} +11 -8
  10. package/dist/vue-2/{render-inlined-styles.ff54866e.cjs → render-inlined-styles.b3a06398.cjs} +1 -1
  11. package/dist/vue-2/render-repeated-block.c2b982e3.js +45 -0
  12. package/dist/vue-2/render-repeated-block.f36a831f.cjs +1 -0
  13. package/dist/vue-2/render-styles.354823a4.js +65 -0
  14. package/dist/vue-2/{render-styles.95568b18.cjs → render-styles.4b5b2368.cjs} +2 -2
  15. package/dist/vue-2/sdk.cjs +1 -1
  16. package/dist/vue-2/sdk.js +4 -4
  17. package/dist/vue-2/style.css +1 -1
  18. package/dist/vue-3/{block-styles.83ef5bb2.js → block-styles.76754b24.js} +25 -20
  19. package/dist/vue-3/{block-styles.98e0bfa5.cjs → block-styles.e17850cc.cjs} +3 -3
  20. package/dist/{vue-2/get-processed-block.d751f4a7.cjs → vue-3/get-processed-block.2dd25223.cjs} +1 -1
  21. package/dist/{vue-2/get-processed-block.0494fb81.js → vue-3/get-processed-block.6eaca128.js} +1 -1
  22. package/dist/vue-3/{index.843892e8.js → index.52915610.js} +757 -622
  23. package/dist/vue-3/index.91387fc2.cjs +4 -0
  24. package/dist/vue-3/render-block.369b7818.js +255 -0
  25. package/dist/vue-3/render-block.c9718d52.cjs +3 -0
  26. package/dist/vue-3/{render-inlined-styles.52546cc8.cjs → render-inlined-styles.2a3eeef4.cjs} +1 -1
  27. package/dist/vue-3/{render-inlined-styles.1a6db9d2.js → render-inlined-styles.af201a11.js} +11 -8
  28. package/dist/vue-3/render-repeated-block.4266e559.js +40 -0
  29. package/dist/vue-3/render-repeated-block.b4a6d591.cjs +1 -0
  30. package/dist/vue-3/render-styles.1744d2eb.js +59 -0
  31. package/dist/vue-3/{render-styles.7008104f.cjs → render-styles.7d5898dd.cjs} +2 -2
  32. package/dist/vue-3/sdk.cjs +1 -1
  33. package/dist/vue-3/sdk.js +3 -3
  34. package/dist/vue-3/style.css +1 -1
  35. package/nuxt.js +3 -2
  36. package/package.json +9 -2
  37. package/dist/vue-2/block-styles.8800a764.cjs +0 -10
  38. package/dist/vue-2/index.1aa5d3e4.cjs +0 -1
  39. package/dist/vue-2/index.3e132178.js +0 -78896
  40. package/dist/vue-2/index.475f52c7.cjs +0 -1
  41. package/dist/vue-2/render-block.1e8573eb.js +0 -206
  42. package/dist/vue-2/render-block.c46898e7.cjs +0 -3
  43. package/dist/vue-2/render-component.61552d2f.cjs +0 -1
  44. package/dist/vue-2/render-component.7863c949.js +0 -27
  45. package/dist/vue-2/render-repeated-block.b228208b.cjs +0 -1
  46. package/dist/vue-2/render-repeated-block.ec12e3ae.js +0 -39
  47. package/dist/vue-2/render-styles.9ef447c4.js +0 -62
  48. package/dist/vue-3/index.e1b4b830.cjs +0 -1
  49. package/dist/vue-3/render-block.66ba74d8.js +0 -214
  50. package/dist/vue-3/render-block.7f3bcf7c.cjs +0 -3
  51. package/dist/vue-3/render-component.3fc97401.js +0 -29
  52. package/dist/vue-3/render-component.8c88611c.cjs +0 -1
  53. package/dist/vue-3/render-repeated-block.782a1fd8.js +0 -34
  54. package/dist/vue-3/render-repeated-block.f3519de4.cjs +0 -1
  55. package/dist/vue-3/render-styles.8ab3c39a.js +0 -54
@@ -1,10 +1,10 @@
1
- import { defineAsyncComponent as v, resolveComponent as _, openBlock as d, createElementBlock as p, normalizeStyle as k, Fragment as j, renderList as E, createVNode as oe, createElementVNode as O, createCommentVNode as y, normalizeClass as re, renderSlot as S, mergeProps as x, toDisplayString as N, createBlock as C } from "vue";
2
- const A = "vue3";
1
+ import { defineAsyncComponent as v, resolveComponent as _, openBlock as d, createElementBlock as p, normalizeStyle as k, Fragment as j, renderList as E, createVNode as re, createElementVNode as O, createCommentVNode as y, normalizeClass as ae, renderSlot as C, mergeProps as x, toDisplayString as N, createBlock as S } from "vue";
2
+ const V = "vue3";
3
3
  function f() {
4
4
  return typeof window < "u" && typeof document < "u";
5
5
  }
6
6
  const B = {};
7
- function ke(e, n) {
7
+ function Ce(e, n) {
8
8
  let t = B[e];
9
9
  if (t || (t = B[e] = []), t.push(n), f()) {
10
10
  const o = {
@@ -22,7 +22,7 @@ function ke(e, n) {
22
22
  }
23
23
  }
24
24
  const Se = () => {
25
- ke("insertMenu", {
25
+ Ce("insertMenu", {
26
26
  name: "_default",
27
27
  default: !0,
28
28
  items: [
@@ -36,12 +36,12 @@ const Se = () => {
36
36
  { name: "Custom Code" }
37
37
  ]
38
38
  });
39
- }, Ce = () => {
39
+ }, Ie = () => {
40
40
  var e;
41
41
  f() && ((e = window.parent) == null || e.postMessage({
42
42
  type: "builder.sdkInfo",
43
43
  data: {
44
- target: A,
44
+ target: V,
45
45
  supportsPatchUpdates: !1
46
46
  }
47
47
  }, "*"), window.addEventListener("message", ({ data: n }) => {
@@ -49,17 +49,17 @@ const Se = () => {
49
49
  if (n)
50
50
  switch (n.type) {
51
51
  case "builder.evaluate": {
52
- const r = n.data.text, s = n.data.arguments || [], i = n.data.id, c = new Function(r);
53
- let a, l = null;
52
+ const r = n.data.text, a = n.data.arguments || [], i = n.data.id, l = new Function(r);
53
+ let s, c = null;
54
54
  try {
55
- a = c.apply(null, s);
55
+ s = l.apply(null, a);
56
56
  } catch (u) {
57
- l = u;
57
+ c = u;
58
58
  }
59
- l ? (t = window.parent) == null || t.postMessage({
59
+ c ? (t = window.parent) == null || t.postMessage({
60
60
  type: "builder.evaluateError",
61
- data: { id: i, error: l.message }
62
- }, "*") : a && typeof a.then == "function" ? a.then((u) => {
61
+ data: { id: i, error: c.message }
62
+ }, "*") : s && typeof s.then == "function" ? s.then((u) => {
63
63
  var m;
64
64
  (m = window.parent) == null || m.postMessage({
65
65
  type: "builder.evaluateResult",
@@ -67,92 +67,114 @@ const Se = () => {
67
67
  }, "*");
68
68
  }).catch(console.error) : (o = window.parent) == null || o.postMessage({
69
69
  type: "builder.evaluateResult",
70
- data: { result: a, id: i }
70
+ data: { result: s, id: i }
71
71
  }, "*");
72
72
  break;
73
73
  }
74
74
  }
75
75
  }));
76
- }, Ie = () => Promise.resolve().then(() => xe), Te = {
77
- name: "builder-columns",
78
- components: { "render-blocks": v(Ie) },
79
- props: ["space", "columns", "stackColumnsAt", "reverseColumnsWhenStacked", "builderBlock"],
80
- computed: { columnsCssVars() {
81
- const e = this.stackColumnsAt === "never" ? "inherit" : this.reverseColumnsWhenStacked ? "column-reverse" : "column";
82
- return {
83
- "--flex-dir": e,
84
- "--flex-dir-tablet": this.maybeApplyForTablet(e)
85
- };
86
- }, columnCssVars() {
87
- const e = "100%", n = "0";
88
- return {
89
- "--column-width": e,
90
- "--column-margin-left": n,
91
- "--column-width-tablet": this.maybeApplyForTablet(e),
92
- "--column-margin-left-tablet": this.maybeApplyForTablet(n)
93
- };
94
- } },
95
- methods: { getGutterSize() {
96
- return typeof this.space == "number" ? this.space || 0 : 20;
97
- }, getColumns() {
98
- return this.columns || [];
99
- }, getWidth(e) {
100
- var t;
101
- const n = this.getColumns();
102
- return ((t = n[e]) == null ? void 0 : t.width) || 100 / n.length;
103
- }, getColumnCssWidth(e) {
104
- const n = this.getColumns(), o = this.getGutterSize() * (n.length - 1) / n.length;
105
- return `calc(${this.getWidth(e)}% - ${o}px)`;
106
- }, maybeApplyForTablet(e) {
107
- return (this.stackColumnsAt || "tablet") === "tablet" ? e : "inherit";
108
- } }
109
76
  };
77
+ function A(e) {
78
+ return e;
79
+ }
80
+ function Gn(e) {
81
+ return e;
82
+ }
110
83
  const h = (e, n) => {
111
84
  const t = e.__vccOpts || e;
112
85
  for (const [o, r] of n)
113
86
  t[o] = r;
114
87
  return t;
88
+ }, Te = () => Promise.resolve().then(() => we).then((e) => e.default), Oe = {
89
+ name: "builder-columns",
90
+ components: { "render-blocks": v(Te) },
91
+ props: [
92
+ "space",
93
+ "columns",
94
+ "stackColumnsAt",
95
+ "reverseColumnsWhenStacked",
96
+ "builderBlock"
97
+ ],
98
+ data: () => ({ markMutable: A }),
99
+ computed: {
100
+ columnsCssVars() {
101
+ const e = this.stackColumnsAt === "never" ? "inherit" : this.reverseColumnsWhenStacked ? "column-reverse" : "column";
102
+ return {
103
+ "--flex-dir": e,
104
+ "--flex-dir-tablet": this.maybeApplyForTablet(e)
105
+ };
106
+ },
107
+ columnCssVars() {
108
+ const e = "100%", n = "0";
109
+ return {
110
+ "--column-width": e,
111
+ "--column-margin-left": n,
112
+ "--column-width-tablet": this.maybeApplyForTablet(e),
113
+ "--column-margin-left-tablet": this.maybeApplyForTablet(n)
114
+ };
115
+ }
116
+ },
117
+ methods: {
118
+ getGutterSize() {
119
+ return typeof this.space == "number" ? this.space || 0 : 20;
120
+ },
121
+ getColumns() {
122
+ return this.columns || [];
123
+ },
124
+ getWidth(e) {
125
+ var t;
126
+ const n = this.getColumns();
127
+ return ((t = n[e]) == null ? void 0 : t.width) || 100 / n.length;
128
+ },
129
+ getColumnCssWidth(e) {
130
+ const n = this.getColumns(), o = this.getGutterSize() * (n.length - 1) / n.length;
131
+ return `calc(${this.getWidth(e)}% - ${o}px)`;
132
+ },
133
+ maybeApplyForTablet(e) {
134
+ return (this.stackColumnsAt || "tablet") === "tablet" ? e : "inherit";
135
+ }
136
+ }
115
137
  };
116
- function Oe(e, n, t, o, r, s) {
138
+ function Pe(e, n, t, o, r, a) {
117
139
  const i = _("render-blocks");
118
140
  return d(), p("div", {
119
- class: "builder-columns div-2btisl9m7v3",
120
- style: k(s.columnsCssVars)
141
+ class: "builder-columns div-1eih9th5ow6",
142
+ style: k(a.columnsCssVars)
121
143
  }, [
122
- (d(!0), p(j, null, E(t.columns, (c, a) => (d(), p("div", {
123
- key: a,
124
- class: "builder-column div-2btisl9m7v3-2",
144
+ (d(!0), p(j, null, E(t.columns, (l, s) => (d(), p("div", {
145
+ key: s,
146
+ class: "builder-column div-1eih9th5ow6-2",
125
147
  style: k({
126
- width: s.getColumnCssWidth(a),
127
- marginLeft: `${a === 0 ? 0 : s.getGutterSize()}px`,
128
- ...s.columnCssVars
148
+ width: a.getColumnCssWidth(s),
149
+ marginLeft: `${s === 0 ? 0 : a.getGutterSize()}px`,
150
+ ...a.columnCssVars
129
151
  })
130
152
  }, [
131
- oe(i, {
132
- blocks: c.blocks,
133
- path: `component.options.columns.${a}.blocks`,
153
+ re(i, {
154
+ blocks: e.markMutable(l.blocks),
155
+ path: `component.options.columns.${s}.blocks`,
134
156
  parent: t.builderBlock.id
135
157
  }, null, 8, ["blocks", "path", "parent"])
136
158
  ], 4))), 128))
137
159
  ], 4);
138
160
  }
139
- const Pe = /* @__PURE__ */ h(Te, [["render", Oe], ["__scopeId", "data-v-09035d1d"]]);
140
- function M(e) {
161
+ const Re = /* @__PURE__ */ h(Oe, [["render", Pe], ["__scopeId", "data-v-e51b00d3"]]);
162
+ function q(e) {
141
163
  return e.replace(/http(s)?:/, "");
142
164
  }
143
- function Re(e = "", n, t) {
165
+ function je(e = "", n, t) {
144
166
  const o = new RegExp("([?&])" + n + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
145
167
  return e.match(o) ? e.replace(o, "$1" + n + "=" + encodeURIComponent(t) + "$2") : e + r + n + "=" + encodeURIComponent(t);
146
168
  }
147
- function je(e, n) {
169
+ function Ee(e, n) {
148
170
  if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !n)
149
171
  return e;
150
172
  if (n === "master")
151
- return M(e);
173
+ return q(e);
152
174
  const t = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
153
175
  if (t) {
154
- const o = e.split(t[0]), r = t[3], s = n.match("x") ? n : `${n}x`;
155
- return M(`${o[0]}_${s}${r}`);
176
+ const o = e.split(t[0]), r = t[3], a = n.match("x") ? n : `${n}x`;
177
+ return q(`${o[0]}_${a}${r}`);
156
178
  }
157
179
  return null;
158
180
  }
@@ -163,51 +185,67 @@ function P(e) {
163
185
  if (e.match(/builder\.io/)) {
164
186
  let t = e;
165
187
  const o = Number(e.split("?width=")[1]);
166
- return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${Re(e, "width", r)} ${r}w`).concat([t]).join(", ");
188
+ return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${je(e, "width", r)} ${r}w`).concat([t]).join(", ");
167
189
  }
168
- return e.match(/cdn\.shopify\.com/) ? n.map((t) => [je(e, `${t}x${t}`), t]).filter(([t]) => !!t).map(([t, o]) => `${t} ${o}w`).concat([e]).join(", ") : e;
190
+ return e.match(/cdn\.shopify\.com/) ? n.map((t) => [Ee(e, `${t}x${t}`), t]).filter(([t]) => !!t).map(([t, o]) => `${t} ${o}w`).concat([e]).join(", ") : e;
169
191
  }
170
- const Ee = {
192
+ const $e = {
171
193
  name: "builder-image",
172
- props: ["image", "src", "srcset", "noWebp", "altText", "backgroundSize", "className", "sizes", "aspectRatio", "fitContent", "builderBlock"],
173
- computed: { srcSetToUse() {
174
- var t;
175
- const n = this.image || this.src;
176
- if (!n || !(n.match(/builder\.io/) || n.match(/cdn\.shopify\.com/)))
177
- return this.srcset;
178
- if (this.srcset && ((t = this.image) == null ? void 0 : t.includes("builder.io/api/v1/image"))) {
179
- if (!this.srcset.includes(this.image.split("?")[0]))
180
- return console.debug("Removed given srcset"), P(n);
181
- } else if (this.image && !this.srcset)
194
+ props: [
195
+ "image",
196
+ "src",
197
+ "srcset",
198
+ "noWebp",
199
+ "altText",
200
+ "backgroundSize",
201
+ "className",
202
+ "sizes",
203
+ "aspectRatio",
204
+ "fitContent",
205
+ "builderBlock"
206
+ ],
207
+ computed: {
208
+ srcSetToUse() {
209
+ var t;
210
+ const n = this.image || this.src;
211
+ if (!n || !(n.match(/builder\.io/) || n.match(/cdn\.shopify\.com/)))
212
+ return this.srcset;
213
+ if (this.srcset && ((t = this.image) == null ? void 0 : t.includes("builder.io/api/v1/image"))) {
214
+ if (!this.srcset.includes(this.image.split("?")[0]))
215
+ return console.debug("Removed given srcset"), P(n);
216
+ } else if (this.image && !this.srcset)
217
+ return P(n);
182
218
  return P(n);
183
- return P(n);
184
- }, webpSrcSet() {
185
- var e;
186
- return ((e = this.srcSetToUse) == null ? void 0 : e.match(/builder\.io/)) && !this.noWebp ? this.srcSetToUse.replace(/\?/g, "?format=webp&") : "";
187
- } },
188
- methods: { _classStringToObject(e) {
189
- const n = {};
190
- if (typeof e != "string")
219
+ },
220
+ webpSrcSet() {
221
+ var e;
222
+ return ((e = this.srcSetToUse) == null ? void 0 : e.match(/builder\.io/)) && !this.noWebp ? this.srcSetToUse.replace(/\?/g, "?format=webp&") : "";
223
+ }
224
+ },
225
+ methods: {
226
+ _classStringToObject(e) {
227
+ const n = {};
228
+ if (typeof e != "string")
229
+ return n;
230
+ const t = e.trim().split(/\s+/);
231
+ for (const o of t)
232
+ n[o] = !0;
191
233
  return n;
192
- const t = e.trim().split(/\s+/);
193
- for (const o of t)
194
- n[o] = !0;
195
- return n;
196
- } }
197
- };
198
- const $e = { class: "div-2oob28krk0a" }, Fe = ["srcset"], Ue = ["alt", "role", "src", "srcset", "sizes"], Ae = ["srcset"], Ve = {
234
+ }
235
+ }
236
+ }, Fe = { class: "div-2pqqf5a7788" }, Ue = ["srcset"], Ve = ["alt", "role", "src", "srcset", "sizes"], Ae = ["srcset"], We = {
199
237
  key: 2,
200
- class: "div-2oob28krk0a-3"
238
+ class: "div-2pqqf5a7788-3"
201
239
  };
202
- function We(e, n, t, o, r, s) {
203
- var i, c, a, l;
204
- return d(), p("div", $e, [
240
+ function Le(e, n, t, o, r, a) {
241
+ var i, l, s, c;
242
+ return d(), p("div", Fe, [
205
243
  O("picture", null, [
206
- s.webpSrcSet ? (d(), p("source", {
244
+ a.webpSrcSet ? (d(), p("source", {
207
245
  key: 0,
208
246
  type: "image/webp",
209
- srcset: s.webpSrcSet
210
- }, null, 8, Fe)) : y("", !0),
247
+ srcset: a.webpSrcSet
248
+ }, null, 8, Ue)) : y("", !0),
211
249
  O("img", {
212
250
  loading: "lazy",
213
251
  alt: t.altText,
@@ -216,66 +254,79 @@ function We(e, n, t, o, r, s) {
216
254
  objectPosition: t.backgroundSize || "center",
217
255
  objectFit: t.backgroundSize || "cover"
218
256
  }),
219
- class: re(
220
- s._classStringToObject(
221
- "builder-image" + (t.className ? " " + t.className : "") + " img-2oob28krk0a"
257
+ class: ae(
258
+ a._classStringToObject(
259
+ "builder-image" + (t.className ? " " + t.className : "") + " img-2pqqf5a7788"
222
260
  )
223
261
  ),
224
262
  src: t.image,
225
- srcset: s.srcSetToUse,
263
+ srcset: a.srcSetToUse,
226
264
  sizes: t.sizes
227
- }, null, 14, Ue),
228
- O("source", { srcset: s.srcSetToUse }, null, 8, Ae)
265
+ }, null, 14, Ve),
266
+ O("source", { srcset: a.srcSetToUse }, null, 8, Ae)
229
267
  ]),
230
- t.aspectRatio && !(t.fitContent && ((c = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : c.length)) ? (d(), p("div", {
268
+ t.aspectRatio && !(t.fitContent && ((l = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : l.length)) ? (d(), p("div", {
231
269
  key: 0,
232
- class: "builder-image-sizer div-2oob28krk0a-2",
270
+ class: "builder-image-sizer div-2pqqf5a7788-2",
233
271
  style: k({
234
272
  paddingTop: t.aspectRatio * 100 + "%"
235
273
  })
236
274
  }, null, 4)) : y("", !0),
237
- ((l = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length) && t.fitContent ? S(e.$slots, "default", { key: 1 }, void 0, !0) : y("", !0),
238
- t.fitContent ? y("", !0) : (d(), p("div", Ve, [
239
- S(e.$slots, "default", {}, void 0, !0)
275
+ ((c = (s = t.builderBlock) == null ? void 0 : s.children) == null ? void 0 : c.length) && t.fitContent ? C(e.$slots, "default", { key: 1 }, void 0, !0) : y("", !0),
276
+ t.fitContent ? y("", !0) : (d(), p("div", We, [
277
+ C(e.$slots, "default", {}, void 0, !0)
240
278
  ]))
241
279
  ]);
242
280
  }
243
- const Le = /* @__PURE__ */ h(Ee, [["render", We], ["__scopeId", "data-v-0959cbf6"]]), Ne = {
281
+ const Me = /* @__PURE__ */ h($e, [["render", Le], ["__scopeId", "data-v-acda3ece"]]), Ne = {
244
282
  name: "builder-text",
245
283
  props: ["text"]
246
284
  }, Be = ["innerHTML"];
247
- function Me(e, n, t, o, r, s) {
285
+ function qe(e, n, t, o, r, a) {
248
286
  return d(), p("div", {
249
287
  class: "builder-text",
250
288
  innerHTML: t.text
251
289
  }, null, 8, Be);
252
290
  }
253
- const De = /* @__PURE__ */ h(Ne, [["render", Me]]), ze = {
291
+ const De = /* @__PURE__ */ h(Ne, [["render", qe]]), ze = {
254
292
  name: "builder-video",
255
- props: ["autoPlay", "muted", "controls", "loop", "playsInline", "attributes", "fit", "position", "video", "posterImage"],
256
- computed: { videoProps() {
257
- return {
258
- ...this.autoPlay === !0 ? {
259
- autoPlay: !0
260
- } : {},
261
- ...this.muted === !0 ? {
262
- muted: !0
263
- } : {},
264
- ...this.controls === !0 ? {
265
- controls: !0
266
- } : {},
267
- ...this.loop === !0 ? {
268
- loop: !0
269
- } : {},
270
- ...this.playsInline === !0 ? {
271
- playsInline: !0
272
- } : {}
273
- };
274
- } }
293
+ props: [
294
+ "autoPlay",
295
+ "muted",
296
+ "controls",
297
+ "loop",
298
+ "playsInline",
299
+ "attributes",
300
+ "fit",
301
+ "position",
302
+ "video",
303
+ "posterImage"
304
+ ],
305
+ computed: {
306
+ videoProps() {
307
+ return {
308
+ ...this.autoPlay === !0 ? {
309
+ autoPlay: !0
310
+ } : {},
311
+ ...this.muted === !0 ? {
312
+ muted: !0
313
+ } : {},
314
+ ...this.controls === !0 ? {
315
+ controls: !0
316
+ } : {},
317
+ ...this.loop === !0 ? {
318
+ loop: !0
319
+ } : {},
320
+ ...this.playsInline === !0 ? {
321
+ playsInline: !0
322
+ } : {}
323
+ };
324
+ }
325
+ }
275
326
  }, He = ["src", "poster"];
276
- function qe(e, n, t, o, r, s) {
327
+ function Ke(e, n, t, o, r, a) {
277
328
  var i;
278
- return d(), p("video", x(s.videoProps, {
329
+ return d(), p("video", x(a.videoProps, {
279
330
  style: {
280
331
  width: "100%",
281
332
  height: "100%",
@@ -288,23 +339,23 @@ function qe(e, n, t, o, r, s) {
288
339
  poster: t.posterImage
289
340
  }), null, 16, He);
290
341
  }
291
- const Ke = /* @__PURE__ */ h(ze, [["render", qe]]);
292
- var Ge = Object.defineProperty, Je = Object.defineProperties, Ye = Object.getOwnPropertyDescriptors, D = Object.getOwnPropertySymbols, Xe = Object.prototype.hasOwnProperty, Qe = Object.prototype.propertyIsEnumerable, z = (e, n, t) => n in e ? Ge(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, R = (e, n) => {
342
+ const Ge = /* @__PURE__ */ h(ze, [["render", Ke]]);
343
+ var Je = Object.defineProperty, Ye = Object.defineProperties, Xe = Object.getOwnPropertyDescriptors, D = Object.getOwnPropertySymbols, Qe = Object.prototype.hasOwnProperty, Ze = Object.prototype.propertyIsEnumerable, z = (e, n, t) => n in e ? Je(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, R = (e, n) => {
293
344
  for (var t in n || (n = {}))
294
- Xe.call(n, t) && z(e, t, n[t]);
345
+ Qe.call(n, t) && z(e, t, n[t]);
295
346
  if (D)
296
347
  for (var t of D(n))
297
- Qe.call(n, t) && z(e, t, n[t]);
348
+ Ze.call(n, t) && z(e, t, n[t]);
298
349
  return e;
299
- }, Ze = (e, n) => Je(e, Ye(n));
350
+ }, et = (e, n) => Ye(e, Xe(n));
300
351
  function $(e, n = null, t = ".") {
301
352
  return Object.keys(e).reduce((o, r) => {
302
- const s = e[r], i = [n, r].filter(Boolean).join(t);
353
+ const a = e[r], i = [n, r].filter(Boolean).join(t);
303
354
  return [
304
- typeof s == "object",
305
- s !== null,
306
- !(Array.isArray(s) && s.length === 0)
307
- ].every(Boolean) ? R(R({}, o), $(s, i, t)) : Ze(R({}, o), { [i]: s });
355
+ typeof a == "object",
356
+ a !== null,
357
+ !(Array.isArray(a) && a.length === 0)
358
+ ].every(Boolean) ? R(R({}, o), $(a, i, t)) : et(R({}, o), { [i]: a });
308
359
  }, {});
309
360
  }
310
361
  const H = "builder.", se = (e) => {
@@ -312,7 +363,7 @@ const H = "builder.", se = (e) => {
312
363
  return e.forEach((t, o) => {
313
364
  n[o] = t;
314
365
  }), n;
315
- }, et = (e) => {
366
+ }, tt = (e) => {
316
367
  const n = {};
317
368
  return Object.keys(e).forEach((t) => {
318
369
  if (t.startsWith(H)) {
@@ -320,34 +371,34 @@ const H = "builder.", se = (e) => {
320
371
  n[o] = e[t];
321
372
  }
322
373
  }), n;
323
- }, tt = () => {
374
+ }, nt = () => {
324
375
  if (!f())
325
376
  return {};
326
377
  const e = new URLSearchParams(window.location.search);
327
- return et(se(e));
328
- }, nt = (e) => e instanceof URLSearchParams ? se(e) : e;
329
- function ot() {
378
+ return tt(se(e));
379
+ }, ot = (e) => e instanceof URLSearchParams ? se(e) : e;
380
+ function rt() {
330
381
  return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
331
382
  }
332
- var rt = (e, n, t) => new Promise((o, r) => {
333
- var s = (a) => {
383
+ var at = (e, n, t) => new Promise((o, r) => {
384
+ var a = (s) => {
334
385
  try {
335
- c(t.next(a));
336
- } catch (l) {
337
- r(l);
386
+ l(t.next(s));
387
+ } catch (c) {
388
+ r(c);
338
389
  }
339
- }, i = (a) => {
390
+ }, i = (s) => {
340
391
  try {
341
- c(t.throw(a));
342
- } catch (l) {
343
- r(l);
392
+ l(t.throw(s));
393
+ } catch (c) {
394
+ r(c);
344
395
  }
345
- }, c = (a) => a.done ? o(a.value) : Promise.resolve(a.value).then(s, i);
346
- c((t = t.apply(e, n)).next());
396
+ }, l = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(a, i);
397
+ l((t = t.apply(e, n)).next());
347
398
  });
348
- function ae() {
349
- return rt(this, null, function* () {
350
- const e = ot().fetch;
399
+ function ie() {
400
+ return at(this, null, function* () {
401
+ const e = rt().fetch;
351
402
  if (typeof e > "u" && typeof global < "u") {
352
403
  const n = import("./index.3e132178.js").then((t) => t.default);
353
404
  return n.default || n;
@@ -362,15 +413,15 @@ const st = (e, n) => {
362
413
  e.data = o.data, e.testVariationId = o.id, e.testVariationName = o.name;
363
414
  else {
364
415
  let r = 0;
365
- const s = Math.random();
416
+ const a = Math.random();
366
417
  let i = !1;
367
- for (const c in e.variations) {
368
- const a = e.variations[c];
369
- if (r += a.testRatio, s < r) {
370
- const u = a.name || (a.id === e.id ? "Default variation" : "");
418
+ for (const l in e.variations) {
419
+ const s = e.variations[l];
420
+ if (r += s.testRatio, a < r) {
421
+ const u = s.name || (s.id === e.id ? "Default variation" : "");
371
422
  i = !0, Object.assign(e, {
372
- data: a.data,
373
- testVariationId: a.id,
423
+ data: s.data,
424
+ testVariationId: s.id,
374
425
  testVariationName: u
375
426
  });
376
427
  }
@@ -382,67 +433,69 @@ const st = (e, n) => {
382
433
  }
383
434
  }
384
435
  };
385
- var at = Object.defineProperty, it = Object.defineProperties, ct = Object.getOwnPropertyDescriptors, q = Object.getOwnPropertySymbols, lt = Object.prototype.hasOwnProperty, dt = Object.prototype.propertyIsEnumerable, K = (e, n, t) => n in e ? at(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, F = (e, n) => {
436
+ var it = Object.defineProperty, lt = Object.defineProperties, ct = Object.getOwnPropertyDescriptors, K = Object.getOwnPropertySymbols, dt = Object.prototype.hasOwnProperty, ut = Object.prototype.propertyIsEnumerable, G = (e, n, t) => n in e ? it(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, F = (e, n) => {
386
437
  for (var t in n || (n = {}))
387
- lt.call(n, t) && K(e, t, n[t]);
388
- if (q)
389
- for (var t of q(n))
390
- dt.call(n, t) && K(e, t, n[t]);
438
+ dt.call(n, t) && G(e, t, n[t]);
439
+ if (K)
440
+ for (var t of K(n))
441
+ ut.call(n, t) && G(e, t, n[t]);
391
442
  return e;
392
- }, ut = (e, n) => it(e, ct(n)), ie = (e, n, t) => new Promise((o, r) => {
393
- var s = (a) => {
443
+ }, pt = (e, n) => lt(e, ct(n)), le = (e, n, t) => new Promise((o, r) => {
444
+ var a = (s) => {
394
445
  try {
395
- c(t.next(a));
396
- } catch (l) {
397
- r(l);
446
+ l(t.next(s));
447
+ } catch (c) {
448
+ r(c);
398
449
  }
399
- }, i = (a) => {
450
+ }, i = (s) => {
400
451
  try {
401
- c(t.throw(a));
402
- } catch (l) {
403
- r(l);
452
+ l(t.throw(s));
453
+ } catch (c) {
454
+ r(c);
404
455
  }
405
- }, c = (a) => a.done ? o(a.value) : Promise.resolve(a.value).then(s, i);
406
- c((t = t.apply(e, n)).next());
456
+ }, l = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(a, i);
457
+ l((t = t.apply(e, n)).next());
407
458
  });
408
- const pt = ae();
459
+ const mt = ie();
409
460
  function ce(e) {
410
- return ie(this, null, function* () {
411
- return (yield ft(ut(F({}, e), { limit: 1 }))).results[0] || null;
461
+ return le(this, null, function* () {
462
+ return (yield ht(pt(F({}, e), { limit: 1 }))).results[0] || null;
412
463
  });
413
464
  }
414
- const mt = (e) => {
465
+ const ft = (e) => {
415
466
  const {
416
467
  limit: n = 30,
417
468
  userAttributes: t,
418
469
  query: o,
419
470
  noTraverse: r = !1,
420
- model: s,
471
+ model: a,
421
472
  apiKey: i
422
- } = e, c = new URL(`https://cdn.builder.io/api/v2/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${r}`), a = F(F({}, tt()), nt(e.options || {})), l = $(a);
423
- for (const u in l)
424
- c.searchParams.set(u, String(l[u]));
425
- if (t && c.searchParams.set("userAttributes", JSON.stringify(t)), o) {
473
+ } = e, l = new URL(`https://cdn.builder.io/api/v2/content/${a}?apiKey=${i}&limit=${n}&noTraverse=${r}`), s = F(F({}, nt()), ot(e.options || {})), c = $(s);
474
+ for (const u in c)
475
+ l.searchParams.set(u, String(c[u]));
476
+ if (t && l.searchParams.set("userAttributes", JSON.stringify(t)), o) {
426
477
  const u = $({ query: o });
427
478
  for (const m in u)
428
- c.searchParams.set(m, JSON.stringify(u[m]));
479
+ l.searchParams.set(m, JSON.stringify(u[m]));
429
480
  }
430
- return c;
481
+ return l;
431
482
  };
432
- function ft(e) {
433
- return ie(this, null, function* () {
434
- const n = mt(e), o = yield (yield pt)(n.href).then((r) => r.json());
483
+ function ht(e) {
484
+ return le(this, null, function* () {
485
+ const n = ft(e), o = yield (yield mt)(n.href).then((r) => r.json());
435
486
  if (e.testGroups)
436
487
  for (const r of o.results)
437
488
  st(r, e.testGroups);
438
489
  return o;
439
490
  });
440
491
  }
441
- const ht = () => Promise.resolve().then(() => Ln), gt = {
492
+ const gt = () => Promise.resolve().then(() => Mn).then(
493
+ (e) => e.default
494
+ ), bt = {
442
495
  name: "builder-symbol",
443
- components: { "render-content": v(ht) },
496
+ components: { "render-content": v(gt) },
444
497
  props: ["symbol", "attributes"],
445
- data: () => ({ className: "builder-symbol", content: null }),
498
+ data: () => ({ className: "builder-symbol", content: null, markMutable: A }),
446
499
  inject: {
447
500
  builderContext: "BuilderContext"
448
501
  },
@@ -464,83 +517,84 @@ const ht = () => Promise.resolve().then(() => Ln), gt = {
464
517
  });
465
518
  }
466
519
  },
467
- computed: { onUpdateHook0() {
468
- var e, n, t;
469
- return {
470
- 0: (e = this.symbol) == null ? void 0 : e.content,
471
- 1: (n = this.symbol) == null ? void 0 : n.model,
472
- 2: (t = this.symbol) == null ? void 0 : t.entry,
473
- 3: this.content
474
- };
475
- } },
476
- methods: { _classStringToObject(e) {
477
- const n = {};
478
- if (typeof e != "string")
520
+ computed: {
521
+ onUpdateHook0() {
522
+ return {
523
+ 0: this.symbol,
524
+ 1: this.content
525
+ };
526
+ }
527
+ },
528
+ methods: {
529
+ _classStringToObject(e) {
530
+ const n = {};
531
+ if (typeof e != "string")
532
+ return n;
533
+ const t = e.trim().split(/\s+/);
534
+ for (const o of t)
535
+ n[o] = !0;
479
536
  return n;
480
- const t = e.trim().split(/\s+/);
481
- for (const o of t)
482
- n[o] = !0;
483
- return n;
484
- } }
485
- }, bt = ["dataSet"];
486
- function yt(e, n, t, o, r, s) {
487
- var c, a, l, u, m;
537
+ }
538
+ }
539
+ }, yt = ["dataSet"];
540
+ function vt(e, n, t, o, r, a) {
541
+ var l, s, c, u, m;
488
542
  const i = _("render-content");
489
543
  return d(), p("div", x(t.attributes, {
490
544
  dataSet: {
491
545
  class: e.className
492
546
  },
493
- class: s._classStringToObject(e.className)
547
+ class: a._classStringToObject(e.className)
494
548
  }), [
495
- oe(i, {
496
- apiKey: s.builderContext.apiKey,
497
- context: s.builderContext.context,
498
- customComponents: Object.values(s.builderContext.registeredComponents),
499
- data: {
500
- ...(c = t.symbol) == null ? void 0 : c.data,
501
- ...s.builderContext.state,
502
- ...(u = (l = (a = t.symbol) == null ? void 0 : a.content) == null ? void 0 : l.data) == null ? void 0 : u.state
503
- },
549
+ re(i, {
550
+ apiKey: a.builderContext.apiKey,
551
+ context: a.builderContext.context,
552
+ customComponents: e.markMutable(Object.values(a.builderContext.registeredComponents)),
553
+ data: e.markMutable({
554
+ ...(l = t.symbol) == null ? void 0 : l.data,
555
+ ...a.builderContext.state,
556
+ ...(u = (c = (s = t.symbol) == null ? void 0 : s.content) == null ? void 0 : c.data) == null ? void 0 : u.state
557
+ }),
504
558
  model: (m = t.symbol) == null ? void 0 : m.model,
505
- content: e.content
559
+ content: e.markMutable(e.content)
506
560
  }, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
507
- ], 16, bt);
561
+ ], 16, yt);
508
562
  }
509
- const vt = /* @__PURE__ */ h(gt, [["render", yt]]), _t = {
563
+ const _t = /* @__PURE__ */ h(bt, [["render", vt]]);
564
+ const xt = {
510
565
  name: "builder-button",
511
566
  props: ["attributes", "text", "link", "openLinkInNewTab"]
512
- };
513
- const xt = ["href", "target"];
514
- function wt(e, n, t, o, r, s) {
567
+ }, wt = ["href", "target"];
568
+ function kt(e, n, t, o, r, a) {
515
569
  return t.link ? (d(), p("a", x({ key: 0 }, t.attributes, {
516
570
  role: "button",
517
571
  href: t.link,
518
572
  target: t.openLinkInNewTab ? "_blank" : void 0
519
- }), N(t.text), 17, xt)) : (d(), p("button", x({ key: 1 }, t.attributes, { class: "button-1eih9th5ow6" }), N(t.text), 17));
573
+ }), N(t.text), 17, wt)) : (d(), p("button", x({ key: 1 }, t.attributes, { class: "button-361b1o6wv2k" }), N(t.text), 17));
520
574
  }
521
- const kt = /* @__PURE__ */ h(_t, [["render", wt], ["__scopeId", "data-v-9f638774"]]), St = {
575
+ const Ct = /* @__PURE__ */ h(xt, [["render", kt], ["__scopeId", "data-v-9b7358fe"]]), St = {
522
576
  name: "builder-section-component",
523
577
  props: ["attributes", "maxWidth"]
524
578
  };
525
- function Ct(e, n, t, o, r, s) {
579
+ function It(e, n, t, o, r, a) {
526
580
  return d(), p("section", x(t.attributes, {
527
581
  style: t.maxWidth && typeof t.maxWidth == "number" ? {
528
582
  maxWidth: t.maxWidth
529
583
  } : void 0
530
584
  }), [
531
- S(e.$slots, "default")
585
+ C(e.$slots, "default")
532
586
  ], 16);
533
587
  }
534
- const It = /* @__PURE__ */ h(St, [["render", Ct]]), Tt = {
588
+ const Tt = /* @__PURE__ */ h(St, [["render", It]]), Ot = {
535
589
  name: "builder-fragment-component",
536
590
  props: []
537
591
  };
538
- function Ot(e, n, t, o, r, s) {
592
+ function Pt(e, n, t, o, r, a) {
539
593
  return d(), p("span", null, [
540
- S(e.$slots, "default")
594
+ C(e.$slots, "default")
541
595
  ]);
542
596
  }
543
- const Pt = /* @__PURE__ */ h(Tt, [["render", Ot]]), Rt = {
597
+ const Rt = /* @__PURE__ */ h(Ot, [["render", Pt]]), jt = {
544
598
  name: "Core:Button",
545
599
  builtIn: !0,
546
600
  image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
@@ -578,10 +632,10 @@ const Pt = /* @__PURE__ */ h(Tt, [["render", Ot]]), Rt = {
578
632
  static: !0,
579
633
  noWrap: !0
580
634
  };
581
- function V(e) {
635
+ function W(e) {
582
636
  return e.__qwik_serializable__ = !0, e;
583
637
  }
584
- const jt = {
638
+ const Et = {
585
639
  name: "Columns",
586
640
  builtIn: !0,
587
641
  inputs: [
@@ -769,14 +823,14 @@ const jt = {
769
823
  ]
770
824
  }
771
825
  ],
772
- onChange: V((e) => {
826
+ onChange: W((e) => {
773
827
  function n() {
774
828
  t.forEach((o) => {
775
829
  o.delete("width");
776
830
  });
777
831
  }
778
832
  const t = e.get("columns");
779
- Array.isArray(t) && !!t.find((r) => r.get("width")) && (!!t.find((s) => !s.get("width")) || t.reduce((c, a) => c + a.get("width"), 0) !== 100) && n();
833
+ Array.isArray(t) && !!t.find((r) => r.get("width")) && (!!t.find((a) => !a.get("width")) || t.reduce((l, s) => l + s.get("width"), 0) !== 100) && n();
780
834
  })
781
835
  },
782
836
  {
@@ -802,14 +856,14 @@ const jt = {
802
856
  advanced: !0
803
857
  }
804
858
  ]
805
- }, Et = {
859
+ }, $t = {
806
860
  name: "Fragment",
807
861
  static: !0,
808
862
  hidden: !0,
809
863
  builtIn: !0,
810
864
  canHaveChildren: !0,
811
865
  noWrap: !0
812
- }, $t = {
866
+ }, Ft = {
813
867
  name: "Image",
814
868
  static: !0,
815
869
  builtIn: !0,
@@ -829,31 +883,31 @@ const jt = {
829
883
  allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
830
884
  required: !0,
831
885
  defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
832
- onChange: V((e) => {
886
+ onChange: W((e) => {
833
887
  e.delete("srcset"), e.delete("noWebp");
834
- function t(i, c = 6e4) {
835
- return new Promise((a, l) => {
888
+ function t(i, l = 6e4) {
889
+ return new Promise((s, c) => {
836
890
  const u = document.createElement("img");
837
891
  let m = !1;
838
892
  u.onload = () => {
839
- m = !0, a(u);
893
+ m = !0, s(u);
840
894
  }, u.addEventListener("error", (w) => {
841
- console.warn("Image load failed", w.error), l(w.error);
895
+ console.warn("Image load failed", w.error), c(w.error);
842
896
  }), u.src = i, setTimeout(() => {
843
- m || l(new Error("Image load timed out"));
844
- }, c);
897
+ m || c(new Error("Image load timed out"));
898
+ }, l);
845
899
  });
846
900
  }
847
901
  function o(i) {
848
902
  return Math.round(i * 1e3) / 1e3;
849
903
  }
850
- const r = e.get("image"), s = e.get("aspectRatio");
904
+ const r = e.get("image"), a = e.get("aspectRatio");
851
905
  if (fetch(r).then((i) => i.blob()).then((i) => {
852
906
  i.type.includes("svg") && e.set("noWebp", !0);
853
- }), r && (!s || s === 0.7041))
907
+ }), r && (!a || a === 0.7041))
854
908
  return t(r).then((i) => {
855
- const c = e.get("aspectRatio");
856
- 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));
909
+ const l = e.get("aspectRatio");
910
+ e.get("image") === r && (!l || l === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
857
911
  });
858
912
  })
859
913
  },
@@ -935,7 +989,7 @@ const jt = {
935
989
  defaultValue: 0.7041
936
990
  }
937
991
  ]
938
- }, Ft = {
992
+ }, Ut = {
939
993
  name: "Core:Section",
940
994
  static: !0,
941
995
  builtIn: !0,
@@ -980,7 +1034,7 @@ const jt = {
980
1034
  }
981
1035
  }
982
1036
  ]
983
- }, Ut = {
1037
+ }, Vt = {
984
1038
  name: "Symbol",
985
1039
  noWrap: !0,
986
1040
  static: !0,
@@ -1039,7 +1093,7 @@ const jt = {
1039
1093
  height: "auto",
1040
1094
  textAlign: "center"
1041
1095
  }
1042
- }, Vt = {
1096
+ }, Wt = {
1043
1097
  name: "Video",
1044
1098
  canHaveChildren: !0,
1045
1099
  builtIn: !0,
@@ -1141,7 +1195,7 @@ const jt = {
1141
1195
  advanced: !0
1142
1196
  }
1143
1197
  ]
1144
- }, Wt = {
1198
+ }, Lt = {
1145
1199
  name: "Embed",
1146
1200
  static: !0,
1147
1201
  builtIn: !0,
@@ -1152,7 +1206,7 @@ const jt = {
1152
1206
  required: !0,
1153
1207
  defaultValue: "",
1154
1208
  helperText: "e.g. enter a youtube url, google map, etc",
1155
- onChange: V((e) => {
1209
+ onChange: W((e) => {
1156
1210
  const n = e.get("url");
1157
1211
  if (n)
1158
1212
  return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${n}&api_key=ae0e60e78201a3f2b0de4b`).then((o) => o.json()).then((o) => {
@@ -1170,11 +1224,11 @@ const jt = {
1170
1224
  hideFromUI: !0
1171
1225
  }
1172
1226
  ]
1173
- }, Lt = [
1227
+ }, Mt = [
1174
1228
  "text/javascript",
1175
1229
  "application/javascript",
1176
1230
  "application/ecmascript"
1177
- ], Nt = (e) => Lt.includes(e.type), Bt = {
1231
+ ], Nt = (e) => Mt.includes(e.type), Bt = {
1178
1232
  name: "builder-embed",
1179
1233
  props: ["content"],
1180
1234
  data: () => ({ scriptsInserted: [], scriptsRun: [], ranInitFn: !1 }),
@@ -1183,35 +1237,39 @@ const jt = {
1183
1237
  this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
1184
1238
  }
1185
1239
  },
1186
- computed: { onUpdateHook0() {
1187
- return {
1188
- 0: this.$refs.elem,
1189
- 1: this.ranInitFn
1190
- };
1191
- } },
1192
- methods: { findAndRunScripts() {
1193
- const e = this.$refs.elem.getElementsByTagName("script");
1194
- for (let n = 0; n < e.length; n++) {
1195
- const t = e[n];
1196
- if (t.src && !this.scriptsInserted.includes(t.src)) {
1197
- this.scriptsInserted.push(t.src);
1198
- const o = document.createElement("script");
1199
- o.async = !0, o.src = t.src, document.head.appendChild(o);
1200
- } else if (Nt(t) && !this.scriptsRun.includes(t.innerText))
1201
- try {
1202
- this.scriptsRun.push(t.innerText), new Function(t.innerText)();
1203
- } catch (o) {
1204
- console.warn("`Embed`: Error running script:", o);
1205
- }
1240
+ computed: {
1241
+ onUpdateHook0() {
1242
+ return {
1243
+ 0: this.$refs.elem,
1244
+ 1: this.ranInitFn
1245
+ };
1246
+ }
1247
+ },
1248
+ methods: {
1249
+ findAndRunScripts() {
1250
+ const e = this.$refs.elem.getElementsByTagName("script");
1251
+ for (let n = 0; n < e.length; n++) {
1252
+ const t = e[n];
1253
+ if (t.src && !this.scriptsInserted.includes(t.src)) {
1254
+ this.scriptsInserted.push(t.src);
1255
+ const o = document.createElement("script");
1256
+ o.async = !0, o.src = t.src, document.head.appendChild(o);
1257
+ } else if (Nt(t) && !this.scriptsRun.includes(t.innerText))
1258
+ try {
1259
+ this.scriptsRun.push(t.innerText), new Function(t.innerText)();
1260
+ } catch (o) {
1261
+ console.warn("`Embed`: Error running script:", o);
1262
+ }
1263
+ }
1206
1264
  }
1207
- } }
1208
- }, Mt = ["innerHTML"];
1209
- function Dt(e, n, t, o, r, s) {
1265
+ }
1266
+ }, qt = ["innerHTML"];
1267
+ function Dt(e, n, t, o, r, a) {
1210
1268
  return d(), p("div", {
1211
1269
  class: "builder-embed",
1212
1270
  ref: "elem",
1213
1271
  innerHTML: t.content
1214
- }, null, 8, Mt);
1272
+ }, null, 8, qt);
1215
1273
  }
1216
1274
  const zt = /* @__PURE__ */ h(Bt, [["render", Dt]]);
1217
1275
  function Ht() {
@@ -1220,12 +1278,19 @@ function Ht() {
1220
1278
  function b() {
1221
1279
  return Ht() && window.location.search.indexOf("builder.frameEditing=") !== -1;
1222
1280
  }
1223
- const qt = {
1281
+ const Kt = {
1224
1282
  name: "builder-img-component",
1225
- props: ["backgroundSize", "backgroundPosition", "imgSrc", "altText", "image", "attributes"],
1283
+ props: [
1284
+ "backgroundSize",
1285
+ "backgroundPosition",
1286
+ "imgSrc",
1287
+ "altText",
1288
+ "image",
1289
+ "attributes"
1290
+ ],
1226
1291
  data: () => ({ isEditing: b })
1227
- }, Kt = ["alt", "src"];
1228
- function Gt(e, n, t, o, r, s) {
1292
+ }, Gt = ["alt", "src"];
1293
+ function Jt(e, n, t, o, r, a) {
1229
1294
  return d(), p("img", x(t.attributes, {
1230
1295
  style: {
1231
1296
  objectFit: t.backgroundSize || "cover",
@@ -1234,9 +1299,9 @@ function Gt(e, n, t, o, r, s) {
1234
1299
  key: e.isEditing() && t.imgSrc || "default-key",
1235
1300
  alt: t.altText,
1236
1301
  src: t.imgSrc || t.image
1237
- }), null, 16, Kt);
1302
+ }), null, 16, Gt);
1238
1303
  }
1239
- const Jt = /* @__PURE__ */ h(qt, [["render", Gt]]), Yt = {
1304
+ const Yt = /* @__PURE__ */ h(Kt, [["render", Jt]]), Xt = {
1240
1305
  name: "Raw:Img",
1241
1306
  hideFromInsertMenu: !0,
1242
1307
  builtIn: !0,
@@ -1253,27 +1318,27 @@ const Jt = /* @__PURE__ */ h(qt, [["render", Gt]]), Yt = {
1253
1318
  noWrap: !0,
1254
1319
  static: !0
1255
1320
  };
1256
- var Xt = Object.defineProperty, G = Object.getOwnPropertySymbols, Qt = Object.prototype.hasOwnProperty, Zt = Object.prototype.propertyIsEnumerable, J = (e, n, t) => n in e ? Xt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, g = (e, n) => {
1321
+ var Qt = Object.defineProperty, J = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, en = Object.prototype.propertyIsEnumerable, Y = (e, n, t) => n in e ? Qt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, g = (e, n) => {
1257
1322
  for (var t in n || (n = {}))
1258
- Qt.call(n, t) && J(e, t, n[t]);
1259
- if (G)
1260
- for (var t of G(n))
1261
- Zt.call(n, t) && J(e, t, n[t]);
1323
+ Zt.call(n, t) && Y(e, t, n[t]);
1324
+ if (J)
1325
+ for (var t of J(n))
1326
+ en.call(n, t) && Y(e, t, n[t]);
1262
1327
  return e;
1263
1328
  };
1264
- const en = () => [
1265
- g({ component: Pe }, jt),
1266
- g({ component: Le }, $t),
1267
- g({ component: Jt }, Yt),
1329
+ const tn = () => [
1330
+ g({ component: Re }, Et),
1331
+ g({ component: Me }, Ft),
1332
+ g({ component: Yt }, Xt),
1268
1333
  g({ component: De }, At),
1269
- g({ component: Ke }, Vt),
1270
- g({ component: vt }, Ut),
1271
- g({ component: kt }, Rt),
1272
- g({ component: It }, Ft),
1273
- g({ component: Pt }, Et),
1274
- g({ component: zt }, Wt)
1334
+ g({ component: Ge }, Wt),
1335
+ g({ component: _t }, Vt),
1336
+ g({ component: Ct }, jt),
1337
+ g({ component: Tt }, Ut),
1338
+ g({ component: Rt }, $t),
1339
+ g({ component: zt }, Lt)
1275
1340
  ];
1276
- function Y({
1341
+ function X({
1277
1342
  code: e,
1278
1343
  context: n,
1279
1344
  state: t,
@@ -1290,59 +1355,62 @@ function Y({
1290
1355
  }, i = !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
1291
1356
  try {
1292
1357
  return new Function("builder", "Builder", "state", "context", "event", i)(r, r, t, n, o);
1293
- } catch (c) {
1294
- console.warn("Builder custom code error: ", c);
1358
+ } catch (l) {
1359
+ console.warn(`Builder custom code error:
1360
+ While Evaluating:
1361
+ `, i, `
1362
+ `, l.message || l);
1295
1363
  }
1296
1364
  }
1297
- function tn() {
1365
+ function nn() {
1298
1366
  return !f() || b() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
1299
1367
  }
1300
- var nn = Object.defineProperty, on = Object.defineProperties, rn = Object.getOwnPropertyDescriptors, I = Object.getOwnPropertySymbols, le = Object.prototype.hasOwnProperty, de = Object.prototype.propertyIsEnumerable, X = (e, n, t) => n in e ? nn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, U = (e, n) => {
1368
+ var on = Object.defineProperty, rn = Object.defineProperties, an = Object.getOwnPropertyDescriptors, I = Object.getOwnPropertySymbols, de = Object.prototype.hasOwnProperty, ue = Object.prototype.propertyIsEnumerable, Q = (e, n, t) => n in e ? on(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, U = (e, n) => {
1301
1369
  for (var t in n || (n = {}))
1302
- le.call(n, t) && X(e, t, n[t]);
1370
+ de.call(n, t) && Q(e, t, n[t]);
1303
1371
  if (I)
1304
1372
  for (var t of I(n))
1305
- de.call(n, t) && X(e, t, n[t]);
1373
+ ue.call(n, t) && Q(e, t, n[t]);
1306
1374
  return e;
1307
- }, Q = (e, n) => on(e, rn(n)), ue = (e, n) => {
1375
+ }, Z = (e, n) => rn(e, an(n)), pe = (e, n) => {
1308
1376
  var t = {};
1309
1377
  for (var o in e)
1310
- le.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
1378
+ de.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
1311
1379
  if (e != null && I)
1312
1380
  for (var o of I(e))
1313
- n.indexOf(o) < 0 && de.call(e, o) && (t[o] = e[o]);
1381
+ n.indexOf(o) < 0 && ue.call(e, o) && (t[o] = e[o]);
1314
1382
  return t;
1315
1383
  };
1316
- const pe = [];
1317
- function Kn(e, n) {
1318
- return pe.push(U({ component: e }, n)), console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."), e;
1384
+ const me = [];
1385
+ function Jn(e, n) {
1386
+ return me.push(U({ component: e }, n)), console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."), e;
1319
1387
  }
1320
1388
  const sn = (e) => {
1321
- var n = e, t = ue(n, [
1389
+ var n = e, t = pe(n, [
1322
1390
  "component"
1323
1391
  ]);
1324
1392
  return {
1325
1393
  type: "builder.registerComponent",
1326
- data: ln(t)
1394
+ data: dn(t)
1327
1395
  };
1328
- }, me = (e) => JSON.parse(JSON.stringify(e)), an = (e) => typeof e == "function" ? cn(e) : me(e), cn = (e) => {
1396
+ }, fe = (e) => JSON.parse(JSON.stringify(e)), ln = (e) => typeof e == "function" ? cn(e) : fe(e), cn = (e) => {
1329
1397
  const n = e.toString().trim();
1330
1398
  return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
1331
- }, ln = (e) => {
1399
+ }, dn = (e) => {
1332
1400
  var n = e, {
1333
1401
  inputs: t
1334
- } = n, o = ue(n, [
1402
+ } = n, o = pe(n, [
1335
1403
  "inputs"
1336
1404
  ]);
1337
- return Q(U({}, me(o)), {
1338
- inputs: t == null ? void 0 : t.map((r) => Object.entries(r).reduce((s, [i, c]) => Q(U({}, s), {
1339
- [i]: an(c)
1405
+ return Z(U({}, fe(o)), {
1406
+ inputs: t == null ? void 0 : t.map((r) => Object.entries(r).reduce((a, [i, l]) => Z(U({}, a), {
1407
+ [i]: ln(l)
1340
1408
  }), {}))
1341
1409
  });
1342
- }, dn = (e) => {
1410
+ }, un = (e) => {
1343
1411
  const n = e.split(".");
1344
1412
  return n.length > 2 ? n.slice(1).join(".") : e;
1345
- }, un = ({
1413
+ }, pn = ({
1346
1414
  name: e,
1347
1415
  canTrack: n
1348
1416
  }) => {
@@ -1352,23 +1420,23 @@ const sn = (e) => {
1352
1420
  } catch (o) {
1353
1421
  console.debug("[COOKIE] GET error: ", o);
1354
1422
  }
1355
- }, pn = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).join("; "), mn = [
1423
+ }, mn = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).join("; "), fn = [
1356
1424
  ["secure", ""],
1357
1425
  ["SameSite", "None"]
1358
- ], fn = ({
1426
+ ], hn = ({
1359
1427
  name: e,
1360
1428
  value: n,
1361
1429
  expires: t
1362
1430
  }) => {
1363
- const r = (f() ? location.protocol === "https:" : !0) ? mn : [[]], s = t ? [["expires", t.toUTCString()]] : [[]], i = [
1431
+ const r = (f() ? location.protocol === "https:" : !0) ? fn : [[]], a = t ? [["expires", t.toUTCString()]] : [[]], i = [
1364
1432
  [e, n],
1365
- ...s,
1433
+ ...a,
1366
1434
  ["path", "/"],
1367
- ["domain", dn(window.location.hostname)],
1435
+ ["domain", un(window.location.hostname)],
1368
1436
  ...r
1369
1437
  ];
1370
- return pn(i);
1371
- }, hn = ({
1438
+ return mn(i);
1439
+ }, gn = ({
1372
1440
  name: e,
1373
1441
  value: n,
1374
1442
  expires: t,
@@ -1377,122 +1445,122 @@ const sn = (e) => {
1377
1445
  try {
1378
1446
  if (!o)
1379
1447
  return;
1380
- const r = fn({ name: e, value: n, expires: t });
1448
+ const r = hn({ name: e, value: n, expires: t });
1381
1449
  document.cookie = r;
1382
1450
  } catch (r) {
1383
1451
  console.warn("[COOKIE] SET error: ", r);
1384
1452
  }
1385
- }, fe = (e) => e != null;
1386
- function gn() {
1453
+ }, he = (e) => e != null;
1454
+ function bn() {
1387
1455
  return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
1388
1456
  const n = Math.random() * 16 | 0;
1389
1457
  return (e == "x" ? n : n & 3 | 8).toString(16);
1390
1458
  });
1391
1459
  }
1392
- function he() {
1393
- return gn().replace(/-/g, "");
1460
+ function ge() {
1461
+ return bn().replace(/-/g, "");
1394
1462
  }
1395
- const ge = "builderSessionId", bn = ({ canTrack: e }) => {
1463
+ const be = "builderSessionId", yn = ({ canTrack: e }) => {
1396
1464
  if (!e)
1397
1465
  return;
1398
- const n = un({ name: ge, canTrack: e });
1399
- if (fe(n))
1466
+ const n = pn({ name: be, canTrack: e });
1467
+ if (he(n))
1400
1468
  return n;
1401
1469
  {
1402
- const t = yn();
1403
- vn({ id: t, canTrack: e });
1470
+ const t = vn();
1471
+ _n({ id: t, canTrack: e });
1404
1472
  }
1405
- }, yn = () => he(), vn = ({
1473
+ }, vn = () => ge(), _n = ({
1406
1474
  id: e,
1407
1475
  canTrack: n
1408
- }) => hn({ name: ge, value: e, canTrack: n }), be = () => f() && typeof localStorage < "u" ? localStorage : void 0, _n = ({
1476
+ }) => gn({ name: be, value: e, canTrack: n }), ye = () => f() && typeof localStorage < "u" ? localStorage : void 0, xn = ({
1409
1477
  key: e,
1410
1478
  canTrack: n
1411
1479
  }) => {
1412
1480
  var t;
1413
1481
  try {
1414
- return n ? (t = be()) == null ? void 0 : t.getItem(e) : void 0;
1482
+ return n ? (t = ye()) == null ? void 0 : t.getItem(e) : void 0;
1415
1483
  } catch (o) {
1416
1484
  console.debug("[LocalStorage] GET error: ", o);
1417
1485
  }
1418
- }, xn = ({
1486
+ }, wn = ({
1419
1487
  key: e,
1420
1488
  canTrack: n,
1421
1489
  value: t
1422
1490
  }) => {
1423
1491
  var o;
1424
1492
  try {
1425
- n && ((o = be()) == null || o.setItem(e, t));
1493
+ n && ((o = ye()) == null || o.setItem(e, t));
1426
1494
  } catch (r) {
1427
1495
  console.debug("[LocalStorage] SET error: ", r);
1428
1496
  }
1429
- }, ye = "builderVisitorId", wn = ({ canTrack: e }) => {
1497
+ }, ve = "builderVisitorId", kn = ({ canTrack: e }) => {
1430
1498
  if (!e)
1431
1499
  return;
1432
- const n = _n({
1433
- key: ye,
1500
+ const n = xn({
1501
+ key: ve,
1434
1502
  canTrack: e
1435
1503
  });
1436
- if (fe(n))
1504
+ if (he(n))
1437
1505
  return n;
1438
1506
  {
1439
- const t = kn();
1507
+ const t = Cn();
1440
1508
  Sn({ id: t, canTrack: e });
1441
1509
  }
1442
- }, kn = () => he(), Sn = ({
1510
+ }, Cn = () => ge(), Sn = ({
1443
1511
  id: e,
1444
1512
  canTrack: n
1445
- }) => xn({
1446
- key: ye,
1513
+ }) => wn({
1514
+ key: ve,
1447
1515
  value: e,
1448
1516
  canTrack: n
1449
1517
  });
1450
- var Cn = Object.defineProperty, In = Object.defineProperties, Tn = Object.getOwnPropertyDescriptors, T = Object.getOwnPropertySymbols, ve = Object.prototype.hasOwnProperty, _e = Object.prototype.propertyIsEnumerable, Z = (e, n, t) => n in e ? Cn(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, ee = (e, n) => {
1518
+ var In = Object.defineProperty, Tn = Object.defineProperties, On = Object.getOwnPropertyDescriptors, T = Object.getOwnPropertySymbols, _e = Object.prototype.hasOwnProperty, xe = Object.prototype.propertyIsEnumerable, ee = (e, n, t) => n in e ? In(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, te = (e, n) => {
1451
1519
  for (var t in n || (n = {}))
1452
- ve.call(n, t) && Z(e, t, n[t]);
1520
+ _e.call(n, t) && ee(e, t, n[t]);
1453
1521
  if (T)
1454
1522
  for (var t of T(n))
1455
- _e.call(n, t) && Z(e, t, n[t]);
1523
+ xe.call(n, t) && ee(e, t, n[t]);
1456
1524
  return e;
1457
- }, On = (e, n) => In(e, Tn(n)), Pn = (e, n) => {
1525
+ }, Pn = (e, n) => Tn(e, On(n)), Rn = (e, n) => {
1458
1526
  var t = {};
1459
1527
  for (var o in e)
1460
- ve.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
1528
+ _e.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
1461
1529
  if (e != null && T)
1462
1530
  for (var o of T(e))
1463
- n.indexOf(o) < 0 && _e.call(e, o) && (t[o] = e[o]);
1531
+ n.indexOf(o) < 0 && xe.call(e, o) && (t[o] = e[o]);
1464
1532
  return t;
1465
- }, Rn = (e, n, t) => new Promise((o, r) => {
1466
- var s = (a) => {
1533
+ }, jn = (e, n, t) => new Promise((o, r) => {
1534
+ var a = (s) => {
1467
1535
  try {
1468
- c(t.next(a));
1469
- } catch (l) {
1470
- r(l);
1536
+ l(t.next(s));
1537
+ } catch (c) {
1538
+ r(c);
1471
1539
  }
1472
- }, i = (a) => {
1540
+ }, i = (s) => {
1473
1541
  try {
1474
- c(t.throw(a));
1475
- } catch (l) {
1476
- r(l);
1542
+ l(t.throw(s));
1543
+ } catch (c) {
1544
+ r(c);
1477
1545
  }
1478
- }, c = (a) => a.done ? o(a.value) : Promise.resolve(a.value).then(s, i);
1479
- c((t = t.apply(e, n)).next());
1546
+ }, l = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(a, i);
1547
+ l((t = t.apply(e, n)).next());
1480
1548
  });
1481
- const jn = ({ canTrack: e }) => {
1549
+ const En = ({ canTrack: e }) => {
1482
1550
  if (!e)
1483
1551
  return { visitorId: void 0, sessionId: void 0 };
1484
- const n = bn({ canTrack: e }), t = wn({ canTrack: e });
1552
+ const n = yn({ canTrack: e }), t = kn({ canTrack: e });
1485
1553
  return {
1486
1554
  sessionId: n,
1487
1555
  visitorId: t
1488
1556
  };
1489
- }, En = (e) => {
1557
+ }, $n = (e) => {
1490
1558
  var n = e, {
1491
1559
  type: t,
1492
1560
  canTrack: o,
1493
1561
  orgId: r,
1494
- contentId: s
1495
- } = n, i = Pn(n, [
1562
+ contentId: a
1563
+ } = n, i = Rn(n, [
1496
1564
  "type",
1497
1565
  "canTrack",
1498
1566
  "orgId",
@@ -1500,19 +1568,19 @@ const jn = ({ canTrack: e }) => {
1500
1568
  ]);
1501
1569
  return {
1502
1570
  type: t,
1503
- data: On(ee(ee({}, i), jn({ canTrack: o })), {
1571
+ data: Pn(te(te({}, i), En({ canTrack: o })), {
1504
1572
  ownerId: r,
1505
- contentId: s
1573
+ contentId: a
1506
1574
  })
1507
1575
  };
1508
1576
  };
1509
- function te(e) {
1510
- return Rn(this, null, function* () {
1511
- if (!!e.canTrack && !b() && !!(f() || A === "reactNative"))
1577
+ function ne(e) {
1578
+ return jn(this, null, function* () {
1579
+ if (!!e.canTrack && !b() && !!(f() || V === "reactNative"))
1512
1580
  return fetch("https://builder.io/api/v1/track", {
1513
1581
  method: "POST",
1514
1582
  body: JSON.stringify({
1515
- events: [En(e)]
1583
+ events: [$n(e)]
1516
1584
  }),
1517
1585
  headers: {
1518
1586
  "content-type": "application/json"
@@ -1523,39 +1591,67 @@ function te(e) {
1523
1591
  });
1524
1592
  });
1525
1593
  }
1526
- const $n = () => Promise.resolve().then(() => xe), Fn = () => import("./render-styles.8ab3c39a.js"), Un = {
1594
+ const Fn = () => Promise.resolve().then(() => we).then((e) => e.default), Un = () => import("./render-styles.1744d2eb.js").then((e) => e.default), Vn = {
1527
1595
  name: "render-content",
1528
- components: { "render-content-styles": v(Fn), "render-blocks": v($n) },
1529
- props: ["content", "data", "canTrack", "context", "customComponents", "model", "apiKey"],
1530
- data: () => ({ forceReRenderCount: 0, overrideContent: null, update: 0, overrideState: {} }),
1596
+ components: {
1597
+ "render-content-styles": v(Un),
1598
+ "render-blocks": v(Fn)
1599
+ },
1600
+ props: [
1601
+ "content",
1602
+ "data",
1603
+ "canTrack",
1604
+ "context",
1605
+ "customComponents",
1606
+ "model",
1607
+ "apiKey"
1608
+ ],
1609
+ data: () => ({
1610
+ forceReRenderCount: 0,
1611
+ overrideContent: null,
1612
+ update: 0,
1613
+ overrideState: {},
1614
+ markMutable: A
1615
+ }),
1531
1616
  provide() {
1532
1617
  const e = this;
1533
1618
  return {
1534
- BuilderContext: { get content() {
1535
- return e.useContent;
1536
- }, get state() {
1537
- return e.contentState;
1538
- }, get context() {
1539
- return e.contextContext;
1540
- }, get apiKey() {
1541
- return e.apiKey;
1542
- }, get registeredComponents() {
1543
- return e.allRegisteredComponents;
1544
- } }
1619
+ BuilderContext: {
1620
+ get content() {
1621
+ return e.useContent;
1622
+ },
1623
+ get state() {
1624
+ return e.contentState;
1625
+ },
1626
+ get context() {
1627
+ return e.contextContext;
1628
+ },
1629
+ get apiKey() {
1630
+ return e.apiKey;
1631
+ },
1632
+ get registeredComponents() {
1633
+ return e.allRegisteredComponents;
1634
+ }
1635
+ }
1545
1636
  };
1546
1637
  },
1547
1638
  mounted() {
1548
1639
  if (f()) {
1549
- if (b() && (this.forceReRenderCount = this.forceReRenderCount + 1, Se(), Ce(), Object.values(this.allRegisteredComponents).forEach((e) => {
1550
- var t;
1551
- const n = sn(e);
1552
- (t = window.parent) == null || t.postMessage(n, "*");
1553
- }), window.addEventListener("message", this.processMessage), window.addEventListener("builder:component:stateChangeListenerActivated", this.emitStateUpdate)), this.useContent && te({
1640
+ if (b() && (this.forceReRenderCount = this.forceReRenderCount + 1, Se(), Ie(), Object.values(this.allRegisteredComponents).forEach(
1641
+ (e) => {
1642
+ var t;
1643
+ const n = sn(e);
1644
+ (t = window.parent) == null || t.postMessage(n, "*");
1645
+ }
1646
+ ), window.addEventListener("message", this.processMessage), window.addEventListener(
1647
+ "builder:component:stateChangeListenerActivated",
1648
+ this.emitStateUpdate
1649
+ )), this.useContent && ne({
1554
1650
  type: "impression",
1555
1651
  canTrack: this.canTrackToUse,
1556
1652
  contentId: this.useContent.id,
1557
1653
  orgId: this.apiKey
1558
- }), tn()) {
1654
+ }), nn()) {
1559
1655
  const e = new URL(location.href).searchParams;
1560
1656
  if (this.model && e.get("builder.preview") === this.model) {
1561
1657
  const n = e.get("apiKey") || e.get("builder.space");
@@ -1582,253 +1678,292 @@ const $n = () => Promise.resolve().then(() => xe), Fn = () => import("./render-s
1582
1678
  }
1583
1679
  },
1584
1680
  unmounted() {
1585
- f() && (window.removeEventListener("message", this.processMessage), window.removeEventListener("builder:component:stateChangeListenerActivated", this.emitStateUpdate));
1681
+ f() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
1682
+ "builder:component:stateChangeListenerActivated",
1683
+ this.emitStateUpdate
1684
+ ));
1586
1685
  },
1587
- computed: { useContent() {
1588
- var n, t;
1589
- return {
1590
- ...this.content,
1591
- ...this.overrideContent,
1592
- data: {
1593
- ...(n = this.content) == null ? void 0 : n.data,
1594
- ...this.data,
1595
- ...(t = this.overrideContent) == null ? void 0 : t.data
1596
- }
1597
- };
1598
- }, canTrackToUse() {
1599
- return this.canTrack || !0;
1600
- }, contentState() {
1601
- var e, n;
1602
- return {
1603
- ...(n = (e = this.content) == null ? void 0 : e.data) == null ? void 0 : n.state,
1604
- ...this.data,
1605
- ...this.overrideState
1606
- };
1607
- }, contextContext() {
1608
- return this.context || {};
1609
- }, allRegisteredComponents() {
1610
- return [
1611
- ...en(),
1612
- ...pe,
1613
- ...this.customComponents || []
1614
- ].reduce((t, o) => ({
1615
- ...t,
1616
- [o.name]: o
1617
- }), {});
1618
- }, httpReqsData() {
1619
- return {};
1620
- }, shouldRenderContentStyles() {
1621
- var e, n, t, o, r;
1622
- return Boolean((((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)) && A !== "reactNative");
1623
- }, onUpdateHook0() {
1624
- var e, n;
1625
- return {
1626
- 0: (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.jsCode
1627
- };
1628
- }, onUpdateHook1() {
1629
- var e, n;
1630
- return {
1631
- 0: (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.httpRequests
1632
- };
1633
- }, onUpdateHook2() {
1634
- return {
1635
- 0: this.contentState
1636
- };
1637
- } },
1638
- methods: { processMessage(e) {
1639
- const {
1640
- data: n
1641
- } = e;
1642
- if (n)
1643
- switch (n.type) {
1644
- case "builder.contentUpdate": {
1645
- const t = n.data, o = t.key || t.alias || t.entry || t.modelName, r = t.data;
1646
- o === this.model && (this.overrideContent = r);
1647
- break;
1686
+ computed: {
1687
+ useContent() {
1688
+ var n, t;
1689
+ return {
1690
+ ...this.content,
1691
+ ...this.overrideContent,
1692
+ data: {
1693
+ ...(n = this.content) == null ? void 0 : n.data,
1694
+ ...this.data,
1695
+ ...(t = this.overrideContent) == null ? void 0 : t.data
1648
1696
  }
1649
- }
1650
- }, evaluateJsCode() {
1651
- var n, t;
1652
- const e = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.jsCode;
1653
- e && Y({
1654
- code: e,
1655
- context: this.contextContext,
1656
- state: this.contentState
1657
- });
1658
- }, onClick(e) {
1659
- this.useContent && te({
1660
- type: "click",
1661
- canTrack: this.canTrackToUse,
1662
- contentId: this.useContent.id,
1663
- orgId: this.apiKey
1664
- });
1665
- }, evalExpression(e) {
1666
- return e.replace(/{{([^}]+)}}/g, (n, t) => Y({
1667
- code: t,
1668
- context: this.contextContext,
1669
- state: this.contentState
1670
- }));
1671
- }, handleRequest({
1672
- url: e,
1673
- key: n
1674
- }) {
1675
- (async () => {
1676
- const s = await (await (await ae())(e)).json(), i = {
1677
- ...this.overrideState,
1678
- [n]: s
1679
1697
  };
1680
- this.overrideState = i;
1681
- })();
1682
- }, runHttpRequests() {
1683
- var n, t, o;
1684
- const e = (o = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.httpRequests) != null ? o : {};
1685
- Object.entries(e).forEach(([r, s]) => {
1686
- if (s && (!this.httpReqsData[r] || b())) {
1687
- const i = this.evalExpression(s);
1688
- this.handleRequest({
1689
- url: i,
1690
- key: r
1691
- });
1692
- }
1693
- });
1694
- }, emitStateUpdate() {
1695
- b() && window.dispatchEvent(new CustomEvent("builder:component:stateChange", {
1696
- detail: {
1697
- state: this.contentState,
1698
- ref: {
1699
- name: this.model
1698
+ },
1699
+ canTrackToUse() {
1700
+ return this.canTrack || !0;
1701
+ },
1702
+ contentState() {
1703
+ var e, n;
1704
+ return {
1705
+ ...(n = (e = this.content) == null ? void 0 : e.data) == null ? void 0 : n.state,
1706
+ ...this.data,
1707
+ ...this.overrideState
1708
+ };
1709
+ },
1710
+ contextContext() {
1711
+ return this.context || {};
1712
+ },
1713
+ allRegisteredComponents() {
1714
+ return [
1715
+ ...tn(),
1716
+ ...me,
1717
+ ...this.customComponents || []
1718
+ ].reduce(
1719
+ (t, o) => ({ ...t, [o.name]: o }),
1720
+ {}
1721
+ );
1722
+ },
1723
+ httpReqsData() {
1724
+ return {};
1725
+ },
1726
+ shouldRenderContentStyles() {
1727
+ var e, n, t, o, r;
1728
+ return Boolean(
1729
+ (((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)) && V !== "reactNative"
1730
+ );
1731
+ },
1732
+ onUpdateHook0() {
1733
+ var e, n;
1734
+ return {
1735
+ 0: (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.jsCode
1736
+ };
1737
+ },
1738
+ onUpdateHook1() {
1739
+ var e, n;
1740
+ return {
1741
+ 0: (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.httpRequests
1742
+ };
1743
+ },
1744
+ onUpdateHook2() {
1745
+ return {
1746
+ 0: this.contentState
1747
+ };
1748
+ }
1749
+ },
1750
+ methods: {
1751
+ processMessage(e) {
1752
+ const { data: n } = e;
1753
+ if (n)
1754
+ switch (n.type) {
1755
+ case "builder.contentUpdate": {
1756
+ const t = n.data, o = t.key || t.alias || t.entry || t.modelName, r = t.data;
1757
+ o === this.model && (this.overrideContent = r, this.forceReRenderCount = this.forceReRenderCount + 1);
1758
+ break;
1759
+ }
1700
1760
  }
1701
- }
1702
- }));
1703
- } }
1761
+ },
1762
+ evaluateJsCode() {
1763
+ var n, t;
1764
+ const e = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.jsCode;
1765
+ e && X({
1766
+ code: e,
1767
+ context: this.contextContext,
1768
+ state: this.contentState
1769
+ });
1770
+ },
1771
+ onClick(e) {
1772
+ this.useContent && ne({
1773
+ type: "click",
1774
+ canTrack: this.canTrackToUse,
1775
+ contentId: this.useContent.id,
1776
+ orgId: this.apiKey
1777
+ });
1778
+ },
1779
+ evalExpression(e) {
1780
+ return e.replace(
1781
+ /{{([^}]+)}}/g,
1782
+ (n, t) => X({
1783
+ code: t,
1784
+ context: this.contextContext,
1785
+ state: this.contentState
1786
+ })
1787
+ );
1788
+ },
1789
+ handleRequest({ url: e, key: n }) {
1790
+ ie().then((t) => t(e)).then((t) => t.json()).then((t) => {
1791
+ const o = { ...this.overrideState, [n]: t };
1792
+ this.overrideState = o;
1793
+ }).catch((t) => {
1794
+ console.log("error fetching dynamic data", e, t);
1795
+ });
1796
+ },
1797
+ runHttpRequests() {
1798
+ var n, t, o;
1799
+ const e = (o = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.httpRequests) != null ? o : {};
1800
+ Object.entries(e).forEach(([r, a]) => {
1801
+ if (a && (!this.httpReqsData[r] || b())) {
1802
+ const i = this.evalExpression(a);
1803
+ this.handleRequest({
1804
+ url: i,
1805
+ key: r
1806
+ });
1807
+ }
1808
+ });
1809
+ },
1810
+ emitStateUpdate() {
1811
+ b() && window.dispatchEvent(
1812
+ new CustomEvent("builder:component:stateChange", {
1813
+ detail: {
1814
+ state: this.contentState,
1815
+ ref: {
1816
+ name: this.model
1817
+ }
1818
+ }
1819
+ })
1820
+ );
1821
+ }
1822
+ }
1704
1823
  }, An = ["builder-content-id"];
1705
- function Vn(e, n, t, o, r, s) {
1706
- var a, l, u, m, w, W, L;
1707
- const i = _("render-content-styles"), c = _("render-blocks");
1708
- return s.useContent ? (d(), p("div", {
1824
+ function Wn(e, n, t, o, r, a) {
1825
+ var s, c, u, m, w, L, M;
1826
+ const i = _("render-content-styles"), l = _("render-blocks");
1827
+ return a.useContent ? (d(), p("div", {
1709
1828
  key: 0,
1710
1829
  ref: "elementRef",
1711
- onClick: n[0] || (n[0] = (we) => s.onClick(we)),
1712
- "builder-content-id": (a = s.useContent) == null ? void 0 : a.id
1830
+ onClick: n[0] || (n[0] = (ke) => a.onClick(ke)),
1831
+ "builder-content-id": (s = a.useContent) == null ? void 0 : s.id
1713
1832
  }, [
1714
- s.shouldRenderContentStyles ? (d(), C(i, {
1833
+ a.shouldRenderContentStyles ? (d(), S(i, {
1715
1834
  key: 0,
1716
- cssCode: (u = (l = s.useContent) == null ? void 0 : l.data) == null ? void 0 : u.cssCode,
1717
- customFonts: (w = (m = s.useContent) == null ? void 0 : m.data) == null ? void 0 : w.customFonts
1835
+ cssCode: (u = (c = a.useContent) == null ? void 0 : c.data) == null ? void 0 : u.cssCode,
1836
+ customFonts: (w = (m = a.useContent) == null ? void 0 : m.data) == null ? void 0 : w.customFonts
1718
1837
  }, null, 8, ["cssCode", "customFonts"])) : y("", !0),
1719
- (d(), C(c, {
1720
- blocks: (L = (W = s.useContent) == null ? void 0 : W.data) == null ? void 0 : L.blocks,
1838
+ (d(), S(l, {
1839
+ blocks: e.markMutable((M = (L = a.useContent) == null ? void 0 : L.data) == null ? void 0 : M.blocks),
1721
1840
  key: e.forceReRenderCount
1722
1841
  }, null, 8, ["blocks"]))
1723
1842
  ], 8, An)) : y("", !0);
1724
1843
  }
1725
- const Wn = /* @__PURE__ */ h(Un, [["render", Vn]]), Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1844
+ const Ln = /* @__PURE__ */ h(Vn, [["render", Wn]]), Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1726
1845
  __proto__: null,
1727
- default: Wn
1728
- }, Symbol.toStringTag, { value: "Module" })), Nn = () => import("./block-styles.83ef5bb2.js"), Bn = () => import("./render-block.66ba74d8.js"), Mn = {
1846
+ default: Ln
1847
+ }, Symbol.toStringTag, { value: "Module" }));
1848
+ const Nn = () => import("./block-styles.76754b24.js").then((e) => e.default), Bn = () => import("./render-block.369b7818.js").then((e) => e.default), qn = {
1729
1849
  name: "render-blocks",
1730
- components: { "render-block": v(Bn), "block-styles": v(Nn) },
1850
+ components: {
1851
+ "render-block": v(Bn),
1852
+ "block-styles": v(Nn)
1853
+ },
1731
1854
  props: ["blocks", "parent", "path"],
1732
1855
  inject: {
1733
1856
  builderContext: "BuilderContext"
1734
1857
  },
1735
- computed: { className() {
1736
- var e;
1737
- return "builder-blocks" + ((e = this.blocks) != null && e.length ? "" : " no-blocks");
1738
- } },
1739
- methods: { onClick() {
1740
- var e, n;
1741
- b() && !((e = this.blocks) != null && e.length) && ((n = window.parent) == null || n.postMessage({
1742
- type: "builder.clickEmptyBlocks",
1743
- data: {
1744
- parentElementId: this.parent,
1745
- dataPath: this.path
1746
- }
1747
- }, "*"));
1748
- }, onMouseEnter() {
1749
- var e, n;
1750
- b() && !((e = this.blocks) != null && e.length) && ((n = window.parent) == null || n.postMessage({
1751
- type: "builder.hoverEmptyBlocks",
1752
- data: {
1753
- parentElementId: this.parent,
1754
- dataPath: this.path
1755
- }
1756
- }, "*"));
1757
- }, _classStringToObject(e) {
1758
- const n = {};
1759
- if (typeof e != "string")
1858
+ computed: {
1859
+ className() {
1860
+ var e;
1861
+ return "builder-blocks" + ((e = this.blocks) != null && e.length ? "" : " no-blocks");
1862
+ }
1863
+ },
1864
+ methods: {
1865
+ onClick() {
1866
+ var e, n;
1867
+ b() && !((e = this.blocks) != null && e.length) && ((n = window.parent) == null || n.postMessage(
1868
+ {
1869
+ type: "builder.clickEmptyBlocks",
1870
+ data: {
1871
+ parentElementId: this.parent,
1872
+ dataPath: this.path
1873
+ }
1874
+ },
1875
+ "*"
1876
+ ));
1877
+ },
1878
+ onMouseEnter() {
1879
+ var e, n;
1880
+ b() && !((e = this.blocks) != null && e.length) && ((n = window.parent) == null || n.postMessage(
1881
+ {
1882
+ type: "builder.hoverEmptyBlocks",
1883
+ data: {
1884
+ parentElementId: this.parent,
1885
+ dataPath: this.path
1886
+ }
1887
+ },
1888
+ "*"
1889
+ ));
1890
+ },
1891
+ _classStringToObject(e) {
1892
+ const n = {};
1893
+ if (typeof e != "string")
1894
+ return n;
1895
+ const t = e.trim().split(/\s+/);
1896
+ for (const o of t)
1897
+ n[o] = !0;
1760
1898
  return n;
1761
- const t = e.trim().split(/\s+/);
1762
- for (const o of t)
1763
- n[o] = !0;
1764
- return n;
1765
- } }
1766
- };
1767
- const Dn = ["builder-path", "builder-parent-id", "dataSet"];
1768
- function zn(e, n, t, o, r, s) {
1769
- const i = _("render-block"), c = _("block-styles");
1899
+ }
1900
+ }
1901
+ }, Dn = ["builder-path", "builder-parent-id", "dataSet"];
1902
+ function zn(e, n, t, o, r, a) {
1903
+ const i = _("render-block"), l = _("block-styles");
1770
1904
  return d(), p("div", {
1771
- class: re(s._classStringToObject(s.className + " div-3q96myty4lk")),
1905
+ class: ae(a._classStringToObject(a.className + " div-1hjwvu3r5mj")),
1772
1906
  "builder-path": t.path,
1773
1907
  "builder-parent-id": t.parent,
1774
1908
  dataSet: {
1775
- class: s.className
1909
+ class: a.className
1776
1910
  },
1777
- onClick: n[0] || (n[0] = (a) => s.onClick()),
1778
- onMouseenter: n[1] || (n[1] = (a) => s.onMouseEnter())
1911
+ onClick: n[0] || (n[0] = (s) => a.onClick()),
1912
+ onMouseenter: n[1] || (n[1] = (s) => a.onMouseEnter())
1779
1913
  }, [
1780
- t.blocks ? (d(!0), p(j, { key: 0 }, E(t.blocks, (a, l) => (d(), C(i, {
1781
- key: "render-block-" + a.id,
1782
- block: a,
1783
- context: s.builderContext
1914
+ t.blocks ? (d(!0), p(j, { key: 0 }, E(t.blocks, (s, c) => (d(), S(i, {
1915
+ key: "render-block-" + s.id,
1916
+ block: s,
1917
+ context: a.builderContext
1784
1918
  }, null, 8, ["block", "context"]))), 128)) : y("", !0),
1785
- t.blocks ? (d(!0), p(j, { key: 1 }, E(t.blocks, (a, l) => (d(), C(c, {
1786
- key: "block-style-" + a.id,
1787
- block: a,
1788
- context: s.builderContext
1919
+ t.blocks ? (d(!0), p(j, { key: 1 }, E(t.blocks, (s, c) => (d(), S(l, {
1920
+ key: "block-style-" + s.id,
1921
+ block: s,
1922
+ context: a.builderContext
1789
1923
  }, null, 8, ["block", "context"]))), 128)) : y("", !0)
1790
1924
  ], 42, Dn);
1791
1925
  }
1792
- const Hn = /* @__PURE__ */ h(Mn, [["render", zn], ["__scopeId", "data-v-9e2ffd1c"]]), xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1926
+ const Hn = /* @__PURE__ */ h(qn, [["render", zn], ["__scopeId", "data-v-50f203f2"]]), we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1793
1927
  __proto__: null,
1794
1928
  default: Hn
1795
- }, Symbol.toStringTag, { value: "Module" })), ne = {};
1796
- function Gn(e) {
1929
+ }, Symbol.toStringTag, { value: "Module" })), oe = {};
1930
+ function Yn(e) {
1797
1931
  if (f()) {
1798
- Object.assign(ne, e);
1932
+ Object.assign(oe, e);
1799
1933
  const n = {
1800
1934
  type: "builder.settingsChange",
1801
- data: ne
1935
+ data: oe
1802
1936
  };
1803
1937
  parent.postMessage(n, "*");
1804
1938
  }
1805
1939
  }
1806
1940
  export {
1807
- kt as B,
1808
- Pe as C,
1809
- Pt as F,
1810
- Le as I,
1811
- It as S,
1812
- A as T,
1813
- Ke as V,
1941
+ Ct as B,
1942
+ Re as C,
1943
+ Rt as F,
1944
+ Me as I,
1945
+ Tt as S,
1946
+ V as T,
1947
+ Ge as V,
1814
1948
  h as _,
1815
- Wn as a,
1816
- vt as b,
1949
+ Ln as a,
1950
+ _t as b,
1817
1951
  De as c,
1818
- tn as d,
1819
- Y as e,
1820
- pe as f,
1952
+ nn as d,
1953
+ X as e,
1954
+ me as f,
1821
1955
  sn as g,
1822
- Kn as h,
1956
+ Jn as h,
1823
1957
  b as i,
1824
- ke as j,
1825
- mt as k,
1826
- ft as l,
1827
- ce as m,
1828
- se as n,
1829
- et as o,
1958
+ Ce as j,
1959
+ ft as k,
1960
+ ht as l,
1961
+ Gn as m,
1962
+ ce as n,
1963
+ se as o,
1830
1964
  tt as p,
1831
1965
  nt as q,
1832
1966
  Hn as r,
1833
- Gn as s
1967
+ Yn as s,
1968
+ ot as t
1834
1969
  };