@builder.io/sdk-vue 0.2.0 → 0.2.2
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.97de2652.js → block-styles.4667431d.js} +14 -11
- package/packages/_vue2/dist/block-styles.7c2a87df.cjs +1 -0
- package/packages/_vue2/dist/{css.4d4e03cf.js → css.468435de.js} +1 -1
- package/packages/{_vue3/dist/css.785b2126.cjs → _vue2/dist/css.dce6e4eb.cjs} +2 -2
- package/packages/_vue2/dist/index.78ba6586.cjs +29 -0
- package/packages/_vue2/dist/{index.346656f6.js → index.eb91dc82.js} +340 -325
- package/packages/_vue2/dist/render-block.67e4dd65.cjs +3 -0
- package/packages/_vue2/dist/{render-block.1c1312ce.js → render-block.6f9a607a.js} +58 -63
- package/packages/_vue2/dist/{render-component.de99974e.js → render-component.10d6c8d2.js} +3 -3
- package/packages/_vue2/dist/{render-component.4ed8b740.cjs → render-component.3578089b.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.3797e28a.cjs → render-inlined-styles.56373d13.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.1c2c5bf9.js → render-inlined-styles.942eb38d.js} +4 -4
- package/packages/_vue2/dist/{render-repeated-block.dc48228e.cjs → render-repeated-block.18d7fc6e.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.d7d1e175.js → render-repeated-block.1bb5c2fb.js} +2 -2
- package/packages/_vue2/dist/{render-styles.a61feef4.js → render-styles.0d1f8872.js} +2 -2
- package/packages/_vue2/dist/{render-styles.23d118f3.cjs → render-styles.de7287b6.cjs} +3 -3
- 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 +6 -8
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +6 -8
- 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.helpers.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +4 -6
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +4 -6
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +4 -6
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +5 -7
- 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 +6 -8
- package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +1 -1
- package/packages/_vue2/dist/src/helpers/logger.d.ts +5 -0
- package/packages/_vue2/dist/src/types/builder-content.d.ts +1 -1
- package/packages/_vue2/dist/src/types/components.d.ts +1 -72
- package/packages/_vue2/dist/src/types/input.d.ts +121 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/block-styles.09955b0c.cjs +1 -0
- package/packages/_vue3/dist/{block-styles.40e4c9b5.js → block-styles.6bd36a5a.js} +14 -11
- package/packages/{_vue2/dist/css.75f390cc.cjs → _vue3/dist/css.3241302b.cjs} +2 -2
- package/packages/_vue3/dist/{css.77c76358.js → css.81a21c5a.js} +1 -1
- package/packages/_vue3/dist/{index.4931a4d1.js → index.45ab85e5.js} +506 -491
- package/packages/_vue3/dist/index.cca81180.cjs +29 -0
- package/packages/_vue3/dist/render-block.33cc5768.cjs +3 -0
- package/packages/_vue3/dist/{render-block.6fa26228.js → render-block.ec4c1913.js} +96 -101
- package/packages/_vue3/dist/{render-component.44d63ad3.js → render-component.3bd8dc76.js} +3 -3
- package/packages/_vue3/dist/{render-component.2721bc0c.cjs → render-component.c0d5e797.cjs} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.dccd4787.js → render-inlined-styles.952d2fff.js} +4 -4
- package/packages/_vue3/dist/{render-inlined-styles.b1441d2d.cjs → render-inlined-styles.b55b6667.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.e5d7da62.js → render-repeated-block.263f0cec.js} +2 -2
- package/packages/_vue3/dist/{render-repeated-block.1360a469.cjs → render-repeated-block.c3c9e926.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.850fddb0.js → render-styles.cf6faa29.js} +2 -2
- package/packages/_vue3/dist/{render-styles.e1959d28.cjs → render-styles.d1ac3a18.cjs} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +2 -2
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +2 -11
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +1 -0
- 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 -2
- package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +1 -1
- package/packages/_vue3/dist/src/helpers/logger.d.ts +5 -0
- package/packages/_vue3/dist/src/types/builder-content.d.ts +1 -1
- package/packages/_vue3/dist/src/types/components.d.ts +1 -72
- package/packages/_vue3/dist/src/types/input.d.ts +121 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.ef03a37e.cjs +0 -1
- package/packages/_vue2/dist/index.c72abf65.cjs +0 -29
- package/packages/_vue2/dist/render-block.2880ad6e.cjs +0 -3
- package/packages/_vue2/dist/src/functions/get-block-tag.d.ts +0 -3
- package/packages/_vue3/dist/block-styles.32155e57.cjs +0 -1
- package/packages/_vue3/dist/index.9fb3a7e0.cjs +0 -29
- package/packages/_vue3/dist/render-block.cfb6d51a.cjs +0 -3
- package/packages/_vue3/dist/src/functions/get-block-tag.d.ts +0 -3
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
const
|
|
1
|
+
const X = {
|
|
2
2
|
name: "builder-button",
|
|
3
3
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
4
4
|
methods: {
|
|
5
5
|
filterAttrs: function(e = {}, n) {
|
|
6
6
|
const o = "v-on:";
|
|
7
7
|
return Object.keys(e).filter((s) => {
|
|
8
|
+
if (!e[s])
|
|
9
|
+
return !1;
|
|
8
10
|
const r = s.startsWith(o);
|
|
9
11
|
return n ? r : !r;
|
|
10
12
|
}).reduce(
|
|
@@ -41,8 +43,8 @@ function h(t, e, n, o, s, r, i, l) {
|
|
|
41
43
|
if (a.functional) {
|
|
42
44
|
a._injectStyles = c;
|
|
43
45
|
var d = a.render;
|
|
44
|
-
a.render = function(f,
|
|
45
|
-
return c.call(
|
|
46
|
+
a.render = function(f, v) {
|
|
47
|
+
return c.call(v), d(f, v);
|
|
46
48
|
};
|
|
47
49
|
} else {
|
|
48
50
|
var m = a.beforeCreate;
|
|
@@ -53,22 +55,22 @@ function h(t, e, n, o, s, r, i, l) {
|
|
|
53
55
|
options: a
|
|
54
56
|
};
|
|
55
57
|
}
|
|
56
|
-
var
|
|
58
|
+
var Y = function() {
|
|
57
59
|
var e = this, n = e._self._c;
|
|
58
60
|
return e.link ? n("a", e._g(e._b({ attrs: { role: "button", href: e.link, target: e.openLinkInNewTab ? "_blank" : void 0 } }, "a", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)), [e._v(" " + e._s(e.text) + " ")]) : n("button", e._g(e._b({ class: e._classStringToObject(
|
|
59
61
|
e.attributes.class + " button-2fnk003dqad"
|
|
60
62
|
) }, "button", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)), [e._v(" " + e._s(e.text) + " ")]);
|
|
61
|
-
},
|
|
62
|
-
G,
|
|
63
|
-
J,
|
|
63
|
+
}, Q = [], Z = /* @__PURE__ */ h(
|
|
64
64
|
X,
|
|
65
|
+
Y,
|
|
66
|
+
Q,
|
|
65
67
|
!1,
|
|
66
68
|
null,
|
|
67
|
-
"
|
|
69
|
+
"a8305dd0",
|
|
68
70
|
null,
|
|
69
71
|
null
|
|
70
72
|
);
|
|
71
|
-
const
|
|
73
|
+
const ee = Z.exports, R = (t) => JSON.parse(JSON.stringify(t)), U = {
|
|
72
74
|
small: {
|
|
73
75
|
min: 320,
|
|
74
76
|
default: 321,
|
|
@@ -84,8 +86,8 @@ const Q = Y.exports, w = (t) => JSON.parse(JSON.stringify(t)), V = {
|
|
|
84
86
|
default: 991,
|
|
85
87
|
max: 1200
|
|
86
88
|
}
|
|
87
|
-
},
|
|
88
|
-
const n =
|
|
89
|
+
}, Rn = (t, e = U) => `@media (max-width: ${e[t].max}px)`, te = ({ small: t, medium: e }) => {
|
|
90
|
+
const n = R(U);
|
|
89
91
|
if (!t || !e)
|
|
90
92
|
return n;
|
|
91
93
|
const o = Math.floor(t / 2);
|
|
@@ -106,7 +108,7 @@ const Q = Y.exports, w = (t) => JSON.parse(JSON.stringify(t)), V = {
|
|
|
106
108
|
min: r,
|
|
107
109
|
default: r + 1
|
|
108
110
|
}, n;
|
|
109
|
-
},
|
|
111
|
+
}, _ = "vue2", ne = Symbol(), x = {
|
|
110
112
|
Builder: {
|
|
111
113
|
content: null,
|
|
112
114
|
context: {},
|
|
@@ -118,22 +120,22 @@ const Q = Y.exports, w = (t) => JSON.parse(JSON.stringify(t)), V = {
|
|
|
118
120
|
registeredComponents: {},
|
|
119
121
|
inheritedStyles: {}
|
|
120
122
|
},
|
|
121
|
-
key:
|
|
122
|
-
},
|
|
123
|
+
key: ne
|
|
124
|
+
}, oe = () => Promise.resolve().then(() => B).then((t) => t.default).catch((t) => {
|
|
123
125
|
throw console.error(
|
|
124
126
|
"Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
|
|
125
127
|
t
|
|
126
128
|
), t;
|
|
127
|
-
}),
|
|
129
|
+
}), se = () => import("./render-inlined-styles.942eb38d.js").then((t) => t.default).catch((t) => {
|
|
128
130
|
throw console.error(
|
|
129
131
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",
|
|
130
132
|
t
|
|
131
133
|
), t;
|
|
132
|
-
}),
|
|
134
|
+
}), re = {
|
|
133
135
|
name: "builder-columns",
|
|
134
136
|
components: {
|
|
135
|
-
RenderInlinedStyles:
|
|
136
|
-
RenderBlocks:
|
|
137
|
+
RenderInlinedStyles: se,
|
|
138
|
+
RenderBlocks: oe
|
|
137
139
|
},
|
|
138
140
|
props: [
|
|
139
141
|
"space",
|
|
@@ -148,11 +150,11 @@ const Q = Y.exports, w = (t) => JSON.parse(JSON.stringify(t)), V = {
|
|
|
148
150
|
cols: this.columns || [],
|
|
149
151
|
stackAt: this.stackColumnsAt || "tablet",
|
|
150
152
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
151
|
-
TARGET:
|
|
153
|
+
TARGET: _
|
|
152
154
|
};
|
|
153
155
|
},
|
|
154
156
|
inject: {
|
|
155
|
-
builderContext:
|
|
157
|
+
builderContext: x.key
|
|
156
158
|
},
|
|
157
159
|
computed: {
|
|
158
160
|
columnsCssVars() {
|
|
@@ -239,7 +241,7 @@ const Q = Y.exports, w = (t) => JSON.parse(JSON.stringify(t)), V = {
|
|
|
239
241
|
},
|
|
240
242
|
getWidthForBreakpointSize(t) {
|
|
241
243
|
var n, o;
|
|
242
|
-
return
|
|
244
|
+
return te(
|
|
243
245
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
244
246
|
)[t].max;
|
|
245
247
|
},
|
|
@@ -254,7 +256,7 @@ const Q = Y.exports, w = (t) => JSON.parse(JSON.stringify(t)), V = {
|
|
|
254
256
|
}
|
|
255
257
|
}
|
|
256
258
|
};
|
|
257
|
-
var
|
|
259
|
+
var ie = function() {
|
|
258
260
|
var e = this, n = e._self._c;
|
|
259
261
|
return n("div", { class: e._classStringToObject(
|
|
260
262
|
`builder-columns ${e.builderBlock.id}-breakpoints div-t9spj7joih`
|
|
@@ -267,67 +269,67 @@ var se = function() {
|
|
|
267
269
|
flexGrow: "1"
|
|
268
270
|
} } })], 1);
|
|
269
271
|
})], 2);
|
|
270
|
-
},
|
|
271
|
-
oe,
|
|
272
|
-
se,
|
|
272
|
+
}, ae = [], le = /* @__PURE__ */ h(
|
|
273
273
|
re,
|
|
274
|
+
ie,
|
|
275
|
+
ae,
|
|
274
276
|
!1,
|
|
275
277
|
null,
|
|
276
278
|
"2bb878ea",
|
|
277
279
|
null,
|
|
278
280
|
null
|
|
279
281
|
);
|
|
280
|
-
const
|
|
282
|
+
const ce = le.exports, de = {
|
|
281
283
|
name: "builder-fragment-component",
|
|
282
284
|
props: []
|
|
283
285
|
};
|
|
284
|
-
var
|
|
286
|
+
var ue = function() {
|
|
285
287
|
var e = this, n = e._self._c;
|
|
286
288
|
return n("span", [e._t("default")], 2);
|
|
287
|
-
},
|
|
288
|
-
le,
|
|
289
|
-
ce,
|
|
289
|
+
}, pe = [], me = /* @__PURE__ */ h(
|
|
290
290
|
de,
|
|
291
|
+
ue,
|
|
292
|
+
pe,
|
|
291
293
|
!1,
|
|
292
294
|
null,
|
|
293
295
|
null,
|
|
294
296
|
null,
|
|
295
297
|
null
|
|
296
298
|
);
|
|
297
|
-
const
|
|
298
|
-
function
|
|
299
|
+
const he = me.exports;
|
|
300
|
+
function T(t) {
|
|
299
301
|
return t.replace(/http(s)?:/, "");
|
|
300
302
|
}
|
|
301
|
-
function
|
|
303
|
+
function fe(t = "", e, n) {
|
|
302
304
|
const o = new RegExp("([?&])" + e + "=.*?(&|$)", "i"), s = t.indexOf("?") !== -1 ? "&" : "?";
|
|
303
305
|
return t.match(o) ? t.replace(o, "$1" + e + "=" + encodeURIComponent(n) + "$2") : t + s + e + "=" + encodeURIComponent(n);
|
|
304
306
|
}
|
|
305
|
-
function
|
|
307
|
+
function ge(t, e) {
|
|
306
308
|
if (!t || !(t != null && t.match(/cdn\.shopify\.com/)) || !e)
|
|
307
309
|
return t;
|
|
308
310
|
if (e === "master")
|
|
309
|
-
return
|
|
311
|
+
return T(t);
|
|
310
312
|
const n = t.match(
|
|
311
313
|
/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i
|
|
312
314
|
);
|
|
313
315
|
if (n) {
|
|
314
316
|
const o = t.split(n[0]), s = n[3], r = e.match("x") ? e : `${e}x`;
|
|
315
|
-
return
|
|
317
|
+
return T(`${o[0]}_${r}${s}`);
|
|
316
318
|
}
|
|
317
319
|
return null;
|
|
318
320
|
}
|
|
319
|
-
function
|
|
321
|
+
function S(t) {
|
|
320
322
|
if (!t)
|
|
321
323
|
return t;
|
|
322
324
|
const e = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
323
325
|
if (t.match(/builder\.io/)) {
|
|
324
326
|
let n = t;
|
|
325
327
|
const o = Number(t.split("?width=")[1]);
|
|
326
|
-
return isNaN(o) || (n = `${n} ${o}w`), e.filter((s) => s !== o).map((s) => `${
|
|
328
|
+
return isNaN(o) || (n = `${n} ${o}w`), e.filter((s) => s !== o).map((s) => `${fe(t, "width", s)} ${s}w`).concat([n]).join(", ");
|
|
327
329
|
}
|
|
328
|
-
return t.match(/cdn\.shopify\.com/) ? e.map((n) => [
|
|
330
|
+
return t.match(/cdn\.shopify\.com/) ? e.map((n) => [ge(t, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([t]).join(", ") : t;
|
|
329
331
|
}
|
|
330
|
-
const
|
|
332
|
+
const be = {
|
|
331
333
|
name: "builder-image",
|
|
332
334
|
props: [
|
|
333
335
|
"image",
|
|
@@ -351,10 +353,10 @@ const fe = {
|
|
|
351
353
|
return this.srcset;
|
|
352
354
|
if (this.srcset && ((n = this.image) == null ? void 0 : n.includes("builder.io/api/v1/image"))) {
|
|
353
355
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
354
|
-
return console.debug("Removed given srcset"),
|
|
356
|
+
return console.debug("Removed given srcset"), S(e);
|
|
355
357
|
} else if (this.image && !this.srcset)
|
|
356
|
-
return
|
|
357
|
-
return
|
|
358
|
+
return S(e);
|
|
359
|
+
return S(e);
|
|
358
360
|
},
|
|
359
361
|
webpSrcSet() {
|
|
360
362
|
var t;
|
|
@@ -383,54 +385,54 @@ const fe = {
|
|
|
383
385
|
}
|
|
384
386
|
}
|
|
385
387
|
};
|
|
386
|
-
var
|
|
388
|
+
var ye = function() {
|
|
387
389
|
var o, s, r, i;
|
|
388
390
|
var e = this, n = e._self._c;
|
|
389
391
|
return n("div", [n("picture", [e.webpSrcSet ? [n("source", { attrs: { type: "image/webp", srcset: e.webpSrcSet } })] : e._e(), n("img", { class: e._classStringToObject(
|
|
390
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
392
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-1pl23ac79ld"
|
|
391
393
|
), style: {
|
|
392
394
|
objectPosition: e.backgroundPosition || "center",
|
|
393
395
|
objectFit: e.backgroundSize || "cover",
|
|
394
396
|
...e.aspectRatioCss
|
|
395
|
-
}, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } })], 2), e.aspectRatio && !(((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length) && e.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-
|
|
397
|
+
}, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } })], 2), e.aspectRatio && !(((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length) && e.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-1pl23ac79ld", style: {
|
|
396
398
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
397
|
-
} })] : e._e(), ((i = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : i.length) && e.fitContent ? [e._t("default")] : e._e(), !e.fitContent && e.children ? [n("div", { staticClass: "div-
|
|
398
|
-
},
|
|
399
|
-
fe,
|
|
400
|
-
ge,
|
|
399
|
+
} })] : e._e(), ((i = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : i.length) && e.fitContent ? [e._t("default")] : e._e(), !e.fitContent && e.children ? [n("div", { staticClass: "div-1pl23ac79ld-2" }, [e._t("default")], 2)] : e._e()], 2);
|
|
400
|
+
}, ve = [], _e = /* @__PURE__ */ h(
|
|
401
401
|
be,
|
|
402
|
+
ye,
|
|
403
|
+
ve,
|
|
402
404
|
!1,
|
|
403
405
|
null,
|
|
404
|
-
"
|
|
406
|
+
"b5206874",
|
|
405
407
|
null,
|
|
406
408
|
null
|
|
407
409
|
);
|
|
408
|
-
const
|
|
410
|
+
const xe = _e.exports;
|
|
409
411
|
function p() {
|
|
410
412
|
return typeof window < "u" && typeof document < "u";
|
|
411
413
|
}
|
|
412
|
-
function
|
|
414
|
+
function ke() {
|
|
413
415
|
return p() && window.self !== window.top;
|
|
414
416
|
}
|
|
415
417
|
function g() {
|
|
416
|
-
return
|
|
418
|
+
return ke() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
417
419
|
}
|
|
418
|
-
const
|
|
420
|
+
const Se = () => import("./block-styles.4667431d.js").then((t) => t.default).catch((t) => {
|
|
419
421
|
throw console.error(
|
|
420
422
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
421
423
|
t
|
|
422
424
|
), t;
|
|
423
|
-
}),
|
|
425
|
+
}), we = () => import("./render-block.6f9a607a.js").then((t) => t.default).catch((t) => {
|
|
424
426
|
throw console.error(
|
|
425
427
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
426
428
|
t
|
|
427
429
|
), t;
|
|
428
|
-
}),
|
|
430
|
+
}), Ce = {
|
|
429
431
|
name: "render-blocks",
|
|
430
|
-
components: { RenderBlock:
|
|
432
|
+
components: { RenderBlock: we, BlockStyles: Se },
|
|
431
433
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
432
434
|
inject: {
|
|
433
|
-
builderContext:
|
|
435
|
+
builderContext: x.key
|
|
434
436
|
},
|
|
435
437
|
computed: {
|
|
436
438
|
className() {
|
|
@@ -476,7 +478,7 @@ const xe = () => import("./block-styles.97de2652.js").then((t) => t.default).cat
|
|
|
476
478
|
}
|
|
477
479
|
}
|
|
478
480
|
};
|
|
479
|
-
var
|
|
481
|
+
var Ie = function() {
|
|
480
482
|
var e = this, n = e._self._c;
|
|
481
483
|
return n("div", { class: e._classStringToObject(e.className + " div-21azgz5avex"), style: e.styleProp, attrs: { "builder-path": e.path, "builder-parent-id": e.parent, dataSet: {
|
|
482
484
|
class: e.className
|
|
@@ -489,20 +491,20 @@ var Ce = function() {
|
|
|
489
491
|
}) : e._e(), e.blocks ? e._l(e.blocks, function(o, s) {
|
|
490
492
|
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: e.builderContext } });
|
|
491
493
|
}) : e._e()], 2);
|
|
492
|
-
},
|
|
493
|
-
Se,
|
|
494
|
+
}, Re = [], Te = /* @__PURE__ */ h(
|
|
494
495
|
Ce,
|
|
495
|
-
|
|
496
|
+
Ie,
|
|
497
|
+
Re,
|
|
496
498
|
!1,
|
|
497
499
|
null,
|
|
498
500
|
"57df98d3",
|
|
499
501
|
null,
|
|
500
502
|
null
|
|
501
503
|
);
|
|
502
|
-
const
|
|
504
|
+
const $e = Te.exports, B = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
503
505
|
__proto__: null,
|
|
504
|
-
default:
|
|
505
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
506
|
+
default: $e
|
|
507
|
+
}, Symbol.toStringTag, { value: "Module" })), Ee = {
|
|
506
508
|
name: "Core:Button",
|
|
507
509
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
508
510
|
defaultStyles: {
|
|
@@ -538,10 +540,10 @@ const Re = Ie.exports, O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
538
540
|
],
|
|
539
541
|
static: !0,
|
|
540
542
|
noWrap: !0
|
|
541
|
-
},
|
|
543
|
+
}, k = (t) => {
|
|
542
544
|
const e = t.toString().trim();
|
|
543
545
|
return `return (${!e.startsWith("function") && !e.startsWith("(") ? "function " : ""}${e}).apply(this, arguments)`;
|
|
544
|
-
},
|
|
546
|
+
}, Ae = {
|
|
545
547
|
name: "Columns",
|
|
546
548
|
inputs: [
|
|
547
549
|
{
|
|
@@ -728,7 +730,7 @@ const Re = Ie.exports, O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
728
730
|
]
|
|
729
731
|
}
|
|
730
732
|
],
|
|
731
|
-
onChange:
|
|
733
|
+
onChange: k((t) => {
|
|
732
734
|
function e() {
|
|
733
735
|
n.forEach((o) => {
|
|
734
736
|
o.delete("width");
|
|
@@ -765,13 +767,13 @@ const Re = Ie.exports, O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
765
767
|
advanced: !0
|
|
766
768
|
}
|
|
767
769
|
]
|
|
768
|
-
},
|
|
770
|
+
}, Fe = {
|
|
769
771
|
name: "Fragment",
|
|
770
772
|
static: !0,
|
|
771
773
|
hidden: !0,
|
|
772
774
|
canHaveChildren: !0,
|
|
773
775
|
noWrap: !0
|
|
774
|
-
},
|
|
776
|
+
}, Pe = {
|
|
775
777
|
name: "Image",
|
|
776
778
|
static: !0,
|
|
777
779
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -790,7 +792,7 @@ const Re = Ie.exports, O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
790
792
|
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
791
793
|
required: !0,
|
|
792
794
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
793
|
-
onChange:
|
|
795
|
+
onChange: k(
|
|
794
796
|
(t) => {
|
|
795
797
|
t.delete("srcset"), t.delete("noWebp");
|
|
796
798
|
function n(i, l = 6e4) {
|
|
@@ -942,13 +944,15 @@ const Re = Ie.exports, O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
942
944
|
}
|
|
943
945
|
}
|
|
944
946
|
]
|
|
945
|
-
},
|
|
947
|
+
}, Ve = {
|
|
946
948
|
name: "builder-section-component",
|
|
947
949
|
props: ["maxWidth", "attributes"],
|
|
948
950
|
methods: {
|
|
949
951
|
filterAttrs: function(e = {}, n) {
|
|
950
952
|
const o = "v-on:";
|
|
951
953
|
return Object.keys(e).filter((s) => {
|
|
954
|
+
if (!e[s])
|
|
955
|
+
return !1;
|
|
952
956
|
const r = s.startsWith(o);
|
|
953
957
|
return n ? r : !r;
|
|
954
958
|
}).reduce(
|
|
@@ -961,7 +965,7 @@ const Re = Ie.exports, O = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.
|
|
|
961
965
|
}
|
|
962
966
|
}
|
|
963
967
|
};
|
|
964
|
-
var
|
|
968
|
+
var Oe = function() {
|
|
965
969
|
var e = this, n = e._self._c;
|
|
966
970
|
return n("section", e._g(e._b({ style: {
|
|
967
971
|
width: "100%",
|
|
@@ -975,17 +979,17 @@ var Pe = function() {
|
|
|
975
979
|
marginLeft: "auto",
|
|
976
980
|
marginRight: "auto"
|
|
977
981
|
} }, "section", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)), [e._t("default")], 2);
|
|
978
|
-
},
|
|
979
|
-
Fe,
|
|
980
|
-
Pe,
|
|
982
|
+
}, Ue = [], Be = /* @__PURE__ */ h(
|
|
981
983
|
Ve,
|
|
984
|
+
Oe,
|
|
985
|
+
Ue,
|
|
982
986
|
!1,
|
|
983
987
|
null,
|
|
984
988
|
null,
|
|
985
989
|
null,
|
|
986
990
|
null
|
|
987
991
|
);
|
|
988
|
-
const
|
|
992
|
+
const We = Be.exports, Me = {
|
|
989
993
|
name: "Symbol",
|
|
990
994
|
noWrap: !0,
|
|
991
995
|
static: !0,
|
|
@@ -1023,12 +1027,16 @@ const Be = Oe.exports, Ue = {
|
|
|
1023
1027
|
type: "boolean"
|
|
1024
1028
|
}
|
|
1025
1029
|
]
|
|
1030
|
+
}, w = "[Builder.io]: ", b = {
|
|
1031
|
+
log: (...t) => console.log(w, ...t),
|
|
1032
|
+
error: (...t) => console.error(w, ...t),
|
|
1033
|
+
warn: (...t) => console.warn(w, ...t)
|
|
1026
1034
|
};
|
|
1027
|
-
function
|
|
1035
|
+
function Ne() {
|
|
1028
1036
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
1029
1037
|
}
|
|
1030
|
-
function
|
|
1031
|
-
const t =
|
|
1038
|
+
function Le() {
|
|
1039
|
+
const t = Ne().fetch;
|
|
1032
1040
|
if (typeof t > "u")
|
|
1033
1041
|
throw console.warn(
|
|
1034
1042
|
`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
@@ -1036,12 +1044,12 @@ function Me() {
|
|
|
1036
1044
|
), new Error("Builder SDK could not find a global `fetch` function");
|
|
1037
1045
|
return t;
|
|
1038
1046
|
}
|
|
1039
|
-
const
|
|
1047
|
+
const W = Le(), y = (t) => t != null, ze = (t) => {
|
|
1040
1048
|
if (t === "localhost" || t === "127.0.0.1")
|
|
1041
1049
|
return t;
|
|
1042
1050
|
const e = t.split(".");
|
|
1043
1051
|
return e.length > 2 ? e.slice(1).join(".") : t;
|
|
1044
|
-
},
|
|
1052
|
+
}, M = async ({
|
|
1045
1053
|
name: t,
|
|
1046
1054
|
canTrack: e
|
|
1047
1055
|
}) => {
|
|
@@ -1052,23 +1060,23 @@ const B = Me(), b = (t) => t != null, Ne = (t) => {
|
|
|
1052
1060
|
console.debug("[COOKIE] GET error: ", o);
|
|
1053
1061
|
return;
|
|
1054
1062
|
}
|
|
1055
|
-
},
|
|
1063
|
+
}, Ke = (t) => t.map(([e, n]) => n ? `${e}=${n}` : e).filter(y).join("; "), He = [
|
|
1056
1064
|
["secure", ""],
|
|
1057
1065
|
["SameSite", "None"]
|
|
1058
|
-
],
|
|
1066
|
+
], De = ({
|
|
1059
1067
|
name: t,
|
|
1060
1068
|
value: e,
|
|
1061
1069
|
expires: n
|
|
1062
1070
|
}) => {
|
|
1063
|
-
const s = (p() ? location.protocol === "https:" : !0) ?
|
|
1071
|
+
const s = (p() ? location.protocol === "https:" : !0) ? He : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [
|
|
1064
1072
|
[t, e],
|
|
1065
1073
|
...r,
|
|
1066
1074
|
["path", "/"],
|
|
1067
|
-
["domain",
|
|
1075
|
+
["domain", ze(window.location.hostname)],
|
|
1068
1076
|
...s
|
|
1069
1077
|
];
|
|
1070
|
-
return
|
|
1071
|
-
},
|
|
1078
|
+
return Ke(i);
|
|
1079
|
+
}, N = async ({
|
|
1072
1080
|
name: t,
|
|
1073
1081
|
value: e,
|
|
1074
1082
|
expires: n,
|
|
@@ -1077,19 +1085,19 @@ const B = Me(), b = (t) => t != null, Ne = (t) => {
|
|
|
1077
1085
|
try {
|
|
1078
1086
|
if (!o)
|
|
1079
1087
|
return;
|
|
1080
|
-
const s =
|
|
1088
|
+
const s = De({ name: t, value: e, expires: n });
|
|
1081
1089
|
document.cookie = s;
|
|
1082
1090
|
} catch (s) {
|
|
1083
1091
|
console.warn("[COOKIE] SET error: ", s);
|
|
1084
1092
|
}
|
|
1085
|
-
},
|
|
1093
|
+
}, qe = "builderio.variations", L = (t) => `${qe}.${t}`, Ge = ({
|
|
1086
1094
|
contentId: t,
|
|
1087
1095
|
canTrack: e
|
|
1088
|
-
}) =>
|
|
1096
|
+
}) => M({ name: L(t), canTrack: e }), Je = ({
|
|
1089
1097
|
contentId: t,
|
|
1090
1098
|
canTrack: e,
|
|
1091
1099
|
value: n
|
|
1092
|
-
}) =>
|
|
1100
|
+
}) => N({ name: L(t), value: n, canTrack: e }), Xe = (t) => y(t.id) && y(t.variations) && Object.keys(t.variations).length > 0, Ye = ({
|
|
1093
1101
|
id: t,
|
|
1094
1102
|
variations: e
|
|
1095
1103
|
}) => {
|
|
@@ -1102,7 +1110,7 @@ const B = Me(), b = (t) => t != null, Ne = (t) => {
|
|
|
1102
1110
|
return r;
|
|
1103
1111
|
}
|
|
1104
1112
|
return t;
|
|
1105
|
-
},
|
|
1113
|
+
}, $ = ({
|
|
1106
1114
|
item: t,
|
|
1107
1115
|
testGroupId: e
|
|
1108
1116
|
}) => {
|
|
@@ -1115,69 +1123,69 @@ const B = Me(), b = (t) => t != null, Ne = (t) => {
|
|
|
1115
1123
|
testVariationId: n.id,
|
|
1116
1124
|
testVariationName: n.name || (n.id === t.id ? "Default" : "")
|
|
1117
1125
|
};
|
|
1118
|
-
},
|
|
1126
|
+
}, Qe = async ({
|
|
1119
1127
|
item: t,
|
|
1120
1128
|
canTrack: e
|
|
1121
1129
|
}) => {
|
|
1122
|
-
const n = await
|
|
1130
|
+
const n = await Ge({
|
|
1123
1131
|
canTrack: e,
|
|
1124
1132
|
contentId: t.id
|
|
1125
|
-
}), o = n ?
|
|
1133
|
+
}), o = n ? $({ item: t, testGroupId: n }) : void 0;
|
|
1126
1134
|
if (o)
|
|
1127
1135
|
return o;
|
|
1128
1136
|
{
|
|
1129
|
-
const s =
|
|
1137
|
+
const s = Ye({
|
|
1130
1138
|
variations: t.variations,
|
|
1131
1139
|
id: t.id
|
|
1132
1140
|
});
|
|
1133
|
-
return
|
|
1141
|
+
return Je({
|
|
1134
1142
|
contentId: t.id,
|
|
1135
1143
|
value: s,
|
|
1136
1144
|
canTrack: e
|
|
1137
1145
|
}).catch((r) => {
|
|
1138
1146
|
console.error("could not store A/B test variation: ", r);
|
|
1139
|
-
}),
|
|
1147
|
+
}), $({ item: t, testGroupId: s });
|
|
1140
1148
|
}
|
|
1141
|
-
},
|
|
1149
|
+
}, Ze = async ({
|
|
1142
1150
|
item: t,
|
|
1143
1151
|
canTrack: e
|
|
1144
1152
|
}) => {
|
|
1145
|
-
if (!
|
|
1153
|
+
if (!Xe(t))
|
|
1146
1154
|
return;
|
|
1147
|
-
const n = await
|
|
1155
|
+
const n = await Qe({ item: t, canTrack: e });
|
|
1148
1156
|
Object.assign(t, n);
|
|
1149
1157
|
};
|
|
1150
|
-
function
|
|
1158
|
+
function C(t, e = null, n = ".") {
|
|
1151
1159
|
return Object.keys(t).reduce((o, s) => {
|
|
1152
1160
|
const r = t[s], i = [e, s].filter(Boolean).join(n);
|
|
1153
1161
|
return [
|
|
1154
1162
|
typeof r == "object",
|
|
1155
1163
|
r !== null,
|
|
1156
1164
|
!(Array.isArray(r) && r.length === 0)
|
|
1157
|
-
].every(Boolean) ? { ...o, ...
|
|
1165
|
+
].every(Boolean) ? { ...o, ...C(r, i, n) } : { ...o, [i]: r };
|
|
1158
1166
|
}, {});
|
|
1159
1167
|
}
|
|
1160
|
-
const
|
|
1168
|
+
const E = "builder.", et = "options.", tt = (t) => {
|
|
1161
1169
|
const e = {};
|
|
1162
1170
|
return t.forEach((n, o) => {
|
|
1163
1171
|
e[o] = n;
|
|
1164
1172
|
}), e;
|
|
1165
|
-
},
|
|
1173
|
+
}, nt = (t) => {
|
|
1166
1174
|
if (!t)
|
|
1167
1175
|
return {};
|
|
1168
|
-
const e =
|
|
1176
|
+
const e = z(t), n = {};
|
|
1169
1177
|
return Object.keys(e).forEach((o) => {
|
|
1170
|
-
if (o.startsWith(
|
|
1171
|
-
const s = o.replace(
|
|
1178
|
+
if (o.startsWith(E)) {
|
|
1179
|
+
const s = o.replace(E, "").replace(et, "");
|
|
1172
1180
|
n[s] = e[o];
|
|
1173
1181
|
}
|
|
1174
1182
|
}), n;
|
|
1175
|
-
},
|
|
1183
|
+
}, ot = () => {
|
|
1176
1184
|
if (!p())
|
|
1177
1185
|
return {};
|
|
1178
1186
|
const t = new URLSearchParams(window.location.search);
|
|
1179
|
-
return
|
|
1180
|
-
},
|
|
1187
|
+
return nt(t);
|
|
1188
|
+
}, z = (t) => t instanceof URLSearchParams ? tt(t) : t, st = "v3", rt = (t) => {
|
|
1181
1189
|
const {
|
|
1182
1190
|
limit: e = 30,
|
|
1183
1191
|
userAttributes: n,
|
|
@@ -1187,7 +1195,7 @@ const T = "builder.", Qe = "options.", Ze = (t) => {
|
|
|
1187
1195
|
apiKey: i,
|
|
1188
1196
|
includeRefs: l = !0,
|
|
1189
1197
|
locale: a,
|
|
1190
|
-
apiVersion: c =
|
|
1198
|
+
apiVersion: c = st
|
|
1191
1199
|
} = t;
|
|
1192
1200
|
if (!i)
|
|
1193
1201
|
throw new Error("Missing API key");
|
|
@@ -1198,44 +1206,48 @@ const T = "builder.", Qe = "options.", Ze = (t) => {
|
|
|
1198
1206
|
const d = new URL(
|
|
1199
1207
|
`https://cdn.builder.io/api/${c}/content/${r}?apiKey=${i}&limit=${e}&noTraverse=${s}&includeRefs=${l}${a ? `&locale=${a}` : ""}`
|
|
1200
1208
|
), m = {
|
|
1201
|
-
...
|
|
1202
|
-
...
|
|
1203
|
-
}, u =
|
|
1209
|
+
...ot(),
|
|
1210
|
+
...z(t.options || {})
|
|
1211
|
+
}, u = C(m);
|
|
1204
1212
|
for (const f in u)
|
|
1205
1213
|
d.searchParams.set(f, String(u[f]));
|
|
1206
1214
|
if (n && d.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
1207
|
-
const f =
|
|
1208
|
-
for (const
|
|
1209
|
-
d.searchParams.set(
|
|
1215
|
+
const f = C({ query: o });
|
|
1216
|
+
for (const v in f)
|
|
1217
|
+
d.searchParams.set(v, JSON.stringify(f[v]));
|
|
1210
1218
|
}
|
|
1211
1219
|
return d;
|
|
1212
1220
|
};
|
|
1213
|
-
async function
|
|
1214
|
-
const e = await
|
|
1215
|
-
return "results" in e && (e == null ? void 0 : e.results[0]) || null;
|
|
1221
|
+
async function K(t) {
|
|
1222
|
+
const e = await it({ ...t, limit: 1 });
|
|
1223
|
+
return e && "results" in e && (e == null ? void 0 : e.results[0]) || null;
|
|
1216
1224
|
}
|
|
1217
|
-
async function
|
|
1218
|
-
const e = ot(t), o = await (await B(e.href)).json();
|
|
1219
|
-
if ("status" in o && !("results" in o))
|
|
1220
|
-
return console.error("[Builder.io]: Error fetching data. ", o, t), o;
|
|
1221
|
-
const s = t.canTrack !== !1;
|
|
1225
|
+
async function it(t) {
|
|
1222
1226
|
try {
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1227
|
+
const e = rt(t), o = await (await W(e.href)).json();
|
|
1228
|
+
if ("status" in o && !("results" in o))
|
|
1229
|
+
return b.error("Error fetching data. ", o, t), o;
|
|
1230
|
+
const s = t.canTrack !== !1;
|
|
1231
|
+
try {
|
|
1232
|
+
if (s && Array.isArray(o.results))
|
|
1233
|
+
for (const r of o.results)
|
|
1234
|
+
await Ze({ item: r, canTrack: s });
|
|
1235
|
+
} catch (r) {
|
|
1236
|
+
b.error("Could not setup A/B testing. ", r);
|
|
1237
|
+
}
|
|
1238
|
+
return o;
|
|
1239
|
+
} catch (e) {
|
|
1240
|
+
return b.error("Error fetching data. ", e), null;
|
|
1228
1241
|
}
|
|
1229
|
-
return o;
|
|
1230
1242
|
}
|
|
1231
|
-
const
|
|
1243
|
+
const at = () => Promise.resolve().then(() => In).then((t) => t.default).catch((t) => {
|
|
1232
1244
|
throw console.error(
|
|
1233
1245
|
"Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
|
|
1234
1246
|
t
|
|
1235
1247
|
), t;
|
|
1236
|
-
}),
|
|
1248
|
+
}), lt = {
|
|
1237
1249
|
name: "builder-symbol",
|
|
1238
|
-
components: { RenderContent:
|
|
1250
|
+
components: { RenderContent: at },
|
|
1239
1251
|
props: ["attributes", "symbol", "dynamic"],
|
|
1240
1252
|
data() {
|
|
1241
1253
|
var t, e, n;
|
|
@@ -1250,7 +1262,7 @@ const rt = () => Promise.resolve().then(() => Cn).then((t) => t.default).catch((
|
|
|
1250
1262
|
};
|
|
1251
1263
|
},
|
|
1252
1264
|
inject: {
|
|
1253
|
-
builderContext:
|
|
1265
|
+
builderContext: x.key
|
|
1254
1266
|
},
|
|
1255
1267
|
mounted() {
|
|
1256
1268
|
this.fetchContent();
|
|
@@ -1273,7 +1285,7 @@ const rt = () => Promise.resolve().then(() => Cn).then((t) => t.default).catch((
|
|
|
1273
1285
|
methods: {
|
|
1274
1286
|
fetchContent() {
|
|
1275
1287
|
var t, e;
|
|
1276
|
-
!this.contentToUse && ((t = this.symbol) == null ? void 0 : t.model) && ((e = this.builderContext) == null ? void 0 : e.apiKey) &&
|
|
1288
|
+
!this.contentToUse && ((t = this.symbol) == null ? void 0 : t.model) && ((e = this.builderContext) == null ? void 0 : e.apiKey) && K({
|
|
1277
1289
|
model: this.symbol.model,
|
|
1278
1290
|
apiKey: this.builderContext.apiKey,
|
|
1279
1291
|
apiVersion: this.builderContext.apiVersion,
|
|
@@ -1283,15 +1295,14 @@ const rt = () => Promise.resolve().then(() => Cn).then((t) => t.default).catch((
|
|
|
1283
1295
|
}).then((n) => {
|
|
1284
1296
|
n && (this.contentToUse = n);
|
|
1285
1297
|
}).catch((n) => {
|
|
1286
|
-
|
|
1287
|
-
"[Builder.io]: Could not fetch symbol content: ",
|
|
1288
|
-
n
|
|
1289
|
-
);
|
|
1298
|
+
b.error("Could not fetch symbol content: ", n);
|
|
1290
1299
|
});
|
|
1291
1300
|
},
|
|
1292
1301
|
filterAttrs: function(e = {}, n) {
|
|
1293
1302
|
const o = "v-on:";
|
|
1294
1303
|
return Object.keys(e).filter((s) => {
|
|
1304
|
+
if (!e[s])
|
|
1305
|
+
return !1;
|
|
1295
1306
|
const r = s.startsWith(o);
|
|
1296
1307
|
return n ? r : !r;
|
|
1297
1308
|
}).reduce(
|
|
@@ -1313,7 +1324,7 @@ const rt = () => Promise.resolve().then(() => Cn).then((t) => t.default).catch((
|
|
|
1313
1324
|
}
|
|
1314
1325
|
}
|
|
1315
1326
|
};
|
|
1316
|
-
var
|
|
1327
|
+
var ct = function() {
|
|
1317
1328
|
var o, s, r, i;
|
|
1318
1329
|
var e = this, n = e._self._c;
|
|
1319
1330
|
return n("div", e._g(e._b({ class: e._classStringToObject(e.className), attrs: { dataSet: {
|
|
@@ -1323,17 +1334,17 @@ var at = function() {
|
|
|
1323
1334
|
...e.builderContext.state,
|
|
1324
1335
|
...(r = (s = e.contentToUse) == null ? void 0 : s.data) == null ? void 0 : r.state
|
|
1325
1336
|
}, model: (i = e.symbol) == null ? void 0 : i.model, content: e.contentToUse } })], 1);
|
|
1326
|
-
},
|
|
1327
|
-
it,
|
|
1328
|
-
at,
|
|
1337
|
+
}, dt = [], ut = /* @__PURE__ */ h(
|
|
1329
1338
|
lt,
|
|
1339
|
+
ct,
|
|
1340
|
+
dt,
|
|
1330
1341
|
!1,
|
|
1331
1342
|
null,
|
|
1332
1343
|
null,
|
|
1333
1344
|
null,
|
|
1334
1345
|
null
|
|
1335
1346
|
);
|
|
1336
|
-
const
|
|
1347
|
+
const pt = ut.exports, mt = {
|
|
1337
1348
|
name: "Text",
|
|
1338
1349
|
static: !0,
|
|
1339
1350
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
@@ -1352,26 +1363,26 @@ const dt = ct.exports, ut = {
|
|
|
1352
1363
|
height: "auto",
|
|
1353
1364
|
textAlign: "center"
|
|
1354
1365
|
}
|
|
1355
|
-
},
|
|
1366
|
+
}, ht = {
|
|
1356
1367
|
name: "builder-text",
|
|
1357
1368
|
props: ["text"]
|
|
1358
1369
|
};
|
|
1359
|
-
var
|
|
1370
|
+
var ft = function() {
|
|
1360
1371
|
var e = this, n = e._self._c;
|
|
1361
1372
|
return n("span", { staticClass: "builder-text", style: {
|
|
1362
1373
|
outline: "none"
|
|
1363
1374
|
}, domProps: { innerHTML: e._s(e.text) } });
|
|
1364
|
-
},
|
|
1365
|
-
pt,
|
|
1366
|
-
mt,
|
|
1375
|
+
}, gt = [], bt = /* @__PURE__ */ h(
|
|
1367
1376
|
ht,
|
|
1377
|
+
ft,
|
|
1378
|
+
gt,
|
|
1368
1379
|
!1,
|
|
1369
1380
|
null,
|
|
1370
1381
|
null,
|
|
1371
1382
|
null,
|
|
1372
1383
|
null
|
|
1373
1384
|
);
|
|
1374
|
-
const
|
|
1385
|
+
const yt = bt.exports, vt = {
|
|
1375
1386
|
name: "Video",
|
|
1376
1387
|
canHaveChildren: !0,
|
|
1377
1388
|
defaultStyles: {
|
|
@@ -1472,7 +1483,7 @@ const gt = ft.exports, bt = {
|
|
|
1472
1483
|
advanced: !0
|
|
1473
1484
|
}
|
|
1474
1485
|
]
|
|
1475
|
-
},
|
|
1486
|
+
}, _t = {
|
|
1476
1487
|
name: "builder-video",
|
|
1477
1488
|
props: [
|
|
1478
1489
|
"autoPlay",
|
|
@@ -1514,7 +1525,7 @@ const gt = ft.exports, bt = {
|
|
|
1514
1525
|
}
|
|
1515
1526
|
}
|
|
1516
1527
|
};
|
|
1517
|
-
var
|
|
1528
|
+
var xt = function() {
|
|
1518
1529
|
var o;
|
|
1519
1530
|
var e = this, n = e._self._c;
|
|
1520
1531
|
return n("video", e._b({ style: {
|
|
@@ -1525,17 +1536,17 @@ var vt = function() {
|
|
|
1525
1536
|
objectPosition: e.position,
|
|
1526
1537
|
borderRadius: 1
|
|
1527
1538
|
}, attrs: { src: e.video || "no-src", poster: e.posterImage } }, "video", e.spreadProps, !1));
|
|
1528
|
-
},
|
|
1529
|
-
yt,
|
|
1530
|
-
vt,
|
|
1539
|
+
}, kt = [], St = /* @__PURE__ */ h(
|
|
1531
1540
|
_t,
|
|
1541
|
+
xt,
|
|
1542
|
+
kt,
|
|
1532
1543
|
!1,
|
|
1533
1544
|
null,
|
|
1534
1545
|
null,
|
|
1535
1546
|
null,
|
|
1536
1547
|
null
|
|
1537
1548
|
);
|
|
1538
|
-
const
|
|
1549
|
+
const wt = St.exports, Ct = {
|
|
1539
1550
|
name: "Embed",
|
|
1540
1551
|
static: !0,
|
|
1541
1552
|
inputs: [
|
|
@@ -1545,7 +1556,7 @@ const kt = xt.exports, St = {
|
|
|
1545
1556
|
required: !0,
|
|
1546
1557
|
defaultValue: "",
|
|
1547
1558
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1548
|
-
onChange:
|
|
1559
|
+
onChange: k(
|
|
1549
1560
|
(t) => {
|
|
1550
1561
|
const e = t.get("url");
|
|
1551
1562
|
if (e)
|
|
@@ -1570,11 +1581,11 @@ const kt = xt.exports, St = {
|
|
|
1570
1581
|
hideFromUI: !0
|
|
1571
1582
|
}
|
|
1572
1583
|
]
|
|
1573
|
-
},
|
|
1584
|
+
}, It = [
|
|
1574
1585
|
"text/javascript",
|
|
1575
1586
|
"application/javascript",
|
|
1576
1587
|
"application/ecmascript"
|
|
1577
|
-
],
|
|
1588
|
+
], Rt = (t) => It.includes(t.type), Tt = {
|
|
1578
1589
|
name: "builder-embed",
|
|
1579
1590
|
props: ["content"],
|
|
1580
1591
|
data() {
|
|
@@ -1607,7 +1618,7 @@ const kt = xt.exports, St = {
|
|
|
1607
1618
|
this.scriptsInserted.push(n.src);
|
|
1608
1619
|
const o = document.createElement("script");
|
|
1609
1620
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
1610
|
-
} else if (
|
|
1621
|
+
} else if (Rt(n) && !this.scriptsRun.includes(n.innerText))
|
|
1611
1622
|
try {
|
|
1612
1623
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
1613
1624
|
} catch (o) {
|
|
@@ -1617,20 +1628,20 @@ const kt = xt.exports, St = {
|
|
|
1617
1628
|
}
|
|
1618
1629
|
}
|
|
1619
1630
|
};
|
|
1620
|
-
var
|
|
1631
|
+
var $t = function() {
|
|
1621
1632
|
var e = this, n = e._self._c;
|
|
1622
1633
|
return n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: e._s(e.content) } });
|
|
1623
|
-
},
|
|
1624
|
-
It,
|
|
1625
|
-
Rt,
|
|
1634
|
+
}, Et = [], At = /* @__PURE__ */ h(
|
|
1626
1635
|
Tt,
|
|
1636
|
+
$t,
|
|
1637
|
+
Et,
|
|
1627
1638
|
!1,
|
|
1628
1639
|
null,
|
|
1629
1640
|
null,
|
|
1630
1641
|
null,
|
|
1631
1642
|
null
|
|
1632
1643
|
);
|
|
1633
|
-
const
|
|
1644
|
+
const Ft = At.exports, Pt = {
|
|
1634
1645
|
name: "builder-img-component",
|
|
1635
1646
|
props: [
|
|
1636
1647
|
"backgroundSize",
|
|
@@ -1647,6 +1658,8 @@ const Et = $t.exports, At = {
|
|
|
1647
1658
|
filterAttrs: function(e = {}, n) {
|
|
1648
1659
|
const o = "v-on:";
|
|
1649
1660
|
return Object.keys(e).filter((s) => {
|
|
1661
|
+
if (!e[s])
|
|
1662
|
+
return !1;
|
|
1650
1663
|
const r = s.startsWith(o);
|
|
1651
1664
|
return n ? r : !r;
|
|
1652
1665
|
}).reduce(
|
|
@@ -1665,17 +1678,17 @@ var jt = function() {
|
|
|
1665
1678
|
objectFit: e.backgroundSize || "cover",
|
|
1666
1679
|
objectPosition: e.backgroundPosition || "center"
|
|
1667
1680
|
}, attrs: { alt: e.altText, src: e.imgSrc || e.image } }, "img", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)));
|
|
1668
|
-
},
|
|
1669
|
-
|
|
1681
|
+
}, Vt = [], Ot = /* @__PURE__ */ h(
|
|
1682
|
+
Pt,
|
|
1670
1683
|
jt,
|
|
1671
|
-
|
|
1684
|
+
Vt,
|
|
1672
1685
|
!1,
|
|
1673
1686
|
null,
|
|
1674
1687
|
null,
|
|
1675
1688
|
null,
|
|
1676
1689
|
null
|
|
1677
1690
|
);
|
|
1678
|
-
const
|
|
1691
|
+
const Ut = Ot.exports, Bt = {
|
|
1679
1692
|
name: "Raw:Img",
|
|
1680
1693
|
hideFromInsertMenu: !0,
|
|
1681
1694
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -1690,7 +1703,7 @@ const Vt = Pt.exports, Ot = {
|
|
|
1690
1703
|
],
|
|
1691
1704
|
noWrap: !0,
|
|
1692
1705
|
static: !0
|
|
1693
|
-
},
|
|
1706
|
+
}, Wt = {
|
|
1694
1707
|
name: "builder-custom-code",
|
|
1695
1708
|
props: ["replaceNodes", "code"],
|
|
1696
1709
|
data() {
|
|
@@ -1738,22 +1751,22 @@ const Vt = Pt.exports, Ot = {
|
|
|
1738
1751
|
}
|
|
1739
1752
|
}
|
|
1740
1753
|
};
|
|
1741
|
-
var
|
|
1754
|
+
var Mt = function() {
|
|
1742
1755
|
var e = this, n = e._self._c;
|
|
1743
1756
|
return n("div", { ref: "elem", class: e._classStringToObject(
|
|
1744
1757
|
"builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
|
|
1745
1758
|
), domProps: { innerHTML: e._s(e.code) } });
|
|
1746
|
-
},
|
|
1747
|
-
Bt,
|
|
1748
|
-
Ut,
|
|
1759
|
+
}, Nt = [], Lt = /* @__PURE__ */ h(
|
|
1749
1760
|
Wt,
|
|
1761
|
+
Mt,
|
|
1762
|
+
Nt,
|
|
1750
1763
|
!1,
|
|
1751
1764
|
null,
|
|
1752
1765
|
null,
|
|
1753
1766
|
null,
|
|
1754
1767
|
null
|
|
1755
1768
|
);
|
|
1756
|
-
const
|
|
1769
|
+
const zt = Lt.exports, Kt = {
|
|
1757
1770
|
name: "Custom Code",
|
|
1758
1771
|
static: !0,
|
|
1759
1772
|
requiredPermissions: ["editCode"],
|
|
@@ -1779,20 +1792,20 @@ const Nt = Mt.exports, Lt = {
|
|
|
1779
1792
|
advanced: !0
|
|
1780
1793
|
}
|
|
1781
1794
|
]
|
|
1782
|
-
},
|
|
1783
|
-
{ component:
|
|
1784
|
-
{ component:
|
|
1785
|
-
{ component:
|
|
1786
|
-
{ component:
|
|
1787
|
-
{ component:
|
|
1788
|
-
{ component:
|
|
1789
|
-
{ component:
|
|
1790
|
-
{ component:
|
|
1791
|
-
{ component:
|
|
1792
|
-
{ component:
|
|
1793
|
-
{ component:
|
|
1795
|
+
}, Ht = () => [
|
|
1796
|
+
{ component: ee, ...Ee },
|
|
1797
|
+
{ component: ce, ...Ae },
|
|
1798
|
+
{ component: zt, ...Kt },
|
|
1799
|
+
{ component: Ft, ...Ct },
|
|
1800
|
+
{ component: he, ...Fe },
|
|
1801
|
+
{ component: xe, ...Pe },
|
|
1802
|
+
{ component: Ut, ...Bt },
|
|
1803
|
+
{ component: We, ...je },
|
|
1804
|
+
{ component: pt, ...Me },
|
|
1805
|
+
{ component: yt, ...mt },
|
|
1806
|
+
{ component: wt, ...vt }
|
|
1794
1807
|
];
|
|
1795
|
-
function
|
|
1808
|
+
function A({
|
|
1796
1809
|
code: t,
|
|
1797
1810
|
context: e,
|
|
1798
1811
|
state: n,
|
|
@@ -1829,113 +1842,113 @@ function $({
|
|
|
1829
1842
|
);
|
|
1830
1843
|
}
|
|
1831
1844
|
}
|
|
1832
|
-
function
|
|
1845
|
+
function Dt() {
|
|
1833
1846
|
return !p() || g() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1834
1847
|
}
|
|
1835
|
-
const
|
|
1836
|
-
function
|
|
1837
|
-
return
|
|
1848
|
+
const H = [];
|
|
1849
|
+
function Tn(t, e) {
|
|
1850
|
+
return H.push({ component: t, ...e }), console.warn(
|
|
1838
1851
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1839
1852
|
), t;
|
|
1840
1853
|
}
|
|
1841
|
-
const
|
|
1854
|
+
const qt = ({
|
|
1842
1855
|
component: t,
|
|
1843
1856
|
...e
|
|
1844
1857
|
}) => ({
|
|
1845
1858
|
type: "builder.registerComponent",
|
|
1846
|
-
data:
|
|
1847
|
-
}),
|
|
1859
|
+
data: Jt(e)
|
|
1860
|
+
}), Gt = (t) => typeof t == "function" ? k(t) : R(t), Jt = ({
|
|
1848
1861
|
inputs: t,
|
|
1849
1862
|
...e
|
|
1850
1863
|
}) => ({
|
|
1851
|
-
...
|
|
1864
|
+
...R(e),
|
|
1852
1865
|
inputs: t == null ? void 0 : t.map(
|
|
1853
1866
|
(n) => Object.entries(n).reduce(
|
|
1854
1867
|
(o, [s, r]) => ({
|
|
1855
1868
|
...o,
|
|
1856
|
-
[s]:
|
|
1869
|
+
[s]: Gt(r)
|
|
1857
1870
|
}),
|
|
1858
1871
|
{}
|
|
1859
1872
|
)
|
|
1860
1873
|
)
|
|
1861
1874
|
});
|
|
1862
|
-
function
|
|
1875
|
+
function Xt() {
|
|
1863
1876
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
|
|
1864
1877
|
const e = Math.random() * 16 | 0;
|
|
1865
1878
|
return (t == "x" ? e : e & 3 | 8).toString(16);
|
|
1866
1879
|
});
|
|
1867
1880
|
}
|
|
1868
|
-
function
|
|
1869
|
-
return
|
|
1881
|
+
function D() {
|
|
1882
|
+
return Xt().replace(/-/g, "");
|
|
1870
1883
|
}
|
|
1871
|
-
const
|
|
1884
|
+
const q = "builderSessionId", Yt = async ({
|
|
1872
1885
|
canTrack: t
|
|
1873
1886
|
}) => {
|
|
1874
1887
|
if (!t)
|
|
1875
1888
|
return;
|
|
1876
|
-
const e = await
|
|
1877
|
-
name:
|
|
1889
|
+
const e = await M({
|
|
1890
|
+
name: q,
|
|
1878
1891
|
canTrack: t
|
|
1879
1892
|
});
|
|
1880
|
-
if (
|
|
1893
|
+
if (y(e))
|
|
1881
1894
|
return e;
|
|
1882
1895
|
{
|
|
1883
|
-
const n =
|
|
1884
|
-
return
|
|
1896
|
+
const n = Qt();
|
|
1897
|
+
return Zt({ id: n, canTrack: t }), n;
|
|
1885
1898
|
}
|
|
1886
|
-
},
|
|
1899
|
+
}, Qt = () => D(), Zt = ({
|
|
1887
1900
|
id: t,
|
|
1888
1901
|
canTrack: e
|
|
1889
|
-
}) =>
|
|
1902
|
+
}) => N({ name: q, value: t, canTrack: e }), G = () => p() && typeof localStorage < "u" ? localStorage : void 0, en = ({
|
|
1890
1903
|
key: t,
|
|
1891
1904
|
canTrack: e
|
|
1892
1905
|
}) => {
|
|
1893
1906
|
var n;
|
|
1894
1907
|
try {
|
|
1895
|
-
return e ? (n =
|
|
1908
|
+
return e ? (n = G()) == null ? void 0 : n.getItem(t) : void 0;
|
|
1896
1909
|
} catch (o) {
|
|
1897
1910
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1898
1911
|
return;
|
|
1899
1912
|
}
|
|
1900
|
-
},
|
|
1913
|
+
}, tn = ({
|
|
1901
1914
|
key: t,
|
|
1902
1915
|
canTrack: e,
|
|
1903
1916
|
value: n
|
|
1904
1917
|
}) => {
|
|
1905
1918
|
var o;
|
|
1906
1919
|
try {
|
|
1907
|
-
e && ((o =
|
|
1920
|
+
e && ((o = G()) == null || o.setItem(t, n));
|
|
1908
1921
|
} catch (s) {
|
|
1909
1922
|
console.debug("[LocalStorage] SET error: ", s);
|
|
1910
1923
|
}
|
|
1911
|
-
},
|
|
1924
|
+
}, J = "builderVisitorId", nn = ({ canTrack: t }) => {
|
|
1912
1925
|
if (!t)
|
|
1913
1926
|
return;
|
|
1914
|
-
const e =
|
|
1915
|
-
key:
|
|
1927
|
+
const e = en({
|
|
1928
|
+
key: J,
|
|
1916
1929
|
canTrack: t
|
|
1917
1930
|
});
|
|
1918
|
-
if (
|
|
1931
|
+
if (y(e))
|
|
1919
1932
|
return e;
|
|
1920
1933
|
{
|
|
1921
|
-
const n =
|
|
1922
|
-
return
|
|
1934
|
+
const n = on();
|
|
1935
|
+
return sn({ id: n, canTrack: t }), n;
|
|
1923
1936
|
}
|
|
1924
|
-
},
|
|
1937
|
+
}, on = () => D(), sn = ({
|
|
1925
1938
|
id: t,
|
|
1926
1939
|
canTrack: e
|
|
1927
|
-
}) =>
|
|
1928
|
-
key:
|
|
1940
|
+
}) => tn({
|
|
1941
|
+
key: J,
|
|
1929
1942
|
value: t,
|
|
1930
1943
|
canTrack: e
|
|
1931
|
-
}),
|
|
1944
|
+
}), rn = () => {
|
|
1932
1945
|
if (p()) {
|
|
1933
1946
|
const t = new URL(location.href);
|
|
1934
1947
|
return t.pathname === "" && (t.pathname = "/"), t;
|
|
1935
1948
|
} else
|
|
1936
1949
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
1937
|
-
},
|
|
1938
|
-
const t =
|
|
1950
|
+
}, an = () => typeof navigator == "object" && navigator.userAgent || "", ln = () => {
|
|
1951
|
+
const t = an(), e = {
|
|
1939
1952
|
Android() {
|
|
1940
1953
|
return t.match(/Android/i);
|
|
1941
1954
|
},
|
|
@@ -1952,25 +1965,25 @@ const H = "builderSessionId", Jt = async ({
|
|
|
1952
1965
|
return t.match(/IEMobile/i) || t.match(/WPDesktop/i);
|
|
1953
1966
|
},
|
|
1954
1967
|
any() {
|
|
1955
|
-
return e.Android() || e.BlackBerry() || e.iOS() || e.Opera() || e.Windows() ||
|
|
1968
|
+
return e.Android() || e.BlackBerry() || e.iOS() || e.Opera() || e.Windows() || _ === "reactNative";
|
|
1956
1969
|
}
|
|
1957
|
-
}, n = t.match(/Tablet|iPad/i), o =
|
|
1970
|
+
}, n = t.match(/Tablet|iPad/i), o = rn();
|
|
1958
1971
|
return {
|
|
1959
1972
|
urlPath: o == null ? void 0 : o.pathname,
|
|
1960
1973
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
1961
1974
|
device: n ? "tablet" : e.any() ? "mobile" : "desktop"
|
|
1962
1975
|
};
|
|
1963
|
-
},
|
|
1976
|
+
}, cn = async ({
|
|
1964
1977
|
canTrack: t
|
|
1965
1978
|
}) => {
|
|
1966
1979
|
if (!t)
|
|
1967
1980
|
return { visitorId: void 0, sessionId: void 0 };
|
|
1968
|
-
const e = await
|
|
1981
|
+
const e = await Yt({ canTrack: t }), n = nn({ canTrack: t });
|
|
1969
1982
|
return {
|
|
1970
1983
|
sessionId: e,
|
|
1971
1984
|
visitorId: n
|
|
1972
1985
|
};
|
|
1973
|
-
},
|
|
1986
|
+
}, dn = async ({
|
|
1974
1987
|
type: t,
|
|
1975
1988
|
canTrack: e,
|
|
1976
1989
|
apiKey: n,
|
|
@@ -1984,23 +1997,23 @@ const H = "builderSessionId", Jt = async ({
|
|
|
1984
1997
|
url: location.href,
|
|
1985
1998
|
...o
|
|
1986
1999
|
},
|
|
1987
|
-
...await
|
|
1988
|
-
userAttributes:
|
|
2000
|
+
...await cn({ canTrack: e }),
|
|
2001
|
+
userAttributes: ln(),
|
|
1989
2002
|
ownerId: n
|
|
1990
2003
|
}
|
|
1991
2004
|
});
|
|
1992
|
-
async function
|
|
2005
|
+
async function I(t) {
|
|
1993
2006
|
if (!t.apiKey) {
|
|
1994
|
-
|
|
1995
|
-
"
|
|
2007
|
+
b.error(
|
|
2008
|
+
"Missing API key for track call. Please provide your API key."
|
|
1996
2009
|
);
|
|
1997
2010
|
return;
|
|
1998
2011
|
}
|
|
1999
|
-
if (!!t.canTrack && !g() && !!(p() ||
|
|
2012
|
+
if (!!t.canTrack && !g() && !!(p() || _ === "reactNative"))
|
|
2000
2013
|
return fetch("https://builder.io/api/v1/track", {
|
|
2001
2014
|
method: "POST",
|
|
2002
2015
|
body: JSON.stringify({
|
|
2003
|
-
events: [await
|
|
2016
|
+
events: [await dn(t)]
|
|
2004
2017
|
}),
|
|
2005
2018
|
headers: {
|
|
2006
2019
|
"content-type": "application/json"
|
|
@@ -2010,10 +2023,10 @@ async function C(t) {
|
|
|
2010
2023
|
console.error("Failed to track: ", e);
|
|
2011
2024
|
});
|
|
2012
2025
|
}
|
|
2013
|
-
const
|
|
2014
|
-
function
|
|
2015
|
-
let n =
|
|
2016
|
-
if (n || (n =
|
|
2026
|
+
const $n = (t) => I({ ...t, canTrack: !0 }), F = {};
|
|
2027
|
+
function un(t, e) {
|
|
2028
|
+
let n = F[t];
|
|
2029
|
+
if (n || (n = F[t] = []), n.push(e), p()) {
|
|
2017
2030
|
const o = {
|
|
2018
2031
|
type: "builder.register",
|
|
2019
2032
|
data: {
|
|
@@ -2028,8 +2041,8 @@ function cn(t, e) {
|
|
|
2028
2041
|
}
|
|
2029
2042
|
}
|
|
2030
2043
|
}
|
|
2031
|
-
const
|
|
2032
|
-
|
|
2044
|
+
const pn = () => {
|
|
2045
|
+
un("insertMenu", {
|
|
2033
2046
|
name: "_default",
|
|
2034
2047
|
default: !0,
|
|
2035
2048
|
items: [
|
|
@@ -2044,14 +2057,14 @@ const dn = () => {
|
|
|
2044
2057
|
]
|
|
2045
2058
|
});
|
|
2046
2059
|
};
|
|
2047
|
-
let
|
|
2048
|
-
const
|
|
2060
|
+
let P = !1;
|
|
2061
|
+
const mn = (t = {}) => {
|
|
2049
2062
|
var e, n;
|
|
2050
|
-
|
|
2063
|
+
P || (P = !0, p() && ((e = window.parent) == null || e.postMessage(
|
|
2051
2064
|
{
|
|
2052
2065
|
type: "builder.sdkInfo",
|
|
2053
2066
|
data: {
|
|
2054
|
-
target:
|
|
2067
|
+
target: _,
|
|
2055
2068
|
supportsPatchUpdates: !1,
|
|
2056
2069
|
supportsAddBlockScoping: !0,
|
|
2057
2070
|
supportsCustomBreakpoints: !0
|
|
@@ -2108,7 +2121,7 @@ const un = (t = {}) => {
|
|
|
2108
2121
|
function j(t) {
|
|
2109
2122
|
return Math.round(t * 1e3) / 1e3;
|
|
2110
2123
|
}
|
|
2111
|
-
const
|
|
2124
|
+
const hn = (t, e, n = !0) => {
|
|
2112
2125
|
if (!(t instanceof HTMLElement))
|
|
2113
2126
|
return null;
|
|
2114
2127
|
let o = n ? t : t.parentElement;
|
|
@@ -2119,10 +2132,10 @@ const pn = (t, e, n = !0) => {
|
|
|
2119
2132
|
return o;
|
|
2120
2133
|
} while (o = o.parentElement);
|
|
2121
2134
|
return null;
|
|
2122
|
-
},
|
|
2135
|
+
}, fn = (t) => hn(t, (e) => {
|
|
2123
2136
|
const n = e.getAttribute("builder-id") || e.id;
|
|
2124
2137
|
return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
|
|
2125
|
-
}),
|
|
2138
|
+
}), V = ({
|
|
2126
2139
|
event: t,
|
|
2127
2140
|
target: e
|
|
2128
2141
|
}) => {
|
|
@@ -2131,17 +2144,17 @@ const pn = (t, e, n = !0) => {
|
|
|
2131
2144
|
x: r,
|
|
2132
2145
|
y: i
|
|
2133
2146
|
};
|
|
2134
|
-
},
|
|
2135
|
-
const e = t.target, n = e &&
|
|
2147
|
+
}, gn = (t) => {
|
|
2148
|
+
const e = t.target, n = e && fn(e), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
2136
2149
|
return {
|
|
2137
2150
|
targetBuilderElement: o || void 0,
|
|
2138
2151
|
metadata: {
|
|
2139
|
-
targetOffset: e ?
|
|
2140
|
-
builderTargetOffset: n ?
|
|
2152
|
+
targetOffset: e ? V({ event: t, target: e }) : void 0,
|
|
2153
|
+
builderTargetOffset: n ? V({ event: t, target: n }) : void 0,
|
|
2141
2154
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
2142
2155
|
}
|
|
2143
2156
|
};
|
|
2144
|
-
},
|
|
2157
|
+
}, bn = ({
|
|
2145
2158
|
content: t,
|
|
2146
2159
|
data: e,
|
|
2147
2160
|
locale: n
|
|
@@ -2158,7 +2171,7 @@ const pn = (t, e, n = !0) => {
|
|
|
2158
2171
|
...n ? { locale: n } : {}
|
|
2159
2172
|
};
|
|
2160
2173
|
return { ...o, ...s };
|
|
2161
|
-
},
|
|
2174
|
+
}, yn = ({
|
|
2162
2175
|
content: t,
|
|
2163
2176
|
data: e
|
|
2164
2177
|
}) => t ? {
|
|
@@ -2168,21 +2181,21 @@ const pn = (t, e, n = !0) => {
|
|
|
2168
2181
|
...e
|
|
2169
2182
|
},
|
|
2170
2183
|
meta: t == null ? void 0 : t.meta
|
|
2171
|
-
} : void 0,
|
|
2184
|
+
} : void 0, vn = () => Promise.resolve().then(() => B).then((t) => t.default).catch((t) => {
|
|
2172
2185
|
throw console.error(
|
|
2173
2186
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
2174
2187
|
t
|
|
2175
2188
|
), t;
|
|
2176
|
-
}),
|
|
2189
|
+
}), _n = () => import("./render-styles.0d1f8872.js").then((t) => t.default).catch((t) => {
|
|
2177
2190
|
throw console.error(
|
|
2178
2191
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
2179
2192
|
t
|
|
2180
2193
|
), t;
|
|
2181
|
-
}),
|
|
2194
|
+
}), xn = {
|
|
2182
2195
|
name: "render-content",
|
|
2183
2196
|
components: {
|
|
2184
|
-
RenderContentStyles:
|
|
2185
|
-
RenderBlocks:
|
|
2197
|
+
RenderContentStyles: _n,
|
|
2198
|
+
RenderBlocks: vn
|
|
2186
2199
|
},
|
|
2187
2200
|
props: [
|
|
2188
2201
|
"content",
|
|
@@ -2200,20 +2213,20 @@ const pn = (t, e, n = !0) => {
|
|
|
2200
2213
|
return {
|
|
2201
2214
|
forceReRenderCount: 0,
|
|
2202
2215
|
overrideContent: null,
|
|
2203
|
-
useContent:
|
|
2216
|
+
useContent: yn({
|
|
2204
2217
|
content: this.content,
|
|
2205
2218
|
data: this.data
|
|
2206
2219
|
}),
|
|
2207
2220
|
update: 0,
|
|
2208
|
-
canTrackToUse:
|
|
2209
|
-
contentState:
|
|
2221
|
+
canTrackToUse: y(this.canTrack) ? this.canTrack : !0,
|
|
2222
|
+
contentState: bn({
|
|
2210
2223
|
content: this.content,
|
|
2211
2224
|
data: this.data,
|
|
2212
2225
|
locale: this.locale
|
|
2213
2226
|
}),
|
|
2214
2227
|
allRegisteredComponents: [
|
|
2215
|
-
...
|
|
2216
|
-
...
|
|
2228
|
+
...Ht(),
|
|
2229
|
+
...H,
|
|
2217
2230
|
...this.customComponents || []
|
|
2218
2231
|
].reduce(
|
|
2219
2232
|
(t, e) => ({
|
|
@@ -2224,13 +2237,13 @@ const pn = (t, e, n = !0) => {
|
|
|
2224
2237
|
),
|
|
2225
2238
|
httpReqsData: {},
|
|
2226
2239
|
clicked: !1,
|
|
2227
|
-
TARGET:
|
|
2240
|
+
TARGET: _
|
|
2228
2241
|
};
|
|
2229
2242
|
},
|
|
2230
2243
|
provide() {
|
|
2231
2244
|
const t = this;
|
|
2232
2245
|
return {
|
|
2233
|
-
[
|
|
2246
|
+
[x.key]: {
|
|
2234
2247
|
content: t.useContent,
|
|
2235
2248
|
state: t.contentState,
|
|
2236
2249
|
setState: t.setContextState,
|
|
@@ -2243,10 +2256,10 @@ const pn = (t, e, n = !0) => {
|
|
|
2243
2256
|
},
|
|
2244
2257
|
mounted() {
|
|
2245
2258
|
var t, e;
|
|
2246
|
-
if (this.apiKey ||
|
|
2247
|
-
"
|
|
2259
|
+
if (this.apiKey || b.error(
|
|
2260
|
+
"No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2248
2261
|
), p()) {
|
|
2249
|
-
if (g() && (this.forceReRenderCount = this.forceReRenderCount + 1,
|
|
2262
|
+
if (g() && (this.forceReRenderCount = this.forceReRenderCount + 1, pn(), mn({
|
|
2250
2263
|
...this.locale ? {
|
|
2251
2264
|
locale: this.locale
|
|
2252
2265
|
} : {},
|
|
@@ -2257,14 +2270,14 @@ const pn = (t, e, n = !0) => {
|
|
|
2257
2270
|
this.allRegisteredComponents
|
|
2258
2271
|
).forEach((n) => {
|
|
2259
2272
|
var s;
|
|
2260
|
-
const o =
|
|
2273
|
+
const o = qt(n);
|
|
2261
2274
|
(s = window.parent) == null || s.postMessage(o, "*");
|
|
2262
2275
|
}), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
2263
2276
|
"builder:component:stateChangeListenerActivated",
|
|
2264
2277
|
this.emitStateUpdate
|
|
2265
2278
|
)), this.useContent) {
|
|
2266
2279
|
const n = (t = this.useContent) == null ? void 0 : t.testVariationId, o = (e = this.useContent) == null ? void 0 : e.id;
|
|
2267
|
-
|
|
2280
|
+
I({
|
|
2268
2281
|
type: "impression",
|
|
2269
2282
|
canTrack: this.canTrackToUse,
|
|
2270
2283
|
contentId: o,
|
|
@@ -2272,14 +2285,16 @@ const pn = (t, e, n = !0) => {
|
|
|
2272
2285
|
variationId: n !== o ? n : void 0
|
|
2273
2286
|
});
|
|
2274
2287
|
}
|
|
2275
|
-
if (
|
|
2276
|
-
const n = new URL(location.href).searchParams, o = n.get("builder.preview"), s = n.get(
|
|
2277
|
-
|
|
2288
|
+
if (Dt()) {
|
|
2289
|
+
const n = new URL(location.href).searchParams, o = n.get("builder.preview"), s = n.get(
|
|
2290
|
+
`builder.preview.${o}`
|
|
2291
|
+
), r = n.get("apiKey") || n.get("builder.space");
|
|
2292
|
+
o === this.model && r === this.apiKey && (!this.content || s === this.content.id) && K({
|
|
2278
2293
|
model: this.model,
|
|
2279
2294
|
apiKey: this.apiKey,
|
|
2280
2295
|
apiVersion: this.apiVersion
|
|
2281
|
-
}).then((
|
|
2282
|
-
|
|
2296
|
+
}).then((i) => {
|
|
2297
|
+
i && this.mergeNewContent(i);
|
|
2283
2298
|
});
|
|
2284
2299
|
}
|
|
2285
2300
|
this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
|
|
@@ -2394,7 +2409,7 @@ const pn = (t, e, n = !0) => {
|
|
|
2394
2409
|
evaluateJsCode() {
|
|
2395
2410
|
var e, n;
|
|
2396
2411
|
const t = (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.jsCode;
|
|
2397
|
-
t &&
|
|
2412
|
+
t && A({
|
|
2398
2413
|
code: t,
|
|
2399
2414
|
context: this.context || {},
|
|
2400
2415
|
state: this.contentState
|
|
@@ -2404,13 +2419,13 @@ const pn = (t, e, n = !0) => {
|
|
|
2404
2419
|
var e, n;
|
|
2405
2420
|
if (this.useContent) {
|
|
2406
2421
|
const o = (e = this.useContent) == null ? void 0 : e.testVariationId, s = (n = this.useContent) == null ? void 0 : n.id;
|
|
2407
|
-
|
|
2422
|
+
I({
|
|
2408
2423
|
type: "click",
|
|
2409
2424
|
canTrack: this.canTrackToUse,
|
|
2410
2425
|
contentId: s,
|
|
2411
2426
|
apiKey: this.apiKey,
|
|
2412
2427
|
variationId: o !== s ? o : void 0,
|
|
2413
|
-
...
|
|
2428
|
+
...gn(t),
|
|
2414
2429
|
unique: !this.clicked
|
|
2415
2430
|
});
|
|
2416
2431
|
}
|
|
@@ -2419,7 +2434,7 @@ const pn = (t, e, n = !0) => {
|
|
|
2419
2434
|
evalExpression(t) {
|
|
2420
2435
|
return t.replace(
|
|
2421
2436
|
/{{([^}]+)}}/g,
|
|
2422
|
-
(e, n) =>
|
|
2437
|
+
(e, n) => A({
|
|
2423
2438
|
code: n,
|
|
2424
2439
|
context: this.context || {},
|
|
2425
2440
|
state: this.contentState
|
|
@@ -2427,7 +2442,7 @@ const pn = (t, e, n = !0) => {
|
|
|
2427
2442
|
);
|
|
2428
2443
|
},
|
|
2429
2444
|
handleRequest({ url: t, key: e }) {
|
|
2430
|
-
|
|
2445
|
+
W(t).then((n) => n.json()).then((n) => {
|
|
2431
2446
|
const o = {
|
|
2432
2447
|
...this.contentState,
|
|
2433
2448
|
[e]: n
|
|
@@ -2467,67 +2482,67 @@ const pn = (t, e, n = !0) => {
|
|
|
2467
2482
|
}
|
|
2468
2483
|
}
|
|
2469
2484
|
};
|
|
2470
|
-
var
|
|
2485
|
+
var kn = function() {
|
|
2471
2486
|
var o, s, r, i, l, a, c, d;
|
|
2472
2487
|
var e = this, n = e._self._c;
|
|
2473
2488
|
return e.useContent ? n("div", { ref: "elementRef", attrs: { "builder-content-id": (o = e.useContent) == null ? void 0 : o.id, "builder-model": e.model }, on: { click: function(m) {
|
|
2474
2489
|
return e.onClick(m);
|
|
2475
2490
|
} } }, [e.TARGET !== "reactNative" ? [n("render-content-styles", { attrs: { contentId: (s = e.useContent) == null ? void 0 : s.id, cssCode: (i = (r = e.useContent) == null ? void 0 : r.data) == null ? void 0 : i.cssCode, customFonts: (a = (l = e.useContent) == null ? void 0 : l.data) == null ? void 0 : a.customFonts } })] : e._e(), n("render-blocks", { key: e.forceReRenderCount, attrs: { blocks: (d = (c = e.useContent) == null ? void 0 : c.data) == null ? void 0 : d.blocks } })], 2) : e._e();
|
|
2476
|
-
},
|
|
2477
|
-
vn,
|
|
2478
|
-
_n,
|
|
2491
|
+
}, Sn = [], wn = /* @__PURE__ */ h(
|
|
2479
2492
|
xn,
|
|
2493
|
+
kn,
|
|
2494
|
+
Sn,
|
|
2480
2495
|
!1,
|
|
2481
2496
|
null,
|
|
2482
2497
|
null,
|
|
2483
2498
|
null,
|
|
2484
2499
|
null
|
|
2485
2500
|
);
|
|
2486
|
-
const
|
|
2501
|
+
const Cn = wn.exports, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2487
2502
|
__proto__: null,
|
|
2488
|
-
default:
|
|
2489
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2490
|
-
function
|
|
2503
|
+
default: Cn
|
|
2504
|
+
}, Symbol.toStringTag, { value: "Module" })), O = {};
|
|
2505
|
+
function En(t) {
|
|
2491
2506
|
if (p()) {
|
|
2492
|
-
Object.assign(
|
|
2507
|
+
Object.assign(O, t);
|
|
2493
2508
|
const e = {
|
|
2494
2509
|
type: "builder.settingsChange",
|
|
2495
|
-
data:
|
|
2510
|
+
data: O
|
|
2496
2511
|
};
|
|
2497
2512
|
parent.postMessage(e, "*");
|
|
2498
2513
|
}
|
|
2499
2514
|
}
|
|
2500
2515
|
export {
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2516
|
+
x as B,
|
|
2517
|
+
ce as C,
|
|
2518
|
+
he as F,
|
|
2519
|
+
xe as I,
|
|
2520
|
+
We as S,
|
|
2521
|
+
_ as T,
|
|
2522
|
+
wt as V,
|
|
2523
|
+
Rn as a,
|
|
2524
|
+
ee as b,
|
|
2525
|
+
y as c,
|
|
2526
|
+
Cn as d,
|
|
2527
|
+
A as e,
|
|
2528
|
+
R as f,
|
|
2529
|
+
te as g,
|
|
2530
|
+
pt as h,
|
|
2531
|
+
yt as i,
|
|
2517
2532
|
g as j,
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2533
|
+
Dt as k,
|
|
2534
|
+
H as l,
|
|
2535
|
+
Tn as m,
|
|
2521
2536
|
h as n,
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2537
|
+
qt as o,
|
|
2538
|
+
un as p,
|
|
2539
|
+
K as q,
|
|
2540
|
+
$e as r,
|
|
2541
|
+
En as s,
|
|
2542
|
+
$n as t,
|
|
2543
|
+
it as u,
|
|
2544
|
+
tt as v,
|
|
2545
|
+
nt as w,
|
|
2546
|
+
ot as x,
|
|
2547
|
+
z as y
|
|
2533
2548
|
};
|