@builder.io/sdk-vue 0.1.6 → 0.1.8
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.4b0c0560.js +69 -0
- package/packages/_vue2/dist/block-styles.7bec5cd1.cjs +1 -0
- package/packages/{_vue3/dist/get-processed-block.48c68f6b.js → _vue2/dist/get-processed-block.c75c2852.js} +1 -1
- package/packages/{_vue3/dist/get-processed-block.e6e75aca.cjs → _vue2/dist/get-processed-block.cf207900.cjs} +1 -1
- package/packages/_vue2/dist/index.c7f4d491.cjs +30 -0
- package/packages/_vue2/dist/{index.da42f753.js → index.dec756fc.js} +226 -210
- package/packages/_vue2/dist/render-block.52b9bfb5.cjs +3 -0
- package/packages/_vue2/dist/{render-block.49244064.js → render-block.bec02b6f.js} +109 -96
- package/packages/_vue2/dist/{render-component.3117c1fd.cjs → render-component.1e97315e.cjs} +1 -1
- package/packages/_vue2/dist/{render-component.42e82bc4.js → render-component.d5d82be4.js} +3 -3
- package/packages/_vue2/dist/{render-inlined-styles.5d055b0c.js → render-inlined-styles.32a11bb1.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.d7530652.cjs → render-inlined-styles.7d83a347.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.b4a9163a.cjs → render-repeated-block.7ff2fef4.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.bceba726.js → render-repeated-block.bb747825.js} +2 -2
- package/packages/_vue2/dist/{render-styles.0451ee0a.js → render-styles.2844231b.js} +2 -2
- package/packages/_vue2/dist/{render-styles.144e8a3e.cjs → render-styles.e2a9b12c.cjs} +2 -2
- 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 +10 -2
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +7 -0
- package/packages/_vue2/dist/src/components/render-block/block-styles.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +6 -0
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +6 -3
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +6 -0
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +7 -0
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +7 -0
- package/packages/_vue2/dist/src/types/builder-block.d.ts +8 -0
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/block-styles.2ded86d7.cjs +1 -0
- package/packages/_vue3/dist/block-styles.f9c554cb.js +66 -0
- package/packages/{_vue2/dist/get-processed-block.531fd2fb.cjs → _vue3/dist/get-processed-block.496ea0a2.cjs} +1 -1
- package/packages/{_vue2/dist/get-processed-block.aa4c9919.js → _vue3/dist/get-processed-block.885c1bd9.js} +1 -1
- package/packages/_vue3/dist/index.2aa53f88.cjs +30 -0
- package/packages/_vue3/dist/{index.8392057e.js → index.d8e8e5a6.js} +236 -220
- package/packages/_vue3/dist/{render-block.017ccb02.js → render-block.3f0e76cb.js} +87 -72
- package/packages/_vue3/dist/render-block.8383c9c9.cjs +3 -0
- package/packages/_vue3/dist/{render-component.626cb9a2.cjs → render-component.5674d138.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.5b79b1a2.js → render-component.942d8c45.js} +3 -3
- package/packages/_vue3/dist/{render-inlined-styles.ab30b262.cjs → render-inlined-styles.1a93ff69.cjs} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.0773feb1.js → render-inlined-styles.d2e5f785.js} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.09b2f47e.js → render-repeated-block.8caddcea.js} +2 -2
- package/packages/_vue3/dist/{render-repeated-block.802c4a21.cjs → render-repeated-block.d8bcc141.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.c79197c2.js → render-styles.43492acf.js} +2 -2
- package/packages/_vue3/dist/{render-styles.7e2d3639.cjs → render-styles.60e81530.cjs} +5 -5
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +3 -3
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +4 -2
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-block/block-styles.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +0 -3
- package/packages/_vue3/dist/src/components/render-blocks.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/types/builder-block.d.ts +8 -0
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.9b0be456.cjs +0 -1
- package/packages/_vue2/dist/block-styles.d0435c8f.js +0 -66
- package/packages/_vue2/dist/index.b431861b.cjs +0 -30
- package/packages/_vue2/dist/render-block.5d240071.cjs +0 -3
- package/packages/_vue3/dist/block-styles.05a01a8e.cjs +0 -1
- package/packages/_vue3/dist/block-styles.5fb6e927.js +0 -63
- package/packages/_vue3/dist/index.6275edf0.cjs +0 -30
- package/packages/_vue3/dist/render-block.f6f263a8.cjs +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { openBlock as d, createElementBlock as u, mergeProps as
|
|
1
|
+
import { openBlock as d, createElementBlock as u, mergeProps as C, toHandlers as w, toDisplayString as M, defineAsyncComponent as x, resolveComponent as k, normalizeClass as j, normalizeStyle as I, createBlock as T, createCommentVNode as b, Fragment as E, renderList as P, createVNode as Q, renderSlot as A, createElementVNode as $ } from "vue";
|
|
2
2
|
const R = "vue3";
|
|
3
3
|
function f() {
|
|
4
4
|
return typeof window < "u" && typeof document < "u";
|
|
@@ -64,17 +64,17 @@ const fe = (e = {}) => {
|
|
|
64
64
|
if (!!(o != null && o.type))
|
|
65
65
|
switch (o.type) {
|
|
66
66
|
case "builder.evaluate": {
|
|
67
|
-
const
|
|
67
|
+
const i = o.data.text, c = o.data.arguments || [], a = o.data.id, l = new Function(i);
|
|
68
68
|
let m, p = null;
|
|
69
69
|
try {
|
|
70
|
-
m = l.apply(null,
|
|
70
|
+
m = l.apply(null, c);
|
|
71
71
|
} catch (h) {
|
|
72
72
|
p = h;
|
|
73
73
|
}
|
|
74
74
|
p ? (r = window.parent) == null || r.postMessage(
|
|
75
75
|
{
|
|
76
76
|
type: "builder.evaluateError",
|
|
77
|
-
data: { id:
|
|
77
|
+
data: { id: a, error: p.message }
|
|
78
78
|
},
|
|
79
79
|
"*"
|
|
80
80
|
) : m && typeof m.then == "function" ? m.then((h) => {
|
|
@@ -82,14 +82,14 @@ const fe = (e = {}) => {
|
|
|
82
82
|
(v = window.parent) == null || v.postMessage(
|
|
83
83
|
{
|
|
84
84
|
type: "builder.evaluateResult",
|
|
85
|
-
data: { id:
|
|
85
|
+
data: { id: a, result: h }
|
|
86
86
|
},
|
|
87
87
|
"*"
|
|
88
88
|
);
|
|
89
89
|
}).catch(console.error) : (s = window.parent) == null || s.postMessage(
|
|
90
90
|
{
|
|
91
91
|
type: "builder.evaluateResult",
|
|
92
|
-
data: { result: m, id:
|
|
92
|
+
data: { result: m, id: a }
|
|
93
93
|
},
|
|
94
94
|
"*"
|
|
95
95
|
);
|
|
@@ -102,11 +102,14 @@ const fe = (e = {}) => {
|
|
|
102
102
|
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
103
103
|
methods: {
|
|
104
104
|
filterAttrs: function(n = {}, t) {
|
|
105
|
-
const o = "v-on:"
|
|
106
|
-
return Object.keys(n).filter(
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
105
|
+
const o = "v-on:";
|
|
106
|
+
return Object.keys(n).filter((r) => {
|
|
107
|
+
const s = r.startsWith(o);
|
|
108
|
+
return t ? s : !s;
|
|
109
|
+
}).reduce(
|
|
110
|
+
(r, s) => ({
|
|
111
|
+
...r,
|
|
112
|
+
[s.replace(o, "")]: n[s]
|
|
110
113
|
}),
|
|
111
114
|
{}
|
|
112
115
|
);
|
|
@@ -120,17 +123,17 @@ const g = (e, n) => {
|
|
|
120
123
|
return t;
|
|
121
124
|
}, be = ["href", "target"];
|
|
122
125
|
function ye(e, n, t, o, r, s) {
|
|
123
|
-
return t.link ? (d(), u("a",
|
|
126
|
+
return t.link ? (d(), u("a", C({
|
|
124
127
|
key: 0,
|
|
125
128
|
role: "button",
|
|
126
129
|
href: t.link,
|
|
127
130
|
target: t.openLinkInNewTab ? "_blank" : void 0
|
|
128
|
-
}, s.filterAttrs(t.attributes, !1), w(s.filterAttrs(t.attributes, !0), !0)), M(t.text), 17, be)) : (d(), u("button",
|
|
131
|
+
}, s.filterAttrs(t.attributes, !1), w(s.filterAttrs(t.attributes, !0), !0)), M(t.text), 17, be)) : (d(), u("button", C({
|
|
129
132
|
key: 1,
|
|
130
|
-
class: "button-
|
|
133
|
+
class: "button-1yj9n7yt24z"
|
|
131
134
|
}, s.filterAttrs(t.attributes, !1), w(s.filterAttrs(t.attributes, !0), !0)), M(t.text), 17));
|
|
132
135
|
}
|
|
133
|
-
const ve = /* @__PURE__ */ g(ge, [["render", ye], ["__scopeId", "data-v-
|
|
136
|
+
const ve = /* @__PURE__ */ g(ge, [["render", ye], ["__scopeId", "data-v-28c9cee7"]]), W = (e) => JSON.parse(JSON.stringify(e)), Z = {
|
|
134
137
|
small: {
|
|
135
138
|
min: 320,
|
|
136
139
|
default: 321,
|
|
@@ -146,8 +149,8 @@ const ve = /* @__PURE__ */ g(ge, [["render", ye], ["__scopeId", "data-v-465ad941
|
|
|
146
149
|
default: 991,
|
|
147
150
|
max: 1200
|
|
148
151
|
}
|
|
149
|
-
},
|
|
150
|
-
const t =
|
|
152
|
+
}, On = (e, n = Z) => `@media (max-width: ${n[e].max}px)`, xe = ({ small: e, medium: n }) => {
|
|
153
|
+
const t = W(Z);
|
|
151
154
|
if (!e || !n)
|
|
152
155
|
return t;
|
|
153
156
|
const o = Math.floor(e / 2);
|
|
@@ -171,32 +174,44 @@ const ve = /* @__PURE__ */ g(ge, [["render", ye], ["__scopeId", "data-v-465ad941
|
|
|
171
174
|
}, ke = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), S = (e) => e != null, Se = (e) => Object.entries(e).map(([t, o]) => {
|
|
172
175
|
if (typeof o == "string")
|
|
173
176
|
return `${ke(t)}: ${o};`;
|
|
174
|
-
}).filter(S),
|
|
175
|
-
`),
|
|
177
|
+
}).filter(S), _ = (e) => Se(e).join(`
|
|
178
|
+
`), Fn = ({
|
|
176
179
|
mediaQuery: e,
|
|
177
180
|
className: n,
|
|
178
181
|
styles: t
|
|
179
182
|
}) => {
|
|
180
183
|
const o = `.${n} {
|
|
181
|
-
${
|
|
184
|
+
${_(t)}
|
|
182
185
|
}`;
|
|
183
186
|
return e ? `${e} {
|
|
184
187
|
${o}
|
|
185
188
|
}` : o;
|
|
189
|
+
}, Ce = Symbol(), O = {
|
|
190
|
+
Builder: {
|
|
191
|
+
content: null,
|
|
192
|
+
context: {},
|
|
193
|
+
state: {},
|
|
194
|
+
setState() {
|
|
195
|
+
},
|
|
196
|
+
apiKey: null,
|
|
197
|
+
registeredComponents: {},
|
|
198
|
+
inheritedStyles: {}
|
|
199
|
+
},
|
|
200
|
+
key: Ce
|
|
186
201
|
}, _e = () => Promise.resolve().then(() => ee).then((e) => e.default).catch((e) => {
|
|
187
202
|
throw console.error(
|
|
188
203
|
"Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
|
|
189
204
|
e
|
|
190
205
|
), e;
|
|
191
|
-
}),
|
|
206
|
+
}), we = () => import("./render-inlined-styles.d2e5f785.js").then((e) => e.default).catch((e) => {
|
|
192
207
|
throw console.error(
|
|
193
208
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",
|
|
194
209
|
e
|
|
195
210
|
), e;
|
|
196
|
-
}),
|
|
211
|
+
}), Ie = {
|
|
197
212
|
name: "builder-columns",
|
|
198
213
|
components: {
|
|
199
|
-
RenderInlinedStyles: x(
|
|
214
|
+
RenderInlinedStyles: x(we),
|
|
200
215
|
RenderBlocks: x(_e)
|
|
201
216
|
},
|
|
202
217
|
props: [
|
|
@@ -204,12 +219,14 @@ const ve = /* @__PURE__ */ g(ge, [["render", ye], ["__scopeId", "data-v-465ad941
|
|
|
204
219
|
"columns",
|
|
205
220
|
"stackColumnsAt",
|
|
206
221
|
"reverseColumnsWhenStacked",
|
|
207
|
-
"customBreakpoints",
|
|
208
222
|
"builderBlock"
|
|
209
223
|
],
|
|
210
224
|
data() {
|
|
211
225
|
return { TARGET: R };
|
|
212
226
|
},
|
|
227
|
+
inject: {
|
|
228
|
+
builderContext: O.key
|
|
229
|
+
},
|
|
213
230
|
computed: {
|
|
214
231
|
columnsCssVars() {
|
|
215
232
|
const e = this.stackColumnsAt === "never" ? "inherit" : this.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -255,21 +272,21 @@ const ve = /* @__PURE__ */ g(ge, [["render", ye], ["__scopeId", "data-v-465ad941
|
|
|
255
272
|
return `
|
|
256
273
|
@media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
|
|
257
274
|
.${this.builderBlock.id}-breakpoints {
|
|
258
|
-
${
|
|
275
|
+
${_(this.columnStyleObjects.columns.medium)}
|
|
259
276
|
}
|
|
260
277
|
|
|
261
278
|
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
262
|
-
${
|
|
279
|
+
${_(this.columnStyleObjects.column.medium)}
|
|
263
280
|
}
|
|
264
281
|
}
|
|
265
282
|
|
|
266
283
|
@media (max-width: ${this.getWidthForBreakpointSize("small")}px) {
|
|
267
284
|
.${this.builderBlock.id}-breakpoints {
|
|
268
|
-
${
|
|
285
|
+
${_(this.columnStyleObjects.columns.small)}
|
|
269
286
|
}
|
|
270
287
|
|
|
271
288
|
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
272
|
-
${
|
|
289
|
+
${_(this.columnStyleObjects.column.small)}
|
|
273
290
|
}
|
|
274
291
|
},
|
|
275
292
|
`;
|
|
@@ -301,8 +318,9 @@ const ve = /* @__PURE__ */ g(ge, [["render", ye], ["__scopeId", "data-v-465ad941
|
|
|
301
318
|
return (this.stackColumnsAt || "tablet") === "tablet" ? e : "inherit";
|
|
302
319
|
},
|
|
303
320
|
getWidthForBreakpointSize(e) {
|
|
321
|
+
var t, o;
|
|
304
322
|
return xe(
|
|
305
|
-
this.
|
|
323
|
+
((o = (t = this.builderContext.content) == null ? void 0 : t.meta) == null ? void 0 : o.breakpoints) || {}
|
|
306
324
|
)[e].max;
|
|
307
325
|
},
|
|
308
326
|
_classStringToObject(e) {
|
|
@@ -316,12 +334,12 @@ const ve = /* @__PURE__ */ g(ge, [["render", ye], ["__scopeId", "data-v-465ad941
|
|
|
316
334
|
}
|
|
317
335
|
}
|
|
318
336
|
};
|
|
319
|
-
function
|
|
320
|
-
const
|
|
337
|
+
function Te(e, n, t, o, r, s) {
|
|
338
|
+
const i = k("render-inlined-styles"), c = k("render-blocks");
|
|
321
339
|
return d(), u("div", {
|
|
322
340
|
class: j(
|
|
323
341
|
s._classStringToObject(
|
|
324
|
-
`builder-columns ${t.builderBlock.id}-breakpoints div-
|
|
342
|
+
`builder-columns ${t.builderBlock.id}-breakpoints div-361b1o6wv2k`
|
|
325
343
|
)
|
|
326
344
|
),
|
|
327
345
|
style: I({
|
|
@@ -329,13 +347,13 @@ function Ie(e, n, t, o, r, s) {
|
|
|
329
347
|
...s.columnsCssVars
|
|
330
348
|
})
|
|
331
349
|
}, [
|
|
332
|
-
r.TARGET !== "reactNative" ? (d(), T(
|
|
350
|
+
r.TARGET !== "reactNative" ? (d(), T(i, {
|
|
333
351
|
key: 0,
|
|
334
352
|
styles: s.columnsStyles
|
|
335
353
|
}, null, 8, ["styles"])) : b("", !0),
|
|
336
|
-
(d(!0), u(E, null,
|
|
354
|
+
(d(!0), u(E, null, P(t.columns, (a, l) => (d(), u("div", {
|
|
337
355
|
key: l,
|
|
338
|
-
class: "builder-column div-
|
|
356
|
+
class: "builder-column div-361b1o6wv2k-2",
|
|
339
357
|
style: I({
|
|
340
358
|
width: s.getColumnCssWidth(l),
|
|
341
359
|
marginLeft: `${l === 0 ? 0 : s.getGutterSize()}px`,
|
|
@@ -343,8 +361,8 @@ function Ie(e, n, t, o, r, s) {
|
|
|
343
361
|
...s.columnCssVars
|
|
344
362
|
})
|
|
345
363
|
}, [
|
|
346
|
-
Q(
|
|
347
|
-
blocks:
|
|
364
|
+
Q(c, {
|
|
365
|
+
blocks: a.blocks,
|
|
348
366
|
path: `component.options.columns.${l}.blocks`,
|
|
349
367
|
parent: t.builderBlock.id,
|
|
350
368
|
styleProp: {
|
|
@@ -354,24 +372,24 @@ function Ie(e, n, t, o, r, s) {
|
|
|
354
372
|
], 4))), 128))
|
|
355
373
|
], 6);
|
|
356
374
|
}
|
|
357
|
-
const
|
|
375
|
+
const Re = /* @__PURE__ */ g(Ie, [["render", Te], ["__scopeId", "data-v-64d36a32"]]), Ee = {
|
|
358
376
|
name: "builder-fragment-component",
|
|
359
377
|
props: []
|
|
360
378
|
};
|
|
361
|
-
function
|
|
379
|
+
function Ae(e, n, t, o, r, s) {
|
|
362
380
|
return d(), u("span", null, [
|
|
363
381
|
A(e.$slots, "default")
|
|
364
382
|
]);
|
|
365
383
|
}
|
|
366
|
-
const
|
|
384
|
+
const je = /* @__PURE__ */ g(Ee, [["render", Ae]]);
|
|
367
385
|
function H(e) {
|
|
368
386
|
return e.replace(/http(s)?:/, "");
|
|
369
387
|
}
|
|
370
|
-
function
|
|
388
|
+
function Oe(e = "", n, t) {
|
|
371
389
|
const o = new RegExp("([?&])" + n + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
372
390
|
return e.match(o) ? e.replace(o, "$1" + n + "=" + encodeURIComponent(t) + "$2") : e + r + n + "=" + encodeURIComponent(t);
|
|
373
391
|
}
|
|
374
|
-
function
|
|
392
|
+
function Fe(e, n) {
|
|
375
393
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !n)
|
|
376
394
|
return e;
|
|
377
395
|
if (n === "master")
|
|
@@ -385,18 +403,18 @@ function Pe(e, n) {
|
|
|
385
403
|
}
|
|
386
404
|
return null;
|
|
387
405
|
}
|
|
388
|
-
function
|
|
406
|
+
function B(e) {
|
|
389
407
|
if (!e)
|
|
390
408
|
return e;
|
|
391
409
|
const n = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
392
410
|
if (e.match(/builder\.io/)) {
|
|
393
411
|
let t = e;
|
|
394
412
|
const o = Number(e.split("?width=")[1]);
|
|
395
|
-
return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${
|
|
413
|
+
return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${Oe(e, "width", r)} ${r}w`).concat([t]).join(", ");
|
|
396
414
|
}
|
|
397
|
-
return e.match(/cdn\.shopify\.com/) ? n.map((t) => [
|
|
415
|
+
return e.match(/cdn\.shopify\.com/) ? n.map((t) => [Fe(e, `${t}x${t}`), t]).filter(([t]) => !!t).map(([t, o]) => `${t} ${o}w`).concat([e]).join(", ") : e;
|
|
398
416
|
}
|
|
399
|
-
const
|
|
417
|
+
const Be = {
|
|
400
418
|
name: "builder-image",
|
|
401
419
|
props: [
|
|
402
420
|
"image",
|
|
@@ -420,10 +438,10 @@ const Oe = {
|
|
|
420
438
|
return this.srcset;
|
|
421
439
|
if (this.srcset && ((t = this.image) == null ? void 0 : t.includes("builder.io/api/v1/image"))) {
|
|
422
440
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
423
|
-
return console.debug("Removed given srcset"),
|
|
441
|
+
return console.debug("Removed given srcset"), B(n);
|
|
424
442
|
} else if (this.image && !this.srcset)
|
|
425
|
-
return
|
|
426
|
-
return
|
|
443
|
+
return B(n);
|
|
444
|
+
return B(n);
|
|
427
445
|
},
|
|
428
446
|
webpSrcSet() {
|
|
429
447
|
var e;
|
|
@@ -452,19 +470,19 @@ const Oe = {
|
|
|
452
470
|
}
|
|
453
471
|
}
|
|
454
472
|
};
|
|
455
|
-
const
|
|
473
|
+
const Pe = ["srcset"], Ve = ["alt", "role", "src", "srcset", "sizes"], Ue = {
|
|
456
474
|
key: 2,
|
|
457
|
-
class: "div-
|
|
475
|
+
class: "div-7jvpanrlkn-2"
|
|
458
476
|
};
|
|
459
|
-
function
|
|
460
|
-
var
|
|
477
|
+
function We(e, n, t, o, r, s) {
|
|
478
|
+
var i, c, a, l;
|
|
461
479
|
return d(), u(E, null, [
|
|
462
480
|
$("picture", null, [
|
|
463
481
|
s.webpSrcSet ? (d(), u("source", {
|
|
464
482
|
key: 0,
|
|
465
483
|
type: "image/webp",
|
|
466
484
|
srcset: s.webpSrcSet
|
|
467
|
-
}, null, 8,
|
|
485
|
+
}, null, 8, Pe)) : b("", !0),
|
|
468
486
|
$("img", {
|
|
469
487
|
loading: "lazy",
|
|
470
488
|
alt: t.altText,
|
|
@@ -476,52 +494,40 @@ function Ve(e, n, t, o, r, s) {
|
|
|
476
494
|
}),
|
|
477
495
|
class: j(
|
|
478
496
|
s._classStringToObject(
|
|
479
|
-
"builder-image" + (t.className ? " " + t.className : "") + " img-
|
|
497
|
+
"builder-image" + (t.className ? " " + t.className : "") + " img-7jvpanrlkn"
|
|
480
498
|
)
|
|
481
499
|
),
|
|
482
500
|
src: t.image,
|
|
483
501
|
srcset: s.srcSetToUse,
|
|
484
502
|
sizes: t.sizes
|
|
485
|
-
}, null, 14,
|
|
503
|
+
}, null, 14, Ve)
|
|
486
504
|
]),
|
|
487
|
-
t.aspectRatio && !(((
|
|
505
|
+
t.aspectRatio && !(((c = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : c.length) && t.fitContent) ? (d(), u("div", {
|
|
488
506
|
key: 0,
|
|
489
|
-
class: "builder-image-sizer div-
|
|
507
|
+
class: "builder-image-sizer div-7jvpanrlkn",
|
|
490
508
|
style: I({
|
|
491
509
|
paddingTop: t.aspectRatio * 100 + "%"
|
|
492
510
|
})
|
|
493
511
|
}, null, 4)) : b("", !0),
|
|
494
|
-
((l = (
|
|
512
|
+
((l = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : l.length) && t.fitContent ? A(e.$slots, "default", { key: 1 }, void 0, !0) : b("", !0),
|
|
495
513
|
!t.fitContent && e.children ? (d(), u("div", Ue, [
|
|
496
514
|
A(e.$slots, "default", {}, void 0, !0)
|
|
497
515
|
])) : b("", !0)
|
|
498
516
|
], 64);
|
|
499
517
|
}
|
|
500
|
-
const
|
|
501
|
-
|
|
502
|
-
content: null,
|
|
503
|
-
context: {},
|
|
504
|
-
state: {},
|
|
505
|
-
setState() {
|
|
506
|
-
},
|
|
507
|
-
apiKey: null,
|
|
508
|
-
registeredComponents: {},
|
|
509
|
-
inheritedStyles: {}
|
|
510
|
-
},
|
|
511
|
-
key: Ne
|
|
512
|
-
};
|
|
513
|
-
function Le() {
|
|
518
|
+
const Le = /* @__PURE__ */ g(Be, [["render", We], ["__scopeId", "data-v-22833d9f"]]);
|
|
519
|
+
function Ne() {
|
|
514
520
|
return f() && window.self !== window.top;
|
|
515
521
|
}
|
|
516
522
|
function y() {
|
|
517
|
-
return
|
|
523
|
+
return Ne() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
518
524
|
}
|
|
519
|
-
const Me = () => import("./block-styles.
|
|
525
|
+
const Me = () => import("./block-styles.f9c554cb.js").then((e) => e.default).catch((e) => {
|
|
520
526
|
throw console.error(
|
|
521
527
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
522
528
|
e
|
|
523
529
|
), e;
|
|
524
|
-
}), $e = () => import("./render-block.
|
|
530
|
+
}), $e = () => import("./render-block.3f0e76cb.js").then((e) => e.default).catch((e) => {
|
|
525
531
|
throw console.error(
|
|
526
532
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
527
533
|
e
|
|
@@ -534,7 +540,7 @@ const Me = () => import("./block-styles.5fb6e927.js").then((e) => e.default).cat
|
|
|
534
540
|
},
|
|
535
541
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
536
542
|
inject: {
|
|
537
|
-
builderContext:
|
|
543
|
+
builderContext: O.key
|
|
538
544
|
},
|
|
539
545
|
computed: {
|
|
540
546
|
className() {
|
|
@@ -582,31 +588,31 @@ const Me = () => import("./block-styles.5fb6e927.js").then((e) => e.default).cat
|
|
|
582
588
|
};
|
|
583
589
|
const Ke = ["builder-path", "builder-parent-id", "dataSet"];
|
|
584
590
|
function He(e, n, t, o, r, s) {
|
|
585
|
-
const
|
|
591
|
+
const i = k("render-block"), c = k("block-styles");
|
|
586
592
|
return d(), u("div", {
|
|
587
|
-
class: j(s._classStringToObject(s.className + " div-
|
|
593
|
+
class: j(s._classStringToObject(s.className + " div-2oa2wtipkzk")),
|
|
588
594
|
"builder-path": t.path,
|
|
589
595
|
"builder-parent-id": t.parent,
|
|
590
596
|
dataSet: {
|
|
591
597
|
class: s.className
|
|
592
598
|
},
|
|
593
599
|
style: I(t.styleProp),
|
|
594
|
-
onClick: n[0] || (n[0] = (
|
|
595
|
-
onMouseenter: n[1] || (n[1] = (
|
|
600
|
+
onClick: n[0] || (n[0] = (a) => s.onClick()),
|
|
601
|
+
onMouseenter: n[1] || (n[1] = (a) => s.onMouseEnter())
|
|
596
602
|
}, [
|
|
597
|
-
t.blocks ? (d(!0), u(E, { key: 0 },
|
|
598
|
-
key: "render-block-" +
|
|
599
|
-
block:
|
|
603
|
+
t.blocks ? (d(!0), u(E, { key: 0 }, P(t.blocks, (a, l) => (d(), T(i, {
|
|
604
|
+
key: "render-block-" + a.id,
|
|
605
|
+
block: a,
|
|
600
606
|
context: s.builderContext
|
|
601
607
|
}, null, 8, ["block", "context"]))), 128)) : b("", !0),
|
|
602
|
-
t.blocks ? (d(!0), u(E, { key: 1 },
|
|
603
|
-
key: "block-style-" +
|
|
604
|
-
block:
|
|
608
|
+
t.blocks ? (d(!0), u(E, { key: 1 }, P(t.blocks, (a, l) => (d(), T(c, {
|
|
609
|
+
key: "block-style-" + a.id,
|
|
610
|
+
block: a,
|
|
605
611
|
context: s.builderContext
|
|
606
612
|
}, null, 8, ["block", "context"]))), 128)) : b("", !0)
|
|
607
613
|
], 46, Ke);
|
|
608
614
|
}
|
|
609
|
-
const De = /* @__PURE__ */ g(ze, [["render", He], ["__scopeId", "data-v-
|
|
615
|
+
const De = /* @__PURE__ */ g(ze, [["render", He], ["__scopeId", "data-v-0924b77d"]]), ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
610
616
|
__proto__: null,
|
|
611
617
|
default: De
|
|
612
618
|
}, Symbol.toStringTag, { value: "Module" })), qe = {
|
|
@@ -645,7 +651,7 @@ const De = /* @__PURE__ */ g(ze, [["render", He], ["__scopeId", "data-v-b5395d79
|
|
|
645
651
|
],
|
|
646
652
|
static: !0,
|
|
647
653
|
noWrap: !0
|
|
648
|
-
},
|
|
654
|
+
}, F = (e) => {
|
|
649
655
|
const n = e.toString().trim();
|
|
650
656
|
return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
|
|
651
657
|
}, Ge = {
|
|
@@ -835,7 +841,7 @@ const De = /* @__PURE__ */ g(ze, [["render", He], ["__scopeId", "data-v-b5395d79
|
|
|
835
841
|
]
|
|
836
842
|
}
|
|
837
843
|
],
|
|
838
|
-
onChange:
|
|
844
|
+
onChange: F((e) => {
|
|
839
845
|
function n() {
|
|
840
846
|
t.forEach((o) => {
|
|
841
847
|
o.delete("width");
|
|
@@ -846,7 +852,7 @@ const De = /* @__PURE__ */ g(ze, [["render", He], ["__scopeId", "data-v-b5395d79
|
|
|
846
852
|
(r) => r.get("width")
|
|
847
853
|
) && (!!t.find(
|
|
848
854
|
(s) => !s.get("width")
|
|
849
|
-
) || t.reduce((
|
|
855
|
+
) || t.reduce((c, a) => c + a.get("width"), 0) !== 100) && n();
|
|
850
856
|
})
|
|
851
857
|
},
|
|
852
858
|
{
|
|
@@ -897,32 +903,32 @@ const De = /* @__PURE__ */ g(ze, [["render", He], ["__scopeId", "data-v-b5395d79
|
|
|
897
903
|
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
898
904
|
required: !0,
|
|
899
905
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
900
|
-
onChange:
|
|
906
|
+
onChange: F(
|
|
901
907
|
(e) => {
|
|
902
908
|
e.delete("srcset"), e.delete("noWebp");
|
|
903
|
-
function t(
|
|
904
|
-
return new Promise((
|
|
909
|
+
function t(i, c = 6e4) {
|
|
910
|
+
return new Promise((a, l) => {
|
|
905
911
|
const m = document.createElement("img");
|
|
906
912
|
let p = !1;
|
|
907
913
|
m.onload = () => {
|
|
908
|
-
p = !0,
|
|
914
|
+
p = !0, a(m);
|
|
909
915
|
}, m.addEventListener("error", (h) => {
|
|
910
916
|
console.warn("Image load failed", h.error), l(h.error);
|
|
911
|
-
}), m.src =
|
|
917
|
+
}), m.src = i, setTimeout(() => {
|
|
912
918
|
p || l(new Error("Image load timed out"));
|
|
913
|
-
},
|
|
919
|
+
}, c);
|
|
914
920
|
});
|
|
915
921
|
}
|
|
916
|
-
function o(
|
|
917
|
-
return Math.round(
|
|
922
|
+
function o(i) {
|
|
923
|
+
return Math.round(i * 1e3) / 1e3;
|
|
918
924
|
}
|
|
919
925
|
const r = e.get("image"), s = e.get("aspectRatio");
|
|
920
|
-
if (fetch(r).then((
|
|
921
|
-
|
|
926
|
+
if (fetch(r).then((i) => i.blob()).then((i) => {
|
|
927
|
+
i.type.includes("svg") && e.set("noWebp", !0);
|
|
922
928
|
}), r && (!s || s === 0.7041))
|
|
923
|
-
return t(r).then((
|
|
924
|
-
const
|
|
925
|
-
e.get("image") === r && (!
|
|
929
|
+
return t(r).then((i) => {
|
|
930
|
+
const c = e.get("aspectRatio");
|
|
931
|
+
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));
|
|
926
932
|
});
|
|
927
933
|
}
|
|
928
934
|
)
|
|
@@ -1054,11 +1060,14 @@ const De = /* @__PURE__ */ g(ze, [["render", He], ["__scopeId", "data-v-b5395d79
|
|
|
1054
1060
|
props: ["maxWidth", "attributes"],
|
|
1055
1061
|
methods: {
|
|
1056
1062
|
filterAttrs: function(n = {}, t) {
|
|
1057
|
-
const o = "v-on:"
|
|
1058
|
-
return Object.keys(n).filter(
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1063
|
+
const o = "v-on:";
|
|
1064
|
+
return Object.keys(n).filter((r) => {
|
|
1065
|
+
const s = r.startsWith(o);
|
|
1066
|
+
return t ? s : !s;
|
|
1067
|
+
}).reduce(
|
|
1068
|
+
(r, s) => ({
|
|
1069
|
+
...r,
|
|
1070
|
+
[s.replace(o, "")]: n[s]
|
|
1062
1071
|
}),
|
|
1063
1072
|
{}
|
|
1064
1073
|
);
|
|
@@ -1066,7 +1075,7 @@ const De = /* @__PURE__ */ g(ze, [["render", He], ["__scopeId", "data-v-b5395d79
|
|
|
1066
1075
|
}
|
|
1067
1076
|
};
|
|
1068
1077
|
function Ze(e, n, t, o, r, s) {
|
|
1069
|
-
return d(), u("section",
|
|
1078
|
+
return d(), u("section", C({
|
|
1070
1079
|
style: {
|
|
1071
1080
|
width: "100%",
|
|
1072
1081
|
alignSelf: "stretch",
|
|
@@ -1158,14 +1167,14 @@ const te = ot(), st = (e) => {
|
|
|
1158
1167
|
value: n,
|
|
1159
1168
|
expires: t
|
|
1160
1169
|
}) => {
|
|
1161
|
-
const r = (f() ? location.protocol === "https:" : !0) ? it : [[]], s = t ? [["expires", t.toUTCString()]] : [[]],
|
|
1170
|
+
const r = (f() ? location.protocol === "https:" : !0) ? it : [[]], s = t ? [["expires", t.toUTCString()]] : [[]], i = [
|
|
1162
1171
|
[e, n],
|
|
1163
1172
|
...s,
|
|
1164
1173
|
["path", "/"],
|
|
1165
1174
|
["domain", st(window.location.hostname)],
|
|
1166
1175
|
...r
|
|
1167
1176
|
];
|
|
1168
|
-
return rt(
|
|
1177
|
+
return rt(i);
|
|
1169
1178
|
}, oe = async ({
|
|
1170
1179
|
name: e,
|
|
1171
1180
|
value: n,
|
|
@@ -1243,14 +1252,14 @@ const te = ot(), st = (e) => {
|
|
|
1243
1252
|
const t = await pt({ item: e, canTrack: n });
|
|
1244
1253
|
Object.assign(e, t);
|
|
1245
1254
|
};
|
|
1246
|
-
function
|
|
1255
|
+
function V(e, n = null, t = ".") {
|
|
1247
1256
|
return Object.keys(e).reduce((o, r) => {
|
|
1248
|
-
const s = e[r],
|
|
1257
|
+
const s = e[r], i = [n, r].filter(Boolean).join(t);
|
|
1249
1258
|
return [
|
|
1250
1259
|
typeof s == "object",
|
|
1251
1260
|
s !== null,
|
|
1252
1261
|
!(Array.isArray(s) && s.length === 0)
|
|
1253
|
-
].every(Boolean) ? { ...o, ...
|
|
1262
|
+
].every(Boolean) ? { ...o, ...V(s, i, t) } : { ...o, [i]: s };
|
|
1254
1263
|
}, {});
|
|
1255
1264
|
}
|
|
1256
1265
|
const q = "builder.", ft = "options.", gt = (e) => {
|
|
@@ -1280,22 +1289,22 @@ const q = "builder.", ft = "options.", gt = (e) => {
|
|
|
1280
1289
|
query: o,
|
|
1281
1290
|
noTraverse: r = !1,
|
|
1282
1291
|
model: s,
|
|
1283
|
-
apiKey:
|
|
1284
|
-
includeRefs:
|
|
1285
|
-
locale:
|
|
1292
|
+
apiKey: i,
|
|
1293
|
+
includeRefs: c = !0,
|
|
1294
|
+
locale: a
|
|
1286
1295
|
} = e;
|
|
1287
|
-
if (!
|
|
1296
|
+
if (!i)
|
|
1288
1297
|
throw new Error("Missing API key");
|
|
1289
1298
|
const l = new URL(
|
|
1290
|
-
`https://cdn.builder.io/api/v2/content/${s}?apiKey=${
|
|
1299
|
+
`https://cdn.builder.io/api/v2/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${r}&includeRefs=${c}${a ? `&locale=${a}` : ""}`
|
|
1291
1300
|
), m = {
|
|
1292
1301
|
...yt(),
|
|
1293
1302
|
...re(e.options || {})
|
|
1294
|
-
}, p =
|
|
1303
|
+
}, p = V(m);
|
|
1295
1304
|
for (const h in p)
|
|
1296
1305
|
l.searchParams.set(h, String(p[h]));
|
|
1297
1306
|
if (t && l.searchParams.set("userAttributes", JSON.stringify(t)), o) {
|
|
1298
|
-
const h =
|
|
1307
|
+
const h = V({ query: o });
|
|
1299
1308
|
for (const v in h)
|
|
1300
1309
|
l.searchParams.set(v, JSON.stringify(h[v]));
|
|
1301
1310
|
}
|
|
@@ -1324,7 +1333,7 @@ const kt = () => Promise.resolve().then(() => An).then((e) => e.default).catch((
|
|
|
1324
1333
|
return { fetchedContent: null };
|
|
1325
1334
|
},
|
|
1326
1335
|
inject: {
|
|
1327
|
-
builderContext:
|
|
1336
|
+
builderContext: O.key
|
|
1328
1337
|
},
|
|
1329
1338
|
watch: {
|
|
1330
1339
|
onUpdateHook0: {
|
|
@@ -1367,11 +1376,14 @@ const kt = () => Promise.resolve().then(() => An).then((e) => e.default).catch((
|
|
|
1367
1376
|
},
|
|
1368
1377
|
methods: {
|
|
1369
1378
|
filterAttrs: function(n = {}, t) {
|
|
1370
|
-
const o = "v-on:"
|
|
1371
|
-
return Object.keys(n).filter(
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1379
|
+
const o = "v-on:";
|
|
1380
|
+
return Object.keys(n).filter((r) => {
|
|
1381
|
+
const s = r.startsWith(o);
|
|
1382
|
+
return t ? s : !s;
|
|
1383
|
+
}).reduce(
|
|
1384
|
+
(r, s) => ({
|
|
1385
|
+
...r,
|
|
1386
|
+
[s.replace(o, "")]: n[s]
|
|
1375
1387
|
}),
|
|
1376
1388
|
{}
|
|
1377
1389
|
);
|
|
@@ -1386,31 +1398,31 @@ const kt = () => Promise.resolve().then(() => An).then((e) => e.default).catch((
|
|
|
1386
1398
|
return n;
|
|
1387
1399
|
}
|
|
1388
1400
|
}
|
|
1389
|
-
},
|
|
1390
|
-
function
|
|
1391
|
-
var
|
|
1392
|
-
const
|
|
1393
|
-
return d(), u("div",
|
|
1401
|
+
}, Ct = ["dataSet"];
|
|
1402
|
+
function _t(e, n, t, o, r, s) {
|
|
1403
|
+
var c, a, l, m, p;
|
|
1404
|
+
const i = k("render-content");
|
|
1405
|
+
return d(), u("div", C({
|
|
1394
1406
|
dataSet: {
|
|
1395
1407
|
class: s.className
|
|
1396
1408
|
},
|
|
1397
1409
|
class: s._classStringToObject(s.className)
|
|
1398
1410
|
}, s.filterAttrs(t.attributes, !1), w(s.filterAttrs(t.attributes, !0), !0)), [
|
|
1399
|
-
Q(
|
|
1411
|
+
Q(i, {
|
|
1400
1412
|
apiKey: s.builderContext.apiKey,
|
|
1401
1413
|
context: s.builderContext.context,
|
|
1402
1414
|
customComponents: Object.values(s.builderContext.registeredComponents),
|
|
1403
1415
|
data: {
|
|
1404
|
-
...(
|
|
1416
|
+
...(c = t.symbol) == null ? void 0 : c.data,
|
|
1405
1417
|
...s.builderContext.state,
|
|
1406
|
-
...(m = (l = (
|
|
1418
|
+
...(m = (l = (a = t.symbol) == null ? void 0 : a.content) == null ? void 0 : l.data) == null ? void 0 : m.state
|
|
1407
1419
|
},
|
|
1408
1420
|
model: (p = t.symbol) == null ? void 0 : p.model,
|
|
1409
1421
|
content: s.contentToUse
|
|
1410
1422
|
}, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
|
|
1411
|
-
], 16,
|
|
1423
|
+
], 16, Ct);
|
|
1412
1424
|
}
|
|
1413
|
-
const wt = /* @__PURE__ */ g(St, [["render",
|
|
1425
|
+
const wt = /* @__PURE__ */ g(St, [["render", _t]]), It = {
|
|
1414
1426
|
name: "Text",
|
|
1415
1427
|
static: !0,
|
|
1416
1428
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-text_fields-24px%20(1).svg?alt=media&token=12177b73-0ee3-42ca-98c6-0dd003de1929",
|
|
@@ -1540,7 +1552,7 @@ const At = /* @__PURE__ */ g(Tt, [["render", Et]]), jt = {
|
|
|
1540
1552
|
advanced: !0
|
|
1541
1553
|
}
|
|
1542
1554
|
]
|
|
1543
|
-
},
|
|
1555
|
+
}, Ot = {
|
|
1544
1556
|
name: "builder-video",
|
|
1545
1557
|
props: [
|
|
1546
1558
|
"autoPlay",
|
|
@@ -1581,23 +1593,23 @@ const At = /* @__PURE__ */ g(Tt, [["render", Et]]), jt = {
|
|
|
1581
1593
|
};
|
|
1582
1594
|
}
|
|
1583
1595
|
}
|
|
1584
|
-
},
|
|
1585
|
-
function
|
|
1586
|
-
var
|
|
1587
|
-
return d(), u("video",
|
|
1596
|
+
}, Ft = ["src", "poster"];
|
|
1597
|
+
function Bt(e, n, t, o, r, s) {
|
|
1598
|
+
var i;
|
|
1599
|
+
return d(), u("video", C({
|
|
1588
1600
|
style: {
|
|
1589
1601
|
width: "100%",
|
|
1590
1602
|
height: "100%",
|
|
1591
|
-
...(
|
|
1603
|
+
...(i = t.attributes) == null ? void 0 : i.style,
|
|
1592
1604
|
objectFit: t.fit,
|
|
1593
1605
|
objectPosition: t.position,
|
|
1594
1606
|
borderRadius: 1
|
|
1595
1607
|
},
|
|
1596
1608
|
src: t.video || "no-src",
|
|
1597
1609
|
poster: t.posterImage
|
|
1598
|
-
}, s.spreadProps), null, 16,
|
|
1610
|
+
}, s.spreadProps), null, 16, Ft);
|
|
1599
1611
|
}
|
|
1600
|
-
const
|
|
1612
|
+
const Pt = /* @__PURE__ */ g(Ot, [["render", Bt]]), Vt = {
|
|
1601
1613
|
name: "Embed",
|
|
1602
1614
|
static: !0,
|
|
1603
1615
|
inputs: [
|
|
@@ -1607,7 +1619,7 @@ const Bt = /* @__PURE__ */ g(Pt, [["render", Ft]]), Ut = {
|
|
|
1607
1619
|
required: !0,
|
|
1608
1620
|
defaultValue: "",
|
|
1609
1621
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1610
|
-
onChange:
|
|
1622
|
+
onChange: F(
|
|
1611
1623
|
(e) => {
|
|
1612
1624
|
const n = e.get("url");
|
|
1613
1625
|
if (n)
|
|
@@ -1632,11 +1644,11 @@ const Bt = /* @__PURE__ */ g(Pt, [["render", Ft]]), Ut = {
|
|
|
1632
1644
|
hideFromUI: !0
|
|
1633
1645
|
}
|
|
1634
1646
|
]
|
|
1635
|
-
},
|
|
1647
|
+
}, Ut = [
|
|
1636
1648
|
"text/javascript",
|
|
1637
1649
|
"application/javascript",
|
|
1638
1650
|
"application/ecmascript"
|
|
1639
|
-
], Wt = (e) =>
|
|
1651
|
+
], Wt = (e) => Ut.includes(e.type), Lt = {
|
|
1640
1652
|
name: "builder-embed",
|
|
1641
1653
|
props: ["content"],
|
|
1642
1654
|
data() {
|
|
@@ -1678,15 +1690,15 @@ const Bt = /* @__PURE__ */ g(Pt, [["render", Ft]]), Ut = {
|
|
|
1678
1690
|
}
|
|
1679
1691
|
}
|
|
1680
1692
|
}
|
|
1681
|
-
},
|
|
1693
|
+
}, Nt = ["innerHTML"];
|
|
1682
1694
|
function Mt(e, n, t, o, r, s) {
|
|
1683
1695
|
return d(), u("div", {
|
|
1684
1696
|
class: "builder-embed",
|
|
1685
1697
|
ref: "elem",
|
|
1686
1698
|
innerHTML: t.content
|
|
1687
|
-
}, null, 8,
|
|
1699
|
+
}, null, 8, Nt);
|
|
1688
1700
|
}
|
|
1689
|
-
const $t = /* @__PURE__ */ g(
|
|
1701
|
+
const $t = /* @__PURE__ */ g(Lt, [["render", Mt]]), zt = {
|
|
1690
1702
|
name: "builder-img-component",
|
|
1691
1703
|
props: [
|
|
1692
1704
|
"backgroundSize",
|
|
@@ -1701,11 +1713,14 @@ const $t = /* @__PURE__ */ g(Nt, [["render", Mt]]), zt = {
|
|
|
1701
1713
|
},
|
|
1702
1714
|
methods: {
|
|
1703
1715
|
filterAttrs: function(n = {}, t) {
|
|
1704
|
-
const o = "v-on:"
|
|
1705
|
-
return Object.keys(n).filter(
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1716
|
+
const o = "v-on:";
|
|
1717
|
+
return Object.keys(n).filter((r) => {
|
|
1718
|
+
const s = r.startsWith(o);
|
|
1719
|
+
return t ? s : !s;
|
|
1720
|
+
}).reduce(
|
|
1721
|
+
(r, s) => ({
|
|
1722
|
+
...r,
|
|
1723
|
+
[s.replace(o, "")]: n[s]
|
|
1709
1724
|
}),
|
|
1710
1725
|
{}
|
|
1711
1726
|
);
|
|
@@ -1713,7 +1728,7 @@ const $t = /* @__PURE__ */ g(Nt, [["render", Mt]]), zt = {
|
|
|
1713
1728
|
}
|
|
1714
1729
|
}, Kt = ["alt", "src"];
|
|
1715
1730
|
function Ht(e, n, t, o, r, s) {
|
|
1716
|
-
return d(), u("img",
|
|
1731
|
+
return d(), u("img", C({
|
|
1717
1732
|
style: {
|
|
1718
1733
|
objectFit: t.backgroundSize || "cover",
|
|
1719
1734
|
objectPosition: t.backgroundPosition || "center"
|
|
@@ -1825,16 +1840,16 @@ const Yt = /* @__PURE__ */ g(Gt, [["render", Xt]]), Qt = {
|
|
|
1825
1840
|
]
|
|
1826
1841
|
}, Zt = () => [
|
|
1827
1842
|
{ component: ve, ...qe },
|
|
1828
|
-
{ component:
|
|
1843
|
+
{ component: Re, ...Ge },
|
|
1829
1844
|
{ component: Yt, ...Qt },
|
|
1830
|
-
{ component: $t, ...
|
|
1831
|
-
{ component:
|
|
1832
|
-
{ component:
|
|
1845
|
+
{ component: $t, ...Vt },
|
|
1846
|
+
{ component: je, ...Je },
|
|
1847
|
+
{ component: Le, ...Xe },
|
|
1833
1848
|
{ component: Dt, ...qt },
|
|
1834
1849
|
{ component: et, ...Ye },
|
|
1835
1850
|
{ component: wt, ...tt },
|
|
1836
1851
|
{ component: At, ...It },
|
|
1837
|
-
{ component:
|
|
1852
|
+
{ component: Pt, ...jt }
|
|
1838
1853
|
];
|
|
1839
1854
|
function G({
|
|
1840
1855
|
code: e,
|
|
@@ -1851,7 +1866,7 @@ function G({
|
|
|
1851
1866
|
isEditing: y(),
|
|
1852
1867
|
isBrowser: f(),
|
|
1853
1868
|
isServer: !f()
|
|
1854
|
-
},
|
|
1869
|
+
}, c = r && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
1855
1870
|
try {
|
|
1856
1871
|
return new Function(
|
|
1857
1872
|
"builder",
|
|
@@ -1859,17 +1874,17 @@ function G({
|
|
|
1859
1874
|
"state",
|
|
1860
1875
|
"context",
|
|
1861
1876
|
"event",
|
|
1862
|
-
|
|
1877
|
+
c
|
|
1863
1878
|
)(s, s, t, n, o);
|
|
1864
|
-
} catch (
|
|
1879
|
+
} catch (a) {
|
|
1865
1880
|
console.warn(
|
|
1866
1881
|
`Builder custom code error:
|
|
1867
1882
|
While Evaluating:
|
|
1868
1883
|
`,
|
|
1869
|
-
|
|
1884
|
+
c,
|
|
1870
1885
|
`
|
|
1871
1886
|
`,
|
|
1872
|
-
|
|
1887
|
+
a
|
|
1873
1888
|
);
|
|
1874
1889
|
}
|
|
1875
1890
|
}
|
|
@@ -1877,7 +1892,7 @@ function en() {
|
|
|
1877
1892
|
return !f() || y() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1878
1893
|
}
|
|
1879
1894
|
const ae = [];
|
|
1880
|
-
function
|
|
1895
|
+
function Bn(e, n) {
|
|
1881
1896
|
return ae.push({ component: e, ...n }), console.warn(
|
|
1882
1897
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1883
1898
|
), e;
|
|
@@ -1888,11 +1903,11 @@ const tn = ({
|
|
|
1888
1903
|
}) => ({
|
|
1889
1904
|
type: "builder.registerComponent",
|
|
1890
1905
|
data: on(n)
|
|
1891
|
-
}), nn = (e) => typeof e == "function" ?
|
|
1906
|
+
}), nn = (e) => typeof e == "function" ? F(e) : W(e), on = ({
|
|
1892
1907
|
inputs: e,
|
|
1893
1908
|
...n
|
|
1894
1909
|
}) => ({
|
|
1895
|
-
...
|
|
1910
|
+
...W(n),
|
|
1896
1911
|
inputs: e == null ? void 0 : e.map(
|
|
1897
1912
|
(t) => Object.entries(t).reduce(
|
|
1898
1913
|
(o, [r, s]) => ({
|
|
@@ -2054,7 +2069,7 @@ async function U(e) {
|
|
|
2054
2069
|
console.error("Failed to track: ", n);
|
|
2055
2070
|
});
|
|
2056
2071
|
}
|
|
2057
|
-
const
|
|
2072
|
+
const Pn = (e) => U({ ...e, canTrack: !0 });
|
|
2058
2073
|
function J(e) {
|
|
2059
2074
|
return Math.round(e * 1e3) / 1e3;
|
|
2060
2075
|
}
|
|
@@ -2076,10 +2091,10 @@ const vn = (e, n, t = !0) => {
|
|
|
2076
2091
|
event: e,
|
|
2077
2092
|
target: n
|
|
2078
2093
|
}) => {
|
|
2079
|
-
const t = n.getBoundingClientRect(), o = e.clientX - t.left, r = e.clientY - t.top, s = J(o / t.width),
|
|
2094
|
+
const t = n.getBoundingClientRect(), o = e.clientX - t.left, r = e.clientY - t.top, s = J(o / t.width), i = J(r / t.height);
|
|
2080
2095
|
return {
|
|
2081
2096
|
x: s,
|
|
2082
|
-
y:
|
|
2097
|
+
y: i
|
|
2083
2098
|
};
|
|
2084
2099
|
}, kn = (e) => {
|
|
2085
2100
|
const n = e.target, t = n && xn(n), o = (t == null ? void 0 : t.getAttribute("builder-id")) || (t == null ? void 0 : t.id);
|
|
@@ -2096,19 +2111,19 @@ const vn = (e, n, t = !0) => {
|
|
|
2096
2111
|
data: n,
|
|
2097
2112
|
locale: t
|
|
2098
2113
|
}) => {
|
|
2099
|
-
var s,
|
|
2114
|
+
var s, i, c;
|
|
2100
2115
|
const o = {};
|
|
2101
|
-
(
|
|
2116
|
+
(i = (s = e == null ? void 0 : e.data) == null ? void 0 : s.inputs) == null || i.forEach((a) => {
|
|
2102
2117
|
var l;
|
|
2103
|
-
|
|
2118
|
+
a.name && a.defaultValue !== void 0 && ((l = e == null ? void 0 : e.data) == null ? void 0 : l.state) && e.data.state[a.name] === void 0 && (o[a.name] = a.defaultValue);
|
|
2104
2119
|
});
|
|
2105
2120
|
const r = {
|
|
2106
|
-
...(
|
|
2121
|
+
...(c = e == null ? void 0 : e.data) == null ? void 0 : c.state,
|
|
2107
2122
|
...n,
|
|
2108
2123
|
...t ? { locale: t } : {}
|
|
2109
2124
|
};
|
|
2110
2125
|
return { ...o, ...r };
|
|
2111
|
-
},
|
|
2126
|
+
}, Cn = ({
|
|
2112
2127
|
content: e,
|
|
2113
2128
|
data: n
|
|
2114
2129
|
}) => e ? {
|
|
@@ -2118,12 +2133,12 @@ const vn = (e, n, t = !0) => {
|
|
|
2118
2133
|
...n
|
|
2119
2134
|
},
|
|
2120
2135
|
meta: e == null ? void 0 : e.meta
|
|
2121
|
-
} : void 0,
|
|
2136
|
+
} : void 0, _n = () => Promise.resolve().then(() => ee).then((e) => e.default).catch((e) => {
|
|
2122
2137
|
throw console.error(
|
|
2123
2138
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
2124
2139
|
e
|
|
2125
2140
|
), e;
|
|
2126
|
-
}), wn = () => import("./render-styles.
|
|
2141
|
+
}), wn = () => import("./render-styles.43492acf.js").then((e) => e.default).catch((e) => {
|
|
2127
2142
|
throw console.error(
|
|
2128
2143
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
2129
2144
|
e
|
|
@@ -2132,7 +2147,7 @@ const vn = (e, n, t = !0) => {
|
|
|
2132
2147
|
name: "render-content",
|
|
2133
2148
|
components: {
|
|
2134
2149
|
RenderContentStyles: x(wn),
|
|
2135
|
-
RenderBlocks: x(
|
|
2150
|
+
RenderBlocks: x(_n)
|
|
2136
2151
|
},
|
|
2137
2152
|
props: [
|
|
2138
2153
|
"content",
|
|
@@ -2149,7 +2164,7 @@ const vn = (e, n, t = !0) => {
|
|
|
2149
2164
|
return {
|
|
2150
2165
|
forceReRenderCount: 0,
|
|
2151
2166
|
overrideContent: null,
|
|
2152
|
-
useContent:
|
|
2167
|
+
useContent: Cn({
|
|
2153
2168
|
content: this.content,
|
|
2154
2169
|
data: this.data
|
|
2155
2170
|
}),
|
|
@@ -2178,7 +2193,7 @@ const vn = (e, n, t = !0) => {
|
|
|
2178
2193
|
provide() {
|
|
2179
2194
|
const e = this;
|
|
2180
2195
|
return {
|
|
2181
|
-
[
|
|
2196
|
+
[O.key]: {
|
|
2182
2197
|
content: e.useContent,
|
|
2183
2198
|
state: e.contentState,
|
|
2184
2199
|
setState: e.setContextState,
|
|
@@ -2383,9 +2398,9 @@ const vn = (e, n, t = !0) => {
|
|
|
2383
2398
|
const e = (o = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.httpRequests) != null ? o : {};
|
|
2384
2399
|
Object.entries(e).forEach(([r, s]) => {
|
|
2385
2400
|
if (s && (!this.httpReqsData[r] || y())) {
|
|
2386
|
-
const
|
|
2401
|
+
const i = this.evalExpression(s);
|
|
2387
2402
|
this.handleRequest({
|
|
2388
|
-
url:
|
|
2403
|
+
url: i,
|
|
2389
2404
|
key: r
|
|
2390
2405
|
});
|
|
2391
2406
|
}
|
|
@@ -2406,23 +2421,23 @@ const vn = (e, n, t = !0) => {
|
|
|
2406
2421
|
}
|
|
2407
2422
|
}, Tn = ["builder-content-id", "builder-model"];
|
|
2408
2423
|
function Rn(e, n, t, o, r, s) {
|
|
2409
|
-
var
|
|
2410
|
-
const
|
|
2424
|
+
var a, l, m, p, h, v, L, N;
|
|
2425
|
+
const i = k("render-content-styles"), c = k("render-blocks");
|
|
2411
2426
|
return r.useContent ? (d(), u("div", {
|
|
2412
2427
|
key: 0,
|
|
2413
2428
|
ref: "elementRef",
|
|
2414
2429
|
onClick: n[0] || (n[0] = (me) => s.onClick(me)),
|
|
2415
|
-
"builder-content-id": (
|
|
2430
|
+
"builder-content-id": (a = r.useContent) == null ? void 0 : a.id,
|
|
2416
2431
|
"builder-model": t.model
|
|
2417
2432
|
}, [
|
|
2418
|
-
s.shouldRenderContentStyles ? (d(), T(
|
|
2433
|
+
s.shouldRenderContentStyles ? (d(), T(i, {
|
|
2419
2434
|
key: 0,
|
|
2420
2435
|
contentId: (l = r.useContent) == null ? void 0 : l.id,
|
|
2421
2436
|
cssCode: (p = (m = r.useContent) == null ? void 0 : m.data) == null ? void 0 : p.cssCode,
|
|
2422
2437
|
customFonts: (v = (h = r.useContent) == null ? void 0 : h.data) == null ? void 0 : v.customFonts
|
|
2423
2438
|
}, null, 8, ["contentId", "cssCode", "customFonts"])) : b("", !0),
|
|
2424
|
-
(d(), T(
|
|
2425
|
-
blocks: (
|
|
2439
|
+
(d(), T(c, {
|
|
2440
|
+
blocks: (N = (L = r.useContent) == null ? void 0 : L.data) == null ? void 0 : N.blocks,
|
|
2426
2441
|
key: r.forceReRenderCount
|
|
2427
2442
|
}, null, 8, ["blocks"]))
|
|
2428
2443
|
], 8, Tn)) : b("", !0);
|
|
@@ -2431,7 +2446,7 @@ const En = /* @__PURE__ */ g(In, [["render", Rn]]), An = /* @__PURE__ */ Object.
|
|
|
2431
2446
|
__proto__: null,
|
|
2432
2447
|
default: En
|
|
2433
2448
|
}, Symbol.toStringTag, { value: "Module" })), Y = {};
|
|
2434
|
-
function
|
|
2449
|
+
function Vn(e) {
|
|
2435
2450
|
if (f()) {
|
|
2436
2451
|
Object.assign(Y, e);
|
|
2437
2452
|
const n = {
|
|
@@ -2442,37 +2457,38 @@ function Un(e) {
|
|
|
2442
2457
|
}
|
|
2443
2458
|
}
|
|
2444
2459
|
export {
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2460
|
+
O as B,
|
|
2461
|
+
Re as C,
|
|
2462
|
+
je as F,
|
|
2463
|
+
Le as I,
|
|
2449
2464
|
et as S,
|
|
2450
2465
|
R as T,
|
|
2451
|
-
|
|
2466
|
+
Pt as V,
|
|
2452
2467
|
g as _,
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2468
|
+
Fn as a,
|
|
2469
|
+
On as b,
|
|
2470
|
+
S as c,
|
|
2471
|
+
Se as d,
|
|
2457
2472
|
G as e,
|
|
2458
|
-
|
|
2473
|
+
W as f,
|
|
2459
2474
|
xe as g,
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2475
|
+
ve as h,
|
|
2476
|
+
En as i,
|
|
2477
|
+
wt as j,
|
|
2478
|
+
At as k,
|
|
2479
|
+
y as l,
|
|
2480
|
+
en as m,
|
|
2481
|
+
ae as n,
|
|
2482
|
+
Bn as o,
|
|
2483
|
+
tn as p,
|
|
2484
|
+
pe as q,
|
|
2470
2485
|
De as r,
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2486
|
+
Vn as s,
|
|
2487
|
+
Pn as t,
|
|
2488
|
+
ie as u,
|
|
2489
|
+
xt as v,
|
|
2490
|
+
gt as w,
|
|
2491
|
+
bt as x,
|
|
2492
|
+
yt as y,
|
|
2493
|
+
re as z
|
|
2478
2494
|
};
|