@builder.io/sdk-vue 0.1.2 → 0.1.4
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.e9ae5c99.js → block-styles.062b71eb.js} +6 -4
- package/packages/_vue2/dist/block-styles.c799c71a.cjs +1 -0
- package/packages/{_vue3/dist/get-processed-block.1220ffe6.js → _vue2/dist/get-processed-block.44306844.js} +1 -1
- package/packages/_vue2/dist/{get-processed-block.ac23eb44.cjs → get-processed-block.837e0313.cjs} +1 -1
- package/packages/_vue2/dist/index.59a0624f.cjs +30 -0
- package/packages/_vue2/dist/{index.71913926.js → index.b2edb9b2.js} +531 -435
- package/packages/_vue2/dist/render-block.74bfd4ea.js +249 -0
- package/packages/_vue2/dist/render-block.b97311ac.cjs +3 -0
- package/packages/_vue2/dist/{render-component.e0a952b3.js → render-component.b325feac.js} +3 -3
- package/packages/_vue2/dist/{render-component.4e09cdef.cjs → render-component.e59489c1.cjs} +1 -1
- package/packages/_vue2/dist/render-inlined-styles.14b606a5.cjs +1 -0
- package/packages/_vue2/dist/{render-inlined-styles.58be9e46.js → render-inlined-styles.734fe2c9.js} +7 -5
- package/packages/_vue2/dist/render-repeated-block.bbbfafcc.cjs +1 -0
- package/packages/_vue2/dist/render-repeated-block.e1d94c10.js +41 -0
- package/packages/_vue2/dist/{render-styles.b0b466c2.js → render-styles.0b296b86.js} +2 -2
- package/packages/_vue2/dist/{render-styles.5381508b.cjs → render-styles.6732290e.cjs} +1 -1
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +3 -3
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +35 -175
- package/packages/_vue2/dist/src/blocks/custom-code/custom-code.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/embed/embed.vue.d.ts +5 -2
- package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +65 -192
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +2 -2
- package/packages/_vue2/dist/src/components/render-block/render-block.helpers.d.ts +11 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +30 -170
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +7 -57
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +28 -168
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +33 -173
- 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 +59 -189
- package/packages/_vue2/dist/src/components/render-inlined-styles.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/context/builder.context.d.ts +11 -1
- package/packages/_vue2/dist/src/functions/track/helpers.d.ts +5 -0
- package/packages/{_vue3/dist/src/functions/track.d.ts → _vue2/dist/src/functions/track/index.d.ts} +5 -10
- package/packages/_vue2/dist/src/functions/track/interaction.d.ts +13 -0
- package/packages/_vue2/dist/src/index.d.ts +1 -1
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/{block-styles.ab09f721.js → block-styles.413a68e9.js} +19 -17
- package/packages/_vue3/dist/block-styles.6e935df7.cjs +1 -0
- package/packages/{_vue2/dist/get-processed-block.985f56a5.js → _vue3/dist/get-processed-block.ab2d823c.js} +1 -1
- package/packages/_vue3/dist/{get-processed-block.c0ffa71e.cjs → get-processed-block.b0588cd8.cjs} +1 -1
- package/packages/_vue3/dist/index.218c45a5.cjs +30 -0
- package/packages/_vue3/dist/{index.e0d3400f.js → index.7db5ef7e.js} +469 -374
- package/packages/_vue3/dist/render-block.a53e9af1.js +258 -0
- package/packages/_vue3/dist/render-block.a9195cb6.cjs +3 -0
- package/packages/_vue3/dist/{render-component.7a972660.js → render-component.41330655.js} +3 -3
- package/packages/_vue3/dist/{render-component.af4b9326.cjs → render-component.adae07fa.cjs} +1 -1
- package/packages/_vue3/dist/render-inlined-styles.47114c43.js +32 -0
- package/packages/_vue3/dist/render-inlined-styles.c80dee1c.cjs +1 -0
- package/packages/_vue3/dist/render-repeated-block.5b77dd2a.cjs +1 -0
- package/packages/_vue3/dist/render-repeated-block.648adc14.js +36 -0
- package/packages/_vue3/dist/{render-styles.c8214c85.js → render-styles.8780951f.js} +2 -2
- package/packages/_vue3/dist/{render-styles.1e95e77c.cjs → render-styles.9f30e56b.cjs} +1 -1
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +6 -6
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +5 -5
- package/packages/_vue3/dist/src/blocks/custom-code/custom-code.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/embed/embed.vue.d.ts +5 -2
- package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +35 -22
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +2 -2
- package/packages/_vue3/dist/src/components/render-block/render-block.helpers.d.ts +11 -0
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +1 -31
- package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +8 -1
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +3 -3
- 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 +29 -19
- package/packages/_vue3/dist/src/components/render-inlined-styles.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/context/builder.context.d.ts +11 -1
- package/packages/_vue3/dist/src/functions/track/helpers.d.ts +5 -0
- package/packages/{_vue2/dist/src/functions/track.d.ts → _vue3/dist/src/functions/track/index.d.ts} +5 -10
- package/packages/_vue3/dist/src/functions/track/interaction.d.ts +13 -0
- package/packages/_vue3/dist/src/index.d.ts +1 -1
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.b9cb70e5.cjs +0 -1
- package/packages/_vue2/dist/index.50198d49.cjs +0 -30
- package/packages/_vue2/dist/render-block.2c42b2ea.cjs +0 -3
- package/packages/_vue2/dist/render-block.6f078e8d.js +0 -251
- package/packages/_vue2/dist/render-component-with-context.795868f2.js +0 -53
- package/packages/_vue2/dist/render-component-with-context.88c14993.cjs +0 -1
- package/packages/_vue2/dist/render-inlined-styles.171750b7.cjs +0 -1
- package/packages/_vue2/dist/render-repeated-block.2ef95a2e.cjs +0 -1
- package/packages/_vue2/dist/render-repeated-block.58051104.js +0 -53
- package/packages/_vue2/dist/src/components/render-block/render-component-with-context.vue.d.ts +0 -114
- package/packages/_vue3/dist/block-styles.4a2a7b8d.cjs +0 -1
- package/packages/_vue3/dist/index.ac143767.cjs +0 -30
- package/packages/_vue3/dist/render-block.489f5bb0.cjs +0 -3
- package/packages/_vue3/dist/render-block.f4974fcf.js +0 -262
- package/packages/_vue3/dist/render-component-with-context.49bb17cb.cjs +0 -1
- package/packages/_vue3/dist/render-component-with-context.b7aac17f.js +0 -50
- package/packages/_vue3/dist/render-inlined-styles.37596a05.js +0 -30
- package/packages/_vue3/dist/render-inlined-styles.ffa23fbe.cjs +0 -1
- package/packages/_vue3/dist/render-repeated-block.704b65cb.cjs +0 -1
- package/packages/_vue3/dist/render-repeated-block.7b85cf89.js +0 -48
- package/packages/_vue3/dist/src/components/render-block/render-component-with-context.vue.d.ts +0 -48
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineAsyncComponent as x, resolveComponent as k, openBlock as l, createElementBlock as u, normalizeClass as
|
|
2
|
-
const
|
|
1
|
+
import { defineAsyncComponent as x, resolveComponent as k, openBlock as l, createElementBlock as u, normalizeClass as j, normalizeStyle as w, createBlock as I, createCommentVNode as b, Fragment as R, renderList as O, createVNode as X, createElementVNode as L, renderSlot as E, mergeProps as S, toDisplayString as W } from "vue";
|
|
2
|
+
const T = "vue3";
|
|
3
3
|
function f() {
|
|
4
4
|
return typeof window < "u" && typeof document < "u";
|
|
5
5
|
}
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
let t =
|
|
9
|
-
if (t || (t =
|
|
6
|
+
const M = {};
|
|
7
|
+
function ue(e, n) {
|
|
8
|
+
let t = M[e];
|
|
9
|
+
if (t || (t = M[e] = []), t.push(n), f()) {
|
|
10
10
|
const o = {
|
|
11
11
|
type: "builder.register",
|
|
12
12
|
data: {
|
|
@@ -21,8 +21,8 @@ function ce(e, n) {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
|
|
24
|
+
const me = () => {
|
|
25
|
+
ue("insertMenu", {
|
|
26
26
|
name: "_default",
|
|
27
27
|
default: !0,
|
|
28
28
|
items: [
|
|
@@ -38,13 +38,13 @@ const le = () => {
|
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
40
|
let N = !1;
|
|
41
|
-
const
|
|
41
|
+
const pe = (e = {}) => {
|
|
42
42
|
var n, t;
|
|
43
43
|
N || (N = !0, f() && ((n = window.parent) == null || n.postMessage(
|
|
44
44
|
{
|
|
45
45
|
type: "builder.sdkInfo",
|
|
46
46
|
data: {
|
|
47
|
-
target:
|
|
47
|
+
target: T,
|
|
48
48
|
supportsPatchUpdates: !1,
|
|
49
49
|
supportsAddBlockScoping: !0,
|
|
50
50
|
supportsCustomBreakpoints: !0
|
|
@@ -97,7 +97,7 @@ const de = (e = {}) => {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
})));
|
|
100
|
-
}, U = (e) => JSON.parse(JSON.stringify(e)),
|
|
100
|
+
}, U = (e) => JSON.parse(JSON.stringify(e)), Y = {
|
|
101
101
|
small: {
|
|
102
102
|
min: 320,
|
|
103
103
|
default: 321,
|
|
@@ -113,8 +113,8 @@ const de = (e = {}) => {
|
|
|
113
113
|
default: 991,
|
|
114
114
|
max: 1200
|
|
115
115
|
}
|
|
116
|
-
},
|
|
117
|
-
const t = U(
|
|
116
|
+
}, Rn = (e, n = Y) => `@media (max-width: ${n[e].max}px)`, he = ({ small: e, medium: n }) => {
|
|
117
|
+
const t = U(Y);
|
|
118
118
|
if (!e || !n)
|
|
119
119
|
return t;
|
|
120
120
|
const o = Math.floor(e / 2);
|
|
@@ -135,11 +135,11 @@ const de = (e = {}) => {
|
|
|
135
135
|
min: s,
|
|
136
136
|
default: s + 1
|
|
137
137
|
}, t;
|
|
138
|
-
},
|
|
138
|
+
}, fe = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), C = (e) => e != null, ge = (e) => Object.entries(e).map(([t, o]) => {
|
|
139
139
|
if (typeof o == "string")
|
|
140
|
-
return `${
|
|
141
|
-
}).filter(C), _ = (e) =>
|
|
142
|
-
`),
|
|
140
|
+
return `${fe(t)}: ${o};`;
|
|
141
|
+
}).filter(C), _ = (e) => ge(e).join(`
|
|
142
|
+
`), En = ({
|
|
143
143
|
mediaQuery: e,
|
|
144
144
|
className: n,
|
|
145
145
|
styles: t
|
|
@@ -150,21 +150,21 @@ const de = (e = {}) => {
|
|
|
150
150
|
return e ? `${e} {
|
|
151
151
|
${o}
|
|
152
152
|
}` : o;
|
|
153
|
-
},
|
|
153
|
+
}, be = () => Promise.resolve().then(() => le).then((e) => e.default).catch((e) => {
|
|
154
154
|
throw console.error(
|
|
155
155
|
"Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
|
|
156
156
|
e
|
|
157
157
|
), e;
|
|
158
|
-
}),
|
|
158
|
+
}), ye = () => import("./render-inlined-styles.47114c43.js").then((e) => e.default).catch((e) => {
|
|
159
159
|
throw console.error(
|
|
160
160
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",
|
|
161
161
|
e
|
|
162
162
|
), e;
|
|
163
|
-
}),
|
|
163
|
+
}), ve = {
|
|
164
164
|
name: "builder-columns",
|
|
165
165
|
components: {
|
|
166
|
-
RenderInlinedStyles: x(
|
|
167
|
-
RenderBlocks: x(
|
|
166
|
+
RenderInlinedStyles: x(ye),
|
|
167
|
+
RenderBlocks: x(be)
|
|
168
168
|
},
|
|
169
169
|
props: [
|
|
170
170
|
"space",
|
|
@@ -174,7 +174,9 @@ const de = (e = {}) => {
|
|
|
174
174
|
"customBreakpoints",
|
|
175
175
|
"builderBlock"
|
|
176
176
|
],
|
|
177
|
-
data
|
|
177
|
+
data() {
|
|
178
|
+
return { TARGET: T };
|
|
179
|
+
},
|
|
178
180
|
computed: {
|
|
179
181
|
columnsCssVars() {
|
|
180
182
|
const e = this.stackColumnsAt === "never" ? "inherit" : this.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -266,7 +268,7 @@ const de = (e = {}) => {
|
|
|
266
268
|
return (this.stackColumnsAt || "tablet") === "tablet" ? e : "inherit";
|
|
267
269
|
},
|
|
268
270
|
getWidthForBreakpointSize(e) {
|
|
269
|
-
return
|
|
271
|
+
return he(
|
|
270
272
|
this.customBreakpoints || {}
|
|
271
273
|
)[e].max;
|
|
272
274
|
},
|
|
@@ -287,34 +289,34 @@ const g = (e, n) => {
|
|
|
287
289
|
t[o] = r;
|
|
288
290
|
return t;
|
|
289
291
|
};
|
|
290
|
-
function
|
|
292
|
+
function xe(e, n, t, o, r, s) {
|
|
291
293
|
const i = k("render-inlined-styles"), c = k("render-blocks");
|
|
292
294
|
return l(), u("div", {
|
|
293
|
-
class:
|
|
295
|
+
class: j(
|
|
294
296
|
s._classStringToObject(
|
|
295
|
-
`builder-columns ${t.builderBlock.id}-breakpoints div-
|
|
297
|
+
`builder-columns ${t.builderBlock.id}-breakpoints div-7fq9d0i380`
|
|
296
298
|
)
|
|
297
299
|
),
|
|
298
300
|
style: w({
|
|
299
|
-
...
|
|
301
|
+
...r.TARGET === "reactNative" ? s.reactNativeColumnsStyles : {},
|
|
300
302
|
...s.columnsCssVars
|
|
301
303
|
})
|
|
302
304
|
}, [
|
|
303
|
-
|
|
305
|
+
r.TARGET !== "reactNative" ? (l(), I(i, {
|
|
304
306
|
key: 0,
|
|
305
307
|
styles: s.columnsStyles
|
|
306
308
|
}, null, 8, ["styles"])) : b("", !0),
|
|
307
|
-
(l(!0), u(
|
|
309
|
+
(l(!0), u(R, null, O(t.columns, (a, d) => (l(), u("div", {
|
|
308
310
|
key: d,
|
|
309
|
-
class: "builder-column div-
|
|
311
|
+
class: "builder-column div-7fq9d0i380-2",
|
|
310
312
|
style: w({
|
|
311
313
|
width: s.getColumnCssWidth(d),
|
|
312
314
|
marginLeft: `${d === 0 ? 0 : s.getGutterSize()}px`,
|
|
313
|
-
...
|
|
315
|
+
...r.TARGET === "reactNative" ? s.reactNativeColumnStyles : {},
|
|
314
316
|
...s.columnCssVars
|
|
315
317
|
})
|
|
316
318
|
}, [
|
|
317
|
-
|
|
319
|
+
X(c, {
|
|
318
320
|
blocks: a.blocks,
|
|
319
321
|
path: `component.options.columns.${d}.blocks`,
|
|
320
322
|
parent: t.builderBlock.id,
|
|
@@ -325,40 +327,40 @@ function be(e, n, t, o, r, s) {
|
|
|
325
327
|
], 4))), 128))
|
|
326
328
|
], 6);
|
|
327
329
|
}
|
|
328
|
-
const
|
|
329
|
-
function
|
|
330
|
+
const ke = /* @__PURE__ */ g(ve, [["render", xe], ["__scopeId", "data-v-1c640f4f"]]);
|
|
331
|
+
function z(e) {
|
|
330
332
|
return e.replace(/http(s)?:/, "");
|
|
331
333
|
}
|
|
332
|
-
function
|
|
334
|
+
function Ce(e = "", n, t) {
|
|
333
335
|
const o = new RegExp("([?&])" + n + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
334
336
|
return e.match(o) ? e.replace(o, "$1" + n + "=" + encodeURIComponent(t) + "$2") : e + r + n + "=" + encodeURIComponent(t);
|
|
335
337
|
}
|
|
336
|
-
function
|
|
338
|
+
function Se(e, n) {
|
|
337
339
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !n)
|
|
338
340
|
return e;
|
|
339
341
|
if (n === "master")
|
|
340
|
-
return
|
|
342
|
+
return z(e);
|
|
341
343
|
const t = e.match(
|
|
342
344
|
/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i
|
|
343
345
|
);
|
|
344
346
|
if (t) {
|
|
345
347
|
const o = e.split(t[0]), r = t[3], s = n.match("x") ? n : `${n}x`;
|
|
346
|
-
return
|
|
348
|
+
return z(`${o[0]}_${s}${r}`);
|
|
347
349
|
}
|
|
348
350
|
return null;
|
|
349
351
|
}
|
|
350
|
-
function
|
|
352
|
+
function F(e) {
|
|
351
353
|
if (!e)
|
|
352
354
|
return e;
|
|
353
355
|
const n = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
354
356
|
if (e.match(/builder\.io/)) {
|
|
355
357
|
let t = e;
|
|
356
358
|
const o = Number(e.split("?width=")[1]);
|
|
357
|
-
return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${
|
|
359
|
+
return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${Ce(e, "width", r)} ${r}w`).concat([t]).join(", ");
|
|
358
360
|
}
|
|
359
|
-
return e.match(/cdn\.shopify\.com/) ? n.map((t) => [
|
|
361
|
+
return e.match(/cdn\.shopify\.com/) ? n.map((t) => [Se(e, `${t}x${t}`), t]).filter(([t]) => !!t).map(([t, o]) => `${t} ${o}w`).concat([e]).join(", ") : e;
|
|
360
362
|
}
|
|
361
|
-
const
|
|
363
|
+
const _e = {
|
|
362
364
|
name: "builder-image",
|
|
363
365
|
props: [
|
|
364
366
|
"image",
|
|
@@ -382,10 +384,10 @@ const ke = {
|
|
|
382
384
|
return this.srcset;
|
|
383
385
|
if (this.srcset && ((t = this.image) == null ? void 0 : t.includes("builder.io/api/v1/image"))) {
|
|
384
386
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
385
|
-
return console.debug("Removed given srcset"),
|
|
387
|
+
return console.debug("Removed given srcset"), F(n);
|
|
386
388
|
} else if (this.image && !this.srcset)
|
|
387
|
-
return
|
|
388
|
-
return
|
|
389
|
+
return F(n);
|
|
390
|
+
return F(n);
|
|
389
391
|
},
|
|
390
392
|
webpSrcSet() {
|
|
391
393
|
var e;
|
|
@@ -414,20 +416,20 @@ const ke = {
|
|
|
414
416
|
}
|
|
415
417
|
}
|
|
416
418
|
};
|
|
417
|
-
const
|
|
419
|
+
const we = ["srcset"], Ie = ["alt", "role", "src", "srcset", "sizes"], Te = {
|
|
418
420
|
key: 2,
|
|
419
|
-
class: "div-
|
|
421
|
+
class: "div-2pqqf5a7788-2"
|
|
420
422
|
};
|
|
421
|
-
function
|
|
423
|
+
function Re(e, n, t, o, r, s) {
|
|
422
424
|
var i, c, a, d;
|
|
423
|
-
return l(), u(
|
|
424
|
-
|
|
425
|
+
return l(), u(R, null, [
|
|
426
|
+
L("picture", null, [
|
|
425
427
|
s.webpSrcSet ? (l(), u("source", {
|
|
426
428
|
key: 0,
|
|
427
429
|
type: "image/webp",
|
|
428
430
|
srcset: s.webpSrcSet
|
|
429
|
-
}, null, 8,
|
|
430
|
-
|
|
431
|
+
}, null, 8, we)) : b("", !0),
|
|
432
|
+
L("img", {
|
|
431
433
|
loading: "lazy",
|
|
432
434
|
alt: t.altText,
|
|
433
435
|
role: t.altText ? "presentation" : void 0,
|
|
@@ -436,41 +438,40 @@ function Ie(e, n, t, o, r, s) {
|
|
|
436
438
|
objectFit: t.backgroundSize || "cover",
|
|
437
439
|
...s.aspectRatioCss
|
|
438
440
|
}),
|
|
439
|
-
class:
|
|
441
|
+
class: j(
|
|
440
442
|
s._classStringToObject(
|
|
441
|
-
"builder-image" + (t.className ? " " + t.className : "") + " img-
|
|
443
|
+
"builder-image" + (t.className ? " " + t.className : "") + " img-2pqqf5a7788"
|
|
442
444
|
)
|
|
443
445
|
),
|
|
444
446
|
src: t.image,
|
|
445
447
|
srcset: s.srcSetToUse,
|
|
446
448
|
sizes: t.sizes
|
|
447
|
-
}, null, 14,
|
|
448
|
-
B("source", { srcset: s.srcSetToUse }, null, 8, _e)
|
|
449
|
+
}, null, 14, Ie)
|
|
449
450
|
]),
|
|
450
451
|
t.aspectRatio && !(((c = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : c.length) && t.fitContent) ? (l(), u("div", {
|
|
451
452
|
key: 0,
|
|
452
|
-
class: "builder-image-sizer div-
|
|
453
|
+
class: "builder-image-sizer div-2pqqf5a7788",
|
|
453
454
|
style: w({
|
|
454
455
|
paddingTop: t.aspectRatio * 100 + "%"
|
|
455
456
|
})
|
|
456
457
|
}, null, 4)) : b("", !0),
|
|
457
|
-
((d = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : d.length) && t.fitContent ?
|
|
458
|
-
!t.fitContent && e.children ? (l(), u("div",
|
|
459
|
-
|
|
458
|
+
((d = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : d.length) && t.fitContent ? E(e.$slots, "default", { key: 1 }, void 0, !0) : b("", !0),
|
|
459
|
+
!t.fitContent && e.children ? (l(), u("div", Te, [
|
|
460
|
+
E(e.$slots, "default", {}, void 0, !0)
|
|
460
461
|
])) : b("", !0)
|
|
461
462
|
], 64);
|
|
462
463
|
}
|
|
463
|
-
const
|
|
464
|
+
const Ee = /* @__PURE__ */ g(_e, [["render", Re], ["__scopeId", "data-v-50c3283d"]]), je = {
|
|
464
465
|
name: "builder-text",
|
|
465
466
|
props: ["text"]
|
|
466
|
-
},
|
|
467
|
-
function
|
|
467
|
+
}, Be = ["innerHTML"];
|
|
468
|
+
function Fe(e, n, t, o, r, s) {
|
|
468
469
|
return l(), u("span", {
|
|
469
470
|
class: "builder-text",
|
|
470
471
|
innerHTML: t.text
|
|
471
|
-
}, null, 8,
|
|
472
|
+
}, null, 8, Be);
|
|
472
473
|
}
|
|
473
|
-
const
|
|
474
|
+
const Oe = /* @__PURE__ */ g(je, [["render", Fe]]), Ae = {
|
|
474
475
|
name: "builder-video",
|
|
475
476
|
props: [
|
|
476
477
|
"autoPlay",
|
|
@@ -511,8 +512,8 @@ const Fe = /* @__PURE__ */ g(Re, [["render", je]]), Be = {
|
|
|
511
512
|
};
|
|
512
513
|
}
|
|
513
514
|
}
|
|
514
|
-
},
|
|
515
|
-
function
|
|
515
|
+
}, Pe = ["src", "poster"];
|
|
516
|
+
function Ue(e, n, t, o, r, s) {
|
|
516
517
|
var i;
|
|
517
518
|
return l(), u("video", S({
|
|
518
519
|
style: {
|
|
@@ -525,14 +526,24 @@ function $e(e, n, t, o, r, s) {
|
|
|
525
526
|
},
|
|
526
527
|
src: t.video || "no-src",
|
|
527
528
|
poster: t.posterImage
|
|
528
|
-
}, s.spreadProps), null, 16,
|
|
529
|
+
}, s.spreadProps), null, 16, Pe);
|
|
529
530
|
}
|
|
530
|
-
const
|
|
531
|
-
|
|
531
|
+
const $e = /* @__PURE__ */ g(Ae, [["render", Ue]]), Ve = Symbol(), $ = {
|
|
532
|
+
Builder: {
|
|
533
|
+
content: null,
|
|
534
|
+
context: {},
|
|
535
|
+
state: {},
|
|
536
|
+
apiKey: null,
|
|
537
|
+
registeredComponents: {},
|
|
538
|
+
inheritedStyles: {}
|
|
539
|
+
},
|
|
540
|
+
key: Ve
|
|
541
|
+
};
|
|
542
|
+
function Le() {
|
|
532
543
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
533
544
|
}
|
|
534
|
-
function
|
|
535
|
-
const e =
|
|
545
|
+
function We() {
|
|
546
|
+
const e = Le().fetch;
|
|
536
547
|
if (typeof e > "u")
|
|
537
548
|
throw console.warn(
|
|
538
549
|
`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
@@ -540,12 +551,12 @@ function Ue() {
|
|
|
540
551
|
), new Error("Builder SDK could not find a global `fetch` function");
|
|
541
552
|
return e;
|
|
542
553
|
}
|
|
543
|
-
const
|
|
554
|
+
const Q = We(), Me = (e) => {
|
|
544
555
|
if (e === "localhost" || e === "127.0.0.1")
|
|
545
556
|
return e;
|
|
546
557
|
const n = e.split(".");
|
|
547
558
|
return n.length > 2 ? n.slice(1).join(".") : e;
|
|
548
|
-
},
|
|
559
|
+
}, Z = async ({
|
|
549
560
|
name: e,
|
|
550
561
|
canTrack: n
|
|
551
562
|
}) => {
|
|
@@ -556,23 +567,23 @@ const J = Ue(), Ve = (e) => {
|
|
|
556
567
|
console.debug("[COOKIE] GET error: ", o);
|
|
557
568
|
return;
|
|
558
569
|
}
|
|
559
|
-
},
|
|
570
|
+
}, Ne = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).filter(C).join("; "), ze = [
|
|
560
571
|
["secure", ""],
|
|
561
572
|
["SameSite", "None"]
|
|
562
|
-
],
|
|
573
|
+
], Ke = ({
|
|
563
574
|
name: e,
|
|
564
575
|
value: n,
|
|
565
576
|
expires: t
|
|
566
577
|
}) => {
|
|
567
|
-
const r = (f() ? location.protocol === "https:" : !0) ?
|
|
578
|
+
const r = (f() ? location.protocol === "https:" : !0) ? ze : [[]], s = t ? [["expires", t.toUTCString()]] : [[]], i = [
|
|
568
579
|
[e, n],
|
|
569
580
|
...s,
|
|
570
581
|
["path", "/"],
|
|
571
|
-
["domain",
|
|
582
|
+
["domain", Me(window.location.hostname)],
|
|
572
583
|
...r
|
|
573
584
|
];
|
|
574
|
-
return
|
|
575
|
-
},
|
|
585
|
+
return Ne(i);
|
|
586
|
+
}, ee = async ({
|
|
576
587
|
name: e,
|
|
577
588
|
value: n,
|
|
578
589
|
expires: t,
|
|
@@ -581,19 +592,19 @@ const J = Ue(), Ve = (e) => {
|
|
|
581
592
|
try {
|
|
582
593
|
if (!o)
|
|
583
594
|
return;
|
|
584
|
-
const r =
|
|
595
|
+
const r = Ke({ name: e, value: n, expires: t });
|
|
585
596
|
document.cookie = r;
|
|
586
597
|
} catch (r) {
|
|
587
598
|
console.warn("[COOKIE] SET error: ", r);
|
|
588
599
|
}
|
|
589
|
-
},
|
|
600
|
+
}, He = "builderio.variations", te = (e) => `${He}.${e}`, qe = ({
|
|
590
601
|
contentId: e,
|
|
591
602
|
canTrack: n
|
|
592
|
-
}) =>
|
|
603
|
+
}) => Z({ name: te(e), canTrack: n }), De = ({
|
|
593
604
|
contentId: e,
|
|
594
605
|
canTrack: n,
|
|
595
606
|
value: t
|
|
596
|
-
}) =>
|
|
607
|
+
}) => ee({ name: te(e), value: t, canTrack: n }), Ge = (e) => C(e.id) && C(e.variations) && Object.keys(e.variations).length > 0, Je = ({
|
|
597
608
|
id: e,
|
|
598
609
|
variations: n
|
|
599
610
|
}) => {
|
|
@@ -604,7 +615,7 @@ const J = Ue(), Ve = (e) => {
|
|
|
604
615
|
if (t += (r = n[s]) == null ? void 0 : r.testRatio, o < t)
|
|
605
616
|
return s;
|
|
606
617
|
return e;
|
|
607
|
-
},
|
|
618
|
+
}, K = ({
|
|
608
619
|
item: e,
|
|
609
620
|
testGroupId: n
|
|
610
621
|
}) => {
|
|
@@ -617,69 +628,69 @@ const J = Ue(), Ve = (e) => {
|
|
|
617
628
|
testVariationId: t.id,
|
|
618
629
|
testVariationName: t.name || (t.id === e.id ? "Default" : "")
|
|
619
630
|
};
|
|
620
|
-
},
|
|
631
|
+
}, Xe = async ({
|
|
621
632
|
item: e,
|
|
622
633
|
canTrack: n
|
|
623
634
|
}) => {
|
|
624
|
-
const t = await
|
|
635
|
+
const t = await qe({
|
|
625
636
|
canTrack: n,
|
|
626
637
|
contentId: e.id
|
|
627
|
-
}), o = t ?
|
|
638
|
+
}), o = t ? K({ item: e, testGroupId: t }) : void 0;
|
|
628
639
|
if (o)
|
|
629
640
|
return o;
|
|
630
641
|
{
|
|
631
|
-
const r =
|
|
642
|
+
const r = Je({
|
|
632
643
|
variations: e.variations,
|
|
633
644
|
id: e.id
|
|
634
645
|
});
|
|
635
|
-
return
|
|
646
|
+
return De({
|
|
636
647
|
contentId: e.id,
|
|
637
648
|
value: r,
|
|
638
649
|
canTrack: n
|
|
639
650
|
}).catch((s) => {
|
|
640
651
|
console.error("could not store A/B test variation: ", s);
|
|
641
|
-
}),
|
|
652
|
+
}), K({ item: e, testGroupId: r });
|
|
642
653
|
}
|
|
643
|
-
},
|
|
654
|
+
}, Ye = async ({
|
|
644
655
|
item: e,
|
|
645
656
|
canTrack: n
|
|
646
657
|
}) => {
|
|
647
|
-
if (!
|
|
658
|
+
if (!Ge(e))
|
|
648
659
|
return;
|
|
649
|
-
const t = await
|
|
660
|
+
const t = await Xe({ item: e, canTrack: n });
|
|
650
661
|
Object.assign(e, t);
|
|
651
662
|
};
|
|
652
|
-
function
|
|
663
|
+
function A(e, n = null, t = ".") {
|
|
653
664
|
return Object.keys(e).reduce((o, r) => {
|
|
654
665
|
const s = e[r], i = [n, r].filter(Boolean).join(t);
|
|
655
666
|
return [
|
|
656
667
|
typeof s == "object",
|
|
657
668
|
s !== null,
|
|
658
669
|
!(Array.isArray(s) && s.length === 0)
|
|
659
|
-
].every(Boolean) ? { ...o, ...
|
|
670
|
+
].every(Boolean) ? { ...o, ...A(s, i, t) } : { ...o, [i]: s };
|
|
660
671
|
}, {});
|
|
661
672
|
}
|
|
662
|
-
const H = "builder.",
|
|
673
|
+
const H = "builder.", Qe = "options.", Ze = (e) => {
|
|
663
674
|
const n = {};
|
|
664
675
|
return e.forEach((t, o) => {
|
|
665
676
|
n[o] = t;
|
|
666
677
|
}), n;
|
|
667
|
-
},
|
|
678
|
+
}, et = (e) => {
|
|
668
679
|
if (!e)
|
|
669
680
|
return {};
|
|
670
|
-
const n =
|
|
681
|
+
const n = ne(e), t = {};
|
|
671
682
|
return Object.keys(n).forEach((o) => {
|
|
672
683
|
if (o.startsWith(H)) {
|
|
673
|
-
const r = o.replace(H, "").replace(
|
|
684
|
+
const r = o.replace(H, "").replace(Qe, "");
|
|
674
685
|
t[r] = n[o];
|
|
675
686
|
}
|
|
676
687
|
}), t;
|
|
677
|
-
},
|
|
688
|
+
}, tt = () => {
|
|
678
689
|
if (!f())
|
|
679
690
|
return {};
|
|
680
691
|
const e = new URLSearchParams(window.location.search);
|
|
681
|
-
return
|
|
682
|
-
},
|
|
692
|
+
return et(e);
|
|
693
|
+
}, ne = (e) => e instanceof URLSearchParams ? Ze(e) : e, nt = (e) => {
|
|
683
694
|
const {
|
|
684
695
|
limit: n = 30,
|
|
685
696
|
userAttributes: t,
|
|
@@ -695,53 +706,59 @@ const H = "builder.", Je = "options.", Xe = (e) => {
|
|
|
695
706
|
const d = new URL(
|
|
696
707
|
`https://cdn.builder.io/api/v2/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${r}&includeRefs=${c}${a ? `&locale=${a}` : ""}`
|
|
697
708
|
), m = {
|
|
698
|
-
...
|
|
699
|
-
...
|
|
700
|
-
}, p =
|
|
709
|
+
...tt(),
|
|
710
|
+
...ne(e.options || {})
|
|
711
|
+
}, p = A(m);
|
|
701
712
|
for (const h in p)
|
|
702
713
|
d.searchParams.set(h, String(p[h]));
|
|
703
714
|
if (t && d.searchParams.set("userAttributes", JSON.stringify(t)), o) {
|
|
704
|
-
const h =
|
|
715
|
+
const h = A({ query: o });
|
|
705
716
|
for (const v in h)
|
|
706
717
|
d.searchParams.set(v, JSON.stringify(h[v]));
|
|
707
718
|
}
|
|
708
719
|
return d;
|
|
709
720
|
};
|
|
710
|
-
async function
|
|
711
|
-
return (await
|
|
721
|
+
async function oe(e) {
|
|
722
|
+
return (await ot({ ...e, limit: 1 })).results[0] || null;
|
|
712
723
|
}
|
|
713
|
-
async function
|
|
714
|
-
const n =
|
|
724
|
+
async function ot(e) {
|
|
725
|
+
const n = nt(e), o = await (await Q(n.href)).json(), r = e.canTrack !== !1;
|
|
715
726
|
if (r && Array.isArray(o.results))
|
|
716
727
|
for (const s of o.results)
|
|
717
|
-
await
|
|
728
|
+
await Ye({ item: s, canTrack: r });
|
|
718
729
|
return o;
|
|
719
730
|
}
|
|
720
|
-
const
|
|
731
|
+
const st = () => Promise.resolve().then(() => xn).then((e) => e.default).catch((e) => {
|
|
721
732
|
throw console.error(
|
|
722
733
|
"Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
|
|
723
734
|
e
|
|
724
735
|
), e;
|
|
725
|
-
}),
|
|
736
|
+
}), rt = {
|
|
726
737
|
name: "builder-symbol",
|
|
727
|
-
components: { RenderContent: x(
|
|
738
|
+
components: { RenderContent: x(st) },
|
|
728
739
|
props: ["attributes", "symbol", "dynamic"],
|
|
729
|
-
data
|
|
740
|
+
data() {
|
|
741
|
+
return { fetchedContent: null };
|
|
742
|
+
},
|
|
730
743
|
inject: {
|
|
731
|
-
builderContext:
|
|
744
|
+
builderContext: $.key
|
|
732
745
|
},
|
|
733
746
|
watch: {
|
|
734
|
-
onUpdateHook0
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
747
|
+
onUpdateHook0: {
|
|
748
|
+
handler() {
|
|
749
|
+
var n;
|
|
750
|
+
const e = this.symbol;
|
|
751
|
+
e && !e.content && !this.fetchedContent && e.model && ((n = this.builderContext) == null ? void 0 : n.apiKey) && oe({
|
|
752
|
+
model: e.model,
|
|
753
|
+
apiKey: this.builderContext.apiKey,
|
|
754
|
+
query: {
|
|
755
|
+
id: e.entry
|
|
756
|
+
}
|
|
757
|
+
}).then((t) => {
|
|
758
|
+
this.fetchedContent = t;
|
|
759
|
+
});
|
|
760
|
+
},
|
|
761
|
+
immediate: !0
|
|
745
762
|
}
|
|
746
763
|
},
|
|
747
764
|
computed: {
|
|
@@ -776,8 +793,8 @@ const tt = () => Promise.resolve().then(() => un).then((e) => e.default).catch((
|
|
|
776
793
|
return n;
|
|
777
794
|
}
|
|
778
795
|
}
|
|
779
|
-
},
|
|
780
|
-
function
|
|
796
|
+
}, it = ["dataSet"];
|
|
797
|
+
function at(e, n, t, o, r, s) {
|
|
781
798
|
var c, a, d, m, p;
|
|
782
799
|
const i = k("render-content");
|
|
783
800
|
return l(), u("div", S({
|
|
@@ -786,7 +803,7 @@ function st(e, n, t, o, r, s) {
|
|
|
786
803
|
},
|
|
787
804
|
class: s._classStringToObject(s.className)
|
|
788
805
|
}, t.attributes), [
|
|
789
|
-
|
|
806
|
+
X(i, {
|
|
790
807
|
apiKey: s.builderContext.apiKey,
|
|
791
808
|
context: s.builderContext.context,
|
|
792
809
|
customComponents: Object.values(s.builderContext.registeredComponents),
|
|
@@ -798,29 +815,29 @@ function st(e, n, t, o, r, s) {
|
|
|
798
815
|
model: (p = t.symbol) == null ? void 0 : p.model,
|
|
799
816
|
content: s.contentToUse
|
|
800
817
|
}, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
|
|
801
|
-
], 16,
|
|
818
|
+
], 16, it);
|
|
802
819
|
}
|
|
803
|
-
const
|
|
820
|
+
const ct = /* @__PURE__ */ g(rt, [["render", at]]), lt = {
|
|
804
821
|
name: "builder-button",
|
|
805
822
|
props: ["attributes", "text", "link", "openLinkInNewTab"]
|
|
806
823
|
};
|
|
807
|
-
const
|
|
808
|
-
function
|
|
824
|
+
const dt = ["href", "target"];
|
|
825
|
+
function ut(e, n, t, o, r, s) {
|
|
809
826
|
return t.link ? (l(), u("a", S({
|
|
810
827
|
key: 0,
|
|
811
828
|
role: "button",
|
|
812
829
|
href: t.link,
|
|
813
830
|
target: t.openLinkInNewTab ? "_blank" : void 0
|
|
814
|
-
}, t.attributes), W(t.text), 17,
|
|
831
|
+
}, t.attributes), W(t.text), 17, dt)) : (l(), u("button", S({
|
|
815
832
|
key: 1,
|
|
816
|
-
class: "button-
|
|
833
|
+
class: "button-4o9pb21oca6"
|
|
817
834
|
}, t.attributes), W(t.text), 17));
|
|
818
835
|
}
|
|
819
|
-
const
|
|
836
|
+
const mt = /* @__PURE__ */ g(lt, [["render", ut], ["__scopeId", "data-v-f9067262"]]), pt = {
|
|
820
837
|
name: "builder-section-component",
|
|
821
838
|
props: ["attributes", "maxWidth"]
|
|
822
839
|
};
|
|
823
|
-
function
|
|
840
|
+
function ht(e, n, t, o, r, s) {
|
|
824
841
|
return l(), u("section", S({
|
|
825
842
|
style: {
|
|
826
843
|
width: "100%",
|
|
@@ -835,19 +852,19 @@ function ut(e, n, t, o, r, s) {
|
|
|
835
852
|
marginRight: "auto"
|
|
836
853
|
}
|
|
837
854
|
}, t.attributes), [
|
|
838
|
-
|
|
855
|
+
E(e.$slots, "default")
|
|
839
856
|
], 16);
|
|
840
857
|
}
|
|
841
|
-
const
|
|
858
|
+
const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
842
859
|
name: "builder-fragment-component",
|
|
843
860
|
props: []
|
|
844
861
|
};
|
|
845
|
-
function
|
|
862
|
+
function bt(e, n, t, o, r, s) {
|
|
846
863
|
return l(), u("span", null, [
|
|
847
|
-
|
|
864
|
+
E(e.$slots, "default")
|
|
848
865
|
]);
|
|
849
866
|
}
|
|
850
|
-
const
|
|
867
|
+
const yt = /* @__PURE__ */ g(gt, [["render", bt]]), vt = {
|
|
851
868
|
name: "Core:Button",
|
|
852
869
|
builtIn: !0,
|
|
853
870
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -884,10 +901,10 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
884
901
|
],
|
|
885
902
|
static: !0,
|
|
886
903
|
noWrap: !0
|
|
887
|
-
},
|
|
904
|
+
}, B = (e) => {
|
|
888
905
|
const n = e.toString().trim();
|
|
889
906
|
return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
|
|
890
|
-
},
|
|
907
|
+
}, xt = {
|
|
891
908
|
name: "Columns",
|
|
892
909
|
builtIn: !0,
|
|
893
910
|
inputs: [
|
|
@@ -1075,7 +1092,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1075
1092
|
]
|
|
1076
1093
|
}
|
|
1077
1094
|
],
|
|
1078
|
-
onChange:
|
|
1095
|
+
onChange: B((e) => {
|
|
1079
1096
|
function n() {
|
|
1080
1097
|
t.forEach((o) => {
|
|
1081
1098
|
o.delete("width");
|
|
@@ -1112,14 +1129,14 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1112
1129
|
advanced: !0
|
|
1113
1130
|
}
|
|
1114
1131
|
]
|
|
1115
|
-
},
|
|
1132
|
+
}, kt = {
|
|
1116
1133
|
name: "Fragment",
|
|
1117
1134
|
static: !0,
|
|
1118
1135
|
hidden: !0,
|
|
1119
1136
|
builtIn: !0,
|
|
1120
1137
|
canHaveChildren: !0,
|
|
1121
1138
|
noWrap: !0
|
|
1122
|
-
},
|
|
1139
|
+
}, Ct = {
|
|
1123
1140
|
name: "Image",
|
|
1124
1141
|
static: !0,
|
|
1125
1142
|
builtIn: !0,
|
|
@@ -1139,7 +1156,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1139
1156
|
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
1140
1157
|
required: !0,
|
|
1141
1158
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
1142
|
-
onChange:
|
|
1159
|
+
onChange: B(
|
|
1143
1160
|
(e) => {
|
|
1144
1161
|
e.delete("srcset"), e.delete("noWebp");
|
|
1145
1162
|
function t(i, c = 6e4) {
|
|
@@ -1247,7 +1264,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1247
1264
|
defaultValue: 0.7041
|
|
1248
1265
|
}
|
|
1249
1266
|
]
|
|
1250
|
-
},
|
|
1267
|
+
}, St = {
|
|
1251
1268
|
name: "Core:Section",
|
|
1252
1269
|
static: !0,
|
|
1253
1270
|
builtIn: !0,
|
|
@@ -1292,7 +1309,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1292
1309
|
}
|
|
1293
1310
|
}
|
|
1294
1311
|
]
|
|
1295
|
-
},
|
|
1312
|
+
}, _t = {
|
|
1296
1313
|
name: "Symbol",
|
|
1297
1314
|
noWrap: !0,
|
|
1298
1315
|
static: !0,
|
|
@@ -1331,7 +1348,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1331
1348
|
type: "boolean"
|
|
1332
1349
|
}
|
|
1333
1350
|
]
|
|
1334
|
-
},
|
|
1351
|
+
}, wt = {
|
|
1335
1352
|
name: "Text",
|
|
1336
1353
|
static: !0,
|
|
1337
1354
|
builtIn: !0,
|
|
@@ -1351,7 +1368,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1351
1368
|
height: "auto",
|
|
1352
1369
|
textAlign: "center"
|
|
1353
1370
|
}
|
|
1354
|
-
},
|
|
1371
|
+
}, It = {
|
|
1355
1372
|
name: "Video",
|
|
1356
1373
|
canHaveChildren: !0,
|
|
1357
1374
|
builtIn: !0,
|
|
@@ -1453,7 +1470,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1453
1470
|
advanced: !0
|
|
1454
1471
|
}
|
|
1455
1472
|
]
|
|
1456
|
-
},
|
|
1473
|
+
}, Tt = {
|
|
1457
1474
|
name: "Embed",
|
|
1458
1475
|
static: !0,
|
|
1459
1476
|
builtIn: !0,
|
|
@@ -1464,7 +1481,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1464
1481
|
required: !0,
|
|
1465
1482
|
defaultValue: "",
|
|
1466
1483
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1467
|
-
onChange:
|
|
1484
|
+
onChange: B(
|
|
1468
1485
|
(e) => {
|
|
1469
1486
|
const n = e.get("url");
|
|
1470
1487
|
if (n)
|
|
@@ -1489,17 +1506,22 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1489
1506
|
hideFromUI: !0
|
|
1490
1507
|
}
|
|
1491
1508
|
]
|
|
1492
|
-
},
|
|
1509
|
+
}, Rt = [
|
|
1493
1510
|
"text/javascript",
|
|
1494
1511
|
"application/javascript",
|
|
1495
1512
|
"application/ecmascript"
|
|
1496
|
-
],
|
|
1513
|
+
], Et = (e) => Rt.includes(e.type), jt = {
|
|
1497
1514
|
name: "builder-embed",
|
|
1498
1515
|
props: ["content"],
|
|
1499
|
-
data
|
|
1516
|
+
data() {
|
|
1517
|
+
return { scriptsInserted: [], scriptsRun: [], ranInitFn: !1 };
|
|
1518
|
+
},
|
|
1500
1519
|
watch: {
|
|
1501
|
-
onUpdateHook0
|
|
1502
|
-
|
|
1520
|
+
onUpdateHook0: {
|
|
1521
|
+
handler() {
|
|
1522
|
+
this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
|
|
1523
|
+
},
|
|
1524
|
+
immediate: !0
|
|
1503
1525
|
}
|
|
1504
1526
|
},
|
|
1505
1527
|
computed: {
|
|
@@ -1521,7 +1543,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1521
1543
|
this.scriptsInserted.push(t.src);
|
|
1522
1544
|
const o = document.createElement("script");
|
|
1523
1545
|
o.async = !0, o.src = t.src, document.head.appendChild(o);
|
|
1524
|
-
} else if (
|
|
1546
|
+
} else if (Et(t) && !this.scriptsRun.includes(t.innerText))
|
|
1525
1547
|
try {
|
|
1526
1548
|
this.scriptsRun.push(t.innerText), new Function(t.innerText)();
|
|
1527
1549
|
} catch (o) {
|
|
@@ -1530,22 +1552,22 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1530
1552
|
}
|
|
1531
1553
|
}
|
|
1532
1554
|
}
|
|
1533
|
-
},
|
|
1534
|
-
function
|
|
1555
|
+
}, Bt = ["innerHTML"];
|
|
1556
|
+
function Ft(e, n, t, o, r, s) {
|
|
1535
1557
|
return l(), u("div", {
|
|
1536
1558
|
class: "builder-embed",
|
|
1537
1559
|
ref: "elem",
|
|
1538
1560
|
innerHTML: t.content
|
|
1539
|
-
}, null, 8,
|
|
1561
|
+
}, null, 8, Bt);
|
|
1540
1562
|
}
|
|
1541
|
-
const
|
|
1542
|
-
function
|
|
1563
|
+
const Ot = /* @__PURE__ */ g(jt, [["render", Ft]]);
|
|
1564
|
+
function At() {
|
|
1543
1565
|
return f() && window.self !== window.top;
|
|
1544
1566
|
}
|
|
1545
1567
|
function y() {
|
|
1546
|
-
return
|
|
1568
|
+
return At() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1547
1569
|
}
|
|
1548
|
-
const
|
|
1570
|
+
const Pt = {
|
|
1549
1571
|
name: "builder-img-component",
|
|
1550
1572
|
props: [
|
|
1551
1573
|
"backgroundSize",
|
|
@@ -1555,20 +1577,22 @@ const Bt = {
|
|
|
1555
1577
|
"image",
|
|
1556
1578
|
"attributes"
|
|
1557
1579
|
],
|
|
1558
|
-
data
|
|
1559
|
-
|
|
1580
|
+
data() {
|
|
1581
|
+
return { isEditing: y };
|
|
1582
|
+
}
|
|
1583
|
+
}, Ut = ["alt", "src"];
|
|
1560
1584
|
function $t(e, n, t, o, r, s) {
|
|
1561
1585
|
return l(), u("img", S({
|
|
1562
1586
|
style: {
|
|
1563
1587
|
objectFit: t.backgroundSize || "cover",
|
|
1564
1588
|
objectPosition: t.backgroundPosition || "center"
|
|
1565
1589
|
},
|
|
1566
|
-
key:
|
|
1590
|
+
key: r.isEditing() && t.imgSrc || "default-key",
|
|
1567
1591
|
alt: t.altText,
|
|
1568
1592
|
src: t.imgSrc || t.image
|
|
1569
|
-
}, t.attributes), null, 16,
|
|
1593
|
+
}, t.attributes), null, 16, Ut);
|
|
1570
1594
|
}
|
|
1571
|
-
const
|
|
1595
|
+
const Vt = /* @__PURE__ */ g(Pt, [["render", $t]]), Lt = {
|
|
1572
1596
|
name: "Raw:Img",
|
|
1573
1597
|
hideFromInsertMenu: !0,
|
|
1574
1598
|
builtIn: !0,
|
|
@@ -1584,10 +1608,12 @@ const Ot = /* @__PURE__ */ g(Bt, [["render", $t]]), Pt = {
|
|
|
1584
1608
|
],
|
|
1585
1609
|
noWrap: !0,
|
|
1586
1610
|
static: !0
|
|
1587
|
-
},
|
|
1611
|
+
}, Wt = {
|
|
1588
1612
|
name: "builder-custom-code",
|
|
1589
1613
|
props: ["replaceNodes", "code"],
|
|
1590
|
-
data
|
|
1614
|
+
data() {
|
|
1615
|
+
return { scriptsInserted: [], scriptsRun: [] };
|
|
1616
|
+
},
|
|
1591
1617
|
mounted() {
|
|
1592
1618
|
this.findAndRunScripts();
|
|
1593
1619
|
},
|
|
@@ -1629,19 +1655,19 @@ const Ot = /* @__PURE__ */ g(Bt, [["render", $t]]), Pt = {
|
|
|
1629
1655
|
return n;
|
|
1630
1656
|
}
|
|
1631
1657
|
}
|
|
1632
|
-
},
|
|
1633
|
-
function
|
|
1658
|
+
}, Mt = ["innerHTML"];
|
|
1659
|
+
function Nt(e, n, t, o, r, s) {
|
|
1634
1660
|
return l(), u("div", {
|
|
1635
1661
|
ref: "elem",
|
|
1636
|
-
class:
|
|
1662
|
+
class: j(
|
|
1637
1663
|
s._classStringToObject(
|
|
1638
1664
|
"builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
|
|
1639
1665
|
)
|
|
1640
1666
|
),
|
|
1641
1667
|
innerHTML: t.code
|
|
1642
|
-
}, null, 10,
|
|
1668
|
+
}, null, 10, Mt);
|
|
1643
1669
|
}
|
|
1644
|
-
const
|
|
1670
|
+
const zt = /* @__PURE__ */ g(Wt, [["render", Nt]]), Kt = {
|
|
1645
1671
|
name: "Custom Code",
|
|
1646
1672
|
static: !0,
|
|
1647
1673
|
builtIn: !0,
|
|
@@ -1668,20 +1694,20 @@ const Lt = /* @__PURE__ */ g(Ut, [["render", Wt]]), Nt = {
|
|
|
1668
1694
|
advanced: !0
|
|
1669
1695
|
}
|
|
1670
1696
|
]
|
|
1671
|
-
},
|
|
1672
|
-
{ component:
|
|
1673
|
-
{ component:
|
|
1674
|
-
{ component:
|
|
1675
|
-
{ component:
|
|
1676
|
-
{ component:
|
|
1677
|
-
{ component:
|
|
1678
|
-
{ component:
|
|
1679
|
-
{ component:
|
|
1680
|
-
{ component:
|
|
1681
|
-
{ component:
|
|
1682
|
-
{ component:
|
|
1697
|
+
}, Ht = () => [
|
|
1698
|
+
{ component: ke, ...xt },
|
|
1699
|
+
{ component: Ee, ...Ct },
|
|
1700
|
+
{ component: Vt, ...Lt },
|
|
1701
|
+
{ component: Oe, ...wt },
|
|
1702
|
+
{ component: $e, ...It },
|
|
1703
|
+
{ component: ct, ..._t },
|
|
1704
|
+
{ component: mt, ...vt },
|
|
1705
|
+
{ component: ft, ...St },
|
|
1706
|
+
{ component: yt, ...kt },
|
|
1707
|
+
{ component: Ot, ...Tt },
|
|
1708
|
+
{ component: zt, ...Kt }
|
|
1683
1709
|
];
|
|
1684
|
-
function
|
|
1710
|
+
function q({
|
|
1685
1711
|
code: e,
|
|
1686
1712
|
context: n,
|
|
1687
1713
|
state: t,
|
|
@@ -1718,22 +1744,22 @@ function K({
|
|
|
1718
1744
|
);
|
|
1719
1745
|
}
|
|
1720
1746
|
}
|
|
1721
|
-
function
|
|
1747
|
+
function qt() {
|
|
1722
1748
|
return !f() || y() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1723
1749
|
}
|
|
1724
|
-
const
|
|
1725
|
-
function
|
|
1726
|
-
return
|
|
1750
|
+
const se = [];
|
|
1751
|
+
function jn(e, n) {
|
|
1752
|
+
return se.push({ component: e, ...n }), console.warn(
|
|
1727
1753
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1728
1754
|
), e;
|
|
1729
1755
|
}
|
|
1730
|
-
const
|
|
1756
|
+
const Dt = ({
|
|
1731
1757
|
component: e,
|
|
1732
1758
|
...n
|
|
1733
1759
|
}) => ({
|
|
1734
1760
|
type: "builder.registerComponent",
|
|
1735
|
-
data:
|
|
1736
|
-
}),
|
|
1761
|
+
data: Jt(n)
|
|
1762
|
+
}), Gt = (e) => typeof e == "function" ? B(e) : U(e), Jt = ({
|
|
1737
1763
|
inputs: e,
|
|
1738
1764
|
...n
|
|
1739
1765
|
}) => ({
|
|
@@ -1742,92 +1768,124 @@ const Ht = ({
|
|
|
1742
1768
|
(t) => Object.entries(t).reduce(
|
|
1743
1769
|
(o, [r, s]) => ({
|
|
1744
1770
|
...o,
|
|
1745
|
-
[r]:
|
|
1771
|
+
[r]: Gt(s)
|
|
1746
1772
|
}),
|
|
1747
1773
|
{}
|
|
1748
1774
|
)
|
|
1749
1775
|
)
|
|
1750
1776
|
});
|
|
1751
|
-
function
|
|
1777
|
+
function Xt() {
|
|
1752
1778
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
1753
1779
|
const n = Math.random() * 16 | 0;
|
|
1754
1780
|
return (e == "x" ? n : n & 3 | 8).toString(16);
|
|
1755
1781
|
});
|
|
1756
1782
|
}
|
|
1757
|
-
function
|
|
1758
|
-
return
|
|
1783
|
+
function re() {
|
|
1784
|
+
return Xt().replace(/-/g, "");
|
|
1759
1785
|
}
|
|
1760
|
-
const
|
|
1786
|
+
const ie = "builderSessionId", Yt = async ({
|
|
1761
1787
|
canTrack: e
|
|
1762
1788
|
}) => {
|
|
1763
1789
|
if (!e)
|
|
1764
1790
|
return;
|
|
1765
|
-
const n = await
|
|
1766
|
-
name:
|
|
1791
|
+
const n = await Z({
|
|
1792
|
+
name: ie,
|
|
1767
1793
|
canTrack: e
|
|
1768
1794
|
});
|
|
1769
1795
|
if (C(n))
|
|
1770
1796
|
return n;
|
|
1771
1797
|
{
|
|
1772
|
-
const t =
|
|
1773
|
-
return
|
|
1798
|
+
const t = Qt();
|
|
1799
|
+
return Zt({ id: t, canTrack: e }), t;
|
|
1774
1800
|
}
|
|
1775
|
-
},
|
|
1801
|
+
}, Qt = () => re(), Zt = ({
|
|
1776
1802
|
id: e,
|
|
1777
1803
|
canTrack: n
|
|
1778
|
-
}) =>
|
|
1804
|
+
}) => ee({ name: ie, value: e, canTrack: n }), ae = () => f() && typeof localStorage < "u" ? localStorage : void 0, en = ({
|
|
1779
1805
|
key: e,
|
|
1780
1806
|
canTrack: n
|
|
1781
1807
|
}) => {
|
|
1782
1808
|
var t;
|
|
1783
1809
|
try {
|
|
1784
|
-
return n ? (t =
|
|
1810
|
+
return n ? (t = ae()) == null ? void 0 : t.getItem(e) : void 0;
|
|
1785
1811
|
} catch (o) {
|
|
1786
1812
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1787
1813
|
return;
|
|
1788
1814
|
}
|
|
1789
|
-
},
|
|
1815
|
+
}, tn = ({
|
|
1790
1816
|
key: e,
|
|
1791
1817
|
canTrack: n,
|
|
1792
1818
|
value: t
|
|
1793
1819
|
}) => {
|
|
1794
1820
|
var o;
|
|
1795
1821
|
try {
|
|
1796
|
-
n && ((o =
|
|
1822
|
+
n && ((o = ae()) == null || o.setItem(e, t));
|
|
1797
1823
|
} catch (r) {
|
|
1798
1824
|
console.debug("[LocalStorage] SET error: ", r);
|
|
1799
1825
|
}
|
|
1800
|
-
},
|
|
1826
|
+
}, ce = "builderVisitorId", nn = ({ canTrack: e }) => {
|
|
1801
1827
|
if (!e)
|
|
1802
1828
|
return;
|
|
1803
|
-
const n =
|
|
1804
|
-
key:
|
|
1829
|
+
const n = en({
|
|
1830
|
+
key: ce,
|
|
1805
1831
|
canTrack: e
|
|
1806
1832
|
});
|
|
1807
1833
|
if (C(n))
|
|
1808
1834
|
return n;
|
|
1809
1835
|
{
|
|
1810
|
-
const t =
|
|
1811
|
-
return
|
|
1836
|
+
const t = on();
|
|
1837
|
+
return sn({ id: t, canTrack: e }), t;
|
|
1812
1838
|
}
|
|
1813
|
-
},
|
|
1839
|
+
}, on = () => re(), sn = ({
|
|
1814
1840
|
id: e,
|
|
1815
1841
|
canTrack: n
|
|
1816
|
-
}) =>
|
|
1817
|
-
key:
|
|
1842
|
+
}) => tn({
|
|
1843
|
+
key: ce,
|
|
1818
1844
|
value: e,
|
|
1819
1845
|
canTrack: n
|
|
1820
|
-
}),
|
|
1846
|
+
}), rn = () => {
|
|
1847
|
+
if (f()) {
|
|
1848
|
+
const e = new URL(location.href);
|
|
1849
|
+
return e.pathname === "" && (e.pathname = "/"), e;
|
|
1850
|
+
} else
|
|
1851
|
+
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
1852
|
+
}, an = () => typeof navigator == "object" && navigator.userAgent || "", cn = () => {
|
|
1853
|
+
const e = an(), n = {
|
|
1854
|
+
Android() {
|
|
1855
|
+
return e.match(/Android/i);
|
|
1856
|
+
},
|
|
1857
|
+
BlackBerry() {
|
|
1858
|
+
return e.match(/BlackBerry/i);
|
|
1859
|
+
},
|
|
1860
|
+
iOS() {
|
|
1861
|
+
return e.match(/iPhone|iPod/i);
|
|
1862
|
+
},
|
|
1863
|
+
Opera() {
|
|
1864
|
+
return e.match(/Opera Mini/i);
|
|
1865
|
+
},
|
|
1866
|
+
Windows() {
|
|
1867
|
+
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
1868
|
+
},
|
|
1869
|
+
any() {
|
|
1870
|
+
return n.Android() || n.BlackBerry() || n.iOS() || n.Opera() || n.Windows() || T === "reactNative";
|
|
1871
|
+
}
|
|
1872
|
+
}, t = e.match(/Tablet|iPad/i), o = rn();
|
|
1873
|
+
return {
|
|
1874
|
+
urlPath: o == null ? void 0 : o.pathname,
|
|
1875
|
+
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
1876
|
+
device: t ? "tablet" : n.any() ? "mobile" : "desktop"
|
|
1877
|
+
};
|
|
1878
|
+
}, ln = async ({
|
|
1821
1879
|
canTrack: e
|
|
1822
1880
|
}) => {
|
|
1823
1881
|
if (!e)
|
|
1824
1882
|
return { visitorId: void 0, sessionId: void 0 };
|
|
1825
|
-
const n = await
|
|
1883
|
+
const n = await Yt({ canTrack: e }), t = nn({ canTrack: e });
|
|
1826
1884
|
return {
|
|
1827
1885
|
sessionId: n,
|
|
1828
1886
|
visitorId: t
|
|
1829
1887
|
};
|
|
1830
|
-
},
|
|
1888
|
+
}, dn = async ({
|
|
1831
1889
|
type: e,
|
|
1832
1890
|
canTrack: n,
|
|
1833
1891
|
apiKey: t,
|
|
@@ -1837,8 +1895,12 @@ const oe = "builderSessionId", Gt = async ({
|
|
|
1837
1895
|
type: e,
|
|
1838
1896
|
data: {
|
|
1839
1897
|
...r,
|
|
1840
|
-
metadata:
|
|
1841
|
-
|
|
1898
|
+
metadata: {
|
|
1899
|
+
url: location.href,
|
|
1900
|
+
...o
|
|
1901
|
+
},
|
|
1902
|
+
...await ln({ canTrack: n }),
|
|
1903
|
+
userAttributes: cn(),
|
|
1842
1904
|
ownerId: t
|
|
1843
1905
|
}
|
|
1844
1906
|
});
|
|
@@ -1849,11 +1911,11 @@ async function P(e) {
|
|
|
1849
1911
|
);
|
|
1850
1912
|
return;
|
|
1851
1913
|
}
|
|
1852
|
-
if (!!e.canTrack && !y() && !!(f() ||
|
|
1914
|
+
if (!!e.canTrack && !y() && !!(f() || T === "reactNative"))
|
|
1853
1915
|
return fetch("https://builder.io/api/v1/track", {
|
|
1854
1916
|
method: "POST",
|
|
1855
1917
|
body: JSON.stringify({
|
|
1856
|
-
events: [await
|
|
1918
|
+
events: [await dn(e)]
|
|
1857
1919
|
}),
|
|
1858
1920
|
headers: {
|
|
1859
1921
|
"content-type": "application/json"
|
|
@@ -1863,21 +1925,58 @@ async function P(e) {
|
|
|
1863
1925
|
console.error("Failed to track: ", n);
|
|
1864
1926
|
});
|
|
1865
1927
|
}
|
|
1866
|
-
const
|
|
1928
|
+
const Bn = (e) => P({ ...e, canTrack: !0 });
|
|
1929
|
+
function D(e) {
|
|
1930
|
+
return Math.round(e * 1e3) / 1e3;
|
|
1931
|
+
}
|
|
1932
|
+
const un = (e, n, t = !0) => {
|
|
1933
|
+
if (!(e instanceof HTMLElement))
|
|
1934
|
+
return null;
|
|
1935
|
+
let o = t ? e : e.parentElement;
|
|
1936
|
+
do {
|
|
1937
|
+
if (!o)
|
|
1938
|
+
return null;
|
|
1939
|
+
if (n(o))
|
|
1940
|
+
return o;
|
|
1941
|
+
} while (o = o.parentElement);
|
|
1942
|
+
return null;
|
|
1943
|
+
}, mn = (e) => un(e, (n) => {
|
|
1944
|
+
const t = n.getAttribute("builder-id") || n.id;
|
|
1945
|
+
return Boolean((t == null ? void 0 : t.indexOf("builder-")) === 0);
|
|
1946
|
+
}), G = ({
|
|
1947
|
+
event: e,
|
|
1948
|
+
target: n
|
|
1949
|
+
}) => {
|
|
1950
|
+
const t = n.getBoundingClientRect(), o = e.clientX - t.left, r = e.clientY - t.top, s = D(o / t.width), i = D(r / t.height);
|
|
1951
|
+
return {
|
|
1952
|
+
x: s,
|
|
1953
|
+
y: i
|
|
1954
|
+
};
|
|
1955
|
+
}, pn = (e) => {
|
|
1956
|
+
const n = e.target, t = n && mn(n), o = (t == null ? void 0 : t.getAttribute("builder-id")) || (t == null ? void 0 : t.id);
|
|
1957
|
+
return {
|
|
1958
|
+
targetBuilderElement: o || void 0,
|
|
1959
|
+
metadata: {
|
|
1960
|
+
targetOffset: n ? G({ event: e, target: n }) : void 0,
|
|
1961
|
+
builderTargetOffset: t ? G({ event: e, target: t }) : void 0,
|
|
1962
|
+
builderElementIndex: t && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(t) : void 0
|
|
1963
|
+
}
|
|
1964
|
+
};
|
|
1965
|
+
}, hn = () => Promise.resolve().then(() => le).then((e) => e.default).catch((e) => {
|
|
1867
1966
|
throw console.error(
|
|
1868
1967
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
1869
1968
|
e
|
|
1870
1969
|
), e;
|
|
1871
|
-
}),
|
|
1970
|
+
}), fn = () => import("./render-styles.8780951f.js").then((e) => e.default).catch((e) => {
|
|
1872
1971
|
throw console.error(
|
|
1873
1972
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
1874
1973
|
e
|
|
1875
1974
|
), e;
|
|
1876
|
-
}),
|
|
1975
|
+
}), gn = {
|
|
1877
1976
|
name: "render-content",
|
|
1878
1977
|
components: {
|
|
1879
|
-
RenderContentStyles: x(
|
|
1880
|
-
RenderBlocks: x(
|
|
1978
|
+
RenderContentStyles: x(fn),
|
|
1979
|
+
RenderBlocks: x(hn)
|
|
1881
1980
|
},
|
|
1882
1981
|
props: [
|
|
1883
1982
|
"content",
|
|
@@ -1890,32 +1989,39 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
1890
1989
|
"apiKey",
|
|
1891
1990
|
"includeRefs"
|
|
1892
1991
|
],
|
|
1893
|
-
data
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1992
|
+
data() {
|
|
1993
|
+
return {
|
|
1994
|
+
forceReRenderCount: 0,
|
|
1995
|
+
overrideContent: null,
|
|
1996
|
+
update: 0,
|
|
1997
|
+
useBreakpoints: null,
|
|
1998
|
+
canTrackToUse: C(this.canTrack) ? this.canTrack : !0,
|
|
1999
|
+
overrideState: {},
|
|
2000
|
+
contextContext: this.context || {},
|
|
2001
|
+
allRegisteredComponents: [
|
|
2002
|
+
...Ht(),
|
|
2003
|
+
...se,
|
|
2004
|
+
...this.customComponents || []
|
|
2005
|
+
].reduce(
|
|
2006
|
+
(e, n) => ({
|
|
2007
|
+
...e,
|
|
2008
|
+
[n.name]: n
|
|
2009
|
+
}),
|
|
2010
|
+
{}
|
|
2011
|
+
),
|
|
2012
|
+
httpReqsData: {},
|
|
2013
|
+
clicked: !1
|
|
2014
|
+
};
|
|
2015
|
+
},
|
|
1900
2016
|
provide() {
|
|
1901
2017
|
const e = this;
|
|
1902
2018
|
return {
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
},
|
|
1910
|
-
get context() {
|
|
1911
|
-
return e.contextContext;
|
|
1912
|
-
},
|
|
1913
|
-
get apiKey() {
|
|
1914
|
-
return e.apiKey;
|
|
1915
|
-
},
|
|
1916
|
-
get registeredComponents() {
|
|
1917
|
-
return e.allRegisteredComponents;
|
|
1918
|
-
}
|
|
2019
|
+
[$.key]: {
|
|
2020
|
+
content: e.useContent,
|
|
2021
|
+
state: e.contentState,
|
|
2022
|
+
context: e.contextContext,
|
|
2023
|
+
apiKey: e.apiKey,
|
|
2024
|
+
registeredComponents: e.allRegisteredComponents
|
|
1919
2025
|
}
|
|
1920
2026
|
};
|
|
1921
2027
|
},
|
|
@@ -1924,7 +2030,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
1924
2030
|
if (this.apiKey || console.error(
|
|
1925
2031
|
"[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
1926
2032
|
), f()) {
|
|
1927
|
-
if (y() && (this.forceReRenderCount = this.forceReRenderCount + 1,
|
|
2033
|
+
if (y() && (this.forceReRenderCount = this.forceReRenderCount + 1, me(), pe({
|
|
1928
2034
|
...this.locale ? {
|
|
1929
2035
|
locale: this.locale
|
|
1930
2036
|
} : {},
|
|
@@ -1934,7 +2040,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
1934
2040
|
}), Object.values(this.allRegisteredComponents).forEach(
|
|
1935
2041
|
(t) => {
|
|
1936
2042
|
var r;
|
|
1937
|
-
const o =
|
|
2043
|
+
const o = Dt(t);
|
|
1938
2044
|
(r = window.parent) == null || r.postMessage(o, "*");
|
|
1939
2045
|
}
|
|
1940
2046
|
), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
@@ -1950,30 +2056,36 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
1950
2056
|
variationId: t !== o ? t : void 0
|
|
1951
2057
|
});
|
|
1952
2058
|
}
|
|
1953
|
-
if (
|
|
1954
|
-
const t = new URL(location.href).searchParams;
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
r && (this.overrideContent = r);
|
|
1962
|
-
});
|
|
1963
|
-
}
|
|
2059
|
+
if (qt()) {
|
|
2060
|
+
const t = new URL(location.href).searchParams, o = t.get("builder.preview"), r = t.get("apiKey") || t.get("builder.space");
|
|
2061
|
+
o === this.model && r === this.apiKey && oe({
|
|
2062
|
+
model: this.model,
|
|
2063
|
+
apiKey: this.apiKey
|
|
2064
|
+
}).then((s) => {
|
|
2065
|
+
s && (this.overrideContent = s);
|
|
2066
|
+
});
|
|
1964
2067
|
}
|
|
1965
2068
|
this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
|
|
1966
2069
|
}
|
|
1967
2070
|
},
|
|
1968
2071
|
watch: {
|
|
1969
|
-
onUpdateHook0
|
|
1970
|
-
|
|
2072
|
+
onUpdateHook0: {
|
|
2073
|
+
handler() {
|
|
2074
|
+
this.evaluateJsCode();
|
|
2075
|
+
},
|
|
2076
|
+
immediate: !0
|
|
1971
2077
|
},
|
|
1972
|
-
onUpdateHook1
|
|
1973
|
-
|
|
2078
|
+
onUpdateHook1: {
|
|
2079
|
+
handler() {
|
|
2080
|
+
this.runHttpRequests();
|
|
2081
|
+
},
|
|
2082
|
+
immediate: !0
|
|
1974
2083
|
},
|
|
1975
|
-
onUpdateHook2
|
|
1976
|
-
|
|
2084
|
+
onUpdateHook2: {
|
|
2085
|
+
handler() {
|
|
2086
|
+
this.emitStateUpdate();
|
|
2087
|
+
},
|
|
2088
|
+
immediate: !0
|
|
1977
2089
|
}
|
|
1978
2090
|
},
|
|
1979
2091
|
unmounted() {
|
|
@@ -1984,24 +2096,22 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
1984
2096
|
},
|
|
1985
2097
|
computed: {
|
|
1986
2098
|
useContent() {
|
|
1987
|
-
var n, t, o, r, s, i, c
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
canTrackToUse() {
|
|
2004
|
-
return C(this.canTrack) ? this.canTrack : !0;
|
|
2099
|
+
var e, n, t, o, r, s, i, c;
|
|
2100
|
+
if (!(!this.content && !this.overrideContent))
|
|
2101
|
+
return {
|
|
2102
|
+
...this.content,
|
|
2103
|
+
...this.overrideContent,
|
|
2104
|
+
data: {
|
|
2105
|
+
...(e = this.content) == null ? void 0 : e.data,
|
|
2106
|
+
...this.data,
|
|
2107
|
+
...(n = this.overrideContent) == null ? void 0 : n.data
|
|
2108
|
+
},
|
|
2109
|
+
meta: {
|
|
2110
|
+
...(t = this.content) == null ? void 0 : t.meta,
|
|
2111
|
+
...(o = this.overrideContent) == null ? void 0 : o.meta,
|
|
2112
|
+
breakpoints: this.useBreakpoints || ((s = (r = this.overrideContent) == null ? void 0 : r.meta) == null ? void 0 : s.breakpoints) || ((c = (i = this.content) == null ? void 0 : i.meta) == null ? void 0 : c.breakpoints)
|
|
2113
|
+
}
|
|
2114
|
+
};
|
|
2005
2115
|
},
|
|
2006
2116
|
contentState() {
|
|
2007
2117
|
var e, n;
|
|
@@ -2014,29 +2124,10 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
2014
2124
|
...this.overrideState
|
|
2015
2125
|
};
|
|
2016
2126
|
},
|
|
2017
|
-
contextContext() {
|
|
2018
|
-
return this.context || {};
|
|
2019
|
-
},
|
|
2020
|
-
allRegisteredComponents() {
|
|
2021
|
-
return [
|
|
2022
|
-
...Mt(),
|
|
2023
|
-
...te,
|
|
2024
|
-
...this.customComponents || []
|
|
2025
|
-
].reduce(
|
|
2026
|
-
(t, o) => ({
|
|
2027
|
-
...t,
|
|
2028
|
-
[o.name]: o
|
|
2029
|
-
}),
|
|
2030
|
-
{}
|
|
2031
|
-
);
|
|
2032
|
-
},
|
|
2033
|
-
httpReqsData() {
|
|
2034
|
-
return {};
|
|
2035
|
-
},
|
|
2036
2127
|
shouldRenderContentStyles() {
|
|
2037
2128
|
var e, n, t, o, r;
|
|
2038
2129
|
return Boolean(
|
|
2039
|
-
(((n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.cssCode) || ((r = (o = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : o.customFonts) == null ? void 0 : r.length)) &&
|
|
2130
|
+
(((n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.cssCode) || ((r = (o = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : o.customFonts) == null ? void 0 : r.length)) && T !== "reactNative"
|
|
2040
2131
|
);
|
|
2041
2132
|
},
|
|
2042
2133
|
onUpdateHook0() {
|
|
@@ -2081,7 +2172,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
2081
2172
|
evaluateJsCode() {
|
|
2082
2173
|
var n, t;
|
|
2083
2174
|
const e = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.jsCode;
|
|
2084
|
-
e &&
|
|
2175
|
+
e && q({
|
|
2085
2176
|
code: e,
|
|
2086
2177
|
context: this.contextContext,
|
|
2087
2178
|
state: this.contentState
|
|
@@ -2096,14 +2187,17 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
2096
2187
|
canTrack: this.canTrackToUse,
|
|
2097
2188
|
contentId: r,
|
|
2098
2189
|
apiKey: this.apiKey,
|
|
2099
|
-
variationId: o !== r ? o : void 0
|
|
2190
|
+
variationId: o !== r ? o : void 0,
|
|
2191
|
+
...pn(e),
|
|
2192
|
+
unique: !this.clicked
|
|
2100
2193
|
});
|
|
2101
2194
|
}
|
|
2195
|
+
this.clicked || (this.clicked = !0);
|
|
2102
2196
|
},
|
|
2103
2197
|
evalExpression(e) {
|
|
2104
2198
|
return e.replace(
|
|
2105
2199
|
/{{([^}]+)}}/g,
|
|
2106
|
-
(n, t) =>
|
|
2200
|
+
(n, t) => q({
|
|
2107
2201
|
code: t,
|
|
2108
2202
|
context: this.contextContext,
|
|
2109
2203
|
state: this.contentState
|
|
@@ -2111,7 +2205,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
2111
2205
|
);
|
|
2112
2206
|
},
|
|
2113
2207
|
handleRequest({ url: e, key: n }) {
|
|
2114
|
-
|
|
2208
|
+
Q(e).then((t) => t.json()).then((t) => {
|
|
2115
2209
|
const o = {
|
|
2116
2210
|
...this.overrideState,
|
|
2117
2211
|
[n]: t
|
|
@@ -2147,14 +2241,14 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
2147
2241
|
);
|
|
2148
2242
|
}
|
|
2149
2243
|
}
|
|
2150
|
-
},
|
|
2151
|
-
function
|
|
2244
|
+
}, bn = ["builder-content-id", "builder-model"];
|
|
2245
|
+
function yn(e, n, t, o, r, s) {
|
|
2152
2246
|
var a, d, m, p, h, v, V;
|
|
2153
2247
|
const i = k("render-content-styles"), c = k("render-blocks");
|
|
2154
2248
|
return s.useContent ? (l(), u("div", {
|
|
2155
2249
|
key: 0,
|
|
2156
2250
|
ref: "elementRef",
|
|
2157
|
-
onClick: n[0] || (n[0] = (
|
|
2251
|
+
onClick: n[0] || (n[0] = (de) => s.onClick(de)),
|
|
2158
2252
|
"builder-content-id": (a = s.useContent) == null ? void 0 : a.id,
|
|
2159
2253
|
"builder-model": t.model
|
|
2160
2254
|
}, [
|
|
@@ -2165,32 +2259,32 @@ function ln(e, n, t, o, r, s) {
|
|
|
2165
2259
|
}, null, 8, ["cssCode", "customFonts"])) : b("", !0),
|
|
2166
2260
|
(l(), I(c, {
|
|
2167
2261
|
blocks: (V = (v = s.useContent) == null ? void 0 : v.data) == null ? void 0 : V.blocks,
|
|
2168
|
-
key:
|
|
2262
|
+
key: r.forceReRenderCount
|
|
2169
2263
|
}, null, 8, ["blocks"]))
|
|
2170
|
-
], 8,
|
|
2264
|
+
], 8, bn)) : b("", !0);
|
|
2171
2265
|
}
|
|
2172
|
-
const
|
|
2266
|
+
const vn = /* @__PURE__ */ g(gn, [["render", yn]]), xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2173
2267
|
__proto__: null,
|
|
2174
|
-
default:
|
|
2175
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2268
|
+
default: vn
|
|
2269
|
+
}, Symbol.toStringTag, { value: "Module" })), kn = () => import("./block-styles.413a68e9.js").then((e) => e.default).catch((e) => {
|
|
2176
2270
|
throw console.error(
|
|
2177
2271
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
2178
2272
|
e
|
|
2179
2273
|
), e;
|
|
2180
|
-
}),
|
|
2274
|
+
}), Cn = () => import("./render-block.a53e9af1.js").then((e) => e.default).catch((e) => {
|
|
2181
2275
|
throw console.error(
|
|
2182
2276
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
2183
2277
|
e
|
|
2184
2278
|
), e;
|
|
2185
|
-
}),
|
|
2279
|
+
}), Sn = {
|
|
2186
2280
|
name: "render-blocks",
|
|
2187
2281
|
components: {
|
|
2188
|
-
RenderBlock: x(
|
|
2189
|
-
BlockStyles: x(
|
|
2282
|
+
RenderBlock: x(Cn),
|
|
2283
|
+
BlockStyles: x(kn)
|
|
2190
2284
|
},
|
|
2191
2285
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
2192
2286
|
inject: {
|
|
2193
|
-
builderContext:
|
|
2287
|
+
builderContext: $.key
|
|
2194
2288
|
},
|
|
2195
2289
|
computed: {
|
|
2196
2290
|
className() {
|
|
@@ -2236,11 +2330,11 @@ const dn = /* @__PURE__ */ g(an, [["render", ln]]), un = /* @__PURE__ */ Object.
|
|
|
2236
2330
|
}
|
|
2237
2331
|
}
|
|
2238
2332
|
};
|
|
2239
|
-
const
|
|
2240
|
-
function
|
|
2333
|
+
const _n = ["builder-path", "builder-parent-id", "dataSet"];
|
|
2334
|
+
function wn(e, n, t, o, r, s) {
|
|
2241
2335
|
const i = k("render-block"), c = k("block-styles");
|
|
2242
2336
|
return l(), u("div", {
|
|
2243
|
-
class:
|
|
2337
|
+
class: j(s._classStringToObject(s.className + " div-361b1o6wv2k")),
|
|
2244
2338
|
"builder-path": t.path,
|
|
2245
2339
|
"builder-parent-id": t.parent,
|
|
2246
2340
|
dataSet: {
|
|
@@ -2250,63 +2344,64 @@ function gn(e, n, t, o, r, s) {
|
|
|
2250
2344
|
onClick: n[0] || (n[0] = (a) => s.onClick()),
|
|
2251
2345
|
onMouseenter: n[1] || (n[1] = (a) => s.onMouseEnter())
|
|
2252
2346
|
}, [
|
|
2253
|
-
t.blocks ? (l(!0), u(
|
|
2347
|
+
t.blocks ? (l(!0), u(R, { key: 0 }, O(t.blocks, (a, d) => (l(), I(i, {
|
|
2254
2348
|
key: "render-block-" + a.id,
|
|
2255
2349
|
block: a,
|
|
2256
2350
|
context: s.builderContext
|
|
2257
2351
|
}, null, 8, ["block", "context"]))), 128)) : b("", !0),
|
|
2258
|
-
t.blocks ? (l(!0), u(
|
|
2352
|
+
t.blocks ? (l(!0), u(R, { key: 1 }, O(t.blocks, (a, d) => (l(), I(c, {
|
|
2259
2353
|
key: "block-style-" + a.id,
|
|
2260
2354
|
block: a,
|
|
2261
2355
|
context: s.builderContext
|
|
2262
2356
|
}, null, 8, ["block", "context"]))), 128)) : b("", !0)
|
|
2263
|
-
], 46,
|
|
2357
|
+
], 46, _n);
|
|
2264
2358
|
}
|
|
2265
|
-
const
|
|
2359
|
+
const In = /* @__PURE__ */ g(Sn, [["render", wn], ["__scopeId", "data-v-69d4cd84"]]), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2266
2360
|
__proto__: null,
|
|
2267
|
-
default:
|
|
2268
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2269
|
-
function
|
|
2361
|
+
default: In
|
|
2362
|
+
}, Symbol.toStringTag, { value: "Module" })), J = {};
|
|
2363
|
+
function Fn(e) {
|
|
2270
2364
|
if (f()) {
|
|
2271
|
-
Object.assign(
|
|
2365
|
+
Object.assign(J, e);
|
|
2272
2366
|
const n = {
|
|
2273
2367
|
type: "builder.settingsChange",
|
|
2274
|
-
data:
|
|
2368
|
+
data: J
|
|
2275
2369
|
};
|
|
2276
2370
|
parent.postMessage(n, "*");
|
|
2277
2371
|
}
|
|
2278
2372
|
}
|
|
2279
2373
|
export {
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2374
|
+
$ as B,
|
|
2375
|
+
ke as C,
|
|
2376
|
+
yt as F,
|
|
2377
|
+
Ee as I,
|
|
2378
|
+
ct as S,
|
|
2379
|
+
T,
|
|
2380
|
+
$e as V,
|
|
2287
2381
|
g as _,
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2382
|
+
Rn as a,
|
|
2383
|
+
ge as b,
|
|
2384
|
+
En as c,
|
|
2385
|
+
Oe as d,
|
|
2386
|
+
q as e,
|
|
2293
2387
|
U as f,
|
|
2294
|
-
|
|
2388
|
+
he as g,
|
|
2295
2389
|
mt as h,
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2390
|
+
ft as i,
|
|
2391
|
+
In as j,
|
|
2392
|
+
y as k,
|
|
2393
|
+
qt as l,
|
|
2394
|
+
se as m,
|
|
2395
|
+
jn as n,
|
|
2396
|
+
Dt as o,
|
|
2397
|
+
ue as p,
|
|
2398
|
+
oe as q,
|
|
2399
|
+
vn as r,
|
|
2400
|
+
Fn as s,
|
|
2401
|
+
Bn as t,
|
|
2402
|
+
ot as u,
|
|
2403
|
+
Ze as v,
|
|
2404
|
+
et as w,
|
|
2405
|
+
tt as x,
|
|
2406
|
+
ne as y
|
|
2312
2407
|
};
|