@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,12 +1,12 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
const
|
|
3
|
-
function
|
|
1
|
+
import { defineAsyncComponent as x, resolveComponent as C, openBlock as l, createElementBlock as d, normalizeStyle as k, Fragment as w, renderList as j, createVNode as K, createElementVNode as E, createCommentVNode as v, normalizeClass as P, renderSlot as S, mergeProps as _, toDisplayString as O, createBlock as I } from "vue";
|
|
2
|
+
const V = "vue3";
|
|
3
|
+
function f() {
|
|
4
4
|
return typeof window < "u" && typeof document < "u";
|
|
5
5
|
}
|
|
6
|
-
const
|
|
6
|
+
const $ = {};
|
|
7
7
|
function ie(e, n) {
|
|
8
|
-
let t =
|
|
9
|
-
if (t || (t =
|
|
8
|
+
let t = $[e];
|
|
9
|
+
if (t || (t = $[e] = []), t.push(n), f()) {
|
|
10
10
|
const o = {
|
|
11
11
|
type: "builder.register",
|
|
12
12
|
data: {
|
|
@@ -38,50 +38,58 @@ const ae = () => {
|
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
40
|
let W = !1;
|
|
41
|
-
const ce = () => {
|
|
42
|
-
var
|
|
43
|
-
W || (W = !0,
|
|
41
|
+
const ce = (e = {}) => {
|
|
42
|
+
var n, t;
|
|
43
|
+
W || (W = !0, f() && ((n = window.parent) == null || n.postMessage(
|
|
44
44
|
{
|
|
45
45
|
type: "builder.sdkInfo",
|
|
46
46
|
data: {
|
|
47
|
-
target:
|
|
47
|
+
target: V,
|
|
48
48
|
supportsPatchUpdates: !1,
|
|
49
49
|
supportsAddBlockScoping: !0,
|
|
50
50
|
supportsCustomBreakpoints: !0
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
"*"
|
|
54
|
-
),
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
54
|
+
), (t = window.parent) == null || t.postMessage(
|
|
55
|
+
{
|
|
56
|
+
type: "builder.updateContent",
|
|
57
|
+
data: {
|
|
58
|
+
options: e
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"*"
|
|
62
|
+
), window.addEventListener("message", ({ data: o }) => {
|
|
63
|
+
var s, r;
|
|
64
|
+
if (!!(o != null && o.type))
|
|
65
|
+
switch (o.type) {
|
|
58
66
|
case "builder.evaluate": {
|
|
59
|
-
const
|
|
60
|
-
let
|
|
67
|
+
const i = o.data.text, c = o.data.arguments || [], a = o.data.id, u = new Function(i);
|
|
68
|
+
let m, p = null;
|
|
61
69
|
try {
|
|
62
|
-
|
|
63
|
-
} catch (
|
|
64
|
-
|
|
70
|
+
m = u.apply(null, c);
|
|
71
|
+
} catch (h) {
|
|
72
|
+
p = h;
|
|
65
73
|
}
|
|
66
|
-
|
|
74
|
+
p ? (s = window.parent) == null || s.postMessage(
|
|
67
75
|
{
|
|
68
76
|
type: "builder.evaluateError",
|
|
69
|
-
data: { id:
|
|
77
|
+
data: { id: a, error: p.message }
|
|
70
78
|
},
|
|
71
79
|
"*"
|
|
72
|
-
) :
|
|
73
|
-
var
|
|
74
|
-
(
|
|
80
|
+
) : m && typeof m.then == "function" ? m.then((h) => {
|
|
81
|
+
var y;
|
|
82
|
+
(y = window.parent) == null || y.postMessage(
|
|
75
83
|
{
|
|
76
84
|
type: "builder.evaluateResult",
|
|
77
|
-
data: { id:
|
|
85
|
+
data: { id: a, result: h }
|
|
78
86
|
},
|
|
79
87
|
"*"
|
|
80
88
|
);
|
|
81
|
-
}).catch(console.error) : (
|
|
89
|
+
}).catch(console.error) : (r = window.parent) == null || r.postMessage(
|
|
82
90
|
{
|
|
83
91
|
type: "builder.evaluateResult",
|
|
84
|
-
data: { result:
|
|
92
|
+
data: { result: m, id: a }
|
|
85
93
|
},
|
|
86
94
|
"*"
|
|
87
95
|
);
|
|
@@ -96,7 +104,7 @@ const ce = () => {
|
|
|
96
104
|
), e;
|
|
97
105
|
}), de = {
|
|
98
106
|
name: "builder-columns",
|
|
99
|
-
components: { RenderBlocks:
|
|
107
|
+
components: { RenderBlocks: x(le) },
|
|
100
108
|
props: [
|
|
101
109
|
"space",
|
|
102
110
|
"columns",
|
|
@@ -143,22 +151,22 @@ const ce = () => {
|
|
|
143
151
|
}
|
|
144
152
|
}
|
|
145
153
|
};
|
|
146
|
-
const
|
|
154
|
+
const g = (e, n) => {
|
|
147
155
|
const t = e.__vccOpts || e;
|
|
148
156
|
for (const [o, s] of n)
|
|
149
157
|
t[o] = s;
|
|
150
158
|
return t;
|
|
151
159
|
};
|
|
152
160
|
function ue(e, n, t, o, s, r) {
|
|
153
|
-
const i =
|
|
161
|
+
const i = C("render-blocks");
|
|
154
162
|
return l(), d("div", {
|
|
155
|
-
class: "builder-columns div-
|
|
156
|
-
style:
|
|
163
|
+
class: "builder-columns div-4uae37x75le",
|
|
164
|
+
style: k(r.columnsCssVars)
|
|
157
165
|
}, [
|
|
158
|
-
(l(!0), d(
|
|
166
|
+
(l(!0), d(w, null, j(t.columns, (c, a) => (l(), d("div", {
|
|
159
167
|
key: a,
|
|
160
|
-
class: "builder-column div-
|
|
161
|
-
style:
|
|
168
|
+
class: "builder-column div-4uae37x75le-2",
|
|
169
|
+
style: k({
|
|
162
170
|
width: r.getColumnCssWidth(a),
|
|
163
171
|
marginLeft: `${a === 0 ? 0 : r.getGutterSize()}px`,
|
|
164
172
|
...r.columnCssVars
|
|
@@ -175,7 +183,7 @@ function ue(e, n, t, o, s, r) {
|
|
|
175
183
|
], 4))), 128))
|
|
176
184
|
], 4);
|
|
177
185
|
}
|
|
178
|
-
const me = /* @__PURE__ */
|
|
186
|
+
const me = /* @__PURE__ */ g(de, [["render", ue], ["__scopeId", "data-v-11562ef4"]]);
|
|
179
187
|
function L(e) {
|
|
180
188
|
return e.replace(/http(s)?:/, "");
|
|
181
189
|
}
|
|
@@ -197,7 +205,7 @@ function he(e, n) {
|
|
|
197
205
|
}
|
|
198
206
|
return null;
|
|
199
207
|
}
|
|
200
|
-
function
|
|
208
|
+
function F(e) {
|
|
201
209
|
if (!e)
|
|
202
210
|
return e;
|
|
203
211
|
const n = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -215,11 +223,12 @@ const fe = {
|
|
|
215
223
|
"src",
|
|
216
224
|
"srcset",
|
|
217
225
|
"noWebp",
|
|
226
|
+
"aspectRatio",
|
|
218
227
|
"altText",
|
|
228
|
+
"backgroundPosition",
|
|
219
229
|
"backgroundSize",
|
|
220
230
|
"className",
|
|
221
231
|
"sizes",
|
|
222
|
-
"aspectRatio",
|
|
223
232
|
"builderBlock",
|
|
224
233
|
"fitContent"
|
|
225
234
|
],
|
|
@@ -231,14 +240,24 @@ const fe = {
|
|
|
231
240
|
return this.srcset;
|
|
232
241
|
if (this.srcset && ((t = this.image) == null ? void 0 : t.includes("builder.io/api/v1/image"))) {
|
|
233
242
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
234
|
-
return console.debug("Removed given srcset"),
|
|
243
|
+
return console.debug("Removed given srcset"), F(n);
|
|
235
244
|
} else if (this.image && !this.srcset)
|
|
236
|
-
return
|
|
237
|
-
return
|
|
245
|
+
return F(n);
|
|
246
|
+
return F(n);
|
|
238
247
|
},
|
|
239
248
|
webpSrcSet() {
|
|
240
249
|
var e;
|
|
241
250
|
return ((e = this.srcSetToUse) == null ? void 0 : e.match(/builder\.io/)) && !this.noWebp ? this.srcSetToUse.replace(/\?/g, "?format=webp&") : "";
|
|
251
|
+
},
|
|
252
|
+
aspectRatioCss() {
|
|
253
|
+
const e = {
|
|
254
|
+
position: "absolute",
|
|
255
|
+
height: "100%",
|
|
256
|
+
width: "100%",
|
|
257
|
+
left: "0px",
|
|
258
|
+
top: "0px"
|
|
259
|
+
};
|
|
260
|
+
return this.aspectRatio ? e : void 0;
|
|
242
261
|
}
|
|
243
262
|
},
|
|
244
263
|
methods: {
|
|
@@ -255,50 +274,51 @@ const fe = {
|
|
|
255
274
|
};
|
|
256
275
|
const ge = ["srcset"], be = ["alt", "role", "src", "srcset", "sizes"], ye = ["srcset"], ve = {
|
|
257
276
|
key: 2,
|
|
258
|
-
class: "div-
|
|
277
|
+
class: "div-bmtecjgqz8g-2"
|
|
259
278
|
};
|
|
260
279
|
function xe(e, n, t, o, s, r) {
|
|
261
280
|
var i, c, a, u;
|
|
262
|
-
return l(), d(
|
|
263
|
-
|
|
281
|
+
return l(), d(w, null, [
|
|
282
|
+
E("picture", null, [
|
|
264
283
|
r.webpSrcSet ? (l(), d("source", {
|
|
265
284
|
key: 0,
|
|
266
285
|
type: "image/webp",
|
|
267
286
|
srcset: r.webpSrcSet
|
|
268
|
-
}, null, 8, ge)) :
|
|
269
|
-
|
|
287
|
+
}, null, 8, ge)) : v("", !0),
|
|
288
|
+
E("img", {
|
|
270
289
|
loading: "lazy",
|
|
271
290
|
alt: t.altText,
|
|
272
291
|
role: t.altText ? "presentation" : void 0,
|
|
273
|
-
style:
|
|
274
|
-
objectPosition: t.
|
|
275
|
-
objectFit: t.backgroundSize || "cover"
|
|
292
|
+
style: k({
|
|
293
|
+
objectPosition: t.backgroundPosition || "center",
|
|
294
|
+
objectFit: t.backgroundSize || "cover",
|
|
295
|
+
...r.aspectRatioCss
|
|
276
296
|
}),
|
|
277
|
-
class:
|
|
297
|
+
class: P(
|
|
278
298
|
r._classStringToObject(
|
|
279
|
-
"builder-image" + (t.className ? " " + t.className : "") + " img-
|
|
299
|
+
"builder-image" + (t.className ? " " + t.className : "") + " img-bmtecjgqz8g"
|
|
280
300
|
)
|
|
281
301
|
),
|
|
282
302
|
src: t.image,
|
|
283
303
|
srcset: r.srcSetToUse,
|
|
284
304
|
sizes: t.sizes
|
|
285
305
|
}, null, 14, be),
|
|
286
|
-
|
|
306
|
+
E("source", { srcset: r.srcSetToUse }, null, 8, ye)
|
|
287
307
|
]),
|
|
288
308
|
t.aspectRatio && !(((c = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : c.length) && t.fitContent) ? (l(), d("div", {
|
|
289
309
|
key: 0,
|
|
290
|
-
class: "builder-image-sizer div-
|
|
291
|
-
style:
|
|
310
|
+
class: "builder-image-sizer div-bmtecjgqz8g",
|
|
311
|
+
style: k({
|
|
292
312
|
paddingTop: t.aspectRatio * 100 + "%"
|
|
293
313
|
})
|
|
294
|
-
}, null, 4)) :
|
|
295
|
-
((u = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : u.length) && t.fitContent ?
|
|
314
|
+
}, null, 4)) : v("", !0),
|
|
315
|
+
((u = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : u.length) && t.fitContent ? S(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
|
|
296
316
|
!t.fitContent && e.children ? (l(), d("div", ve, [
|
|
297
|
-
|
|
298
|
-
])) :
|
|
317
|
+
S(e.$slots, "default", {}, void 0, !0)
|
|
318
|
+
])) : v("", !0)
|
|
299
319
|
], 64);
|
|
300
320
|
}
|
|
301
|
-
const
|
|
321
|
+
const Ce = /* @__PURE__ */ g(fe, [["render", xe], ["__scopeId", "data-v-d9473cba"]]), _e = {
|
|
302
322
|
name: "builder-text",
|
|
303
323
|
props: ["text"]
|
|
304
324
|
}, ke = ["innerHTML"];
|
|
@@ -308,7 +328,7 @@ function we(e, n, t, o, s, r) {
|
|
|
308
328
|
innerHTML: t.text
|
|
309
329
|
}, null, 8, ke);
|
|
310
330
|
}
|
|
311
|
-
const Se = /* @__PURE__ */
|
|
331
|
+
const Se = /* @__PURE__ */ g(_e, [["render", we]]), Ie = {
|
|
312
332
|
name: "builder-video",
|
|
313
333
|
props: [
|
|
314
334
|
"autoPlay",
|
|
@@ -365,50 +385,50 @@ function Re(e, n, t, o, s, r) {
|
|
|
365
385
|
poster: t.posterImage
|
|
366
386
|
}, r.spreadProps), null, 16, Te);
|
|
367
387
|
}
|
|
368
|
-
const Ee = /* @__PURE__ */
|
|
369
|
-
function
|
|
388
|
+
const Ee = /* @__PURE__ */ g(Ie, [["render", Re]]);
|
|
389
|
+
function A(e, n = null, t = ".") {
|
|
370
390
|
return Object.keys(e).reduce((o, s) => {
|
|
371
391
|
const r = e[s], i = [n, s].filter(Boolean).join(t);
|
|
372
392
|
return [
|
|
373
393
|
typeof r == "object",
|
|
374
394
|
r !== null,
|
|
375
395
|
!(Array.isArray(r) && r.length === 0)
|
|
376
|
-
].every(Boolean) ? { ...o, ...
|
|
396
|
+
].every(Boolean) ? { ...o, ...A(r, i, t) } : { ...o, [i]: r };
|
|
377
397
|
}, {});
|
|
378
398
|
}
|
|
379
|
-
const N = "builder.", Fe = (e) => {
|
|
399
|
+
const N = "builder.", Fe = "options.", je = (e) => {
|
|
380
400
|
const n = {};
|
|
381
401
|
return e.forEach((t, o) => {
|
|
382
402
|
n[o] = t;
|
|
383
403
|
}), n;
|
|
384
|
-
},
|
|
404
|
+
}, Ae = (e) => {
|
|
385
405
|
if (!e)
|
|
386
406
|
return {};
|
|
387
|
-
const n =
|
|
407
|
+
const n = q(e), t = {};
|
|
388
408
|
return Object.keys(n).forEach((o) => {
|
|
389
409
|
if (o.startsWith(N)) {
|
|
390
|
-
const s = o.replace(N, "");
|
|
410
|
+
const s = o.replace(N, "").replace(Fe, "");
|
|
391
411
|
t[s] = n[o];
|
|
392
412
|
}
|
|
393
413
|
}), t;
|
|
394
414
|
}, Ue = () => {
|
|
395
|
-
if (!
|
|
415
|
+
if (!f())
|
|
396
416
|
return {};
|
|
397
417
|
const e = new URLSearchParams(window.location.search);
|
|
398
|
-
return
|
|
399
|
-
},
|
|
400
|
-
function
|
|
418
|
+
return Ae(e);
|
|
419
|
+
}, q = (e) => e instanceof URLSearchParams ? je(e) : e;
|
|
420
|
+
function Pe() {
|
|
401
421
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
|
|
402
422
|
}
|
|
403
|
-
async function
|
|
404
|
-
const e =
|
|
423
|
+
async function D() {
|
|
424
|
+
const e = Pe().fetch;
|
|
405
425
|
if (typeof e > "u" && typeof global < "u") {
|
|
406
426
|
const n = import("node-fetch").then((t) => t.default);
|
|
407
427
|
return n.default || n;
|
|
408
428
|
}
|
|
409
429
|
return e.default || e;
|
|
410
430
|
}
|
|
411
|
-
const
|
|
431
|
+
const Ve = (e) => {
|
|
412
432
|
const n = e.split(".");
|
|
413
433
|
return n.length > 2 ? n.slice(1).join(".") : e;
|
|
414
434
|
}, J = async ({
|
|
@@ -421,7 +441,7 @@ const Ae = (e) => {
|
|
|
421
441
|
} catch (o) {
|
|
422
442
|
console.debug("[COOKIE] GET error: ", o);
|
|
423
443
|
}
|
|
424
|
-
},
|
|
444
|
+
}, Be = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).join("; "), Oe = [
|
|
425
445
|
["secure", ""],
|
|
426
446
|
["SameSite", "None"]
|
|
427
447
|
], $e = ({
|
|
@@ -429,14 +449,14 @@ const Ae = (e) => {
|
|
|
429
449
|
value: n,
|
|
430
450
|
expires: t
|
|
431
451
|
}) => {
|
|
432
|
-
const s = (
|
|
452
|
+
const s = (f() ? location.protocol === "https:" : !0) ? Oe : [[]], r = t ? [["expires", t.toUTCString()]] : [[]], i = [
|
|
433
453
|
[e, n],
|
|
434
454
|
...r,
|
|
435
455
|
["path", "/"],
|
|
436
|
-
["domain",
|
|
456
|
+
["domain", Ve(window.location.hostname)],
|
|
437
457
|
...s
|
|
438
458
|
];
|
|
439
|
-
return
|
|
459
|
+
return Be(i);
|
|
440
460
|
}, G = async ({
|
|
441
461
|
name: e,
|
|
442
462
|
value: n,
|
|
@@ -451,14 +471,14 @@ const Ae = (e) => {
|
|
|
451
471
|
} catch (s) {
|
|
452
472
|
console.warn("[COOKIE] SET error: ", s);
|
|
453
473
|
}
|
|
454
|
-
},
|
|
474
|
+
}, We = "builderio.variations", X = (e) => `${We}.${e}`, Le = ({
|
|
455
475
|
contentId: e,
|
|
456
476
|
canTrack: n
|
|
457
|
-
}) => J({ name:
|
|
477
|
+
}) => J({ name: X(e), canTrack: n }), Ne = ({
|
|
458
478
|
contentId: e,
|
|
459
479
|
canTrack: n,
|
|
460
480
|
value: t
|
|
461
|
-
}) => G({ name:
|
|
481
|
+
}) => G({ name: X(e), value: t, canTrack: n }), T = (e) => e != null, Me = (e) => T(e.id) && T(e.variations) && Object.keys(e.variations).length > 0, He = ({
|
|
462
482
|
id: e,
|
|
463
483
|
variations: n
|
|
464
484
|
}) => {
|
|
@@ -482,22 +502,22 @@ const Ae = (e) => {
|
|
|
482
502
|
testVariationId: t.id,
|
|
483
503
|
testVariationName: t.name || (t.id === e.id ? "Default" : "")
|
|
484
504
|
};
|
|
485
|
-
},
|
|
505
|
+
}, ze = async ({
|
|
486
506
|
item: e,
|
|
487
507
|
canTrack: n
|
|
488
508
|
}) => {
|
|
489
|
-
const t = await
|
|
509
|
+
const t = await Le({
|
|
490
510
|
canTrack: n,
|
|
491
511
|
contentId: e.id
|
|
492
512
|
}), o = t ? M({ item: e, testGroupId: t }) : void 0;
|
|
493
513
|
if (o)
|
|
494
514
|
return o;
|
|
495
515
|
{
|
|
496
|
-
const s =
|
|
516
|
+
const s = He({
|
|
497
517
|
variations: e.variations,
|
|
498
518
|
id: e.id
|
|
499
519
|
});
|
|
500
|
-
return
|
|
520
|
+
return Ne({
|
|
501
521
|
contentId: e.id,
|
|
502
522
|
value: s,
|
|
503
523
|
canTrack: n
|
|
@@ -505,19 +525,19 @@ const Ae = (e) => {
|
|
|
505
525
|
console.error("could not store A/B test variation: ", r);
|
|
506
526
|
}), M({ item: e, testGroupId: s });
|
|
507
527
|
}
|
|
508
|
-
},
|
|
528
|
+
}, Ke = async ({
|
|
509
529
|
item: e,
|
|
510
530
|
canTrack: n
|
|
511
531
|
}) => {
|
|
512
|
-
if (!
|
|
532
|
+
if (!Me(e))
|
|
513
533
|
return;
|
|
514
|
-
const t = await
|
|
534
|
+
const t = await ze({ item: e, canTrack: n });
|
|
515
535
|
Object.assign(e, t);
|
|
516
536
|
};
|
|
517
|
-
async function
|
|
537
|
+
async function Y(e) {
|
|
518
538
|
return (await De({ ...e, limit: 1 })).results[0] || null;
|
|
519
539
|
}
|
|
520
|
-
const
|
|
540
|
+
const qe = (e) => {
|
|
521
541
|
const {
|
|
522
542
|
limit: n = 30,
|
|
523
543
|
userAttributes: t,
|
|
@@ -525,42 +545,43 @@ const Ke = (e) => {
|
|
|
525
545
|
noTraverse: s = !1,
|
|
526
546
|
model: r,
|
|
527
547
|
apiKey: i,
|
|
528
|
-
includeRefs: c = !0
|
|
548
|
+
includeRefs: c = !0,
|
|
549
|
+
locale: a
|
|
529
550
|
} = e;
|
|
530
551
|
if (!i)
|
|
531
552
|
throw new Error("Missing API key");
|
|
532
|
-
const
|
|
533
|
-
`https://cdn.builder.io/api/v2/content/${r}?apiKey=${i}&limit=${n}&noTraverse=${s}&includeRefs=${c}`
|
|
534
|
-
),
|
|
553
|
+
const u = new URL(
|
|
554
|
+
`https://cdn.builder.io/api/v2/content/${r}?apiKey=${i}&limit=${n}&noTraverse=${s}&includeRefs=${c}${a ? `&locale=${a}` : ""}`
|
|
555
|
+
), m = {
|
|
535
556
|
...Ue(),
|
|
536
|
-
...
|
|
537
|
-
},
|
|
538
|
-
for (const
|
|
539
|
-
|
|
540
|
-
if (t &&
|
|
541
|
-
const
|
|
542
|
-
for (const
|
|
543
|
-
|
|
557
|
+
...q(e.options || {})
|
|
558
|
+
}, p = A(m);
|
|
559
|
+
for (const h in p)
|
|
560
|
+
u.searchParams.set(h, String(p[h]));
|
|
561
|
+
if (t && u.searchParams.set("userAttributes", JSON.stringify(t)), o) {
|
|
562
|
+
const h = A({ query: o });
|
|
563
|
+
for (const y in h)
|
|
564
|
+
u.searchParams.set(y, JSON.stringify(h[y]));
|
|
544
565
|
}
|
|
545
|
-
return
|
|
566
|
+
return u;
|
|
546
567
|
};
|
|
547
568
|
async function De(e) {
|
|
548
|
-
const n =
|
|
569
|
+
const n = qe(e), o = await (await D())(n.href).then(
|
|
549
570
|
(r) => r.json()
|
|
550
571
|
), s = e.canTrack !== !1;
|
|
551
|
-
if (s)
|
|
572
|
+
if (s && Array.isArray(o.results))
|
|
552
573
|
for (const r of o.results)
|
|
553
|
-
await
|
|
574
|
+
await Ke({ item: r, canTrack: s });
|
|
554
575
|
return o;
|
|
555
576
|
}
|
|
556
|
-
const
|
|
577
|
+
const Je = () => Promise.resolve().then(() => on).then((e) => e.default).catch((e) => {
|
|
557
578
|
throw console.error(
|
|
558
579
|
"Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
|
|
559
580
|
e
|
|
560
581
|
), e;
|
|
561
|
-
}),
|
|
582
|
+
}), Ge = {
|
|
562
583
|
name: "builder-symbol",
|
|
563
|
-
components: { RenderContent:
|
|
584
|
+
components: { RenderContent: x(Je) },
|
|
564
585
|
props: ["symbol", "attributes"],
|
|
565
586
|
data: () => ({ className: "builder-symbol", fetchedContent: null }),
|
|
566
587
|
inject: {
|
|
@@ -569,7 +590,7 @@ const qe = () => Promise.resolve().then(() => nn).then((e) => e.default).catch((
|
|
|
569
590
|
watch: {
|
|
570
591
|
onUpdateHook0() {
|
|
571
592
|
const e = this.symbol;
|
|
572
|
-
e && !e.content && !this.fetchedContent && e.model &&
|
|
593
|
+
e && !e.content && !this.fetchedContent && e.model && Y({
|
|
573
594
|
model: e.model,
|
|
574
595
|
apiKey: this.builderContext.apiKey,
|
|
575
596
|
query: {
|
|
@@ -603,10 +624,10 @@ const qe = () => Promise.resolve().then(() => nn).then((e) => e.default).catch((
|
|
|
603
624
|
return n;
|
|
604
625
|
}
|
|
605
626
|
}
|
|
606
|
-
},
|
|
627
|
+
}, Xe = ["dataSet"];
|
|
607
628
|
function Ye(e, n, t, o, s, r) {
|
|
608
629
|
var c, a, u, m, p;
|
|
609
|
-
const i =
|
|
630
|
+
const i = C("render-content");
|
|
610
631
|
return l(), d("div", _({
|
|
611
632
|
dataSet: {
|
|
612
633
|
class: e.className
|
|
@@ -625,47 +646,47 @@ function Ye(e, n, t, o, s, r) {
|
|
|
625
646
|
model: (p = t.symbol) == null ? void 0 : p.model,
|
|
626
647
|
content: r.contentToUse
|
|
627
648
|
}, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
|
|
628
|
-
], 16,
|
|
649
|
+
], 16, Xe);
|
|
629
650
|
}
|
|
630
|
-
const
|
|
651
|
+
const Qe = /* @__PURE__ */ g(Ge, [["render", Ye]]), Ze = {
|
|
631
652
|
name: "builder-button",
|
|
632
653
|
props: ["attributes", "text", "link", "openLinkInNewTab"]
|
|
633
654
|
};
|
|
634
|
-
const
|
|
635
|
-
function
|
|
655
|
+
const et = ["href", "target"];
|
|
656
|
+
function tt(e, n, t, o, s, r) {
|
|
636
657
|
return t.link ? (l(), d("a", _({
|
|
637
658
|
key: 0,
|
|
638
659
|
role: "button",
|
|
639
660
|
href: t.link,
|
|
640
661
|
target: t.openLinkInNewTab ? "_blank" : void 0
|
|
641
|
-
}, t.attributes),
|
|
662
|
+
}, t.attributes), O(t.text), 17, et)) : (l(), d("button", _({
|
|
642
663
|
key: 1,
|
|
643
|
-
class: "button-
|
|
644
|
-
}, t.attributes),
|
|
664
|
+
class: "button-2btisl9m7v3"
|
|
665
|
+
}, t.attributes), O(t.text), 17));
|
|
645
666
|
}
|
|
646
|
-
const
|
|
667
|
+
const nt = /* @__PURE__ */ g(Ze, [["render", tt], ["__scopeId", "data-v-db085cd5"]]), ot = {
|
|
647
668
|
name: "builder-section-component",
|
|
648
669
|
props: ["attributes", "maxWidth"]
|
|
649
670
|
};
|
|
650
|
-
function
|
|
671
|
+
function st(e, n, t, o, s, r) {
|
|
651
672
|
return l(), d("section", _({
|
|
652
673
|
style: t.maxWidth && typeof t.maxWidth == "number" ? {
|
|
653
674
|
maxWidth: t.maxWidth
|
|
654
675
|
} : void 0
|
|
655
676
|
}, t.attributes), [
|
|
656
|
-
|
|
677
|
+
S(e.$slots, "default")
|
|
657
678
|
], 16);
|
|
658
679
|
}
|
|
659
|
-
const
|
|
680
|
+
const rt = /* @__PURE__ */ g(ot, [["render", st]]), it = {
|
|
660
681
|
name: "builder-fragment-component",
|
|
661
682
|
props: []
|
|
662
683
|
};
|
|
663
|
-
function
|
|
684
|
+
function at(e, n, t, o, s, r) {
|
|
664
685
|
return l(), d("span", null, [
|
|
665
|
-
|
|
686
|
+
S(e.$slots, "default")
|
|
666
687
|
]);
|
|
667
688
|
}
|
|
668
|
-
const
|
|
689
|
+
const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
669
690
|
name: "Core:Button",
|
|
670
691
|
builtIn: !0,
|
|
671
692
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -702,10 +723,10 @@ const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
|
702
723
|
],
|
|
703
724
|
static: !0,
|
|
704
725
|
noWrap: !0
|
|
705
|
-
},
|
|
726
|
+
}, R = (e) => {
|
|
706
727
|
const n = e.toString().trim();
|
|
707
728
|
return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
|
|
708
|
-
},
|
|
729
|
+
}, dt = {
|
|
709
730
|
name: "Columns",
|
|
710
731
|
builtIn: !0,
|
|
711
732
|
inputs: [
|
|
@@ -893,7 +914,7 @@ const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
|
893
914
|
]
|
|
894
915
|
}
|
|
895
916
|
],
|
|
896
|
-
onChange:
|
|
917
|
+
onChange: R((e) => {
|
|
897
918
|
function n() {
|
|
898
919
|
t.forEach((o) => {
|
|
899
920
|
o.delete("width");
|
|
@@ -930,14 +951,14 @@ const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
|
930
951
|
advanced: !0
|
|
931
952
|
}
|
|
932
953
|
]
|
|
933
|
-
},
|
|
954
|
+
}, ut = {
|
|
934
955
|
name: "Fragment",
|
|
935
956
|
static: !0,
|
|
936
957
|
hidden: !0,
|
|
937
958
|
builtIn: !0,
|
|
938
959
|
canHaveChildren: !0,
|
|
939
960
|
noWrap: !0
|
|
940
|
-
},
|
|
961
|
+
}, mt = {
|
|
941
962
|
name: "Image",
|
|
942
963
|
static: !0,
|
|
943
964
|
builtIn: !0,
|
|
@@ -957,7 +978,7 @@ const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
|
957
978
|
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
958
979
|
required: !0,
|
|
959
980
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
960
|
-
onChange:
|
|
981
|
+
onChange: R((e) => {
|
|
961
982
|
e.delete("srcset"), e.delete("noWebp");
|
|
962
983
|
function t(i, c = 6e4) {
|
|
963
984
|
return new Promise((a, u) => {
|
|
@@ -965,8 +986,8 @@ const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
|
965
986
|
let p = !1;
|
|
966
987
|
m.onload = () => {
|
|
967
988
|
p = !0, a(m);
|
|
968
|
-
}, m.addEventListener("error", (
|
|
969
|
-
console.warn("Image load failed",
|
|
989
|
+
}, m.addEventListener("error", (h) => {
|
|
990
|
+
console.warn("Image load failed", h.error), u(h.error);
|
|
970
991
|
}), m.src = i, setTimeout(() => {
|
|
971
992
|
p || u(new Error("Image load timed out"));
|
|
972
993
|
}, c);
|
|
@@ -1063,7 +1084,7 @@ const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
|
1063
1084
|
defaultValue: 0.7041
|
|
1064
1085
|
}
|
|
1065
1086
|
]
|
|
1066
|
-
},
|
|
1087
|
+
}, pt = {
|
|
1067
1088
|
name: "Core:Section",
|
|
1068
1089
|
static: !0,
|
|
1069
1090
|
builtIn: !0,
|
|
@@ -1108,7 +1129,7 @@ const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
|
1108
1129
|
}
|
|
1109
1130
|
}
|
|
1110
1131
|
]
|
|
1111
|
-
},
|
|
1132
|
+
}, ht = {
|
|
1112
1133
|
name: "Symbol",
|
|
1113
1134
|
noWrap: !0,
|
|
1114
1135
|
static: !0,
|
|
@@ -1147,7 +1168,7 @@ const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
|
1147
1168
|
type: "boolean"
|
|
1148
1169
|
}
|
|
1149
1170
|
]
|
|
1150
|
-
},
|
|
1171
|
+
}, ft = {
|
|
1151
1172
|
name: "Text",
|
|
1152
1173
|
static: !0,
|
|
1153
1174
|
builtIn: !0,
|
|
@@ -1167,7 +1188,7 @@ const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
|
1167
1188
|
height: "auto",
|
|
1168
1189
|
textAlign: "center"
|
|
1169
1190
|
}
|
|
1170
|
-
},
|
|
1191
|
+
}, gt = {
|
|
1171
1192
|
name: "Video",
|
|
1172
1193
|
canHaveChildren: !0,
|
|
1173
1194
|
builtIn: !0,
|
|
@@ -1269,7 +1290,7 @@ const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
|
1269
1290
|
advanced: !0
|
|
1270
1291
|
}
|
|
1271
1292
|
]
|
|
1272
|
-
},
|
|
1293
|
+
}, bt = {
|
|
1273
1294
|
name: "Embed",
|
|
1274
1295
|
static: !0,
|
|
1275
1296
|
builtIn: !0,
|
|
@@ -1280,7 +1301,7 @@ const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
|
1280
1301
|
required: !0,
|
|
1281
1302
|
defaultValue: "",
|
|
1282
1303
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1283
|
-
onChange:
|
|
1304
|
+
onChange: R((e) => {
|
|
1284
1305
|
const n = e.get("url");
|
|
1285
1306
|
if (n)
|
|
1286
1307
|
return e.set("content", "Loading..."), fetch(
|
|
@@ -1303,11 +1324,11 @@ const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
|
1303
1324
|
hideFromUI: !0
|
|
1304
1325
|
}
|
|
1305
1326
|
]
|
|
1306
|
-
},
|
|
1327
|
+
}, yt = [
|
|
1307
1328
|
"text/javascript",
|
|
1308
1329
|
"application/javascript",
|
|
1309
1330
|
"application/ecmascript"
|
|
1310
|
-
],
|
|
1331
|
+
], vt = (e) => yt.includes(e.type), xt = {
|
|
1311
1332
|
name: "builder-embed",
|
|
1312
1333
|
props: ["content"],
|
|
1313
1334
|
data: () => ({ scriptsInserted: [], scriptsRun: [], ranInitFn: !1 }),
|
|
@@ -1335,7 +1356,7 @@ const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
|
1335
1356
|
this.scriptsInserted.push(t.src);
|
|
1336
1357
|
const o = document.createElement("script");
|
|
1337
1358
|
o.async = !0, o.src = t.src, document.head.appendChild(o);
|
|
1338
|
-
} else if (
|
|
1359
|
+
} else if (vt(t) && !this.scriptsRun.includes(t.innerText))
|
|
1339
1360
|
try {
|
|
1340
1361
|
this.scriptsRun.push(t.innerText), new Function(t.innerText)();
|
|
1341
1362
|
} catch (o) {
|
|
@@ -1344,22 +1365,22 @@ const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
|
1344
1365
|
}
|
|
1345
1366
|
}
|
|
1346
1367
|
}
|
|
1347
|
-
},
|
|
1368
|
+
}, Ct = ["innerHTML"];
|
|
1348
1369
|
function _t(e, n, t, o, s, r) {
|
|
1349
1370
|
return l(), d("div", {
|
|
1350
1371
|
class: "builder-embed",
|
|
1351
1372
|
ref: "elem",
|
|
1352
1373
|
innerHTML: t.content
|
|
1353
|
-
}, null, 8,
|
|
1374
|
+
}, null, 8, Ct);
|
|
1354
1375
|
}
|
|
1355
|
-
const
|
|
1356
|
-
function
|
|
1357
|
-
return
|
|
1376
|
+
const kt = /* @__PURE__ */ g(xt, [["render", _t]]);
|
|
1377
|
+
function wt() {
|
|
1378
|
+
return f() && window.self !== window.top;
|
|
1358
1379
|
}
|
|
1359
|
-
function
|
|
1360
|
-
return
|
|
1380
|
+
function b() {
|
|
1381
|
+
return wt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1361
1382
|
}
|
|
1362
|
-
const
|
|
1383
|
+
const St = {
|
|
1363
1384
|
name: "builder-img-component",
|
|
1364
1385
|
props: [
|
|
1365
1386
|
"backgroundSize",
|
|
@@ -1369,9 +1390,9 @@ const wt = {
|
|
|
1369
1390
|
"image",
|
|
1370
1391
|
"attributes"
|
|
1371
1392
|
],
|
|
1372
|
-
data: () => ({ isEditing:
|
|
1373
|
-
},
|
|
1374
|
-
function
|
|
1393
|
+
data: () => ({ isEditing: b })
|
|
1394
|
+
}, It = ["alt", "src"];
|
|
1395
|
+
function Tt(e, n, t, o, s, r) {
|
|
1375
1396
|
return l(), d("img", _({
|
|
1376
1397
|
style: {
|
|
1377
1398
|
objectFit: t.backgroundSize || "cover",
|
|
@@ -1380,9 +1401,9 @@ function It(e, n, t, o, s, r) {
|
|
|
1380
1401
|
key: e.isEditing() && t.imgSrc || "default-key",
|
|
1381
1402
|
alt: t.altText,
|
|
1382
1403
|
src: t.imgSrc || t.image
|
|
1383
|
-
}, t.attributes), null, 16,
|
|
1404
|
+
}, t.attributes), null, 16, It);
|
|
1384
1405
|
}
|
|
1385
|
-
const
|
|
1406
|
+
const Rt = /* @__PURE__ */ g(St, [["render", Tt]]), Et = {
|
|
1386
1407
|
name: "Raw:Img",
|
|
1387
1408
|
hideFromInsertMenu: !0,
|
|
1388
1409
|
builtIn: !0,
|
|
@@ -1398,7 +1419,7 @@ const Tt = /* @__PURE__ */ f(wt, [["render", It]]), Rt = {
|
|
|
1398
1419
|
],
|
|
1399
1420
|
noWrap: !0,
|
|
1400
1421
|
static: !0
|
|
1401
|
-
},
|
|
1422
|
+
}, Ft = {
|
|
1402
1423
|
name: "builder-custom-code",
|
|
1403
1424
|
props: ["replaceNodes", "code"],
|
|
1404
1425
|
data: () => ({ scriptsInserted: [], scriptsRun: [] }),
|
|
@@ -1443,19 +1464,19 @@ const Tt = /* @__PURE__ */ f(wt, [["render", It]]), Rt = {
|
|
|
1443
1464
|
return n;
|
|
1444
1465
|
}
|
|
1445
1466
|
}
|
|
1446
|
-
},
|
|
1447
|
-
function
|
|
1467
|
+
}, jt = ["innerHTML"];
|
|
1468
|
+
function At(e, n, t, o, s, r) {
|
|
1448
1469
|
return l(), d("div", {
|
|
1449
1470
|
ref: "elem",
|
|
1450
|
-
class:
|
|
1471
|
+
class: P(
|
|
1451
1472
|
r._classStringToObject(
|
|
1452
1473
|
"builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
|
|
1453
1474
|
)
|
|
1454
1475
|
),
|
|
1455
1476
|
innerHTML: t.code
|
|
1456
|
-
}, null, 10,
|
|
1477
|
+
}, null, 10, jt);
|
|
1457
1478
|
}
|
|
1458
|
-
const Ut = /* @__PURE__ */
|
|
1479
|
+
const Ut = /* @__PURE__ */ g(Ft, [["render", At]]), Pt = {
|
|
1459
1480
|
name: "Custom Code",
|
|
1460
1481
|
static: !0,
|
|
1461
1482
|
builtIn: !0,
|
|
@@ -1482,34 +1503,35 @@ const Ut = /* @__PURE__ */ f(Et, [["render", jt]]), Vt = {
|
|
|
1482
1503
|
advanced: !0
|
|
1483
1504
|
}
|
|
1484
1505
|
]
|
|
1485
|
-
},
|
|
1486
|
-
{ component: me, ...
|
|
1487
|
-
{ component:
|
|
1488
|
-
{ component:
|
|
1489
|
-
{ component: Se, ...
|
|
1490
|
-
{ component: Ee, ...
|
|
1491
|
-
{ component:
|
|
1492
|
-
{ component:
|
|
1493
|
-
{ component:
|
|
1494
|
-
{ component:
|
|
1495
|
-
{ component:
|
|
1496
|
-
{ component: Ut, ...
|
|
1506
|
+
}, Vt = () => [
|
|
1507
|
+
{ component: me, ...dt },
|
|
1508
|
+
{ component: Ce, ...mt },
|
|
1509
|
+
{ component: Rt, ...Et },
|
|
1510
|
+
{ component: Se, ...ft },
|
|
1511
|
+
{ component: Ee, ...gt },
|
|
1512
|
+
{ component: Qe, ...ht },
|
|
1513
|
+
{ component: nt, ...lt },
|
|
1514
|
+
{ component: rt, ...pt },
|
|
1515
|
+
{ component: ct, ...ut },
|
|
1516
|
+
{ component: kt, ...bt },
|
|
1517
|
+
{ component: Ut, ...Pt }
|
|
1497
1518
|
];
|
|
1498
1519
|
function H({
|
|
1499
1520
|
code: e,
|
|
1500
1521
|
context: n,
|
|
1501
1522
|
state: t,
|
|
1502
|
-
event: o
|
|
1523
|
+
event: o,
|
|
1524
|
+
isExpression: s = !0
|
|
1503
1525
|
}) {
|
|
1504
1526
|
if (e === "") {
|
|
1505
1527
|
console.warn("Skipping evaluation of empty code block.");
|
|
1506
1528
|
return;
|
|
1507
1529
|
}
|
|
1508
|
-
const
|
|
1509
|
-
isEditing:
|
|
1510
|
-
isBrowser:
|
|
1511
|
-
isServer: !
|
|
1512
|
-
},
|
|
1530
|
+
const r = {
|
|
1531
|
+
isEditing: b(),
|
|
1532
|
+
isBrowser: f(),
|
|
1533
|
+
isServer: !f()
|
|
1534
|
+
}, c = s && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
1513
1535
|
try {
|
|
1514
1536
|
return new Function(
|
|
1515
1537
|
"builder",
|
|
@@ -1517,36 +1539,36 @@ function H({
|
|
|
1517
1539
|
"state",
|
|
1518
1540
|
"context",
|
|
1519
1541
|
"event",
|
|
1520
|
-
|
|
1521
|
-
)(
|
|
1522
|
-
} catch (
|
|
1542
|
+
c
|
|
1543
|
+
)(r, r, t, n, o);
|
|
1544
|
+
} catch (a) {
|
|
1523
1545
|
console.warn(
|
|
1524
1546
|
`Builder custom code error:
|
|
1525
1547
|
While Evaluating:
|
|
1526
1548
|
`,
|
|
1527
|
-
|
|
1549
|
+
c,
|
|
1528
1550
|
`
|
|
1529
1551
|
`,
|
|
1530
|
-
|
|
1552
|
+
a
|
|
1531
1553
|
);
|
|
1532
1554
|
}
|
|
1533
1555
|
}
|
|
1534
|
-
function
|
|
1535
|
-
return !
|
|
1556
|
+
function Bt() {
|
|
1557
|
+
return !f() || b() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1536
1558
|
}
|
|
1537
1559
|
const Q = (e) => JSON.parse(JSON.stringify(e)), Z = [];
|
|
1538
|
-
function
|
|
1560
|
+
function mn(e, n) {
|
|
1539
1561
|
return Z.push({ component: e, ...n }), console.warn(
|
|
1540
1562
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1541
1563
|
), e;
|
|
1542
1564
|
}
|
|
1543
|
-
const
|
|
1565
|
+
const Ot = ({
|
|
1544
1566
|
component: e,
|
|
1545
1567
|
...n
|
|
1546
1568
|
}) => ({
|
|
1547
1569
|
type: "builder.registerComponent",
|
|
1548
|
-
data:
|
|
1549
|
-
}), $t = (e) => typeof e == "function" ?
|
|
1570
|
+
data: Wt(n)
|
|
1571
|
+
}), $t = (e) => typeof e == "function" ? R(e) : Q(e), Wt = ({
|
|
1550
1572
|
inputs: e,
|
|
1551
1573
|
...n
|
|
1552
1574
|
}) => ({
|
|
@@ -1561,32 +1583,32 @@ const Bt = ({
|
|
|
1561
1583
|
)
|
|
1562
1584
|
)
|
|
1563
1585
|
});
|
|
1564
|
-
function
|
|
1586
|
+
function Lt() {
|
|
1565
1587
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
1566
1588
|
const n = Math.random() * 16 | 0;
|
|
1567
1589
|
return (e == "x" ? n : n & 3 | 8).toString(16);
|
|
1568
1590
|
});
|
|
1569
1591
|
}
|
|
1570
1592
|
function ee() {
|
|
1571
|
-
return
|
|
1593
|
+
return Lt().replace(/-/g, "");
|
|
1572
1594
|
}
|
|
1573
|
-
const te = "builderSessionId",
|
|
1595
|
+
const te = "builderSessionId", Nt = async ({ canTrack: e }) => {
|
|
1574
1596
|
if (!e)
|
|
1575
1597
|
return;
|
|
1576
1598
|
const n = await J({
|
|
1577
1599
|
name: te,
|
|
1578
1600
|
canTrack: e
|
|
1579
1601
|
});
|
|
1580
|
-
if (
|
|
1602
|
+
if (T(n))
|
|
1581
1603
|
return n;
|
|
1582
1604
|
{
|
|
1583
|
-
const t =
|
|
1584
|
-
|
|
1605
|
+
const t = Mt();
|
|
1606
|
+
Ht({ id: t, canTrack: e });
|
|
1585
1607
|
}
|
|
1586
|
-
},
|
|
1608
|
+
}, Mt = () => ee(), Ht = ({
|
|
1587
1609
|
id: e,
|
|
1588
1610
|
canTrack: n
|
|
1589
|
-
}) => G({ name: te, value: e, canTrack: n }), ne = () =>
|
|
1611
|
+
}) => G({ name: te, value: e, canTrack: n }), ne = () => f() && typeof localStorage < "u" ? localStorage : void 0, zt = ({
|
|
1590
1612
|
key: e,
|
|
1591
1613
|
canTrack: n
|
|
1592
1614
|
}) => {
|
|
@@ -1596,7 +1618,7 @@ const te = "builderSessionId", Lt = async ({ canTrack: e }) => {
|
|
|
1596
1618
|
} catch (o) {
|
|
1597
1619
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1598
1620
|
}
|
|
1599
|
-
},
|
|
1621
|
+
}, Kt = ({
|
|
1600
1622
|
key: e,
|
|
1601
1623
|
canTrack: n,
|
|
1602
1624
|
value: t
|
|
@@ -1607,37 +1629,37 @@ const te = "builderSessionId", Lt = async ({ canTrack: e }) => {
|
|
|
1607
1629
|
} catch (s) {
|
|
1608
1630
|
console.debug("[LocalStorage] SET error: ", s);
|
|
1609
1631
|
}
|
|
1610
|
-
}, oe = "builderVisitorId",
|
|
1632
|
+
}, oe = "builderVisitorId", qt = ({ canTrack: e }) => {
|
|
1611
1633
|
if (!e)
|
|
1612
1634
|
return;
|
|
1613
|
-
const n =
|
|
1635
|
+
const n = zt({
|
|
1614
1636
|
key: oe,
|
|
1615
1637
|
canTrack: e
|
|
1616
1638
|
});
|
|
1617
|
-
if (
|
|
1639
|
+
if (T(n))
|
|
1618
1640
|
return n;
|
|
1619
1641
|
{
|
|
1620
1642
|
const t = Dt();
|
|
1621
|
-
|
|
1643
|
+
Jt({ id: t, canTrack: e });
|
|
1622
1644
|
}
|
|
1623
|
-
}, Dt = () => ee(),
|
|
1645
|
+
}, Dt = () => ee(), Jt = ({
|
|
1624
1646
|
id: e,
|
|
1625
1647
|
canTrack: n
|
|
1626
|
-
}) =>
|
|
1648
|
+
}) => Kt({
|
|
1627
1649
|
key: oe,
|
|
1628
1650
|
value: e,
|
|
1629
1651
|
canTrack: n
|
|
1630
|
-
}),
|
|
1652
|
+
}), Gt = async ({
|
|
1631
1653
|
canTrack: e
|
|
1632
1654
|
}) => {
|
|
1633
1655
|
if (!e)
|
|
1634
1656
|
return { visitorId: void 0, sessionId: void 0 };
|
|
1635
|
-
const n = await
|
|
1657
|
+
const n = await Nt({ canTrack: e }), t = qt({ canTrack: e });
|
|
1636
1658
|
return {
|
|
1637
1659
|
sessionId: n,
|
|
1638
1660
|
visitorId: t
|
|
1639
1661
|
};
|
|
1640
|
-
},
|
|
1662
|
+
}, Xt = async ({
|
|
1641
1663
|
type: e,
|
|
1642
1664
|
canTrack: n,
|
|
1643
1665
|
apiKey: t,
|
|
@@ -1648,16 +1670,22 @@ const te = "builderSessionId", Lt = async ({ canTrack: e }) => {
|
|
|
1648
1670
|
data: {
|
|
1649
1671
|
...s,
|
|
1650
1672
|
metadata: JSON.stringify(o),
|
|
1651
|
-
...await
|
|
1673
|
+
...await Gt({ canTrack: n }),
|
|
1652
1674
|
ownerId: t
|
|
1653
1675
|
}
|
|
1654
1676
|
});
|
|
1655
1677
|
async function U(e) {
|
|
1656
|
-
if (
|
|
1678
|
+
if (!e.apiKey) {
|
|
1679
|
+
console.error(
|
|
1680
|
+
"[Builder.io]: Missing API key for track call. Please provide your API key."
|
|
1681
|
+
);
|
|
1682
|
+
return;
|
|
1683
|
+
}
|
|
1684
|
+
if (!!e.canTrack && !b() && !!(f() || V === "reactNative"))
|
|
1657
1685
|
return fetch("https://builder.io/api/v1/track", {
|
|
1658
1686
|
method: "POST",
|
|
1659
1687
|
body: JSON.stringify({
|
|
1660
|
-
events: [await
|
|
1688
|
+
events: [await Xt(e)]
|
|
1661
1689
|
}),
|
|
1662
1690
|
headers: {
|
|
1663
1691
|
"content-type": "application/json"
|
|
@@ -1667,30 +1695,32 @@ async function U(e) {
|
|
|
1667
1695
|
console.error("Failed to track: ", n);
|
|
1668
1696
|
});
|
|
1669
1697
|
}
|
|
1670
|
-
const
|
|
1698
|
+
const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((e) => {
|
|
1671
1699
|
throw console.error(
|
|
1672
1700
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
1673
1701
|
e
|
|
1674
1702
|
), e;
|
|
1675
|
-
}),
|
|
1703
|
+
}), Qt = () => import("./render-styles.ce553bd8.js").then((e) => e.default).catch((e) => {
|
|
1676
1704
|
throw console.error(
|
|
1677
1705
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
1678
1706
|
e
|
|
1679
1707
|
), e;
|
|
1680
|
-
}),
|
|
1708
|
+
}), Zt = {
|
|
1681
1709
|
name: "render-content",
|
|
1682
1710
|
components: {
|
|
1683
|
-
RenderContentStyles:
|
|
1684
|
-
RenderBlocks:
|
|
1711
|
+
RenderContentStyles: x(Qt),
|
|
1712
|
+
RenderBlocks: x(Yt)
|
|
1685
1713
|
},
|
|
1686
1714
|
props: [
|
|
1687
1715
|
"content",
|
|
1688
1716
|
"data",
|
|
1689
1717
|
"canTrack",
|
|
1718
|
+
"locale",
|
|
1690
1719
|
"context",
|
|
1691
1720
|
"customComponents",
|
|
1692
1721
|
"model",
|
|
1693
|
-
"apiKey"
|
|
1722
|
+
"apiKey",
|
|
1723
|
+
"includeRefs"
|
|
1694
1724
|
],
|
|
1695
1725
|
data: () => ({
|
|
1696
1726
|
forceReRenderCount: 0,
|
|
@@ -1722,11 +1752,20 @@ const mn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1722
1752
|
},
|
|
1723
1753
|
mounted() {
|
|
1724
1754
|
var e, n;
|
|
1725
|
-
if (
|
|
1726
|
-
|
|
1755
|
+
if (this.apiKey || console.error(
|
|
1756
|
+
"[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
1757
|
+
), f()) {
|
|
1758
|
+
if (b() && (this.forceReRenderCount = this.forceReRenderCount + 1, ae(), ce({
|
|
1759
|
+
...this.locale ? {
|
|
1760
|
+
locale: this.locale
|
|
1761
|
+
} : {},
|
|
1762
|
+
...this.includeRefs ? {
|
|
1763
|
+
includeRefs: this.includeRefs
|
|
1764
|
+
} : {}
|
|
1765
|
+
}), Object.values(this.allRegisteredComponents).forEach(
|
|
1727
1766
|
(t) => {
|
|
1728
1767
|
var s;
|
|
1729
|
-
const o =
|
|
1768
|
+
const o = Ot(t);
|
|
1730
1769
|
(s = window.parent) == null || s.postMessage(o, "*");
|
|
1731
1770
|
}
|
|
1732
1771
|
), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
@@ -1742,11 +1781,11 @@ const mn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1742
1781
|
variationId: t !== o ? t : void 0
|
|
1743
1782
|
});
|
|
1744
1783
|
}
|
|
1745
|
-
if (
|
|
1784
|
+
if (Bt()) {
|
|
1746
1785
|
const t = new URL(location.href).searchParams;
|
|
1747
1786
|
if (this.model && t.get("builder.preview") === this.model) {
|
|
1748
1787
|
const o = t.get("apiKey") || t.get("builder.space");
|
|
1749
|
-
o &&
|
|
1788
|
+
o && Y({
|
|
1750
1789
|
model: this.model,
|
|
1751
1790
|
apiKey: o
|
|
1752
1791
|
}).then((s) => {
|
|
@@ -1769,7 +1808,7 @@ const mn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1769
1808
|
}
|
|
1770
1809
|
},
|
|
1771
1810
|
unmounted() {
|
|
1772
|
-
|
|
1811
|
+
f() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
1773
1812
|
"builder:component:stateChangeListenerActivated",
|
|
1774
1813
|
this.emitStateUpdate
|
|
1775
1814
|
));
|
|
@@ -1795,6 +1834,9 @@ const mn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1795
1834
|
return {
|
|
1796
1835
|
...(n = (e = this.content) == null ? void 0 : e.data) == null ? void 0 : n.state,
|
|
1797
1836
|
...this.data,
|
|
1837
|
+
...this.locale ? {
|
|
1838
|
+
locale: this.locale
|
|
1839
|
+
} : {},
|
|
1798
1840
|
...this.overrideState
|
|
1799
1841
|
};
|
|
1800
1842
|
},
|
|
@@ -1803,7 +1845,7 @@ const mn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1803
1845
|
},
|
|
1804
1846
|
allRegisteredComponents() {
|
|
1805
1847
|
return [
|
|
1806
|
-
...
|
|
1848
|
+
...Vt(),
|
|
1807
1849
|
...Z,
|
|
1808
1850
|
...this.customComponents || []
|
|
1809
1851
|
].reduce(
|
|
@@ -1820,13 +1862,14 @@ const mn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1820
1862
|
shouldRenderContentStyles() {
|
|
1821
1863
|
var e, n, t, o, s;
|
|
1822
1864
|
return Boolean(
|
|
1823
|
-
(((n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.cssCode) || ((s = (o = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : o.customFonts) == null ? void 0 : s.length)) &&
|
|
1865
|
+
(((n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.cssCode) || ((s = (o = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : o.customFonts) == null ? void 0 : s.length)) && V !== "reactNative"
|
|
1824
1866
|
);
|
|
1825
1867
|
},
|
|
1826
1868
|
onUpdateHook0() {
|
|
1827
1869
|
var e, n;
|
|
1828
1870
|
return {
|
|
1829
|
-
0: (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.jsCode
|
|
1871
|
+
0: (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.jsCode,
|
|
1872
|
+
1: this.contentState
|
|
1830
1873
|
};
|
|
1831
1874
|
},
|
|
1832
1875
|
onUpdateHook1() {
|
|
@@ -1886,7 +1929,7 @@ const mn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1886
1929
|
);
|
|
1887
1930
|
},
|
|
1888
1931
|
handleRequest({ url: e, key: n }) {
|
|
1889
|
-
|
|
1932
|
+
D().then((t) => t(e)).then((t) => t.json()).then((t) => {
|
|
1890
1933
|
const o = {
|
|
1891
1934
|
...this.overrideState,
|
|
1892
1935
|
[n]: t
|
|
@@ -1900,7 +1943,7 @@ const mn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1900
1943
|
var n, t, o;
|
|
1901
1944
|
const e = (o = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.httpRequests) != null ? o : {};
|
|
1902
1945
|
Object.entries(e).forEach(([s, r]) => {
|
|
1903
|
-
if (r && (!this.httpReqsData[s] ||
|
|
1946
|
+
if (r && (!this.httpReqsData[s] || b())) {
|
|
1904
1947
|
const i = this.evalExpression(r);
|
|
1905
1948
|
this.handleRequest({
|
|
1906
1949
|
url: i,
|
|
@@ -1910,7 +1953,7 @@ const mn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1910
1953
|
});
|
|
1911
1954
|
},
|
|
1912
1955
|
emitStateUpdate() {
|
|
1913
|
-
|
|
1956
|
+
b() && window.dispatchEvent(
|
|
1914
1957
|
new CustomEvent("builder:component:stateChange", {
|
|
1915
1958
|
detail: {
|
|
1916
1959
|
state: this.contentState,
|
|
@@ -1922,10 +1965,10 @@ const mn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1922
1965
|
);
|
|
1923
1966
|
}
|
|
1924
1967
|
}
|
|
1925
|
-
},
|
|
1926
|
-
function
|
|
1927
|
-
var a, u, m, p,
|
|
1928
|
-
const i =
|
|
1968
|
+
}, en = ["builder-content-id", "builder-model"];
|
|
1969
|
+
function tn(e, n, t, o, s, r) {
|
|
1970
|
+
var a, u, m, p, h, y, B;
|
|
1971
|
+
const i = C("render-content-styles"), c = C("render-blocks");
|
|
1929
1972
|
return r.useContent ? (l(), d("div", {
|
|
1930
1973
|
key: 0,
|
|
1931
1974
|
ref: "elementRef",
|
|
@@ -1933,35 +1976,35 @@ function en(e, n, t, o, s, r) {
|
|
|
1933
1976
|
"builder-content-id": (a = r.useContent) == null ? void 0 : a.id,
|
|
1934
1977
|
"builder-model": t.model
|
|
1935
1978
|
}, [
|
|
1936
|
-
r.shouldRenderContentStyles ? (l(),
|
|
1979
|
+
r.shouldRenderContentStyles ? (l(), I(i, {
|
|
1937
1980
|
key: 0,
|
|
1938
1981
|
cssCode: (m = (u = r.useContent) == null ? void 0 : u.data) == null ? void 0 : m.cssCode,
|
|
1939
|
-
customFonts: (
|
|
1940
|
-
}, null, 8, ["cssCode", "customFonts"])) :
|
|
1941
|
-
(l(),
|
|
1942
|
-
blocks: (B = (
|
|
1982
|
+
customFonts: (h = (p = r.useContent) == null ? void 0 : p.data) == null ? void 0 : h.customFonts
|
|
1983
|
+
}, null, 8, ["cssCode", "customFonts"])) : v("", !0),
|
|
1984
|
+
(l(), I(c, {
|
|
1985
|
+
blocks: (B = (y = r.useContent) == null ? void 0 : y.data) == null ? void 0 : B.blocks,
|
|
1943
1986
|
key: e.forceReRenderCount
|
|
1944
1987
|
}, null, 8, ["blocks"]))
|
|
1945
|
-
], 8,
|
|
1988
|
+
], 8, en)) : v("", !0);
|
|
1946
1989
|
}
|
|
1947
|
-
const
|
|
1990
|
+
const nn = /* @__PURE__ */ g(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1948
1991
|
__proto__: null,
|
|
1949
|
-
default:
|
|
1950
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1992
|
+
default: nn
|
|
1993
|
+
}, Symbol.toStringTag, { value: "Module" })), sn = () => import("./block-styles.bfb6bf01.js").then((e) => e.default).catch((e) => {
|
|
1951
1994
|
throw console.error(
|
|
1952
1995
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
1953
1996
|
e
|
|
1954
1997
|
), e;
|
|
1955
|
-
}),
|
|
1998
|
+
}), rn = () => import("./render-block.ff327bfe.js").then((e) => e.default).catch((e) => {
|
|
1956
1999
|
throw console.error(
|
|
1957
2000
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
1958
2001
|
e
|
|
1959
2002
|
), e;
|
|
1960
|
-
}),
|
|
2003
|
+
}), an = {
|
|
1961
2004
|
name: "render-blocks",
|
|
1962
2005
|
components: {
|
|
1963
|
-
RenderBlock:
|
|
1964
|
-
BlockStyles:
|
|
2006
|
+
RenderBlock: x(rn),
|
|
2007
|
+
BlockStyles: x(sn)
|
|
1965
2008
|
},
|
|
1966
2009
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
1967
2010
|
inject: {
|
|
@@ -1976,7 +2019,7 @@ const tn = /* @__PURE__ */ f(Qt, [["render", en]]), nn = /* @__PURE__ */ Object.
|
|
|
1976
2019
|
methods: {
|
|
1977
2020
|
onClick() {
|
|
1978
2021
|
var e, n;
|
|
1979
|
-
|
|
2022
|
+
b() && !((e = this.blocks) != null && e.length) && ((n = window.parent) == null || n.postMessage(
|
|
1980
2023
|
{
|
|
1981
2024
|
type: "builder.clickEmptyBlocks",
|
|
1982
2025
|
data: {
|
|
@@ -1989,7 +2032,7 @@ const tn = /* @__PURE__ */ f(Qt, [["render", en]]), nn = /* @__PURE__ */ Object.
|
|
|
1989
2032
|
},
|
|
1990
2033
|
onMouseEnter() {
|
|
1991
2034
|
var e, n;
|
|
1992
|
-
|
|
2035
|
+
b() && !((e = this.blocks) != null && e.length) && ((n = window.parent) == null || n.postMessage(
|
|
1993
2036
|
{
|
|
1994
2037
|
type: "builder.hoverEmptyBlocks",
|
|
1995
2038
|
data: {
|
|
@@ -2011,38 +2054,38 @@ const tn = /* @__PURE__ */ f(Qt, [["render", en]]), nn = /* @__PURE__ */ Object.
|
|
|
2011
2054
|
}
|
|
2012
2055
|
}
|
|
2013
2056
|
};
|
|
2014
|
-
const
|
|
2015
|
-
function
|
|
2016
|
-
const i =
|
|
2057
|
+
const cn = ["builder-path", "builder-parent-id", "dataSet"];
|
|
2058
|
+
function ln(e, n, t, o, s, r) {
|
|
2059
|
+
const i = C("render-block"), c = C("block-styles");
|
|
2017
2060
|
return l(), d("div", {
|
|
2018
|
-
class:
|
|
2061
|
+
class: P(r._classStringToObject(r.className + " div-7fq9d0i380")),
|
|
2019
2062
|
"builder-path": t.path,
|
|
2020
2063
|
"builder-parent-id": t.parent,
|
|
2021
2064
|
dataSet: {
|
|
2022
2065
|
class: r.className
|
|
2023
2066
|
},
|
|
2024
|
-
style:
|
|
2067
|
+
style: k(t.styleProp),
|
|
2025
2068
|
onClick: n[0] || (n[0] = (a) => r.onClick()),
|
|
2026
2069
|
onMouseenter: n[1] || (n[1] = (a) => r.onMouseEnter())
|
|
2027
2070
|
}, [
|
|
2028
|
-
t.blocks ? (l(!0), d(
|
|
2071
|
+
t.blocks ? (l(!0), d(w, { key: 0 }, j(t.blocks, (a, u) => (l(), I(i, {
|
|
2029
2072
|
key: "render-block-" + a.id,
|
|
2030
2073
|
block: a,
|
|
2031
2074
|
context: r.builderContext
|
|
2032
|
-
}, null, 8, ["block", "context"]))), 128)) :
|
|
2033
|
-
t.blocks ? (l(!0), d(
|
|
2075
|
+
}, null, 8, ["block", "context"]))), 128)) : v("", !0),
|
|
2076
|
+
t.blocks ? (l(!0), d(w, { key: 1 }, j(t.blocks, (a, u) => (l(), I(c, {
|
|
2034
2077
|
key: "block-style-" + a.id,
|
|
2035
2078
|
block: a,
|
|
2036
2079
|
context: r.builderContext
|
|
2037
|
-
}, null, 8, ["block", "context"]))), 128)) :
|
|
2038
|
-
], 46,
|
|
2080
|
+
}, null, 8, ["block", "context"]))), 128)) : v("", !0)
|
|
2081
|
+
], 46, cn);
|
|
2039
2082
|
}
|
|
2040
|
-
const
|
|
2083
|
+
const dn = /* @__PURE__ */ g(an, [["render", ln], ["__scopeId", "data-v-4f5f0a37"]]), se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2041
2084
|
__proto__: null,
|
|
2042
|
-
default:
|
|
2085
|
+
default: dn
|
|
2043
2086
|
}, Symbol.toStringTag, { value: "Module" })), z = {};
|
|
2044
|
-
function
|
|
2045
|
-
if (
|
|
2087
|
+
function hn(e) {
|
|
2088
|
+
if (f()) {
|
|
2046
2089
|
Object.assign(z, e);
|
|
2047
2090
|
const n = {
|
|
2048
2091
|
type: "builder.settingsChange",
|
|
@@ -2052,33 +2095,33 @@ function pn(e) {
|
|
|
2052
2095
|
}
|
|
2053
2096
|
}
|
|
2054
2097
|
export {
|
|
2055
|
-
|
|
2098
|
+
nt as B,
|
|
2056
2099
|
me as C,
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2100
|
+
ct as F,
|
|
2101
|
+
Ce as I,
|
|
2102
|
+
Qe as S,
|
|
2103
|
+
V as T,
|
|
2061
2104
|
Ee as V,
|
|
2062
|
-
|
|
2105
|
+
g as _,
|
|
2063
2106
|
Se as a,
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2107
|
+
rt as b,
|
|
2108
|
+
dn as c,
|
|
2109
|
+
Bt as d,
|
|
2067
2110
|
H as e,
|
|
2068
2111
|
Q as f,
|
|
2069
2112
|
Z as g,
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2113
|
+
mn as h,
|
|
2114
|
+
b as i,
|
|
2115
|
+
Ot as j,
|
|
2073
2116
|
ie as k,
|
|
2074
|
-
|
|
2075
|
-
|
|
2117
|
+
Y as l,
|
|
2118
|
+
qe as m,
|
|
2076
2119
|
De as n,
|
|
2077
|
-
|
|
2078
|
-
|
|
2120
|
+
je as o,
|
|
2121
|
+
Ae as p,
|
|
2079
2122
|
Ue as q,
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2123
|
+
nn as r,
|
|
2124
|
+
hn as s,
|
|
2125
|
+
pn as t,
|
|
2126
|
+
q as u
|
|
2084
2127
|
};
|