@builder.io/sdk-vue 0.1.1 → 0.1.3
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.426683e4.cjs +1 -0
- package/packages/_vue2/dist/{block-styles.41c88ebb.js → block-styles.d52d65f7.js} +6 -4
- package/packages/{_vue3/dist/get-processed-block.6a1b1b3d.cjs → _vue2/dist/get-processed-block.25e77989.cjs} +1 -1
- package/packages/{_vue3/dist/get-processed-block.b14f89d8.js → _vue2/dist/get-processed-block.b1e9044b.js} +1 -1
- package/packages/_vue2/dist/{index.c72e7c74.js → index.3403bf5e.js} +579 -473
- package/packages/_vue2/dist/index.57d3bafb.cjs +30 -0
- package/packages/_vue2/dist/render-block.5069cc94.js +249 -0
- package/packages/_vue2/dist/render-block.93fcfc84.cjs +3 -0
- package/packages/_vue2/dist/{render-component.1561ae1b.js → render-component.5e59a26d.js} +3 -3
- package/packages/_vue2/dist/{render-component.e5dac3a3.cjs → render-component.697eb0f0.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.e8e46149.js → render-inlined-styles.c4ede85b.js} +4 -2
- package/packages/_vue2/dist/render-inlined-styles.d6107d6b.cjs +1 -0
- package/packages/_vue2/dist/render-repeated-block.82ac5fdf.cjs +1 -0
- package/packages/_vue2/dist/render-repeated-block.88a83bb3.js +41 -0
- package/packages/_vue2/dist/{render-styles.571858fa.js → render-styles.78a78d13.js} +2 -2
- package/packages/_vue2/dist/{render-styles.29424659.cjs → render-styles.95a1cf8d.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/helpers/ab-tests.d.ts +1 -1
- package/packages/_vue2/dist/src/helpers/cookie.d.ts +1 -1
- package/packages/_vue2/dist/src/helpers/localStorage.d.ts +2 -1
- package/packages/_vue2/dist/src/helpers/sessionId.d.ts +2 -2
- package/packages/_vue2/dist/src/index.d.ts +1 -1
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/{block-styles.fee20f95.js → block-styles.b1836f48.js} +19 -17
- package/packages/_vue3/dist/block-styles.b81e8e00.cjs +1 -0
- package/packages/{_vue2/dist/get-processed-block.7744e4bc.cjs → _vue3/dist/get-processed-block.7681705a.cjs} +1 -1
- package/packages/{_vue2/dist/get-processed-block.e326a312.js → _vue3/dist/get-processed-block.aed48c68.js} +1 -1
- package/packages/_vue3/dist/index.0bf7b9df.cjs +30 -0
- package/packages/_vue3/dist/{index.7a69508d.js → index.dfbf4ad8.js} +537 -432
- package/packages/_vue3/dist/render-block.7d6c9594.cjs +3 -0
- package/packages/_vue3/dist/render-block.bd00521b.js +258 -0
- package/packages/_vue3/dist/{render-component.66d935aa.cjs → render-component.7b0412f1.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.12bec717.js → render-component.98c61732.js} +3 -3
- package/packages/_vue3/dist/{render-inlined-styles.87ca82f0.js → render-inlined-styles.dc458558.js} +9 -7
- package/packages/_vue3/dist/render-inlined-styles.fb31ff26.cjs +1 -0
- package/packages/_vue3/dist/render-repeated-block.c0e57489.js +36 -0
- package/packages/_vue3/dist/render-repeated-block.dc67945a.cjs +1 -0
- package/packages/_vue3/dist/{render-styles.2274749d.cjs → render-styles.c2fe7073.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.e9da8e6c.js → render-styles.c739f8f5.js} +2 -2
- 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/helpers/ab-tests.d.ts +1 -1
- package/packages/_vue3/dist/src/helpers/cookie.d.ts +1 -1
- package/packages/_vue3/dist/src/helpers/localStorage.d.ts +2 -1
- package/packages/_vue3/dist/src/helpers/sessionId.d.ts +2 -2
- package/packages/_vue3/dist/src/index.d.ts +1 -1
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.57bb90ae.cjs +0 -1
- package/packages/_vue2/dist/index.edd725b5.cjs +0 -30
- package/packages/_vue2/dist/render-block.55447f79.js +0 -251
- package/packages/_vue2/dist/render-block.fed38662.cjs +0 -3
- package/packages/_vue2/dist/render-component-with-context.6996f337.cjs +0 -1
- package/packages/_vue2/dist/render-component-with-context.e7fa8487.js +0 -53
- package/packages/_vue2/dist/render-inlined-styles.0be888b3.cjs +0 -1
- package/packages/_vue2/dist/render-repeated-block.e916911e.js +0 -53
- package/packages/_vue2/dist/render-repeated-block.f6ac2dc0.cjs +0 -1
- package/packages/_vue2/dist/src/components/render-block/render-component-with-context.vue.d.ts +0 -114
- package/packages/_vue3/dist/block-styles.6b0bbe3d.cjs +0 -1
- package/packages/_vue3/dist/index.a102bdda.cjs +0 -30
- package/packages/_vue3/dist/render-block.4a0e514b.cjs +0 -3
- package/packages/_vue3/dist/render-block.9cdf5af8.js +0 -262
- package/packages/_vue3/dist/render-component-with-context.7d2eb137.js +0 -50
- package/packages/_vue3/dist/render-component-with-context.a37b552e.cjs +0 -1
- package/packages/_vue3/dist/render-inlined-styles.540df9a2.cjs +0 -1
- package/packages/_vue3/dist/render-repeated-block.0360d32e.js +0 -48
- package/packages/_vue3/dist/render-repeated-block.8da78c07.cjs +0 -1
- 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,36 +135,36 @@ 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(
|
|
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
|
|
146
146
|
}) => {
|
|
147
147
|
const o = `.${n} {
|
|
148
|
-
${
|
|
148
|
+
${_(t)}
|
|
149
149
|
}`;
|
|
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.dc458558.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";
|
|
@@ -220,21 +222,21 @@ const de = (e = {}) => {
|
|
|
220
222
|
return `
|
|
221
223
|
@media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
|
|
222
224
|
.${this.builderBlock.id}-breakpoints {
|
|
223
|
-
${
|
|
225
|
+
${_(this.columnStyleObjects.columns.medium)}
|
|
224
226
|
}
|
|
225
227
|
|
|
226
228
|
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
227
|
-
${
|
|
229
|
+
${_(this.columnStyleObjects.column.medium)}
|
|
228
230
|
}
|
|
229
231
|
}
|
|
230
232
|
|
|
231
233
|
@media (max-width: ${this.getWidthForBreakpointSize("small")}px) {
|
|
232
234
|
.${this.builderBlock.id}-breakpoints {
|
|
233
|
-
${
|
|
235
|
+
${_(this.columnStyleObjects.columns.small)}
|
|
234
236
|
}
|
|
235
237
|
|
|
236
238
|
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
237
|
-
${
|
|
239
|
+
${_(this.columnStyleObjects.column.small)}
|
|
238
240
|
}
|
|
239
241
|
},
|
|
240
242
|
`;
|
|
@@ -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-256wrwn33ry`
|
|
296
298
|
)
|
|
297
299
|
),
|
|
298
|
-
style:
|
|
299
|
-
...
|
|
300
|
+
style: w({
|
|
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-
|
|
310
|
-
style:
|
|
311
|
+
class: "builder-column div-256wrwn33ry-2",
|
|
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-cdd596ee"]]);
|
|
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,63 +416,62 @@ 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-kd7f8ex7am-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,
|
|
434
|
-
style:
|
|
436
|
+
style: w({
|
|
435
437
|
objectPosition: t.backgroundPosition || "center",
|
|
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-kd7f8ex7am"
|
|
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
|
-
style:
|
|
453
|
+
class: "builder-image-sizer div-kd7f8ex7am",
|
|
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-7ef88ea3"]]), 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,10 +512,10 @@ 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
|
-
return l(), u("video",
|
|
518
|
+
return l(), u("video", S({
|
|
518
519
|
style: {
|
|
519
520
|
width: "100%",
|
|
520
521
|
height: "100%",
|
|
@@ -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,10 +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) => {
|
|
555
|
+
if (e === "localhost" || e === "127.0.0.1")
|
|
556
|
+
return e;
|
|
544
557
|
const n = e.split(".");
|
|
545
558
|
return n.length > 2 ? n.slice(1).join(".") : e;
|
|
546
|
-
},
|
|
559
|
+
}, Z = async ({
|
|
547
560
|
name: e,
|
|
548
561
|
canTrack: n
|
|
549
562
|
}) => {
|
|
@@ -552,24 +565,25 @@ const J = Ue(), Ve = (e) => {
|
|
|
552
565
|
return n ? (t = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : t.split("=")[1] : void 0;
|
|
553
566
|
} catch (o) {
|
|
554
567
|
console.debug("[COOKIE] GET error: ", o);
|
|
568
|
+
return;
|
|
555
569
|
}
|
|
556
|
-
},
|
|
570
|
+
}, Ne = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).filter(C).join("; "), ze = [
|
|
557
571
|
["secure", ""],
|
|
558
572
|
["SameSite", "None"]
|
|
559
|
-
],
|
|
573
|
+
], Ke = ({
|
|
560
574
|
name: e,
|
|
561
575
|
value: n,
|
|
562
576
|
expires: t
|
|
563
577
|
}) => {
|
|
564
|
-
const r = (f() ? location.protocol === "https:" : !0) ?
|
|
578
|
+
const r = (f() ? location.protocol === "https:" : !0) ? ze : [[]], s = t ? [["expires", t.toUTCString()]] : [[]], i = [
|
|
565
579
|
[e, n],
|
|
566
580
|
...s,
|
|
567
581
|
["path", "/"],
|
|
568
|
-
["domain",
|
|
582
|
+
["domain", Me(window.location.hostname)],
|
|
569
583
|
...r
|
|
570
584
|
];
|
|
571
|
-
return
|
|
572
|
-
},
|
|
585
|
+
return Ne(i);
|
|
586
|
+
}, ee = async ({
|
|
573
587
|
name: e,
|
|
574
588
|
value: n,
|
|
575
589
|
expires: t,
|
|
@@ -578,19 +592,19 @@ const J = Ue(), Ve = (e) => {
|
|
|
578
592
|
try {
|
|
579
593
|
if (!o)
|
|
580
594
|
return;
|
|
581
|
-
const r =
|
|
595
|
+
const r = Ke({ name: e, value: n, expires: t });
|
|
582
596
|
document.cookie = r;
|
|
583
597
|
} catch (r) {
|
|
584
598
|
console.warn("[COOKIE] SET error: ", r);
|
|
585
599
|
}
|
|
586
|
-
},
|
|
600
|
+
}, He = "builderio.variations", te = (e) => `${He}.${e}`, De = ({
|
|
587
601
|
contentId: e,
|
|
588
602
|
canTrack: n
|
|
589
|
-
}) =>
|
|
603
|
+
}) => Z({ name: te(e), canTrack: n }), qe = ({
|
|
590
604
|
contentId: e,
|
|
591
605
|
canTrack: n,
|
|
592
606
|
value: t
|
|
593
|
-
}) =>
|
|
607
|
+
}) => ee({ name: te(e), value: t, canTrack: n }), Ge = (e) => C(e.id) && C(e.variations) && Object.keys(e.variations).length > 0, Je = ({
|
|
594
608
|
id: e,
|
|
595
609
|
variations: n
|
|
596
610
|
}) => {
|
|
@@ -601,7 +615,7 @@ const J = Ue(), Ve = (e) => {
|
|
|
601
615
|
if (t += (r = n[s]) == null ? void 0 : r.testRatio, o < t)
|
|
602
616
|
return s;
|
|
603
617
|
return e;
|
|
604
|
-
},
|
|
618
|
+
}, K = ({
|
|
605
619
|
item: e,
|
|
606
620
|
testGroupId: n
|
|
607
621
|
}) => {
|
|
@@ -614,69 +628,69 @@ const J = Ue(), Ve = (e) => {
|
|
|
614
628
|
testVariationId: t.id,
|
|
615
629
|
testVariationName: t.name || (t.id === e.id ? "Default" : "")
|
|
616
630
|
};
|
|
617
|
-
},
|
|
631
|
+
}, Xe = async ({
|
|
618
632
|
item: e,
|
|
619
633
|
canTrack: n
|
|
620
634
|
}) => {
|
|
621
|
-
const t = await
|
|
635
|
+
const t = await De({
|
|
622
636
|
canTrack: n,
|
|
623
637
|
contentId: e.id
|
|
624
|
-
}), o = t ?
|
|
638
|
+
}), o = t ? K({ item: e, testGroupId: t }) : void 0;
|
|
625
639
|
if (o)
|
|
626
640
|
return o;
|
|
627
641
|
{
|
|
628
|
-
const r =
|
|
642
|
+
const r = Je({
|
|
629
643
|
variations: e.variations,
|
|
630
644
|
id: e.id
|
|
631
645
|
});
|
|
632
|
-
return
|
|
646
|
+
return qe({
|
|
633
647
|
contentId: e.id,
|
|
634
648
|
value: r,
|
|
635
649
|
canTrack: n
|
|
636
650
|
}).catch((s) => {
|
|
637
651
|
console.error("could not store A/B test variation: ", s);
|
|
638
|
-
}),
|
|
652
|
+
}), K({ item: e, testGroupId: r });
|
|
639
653
|
}
|
|
640
|
-
},
|
|
654
|
+
}, Ye = async ({
|
|
641
655
|
item: e,
|
|
642
656
|
canTrack: n
|
|
643
657
|
}) => {
|
|
644
|
-
if (!
|
|
658
|
+
if (!Ge(e))
|
|
645
659
|
return;
|
|
646
|
-
const t = await
|
|
660
|
+
const t = await Xe({ item: e, canTrack: n });
|
|
647
661
|
Object.assign(e, t);
|
|
648
662
|
};
|
|
649
|
-
function
|
|
663
|
+
function A(e, n = null, t = ".") {
|
|
650
664
|
return Object.keys(e).reduce((o, r) => {
|
|
651
665
|
const s = e[r], i = [n, r].filter(Boolean).join(t);
|
|
652
666
|
return [
|
|
653
667
|
typeof s == "object",
|
|
654
668
|
s !== null,
|
|
655
669
|
!(Array.isArray(s) && s.length === 0)
|
|
656
|
-
].every(Boolean) ? { ...o, ...
|
|
670
|
+
].every(Boolean) ? { ...o, ...A(s, i, t) } : { ...o, [i]: s };
|
|
657
671
|
}, {});
|
|
658
672
|
}
|
|
659
|
-
const H = "builder.",
|
|
673
|
+
const H = "builder.", Qe = "options.", Ze = (e) => {
|
|
660
674
|
const n = {};
|
|
661
675
|
return e.forEach((t, o) => {
|
|
662
676
|
n[o] = t;
|
|
663
677
|
}), n;
|
|
664
|
-
},
|
|
678
|
+
}, et = (e) => {
|
|
665
679
|
if (!e)
|
|
666
680
|
return {};
|
|
667
|
-
const n =
|
|
681
|
+
const n = ne(e), t = {};
|
|
668
682
|
return Object.keys(n).forEach((o) => {
|
|
669
683
|
if (o.startsWith(H)) {
|
|
670
|
-
const r = o.replace(H, "").replace(
|
|
684
|
+
const r = o.replace(H, "").replace(Qe, "");
|
|
671
685
|
t[r] = n[o];
|
|
672
686
|
}
|
|
673
687
|
}), t;
|
|
674
|
-
},
|
|
688
|
+
}, tt = () => {
|
|
675
689
|
if (!f())
|
|
676
690
|
return {};
|
|
677
691
|
const e = new URLSearchParams(window.location.search);
|
|
678
|
-
return
|
|
679
|
-
},
|
|
692
|
+
return et(e);
|
|
693
|
+
}, ne = (e) => e instanceof URLSearchParams ? Ze(e) : e, nt = (e) => {
|
|
680
694
|
const {
|
|
681
695
|
limit: n = 30,
|
|
682
696
|
userAttributes: t,
|
|
@@ -692,53 +706,59 @@ const H = "builder.", Je = "options.", Xe = (e) => {
|
|
|
692
706
|
const d = new URL(
|
|
693
707
|
`https://cdn.builder.io/api/v2/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${r}&includeRefs=${c}${a ? `&locale=${a}` : ""}`
|
|
694
708
|
), m = {
|
|
695
|
-
...
|
|
696
|
-
...
|
|
697
|
-
}, p =
|
|
709
|
+
...tt(),
|
|
710
|
+
...ne(e.options || {})
|
|
711
|
+
}, p = A(m);
|
|
698
712
|
for (const h in p)
|
|
699
713
|
d.searchParams.set(h, String(p[h]));
|
|
700
714
|
if (t && d.searchParams.set("userAttributes", JSON.stringify(t)), o) {
|
|
701
|
-
const h =
|
|
715
|
+
const h = A({ query: o });
|
|
702
716
|
for (const v in h)
|
|
703
717
|
d.searchParams.set(v, JSON.stringify(h[v]));
|
|
704
718
|
}
|
|
705
719
|
return d;
|
|
706
720
|
};
|
|
707
|
-
async function
|
|
708
|
-
return (await
|
|
721
|
+
async function oe(e) {
|
|
722
|
+
return (await ot({ ...e, limit: 1 })).results[0] || null;
|
|
709
723
|
}
|
|
710
|
-
async function
|
|
711
|
-
const n =
|
|
724
|
+
async function ot(e) {
|
|
725
|
+
const n = nt(e), o = await (await Q(n.href)).json(), r = e.canTrack !== !1;
|
|
712
726
|
if (r && Array.isArray(o.results))
|
|
713
727
|
for (const s of o.results)
|
|
714
|
-
await
|
|
728
|
+
await Ye({ item: s, canTrack: r });
|
|
715
729
|
return o;
|
|
716
730
|
}
|
|
717
|
-
const
|
|
731
|
+
const st = () => Promise.resolve().then(() => xn).then((e) => e.default).catch((e) => {
|
|
718
732
|
throw console.error(
|
|
719
733
|
"Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
|
|
720
734
|
e
|
|
721
735
|
), e;
|
|
722
|
-
}),
|
|
736
|
+
}), rt = {
|
|
723
737
|
name: "builder-symbol",
|
|
724
|
-
components: { RenderContent: x(
|
|
738
|
+
components: { RenderContent: x(st) },
|
|
725
739
|
props: ["attributes", "symbol", "dynamic"],
|
|
726
|
-
data
|
|
740
|
+
data() {
|
|
741
|
+
return { fetchedContent: null };
|
|
742
|
+
},
|
|
727
743
|
inject: {
|
|
728
|
-
builderContext:
|
|
744
|
+
builderContext: $.key
|
|
729
745
|
},
|
|
730
746
|
watch: {
|
|
731
|
-
onUpdateHook0
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
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
|
|
742
762
|
}
|
|
743
763
|
},
|
|
744
764
|
computed: {
|
|
@@ -773,17 +793,17 @@ const tt = () => Promise.resolve().then(() => un).then((e) => e.default).catch((
|
|
|
773
793
|
return n;
|
|
774
794
|
}
|
|
775
795
|
}
|
|
776
|
-
},
|
|
777
|
-
function
|
|
796
|
+
}, it = ["dataSet"];
|
|
797
|
+
function at(e, n, t, o, r, s) {
|
|
778
798
|
var c, a, d, m, p;
|
|
779
799
|
const i = k("render-content");
|
|
780
|
-
return l(), u("div",
|
|
800
|
+
return l(), u("div", S({
|
|
781
801
|
dataSet: {
|
|
782
802
|
class: s.className
|
|
783
803
|
},
|
|
784
804
|
class: s._classStringToObject(s.className)
|
|
785
805
|
}, t.attributes), [
|
|
786
|
-
|
|
806
|
+
X(i, {
|
|
787
807
|
apiKey: s.builderContext.apiKey,
|
|
788
808
|
context: s.builderContext.context,
|
|
789
809
|
customComponents: Object.values(s.builderContext.registeredComponents),
|
|
@@ -795,30 +815,30 @@ function st(e, n, t, o, r, s) {
|
|
|
795
815
|
model: (p = t.symbol) == null ? void 0 : p.model,
|
|
796
816
|
content: s.contentToUse
|
|
797
817
|
}, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
|
|
798
|
-
], 16,
|
|
818
|
+
], 16, it);
|
|
799
819
|
}
|
|
800
|
-
const
|
|
820
|
+
const ct = /* @__PURE__ */ g(rt, [["render", at]]), lt = {
|
|
801
821
|
name: "builder-button",
|
|
802
822
|
props: ["attributes", "text", "link", "openLinkInNewTab"]
|
|
803
823
|
};
|
|
804
|
-
const
|
|
805
|
-
function
|
|
806
|
-
return t.link ? (l(), u("a",
|
|
824
|
+
const dt = ["href", "target"];
|
|
825
|
+
function ut(e, n, t, o, r, s) {
|
|
826
|
+
return t.link ? (l(), u("a", S({
|
|
807
827
|
key: 0,
|
|
808
828
|
role: "button",
|
|
809
829
|
href: t.link,
|
|
810
830
|
target: t.openLinkInNewTab ? "_blank" : void 0
|
|
811
|
-
}, t.attributes), W(t.text), 17,
|
|
831
|
+
}, t.attributes), W(t.text), 17, dt)) : (l(), u("button", S({
|
|
812
832
|
key: 1,
|
|
813
|
-
class: "button-
|
|
833
|
+
class: "button-7jvpanrlkn"
|
|
814
834
|
}, t.attributes), W(t.text), 17));
|
|
815
835
|
}
|
|
816
|
-
const
|
|
836
|
+
const mt = /* @__PURE__ */ g(lt, [["render", ut], ["__scopeId", "data-v-2f0d6ac2"]]), pt = {
|
|
817
837
|
name: "builder-section-component",
|
|
818
838
|
props: ["attributes", "maxWidth"]
|
|
819
839
|
};
|
|
820
|
-
function
|
|
821
|
-
return l(), u("section",
|
|
840
|
+
function ht(e, n, t, o, r, s) {
|
|
841
|
+
return l(), u("section", S({
|
|
822
842
|
style: {
|
|
823
843
|
width: "100%",
|
|
824
844
|
alignSelf: "stretch",
|
|
@@ -832,19 +852,19 @@ function ut(e, n, t, o, r, s) {
|
|
|
832
852
|
marginRight: "auto"
|
|
833
853
|
}
|
|
834
854
|
}, t.attributes), [
|
|
835
|
-
|
|
855
|
+
E(e.$slots, "default")
|
|
836
856
|
], 16);
|
|
837
857
|
}
|
|
838
|
-
const
|
|
858
|
+
const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
839
859
|
name: "builder-fragment-component",
|
|
840
860
|
props: []
|
|
841
861
|
};
|
|
842
|
-
function
|
|
862
|
+
function bt(e, n, t, o, r, s) {
|
|
843
863
|
return l(), u("span", null, [
|
|
844
|
-
|
|
864
|
+
E(e.$slots, "default")
|
|
845
865
|
]);
|
|
846
866
|
}
|
|
847
|
-
const
|
|
867
|
+
const yt = /* @__PURE__ */ g(gt, [["render", bt]]), vt = {
|
|
848
868
|
name: "Core:Button",
|
|
849
869
|
builtIn: !0,
|
|
850
870
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -881,10 +901,10 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
881
901
|
],
|
|
882
902
|
static: !0,
|
|
883
903
|
noWrap: !0
|
|
884
|
-
},
|
|
904
|
+
}, B = (e) => {
|
|
885
905
|
const n = e.toString().trim();
|
|
886
906
|
return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
|
|
887
|
-
},
|
|
907
|
+
}, xt = {
|
|
888
908
|
name: "Columns",
|
|
889
909
|
builtIn: !0,
|
|
890
910
|
inputs: [
|
|
@@ -1072,7 +1092,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1072
1092
|
]
|
|
1073
1093
|
}
|
|
1074
1094
|
],
|
|
1075
|
-
onChange:
|
|
1095
|
+
onChange: B((e) => {
|
|
1076
1096
|
function n() {
|
|
1077
1097
|
t.forEach((o) => {
|
|
1078
1098
|
o.delete("width");
|
|
@@ -1109,14 +1129,14 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1109
1129
|
advanced: !0
|
|
1110
1130
|
}
|
|
1111
1131
|
]
|
|
1112
|
-
},
|
|
1132
|
+
}, kt = {
|
|
1113
1133
|
name: "Fragment",
|
|
1114
1134
|
static: !0,
|
|
1115
1135
|
hidden: !0,
|
|
1116
1136
|
builtIn: !0,
|
|
1117
1137
|
canHaveChildren: !0,
|
|
1118
1138
|
noWrap: !0
|
|
1119
|
-
},
|
|
1139
|
+
}, Ct = {
|
|
1120
1140
|
name: "Image",
|
|
1121
1141
|
static: !0,
|
|
1122
1142
|
builtIn: !0,
|
|
@@ -1136,33 +1156,35 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1136
1156
|
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
1137
1157
|
required: !0,
|
|
1138
1158
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
1139
|
-
onChange:
|
|
1140
|
-
e
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1159
|
+
onChange: B(
|
|
1160
|
+
(e) => {
|
|
1161
|
+
e.delete("srcset"), e.delete("noWebp");
|
|
1162
|
+
function t(i, c = 6e4) {
|
|
1163
|
+
return new Promise((a, d) => {
|
|
1164
|
+
const m = document.createElement("img");
|
|
1165
|
+
let p = !1;
|
|
1166
|
+
m.onload = () => {
|
|
1167
|
+
p = !0, a(m);
|
|
1168
|
+
}, m.addEventListener("error", (h) => {
|
|
1169
|
+
console.warn("Image load failed", h.error), d(h.error);
|
|
1170
|
+
}), m.src = i, setTimeout(() => {
|
|
1171
|
+
p || d(new Error("Image load timed out"));
|
|
1172
|
+
}, c);
|
|
1173
|
+
});
|
|
1174
|
+
}
|
|
1175
|
+
function o(i) {
|
|
1176
|
+
return Math.round(i * 1e3) / 1e3;
|
|
1177
|
+
}
|
|
1178
|
+
const r = e.get("image"), s = e.get("aspectRatio");
|
|
1179
|
+
if (fetch(r).then((i) => i.blob()).then((i) => {
|
|
1180
|
+
i.type.includes("svg") && e.set("noWebp", !0);
|
|
1181
|
+
}), r && (!s || s === 0.7041))
|
|
1182
|
+
return t(r).then((i) => {
|
|
1183
|
+
const c = e.get("aspectRatio");
|
|
1184
|
+
e.get("image") === r && (!c || c === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
1185
|
+
});
|
|
1156
1186
|
}
|
|
1157
|
-
|
|
1158
|
-
if (fetch(r).then((i) => i.blob()).then((i) => {
|
|
1159
|
-
i.type.includes("svg") && e.set("noWebp", !0);
|
|
1160
|
-
}), r && (!s || s === 0.7041))
|
|
1161
|
-
return t(r).then((i) => {
|
|
1162
|
-
const c = e.get("aspectRatio");
|
|
1163
|
-
e.get("image") === r && (!c || c === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
1164
|
-
});
|
|
1165
|
-
})
|
|
1187
|
+
)
|
|
1166
1188
|
},
|
|
1167
1189
|
{
|
|
1168
1190
|
name: "backgroundSize",
|
|
@@ -1242,7 +1264,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1242
1264
|
defaultValue: 0.7041
|
|
1243
1265
|
}
|
|
1244
1266
|
]
|
|
1245
|
-
},
|
|
1267
|
+
}, St = {
|
|
1246
1268
|
name: "Core:Section",
|
|
1247
1269
|
static: !0,
|
|
1248
1270
|
builtIn: !0,
|
|
@@ -1287,7 +1309,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1287
1309
|
}
|
|
1288
1310
|
}
|
|
1289
1311
|
]
|
|
1290
|
-
},
|
|
1312
|
+
}, _t = {
|
|
1291
1313
|
name: "Symbol",
|
|
1292
1314
|
noWrap: !0,
|
|
1293
1315
|
static: !0,
|
|
@@ -1326,7 +1348,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1326
1348
|
type: "boolean"
|
|
1327
1349
|
}
|
|
1328
1350
|
]
|
|
1329
|
-
},
|
|
1351
|
+
}, wt = {
|
|
1330
1352
|
name: "Text",
|
|
1331
1353
|
static: !0,
|
|
1332
1354
|
builtIn: !0,
|
|
@@ -1346,7 +1368,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1346
1368
|
height: "auto",
|
|
1347
1369
|
textAlign: "center"
|
|
1348
1370
|
}
|
|
1349
|
-
},
|
|
1371
|
+
}, It = {
|
|
1350
1372
|
name: "Video",
|
|
1351
1373
|
canHaveChildren: !0,
|
|
1352
1374
|
builtIn: !0,
|
|
@@ -1448,7 +1470,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1448
1470
|
advanced: !0
|
|
1449
1471
|
}
|
|
1450
1472
|
]
|
|
1451
|
-
},
|
|
1473
|
+
}, Tt = {
|
|
1452
1474
|
name: "Embed",
|
|
1453
1475
|
static: !0,
|
|
1454
1476
|
builtIn: !0,
|
|
@@ -1459,21 +1481,23 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1459
1481
|
required: !0,
|
|
1460
1482
|
defaultValue: "",
|
|
1461
1483
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1462
|
-
onChange:
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1484
|
+
onChange: B(
|
|
1485
|
+
(e) => {
|
|
1486
|
+
const n = e.get("url");
|
|
1487
|
+
if (n)
|
|
1488
|
+
return e.set("content", "Loading..."), fetch(
|
|
1489
|
+
`https://iframe.ly/api/iframely?url=${n}&api_key=ae0e60e78201a3f2b0de4b`
|
|
1490
|
+
).then((o) => o.json()).then((o) => {
|
|
1491
|
+
e.get("url") === n && (o.html ? e.set("content", o.html) : e.set("content", "Invalid url, please try another"));
|
|
1492
|
+
}).catch((o) => {
|
|
1493
|
+
e.set(
|
|
1494
|
+
"content",
|
|
1495
|
+
"There was an error embedding this URL, please try again or another URL"
|
|
1496
|
+
);
|
|
1497
|
+
});
|
|
1498
|
+
e.delete("content");
|
|
1499
|
+
}
|
|
1500
|
+
)
|
|
1477
1501
|
},
|
|
1478
1502
|
{
|
|
1479
1503
|
name: "content",
|
|
@@ -1482,17 +1506,22 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1482
1506
|
hideFromUI: !0
|
|
1483
1507
|
}
|
|
1484
1508
|
]
|
|
1485
|
-
},
|
|
1509
|
+
}, Rt = [
|
|
1486
1510
|
"text/javascript",
|
|
1487
1511
|
"application/javascript",
|
|
1488
1512
|
"application/ecmascript"
|
|
1489
|
-
],
|
|
1513
|
+
], Et = (e) => Rt.includes(e.type), jt = {
|
|
1490
1514
|
name: "builder-embed",
|
|
1491
1515
|
props: ["content"],
|
|
1492
|
-
data
|
|
1516
|
+
data() {
|
|
1517
|
+
return { scriptsInserted: [], scriptsRun: [], ranInitFn: !1 };
|
|
1518
|
+
},
|
|
1493
1519
|
watch: {
|
|
1494
|
-
onUpdateHook0
|
|
1495
|
-
|
|
1520
|
+
onUpdateHook0: {
|
|
1521
|
+
handler() {
|
|
1522
|
+
this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
|
|
1523
|
+
},
|
|
1524
|
+
immediate: !0
|
|
1496
1525
|
}
|
|
1497
1526
|
},
|
|
1498
1527
|
computed: {
|
|
@@ -1514,7 +1543,7 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1514
1543
|
this.scriptsInserted.push(t.src);
|
|
1515
1544
|
const o = document.createElement("script");
|
|
1516
1545
|
o.async = !0, o.src = t.src, document.head.appendChild(o);
|
|
1517
|
-
} else if (
|
|
1546
|
+
} else if (Et(t) && !this.scriptsRun.includes(t.innerText))
|
|
1518
1547
|
try {
|
|
1519
1548
|
this.scriptsRun.push(t.innerText), new Function(t.innerText)();
|
|
1520
1549
|
} catch (o) {
|
|
@@ -1523,22 +1552,22 @@ const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
|
1523
1552
|
}
|
|
1524
1553
|
}
|
|
1525
1554
|
}
|
|
1526
|
-
},
|
|
1527
|
-
function
|
|
1555
|
+
}, Bt = ["innerHTML"];
|
|
1556
|
+
function Ft(e, n, t, o, r, s) {
|
|
1528
1557
|
return l(), u("div", {
|
|
1529
1558
|
class: "builder-embed",
|
|
1530
1559
|
ref: "elem",
|
|
1531
1560
|
innerHTML: t.content
|
|
1532
|
-
}, null, 8,
|
|
1561
|
+
}, null, 8, Bt);
|
|
1533
1562
|
}
|
|
1534
|
-
const
|
|
1535
|
-
function
|
|
1563
|
+
const Ot = /* @__PURE__ */ g(jt, [["render", Ft]]);
|
|
1564
|
+
function At() {
|
|
1536
1565
|
return f() && window.self !== window.top;
|
|
1537
1566
|
}
|
|
1538
1567
|
function y() {
|
|
1539
|
-
return
|
|
1568
|
+
return At() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1540
1569
|
}
|
|
1541
|
-
const
|
|
1570
|
+
const Pt = {
|
|
1542
1571
|
name: "builder-img-component",
|
|
1543
1572
|
props: [
|
|
1544
1573
|
"backgroundSize",
|
|
@@ -1548,20 +1577,22 @@ const Bt = {
|
|
|
1548
1577
|
"image",
|
|
1549
1578
|
"attributes"
|
|
1550
1579
|
],
|
|
1551
|
-
data
|
|
1552
|
-
|
|
1580
|
+
data() {
|
|
1581
|
+
return { isEditing: y };
|
|
1582
|
+
}
|
|
1583
|
+
}, Ut = ["alt", "src"];
|
|
1553
1584
|
function $t(e, n, t, o, r, s) {
|
|
1554
|
-
return l(), u("img",
|
|
1585
|
+
return l(), u("img", S({
|
|
1555
1586
|
style: {
|
|
1556
1587
|
objectFit: t.backgroundSize || "cover",
|
|
1557
1588
|
objectPosition: t.backgroundPosition || "center"
|
|
1558
1589
|
},
|
|
1559
|
-
key:
|
|
1590
|
+
key: r.isEditing() && t.imgSrc || "default-key",
|
|
1560
1591
|
alt: t.altText,
|
|
1561
1592
|
src: t.imgSrc || t.image
|
|
1562
|
-
}, t.attributes), null, 16,
|
|
1593
|
+
}, t.attributes), null, 16, Ut);
|
|
1563
1594
|
}
|
|
1564
|
-
const
|
|
1595
|
+
const Vt = /* @__PURE__ */ g(Pt, [["render", $t]]), Lt = {
|
|
1565
1596
|
name: "Raw:Img",
|
|
1566
1597
|
hideFromInsertMenu: !0,
|
|
1567
1598
|
builtIn: !0,
|
|
@@ -1577,10 +1608,12 @@ const Ot = /* @__PURE__ */ g(Bt, [["render", $t]]), Pt = {
|
|
|
1577
1608
|
],
|
|
1578
1609
|
noWrap: !0,
|
|
1579
1610
|
static: !0
|
|
1580
|
-
},
|
|
1611
|
+
}, Wt = {
|
|
1581
1612
|
name: "builder-custom-code",
|
|
1582
1613
|
props: ["replaceNodes", "code"],
|
|
1583
|
-
data
|
|
1614
|
+
data() {
|
|
1615
|
+
return { scriptsInserted: [], scriptsRun: [] };
|
|
1616
|
+
},
|
|
1584
1617
|
mounted() {
|
|
1585
1618
|
this.findAndRunScripts();
|
|
1586
1619
|
},
|
|
@@ -1622,19 +1655,19 @@ const Ot = /* @__PURE__ */ g(Bt, [["render", $t]]), Pt = {
|
|
|
1622
1655
|
return n;
|
|
1623
1656
|
}
|
|
1624
1657
|
}
|
|
1625
|
-
},
|
|
1626
|
-
function
|
|
1658
|
+
}, Mt = ["innerHTML"];
|
|
1659
|
+
function Nt(e, n, t, o, r, s) {
|
|
1627
1660
|
return l(), u("div", {
|
|
1628
1661
|
ref: "elem",
|
|
1629
|
-
class:
|
|
1662
|
+
class: j(
|
|
1630
1663
|
s._classStringToObject(
|
|
1631
1664
|
"builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
|
|
1632
1665
|
)
|
|
1633
1666
|
),
|
|
1634
1667
|
innerHTML: t.code
|
|
1635
|
-
}, null, 10,
|
|
1668
|
+
}, null, 10, Mt);
|
|
1636
1669
|
}
|
|
1637
|
-
const
|
|
1670
|
+
const zt = /* @__PURE__ */ g(Wt, [["render", Nt]]), Kt = {
|
|
1638
1671
|
name: "Custom Code",
|
|
1639
1672
|
static: !0,
|
|
1640
1673
|
builtIn: !0,
|
|
@@ -1661,20 +1694,20 @@ const Lt = /* @__PURE__ */ g(Ut, [["render", Wt]]), Nt = {
|
|
|
1661
1694
|
advanced: !0
|
|
1662
1695
|
}
|
|
1663
1696
|
]
|
|
1664
|
-
},
|
|
1665
|
-
{ component:
|
|
1666
|
-
{ component:
|
|
1667
|
-
{ component:
|
|
1668
|
-
{ component:
|
|
1669
|
-
{ component:
|
|
1670
|
-
{ component:
|
|
1671
|
-
{ component:
|
|
1672
|
-
{ component:
|
|
1673
|
-
{ component:
|
|
1674
|
-
{ component:
|
|
1675
|
-
{ 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 }
|
|
1676
1709
|
];
|
|
1677
|
-
function
|
|
1710
|
+
function D({
|
|
1678
1711
|
code: e,
|
|
1679
1712
|
context: n,
|
|
1680
1713
|
state: t,
|
|
@@ -1711,22 +1744,22 @@ function K({
|
|
|
1711
1744
|
);
|
|
1712
1745
|
}
|
|
1713
1746
|
}
|
|
1714
|
-
function
|
|
1747
|
+
function Dt() {
|
|
1715
1748
|
return !f() || y() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1716
1749
|
}
|
|
1717
|
-
const
|
|
1718
|
-
function
|
|
1719
|
-
return
|
|
1750
|
+
const se = [];
|
|
1751
|
+
function jn(e, n) {
|
|
1752
|
+
return se.push({ component: e, ...n }), console.warn(
|
|
1720
1753
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1721
1754
|
), e;
|
|
1722
1755
|
}
|
|
1723
|
-
const
|
|
1756
|
+
const qt = ({
|
|
1724
1757
|
component: e,
|
|
1725
1758
|
...n
|
|
1726
1759
|
}) => ({
|
|
1727
1760
|
type: "builder.registerComponent",
|
|
1728
|
-
data:
|
|
1729
|
-
}),
|
|
1761
|
+
data: Jt(n)
|
|
1762
|
+
}), Gt = (e) => typeof e == "function" ? B(e) : U(e), Jt = ({
|
|
1730
1763
|
inputs: e,
|
|
1731
1764
|
...n
|
|
1732
1765
|
}) => ({
|
|
@@ -1735,89 +1768,124 @@ const Ht = ({
|
|
|
1735
1768
|
(t) => Object.entries(t).reduce(
|
|
1736
1769
|
(o, [r, s]) => ({
|
|
1737
1770
|
...o,
|
|
1738
|
-
[r]:
|
|
1771
|
+
[r]: Gt(s)
|
|
1739
1772
|
}),
|
|
1740
1773
|
{}
|
|
1741
1774
|
)
|
|
1742
1775
|
)
|
|
1743
1776
|
});
|
|
1744
|
-
function
|
|
1777
|
+
function Xt() {
|
|
1745
1778
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
1746
1779
|
const n = Math.random() * 16 | 0;
|
|
1747
1780
|
return (e == "x" ? n : n & 3 | 8).toString(16);
|
|
1748
1781
|
});
|
|
1749
1782
|
}
|
|
1750
|
-
function
|
|
1751
|
-
return
|
|
1783
|
+
function re() {
|
|
1784
|
+
return Xt().replace(/-/g, "");
|
|
1752
1785
|
}
|
|
1753
|
-
const
|
|
1786
|
+
const ie = "builderSessionId", Yt = async ({
|
|
1787
|
+
canTrack: e
|
|
1788
|
+
}) => {
|
|
1754
1789
|
if (!e)
|
|
1755
1790
|
return;
|
|
1756
|
-
const n = await
|
|
1757
|
-
name:
|
|
1791
|
+
const n = await Z({
|
|
1792
|
+
name: ie,
|
|
1758
1793
|
canTrack: e
|
|
1759
1794
|
});
|
|
1760
|
-
if (
|
|
1795
|
+
if (C(n))
|
|
1761
1796
|
return n;
|
|
1762
1797
|
{
|
|
1763
|
-
const t =
|
|
1764
|
-
|
|
1798
|
+
const t = Qt();
|
|
1799
|
+
return Zt({ id: t, canTrack: e }), t;
|
|
1765
1800
|
}
|
|
1766
|
-
},
|
|
1801
|
+
}, Qt = () => re(), Zt = ({
|
|
1767
1802
|
id: e,
|
|
1768
1803
|
canTrack: n
|
|
1769
|
-
}) =>
|
|
1804
|
+
}) => ee({ name: ie, value: e, canTrack: n }), ae = () => f() && typeof localStorage < "u" ? localStorage : void 0, en = ({
|
|
1770
1805
|
key: e,
|
|
1771
1806
|
canTrack: n
|
|
1772
1807
|
}) => {
|
|
1773
1808
|
var t;
|
|
1774
1809
|
try {
|
|
1775
|
-
return n ? (t =
|
|
1810
|
+
return n ? (t = ae()) == null ? void 0 : t.getItem(e) : void 0;
|
|
1776
1811
|
} catch (o) {
|
|
1777
1812
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1813
|
+
return;
|
|
1778
1814
|
}
|
|
1779
|
-
},
|
|
1815
|
+
}, tn = ({
|
|
1780
1816
|
key: e,
|
|
1781
1817
|
canTrack: n,
|
|
1782
1818
|
value: t
|
|
1783
1819
|
}) => {
|
|
1784
1820
|
var o;
|
|
1785
1821
|
try {
|
|
1786
|
-
n && ((o =
|
|
1822
|
+
n && ((o = ae()) == null || o.setItem(e, t));
|
|
1787
1823
|
} catch (r) {
|
|
1788
1824
|
console.debug("[LocalStorage] SET error: ", r);
|
|
1789
1825
|
}
|
|
1790
|
-
},
|
|
1826
|
+
}, ce = "builderVisitorId", nn = ({ canTrack: e }) => {
|
|
1791
1827
|
if (!e)
|
|
1792
1828
|
return;
|
|
1793
|
-
const n =
|
|
1794
|
-
key:
|
|
1829
|
+
const n = en({
|
|
1830
|
+
key: ce,
|
|
1795
1831
|
canTrack: e
|
|
1796
1832
|
});
|
|
1797
|
-
if (
|
|
1833
|
+
if (C(n))
|
|
1798
1834
|
return n;
|
|
1799
1835
|
{
|
|
1800
|
-
const t =
|
|
1801
|
-
|
|
1836
|
+
const t = on();
|
|
1837
|
+
return sn({ id: t, canTrack: e }), t;
|
|
1802
1838
|
}
|
|
1803
|
-
},
|
|
1839
|
+
}, on = () => re(), sn = ({
|
|
1804
1840
|
id: e,
|
|
1805
1841
|
canTrack: n
|
|
1806
|
-
}) =>
|
|
1807
|
-
key:
|
|
1842
|
+
}) => tn({
|
|
1843
|
+
key: ce,
|
|
1808
1844
|
value: e,
|
|
1809
1845
|
canTrack: n
|
|
1810
|
-
}),
|
|
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 ({
|
|
1811
1879
|
canTrack: e
|
|
1812
1880
|
}) => {
|
|
1813
1881
|
if (!e)
|
|
1814
1882
|
return { visitorId: void 0, sessionId: void 0 };
|
|
1815
|
-
const n = await
|
|
1883
|
+
const n = await Yt({ canTrack: e }), t = nn({ canTrack: e });
|
|
1816
1884
|
return {
|
|
1817
1885
|
sessionId: n,
|
|
1818
1886
|
visitorId: t
|
|
1819
1887
|
};
|
|
1820
|
-
},
|
|
1888
|
+
}, dn = async ({
|
|
1821
1889
|
type: e,
|
|
1822
1890
|
canTrack: n,
|
|
1823
1891
|
apiKey: t,
|
|
@@ -1827,8 +1895,12 @@ const oe = "builderSessionId", Gt = async ({ canTrack: e }) => {
|
|
|
1827
1895
|
type: e,
|
|
1828
1896
|
data: {
|
|
1829
1897
|
...r,
|
|
1830
|
-
metadata:
|
|
1831
|
-
|
|
1898
|
+
metadata: {
|
|
1899
|
+
url: location.href,
|
|
1900
|
+
...o
|
|
1901
|
+
},
|
|
1902
|
+
...await ln({ canTrack: n }),
|
|
1903
|
+
userAttributes: cn(),
|
|
1832
1904
|
ownerId: t
|
|
1833
1905
|
}
|
|
1834
1906
|
});
|
|
@@ -1839,11 +1911,11 @@ async function P(e) {
|
|
|
1839
1911
|
);
|
|
1840
1912
|
return;
|
|
1841
1913
|
}
|
|
1842
|
-
if (!!e.canTrack && !y() && !!(f() ||
|
|
1914
|
+
if (!!e.canTrack && !y() && !!(f() || T === "reactNative"))
|
|
1843
1915
|
return fetch("https://builder.io/api/v1/track", {
|
|
1844
1916
|
method: "POST",
|
|
1845
1917
|
body: JSON.stringify({
|
|
1846
|
-
events: [await
|
|
1918
|
+
events: [await dn(e)]
|
|
1847
1919
|
}),
|
|
1848
1920
|
headers: {
|
|
1849
1921
|
"content-type": "application/json"
|
|
@@ -1853,21 +1925,58 @@ async function P(e) {
|
|
|
1853
1925
|
console.error("Failed to track: ", n);
|
|
1854
1926
|
});
|
|
1855
1927
|
}
|
|
1856
|
-
const
|
|
1928
|
+
const Bn = (e) => P({ ...e, canTrack: !0 });
|
|
1929
|
+
function q(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 = q(o / t.width), i = q(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) => {
|
|
1857
1966
|
throw console.error(
|
|
1858
1967
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
1859
1968
|
e
|
|
1860
1969
|
), e;
|
|
1861
|
-
}),
|
|
1970
|
+
}), fn = () => import("./render-styles.c739f8f5.js").then((e) => e.default).catch((e) => {
|
|
1862
1971
|
throw console.error(
|
|
1863
1972
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
1864
1973
|
e
|
|
1865
1974
|
), e;
|
|
1866
|
-
}),
|
|
1975
|
+
}), gn = {
|
|
1867
1976
|
name: "render-content",
|
|
1868
1977
|
components: {
|
|
1869
|
-
RenderContentStyles: x(
|
|
1870
|
-
RenderBlocks: x(
|
|
1978
|
+
RenderContentStyles: x(fn),
|
|
1979
|
+
RenderBlocks: x(hn)
|
|
1871
1980
|
},
|
|
1872
1981
|
props: [
|
|
1873
1982
|
"content",
|
|
@@ -1880,32 +1989,39 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
1880
1989
|
"apiKey",
|
|
1881
1990
|
"includeRefs"
|
|
1882
1991
|
],
|
|
1883
|
-
data
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
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
|
+
},
|
|
1890
2016
|
provide() {
|
|
1891
2017
|
const e = this;
|
|
1892
2018
|
return {
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
},
|
|
1900
|
-
get context() {
|
|
1901
|
-
return e.contextContext;
|
|
1902
|
-
},
|
|
1903
|
-
get apiKey() {
|
|
1904
|
-
return e.apiKey;
|
|
1905
|
-
},
|
|
1906
|
-
get registeredComponents() {
|
|
1907
|
-
return e.allRegisteredComponents;
|
|
1908
|
-
}
|
|
2019
|
+
[$.key]: {
|
|
2020
|
+
content: e.useContent,
|
|
2021
|
+
state: e.contentState,
|
|
2022
|
+
context: e.contextContext,
|
|
2023
|
+
apiKey: e.apiKey,
|
|
2024
|
+
registeredComponents: e.allRegisteredComponents
|
|
1909
2025
|
}
|
|
1910
2026
|
};
|
|
1911
2027
|
},
|
|
@@ -1914,7 +2030,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
1914
2030
|
if (this.apiKey || console.error(
|
|
1915
2031
|
"[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
1916
2032
|
), f()) {
|
|
1917
|
-
if (y() && (this.forceReRenderCount = this.forceReRenderCount + 1,
|
|
2033
|
+
if (y() && (this.forceReRenderCount = this.forceReRenderCount + 1, me(), pe({
|
|
1918
2034
|
...this.locale ? {
|
|
1919
2035
|
locale: this.locale
|
|
1920
2036
|
} : {},
|
|
@@ -1924,7 +2040,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
1924
2040
|
}), Object.values(this.allRegisteredComponents).forEach(
|
|
1925
2041
|
(t) => {
|
|
1926
2042
|
var r;
|
|
1927
|
-
const o =
|
|
2043
|
+
const o = qt(t);
|
|
1928
2044
|
(r = window.parent) == null || r.postMessage(o, "*");
|
|
1929
2045
|
}
|
|
1930
2046
|
), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
@@ -1940,30 +2056,36 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
1940
2056
|
variationId: t !== o ? t : void 0
|
|
1941
2057
|
});
|
|
1942
2058
|
}
|
|
1943
|
-
if (
|
|
1944
|
-
const t = new URL(location.href).searchParams;
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
r && (this.overrideContent = r);
|
|
1952
|
-
});
|
|
1953
|
-
}
|
|
2059
|
+
if (Dt()) {
|
|
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
|
+
});
|
|
1954
2067
|
}
|
|
1955
2068
|
this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
|
|
1956
2069
|
}
|
|
1957
2070
|
},
|
|
1958
2071
|
watch: {
|
|
1959
|
-
onUpdateHook0
|
|
1960
|
-
|
|
2072
|
+
onUpdateHook0: {
|
|
2073
|
+
handler() {
|
|
2074
|
+
this.evaluateJsCode();
|
|
2075
|
+
},
|
|
2076
|
+
immediate: !0
|
|
1961
2077
|
},
|
|
1962
|
-
onUpdateHook1
|
|
1963
|
-
|
|
2078
|
+
onUpdateHook1: {
|
|
2079
|
+
handler() {
|
|
2080
|
+
this.runHttpRequests();
|
|
2081
|
+
},
|
|
2082
|
+
immediate: !0
|
|
1964
2083
|
},
|
|
1965
|
-
onUpdateHook2
|
|
1966
|
-
|
|
2084
|
+
onUpdateHook2: {
|
|
2085
|
+
handler() {
|
|
2086
|
+
this.emitStateUpdate();
|
|
2087
|
+
},
|
|
2088
|
+
immediate: !0
|
|
1967
2089
|
}
|
|
1968
2090
|
},
|
|
1969
2091
|
unmounted() {
|
|
@@ -1974,24 +2096,22 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
1974
2096
|
},
|
|
1975
2097
|
computed: {
|
|
1976
2098
|
useContent() {
|
|
1977
|
-
var n, t, o, r, s, i, c
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
canTrackToUse() {
|
|
1994
|
-
return 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
|
+
};
|
|
1995
2115
|
},
|
|
1996
2116
|
contentState() {
|
|
1997
2117
|
var e, n;
|
|
@@ -2004,29 +2124,10 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
2004
2124
|
...this.overrideState
|
|
2005
2125
|
};
|
|
2006
2126
|
},
|
|
2007
|
-
contextContext() {
|
|
2008
|
-
return this.context || {};
|
|
2009
|
-
},
|
|
2010
|
-
allRegisteredComponents() {
|
|
2011
|
-
return [
|
|
2012
|
-
...Mt(),
|
|
2013
|
-
...te,
|
|
2014
|
-
...this.customComponents || []
|
|
2015
|
-
].reduce(
|
|
2016
|
-
(t, o) => ({
|
|
2017
|
-
...t,
|
|
2018
|
-
[o.name]: o
|
|
2019
|
-
}),
|
|
2020
|
-
{}
|
|
2021
|
-
);
|
|
2022
|
-
},
|
|
2023
|
-
httpReqsData() {
|
|
2024
|
-
return {};
|
|
2025
|
-
},
|
|
2026
2127
|
shouldRenderContentStyles() {
|
|
2027
2128
|
var e, n, t, o, r;
|
|
2028
2129
|
return Boolean(
|
|
2029
|
-
(((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"
|
|
2030
2131
|
);
|
|
2031
2132
|
},
|
|
2032
2133
|
onUpdateHook0() {
|
|
@@ -2071,7 +2172,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
2071
2172
|
evaluateJsCode() {
|
|
2072
2173
|
var n, t;
|
|
2073
2174
|
const e = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.jsCode;
|
|
2074
|
-
e &&
|
|
2175
|
+
e && D({
|
|
2075
2176
|
code: e,
|
|
2076
2177
|
context: this.contextContext,
|
|
2077
2178
|
state: this.contentState
|
|
@@ -2086,14 +2187,17 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
2086
2187
|
canTrack: this.canTrackToUse,
|
|
2087
2188
|
contentId: r,
|
|
2088
2189
|
apiKey: this.apiKey,
|
|
2089
|
-
variationId: o !== r ? o : void 0
|
|
2190
|
+
variationId: o !== r ? o : void 0,
|
|
2191
|
+
...pn(e),
|
|
2192
|
+
unique: !this.clicked
|
|
2090
2193
|
});
|
|
2091
2194
|
}
|
|
2195
|
+
this.clicked || (this.clicked = !0);
|
|
2092
2196
|
},
|
|
2093
2197
|
evalExpression(e) {
|
|
2094
2198
|
return e.replace(
|
|
2095
2199
|
/{{([^}]+)}}/g,
|
|
2096
|
-
(n, t) =>
|
|
2200
|
+
(n, t) => D({
|
|
2097
2201
|
code: t,
|
|
2098
2202
|
context: this.contextContext,
|
|
2099
2203
|
state: this.contentState
|
|
@@ -2101,7 +2205,7 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
2101
2205
|
);
|
|
2102
2206
|
},
|
|
2103
2207
|
handleRequest({ url: e, key: n }) {
|
|
2104
|
-
|
|
2208
|
+
Q(e).then((t) => t.json()).then((t) => {
|
|
2105
2209
|
const o = {
|
|
2106
2210
|
...this.overrideState,
|
|
2107
2211
|
[n]: t
|
|
@@ -2137,50 +2241,50 @@ const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then((
|
|
|
2137
2241
|
);
|
|
2138
2242
|
}
|
|
2139
2243
|
}
|
|
2140
|
-
},
|
|
2141
|
-
function
|
|
2244
|
+
}, bn = ["builder-content-id", "builder-model"];
|
|
2245
|
+
function yn(e, n, t, o, r, s) {
|
|
2142
2246
|
var a, d, m, p, h, v, V;
|
|
2143
2247
|
const i = k("render-content-styles"), c = k("render-blocks");
|
|
2144
2248
|
return s.useContent ? (l(), u("div", {
|
|
2145
2249
|
key: 0,
|
|
2146
2250
|
ref: "elementRef",
|
|
2147
|
-
onClick: n[0] || (n[0] = (
|
|
2251
|
+
onClick: n[0] || (n[0] = (de) => s.onClick(de)),
|
|
2148
2252
|
"builder-content-id": (a = s.useContent) == null ? void 0 : a.id,
|
|
2149
2253
|
"builder-model": t.model
|
|
2150
2254
|
}, [
|
|
2151
|
-
s.shouldRenderContentStyles ? (l(),
|
|
2255
|
+
s.shouldRenderContentStyles ? (l(), I(i, {
|
|
2152
2256
|
key: 0,
|
|
2153
2257
|
cssCode: (m = (d = s.useContent) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
|
|
2154
2258
|
customFonts: (h = (p = s.useContent) == null ? void 0 : p.data) == null ? void 0 : h.customFonts
|
|
2155
2259
|
}, null, 8, ["cssCode", "customFonts"])) : b("", !0),
|
|
2156
|
-
(l(),
|
|
2260
|
+
(l(), I(c, {
|
|
2157
2261
|
blocks: (V = (v = s.useContent) == null ? void 0 : v.data) == null ? void 0 : V.blocks,
|
|
2158
|
-
key:
|
|
2262
|
+
key: r.forceReRenderCount
|
|
2159
2263
|
}, null, 8, ["blocks"]))
|
|
2160
|
-
], 8,
|
|
2264
|
+
], 8, bn)) : b("", !0);
|
|
2161
2265
|
}
|
|
2162
|
-
const
|
|
2266
|
+
const vn = /* @__PURE__ */ g(gn, [["render", yn]]), xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2163
2267
|
__proto__: null,
|
|
2164
|
-
default:
|
|
2165
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2268
|
+
default: vn
|
|
2269
|
+
}, Symbol.toStringTag, { value: "Module" })), kn = () => import("./block-styles.b1836f48.js").then((e) => e.default).catch((e) => {
|
|
2166
2270
|
throw console.error(
|
|
2167
2271
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
2168
2272
|
e
|
|
2169
2273
|
), e;
|
|
2170
|
-
}),
|
|
2274
|
+
}), Cn = () => import("./render-block.bd00521b.js").then((e) => e.default).catch((e) => {
|
|
2171
2275
|
throw console.error(
|
|
2172
2276
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
2173
2277
|
e
|
|
2174
2278
|
), e;
|
|
2175
|
-
}),
|
|
2279
|
+
}), Sn = {
|
|
2176
2280
|
name: "render-blocks",
|
|
2177
2281
|
components: {
|
|
2178
|
-
RenderBlock: x(
|
|
2179
|
-
BlockStyles: x(
|
|
2282
|
+
RenderBlock: x(Cn),
|
|
2283
|
+
BlockStyles: x(kn)
|
|
2180
2284
|
},
|
|
2181
2285
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
2182
2286
|
inject: {
|
|
2183
|
-
builderContext:
|
|
2287
|
+
builderContext: $.key
|
|
2184
2288
|
},
|
|
2185
2289
|
computed: {
|
|
2186
2290
|
className() {
|
|
@@ -2226,77 +2330,78 @@ const dn = /* @__PURE__ */ g(an, [["render", ln]]), un = /* @__PURE__ */ Object.
|
|
|
2226
2330
|
}
|
|
2227
2331
|
}
|
|
2228
2332
|
};
|
|
2229
|
-
const
|
|
2230
|
-
function
|
|
2333
|
+
const _n = ["builder-path", "builder-parent-id", "dataSet"];
|
|
2334
|
+
function wn(e, n, t, o, r, s) {
|
|
2231
2335
|
const i = k("render-block"), c = k("block-styles");
|
|
2232
2336
|
return l(), u("div", {
|
|
2233
|
-
class:
|
|
2337
|
+
class: j(s._classStringToObject(s.className + " div-2oa2wtipkzk")),
|
|
2234
2338
|
"builder-path": t.path,
|
|
2235
2339
|
"builder-parent-id": t.parent,
|
|
2236
2340
|
dataSet: {
|
|
2237
2341
|
class: s.className
|
|
2238
2342
|
},
|
|
2239
|
-
style:
|
|
2343
|
+
style: w(t.styleProp),
|
|
2240
2344
|
onClick: n[0] || (n[0] = (a) => s.onClick()),
|
|
2241
2345
|
onMouseenter: n[1] || (n[1] = (a) => s.onMouseEnter())
|
|
2242
2346
|
}, [
|
|
2243
|
-
t.blocks ? (l(!0), u(
|
|
2347
|
+
t.blocks ? (l(!0), u(R, { key: 0 }, O(t.blocks, (a, d) => (l(), I(i, {
|
|
2244
2348
|
key: "render-block-" + a.id,
|
|
2245
2349
|
block: a,
|
|
2246
2350
|
context: s.builderContext
|
|
2247
2351
|
}, null, 8, ["block", "context"]))), 128)) : b("", !0),
|
|
2248
|
-
t.blocks ? (l(!0), u(
|
|
2352
|
+
t.blocks ? (l(!0), u(R, { key: 1 }, O(t.blocks, (a, d) => (l(), I(c, {
|
|
2249
2353
|
key: "block-style-" + a.id,
|
|
2250
2354
|
block: a,
|
|
2251
2355
|
context: s.builderContext
|
|
2252
2356
|
}, null, 8, ["block", "context"]))), 128)) : b("", !0)
|
|
2253
|
-
], 46,
|
|
2357
|
+
], 46, _n);
|
|
2254
2358
|
}
|
|
2255
|
-
const
|
|
2359
|
+
const In = /* @__PURE__ */ g(Sn, [["render", wn], ["__scopeId", "data-v-0924b77d"]]), le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2256
2360
|
__proto__: null,
|
|
2257
|
-
default:
|
|
2258
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2259
|
-
function
|
|
2361
|
+
default: In
|
|
2362
|
+
}, Symbol.toStringTag, { value: "Module" })), J = {};
|
|
2363
|
+
function Fn(e) {
|
|
2260
2364
|
if (f()) {
|
|
2261
|
-
Object.assign(
|
|
2365
|
+
Object.assign(J, e);
|
|
2262
2366
|
const n = {
|
|
2263
2367
|
type: "builder.settingsChange",
|
|
2264
|
-
data:
|
|
2368
|
+
data: J
|
|
2265
2369
|
};
|
|
2266
2370
|
parent.postMessage(n, "*");
|
|
2267
2371
|
}
|
|
2268
2372
|
}
|
|
2269
2373
|
export {
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
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,
|
|
2277
2381
|
g as _,
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2382
|
+
Rn as a,
|
|
2383
|
+
ge as b,
|
|
2384
|
+
En as c,
|
|
2385
|
+
Oe as d,
|
|
2386
|
+
D as e,
|
|
2283
2387
|
U as f,
|
|
2284
|
-
|
|
2388
|
+
he as g,
|
|
2285
2389
|
mt as h,
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2390
|
+
ft as i,
|
|
2391
|
+
In as j,
|
|
2392
|
+
y as k,
|
|
2393
|
+
Dt as l,
|
|
2394
|
+
se as m,
|
|
2395
|
+
jn as n,
|
|
2396
|
+
qt 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
|
|
2302
2407
|
};
|