@builder.io/sdk-vue 0.0.4 → 0.0.5
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 +117 -0
- package/packages/_vue2/dist/block-styles.40e83f61.cjs +6 -0
- package/packages/{_vue3/dist/get-processed-block.da7b258e.cjs → _vue2/dist/get-processed-block.50c3959c.cjs} +1 -1
- package/packages/{_vue3/dist/get-processed-block.91be815e.js → _vue2/dist/get-processed-block.d176d859.js} +1 -1
- package/packages/_vue2/dist/index.319178a0.cjs +4 -0
- package/packages/_vue2/dist/{index.a348d39c.js → index.7a7ff238.js} +165 -176
- package/packages/_vue2/dist/{render-block.089abc43.js → render-block.7635a885.js} +17 -17
- package/packages/_vue2/dist/render-block.c2a840de.cjs +3 -0
- package/packages/_vue2/dist/{render-component-with-context.1a7fd4e9.cjs → render-component-with-context.95834dc3.cjs} +1 -1
- package/packages/_vue2/dist/{render-component-with-context.02a2c528.js → render-component-with-context.f56ece1d.js} +2 -2
- package/packages/_vue2/dist/render-component.1f139db7.cjs +1 -0
- package/packages/_vue2/dist/render-component.c352f53d.js +37 -0
- package/packages/_vue2/dist/render-inlined-styles.82edc9e3.cjs +1 -0
- package/packages/_vue2/dist/{render-inlined-styles.6eb4d3ee.js → render-inlined-styles.a6d217ba.js} +7 -7
- package/packages/_vue2/dist/{render-repeated-block.c84c107f.js → render-repeated-block.7e988491.js} +2 -2
- package/packages/_vue2/dist/{render-repeated-block.e85c5841.cjs → render-repeated-block.8b8babc7.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.6722cee5.js → render-styles.0fcd6636.js} +2 -2
- package/packages/_vue2/dist/{render-styles.13fa67a1.cjs → render-styles.6bcf5051.cjs} +1 -1
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +5 -5
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +8 -24
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +9 -24
- package/packages/_vue2/dist/src/blocks/util.d.ts +4 -1
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +7 -19
- package/packages/_vue2/dist/src/components/render-block/render-component-with-context.vue.d.ts +4 -7
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +4 -8
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +7 -19
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +8 -20
- package/packages/_vue2/dist/src/components/render-content/components/render-styles.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +9 -23
- package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/constants/device-sizes.d.ts +12 -1
- package/packages/_vue2/dist/src/functions/get-content/types.d.ts +4 -0
- package/packages/_vue2/dist/src/index.d.ts +3 -0
- package/packages/_vue2/dist/src/types/builder-content.d.ts +7 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/block-styles.a9ff2d51.cjs +6 -0
- package/packages/_vue3/dist/block-styles.c98db17a.js +114 -0
- package/packages/{_vue2/dist/get-processed-block.fce88f96.cjs → _vue3/dist/get-processed-block.9b8059ab.cjs} +1 -1
- package/packages/{_vue2/dist/get-processed-block.ae7861fa.js → _vue3/dist/get-processed-block.9bb2fd8e.js} +1 -1
- package/packages/_vue3/dist/index.7ebc9925.cjs +4 -0
- package/packages/_vue3/dist/{index.7a037186.js → index.bdc957bb.js} +248 -255
- package/packages/_vue3/dist/{render-block.7817291b.js → render-block.97918590.js} +31 -31
- package/packages/_vue3/dist/render-block.ea7240a5.cjs +3 -0
- package/packages/_vue3/dist/{render-component-with-context.b67db565.cjs → render-component-with-context.4968d548.cjs} +1 -1
- package/packages/_vue3/dist/{render-component-with-context.fa0fe72b.js → render-component-with-context.e10c7475.js} +2 -2
- package/packages/_vue3/dist/{render-component.cca10188.js → render-component.44939843.js} +17 -18
- package/packages/_vue3/dist/render-component.da37335e.cjs +1 -0
- package/packages/_vue3/dist/{render-inlined-styles.bf23044d.js → render-inlined-styles.5500cf72.js} +8 -8
- package/packages/_vue3/dist/render-inlined-styles.bcf2d6ec.cjs +1 -0
- package/packages/_vue3/dist/{render-repeated-block.fa7d9eeb.js → render-repeated-block.e053daa2.js} +2 -2
- package/packages/_vue3/dist/{render-repeated-block.a972d060.cjs → render-repeated-block.f954b0ce.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.970e0a2e.js → render-styles.1af9ac32.js} +2 -2
- package/packages/_vue3/dist/{render-styles.b4777a9f.cjs → render-styles.6f74d8a8.cjs} +1 -1
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +7 -7
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +1 -5
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +2 -5
- package/packages/_vue3/dist/src/blocks/util.d.ts +4 -1
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/components/render-block/render-component-with-context.vue.d.ts +1 -4
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +1 -5
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +2 -4
- package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/constants/device-sizes.d.ts +12 -1
- package/packages/_vue3/dist/src/functions/get-content/types.d.ts +4 -0
- package/packages/_vue3/dist/src/index.d.ts +3 -0
- package/packages/_vue3/dist/src/types/builder-content.d.ts +7 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.eb369124.cjs +0 -6
- package/packages/_vue2/dist/block-styles.fc09dcaf.js +0 -86
- package/packages/_vue2/dist/index.efd88402.cjs +0 -4
- package/packages/_vue2/dist/render-block.d62a967f.cjs +0 -3
- package/packages/_vue2/dist/render-component.4342df65.cjs +0 -1
- package/packages/_vue2/dist/render-component.75cfc72e.js +0 -38
- package/packages/_vue2/dist/render-inlined-styles.36f2f1b9.cjs +0 -1
- package/packages/_vue2/dist/src/functions/mark-mutable.d.ts +0 -2
- package/packages/_vue3/dist/block-styles.4388e73f.cjs +0 -6
- package/packages/_vue3/dist/block-styles.e92f0e4a.js +0 -83
- package/packages/_vue3/dist/index.528ea0ff.cjs +0 -4
- package/packages/_vue3/dist/render-block.3d77314f.cjs +0 -3
- package/packages/_vue3/dist/render-component.2630f2f7.cjs +0 -1
- package/packages/_vue3/dist/render-inlined-styles.7be0edda.cjs +0 -1
- package/packages/_vue3/dist/src/functions/mark-mutable.d.ts +0 -2
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineAsyncComponent as v, resolveComponent as x, openBlock as l, createElementBlock as d, normalizeStyle as C, Fragment as k, renderList as F, createVNode as K, createElementVNode as R, createCommentVNode as y, normalizeClass as V, renderSlot as w, mergeProps as _, toDisplayString as $, createBlock as S } from "vue";
|
|
2
|
+
const A = "vue3";
|
|
3
3
|
function h() {
|
|
4
4
|
return typeof window < "u" && typeof document < "u";
|
|
5
5
|
}
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
let t =
|
|
9
|
-
if (t || (t =
|
|
6
|
+
const P = {};
|
|
7
|
+
function ie(e, n) {
|
|
8
|
+
let t = P[e];
|
|
9
|
+
if (t || (t = P[e] = []), t.push(n), h()) {
|
|
10
10
|
const o = {
|
|
11
11
|
type: "builder.register",
|
|
12
12
|
data: {
|
|
@@ -21,8 +21,8 @@ function ae(e, n) {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
|
|
24
|
+
const ae = () => {
|
|
25
|
+
ie("insertMenu", {
|
|
26
26
|
name: "_default",
|
|
27
27
|
default: !0,
|
|
28
28
|
items: [
|
|
@@ -36,15 +36,18 @@ const ie = () => {
|
|
|
36
36
|
{ name: "Custom Code" }
|
|
37
37
|
]
|
|
38
38
|
});
|
|
39
|
-
}
|
|
39
|
+
};
|
|
40
|
+
let W = !1;
|
|
41
|
+
const ce = () => {
|
|
40
42
|
var e;
|
|
41
|
-
h() && ((e = window.parent) == null || e.postMessage(
|
|
43
|
+
W || (W = !0, h() && ((e = window.parent) == null || e.postMessage(
|
|
42
44
|
{
|
|
43
45
|
type: "builder.sdkInfo",
|
|
44
46
|
data: {
|
|
45
|
-
target:
|
|
47
|
+
target: A,
|
|
46
48
|
supportsPatchUpdates: !1,
|
|
47
|
-
supportsAddBlockScoping: !0
|
|
49
|
+
supportsAddBlockScoping: !0,
|
|
50
|
+
supportsCustomBreakpoints: !0
|
|
48
51
|
}
|
|
49
52
|
},
|
|
50
53
|
"*"
|
|
@@ -53,54 +56,47 @@ const ie = () => {
|
|
|
53
56
|
if (!!(n != null && n.type))
|
|
54
57
|
switch (n.type) {
|
|
55
58
|
case "builder.evaluate": {
|
|
56
|
-
const s = n.data.text, r = n.data.arguments || [],
|
|
57
|
-
let
|
|
59
|
+
const s = n.data.text, r = n.data.arguments || [], i = n.data.id, c = new Function(s);
|
|
60
|
+
let a, u = null;
|
|
58
61
|
try {
|
|
59
|
-
|
|
62
|
+
a = c.apply(null, r);
|
|
60
63
|
} catch (m) {
|
|
61
64
|
u = m;
|
|
62
65
|
}
|
|
63
66
|
u ? (t = window.parent) == null || t.postMessage(
|
|
64
67
|
{
|
|
65
68
|
type: "builder.evaluateError",
|
|
66
|
-
data: { id:
|
|
69
|
+
data: { id: i, error: u.message }
|
|
67
70
|
},
|
|
68
71
|
"*"
|
|
69
|
-
) :
|
|
72
|
+
) : a && typeof a.then == "function" ? a.then((m) => {
|
|
70
73
|
var p;
|
|
71
74
|
(p = window.parent) == null || p.postMessage(
|
|
72
75
|
{
|
|
73
76
|
type: "builder.evaluateResult",
|
|
74
|
-
data: { id:
|
|
77
|
+
data: { id: i, result: m }
|
|
75
78
|
},
|
|
76
79
|
"*"
|
|
77
80
|
);
|
|
78
81
|
}).catch(console.error) : (o = window.parent) == null || o.postMessage(
|
|
79
82
|
{
|
|
80
83
|
type: "builder.evaluateResult",
|
|
81
|
-
data: { result:
|
|
84
|
+
data: { result: a, id: i }
|
|
82
85
|
},
|
|
83
86
|
"*"
|
|
84
87
|
);
|
|
85
88
|
break;
|
|
86
89
|
}
|
|
87
90
|
}
|
|
88
|
-
}));
|
|
89
|
-
}
|
|
90
|
-
function A(e) {
|
|
91
|
-
return e;
|
|
92
|
-
}
|
|
93
|
-
function mn(e) {
|
|
94
|
-
return e;
|
|
95
|
-
}
|
|
96
|
-
const le = () => Promise.resolve().then(() => se).then((e) => e.default).catch((e) => {
|
|
91
|
+
})));
|
|
92
|
+
}, le = () => Promise.resolve().then(() => se).then((e) => e.default).catch((e) => {
|
|
97
93
|
throw console.error(
|
|
98
94
|
"Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
|
|
99
95
|
e
|
|
100
96
|
), e;
|
|
101
97
|
}), de = {
|
|
102
98
|
name: "builder-columns",
|
|
103
|
-
components: { RenderBlocks:
|
|
99
|
+
components: { RenderBlocks: v(le) },
|
|
104
100
|
props: [
|
|
105
101
|
"space",
|
|
106
102
|
"columns",
|
|
@@ -108,7 +104,6 @@ const le = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
108
104
|
"reverseColumnsWhenStacked",
|
|
109
105
|
"builderBlock"
|
|
110
106
|
],
|
|
111
|
-
data: () => ({ markMutable: A }),
|
|
112
107
|
computed: {
|
|
113
108
|
columnsCssVars() {
|
|
114
109
|
const e = this.stackColumnsAt === "never" ? "inherit" : this.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -155,23 +150,23 @@ const f = (e, n) => {
|
|
|
155
150
|
return t;
|
|
156
151
|
};
|
|
157
152
|
function ue(e, n, t, o, s, r) {
|
|
158
|
-
const
|
|
153
|
+
const i = x("render-blocks");
|
|
159
154
|
return l(), d("div", {
|
|
160
155
|
class: "builder-columns div-1eih9th5ow6",
|
|
161
|
-
style:
|
|
156
|
+
style: C(r.columnsCssVars)
|
|
162
157
|
}, [
|
|
163
|
-
(l(!0), d(
|
|
164
|
-
key:
|
|
158
|
+
(l(!0), d(k, null, F(t.columns, (c, a) => (l(), d("div", {
|
|
159
|
+
key: a,
|
|
165
160
|
class: "builder-column div-1eih9th5ow6-2",
|
|
166
|
-
style:
|
|
167
|
-
width: r.getColumnCssWidth(
|
|
168
|
-
marginLeft: `${
|
|
161
|
+
style: C({
|
|
162
|
+
width: r.getColumnCssWidth(a),
|
|
163
|
+
marginLeft: `${a === 0 ? 0 : r.getGutterSize()}px`,
|
|
169
164
|
...r.columnCssVars
|
|
170
165
|
})
|
|
171
166
|
}, [
|
|
172
|
-
K(
|
|
173
|
-
blocks:
|
|
174
|
-
path: `component.options.columns.${
|
|
167
|
+
K(i, {
|
|
168
|
+
blocks: c.blocks,
|
|
169
|
+
path: `component.options.columns.${a}.blocks`,
|
|
175
170
|
parent: t.builderBlock.id,
|
|
176
171
|
styleProp: {
|
|
177
172
|
flexGrow: "1"
|
|
@@ -180,7 +175,7 @@ function ue(e, n, t, o, s, r) {
|
|
|
180
175
|
], 4))), 128))
|
|
181
176
|
], 4);
|
|
182
177
|
}
|
|
183
|
-
const me = /* @__PURE__ */ f(de, [["render", ue], ["__scopeId", "data-v-
|
|
178
|
+
const me = /* @__PURE__ */ f(de, [["render", ue], ["__scopeId", "data-v-330e29c7"]]);
|
|
184
179
|
function L(e) {
|
|
185
180
|
return e.replace(/http(s)?:/, "");
|
|
186
181
|
}
|
|
@@ -202,7 +197,7 @@ function he(e, n) {
|
|
|
202
197
|
}
|
|
203
198
|
return null;
|
|
204
199
|
}
|
|
205
|
-
function
|
|
200
|
+
function E(e) {
|
|
206
201
|
if (!e)
|
|
207
202
|
return e;
|
|
208
203
|
const n = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -236,10 +231,10 @@ const fe = {
|
|
|
236
231
|
return this.srcset;
|
|
237
232
|
if (this.srcset && ((t = this.image) == null ? void 0 : t.includes("builder.io/api/v1/image"))) {
|
|
238
233
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
239
|
-
return console.debug("Removed given srcset"),
|
|
234
|
+
return console.debug("Removed given srcset"), E(n);
|
|
240
235
|
} else if (this.image && !this.srcset)
|
|
241
|
-
return
|
|
242
|
-
return
|
|
236
|
+
return E(n);
|
|
237
|
+
return E(n);
|
|
243
238
|
},
|
|
244
239
|
webpSrcSet() {
|
|
245
240
|
var e;
|
|
@@ -260,60 +255,60 @@ const fe = {
|
|
|
260
255
|
};
|
|
261
256
|
const ge = ["srcset"], be = ["alt", "role", "src", "srcset", "sizes"], ye = ["srcset"], ve = {
|
|
262
257
|
key: 2,
|
|
263
|
-
class: "div-
|
|
258
|
+
class: "div-1fogms4bee0-2"
|
|
264
259
|
};
|
|
265
260
|
function xe(e, n, t, o, s, r) {
|
|
266
|
-
var
|
|
267
|
-
return l(), d(
|
|
268
|
-
|
|
261
|
+
var i, c, a, u;
|
|
262
|
+
return l(), d(k, null, [
|
|
263
|
+
R("picture", null, [
|
|
269
264
|
r.webpSrcSet ? (l(), d("source", {
|
|
270
265
|
key: 0,
|
|
271
266
|
type: "image/webp",
|
|
272
267
|
srcset: r.webpSrcSet
|
|
273
|
-
}, null, 8, ge)) :
|
|
274
|
-
|
|
268
|
+
}, null, 8, ge)) : y("", !0),
|
|
269
|
+
R("img", {
|
|
275
270
|
loading: "lazy",
|
|
276
271
|
alt: t.altText,
|
|
277
272
|
role: t.altText ? "presentation" : void 0,
|
|
278
|
-
style:
|
|
273
|
+
style: C({
|
|
279
274
|
objectPosition: t.backgroundSize || "center",
|
|
280
275
|
objectFit: t.backgroundSize || "cover"
|
|
281
276
|
}),
|
|
282
|
-
class:
|
|
277
|
+
class: V(
|
|
283
278
|
r._classStringToObject(
|
|
284
|
-
"builder-image" + (t.className ? " " + t.className : "") + " img-
|
|
279
|
+
"builder-image" + (t.className ? " " + t.className : "") + " img-1fogms4bee0"
|
|
285
280
|
)
|
|
286
281
|
),
|
|
287
282
|
src: t.image,
|
|
288
283
|
srcset: r.srcSetToUse,
|
|
289
284
|
sizes: t.sizes
|
|
290
285
|
}, null, 14, be),
|
|
291
|
-
|
|
286
|
+
R("source", { srcset: r.srcSetToUse }, null, 8, ye)
|
|
292
287
|
]),
|
|
293
|
-
t.aspectRatio && !(((c = (
|
|
288
|
+
t.aspectRatio && !(((c = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : c.length) && t.fitContent) ? (l(), d("div", {
|
|
294
289
|
key: 0,
|
|
295
|
-
class: "builder-image-sizer div-
|
|
296
|
-
style:
|
|
290
|
+
class: "builder-image-sizer div-1fogms4bee0",
|
|
291
|
+
style: C({
|
|
297
292
|
paddingTop: t.aspectRatio * 100 + "%"
|
|
298
293
|
})
|
|
299
|
-
}, null, 4)) :
|
|
300
|
-
((u = (
|
|
294
|
+
}, null, 4)) : y("", !0),
|
|
295
|
+
((u = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : u.length) && t.fitContent ? w(e.$slots, "default", { key: 1 }, void 0, !0) : y("", !0),
|
|
301
296
|
!t.fitContent && e.children ? (l(), d("div", ve, [
|
|
302
297
|
w(e.$slots, "default", {}, void 0, !0)
|
|
303
|
-
])) :
|
|
298
|
+
])) : y("", !0)
|
|
304
299
|
], 64);
|
|
305
300
|
}
|
|
306
|
-
const
|
|
301
|
+
const _e = /* @__PURE__ */ f(fe, [["render", xe], ["__scopeId", "data-v-53905db1"]]), Ce = {
|
|
307
302
|
name: "builder-text",
|
|
308
303
|
props: ["text"]
|
|
309
|
-
},
|
|
304
|
+
}, ke = ["innerHTML"];
|
|
310
305
|
function we(e, n, t, o, s, r) {
|
|
311
306
|
return l(), d("span", {
|
|
312
307
|
class: "builder-text",
|
|
313
308
|
innerHTML: t.text
|
|
314
|
-
}, null, 8,
|
|
309
|
+
}, null, 8, ke);
|
|
315
310
|
}
|
|
316
|
-
const Se = /* @__PURE__ */ f(
|
|
311
|
+
const Se = /* @__PURE__ */ f(Ce, [["render", we]]), Ie = {
|
|
317
312
|
name: "builder-video",
|
|
318
313
|
props: [
|
|
319
314
|
"autoPlay",
|
|
@@ -356,32 +351,32 @@ const Se = /* @__PURE__ */ f(_e, [["render", we]]), Ie = {
|
|
|
356
351
|
}
|
|
357
352
|
}, Te = ["src", "poster"];
|
|
358
353
|
function Re(e, n, t, o, s, r) {
|
|
359
|
-
var
|
|
360
|
-
return l(), d("video",
|
|
354
|
+
var i;
|
|
355
|
+
return l(), d("video", _({
|
|
361
356
|
style: {
|
|
362
357
|
width: "100%",
|
|
363
358
|
height: "100%",
|
|
364
|
-
...(
|
|
359
|
+
...(i = t.attributes) == null ? void 0 : i.style,
|
|
365
360
|
objectFit: t.fit,
|
|
366
361
|
objectPosition: t.position,
|
|
367
362
|
borderRadius: 1
|
|
368
363
|
},
|
|
369
364
|
src: t.video || "no-src",
|
|
370
365
|
poster: t.posterImage
|
|
371
|
-
}), null, 16, Te);
|
|
366
|
+
}, r.spreadProps), null, 16, Te);
|
|
372
367
|
}
|
|
373
368
|
const Ee = /* @__PURE__ */ f(Ie, [["render", Re]]);
|
|
374
|
-
function
|
|
369
|
+
function j(e, n = null, t = ".") {
|
|
375
370
|
return Object.keys(e).reduce((o, s) => {
|
|
376
|
-
const r = e[s],
|
|
371
|
+
const r = e[s], i = [n, s].filter(Boolean).join(t);
|
|
377
372
|
return [
|
|
378
373
|
typeof r == "object",
|
|
379
374
|
r !== null,
|
|
380
375
|
!(Array.isArray(r) && r.length === 0)
|
|
381
|
-
].every(Boolean) ? { ...o, ...
|
|
376
|
+
].every(Boolean) ? { ...o, ...j(r, i, t) } : { ...o, [i]: r };
|
|
382
377
|
}, {});
|
|
383
378
|
}
|
|
384
|
-
const
|
|
379
|
+
const N = "builder.", Fe = (e) => {
|
|
385
380
|
const n = {};
|
|
386
381
|
return e.forEach((t, o) => {
|
|
387
382
|
n[o] = t;
|
|
@@ -389,10 +384,10 @@ const M = "builder.", Fe = (e) => {
|
|
|
389
384
|
}, je = (e) => {
|
|
390
385
|
if (!e)
|
|
391
386
|
return {};
|
|
392
|
-
const n =
|
|
387
|
+
const n = D(e), t = {};
|
|
393
388
|
return Object.keys(n).forEach((o) => {
|
|
394
|
-
if (o.startsWith(
|
|
395
|
-
const s = o.replace(
|
|
389
|
+
if (o.startsWith(N)) {
|
|
390
|
+
const s = o.replace(N, "");
|
|
396
391
|
t[s] = n[o];
|
|
397
392
|
}
|
|
398
393
|
}), t;
|
|
@@ -401,11 +396,11 @@ const M = "builder.", Fe = (e) => {
|
|
|
401
396
|
return {};
|
|
402
397
|
const e = new URLSearchParams(window.location.search);
|
|
403
398
|
return je(e);
|
|
404
|
-
},
|
|
399
|
+
}, D = (e) => e instanceof URLSearchParams ? Fe(e) : e;
|
|
405
400
|
function Ve() {
|
|
406
401
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
|
|
407
402
|
}
|
|
408
|
-
async function
|
|
403
|
+
async function q() {
|
|
409
404
|
const e = Ve().fetch;
|
|
410
405
|
if (typeof e > "u" && typeof global < "u") {
|
|
411
406
|
const n = import("node-fetch").then((t) => t.default);
|
|
@@ -429,19 +424,19 @@ const Ae = (e) => {
|
|
|
429
424
|
}, Oe = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).join("; "), Be = [
|
|
430
425
|
["secure", ""],
|
|
431
426
|
["SameSite", "None"]
|
|
432
|
-
],
|
|
427
|
+
], $e = ({
|
|
433
428
|
name: e,
|
|
434
429
|
value: n,
|
|
435
430
|
expires: t
|
|
436
431
|
}) => {
|
|
437
|
-
const s = (h() ? location.protocol === "https:" : !0) ? Be : [[]], r = t ? [["expires", t.toUTCString()]] : [[]],
|
|
432
|
+
const s = (h() ? location.protocol === "https:" : !0) ? Be : [[]], r = t ? [["expires", t.toUTCString()]] : [[]], i = [
|
|
438
433
|
[e, n],
|
|
439
434
|
...r,
|
|
440
435
|
["path", "/"],
|
|
441
436
|
["domain", Ae(window.location.hostname)],
|
|
442
437
|
...s
|
|
443
438
|
];
|
|
444
|
-
return Oe(
|
|
439
|
+
return Oe(i);
|
|
445
440
|
}, G = async ({
|
|
446
441
|
name: e,
|
|
447
442
|
value: n,
|
|
@@ -451,19 +446,19 @@ const Ae = (e) => {
|
|
|
451
446
|
try {
|
|
452
447
|
if (!o)
|
|
453
448
|
return;
|
|
454
|
-
const s =
|
|
449
|
+
const s = $e({ name: e, value: n, expires: t });
|
|
455
450
|
document.cookie = s;
|
|
456
451
|
} catch (s) {
|
|
457
452
|
console.warn("[COOKIE] SET error: ", s);
|
|
458
453
|
}
|
|
459
|
-
},
|
|
454
|
+
}, Pe = "builderio.variations", Y = (e) => `${Pe}.${e}`, We = ({
|
|
460
455
|
contentId: e,
|
|
461
456
|
canTrack: n
|
|
462
457
|
}) => J({ name: Y(e), canTrack: n }), Le = ({
|
|
463
458
|
contentId: e,
|
|
464
459
|
canTrack: n,
|
|
465
460
|
value: t
|
|
466
|
-
}) => G({ name: Y(e), value: t, canTrack: n }), I = (e) => e != null,
|
|
461
|
+
}) => G({ name: Y(e), value: t, canTrack: n }), I = (e) => e != null, Ne = (e) => I(e.id) && I(e.variations) && Object.keys(e.variations).length > 0, Me = ({
|
|
467
462
|
id: e,
|
|
468
463
|
variations: n
|
|
469
464
|
}) => {
|
|
@@ -474,7 +469,7 @@ const Ae = (e) => {
|
|
|
474
469
|
if (t += (s = n[r]) == null ? void 0 : s.testRatio, o < t)
|
|
475
470
|
return r;
|
|
476
471
|
return e;
|
|
477
|
-
},
|
|
472
|
+
}, M = ({
|
|
478
473
|
item: e,
|
|
479
474
|
testGroupId: n
|
|
480
475
|
}) => {
|
|
@@ -494,11 +489,11 @@ const Ae = (e) => {
|
|
|
494
489
|
const t = await We({
|
|
495
490
|
canTrack: n,
|
|
496
491
|
contentId: e.id
|
|
497
|
-
}), o = t ?
|
|
492
|
+
}), o = t ? M({ item: e, testGroupId: t }) : void 0;
|
|
498
493
|
if (o)
|
|
499
494
|
return o;
|
|
500
495
|
{
|
|
501
|
-
const s =
|
|
496
|
+
const s = Me({
|
|
502
497
|
variations: e.variations,
|
|
503
498
|
id: e.id
|
|
504
499
|
});
|
|
@@ -508,19 +503,19 @@ const Ae = (e) => {
|
|
|
508
503
|
canTrack: n
|
|
509
504
|
}).catch((r) => {
|
|
510
505
|
console.error("could not store A/B test variation: ", r);
|
|
511
|
-
}),
|
|
506
|
+
}), M({ item: e, testGroupId: s });
|
|
512
507
|
}
|
|
513
508
|
}, ze = async ({
|
|
514
509
|
item: e,
|
|
515
510
|
canTrack: n
|
|
516
511
|
}) => {
|
|
517
|
-
if (!
|
|
512
|
+
if (!Ne(e))
|
|
518
513
|
return;
|
|
519
514
|
const t = await He({ item: e, canTrack: n });
|
|
520
515
|
Object.assign(e, t);
|
|
521
516
|
};
|
|
522
517
|
async function X(e) {
|
|
523
|
-
return (await
|
|
518
|
+
return (await De({ ...e, limit: 1 })).results[0] || null;
|
|
524
519
|
}
|
|
525
520
|
const Ke = (e) => {
|
|
526
521
|
const {
|
|
@@ -529,24 +524,28 @@ const Ke = (e) => {
|
|
|
529
524
|
query: o,
|
|
530
525
|
noTraverse: s = !1,
|
|
531
526
|
model: r,
|
|
532
|
-
apiKey:
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
527
|
+
apiKey: i,
|
|
528
|
+
includeRefs: c = !0
|
|
529
|
+
} = e;
|
|
530
|
+
if (!i)
|
|
531
|
+
throw new Error("Missing API key");
|
|
532
|
+
const a = new URL(
|
|
533
|
+
`https://cdn.builder.io/api/v2/content/${r}?apiKey=${i}&limit=${n}&noTraverse=${s}&includeRefs=${c}`
|
|
534
|
+
), u = {
|
|
536
535
|
...Ue(),
|
|
537
|
-
...
|
|
538
|
-
},
|
|
539
|
-
for (const
|
|
540
|
-
|
|
541
|
-
if (t &&
|
|
542
|
-
const
|
|
543
|
-
for (const
|
|
544
|
-
|
|
536
|
+
...D(e.options || {})
|
|
537
|
+
}, m = j(u);
|
|
538
|
+
for (const p in m)
|
|
539
|
+
a.searchParams.set(p, String(m[p]));
|
|
540
|
+
if (t && a.searchParams.set("userAttributes", JSON.stringify(t)), o) {
|
|
541
|
+
const p = j({ query: o });
|
|
542
|
+
for (const b in p)
|
|
543
|
+
a.searchParams.set(b, JSON.stringify(p[b]));
|
|
545
544
|
}
|
|
546
|
-
return
|
|
545
|
+
return a;
|
|
547
546
|
};
|
|
548
|
-
async function
|
|
549
|
-
const n = Ke(e), o = await (await
|
|
547
|
+
async function De(e) {
|
|
548
|
+
const n = Ke(e), o = await (await q())(n.href).then(
|
|
550
549
|
(r) => r.json()
|
|
551
550
|
), s = e.canTrack !== !1;
|
|
552
551
|
if (s)
|
|
@@ -554,20 +553,16 @@ async function qe(e) {
|
|
|
554
553
|
await ze({ item: r, canTrack: s });
|
|
555
554
|
return o;
|
|
556
555
|
}
|
|
557
|
-
const
|
|
556
|
+
const qe = () => Promise.resolve().then(() => nn).then((e) => e.default).catch((e) => {
|
|
558
557
|
throw console.error(
|
|
559
558
|
"Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
|
|
560
559
|
e
|
|
561
560
|
), e;
|
|
562
561
|
}), Je = {
|
|
563
562
|
name: "builder-symbol",
|
|
564
|
-
components: { RenderContent:
|
|
563
|
+
components: { RenderContent: v(qe) },
|
|
565
564
|
props: ["symbol", "attributes"],
|
|
566
|
-
data: () => ({
|
|
567
|
-
className: "builder-symbol",
|
|
568
|
-
fetchedContent: null,
|
|
569
|
-
markMutable: A
|
|
570
|
-
}),
|
|
565
|
+
data: () => ({ className: "builder-symbol", fetchedContent: null }),
|
|
571
566
|
inject: {
|
|
572
567
|
builderContext: "BuilderContext"
|
|
573
568
|
},
|
|
@@ -610,25 +605,25 @@ const De = () => Promise.resolve().then(() => on).then((e) => e.default).catch((
|
|
|
610
605
|
}
|
|
611
606
|
}, Ge = ["dataSet"];
|
|
612
607
|
function Ye(e, n, t, o, s, r) {
|
|
613
|
-
var c,
|
|
614
|
-
const
|
|
615
|
-
return l(), d("div",
|
|
608
|
+
var c, a, u, m, p;
|
|
609
|
+
const i = x("render-content");
|
|
610
|
+
return l(), d("div", _({
|
|
616
611
|
dataSet: {
|
|
617
612
|
class: e.className
|
|
618
613
|
},
|
|
619
614
|
class: r._classStringToObject(e.className)
|
|
620
|
-
}), [
|
|
621
|
-
K(
|
|
615
|
+
}, t.attributes), [
|
|
616
|
+
K(i, {
|
|
622
617
|
apiKey: r.builderContext.apiKey,
|
|
623
618
|
context: r.builderContext.context,
|
|
624
|
-
customComponents:
|
|
625
|
-
data:
|
|
619
|
+
customComponents: Object.values(r.builderContext.registeredComponents),
|
|
620
|
+
data: {
|
|
626
621
|
...(c = t.symbol) == null ? void 0 : c.data,
|
|
627
622
|
...r.builderContext.state,
|
|
628
|
-
...(m = (u = (
|
|
629
|
-
}
|
|
623
|
+
...(m = (u = (a = t.symbol) == null ? void 0 : a.content) == null ? void 0 : u.data) == null ? void 0 : m.state
|
|
624
|
+
},
|
|
630
625
|
model: (p = t.symbol) == null ? void 0 : p.model,
|
|
631
|
-
content:
|
|
626
|
+
content: r.contentToUse
|
|
632
627
|
}, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
|
|
633
628
|
], 16, Ge);
|
|
634
629
|
}
|
|
@@ -638,22 +633,26 @@ const Xe = /* @__PURE__ */ f(Je, [["render", Ye]]), Qe = {
|
|
|
638
633
|
};
|
|
639
634
|
const Ze = ["href", "target"];
|
|
640
635
|
function et(e, n, t, o, s, r) {
|
|
641
|
-
return t.link ? (l(), d("a",
|
|
636
|
+
return t.link ? (l(), d("a", _({
|
|
637
|
+
key: 0,
|
|
642
638
|
role: "button",
|
|
643
639
|
href: t.link,
|
|
644
640
|
target: t.openLinkInNewTab ? "_blank" : void 0
|
|
645
|
-
}), $(t.text), 17, Ze)) : (l(), d("button",
|
|
641
|
+
}, t.attributes), $(t.text), 17, Ze)) : (l(), d("button", _({
|
|
642
|
+
key: 1,
|
|
643
|
+
class: "button-361b1o6wv2k"
|
|
644
|
+
}, t.attributes), $(t.text), 17));
|
|
646
645
|
}
|
|
647
|
-
const tt = /* @__PURE__ */ f(Qe, [["render", et], ["__scopeId", "data-v-
|
|
646
|
+
const tt = /* @__PURE__ */ f(Qe, [["render", et], ["__scopeId", "data-v-00528171"]]), nt = {
|
|
648
647
|
name: "builder-section-component",
|
|
649
648
|
props: ["attributes", "maxWidth"]
|
|
650
649
|
};
|
|
651
650
|
function ot(e, n, t, o, s, r) {
|
|
652
|
-
return l(), d("section",
|
|
651
|
+
return l(), d("section", _({
|
|
653
652
|
style: t.maxWidth && typeof t.maxWidth == "number" ? {
|
|
654
653
|
maxWidth: t.maxWidth
|
|
655
654
|
} : void 0
|
|
656
|
-
}), [
|
|
655
|
+
}, t.attributes), [
|
|
657
656
|
w(e.$slots, "default")
|
|
658
657
|
], 16);
|
|
659
658
|
}
|
|
@@ -661,12 +660,12 @@ const st = /* @__PURE__ */ f(nt, [["render", ot]]), rt = {
|
|
|
661
660
|
name: "builder-fragment-component",
|
|
662
661
|
props: []
|
|
663
662
|
};
|
|
664
|
-
function
|
|
663
|
+
function it(e, n, t, o, s, r) {
|
|
665
664
|
return l(), d("span", null, [
|
|
666
665
|
w(e.$slots, "default")
|
|
667
666
|
]);
|
|
668
667
|
}
|
|
669
|
-
const
|
|
668
|
+
const at = /* @__PURE__ */ f(rt, [["render", it]]), ct = {
|
|
670
669
|
name: "Core:Button",
|
|
671
670
|
builtIn: !0,
|
|
672
671
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -703,11 +702,10 @@ const it = /* @__PURE__ */ f(rt, [["render", at]]), ct = {
|
|
|
703
702
|
],
|
|
704
703
|
static: !0,
|
|
705
704
|
noWrap: !0
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
return
|
|
709
|
-
}
|
|
710
|
-
const lt = {
|
|
705
|
+
}, T = (e) => {
|
|
706
|
+
const n = e.toString().trim();
|
|
707
|
+
return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
|
|
708
|
+
}, lt = {
|
|
711
709
|
name: "Columns",
|
|
712
710
|
builtIn: !0,
|
|
713
711
|
inputs: [
|
|
@@ -895,7 +893,7 @@ const lt = {
|
|
|
895
893
|
]
|
|
896
894
|
}
|
|
897
895
|
],
|
|
898
|
-
onChange:
|
|
896
|
+
onChange: T((e) => {
|
|
899
897
|
function n() {
|
|
900
898
|
t.forEach((o) => {
|
|
901
899
|
o.delete("width");
|
|
@@ -906,7 +904,7 @@ const lt = {
|
|
|
906
904
|
(s) => s.get("width")
|
|
907
905
|
) && (!!t.find(
|
|
908
906
|
(r) => !r.get("width")
|
|
909
|
-
) || t.reduce((c,
|
|
907
|
+
) || t.reduce((c, a) => c + a.get("width"), 0) !== 100) && n();
|
|
910
908
|
})
|
|
911
909
|
},
|
|
912
910
|
{
|
|
@@ -959,31 +957,31 @@ const lt = {
|
|
|
959
957
|
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
960
958
|
required: !0,
|
|
961
959
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
962
|
-
onChange:
|
|
960
|
+
onChange: T((e) => {
|
|
963
961
|
e.delete("srcset"), e.delete("noWebp");
|
|
964
|
-
function t(
|
|
965
|
-
return new Promise((
|
|
962
|
+
function t(i, c = 6e4) {
|
|
963
|
+
return new Promise((a, u) => {
|
|
966
964
|
const m = document.createElement("img");
|
|
967
965
|
let p = !1;
|
|
968
966
|
m.onload = () => {
|
|
969
|
-
p = !0,
|
|
970
|
-
}, m.addEventListener("error", (
|
|
971
|
-
console.warn("Image load failed",
|
|
972
|
-
}), m.src =
|
|
967
|
+
p = !0, a(m);
|
|
968
|
+
}, m.addEventListener("error", (b) => {
|
|
969
|
+
console.warn("Image load failed", b.error), u(b.error);
|
|
970
|
+
}), m.src = i, setTimeout(() => {
|
|
973
971
|
p || u(new Error("Image load timed out"));
|
|
974
972
|
}, c);
|
|
975
973
|
});
|
|
976
974
|
}
|
|
977
|
-
function o(
|
|
978
|
-
return Math.round(
|
|
975
|
+
function o(i) {
|
|
976
|
+
return Math.round(i * 1e3) / 1e3;
|
|
979
977
|
}
|
|
980
978
|
const s = e.get("image"), r = e.get("aspectRatio");
|
|
981
|
-
if (fetch(s).then((
|
|
982
|
-
|
|
979
|
+
if (fetch(s).then((i) => i.blob()).then((i) => {
|
|
980
|
+
i.type.includes("svg") && e.set("noWebp", !0);
|
|
983
981
|
}), s && (!r || r === 0.7041))
|
|
984
|
-
return t(s).then((
|
|
982
|
+
return t(s).then((i) => {
|
|
985
983
|
const c = e.get("aspectRatio");
|
|
986
|
-
e.get("image") === s && (!c || c === 0.7041) &&
|
|
984
|
+
e.get("image") === s && (!c || c === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
987
985
|
});
|
|
988
986
|
})
|
|
989
987
|
},
|
|
@@ -1282,7 +1280,7 @@ const lt = {
|
|
|
1282
1280
|
required: !0,
|
|
1283
1281
|
defaultValue: "",
|
|
1284
1282
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1285
|
-
onChange:
|
|
1283
|
+
onChange: T((e) => {
|
|
1286
1284
|
const n = e.get("url");
|
|
1287
1285
|
if (n)
|
|
1288
1286
|
return e.set("content", "Loading..."), fetch(
|
|
@@ -1347,19 +1345,19 @@ const lt = {
|
|
|
1347
1345
|
}
|
|
1348
1346
|
}
|
|
1349
1347
|
}, xt = ["innerHTML"];
|
|
1350
|
-
function
|
|
1348
|
+
function _t(e, n, t, o, s, r) {
|
|
1351
1349
|
return l(), d("div", {
|
|
1352
1350
|
class: "builder-embed",
|
|
1353
1351
|
ref: "elem",
|
|
1354
1352
|
innerHTML: t.content
|
|
1355
1353
|
}, null, 8, xt);
|
|
1356
1354
|
}
|
|
1357
|
-
const
|
|
1358
|
-
function
|
|
1355
|
+
const Ct = /* @__PURE__ */ f(vt, [["render", _t]]);
|
|
1356
|
+
function kt() {
|
|
1359
1357
|
return h() && window.self !== window.top;
|
|
1360
1358
|
}
|
|
1361
1359
|
function g() {
|
|
1362
|
-
return
|
|
1360
|
+
return kt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1363
1361
|
}
|
|
1364
1362
|
const wt = {
|
|
1365
1363
|
name: "builder-img-component",
|
|
@@ -1374,7 +1372,7 @@ const wt = {
|
|
|
1374
1372
|
data: () => ({ isEditing: g })
|
|
1375
1373
|
}, St = ["alt", "src"];
|
|
1376
1374
|
function It(e, n, t, o, s, r) {
|
|
1377
|
-
return l(), d("img",
|
|
1375
|
+
return l(), d("img", _({
|
|
1378
1376
|
style: {
|
|
1379
1377
|
objectFit: t.backgroundSize || "cover",
|
|
1380
1378
|
objectPosition: t.backgroundPosition || "center"
|
|
@@ -1382,7 +1380,7 @@ function It(e, n, t, o, s, r) {
|
|
|
1382
1380
|
key: e.isEditing() && t.imgSrc || "default-key",
|
|
1383
1381
|
alt: t.altText,
|
|
1384
1382
|
src: t.imgSrc || t.image
|
|
1385
|
-
}), null, 16, St);
|
|
1383
|
+
}, t.attributes), null, 16, St);
|
|
1386
1384
|
}
|
|
1387
1385
|
const Tt = /* @__PURE__ */ f(wt, [["render", It]]), Rt = {
|
|
1388
1386
|
name: "Raw:Img",
|
|
@@ -1449,7 +1447,7 @@ const Tt = /* @__PURE__ */ f(wt, [["render", It]]), Rt = {
|
|
|
1449
1447
|
function jt(e, n, t, o, s, r) {
|
|
1450
1448
|
return l(), d("div", {
|
|
1451
1449
|
ref: "elem",
|
|
1452
|
-
class:
|
|
1450
|
+
class: V(
|
|
1453
1451
|
r._classStringToObject(
|
|
1454
1452
|
"builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
|
|
1455
1453
|
)
|
|
@@ -1486,15 +1484,15 @@ const Ut = /* @__PURE__ */ f(Et, [["render", jt]]), Vt = {
|
|
|
1486
1484
|
]
|
|
1487
1485
|
}, At = () => [
|
|
1488
1486
|
{ component: me, ...lt },
|
|
1489
|
-
{ component:
|
|
1487
|
+
{ component: _e, ...ut },
|
|
1490
1488
|
{ component: Tt, ...Rt },
|
|
1491
1489
|
{ component: Se, ...ht },
|
|
1492
1490
|
{ component: Ee, ...ft },
|
|
1493
1491
|
{ component: Xe, ...pt },
|
|
1494
1492
|
{ component: tt, ...ct },
|
|
1495
1493
|
{ component: st, ...mt },
|
|
1496
|
-
{ component:
|
|
1497
|
-
{ component:
|
|
1494
|
+
{ component: at, ...dt },
|
|
1495
|
+
{ component: Ct, ...gt },
|
|
1498
1496
|
{ component: Ut, ...Vt }
|
|
1499
1497
|
];
|
|
1500
1498
|
function H({
|
|
@@ -1511,7 +1509,7 @@ function H({
|
|
|
1511
1509
|
isEditing: g(),
|
|
1512
1510
|
isBrowser: h(),
|
|
1513
1511
|
isServer: !h()
|
|
1514
|
-
},
|
|
1512
|
+
}, i = !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
1515
1513
|
try {
|
|
1516
1514
|
return new Function(
|
|
1517
1515
|
"builder",
|
|
@@ -1519,14 +1517,14 @@ function H({
|
|
|
1519
1517
|
"state",
|
|
1520
1518
|
"context",
|
|
1521
1519
|
"event",
|
|
1522
|
-
|
|
1520
|
+
i
|
|
1523
1521
|
)(s, s, t, n, o);
|
|
1524
1522
|
} catch (c) {
|
|
1525
1523
|
console.warn(
|
|
1526
1524
|
`Builder custom code error:
|
|
1527
1525
|
While Evaluating:
|
|
1528
1526
|
`,
|
|
1529
|
-
|
|
1527
|
+
i,
|
|
1530
1528
|
`
|
|
1531
1529
|
`,
|
|
1532
1530
|
c.message || c
|
|
@@ -1537,7 +1535,7 @@ function Ot() {
|
|
|
1537
1535
|
return !h() || g() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1538
1536
|
}
|
|
1539
1537
|
const Q = (e) => JSON.parse(JSON.stringify(e)), Z = [];
|
|
1540
|
-
function
|
|
1538
|
+
function un(e, n) {
|
|
1541
1539
|
return Z.push({ component: e, ...n }), console.warn(
|
|
1542
1540
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1543
1541
|
), e;
|
|
@@ -1547,11 +1545,8 @@ const Bt = ({
|
|
|
1547
1545
|
...n
|
|
1548
1546
|
}) => ({
|
|
1549
1547
|
type: "builder.registerComponent",
|
|
1550
|
-
data:
|
|
1551
|
-
}),
|
|
1552
|
-
const n = e.toString().trim();
|
|
1553
|
-
return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
|
|
1554
|
-
}, Wt = ({
|
|
1548
|
+
data: Pt(n)
|
|
1549
|
+
}), $t = (e) => typeof e == "function" ? T(e) : Q(e), Pt = ({
|
|
1555
1550
|
inputs: e,
|
|
1556
1551
|
...n
|
|
1557
1552
|
}) => ({
|
|
@@ -1560,22 +1555,22 @@ const Bt = ({
|
|
|
1560
1555
|
(t) => Object.entries(t).reduce(
|
|
1561
1556
|
(o, [s, r]) => ({
|
|
1562
1557
|
...o,
|
|
1563
|
-
[s]:
|
|
1558
|
+
[s]: $t(r)
|
|
1564
1559
|
}),
|
|
1565
1560
|
{}
|
|
1566
1561
|
)
|
|
1567
1562
|
)
|
|
1568
1563
|
});
|
|
1569
|
-
function
|
|
1564
|
+
function Wt() {
|
|
1570
1565
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
1571
1566
|
const n = Math.random() * 16 | 0;
|
|
1572
1567
|
return (e == "x" ? n : n & 3 | 8).toString(16);
|
|
1573
1568
|
});
|
|
1574
1569
|
}
|
|
1575
1570
|
function ee() {
|
|
1576
|
-
return
|
|
1571
|
+
return Wt().replace(/-/g, "");
|
|
1577
1572
|
}
|
|
1578
|
-
const te = "builderSessionId",
|
|
1573
|
+
const te = "builderSessionId", Lt = async ({ canTrack: e }) => {
|
|
1579
1574
|
if (!e)
|
|
1580
1575
|
return;
|
|
1581
1576
|
const n = await J({
|
|
@@ -1586,12 +1581,12 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
|
|
|
1586
1581
|
return n;
|
|
1587
1582
|
{
|
|
1588
1583
|
const t = Nt();
|
|
1589
|
-
|
|
1584
|
+
Mt({ id: t, canTrack: e });
|
|
1590
1585
|
}
|
|
1591
|
-
}, Nt = () => ee(),
|
|
1586
|
+
}, Nt = () => ee(), Mt = ({
|
|
1592
1587
|
id: e,
|
|
1593
1588
|
canTrack: n
|
|
1594
|
-
}) => G({ name: te, value: e, canTrack: n }), ne = () => h() && typeof localStorage < "u" ? localStorage : void 0,
|
|
1589
|
+
}) => G({ name: te, value: e, canTrack: n }), ne = () => h() && typeof localStorage < "u" ? localStorage : void 0, Ht = ({
|
|
1595
1590
|
key: e,
|
|
1596
1591
|
canTrack: n
|
|
1597
1592
|
}) => {
|
|
@@ -1601,7 +1596,7 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
|
|
|
1601
1596
|
} catch (o) {
|
|
1602
1597
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1603
1598
|
}
|
|
1604
|
-
},
|
|
1599
|
+
}, zt = ({
|
|
1605
1600
|
key: e,
|
|
1606
1601
|
canTrack: n,
|
|
1607
1602
|
value: t
|
|
@@ -1612,10 +1607,10 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
|
|
|
1612
1607
|
} catch (s) {
|
|
1613
1608
|
console.debug("[LocalStorage] SET error: ", s);
|
|
1614
1609
|
}
|
|
1615
|
-
}, oe = "builderVisitorId",
|
|
1610
|
+
}, oe = "builderVisitorId", Kt = ({ canTrack: e }) => {
|
|
1616
1611
|
if (!e)
|
|
1617
1612
|
return;
|
|
1618
|
-
const n =
|
|
1613
|
+
const n = Ht({
|
|
1619
1614
|
key: oe,
|
|
1620
1615
|
canTrack: e
|
|
1621
1616
|
});
|
|
@@ -1623,26 +1618,26 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
|
|
|
1623
1618
|
return n;
|
|
1624
1619
|
{
|
|
1625
1620
|
const t = Dt();
|
|
1626
|
-
|
|
1621
|
+
qt({ id: t, canTrack: e });
|
|
1627
1622
|
}
|
|
1628
|
-
}, Dt = () => ee(),
|
|
1623
|
+
}, Dt = () => ee(), qt = ({
|
|
1629
1624
|
id: e,
|
|
1630
1625
|
canTrack: n
|
|
1631
|
-
}) =>
|
|
1626
|
+
}) => zt({
|
|
1632
1627
|
key: oe,
|
|
1633
1628
|
value: e,
|
|
1634
1629
|
canTrack: n
|
|
1635
|
-
}),
|
|
1630
|
+
}), Jt = async ({
|
|
1636
1631
|
canTrack: e
|
|
1637
1632
|
}) => {
|
|
1638
1633
|
if (!e)
|
|
1639
1634
|
return { visitorId: void 0, sessionId: void 0 };
|
|
1640
|
-
const n = await
|
|
1635
|
+
const n = await Lt({ canTrack: e }), t = Kt({ canTrack: e });
|
|
1641
1636
|
return {
|
|
1642
1637
|
sessionId: n,
|
|
1643
1638
|
visitorId: t
|
|
1644
1639
|
};
|
|
1645
|
-
},
|
|
1640
|
+
}, Gt = async ({
|
|
1646
1641
|
type: e,
|
|
1647
1642
|
canTrack: n,
|
|
1648
1643
|
apiKey: t,
|
|
@@ -1653,16 +1648,16 @@ const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
|
|
|
1653
1648
|
data: {
|
|
1654
1649
|
...s,
|
|
1655
1650
|
metadata: JSON.stringify(o),
|
|
1656
|
-
...await
|
|
1651
|
+
...await Jt({ canTrack: n }),
|
|
1657
1652
|
ownerId: t
|
|
1658
1653
|
}
|
|
1659
1654
|
});
|
|
1660
|
-
async function
|
|
1661
|
-
if (!!e.canTrack && !g() && !!(h() ||
|
|
1655
|
+
async function U(e) {
|
|
1656
|
+
if (!!e.canTrack && !g() && !!(h() || A === "reactNative"))
|
|
1662
1657
|
return fetch("https://builder.io/api/v1/track", {
|
|
1663
1658
|
method: "POST",
|
|
1664
1659
|
body: JSON.stringify({
|
|
1665
|
-
events: [await
|
|
1660
|
+
events: [await Gt(e)]
|
|
1666
1661
|
}),
|
|
1667
1662
|
headers: {
|
|
1668
1663
|
"content-type": "application/json"
|
|
@@ -1672,21 +1667,21 @@ async function j(e) {
|
|
|
1672
1667
|
console.error("Failed to track: ", n);
|
|
1673
1668
|
});
|
|
1674
1669
|
}
|
|
1675
|
-
const
|
|
1670
|
+
const mn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((e) => {
|
|
1676
1671
|
throw console.error(
|
|
1677
1672
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
1678
1673
|
e
|
|
1679
1674
|
), e;
|
|
1680
|
-
}),
|
|
1675
|
+
}), Xt = () => import("./render-styles.1af9ac32.js").then((e) => e.default).catch((e) => {
|
|
1681
1676
|
throw console.error(
|
|
1682
1677
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
1683
1678
|
e
|
|
1684
1679
|
), e;
|
|
1685
|
-
}),
|
|
1680
|
+
}), Qt = {
|
|
1686
1681
|
name: "render-content",
|
|
1687
1682
|
components: {
|
|
1688
|
-
RenderContentStyles:
|
|
1689
|
-
RenderBlocks:
|
|
1683
|
+
RenderContentStyles: v(Xt),
|
|
1684
|
+
RenderBlocks: v(Yt)
|
|
1690
1685
|
},
|
|
1691
1686
|
props: [
|
|
1692
1687
|
"content",
|
|
@@ -1701,8 +1696,7 @@ const hn = (e) => j({ ...e, canTrack: !0 }), Xt = () => Promise.resolve().then((
|
|
|
1701
1696
|
forceReRenderCount: 0,
|
|
1702
1697
|
overrideContent: null,
|
|
1703
1698
|
update: 0,
|
|
1704
|
-
overrideState: {}
|
|
1705
|
-
markMutable: A
|
|
1699
|
+
overrideState: {}
|
|
1706
1700
|
}),
|
|
1707
1701
|
provide() {
|
|
1708
1702
|
const e = this;
|
|
@@ -1729,7 +1723,7 @@ const hn = (e) => j({ ...e, canTrack: !0 }), Xt = () => Promise.resolve().then((
|
|
|
1729
1723
|
mounted() {
|
|
1730
1724
|
var e, n;
|
|
1731
1725
|
if (h()) {
|
|
1732
|
-
if (g() && (this.forceReRenderCount = this.forceReRenderCount + 1,
|
|
1726
|
+
if (g() && (this.forceReRenderCount = this.forceReRenderCount + 1, ae(), ce(), Object.values(this.allRegisteredComponents).forEach(
|
|
1733
1727
|
(t) => {
|
|
1734
1728
|
var s;
|
|
1735
1729
|
const o = Bt(t);
|
|
@@ -1740,7 +1734,7 @@ const hn = (e) => j({ ...e, canTrack: !0 }), Xt = () => Promise.resolve().then((
|
|
|
1740
1734
|
this.emitStateUpdate
|
|
1741
1735
|
)), this.useContent) {
|
|
1742
1736
|
const t = (e = this.useContent) == null ? void 0 : e.testVariationId, o = (n = this.useContent) == null ? void 0 : n.id;
|
|
1743
|
-
|
|
1737
|
+
U({
|
|
1744
1738
|
type: "impression",
|
|
1745
1739
|
canTrack: this.canTrackToUse,
|
|
1746
1740
|
contentId: o,
|
|
@@ -1826,7 +1820,7 @@ const hn = (e) => j({ ...e, canTrack: !0 }), Xt = () => Promise.resolve().then((
|
|
|
1826
1820
|
shouldRenderContentStyles() {
|
|
1827
1821
|
var e, n, t, o, s;
|
|
1828
1822
|
return Boolean(
|
|
1829
|
-
(((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)) &&
|
|
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)) && A !== "reactNative"
|
|
1830
1824
|
);
|
|
1831
1825
|
},
|
|
1832
1826
|
onUpdateHook0() {
|
|
@@ -1872,7 +1866,7 @@ const hn = (e) => j({ ...e, canTrack: !0 }), Xt = () => Promise.resolve().then((
|
|
|
1872
1866
|
var n, t;
|
|
1873
1867
|
if (this.useContent) {
|
|
1874
1868
|
const o = (n = this.useContent) == null ? void 0 : n.testVariationId, s = (t = this.useContent) == null ? void 0 : t.id;
|
|
1875
|
-
|
|
1869
|
+
U({
|
|
1876
1870
|
type: "click",
|
|
1877
1871
|
canTrack: this.canTrackToUse,
|
|
1878
1872
|
contentId: s,
|
|
@@ -1892,7 +1886,7 @@ const hn = (e) => j({ ...e, canTrack: !0 }), Xt = () => Promise.resolve().then((
|
|
|
1892
1886
|
);
|
|
1893
1887
|
},
|
|
1894
1888
|
handleRequest({ url: e, key: n }) {
|
|
1895
|
-
|
|
1889
|
+
q().then((t) => t(e)).then((t) => t.json()).then((t) => {
|
|
1896
1890
|
const o = {
|
|
1897
1891
|
...this.overrideState,
|
|
1898
1892
|
[n]: t
|
|
@@ -1907,9 +1901,9 @@ const hn = (e) => j({ ...e, canTrack: !0 }), Xt = () => Promise.resolve().then((
|
|
|
1907
1901
|
const e = (o = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.httpRequests) != null ? o : {};
|
|
1908
1902
|
Object.entries(e).forEach(([s, r]) => {
|
|
1909
1903
|
if (r && (!this.httpReqsData[s] || g())) {
|
|
1910
|
-
const
|
|
1904
|
+
const i = this.evalExpression(r);
|
|
1911
1905
|
this.handleRequest({
|
|
1912
|
-
url:
|
|
1906
|
+
url: i,
|
|
1913
1907
|
key: s
|
|
1914
1908
|
});
|
|
1915
1909
|
}
|
|
@@ -1928,46 +1922,46 @@ const hn = (e) => j({ ...e, canTrack: !0 }), Xt = () => Promise.resolve().then((
|
|
|
1928
1922
|
);
|
|
1929
1923
|
}
|
|
1930
1924
|
}
|
|
1931
|
-
},
|
|
1932
|
-
function
|
|
1933
|
-
var
|
|
1934
|
-
const
|
|
1925
|
+
}, Zt = ["builder-content-id", "builder-model"];
|
|
1926
|
+
function en(e, n, t, o, s, r) {
|
|
1927
|
+
var a, u, m, p, b, O, B;
|
|
1928
|
+
const i = x("render-content-styles"), c = x("render-blocks");
|
|
1935
1929
|
return r.useContent ? (l(), d("div", {
|
|
1936
1930
|
key: 0,
|
|
1937
1931
|
ref: "elementRef",
|
|
1938
1932
|
onClick: n[0] || (n[0] = (re) => r.onClick(re)),
|
|
1939
|
-
"builder-content-id": (
|
|
1933
|
+
"builder-content-id": (a = r.useContent) == null ? void 0 : a.id,
|
|
1940
1934
|
"builder-model": t.model
|
|
1941
1935
|
}, [
|
|
1942
|
-
r.shouldRenderContentStyles ? (l(), S(
|
|
1936
|
+
r.shouldRenderContentStyles ? (l(), S(i, {
|
|
1943
1937
|
key: 0,
|
|
1944
1938
|
cssCode: (m = (u = r.useContent) == null ? void 0 : u.data) == null ? void 0 : m.cssCode,
|
|
1945
|
-
customFonts: (
|
|
1946
|
-
}, null, 8, ["cssCode", "customFonts"])) :
|
|
1939
|
+
customFonts: (b = (p = r.useContent) == null ? void 0 : p.data) == null ? void 0 : b.customFonts
|
|
1940
|
+
}, null, 8, ["cssCode", "customFonts"])) : y("", !0),
|
|
1947
1941
|
(l(), S(c, {
|
|
1948
|
-
blocks:
|
|
1942
|
+
blocks: (B = (O = r.useContent) == null ? void 0 : O.data) == null ? void 0 : B.blocks,
|
|
1949
1943
|
key: e.forceReRenderCount
|
|
1950
1944
|
}, null, 8, ["blocks"]))
|
|
1951
|
-
], 8,
|
|
1945
|
+
], 8, Zt)) : y("", !0);
|
|
1952
1946
|
}
|
|
1953
|
-
const
|
|
1947
|
+
const tn = /* @__PURE__ */ f(Qt, [["render", en]]), nn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1954
1948
|
__proto__: null,
|
|
1955
|
-
default:
|
|
1956
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1949
|
+
default: tn
|
|
1950
|
+
}, Symbol.toStringTag, { value: "Module" })), on = () => import("./block-styles.c98db17a.js").then((e) => e.default).catch((e) => {
|
|
1957
1951
|
throw console.error(
|
|
1958
1952
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
1959
1953
|
e
|
|
1960
1954
|
), e;
|
|
1961
|
-
}),
|
|
1955
|
+
}), sn = () => import("./render-block.97918590.js").then((e) => e.default).catch((e) => {
|
|
1962
1956
|
throw console.error(
|
|
1963
1957
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
1964
1958
|
e
|
|
1965
1959
|
), e;
|
|
1966
|
-
}),
|
|
1960
|
+
}), rn = {
|
|
1967
1961
|
name: "render-blocks",
|
|
1968
1962
|
components: {
|
|
1969
|
-
RenderBlock:
|
|
1970
|
-
BlockStyles:
|
|
1963
|
+
RenderBlock: v(sn),
|
|
1964
|
+
BlockStyles: v(on)
|
|
1971
1965
|
},
|
|
1972
1966
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
1973
1967
|
inject: {
|
|
@@ -2017,37 +2011,37 @@ const nn = /* @__PURE__ */ f(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.
|
|
|
2017
2011
|
}
|
|
2018
2012
|
}
|
|
2019
2013
|
};
|
|
2020
|
-
const
|
|
2021
|
-
function
|
|
2022
|
-
const
|
|
2014
|
+
const an = ["builder-path", "builder-parent-id", "dataSet"];
|
|
2015
|
+
function cn(e, n, t, o, s, r) {
|
|
2016
|
+
const i = x("render-block"), c = x("block-styles");
|
|
2023
2017
|
return l(), d("div", {
|
|
2024
|
-
class:
|
|
2018
|
+
class: V(r._classStringToObject(r.className + " div-4o9pb21oca6")),
|
|
2025
2019
|
"builder-path": t.path,
|
|
2026
2020
|
"builder-parent-id": t.parent,
|
|
2027
2021
|
dataSet: {
|
|
2028
2022
|
class: r.className
|
|
2029
2023
|
},
|
|
2030
|
-
style:
|
|
2031
|
-
onClick: n[0] || (n[0] = (
|
|
2032
|
-
onMouseenter: n[1] || (n[1] = (
|
|
2024
|
+
style: C(t.styleProp),
|
|
2025
|
+
onClick: n[0] || (n[0] = (a) => r.onClick()),
|
|
2026
|
+
onMouseenter: n[1] || (n[1] = (a) => r.onMouseEnter())
|
|
2033
2027
|
}, [
|
|
2034
|
-
t.blocks ? (l(!0), d(
|
|
2035
|
-
key: "render-block-" +
|
|
2036
|
-
block:
|
|
2028
|
+
t.blocks ? (l(!0), d(k, { key: 0 }, F(t.blocks, (a, u) => (l(), S(i, {
|
|
2029
|
+
key: "render-block-" + a.id,
|
|
2030
|
+
block: a,
|
|
2037
2031
|
context: r.builderContext
|
|
2038
|
-
}, null, 8, ["block", "context"]))), 128)) :
|
|
2039
|
-
t.blocks ? (l(!0), d(
|
|
2040
|
-
key: "block-style-" +
|
|
2041
|
-
block:
|
|
2032
|
+
}, null, 8, ["block", "context"]))), 128)) : y("", !0),
|
|
2033
|
+
t.blocks ? (l(!0), d(k, { key: 1 }, F(t.blocks, (a, u) => (l(), S(c, {
|
|
2034
|
+
key: "block-style-" + a.id,
|
|
2035
|
+
block: a,
|
|
2042
2036
|
context: r.builderContext
|
|
2043
|
-
}, null, 8, ["block", "context"]))), 128)) :
|
|
2044
|
-
], 46,
|
|
2037
|
+
}, null, 8, ["block", "context"]))), 128)) : y("", !0)
|
|
2038
|
+
], 46, an);
|
|
2045
2039
|
}
|
|
2046
|
-
const
|
|
2040
|
+
const ln = /* @__PURE__ */ f(rn, [["render", cn], ["__scopeId", "data-v-9786df38"]]), se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2047
2041
|
__proto__: null,
|
|
2048
|
-
default:
|
|
2042
|
+
default: ln
|
|
2049
2043
|
}, Symbol.toStringTag, { value: "Module" })), z = {};
|
|
2050
|
-
function
|
|
2044
|
+
function pn(e) {
|
|
2051
2045
|
if (h()) {
|
|
2052
2046
|
Object.assign(z, e);
|
|
2053
2047
|
const n = {
|
|
@@ -2060,32 +2054,31 @@ function fn(e) {
|
|
|
2060
2054
|
export {
|
|
2061
2055
|
tt as B,
|
|
2062
2056
|
me as C,
|
|
2063
|
-
|
|
2064
|
-
|
|
2057
|
+
at as F,
|
|
2058
|
+
_e as I,
|
|
2065
2059
|
Xe as S,
|
|
2066
|
-
|
|
2060
|
+
A as T,
|
|
2067
2061
|
Ee as V,
|
|
2068
2062
|
f as _,
|
|
2069
2063
|
Se as a,
|
|
2070
2064
|
st as b,
|
|
2071
|
-
|
|
2065
|
+
ln as c,
|
|
2072
2066
|
Ot as d,
|
|
2073
2067
|
H as e,
|
|
2074
2068
|
Q as f,
|
|
2075
2069
|
Z as g,
|
|
2076
|
-
|
|
2070
|
+
un as h,
|
|
2077
2071
|
g as i,
|
|
2078
2072
|
Bt as j,
|
|
2079
|
-
|
|
2073
|
+
ie as k,
|
|
2080
2074
|
X as l,
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
q as v
|
|
2075
|
+
Ke as m,
|
|
2076
|
+
De as n,
|
|
2077
|
+
Fe as o,
|
|
2078
|
+
je as p,
|
|
2079
|
+
Ue as q,
|
|
2080
|
+
tn as r,
|
|
2081
|
+
pn as s,
|
|
2082
|
+
mn as t,
|
|
2083
|
+
D as u
|
|
2091
2084
|
};
|