@builder.io/sdk-vue 0.0.2 → 0.0.3-0
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 +3 -1
- package/packages/_vue2/dist/block-styles.69994573.cjs +6 -0
- package/packages/_vue2/dist/block-styles.f1cd7e30.js +86 -0
- package/packages/_vue2/dist/get-processed-block.53da1bfe.js +40 -0
- package/packages/_vue2/dist/get-processed-block.b71c1bb2.cjs +1 -0
- package/packages/_vue2/dist/{index.93374a52.js → index.a5e0b693.js} +158 -138
- package/packages/_vue2/dist/index.a63c466e.cjs +4 -0
- package/packages/_vue2/dist/{render-block.f95552ec.js → render-block.7c0c9395.js} +68 -62
- package/packages/_vue2/dist/render-block.8c8b9fed.cjs +3 -0
- package/packages/_vue2/dist/render-component-with-context.884e23d0.js +53 -0
- package/packages/_vue2/dist/render-component-with-context.eb721952.cjs +1 -0
- package/packages/_vue2/dist/{render-component.10d6d66e.js → render-component.7e81a5e0.js} +14 -14
- package/packages/_vue2/dist/render-component.92306f84.cjs +1 -0
- package/packages/_vue2/dist/{render-inlined-styles.3826da36.cjs → render-inlined-styles.0458e786.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.0fed22b4.js → render-inlined-styles.64527ebc.js} +1 -1
- package/packages/_vue2/dist/render-repeated-block.2192d332.cjs +1 -0
- package/packages/_vue2/dist/{render-repeated-block.f29194a7.js → render-repeated-block.bd19b766.js} +11 -8
- package/packages/_vue2/dist/{render-styles.cd30abd1.js → render-styles.67a8bb35.js} +8 -8
- package/packages/_vue2/dist/{render-styles.9ff97301.cjs → render-styles.7ab6335e.cjs} +1 -1
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +4 -4
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +172 -40
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +177 -45
- package/packages/_vue2/dist/src/blocks/video/video.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +1 -1
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +168 -36
- package/packages/_vue2/dist/src/components/render-block/render-component-with-context.vue.d.ts +116 -0
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +47 -14
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +162 -30
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +172 -39
- 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 +174 -42
- package/packages/_vue2/dist/src/context/types.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/extract-text-styles.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/fast-clone.d.ts +4 -0
- package/packages/_vue2/dist/src/functions/get-react-native-block-styles.d.ts +6 -0
- package/packages/_vue2/dist/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/packages/_vue2/dist/src/helpers/css.d.ts +5 -1
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/block-styles.a49e972d.cjs +6 -0
- package/packages/_vue3/dist/block-styles.a91eeb93.js +83 -0
- package/packages/_vue3/dist/get-processed-block.0d08be3e.js +40 -0
- package/packages/_vue3/dist/get-processed-block.f32aca5e.cjs +1 -0
- package/packages/_vue3/dist/{index.7b49e825.js → index.06c0f5c8.js} +253 -230
- package/packages/_vue3/dist/index.4ab36c30.cjs +4 -0
- package/packages/_vue3/dist/render-block.425938f2.js +241 -0
- package/packages/_vue3/dist/render-block.5db91f52.cjs +3 -0
- package/packages/_vue3/dist/render-component-with-context.9805829c.js +50 -0
- package/packages/_vue3/dist/render-component-with-context.d09cfab0.cjs +1 -0
- package/packages/_vue3/dist/render-component.863aa9a1.cjs +1 -0
- package/packages/_vue3/dist/{render-component.7ca6729a.js → render-component.87cc6d83.js} +9 -9
- package/packages/_vue3/dist/{render-inlined-styles.56082955.cjs → render-inlined-styles.5b918790.cjs} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.0b1e087d.js → render-inlined-styles.9ac8320c.js} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.0b974ccc.js → render-repeated-block.3d799bba.js} +12 -9
- package/packages/_vue3/dist/render-repeated-block.9dc8238b.cjs +1 -0
- package/packages/_vue3/dist/{render-styles.65bace65.js → render-styles.9c635f29.js} +3 -3
- package/packages/_vue3/dist/{render-styles.d4412af2.cjs → render-styles.cb10c812.cjs} +1 -1
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +7 -7
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +4 -4
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +9 -9
- package/packages/_vue3/dist/src/blocks/video/video.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +1 -1
- package/packages/_vue3/dist/src/components/render-block/render-component-with-context.vue.d.ts +51 -0
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +35 -1
- package/packages/_vue3/dist/src/components/render-block/render-repeated-block.vue.d.ts +1 -16
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +4 -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 +6 -6
- package/packages/_vue3/dist/src/context/types.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/extract-text-styles.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/fast-clone.d.ts +4 -0
- package/packages/_vue3/dist/src/functions/get-react-native-block-styles.d.ts +6 -0
- package/packages/_vue3/dist/src/functions/sanitize-react-native-block-styles.d.ts +3 -0
- package/packages/_vue3/dist/src/helpers/css.d.ts +5 -1
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.a3384cd8.js +0 -72
- package/packages/_vue2/dist/block-styles.b8f018af.cjs +0 -10
- package/packages/_vue2/dist/get-processed-block.53761199.js +0 -40
- package/packages/_vue2/dist/get-processed-block.5b7d0290.cjs +0 -1
- package/packages/_vue2/dist/index.3fb2f85b.cjs +0 -4
- package/packages/_vue2/dist/render-block.31ab55d9.cjs +0 -3
- package/packages/_vue2/dist/render-component.4714b27b.cjs +0 -1
- package/packages/_vue2/dist/render-repeated-block.d8e1f3e2.cjs +0 -1
- package/packages/_vue2/dist/src/functions/get-block-styles.d.ts +0 -1
- package/packages/_vue3/dist/block-styles.867fd8f0.js +0 -69
- package/packages/_vue3/dist/block-styles.b9355d79.cjs +0 -10
- package/packages/_vue3/dist/get-processed-block.4d9c7a48.cjs +0 -1
- package/packages/_vue3/dist/get-processed-block.77923ee6.js +0 -40
- package/packages/_vue3/dist/index.bbfd8c89.cjs +0 -4
- package/packages/_vue3/dist/render-block.1e996e4e.cjs +0 -3
- package/packages/_vue3/dist/render-block.3110fec0.js +0 -243
- package/packages/_vue3/dist/render-component.470525d5.cjs +0 -1
- package/packages/_vue3/dist/render-repeated-block.10c41242.cjs +0 -1
- package/packages/_vue3/dist/src/functions/get-block-styles.d.ts +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineAsyncComponent as y, resolveComponent as v, openBlock as l, createElementBlock as d, normalizeStyle as
|
|
1
|
+
import { defineAsyncComponent as y, resolveComponent as v, openBlock as l, createElementBlock as d, normalizeStyle as _, Fragment as C, renderList as E, createVNode as q, createElementVNode as T, createCommentVNode as b, normalizeClass as j, renderSlot as w, mergeProps as x, toDisplayString as P, createBlock as S } from "vue";
|
|
2
2
|
const U = "vue3";
|
|
3
3
|
function h() {
|
|
4
4
|
return typeof window < "u" && typeof document < "u";
|
|
5
5
|
}
|
|
6
|
-
const
|
|
6
|
+
const $ = {};
|
|
7
7
|
function ae(e, n) {
|
|
8
|
-
let t =
|
|
9
|
-
if (t || (t =
|
|
8
|
+
let t = $[e];
|
|
9
|
+
if (t || (t = $[e] = []), t.push(n), h()) {
|
|
10
10
|
const o = {
|
|
11
11
|
type: "builder.register",
|
|
12
12
|
data: {
|
|
@@ -43,13 +43,14 @@ const ie = () => {
|
|
|
43
43
|
type: "builder.sdkInfo",
|
|
44
44
|
data: {
|
|
45
45
|
target: U,
|
|
46
|
-
supportsPatchUpdates: !1
|
|
46
|
+
supportsPatchUpdates: !1,
|
|
47
|
+
supportsAddBlockScoping: !0
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
50
|
"*"
|
|
50
51
|
), window.addEventListener("message", ({ data: n }) => {
|
|
51
52
|
var t, o;
|
|
52
|
-
if (n)
|
|
53
|
+
if (!!(n != null && n.type))
|
|
53
54
|
switch (n.type) {
|
|
54
55
|
case "builder.evaluate": {
|
|
55
56
|
const r = n.data.text, s = n.data.arguments || [], a = n.data.id, c = new Function(r);
|
|
@@ -86,10 +87,10 @@ const ie = () => {
|
|
|
86
87
|
}
|
|
87
88
|
}));
|
|
88
89
|
};
|
|
89
|
-
function
|
|
90
|
+
function A(e) {
|
|
90
91
|
return e;
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
+
function mn(e) {
|
|
93
94
|
return e;
|
|
94
95
|
}
|
|
95
96
|
const le = () => Promise.resolve().then(() => se).then((e) => e.default).catch((e) => {
|
|
@@ -99,7 +100,7 @@ const le = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
99
100
|
), e;
|
|
100
101
|
}), de = {
|
|
101
102
|
name: "builder-columns",
|
|
102
|
-
components: {
|
|
103
|
+
components: { RenderBlocks: y(le) },
|
|
103
104
|
props: [
|
|
104
105
|
"space",
|
|
105
106
|
"columns",
|
|
@@ -107,7 +108,7 @@ const le = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
107
108
|
"reverseColumnsWhenStacked",
|
|
108
109
|
"builderBlock"
|
|
109
110
|
],
|
|
110
|
-
data: () => ({ markMutable:
|
|
111
|
+
data: () => ({ markMutable: A }),
|
|
111
112
|
computed: {
|
|
112
113
|
columnsCssVars() {
|
|
113
114
|
const e = this.stackColumnsAt === "never" ? "inherit" : this.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -156,13 +157,13 @@ const f = (e, n) => {
|
|
|
156
157
|
function ue(e, n, t, o, r, s) {
|
|
157
158
|
const a = v("render-blocks");
|
|
158
159
|
return l(), d("div", {
|
|
159
|
-
class: "builder-columns div-
|
|
160
|
-
style:
|
|
160
|
+
class: "builder-columns div-256wrwn33ry",
|
|
161
|
+
style: _(s.columnsCssVars)
|
|
161
162
|
}, [
|
|
162
|
-
(l(!0), d(
|
|
163
|
+
(l(!0), d(C, null, E(t.columns, (c, i) => (l(), d("div", {
|
|
163
164
|
key: i,
|
|
164
|
-
class: "builder-column div-
|
|
165
|
-
style:
|
|
165
|
+
class: "builder-column div-256wrwn33ry-2",
|
|
166
|
+
style: _({
|
|
166
167
|
width: s.getColumnCssWidth(i),
|
|
167
168
|
marginLeft: `${i === 0 ? 0 : s.getGutterSize()}px`,
|
|
168
169
|
...s.columnCssVars
|
|
@@ -171,12 +172,15 @@ function ue(e, n, t, o, r, s) {
|
|
|
171
172
|
q(a, {
|
|
172
173
|
blocks: e.markMutable(c.blocks),
|
|
173
174
|
path: `component.options.columns.${i}.blocks`,
|
|
174
|
-
parent: t.builderBlock.id
|
|
175
|
+
parent: t.builderBlock.id,
|
|
176
|
+
styleProp: {
|
|
177
|
+
flexGrow: "1"
|
|
178
|
+
}
|
|
175
179
|
}, null, 8, ["blocks", "path", "parent"])
|
|
176
180
|
], 4))), 128))
|
|
177
181
|
], 4);
|
|
178
182
|
}
|
|
179
|
-
const me = /* @__PURE__ */ f(de, [["render", ue], ["__scopeId", "data-v-
|
|
183
|
+
const me = /* @__PURE__ */ f(de, [["render", ue], ["__scopeId", "data-v-2e5dc506"]]);
|
|
180
184
|
function W(e) {
|
|
181
185
|
return e.replace(/http(s)?:/, "");
|
|
182
186
|
}
|
|
@@ -198,7 +202,7 @@ function he(e, n) {
|
|
|
198
202
|
}
|
|
199
203
|
return null;
|
|
200
204
|
}
|
|
201
|
-
function
|
|
205
|
+
function R(e) {
|
|
202
206
|
if (!e)
|
|
203
207
|
return e;
|
|
204
208
|
const n = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -221,8 +225,8 @@ const fe = {
|
|
|
221
225
|
"className",
|
|
222
226
|
"sizes",
|
|
223
227
|
"aspectRatio",
|
|
224
|
-
"
|
|
225
|
-
"
|
|
228
|
+
"builderBlock",
|
|
229
|
+
"fitContent"
|
|
226
230
|
],
|
|
227
231
|
computed: {
|
|
228
232
|
srcSetToUse() {
|
|
@@ -232,10 +236,10 @@ const fe = {
|
|
|
232
236
|
return this.srcset;
|
|
233
237
|
if (this.srcset && ((t = this.image) == null ? void 0 : t.includes("builder.io/api/v1/image"))) {
|
|
234
238
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
235
|
-
return console.debug("Removed given srcset"),
|
|
239
|
+
return console.debug("Removed given srcset"), R(n);
|
|
236
240
|
} else if (this.image && !this.srcset)
|
|
237
|
-
return
|
|
238
|
-
return
|
|
241
|
+
return R(n);
|
|
242
|
+
return R(n);
|
|
239
243
|
},
|
|
240
244
|
webpSrcSet() {
|
|
241
245
|
var e;
|
|
@@ -254,62 +258,62 @@ const fe = {
|
|
|
254
258
|
}
|
|
255
259
|
}
|
|
256
260
|
};
|
|
257
|
-
const ge =
|
|
261
|
+
const ge = ["srcset"], be = ["alt", "role", "src", "srcset", "sizes"], ye = ["srcset"], ve = {
|
|
258
262
|
key: 2,
|
|
259
|
-
class: "div-
|
|
263
|
+
class: "div-kd7f8ex7am-2"
|
|
260
264
|
};
|
|
261
|
-
function
|
|
265
|
+
function xe(e, n, t, o, r, s) {
|
|
262
266
|
var a, c, i, u;
|
|
263
|
-
return l(), d(
|
|
264
|
-
|
|
267
|
+
return l(), d(C, null, [
|
|
268
|
+
T("picture", null, [
|
|
265
269
|
s.webpSrcSet ? (l(), d("source", {
|
|
266
270
|
key: 0,
|
|
267
271
|
type: "image/webp",
|
|
268
272
|
srcset: s.webpSrcSet
|
|
269
|
-
}, null, 8,
|
|
270
|
-
|
|
273
|
+
}, null, 8, ge)) : b("", !0),
|
|
274
|
+
T("img", {
|
|
271
275
|
loading: "lazy",
|
|
272
276
|
alt: t.altText,
|
|
273
277
|
role: t.altText ? "presentation" : void 0,
|
|
274
|
-
style:
|
|
278
|
+
style: _({
|
|
275
279
|
objectPosition: t.backgroundSize || "center",
|
|
276
280
|
objectFit: t.backgroundSize || "cover"
|
|
277
281
|
}),
|
|
278
282
|
class: j(
|
|
279
283
|
s._classStringToObject(
|
|
280
|
-
"builder-image" + (t.className ? " " + t.className : "") + " img-
|
|
284
|
+
"builder-image" + (t.className ? " " + t.className : "") + " img-kd7f8ex7am"
|
|
281
285
|
)
|
|
282
286
|
),
|
|
283
287
|
src: t.image,
|
|
284
288
|
srcset: s.srcSetToUse,
|
|
285
289
|
sizes: t.sizes
|
|
286
|
-
}, null, 14,
|
|
287
|
-
|
|
290
|
+
}, null, 14, be),
|
|
291
|
+
T("source", { srcset: s.srcSetToUse }, null, 8, ye)
|
|
288
292
|
]),
|
|
289
|
-
t.aspectRatio && !(
|
|
293
|
+
t.aspectRatio && !(((c = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : c.length) && t.fitContent) ? (l(), d("div", {
|
|
290
294
|
key: 0,
|
|
291
|
-
class: "builder-image-sizer div-
|
|
292
|
-
style:
|
|
295
|
+
class: "builder-image-sizer div-kd7f8ex7am",
|
|
296
|
+
style: _({
|
|
293
297
|
paddingTop: t.aspectRatio * 100 + "%"
|
|
294
298
|
})
|
|
295
299
|
}, null, 4)) : b("", !0),
|
|
296
|
-
((u = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : u.length) && t.fitContent ?
|
|
297
|
-
t.fitContent
|
|
298
|
-
|
|
299
|
-
]))
|
|
300
|
-
]);
|
|
300
|
+
((u = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : u.length) && t.fitContent ? w(e.$slots, "default", { key: 1 }, void 0, !0) : b("", !0),
|
|
301
|
+
!t.fitContent && e.children ? (l(), d("div", ve, [
|
|
302
|
+
w(e.$slots, "default", {}, void 0, !0)
|
|
303
|
+
])) : b("", !0)
|
|
304
|
+
], 64);
|
|
301
305
|
}
|
|
302
|
-
const ke = /* @__PURE__ */ f(fe, [["render",
|
|
306
|
+
const ke = /* @__PURE__ */ f(fe, [["render", xe], ["__scopeId", "data-v-ebf1c7e3"]]), _e = {
|
|
303
307
|
name: "builder-text",
|
|
304
308
|
props: ["text"]
|
|
305
|
-
},
|
|
306
|
-
function
|
|
309
|
+
}, Ce = ["innerHTML"];
|
|
310
|
+
function we(e, n, t, o, r, s) {
|
|
307
311
|
return l(), d("span", {
|
|
308
312
|
class: "builder-text",
|
|
309
313
|
innerHTML: t.text
|
|
310
|
-
}, null, 8,
|
|
314
|
+
}, null, 8, Ce);
|
|
311
315
|
}
|
|
312
|
-
const
|
|
316
|
+
const Se = /* @__PURE__ */ f(_e, [["render", we]]), Ie = {
|
|
313
317
|
name: "builder-video",
|
|
314
318
|
props: [
|
|
315
319
|
"autoPlay",
|
|
@@ -342,12 +346,18 @@ const Ie = /* @__PURE__ */ f(Ce, [["render", Se]]), Te = {
|
|
|
342
346
|
playsInline: !0
|
|
343
347
|
} : {}
|
|
344
348
|
};
|
|
349
|
+
},
|
|
350
|
+
spreadProps() {
|
|
351
|
+
return {
|
|
352
|
+
...this.attributes,
|
|
353
|
+
...this.videoProps
|
|
354
|
+
};
|
|
345
355
|
}
|
|
346
356
|
}
|
|
347
|
-
},
|
|
348
|
-
function
|
|
357
|
+
}, Te = ["src", "poster"];
|
|
358
|
+
function Re(e, n, t, o, r, s) {
|
|
349
359
|
var a;
|
|
350
|
-
return l(), d("video", x(s.
|
|
360
|
+
return l(), d("video", x(s.spreadProps, {
|
|
351
361
|
style: {
|
|
352
362
|
width: "100%",
|
|
353
363
|
height: "100%",
|
|
@@ -358,9 +368,9 @@ function Ee(e, n, t, o, r, s) {
|
|
|
358
368
|
},
|
|
359
369
|
src: t.video || "no-src",
|
|
360
370
|
poster: t.posterImage
|
|
361
|
-
}), null, 16,
|
|
371
|
+
}), null, 16, Te);
|
|
362
372
|
}
|
|
363
|
-
const
|
|
373
|
+
const Ee = /* @__PURE__ */ f(Ie, [["render", Re]]);
|
|
364
374
|
function F(e, n = null, t = ".") {
|
|
365
375
|
return Object.keys(e).reduce((o, r) => {
|
|
366
376
|
const s = e[r], a = [n, r].filter(Boolean).join(t);
|
|
@@ -371,12 +381,12 @@ function F(e, n = null, t = ".") {
|
|
|
371
381
|
].every(Boolean) ? { ...o, ...F(s, a, t) } : { ...o, [a]: s };
|
|
372
382
|
}, {});
|
|
373
383
|
}
|
|
374
|
-
const L = "builder.",
|
|
384
|
+
const L = "builder.", Fe = (e) => {
|
|
375
385
|
const n = {};
|
|
376
386
|
return e.forEach((t, o) => {
|
|
377
387
|
n[o] = t;
|
|
378
388
|
}), n;
|
|
379
|
-
},
|
|
389
|
+
}, je = (e) => {
|
|
380
390
|
if (!e)
|
|
381
391
|
return {};
|
|
382
392
|
const n = D(e), t = {};
|
|
@@ -386,12 +396,12 @@ const L = "builder.", je = (e) => {
|
|
|
386
396
|
t[r] = n[o];
|
|
387
397
|
}
|
|
388
398
|
}), t;
|
|
389
|
-
},
|
|
399
|
+
}, Ue = () => {
|
|
390
400
|
if (!h())
|
|
391
401
|
return {};
|
|
392
402
|
const e = new URLSearchParams(window.location.search);
|
|
393
|
-
return
|
|
394
|
-
}, D = (e) => e instanceof URLSearchParams ?
|
|
403
|
+
return je(e);
|
|
404
|
+
}, D = (e) => e instanceof URLSearchParams ? Fe(e) : e;
|
|
395
405
|
function Ae() {
|
|
396
406
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
|
|
397
407
|
}
|
|
@@ -403,10 +413,10 @@ async function K() {
|
|
|
403
413
|
}
|
|
404
414
|
return e.default || e;
|
|
405
415
|
}
|
|
406
|
-
const
|
|
416
|
+
const Ve = (e) => {
|
|
407
417
|
const n = e.split(".");
|
|
408
418
|
return n.length > 2 ? n.slice(1).join(".") : e;
|
|
409
|
-
},
|
|
419
|
+
}, G = async ({
|
|
410
420
|
name: e,
|
|
411
421
|
canTrack: n
|
|
412
422
|
}) => {
|
|
@@ -428,11 +438,11 @@ const $e = (e) => {
|
|
|
428
438
|
[e, n],
|
|
429
439
|
...s,
|
|
430
440
|
["path", "/"],
|
|
431
|
-
["domain",
|
|
441
|
+
["domain", Ve(window.location.hostname)],
|
|
432
442
|
...r
|
|
433
443
|
];
|
|
434
444
|
return Oe(a);
|
|
435
|
-
},
|
|
445
|
+
}, J = async ({
|
|
436
446
|
name: e,
|
|
437
447
|
value: n,
|
|
438
448
|
expires: t,
|
|
@@ -446,14 +456,14 @@ const $e = (e) => {
|
|
|
446
456
|
} catch (r) {
|
|
447
457
|
console.warn("[COOKIE] SET error: ", r);
|
|
448
458
|
}
|
|
449
|
-
},
|
|
459
|
+
}, $e = "builderio.variations", Y = (e) => `${$e}.${e}`, We = ({
|
|
450
460
|
contentId: e,
|
|
451
461
|
canTrack: n
|
|
452
|
-
}) =>
|
|
462
|
+
}) => G({ name: Y(e), canTrack: n }), Le = ({
|
|
453
463
|
contentId: e,
|
|
454
464
|
canTrack: n,
|
|
455
465
|
value: t
|
|
456
|
-
}) =>
|
|
466
|
+
}) => J({ name: Y(e), value: t, canTrack: n }), I = (e) => e != null, Me = (e) => I(e.id) && I(e.variations) && Object.keys(e.variations).length > 0, Ne = ({
|
|
457
467
|
id: e,
|
|
458
468
|
variations: n
|
|
459
469
|
}) => {
|
|
@@ -477,22 +487,22 @@ const $e = (e) => {
|
|
|
477
487
|
testVariationId: t.id,
|
|
478
488
|
testVariationName: t.name || (t.id === e.id ? "Default" : "")
|
|
479
489
|
};
|
|
480
|
-
},
|
|
490
|
+
}, He = async ({
|
|
481
491
|
item: e,
|
|
482
492
|
canTrack: n
|
|
483
493
|
}) => {
|
|
484
|
-
const t = await
|
|
494
|
+
const t = await We({
|
|
485
495
|
canTrack: n,
|
|
486
496
|
contentId: e.id
|
|
487
497
|
}), o = t ? M({ item: e, testGroupId: t }) : void 0;
|
|
488
498
|
if (o)
|
|
489
499
|
return o;
|
|
490
500
|
{
|
|
491
|
-
const r =
|
|
501
|
+
const r = Ne({
|
|
492
502
|
variations: e.variations,
|
|
493
503
|
id: e.id
|
|
494
504
|
});
|
|
495
|
-
return
|
|
505
|
+
return Le({
|
|
496
506
|
contentId: e.id,
|
|
497
507
|
value: r,
|
|
498
508
|
canTrack: n
|
|
@@ -500,19 +510,19 @@ const $e = (e) => {
|
|
|
500
510
|
console.error("could not store A/B test variation: ", s);
|
|
501
511
|
}), M({ item: e, testGroupId: r });
|
|
502
512
|
}
|
|
503
|
-
},
|
|
513
|
+
}, ze = async ({
|
|
504
514
|
item: e,
|
|
505
515
|
canTrack: n
|
|
506
516
|
}) => {
|
|
507
|
-
if (!
|
|
517
|
+
if (!Me(e))
|
|
508
518
|
return;
|
|
509
|
-
const t = await
|
|
519
|
+
const t = await He({ item: e, canTrack: n });
|
|
510
520
|
Object.assign(e, t);
|
|
511
521
|
};
|
|
512
522
|
async function X(e) {
|
|
513
|
-
return (await
|
|
523
|
+
return (await De({ ...e, limit: 1 })).results[0] || null;
|
|
514
524
|
}
|
|
515
|
-
const
|
|
525
|
+
const qe = (e) => {
|
|
516
526
|
const {
|
|
517
527
|
limit: n = 30,
|
|
518
528
|
userAttributes: t,
|
|
@@ -523,7 +533,7 @@ const De = (e) => {
|
|
|
523
533
|
} = e, c = new URL(
|
|
524
534
|
`https://cdn.builder.io/api/v2/content/${s}?apiKey=${a}&limit=${n}&noTraverse=${r}`
|
|
525
535
|
), i = {
|
|
526
|
-
...
|
|
536
|
+
...Ue(),
|
|
527
537
|
...D(e.options || {})
|
|
528
538
|
}, u = F(i);
|
|
529
539
|
for (const m in u)
|
|
@@ -535,51 +545,55 @@ const De = (e) => {
|
|
|
535
545
|
}
|
|
536
546
|
return c;
|
|
537
547
|
};
|
|
538
|
-
async function
|
|
539
|
-
const n =
|
|
548
|
+
async function De(e) {
|
|
549
|
+
const n = qe(e), o = await (await K())(n.href).then(
|
|
540
550
|
(s) => s.json()
|
|
541
551
|
), r = e.canTrack !== !1;
|
|
542
552
|
if (r)
|
|
543
553
|
for (const s of o.results)
|
|
544
|
-
await
|
|
554
|
+
await ze({ item: s, canTrack: r });
|
|
545
555
|
return o;
|
|
546
556
|
}
|
|
547
|
-
const
|
|
557
|
+
const Ke = () => Promise.resolve().then(() => on).then((e) => e.default).catch((e) => {
|
|
548
558
|
throw console.error(
|
|
549
559
|
"Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
|
|
550
560
|
e
|
|
551
561
|
), e;
|
|
552
562
|
}), Ge = {
|
|
553
563
|
name: "builder-symbol",
|
|
554
|
-
components: {
|
|
564
|
+
components: { RenderContent: y(Ke) },
|
|
555
565
|
props: ["symbol", "attributes"],
|
|
556
|
-
data: () => ({
|
|
566
|
+
data: () => ({
|
|
567
|
+
className: "builder-symbol",
|
|
568
|
+
fetchedContent: null,
|
|
569
|
+
markMutable: A
|
|
570
|
+
}),
|
|
557
571
|
inject: {
|
|
558
572
|
builderContext: "BuilderContext"
|
|
559
573
|
},
|
|
560
|
-
mounted() {
|
|
561
|
-
var e;
|
|
562
|
-
this.content = (e = this.symbol) == null ? void 0 : e.content;
|
|
563
|
-
},
|
|
564
574
|
watch: {
|
|
565
575
|
onUpdateHook0() {
|
|
566
576
|
const e = this.symbol;
|
|
567
|
-
e && !e.content && !this.
|
|
577
|
+
e && !e.content && !this.fetchedContent && e.model && X({
|
|
568
578
|
model: e.model,
|
|
569
579
|
apiKey: this.builderContext.apiKey,
|
|
570
580
|
query: {
|
|
571
581
|
id: e.entry
|
|
572
582
|
}
|
|
573
583
|
}).then((n) => {
|
|
574
|
-
this.
|
|
584
|
+
this.fetchedContent = n;
|
|
575
585
|
});
|
|
576
586
|
}
|
|
577
587
|
},
|
|
578
588
|
computed: {
|
|
589
|
+
contentToUse() {
|
|
590
|
+
var e;
|
|
591
|
+
return ((e = this.symbol) == null ? void 0 : e.content) || this.fetchedContent;
|
|
592
|
+
},
|
|
579
593
|
onUpdateHook0() {
|
|
580
594
|
return {
|
|
581
595
|
0: this.symbol,
|
|
582
|
-
1: this.
|
|
596
|
+
1: this.fetchedContent
|
|
583
597
|
};
|
|
584
598
|
}
|
|
585
599
|
},
|
|
@@ -594,8 +608,8 @@ const Je = () => Promise.resolve().then(() => sn).then((e) => e.default).catch((
|
|
|
594
608
|
return n;
|
|
595
609
|
}
|
|
596
610
|
}
|
|
597
|
-
},
|
|
598
|
-
function
|
|
611
|
+
}, Je = ["dataSet"];
|
|
612
|
+
function Ye(e, n, t, o, r, s) {
|
|
599
613
|
var c, i, u, m, p;
|
|
600
614
|
const a = v("render-content");
|
|
601
615
|
return l(), d("div", x(t.attributes, {
|
|
@@ -614,45 +628,45 @@ function Xe(e, n, t, o, r, s) {
|
|
|
614
628
|
...(m = (u = (i = t.symbol) == null ? void 0 : i.content) == null ? void 0 : u.data) == null ? void 0 : m.state
|
|
615
629
|
}),
|
|
616
630
|
model: (p = t.symbol) == null ? void 0 : p.model,
|
|
617
|
-
content: e.markMutable(
|
|
631
|
+
content: e.markMutable(s.contentToUse)
|
|
618
632
|
}, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
|
|
619
|
-
], 16,
|
|
633
|
+
], 16, Je);
|
|
620
634
|
}
|
|
621
|
-
const
|
|
635
|
+
const Xe = /* @__PURE__ */ f(Ge, [["render", Ye]]), Qe = {
|
|
622
636
|
name: "builder-button",
|
|
623
637
|
props: ["attributes", "text", "link", "openLinkInNewTab"]
|
|
624
638
|
};
|
|
625
|
-
const
|
|
626
|
-
function
|
|
639
|
+
const Ze = ["href", "target"];
|
|
640
|
+
function et(e, n, t, o, r, s) {
|
|
627
641
|
return t.link ? (l(), d("a", x({ key: 0 }, t.attributes, {
|
|
628
642
|
role: "button",
|
|
629
643
|
href: t.link,
|
|
630
644
|
target: t.openLinkInNewTab ? "_blank" : void 0
|
|
631
|
-
}),
|
|
645
|
+
}), P(t.text), 17, Ze)) : (l(), d("button", x({ key: 1 }, t.attributes, { class: "button-7jvpanrlkn" }), P(t.text), 17));
|
|
632
646
|
}
|
|
633
|
-
const
|
|
647
|
+
const tt = /* @__PURE__ */ f(Qe, [["render", et], ["__scopeId", "data-v-3fad88c8"]]), nt = {
|
|
634
648
|
name: "builder-section-component",
|
|
635
649
|
props: ["attributes", "maxWidth"]
|
|
636
650
|
};
|
|
637
|
-
function
|
|
651
|
+
function ot(e, n, t, o, r, s) {
|
|
638
652
|
return l(), d("section", x(t.attributes, {
|
|
639
653
|
style: t.maxWidth && typeof t.maxWidth == "number" ? {
|
|
640
654
|
maxWidth: t.maxWidth
|
|
641
655
|
} : void 0
|
|
642
656
|
}), [
|
|
643
|
-
|
|
657
|
+
w(e.$slots, "default")
|
|
644
658
|
], 16);
|
|
645
659
|
}
|
|
646
|
-
const
|
|
660
|
+
const st = /* @__PURE__ */ f(nt, [["render", ot]]), rt = {
|
|
647
661
|
name: "builder-fragment-component",
|
|
648
662
|
props: []
|
|
649
663
|
};
|
|
650
|
-
function
|
|
664
|
+
function at(e, n, t, o, r, s) {
|
|
651
665
|
return l(), d("span", null, [
|
|
652
|
-
|
|
666
|
+
w(e.$slots, "default")
|
|
653
667
|
]);
|
|
654
668
|
}
|
|
655
|
-
const
|
|
669
|
+
const it = /* @__PURE__ */ f(rt, [["render", at]]), ct = {
|
|
656
670
|
name: "Core:Button",
|
|
657
671
|
builtIn: !0,
|
|
658
672
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -690,10 +704,10 @@ const ct = /* @__PURE__ */ f(at, [["render", it]]), lt = {
|
|
|
690
704
|
static: !0,
|
|
691
705
|
noWrap: !0
|
|
692
706
|
};
|
|
693
|
-
function
|
|
707
|
+
function V(e) {
|
|
694
708
|
return e.__qwik_serializable__ = !0, e;
|
|
695
709
|
}
|
|
696
|
-
const
|
|
710
|
+
const lt = {
|
|
697
711
|
name: "Columns",
|
|
698
712
|
builtIn: !0,
|
|
699
713
|
inputs: [
|
|
@@ -881,7 +895,7 @@ const dt = {
|
|
|
881
895
|
]
|
|
882
896
|
}
|
|
883
897
|
],
|
|
884
|
-
onChange:
|
|
898
|
+
onChange: V((e) => {
|
|
885
899
|
function n() {
|
|
886
900
|
t.forEach((o) => {
|
|
887
901
|
o.delete("width");
|
|
@@ -918,14 +932,14 @@ const dt = {
|
|
|
918
932
|
advanced: !0
|
|
919
933
|
}
|
|
920
934
|
]
|
|
921
|
-
},
|
|
935
|
+
}, dt = {
|
|
922
936
|
name: "Fragment",
|
|
923
937
|
static: !0,
|
|
924
938
|
hidden: !0,
|
|
925
939
|
builtIn: !0,
|
|
926
940
|
canHaveChildren: !0,
|
|
927
941
|
noWrap: !0
|
|
928
|
-
},
|
|
942
|
+
}, ut = {
|
|
929
943
|
name: "Image",
|
|
930
944
|
static: !0,
|
|
931
945
|
builtIn: !0,
|
|
@@ -945,7 +959,7 @@ const dt = {
|
|
|
945
959
|
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
946
960
|
required: !0,
|
|
947
961
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
948
|
-
onChange:
|
|
962
|
+
onChange: V((e) => {
|
|
949
963
|
e.delete("srcset"), e.delete("noWebp");
|
|
950
964
|
function t(a, c = 6e4) {
|
|
951
965
|
return new Promise((i, u) => {
|
|
@@ -953,8 +967,8 @@ const dt = {
|
|
|
953
967
|
let p = !1;
|
|
954
968
|
m.onload = () => {
|
|
955
969
|
p = !0, i(m);
|
|
956
|
-
}, m.addEventListener("error", (
|
|
957
|
-
console.warn("Image load failed",
|
|
970
|
+
}, m.addEventListener("error", (k) => {
|
|
971
|
+
console.warn("Image load failed", k.error), u(k.error);
|
|
958
972
|
}), m.src = a, setTimeout(() => {
|
|
959
973
|
p || u(new Error("Image load timed out"));
|
|
960
974
|
}, c);
|
|
@@ -1051,7 +1065,7 @@ const dt = {
|
|
|
1051
1065
|
defaultValue: 0.7041
|
|
1052
1066
|
}
|
|
1053
1067
|
]
|
|
1054
|
-
},
|
|
1068
|
+
}, mt = {
|
|
1055
1069
|
name: "Core:Section",
|
|
1056
1070
|
static: !0,
|
|
1057
1071
|
builtIn: !0,
|
|
@@ -1096,7 +1110,7 @@ const dt = {
|
|
|
1096
1110
|
}
|
|
1097
1111
|
}
|
|
1098
1112
|
]
|
|
1099
|
-
},
|
|
1113
|
+
}, pt = {
|
|
1100
1114
|
name: "Symbol",
|
|
1101
1115
|
noWrap: !0,
|
|
1102
1116
|
static: !0,
|
|
@@ -1135,7 +1149,7 @@ const dt = {
|
|
|
1135
1149
|
type: "boolean"
|
|
1136
1150
|
}
|
|
1137
1151
|
]
|
|
1138
|
-
},
|
|
1152
|
+
}, ht = {
|
|
1139
1153
|
name: "Text",
|
|
1140
1154
|
static: !0,
|
|
1141
1155
|
builtIn: !0,
|
|
@@ -1155,7 +1169,7 @@ const dt = {
|
|
|
1155
1169
|
height: "auto",
|
|
1156
1170
|
textAlign: "center"
|
|
1157
1171
|
}
|
|
1158
|
-
},
|
|
1172
|
+
}, ft = {
|
|
1159
1173
|
name: "Video",
|
|
1160
1174
|
canHaveChildren: !0,
|
|
1161
1175
|
builtIn: !0,
|
|
@@ -1257,7 +1271,7 @@ const dt = {
|
|
|
1257
1271
|
advanced: !0
|
|
1258
1272
|
}
|
|
1259
1273
|
]
|
|
1260
|
-
},
|
|
1274
|
+
}, gt = {
|
|
1261
1275
|
name: "Embed",
|
|
1262
1276
|
static: !0,
|
|
1263
1277
|
builtIn: !0,
|
|
@@ -1268,7 +1282,7 @@ const dt = {
|
|
|
1268
1282
|
required: !0,
|
|
1269
1283
|
defaultValue: "",
|
|
1270
1284
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1271
|
-
onChange:
|
|
1285
|
+
onChange: V((e) => {
|
|
1272
1286
|
const n = e.get("url");
|
|
1273
1287
|
if (n)
|
|
1274
1288
|
return e.set("content", "Loading..."), fetch(
|
|
@@ -1291,11 +1305,11 @@ const dt = {
|
|
|
1291
1305
|
hideFromUI: !0
|
|
1292
1306
|
}
|
|
1293
1307
|
]
|
|
1294
|
-
},
|
|
1308
|
+
}, bt = [
|
|
1295
1309
|
"text/javascript",
|
|
1296
1310
|
"application/javascript",
|
|
1297
1311
|
"application/ecmascript"
|
|
1298
|
-
],
|
|
1312
|
+
], yt = (e) => bt.includes(e.type), vt = {
|
|
1299
1313
|
name: "builder-embed",
|
|
1300
1314
|
props: ["content"],
|
|
1301
1315
|
data: () => ({ scriptsInserted: [], scriptsRun: [], ranInitFn: !1 }),
|
|
@@ -1323,7 +1337,7 @@ const dt = {
|
|
|
1323
1337
|
this.scriptsInserted.push(t.src);
|
|
1324
1338
|
const o = document.createElement("script");
|
|
1325
1339
|
o.async = !0, o.src = t.src, document.head.appendChild(o);
|
|
1326
|
-
} else if (
|
|
1340
|
+
} else if (yt(t) && !this.scriptsRun.includes(t.innerText))
|
|
1327
1341
|
try {
|
|
1328
1342
|
this.scriptsRun.push(t.innerText), new Function(t.innerText)();
|
|
1329
1343
|
} catch (o) {
|
|
@@ -1332,22 +1346,22 @@ const dt = {
|
|
|
1332
1346
|
}
|
|
1333
1347
|
}
|
|
1334
1348
|
}
|
|
1335
|
-
},
|
|
1349
|
+
}, xt = ["innerHTML"];
|
|
1336
1350
|
function kt(e, n, t, o, r, s) {
|
|
1337
1351
|
return l(), d("div", {
|
|
1338
1352
|
class: "builder-embed",
|
|
1339
1353
|
ref: "elem",
|
|
1340
1354
|
innerHTML: t.content
|
|
1341
|
-
}, null, 8,
|
|
1355
|
+
}, null, 8, xt);
|
|
1342
1356
|
}
|
|
1343
|
-
const
|
|
1344
|
-
function
|
|
1357
|
+
const _t = /* @__PURE__ */ f(vt, [["render", kt]]);
|
|
1358
|
+
function Ct() {
|
|
1345
1359
|
return h() && window.self !== window.top;
|
|
1346
1360
|
}
|
|
1347
1361
|
function g() {
|
|
1348
|
-
return
|
|
1362
|
+
return Ct() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1349
1363
|
}
|
|
1350
|
-
const
|
|
1364
|
+
const wt = {
|
|
1351
1365
|
name: "builder-img-component",
|
|
1352
1366
|
props: [
|
|
1353
1367
|
"backgroundSize",
|
|
@@ -1358,8 +1372,8 @@ const St = {
|
|
|
1358
1372
|
"attributes"
|
|
1359
1373
|
],
|
|
1360
1374
|
data: () => ({ isEditing: g })
|
|
1361
|
-
},
|
|
1362
|
-
function
|
|
1375
|
+
}, St = ["alt", "src"];
|
|
1376
|
+
function It(e, n, t, o, r, s) {
|
|
1363
1377
|
return l(), d("img", x(t.attributes, {
|
|
1364
1378
|
style: {
|
|
1365
1379
|
objectFit: t.backgroundSize || "cover",
|
|
@@ -1368,9 +1382,9 @@ function Tt(e, n, t, o, r, s) {
|
|
|
1368
1382
|
key: e.isEditing() && t.imgSrc || "default-key",
|
|
1369
1383
|
alt: t.altText,
|
|
1370
1384
|
src: t.imgSrc || t.image
|
|
1371
|
-
}), null, 16,
|
|
1385
|
+
}), null, 16, St);
|
|
1372
1386
|
}
|
|
1373
|
-
const
|
|
1387
|
+
const Tt = /* @__PURE__ */ f(wt, [["render", It]]), Rt = {
|
|
1374
1388
|
name: "Raw:Img",
|
|
1375
1389
|
hideFromInsertMenu: !0,
|
|
1376
1390
|
builtIn: !0,
|
|
@@ -1386,7 +1400,7 @@ const Rt = /* @__PURE__ */ f(St, [["render", Tt]]), Et = {
|
|
|
1386
1400
|
],
|
|
1387
1401
|
noWrap: !0,
|
|
1388
1402
|
static: !0
|
|
1389
|
-
},
|
|
1403
|
+
}, Et = {
|
|
1390
1404
|
name: "builder-custom-code",
|
|
1391
1405
|
props: ["replaceNodes", "code"],
|
|
1392
1406
|
data: () => ({ scriptsInserted: [], scriptsRun: [] }),
|
|
@@ -1431,8 +1445,8 @@ const Rt = /* @__PURE__ */ f(St, [["render", Tt]]), Et = {
|
|
|
1431
1445
|
return n;
|
|
1432
1446
|
}
|
|
1433
1447
|
}
|
|
1434
|
-
},
|
|
1435
|
-
function
|
|
1448
|
+
}, Ft = ["innerHTML"];
|
|
1449
|
+
function jt(e, n, t, o, r, s) {
|
|
1436
1450
|
return l(), d("div", {
|
|
1437
1451
|
ref: "elem",
|
|
1438
1452
|
class: j(
|
|
@@ -1441,9 +1455,9 @@ function Ut(e, n, t, o, r, s) {
|
|
|
1441
1455
|
)
|
|
1442
1456
|
),
|
|
1443
1457
|
innerHTML: t.code
|
|
1444
|
-
}, null, 10,
|
|
1458
|
+
}, null, 10, Ft);
|
|
1445
1459
|
}
|
|
1446
|
-
const
|
|
1460
|
+
const Ut = /* @__PURE__ */ f(Et, [["render", jt]]), At = {
|
|
1447
1461
|
name: "Custom Code",
|
|
1448
1462
|
static: !0,
|
|
1449
1463
|
builtIn: !0,
|
|
@@ -1470,18 +1484,18 @@ const Vt = /* @__PURE__ */ f(Ft, [["render", Ut]]), At = {
|
|
|
1470
1484
|
advanced: !0
|
|
1471
1485
|
}
|
|
1472
1486
|
]
|
|
1473
|
-
},
|
|
1474
|
-
{ component: me, ...
|
|
1475
|
-
{ component: ke, ...
|
|
1476
|
-
{ component:
|
|
1477
|
-
{ component:
|
|
1478
|
-
{ component:
|
|
1479
|
-
{ component:
|
|
1480
|
-
{ component:
|
|
1481
|
-
{ component:
|
|
1482
|
-
{ component:
|
|
1483
|
-
{ component:
|
|
1484
|
-
{ component:
|
|
1487
|
+
}, Vt = () => [
|
|
1488
|
+
{ component: me, ...lt },
|
|
1489
|
+
{ component: ke, ...ut },
|
|
1490
|
+
{ component: Tt, ...Rt },
|
|
1491
|
+
{ component: Se, ...ht },
|
|
1492
|
+
{ component: Ee, ...ft },
|
|
1493
|
+
{ component: Xe, ...pt },
|
|
1494
|
+
{ component: tt, ...ct },
|
|
1495
|
+
{ component: st, ...mt },
|
|
1496
|
+
{ component: it, ...dt },
|
|
1497
|
+
{ component: _t, ...gt },
|
|
1498
|
+
{ component: Ut, ...At }
|
|
1485
1499
|
];
|
|
1486
1500
|
function N({
|
|
1487
1501
|
code: e,
|
|
@@ -1522,9 +1536,9 @@ function N({
|
|
|
1522
1536
|
function Ot() {
|
|
1523
1537
|
return !h() || g() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1524
1538
|
}
|
|
1525
|
-
const Q = [];
|
|
1526
|
-
function
|
|
1527
|
-
return
|
|
1539
|
+
const Q = (e) => JSON.parse(JSON.stringify(e)), Z = [];
|
|
1540
|
+
function pn(e, n) {
|
|
1541
|
+
return Z.push({ component: e, ...n }), console.warn(
|
|
1528
1542
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1529
1543
|
), e;
|
|
1530
1544
|
}
|
|
@@ -1533,15 +1547,15 @@ const Bt = ({
|
|
|
1533
1547
|
...n
|
|
1534
1548
|
}) => ({
|
|
1535
1549
|
type: "builder.registerComponent",
|
|
1536
|
-
data:
|
|
1537
|
-
}),
|
|
1550
|
+
data: Wt(n)
|
|
1551
|
+
}), Pt = (e) => typeof e == "function" ? $t(e) : Q(e), $t = (e) => {
|
|
1538
1552
|
const n = e.toString().trim();
|
|
1539
1553
|
return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
|
|
1540
|
-
},
|
|
1554
|
+
}, Wt = ({
|
|
1541
1555
|
inputs: e,
|
|
1542
1556
|
...n
|
|
1543
1557
|
}) => ({
|
|
1544
|
-
...
|
|
1558
|
+
...Q(n),
|
|
1545
1559
|
inputs: e == null ? void 0 : e.map(
|
|
1546
1560
|
(t) => Object.entries(t).reduce(
|
|
1547
1561
|
(o, [r, s]) => ({
|
|
@@ -1552,32 +1566,32 @@ const Bt = ({
|
|
|
1552
1566
|
)
|
|
1553
1567
|
)
|
|
1554
1568
|
});
|
|
1555
|
-
function
|
|
1569
|
+
function Lt() {
|
|
1556
1570
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
1557
1571
|
const n = Math.random() * 16 | 0;
|
|
1558
1572
|
return (e == "x" ? n : n & 3 | 8).toString(16);
|
|
1559
1573
|
});
|
|
1560
1574
|
}
|
|
1561
1575
|
function ee() {
|
|
1562
|
-
return
|
|
1576
|
+
return Lt().replace(/-/g, "");
|
|
1563
1577
|
}
|
|
1564
|
-
const te = "builderSessionId",
|
|
1578
|
+
const te = "builderSessionId", Mt = async ({ canTrack: e }) => {
|
|
1565
1579
|
if (!e)
|
|
1566
1580
|
return;
|
|
1567
|
-
const n = await
|
|
1581
|
+
const n = await G({
|
|
1568
1582
|
name: te,
|
|
1569
1583
|
canTrack: e
|
|
1570
1584
|
});
|
|
1571
|
-
if (
|
|
1585
|
+
if (I(n))
|
|
1572
1586
|
return n;
|
|
1573
1587
|
{
|
|
1574
|
-
const t =
|
|
1575
|
-
|
|
1588
|
+
const t = Nt();
|
|
1589
|
+
Ht({ id: t, canTrack: e });
|
|
1576
1590
|
}
|
|
1577
|
-
},
|
|
1591
|
+
}, Nt = () => ee(), Ht = ({
|
|
1578
1592
|
id: e,
|
|
1579
1593
|
canTrack: n
|
|
1580
|
-
}) =>
|
|
1594
|
+
}) => J({ name: te, value: e, canTrack: n }), ne = () => h() && typeof localStorage < "u" ? localStorage : void 0, zt = ({
|
|
1581
1595
|
key: e,
|
|
1582
1596
|
canTrack: n
|
|
1583
1597
|
}) => {
|
|
@@ -1587,7 +1601,7 @@ const te = "builderSessionId", Nt = async ({ canTrack: e }) => {
|
|
|
1587
1601
|
} catch (o) {
|
|
1588
1602
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1589
1603
|
}
|
|
1590
|
-
},
|
|
1604
|
+
}, qt = ({
|
|
1591
1605
|
key: e,
|
|
1592
1606
|
canTrack: n,
|
|
1593
1607
|
value: t
|
|
@@ -1598,37 +1612,37 @@ const te = "builderSessionId", Nt = async ({ canTrack: e }) => {
|
|
|
1598
1612
|
} catch (r) {
|
|
1599
1613
|
console.debug("[LocalStorage] SET error: ", r);
|
|
1600
1614
|
}
|
|
1601
|
-
}, oe = "builderVisitorId",
|
|
1615
|
+
}, oe = "builderVisitorId", Dt = ({ canTrack: e }) => {
|
|
1602
1616
|
if (!e)
|
|
1603
1617
|
return;
|
|
1604
|
-
const n =
|
|
1618
|
+
const n = zt({
|
|
1605
1619
|
key: oe,
|
|
1606
1620
|
canTrack: e
|
|
1607
1621
|
});
|
|
1608
|
-
if (
|
|
1622
|
+
if (I(n))
|
|
1609
1623
|
return n;
|
|
1610
1624
|
{
|
|
1611
|
-
const t =
|
|
1625
|
+
const t = Kt();
|
|
1612
1626
|
Gt({ id: t, canTrack: e });
|
|
1613
1627
|
}
|
|
1614
|
-
},
|
|
1628
|
+
}, Kt = () => ee(), Gt = ({
|
|
1615
1629
|
id: e,
|
|
1616
1630
|
canTrack: n
|
|
1617
|
-
}) =>
|
|
1631
|
+
}) => qt({
|
|
1618
1632
|
key: oe,
|
|
1619
1633
|
value: e,
|
|
1620
1634
|
canTrack: n
|
|
1621
|
-
}),
|
|
1635
|
+
}), Jt = async ({
|
|
1622
1636
|
canTrack: e
|
|
1623
1637
|
}) => {
|
|
1624
1638
|
if (!e)
|
|
1625
1639
|
return { visitorId: void 0, sessionId: void 0 };
|
|
1626
|
-
const n = await
|
|
1640
|
+
const n = await Mt({ canTrack: e }), t = Dt({ canTrack: e });
|
|
1627
1641
|
return {
|
|
1628
1642
|
sessionId: n,
|
|
1629
1643
|
visitorId: t
|
|
1630
1644
|
};
|
|
1631
|
-
},
|
|
1645
|
+
}, Yt = async ({
|
|
1632
1646
|
type: e,
|
|
1633
1647
|
canTrack: n,
|
|
1634
1648
|
orgId: t,
|
|
@@ -1638,7 +1652,7 @@ const te = "builderSessionId", Nt = async ({ canTrack: e }) => {
|
|
|
1638
1652
|
type: e,
|
|
1639
1653
|
data: {
|
|
1640
1654
|
...r,
|
|
1641
|
-
...await
|
|
1655
|
+
...await Jt({ canTrack: n }),
|
|
1642
1656
|
ownerId: t,
|
|
1643
1657
|
contentId: o
|
|
1644
1658
|
}
|
|
@@ -1648,7 +1662,7 @@ async function H(e) {
|
|
|
1648
1662
|
return fetch("https://builder.io/api/v1/track", {
|
|
1649
1663
|
method: "POST",
|
|
1650
1664
|
body: JSON.stringify({
|
|
1651
|
-
events: [await
|
|
1665
|
+
events: [await Yt(e)]
|
|
1652
1666
|
}),
|
|
1653
1667
|
headers: {
|
|
1654
1668
|
"content-type": "application/json"
|
|
@@ -1658,21 +1672,21 @@ async function H(e) {
|
|
|
1658
1672
|
console.error("Failed to track: ", n);
|
|
1659
1673
|
});
|
|
1660
1674
|
}
|
|
1661
|
-
const
|
|
1675
|
+
const Xt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((e) => {
|
|
1662
1676
|
throw console.error(
|
|
1663
1677
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
1664
1678
|
e
|
|
1665
1679
|
), e;
|
|
1666
|
-
}),
|
|
1680
|
+
}), Qt = () => import("./render-styles.9c635f29.js").then((e) => e.default).catch((e) => {
|
|
1667
1681
|
throw console.error(
|
|
1668
1682
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
1669
1683
|
e
|
|
1670
1684
|
), e;
|
|
1671
|
-
}),
|
|
1685
|
+
}), Zt = {
|
|
1672
1686
|
name: "render-content",
|
|
1673
1687
|
components: {
|
|
1674
|
-
|
|
1675
|
-
|
|
1688
|
+
RenderContentStyles: y(Qt),
|
|
1689
|
+
RenderBlocks: y(Xt)
|
|
1676
1690
|
},
|
|
1677
1691
|
props: [
|
|
1678
1692
|
"content",
|
|
@@ -1688,7 +1702,7 @@ const Qt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
1688
1702
|
overrideContent: null,
|
|
1689
1703
|
update: 0,
|
|
1690
1704
|
overrideState: {},
|
|
1691
|
-
markMutable:
|
|
1705
|
+
markMutable: A
|
|
1692
1706
|
}),
|
|
1693
1707
|
provide() {
|
|
1694
1708
|
const e = this;
|
|
@@ -1790,11 +1804,14 @@ const Qt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
1790
1804
|
},
|
|
1791
1805
|
allRegisteredComponents() {
|
|
1792
1806
|
return [
|
|
1793
|
-
|
|
1794
|
-
...
|
|
1807
|
+
...Vt(),
|
|
1808
|
+
...Z,
|
|
1795
1809
|
...this.customComponents || []
|
|
1796
1810
|
].reduce(
|
|
1797
|
-
(t, o) => ({
|
|
1811
|
+
(t, o) => ({
|
|
1812
|
+
...t,
|
|
1813
|
+
[o.name]: o
|
|
1814
|
+
}),
|
|
1798
1815
|
{}
|
|
1799
1816
|
);
|
|
1800
1817
|
},
|
|
@@ -1867,7 +1884,10 @@ const Qt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
1867
1884
|
},
|
|
1868
1885
|
handleRequest({ url: e, key: n }) {
|
|
1869
1886
|
K().then((t) => t(e)).then((t) => t.json()).then((t) => {
|
|
1870
|
-
const o = {
|
|
1887
|
+
const o = {
|
|
1888
|
+
...this.overrideState,
|
|
1889
|
+
[n]: t
|
|
1890
|
+
};
|
|
1871
1891
|
this.overrideState = o;
|
|
1872
1892
|
}).catch((t) => {
|
|
1873
1893
|
console.log("error fetching dynamic data", e, t);
|
|
@@ -1899,47 +1919,48 @@ const Qt = () => Promise.resolve().then(() => se).then((e) => e.default).catch((
|
|
|
1899
1919
|
);
|
|
1900
1920
|
}
|
|
1901
1921
|
}
|
|
1902
|
-
},
|
|
1903
|
-
function
|
|
1904
|
-
var i, u, m, p,
|
|
1922
|
+
}, en = ["builder-content-id", "builder-model"];
|
|
1923
|
+
function tn(e, n, t, o, r, s) {
|
|
1924
|
+
var i, u, m, p, k, O, B;
|
|
1905
1925
|
const a = v("render-content-styles"), c = v("render-blocks");
|
|
1906
1926
|
return s.useContent ? (l(), d("div", {
|
|
1907
1927
|
key: 0,
|
|
1908
1928
|
ref: "elementRef",
|
|
1909
1929
|
onClick: n[0] || (n[0] = (re) => s.onClick(re)),
|
|
1910
|
-
"builder-content-id": (i = s.useContent) == null ? void 0 : i.id
|
|
1930
|
+
"builder-content-id": (i = s.useContent) == null ? void 0 : i.id,
|
|
1931
|
+
"builder-model": t.model
|
|
1911
1932
|
}, [
|
|
1912
|
-
s.shouldRenderContentStyles ? (l(),
|
|
1933
|
+
s.shouldRenderContentStyles ? (l(), S(a, {
|
|
1913
1934
|
key: 0,
|
|
1914
1935
|
cssCode: (m = (u = s.useContent) == null ? void 0 : u.data) == null ? void 0 : m.cssCode,
|
|
1915
|
-
customFonts: (
|
|
1936
|
+
customFonts: (k = (p = s.useContent) == null ? void 0 : p.data) == null ? void 0 : k.customFonts
|
|
1916
1937
|
}, null, 8, ["cssCode", "customFonts"])) : b("", !0),
|
|
1917
|
-
(l(),
|
|
1918
|
-
blocks: e.markMutable((
|
|
1938
|
+
(l(), S(c, {
|
|
1939
|
+
blocks: e.markMutable((B = (O = s.useContent) == null ? void 0 : O.data) == null ? void 0 : B.blocks),
|
|
1919
1940
|
key: e.forceReRenderCount
|
|
1920
1941
|
}, null, 8, ["blocks"]))
|
|
1921
|
-
], 8,
|
|
1942
|
+
], 8, en)) : b("", !0);
|
|
1922
1943
|
}
|
|
1923
|
-
const
|
|
1944
|
+
const nn = /* @__PURE__ */ f(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1924
1945
|
__proto__: null,
|
|
1925
|
-
default:
|
|
1926
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1946
|
+
default: nn
|
|
1947
|
+
}, Symbol.toStringTag, { value: "Module" })), sn = () => import("./block-styles.a91eeb93.js").then((e) => e.default).catch((e) => {
|
|
1927
1948
|
throw console.error(
|
|
1928
1949
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
1929
1950
|
e
|
|
1930
1951
|
), e;
|
|
1931
|
-
}),
|
|
1952
|
+
}), rn = () => import("./render-block.425938f2.js").then((e) => e.default).catch((e) => {
|
|
1932
1953
|
throw console.error(
|
|
1933
1954
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
1934
1955
|
e
|
|
1935
1956
|
), e;
|
|
1936
|
-
}),
|
|
1957
|
+
}), an = {
|
|
1937
1958
|
name: "render-blocks",
|
|
1938
1959
|
components: {
|
|
1939
|
-
|
|
1940
|
-
|
|
1960
|
+
RenderBlock: y(rn),
|
|
1961
|
+
BlockStyles: y(sn)
|
|
1941
1962
|
},
|
|
1942
|
-
props: ["blocks", "parent", "path"],
|
|
1963
|
+
props: ["blocks", "parent", "path", "styleProp"],
|
|
1943
1964
|
inject: {
|
|
1944
1965
|
builderContext: "BuilderContext"
|
|
1945
1966
|
},
|
|
@@ -1987,36 +2008,37 @@ const on = /* @__PURE__ */ f(en, [["render", nn]]), sn = /* @__PURE__ */ Object.
|
|
|
1987
2008
|
}
|
|
1988
2009
|
}
|
|
1989
2010
|
};
|
|
1990
|
-
const
|
|
1991
|
-
function
|
|
2011
|
+
const cn = ["builder-path", "builder-parent-id", "dataSet"];
|
|
2012
|
+
function ln(e, n, t, o, r, s) {
|
|
1992
2013
|
const a = v("render-block"), c = v("block-styles");
|
|
1993
2014
|
return l(), d("div", {
|
|
1994
|
-
class: j(s._classStringToObject(s.className + " div-
|
|
2015
|
+
class: j(s._classStringToObject(s.className + " div-2oa2wtipkzk")),
|
|
1995
2016
|
"builder-path": t.path,
|
|
1996
2017
|
"builder-parent-id": t.parent,
|
|
1997
2018
|
dataSet: {
|
|
1998
2019
|
class: s.className
|
|
1999
2020
|
},
|
|
2021
|
+
style: _(t.styleProp),
|
|
2000
2022
|
onClick: n[0] || (n[0] = (i) => s.onClick()),
|
|
2001
2023
|
onMouseenter: n[1] || (n[1] = (i) => s.onMouseEnter())
|
|
2002
2024
|
}, [
|
|
2003
|
-
t.blocks ? (l(!0), d(
|
|
2025
|
+
t.blocks ? (l(!0), d(C, { key: 0 }, E(t.blocks, (i, u) => (l(), S(a, {
|
|
2004
2026
|
key: "render-block-" + i.id,
|
|
2005
2027
|
block: i,
|
|
2006
2028
|
context: s.builderContext
|
|
2007
2029
|
}, null, 8, ["block", "context"]))), 128)) : b("", !0),
|
|
2008
|
-
t.blocks ? (l(!0), d(
|
|
2030
|
+
t.blocks ? (l(!0), d(C, { key: 1 }, E(t.blocks, (i, u) => (l(), S(c, {
|
|
2009
2031
|
key: "block-style-" + i.id,
|
|
2010
2032
|
block: i,
|
|
2011
2033
|
context: s.builderContext
|
|
2012
2034
|
}, null, 8, ["block", "context"]))), 128)) : b("", !0)
|
|
2013
|
-
],
|
|
2035
|
+
], 46, cn);
|
|
2014
2036
|
}
|
|
2015
|
-
const
|
|
2037
|
+
const dn = /* @__PURE__ */ f(an, [["render", ln], ["__scopeId", "data-v-75c39314"]]), se = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2016
2038
|
__proto__: null,
|
|
2017
|
-
default:
|
|
2039
|
+
default: dn
|
|
2018
2040
|
}, Symbol.toStringTag, { value: "Module" })), z = {};
|
|
2019
|
-
function
|
|
2041
|
+
function hn(e) {
|
|
2020
2042
|
if (h()) {
|
|
2021
2043
|
Object.assign(z, e);
|
|
2022
2044
|
const n = {
|
|
@@ -2027,32 +2049,33 @@ function fn(e) {
|
|
|
2027
2049
|
}
|
|
2028
2050
|
}
|
|
2029
2051
|
export {
|
|
2030
|
-
|
|
2052
|
+
tt as B,
|
|
2031
2053
|
me as C,
|
|
2032
|
-
|
|
2054
|
+
it as F,
|
|
2033
2055
|
ke as I,
|
|
2034
|
-
|
|
2056
|
+
Xe as S,
|
|
2035
2057
|
U as T,
|
|
2036
|
-
|
|
2058
|
+
Ee as V,
|
|
2037
2059
|
f as _,
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2060
|
+
Se as a,
|
|
2061
|
+
st as b,
|
|
2062
|
+
dn as c,
|
|
2041
2063
|
Ot as d,
|
|
2042
2064
|
N as e,
|
|
2043
2065
|
Q as f,
|
|
2044
|
-
|
|
2045
|
-
|
|
2066
|
+
Z as g,
|
|
2067
|
+
pn as h,
|
|
2046
2068
|
g as i,
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2069
|
+
Bt as j,
|
|
2070
|
+
ae as k,
|
|
2071
|
+
X as l,
|
|
2072
|
+
mn as m,
|
|
2073
|
+
qe as n,
|
|
2074
|
+
De as o,
|
|
2075
|
+
Fe as p,
|
|
2076
|
+
je as q,
|
|
2077
|
+
nn as r,
|
|
2078
|
+
hn as s,
|
|
2079
|
+
Ue as t,
|
|
2080
|
+
D as u
|
|
2058
2081
|
};
|