@builder.io/sdk-vue 0.0.5 → 0.0.6
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.
- package/package.json +1 -1
- package/packages/_vue2/dist/{block-styles.19a877d5.js → block-styles.446ece03.js} +3 -3
- package/packages/_vue2/dist/{block-styles.40e83f61.cjs → block-styles.5646ff86.cjs} +3 -3
- package/packages/{_vue3/dist/get-processed-block.9b8059ab.cjs → _vue2/dist/get-processed-block.4223e014.cjs} +1 -1
- package/packages/{_vue3/dist/get-processed-block.9bb2fd8e.js → _vue2/dist/get-processed-block.6408e235.js} +1 -1
- package/packages/_vue2/dist/{index.7a7ff238.js → index.53f5b352.js} +376 -333
- package/packages/_vue2/dist/index.a1d3ffcd.cjs +4 -0
- package/packages/_vue2/dist/render-block.5d72c0ee.cjs +3 -0
- package/packages/_vue2/dist/{render-block.7635a885.js → render-block.678a49f8.js} +32 -29
- package/packages/_vue2/dist/{render-component-with-context.95834dc3.cjs → render-component-with-context.861efce7.cjs} +1 -1
- package/packages/_vue2/dist/{render-component-with-context.f56ece1d.js → render-component-with-context.8748d30c.js} +2 -2
- package/packages/_vue2/dist/{render-component.c352f53d.js → render-component.58bf4a92.js} +3 -3
- package/packages/_vue2/dist/{render-component.1f139db7.cjs → render-component.bad35496.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.a6d217ba.js → render-inlined-styles.46673ba6.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.82edc9e3.cjs → render-inlined-styles.8e95d025.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.7e988491.js → render-repeated-block.84bef64c.js} +2 -2
- package/packages/_vue2/dist/{render-repeated-block.8b8babc7.cjs → render-repeated-block.e52f9726.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.0fcd6636.js → render-styles.230dc75f.js} +2 -2
- package/packages/_vue2/dist/{render-styles.6bcf5051.cjs → render-styles.6854b22c.cjs} +1 -1
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +1 -1
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-component-with-context.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +3 -0
- package/packages/_vue2/dist/src/functions/evaluate.d.ts +2 -1
- package/packages/_vue2/dist/src/functions/get-block-actions-handler.d.ts +5 -2
- package/packages/_vue2/dist/src/functions/get-builder-search-params/index.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +3 -0
- package/packages/_vue2/dist/src/functions/get-content/types.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/track.d.ts +6 -1
- package/packages/_vue2/dist/src/scripts/init-editing.d.ts +4 -1
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/{block-styles.c98db17a.js → block-styles.bfb6bf01.js} +3 -3
- package/packages/_vue3/dist/{block-styles.a9ff2d51.cjs → block-styles.c34bd502.cjs} +2 -2
- package/packages/{_vue2/dist/get-processed-block.d176d859.js → _vue3/dist/get-processed-block.7e239fa3.js} +1 -1
- package/packages/{_vue2/dist/get-processed-block.50c3959c.cjs → _vue3/dist/get-processed-block.a58dcd2a.cjs} +1 -1
- package/packages/_vue3/dist/{index.bdc957bb.js → index.0555f850.js} +326 -283
- package/packages/_vue3/dist/index.2e65c08f.cjs +4 -0
- package/packages/_vue3/dist/render-block.c7f89c03.cjs +3 -0
- package/packages/_vue3/dist/{render-block.97918590.js → render-block.ff327bfe.js} +27 -24
- package/packages/_vue3/dist/{render-component-with-context.e10c7475.js → render-component-with-context.e2af488c.js} +2 -2
- package/packages/_vue3/dist/{render-component-with-context.4968d548.cjs → render-component-with-context.fa9ac131.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.44939843.js → render-component.91b2554d.js} +3 -3
- package/packages/_vue3/dist/{render-component.da37335e.cjs → render-component.afe8b68d.cjs} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.5500cf72.js → render-inlined-styles.5f9ef611.js} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.bcf2d6ec.cjs → render-inlined-styles.dc872311.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.e053daa2.js → render-repeated-block.34c4784f.js} +2 -2
- package/packages/_vue3/dist/{render-repeated-block.f954b0ce.cjs → render-repeated-block.f087a519.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.6f74d8a8.cjs → render-styles.52fba546.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.1af9ac32.js → render-styles.ce553bd8.js} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/blocks/image/image.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/evaluate.d.ts +2 -1
- package/packages/_vue3/dist/src/functions/get-block-actions-handler.d.ts +5 -2
- package/packages/_vue3/dist/src/functions/get-builder-search-params/index.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +3 -0
- package/packages/_vue3/dist/src/functions/get-content/types.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/track.d.ts +6 -1
- package/packages/_vue3/dist/src/scripts/init-editing.d.ts +4 -1
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/index.319178a0.cjs +0 -4
- package/packages/_vue2/dist/render-block.c2a840de.cjs +0 -3
- package/packages/_vue3/dist/index.7ebc9925.cjs +0 -4
- package/packages/_vue3/dist/render-block.ea7240a5.cjs +0 -3
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
const
|
|
2
|
-
function
|
|
1
|
+
const C = "vue2";
|
|
2
|
+
function p() {
|
|
3
3
|
return typeof window < "u" && typeof document < "u";
|
|
4
4
|
}
|
|
5
|
-
const
|
|
6
|
-
function
|
|
7
|
-
let n =
|
|
8
|
-
if (n || (n =
|
|
5
|
+
const k = {};
|
|
6
|
+
function K(t, e) {
|
|
7
|
+
let n = k[t];
|
|
8
|
+
if (n || (n = k[t] = []), n.push(e), p()) {
|
|
9
9
|
const o = {
|
|
10
10
|
type: "builder.register",
|
|
11
11
|
data: {
|
|
@@ -20,8 +20,8 @@ function z(t, e) {
|
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
-
const
|
|
24
|
-
|
|
23
|
+
const q = () => {
|
|
24
|
+
K("insertMenu", {
|
|
25
25
|
name: "_default",
|
|
26
26
|
default: !0,
|
|
27
27
|
items: [
|
|
@@ -36,51 +36,59 @@ const K = () => {
|
|
|
36
36
|
]
|
|
37
37
|
});
|
|
38
38
|
};
|
|
39
|
-
let
|
|
40
|
-
const
|
|
41
|
-
var
|
|
42
|
-
|
|
39
|
+
let S = !1;
|
|
40
|
+
const z = (t = {}) => {
|
|
41
|
+
var e, n;
|
|
42
|
+
S || (S = !0, p() && ((e = window.parent) == null || e.postMessage(
|
|
43
43
|
{
|
|
44
44
|
type: "builder.sdkInfo",
|
|
45
45
|
data: {
|
|
46
|
-
target:
|
|
46
|
+
target: C,
|
|
47
47
|
supportsPatchUpdates: !1,
|
|
48
48
|
supportsAddBlockScoping: !0,
|
|
49
49
|
supportsCustomBreakpoints: !0
|
|
50
50
|
}
|
|
51
51
|
},
|
|
52
52
|
"*"
|
|
53
|
-
),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
53
|
+
), (n = window.parent) == null || n.postMessage(
|
|
54
|
+
{
|
|
55
|
+
type: "builder.updateContent",
|
|
56
|
+
data: {
|
|
57
|
+
options: t
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"*"
|
|
61
|
+
), window.addEventListener("message", ({ data: o }) => {
|
|
62
|
+
var s, r;
|
|
63
|
+
if (!!(o != null && o.type))
|
|
64
|
+
switch (o.type) {
|
|
57
65
|
case "builder.evaluate": {
|
|
58
|
-
const
|
|
59
|
-
let
|
|
66
|
+
const i = o.data.text, c = o.data.arguments || [], a = o.data.id, d = new Function(i);
|
|
67
|
+
let u, h = null;
|
|
60
68
|
try {
|
|
61
|
-
|
|
62
|
-
} catch (
|
|
63
|
-
|
|
69
|
+
u = d.apply(null, c);
|
|
70
|
+
} catch (l) {
|
|
71
|
+
h = l;
|
|
64
72
|
}
|
|
65
|
-
|
|
73
|
+
h ? (s = window.parent) == null || s.postMessage(
|
|
66
74
|
{
|
|
67
75
|
type: "builder.evaluateError",
|
|
68
|
-
data: { id: a, error:
|
|
76
|
+
data: { id: a, error: h.message }
|
|
69
77
|
},
|
|
70
78
|
"*"
|
|
71
|
-
) :
|
|
72
|
-
var
|
|
73
|
-
(
|
|
79
|
+
) : u && typeof u.then == "function" ? u.then((l) => {
|
|
80
|
+
var g;
|
|
81
|
+
(g = window.parent) == null || g.postMessage(
|
|
74
82
|
{
|
|
75
83
|
type: "builder.evaluateResult",
|
|
76
|
-
data: { id: a, result:
|
|
84
|
+
data: { id: a, result: l }
|
|
77
85
|
},
|
|
78
86
|
"*"
|
|
79
87
|
);
|
|
80
|
-
}).catch(console.error) : (
|
|
88
|
+
}).catch(console.error) : (r = window.parent) == null || r.postMessage(
|
|
81
89
|
{
|
|
82
90
|
type: "builder.evaluateResult",
|
|
83
|
-
data: { result:
|
|
91
|
+
data: { result: u, id: a }
|
|
84
92
|
},
|
|
85
93
|
"*"
|
|
86
94
|
);
|
|
@@ -88,7 +96,7 @@ const q = () => {
|
|
|
88
96
|
}
|
|
89
97
|
}
|
|
90
98
|
})));
|
|
91
|
-
}, D = () => Promise.resolve().then(() =>
|
|
99
|
+
}, D = () => Promise.resolve().then(() => H).then((t) => t.default).catch((t) => {
|
|
92
100
|
throw console.error(
|
|
93
101
|
"Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
|
|
94
102
|
t
|
|
@@ -142,37 +150,37 @@ const q = () => {
|
|
|
142
150
|
}
|
|
143
151
|
}
|
|
144
152
|
};
|
|
145
|
-
function
|
|
146
|
-
var
|
|
147
|
-
e && (
|
|
148
|
-
var
|
|
149
|
-
if (
|
|
150
|
-
|
|
151
|
-
},
|
|
153
|
+
function m(t, e, n, o, s, r, i, c) {
|
|
154
|
+
var a = typeof t == "function" ? t.options : t;
|
|
155
|
+
e && (a.render = e, a.staticRenderFns = n, a._compiled = !0), o && (a.functional = !0), r && (a._scopeId = "data-v-" + r);
|
|
156
|
+
var d;
|
|
157
|
+
if (i ? (d = function(l) {
|
|
158
|
+
l = l || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !l && typeof __VUE_SSR_CONTEXT__ < "u" && (l = __VUE_SSR_CONTEXT__), s && s.call(this, l), l && l._registeredComponents && l._registeredComponents.add(i);
|
|
159
|
+
}, a._ssrRegister = d) : s && (d = c ? function() {
|
|
152
160
|
s.call(
|
|
153
161
|
this,
|
|
154
|
-
(
|
|
162
|
+
(a.functional ? this.parent : this).$root.$options.shadowRoot
|
|
155
163
|
);
|
|
156
|
-
} : s),
|
|
157
|
-
if (
|
|
158
|
-
|
|
159
|
-
var
|
|
160
|
-
|
|
161
|
-
return
|
|
164
|
+
} : s), d)
|
|
165
|
+
if (a.functional) {
|
|
166
|
+
a._injectStyles = d;
|
|
167
|
+
var u = a.render;
|
|
168
|
+
a.render = function(g, w) {
|
|
169
|
+
return d.call(w), u(g, w);
|
|
162
170
|
};
|
|
163
171
|
} else {
|
|
164
|
-
var
|
|
165
|
-
|
|
172
|
+
var h = a.beforeCreate;
|
|
173
|
+
a.beforeCreate = h ? [].concat(h, d) : [d];
|
|
166
174
|
}
|
|
167
175
|
return {
|
|
168
176
|
exports: t,
|
|
169
|
-
options:
|
|
177
|
+
options: a
|
|
170
178
|
};
|
|
171
179
|
}
|
|
172
180
|
var G = function() {
|
|
173
181
|
var e = this, n = e._self._c;
|
|
174
|
-
return n("div", { staticClass: "builder-columns div-
|
|
175
|
-
return n("div", { key: s, staticClass: "builder-column div-
|
|
182
|
+
return n("div", { staticClass: "builder-columns div-2flfunvabst", style: e.columnsCssVars }, e._l(e.columns, function(o, s) {
|
|
183
|
+
return n("div", { key: s, staticClass: "builder-column div-2flfunvabst-2", style: {
|
|
176
184
|
width: e.getColumnCssWidth(s),
|
|
177
185
|
marginLeft: `${s === 0 ? 0 : e.getGutterSize()}px`,
|
|
178
186
|
...e.columnCssVars
|
|
@@ -180,18 +188,18 @@ var G = function() {
|
|
|
180
188
|
flexGrow: "1"
|
|
181
189
|
} } })], 1);
|
|
182
190
|
}), 0);
|
|
183
|
-
}, X = [], Y = /* @__PURE__ */
|
|
191
|
+
}, X = [], Y = /* @__PURE__ */ m(
|
|
184
192
|
J,
|
|
185
193
|
G,
|
|
186
194
|
X,
|
|
187
195
|
!1,
|
|
188
196
|
null,
|
|
189
|
-
"
|
|
197
|
+
"badfc4c5",
|
|
190
198
|
null,
|
|
191
199
|
null
|
|
192
200
|
);
|
|
193
201
|
const Q = Y.exports;
|
|
194
|
-
function
|
|
202
|
+
function I(t) {
|
|
195
203
|
return t.replace(/http(s)?:/, "");
|
|
196
204
|
}
|
|
197
205
|
function Z(t = "", e, n) {
|
|
@@ -202,17 +210,17 @@ function ee(t, e) {
|
|
|
202
210
|
if (!t || !(t != null && t.match(/cdn\.shopify\.com/)) || !e)
|
|
203
211
|
return t;
|
|
204
212
|
if (e === "master")
|
|
205
|
-
return
|
|
213
|
+
return I(t);
|
|
206
214
|
const n = t.match(
|
|
207
215
|
/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i
|
|
208
216
|
);
|
|
209
217
|
if (n) {
|
|
210
218
|
const o = t.split(n[0]), s = n[3], r = e.match("x") ? e : `${e}x`;
|
|
211
|
-
return
|
|
219
|
+
return I(`${o[0]}_${r}${s}`);
|
|
212
220
|
}
|
|
213
221
|
return null;
|
|
214
222
|
}
|
|
215
|
-
function
|
|
223
|
+
function y(t) {
|
|
216
224
|
if (!t)
|
|
217
225
|
return t;
|
|
218
226
|
const e = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -230,11 +238,12 @@ const te = {
|
|
|
230
238
|
"src",
|
|
231
239
|
"srcset",
|
|
232
240
|
"noWebp",
|
|
241
|
+
"aspectRatio",
|
|
233
242
|
"altText",
|
|
243
|
+
"backgroundPosition",
|
|
234
244
|
"backgroundSize",
|
|
235
245
|
"className",
|
|
236
246
|
"sizes",
|
|
237
|
-
"aspectRatio",
|
|
238
247
|
"builderBlock",
|
|
239
248
|
"fitContent"
|
|
240
249
|
],
|
|
@@ -246,14 +255,24 @@ const te = {
|
|
|
246
255
|
return this.srcset;
|
|
247
256
|
if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
|
|
248
257
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
249
|
-
return console.debug("Removed given srcset"),
|
|
258
|
+
return console.debug("Removed given srcset"), y(e);
|
|
250
259
|
} else if (this.image && !this.srcset)
|
|
251
|
-
return
|
|
252
|
-
return
|
|
260
|
+
return y(e);
|
|
261
|
+
return y(e);
|
|
253
262
|
},
|
|
254
263
|
webpSrcSet() {
|
|
255
264
|
var t;
|
|
256
265
|
return ((t = this.srcSetToUse) == null ? void 0 : t.match(/builder\.io/)) && !this.noWebp ? this.srcSetToUse.replace(/\?/g, "?format=webp&") : "";
|
|
266
|
+
},
|
|
267
|
+
aspectRatioCss() {
|
|
268
|
+
const t = {
|
|
269
|
+
position: "absolute",
|
|
270
|
+
height: "100%",
|
|
271
|
+
width: "100%",
|
|
272
|
+
left: "0px",
|
|
273
|
+
top: "0px"
|
|
274
|
+
};
|
|
275
|
+
return this.aspectRatio ? t : void 0;
|
|
257
276
|
}
|
|
258
277
|
},
|
|
259
278
|
methods: {
|
|
@@ -269,36 +288,37 @@ const te = {
|
|
|
269
288
|
}
|
|
270
289
|
};
|
|
271
290
|
var ne = function() {
|
|
272
|
-
var o, s, r,
|
|
291
|
+
var o, s, r, i;
|
|
273
292
|
var e = this, n = e._self._c;
|
|
274
293
|
return n("div", [n("picture", [e.webpSrcSet ? [n("source", { attrs: { type: "image/webp", srcset: e.webpSrcSet } })] : e._e(), n("img", { class: e._classStringToObject(
|
|
275
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
294
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-1j57pcfa436"
|
|
276
295
|
), style: {
|
|
277
|
-
objectPosition: e.
|
|
278
|
-
objectFit: e.backgroundSize || "cover"
|
|
279
|
-
|
|
296
|
+
objectPosition: e.backgroundPosition || "center",
|
|
297
|
+
objectFit: e.backgroundSize || "cover",
|
|
298
|
+
...e.aspectRatioCss
|
|
299
|
+
}, 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-1j57pcfa436", style: {
|
|
280
300
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
281
|
-
} })] : e._e(), ((
|
|
282
|
-
}, oe = [], se = /* @__PURE__ */
|
|
301
|
+
} })] : e._e(), ((i = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : i.length) && e.fitContent ? [e._t("default")] : e._e(), !e.fitContent && e.children ? [n("div", { staticClass: "div-1j57pcfa436-2" }, [e._t("default")], 2)] : e._e()], 2);
|
|
302
|
+
}, oe = [], se = /* @__PURE__ */ m(
|
|
283
303
|
te,
|
|
284
304
|
ne,
|
|
285
305
|
oe,
|
|
286
306
|
!1,
|
|
287
307
|
null,
|
|
288
|
-
"
|
|
308
|
+
"1e1c2091",
|
|
289
309
|
null,
|
|
290
310
|
null
|
|
291
311
|
);
|
|
292
|
-
const re = se.exports,
|
|
312
|
+
const re = se.exports, ie = {
|
|
293
313
|
name: "builder-text",
|
|
294
314
|
props: ["text"]
|
|
295
315
|
};
|
|
296
|
-
var
|
|
316
|
+
var ae = function() {
|
|
297
317
|
var e = this, n = e._self._c;
|
|
298
318
|
return n("span", { staticClass: "builder-text", domProps: { innerHTML: e._s(e.text) } });
|
|
299
|
-
}, ce = [], le = /* @__PURE__ */
|
|
300
|
-
ae,
|
|
319
|
+
}, ce = [], le = /* @__PURE__ */ m(
|
|
301
320
|
ie,
|
|
321
|
+
ae,
|
|
302
322
|
ce,
|
|
303
323
|
!1,
|
|
304
324
|
null,
|
|
@@ -359,7 +379,7 @@ var pe = function() {
|
|
|
359
379
|
objectPosition: e.position,
|
|
360
380
|
borderRadius: 1
|
|
361
381
|
}, attrs: { src: e.video || "no-src", poster: e.posterImage } }, "video", e.spreadProps, !1));
|
|
362
|
-
}, me = [], he = /* @__PURE__ */
|
|
382
|
+
}, me = [], he = /* @__PURE__ */ m(
|
|
363
383
|
ue,
|
|
364
384
|
pe,
|
|
365
385
|
me,
|
|
@@ -370,52 +390,52 @@ var pe = function() {
|
|
|
370
390
|
null
|
|
371
391
|
);
|
|
372
392
|
const fe = he.exports;
|
|
373
|
-
function
|
|
393
|
+
function _(t, e = null, n = ".") {
|
|
374
394
|
return Object.keys(t).reduce((o, s) => {
|
|
375
|
-
const r = t[s],
|
|
395
|
+
const r = t[s], i = [e, s].filter(Boolean).join(n);
|
|
376
396
|
return [
|
|
377
397
|
typeof r == "object",
|
|
378
398
|
r !== null,
|
|
379
399
|
!(Array.isArray(r) && r.length === 0)
|
|
380
|
-
].every(Boolean) ? { ...o, ...
|
|
400
|
+
].every(Boolean) ? { ...o, ..._(r, i, n) } : { ...o, [i]: r };
|
|
381
401
|
}, {});
|
|
382
402
|
}
|
|
383
|
-
const
|
|
403
|
+
const R = "builder.", ge = "options.", be = (t) => {
|
|
384
404
|
const e = {};
|
|
385
405
|
return t.forEach((n, o) => {
|
|
386
406
|
e[o] = n;
|
|
387
407
|
}), e;
|
|
388
|
-
},
|
|
408
|
+
}, ve = (t) => {
|
|
389
409
|
if (!t)
|
|
390
410
|
return {};
|
|
391
|
-
const e =
|
|
411
|
+
const e = F(t), n = {};
|
|
392
412
|
return Object.keys(e).forEach((o) => {
|
|
393
|
-
if (o.startsWith(
|
|
394
|
-
const s = o.replace(
|
|
413
|
+
if (o.startsWith(R)) {
|
|
414
|
+
const s = o.replace(R, "").replace(ge, "");
|
|
395
415
|
n[s] = e[o];
|
|
396
416
|
}
|
|
397
417
|
}), n;
|
|
398
|
-
},
|
|
399
|
-
if (!
|
|
418
|
+
}, ye = () => {
|
|
419
|
+
if (!p())
|
|
400
420
|
return {};
|
|
401
421
|
const t = new URLSearchParams(window.location.search);
|
|
402
|
-
return
|
|
403
|
-
},
|
|
404
|
-
function
|
|
422
|
+
return ve(t);
|
|
423
|
+
}, F = (t) => t instanceof URLSearchParams ? be(t) : t;
|
|
424
|
+
function _e() {
|
|
405
425
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
|
|
406
426
|
}
|
|
407
|
-
async function
|
|
408
|
-
const t =
|
|
427
|
+
async function j() {
|
|
428
|
+
const t = _e().fetch;
|
|
409
429
|
if (typeof t > "u" && typeof global < "u") {
|
|
410
430
|
const e = import("node-fetch").then((n) => n.default);
|
|
411
431
|
return e.default || e;
|
|
412
432
|
}
|
|
413
433
|
return t.default || t;
|
|
414
434
|
}
|
|
415
|
-
const
|
|
435
|
+
const xe = (t) => {
|
|
416
436
|
const e = t.split(".");
|
|
417
437
|
return e.length > 2 ? e.slice(1).join(".") : t;
|
|
418
|
-
},
|
|
438
|
+
}, U = async ({
|
|
419
439
|
name: t,
|
|
420
440
|
canTrack: e
|
|
421
441
|
}) => {
|
|
@@ -425,23 +445,23 @@ const _e = (t) => {
|
|
|
425
445
|
} catch (o) {
|
|
426
446
|
console.debug("[COOKIE] GET error: ", o);
|
|
427
447
|
}
|
|
428
|
-
},
|
|
448
|
+
}, Ce = (t) => t.map(([e, n]) => n ? `${e}=${n}` : e).join("; "), we = [
|
|
429
449
|
["secure", ""],
|
|
430
450
|
["SameSite", "None"]
|
|
431
|
-
],
|
|
451
|
+
], ke = ({
|
|
432
452
|
name: t,
|
|
433
453
|
value: e,
|
|
434
454
|
expires: n
|
|
435
455
|
}) => {
|
|
436
|
-
const s = (
|
|
456
|
+
const s = (p() ? location.protocol === "https:" : !0) ? we : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [
|
|
437
457
|
[t, e],
|
|
438
458
|
...r,
|
|
439
459
|
["path", "/"],
|
|
440
|
-
["domain",
|
|
460
|
+
["domain", xe(window.location.hostname)],
|
|
441
461
|
...s
|
|
442
462
|
];
|
|
443
|
-
return
|
|
444
|
-
},
|
|
463
|
+
return Ce(i);
|
|
464
|
+
}, P = async ({
|
|
445
465
|
name: t,
|
|
446
466
|
value: e,
|
|
447
467
|
expires: n,
|
|
@@ -450,19 +470,19 @@ const _e = (t) => {
|
|
|
450
470
|
try {
|
|
451
471
|
if (!o)
|
|
452
472
|
return;
|
|
453
|
-
const s =
|
|
473
|
+
const s = ke({ name: t, value: e, expires: n });
|
|
454
474
|
document.cookie = s;
|
|
455
475
|
} catch (s) {
|
|
456
476
|
console.warn("[COOKIE] SET error: ", s);
|
|
457
477
|
}
|
|
458
|
-
},
|
|
478
|
+
}, Se = "builderio.variations", A = (t) => `${Se}.${t}`, Ie = ({
|
|
459
479
|
contentId: t,
|
|
460
480
|
canTrack: e
|
|
461
|
-
}) =>
|
|
481
|
+
}) => U({ name: A(t), canTrack: e }), Re = ({
|
|
462
482
|
contentId: t,
|
|
463
483
|
canTrack: e,
|
|
464
484
|
value: n
|
|
465
|
-
}) =>
|
|
485
|
+
}) => P({ 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 = ({
|
|
466
486
|
id: t,
|
|
467
487
|
variations: e
|
|
468
488
|
}) => {
|
|
@@ -486,22 +506,22 @@ const _e = (t) => {
|
|
|
486
506
|
testVariationId: n.id,
|
|
487
507
|
testVariationName: n.name || (n.id === t.id ? "Default" : "")
|
|
488
508
|
};
|
|
489
|
-
},
|
|
509
|
+
}, Ee = async ({
|
|
490
510
|
item: t,
|
|
491
511
|
canTrack: e
|
|
492
512
|
}) => {
|
|
493
|
-
const n = await
|
|
513
|
+
const n = await Ie({
|
|
494
514
|
canTrack: e,
|
|
495
515
|
contentId: t.id
|
|
496
516
|
}), o = n ? T({ item: t, testGroupId: n }) : void 0;
|
|
497
517
|
if (o)
|
|
498
518
|
return o;
|
|
499
519
|
{
|
|
500
|
-
const s =
|
|
520
|
+
const s = $e({
|
|
501
521
|
variations: t.variations,
|
|
502
522
|
id: t.id
|
|
503
523
|
});
|
|
504
|
-
return
|
|
524
|
+
return Re({
|
|
505
525
|
contentId: t.id,
|
|
506
526
|
value: s,
|
|
507
527
|
canTrack: e
|
|
@@ -509,62 +529,63 @@ const _e = (t) => {
|
|
|
509
529
|
console.error("could not store A/B test variation: ", r);
|
|
510
530
|
}), T({ item: t, testGroupId: s });
|
|
511
531
|
}
|
|
512
|
-
},
|
|
532
|
+
}, Fe = async ({
|
|
513
533
|
item: t,
|
|
514
534
|
canTrack: e
|
|
515
535
|
}) => {
|
|
516
536
|
if (!Te(t))
|
|
517
537
|
return;
|
|
518
|
-
const n = await
|
|
538
|
+
const n = await Ee({ item: t, canTrack: e });
|
|
519
539
|
Object.assign(t, n);
|
|
520
540
|
};
|
|
521
|
-
async function
|
|
522
|
-
return (await
|
|
541
|
+
async function O(t) {
|
|
542
|
+
return (await Ue({ ...t, limit: 1 })).results[0] || null;
|
|
523
543
|
}
|
|
524
|
-
const
|
|
544
|
+
const je = (t) => {
|
|
525
545
|
const {
|
|
526
546
|
limit: e = 30,
|
|
527
547
|
userAttributes: n,
|
|
528
548
|
query: o,
|
|
529
549
|
noTraverse: s = !1,
|
|
530
550
|
model: r,
|
|
531
|
-
apiKey:
|
|
532
|
-
includeRefs: c = !0
|
|
551
|
+
apiKey: i,
|
|
552
|
+
includeRefs: c = !0,
|
|
553
|
+
locale: a
|
|
533
554
|
} = t;
|
|
534
|
-
if (!
|
|
555
|
+
if (!i)
|
|
535
556
|
throw new Error("Missing API key");
|
|
536
|
-
const
|
|
537
|
-
`https://cdn.builder.io/api/v2/content/${r}?apiKey=${
|
|
538
|
-
),
|
|
539
|
-
...
|
|
540
|
-
...
|
|
541
|
-
},
|
|
542
|
-
for (const
|
|
543
|
-
|
|
544
|
-
if (n &&
|
|
545
|
-
const
|
|
546
|
-
for (const
|
|
547
|
-
|
|
557
|
+
const d = new URL(
|
|
558
|
+
`https://cdn.builder.io/api/v2/content/${r}?apiKey=${i}&limit=${e}&noTraverse=${s}&includeRefs=${c}${a ? `&locale=${a}` : ""}`
|
|
559
|
+
), u = {
|
|
560
|
+
...ye(),
|
|
561
|
+
...F(t.options || {})
|
|
562
|
+
}, h = _(u);
|
|
563
|
+
for (const l in h)
|
|
564
|
+
d.searchParams.set(l, String(h[l]));
|
|
565
|
+
if (n && d.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
566
|
+
const l = _({ query: o });
|
|
567
|
+
for (const g in l)
|
|
568
|
+
d.searchParams.set(g, JSON.stringify(l[g]));
|
|
548
569
|
}
|
|
549
|
-
return
|
|
570
|
+
return d;
|
|
550
571
|
};
|
|
551
|
-
async function
|
|
552
|
-
const e =
|
|
572
|
+
async function Ue(t) {
|
|
573
|
+
const e = je(t), o = await (await j())(e.href).then(
|
|
553
574
|
(r) => r.json()
|
|
554
575
|
), s = t.canTrack !== !1;
|
|
555
|
-
if (s)
|
|
576
|
+
if (s && Array.isArray(o.results))
|
|
556
577
|
for (const r of o.results)
|
|
557
|
-
await
|
|
578
|
+
await Fe({ item: r, canTrack: s });
|
|
558
579
|
return o;
|
|
559
580
|
}
|
|
560
|
-
const
|
|
581
|
+
const Pe = () => Promise.resolve().then(() => Zt).then((t) => t.default).catch((t) => {
|
|
561
582
|
throw console.error(
|
|
562
583
|
"Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
|
|
563
584
|
t
|
|
564
585
|
), t;
|
|
565
|
-
}),
|
|
586
|
+
}), Ae = {
|
|
566
587
|
name: "builder-symbol",
|
|
567
|
-
components: { RenderContent:
|
|
588
|
+
components: { RenderContent: Pe },
|
|
568
589
|
props: ["symbol", "attributes"],
|
|
569
590
|
data: () => ({ className: "builder-symbol", fetchedContent: null }),
|
|
570
591
|
inject: {
|
|
@@ -573,7 +594,7 @@ const Ue = () => Promise.resolve().then(() => Qt).then((t) => t.default).catch((
|
|
|
573
594
|
watch: {
|
|
574
595
|
onUpdateHook0() {
|
|
575
596
|
const t = this.symbol;
|
|
576
|
-
t && !t.content && !this.fetchedContent && t.model &&
|
|
597
|
+
t && !t.content && !this.fetchedContent && t.model && O({
|
|
577
598
|
model: t.model,
|
|
578
599
|
apiKey: this.builderContext.apiKey,
|
|
579
600
|
query: {
|
|
@@ -608,80 +629,80 @@ const Ue = () => Promise.resolve().then(() => Qt).then((t) => t.default).catch((
|
|
|
608
629
|
}
|
|
609
630
|
}
|
|
610
631
|
};
|
|
611
|
-
var
|
|
612
|
-
var o, s, r,
|
|
632
|
+
var Oe = function() {
|
|
633
|
+
var o, s, r, i, c;
|
|
613
634
|
var e = this, n = e._self._c;
|
|
614
635
|
return n("div", e._b({ class: e._classStringToObject(e.className), attrs: { dataSet: {
|
|
615
636
|
class: e.className
|
|
616
637
|
} } }, "div", e.attributes, !1), [n("render-content", { attrs: { apiKey: e.builderContext.apiKey, context: e.builderContext.context, customComponents: Object.values(e.builderContext.registeredComponents), data: {
|
|
617
638
|
...(o = e.symbol) == null ? void 0 : o.data,
|
|
618
639
|
...e.builderContext.state,
|
|
619
|
-
...(
|
|
640
|
+
...(i = (r = (s = e.symbol) == null ? void 0 : s.content) == null ? void 0 : r.data) == null ? void 0 : i.state
|
|
620
641
|
}, model: (c = e.symbol) == null ? void 0 : c.model, content: e.contentToUse } })], 1);
|
|
621
|
-
},
|
|
622
|
-
Ve,
|
|
642
|
+
}, Ve = [], Be = /* @__PURE__ */ m(
|
|
623
643
|
Ae,
|
|
624
644
|
Oe,
|
|
645
|
+
Ve,
|
|
625
646
|
!1,
|
|
626
647
|
null,
|
|
627
648
|
null,
|
|
628
649
|
null,
|
|
629
650
|
null
|
|
630
651
|
);
|
|
631
|
-
const We =
|
|
652
|
+
const We = Be.exports, Le = {
|
|
632
653
|
name: "builder-button",
|
|
633
654
|
props: ["attributes", "text", "link", "openLinkInNewTab"]
|
|
634
655
|
};
|
|
635
|
-
var
|
|
656
|
+
var Ne = function() {
|
|
636
657
|
var e = this, n = e._self._c;
|
|
637
|
-
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-
|
|
638
|
-
},
|
|
639
|
-
Be,
|
|
658
|
+
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-2brhoa1k8gd" }, "button", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]);
|
|
659
|
+
}, Me = [], He = /* @__PURE__ */ m(
|
|
640
660
|
Le,
|
|
641
661
|
Ne,
|
|
662
|
+
Me,
|
|
642
663
|
!1,
|
|
643
664
|
null,
|
|
644
|
-
"
|
|
665
|
+
"1a3d5b35",
|
|
645
666
|
null,
|
|
646
667
|
null
|
|
647
668
|
);
|
|
648
|
-
const
|
|
669
|
+
const Ke = He.exports, qe = {
|
|
649
670
|
name: "builder-section-component",
|
|
650
671
|
props: ["attributes", "maxWidth"]
|
|
651
672
|
};
|
|
652
|
-
var
|
|
673
|
+
var ze = function() {
|
|
653
674
|
var e = this, n = e._self._c;
|
|
654
675
|
return n("section", e._b({ style: e.maxWidth && typeof e.maxWidth == "number" ? {
|
|
655
676
|
maxWidth: e.maxWidth
|
|
656
677
|
} : void 0 }, "section", e.attributes, !1), [e._t("default")], 2);
|
|
657
|
-
},
|
|
658
|
-
ze,
|
|
659
|
-
Ke,
|
|
678
|
+
}, De = [], Je = /* @__PURE__ */ m(
|
|
660
679
|
qe,
|
|
680
|
+
ze,
|
|
681
|
+
De,
|
|
661
682
|
!1,
|
|
662
683
|
null,
|
|
663
684
|
null,
|
|
664
685
|
null,
|
|
665
686
|
null
|
|
666
687
|
);
|
|
667
|
-
const
|
|
688
|
+
const Ge = Je.exports, Xe = {
|
|
668
689
|
name: "builder-fragment-component",
|
|
669
690
|
props: []
|
|
670
691
|
};
|
|
671
|
-
var
|
|
692
|
+
var Ye = function() {
|
|
672
693
|
var e = this, n = e._self._c;
|
|
673
694
|
return n("span", [e._t("default")], 2);
|
|
674
|
-
},
|
|
675
|
-
Ge,
|
|
695
|
+
}, Qe = [], Ze = /* @__PURE__ */ m(
|
|
676
696
|
Xe,
|
|
677
697
|
Ye,
|
|
698
|
+
Qe,
|
|
678
699
|
!1,
|
|
679
700
|
null,
|
|
680
701
|
null,
|
|
681
702
|
null,
|
|
682
703
|
null
|
|
683
704
|
);
|
|
684
|
-
const
|
|
705
|
+
const et = Ze.exports, tt = {
|
|
685
706
|
name: "Core:Button",
|
|
686
707
|
builtIn: !0,
|
|
687
708
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -718,10 +739,10 @@ const Ze = Qe.exports, et = {
|
|
|
718
739
|
],
|
|
719
740
|
static: !0,
|
|
720
741
|
noWrap: !0
|
|
721
|
-
},
|
|
742
|
+
}, v = (t) => {
|
|
722
743
|
const e = t.toString().trim();
|
|
723
744
|
return `return (${!e.startsWith("function") && !e.startsWith("(") ? "function " : ""}${e}).apply(this, arguments)`;
|
|
724
|
-
},
|
|
745
|
+
}, nt = {
|
|
725
746
|
name: "Columns",
|
|
726
747
|
builtIn: !0,
|
|
727
748
|
inputs: [
|
|
@@ -909,7 +930,7 @@ const Ze = Qe.exports, et = {
|
|
|
909
930
|
]
|
|
910
931
|
}
|
|
911
932
|
],
|
|
912
|
-
onChange:
|
|
933
|
+
onChange: v((t) => {
|
|
913
934
|
function e() {
|
|
914
935
|
n.forEach((o) => {
|
|
915
936
|
o.delete("width");
|
|
@@ -920,7 +941,7 @@ const Ze = Qe.exports, et = {
|
|
|
920
941
|
(s) => s.get("width")
|
|
921
942
|
) && (!!n.find(
|
|
922
943
|
(r) => !r.get("width")
|
|
923
|
-
) || n.reduce((c,
|
|
944
|
+
) || n.reduce((c, a) => c + a.get("width"), 0) !== 100) && e();
|
|
924
945
|
})
|
|
925
946
|
},
|
|
926
947
|
{
|
|
@@ -946,14 +967,14 @@ const Ze = Qe.exports, et = {
|
|
|
946
967
|
advanced: !0
|
|
947
968
|
}
|
|
948
969
|
]
|
|
949
|
-
},
|
|
970
|
+
}, ot = {
|
|
950
971
|
name: "Fragment",
|
|
951
972
|
static: !0,
|
|
952
973
|
hidden: !0,
|
|
953
974
|
builtIn: !0,
|
|
954
975
|
canHaveChildren: !0,
|
|
955
976
|
noWrap: !0
|
|
956
|
-
},
|
|
977
|
+
}, st = {
|
|
957
978
|
name: "Image",
|
|
958
979
|
static: !0,
|
|
959
980
|
builtIn: !0,
|
|
@@ -973,31 +994,31 @@ const Ze = Qe.exports, et = {
|
|
|
973
994
|
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
974
995
|
required: !0,
|
|
975
996
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
976
|
-
onChange:
|
|
997
|
+
onChange: v((t) => {
|
|
977
998
|
t.delete("srcset"), t.delete("noWebp");
|
|
978
|
-
function n(
|
|
979
|
-
return new Promise((
|
|
980
|
-
const
|
|
981
|
-
let
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
},
|
|
985
|
-
console.warn("Image load failed",
|
|
986
|
-
}),
|
|
987
|
-
|
|
999
|
+
function n(i, c = 6e4) {
|
|
1000
|
+
return new Promise((a, d) => {
|
|
1001
|
+
const u = document.createElement("img");
|
|
1002
|
+
let h = !1;
|
|
1003
|
+
u.onload = () => {
|
|
1004
|
+
h = !0, a(u);
|
|
1005
|
+
}, u.addEventListener("error", (l) => {
|
|
1006
|
+
console.warn("Image load failed", l.error), d(l.error);
|
|
1007
|
+
}), u.src = i, setTimeout(() => {
|
|
1008
|
+
h || d(new Error("Image load timed out"));
|
|
988
1009
|
}, c);
|
|
989
1010
|
});
|
|
990
1011
|
}
|
|
991
|
-
function o(
|
|
992
|
-
return Math.round(
|
|
1012
|
+
function o(i) {
|
|
1013
|
+
return Math.round(i * 1e3) / 1e3;
|
|
993
1014
|
}
|
|
994
1015
|
const s = t.get("image"), r = t.get("aspectRatio");
|
|
995
|
-
if (fetch(s).then((
|
|
996
|
-
|
|
1016
|
+
if (fetch(s).then((i) => i.blob()).then((i) => {
|
|
1017
|
+
i.type.includes("svg") && t.set("noWebp", !0);
|
|
997
1018
|
}), s && (!r || r === 0.7041))
|
|
998
|
-
return n(s).then((
|
|
1019
|
+
return n(s).then((i) => {
|
|
999
1020
|
const c = t.get("aspectRatio");
|
|
1000
|
-
t.get("image") === s && (!c || c === 0.7041) &&
|
|
1021
|
+
t.get("image") === s && (!c || c === 0.7041) && i.width && i.height && (t.set("aspectRatio", o(i.height / i.width)), t.set("height", i.height), t.set("width", i.width));
|
|
1001
1022
|
});
|
|
1002
1023
|
})
|
|
1003
1024
|
},
|
|
@@ -1079,7 +1100,7 @@ const Ze = Qe.exports, et = {
|
|
|
1079
1100
|
defaultValue: 0.7041
|
|
1080
1101
|
}
|
|
1081
1102
|
]
|
|
1082
|
-
},
|
|
1103
|
+
}, rt = {
|
|
1083
1104
|
name: "Core:Section",
|
|
1084
1105
|
static: !0,
|
|
1085
1106
|
builtIn: !0,
|
|
@@ -1124,7 +1145,7 @@ const Ze = Qe.exports, et = {
|
|
|
1124
1145
|
}
|
|
1125
1146
|
}
|
|
1126
1147
|
]
|
|
1127
|
-
},
|
|
1148
|
+
}, it = {
|
|
1128
1149
|
name: "Symbol",
|
|
1129
1150
|
noWrap: !0,
|
|
1130
1151
|
static: !0,
|
|
@@ -1183,7 +1204,7 @@ const Ze = Qe.exports, et = {
|
|
|
1183
1204
|
height: "auto",
|
|
1184
1205
|
textAlign: "center"
|
|
1185
1206
|
}
|
|
1186
|
-
},
|
|
1207
|
+
}, ct = {
|
|
1187
1208
|
name: "Video",
|
|
1188
1209
|
canHaveChildren: !0,
|
|
1189
1210
|
builtIn: !0,
|
|
@@ -1285,7 +1306,7 @@ const Ze = Qe.exports, et = {
|
|
|
1285
1306
|
advanced: !0
|
|
1286
1307
|
}
|
|
1287
1308
|
]
|
|
1288
|
-
},
|
|
1309
|
+
}, lt = {
|
|
1289
1310
|
name: "Embed",
|
|
1290
1311
|
static: !0,
|
|
1291
1312
|
builtIn: !0,
|
|
@@ -1296,7 +1317,7 @@ const Ze = Qe.exports, et = {
|
|
|
1296
1317
|
required: !0,
|
|
1297
1318
|
defaultValue: "",
|
|
1298
1319
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1299
|
-
onChange:
|
|
1320
|
+
onChange: v((t) => {
|
|
1300
1321
|
const e = t.get("url");
|
|
1301
1322
|
if (e)
|
|
1302
1323
|
return t.set("content", "Loading..."), fetch(
|
|
@@ -1319,11 +1340,11 @@ const Ze = Qe.exports, et = {
|
|
|
1319
1340
|
hideFromUI: !0
|
|
1320
1341
|
}
|
|
1321
1342
|
]
|
|
1322
|
-
},
|
|
1343
|
+
}, dt = [
|
|
1323
1344
|
"text/javascript",
|
|
1324
1345
|
"application/javascript",
|
|
1325
1346
|
"application/ecmascript"
|
|
1326
|
-
],
|
|
1347
|
+
], ut = (t) => dt.includes(t.type), pt = {
|
|
1327
1348
|
name: "builder-embed",
|
|
1328
1349
|
props: ["content"],
|
|
1329
1350
|
data: () => ({ scriptsInserted: [], scriptsRun: [], ranInitFn: !1 }),
|
|
@@ -1351,7 +1372,7 @@ const Ze = Qe.exports, et = {
|
|
|
1351
1372
|
this.scriptsInserted.push(n.src);
|
|
1352
1373
|
const o = document.createElement("script");
|
|
1353
1374
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
1354
|
-
} else if (
|
|
1375
|
+
} else if (ut(n) && !this.scriptsRun.includes(n.innerText))
|
|
1355
1376
|
try {
|
|
1356
1377
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
1357
1378
|
} catch (o) {
|
|
@@ -1361,27 +1382,27 @@ const Ze = Qe.exports, et = {
|
|
|
1361
1382
|
}
|
|
1362
1383
|
}
|
|
1363
1384
|
};
|
|
1364
|
-
var
|
|
1385
|
+
var mt = function() {
|
|
1365
1386
|
var e = this, n = e._self._c;
|
|
1366
1387
|
return n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: e._s(e.content) } });
|
|
1367
|
-
},
|
|
1368
|
-
ut,
|
|
1388
|
+
}, ht = [], ft = /* @__PURE__ */ m(
|
|
1369
1389
|
pt,
|
|
1370
1390
|
mt,
|
|
1391
|
+
ht,
|
|
1371
1392
|
!1,
|
|
1372
1393
|
null,
|
|
1373
1394
|
null,
|
|
1374
1395
|
null,
|
|
1375
1396
|
null
|
|
1376
1397
|
);
|
|
1377
|
-
const
|
|
1378
|
-
function
|
|
1379
|
-
return
|
|
1398
|
+
const gt = ft.exports;
|
|
1399
|
+
function bt() {
|
|
1400
|
+
return p() && window.self !== window.top;
|
|
1380
1401
|
}
|
|
1381
1402
|
function f() {
|
|
1382
|
-
return
|
|
1403
|
+
return bt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1383
1404
|
}
|
|
1384
|
-
const
|
|
1405
|
+
const vt = {
|
|
1385
1406
|
name: "builder-img-component",
|
|
1386
1407
|
props: [
|
|
1387
1408
|
"backgroundSize",
|
|
@@ -1393,23 +1414,23 @@ const bt = {
|
|
|
1393
1414
|
],
|
|
1394
1415
|
data: () => ({ isEditing: f })
|
|
1395
1416
|
};
|
|
1396
|
-
var
|
|
1417
|
+
var yt = function() {
|
|
1397
1418
|
var e = this, n = e._self._c;
|
|
1398
1419
|
return n("img", e._b({ key: e.isEditing() && e.imgSrc || "default-key", style: {
|
|
1399
1420
|
objectFit: e.backgroundSize || "cover",
|
|
1400
1421
|
objectPosition: e.backgroundPosition || "center"
|
|
1401
1422
|
}, attrs: { alt: e.altText, src: e.imgSrc || e.image } }, "img", e.attributes, !1));
|
|
1402
|
-
},
|
|
1403
|
-
bt,
|
|
1423
|
+
}, _t = [], xt = /* @__PURE__ */ m(
|
|
1404
1424
|
vt,
|
|
1405
1425
|
yt,
|
|
1426
|
+
_t,
|
|
1406
1427
|
!1,
|
|
1407
1428
|
null,
|
|
1408
1429
|
null,
|
|
1409
1430
|
null,
|
|
1410
1431
|
null
|
|
1411
1432
|
);
|
|
1412
|
-
const
|
|
1433
|
+
const Ct = xt.exports, wt = {
|
|
1413
1434
|
name: "Raw:Img",
|
|
1414
1435
|
hideFromInsertMenu: !0,
|
|
1415
1436
|
builtIn: !0,
|
|
@@ -1425,7 +1446,7 @@ const xt = _t.exports, Ct = {
|
|
|
1425
1446
|
],
|
|
1426
1447
|
noWrap: !0,
|
|
1427
1448
|
static: !0
|
|
1428
|
-
},
|
|
1449
|
+
}, kt = {
|
|
1429
1450
|
name: "builder-custom-code",
|
|
1430
1451
|
props: ["replaceNodes", "code"],
|
|
1431
1452
|
data: () => ({ scriptsInserted: [], scriptsRun: [] }),
|
|
@@ -1471,22 +1492,22 @@ const xt = _t.exports, Ct = {
|
|
|
1471
1492
|
}
|
|
1472
1493
|
}
|
|
1473
1494
|
};
|
|
1474
|
-
var
|
|
1495
|
+
var St = function() {
|
|
1475
1496
|
var e = this, n = e._self._c;
|
|
1476
1497
|
return n("div", { ref: "elem", class: e._classStringToObject(
|
|
1477
1498
|
"builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
|
|
1478
1499
|
), domProps: { innerHTML: e._s(e.code) } });
|
|
1479
|
-
},
|
|
1480
|
-
wt,
|
|
1500
|
+
}, It = [], Rt = /* @__PURE__ */ m(
|
|
1481
1501
|
kt,
|
|
1482
1502
|
St,
|
|
1503
|
+
It,
|
|
1483
1504
|
!1,
|
|
1484
1505
|
null,
|
|
1485
1506
|
null,
|
|
1486
1507
|
null,
|
|
1487
1508
|
null
|
|
1488
1509
|
);
|
|
1489
|
-
const Tt =
|
|
1510
|
+
const Tt = Rt.exports, $t = {
|
|
1490
1511
|
name: "Custom Code",
|
|
1491
1512
|
static: !0,
|
|
1492
1513
|
builtIn: !0,
|
|
@@ -1513,34 +1534,35 @@ const Tt = It.exports, Rt = {
|
|
|
1513
1534
|
advanced: !0
|
|
1514
1535
|
}
|
|
1515
1536
|
]
|
|
1516
|
-
},
|
|
1517
|
-
{ component: Q, ...
|
|
1518
|
-
{ component: re, ...
|
|
1519
|
-
{ component:
|
|
1537
|
+
}, Et = () => [
|
|
1538
|
+
{ component: Q, ...nt },
|
|
1539
|
+
{ component: re, ...st },
|
|
1540
|
+
{ component: Ct, ...wt },
|
|
1520
1541
|
{ component: de, ...at },
|
|
1521
|
-
{ component: fe, ...
|
|
1522
|
-
{ component: We, ...
|
|
1523
|
-
{ component:
|
|
1524
|
-
{ component:
|
|
1525
|
-
{ component:
|
|
1526
|
-
{ component:
|
|
1527
|
-
{ component: Tt,
|
|
1542
|
+
{ component: fe, ...ct },
|
|
1543
|
+
{ component: We, ...it },
|
|
1544
|
+
{ component: Ke, ...tt },
|
|
1545
|
+
{ component: Ge, ...rt },
|
|
1546
|
+
{ component: et, ...ot },
|
|
1547
|
+
{ component: gt, ...lt },
|
|
1548
|
+
{ component: Tt, ...$t }
|
|
1528
1549
|
];
|
|
1529
|
-
function
|
|
1550
|
+
function $({
|
|
1530
1551
|
code: t,
|
|
1531
1552
|
context: e,
|
|
1532
1553
|
state: n,
|
|
1533
|
-
event: o
|
|
1554
|
+
event: o,
|
|
1555
|
+
isExpression: s = !0
|
|
1534
1556
|
}) {
|
|
1535
1557
|
if (t === "") {
|
|
1536
1558
|
console.warn("Skipping evaluation of empty code block.");
|
|
1537
1559
|
return;
|
|
1538
1560
|
}
|
|
1539
|
-
const
|
|
1561
|
+
const r = {
|
|
1540
1562
|
isEditing: f(),
|
|
1541
|
-
isBrowser:
|
|
1542
|
-
isServer: !
|
|
1543
|
-
},
|
|
1563
|
+
isBrowser: p(),
|
|
1564
|
+
isServer: !p()
|
|
1565
|
+
}, c = s && !(t.includes(";") || t.includes(" return ") || t.trim().startsWith("return ")) ? `return (${t});` : t;
|
|
1544
1566
|
try {
|
|
1545
1567
|
return new Function(
|
|
1546
1568
|
"builder",
|
|
@@ -1548,127 +1570,127 @@ function R({
|
|
|
1548
1570
|
"state",
|
|
1549
1571
|
"context",
|
|
1550
1572
|
"event",
|
|
1551
|
-
|
|
1552
|
-
)(
|
|
1553
|
-
} catch (
|
|
1573
|
+
c
|
|
1574
|
+
)(r, r, n, e, o);
|
|
1575
|
+
} catch (a) {
|
|
1554
1576
|
console.warn(
|
|
1555
1577
|
`Builder custom code error:
|
|
1556
1578
|
While Evaluating:
|
|
1557
1579
|
`,
|
|
1558
|
-
|
|
1580
|
+
c,
|
|
1559
1581
|
`
|
|
1560
1582
|
`,
|
|
1561
|
-
|
|
1583
|
+
a
|
|
1562
1584
|
);
|
|
1563
1585
|
}
|
|
1564
1586
|
}
|
|
1565
|
-
function
|
|
1566
|
-
return !
|
|
1587
|
+
function Ft() {
|
|
1588
|
+
return !p() || f() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1567
1589
|
}
|
|
1568
|
-
const
|
|
1569
|
-
function
|
|
1570
|
-
return
|
|
1590
|
+
const V = (t) => JSON.parse(JSON.stringify(t)), B = [];
|
|
1591
|
+
function cn(t, e) {
|
|
1592
|
+
return B.push({ component: t, ...e }), console.warn(
|
|
1571
1593
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1572
1594
|
), t;
|
|
1573
1595
|
}
|
|
1574
|
-
const
|
|
1596
|
+
const jt = ({
|
|
1575
1597
|
component: t,
|
|
1576
1598
|
...e
|
|
1577
1599
|
}) => ({
|
|
1578
1600
|
type: "builder.registerComponent",
|
|
1579
|
-
data:
|
|
1580
|
-
}),
|
|
1601
|
+
data: Pt(e)
|
|
1602
|
+
}), Ut = (t) => typeof t == "function" ? v(t) : V(t), Pt = ({
|
|
1581
1603
|
inputs: t,
|
|
1582
1604
|
...e
|
|
1583
1605
|
}) => ({
|
|
1584
|
-
...
|
|
1606
|
+
...V(e),
|
|
1585
1607
|
inputs: t == null ? void 0 : t.map(
|
|
1586
1608
|
(n) => Object.entries(n).reduce(
|
|
1587
1609
|
(o, [s, r]) => ({
|
|
1588
1610
|
...o,
|
|
1589
|
-
[s]:
|
|
1611
|
+
[s]: Ut(r)
|
|
1590
1612
|
}),
|
|
1591
1613
|
{}
|
|
1592
1614
|
)
|
|
1593
1615
|
)
|
|
1594
1616
|
});
|
|
1595
|
-
function
|
|
1617
|
+
function At() {
|
|
1596
1618
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
|
|
1597
1619
|
const e = Math.random() * 16 | 0;
|
|
1598
1620
|
return (t == "x" ? e : e & 3 | 8).toString(16);
|
|
1599
1621
|
});
|
|
1600
1622
|
}
|
|
1601
1623
|
function W() {
|
|
1602
|
-
return
|
|
1624
|
+
return At().replace(/-/g, "");
|
|
1603
1625
|
}
|
|
1604
|
-
const
|
|
1626
|
+
const L = "builderSessionId", Ot = async ({ canTrack: t }) => {
|
|
1605
1627
|
if (!t)
|
|
1606
1628
|
return;
|
|
1607
|
-
const e = await
|
|
1608
|
-
name:
|
|
1629
|
+
const e = await U({
|
|
1630
|
+
name: L,
|
|
1609
1631
|
canTrack: t
|
|
1610
1632
|
});
|
|
1611
|
-
if (
|
|
1633
|
+
if (b(e))
|
|
1612
1634
|
return e;
|
|
1613
1635
|
{
|
|
1614
|
-
const n =
|
|
1615
|
-
|
|
1636
|
+
const n = Vt();
|
|
1637
|
+
Bt({ id: n, canTrack: t });
|
|
1616
1638
|
}
|
|
1617
|
-
},
|
|
1639
|
+
}, Vt = () => W(), Bt = ({
|
|
1618
1640
|
id: t,
|
|
1619
1641
|
canTrack: e
|
|
1620
|
-
}) =>
|
|
1642
|
+
}) => P({ name: L, value: t, canTrack: e }), N = () => p() && typeof localStorage < "u" ? localStorage : void 0, Wt = ({
|
|
1621
1643
|
key: t,
|
|
1622
1644
|
canTrack: e
|
|
1623
1645
|
}) => {
|
|
1624
1646
|
var n;
|
|
1625
1647
|
try {
|
|
1626
|
-
return e ? (n =
|
|
1648
|
+
return e ? (n = N()) == null ? void 0 : n.getItem(t) : void 0;
|
|
1627
1649
|
} catch (o) {
|
|
1628
1650
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1629
1651
|
}
|
|
1630
|
-
},
|
|
1652
|
+
}, Lt = ({
|
|
1631
1653
|
key: t,
|
|
1632
1654
|
canTrack: e,
|
|
1633
1655
|
value: n
|
|
1634
1656
|
}) => {
|
|
1635
1657
|
var o;
|
|
1636
1658
|
try {
|
|
1637
|
-
e && ((o =
|
|
1659
|
+
e && ((o = N()) == null || o.setItem(t, n));
|
|
1638
1660
|
} catch (s) {
|
|
1639
1661
|
console.debug("[LocalStorage] SET error: ", s);
|
|
1640
1662
|
}
|
|
1641
|
-
},
|
|
1663
|
+
}, M = "builderVisitorId", Nt = ({ canTrack: t }) => {
|
|
1642
1664
|
if (!t)
|
|
1643
1665
|
return;
|
|
1644
1666
|
const e = Wt({
|
|
1645
|
-
key:
|
|
1667
|
+
key: M,
|
|
1646
1668
|
canTrack: t
|
|
1647
1669
|
});
|
|
1648
|
-
if (
|
|
1670
|
+
if (b(e))
|
|
1649
1671
|
return e;
|
|
1650
1672
|
{
|
|
1651
|
-
const n =
|
|
1652
|
-
|
|
1673
|
+
const n = Mt();
|
|
1674
|
+
Ht({ id: n, canTrack: t });
|
|
1653
1675
|
}
|
|
1654
|
-
},
|
|
1676
|
+
}, Mt = () => W(), Ht = ({
|
|
1655
1677
|
id: t,
|
|
1656
1678
|
canTrack: e
|
|
1657
|
-
}) =>
|
|
1658
|
-
key:
|
|
1679
|
+
}) => Lt({
|
|
1680
|
+
key: M,
|
|
1659
1681
|
value: t,
|
|
1660
1682
|
canTrack: e
|
|
1661
|
-
}),
|
|
1683
|
+
}), Kt = async ({
|
|
1662
1684
|
canTrack: t
|
|
1663
1685
|
}) => {
|
|
1664
1686
|
if (!t)
|
|
1665
1687
|
return { visitorId: void 0, sessionId: void 0 };
|
|
1666
|
-
const e = await
|
|
1688
|
+
const e = await Ot({ canTrack: t }), n = Nt({ canTrack: t });
|
|
1667
1689
|
return {
|
|
1668
1690
|
sessionId: e,
|
|
1669
1691
|
visitorId: n
|
|
1670
1692
|
};
|
|
1671
|
-
},
|
|
1693
|
+
}, qt = async ({
|
|
1672
1694
|
type: t,
|
|
1673
1695
|
canTrack: e,
|
|
1674
1696
|
apiKey: n,
|
|
@@ -1679,16 +1701,22 @@ const B = "builderSessionId", At = async ({ canTrack: t }) => {
|
|
|
1679
1701
|
data: {
|
|
1680
1702
|
...s,
|
|
1681
1703
|
metadata: JSON.stringify(o),
|
|
1682
|
-
...await
|
|
1704
|
+
...await Kt({ canTrack: e }),
|
|
1683
1705
|
ownerId: n
|
|
1684
1706
|
}
|
|
1685
1707
|
});
|
|
1686
|
-
async function
|
|
1687
|
-
if (
|
|
1708
|
+
async function x(t) {
|
|
1709
|
+
if (!t.apiKey) {
|
|
1710
|
+
console.error(
|
|
1711
|
+
"[Builder.io]: Missing API key for track call. Please provide your API key."
|
|
1712
|
+
);
|
|
1713
|
+
return;
|
|
1714
|
+
}
|
|
1715
|
+
if (!!t.canTrack && !f() && !!(p() || C === "reactNative"))
|
|
1688
1716
|
return fetch("https://builder.io/api/v1/track", {
|
|
1689
1717
|
method: "POST",
|
|
1690
1718
|
body: JSON.stringify({
|
|
1691
|
-
events: [await
|
|
1719
|
+
events: [await qt(t)]
|
|
1692
1720
|
}),
|
|
1693
1721
|
headers: {
|
|
1694
1722
|
"content-type": "application/json"
|
|
@@ -1698,30 +1726,32 @@ async function _(t) {
|
|
|
1698
1726
|
console.error("Failed to track: ", e);
|
|
1699
1727
|
});
|
|
1700
1728
|
}
|
|
1701
|
-
const
|
|
1729
|
+
const ln = (t) => x({ ...t, canTrack: !0 }), zt = () => Promise.resolve().then(() => H).then((t) => t.default).catch((t) => {
|
|
1702
1730
|
throw console.error(
|
|
1703
1731
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
1704
1732
|
t
|
|
1705
1733
|
), t;
|
|
1706
|
-
}),
|
|
1734
|
+
}), Dt = () => import("./render-styles.230dc75f.js").then((t) => t.default).catch((t) => {
|
|
1707
1735
|
throw console.error(
|
|
1708
1736
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
1709
1737
|
t
|
|
1710
1738
|
), t;
|
|
1711
|
-
}),
|
|
1739
|
+
}), Jt = {
|
|
1712
1740
|
name: "render-content",
|
|
1713
1741
|
components: {
|
|
1714
|
-
RenderContentStyles:
|
|
1715
|
-
RenderBlocks:
|
|
1742
|
+
RenderContentStyles: Dt,
|
|
1743
|
+
RenderBlocks: zt
|
|
1716
1744
|
},
|
|
1717
1745
|
props: [
|
|
1718
1746
|
"content",
|
|
1719
1747
|
"data",
|
|
1720
1748
|
"canTrack",
|
|
1749
|
+
"locale",
|
|
1721
1750
|
"context",
|
|
1722
1751
|
"customComponents",
|
|
1723
1752
|
"model",
|
|
1724
|
-
"apiKey"
|
|
1753
|
+
"apiKey",
|
|
1754
|
+
"includeRefs"
|
|
1725
1755
|
],
|
|
1726
1756
|
data: () => ({
|
|
1727
1757
|
forceReRenderCount: 0,
|
|
@@ -1753,11 +1783,20 @@ const cn = (t) => _({ ...t, canTrack: !0 }), Kt = () => Promise.resolve().then((
|
|
|
1753
1783
|
},
|
|
1754
1784
|
mounted() {
|
|
1755
1785
|
var t, e;
|
|
1756
|
-
if (
|
|
1757
|
-
|
|
1786
|
+
if (this.apiKey || console.error(
|
|
1787
|
+
"[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
1788
|
+
), p()) {
|
|
1789
|
+
if (f() && (this.forceReRenderCount = this.forceReRenderCount + 1, q(), z({
|
|
1790
|
+
...this.locale ? {
|
|
1791
|
+
locale: this.locale
|
|
1792
|
+
} : {},
|
|
1793
|
+
...this.includeRefs ? {
|
|
1794
|
+
includeRefs: this.includeRefs
|
|
1795
|
+
} : {}
|
|
1796
|
+
}), Object.values(this.allRegisteredComponents).forEach(
|
|
1758
1797
|
(n) => {
|
|
1759
1798
|
var s;
|
|
1760
|
-
const o =
|
|
1799
|
+
const o = jt(n);
|
|
1761
1800
|
(s = window.parent) == null || s.postMessage(o, "*");
|
|
1762
1801
|
}
|
|
1763
1802
|
), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
@@ -1765,7 +1804,7 @@ const cn = (t) => _({ ...t, canTrack: !0 }), Kt = () => Promise.resolve().then((
|
|
|
1765
1804
|
this.emitStateUpdate
|
|
1766
1805
|
)), this.useContent) {
|
|
1767
1806
|
const n = (t = this.useContent) == null ? void 0 : t.testVariationId, o = (e = this.useContent) == null ? void 0 : e.id;
|
|
1768
|
-
|
|
1807
|
+
x({
|
|
1769
1808
|
type: "impression",
|
|
1770
1809
|
canTrack: this.canTrackToUse,
|
|
1771
1810
|
contentId: o,
|
|
@@ -1773,11 +1812,11 @@ const cn = (t) => _({ ...t, canTrack: !0 }), Kt = () => Promise.resolve().then((
|
|
|
1773
1812
|
variationId: n !== o ? n : void 0
|
|
1774
1813
|
});
|
|
1775
1814
|
}
|
|
1776
|
-
if (
|
|
1815
|
+
if (Ft()) {
|
|
1777
1816
|
const n = new URL(location.href).searchParams;
|
|
1778
1817
|
if (this.model && n.get("builder.preview") === this.model) {
|
|
1779
1818
|
const o = n.get("apiKey") || n.get("builder.space");
|
|
1780
|
-
o &&
|
|
1819
|
+
o && O({
|
|
1781
1820
|
model: this.model,
|
|
1782
1821
|
apiKey: o
|
|
1783
1822
|
}).then((s) => {
|
|
@@ -1800,7 +1839,7 @@ const cn = (t) => _({ ...t, canTrack: !0 }), Kt = () => Promise.resolve().then((
|
|
|
1800
1839
|
}
|
|
1801
1840
|
},
|
|
1802
1841
|
unmounted() {
|
|
1803
|
-
|
|
1842
|
+
p() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
1804
1843
|
"builder:component:stateChangeListenerActivated",
|
|
1805
1844
|
this.emitStateUpdate
|
|
1806
1845
|
));
|
|
@@ -1826,6 +1865,9 @@ const cn = (t) => _({ ...t, canTrack: !0 }), Kt = () => Promise.resolve().then((
|
|
|
1826
1865
|
return {
|
|
1827
1866
|
...(e = (t = this.content) == null ? void 0 : t.data) == null ? void 0 : e.state,
|
|
1828
1867
|
...this.data,
|
|
1868
|
+
...this.locale ? {
|
|
1869
|
+
locale: this.locale
|
|
1870
|
+
} : {},
|
|
1829
1871
|
...this.overrideState
|
|
1830
1872
|
};
|
|
1831
1873
|
},
|
|
@@ -1834,8 +1876,8 @@ const cn = (t) => _({ ...t, canTrack: !0 }), Kt = () => Promise.resolve().then((
|
|
|
1834
1876
|
},
|
|
1835
1877
|
allRegisteredComponents() {
|
|
1836
1878
|
return [
|
|
1837
|
-
|
|
1838
|
-
...
|
|
1879
|
+
...Et(),
|
|
1880
|
+
...B,
|
|
1839
1881
|
...this.customComponents || []
|
|
1840
1882
|
].reduce(
|
|
1841
1883
|
(n, o) => ({
|
|
@@ -1851,13 +1893,14 @@ const cn = (t) => _({ ...t, canTrack: !0 }), Kt = () => Promise.resolve().then((
|
|
|
1851
1893
|
shouldRenderContentStyles() {
|
|
1852
1894
|
var t, e, n, o, s;
|
|
1853
1895
|
return Boolean(
|
|
1854
|
-
(((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)) &&
|
|
1896
|
+
(((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)) && C !== "reactNative"
|
|
1855
1897
|
);
|
|
1856
1898
|
},
|
|
1857
1899
|
onUpdateHook0() {
|
|
1858
1900
|
var t, e;
|
|
1859
1901
|
return {
|
|
1860
|
-
0: (e = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : e.jsCode
|
|
1902
|
+
0: (e = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : e.jsCode,
|
|
1903
|
+
1: this.contentState
|
|
1861
1904
|
};
|
|
1862
1905
|
},
|
|
1863
1906
|
onUpdateHook1() {
|
|
@@ -1887,7 +1930,7 @@ const cn = (t) => _({ ...t, canTrack: !0 }), Kt = () => Promise.resolve().then((
|
|
|
1887
1930
|
evaluateJsCode() {
|
|
1888
1931
|
var e, n;
|
|
1889
1932
|
const t = (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.jsCode;
|
|
1890
|
-
t &&
|
|
1933
|
+
t && $({
|
|
1891
1934
|
code: t,
|
|
1892
1935
|
context: this.contextContext,
|
|
1893
1936
|
state: this.contentState
|
|
@@ -1897,7 +1940,7 @@ const cn = (t) => _({ ...t, canTrack: !0 }), Kt = () => Promise.resolve().then((
|
|
|
1897
1940
|
var e, n;
|
|
1898
1941
|
if (this.useContent) {
|
|
1899
1942
|
const o = (e = this.useContent) == null ? void 0 : e.testVariationId, s = (n = this.useContent) == null ? void 0 : n.id;
|
|
1900
|
-
|
|
1943
|
+
x({
|
|
1901
1944
|
type: "click",
|
|
1902
1945
|
canTrack: this.canTrackToUse,
|
|
1903
1946
|
contentId: s,
|
|
@@ -1909,7 +1952,7 @@ const cn = (t) => _({ ...t, canTrack: !0 }), Kt = () => Promise.resolve().then((
|
|
|
1909
1952
|
evalExpression(t) {
|
|
1910
1953
|
return t.replace(
|
|
1911
1954
|
/{{([^}]+)}}/g,
|
|
1912
|
-
(e, n) =>
|
|
1955
|
+
(e, n) => $({
|
|
1913
1956
|
code: n,
|
|
1914
1957
|
context: this.contextContext,
|
|
1915
1958
|
state: this.contentState
|
|
@@ -1917,7 +1960,7 @@ const cn = (t) => _({ ...t, canTrack: !0 }), Kt = () => Promise.resolve().then((
|
|
|
1917
1960
|
);
|
|
1918
1961
|
},
|
|
1919
1962
|
handleRequest({ url: t, key: e }) {
|
|
1920
|
-
|
|
1963
|
+
j().then((n) => n(t)).then((n) => n.json()).then((n) => {
|
|
1921
1964
|
const o = {
|
|
1922
1965
|
...this.overrideState,
|
|
1923
1966
|
[e]: n
|
|
@@ -1932,9 +1975,9 @@ const cn = (t) => _({ ...t, canTrack: !0 }), Kt = () => Promise.resolve().then((
|
|
|
1932
1975
|
const t = (o = (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.httpRequests) != null ? o : {};
|
|
1933
1976
|
Object.entries(t).forEach(([s, r]) => {
|
|
1934
1977
|
if (r && (!this.httpReqsData[s] || f())) {
|
|
1935
|
-
const
|
|
1978
|
+
const i = this.evalExpression(r);
|
|
1936
1979
|
this.handleRequest({
|
|
1937
|
-
url:
|
|
1980
|
+
url: i,
|
|
1938
1981
|
key: s
|
|
1939
1982
|
});
|
|
1940
1983
|
}
|
|
@@ -1954,38 +1997,38 @@ const cn = (t) => _({ ...t, canTrack: !0 }), Kt = () => Promise.resolve().then((
|
|
|
1954
1997
|
}
|
|
1955
1998
|
}
|
|
1956
1999
|
};
|
|
1957
|
-
var
|
|
1958
|
-
var o, s, r,
|
|
2000
|
+
var Gt = function() {
|
|
2001
|
+
var o, s, r, i, c, a, d;
|
|
1959
2002
|
var e = this, n = e._self._c;
|
|
1960
|
-
return e.useContent ? n("div", { ref: "elementRef", attrs: { "builder-content-id": (o = e.useContent) == null ? void 0 : o.id, "builder-model": e.model }, on: { click: function(
|
|
1961
|
-
return e.onClick(
|
|
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 = (
|
|
1963
|
-
},
|
|
1964
|
-
Dt,
|
|
2003
|
+
return e.useContent ? n("div", { ref: "elementRef", attrs: { "builder-content-id": (o = e.useContent) == null ? void 0 : o.id, "builder-model": e.model }, on: { click: function(u) {
|
|
2004
|
+
return e.onClick(u);
|
|
2005
|
+
} } }, [e.shouldRenderContentStyles ? [n("render-content-styles", { attrs: { cssCode: (r = (s = e.useContent) == null ? void 0 : s.data) == null ? void 0 : r.cssCode, customFonts: (c = (i = e.useContent) == null ? void 0 : i.data) == null ? void 0 : c.customFonts } })] : e._e(), n("render-blocks", { key: e.forceReRenderCount, attrs: { blocks: (d = (a = e.useContent) == null ? void 0 : a.data) == null ? void 0 : d.blocks } })], 2) : e._e();
|
|
2006
|
+
}, Xt = [], Yt = /* @__PURE__ */ m(
|
|
1965
2007
|
Jt,
|
|
1966
2008
|
Gt,
|
|
2009
|
+
Xt,
|
|
1967
2010
|
!1,
|
|
1968
2011
|
null,
|
|
1969
2012
|
null,
|
|
1970
2013
|
null,
|
|
1971
2014
|
null
|
|
1972
2015
|
);
|
|
1973
|
-
const
|
|
2016
|
+
const Qt = Yt.exports, Zt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1974
2017
|
__proto__: null,
|
|
1975
|
-
default:
|
|
1976
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2018
|
+
default: Qt
|
|
2019
|
+
}, Symbol.toStringTag, { value: "Module" })), en = () => import("./block-styles.446ece03.js").then((t) => t.default).catch((t) => {
|
|
1977
2020
|
throw console.error(
|
|
1978
2021
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
1979
2022
|
t
|
|
1980
2023
|
), t;
|
|
1981
|
-
}),
|
|
2024
|
+
}), tn = () => import("./render-block.678a49f8.js").then((t) => t.default).catch((t) => {
|
|
1982
2025
|
throw console.error(
|
|
1983
2026
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
1984
2027
|
t
|
|
1985
2028
|
), t;
|
|
1986
|
-
}),
|
|
2029
|
+
}), nn = {
|
|
1987
2030
|
name: "render-blocks",
|
|
1988
|
-
components: { RenderBlock:
|
|
2031
|
+
components: { RenderBlock: tn, BlockStyles: en },
|
|
1989
2032
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
1990
2033
|
inject: {
|
|
1991
2034
|
builderContext: "BuilderContext"
|
|
@@ -2034,9 +2077,9 @@ const Yt = Xt.exports, Qt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
|
|
|
2034
2077
|
}
|
|
2035
2078
|
}
|
|
2036
2079
|
};
|
|
2037
|
-
var
|
|
2080
|
+
var on = function() {
|
|
2038
2081
|
var e = this, n = e._self._c;
|
|
2039
|
-
return n("div", { class: e._classStringToObject(e.className + " div-
|
|
2082
|
+
return n("div", { class: e._classStringToObject(e.className + " div-23e8fqt91nf"), style: e.styleProp, attrs: { "builder-path": e.path, "builder-parent-id": e.parent, dataSet: {
|
|
2040
2083
|
class: e.className
|
|
2041
2084
|
} }, on: { click: function(o) {
|
|
2042
2085
|
return e.onClick();
|
|
@@ -2047,58 +2090,58 @@ var nn = function() {
|
|
|
2047
2090
|
}) : e._e(), e.blocks ? e._l(e.blocks, function(o, s) {
|
|
2048
2091
|
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: e.builderContext } });
|
|
2049
2092
|
}) : e._e()], 2);
|
|
2050
|
-
},
|
|
2051
|
-
tn,
|
|
2093
|
+
}, sn = [], rn = /* @__PURE__ */ m(
|
|
2052
2094
|
nn,
|
|
2053
2095
|
on,
|
|
2096
|
+
sn,
|
|
2054
2097
|
!1,
|
|
2055
2098
|
null,
|
|
2056
|
-
"
|
|
2099
|
+
"713efc9e",
|
|
2057
2100
|
null,
|
|
2058
2101
|
null
|
|
2059
2102
|
);
|
|
2060
|
-
const
|
|
2103
|
+
const an = rn.exports, H = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2061
2104
|
__proto__: null,
|
|
2062
|
-
default:
|
|
2063
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2064
|
-
function
|
|
2065
|
-
if (
|
|
2066
|
-
Object.assign(
|
|
2105
|
+
default: an
|
|
2106
|
+
}, Symbol.toStringTag, { value: "Module" })), E = {};
|
|
2107
|
+
function dn(t) {
|
|
2108
|
+
if (p()) {
|
|
2109
|
+
Object.assign(E, t);
|
|
2067
2110
|
const e = {
|
|
2068
2111
|
type: "builder.settingsChange",
|
|
2069
|
-
data:
|
|
2112
|
+
data: E
|
|
2070
2113
|
};
|
|
2071
2114
|
parent.postMessage(e, "*");
|
|
2072
2115
|
}
|
|
2073
2116
|
}
|
|
2074
2117
|
export {
|
|
2075
|
-
|
|
2118
|
+
Ke as B,
|
|
2076
2119
|
Q as C,
|
|
2077
|
-
|
|
2120
|
+
et as F,
|
|
2078
2121
|
re as I,
|
|
2079
2122
|
We as S,
|
|
2080
|
-
|
|
2123
|
+
C as T,
|
|
2081
2124
|
fe as V,
|
|
2082
2125
|
de as a,
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2126
|
+
Ge as b,
|
|
2127
|
+
an as c,
|
|
2128
|
+
Ft as d,
|
|
2129
|
+
$ as e,
|
|
2130
|
+
V as f,
|
|
2131
|
+
B as g,
|
|
2132
|
+
cn as h,
|
|
2090
2133
|
f as i,
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2134
|
+
jt as j,
|
|
2135
|
+
K as k,
|
|
2136
|
+
O as l,
|
|
2137
|
+
je as m,
|
|
2138
|
+
m as n,
|
|
2139
|
+
Ue as o,
|
|
2140
|
+
be as p,
|
|
2141
|
+
ve as q,
|
|
2142
|
+
Qt as r,
|
|
2143
|
+
dn as s,
|
|
2144
|
+
ln as t,
|
|
2145
|
+
ye as u,
|
|
2146
|
+
F as v
|
|
2104
2147
|
};
|