@builder.io/sdk-vue 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/_vue2/dist/{block-styles.426683e4.cjs → block-styles.0c522549.cjs} +1 -1
- package/packages/_vue2/dist/{block-styles.d52d65f7.js → block-styles.cf0de18b.js} +3 -3
- package/packages/{_vue3/dist/get-processed-block.7681705a.cjs → _vue2/dist/get-processed-block.100e890c.cjs} +1 -1
- package/packages/{_vue3/dist/get-processed-block.aed48c68.js → _vue2/dist/get-processed-block.2cf53db5.js} +1 -1
- package/packages/_vue2/dist/{index.3403bf5e.js → index.24f01638.js} +899 -817
- package/packages/_vue2/dist/index.e93e18ce.cjs +30 -0
- package/packages/_vue2/dist/{render-block.5069cc94.js → render-block.a8683c91.js} +40 -29
- package/packages/_vue2/dist/render-block.d4d3c07e.cjs +3 -0
- package/packages/_vue2/dist/{render-component.697eb0f0.cjs → render-component.1220773f.cjs} +1 -1
- package/packages/_vue2/dist/{render-component.5e59a26d.js → render-component.aafdd999.js} +3 -3
- package/packages/_vue2/dist/render-inlined-styles.362de669.cjs +1 -0
- package/packages/_vue2/dist/{render-inlined-styles.c4ede85b.js → render-inlined-styles.e770caf6.js} +4 -4
- package/packages/_vue2/dist/{render-repeated-block.88a83bb3.js → render-repeated-block.3fa28a72.js} +3 -2
- package/packages/_vue2/dist/render-repeated-block.8881a0f1.cjs +1 -0
- package/packages/_vue2/dist/render-styles.239d91cf.js +73 -0
- package/packages/_vue2/dist/render-styles.956991f6.cjs +18 -0
- package/packages/_vue2/dist/sdk.cjs +1 -1
- package/packages/_vue2/dist/sdk.js +1 -1
- package/packages/_vue2/dist/src/blocks/button/button.vue.d.ts +3 -0
- package/packages/_vue2/dist/src/blocks/columns/columns.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/blocks/img/img.vue.d.ts +3 -0
- package/packages/_vue2/dist/src/blocks/section/section.vue.d.ts +3 -0
- package/packages/_vue2/dist/src/blocks/symbol/symbol.vue.d.ts +13 -17
- package/packages/_vue2/dist/src/components/render-block/render-block.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-block/render-component.vue.d.ts +9 -1
- package/packages/_vue2/dist/src/components/render-block/render-repeated-block.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-blocks.vue.d.ts +1 -0
- package/packages/_vue2/dist/src/components/render-content/components/render-styles.helpers.d.ts +15 -0
- package/packages/_vue2/dist/src/components/render-content/components/render-styles.vue.d.ts +1 -9
- package/packages/_vue2/dist/src/components/render-content/render-content.helpers.d.ts +7 -0
- package/packages/_vue2/dist/src/components/render-content/render-content.types.d.ts +27 -0
- package/packages/_vue2/dist/src/components/render-content/render-content.vue.d.ts +11 -31
- package/packages/_vue2/dist/src/context/builder.context.d.ts +1 -0
- package/packages/_vue2/dist/src/context/types.d.ts +1 -0
- package/packages/_vue2/dist/src/index-helpers/blocks-exports.d.ts +6 -6
- package/packages/_vue2/dist/src/types/builder-content.d.ts +1 -2
- package/packages/_vue2/dist/style.css +1 -1
- package/packages/_vue3/dist/{block-styles.b81e8e00.cjs → block-styles.666ee81f.cjs} +1 -1
- package/packages/_vue3/dist/{block-styles.b1836f48.js → block-styles.d05bbb48.js} +3 -3
- package/packages/{_vue2/dist/get-processed-block.b1e9044b.js → _vue3/dist/get-processed-block.37c65d27.js} +1 -1
- package/packages/{_vue2/dist/get-processed-block.25e77989.cjs → _vue3/dist/get-processed-block.77446c19.cjs} +1 -1
- package/packages/_vue3/dist/index.6b1bc5ee.cjs +30 -0
- package/packages/_vue3/dist/{index.dfbf4ad8.js → index.b1080e36.js} +914 -832
- package/packages/_vue3/dist/{render-block.bd00521b.js → render-block.11e5a0d0.js} +42 -31
- package/packages/_vue3/dist/render-block.c674f764.cjs +3 -0
- package/packages/_vue3/dist/{render-component.7b0412f1.cjs → render-component.2455895f.cjs} +1 -1
- package/packages/_vue3/dist/{render-component.98c61732.js → render-component.3397c957.js} +3 -3
- package/packages/_vue3/dist/render-inlined-styles.17e85155.cjs +1 -0
- package/packages/_vue3/dist/render-inlined-styles.ca824cfb.js +32 -0
- package/packages/_vue3/dist/render-repeated-block.1b978fce.cjs +1 -0
- package/packages/_vue3/dist/{render-repeated-block.c0e57489.js → render-repeated-block.645dd73e.js} +3 -2
- package/packages/_vue3/dist/render-styles.4d7ca33e.cjs +18 -0
- package/packages/_vue3/dist/render-styles.f59a1cf7.js +67 -0
- package/packages/_vue3/dist/sdk.cjs +1 -1
- package/packages/_vue3/dist/sdk.js +1 -1
- package/packages/_vue3/dist/src/blocks/button/button.vue.d.ts +3 -0
- package/packages/_vue3/dist/src/blocks/img/img.vue.d.ts +3 -0
- package/packages/_vue3/dist/src/blocks/section/section.vue.d.ts +3 -0
- package/packages/_vue3/dist/src/blocks/symbol/symbol.vue.d.ts +12 -17
- package/packages/_vue3/dist/src/components/render-block/render-component.vue.d.ts +8 -1
- package/packages/_vue3/dist/src/components/render-content/components/render-styles.helpers.d.ts +15 -0
- package/packages/_vue3/dist/src/components/render-content/components/render-styles.vue.d.ts +1 -9
- package/packages/_vue3/dist/src/components/render-content/render-content.helpers.d.ts +7 -0
- package/packages/_vue3/dist/src/components/render-content/render-content.types.d.ts +27 -0
- package/packages/_vue3/dist/src/components/render-content/render-content.vue.d.ts +10 -31
- package/packages/_vue3/dist/src/context/builder.context.d.ts +1 -0
- package/packages/_vue3/dist/src/context/types.d.ts +1 -0
- package/packages/_vue3/dist/src/index-helpers/blocks-exports.d.ts +6 -6
- package/packages/_vue3/dist/src/types/builder-content.d.ts +1 -2
- package/packages/_vue3/dist/style.css +1 -1
- package/packages/_vue2/dist/index.57d3bafb.cjs +0 -30
- package/packages/_vue2/dist/render-block.93fcfc84.cjs +0 -3
- package/packages/_vue2/dist/render-inlined-styles.d6107d6b.cjs +0 -1
- package/packages/_vue2/dist/render-repeated-block.82ac5fdf.cjs +0 -1
- package/packages/_vue2/dist/render-styles.78a78d13.js +0 -70
- package/packages/_vue2/dist/render-styles.95a1cf8d.cjs +0 -17
- package/packages/_vue3/dist/index.0bf7b9df.cjs +0 -30
- package/packages/_vue3/dist/render-block.7d6c9594.cjs +0 -3
- package/packages/_vue3/dist/render-inlined-styles.dc458558.js +0 -32
- package/packages/_vue3/dist/render-inlined-styles.fb31ff26.cjs +0 -1
- package/packages/_vue3/dist/render-repeated-block.dc67945a.cjs +0 -1
- package/packages/_vue3/dist/render-styles.c2fe7073.cjs +0 -17
- package/packages/_vue3/dist/render-styles.c739f8f5.js +0 -64
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
const v = "vue2";
|
|
2
|
-
function
|
|
2
|
+
function p() {
|
|
3
3
|
return typeof window < "u" && typeof document < "u";
|
|
4
4
|
}
|
|
5
5
|
const R = {};
|
|
6
6
|
function J(t, e) {
|
|
7
7
|
let n = R[t];
|
|
8
|
-
if (n || (n = R[t] = []), n.push(e),
|
|
8
|
+
if (n || (n = R[t] = []), n.push(e), p()) {
|
|
9
9
|
const o = {
|
|
10
10
|
type: "builder.register",
|
|
11
11
|
data: {
|
|
@@ -39,7 +39,7 @@ const X = () => {
|
|
|
39
39
|
let T = !1;
|
|
40
40
|
const Y = (t = {}) => {
|
|
41
41
|
var e, n;
|
|
42
|
-
T || (T = !0,
|
|
42
|
+
T || (T = !0, p() && ((e = window.parent) == null || e.postMessage(
|
|
43
43
|
{
|
|
44
44
|
type: "builder.sdkInfo",
|
|
45
45
|
data: {
|
|
@@ -63,32 +63,32 @@ const Y = (t = {}) => {
|
|
|
63
63
|
if (!!(o != null && o.type))
|
|
64
64
|
switch (o.type) {
|
|
65
65
|
case "builder.evaluate": {
|
|
66
|
-
const
|
|
67
|
-
let
|
|
66
|
+
const a = o.data.text, i = o.data.arguments || [], l = o.data.id, c = new Function(a);
|
|
67
|
+
let d, m = null;
|
|
68
68
|
try {
|
|
69
|
-
|
|
70
|
-
} catch (
|
|
71
|
-
|
|
69
|
+
d = c.apply(null, i);
|
|
70
|
+
} catch (u) {
|
|
71
|
+
m = u;
|
|
72
72
|
}
|
|
73
|
-
|
|
73
|
+
m ? (s = window.parent) == null || s.postMessage(
|
|
74
74
|
{
|
|
75
75
|
type: "builder.evaluateError",
|
|
76
|
-
data: { id:
|
|
76
|
+
data: { id: l, error: m.message }
|
|
77
77
|
},
|
|
78
78
|
"*"
|
|
79
|
-
) :
|
|
79
|
+
) : d && typeof d.then == "function" ? d.then((u) => {
|
|
80
80
|
var g;
|
|
81
81
|
(g = window.parent) == null || g.postMessage(
|
|
82
82
|
{
|
|
83
83
|
type: "builder.evaluateResult",
|
|
84
|
-
data: { id:
|
|
84
|
+
data: { id: l, result: u }
|
|
85
85
|
},
|
|
86
86
|
"*"
|
|
87
87
|
);
|
|
88
88
|
}).catch(console.error) : (r = window.parent) == null || r.postMessage(
|
|
89
89
|
{
|
|
90
90
|
type: "builder.evaluateResult",
|
|
91
|
-
data: { result:
|
|
91
|
+
data: { result: d, id: l }
|
|
92
92
|
},
|
|
93
93
|
"*"
|
|
94
94
|
);
|
|
@@ -96,7 +96,63 @@ const Y = (t = {}) => {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
})));
|
|
99
|
-
},
|
|
99
|
+
}, Q = {
|
|
100
|
+
name: "builder-button",
|
|
101
|
+
props: ["attributes", "text", "link", "openLinkInNewTab"],
|
|
102
|
+
methods: {
|
|
103
|
+
filterAttrs: function(e = {}, n) {
|
|
104
|
+
const o = "v-on:", s = (i) => i.startsWith(o), r = (i) => !i.startsWith(o), a = (i) => i.replace(o, "");
|
|
105
|
+
return Object.keys(e).filter(n ? s : r).reduce(
|
|
106
|
+
(i, l) => ({
|
|
107
|
+
...i,
|
|
108
|
+
[a(l)]: e[l]
|
|
109
|
+
}),
|
|
110
|
+
{}
|
|
111
|
+
);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
function h(t, e, n, o, s, r, a, i) {
|
|
116
|
+
var l = typeof t == "function" ? t.options : t;
|
|
117
|
+
e && (l.render = e, l.staticRenderFns = n, l._compiled = !0), o && (l.functional = !0), r && (l._scopeId = "data-v-" + r);
|
|
118
|
+
var c;
|
|
119
|
+
if (a ? (c = function(u) {
|
|
120
|
+
u = u || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !u && typeof __VUE_SSR_CONTEXT__ < "u" && (u = __VUE_SSR_CONTEXT__), s && s.call(this, u), u && u._registeredComponents && u._registeredComponents.add(a);
|
|
121
|
+
}, l._ssrRegister = c) : s && (c = i ? function() {
|
|
122
|
+
s.call(
|
|
123
|
+
this,
|
|
124
|
+
(l.functional ? this.parent : this).$root.$options.shadowRoot
|
|
125
|
+
);
|
|
126
|
+
} : s), c)
|
|
127
|
+
if (l.functional) {
|
|
128
|
+
l._injectStyles = c;
|
|
129
|
+
var d = l.render;
|
|
130
|
+
l.render = function(g, I) {
|
|
131
|
+
return c.call(I), d(g, I);
|
|
132
|
+
};
|
|
133
|
+
} else {
|
|
134
|
+
var m = l.beforeCreate;
|
|
135
|
+
l.beforeCreate = m ? [].concat(m, c) : [c];
|
|
136
|
+
}
|
|
137
|
+
return {
|
|
138
|
+
exports: t,
|
|
139
|
+
options: l
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
var Z = function() {
|
|
143
|
+
var e = this, n = e._self._c;
|
|
144
|
+
return e.link ? n("a", e._g(e._b({ attrs: { role: "button", href: e.link, target: e.openLinkInNewTab ? "_blank" : void 0 } }, "a", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)), [e._v(" " + e._s(e.text) + " ")]) : n("button", e._g(e._b({ staticClass: "button-2fnk003dqad" }, "button", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)), [e._v(" " + e._s(e.text) + " ")]);
|
|
145
|
+
}, ee = [], te = /* @__PURE__ */ h(
|
|
146
|
+
Q,
|
|
147
|
+
Z,
|
|
148
|
+
ee,
|
|
149
|
+
!1,
|
|
150
|
+
null,
|
|
151
|
+
"37bd4cbd",
|
|
152
|
+
null,
|
|
153
|
+
null
|
|
154
|
+
);
|
|
155
|
+
const ne = te.exports, S = (t) => JSON.parse(JSON.stringify(t)), B = {
|
|
100
156
|
small: {
|
|
101
157
|
min: 320,
|
|
102
158
|
default: 321,
|
|
@@ -112,8 +168,8 @@ const Y = (t = {}) => {
|
|
|
112
168
|
default: 991,
|
|
113
169
|
max: 1200
|
|
114
170
|
}
|
|
115
|
-
},
|
|
116
|
-
const n =
|
|
171
|
+
}, Rn = (t, e = B) => `@media (max-width: ${e[t].max}px)`, oe = ({ small: t, medium: e }) => {
|
|
172
|
+
const n = S(B);
|
|
117
173
|
if (!t || !e)
|
|
118
174
|
return n;
|
|
119
175
|
const o = Math.floor(t / 2);
|
|
@@ -134,11 +190,11 @@ const Y = (t = {}) => {
|
|
|
134
190
|
min: r,
|
|
135
191
|
default: r + 1
|
|
136
192
|
}, n;
|
|
137
|
-
},
|
|
193
|
+
}, se = (t) => t.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), b = (t) => t != null, re = (t) => Object.entries(t).map(([n, o]) => {
|
|
138
194
|
if (typeof o == "string")
|
|
139
|
-
return `${
|
|
140
|
-
}).filter(b), y = (t) =>
|
|
141
|
-
`),
|
|
195
|
+
return `${se(n)}: ${o};`;
|
|
196
|
+
}).filter(b), y = (t) => re(t).join(`
|
|
197
|
+
`), Tn = ({
|
|
142
198
|
mediaQuery: t,
|
|
143
199
|
className: e,
|
|
144
200
|
styles: n
|
|
@@ -149,21 +205,21 @@ const Y = (t = {}) => {
|
|
|
149
205
|
return t ? `${t} {
|
|
150
206
|
${o}
|
|
151
207
|
}` : o;
|
|
152
|
-
},
|
|
208
|
+
}, ie = () => Promise.resolve().then(() => U).then((t) => t.default).catch((t) => {
|
|
153
209
|
throw console.error(
|
|
154
210
|
"Error while attempting to dynamically import component RenderBlocks at ../../components/render-blocks.vue",
|
|
155
211
|
t
|
|
156
212
|
), t;
|
|
157
|
-
}),
|
|
213
|
+
}), ae = () => import("./render-inlined-styles.e770caf6.js").then((t) => t.default).catch((t) => {
|
|
158
214
|
throw console.error(
|
|
159
215
|
"Error while attempting to dynamically import component RenderInlinedStyles at ../../components/render-inlined-styles.vue",
|
|
160
216
|
t
|
|
161
217
|
), t;
|
|
162
|
-
}),
|
|
218
|
+
}), le = {
|
|
163
219
|
name: "builder-columns",
|
|
164
220
|
components: {
|
|
165
|
-
RenderInlinedStyles:
|
|
166
|
-
RenderBlocks:
|
|
221
|
+
RenderInlinedStyles: ae,
|
|
222
|
+
RenderBlocks: ie
|
|
167
223
|
},
|
|
168
224
|
props: [
|
|
169
225
|
"space",
|
|
@@ -267,7 +323,7 @@ const Y = (t = {}) => {
|
|
|
267
323
|
return (this.stackColumnsAt || "tablet") === "tablet" ? t : "inherit";
|
|
268
324
|
},
|
|
269
325
|
getWidthForBreakpointSize(t) {
|
|
270
|
-
return
|
|
326
|
+
return oe(
|
|
271
327
|
this.customBreakpoints || {}
|
|
272
328
|
)[t].max;
|
|
273
329
|
},
|
|
@@ -282,42 +338,15 @@ const Y = (t = {}) => {
|
|
|
282
338
|
}
|
|
283
339
|
}
|
|
284
340
|
};
|
|
285
|
-
|
|
286
|
-
var a = typeof t == "function" ? t.options : t;
|
|
287
|
-
e && (a.render = e, a.staticRenderFns = n, a._compiled = !0), o && (a.functional = !0), r && (a._scopeId = "data-v-" + r);
|
|
288
|
-
var d;
|
|
289
|
-
if (i ? (d = function(l) {
|
|
290
|
-
l = l || this.$vnode && this.$vnode.ssrContext || this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext, !l && typeof __VUE_SSR_CONTEXT__ < "u" && (l = __VUE_SSR_CONTEXT__), s && s.call(this, l), l && l._registeredComponents && l._registeredComponents.add(i);
|
|
291
|
-
}, a._ssrRegister = d) : s && (d = c ? function() {
|
|
292
|
-
s.call(
|
|
293
|
-
this,
|
|
294
|
-
(a.functional ? this.parent : this).$root.$options.shadowRoot
|
|
295
|
-
);
|
|
296
|
-
} : s), d)
|
|
297
|
-
if (a.functional) {
|
|
298
|
-
a._injectStyles = d;
|
|
299
|
-
var u = a.render;
|
|
300
|
-
a.render = function(g, I) {
|
|
301
|
-
return d.call(I), u(g, I);
|
|
302
|
-
};
|
|
303
|
-
} else {
|
|
304
|
-
var h = a.beforeCreate;
|
|
305
|
-
a.beforeCreate = h ? [].concat(h, d) : [d];
|
|
306
|
-
}
|
|
307
|
-
return {
|
|
308
|
-
exports: t,
|
|
309
|
-
options: a
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
var se = function() {
|
|
341
|
+
var ce = function() {
|
|
313
342
|
var e = this, n = e._self._c;
|
|
314
343
|
return n("div", { class: e._classStringToObject(
|
|
315
|
-
`builder-columns ${e.builderBlock.id}-breakpoints div-
|
|
344
|
+
`builder-columns ${e.builderBlock.id}-breakpoints div-t9spj7joih`
|
|
316
345
|
), style: {
|
|
317
346
|
...e.TARGET === "reactNative" ? e.reactNativeColumnsStyles : {},
|
|
318
347
|
...e.columnsCssVars
|
|
319
348
|
} }, [e.TARGET !== "reactNative" ? [n("render-inlined-styles", { attrs: { styles: e.columnsStyles } })] : e._e(), e._l(e.columns, function(o, s) {
|
|
320
|
-
return n("div", { key: s, staticClass: "builder-column div-
|
|
349
|
+
return n("div", { key: s, staticClass: "builder-column div-t9spj7joih-2", style: {
|
|
321
350
|
width: e.getColumnCssWidth(s),
|
|
322
351
|
marginLeft: `${s === 0 ? 0 : e.getGutterSize()}px`,
|
|
323
352
|
...e.TARGET === "reactNative" ? e.reactNativeColumnStyles : {},
|
|
@@ -326,25 +355,42 @@ var se = function() {
|
|
|
326
355
|
flexGrow: "1"
|
|
327
356
|
} } })], 1);
|
|
328
357
|
})], 2);
|
|
329
|
-
},
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
358
|
+
}, ue = [], de = /* @__PURE__ */ h(
|
|
359
|
+
le,
|
|
360
|
+
ce,
|
|
361
|
+
ue,
|
|
362
|
+
!1,
|
|
363
|
+
null,
|
|
364
|
+
"72d9045b",
|
|
365
|
+
null,
|
|
366
|
+
null
|
|
367
|
+
);
|
|
368
|
+
const me = de.exports, pe = {
|
|
369
|
+
name: "builder-fragment-component",
|
|
370
|
+
props: []
|
|
371
|
+
};
|
|
372
|
+
var he = function() {
|
|
373
|
+
var e = this, n = e._self._c;
|
|
374
|
+
return n("span", [e._t("default")], 2);
|
|
375
|
+
}, fe = [], ge = /* @__PURE__ */ h(
|
|
376
|
+
pe,
|
|
377
|
+
he,
|
|
378
|
+
fe,
|
|
333
379
|
!1,
|
|
334
380
|
null,
|
|
335
|
-
|
|
381
|
+
null,
|
|
336
382
|
null,
|
|
337
383
|
null
|
|
338
384
|
);
|
|
339
|
-
const
|
|
385
|
+
const be = ge.exports;
|
|
340
386
|
function $(t) {
|
|
341
387
|
return t.replace(/http(s)?:/, "");
|
|
342
388
|
}
|
|
343
|
-
function
|
|
389
|
+
function ye(t = "", e, n) {
|
|
344
390
|
const o = new RegExp("([?&])" + e + "=.*?(&|$)", "i"), s = t.indexOf("?") !== -1 ? "&" : "?";
|
|
345
391
|
return t.match(o) ? t.replace(o, "$1" + e + "=" + encodeURIComponent(n) + "$2") : t + s + e + "=" + encodeURIComponent(n);
|
|
346
392
|
}
|
|
347
|
-
function
|
|
393
|
+
function ve(t, e) {
|
|
348
394
|
if (!t || !(t != null && t.match(/cdn\.shopify\.com/)) || !e)
|
|
349
395
|
return t;
|
|
350
396
|
if (e === "master")
|
|
@@ -365,11 +411,11 @@ function x(t) {
|
|
|
365
411
|
if (t.match(/builder\.io/)) {
|
|
366
412
|
let n = t;
|
|
367
413
|
const o = Number(t.split("?width=")[1]);
|
|
368
|
-
return isNaN(o) || (n = `${n} ${o}w`), e.filter((s) => s !== o).map((s) => `${
|
|
414
|
+
return isNaN(o) || (n = `${n} ${o}w`), e.filter((s) => s !== o).map((s) => `${ye(t, "width", s)} ${s}w`).concat([n]).join(", ");
|
|
369
415
|
}
|
|
370
|
-
return t.match(/cdn\.shopify\.com/) ? e.map((n) => [
|
|
416
|
+
return t.match(/cdn\.shopify\.com/) ? e.map((n) => [ve(t, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([t]).join(", ") : t;
|
|
371
417
|
}
|
|
372
|
-
const
|
|
418
|
+
const _e = {
|
|
373
419
|
name: "builder-image",
|
|
374
420
|
props: [
|
|
375
421
|
"image",
|
|
@@ -425,457 +471,135 @@ const de = {
|
|
|
425
471
|
}
|
|
426
472
|
}
|
|
427
473
|
};
|
|
428
|
-
var
|
|
429
|
-
var o, s, r,
|
|
474
|
+
var xe = function() {
|
|
475
|
+
var o, s, r, a;
|
|
430
476
|
var e = this, n = e._self._c;
|
|
431
477
|
return n("div", [n("picture", [e.webpSrcSet ? [n("source", { attrs: { type: "image/webp", srcset: e.webpSrcSet } })] : e._e(), n("img", { class: e._classStringToObject(
|
|
432
|
-
"builder-image" + (e.className ? " " + e.className : "") + " img-
|
|
478
|
+
"builder-image" + (e.className ? " " + e.className : "") + " img-1pl23ac79ld"
|
|
433
479
|
), style: {
|
|
434
480
|
objectPosition: e.backgroundPosition || "center",
|
|
435
481
|
objectFit: e.backgroundSize || "cover",
|
|
436
482
|
...e.aspectRatioCss
|
|
437
|
-
}, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } })], 2), e.aspectRatio && !(((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length) && e.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-
|
|
483
|
+
}, attrs: { loading: "lazy", alt: e.altText, role: e.altText ? "presentation" : void 0, src: e.image, srcset: e.srcSetToUse, sizes: e.sizes } })], 2), e.aspectRatio && !(((s = (o = e.builderBlock) == null ? void 0 : o.children) == null ? void 0 : s.length) && e.fitContent) ? [n("div", { staticClass: "builder-image-sizer div-1pl23ac79ld", style: {
|
|
438
484
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
439
|
-
} })] : e._e(), ((
|
|
440
|
-
},
|
|
441
|
-
de,
|
|
442
|
-
ue,
|
|
443
|
-
me,
|
|
444
|
-
!1,
|
|
445
|
-
null,
|
|
446
|
-
"76004f06",
|
|
447
|
-
null,
|
|
448
|
-
null
|
|
449
|
-
);
|
|
450
|
-
const he = pe.exports, fe = {
|
|
451
|
-
name: "builder-text",
|
|
452
|
-
props: ["text"]
|
|
453
|
-
};
|
|
454
|
-
var ge = function() {
|
|
455
|
-
var e = this, n = e._self._c;
|
|
456
|
-
return n("span", { staticClass: "builder-text", domProps: { innerHTML: e._s(e.text) } });
|
|
457
|
-
}, be = [], ye = /* @__PURE__ */ p(
|
|
458
|
-
fe,
|
|
459
|
-
ge,
|
|
460
|
-
be,
|
|
461
|
-
!1,
|
|
462
|
-
null,
|
|
463
|
-
null,
|
|
464
|
-
null,
|
|
465
|
-
null
|
|
466
|
-
);
|
|
467
|
-
const ve = ye.exports, _e = {
|
|
468
|
-
name: "builder-video",
|
|
469
|
-
props: [
|
|
470
|
-
"autoPlay",
|
|
471
|
-
"muted",
|
|
472
|
-
"controls",
|
|
473
|
-
"loop",
|
|
474
|
-
"playsInline",
|
|
475
|
-
"attributes",
|
|
476
|
-
"fit",
|
|
477
|
-
"position",
|
|
478
|
-
"video",
|
|
479
|
-
"posterImage"
|
|
480
|
-
],
|
|
481
|
-
computed: {
|
|
482
|
-
videoProps() {
|
|
483
|
-
return {
|
|
484
|
-
...this.autoPlay === !0 ? {
|
|
485
|
-
autoPlay: !0
|
|
486
|
-
} : {},
|
|
487
|
-
...this.muted === !0 ? {
|
|
488
|
-
muted: !0
|
|
489
|
-
} : {},
|
|
490
|
-
...this.controls === !0 ? {
|
|
491
|
-
controls: !0
|
|
492
|
-
} : {},
|
|
493
|
-
...this.loop === !0 ? {
|
|
494
|
-
loop: !0
|
|
495
|
-
} : {},
|
|
496
|
-
...this.playsInline === !0 ? {
|
|
497
|
-
playsInline: !0
|
|
498
|
-
} : {}
|
|
499
|
-
};
|
|
500
|
-
},
|
|
501
|
-
spreadProps() {
|
|
502
|
-
return {
|
|
503
|
-
...this.attributes,
|
|
504
|
-
...this.videoProps
|
|
505
|
-
};
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
};
|
|
509
|
-
var xe = function() {
|
|
510
|
-
var o;
|
|
511
|
-
var e = this, n = e._self._c;
|
|
512
|
-
return n("video", e._b({ style: {
|
|
513
|
-
width: "100%",
|
|
514
|
-
height: "100%",
|
|
515
|
-
...(o = e.attributes) == null ? void 0 : o.style,
|
|
516
|
-
objectFit: e.fit,
|
|
517
|
-
objectPosition: e.position,
|
|
518
|
-
borderRadius: 1
|
|
519
|
-
}, attrs: { src: e.video || "no-src", poster: e.posterImage } }, "video", e.spreadProps, !1));
|
|
520
|
-
}, Ce = [], ke = /* @__PURE__ */ p(
|
|
485
|
+
} })] : e._e(), ((a = (r = e.builderBlock) == null ? void 0 : r.children) == null ? void 0 : a.length) && e.fitContent ? [e._t("default")] : e._e(), !e.fitContent && e.children ? [n("div", { staticClass: "div-1pl23ac79ld-2" }, [e._t("default")], 2)] : e._e()], 2);
|
|
486
|
+
}, ke = [], Ce = /* @__PURE__ */ h(
|
|
521
487
|
_e,
|
|
522
488
|
xe,
|
|
523
|
-
|
|
489
|
+
ke,
|
|
524
490
|
!1,
|
|
525
491
|
null,
|
|
526
|
-
|
|
492
|
+
"d14c6f82",
|
|
527
493
|
null,
|
|
528
494
|
null
|
|
529
495
|
);
|
|
530
|
-
const
|
|
496
|
+
const Se = Ce.exports, we = Symbol(), w = {
|
|
531
497
|
Builder: {
|
|
532
498
|
content: null,
|
|
533
499
|
context: {},
|
|
534
500
|
state: {},
|
|
501
|
+
setState() {
|
|
502
|
+
},
|
|
535
503
|
apiKey: null,
|
|
536
504
|
registeredComponents: {},
|
|
537
505
|
inheritedStyles: {}
|
|
538
506
|
},
|
|
539
|
-
key:
|
|
507
|
+
key: we
|
|
540
508
|
};
|
|
541
509
|
function Ie() {
|
|
542
|
-
return
|
|
510
|
+
return p() && window.self !== window.top;
|
|
543
511
|
}
|
|
544
|
-
function
|
|
545
|
-
|
|
546
|
-
if (typeof t > "u")
|
|
547
|
-
throw console.warn(
|
|
548
|
-
`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
549
|
-
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`
|
|
550
|
-
), new Error("Builder SDK could not find a global `fetch` function");
|
|
551
|
-
return t;
|
|
552
|
-
}
|
|
553
|
-
const U = Re(), Te = (t) => {
|
|
554
|
-
if (t === "localhost" || t === "127.0.0.1")
|
|
555
|
-
return t;
|
|
556
|
-
const e = t.split(".");
|
|
557
|
-
return e.length > 2 ? e.slice(1).join(".") : t;
|
|
558
|
-
}, V = async ({
|
|
559
|
-
name: t,
|
|
560
|
-
canTrack: e
|
|
561
|
-
}) => {
|
|
562
|
-
var n;
|
|
563
|
-
try {
|
|
564
|
-
return e ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${t}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
565
|
-
} catch (o) {
|
|
566
|
-
console.debug("[COOKIE] GET error: ", o);
|
|
567
|
-
return;
|
|
568
|
-
}
|
|
569
|
-
}, $e = (t) => t.map(([e, n]) => n ? `${e}=${n}` : e).filter(b).join("; "), Ee = [
|
|
570
|
-
["secure", ""],
|
|
571
|
-
["SameSite", "None"]
|
|
572
|
-
], Fe = ({
|
|
573
|
-
name: t,
|
|
574
|
-
value: e,
|
|
575
|
-
expires: n
|
|
576
|
-
}) => {
|
|
577
|
-
const s = (m() ? location.protocol === "https:" : !0) ? Ee : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], i = [
|
|
578
|
-
[t, e],
|
|
579
|
-
...r,
|
|
580
|
-
["path", "/"],
|
|
581
|
-
["domain", Te(window.location.hostname)],
|
|
582
|
-
...s
|
|
583
|
-
];
|
|
584
|
-
return $e(i);
|
|
585
|
-
}, W = async ({
|
|
586
|
-
name: t,
|
|
587
|
-
value: e,
|
|
588
|
-
expires: n,
|
|
589
|
-
canTrack: o
|
|
590
|
-
}) => {
|
|
591
|
-
try {
|
|
592
|
-
if (!o)
|
|
593
|
-
return;
|
|
594
|
-
const s = Fe({ name: t, value: e, expires: n });
|
|
595
|
-
document.cookie = s;
|
|
596
|
-
} catch (s) {
|
|
597
|
-
console.warn("[COOKIE] SET error: ", s);
|
|
598
|
-
}
|
|
599
|
-
}, je = "builderio.variations", L = (t) => `${je}.${t}`, Oe = ({
|
|
600
|
-
contentId: t,
|
|
601
|
-
canTrack: e
|
|
602
|
-
}) => V({ name: L(t), canTrack: e }), Ae = ({
|
|
603
|
-
contentId: t,
|
|
604
|
-
canTrack: e,
|
|
605
|
-
value: n
|
|
606
|
-
}) => W({ name: L(t), value: n, canTrack: e }), Be = (t) => b(t.id) && b(t.variations) && Object.keys(t.variations).length > 0, Pe = ({
|
|
607
|
-
id: t,
|
|
608
|
-
variations: e
|
|
609
|
-
}) => {
|
|
610
|
-
var s;
|
|
611
|
-
let n = 0;
|
|
612
|
-
const o = Math.random();
|
|
613
|
-
for (const r in e)
|
|
614
|
-
if (n += (s = e[r]) == null ? void 0 : s.testRatio, o < n)
|
|
615
|
-
return r;
|
|
616
|
-
return t;
|
|
617
|
-
}, E = ({
|
|
618
|
-
item: t,
|
|
619
|
-
testGroupId: e
|
|
620
|
-
}) => {
|
|
621
|
-
const n = t.variations[e];
|
|
622
|
-
return e === t.id || !n ? {
|
|
623
|
-
testVariationId: t.id,
|
|
624
|
-
testVariationName: "Default"
|
|
625
|
-
} : {
|
|
626
|
-
data: n.data,
|
|
627
|
-
testVariationId: n.id,
|
|
628
|
-
testVariationName: n.name || (n.id === t.id ? "Default" : "")
|
|
629
|
-
};
|
|
630
|
-
}, Ue = async ({
|
|
631
|
-
item: t,
|
|
632
|
-
canTrack: e
|
|
633
|
-
}) => {
|
|
634
|
-
const n = await Oe({
|
|
635
|
-
canTrack: e,
|
|
636
|
-
contentId: t.id
|
|
637
|
-
}), o = n ? E({ item: t, testGroupId: n }) : void 0;
|
|
638
|
-
if (o)
|
|
639
|
-
return o;
|
|
640
|
-
{
|
|
641
|
-
const s = Pe({
|
|
642
|
-
variations: t.variations,
|
|
643
|
-
id: t.id
|
|
644
|
-
});
|
|
645
|
-
return Ae({
|
|
646
|
-
contentId: t.id,
|
|
647
|
-
value: s,
|
|
648
|
-
canTrack: e
|
|
649
|
-
}).catch((r) => {
|
|
650
|
-
console.error("could not store A/B test variation: ", r);
|
|
651
|
-
}), E({ item: t, testGroupId: s });
|
|
652
|
-
}
|
|
653
|
-
}, Ve = async ({
|
|
654
|
-
item: t,
|
|
655
|
-
canTrack: e
|
|
656
|
-
}) => {
|
|
657
|
-
if (!Be(t))
|
|
658
|
-
return;
|
|
659
|
-
const n = await Ue({ item: t, canTrack: e });
|
|
660
|
-
Object.assign(t, n);
|
|
661
|
-
};
|
|
662
|
-
function C(t, e = null, n = ".") {
|
|
663
|
-
return Object.keys(t).reduce((o, s) => {
|
|
664
|
-
const r = t[s], i = [e, s].filter(Boolean).join(n);
|
|
665
|
-
return [
|
|
666
|
-
typeof r == "object",
|
|
667
|
-
r !== null,
|
|
668
|
-
!(Array.isArray(r) && r.length === 0)
|
|
669
|
-
].every(Boolean) ? { ...o, ...C(r, i, n) } : { ...o, [i]: r };
|
|
670
|
-
}, {});
|
|
671
|
-
}
|
|
672
|
-
const F = "builder.", We = "options.", Le = (t) => {
|
|
673
|
-
const e = {};
|
|
674
|
-
return t.forEach((n, o) => {
|
|
675
|
-
e[o] = n;
|
|
676
|
-
}), e;
|
|
677
|
-
}, Ne = (t) => {
|
|
678
|
-
if (!t)
|
|
679
|
-
return {};
|
|
680
|
-
const e = N(t), n = {};
|
|
681
|
-
return Object.keys(e).forEach((o) => {
|
|
682
|
-
if (o.startsWith(F)) {
|
|
683
|
-
const s = o.replace(F, "").replace(We, "");
|
|
684
|
-
n[s] = e[o];
|
|
685
|
-
}
|
|
686
|
-
}), n;
|
|
687
|
-
}, Me = () => {
|
|
688
|
-
if (!m())
|
|
689
|
-
return {};
|
|
690
|
-
const t = new URLSearchParams(window.location.search);
|
|
691
|
-
return Ne(t);
|
|
692
|
-
}, N = (t) => t instanceof URLSearchParams ? Le(t) : t, ze = (t) => {
|
|
693
|
-
const {
|
|
694
|
-
limit: e = 30,
|
|
695
|
-
userAttributes: n,
|
|
696
|
-
query: o,
|
|
697
|
-
noTraverse: s = !1,
|
|
698
|
-
model: r,
|
|
699
|
-
apiKey: i,
|
|
700
|
-
includeRefs: c = !0,
|
|
701
|
-
locale: a
|
|
702
|
-
} = t;
|
|
703
|
-
if (!i)
|
|
704
|
-
throw new Error("Missing API key");
|
|
705
|
-
const d = new URL(
|
|
706
|
-
`https://cdn.builder.io/api/v2/content/${r}?apiKey=${i}&limit=${e}&noTraverse=${s}&includeRefs=${c}${a ? `&locale=${a}` : ""}`
|
|
707
|
-
), u = {
|
|
708
|
-
...Me(),
|
|
709
|
-
...N(t.options || {})
|
|
710
|
-
}, h = C(u);
|
|
711
|
-
for (const l in h)
|
|
712
|
-
d.searchParams.set(l, String(h[l]));
|
|
713
|
-
if (n && d.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
714
|
-
const l = C({ query: o });
|
|
715
|
-
for (const g in l)
|
|
716
|
-
d.searchParams.set(g, JSON.stringify(l[g]));
|
|
717
|
-
}
|
|
718
|
-
return d;
|
|
719
|
-
};
|
|
720
|
-
async function M(t) {
|
|
721
|
-
return (await Ke({ ...t, limit: 1 })).results[0] || null;
|
|
722
|
-
}
|
|
723
|
-
async function Ke(t) {
|
|
724
|
-
const e = ze(t), o = await (await U(e.href)).json(), s = t.canTrack !== !1;
|
|
725
|
-
if (s && Array.isArray(o.results))
|
|
726
|
-
for (const r of o.results)
|
|
727
|
-
await Ve({ item: r, canTrack: s });
|
|
728
|
-
return o;
|
|
512
|
+
function f() {
|
|
513
|
+
return Ie() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
729
514
|
}
|
|
730
|
-
const
|
|
515
|
+
const Re = () => import("./block-styles.cf0de18b.js").then((t) => t.default).catch((t) => {
|
|
731
516
|
throw console.error(
|
|
732
|
-
"Error while attempting to dynamically import component
|
|
517
|
+
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
733
518
|
t
|
|
734
519
|
), t;
|
|
735
|
-
}),
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
520
|
+
}), Te = () => import("./render-block.a8683c91.js").then((t) => t.default).catch((t) => {
|
|
521
|
+
throw console.error(
|
|
522
|
+
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
523
|
+
t
|
|
524
|
+
), t;
|
|
525
|
+
}), $e = {
|
|
526
|
+
name: "render-blocks",
|
|
527
|
+
components: { RenderBlock: Te, BlockStyles: Re },
|
|
528
|
+
props: ["blocks", "parent", "path", "styleProp"],
|
|
742
529
|
inject: {
|
|
743
|
-
builderContext:
|
|
744
|
-
},
|
|
745
|
-
watch: {
|
|
746
|
-
onUpdateHook0: {
|
|
747
|
-
handler() {
|
|
748
|
-
var e;
|
|
749
|
-
const t = this.symbol;
|
|
750
|
-
t && !t.content && !this.fetchedContent && t.model && ((e = this.builderContext) == null ? void 0 : e.apiKey) && M({
|
|
751
|
-
model: t.model,
|
|
752
|
-
apiKey: this.builderContext.apiKey,
|
|
753
|
-
query: {
|
|
754
|
-
id: t.entry
|
|
755
|
-
}
|
|
756
|
-
}).then((n) => {
|
|
757
|
-
this.fetchedContent = n;
|
|
758
|
-
});
|
|
759
|
-
},
|
|
760
|
-
immediate: !0
|
|
761
|
-
}
|
|
530
|
+
builderContext: w.key
|
|
762
531
|
},
|
|
763
532
|
computed: {
|
|
764
533
|
className() {
|
|
765
|
-
var t, e;
|
|
766
|
-
return [
|
|
767
|
-
...Object.keys(this.attributes.class),
|
|
768
|
-
"builder-symbol",
|
|
769
|
-
(t = this.symbol) != null && t.inline ? "builder-inline-symbol" : void 0,
|
|
770
|
-
((e = this.symbol) == null ? void 0 : e.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
771
|
-
].filter(Boolean).join(" ");
|
|
772
|
-
},
|
|
773
|
-
contentToUse() {
|
|
774
534
|
var t;
|
|
775
|
-
return ((t = this.
|
|
776
|
-
},
|
|
777
|
-
onUpdateHook0() {
|
|
778
|
-
return {
|
|
779
|
-
0: this.symbol,
|
|
780
|
-
1: this.fetchedContent
|
|
781
|
-
};
|
|
535
|
+
return "builder-blocks" + ((t = this.blocks) != null && t.length ? "" : " no-blocks");
|
|
782
536
|
}
|
|
783
537
|
},
|
|
784
538
|
methods: {
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
}
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
);
|
|
816
|
-
const
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
}
|
|
820
|
-
|
|
821
|
-
var e = this, n = e._self._c;
|
|
822
|
-
return e.link ? n("a", e._b({ attrs: { role: "button", href: e.link, target: e.openLinkInNewTab ? "_blank" : void 0 } }, "a", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]) : n("button", e._b({ staticClass: "button-1pl23ac79ld" }, "button", e.attributes, !1), [e._v(" " + e._s(e.text) + " ")]);
|
|
823
|
-
}, Ze = [], et = /* @__PURE__ */ p(
|
|
824
|
-
Ye,
|
|
825
|
-
Qe,
|
|
826
|
-
Ze,
|
|
827
|
-
!1,
|
|
828
|
-
null,
|
|
829
|
-
"9d610bd1",
|
|
830
|
-
null,
|
|
831
|
-
null
|
|
832
|
-
);
|
|
833
|
-
const tt = et.exports, nt = {
|
|
834
|
-
name: "builder-section-component",
|
|
835
|
-
props: ["attributes", "maxWidth"]
|
|
836
|
-
};
|
|
837
|
-
var ot = function() {
|
|
838
|
-
var e = this, n = e._self._c;
|
|
839
|
-
return n("section", e._b({ style: {
|
|
840
|
-
width: "100%",
|
|
841
|
-
alignSelf: "stretch",
|
|
842
|
-
flexGrow: "1",
|
|
843
|
-
boxSizing: "border-box",
|
|
844
|
-
maxWidth: `${e.maxWidth && typeof e.maxWidth == "number" ? e.maxWidth : 1200}px`,
|
|
845
|
-
display: "flex",
|
|
846
|
-
flexDirection: "column",
|
|
847
|
-
alignItems: "stretch",
|
|
848
|
-
marginLeft: "auto",
|
|
849
|
-
marginRight: "auto"
|
|
850
|
-
} }, "section", e.attributes, !1), [e._t("default")], 2);
|
|
851
|
-
}, st = [], rt = /* @__PURE__ */ p(
|
|
852
|
-
nt,
|
|
853
|
-
ot,
|
|
854
|
-
st,
|
|
855
|
-
!1,
|
|
856
|
-
null,
|
|
857
|
-
null,
|
|
858
|
-
null,
|
|
859
|
-
null
|
|
860
|
-
);
|
|
861
|
-
const it = rt.exports, at = {
|
|
862
|
-
name: "builder-fragment-component",
|
|
863
|
-
props: []
|
|
539
|
+
onClick() {
|
|
540
|
+
var t, e;
|
|
541
|
+
f() && !((t = this.blocks) != null && t.length) && ((e = window.parent) == null || e.postMessage(
|
|
542
|
+
{
|
|
543
|
+
type: "builder.clickEmptyBlocks",
|
|
544
|
+
data: {
|
|
545
|
+
parentElementId: this.parent,
|
|
546
|
+
dataPath: this.path
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
"*"
|
|
550
|
+
));
|
|
551
|
+
},
|
|
552
|
+
onMouseEnter() {
|
|
553
|
+
var t, e;
|
|
554
|
+
f() && !((t = this.blocks) != null && t.length) && ((e = window.parent) == null || e.postMessage(
|
|
555
|
+
{
|
|
556
|
+
type: "builder.hoverEmptyBlocks",
|
|
557
|
+
data: {
|
|
558
|
+
parentElementId: this.parent,
|
|
559
|
+
dataPath: this.path
|
|
560
|
+
}
|
|
561
|
+
},
|
|
562
|
+
"*"
|
|
563
|
+
));
|
|
564
|
+
},
|
|
565
|
+
_classStringToObject(t) {
|
|
566
|
+
const e = {};
|
|
567
|
+
if (typeof t != "string")
|
|
568
|
+
return e;
|
|
569
|
+
const n = t.trim().split(/\s+/);
|
|
570
|
+
for (const o of n)
|
|
571
|
+
e[o] = !0;
|
|
572
|
+
return e;
|
|
573
|
+
}
|
|
574
|
+
}
|
|
864
575
|
};
|
|
865
|
-
var
|
|
576
|
+
var Ee = function() {
|
|
866
577
|
var e = this, n = e._self._c;
|
|
867
|
-
return n("
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
578
|
+
return n("div", { class: e._classStringToObject(e.className + " div-21azgz5avex"), style: e.styleProp, attrs: { "builder-path": e.path, "builder-parent-id": e.parent, dataSet: {
|
|
579
|
+
class: e.className
|
|
580
|
+
} }, on: { click: function(o) {
|
|
581
|
+
return e.onClick();
|
|
582
|
+
}, mouseenter: function(o) {
|
|
583
|
+
return e.onMouseEnter();
|
|
584
|
+
} } }, [e.blocks ? e._l(e.blocks, function(o, s) {
|
|
585
|
+
return n("render-block", { key: "render-block-" + o.id, attrs: { block: o, context: e.builderContext } });
|
|
586
|
+
}) : e._e(), e.blocks ? e._l(e.blocks, function(o, s) {
|
|
587
|
+
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: e.builderContext } });
|
|
588
|
+
}) : e._e()], 2);
|
|
589
|
+
}, Ae = [], Fe = /* @__PURE__ */ h(
|
|
590
|
+
$e,
|
|
591
|
+
Ee,
|
|
592
|
+
Ae,
|
|
872
593
|
!1,
|
|
873
594
|
null,
|
|
874
|
-
|
|
595
|
+
"7d4553c5",
|
|
875
596
|
null,
|
|
876
597
|
null
|
|
877
598
|
);
|
|
878
|
-
const
|
|
599
|
+
const je = Fe.exports, U = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
600
|
+
__proto__: null,
|
|
601
|
+
default: je
|
|
602
|
+
}, Symbol.toStringTag, { value: "Module" })), Pe = {
|
|
879
603
|
name: "Core:Button",
|
|
880
604
|
builtIn: !0,
|
|
881
605
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -915,7 +639,7 @@ const ut = dt.exports, mt = {
|
|
|
915
639
|
}, _ = (t) => {
|
|
916
640
|
const e = t.toString().trim();
|
|
917
641
|
return `return (${!e.startsWith("function") && !e.startsWith("(") ? "function " : ""}${e}).apply(this, arguments)`;
|
|
918
|
-
},
|
|
642
|
+
}, Oe = {
|
|
919
643
|
name: "Columns",
|
|
920
644
|
builtIn: !0,
|
|
921
645
|
inputs: [
|
|
@@ -1114,7 +838,7 @@ const ut = dt.exports, mt = {
|
|
|
1114
838
|
(s) => s.get("width")
|
|
1115
839
|
) && (!!n.find(
|
|
1116
840
|
(r) => !r.get("width")
|
|
1117
|
-
) || n.reduce((
|
|
841
|
+
) || n.reduce((i, l) => i + l.get("width"), 0) !== 100) && e();
|
|
1118
842
|
})
|
|
1119
843
|
},
|
|
1120
844
|
{
|
|
@@ -1140,14 +864,14 @@ const ut = dt.exports, mt = {
|
|
|
1140
864
|
advanced: !0
|
|
1141
865
|
}
|
|
1142
866
|
]
|
|
1143
|
-
},
|
|
867
|
+
}, Be = {
|
|
1144
868
|
name: "Fragment",
|
|
1145
869
|
static: !0,
|
|
1146
870
|
hidden: !0,
|
|
1147
871
|
builtIn: !0,
|
|
1148
872
|
canHaveChildren: !0,
|
|
1149
873
|
noWrap: !0
|
|
1150
|
-
},
|
|
874
|
+
}, Ue = {
|
|
1151
875
|
name: "Image",
|
|
1152
876
|
static: !0,
|
|
1153
877
|
builtIn: !0,
|
|
@@ -1170,29 +894,29 @@ const ut = dt.exports, mt = {
|
|
|
1170
894
|
onChange: _(
|
|
1171
895
|
(t) => {
|
|
1172
896
|
t.delete("srcset"), t.delete("noWebp");
|
|
1173
|
-
function n(
|
|
1174
|
-
return new Promise((
|
|
1175
|
-
const
|
|
1176
|
-
let
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
},
|
|
1180
|
-
console.warn("Image load failed",
|
|
1181
|
-
}),
|
|
1182
|
-
|
|
1183
|
-
},
|
|
897
|
+
function n(a, i = 6e4) {
|
|
898
|
+
return new Promise((l, c) => {
|
|
899
|
+
const d = document.createElement("img");
|
|
900
|
+
let m = !1;
|
|
901
|
+
d.onload = () => {
|
|
902
|
+
m = !0, l(d);
|
|
903
|
+
}, d.addEventListener("error", (u) => {
|
|
904
|
+
console.warn("Image load failed", u.error), c(u.error);
|
|
905
|
+
}), d.src = a, setTimeout(() => {
|
|
906
|
+
m || c(new Error("Image load timed out"));
|
|
907
|
+
}, i);
|
|
1184
908
|
});
|
|
1185
909
|
}
|
|
1186
|
-
function o(
|
|
1187
|
-
return Math.round(
|
|
910
|
+
function o(a) {
|
|
911
|
+
return Math.round(a * 1e3) / 1e3;
|
|
1188
912
|
}
|
|
1189
913
|
const s = t.get("image"), r = t.get("aspectRatio");
|
|
1190
|
-
if (fetch(s).then((
|
|
1191
|
-
|
|
914
|
+
if (fetch(s).then((a) => a.blob()).then((a) => {
|
|
915
|
+
a.type.includes("svg") && t.set("noWebp", !0);
|
|
1192
916
|
}), s && (!r || r === 0.7041))
|
|
1193
|
-
return n(s).then((
|
|
1194
|
-
const
|
|
1195
|
-
t.get("image") === s && (!
|
|
917
|
+
return n(s).then((a) => {
|
|
918
|
+
const i = t.get("aspectRatio");
|
|
919
|
+
t.get("image") === s && (!i || i === 0.7041) && a.width && a.height && (t.set("aspectRatio", o(a.height / a.width)), t.set("height", a.height), t.set("width", a.width));
|
|
1196
920
|
});
|
|
1197
921
|
}
|
|
1198
922
|
)
|
|
@@ -1275,7 +999,7 @@ const ut = dt.exports, mt = {
|
|
|
1275
999
|
defaultValue: 0.7041
|
|
1276
1000
|
}
|
|
1277
1001
|
]
|
|
1278
|
-
},
|
|
1002
|
+
}, We = {
|
|
1279
1003
|
name: "Core:Section",
|
|
1280
1004
|
static: !0,
|
|
1281
1005
|
builtIn: !0,
|
|
@@ -1320,7 +1044,47 @@ const ut = dt.exports, mt = {
|
|
|
1320
1044
|
}
|
|
1321
1045
|
}
|
|
1322
1046
|
]
|
|
1323
|
-
},
|
|
1047
|
+
}, Ve = {
|
|
1048
|
+
name: "builder-section-component",
|
|
1049
|
+
props: ["maxWidth", "attributes"],
|
|
1050
|
+
methods: {
|
|
1051
|
+
filterAttrs: function(e = {}, n) {
|
|
1052
|
+
const o = "v-on:", s = (i) => i.startsWith(o), r = (i) => !i.startsWith(o), a = (i) => i.replace(o, "");
|
|
1053
|
+
return Object.keys(e).filter(n ? s : r).reduce(
|
|
1054
|
+
(i, l) => ({
|
|
1055
|
+
...i,
|
|
1056
|
+
[a(l)]: e[l]
|
|
1057
|
+
}),
|
|
1058
|
+
{}
|
|
1059
|
+
);
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
};
|
|
1063
|
+
var Ne = function() {
|
|
1064
|
+
var e = this, n = e._self._c;
|
|
1065
|
+
return n("section", e._g(e._b({ style: {
|
|
1066
|
+
width: "100%",
|
|
1067
|
+
alignSelf: "stretch",
|
|
1068
|
+
flexGrow: "1",
|
|
1069
|
+
boxSizing: "border-box",
|
|
1070
|
+
maxWidth: `${e.maxWidth && typeof e.maxWidth == "number" ? e.maxWidth : 1200}px`,
|
|
1071
|
+
display: "flex",
|
|
1072
|
+
flexDirection: "column",
|
|
1073
|
+
alignItems: "stretch",
|
|
1074
|
+
marginLeft: "auto",
|
|
1075
|
+
marginRight: "auto"
|
|
1076
|
+
} }, "section", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)), [e._t("default")], 2);
|
|
1077
|
+
}, Le = [], Me = /* @__PURE__ */ h(
|
|
1078
|
+
Ve,
|
|
1079
|
+
Ne,
|
|
1080
|
+
Le,
|
|
1081
|
+
!1,
|
|
1082
|
+
null,
|
|
1083
|
+
null,
|
|
1084
|
+
null,
|
|
1085
|
+
null
|
|
1086
|
+
);
|
|
1087
|
+
const ze = Me.exports, Ke = {
|
|
1324
1088
|
name: "Symbol",
|
|
1325
1089
|
noWrap: !0,
|
|
1326
1090
|
static: !0,
|
|
@@ -1338,28 +1102,314 @@ const ut = dt.exports, mt = {
|
|
|
1338
1102
|
advanced: !0,
|
|
1339
1103
|
hideFromUI: !0
|
|
1340
1104
|
},
|
|
1341
|
-
{
|
|
1342
|
-
name: "inheritState",
|
|
1343
|
-
helperText: "Inherit the parent component state and data",
|
|
1344
|
-
type: "boolean",
|
|
1345
|
-
defaultValue: !1,
|
|
1346
|
-
advanced: !0
|
|
1105
|
+
{
|
|
1106
|
+
name: "inheritState",
|
|
1107
|
+
helperText: "Inherit the parent component state and data",
|
|
1108
|
+
type: "boolean",
|
|
1109
|
+
defaultValue: !1,
|
|
1110
|
+
advanced: !0
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
name: "renderToLiquid",
|
|
1114
|
+
helperText: "Render this symbols contents to liquid. Turn off to fetch with javascript and use custom targeting",
|
|
1115
|
+
type: "boolean",
|
|
1116
|
+
defaultValue: !1,
|
|
1117
|
+
advanced: !0,
|
|
1118
|
+
hideFromUI: !0
|
|
1119
|
+
},
|
|
1120
|
+
{
|
|
1121
|
+
name: "useChildren",
|
|
1122
|
+
hideFromUI: !0,
|
|
1123
|
+
type: "boolean"
|
|
1124
|
+
}
|
|
1125
|
+
]
|
|
1126
|
+
};
|
|
1127
|
+
function De() {
|
|
1128
|
+
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
1129
|
+
}
|
|
1130
|
+
function He() {
|
|
1131
|
+
const t = De().fetch;
|
|
1132
|
+
if (typeof t > "u")
|
|
1133
|
+
throw console.warn(
|
|
1134
|
+
`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
1135
|
+
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`
|
|
1136
|
+
), new Error("Builder SDK could not find a global `fetch` function");
|
|
1137
|
+
return t;
|
|
1138
|
+
}
|
|
1139
|
+
const W = He(), qe = (t) => {
|
|
1140
|
+
if (t === "localhost" || t === "127.0.0.1")
|
|
1141
|
+
return t;
|
|
1142
|
+
const e = t.split(".");
|
|
1143
|
+
return e.length > 2 ? e.slice(1).join(".") : t;
|
|
1144
|
+
}, V = async ({
|
|
1145
|
+
name: t,
|
|
1146
|
+
canTrack: e
|
|
1147
|
+
}) => {
|
|
1148
|
+
var n;
|
|
1149
|
+
try {
|
|
1150
|
+
return e ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${t}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
1151
|
+
} catch (o) {
|
|
1152
|
+
console.debug("[COOKIE] GET error: ", o);
|
|
1153
|
+
return;
|
|
1154
|
+
}
|
|
1155
|
+
}, Ge = (t) => t.map(([e, n]) => n ? `${e}=${n}` : e).filter(b).join("; "), Je = [
|
|
1156
|
+
["secure", ""],
|
|
1157
|
+
["SameSite", "None"]
|
|
1158
|
+
], Xe = ({
|
|
1159
|
+
name: t,
|
|
1160
|
+
value: e,
|
|
1161
|
+
expires: n
|
|
1162
|
+
}) => {
|
|
1163
|
+
const s = (p() ? location.protocol === "https:" : !0) ? Je : [[]], r = n ? [["expires", n.toUTCString()]] : [[]], a = [
|
|
1164
|
+
[t, e],
|
|
1165
|
+
...r,
|
|
1166
|
+
["path", "/"],
|
|
1167
|
+
["domain", qe(window.location.hostname)],
|
|
1168
|
+
...s
|
|
1169
|
+
];
|
|
1170
|
+
return Ge(a);
|
|
1171
|
+
}, N = async ({
|
|
1172
|
+
name: t,
|
|
1173
|
+
value: e,
|
|
1174
|
+
expires: n,
|
|
1175
|
+
canTrack: o
|
|
1176
|
+
}) => {
|
|
1177
|
+
try {
|
|
1178
|
+
if (!o)
|
|
1179
|
+
return;
|
|
1180
|
+
const s = Xe({ name: t, value: e, expires: n });
|
|
1181
|
+
document.cookie = s;
|
|
1182
|
+
} catch (s) {
|
|
1183
|
+
console.warn("[COOKIE] SET error: ", s);
|
|
1184
|
+
}
|
|
1185
|
+
}, Ye = "builderio.variations", L = (t) => `${Ye}.${t}`, Qe = ({
|
|
1186
|
+
contentId: t,
|
|
1187
|
+
canTrack: e
|
|
1188
|
+
}) => V({ name: L(t), canTrack: e }), Ze = ({
|
|
1189
|
+
contentId: t,
|
|
1190
|
+
canTrack: e,
|
|
1191
|
+
value: n
|
|
1192
|
+
}) => N({ name: L(t), value: n, canTrack: e }), et = (t) => b(t.id) && b(t.variations) && Object.keys(t.variations).length > 0, tt = ({
|
|
1193
|
+
id: t,
|
|
1194
|
+
variations: e
|
|
1195
|
+
}) => {
|
|
1196
|
+
var s;
|
|
1197
|
+
let n = 0;
|
|
1198
|
+
const o = Math.random();
|
|
1199
|
+
for (const r in e)
|
|
1200
|
+
if (n += (s = e[r]) == null ? void 0 : s.testRatio, o < n)
|
|
1201
|
+
return r;
|
|
1202
|
+
return t;
|
|
1203
|
+
}, E = ({
|
|
1204
|
+
item: t,
|
|
1205
|
+
testGroupId: e
|
|
1206
|
+
}) => {
|
|
1207
|
+
const n = t.variations[e];
|
|
1208
|
+
return e === t.id || !n ? {
|
|
1209
|
+
testVariationId: t.id,
|
|
1210
|
+
testVariationName: "Default"
|
|
1211
|
+
} : {
|
|
1212
|
+
data: n.data,
|
|
1213
|
+
testVariationId: n.id,
|
|
1214
|
+
testVariationName: n.name || (n.id === t.id ? "Default" : "")
|
|
1215
|
+
};
|
|
1216
|
+
}, nt = async ({
|
|
1217
|
+
item: t,
|
|
1218
|
+
canTrack: e
|
|
1219
|
+
}) => {
|
|
1220
|
+
const n = await Qe({
|
|
1221
|
+
canTrack: e,
|
|
1222
|
+
contentId: t.id
|
|
1223
|
+
}), o = n ? E({ item: t, testGroupId: n }) : void 0;
|
|
1224
|
+
if (o)
|
|
1225
|
+
return o;
|
|
1226
|
+
{
|
|
1227
|
+
const s = tt({
|
|
1228
|
+
variations: t.variations,
|
|
1229
|
+
id: t.id
|
|
1230
|
+
});
|
|
1231
|
+
return Ze({
|
|
1232
|
+
contentId: t.id,
|
|
1233
|
+
value: s,
|
|
1234
|
+
canTrack: e
|
|
1235
|
+
}).catch((r) => {
|
|
1236
|
+
console.error("could not store A/B test variation: ", r);
|
|
1237
|
+
}), E({ item: t, testGroupId: s });
|
|
1238
|
+
}
|
|
1239
|
+
}, ot = async ({
|
|
1240
|
+
item: t,
|
|
1241
|
+
canTrack: e
|
|
1242
|
+
}) => {
|
|
1243
|
+
if (!et(t))
|
|
1244
|
+
return;
|
|
1245
|
+
const n = await nt({ item: t, canTrack: e });
|
|
1246
|
+
Object.assign(t, n);
|
|
1247
|
+
};
|
|
1248
|
+
function k(t, e = null, n = ".") {
|
|
1249
|
+
return Object.keys(t).reduce((o, s) => {
|
|
1250
|
+
const r = t[s], a = [e, s].filter(Boolean).join(n);
|
|
1251
|
+
return [
|
|
1252
|
+
typeof r == "object",
|
|
1253
|
+
r !== null,
|
|
1254
|
+
!(Array.isArray(r) && r.length === 0)
|
|
1255
|
+
].every(Boolean) ? { ...o, ...k(r, a, n) } : { ...o, [a]: r };
|
|
1256
|
+
}, {});
|
|
1257
|
+
}
|
|
1258
|
+
const A = "builder.", st = "options.", rt = (t) => {
|
|
1259
|
+
const e = {};
|
|
1260
|
+
return t.forEach((n, o) => {
|
|
1261
|
+
e[o] = n;
|
|
1262
|
+
}), e;
|
|
1263
|
+
}, it = (t) => {
|
|
1264
|
+
if (!t)
|
|
1265
|
+
return {};
|
|
1266
|
+
const e = M(t), n = {};
|
|
1267
|
+
return Object.keys(e).forEach((o) => {
|
|
1268
|
+
if (o.startsWith(A)) {
|
|
1269
|
+
const s = o.replace(A, "").replace(st, "");
|
|
1270
|
+
n[s] = e[o];
|
|
1271
|
+
}
|
|
1272
|
+
}), n;
|
|
1273
|
+
}, at = () => {
|
|
1274
|
+
if (!p())
|
|
1275
|
+
return {};
|
|
1276
|
+
const t = new URLSearchParams(window.location.search);
|
|
1277
|
+
return it(t);
|
|
1278
|
+
}, M = (t) => t instanceof URLSearchParams ? rt(t) : t, lt = (t) => {
|
|
1279
|
+
const {
|
|
1280
|
+
limit: e = 30,
|
|
1281
|
+
userAttributes: n,
|
|
1282
|
+
query: o,
|
|
1283
|
+
noTraverse: s = !1,
|
|
1284
|
+
model: r,
|
|
1285
|
+
apiKey: a,
|
|
1286
|
+
includeRefs: i = !0,
|
|
1287
|
+
locale: l
|
|
1288
|
+
} = t;
|
|
1289
|
+
if (!a)
|
|
1290
|
+
throw new Error("Missing API key");
|
|
1291
|
+
const c = new URL(
|
|
1292
|
+
`https://cdn.builder.io/api/v2/content/${r}?apiKey=${a}&limit=${e}&noTraverse=${s}&includeRefs=${i}${l ? `&locale=${l}` : ""}`
|
|
1293
|
+
), d = {
|
|
1294
|
+
...at(),
|
|
1295
|
+
...M(t.options || {})
|
|
1296
|
+
}, m = k(d);
|
|
1297
|
+
for (const u in m)
|
|
1298
|
+
c.searchParams.set(u, String(m[u]));
|
|
1299
|
+
if (n && c.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
1300
|
+
const u = k({ query: o });
|
|
1301
|
+
for (const g in u)
|
|
1302
|
+
c.searchParams.set(g, JSON.stringify(u[g]));
|
|
1303
|
+
}
|
|
1304
|
+
return c;
|
|
1305
|
+
};
|
|
1306
|
+
async function z(t) {
|
|
1307
|
+
return (await ct({ ...t, limit: 1 })).results[0] || null;
|
|
1308
|
+
}
|
|
1309
|
+
async function ct(t) {
|
|
1310
|
+
const e = lt(t), o = await (await W(e.href)).json(), s = t.canTrack !== !1;
|
|
1311
|
+
if (s && Array.isArray(o.results))
|
|
1312
|
+
for (const r of o.results)
|
|
1313
|
+
await ot({ item: r, canTrack: s });
|
|
1314
|
+
return o;
|
|
1315
|
+
}
|
|
1316
|
+
const ut = () => Promise.resolve().then(() => In).then((t) => t.default).catch((t) => {
|
|
1317
|
+
throw console.error(
|
|
1318
|
+
"Error while attempting to dynamically import component RenderContent at ../../components/render-content/render-content.vue",
|
|
1319
|
+
t
|
|
1320
|
+
), t;
|
|
1321
|
+
}), dt = {
|
|
1322
|
+
name: "builder-symbol",
|
|
1323
|
+
components: { RenderContent: ut },
|
|
1324
|
+
props: ["attributes", "symbol", "dynamic"],
|
|
1325
|
+
data() {
|
|
1326
|
+
return { fetchedContent: null };
|
|
1327
|
+
},
|
|
1328
|
+
inject: {
|
|
1329
|
+
builderContext: w.key
|
|
1330
|
+
},
|
|
1331
|
+
watch: {
|
|
1332
|
+
onUpdateHook0: {
|
|
1333
|
+
handler() {
|
|
1334
|
+
var e;
|
|
1335
|
+
const t = this.symbol;
|
|
1336
|
+
t && !t.content && !this.fetchedContent && t.model && ((e = this.builderContext) == null ? void 0 : e.apiKey) && z({
|
|
1337
|
+
model: t.model,
|
|
1338
|
+
apiKey: this.builderContext.apiKey,
|
|
1339
|
+
query: {
|
|
1340
|
+
id: t.entry
|
|
1341
|
+
}
|
|
1342
|
+
}).then((n) => {
|
|
1343
|
+
this.fetchedContent = n;
|
|
1344
|
+
});
|
|
1345
|
+
},
|
|
1346
|
+
immediate: !0
|
|
1347
|
+
}
|
|
1348
|
+
},
|
|
1349
|
+
computed: {
|
|
1350
|
+
className() {
|
|
1351
|
+
var t, e;
|
|
1352
|
+
return [
|
|
1353
|
+
...Object.keys(this.attributes.class),
|
|
1354
|
+
"builder-symbol",
|
|
1355
|
+
(t = this.symbol) != null && t.inline ? "builder-inline-symbol" : void 0,
|
|
1356
|
+
((e = this.symbol) == null ? void 0 : e.dynamic) || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
1357
|
+
].filter(Boolean).join(" ");
|
|
1358
|
+
},
|
|
1359
|
+
contentToUse() {
|
|
1360
|
+
var t;
|
|
1361
|
+
return ((t = this.symbol) == null ? void 0 : t.content) || this.fetchedContent;
|
|
1347
1362
|
},
|
|
1348
|
-
{
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1363
|
+
onUpdateHook0() {
|
|
1364
|
+
return {
|
|
1365
|
+
0: this.symbol,
|
|
1366
|
+
1: this.fetchedContent
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
},
|
|
1370
|
+
methods: {
|
|
1371
|
+
filterAttrs: function(e = {}, n) {
|
|
1372
|
+
const o = "v-on:", s = (i) => i.startsWith(o), r = (i) => !i.startsWith(o), a = (i) => i.replace(o, "");
|
|
1373
|
+
return Object.keys(e).filter(n ? s : r).reduce(
|
|
1374
|
+
(i, l) => ({
|
|
1375
|
+
...i,
|
|
1376
|
+
[a(l)]: e[l]
|
|
1377
|
+
}),
|
|
1378
|
+
{}
|
|
1379
|
+
);
|
|
1355
1380
|
},
|
|
1356
|
-
{
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1381
|
+
_classStringToObject(t) {
|
|
1382
|
+
const e = {};
|
|
1383
|
+
if (typeof t != "string")
|
|
1384
|
+
return e;
|
|
1385
|
+
const n = t.trim().split(/\s+/);
|
|
1386
|
+
for (const o of n)
|
|
1387
|
+
e[o] = !0;
|
|
1388
|
+
return e;
|
|
1360
1389
|
}
|
|
1361
|
-
|
|
1362
|
-
}
|
|
1390
|
+
}
|
|
1391
|
+
};
|
|
1392
|
+
var mt = function() {
|
|
1393
|
+
var o, s, r, a, i;
|
|
1394
|
+
var e = this, n = e._self._c;
|
|
1395
|
+
return n("div", e._g(e._b({ class: e._classStringToObject(e.className), attrs: { dataSet: {
|
|
1396
|
+
class: e.className
|
|
1397
|
+
} } }, "div", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)), [n("render-content", { attrs: { apiKey: e.builderContext.apiKey, context: e.builderContext.context, customComponents: Object.values(e.builderContext.registeredComponents), data: {
|
|
1398
|
+
...(o = e.symbol) == null ? void 0 : o.data,
|
|
1399
|
+
...e.builderContext.state,
|
|
1400
|
+
...(a = (r = (s = e.symbol) == null ? void 0 : s.content) == null ? void 0 : r.data) == null ? void 0 : a.state
|
|
1401
|
+
}, model: (i = e.symbol) == null ? void 0 : i.model, content: e.contentToUse } })], 1);
|
|
1402
|
+
}, pt = [], ht = /* @__PURE__ */ h(
|
|
1403
|
+
dt,
|
|
1404
|
+
mt,
|
|
1405
|
+
pt,
|
|
1406
|
+
!1,
|
|
1407
|
+
null,
|
|
1408
|
+
null,
|
|
1409
|
+
null,
|
|
1410
|
+
null
|
|
1411
|
+
);
|
|
1412
|
+
const ft = ht.exports, gt = {
|
|
1363
1413
|
name: "Text",
|
|
1364
1414
|
static: !0,
|
|
1365
1415
|
builtIn: !0,
|
|
@@ -1379,7 +1429,24 @@ const ut = dt.exports, mt = {
|
|
|
1379
1429
|
height: "auto",
|
|
1380
1430
|
textAlign: "center"
|
|
1381
1431
|
}
|
|
1382
|
-
},
|
|
1432
|
+
}, bt = {
|
|
1433
|
+
name: "builder-text",
|
|
1434
|
+
props: ["text"]
|
|
1435
|
+
};
|
|
1436
|
+
var yt = function() {
|
|
1437
|
+
var e = this, n = e._self._c;
|
|
1438
|
+
return n("span", { staticClass: "builder-text", domProps: { innerHTML: e._s(e.text) } });
|
|
1439
|
+
}, vt = [], _t = /* @__PURE__ */ h(
|
|
1440
|
+
bt,
|
|
1441
|
+
yt,
|
|
1442
|
+
vt,
|
|
1443
|
+
!1,
|
|
1444
|
+
null,
|
|
1445
|
+
null,
|
|
1446
|
+
null,
|
|
1447
|
+
null
|
|
1448
|
+
);
|
|
1449
|
+
const xt = _t.exports, kt = {
|
|
1383
1450
|
name: "Video",
|
|
1384
1451
|
canHaveChildren: !0,
|
|
1385
1452
|
builtIn: !0,
|
|
@@ -1481,7 +1548,70 @@ const ut = dt.exports, mt = {
|
|
|
1481
1548
|
advanced: !0
|
|
1482
1549
|
}
|
|
1483
1550
|
]
|
|
1484
|
-
},
|
|
1551
|
+
}, Ct = {
|
|
1552
|
+
name: "builder-video",
|
|
1553
|
+
props: [
|
|
1554
|
+
"autoPlay",
|
|
1555
|
+
"muted",
|
|
1556
|
+
"controls",
|
|
1557
|
+
"loop",
|
|
1558
|
+
"playsInline",
|
|
1559
|
+
"attributes",
|
|
1560
|
+
"fit",
|
|
1561
|
+
"position",
|
|
1562
|
+
"video",
|
|
1563
|
+
"posterImage"
|
|
1564
|
+
],
|
|
1565
|
+
computed: {
|
|
1566
|
+
videoProps() {
|
|
1567
|
+
return {
|
|
1568
|
+
...this.autoPlay === !0 ? {
|
|
1569
|
+
autoPlay: !0
|
|
1570
|
+
} : {},
|
|
1571
|
+
...this.muted === !0 ? {
|
|
1572
|
+
muted: !0
|
|
1573
|
+
} : {},
|
|
1574
|
+
...this.controls === !0 ? {
|
|
1575
|
+
controls: !0
|
|
1576
|
+
} : {},
|
|
1577
|
+
...this.loop === !0 ? {
|
|
1578
|
+
loop: !0
|
|
1579
|
+
} : {},
|
|
1580
|
+
...this.playsInline === !0 ? {
|
|
1581
|
+
playsInline: !0
|
|
1582
|
+
} : {}
|
|
1583
|
+
};
|
|
1584
|
+
},
|
|
1585
|
+
spreadProps() {
|
|
1586
|
+
return {
|
|
1587
|
+
...this.attributes,
|
|
1588
|
+
...this.videoProps
|
|
1589
|
+
};
|
|
1590
|
+
}
|
|
1591
|
+
}
|
|
1592
|
+
};
|
|
1593
|
+
var St = function() {
|
|
1594
|
+
var o;
|
|
1595
|
+
var e = this, n = e._self._c;
|
|
1596
|
+
return n("video", e._b({ style: {
|
|
1597
|
+
width: "100%",
|
|
1598
|
+
height: "100%",
|
|
1599
|
+
...(o = e.attributes) == null ? void 0 : o.style,
|
|
1600
|
+
objectFit: e.fit,
|
|
1601
|
+
objectPosition: e.position,
|
|
1602
|
+
borderRadius: 1
|
|
1603
|
+
}, attrs: { src: e.video || "no-src", poster: e.posterImage } }, "video", e.spreadProps, !1));
|
|
1604
|
+
}, wt = [], It = /* @__PURE__ */ h(
|
|
1605
|
+
Ct,
|
|
1606
|
+
St,
|
|
1607
|
+
wt,
|
|
1608
|
+
!1,
|
|
1609
|
+
null,
|
|
1610
|
+
null,
|
|
1611
|
+
null,
|
|
1612
|
+
null
|
|
1613
|
+
);
|
|
1614
|
+
const Rt = It.exports, Tt = {
|
|
1485
1615
|
name: "Embed",
|
|
1486
1616
|
static: !0,
|
|
1487
1617
|
builtIn: !0,
|
|
@@ -1517,11 +1647,11 @@ const ut = dt.exports, mt = {
|
|
|
1517
1647
|
hideFromUI: !0
|
|
1518
1648
|
}
|
|
1519
1649
|
]
|
|
1520
|
-
},
|
|
1650
|
+
}, $t = [
|
|
1521
1651
|
"text/javascript",
|
|
1522
1652
|
"application/javascript",
|
|
1523
1653
|
"application/ecmascript"
|
|
1524
|
-
],
|
|
1654
|
+
], Et = (t) => $t.includes(t.type), At = {
|
|
1525
1655
|
name: "builder-embed",
|
|
1526
1656
|
props: ["content"],
|
|
1527
1657
|
data() {
|
|
@@ -1554,7 +1684,7 @@ const ut = dt.exports, mt = {
|
|
|
1554
1684
|
this.scriptsInserted.push(n.src);
|
|
1555
1685
|
const o = document.createElement("script");
|
|
1556
1686
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
1557
|
-
} else if (
|
|
1687
|
+
} else if (Et(n) && !this.scriptsRun.includes(n.innerText))
|
|
1558
1688
|
try {
|
|
1559
1689
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
1560
1690
|
} catch (o) {
|
|
@@ -1564,27 +1694,20 @@ const ut = dt.exports, mt = {
|
|
|
1564
1694
|
}
|
|
1565
1695
|
}
|
|
1566
1696
|
};
|
|
1567
|
-
var
|
|
1697
|
+
var Ft = function() {
|
|
1568
1698
|
var e = this, n = e._self._c;
|
|
1569
1699
|
return n("div", { ref: "elem", staticClass: "builder-embed", domProps: { innerHTML: e._s(e.content) } });
|
|
1570
|
-
},
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1700
|
+
}, jt = [], Pt = /* @__PURE__ */ h(
|
|
1701
|
+
At,
|
|
1702
|
+
Ft,
|
|
1703
|
+
jt,
|
|
1574
1704
|
!1,
|
|
1575
1705
|
null,
|
|
1576
1706
|
null,
|
|
1577
1707
|
null,
|
|
1578
1708
|
null
|
|
1579
1709
|
);
|
|
1580
|
-
const
|
|
1581
|
-
function Tt() {
|
|
1582
|
-
return m() && window.self !== window.top;
|
|
1583
|
-
}
|
|
1584
|
-
function f() {
|
|
1585
|
-
return Tt() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1586
|
-
}
|
|
1587
|
-
const $t = {
|
|
1710
|
+
const Ot = Pt.exports, Bt = {
|
|
1588
1711
|
name: "builder-img-component",
|
|
1589
1712
|
props: [
|
|
1590
1713
|
"backgroundSize",
|
|
@@ -1596,25 +1719,37 @@ const $t = {
|
|
|
1596
1719
|
],
|
|
1597
1720
|
data() {
|
|
1598
1721
|
return { isEditing: f };
|
|
1722
|
+
},
|
|
1723
|
+
methods: {
|
|
1724
|
+
filterAttrs: function(e = {}, n) {
|
|
1725
|
+
const o = "v-on:", s = (i) => i.startsWith(o), r = (i) => !i.startsWith(o), a = (i) => i.replace(o, "");
|
|
1726
|
+
return Object.keys(e).filter(n ? s : r).reduce(
|
|
1727
|
+
(i, l) => ({
|
|
1728
|
+
...i,
|
|
1729
|
+
[a(l)]: e[l]
|
|
1730
|
+
}),
|
|
1731
|
+
{}
|
|
1732
|
+
);
|
|
1733
|
+
}
|
|
1599
1734
|
}
|
|
1600
1735
|
};
|
|
1601
|
-
var
|
|
1736
|
+
var Ut = function() {
|
|
1602
1737
|
var e = this, n = e._self._c;
|
|
1603
|
-
return n("img", e._b({ key: e.isEditing() && e.imgSrc || "default-key", style: {
|
|
1738
|
+
return n("img", e._g(e._b({ key: e.isEditing() && e.imgSrc || "default-key", style: {
|
|
1604
1739
|
objectFit: e.backgroundSize || "cover",
|
|
1605
1740
|
objectPosition: e.backgroundPosition || "center"
|
|
1606
|
-
}, attrs: { alt: e.altText, src: e.imgSrc || e.image } }, "img", e.attributes, !1));
|
|
1607
|
-
},
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1741
|
+
}, attrs: { alt: e.altText, src: e.imgSrc || e.image } }, "img", e.filterAttrs(e.attributes, !1), !1), e.filterAttrs(e.attributes, !0)));
|
|
1742
|
+
}, Wt = [], Vt = /* @__PURE__ */ h(
|
|
1743
|
+
Bt,
|
|
1744
|
+
Ut,
|
|
1745
|
+
Wt,
|
|
1611
1746
|
!1,
|
|
1612
1747
|
null,
|
|
1613
1748
|
null,
|
|
1614
1749
|
null,
|
|
1615
1750
|
null
|
|
1616
1751
|
);
|
|
1617
|
-
const
|
|
1752
|
+
const Nt = Vt.exports, Lt = {
|
|
1618
1753
|
name: "Raw:Img",
|
|
1619
1754
|
hideFromInsertMenu: !0,
|
|
1620
1755
|
builtIn: !0,
|
|
@@ -1630,7 +1765,7 @@ const Ot = jt.exports, At = {
|
|
|
1630
1765
|
],
|
|
1631
1766
|
noWrap: !0,
|
|
1632
1767
|
static: !0
|
|
1633
|
-
},
|
|
1768
|
+
}, Mt = {
|
|
1634
1769
|
name: "builder-custom-code",
|
|
1635
1770
|
props: ["replaceNodes", "code"],
|
|
1636
1771
|
data() {
|
|
@@ -1678,22 +1813,22 @@ const Ot = jt.exports, At = {
|
|
|
1678
1813
|
}
|
|
1679
1814
|
}
|
|
1680
1815
|
};
|
|
1681
|
-
var
|
|
1816
|
+
var zt = function() {
|
|
1682
1817
|
var e = this, n = e._self._c;
|
|
1683
1818
|
return n("div", { ref: "elem", class: e._classStringToObject(
|
|
1684
1819
|
"builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")
|
|
1685
1820
|
), domProps: { innerHTML: e._s(e.code) } });
|
|
1686
|
-
},
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1821
|
+
}, Kt = [], Dt = /* @__PURE__ */ h(
|
|
1822
|
+
Mt,
|
|
1823
|
+
zt,
|
|
1824
|
+
Kt,
|
|
1690
1825
|
!1,
|
|
1691
1826
|
null,
|
|
1692
1827
|
null,
|
|
1693
1828
|
null,
|
|
1694
1829
|
null
|
|
1695
1830
|
);
|
|
1696
|
-
const
|
|
1831
|
+
const Ht = Dt.exports, qt = {
|
|
1697
1832
|
name: "Custom Code",
|
|
1698
1833
|
static: !0,
|
|
1699
1834
|
builtIn: !0,
|
|
@@ -1720,20 +1855,20 @@ const Wt = Vt.exports, Lt = {
|
|
|
1720
1855
|
advanced: !0
|
|
1721
1856
|
}
|
|
1722
1857
|
]
|
|
1723
|
-
},
|
|
1724
|
-
{ component:
|
|
1725
|
-
{ component:
|
|
1726
|
-
{ component:
|
|
1727
|
-
{ component:
|
|
1728
|
-
{ component:
|
|
1729
|
-
{ component:
|
|
1730
|
-
{ component:
|
|
1731
|
-
{ component:
|
|
1732
|
-
{ component:
|
|
1733
|
-
{ component:
|
|
1734
|
-
{ component:
|
|
1858
|
+
}, Gt = () => [
|
|
1859
|
+
{ component: ne, ...Pe },
|
|
1860
|
+
{ component: me, ...Oe },
|
|
1861
|
+
{ component: Ht, ...qt },
|
|
1862
|
+
{ component: Ot, ...Tt },
|
|
1863
|
+
{ component: be, ...Be },
|
|
1864
|
+
{ component: Se, ...Ue },
|
|
1865
|
+
{ component: Nt, ...Lt },
|
|
1866
|
+
{ component: ze, ...We },
|
|
1867
|
+
{ component: ft, ...Ke },
|
|
1868
|
+
{ component: xt, ...gt },
|
|
1869
|
+
{ component: Rt, ...kt }
|
|
1735
1870
|
];
|
|
1736
|
-
function
|
|
1871
|
+
function F({
|
|
1737
1872
|
code: t,
|
|
1738
1873
|
context: e,
|
|
1739
1874
|
state: n,
|
|
@@ -1746,9 +1881,9 @@ function j({
|
|
|
1746
1881
|
}
|
|
1747
1882
|
const r = {
|
|
1748
1883
|
isEditing: f(),
|
|
1749
|
-
isBrowser:
|
|
1750
|
-
isServer: !
|
|
1751
|
-
},
|
|
1884
|
+
isBrowser: p(),
|
|
1885
|
+
isServer: !p()
|
|
1886
|
+
}, i = s && !(t.includes(";") || t.includes(" return ") || t.trim().startsWith("return ")) ? `return (${t});` : t;
|
|
1752
1887
|
try {
|
|
1753
1888
|
return new Function(
|
|
1754
1889
|
"builder",
|
|
@@ -1756,127 +1891,127 @@ function j({
|
|
|
1756
1891
|
"state",
|
|
1757
1892
|
"context",
|
|
1758
1893
|
"event",
|
|
1759
|
-
|
|
1894
|
+
i
|
|
1760
1895
|
)(r, r, n, e, o);
|
|
1761
|
-
} catch (
|
|
1896
|
+
} catch (l) {
|
|
1762
1897
|
console.warn(
|
|
1763
1898
|
`Builder custom code error:
|
|
1764
1899
|
While Evaluating:
|
|
1765
1900
|
`,
|
|
1766
|
-
|
|
1901
|
+
i,
|
|
1767
1902
|
`
|
|
1768
1903
|
`,
|
|
1769
|
-
|
|
1904
|
+
l
|
|
1770
1905
|
);
|
|
1771
1906
|
}
|
|
1772
1907
|
}
|
|
1773
|
-
function
|
|
1774
|
-
return !
|
|
1908
|
+
function Jt() {
|
|
1909
|
+
return !p() || f() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1775
1910
|
}
|
|
1776
|
-
const
|
|
1777
|
-
function
|
|
1778
|
-
return
|
|
1911
|
+
const K = [];
|
|
1912
|
+
function $n(t, e) {
|
|
1913
|
+
return K.push({ component: t, ...e }), console.warn(
|
|
1779
1914
|
"registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."
|
|
1780
1915
|
), t;
|
|
1781
1916
|
}
|
|
1782
|
-
const
|
|
1917
|
+
const Xt = ({
|
|
1783
1918
|
component: t,
|
|
1784
1919
|
...e
|
|
1785
1920
|
}) => ({
|
|
1786
1921
|
type: "builder.registerComponent",
|
|
1787
|
-
data:
|
|
1788
|
-
}),
|
|
1922
|
+
data: Qt(e)
|
|
1923
|
+
}), Yt = (t) => typeof t == "function" ? _(t) : S(t), Qt = ({
|
|
1789
1924
|
inputs: t,
|
|
1790
1925
|
...e
|
|
1791
1926
|
}) => ({
|
|
1792
|
-
...
|
|
1927
|
+
...S(e),
|
|
1793
1928
|
inputs: t == null ? void 0 : t.map(
|
|
1794
1929
|
(n) => Object.entries(n).reduce(
|
|
1795
1930
|
(o, [s, r]) => ({
|
|
1796
1931
|
...o,
|
|
1797
|
-
[s]:
|
|
1932
|
+
[s]: Yt(r)
|
|
1798
1933
|
}),
|
|
1799
1934
|
{}
|
|
1800
1935
|
)
|
|
1801
1936
|
)
|
|
1802
1937
|
});
|
|
1803
|
-
function
|
|
1938
|
+
function Zt() {
|
|
1804
1939
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(t) {
|
|
1805
1940
|
const e = Math.random() * 16 | 0;
|
|
1806
1941
|
return (t == "x" ? e : e & 3 | 8).toString(16);
|
|
1807
1942
|
});
|
|
1808
1943
|
}
|
|
1809
|
-
function
|
|
1810
|
-
return
|
|
1944
|
+
function D() {
|
|
1945
|
+
return Zt().replace(/-/g, "");
|
|
1811
1946
|
}
|
|
1812
|
-
const
|
|
1947
|
+
const H = "builderSessionId", en = async ({
|
|
1813
1948
|
canTrack: t
|
|
1814
1949
|
}) => {
|
|
1815
1950
|
if (!t)
|
|
1816
1951
|
return;
|
|
1817
1952
|
const e = await V({
|
|
1818
|
-
name:
|
|
1953
|
+
name: H,
|
|
1819
1954
|
canTrack: t
|
|
1820
1955
|
});
|
|
1821
1956
|
if (b(e))
|
|
1822
1957
|
return e;
|
|
1823
1958
|
{
|
|
1824
|
-
const n =
|
|
1825
|
-
return
|
|
1959
|
+
const n = tn();
|
|
1960
|
+
return nn({ id: n, canTrack: t }), n;
|
|
1826
1961
|
}
|
|
1827
|
-
},
|
|
1962
|
+
}, tn = () => D(), nn = ({
|
|
1828
1963
|
id: t,
|
|
1829
1964
|
canTrack: e
|
|
1830
|
-
}) =>
|
|
1965
|
+
}) => N({ name: H, value: t, canTrack: e }), q = () => p() && typeof localStorage < "u" ? localStorage : void 0, on = ({
|
|
1831
1966
|
key: t,
|
|
1832
1967
|
canTrack: e
|
|
1833
1968
|
}) => {
|
|
1834
1969
|
var n;
|
|
1835
1970
|
try {
|
|
1836
|
-
return e ? (n =
|
|
1971
|
+
return e ? (n = q()) == null ? void 0 : n.getItem(t) : void 0;
|
|
1837
1972
|
} catch (o) {
|
|
1838
1973
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1839
1974
|
return;
|
|
1840
1975
|
}
|
|
1841
|
-
},
|
|
1976
|
+
}, sn = ({
|
|
1842
1977
|
key: t,
|
|
1843
1978
|
canTrack: e,
|
|
1844
1979
|
value: n
|
|
1845
1980
|
}) => {
|
|
1846
1981
|
var o;
|
|
1847
1982
|
try {
|
|
1848
|
-
e && ((o =
|
|
1983
|
+
e && ((o = q()) == null || o.setItem(t, n));
|
|
1849
1984
|
} catch (s) {
|
|
1850
1985
|
console.debug("[LocalStorage] SET error: ", s);
|
|
1851
1986
|
}
|
|
1852
|
-
},
|
|
1987
|
+
}, G = "builderVisitorId", rn = ({ canTrack: t }) => {
|
|
1853
1988
|
if (!t)
|
|
1854
1989
|
return;
|
|
1855
|
-
const e =
|
|
1856
|
-
key:
|
|
1990
|
+
const e = on({
|
|
1991
|
+
key: G,
|
|
1857
1992
|
canTrack: t
|
|
1858
1993
|
});
|
|
1859
1994
|
if (b(e))
|
|
1860
1995
|
return e;
|
|
1861
1996
|
{
|
|
1862
|
-
const n =
|
|
1863
|
-
return
|
|
1997
|
+
const n = an();
|
|
1998
|
+
return ln({ id: n, canTrack: t }), n;
|
|
1864
1999
|
}
|
|
1865
|
-
},
|
|
2000
|
+
}, an = () => D(), ln = ({
|
|
1866
2001
|
id: t,
|
|
1867
2002
|
canTrack: e
|
|
1868
|
-
}) =>
|
|
1869
|
-
key:
|
|
2003
|
+
}) => sn({
|
|
2004
|
+
key: G,
|
|
1870
2005
|
value: t,
|
|
1871
2006
|
canTrack: e
|
|
1872
|
-
}),
|
|
1873
|
-
if (
|
|
2007
|
+
}), cn = () => {
|
|
2008
|
+
if (p()) {
|
|
1874
2009
|
const t = new URL(location.href);
|
|
1875
2010
|
return t.pathname === "" && (t.pathname = "/"), t;
|
|
1876
2011
|
} else
|
|
1877
2012
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
1878
|
-
},
|
|
1879
|
-
const t =
|
|
2013
|
+
}, un = () => typeof navigator == "object" && navigator.userAgent || "", dn = () => {
|
|
2014
|
+
const t = un(), e = {
|
|
1880
2015
|
Android() {
|
|
1881
2016
|
return t.match(/Android/i);
|
|
1882
2017
|
},
|
|
@@ -1895,23 +2030,23 @@ const D = "builderSessionId", qt = async ({
|
|
|
1895
2030
|
any() {
|
|
1896
2031
|
return e.Android() || e.BlackBerry() || e.iOS() || e.Opera() || e.Windows() || v === "reactNative";
|
|
1897
2032
|
}
|
|
1898
|
-
}, n = t.match(/Tablet|iPad/i), o =
|
|
2033
|
+
}, n = t.match(/Tablet|iPad/i), o = cn();
|
|
1899
2034
|
return {
|
|
1900
2035
|
urlPath: o == null ? void 0 : o.pathname,
|
|
1901
2036
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
1902
2037
|
device: n ? "tablet" : e.any() ? "mobile" : "desktop"
|
|
1903
2038
|
};
|
|
1904
|
-
},
|
|
2039
|
+
}, mn = async ({
|
|
1905
2040
|
canTrack: t
|
|
1906
2041
|
}) => {
|
|
1907
2042
|
if (!t)
|
|
1908
2043
|
return { visitorId: void 0, sessionId: void 0 };
|
|
1909
|
-
const e = await
|
|
2044
|
+
const e = await en({ canTrack: t }), n = rn({ canTrack: t });
|
|
1910
2045
|
return {
|
|
1911
2046
|
sessionId: e,
|
|
1912
2047
|
visitorId: n
|
|
1913
2048
|
};
|
|
1914
|
-
},
|
|
2049
|
+
}, pn = async ({
|
|
1915
2050
|
type: t,
|
|
1916
2051
|
canTrack: e,
|
|
1917
2052
|
apiKey: n,
|
|
@@ -1925,23 +2060,23 @@ const D = "builderSessionId", qt = async ({
|
|
|
1925
2060
|
url: location.href,
|
|
1926
2061
|
...o
|
|
1927
2062
|
},
|
|
1928
|
-
...await
|
|
1929
|
-
userAttributes:
|
|
2063
|
+
...await mn({ canTrack: e }),
|
|
2064
|
+
userAttributes: dn(),
|
|
1930
2065
|
ownerId: n
|
|
1931
2066
|
}
|
|
1932
2067
|
});
|
|
1933
|
-
async function
|
|
2068
|
+
async function C(t) {
|
|
1934
2069
|
if (!t.apiKey) {
|
|
1935
2070
|
console.error(
|
|
1936
2071
|
"[Builder.io]: Missing API key for track call. Please provide your API key."
|
|
1937
2072
|
);
|
|
1938
2073
|
return;
|
|
1939
2074
|
}
|
|
1940
|
-
if (!!t.canTrack && !f() && !!(
|
|
2075
|
+
if (!!t.canTrack && !f() && !!(p() || v === "reactNative"))
|
|
1941
2076
|
return fetch("https://builder.io/api/v1/track", {
|
|
1942
2077
|
method: "POST",
|
|
1943
2078
|
body: JSON.stringify({
|
|
1944
|
-
events: [await
|
|
2079
|
+
events: [await pn(t)]
|
|
1945
2080
|
}),
|
|
1946
2081
|
headers: {
|
|
1947
2082
|
"content-type": "application/json"
|
|
@@ -1951,11 +2086,11 @@ async function k(t) {
|
|
|
1951
2086
|
console.error("Failed to track: ", e);
|
|
1952
2087
|
});
|
|
1953
2088
|
}
|
|
1954
|
-
const
|
|
1955
|
-
function
|
|
2089
|
+
const En = (t) => C({ ...t, canTrack: !0 });
|
|
2090
|
+
function j(t) {
|
|
1956
2091
|
return Math.round(t * 1e3) / 1e3;
|
|
1957
2092
|
}
|
|
1958
|
-
const
|
|
2093
|
+
const hn = (t, e, n = !0) => {
|
|
1959
2094
|
if (!(t instanceof HTMLElement))
|
|
1960
2095
|
return null;
|
|
1961
2096
|
let o = n ? t : t.parentElement;
|
|
@@ -1966,52 +2101,79 @@ const an = (t, e, n = !0) => {
|
|
|
1966
2101
|
return o;
|
|
1967
2102
|
} while (o = o.parentElement);
|
|
1968
2103
|
return null;
|
|
1969
|
-
},
|
|
2104
|
+
}, fn = (t) => hn(t, (e) => {
|
|
1970
2105
|
const n = e.getAttribute("builder-id") || e.id;
|
|
1971
2106
|
return Boolean((n == null ? void 0 : n.indexOf("builder-")) === 0);
|
|
1972
|
-
}),
|
|
2107
|
+
}), P = ({
|
|
1973
2108
|
event: t,
|
|
1974
2109
|
target: e
|
|
1975
2110
|
}) => {
|
|
1976
|
-
const n = e.getBoundingClientRect(), o = t.clientX - n.left, s = t.clientY - n.top, r =
|
|
2111
|
+
const n = e.getBoundingClientRect(), o = t.clientX - n.left, s = t.clientY - n.top, r = j(o / n.width), a = j(s / n.height);
|
|
1977
2112
|
return {
|
|
1978
2113
|
x: r,
|
|
1979
|
-
y:
|
|
2114
|
+
y: a
|
|
1980
2115
|
};
|
|
1981
|
-
},
|
|
1982
|
-
const e = t.target, n = e &&
|
|
2116
|
+
}, gn = (t) => {
|
|
2117
|
+
const e = t.target, n = e && fn(e), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
1983
2118
|
return {
|
|
1984
2119
|
targetBuilderElement: o || void 0,
|
|
1985
2120
|
metadata: {
|
|
1986
|
-
targetOffset: e ?
|
|
1987
|
-
builderTargetOffset: n ?
|
|
2121
|
+
targetOffset: e ? P({ event: t, target: e }) : void 0,
|
|
2122
|
+
builderTargetOffset: n ? P({ event: t, target: n }) : void 0,
|
|
1988
2123
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
1989
2124
|
}
|
|
1990
2125
|
};
|
|
1991
|
-
},
|
|
2126
|
+
}, bn = ({
|
|
2127
|
+
content: t,
|
|
2128
|
+
data: e,
|
|
2129
|
+
locale: n
|
|
2130
|
+
}) => {
|
|
2131
|
+
var r, a, i;
|
|
2132
|
+
const o = {};
|
|
2133
|
+
(a = (r = t == null ? void 0 : t.data) == null ? void 0 : r.inputs) == null || a.forEach((l) => {
|
|
2134
|
+
var c;
|
|
2135
|
+
l.name && l.defaultValue !== void 0 && ((c = t == null ? void 0 : t.data) == null ? void 0 : c.state) && t.data.state[l.name] === void 0 && (o[l.name] = l.defaultValue);
|
|
2136
|
+
});
|
|
2137
|
+
const s = {
|
|
2138
|
+
...(i = t == null ? void 0 : t.data) == null ? void 0 : i.state,
|
|
2139
|
+
...e,
|
|
2140
|
+
...n ? { locale: n } : {}
|
|
2141
|
+
};
|
|
2142
|
+
return { ...o, ...s };
|
|
2143
|
+
}, yn = ({
|
|
2144
|
+
content: t,
|
|
2145
|
+
data: e
|
|
2146
|
+
}) => t ? {
|
|
2147
|
+
...t,
|
|
2148
|
+
data: {
|
|
2149
|
+
...t == null ? void 0 : t.data,
|
|
2150
|
+
...e
|
|
2151
|
+
},
|
|
2152
|
+
meta: t == null ? void 0 : t.meta
|
|
2153
|
+
} : void 0, vn = () => Promise.resolve().then(() => U).then((t) => t.default).catch((t) => {
|
|
1992
2154
|
throw console.error(
|
|
1993
2155
|
"Error while attempting to dynamically import component RenderBlocks at ../render-blocks.vue",
|
|
1994
2156
|
t
|
|
1995
2157
|
), t;
|
|
1996
|
-
}),
|
|
2158
|
+
}), _n = () => import("./render-styles.239d91cf.js").then((t) => t.default).catch((t) => {
|
|
1997
2159
|
throw console.error(
|
|
1998
2160
|
"Error while attempting to dynamically import component RenderContentStyles at ./components/render-styles.vue",
|
|
1999
2161
|
t
|
|
2000
2162
|
), t;
|
|
2001
|
-
}),
|
|
2163
|
+
}), xn = {
|
|
2002
2164
|
name: "render-content",
|
|
2003
2165
|
components: {
|
|
2004
|
-
RenderContentStyles:
|
|
2005
|
-
RenderBlocks:
|
|
2166
|
+
RenderContentStyles: _n,
|
|
2167
|
+
RenderBlocks: vn
|
|
2006
2168
|
},
|
|
2007
2169
|
props: [
|
|
2008
2170
|
"content",
|
|
2009
2171
|
"data",
|
|
2010
2172
|
"canTrack",
|
|
2011
2173
|
"locale",
|
|
2012
|
-
"context",
|
|
2013
2174
|
"customComponents",
|
|
2014
2175
|
"model",
|
|
2176
|
+
"context",
|
|
2015
2177
|
"apiKey",
|
|
2016
2178
|
"includeRefs"
|
|
2017
2179
|
],
|
|
@@ -2019,14 +2181,20 @@ const an = (t, e, n = !0) => {
|
|
|
2019
2181
|
return {
|
|
2020
2182
|
forceReRenderCount: 0,
|
|
2021
2183
|
overrideContent: null,
|
|
2184
|
+
useContent: yn({
|
|
2185
|
+
content: this.content,
|
|
2186
|
+
data: this.data
|
|
2187
|
+
}),
|
|
2022
2188
|
update: 0,
|
|
2023
|
-
useBreakpoints: null,
|
|
2024
2189
|
canTrackToUse: b(this.canTrack) ? this.canTrack : !0,
|
|
2025
|
-
|
|
2026
|
-
|
|
2190
|
+
contentState: bn({
|
|
2191
|
+
content: this.content,
|
|
2192
|
+
data: this.data,
|
|
2193
|
+
locale: this.locale
|
|
2194
|
+
}),
|
|
2027
2195
|
allRegisteredComponents: [
|
|
2028
|
-
...
|
|
2029
|
-
...
|
|
2196
|
+
...Gt(),
|
|
2197
|
+
...K,
|
|
2030
2198
|
...this.customComponents || []
|
|
2031
2199
|
].reduce(
|
|
2032
2200
|
(t, e) => ({
|
|
@@ -2042,10 +2210,11 @@ const an = (t, e, n = !0) => {
|
|
|
2042
2210
|
provide() {
|
|
2043
2211
|
const t = this;
|
|
2044
2212
|
return {
|
|
2045
|
-
[
|
|
2213
|
+
[w.key]: {
|
|
2046
2214
|
content: t.useContent,
|
|
2047
2215
|
state: t.contentState,
|
|
2048
|
-
|
|
2216
|
+
setState: t.setContextState,
|
|
2217
|
+
context: t.context || {},
|
|
2049
2218
|
apiKey: t.apiKey,
|
|
2050
2219
|
registeredComponents: t.allRegisteredComponents
|
|
2051
2220
|
}
|
|
@@ -2055,7 +2224,7 @@ const an = (t, e, n = !0) => {
|
|
|
2055
2224
|
var t, e;
|
|
2056
2225
|
if (this.apiKey || console.error(
|
|
2057
2226
|
"[Builder.io]: No API key provided to `RenderContent` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
2058
|
-
),
|
|
2227
|
+
), p()) {
|
|
2059
2228
|
if (f() && (this.forceReRenderCount = this.forceReRenderCount + 1, X(), Y({
|
|
2060
2229
|
...this.locale ? {
|
|
2061
2230
|
locale: this.locale
|
|
@@ -2066,7 +2235,7 @@ const an = (t, e, n = !0) => {
|
|
|
2066
2235
|
}), Object.values(this.allRegisteredComponents).forEach(
|
|
2067
2236
|
(n) => {
|
|
2068
2237
|
var s;
|
|
2069
|
-
const o =
|
|
2238
|
+
const o = Xt(n);
|
|
2070
2239
|
(s = window.parent) == null || s.postMessage(o, "*");
|
|
2071
2240
|
}
|
|
2072
2241
|
), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
@@ -2074,7 +2243,7 @@ const an = (t, e, n = !0) => {
|
|
|
2074
2243
|
this.emitStateUpdate
|
|
2075
2244
|
)), this.useContent) {
|
|
2076
2245
|
const n = (t = this.useContent) == null ? void 0 : t.testVariationId, o = (e = this.useContent) == null ? void 0 : e.id;
|
|
2077
|
-
|
|
2246
|
+
C({
|
|
2078
2247
|
type: "impression",
|
|
2079
2248
|
canTrack: this.canTrackToUse,
|
|
2080
2249
|
contentId: o,
|
|
@@ -2082,13 +2251,13 @@ const an = (t, e, n = !0) => {
|
|
|
2082
2251
|
variationId: n !== o ? n : void 0
|
|
2083
2252
|
});
|
|
2084
2253
|
}
|
|
2085
|
-
if (
|
|
2254
|
+
if (Jt()) {
|
|
2086
2255
|
const n = new URL(location.href).searchParams, o = n.get("builder.preview"), s = n.get("apiKey") || n.get("builder.space");
|
|
2087
|
-
o === this.model && s === this.apiKey &&
|
|
2256
|
+
o === this.model && s === this.apiKey && z({
|
|
2088
2257
|
model: this.model,
|
|
2089
2258
|
apiKey: this.apiKey
|
|
2090
2259
|
}).then((r) => {
|
|
2091
|
-
r &&
|
|
2260
|
+
r && this.mergeNewContent(r);
|
|
2092
2261
|
});
|
|
2093
2262
|
}
|
|
2094
2263
|
this.evaluateJsCode(), this.runHttpRequests(), this.emitStateUpdate();
|
|
@@ -2115,41 +2284,12 @@ const an = (t, e, n = !0) => {
|
|
|
2115
2284
|
}
|
|
2116
2285
|
},
|
|
2117
2286
|
unmounted() {
|
|
2118
|
-
|
|
2287
|
+
p() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
2119
2288
|
"builder:component:stateChangeListenerActivated",
|
|
2120
2289
|
this.emitStateUpdate
|
|
2121
2290
|
));
|
|
2122
2291
|
},
|
|
2123
2292
|
computed: {
|
|
2124
|
-
useContent() {
|
|
2125
|
-
var t, e, n, o, s, r, i, c;
|
|
2126
|
-
if (!(!this.content && !this.overrideContent))
|
|
2127
|
-
return {
|
|
2128
|
-
...this.content,
|
|
2129
|
-
...this.overrideContent,
|
|
2130
|
-
data: {
|
|
2131
|
-
...(t = this.content) == null ? void 0 : t.data,
|
|
2132
|
-
...this.data,
|
|
2133
|
-
...(e = this.overrideContent) == null ? void 0 : e.data
|
|
2134
|
-
},
|
|
2135
|
-
meta: {
|
|
2136
|
-
...(n = this.content) == null ? void 0 : n.meta,
|
|
2137
|
-
...(o = this.overrideContent) == null ? void 0 : o.meta,
|
|
2138
|
-
breakpoints: this.useBreakpoints || ((r = (s = this.overrideContent) == null ? void 0 : s.meta) == null ? void 0 : r.breakpoints) || ((c = (i = this.content) == null ? void 0 : i.meta) == null ? void 0 : c.breakpoints)
|
|
2139
|
-
}
|
|
2140
|
-
};
|
|
2141
|
-
},
|
|
2142
|
-
contentState() {
|
|
2143
|
-
var t, e;
|
|
2144
|
-
return {
|
|
2145
|
-
...(e = (t = this.content) == null ? void 0 : t.data) == null ? void 0 : e.state,
|
|
2146
|
-
...this.data,
|
|
2147
|
-
...this.locale ? {
|
|
2148
|
-
locale: this.locale
|
|
2149
|
-
} : {},
|
|
2150
|
-
...this.overrideState
|
|
2151
|
-
};
|
|
2152
|
-
},
|
|
2153
2293
|
shouldRenderContentStyles() {
|
|
2154
2294
|
var t, e, n, o, s;
|
|
2155
2295
|
return Boolean(
|
|
@@ -2176,6 +2316,35 @@ const an = (t, e, n = !0) => {
|
|
|
2176
2316
|
}
|
|
2177
2317
|
},
|
|
2178
2318
|
methods: {
|
|
2319
|
+
mergeNewContent(t) {
|
|
2320
|
+
var e, n, o, s, r;
|
|
2321
|
+
this.useContent = {
|
|
2322
|
+
...this.useContent,
|
|
2323
|
+
...t,
|
|
2324
|
+
data: {
|
|
2325
|
+
...(e = this.useContent) == null ? void 0 : e.data,
|
|
2326
|
+
...t == null ? void 0 : t.data
|
|
2327
|
+
},
|
|
2328
|
+
meta: {
|
|
2329
|
+
...(n = this.useContent) == null ? void 0 : n.meta,
|
|
2330
|
+
...t == null ? void 0 : t.meta,
|
|
2331
|
+
breakpoints: ((o = t == null ? void 0 : t.meta) == null ? void 0 : o.breakpoints) || ((r = (s = this.useContent) == null ? void 0 : s.meta) == null ? void 0 : r.breakpoints)
|
|
2332
|
+
}
|
|
2333
|
+
};
|
|
2334
|
+
},
|
|
2335
|
+
setBreakpoints(t) {
|
|
2336
|
+
var e;
|
|
2337
|
+
this.useContent = {
|
|
2338
|
+
...this.useContent,
|
|
2339
|
+
meta: {
|
|
2340
|
+
...(e = this.useContent) == null ? void 0 : e.meta,
|
|
2341
|
+
breakpoints: t
|
|
2342
|
+
}
|
|
2343
|
+
};
|
|
2344
|
+
},
|
|
2345
|
+
setContextState(t) {
|
|
2346
|
+
this.contentState = t;
|
|
2347
|
+
},
|
|
2179
2348
|
processMessage(t) {
|
|
2180
2349
|
var n;
|
|
2181
2350
|
const { data: e } = t;
|
|
@@ -2185,12 +2354,12 @@ const an = (t, e, n = !0) => {
|
|
|
2185
2354
|
const o = e.data, { breakpoints: s, contentId: r } = o;
|
|
2186
2355
|
if (!r || r !== ((n = this.useContent) == null ? void 0 : n.id))
|
|
2187
2356
|
return;
|
|
2188
|
-
this.
|
|
2357
|
+
s && this.setBreakpoints(s), this.forceReRenderCount = this.forceReRenderCount + 1;
|
|
2189
2358
|
break;
|
|
2190
2359
|
}
|
|
2191
2360
|
case "builder.contentUpdate": {
|
|
2192
2361
|
const o = e.data, s = o.key || o.alias || o.entry || o.modelName, r = o.data;
|
|
2193
|
-
s === this.model && (this.
|
|
2362
|
+
s === this.model && (this.mergeNewContent(r), this.forceReRenderCount = this.forceReRenderCount + 1);
|
|
2194
2363
|
break;
|
|
2195
2364
|
}
|
|
2196
2365
|
}
|
|
@@ -2198,9 +2367,9 @@ const an = (t, e, n = !0) => {
|
|
|
2198
2367
|
evaluateJsCode() {
|
|
2199
2368
|
var e, n;
|
|
2200
2369
|
const t = (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.jsCode;
|
|
2201
|
-
t &&
|
|
2370
|
+
t && F({
|
|
2202
2371
|
code: t,
|
|
2203
|
-
context: this.
|
|
2372
|
+
context: this.context || {},
|
|
2204
2373
|
state: this.contentState
|
|
2205
2374
|
});
|
|
2206
2375
|
},
|
|
@@ -2208,13 +2377,13 @@ const an = (t, e, n = !0) => {
|
|
|
2208
2377
|
var e, n;
|
|
2209
2378
|
if (this.useContent) {
|
|
2210
2379
|
const o = (e = this.useContent) == null ? void 0 : e.testVariationId, s = (n = this.useContent) == null ? void 0 : n.id;
|
|
2211
|
-
|
|
2380
|
+
C({
|
|
2212
2381
|
type: "click",
|
|
2213
2382
|
canTrack: this.canTrackToUse,
|
|
2214
2383
|
contentId: s,
|
|
2215
2384
|
apiKey: this.apiKey,
|
|
2216
2385
|
variationId: o !== s ? o : void 0,
|
|
2217
|
-
...
|
|
2386
|
+
...gn(t),
|
|
2218
2387
|
unique: !this.clicked
|
|
2219
2388
|
});
|
|
2220
2389
|
}
|
|
@@ -2223,20 +2392,20 @@ const an = (t, e, n = !0) => {
|
|
|
2223
2392
|
evalExpression(t) {
|
|
2224
2393
|
return t.replace(
|
|
2225
2394
|
/{{([^}]+)}}/g,
|
|
2226
|
-
(e, n) =>
|
|
2395
|
+
(e, n) => F({
|
|
2227
2396
|
code: n,
|
|
2228
|
-
context: this.
|
|
2397
|
+
context: this.context || {},
|
|
2229
2398
|
state: this.contentState
|
|
2230
2399
|
})
|
|
2231
2400
|
);
|
|
2232
2401
|
},
|
|
2233
2402
|
handleRequest({ url: t, key: e }) {
|
|
2234
|
-
|
|
2403
|
+
W(t).then((n) => n.json()).then((n) => {
|
|
2235
2404
|
const o = {
|
|
2236
|
-
...this.
|
|
2405
|
+
...this.contentState,
|
|
2237
2406
|
[e]: n
|
|
2238
2407
|
};
|
|
2239
|
-
this.
|
|
2408
|
+
this.setContextState(o);
|
|
2240
2409
|
}).catch((n) => {
|
|
2241
2410
|
console.log("error fetching dynamic data", t, n);
|
|
2242
2411
|
});
|
|
@@ -2246,9 +2415,9 @@ const an = (t, e, n = !0) => {
|
|
|
2246
2415
|
const t = (o = (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.httpRequests) != null ? o : {};
|
|
2247
2416
|
Object.entries(t).forEach(([s, r]) => {
|
|
2248
2417
|
if (r && (!this.httpReqsData[s] || f())) {
|
|
2249
|
-
const
|
|
2418
|
+
const a = this.evalExpression(r);
|
|
2250
2419
|
this.handleRequest({
|
|
2251
|
-
url:
|
|
2420
|
+
url: a,
|
|
2252
2421
|
key: s
|
|
2253
2422
|
});
|
|
2254
2423
|
}
|
|
@@ -2268,155 +2437,68 @@ const an = (t, e, n = !0) => {
|
|
|
2268
2437
|
}
|
|
2269
2438
|
}
|
|
2270
2439
|
};
|
|
2271
|
-
var
|
|
2272
|
-
var o, s, r, i,
|
|
2273
|
-
var e = this, n = e._self._c;
|
|
2274
|
-
return e.useContent ? n("div", { ref: "elementRef", attrs: { "builder-content-id": (o = e.useContent) == null ? void 0 : o.id, "builder-model": e.model }, on: { click: function(u) {
|
|
2275
|
-
return e.onClick(u);
|
|
2276
|
-
} } }, [e.shouldRenderContentStyles ? [n("render-content-styles", { attrs: { cssCode: (r = (s = e.useContent) == null ? void 0 : s.data) == null ? void 0 : r.cssCode, customFonts: (c = (i = e.useContent) == null ? void 0 : i.data) == null ? void 0 : c.customFonts } })] : e._e(), n("render-blocks", { key: e.forceReRenderCount, attrs: { blocks: (d = (a = e.useContent) == null ? void 0 : a.data) == null ? void 0 : d.blocks } })], 2) : e._e();
|
|
2277
|
-
}, hn = [], fn = /* @__PURE__ */ p(
|
|
2278
|
-
mn,
|
|
2279
|
-
pn,
|
|
2280
|
-
hn,
|
|
2281
|
-
!1,
|
|
2282
|
-
null,
|
|
2283
|
-
null,
|
|
2284
|
-
null,
|
|
2285
|
-
null
|
|
2286
|
-
);
|
|
2287
|
-
const gn = fn.exports, bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2288
|
-
__proto__: null,
|
|
2289
|
-
default: gn
|
|
2290
|
-
}, Symbol.toStringTag, { value: "Module" })), yn = () => import("./block-styles.d52d65f7.js").then((t) => t.default).catch((t) => {
|
|
2291
|
-
throw console.error(
|
|
2292
|
-
"Error while attempting to dynamically import component BlockStyles at ./render-block/block-styles.vue",
|
|
2293
|
-
t
|
|
2294
|
-
), t;
|
|
2295
|
-
}), vn = () => import("./render-block.5069cc94.js").then((t) => t.default).catch((t) => {
|
|
2296
|
-
throw console.error(
|
|
2297
|
-
"Error while attempting to dynamically import component RenderBlock at ./render-block/render-block.vue",
|
|
2298
|
-
t
|
|
2299
|
-
), t;
|
|
2300
|
-
}), _n = {
|
|
2301
|
-
name: "render-blocks",
|
|
2302
|
-
components: { RenderBlock: vn, BlockStyles: yn },
|
|
2303
|
-
props: ["blocks", "parent", "path", "styleProp"],
|
|
2304
|
-
inject: {
|
|
2305
|
-
builderContext: S.key
|
|
2306
|
-
},
|
|
2307
|
-
computed: {
|
|
2308
|
-
className() {
|
|
2309
|
-
var t;
|
|
2310
|
-
return "builder-blocks" + ((t = this.blocks) != null && t.length ? "" : " no-blocks");
|
|
2311
|
-
}
|
|
2312
|
-
},
|
|
2313
|
-
methods: {
|
|
2314
|
-
onClick() {
|
|
2315
|
-
var t, e;
|
|
2316
|
-
f() && !((t = this.blocks) != null && t.length) && ((e = window.parent) == null || e.postMessage(
|
|
2317
|
-
{
|
|
2318
|
-
type: "builder.clickEmptyBlocks",
|
|
2319
|
-
data: {
|
|
2320
|
-
parentElementId: this.parent,
|
|
2321
|
-
dataPath: this.path
|
|
2322
|
-
}
|
|
2323
|
-
},
|
|
2324
|
-
"*"
|
|
2325
|
-
));
|
|
2326
|
-
},
|
|
2327
|
-
onMouseEnter() {
|
|
2328
|
-
var t, e;
|
|
2329
|
-
f() && !((t = this.blocks) != null && t.length) && ((e = window.parent) == null || e.postMessage(
|
|
2330
|
-
{
|
|
2331
|
-
type: "builder.hoverEmptyBlocks",
|
|
2332
|
-
data: {
|
|
2333
|
-
parentElementId: this.parent,
|
|
2334
|
-
dataPath: this.path
|
|
2335
|
-
}
|
|
2336
|
-
},
|
|
2337
|
-
"*"
|
|
2338
|
-
));
|
|
2339
|
-
},
|
|
2340
|
-
_classStringToObject(t) {
|
|
2341
|
-
const e = {};
|
|
2342
|
-
if (typeof t != "string")
|
|
2343
|
-
return e;
|
|
2344
|
-
const n = t.trim().split(/\s+/);
|
|
2345
|
-
for (const o of n)
|
|
2346
|
-
e[o] = !0;
|
|
2347
|
-
return e;
|
|
2348
|
-
}
|
|
2349
|
-
}
|
|
2350
|
-
};
|
|
2351
|
-
var xn = function() {
|
|
2440
|
+
var kn = function() {
|
|
2441
|
+
var o, s, r, a, i, l, c, d;
|
|
2352
2442
|
var e = this, n = e._self._c;
|
|
2353
|
-
return n("div", {
|
|
2354
|
-
|
|
2355
|
-
} },
|
|
2356
|
-
|
|
2357
|
-
}, mouseenter: function(o) {
|
|
2358
|
-
return e.onMouseEnter();
|
|
2359
|
-
} } }, [e.blocks ? e._l(e.blocks, function(o, s) {
|
|
2360
|
-
return n("render-block", { key: "render-block-" + o.id, attrs: { block: o, context: e.builderContext } });
|
|
2361
|
-
}) : e._e(), e.blocks ? e._l(e.blocks, function(o, s) {
|
|
2362
|
-
return n("block-styles", { key: "block-style-" + o.id, attrs: { block: o, context: e.builderContext } });
|
|
2363
|
-
}) : e._e()], 2);
|
|
2364
|
-
}, Cn = [], kn = /* @__PURE__ */ p(
|
|
2365
|
-
_n,
|
|
2443
|
+
return e.useContent ? n("div", { ref: "elementRef", attrs: { "builder-content-id": (o = e.useContent) == null ? void 0 : o.id, "builder-model": e.model }, on: { click: function(m) {
|
|
2444
|
+
return e.onClick(m);
|
|
2445
|
+
} } }, [e.shouldRenderContentStyles ? [n("render-content-styles", { attrs: { contentId: (s = e.useContent) == null ? void 0 : s.id, cssCode: (a = (r = e.useContent) == null ? void 0 : r.data) == null ? void 0 : a.cssCode, customFonts: (l = (i = e.useContent) == null ? void 0 : i.data) == null ? void 0 : l.customFonts } })] : e._e(), n("render-blocks", { key: e.forceReRenderCount, attrs: { blocks: (d = (c = e.useContent) == null ? void 0 : c.data) == null ? void 0 : d.blocks } })], 2) : e._e();
|
|
2446
|
+
}, Cn = [], Sn = /* @__PURE__ */ h(
|
|
2366
2447
|
xn,
|
|
2448
|
+
kn,
|
|
2367
2449
|
Cn,
|
|
2368
2450
|
!1,
|
|
2369
2451
|
null,
|
|
2370
|
-
|
|
2452
|
+
null,
|
|
2371
2453
|
null,
|
|
2372
2454
|
null
|
|
2373
2455
|
);
|
|
2374
|
-
const wn =
|
|
2456
|
+
const wn = Sn.exports, In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2375
2457
|
__proto__: null,
|
|
2376
2458
|
default: wn
|
|
2377
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
2378
|
-
function
|
|
2379
|
-
if (
|
|
2380
|
-
Object.assign(
|
|
2459
|
+
}, Symbol.toStringTag, { value: "Module" })), O = {};
|
|
2460
|
+
function An(t) {
|
|
2461
|
+
if (p()) {
|
|
2462
|
+
Object.assign(O, t);
|
|
2381
2463
|
const e = {
|
|
2382
2464
|
type: "builder.settingsChange",
|
|
2383
|
-
data:
|
|
2465
|
+
data: O
|
|
2384
2466
|
};
|
|
2385
2467
|
parent.postMessage(e, "*");
|
|
2386
2468
|
}
|
|
2387
2469
|
}
|
|
2388
2470
|
export {
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2471
|
+
w as B,
|
|
2472
|
+
me as C,
|
|
2473
|
+
be as F,
|
|
2474
|
+
Se as I,
|
|
2475
|
+
ze as S,
|
|
2394
2476
|
v as T,
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2477
|
+
Rt as V,
|
|
2478
|
+
Rn as a,
|
|
2479
|
+
re as b,
|
|
2480
|
+
Tn as c,
|
|
2481
|
+
ne as d,
|
|
2482
|
+
F as e,
|
|
2483
|
+
S as f,
|
|
2484
|
+
oe as g,
|
|
2485
|
+
wn as h,
|
|
2486
|
+
ft as i,
|
|
2487
|
+
xt as j,
|
|
2406
2488
|
f as k,
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2489
|
+
Jt as l,
|
|
2490
|
+
K as m,
|
|
2491
|
+
h as n,
|
|
2492
|
+
$n as o,
|
|
2493
|
+
Xt as p,
|
|
2412
2494
|
J as q,
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2495
|
+
je as r,
|
|
2496
|
+
An as s,
|
|
2497
|
+
En as t,
|
|
2498
|
+
z as u,
|
|
2499
|
+
ct as v,
|
|
2500
|
+
rt as w,
|
|
2501
|
+
it as x,
|
|
2502
|
+
at as y,
|
|
2503
|
+
M as z
|
|
2422
2504
|
};
|