@builder.io/sdk-vue 0.0.6 → 0.0.8-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/README.md +4 -0
- package/package.json +1 -4
- package/packages/_vue2/dist/block-styles.b44c8edf.js +64 -0
- package/packages/_vue2/dist/block-styles.c4b6f857.cjs +1 -0
- package/packages/{_vue3/dist/get-processed-block.a58dcd2a.cjs → _vue2/dist/get-processed-block.3e6b44b2.cjs} +1 -1
- package/packages/{_vue3/dist/get-processed-block.7e239fa3.js → _vue2/dist/get-processed-block.fe285d4b.js} +1 -1
- package/packages/_vue2/dist/{index.53f5b352.js → index.64b2a483.js} +545 -376
- package/packages/_vue2/dist/index.75b1a869.cjs +30 -0
- package/packages/_vue2/dist/{render-block.678a49f8.js → render-block.19d46f0b.js} +55 -37
- package/packages/_vue2/dist/render-block.1b482626.cjs +3 -0
- package/packages/_vue2/dist/{render-component-with-context.861efce7.cjs → render-component-with-context.3f048773.cjs} +1 -1
- package/packages/_vue2/dist/{render-component-with-context.8748d30c.js → render-component-with-context.444169de.js} +2 -2
- package/packages/_vue2/dist/{render-component.58bf4a92.js → render-component.27b72ee3.js} +3 -3
- package/packages/_vue2/dist/{render-component.bad35496.cjs → render-component.437a5e14.cjs} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.46673ba6.js → render-inlined-styles.b7fdfbd1.js} +1 -1
- package/packages/_vue2/dist/{render-inlined-styles.8e95d025.cjs → render-inlined-styles.cd5552ef.cjs} +1 -1
- package/packages/_vue2/dist/{render-repeated-block.84bef64c.js → render-repeated-block.04220ba2.js} +2 -2
- package/packages/_vue2/dist/{render-repeated-block.e52f9726.cjs → render-repeated-block.1af001af.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.6854b22c.cjs → render-styles.7351e596.cjs} +1 -1
- package/packages/_vue2/dist/{render-styles.230dc75f.js → render-styles.9f1c2b6a.js} +2 -2
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +16 -17
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +43 -0
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +2 -1
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +2 -0
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/functions/get-block-properties.d.ts +1 -4
- package/packages/_vue2/dist/src/functions/get-content/generate-content-url.d.ts +2 -0
- package/packages/_vue2/dist/src/functions/get-content/index.d.ts +1 -2
- package/packages/_vue2/dist/src/functions/get-fetch.d.ts +1 -1
- package/packages/_vue2/dist/src/functions/get-react-native-block-styles.d.ts +2 -1
- package/packages/_vue2/dist/src/functions/transform-block-properties.d.ts +2 -0
- package/packages/_vue2/dist/src/helpers/css.d.ts +2 -0
- package/packages/_vue2/dist/src/types/builder-block.d.ts +1 -0
- package/packages/_vue2/dist/src/types/builder-content.d.ts +6 -4
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/block-styles.8b54c0ff.js +61 -0
- package/packages/_vue3/dist/block-styles.deb87646.cjs +1 -0
- package/packages/{_vue2/dist/get-processed-block.6408e235.js → _vue3/dist/get-processed-block.6b21ab85.js} +1 -1
- package/packages/{_vue2/dist/get-processed-block.4223e014.cjs → _vue3/dist/get-processed-block.bebeb09d.cjs} +1 -1
- package/packages/_vue3/dist/index.445b7e7d.cjs +30 -0
- package/packages/_vue3/dist/{index.0555f850.js → index.c2f0c6b9.js} +621 -446
- package/packages/_vue3/dist/{render-block.ff327bfe.js → render-block.ac15669c.js} +70 -52
- package/packages/_vue3/dist/render-block.e4759f55.cjs +3 -0
- package/packages/_vue3/dist/{render-component-with-context.fa9ac131.cjs → render-component-with-context.3071ccc4.cjs} +1 -1
- package/packages/_vue3/dist/{render-component-with-context.e2af488c.js → render-component-with-context.78824d9e.js} +2 -2
- package/packages/_vue3/dist/{render-component.afe8b68d.cjs → render-component.0e528148.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.91b2554d.js → render-component.447b727f.js} +3 -3
- package/packages/_vue3/dist/{render-inlined-styles.dc872311.cjs → render-inlined-styles.1be8577d.cjs} +1 -1
- package/packages/_vue3/dist/{render-inlined-styles.5f9ef611.js → render-inlined-styles.575fa695.js} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.f087a519.cjs → render-repeated-block.0600c495.cjs} +1 -1
- package/packages/_vue3/dist/{render-repeated-block.34c4784f.js → render-repeated-block.e1569caf.js} +2 -2
- package/packages/_vue3/dist/{render-styles.52fba546.cjs → render-styles.a2119a06.cjs} +1 -1
- package/packages/_vue3/dist/{render-styles.ce553bd8.js → render-styles.f5323f3c.js} +2 -2
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +15 -16
- package/packages/_vue3/dist/src/blocks/columns/columns.vue.d.ts +43 -0
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +2 -1
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +2 -0
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +1 -0
- package/packages/_vue3/dist/src/functions/get-block-properties.d.ts +1 -4
- package/packages/_vue3/dist/src/functions/get-content/generate-content-url.d.ts +2 -0
- package/packages/_vue3/dist/src/functions/get-content/index.d.ts +1 -2
- package/packages/_vue3/dist/src/functions/get-fetch.d.ts +1 -1
- package/packages/_vue3/dist/src/functions/get-react-native-block-styles.d.ts +2 -1
- package/packages/_vue3/dist/src/functions/transform-block-properties.d.ts +2 -0
- package/packages/_vue3/dist/src/helpers/css.d.ts +2 -0
- package/packages/_vue3/dist/src/types/builder-block.d.ts +1 -0
- package/packages/_vue3/dist/src/types/builder-content.d.ts +6 -4
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/block-styles.446ece03.js +0 -117
- package/packages/_vue2/dist/block-styles.5646ff86.cjs +0 -6
- package/packages/_vue2/dist/index.a1d3ffcd.cjs +0 -4
- package/packages/_vue2/dist/render-block.5d72c0ee.cjs +0 -3
- package/packages/_vue2/dist/src/functions/get-global-this.d.ts +0 -1
- package/packages/_vue3/dist/block-styles.bfb6bf01.js +0 -114
- package/packages/_vue3/dist/block-styles.c34bd502.cjs +0 -6
- package/packages/_vue3/dist/index.2e65c08f.cjs +0 -4
- package/packages/_vue3/dist/render-block.c7f89c03.cjs +0 -3
- package/packages/_vue3/dist/src/functions/get-global-this.d.ts +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineAsyncComponent as x, resolveComponent as
|
|
2
|
-
const
|
|
1
|
+
import { defineAsyncComponent as x, resolveComponent as k, openBlock as l, createElementBlock as u, normalizeClass as E, normalizeStyle as _, createBlock as w, createCommentVNode as b, Fragment as T, renderList as $, createVNode as q, createElementVNode as B, renderSlot as R, mergeProps as C, toDisplayString as W } from "vue";
|
|
2
|
+
const j = "vue3";
|
|
3
3
|
function f() {
|
|
4
4
|
return typeof window < "u" && typeof document < "u";
|
|
5
5
|
}
|
|
6
|
-
const
|
|
7
|
-
function
|
|
8
|
-
let t =
|
|
9
|
-
if (t || (t =
|
|
6
|
+
const L = {};
|
|
7
|
+
function ce(e, n) {
|
|
8
|
+
let t = L[e];
|
|
9
|
+
if (t || (t = L[e] = []), t.push(n), f()) {
|
|
10
10
|
const o = {
|
|
11
11
|
type: "builder.register",
|
|
12
12
|
data: {
|
|
@@ -16,13 +16,13 @@ function ie(e, n) {
|
|
|
16
16
|
};
|
|
17
17
|
try {
|
|
18
18
|
parent.postMessage(o, "*"), parent !== window && window.postMessage(o, "*");
|
|
19
|
-
} catch (
|
|
20
|
-
console.debug("Could not postmessage",
|
|
19
|
+
} catch (r) {
|
|
20
|
+
console.debug("Could not postmessage", r);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
const
|
|
25
|
-
|
|
24
|
+
const le = () => {
|
|
25
|
+
ce("insertMenu", {
|
|
26
26
|
name: "_default",
|
|
27
27
|
default: !0,
|
|
28
28
|
items: [
|
|
@@ -37,14 +37,14 @@ const ae = () => {
|
|
|
37
37
|
]
|
|
38
38
|
});
|
|
39
39
|
};
|
|
40
|
-
let
|
|
41
|
-
const
|
|
40
|
+
let N = !1;
|
|
41
|
+
const de = (e = {}) => {
|
|
42
42
|
var n, t;
|
|
43
|
-
|
|
43
|
+
N || (N = !0, f() && ((n = window.parent) == null || n.postMessage(
|
|
44
44
|
{
|
|
45
45
|
type: "builder.sdkInfo",
|
|
46
46
|
data: {
|
|
47
|
-
target:
|
|
47
|
+
target: j,
|
|
48
48
|
supportsPatchUpdates: !1,
|
|
49
49
|
supportsAddBlockScoping: !0,
|
|
50
50
|
supportsCustomBreakpoints: !0
|
|
@@ -60,33 +60,33 @@ const ce = (e = {}) => {
|
|
|
60
60
|
},
|
|
61
61
|
"*"
|
|
62
62
|
), window.addEventListener("message", ({ data: o }) => {
|
|
63
|
-
var
|
|
63
|
+
var r, s;
|
|
64
64
|
if (!!(o != null && o.type))
|
|
65
65
|
switch (o.type) {
|
|
66
66
|
case "builder.evaluate": {
|
|
67
|
-
const i = o.data.text, c = o.data.arguments || [], a = o.data.id,
|
|
67
|
+
const i = o.data.text, c = o.data.arguments || [], a = o.data.id, d = new Function(i);
|
|
68
68
|
let m, p = null;
|
|
69
69
|
try {
|
|
70
|
-
m =
|
|
70
|
+
m = d.apply(null, c);
|
|
71
71
|
} catch (h) {
|
|
72
72
|
p = h;
|
|
73
73
|
}
|
|
74
|
-
p ? (
|
|
74
|
+
p ? (r = window.parent) == null || r.postMessage(
|
|
75
75
|
{
|
|
76
76
|
type: "builder.evaluateError",
|
|
77
77
|
data: { id: a, error: p.message }
|
|
78
78
|
},
|
|
79
79
|
"*"
|
|
80
80
|
) : m && typeof m.then == "function" ? m.then((h) => {
|
|
81
|
-
var
|
|
82
|
-
(
|
|
81
|
+
var v;
|
|
82
|
+
(v = window.parent) == null || v.postMessage(
|
|
83
83
|
{
|
|
84
84
|
type: "builder.evaluateResult",
|
|
85
85
|
data: { id: a, result: h }
|
|
86
86
|
},
|
|
87
87
|
"*"
|
|
88
88
|
);
|
|
89
|
-
}).catch(console.error) : (
|
|
89
|
+
}).catch(console.error) : (s = window.parent) == null || s.postMessage(
|
|
90
90
|
{
|
|
91
91
|
type: "builder.evaluateResult",
|
|
92
92
|
data: { result: m, id: a }
|
|
@@ -97,21 +97,84 @@ const ce = (e = {}) => {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
})));
|
|
100
|
-
},
|
|
100
|
+
}, U = (e) => JSON.parse(JSON.stringify(e)), G = {
|
|
101
|
+
small: {
|
|
102
|
+
min: 320,
|
|
103
|
+
default: 321,
|
|
104
|
+
max: 640
|
|
105
|
+
},
|
|
106
|
+
medium: {
|
|
107
|
+
min: 641,
|
|
108
|
+
default: 642,
|
|
109
|
+
max: 991
|
|
110
|
+
},
|
|
111
|
+
large: {
|
|
112
|
+
min: 990,
|
|
113
|
+
default: 991,
|
|
114
|
+
max: 1200
|
|
115
|
+
}
|
|
116
|
+
}, vn = (e, n = G) => `@media (max-width: ${n[e].max}px)`, ue = ({ small: e, medium: n }) => {
|
|
117
|
+
const t = U(G);
|
|
118
|
+
if (!e || !n)
|
|
119
|
+
return t;
|
|
120
|
+
const o = Math.floor(e / 2);
|
|
121
|
+
t.small = {
|
|
122
|
+
max: e,
|
|
123
|
+
min: o,
|
|
124
|
+
default: o + 1
|
|
125
|
+
};
|
|
126
|
+
const r = t.small.max + 1;
|
|
127
|
+
t.medium = {
|
|
128
|
+
max: n,
|
|
129
|
+
min: r,
|
|
130
|
+
default: r + 1
|
|
131
|
+
};
|
|
132
|
+
const s = t.medium.max + 1;
|
|
133
|
+
return t.large = {
|
|
134
|
+
max: 2e3,
|
|
135
|
+
min: s,
|
|
136
|
+
default: s + 1
|
|
137
|
+
}, t;
|
|
138
|
+
}, me = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), I = (e) => e != null, pe = (e) => Object.entries(e).map(([t, o]) => {
|
|
139
|
+
if (typeof o == "string")
|
|
140
|
+
return `${me(t)}: ${o};`;
|
|
141
|
+
}).filter(I), S = (e) => pe(e).join(`
|
|
142
|
+
`), xn = ({
|
|
143
|
+
mediaQuery: e,
|
|
144
|
+
className: n,
|
|
145
|
+
styles: t
|
|
146
|
+
}) => {
|
|
147
|
+
const o = `.${n} {
|
|
148
|
+
${S(t)}
|
|
149
|
+
}`;
|
|
150
|
+
return e ? `${e} {
|
|
151
|
+
${o}
|
|
152
|
+
}` : o;
|
|
153
|
+
}, he = () => Promise.resolve().then(() => ie).then((e) => e.default).catch((e) => {
|
|
101
154
|
throw console.error(
|
|
102
155
|
"Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
|
|
103
156
|
e
|
|
104
157
|
), e;
|
|
105
|
-
}),
|
|
158
|
+
}), fe = () => import("./render-inlined-styles.575fa695.js").then((e) => e.default).catch((e) => {
|
|
159
|
+
throw console.error(
|
|
160
|
+
"Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",
|
|
161
|
+
e
|
|
162
|
+
), e;
|
|
163
|
+
}), ge = {
|
|
106
164
|
name: "builder-columns",
|
|
107
|
-
components: {
|
|
165
|
+
components: {
|
|
166
|
+
RenderInlinedStyles: x(fe),
|
|
167
|
+
RenderBlocks: x(he)
|
|
168
|
+
},
|
|
108
169
|
props: [
|
|
109
170
|
"space",
|
|
110
171
|
"columns",
|
|
111
172
|
"stackColumnsAt",
|
|
112
173
|
"reverseColumnsWhenStacked",
|
|
174
|
+
"customBreakpoints",
|
|
113
175
|
"builderBlock"
|
|
114
176
|
],
|
|
177
|
+
data: () => ({ TARGET: j }),
|
|
115
178
|
computed: {
|
|
116
179
|
columnsCssVars() {
|
|
117
180
|
const e = this.stackColumnsAt === "never" ? "inherit" : this.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
@@ -128,6 +191,59 @@ const ce = (e = {}) => {
|
|
|
128
191
|
"--column-width-tablet": this.maybeApplyForTablet(e),
|
|
129
192
|
"--column-margin-left-tablet": this.maybeApplyForTablet(n)
|
|
130
193
|
};
|
|
194
|
+
},
|
|
195
|
+
columnStyleObjects() {
|
|
196
|
+
return {
|
|
197
|
+
columns: {
|
|
198
|
+
small: {
|
|
199
|
+
flexDirection: "var(--flex-dir)",
|
|
200
|
+
alignItems: "stretch"
|
|
201
|
+
},
|
|
202
|
+
medium: {
|
|
203
|
+
flexDirection: "var(--flex-dir-tablet)",
|
|
204
|
+
alignItems: "stretch"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
column: {
|
|
208
|
+
small: {
|
|
209
|
+
width: "var(--column-width) !important",
|
|
210
|
+
marginLeft: "var(--column-margin-left) !important"
|
|
211
|
+
},
|
|
212
|
+
medium: {
|
|
213
|
+
width: "var(--column-width-tablet) !important",
|
|
214
|
+
marginLeft: "var(--column-margin-left-tablet) !important"
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
},
|
|
219
|
+
columnsStyles() {
|
|
220
|
+
return `
|
|
221
|
+
@media (max-width: ${this.getWidthForBreakpointSize("medium")}px) {
|
|
222
|
+
.${this.builderBlock.id}-breakpoints {
|
|
223
|
+
${S(this.columnStyleObjects.columns.medium)}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
227
|
+
${S(this.columnStyleObjects.column.medium)}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@media (max-width: ${this.getWidthForBreakpointSize("small")}px) {
|
|
232
|
+
.${this.builderBlock.id}-breakpoints {
|
|
233
|
+
${S(this.columnStyleObjects.columns.small)}
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.${this.builderBlock.id}-breakpoints > .builder-column {
|
|
237
|
+
${S(this.columnStyleObjects.column.small)}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
`;
|
|
241
|
+
},
|
|
242
|
+
reactNativeColumnsStyles() {
|
|
243
|
+
return this.columnStyleObjects.columns.small;
|
|
244
|
+
},
|
|
245
|
+
reactNativeColumnStyles() {
|
|
246
|
+
return this.columnStyleObjects.column.small;
|
|
131
247
|
}
|
|
132
248
|
},
|
|
133
249
|
methods: {
|
|
@@ -148,75 +264,101 @@ const ce = (e = {}) => {
|
|
|
148
264
|
},
|
|
149
265
|
maybeApplyForTablet(e) {
|
|
150
266
|
return (this.stackColumnsAt || "tablet") === "tablet" ? e : "inherit";
|
|
267
|
+
},
|
|
268
|
+
getWidthForBreakpointSize(e) {
|
|
269
|
+
return ue(
|
|
270
|
+
this.customBreakpoints || {}
|
|
271
|
+
)[e].max;
|
|
272
|
+
},
|
|
273
|
+
_classStringToObject(e) {
|
|
274
|
+
const n = {};
|
|
275
|
+
if (typeof e != "string")
|
|
276
|
+
return n;
|
|
277
|
+
const t = e.trim().split(/\s+/);
|
|
278
|
+
for (const o of t)
|
|
279
|
+
n[o] = !0;
|
|
280
|
+
return n;
|
|
151
281
|
}
|
|
152
282
|
}
|
|
153
283
|
};
|
|
154
284
|
const g = (e, n) => {
|
|
155
285
|
const t = e.__vccOpts || e;
|
|
156
|
-
for (const [o,
|
|
157
|
-
t[o] =
|
|
286
|
+
for (const [o, r] of n)
|
|
287
|
+
t[o] = r;
|
|
158
288
|
return t;
|
|
159
289
|
};
|
|
160
|
-
function
|
|
161
|
-
const i =
|
|
162
|
-
return l(),
|
|
163
|
-
class:
|
|
164
|
-
|
|
290
|
+
function be(e, n, t, o, r, s) {
|
|
291
|
+
const i = k("render-inlined-styles"), c = k("render-blocks");
|
|
292
|
+
return l(), u("div", {
|
|
293
|
+
class: E(
|
|
294
|
+
s._classStringToObject(
|
|
295
|
+
`builder-columns ${t.builderBlock.id}-breakpoints div-1eih9th5ow6`
|
|
296
|
+
)
|
|
297
|
+
),
|
|
298
|
+
style: _({
|
|
299
|
+
...e.TARGET === "reactNative" ? s.reactNativeColumnsStyles : {},
|
|
300
|
+
...s.columnsCssVars
|
|
301
|
+
})
|
|
165
302
|
}, [
|
|
166
|
-
|
|
167
|
-
key:
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
303
|
+
e.TARGET !== "reactNative" ? (l(), w(i, {
|
|
304
|
+
key: 0,
|
|
305
|
+
styles: s.columnsStyles
|
|
306
|
+
}, null, 8, ["styles"])) : b("", !0),
|
|
307
|
+
(l(!0), u(T, null, $(t.columns, (a, d) => (l(), u("div", {
|
|
308
|
+
key: d,
|
|
309
|
+
class: "builder-column div-1eih9th5ow6-2",
|
|
310
|
+
style: _({
|
|
311
|
+
width: s.getColumnCssWidth(d),
|
|
312
|
+
marginLeft: `${d === 0 ? 0 : s.getGutterSize()}px`,
|
|
313
|
+
...e.TARGET === "reactNative" ? s.reactNativeColumnStyles : {},
|
|
314
|
+
...s.columnCssVars
|
|
173
315
|
})
|
|
174
316
|
}, [
|
|
175
|
-
|
|
176
|
-
blocks:
|
|
177
|
-
path: `component.options.columns.${
|
|
317
|
+
q(c, {
|
|
318
|
+
blocks: a.blocks,
|
|
319
|
+
path: `component.options.columns.${d}.blocks`,
|
|
178
320
|
parent: t.builderBlock.id,
|
|
179
321
|
styleProp: {
|
|
180
322
|
flexGrow: "1"
|
|
181
323
|
}
|
|
182
324
|
}, null, 8, ["blocks", "path", "parent"])
|
|
183
325
|
], 4))), 128))
|
|
184
|
-
],
|
|
326
|
+
], 6);
|
|
185
327
|
}
|
|
186
|
-
const
|
|
187
|
-
function
|
|
328
|
+
const ye = /* @__PURE__ */ g(ge, [["render", be], ["__scopeId", "data-v-4ed006a3"]]);
|
|
329
|
+
function M(e) {
|
|
188
330
|
return e.replace(/http(s)?:/, "");
|
|
189
331
|
}
|
|
190
|
-
function
|
|
191
|
-
const o = new RegExp("([?&])" + n + "=.*?(&|$)", "i"),
|
|
192
|
-
return e.match(o) ? e.replace(o, "$1" + n + "=" + encodeURIComponent(t) + "$2") : e +
|
|
332
|
+
function ve(e = "", n, t) {
|
|
333
|
+
const o = new RegExp("([?&])" + n + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
334
|
+
return e.match(o) ? e.replace(o, "$1" + n + "=" + encodeURIComponent(t) + "$2") : e + r + n + "=" + encodeURIComponent(t);
|
|
193
335
|
}
|
|
194
|
-
function
|
|
336
|
+
function xe(e, n) {
|
|
195
337
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !n)
|
|
196
338
|
return e;
|
|
197
339
|
if (n === "master")
|
|
198
|
-
return
|
|
340
|
+
return M(e);
|
|
199
341
|
const t = e.match(
|
|
200
342
|
/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i
|
|
201
343
|
);
|
|
202
344
|
if (t) {
|
|
203
|
-
const o = e.split(t[0]),
|
|
204
|
-
return
|
|
345
|
+
const o = e.split(t[0]), r = t[3], s = n.match("x") ? n : `${n}x`;
|
|
346
|
+
return M(`${o[0]}_${s}${r}`);
|
|
205
347
|
}
|
|
206
348
|
return null;
|
|
207
349
|
}
|
|
208
|
-
function
|
|
350
|
+
function A(e) {
|
|
209
351
|
if (!e)
|
|
210
352
|
return e;
|
|
211
353
|
const n = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
212
354
|
if (e.match(/builder\.io/)) {
|
|
213
355
|
let t = e;
|
|
214
356
|
const o = Number(e.split("?width=")[1]);
|
|
215
|
-
return isNaN(o) || (t = `${t} ${o}w`), n.filter((
|
|
357
|
+
return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${ve(e, "width", r)} ${r}w`).concat([t]).join(", ");
|
|
216
358
|
}
|
|
217
|
-
return e.match(/cdn\.shopify\.com/) ? n.map((t) => [
|
|
359
|
+
return e.match(/cdn\.shopify\.com/) ? n.map((t) => [xe(e, `${t}x${t}`), t]).filter(([t]) => !!t).map(([t, o]) => `${t} ${o}w`).concat([e]).join(", ") : e;
|
|
218
360
|
}
|
|
219
|
-
const
|
|
361
|
+
const ke = {
|
|
220
362
|
name: "builder-image",
|
|
221
363
|
props: [
|
|
222
364
|
"image",
|
|
@@ -240,10 +382,10 @@ const fe = {
|
|
|
240
382
|
return this.srcset;
|
|
241
383
|
if (this.srcset && ((t = this.image) == null ? void 0 : t.includes("builder.io/api/v1/image"))) {
|
|
242
384
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
243
|
-
return console.debug("Removed given srcset"),
|
|
385
|
+
return console.debug("Removed given srcset"), A(n);
|
|
244
386
|
} else if (this.image && !this.srcset)
|
|
245
|
-
return
|
|
246
|
-
return
|
|
387
|
+
return A(n);
|
|
388
|
+
return A(n);
|
|
247
389
|
},
|
|
248
390
|
webpSrcSet() {
|
|
249
391
|
var e;
|
|
@@ -272,63 +414,63 @@ const fe = {
|
|
|
272
414
|
}
|
|
273
415
|
}
|
|
274
416
|
};
|
|
275
|
-
const
|
|
417
|
+
const Ce = ["srcset"], Se = ["alt", "role", "src", "srcset", "sizes"], _e = ["srcset"], we = {
|
|
276
418
|
key: 2,
|
|
277
|
-
class: "div-
|
|
419
|
+
class: "div-256wrwn33ry-2"
|
|
278
420
|
};
|
|
279
|
-
function
|
|
280
|
-
var i, c, a,
|
|
281
|
-
return l(),
|
|
282
|
-
|
|
283
|
-
|
|
421
|
+
function Ie(e, n, t, o, r, s) {
|
|
422
|
+
var i, c, a, d;
|
|
423
|
+
return l(), u(T, null, [
|
|
424
|
+
B("picture", null, [
|
|
425
|
+
s.webpSrcSet ? (l(), u("source", {
|
|
284
426
|
key: 0,
|
|
285
427
|
type: "image/webp",
|
|
286
|
-
srcset:
|
|
287
|
-
}, null, 8,
|
|
288
|
-
|
|
428
|
+
srcset: s.webpSrcSet
|
|
429
|
+
}, null, 8, Ce)) : b("", !0),
|
|
430
|
+
B("img", {
|
|
289
431
|
loading: "lazy",
|
|
290
432
|
alt: t.altText,
|
|
291
433
|
role: t.altText ? "presentation" : void 0,
|
|
292
|
-
style:
|
|
434
|
+
style: _({
|
|
293
435
|
objectPosition: t.backgroundPosition || "center",
|
|
294
436
|
objectFit: t.backgroundSize || "cover",
|
|
295
|
-
...
|
|
437
|
+
...s.aspectRatioCss
|
|
296
438
|
}),
|
|
297
|
-
class:
|
|
298
|
-
|
|
299
|
-
"builder-image" + (t.className ? " " + t.className : "") + " img-
|
|
439
|
+
class: E(
|
|
440
|
+
s._classStringToObject(
|
|
441
|
+
"builder-image" + (t.className ? " " + t.className : "") + " img-256wrwn33ry"
|
|
300
442
|
)
|
|
301
443
|
),
|
|
302
444
|
src: t.image,
|
|
303
|
-
srcset:
|
|
445
|
+
srcset: s.srcSetToUse,
|
|
304
446
|
sizes: t.sizes
|
|
305
|
-
}, null, 14,
|
|
306
|
-
|
|
447
|
+
}, null, 14, Se),
|
|
448
|
+
B("source", { srcset: s.srcSetToUse }, null, 8, _e)
|
|
307
449
|
]),
|
|
308
|
-
t.aspectRatio && !(((c = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : c.length) && t.fitContent) ? (l(),
|
|
450
|
+
t.aspectRatio && !(((c = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : c.length) && t.fitContent) ? (l(), u("div", {
|
|
309
451
|
key: 0,
|
|
310
|
-
class: "builder-image-sizer div-
|
|
311
|
-
style:
|
|
452
|
+
class: "builder-image-sizer div-256wrwn33ry",
|
|
453
|
+
style: _({
|
|
312
454
|
paddingTop: t.aspectRatio * 100 + "%"
|
|
313
455
|
})
|
|
314
|
-
}, null, 4)) :
|
|
315
|
-
((
|
|
316
|
-
!t.fitContent && e.children ? (l(),
|
|
317
|
-
|
|
318
|
-
])) :
|
|
456
|
+
}, null, 4)) : b("", !0),
|
|
457
|
+
((d = (a = t.builderBlock) == null ? void 0 : a.children) == null ? void 0 : d.length) && t.fitContent ? R(e.$slots, "default", { key: 1 }, void 0, !0) : b("", !0),
|
|
458
|
+
!t.fitContent && e.children ? (l(), u("div", we, [
|
|
459
|
+
R(e.$slots, "default", {}, void 0, !0)
|
|
460
|
+
])) : b("", !0)
|
|
319
461
|
], 64);
|
|
320
462
|
}
|
|
321
|
-
const
|
|
463
|
+
const Te = /* @__PURE__ */ g(ke, [["render", Ie], ["__scopeId", "data-v-4d05ad57"]]), Re = {
|
|
322
464
|
name: "builder-text",
|
|
323
465
|
props: ["text"]
|
|
324
|
-
},
|
|
325
|
-
function
|
|
326
|
-
return l(),
|
|
466
|
+
}, Ee = ["innerHTML"];
|
|
467
|
+
function je(e, n, t, o, r, s) {
|
|
468
|
+
return l(), u("span", {
|
|
327
469
|
class: "builder-text",
|
|
328
470
|
innerHTML: t.text
|
|
329
|
-
}, null, 8,
|
|
471
|
+
}, null, 8, Ee);
|
|
330
472
|
}
|
|
331
|
-
const
|
|
473
|
+
const Fe = /* @__PURE__ */ g(Re, [["render", je]]), Be = {
|
|
332
474
|
name: "builder-video",
|
|
333
475
|
props: [
|
|
334
476
|
"autoPlay",
|
|
@@ -369,10 +511,10 @@ const Se = /* @__PURE__ */ g(_e, [["render", we]]), Ie = {
|
|
|
369
511
|
};
|
|
370
512
|
}
|
|
371
513
|
}
|
|
372
|
-
},
|
|
373
|
-
function
|
|
514
|
+
}, Ae = ["src", "poster"];
|
|
515
|
+
function $e(e, n, t, o, r, s) {
|
|
374
516
|
var i;
|
|
375
|
-
return l(),
|
|
517
|
+
return l(), u("video", C({
|
|
376
518
|
style: {
|
|
377
519
|
width: "100%",
|
|
378
520
|
height: "100%",
|
|
@@ -383,55 +525,25 @@ function Re(e, n, t, o, s, r) {
|
|
|
383
525
|
},
|
|
384
526
|
src: t.video || "no-src",
|
|
385
527
|
poster: t.posterImage
|
|
386
|
-
},
|
|
528
|
+
}, s.spreadProps), null, 16, Ae);
|
|
387
529
|
}
|
|
388
|
-
const
|
|
389
|
-
function A(e, n = null, t = ".") {
|
|
390
|
-
return Object.keys(e).reduce((o, s) => {
|
|
391
|
-
const r = e[s], i = [n, s].filter(Boolean).join(t);
|
|
392
|
-
return [
|
|
393
|
-
typeof r == "object",
|
|
394
|
-
r !== null,
|
|
395
|
-
!(Array.isArray(r) && r.length === 0)
|
|
396
|
-
].every(Boolean) ? { ...o, ...A(r, i, t) } : { ...o, [i]: r };
|
|
397
|
-
}, {});
|
|
398
|
-
}
|
|
399
|
-
const N = "builder.", Fe = "options.", je = (e) => {
|
|
400
|
-
const n = {};
|
|
401
|
-
return e.forEach((t, o) => {
|
|
402
|
-
n[o] = t;
|
|
403
|
-
}), n;
|
|
404
|
-
}, Ae = (e) => {
|
|
405
|
-
if (!e)
|
|
406
|
-
return {};
|
|
407
|
-
const n = q(e), t = {};
|
|
408
|
-
return Object.keys(n).forEach((o) => {
|
|
409
|
-
if (o.startsWith(N)) {
|
|
410
|
-
const s = o.replace(N, "").replace(Fe, "");
|
|
411
|
-
t[s] = n[o];
|
|
412
|
-
}
|
|
413
|
-
}), t;
|
|
414
|
-
}, Ue = () => {
|
|
415
|
-
if (!f())
|
|
416
|
-
return {};
|
|
417
|
-
const e = new URLSearchParams(window.location.search);
|
|
418
|
-
return Ae(e);
|
|
419
|
-
}, q = (e) => e instanceof URLSearchParams ? je(e) : e;
|
|
530
|
+
const Oe = /* @__PURE__ */ g(Be, [["render", $e]]);
|
|
420
531
|
function Pe() {
|
|
421
|
-
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self :
|
|
532
|
+
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
422
533
|
}
|
|
423
|
-
|
|
534
|
+
function Ue() {
|
|
424
535
|
const e = Pe().fetch;
|
|
425
|
-
if (typeof e > "u"
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
536
|
+
if (typeof e > "u")
|
|
537
|
+
throw console.warn(
|
|
538
|
+
`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
539
|
+
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`
|
|
540
|
+
), new Error("Builder SDK could not find a global `fetch` function");
|
|
541
|
+
return e;
|
|
430
542
|
}
|
|
431
|
-
const Ve = (e) => {
|
|
543
|
+
const J = Ue(), Ve = (e) => {
|
|
432
544
|
const n = e.split(".");
|
|
433
545
|
return n.length > 2 ? n.slice(1).join(".") : e;
|
|
434
|
-
},
|
|
546
|
+
}, X = async ({
|
|
435
547
|
name: e,
|
|
436
548
|
canTrack: n
|
|
437
549
|
}) => {
|
|
@@ -441,23 +553,23 @@ const Ve = (e) => {
|
|
|
441
553
|
} catch (o) {
|
|
442
554
|
console.debug("[COOKIE] GET error: ", o);
|
|
443
555
|
}
|
|
444
|
-
},
|
|
556
|
+
}, We = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).join("; "), Le = [
|
|
445
557
|
["secure", ""],
|
|
446
558
|
["SameSite", "None"]
|
|
447
|
-
],
|
|
559
|
+
], Ne = ({
|
|
448
560
|
name: e,
|
|
449
561
|
value: n,
|
|
450
562
|
expires: t
|
|
451
563
|
}) => {
|
|
452
|
-
const
|
|
564
|
+
const r = (f() ? location.protocol === "https:" : !0) ? Le : [[]], s = t ? [["expires", t.toUTCString()]] : [[]], i = [
|
|
453
565
|
[e, n],
|
|
454
|
-
...
|
|
566
|
+
...s,
|
|
455
567
|
["path", "/"],
|
|
456
568
|
["domain", Ve(window.location.hostname)],
|
|
457
|
-
...
|
|
569
|
+
...r
|
|
458
570
|
];
|
|
459
|
-
return
|
|
460
|
-
},
|
|
571
|
+
return We(i);
|
|
572
|
+
}, Y = async ({
|
|
461
573
|
name: e,
|
|
462
574
|
value: n,
|
|
463
575
|
expires: t,
|
|
@@ -466,30 +578,30 @@ const Ve = (e) => {
|
|
|
466
578
|
try {
|
|
467
579
|
if (!o)
|
|
468
580
|
return;
|
|
469
|
-
const
|
|
470
|
-
document.cookie =
|
|
471
|
-
} catch (
|
|
472
|
-
console.warn("[COOKIE] SET error: ",
|
|
581
|
+
const r = Ne({ name: e, value: n, expires: t });
|
|
582
|
+
document.cookie = r;
|
|
583
|
+
} catch (r) {
|
|
584
|
+
console.warn("[COOKIE] SET error: ", r);
|
|
473
585
|
}
|
|
474
|
-
},
|
|
586
|
+
}, Me = "builderio.variations", Q = (e) => `${Me}.${e}`, ze = ({
|
|
475
587
|
contentId: e,
|
|
476
588
|
canTrack: n
|
|
477
|
-
}) =>
|
|
589
|
+
}) => X({ name: Q(e), canTrack: n }), He = ({
|
|
478
590
|
contentId: e,
|
|
479
591
|
canTrack: n,
|
|
480
592
|
value: t
|
|
481
|
-
}) =>
|
|
593
|
+
}) => Y({ name: Q(e), value: t, canTrack: n }), Ke = (e) => I(e.id) && I(e.variations) && Object.keys(e.variations).length > 0, De = ({
|
|
482
594
|
id: e,
|
|
483
595
|
variations: n
|
|
484
596
|
}) => {
|
|
485
|
-
var
|
|
597
|
+
var r;
|
|
486
598
|
let t = 0;
|
|
487
599
|
const o = Math.random();
|
|
488
|
-
for (const
|
|
489
|
-
if (t += (
|
|
490
|
-
return
|
|
600
|
+
for (const s in n)
|
|
601
|
+
if (t += (r = n[s]) == null ? void 0 : r.testRatio, o < t)
|
|
602
|
+
return s;
|
|
491
603
|
return e;
|
|
492
|
-
},
|
|
604
|
+
}, z = ({
|
|
493
605
|
item: e,
|
|
494
606
|
testGroupId: n
|
|
495
607
|
}) => {
|
|
@@ -502,95 +614,123 @@ const Ve = (e) => {
|
|
|
502
614
|
testVariationId: t.id,
|
|
503
615
|
testVariationName: t.name || (t.id === e.id ? "Default" : "")
|
|
504
616
|
};
|
|
505
|
-
},
|
|
617
|
+
}, qe = async ({
|
|
506
618
|
item: e,
|
|
507
619
|
canTrack: n
|
|
508
620
|
}) => {
|
|
509
|
-
const t = await
|
|
621
|
+
const t = await ze({
|
|
510
622
|
canTrack: n,
|
|
511
623
|
contentId: e.id
|
|
512
|
-
}), o = t ?
|
|
624
|
+
}), o = t ? z({ item: e, testGroupId: t }) : void 0;
|
|
513
625
|
if (o)
|
|
514
626
|
return o;
|
|
515
627
|
{
|
|
516
|
-
const
|
|
628
|
+
const r = De({
|
|
517
629
|
variations: e.variations,
|
|
518
630
|
id: e.id
|
|
519
631
|
});
|
|
520
|
-
return
|
|
632
|
+
return He({
|
|
521
633
|
contentId: e.id,
|
|
522
|
-
value:
|
|
634
|
+
value: r,
|
|
523
635
|
canTrack: n
|
|
524
|
-
}).catch((
|
|
525
|
-
console.error("could not store A/B test variation: ",
|
|
526
|
-
}),
|
|
636
|
+
}).catch((s) => {
|
|
637
|
+
console.error("could not store A/B test variation: ", s);
|
|
638
|
+
}), z({ item: e, testGroupId: r });
|
|
527
639
|
}
|
|
528
|
-
},
|
|
640
|
+
}, Ge = async ({
|
|
529
641
|
item: e,
|
|
530
642
|
canTrack: n
|
|
531
643
|
}) => {
|
|
532
|
-
if (!
|
|
644
|
+
if (!Ke(e))
|
|
533
645
|
return;
|
|
534
|
-
const t = await
|
|
646
|
+
const t = await qe({ item: e, canTrack: n });
|
|
535
647
|
Object.assign(e, t);
|
|
536
648
|
};
|
|
537
|
-
|
|
538
|
-
return (
|
|
649
|
+
function O(e, n = null, t = ".") {
|
|
650
|
+
return Object.keys(e).reduce((o, r) => {
|
|
651
|
+
const s = e[r], i = [n, r].filter(Boolean).join(t);
|
|
652
|
+
return [
|
|
653
|
+
typeof s == "object",
|
|
654
|
+
s !== null,
|
|
655
|
+
!(Array.isArray(s) && s.length === 0)
|
|
656
|
+
].every(Boolean) ? { ...o, ...O(s, i, t) } : { ...o, [i]: s };
|
|
657
|
+
}, {});
|
|
539
658
|
}
|
|
540
|
-
const
|
|
659
|
+
const H = "builder.", Je = "options.", Xe = (e) => {
|
|
660
|
+
const n = {};
|
|
661
|
+
return e.forEach((t, o) => {
|
|
662
|
+
n[o] = t;
|
|
663
|
+
}), n;
|
|
664
|
+
}, Ye = (e) => {
|
|
665
|
+
if (!e)
|
|
666
|
+
return {};
|
|
667
|
+
const n = Z(e), t = {};
|
|
668
|
+
return Object.keys(n).forEach((o) => {
|
|
669
|
+
if (o.startsWith(H)) {
|
|
670
|
+
const r = o.replace(H, "").replace(Je, "");
|
|
671
|
+
t[r] = n[o];
|
|
672
|
+
}
|
|
673
|
+
}), t;
|
|
674
|
+
}, Qe = () => {
|
|
675
|
+
if (!f())
|
|
676
|
+
return {};
|
|
677
|
+
const e = new URLSearchParams(window.location.search);
|
|
678
|
+
return Ye(e);
|
|
679
|
+
}, Z = (e) => e instanceof URLSearchParams ? Xe(e) : e, Ze = (e) => {
|
|
541
680
|
const {
|
|
542
681
|
limit: n = 30,
|
|
543
682
|
userAttributes: t,
|
|
544
683
|
query: o,
|
|
545
|
-
noTraverse:
|
|
546
|
-
model:
|
|
684
|
+
noTraverse: r = !1,
|
|
685
|
+
model: s,
|
|
547
686
|
apiKey: i,
|
|
548
687
|
includeRefs: c = !0,
|
|
549
688
|
locale: a
|
|
550
689
|
} = e;
|
|
551
690
|
if (!i)
|
|
552
691
|
throw new Error("Missing API key");
|
|
553
|
-
const
|
|
554
|
-
`https://cdn.builder.io/api/v2/content/${
|
|
692
|
+
const d = new URL(
|
|
693
|
+
`https://cdn.builder.io/api/v2/content/${s}?apiKey=${i}&limit=${n}&noTraverse=${r}&includeRefs=${c}${a ? `&locale=${a}` : ""}`
|
|
555
694
|
), m = {
|
|
556
|
-
...
|
|
557
|
-
...
|
|
558
|
-
}, p =
|
|
695
|
+
...Qe(),
|
|
696
|
+
...Z(e.options || {})
|
|
697
|
+
}, p = O(m);
|
|
559
698
|
for (const h in p)
|
|
560
|
-
|
|
561
|
-
if (t &&
|
|
562
|
-
const h =
|
|
563
|
-
for (const
|
|
564
|
-
|
|
699
|
+
d.searchParams.set(h, String(p[h]));
|
|
700
|
+
if (t && d.searchParams.set("userAttributes", JSON.stringify(t)), o) {
|
|
701
|
+
const h = O({ query: o });
|
|
702
|
+
for (const v in h)
|
|
703
|
+
d.searchParams.set(v, JSON.stringify(h[v]));
|
|
565
704
|
}
|
|
566
|
-
return
|
|
705
|
+
return d;
|
|
567
706
|
};
|
|
568
|
-
async function
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
707
|
+
async function ee(e) {
|
|
708
|
+
return (await et({ ...e, limit: 1 })).results[0] || null;
|
|
709
|
+
}
|
|
710
|
+
async function et(e) {
|
|
711
|
+
const n = Ze(e), o = await (await J(n.href)).json(), r = e.canTrack !== !1;
|
|
712
|
+
if (r && Array.isArray(o.results))
|
|
713
|
+
for (const s of o.results)
|
|
714
|
+
await Ge({ item: s, canTrack: r });
|
|
575
715
|
return o;
|
|
576
716
|
}
|
|
577
|
-
const
|
|
717
|
+
const tt = () => Promise.resolve().then(() => un).then((e) => e.default).catch((e) => {
|
|
578
718
|
throw console.error(
|
|
579
719
|
"Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
|
|
580
720
|
e
|
|
581
721
|
), e;
|
|
582
|
-
}),
|
|
722
|
+
}), nt = {
|
|
583
723
|
name: "builder-symbol",
|
|
584
|
-
components: { RenderContent: x(
|
|
585
|
-
props: ["symbol", "
|
|
586
|
-
data: () => ({
|
|
724
|
+
components: { RenderContent: x(tt) },
|
|
725
|
+
props: ["attributes", "symbol", "dynamic"],
|
|
726
|
+
data: () => ({ fetchedContent: null }),
|
|
587
727
|
inject: {
|
|
588
728
|
builderContext: "BuilderContext"
|
|
589
729
|
},
|
|
590
730
|
watch: {
|
|
591
731
|
onUpdateHook0() {
|
|
592
732
|
const e = this.symbol;
|
|
593
|
-
e && !e.content && !this.fetchedContent && e.model &&
|
|
733
|
+
e && !e.content && !this.fetchedContent && e.model && ee({
|
|
594
734
|
model: e.model,
|
|
595
735
|
apiKey: this.builderContext.apiKey,
|
|
596
736
|
query: {
|
|
@@ -602,6 +742,15 @@ const Je = () => Promise.resolve().then(() => on).then((e) => e.default).catch((
|
|
|
602
742
|
}
|
|
603
743
|
},
|
|
604
744
|
computed: {
|
|
745
|
+
className() {
|
|
746
|
+
var e, n;
|
|
747
|
+
return [
|
|
748
|
+
...Object.keys(this.attributes.class),
|
|
749
|
+
"builder-symbol",
|
|
750
|
+
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
751
|
+
((n = this.symbol) == null ? void 0 : n.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
752
|
+
].filter(Boolean).join(" ");
|
|
753
|
+
},
|
|
605
754
|
contentToUse() {
|
|
606
755
|
var e;
|
|
607
756
|
return ((e = this.symbol) == null ? void 0 : e.content) || this.fetchedContent;
|
|
@@ -624,69 +773,78 @@ const Je = () => Promise.resolve().then(() => on).then((e) => e.default).catch((
|
|
|
624
773
|
return n;
|
|
625
774
|
}
|
|
626
775
|
}
|
|
627
|
-
},
|
|
628
|
-
function
|
|
629
|
-
var c, a,
|
|
630
|
-
const i =
|
|
631
|
-
return l(),
|
|
776
|
+
}, ot = ["dataSet"];
|
|
777
|
+
function st(e, n, t, o, r, s) {
|
|
778
|
+
var c, a, d, m, p;
|
|
779
|
+
const i = k("render-content");
|
|
780
|
+
return l(), u("div", C({
|
|
632
781
|
dataSet: {
|
|
633
|
-
class:
|
|
782
|
+
class: s.className
|
|
634
783
|
},
|
|
635
|
-
class:
|
|
784
|
+
class: s._classStringToObject(s.className)
|
|
636
785
|
}, t.attributes), [
|
|
637
|
-
|
|
638
|
-
apiKey:
|
|
639
|
-
context:
|
|
640
|
-
customComponents: Object.values(
|
|
786
|
+
q(i, {
|
|
787
|
+
apiKey: s.builderContext.apiKey,
|
|
788
|
+
context: s.builderContext.context,
|
|
789
|
+
customComponents: Object.values(s.builderContext.registeredComponents),
|
|
641
790
|
data: {
|
|
642
791
|
...(c = t.symbol) == null ? void 0 : c.data,
|
|
643
|
-
...
|
|
644
|
-
...(m = (
|
|
792
|
+
...s.builderContext.state,
|
|
793
|
+
...(m = (d = (a = t.symbol) == null ? void 0 : a.content) == null ? void 0 : d.data) == null ? void 0 : m.state
|
|
645
794
|
},
|
|
646
795
|
model: (p = t.symbol) == null ? void 0 : p.model,
|
|
647
|
-
content:
|
|
796
|
+
content: s.contentToUse
|
|
648
797
|
}, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
|
|
649
|
-
], 16,
|
|
798
|
+
], 16, ot);
|
|
650
799
|
}
|
|
651
|
-
const
|
|
800
|
+
const rt = /* @__PURE__ */ g(nt, [["render", st]]), it = {
|
|
652
801
|
name: "builder-button",
|
|
653
802
|
props: ["attributes", "text", "link", "openLinkInNewTab"]
|
|
654
803
|
};
|
|
655
|
-
const
|
|
656
|
-
function
|
|
657
|
-
return t.link ? (l(),
|
|
804
|
+
const at = ["href", "target"];
|
|
805
|
+
function ct(e, n, t, o, r, s) {
|
|
806
|
+
return t.link ? (l(), u("a", C({
|
|
658
807
|
key: 0,
|
|
659
808
|
role: "button",
|
|
660
809
|
href: t.link,
|
|
661
810
|
target: t.openLinkInNewTab ? "_blank" : void 0
|
|
662
|
-
}, t.attributes),
|
|
811
|
+
}, t.attributes), W(t.text), 17, at)) : (l(), u("button", C({
|
|
663
812
|
key: 1,
|
|
664
|
-
class: "button-
|
|
665
|
-
}, t.attributes),
|
|
813
|
+
class: "button-361b1o6wv2k"
|
|
814
|
+
}, t.attributes), W(t.text), 17));
|
|
666
815
|
}
|
|
667
|
-
const
|
|
816
|
+
const lt = /* @__PURE__ */ g(it, [["render", ct], ["__scopeId", "data-v-00528171"]]), dt = {
|
|
668
817
|
name: "builder-section-component",
|
|
669
818
|
props: ["attributes", "maxWidth"]
|
|
670
819
|
};
|
|
671
|
-
function
|
|
672
|
-
return l(),
|
|
673
|
-
style:
|
|
674
|
-
|
|
675
|
-
|
|
820
|
+
function ut(e, n, t, o, r, s) {
|
|
821
|
+
return l(), u("section", C({
|
|
822
|
+
style: {
|
|
823
|
+
width: "100%",
|
|
824
|
+
alignSelf: "stretch",
|
|
825
|
+
flexGrow: "1",
|
|
826
|
+
boxSizing: "border-box",
|
|
827
|
+
maxWidth: `${t.maxWidth && typeof t.maxWidth == "number" ? t.maxWidth : 1200}px`,
|
|
828
|
+
display: "flex",
|
|
829
|
+
flexDirection: "column",
|
|
830
|
+
alignItems: "stretch",
|
|
831
|
+
marginLeft: "auto",
|
|
832
|
+
marginRight: "auto"
|
|
833
|
+
}
|
|
676
834
|
}, t.attributes), [
|
|
677
|
-
|
|
835
|
+
R(e.$slots, "default")
|
|
678
836
|
], 16);
|
|
679
837
|
}
|
|
680
|
-
const
|
|
838
|
+
const mt = /* @__PURE__ */ g(dt, [["render", ut]]), pt = {
|
|
681
839
|
name: "builder-fragment-component",
|
|
682
840
|
props: []
|
|
683
841
|
};
|
|
684
|
-
function
|
|
685
|
-
return l(),
|
|
686
|
-
|
|
842
|
+
function ht(e, n, t, o, r, s) {
|
|
843
|
+
return l(), u("span", null, [
|
|
844
|
+
R(e.$slots, "default")
|
|
687
845
|
]);
|
|
688
846
|
}
|
|
689
|
-
const
|
|
847
|
+
const ft = /* @__PURE__ */ g(pt, [["render", ht]]), gt = {
|
|
690
848
|
name: "Core:Button",
|
|
691
849
|
builtIn: !0,
|
|
692
850
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -723,10 +881,10 @@ const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
|
723
881
|
],
|
|
724
882
|
static: !0,
|
|
725
883
|
noWrap: !0
|
|
726
|
-
},
|
|
884
|
+
}, F = (e) => {
|
|
727
885
|
const n = e.toString().trim();
|
|
728
886
|
return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
|
|
729
|
-
},
|
|
887
|
+
}, bt = {
|
|
730
888
|
name: "Columns",
|
|
731
889
|
builtIn: !0,
|
|
732
890
|
inputs: [
|
|
@@ -914,7 +1072,7 @@ const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
|
914
1072
|
]
|
|
915
1073
|
}
|
|
916
1074
|
],
|
|
917
|
-
onChange:
|
|
1075
|
+
onChange: F((e) => {
|
|
918
1076
|
function n() {
|
|
919
1077
|
t.forEach((o) => {
|
|
920
1078
|
o.delete("width");
|
|
@@ -922,9 +1080,9 @@ const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
|
922
1080
|
}
|
|
923
1081
|
const t = e.get("columns");
|
|
924
1082
|
Array.isArray(t) && !!t.find(
|
|
925
|
-
(
|
|
1083
|
+
(r) => r.get("width")
|
|
926
1084
|
) && (!!t.find(
|
|
927
|
-
(
|
|
1085
|
+
(s) => !s.get("width")
|
|
928
1086
|
) || t.reduce((c, a) => c + a.get("width"), 0) !== 100) && n();
|
|
929
1087
|
})
|
|
930
1088
|
},
|
|
@@ -951,14 +1109,14 @@ const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
|
951
1109
|
advanced: !0
|
|
952
1110
|
}
|
|
953
1111
|
]
|
|
954
|
-
},
|
|
1112
|
+
}, yt = {
|
|
955
1113
|
name: "Fragment",
|
|
956
1114
|
static: !0,
|
|
957
1115
|
hidden: !0,
|
|
958
1116
|
builtIn: !0,
|
|
959
1117
|
canHaveChildren: !0,
|
|
960
1118
|
noWrap: !0
|
|
961
|
-
},
|
|
1119
|
+
}, vt = {
|
|
962
1120
|
name: "Image",
|
|
963
1121
|
static: !0,
|
|
964
1122
|
builtIn: !0,
|
|
@@ -978,31 +1136,31 @@ const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
|
978
1136
|
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
979
1137
|
required: !0,
|
|
980
1138
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
981
|
-
onChange:
|
|
1139
|
+
onChange: F((e) => {
|
|
982
1140
|
e.delete("srcset"), e.delete("noWebp");
|
|
983
1141
|
function t(i, c = 6e4) {
|
|
984
|
-
return new Promise((a,
|
|
1142
|
+
return new Promise((a, d) => {
|
|
985
1143
|
const m = document.createElement("img");
|
|
986
1144
|
let p = !1;
|
|
987
1145
|
m.onload = () => {
|
|
988
1146
|
p = !0, a(m);
|
|
989
1147
|
}, m.addEventListener("error", (h) => {
|
|
990
|
-
console.warn("Image load failed", h.error),
|
|
1148
|
+
console.warn("Image load failed", h.error), d(h.error);
|
|
991
1149
|
}), m.src = i, setTimeout(() => {
|
|
992
|
-
p ||
|
|
1150
|
+
p || d(new Error("Image load timed out"));
|
|
993
1151
|
}, c);
|
|
994
1152
|
});
|
|
995
1153
|
}
|
|
996
1154
|
function o(i) {
|
|
997
1155
|
return Math.round(i * 1e3) / 1e3;
|
|
998
1156
|
}
|
|
999
|
-
const
|
|
1000
|
-
if (fetch(
|
|
1157
|
+
const r = e.get("image"), s = e.get("aspectRatio");
|
|
1158
|
+
if (fetch(r).then((i) => i.blob()).then((i) => {
|
|
1001
1159
|
i.type.includes("svg") && e.set("noWebp", !0);
|
|
1002
|
-
}),
|
|
1003
|
-
return t(
|
|
1160
|
+
}), r && (!s || s === 0.7041))
|
|
1161
|
+
return t(r).then((i) => {
|
|
1004
1162
|
const c = e.get("aspectRatio");
|
|
1005
|
-
e.get("image") ===
|
|
1163
|
+
e.get("image") === r && (!c || c === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
1006
1164
|
});
|
|
1007
1165
|
})
|
|
1008
1166
|
},
|
|
@@ -1084,7 +1242,7 @@ const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
|
1084
1242
|
defaultValue: 0.7041
|
|
1085
1243
|
}
|
|
1086
1244
|
]
|
|
1087
|
-
},
|
|
1245
|
+
}, xt = {
|
|
1088
1246
|
name: "Core:Section",
|
|
1089
1247
|
static: !0,
|
|
1090
1248
|
builtIn: !0,
|
|
@@ -1129,7 +1287,7 @@ const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
|
1129
1287
|
}
|
|
1130
1288
|
}
|
|
1131
1289
|
]
|
|
1132
|
-
},
|
|
1290
|
+
}, kt = {
|
|
1133
1291
|
name: "Symbol",
|
|
1134
1292
|
noWrap: !0,
|
|
1135
1293
|
static: !0,
|
|
@@ -1168,7 +1326,7 @@ const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
|
1168
1326
|
type: "boolean"
|
|
1169
1327
|
}
|
|
1170
1328
|
]
|
|
1171
|
-
},
|
|
1329
|
+
}, Ct = {
|
|
1172
1330
|
name: "Text",
|
|
1173
1331
|
static: !0,
|
|
1174
1332
|
builtIn: !0,
|
|
@@ -1188,7 +1346,7 @@ const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
|
1188
1346
|
height: "auto",
|
|
1189
1347
|
textAlign: "center"
|
|
1190
1348
|
}
|
|
1191
|
-
},
|
|
1349
|
+
}, St = {
|
|
1192
1350
|
name: "Video",
|
|
1193
1351
|
canHaveChildren: !0,
|
|
1194
1352
|
builtIn: !0,
|
|
@@ -1290,7 +1448,7 @@ const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
|
1290
1448
|
advanced: !0
|
|
1291
1449
|
}
|
|
1292
1450
|
]
|
|
1293
|
-
},
|
|
1451
|
+
}, _t = {
|
|
1294
1452
|
name: "Embed",
|
|
1295
1453
|
static: !0,
|
|
1296
1454
|
builtIn: !0,
|
|
@@ -1301,7 +1459,7 @@ const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
|
1301
1459
|
required: !0,
|
|
1302
1460
|
defaultValue: "",
|
|
1303
1461
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1304
|
-
onChange:
|
|
1462
|
+
onChange: F((e) => {
|
|
1305
1463
|
const n = e.get("url");
|
|
1306
1464
|
if (n)
|
|
1307
1465
|
return e.set("content", "Loading..."), fetch(
|
|
@@ -1324,11 +1482,11 @@ const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
|
1324
1482
|
hideFromUI: !0
|
|
1325
1483
|
}
|
|
1326
1484
|
]
|
|
1327
|
-
},
|
|
1485
|
+
}, wt = [
|
|
1328
1486
|
"text/javascript",
|
|
1329
1487
|
"application/javascript",
|
|
1330
1488
|
"application/ecmascript"
|
|
1331
|
-
],
|
|
1489
|
+
], It = (e) => wt.includes(e.type), Tt = {
|
|
1332
1490
|
name: "builder-embed",
|
|
1333
1491
|
props: ["content"],
|
|
1334
1492
|
data: () => ({ scriptsInserted: [], scriptsRun: [], ranInitFn: !1 }),
|
|
@@ -1356,7 +1514,7 @@ const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
|
1356
1514
|
this.scriptsInserted.push(t.src);
|
|
1357
1515
|
const o = document.createElement("script");
|
|
1358
1516
|
o.async = !0, o.src = t.src, document.head.appendChild(o);
|
|
1359
|
-
} else if (
|
|
1517
|
+
} else if (It(t) && !this.scriptsRun.includes(t.innerText))
|
|
1360
1518
|
try {
|
|
1361
1519
|
this.scriptsRun.push(t.innerText), new Function(t.innerText)();
|
|
1362
1520
|
} catch (o) {
|
|
@@ -1365,22 +1523,22 @@ const ct = /* @__PURE__ */ g(it, [["render", at]]), lt = {
|
|
|
1365
1523
|
}
|
|
1366
1524
|
}
|
|
1367
1525
|
}
|
|
1368
|
-
},
|
|
1369
|
-
function
|
|
1370
|
-
return l(),
|
|
1526
|
+
}, Rt = ["innerHTML"];
|
|
1527
|
+
function Et(e, n, t, o, r, s) {
|
|
1528
|
+
return l(), u("div", {
|
|
1371
1529
|
class: "builder-embed",
|
|
1372
1530
|
ref: "elem",
|
|
1373
1531
|
innerHTML: t.content
|
|
1374
|
-
}, null, 8,
|
|
1532
|
+
}, null, 8, Rt);
|
|
1375
1533
|
}
|
|
1376
|
-
const
|
|
1377
|
-
function
|
|
1534
|
+
const jt = /* @__PURE__ */ g(Tt, [["render", Et]]);
|
|
1535
|
+
function Ft() {
|
|
1378
1536
|
return f() && window.self !== window.top;
|
|
1379
1537
|
}
|
|
1380
|
-
function
|
|
1381
|
-
return
|
|
1538
|
+
function y() {
|
|
1539
|
+
return Ft() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1382
1540
|
}
|
|
1383
|
-
const
|
|
1541
|
+
const Bt = {
|
|
1384
1542
|
name: "builder-img-component",
|
|
1385
1543
|
props: [
|
|
1386
1544
|
"backgroundSize",
|
|
@@ -1390,10 +1548,10 @@ const St = {
|
|
|
1390
1548
|
"image",
|
|
1391
1549
|
"attributes"
|
|
1392
1550
|
],
|
|
1393
|
-
data: () => ({ isEditing:
|
|
1394
|
-
},
|
|
1395
|
-
function
|
|
1396
|
-
return l(),
|
|
1551
|
+
data: () => ({ isEditing: y })
|
|
1552
|
+
}, At = ["alt", "src"];
|
|
1553
|
+
function $t(e, n, t, o, r, s) {
|
|
1554
|
+
return l(), u("img", C({
|
|
1397
1555
|
style: {
|
|
1398
1556
|
objectFit: t.backgroundSize || "cover",
|
|
1399
1557
|
objectPosition: t.backgroundPosition || "center"
|
|
@@ -1401,9 +1559,9 @@ function Tt(e, n, t, o, s, r) {
|
|
|
1401
1559
|
key: e.isEditing() && t.imgSrc || "default-key",
|
|
1402
1560
|
alt: t.altText,
|
|
1403
1561
|
src: t.imgSrc || t.image
|
|
1404
|
-
}, t.attributes), null, 16,
|
|
1562
|
+
}, t.attributes), null, 16, At);
|
|
1405
1563
|
}
|
|
1406
|
-
const
|
|
1564
|
+
const Ot = /* @__PURE__ */ g(Bt, [["render", $t]]), Pt = {
|
|
1407
1565
|
name: "Raw:Img",
|
|
1408
1566
|
hideFromInsertMenu: !0,
|
|
1409
1567
|
builtIn: !0,
|
|
@@ -1419,7 +1577,7 @@ const Rt = /* @__PURE__ */ g(St, [["render", Tt]]), Et = {
|
|
|
1419
1577
|
],
|
|
1420
1578
|
noWrap: !0,
|
|
1421
1579
|
static: !0
|
|
1422
|
-
},
|
|
1580
|
+
}, Ut = {
|
|
1423
1581
|
name: "builder-custom-code",
|
|
1424
1582
|
props: ["replaceNodes", "code"],
|
|
1425
1583
|
data: () => ({ scriptsInserted: [], scriptsRun: [] }),
|
|
@@ -1464,19 +1622,19 @@ const Rt = /* @__PURE__ */ g(St, [["render", Tt]]), Et = {
|
|
|
1464
1622
|
return n;
|
|
1465
1623
|
}
|
|
1466
1624
|
}
|
|
1467
|
-
},
|
|
1468
|
-
function
|
|
1469
|
-
return l(),
|
|
1625
|
+
}, Vt = ["innerHTML"];
|
|
1626
|
+
function Wt(e, n, t, o, r, s) {
|
|
1627
|
+
return l(), u("div", {
|
|
1470
1628
|
ref: "elem",
|
|
1471
|
-
class:
|
|
1472
|
-
|
|
1629
|
+
class: E(
|
|
1630
|
+
s._classStringToObject(
|
|
1473
1631
|
"builder-custom-code" + (t.replaceNodes ? " replace-nodes" : "")
|
|
1474
1632
|
)
|
|
1475
1633
|
),
|
|
1476
1634
|
innerHTML: t.code
|
|
1477
|
-
}, null, 10,
|
|
1635
|
+
}, null, 10, Vt);
|
|
1478
1636
|
}
|
|
1479
|
-
const
|
|
1637
|
+
const Lt = /* @__PURE__ */ g(Ut, [["render", Wt]]), Nt = {
|
|
1480
1638
|
name: "Custom Code",
|
|
1481
1639
|
static: !0,
|
|
1482
1640
|
builtIn: !0,
|
|
@@ -1503,35 +1661,35 @@ const Ut = /* @__PURE__ */ g(Ft, [["render", At]]), Pt = {
|
|
|
1503
1661
|
advanced: !0
|
|
1504
1662
|
}
|
|
1505
1663
|
]
|
|
1506
|
-
},
|
|
1507
|
-
{ component:
|
|
1508
|
-
{ component:
|
|
1509
|
-
{ component:
|
|
1510
|
-
{ component:
|
|
1511
|
-
{ component:
|
|
1512
|
-
{ component:
|
|
1513
|
-
{ component:
|
|
1514
|
-
{ component:
|
|
1515
|
-
{ component:
|
|
1516
|
-
{ component:
|
|
1517
|
-
{ component:
|
|
1664
|
+
}, Mt = () => [
|
|
1665
|
+
{ component: ye, ...bt },
|
|
1666
|
+
{ component: Te, ...vt },
|
|
1667
|
+
{ component: Ot, ...Pt },
|
|
1668
|
+
{ component: Fe, ...Ct },
|
|
1669
|
+
{ component: Oe, ...St },
|
|
1670
|
+
{ component: rt, ...kt },
|
|
1671
|
+
{ component: lt, ...gt },
|
|
1672
|
+
{ component: mt, ...xt },
|
|
1673
|
+
{ component: ft, ...yt },
|
|
1674
|
+
{ component: jt, ..._t },
|
|
1675
|
+
{ component: Lt, ...Nt }
|
|
1518
1676
|
];
|
|
1519
|
-
function
|
|
1677
|
+
function K({
|
|
1520
1678
|
code: e,
|
|
1521
1679
|
context: n,
|
|
1522
1680
|
state: t,
|
|
1523
1681
|
event: o,
|
|
1524
|
-
isExpression:
|
|
1682
|
+
isExpression: r = !0
|
|
1525
1683
|
}) {
|
|
1526
1684
|
if (e === "") {
|
|
1527
1685
|
console.warn("Skipping evaluation of empty code block.");
|
|
1528
1686
|
return;
|
|
1529
1687
|
}
|
|
1530
|
-
const
|
|
1531
|
-
isEditing:
|
|
1688
|
+
const s = {
|
|
1689
|
+
isEditing: y(),
|
|
1532
1690
|
isBrowser: f(),
|
|
1533
1691
|
isServer: !f()
|
|
1534
|
-
}, c =
|
|
1692
|
+
}, c = r && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
1535
1693
|
try {
|
|
1536
1694
|
return new Function(
|
|
1537
1695
|
"builder",
|
|
@@ -1540,7 +1698,7 @@ function H({
|
|
|
1540
1698
|
"context",
|
|
1541
1699
|
"event",
|
|
1542
1700
|
c
|
|
1543
|
-
)(
|
|
1701
|
+
)(s, s, t, n, o);
|
|
1544
1702
|
} catch (a) {
|
|
1545
1703
|
console.warn(
|
|
1546
1704
|
`Builder custom code error:
|
|
@@ -1553,139 +1711,139 @@ function H({
|
|
|
1553
1711
|
);
|
|
1554
1712
|
}
|
|
1555
1713
|
}
|
|
1556
|
-
function
|
|
1557
|
-
return !f() ||
|
|
1714
|
+
function zt() {
|
|
1715
|
+
return !f() || y() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1558
1716
|
}
|
|
1559
|
-
const
|
|
1560
|
-
function
|
|
1561
|
-
return
|
|
1717
|
+
const te = [];
|
|
1718
|
+
function kn(e, n) {
|
|
1719
|
+
return te.push({ component: e, ...n }), console.warn(
|
|
1562
1720
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1563
1721
|
), e;
|
|
1564
1722
|
}
|
|
1565
|
-
const
|
|
1723
|
+
const Ht = ({
|
|
1566
1724
|
component: e,
|
|
1567
1725
|
...n
|
|
1568
1726
|
}) => ({
|
|
1569
1727
|
type: "builder.registerComponent",
|
|
1570
|
-
data:
|
|
1571
|
-
}),
|
|
1728
|
+
data: Dt(n)
|
|
1729
|
+
}), Kt = (e) => typeof e == "function" ? F(e) : U(e), Dt = ({
|
|
1572
1730
|
inputs: e,
|
|
1573
1731
|
...n
|
|
1574
1732
|
}) => ({
|
|
1575
|
-
...
|
|
1733
|
+
...U(n),
|
|
1576
1734
|
inputs: e == null ? void 0 : e.map(
|
|
1577
1735
|
(t) => Object.entries(t).reduce(
|
|
1578
|
-
(o, [
|
|
1736
|
+
(o, [r, s]) => ({
|
|
1579
1737
|
...o,
|
|
1580
|
-
[
|
|
1738
|
+
[r]: Kt(s)
|
|
1581
1739
|
}),
|
|
1582
1740
|
{}
|
|
1583
1741
|
)
|
|
1584
1742
|
)
|
|
1585
1743
|
});
|
|
1586
|
-
function
|
|
1744
|
+
function qt() {
|
|
1587
1745
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
1588
1746
|
const n = Math.random() * 16 | 0;
|
|
1589
1747
|
return (e == "x" ? n : n & 3 | 8).toString(16);
|
|
1590
1748
|
});
|
|
1591
1749
|
}
|
|
1592
|
-
function
|
|
1593
|
-
return
|
|
1750
|
+
function ne() {
|
|
1751
|
+
return qt().replace(/-/g, "");
|
|
1594
1752
|
}
|
|
1595
|
-
const
|
|
1753
|
+
const oe = "builderSessionId", Gt = async ({ canTrack: e }) => {
|
|
1596
1754
|
if (!e)
|
|
1597
1755
|
return;
|
|
1598
|
-
const n = await
|
|
1599
|
-
name:
|
|
1756
|
+
const n = await X({
|
|
1757
|
+
name: oe,
|
|
1600
1758
|
canTrack: e
|
|
1601
1759
|
});
|
|
1602
|
-
if (
|
|
1760
|
+
if (I(n))
|
|
1603
1761
|
return n;
|
|
1604
1762
|
{
|
|
1605
|
-
const t =
|
|
1606
|
-
|
|
1763
|
+
const t = Jt();
|
|
1764
|
+
Xt({ id: t, canTrack: e });
|
|
1607
1765
|
}
|
|
1608
|
-
},
|
|
1766
|
+
}, Jt = () => ne(), Xt = ({
|
|
1609
1767
|
id: e,
|
|
1610
1768
|
canTrack: n
|
|
1611
|
-
}) =>
|
|
1769
|
+
}) => Y({ name: oe, value: e, canTrack: n }), se = () => f() && typeof localStorage < "u" ? localStorage : void 0, Yt = ({
|
|
1612
1770
|
key: e,
|
|
1613
1771
|
canTrack: n
|
|
1614
1772
|
}) => {
|
|
1615
1773
|
var t;
|
|
1616
1774
|
try {
|
|
1617
|
-
return n ? (t =
|
|
1775
|
+
return n ? (t = se()) == null ? void 0 : t.getItem(e) : void 0;
|
|
1618
1776
|
} catch (o) {
|
|
1619
1777
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1620
1778
|
}
|
|
1621
|
-
},
|
|
1779
|
+
}, Qt = ({
|
|
1622
1780
|
key: e,
|
|
1623
1781
|
canTrack: n,
|
|
1624
1782
|
value: t
|
|
1625
1783
|
}) => {
|
|
1626
1784
|
var o;
|
|
1627
1785
|
try {
|
|
1628
|
-
n && ((o =
|
|
1629
|
-
} catch (
|
|
1630
|
-
console.debug("[LocalStorage] SET error: ",
|
|
1786
|
+
n && ((o = se()) == null || o.setItem(e, t));
|
|
1787
|
+
} catch (r) {
|
|
1788
|
+
console.debug("[LocalStorage] SET error: ", r);
|
|
1631
1789
|
}
|
|
1632
|
-
},
|
|
1790
|
+
}, re = "builderVisitorId", Zt = ({ canTrack: e }) => {
|
|
1633
1791
|
if (!e)
|
|
1634
1792
|
return;
|
|
1635
|
-
const n =
|
|
1636
|
-
key:
|
|
1793
|
+
const n = Yt({
|
|
1794
|
+
key: re,
|
|
1637
1795
|
canTrack: e
|
|
1638
1796
|
});
|
|
1639
|
-
if (
|
|
1797
|
+
if (I(n))
|
|
1640
1798
|
return n;
|
|
1641
1799
|
{
|
|
1642
|
-
const t =
|
|
1643
|
-
|
|
1800
|
+
const t = en();
|
|
1801
|
+
tn({ id: t, canTrack: e });
|
|
1644
1802
|
}
|
|
1645
|
-
},
|
|
1803
|
+
}, en = () => ne(), tn = ({
|
|
1646
1804
|
id: e,
|
|
1647
1805
|
canTrack: n
|
|
1648
|
-
}) =>
|
|
1649
|
-
key:
|
|
1806
|
+
}) => Qt({
|
|
1807
|
+
key: re,
|
|
1650
1808
|
value: e,
|
|
1651
1809
|
canTrack: n
|
|
1652
|
-
}),
|
|
1810
|
+
}), nn = async ({
|
|
1653
1811
|
canTrack: e
|
|
1654
1812
|
}) => {
|
|
1655
1813
|
if (!e)
|
|
1656
1814
|
return { visitorId: void 0, sessionId: void 0 };
|
|
1657
|
-
const n = await
|
|
1815
|
+
const n = await Gt({ canTrack: e }), t = Zt({ canTrack: e });
|
|
1658
1816
|
return {
|
|
1659
1817
|
sessionId: n,
|
|
1660
1818
|
visitorId: t
|
|
1661
1819
|
};
|
|
1662
|
-
},
|
|
1820
|
+
}, on = async ({
|
|
1663
1821
|
type: e,
|
|
1664
1822
|
canTrack: n,
|
|
1665
1823
|
apiKey: t,
|
|
1666
1824
|
metadata: o,
|
|
1667
|
-
...
|
|
1825
|
+
...r
|
|
1668
1826
|
}) => ({
|
|
1669
1827
|
type: e,
|
|
1670
1828
|
data: {
|
|
1671
|
-
...
|
|
1829
|
+
...r,
|
|
1672
1830
|
metadata: JSON.stringify(o),
|
|
1673
|
-
...await
|
|
1831
|
+
...await nn({ canTrack: n }),
|
|
1674
1832
|
ownerId: t
|
|
1675
1833
|
}
|
|
1676
1834
|
});
|
|
1677
|
-
async function
|
|
1835
|
+
async function P(e) {
|
|
1678
1836
|
if (!e.apiKey) {
|
|
1679
1837
|
console.error(
|
|
1680
1838
|
"[Builder.io]: Missing API key for track call. Please provide your API key."
|
|
1681
1839
|
);
|
|
1682
1840
|
return;
|
|
1683
1841
|
}
|
|
1684
|
-
if (!!e.canTrack && !
|
|
1842
|
+
if (!!e.canTrack && !y() && !!(f() || j === "reactNative"))
|
|
1685
1843
|
return fetch("https://builder.io/api/v1/track", {
|
|
1686
1844
|
method: "POST",
|
|
1687
1845
|
body: JSON.stringify({
|
|
1688
|
-
events: [await
|
|
1846
|
+
events: [await on(e)]
|
|
1689
1847
|
}),
|
|
1690
1848
|
headers: {
|
|
1691
1849
|
"content-type": "application/json"
|
|
@@ -1695,21 +1853,21 @@ async function U(e) {
|
|
|
1695
1853
|
console.error("Failed to track: ", n);
|
|
1696
1854
|
});
|
|
1697
1855
|
}
|
|
1698
|
-
const
|
|
1856
|
+
const Cn = (e) => P({ ...e, canTrack: !0 }), sn = () => Promise.resolve().then(() => ie).then((e) => e.default).catch((e) => {
|
|
1699
1857
|
throw console.error(
|
|
1700
1858
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
1701
1859
|
e
|
|
1702
1860
|
), e;
|
|
1703
|
-
}),
|
|
1861
|
+
}), rn = () => import("./render-styles.f5323f3c.js").then((e) => e.default).catch((e) => {
|
|
1704
1862
|
throw console.error(
|
|
1705
1863
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
1706
1864
|
e
|
|
1707
1865
|
), e;
|
|
1708
|
-
}),
|
|
1866
|
+
}), an = {
|
|
1709
1867
|
name: "render-content",
|
|
1710
1868
|
components: {
|
|
1711
|
-
RenderContentStyles: x(
|
|
1712
|
-
RenderBlocks: x(
|
|
1869
|
+
RenderContentStyles: x(rn),
|
|
1870
|
+
RenderBlocks: x(sn)
|
|
1713
1871
|
},
|
|
1714
1872
|
props: [
|
|
1715
1873
|
"content",
|
|
@@ -1726,6 +1884,7 @@ const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1726
1884
|
forceReRenderCount: 0,
|
|
1727
1885
|
overrideContent: null,
|
|
1728
1886
|
update: 0,
|
|
1887
|
+
useBreakpoints: null,
|
|
1729
1888
|
overrideState: {}
|
|
1730
1889
|
}),
|
|
1731
1890
|
provide() {
|
|
@@ -1755,7 +1914,7 @@ const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1755
1914
|
if (this.apiKey || console.error(
|
|
1756
1915
|
"[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
1757
1916
|
), f()) {
|
|
1758
|
-
if (
|
|
1917
|
+
if (y() && (this.forceReRenderCount = this.forceReRenderCount + 1, le(), de({
|
|
1759
1918
|
...this.locale ? {
|
|
1760
1919
|
locale: this.locale
|
|
1761
1920
|
} : {},
|
|
@@ -1764,16 +1923,16 @@ const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1764
1923
|
} : {}
|
|
1765
1924
|
}), Object.values(this.allRegisteredComponents).forEach(
|
|
1766
1925
|
(t) => {
|
|
1767
|
-
var
|
|
1768
|
-
const o =
|
|
1769
|
-
(
|
|
1926
|
+
var r;
|
|
1927
|
+
const o = Ht(t);
|
|
1928
|
+
(r = window.parent) == null || r.postMessage(o, "*");
|
|
1770
1929
|
}
|
|
1771
1930
|
), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
1772
1931
|
"builder:component:stateChangeListenerActivated",
|
|
1773
1932
|
this.emitStateUpdate
|
|
1774
1933
|
)), this.useContent) {
|
|
1775
1934
|
const t = (e = this.useContent) == null ? void 0 : e.testVariationId, o = (n = this.useContent) == null ? void 0 : n.id;
|
|
1776
|
-
|
|
1935
|
+
P({
|
|
1777
1936
|
type: "impression",
|
|
1778
1937
|
canTrack: this.canTrackToUse,
|
|
1779
1938
|
contentId: o,
|
|
@@ -1781,15 +1940,15 @@ const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1781
1940
|
variationId: t !== o ? t : void 0
|
|
1782
1941
|
});
|
|
1783
1942
|
}
|
|
1784
|
-
if (
|
|
1943
|
+
if (zt()) {
|
|
1785
1944
|
const t = new URL(location.href).searchParams;
|
|
1786
1945
|
if (this.model && t.get("builder.preview") === this.model) {
|
|
1787
1946
|
const o = t.get("apiKey") || t.get("builder.space");
|
|
1788
|
-
o &&
|
|
1947
|
+
o && ee({
|
|
1789
1948
|
model: this.model,
|
|
1790
1949
|
apiKey: o
|
|
1791
|
-
}).then((
|
|
1792
|
-
|
|
1950
|
+
}).then((r) => {
|
|
1951
|
+
r && (this.overrideContent = r);
|
|
1793
1952
|
});
|
|
1794
1953
|
}
|
|
1795
1954
|
}
|
|
@@ -1815,7 +1974,7 @@ const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1815
1974
|
},
|
|
1816
1975
|
computed: {
|
|
1817
1976
|
useContent() {
|
|
1818
|
-
var n, t;
|
|
1977
|
+
var n, t, o, r, s, i, c, a;
|
|
1819
1978
|
return !this.content && !this.overrideContent ? void 0 : {
|
|
1820
1979
|
...this.content,
|
|
1821
1980
|
...this.overrideContent,
|
|
@@ -1823,6 +1982,11 @@ const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1823
1982
|
...(n = this.content) == null ? void 0 : n.data,
|
|
1824
1983
|
...this.data,
|
|
1825
1984
|
...(t = this.overrideContent) == null ? void 0 : t.data
|
|
1985
|
+
},
|
|
1986
|
+
meta: {
|
|
1987
|
+
...(o = this.content) == null ? void 0 : o.meta,
|
|
1988
|
+
...(r = this.overrideContent) == null ? void 0 : r.meta,
|
|
1989
|
+
breakpoints: this.useBreakpoints || ((i = (s = this.overrideContent) == null ? void 0 : s.meta) == null ? void 0 : i.breakpoints) || ((a = (c = this.content) == null ? void 0 : c.meta) == null ? void 0 : a.breakpoints)
|
|
1826
1990
|
}
|
|
1827
1991
|
};
|
|
1828
1992
|
},
|
|
@@ -1845,8 +2009,8 @@ const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1845
2009
|
},
|
|
1846
2010
|
allRegisteredComponents() {
|
|
1847
2011
|
return [
|
|
1848
|
-
...
|
|
1849
|
-
...
|
|
2012
|
+
...Mt(),
|
|
2013
|
+
...te,
|
|
1850
2014
|
...this.customComponents || []
|
|
1851
2015
|
].reduce(
|
|
1852
2016
|
(t, o) => ({
|
|
@@ -1860,9 +2024,9 @@ const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1860
2024
|
return {};
|
|
1861
2025
|
},
|
|
1862
2026
|
shouldRenderContentStyles() {
|
|
1863
|
-
var e, n, t, o,
|
|
2027
|
+
var e, n, t, o, r;
|
|
1864
2028
|
return Boolean(
|
|
1865
|
-
(((n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.cssCode) || ((
|
|
2029
|
+
(((n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.cssCode) || ((r = (o = (t = this.useContent) == null ? void 0 : t.data) == null ? void 0 : o.customFonts) == null ? void 0 : r.length)) && j !== "reactNative"
|
|
1866
2030
|
);
|
|
1867
2031
|
},
|
|
1868
2032
|
onUpdateHook0() {
|
|
@@ -1886,12 +2050,20 @@ const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1886
2050
|
},
|
|
1887
2051
|
methods: {
|
|
1888
2052
|
processMessage(e) {
|
|
2053
|
+
var t;
|
|
1889
2054
|
const { data: n } = e;
|
|
1890
2055
|
if (n)
|
|
1891
2056
|
switch (n.type) {
|
|
2057
|
+
case "builder.configureSdk": {
|
|
2058
|
+
const o = n.data, { breakpoints: r, contentId: s } = o;
|
|
2059
|
+
if (!s || s !== ((t = this.useContent) == null ? void 0 : t.id))
|
|
2060
|
+
return;
|
|
2061
|
+
this.useBreakpoints = r, this.forceReRenderCount = this.forceReRenderCount + 1;
|
|
2062
|
+
break;
|
|
2063
|
+
}
|
|
1892
2064
|
case "builder.contentUpdate": {
|
|
1893
|
-
const
|
|
1894
|
-
|
|
2065
|
+
const o = n.data, r = o.key || o.alias || o.entry || o.modelName, s = o.data;
|
|
2066
|
+
r === this.model && (this.overrideContent = s, this.forceReRenderCount = this.forceReRenderCount + 1);
|
|
1895
2067
|
break;
|
|
1896
2068
|
}
|
|
1897
2069
|
}
|
|
@@ -1899,7 +2071,7 @@ const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1899
2071
|
evaluateJsCode() {
|
|
1900
2072
|
var n, t;
|
|
1901
2073
|
const e = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.jsCode;
|
|
1902
|
-
e &&
|
|
2074
|
+
e && K({
|
|
1903
2075
|
code: e,
|
|
1904
2076
|
context: this.contextContext,
|
|
1905
2077
|
state: this.contentState
|
|
@@ -1908,20 +2080,20 @@ const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1908
2080
|
onClick(e) {
|
|
1909
2081
|
var n, t;
|
|
1910
2082
|
if (this.useContent) {
|
|
1911
|
-
const o = (n = this.useContent) == null ? void 0 : n.testVariationId,
|
|
1912
|
-
|
|
2083
|
+
const o = (n = this.useContent) == null ? void 0 : n.testVariationId, r = (t = this.useContent) == null ? void 0 : t.id;
|
|
2084
|
+
P({
|
|
1913
2085
|
type: "click",
|
|
1914
2086
|
canTrack: this.canTrackToUse,
|
|
1915
|
-
contentId:
|
|
2087
|
+
contentId: r,
|
|
1916
2088
|
apiKey: this.apiKey,
|
|
1917
|
-
variationId: o !==
|
|
2089
|
+
variationId: o !== r ? o : void 0
|
|
1918
2090
|
});
|
|
1919
2091
|
}
|
|
1920
2092
|
},
|
|
1921
2093
|
evalExpression(e) {
|
|
1922
2094
|
return e.replace(
|
|
1923
2095
|
/{{([^}]+)}}/g,
|
|
1924
|
-
(n, t) =>
|
|
2096
|
+
(n, t) => K({
|
|
1925
2097
|
code: t,
|
|
1926
2098
|
context: this.contextContext,
|
|
1927
2099
|
state: this.contentState
|
|
@@ -1929,7 +2101,7 @@ const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1929
2101
|
);
|
|
1930
2102
|
},
|
|
1931
2103
|
handleRequest({ url: e, key: n }) {
|
|
1932
|
-
|
|
2104
|
+
J(e).then((t) => t.json()).then((t) => {
|
|
1933
2105
|
const o = {
|
|
1934
2106
|
...this.overrideState,
|
|
1935
2107
|
[n]: t
|
|
@@ -1942,18 +2114,18 @@ const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1942
2114
|
runHttpRequests() {
|
|
1943
2115
|
var n, t, o;
|
|
1944
2116
|
const e = (o = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.httpRequests) != null ? o : {};
|
|
1945
|
-
Object.entries(e).forEach(([
|
|
1946
|
-
if (
|
|
1947
|
-
const i = this.evalExpression(
|
|
2117
|
+
Object.entries(e).forEach(([r, s]) => {
|
|
2118
|
+
if (s && (!this.httpReqsData[r] || y())) {
|
|
2119
|
+
const i = this.evalExpression(s);
|
|
1948
2120
|
this.handleRequest({
|
|
1949
2121
|
url: i,
|
|
1950
|
-
key:
|
|
2122
|
+
key: r
|
|
1951
2123
|
});
|
|
1952
2124
|
}
|
|
1953
2125
|
});
|
|
1954
2126
|
},
|
|
1955
2127
|
emitStateUpdate() {
|
|
1956
|
-
|
|
2128
|
+
y() && window.dispatchEvent(
|
|
1957
2129
|
new CustomEvent("builder:component:stateChange", {
|
|
1958
2130
|
detail: {
|
|
1959
2131
|
state: this.contentState,
|
|
@@ -1965,46 +2137,46 @@ const pn = (e) => U({ ...e, canTrack: !0 }), Yt = () => Promise.resolve().then((
|
|
|
1965
2137
|
);
|
|
1966
2138
|
}
|
|
1967
2139
|
}
|
|
1968
|
-
},
|
|
1969
|
-
function
|
|
1970
|
-
var a,
|
|
1971
|
-
const i =
|
|
1972
|
-
return
|
|
2140
|
+
}, cn = ["builder-content-id", "builder-model"];
|
|
2141
|
+
function ln(e, n, t, o, r, s) {
|
|
2142
|
+
var a, d, m, p, h, v, V;
|
|
2143
|
+
const i = k("render-content-styles"), c = k("render-blocks");
|
|
2144
|
+
return s.useContent ? (l(), u("div", {
|
|
1973
2145
|
key: 0,
|
|
1974
2146
|
ref: "elementRef",
|
|
1975
|
-
onClick: n[0] || (n[0] = (
|
|
1976
|
-
"builder-content-id": (a =
|
|
2147
|
+
onClick: n[0] || (n[0] = (ae) => s.onClick(ae)),
|
|
2148
|
+
"builder-content-id": (a = s.useContent) == null ? void 0 : a.id,
|
|
1977
2149
|
"builder-model": t.model
|
|
1978
2150
|
}, [
|
|
1979
|
-
|
|
2151
|
+
s.shouldRenderContentStyles ? (l(), w(i, {
|
|
1980
2152
|
key: 0,
|
|
1981
|
-
cssCode: (m = (
|
|
1982
|
-
customFonts: (h = (p =
|
|
1983
|
-
}, null, 8, ["cssCode", "customFonts"])) :
|
|
1984
|
-
(l(),
|
|
1985
|
-
blocks: (
|
|
2153
|
+
cssCode: (m = (d = s.useContent) == null ? void 0 : d.data) == null ? void 0 : m.cssCode,
|
|
2154
|
+
customFonts: (h = (p = s.useContent) == null ? void 0 : p.data) == null ? void 0 : h.customFonts
|
|
2155
|
+
}, null, 8, ["cssCode", "customFonts"])) : b("", !0),
|
|
2156
|
+
(l(), w(c, {
|
|
2157
|
+
blocks: (V = (v = s.useContent) == null ? void 0 : v.data) == null ? void 0 : V.blocks,
|
|
1986
2158
|
key: e.forceReRenderCount
|
|
1987
2159
|
}, null, 8, ["blocks"]))
|
|
1988
|
-
], 8,
|
|
2160
|
+
], 8, cn)) : b("", !0);
|
|
1989
2161
|
}
|
|
1990
|
-
const
|
|
2162
|
+
const dn = /* @__PURE__ */ g(an, [["render", ln]]), un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1991
2163
|
__proto__: null,
|
|
1992
|
-
default:
|
|
1993
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2164
|
+
default: dn
|
|
2165
|
+
}, Symbol.toStringTag, { value: "Module" })), mn = () => import("./block-styles.8b54c0ff.js").then((e) => e.default).catch((e) => {
|
|
1994
2166
|
throw console.error(
|
|
1995
2167
|
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
1996
2168
|
e
|
|
1997
2169
|
), e;
|
|
1998
|
-
}),
|
|
2170
|
+
}), pn = () => import("./render-block.ac15669c.js").then((e) => e.default).catch((e) => {
|
|
1999
2171
|
throw console.error(
|
|
2000
2172
|
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
2001
2173
|
e
|
|
2002
2174
|
), e;
|
|
2003
|
-
}),
|
|
2175
|
+
}), hn = {
|
|
2004
2176
|
name: "render-blocks",
|
|
2005
2177
|
components: {
|
|
2006
|
-
RenderBlock: x(
|
|
2007
|
-
BlockStyles: x(
|
|
2178
|
+
RenderBlock: x(pn),
|
|
2179
|
+
BlockStyles: x(mn)
|
|
2008
2180
|
},
|
|
2009
2181
|
props: ["blocks", "parent", "path", "styleProp"],
|
|
2010
2182
|
inject: {
|
|
@@ -2019,7 +2191,7 @@ const nn = /* @__PURE__ */ g(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.
|
|
|
2019
2191
|
methods: {
|
|
2020
2192
|
onClick() {
|
|
2021
2193
|
var e, n;
|
|
2022
|
-
|
|
2194
|
+
y() && !((e = this.blocks) != null && e.length) && ((n = window.parent) == null || n.postMessage(
|
|
2023
2195
|
{
|
|
2024
2196
|
type: "builder.clickEmptyBlocks",
|
|
2025
2197
|
data: {
|
|
@@ -2032,7 +2204,7 @@ const nn = /* @__PURE__ */ g(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.
|
|
|
2032
2204
|
},
|
|
2033
2205
|
onMouseEnter() {
|
|
2034
2206
|
var e, n;
|
|
2035
|
-
|
|
2207
|
+
y() && !((e = this.blocks) != null && e.length) && ((n = window.parent) == null || n.postMessage(
|
|
2036
2208
|
{
|
|
2037
2209
|
type: "builder.hoverEmptyBlocks",
|
|
2038
2210
|
data: {
|
|
@@ -2054,74 +2226,77 @@ const nn = /* @__PURE__ */ g(Zt, [["render", tn]]), on = /* @__PURE__ */ Object.
|
|
|
2054
2226
|
}
|
|
2055
2227
|
}
|
|
2056
2228
|
};
|
|
2057
|
-
const
|
|
2058
|
-
function
|
|
2059
|
-
const i =
|
|
2060
|
-
return l(),
|
|
2061
|
-
class:
|
|
2229
|
+
const fn = ["builder-path", "builder-parent-id", "dataSet"];
|
|
2230
|
+
function gn(e, n, t, o, r, s) {
|
|
2231
|
+
const i = k("render-block"), c = k("block-styles");
|
|
2232
|
+
return l(), u("div", {
|
|
2233
|
+
class: E(s._classStringToObject(s.className + " div-4o9pb21oca6")),
|
|
2062
2234
|
"builder-path": t.path,
|
|
2063
2235
|
"builder-parent-id": t.parent,
|
|
2064
2236
|
dataSet: {
|
|
2065
|
-
class:
|
|
2237
|
+
class: s.className
|
|
2066
2238
|
},
|
|
2067
|
-
style:
|
|
2068
|
-
onClick: n[0] || (n[0] = (a) =>
|
|
2069
|
-
onMouseenter: n[1] || (n[1] = (a) =>
|
|
2239
|
+
style: _(t.styleProp),
|
|
2240
|
+
onClick: n[0] || (n[0] = (a) => s.onClick()),
|
|
2241
|
+
onMouseenter: n[1] || (n[1] = (a) => s.onMouseEnter())
|
|
2070
2242
|
}, [
|
|
2071
|
-
t.blocks ? (l(!0),
|
|
2243
|
+
t.blocks ? (l(!0), u(T, { key: 0 }, $(t.blocks, (a, d) => (l(), w(i, {
|
|
2072
2244
|
key: "render-block-" + a.id,
|
|
2073
2245
|
block: a,
|
|
2074
|
-
context:
|
|
2075
|
-
}, null, 8, ["block", "context"]))), 128)) :
|
|
2076
|
-
t.blocks ? (l(!0),
|
|
2246
|
+
context: s.builderContext
|
|
2247
|
+
}, null, 8, ["block", "context"]))), 128)) : b("", !0),
|
|
2248
|
+
t.blocks ? (l(!0), u(T, { key: 1 }, $(t.blocks, (a, d) => (l(), w(c, {
|
|
2077
2249
|
key: "block-style-" + a.id,
|
|
2078
2250
|
block: a,
|
|
2079
|
-
context:
|
|
2080
|
-
}, null, 8, ["block", "context"]))), 128)) :
|
|
2081
|
-
], 46,
|
|
2251
|
+
context: s.builderContext
|
|
2252
|
+
}, null, 8, ["block", "context"]))), 128)) : b("", !0)
|
|
2253
|
+
], 46, fn);
|
|
2082
2254
|
}
|
|
2083
|
-
const
|
|
2255
|
+
const bn = /* @__PURE__ */ g(hn, [["render", gn], ["__scopeId", "data-v-9786df38"]]), ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2084
2256
|
__proto__: null,
|
|
2085
|
-
default:
|
|
2086
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2087
|
-
function
|
|
2257
|
+
default: bn
|
|
2258
|
+
}, Symbol.toStringTag, { value: "Module" })), D = {};
|
|
2259
|
+
function Sn(e) {
|
|
2088
2260
|
if (f()) {
|
|
2089
|
-
Object.assign(
|
|
2261
|
+
Object.assign(D, e);
|
|
2090
2262
|
const n = {
|
|
2091
2263
|
type: "builder.settingsChange",
|
|
2092
|
-
data:
|
|
2264
|
+
data: D
|
|
2093
2265
|
};
|
|
2094
2266
|
parent.postMessage(n, "*");
|
|
2095
2267
|
}
|
|
2096
2268
|
}
|
|
2097
2269
|
export {
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2270
|
+
lt as B,
|
|
2271
|
+
ye as C,
|
|
2272
|
+
ft as F,
|
|
2273
|
+
Te as I,
|
|
2274
|
+
rt as S,
|
|
2275
|
+
j as T,
|
|
2276
|
+
Oe as V,
|
|
2105
2277
|
g as _,
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2278
|
+
vn as a,
|
|
2279
|
+
pe as b,
|
|
2280
|
+
xn as c,
|
|
2281
|
+
Fe as d,
|
|
2282
|
+
K as e,
|
|
2283
|
+
U as f,
|
|
2284
|
+
ue as g,
|
|
2285
|
+
mt as h,
|
|
2286
|
+
bn as i,
|
|
2287
|
+
y as j,
|
|
2288
|
+
zt as k,
|
|
2289
|
+
te as l,
|
|
2290
|
+
kn as m,
|
|
2291
|
+
Ht as n,
|
|
2292
|
+
ce as o,
|
|
2293
|
+
ee as p,
|
|
2294
|
+
et as q,
|
|
2295
|
+
dn as r,
|
|
2296
|
+
Sn as s,
|
|
2297
|
+
Cn as t,
|
|
2298
|
+
Xe as u,
|
|
2299
|
+
Ye as v,
|
|
2300
|
+
Qe as w,
|
|
2301
|
+
Z as x
|
|
2127
2302
|
};
|