@builder.io/sdk-vue 0.0.1-73 → 0.0.1
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/dist/vue-2/{block-styles.4027f1b9.js → block-styles.3f130795.js} +21 -18
- package/dist/vue-2/block-styles.da610cf5.cjs +10 -0
- package/dist/{vue-3/get-processed-block.36f8ee1a.cjs → vue-2/get-processed-block.2bcd0d2b.cjs} +1 -1
- package/dist/{vue-3/get-processed-block.3fdcf745.js → vue-2/get-processed-block.c01e4ddc.js} +1 -1
- package/dist/vue-2/{index.62438203.js → index.0622ae10.js} +767 -631
- package/dist/vue-2/index.dcdf302c.cjs +4 -0
- package/dist/vue-2/render-block.bdaa8069.js +243 -0
- package/dist/vue-2/render-block.f41ce0b2.cjs +3 -0
- package/dist/vue-2/{render-inlined-styles.50d42108.js → render-inlined-styles.7974da9f.js} +11 -8
- package/dist/vue-2/{render-inlined-styles.ff54866e.cjs → render-inlined-styles.b3a06398.cjs} +1 -1
- package/dist/vue-2/render-repeated-block.c2b982e3.js +45 -0
- package/dist/vue-2/render-repeated-block.f36a831f.cjs +1 -0
- package/dist/vue-2/render-styles.354823a4.js +65 -0
- package/dist/vue-2/{render-styles.95568b18.cjs → render-styles.4b5b2368.cjs} +2 -2
- package/dist/vue-2/sdk.cjs +1 -1
- package/dist/vue-2/sdk.js +4 -4
- package/dist/vue-2/style.css +1 -1
- package/dist/vue-3/{block-styles.83ef5bb2.js → block-styles.76754b24.js} +25 -20
- package/dist/vue-3/{block-styles.98e0bfa5.cjs → block-styles.e17850cc.cjs} +3 -3
- package/dist/{vue-2/get-processed-block.d751f4a7.cjs → vue-3/get-processed-block.2dd25223.cjs} +1 -1
- package/dist/{vue-2/get-processed-block.0494fb81.js → vue-3/get-processed-block.6eaca128.js} +1 -1
- package/dist/vue-3/{index.843892e8.js → index.52915610.js} +757 -622
- package/dist/vue-3/index.91387fc2.cjs +4 -0
- package/dist/vue-3/render-block.369b7818.js +255 -0
- package/dist/vue-3/render-block.c9718d52.cjs +3 -0
- package/dist/vue-3/{render-inlined-styles.52546cc8.cjs → render-inlined-styles.2a3eeef4.cjs} +1 -1
- package/dist/vue-3/{render-inlined-styles.1a6db9d2.js → render-inlined-styles.af201a11.js} +11 -8
- package/dist/vue-3/render-repeated-block.4266e559.js +40 -0
- package/dist/vue-3/render-repeated-block.b4a6d591.cjs +1 -0
- package/dist/vue-3/render-styles.1744d2eb.js +59 -0
- package/dist/vue-3/{render-styles.7008104f.cjs → render-styles.7d5898dd.cjs} +2 -2
- package/dist/vue-3/sdk.cjs +1 -1
- package/dist/vue-3/sdk.js +3 -3
- package/dist/vue-3/style.css +1 -1
- package/nuxt.js +3 -2
- package/package.json +9 -2
- package/dist/vue-2/block-styles.8800a764.cjs +0 -10
- package/dist/vue-2/index.1aa5d3e4.cjs +0 -1
- package/dist/vue-2/index.3e132178.js +0 -78896
- package/dist/vue-2/index.475f52c7.cjs +0 -1
- package/dist/vue-2/render-block.1e8573eb.js +0 -206
- package/dist/vue-2/render-block.c46898e7.cjs +0 -3
- package/dist/vue-2/render-component.61552d2f.cjs +0 -1
- package/dist/vue-2/render-component.7863c949.js +0 -27
- package/dist/vue-2/render-repeated-block.b228208b.cjs +0 -1
- package/dist/vue-2/render-repeated-block.ec12e3ae.js +0 -39
- package/dist/vue-2/render-styles.9ef447c4.js +0 -62
- package/dist/vue-3/index.e1b4b830.cjs +0 -1
- package/dist/vue-3/render-block.66ba74d8.js +0 -214
- package/dist/vue-3/render-block.7f3bcf7c.cjs +0 -3
- package/dist/vue-3/render-component.3fc97401.js +0 -29
- package/dist/vue-3/render-component.8c88611c.cjs +0 -1
- package/dist/vue-3/render-repeated-block.782a1fd8.js +0 -34
- package/dist/vue-3/render-repeated-block.f3519de4.cjs +0 -1
- package/dist/vue-3/render-styles.8ab3c39a.js +0 -54
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineAsyncComponent as v, resolveComponent as _, openBlock as d, createElementBlock as p, normalizeStyle as k, Fragment as j, renderList as E, createVNode as
|
|
2
|
-
const
|
|
1
|
+
import { defineAsyncComponent as v, resolveComponent as _, openBlock as d, createElementBlock as p, normalizeStyle as k, Fragment as j, renderList as E, createVNode as re, createElementVNode as O, createCommentVNode as y, normalizeClass as ae, renderSlot as C, mergeProps as x, toDisplayString as N, createBlock as S } from "vue";
|
|
2
|
+
const V = "vue3";
|
|
3
3
|
function f() {
|
|
4
4
|
return typeof window < "u" && typeof document < "u";
|
|
5
5
|
}
|
|
6
6
|
const B = {};
|
|
7
|
-
function
|
|
7
|
+
function Ce(e, n) {
|
|
8
8
|
let t = B[e];
|
|
9
9
|
if (t || (t = B[e] = []), t.push(n), f()) {
|
|
10
10
|
const o = {
|
|
@@ -22,7 +22,7 @@ function ke(e, n) {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
const Se = () => {
|
|
25
|
-
|
|
25
|
+
Ce("insertMenu", {
|
|
26
26
|
name: "_default",
|
|
27
27
|
default: !0,
|
|
28
28
|
items: [
|
|
@@ -36,12 +36,12 @@ const Se = () => {
|
|
|
36
36
|
{ name: "Custom Code" }
|
|
37
37
|
]
|
|
38
38
|
});
|
|
39
|
-
},
|
|
39
|
+
}, Ie = () => {
|
|
40
40
|
var e;
|
|
41
41
|
f() && ((e = window.parent) == null || e.postMessage({
|
|
42
42
|
type: "builder.sdkInfo",
|
|
43
43
|
data: {
|
|
44
|
-
target:
|
|
44
|
+
target: V,
|
|
45
45
|
supportsPatchUpdates: !1
|
|
46
46
|
}
|
|
47
47
|
}, "*"), window.addEventListener("message", ({ data: n }) => {
|
|
@@ -49,17 +49,17 @@ const Se = () => {
|
|
|
49
49
|
if (n)
|
|
50
50
|
switch (n.type) {
|
|
51
51
|
case "builder.evaluate": {
|
|
52
|
-
const r = n.data.text,
|
|
53
|
-
let
|
|
52
|
+
const r = n.data.text, a = n.data.arguments || [], i = n.data.id, l = new Function(r);
|
|
53
|
+
let s, c = null;
|
|
54
54
|
try {
|
|
55
|
-
|
|
55
|
+
s = l.apply(null, a);
|
|
56
56
|
} catch (u) {
|
|
57
|
-
|
|
57
|
+
c = u;
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
c ? (t = window.parent) == null || t.postMessage({
|
|
60
60
|
type: "builder.evaluateError",
|
|
61
|
-
data: { id: i, error:
|
|
62
|
-
}, "*") :
|
|
61
|
+
data: { id: i, error: c.message }
|
|
62
|
+
}, "*") : s && typeof s.then == "function" ? s.then((u) => {
|
|
63
63
|
var m;
|
|
64
64
|
(m = window.parent) == null || m.postMessage({
|
|
65
65
|
type: "builder.evaluateResult",
|
|
@@ -67,92 +67,114 @@ const Se = () => {
|
|
|
67
67
|
}, "*");
|
|
68
68
|
}).catch(console.error) : (o = window.parent) == null || o.postMessage({
|
|
69
69
|
type: "builder.evaluateResult",
|
|
70
|
-
data: { result:
|
|
70
|
+
data: { result: s, id: i }
|
|
71
71
|
}, "*");
|
|
72
72
|
break;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
}));
|
|
76
|
-
}, Ie = () => Promise.resolve().then(() => xe), Te = {
|
|
77
|
-
name: "builder-columns",
|
|
78
|
-
components: { "render-blocks": v(Ie) },
|
|
79
|
-
props: ["space", "columns", "stackColumnsAt", "reverseColumnsWhenStacked", "builderBlock"],
|
|
80
|
-
computed: { columnsCssVars() {
|
|
81
|
-
const e = this.stackColumnsAt === "never" ? "inherit" : this.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
82
|
-
return {
|
|
83
|
-
"--flex-dir": e,
|
|
84
|
-
"--flex-dir-tablet": this.maybeApplyForTablet(e)
|
|
85
|
-
};
|
|
86
|
-
}, columnCssVars() {
|
|
87
|
-
const e = "100%", n = "0";
|
|
88
|
-
return {
|
|
89
|
-
"--column-width": e,
|
|
90
|
-
"--column-margin-left": n,
|
|
91
|
-
"--column-width-tablet": this.maybeApplyForTablet(e),
|
|
92
|
-
"--column-margin-left-tablet": this.maybeApplyForTablet(n)
|
|
93
|
-
};
|
|
94
|
-
} },
|
|
95
|
-
methods: { getGutterSize() {
|
|
96
|
-
return typeof this.space == "number" ? this.space || 0 : 20;
|
|
97
|
-
}, getColumns() {
|
|
98
|
-
return this.columns || [];
|
|
99
|
-
}, getWidth(e) {
|
|
100
|
-
var t;
|
|
101
|
-
const n = this.getColumns();
|
|
102
|
-
return ((t = n[e]) == null ? void 0 : t.width) || 100 / n.length;
|
|
103
|
-
}, getColumnCssWidth(e) {
|
|
104
|
-
const n = this.getColumns(), o = this.getGutterSize() * (n.length - 1) / n.length;
|
|
105
|
-
return `calc(${this.getWidth(e)}% - ${o}px)`;
|
|
106
|
-
}, maybeApplyForTablet(e) {
|
|
107
|
-
return (this.stackColumnsAt || "tablet") === "tablet" ? e : "inherit";
|
|
108
|
-
} }
|
|
109
76
|
};
|
|
77
|
+
function A(e) {
|
|
78
|
+
return e;
|
|
79
|
+
}
|
|
80
|
+
function Gn(e) {
|
|
81
|
+
return e;
|
|
82
|
+
}
|
|
110
83
|
const h = (e, n) => {
|
|
111
84
|
const t = e.__vccOpts || e;
|
|
112
85
|
for (const [o, r] of n)
|
|
113
86
|
t[o] = r;
|
|
114
87
|
return t;
|
|
88
|
+
}, Te = () => Promise.resolve().then(() => we).then((e) => e.default), Oe = {
|
|
89
|
+
name: "builder-columns",
|
|
90
|
+
components: { "render-blocks": v(Te) },
|
|
91
|
+
props: [
|
|
92
|
+
"space",
|
|
93
|
+
"columns",
|
|
94
|
+
"stackColumnsAt",
|
|
95
|
+
"reverseColumnsWhenStacked",
|
|
96
|
+
"builderBlock"
|
|
97
|
+
],
|
|
98
|
+
data: () => ({ markMutable: A }),
|
|
99
|
+
computed: {
|
|
100
|
+
columnsCssVars() {
|
|
101
|
+
const e = this.stackColumnsAt === "never" ? "inherit" : this.reverseColumnsWhenStacked ? "column-reverse" : "column";
|
|
102
|
+
return {
|
|
103
|
+
"--flex-dir": e,
|
|
104
|
+
"--flex-dir-tablet": this.maybeApplyForTablet(e)
|
|
105
|
+
};
|
|
106
|
+
},
|
|
107
|
+
columnCssVars() {
|
|
108
|
+
const e = "100%", n = "0";
|
|
109
|
+
return {
|
|
110
|
+
"--column-width": e,
|
|
111
|
+
"--column-margin-left": n,
|
|
112
|
+
"--column-width-tablet": this.maybeApplyForTablet(e),
|
|
113
|
+
"--column-margin-left-tablet": this.maybeApplyForTablet(n)
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
methods: {
|
|
118
|
+
getGutterSize() {
|
|
119
|
+
return typeof this.space == "number" ? this.space || 0 : 20;
|
|
120
|
+
},
|
|
121
|
+
getColumns() {
|
|
122
|
+
return this.columns || [];
|
|
123
|
+
},
|
|
124
|
+
getWidth(e) {
|
|
125
|
+
var t;
|
|
126
|
+
const n = this.getColumns();
|
|
127
|
+
return ((t = n[e]) == null ? void 0 : t.width) || 100 / n.length;
|
|
128
|
+
},
|
|
129
|
+
getColumnCssWidth(e) {
|
|
130
|
+
const n = this.getColumns(), o = this.getGutterSize() * (n.length - 1) / n.length;
|
|
131
|
+
return `calc(${this.getWidth(e)}% - ${o}px)`;
|
|
132
|
+
},
|
|
133
|
+
maybeApplyForTablet(e) {
|
|
134
|
+
return (this.stackColumnsAt || "tablet") === "tablet" ? e : "inherit";
|
|
135
|
+
}
|
|
136
|
+
}
|
|
115
137
|
};
|
|
116
|
-
function
|
|
138
|
+
function Pe(e, n, t, o, r, a) {
|
|
117
139
|
const i = _("render-blocks");
|
|
118
140
|
return d(), p("div", {
|
|
119
|
-
class: "builder-columns div-
|
|
120
|
-
style: k(
|
|
141
|
+
class: "builder-columns div-1eih9th5ow6",
|
|
142
|
+
style: k(a.columnsCssVars)
|
|
121
143
|
}, [
|
|
122
|
-
(d(!0), p(j, null, E(t.columns, (
|
|
123
|
-
key:
|
|
124
|
-
class: "builder-column div-
|
|
144
|
+
(d(!0), p(j, null, E(t.columns, (l, s) => (d(), p("div", {
|
|
145
|
+
key: s,
|
|
146
|
+
class: "builder-column div-1eih9th5ow6-2",
|
|
125
147
|
style: k({
|
|
126
|
-
width:
|
|
127
|
-
marginLeft: `${
|
|
128
|
-
...
|
|
148
|
+
width: a.getColumnCssWidth(s),
|
|
149
|
+
marginLeft: `${s === 0 ? 0 : a.getGutterSize()}px`,
|
|
150
|
+
...a.columnCssVars
|
|
129
151
|
})
|
|
130
152
|
}, [
|
|
131
|
-
|
|
132
|
-
blocks:
|
|
133
|
-
path: `component.options.columns.${
|
|
153
|
+
re(i, {
|
|
154
|
+
blocks: e.markMutable(l.blocks),
|
|
155
|
+
path: `component.options.columns.${s}.blocks`,
|
|
134
156
|
parent: t.builderBlock.id
|
|
135
157
|
}, null, 8, ["blocks", "path", "parent"])
|
|
136
158
|
], 4))), 128))
|
|
137
159
|
], 4);
|
|
138
160
|
}
|
|
139
|
-
const
|
|
140
|
-
function
|
|
161
|
+
const Re = /* @__PURE__ */ h(Oe, [["render", Pe], ["__scopeId", "data-v-e51b00d3"]]);
|
|
162
|
+
function q(e) {
|
|
141
163
|
return e.replace(/http(s)?:/, "");
|
|
142
164
|
}
|
|
143
|
-
function
|
|
165
|
+
function je(e = "", n, t) {
|
|
144
166
|
const o = new RegExp("([?&])" + n + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
145
167
|
return e.match(o) ? e.replace(o, "$1" + n + "=" + encodeURIComponent(t) + "$2") : e + r + n + "=" + encodeURIComponent(t);
|
|
146
168
|
}
|
|
147
|
-
function
|
|
169
|
+
function Ee(e, n) {
|
|
148
170
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !n)
|
|
149
171
|
return e;
|
|
150
172
|
if (n === "master")
|
|
151
|
-
return
|
|
173
|
+
return q(e);
|
|
152
174
|
const t = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
153
175
|
if (t) {
|
|
154
|
-
const o = e.split(t[0]), r = t[3],
|
|
155
|
-
return
|
|
176
|
+
const o = e.split(t[0]), r = t[3], a = n.match("x") ? n : `${n}x`;
|
|
177
|
+
return q(`${o[0]}_${a}${r}`);
|
|
156
178
|
}
|
|
157
179
|
return null;
|
|
158
180
|
}
|
|
@@ -163,51 +185,67 @@ function P(e) {
|
|
|
163
185
|
if (e.match(/builder\.io/)) {
|
|
164
186
|
let t = e;
|
|
165
187
|
const o = Number(e.split("?width=")[1]);
|
|
166
|
-
return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${
|
|
188
|
+
return isNaN(o) || (t = `${t} ${o}w`), n.filter((r) => r !== o).map((r) => `${je(e, "width", r)} ${r}w`).concat([t]).join(", ");
|
|
167
189
|
}
|
|
168
|
-
return e.match(/cdn\.shopify\.com/) ? n.map((t) => [
|
|
190
|
+
return e.match(/cdn\.shopify\.com/) ? n.map((t) => [Ee(e, `${t}x${t}`), t]).filter(([t]) => !!t).map(([t, o]) => `${t} ${o}w`).concat([e]).join(", ") : e;
|
|
169
191
|
}
|
|
170
|
-
const
|
|
192
|
+
const $e = {
|
|
171
193
|
name: "builder-image",
|
|
172
|
-
props: [
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
194
|
+
props: [
|
|
195
|
+
"image",
|
|
196
|
+
"src",
|
|
197
|
+
"srcset",
|
|
198
|
+
"noWebp",
|
|
199
|
+
"altText",
|
|
200
|
+
"backgroundSize",
|
|
201
|
+
"className",
|
|
202
|
+
"sizes",
|
|
203
|
+
"aspectRatio",
|
|
204
|
+
"fitContent",
|
|
205
|
+
"builderBlock"
|
|
206
|
+
],
|
|
207
|
+
computed: {
|
|
208
|
+
srcSetToUse() {
|
|
209
|
+
var t;
|
|
210
|
+
const n = this.image || this.src;
|
|
211
|
+
if (!n || !(n.match(/builder\.io/) || n.match(/cdn\.shopify\.com/)))
|
|
212
|
+
return this.srcset;
|
|
213
|
+
if (this.srcset && ((t = this.image) == null ? void 0 : t.includes("builder.io/api/v1/image"))) {
|
|
214
|
+
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
215
|
+
return console.debug("Removed given srcset"), P(n);
|
|
216
|
+
} else if (this.image && !this.srcset)
|
|
217
|
+
return P(n);
|
|
182
218
|
return P(n);
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
219
|
+
},
|
|
220
|
+
webpSrcSet() {
|
|
221
|
+
var e;
|
|
222
|
+
return ((e = this.srcSetToUse) == null ? void 0 : e.match(/builder\.io/)) && !this.noWebp ? this.srcSetToUse.replace(/\?/g, "?format=webp&") : "";
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
methods: {
|
|
226
|
+
_classStringToObject(e) {
|
|
227
|
+
const n = {};
|
|
228
|
+
if (typeof e != "string")
|
|
229
|
+
return n;
|
|
230
|
+
const t = e.trim().split(/\s+/);
|
|
231
|
+
for (const o of t)
|
|
232
|
+
n[o] = !0;
|
|
191
233
|
return n;
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
return n;
|
|
196
|
-
} }
|
|
197
|
-
};
|
|
198
|
-
const $e = { class: "div-2oob28krk0a" }, Fe = ["srcset"], Ue = ["alt", "role", "src", "srcset", "sizes"], Ae = ["srcset"], Ve = {
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}, Fe = { class: "div-2pqqf5a7788" }, Ue = ["srcset"], Ve = ["alt", "role", "src", "srcset", "sizes"], Ae = ["srcset"], We = {
|
|
199
237
|
key: 2,
|
|
200
|
-
class: "div-
|
|
238
|
+
class: "div-2pqqf5a7788-3"
|
|
201
239
|
};
|
|
202
|
-
function
|
|
203
|
-
var i,
|
|
204
|
-
return d(), p("div",
|
|
240
|
+
function Le(e, n, t, o, r, a) {
|
|
241
|
+
var i, l, s, c;
|
|
242
|
+
return d(), p("div", Fe, [
|
|
205
243
|
O("picture", null, [
|
|
206
|
-
|
|
244
|
+
a.webpSrcSet ? (d(), p("source", {
|
|
207
245
|
key: 0,
|
|
208
246
|
type: "image/webp",
|
|
209
|
-
srcset:
|
|
210
|
-
}, null, 8,
|
|
247
|
+
srcset: a.webpSrcSet
|
|
248
|
+
}, null, 8, Ue)) : y("", !0),
|
|
211
249
|
O("img", {
|
|
212
250
|
loading: "lazy",
|
|
213
251
|
alt: t.altText,
|
|
@@ -216,66 +254,79 @@ function We(e, n, t, o, r, s) {
|
|
|
216
254
|
objectPosition: t.backgroundSize || "center",
|
|
217
255
|
objectFit: t.backgroundSize || "cover"
|
|
218
256
|
}),
|
|
219
|
-
class:
|
|
220
|
-
|
|
221
|
-
"builder-image" + (t.className ? " " + t.className : "") + " img-
|
|
257
|
+
class: ae(
|
|
258
|
+
a._classStringToObject(
|
|
259
|
+
"builder-image" + (t.className ? " " + t.className : "") + " img-2pqqf5a7788"
|
|
222
260
|
)
|
|
223
261
|
),
|
|
224
262
|
src: t.image,
|
|
225
|
-
srcset:
|
|
263
|
+
srcset: a.srcSetToUse,
|
|
226
264
|
sizes: t.sizes
|
|
227
|
-
}, null, 14,
|
|
228
|
-
O("source", { srcset:
|
|
265
|
+
}, null, 14, Ve),
|
|
266
|
+
O("source", { srcset: a.srcSetToUse }, null, 8, Ae)
|
|
229
267
|
]),
|
|
230
|
-
t.aspectRatio && !(t.fitContent && ((
|
|
268
|
+
t.aspectRatio && !(t.fitContent && ((l = (i = t.builderBlock) == null ? void 0 : i.children) == null ? void 0 : l.length)) ? (d(), p("div", {
|
|
231
269
|
key: 0,
|
|
232
|
-
class: "builder-image-sizer div-
|
|
270
|
+
class: "builder-image-sizer div-2pqqf5a7788-2",
|
|
233
271
|
style: k({
|
|
234
272
|
paddingTop: t.aspectRatio * 100 + "%"
|
|
235
273
|
})
|
|
236
274
|
}, null, 4)) : y("", !0),
|
|
237
|
-
((
|
|
238
|
-
t.fitContent ? y("", !0) : (d(), p("div",
|
|
239
|
-
|
|
275
|
+
((c = (s = t.builderBlock) == null ? void 0 : s.children) == null ? void 0 : c.length) && t.fitContent ? C(e.$slots, "default", { key: 1 }, void 0, !0) : y("", !0),
|
|
276
|
+
t.fitContent ? y("", !0) : (d(), p("div", We, [
|
|
277
|
+
C(e.$slots, "default", {}, void 0, !0)
|
|
240
278
|
]))
|
|
241
279
|
]);
|
|
242
280
|
}
|
|
243
|
-
const
|
|
281
|
+
const Me = /* @__PURE__ */ h($e, [["render", Le], ["__scopeId", "data-v-acda3ece"]]), Ne = {
|
|
244
282
|
name: "builder-text",
|
|
245
283
|
props: ["text"]
|
|
246
284
|
}, Be = ["innerHTML"];
|
|
247
|
-
function
|
|
285
|
+
function qe(e, n, t, o, r, a) {
|
|
248
286
|
return d(), p("div", {
|
|
249
287
|
class: "builder-text",
|
|
250
288
|
innerHTML: t.text
|
|
251
289
|
}, null, 8, Be);
|
|
252
290
|
}
|
|
253
|
-
const De = /* @__PURE__ */ h(Ne, [["render",
|
|
291
|
+
const De = /* @__PURE__ */ h(Ne, [["render", qe]]), ze = {
|
|
254
292
|
name: "builder-video",
|
|
255
|
-
props: [
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
293
|
+
props: [
|
|
294
|
+
"autoPlay",
|
|
295
|
+
"muted",
|
|
296
|
+
"controls",
|
|
297
|
+
"loop",
|
|
298
|
+
"playsInline",
|
|
299
|
+
"attributes",
|
|
300
|
+
"fit",
|
|
301
|
+
"position",
|
|
302
|
+
"video",
|
|
303
|
+
"posterImage"
|
|
304
|
+
],
|
|
305
|
+
computed: {
|
|
306
|
+
videoProps() {
|
|
307
|
+
return {
|
|
308
|
+
...this.autoPlay === !0 ? {
|
|
309
|
+
autoPlay: !0
|
|
310
|
+
} : {},
|
|
311
|
+
...this.muted === !0 ? {
|
|
312
|
+
muted: !0
|
|
313
|
+
} : {},
|
|
314
|
+
...this.controls === !0 ? {
|
|
315
|
+
controls: !0
|
|
316
|
+
} : {},
|
|
317
|
+
...this.loop === !0 ? {
|
|
318
|
+
loop: !0
|
|
319
|
+
} : {},
|
|
320
|
+
...this.playsInline === !0 ? {
|
|
321
|
+
playsInline: !0
|
|
322
|
+
} : {}
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
}
|
|
275
326
|
}, He = ["src", "poster"];
|
|
276
|
-
function
|
|
327
|
+
function Ke(e, n, t, o, r, a) {
|
|
277
328
|
var i;
|
|
278
|
-
return d(), p("video", x(
|
|
329
|
+
return d(), p("video", x(a.videoProps, {
|
|
279
330
|
style: {
|
|
280
331
|
width: "100%",
|
|
281
332
|
height: "100%",
|
|
@@ -288,23 +339,23 @@ function qe(e, n, t, o, r, s) {
|
|
|
288
339
|
poster: t.posterImage
|
|
289
340
|
}), null, 16, He);
|
|
290
341
|
}
|
|
291
|
-
const
|
|
292
|
-
var
|
|
342
|
+
const Ge = /* @__PURE__ */ h(ze, [["render", Ke]]);
|
|
343
|
+
var Je = Object.defineProperty, Ye = Object.defineProperties, Xe = Object.getOwnPropertyDescriptors, D = Object.getOwnPropertySymbols, Qe = Object.prototype.hasOwnProperty, Ze = Object.prototype.propertyIsEnumerable, z = (e, n, t) => n in e ? Je(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, R = (e, n) => {
|
|
293
344
|
for (var t in n || (n = {}))
|
|
294
|
-
|
|
345
|
+
Qe.call(n, t) && z(e, t, n[t]);
|
|
295
346
|
if (D)
|
|
296
347
|
for (var t of D(n))
|
|
297
|
-
|
|
348
|
+
Ze.call(n, t) && z(e, t, n[t]);
|
|
298
349
|
return e;
|
|
299
|
-
},
|
|
350
|
+
}, et = (e, n) => Ye(e, Xe(n));
|
|
300
351
|
function $(e, n = null, t = ".") {
|
|
301
352
|
return Object.keys(e).reduce((o, r) => {
|
|
302
|
-
const
|
|
353
|
+
const a = e[r], i = [n, r].filter(Boolean).join(t);
|
|
303
354
|
return [
|
|
304
|
-
typeof
|
|
305
|
-
|
|
306
|
-
!(Array.isArray(
|
|
307
|
-
].every(Boolean) ? R(R({}, o), $(
|
|
355
|
+
typeof a == "object",
|
|
356
|
+
a !== null,
|
|
357
|
+
!(Array.isArray(a) && a.length === 0)
|
|
358
|
+
].every(Boolean) ? R(R({}, o), $(a, i, t)) : et(R({}, o), { [i]: a });
|
|
308
359
|
}, {});
|
|
309
360
|
}
|
|
310
361
|
const H = "builder.", se = (e) => {
|
|
@@ -312,7 +363,7 @@ const H = "builder.", se = (e) => {
|
|
|
312
363
|
return e.forEach((t, o) => {
|
|
313
364
|
n[o] = t;
|
|
314
365
|
}), n;
|
|
315
|
-
},
|
|
366
|
+
}, tt = (e) => {
|
|
316
367
|
const n = {};
|
|
317
368
|
return Object.keys(e).forEach((t) => {
|
|
318
369
|
if (t.startsWith(H)) {
|
|
@@ -320,34 +371,34 @@ const H = "builder.", se = (e) => {
|
|
|
320
371
|
n[o] = e[t];
|
|
321
372
|
}
|
|
322
373
|
}), n;
|
|
323
|
-
},
|
|
374
|
+
}, nt = () => {
|
|
324
375
|
if (!f())
|
|
325
376
|
return {};
|
|
326
377
|
const e = new URLSearchParams(window.location.search);
|
|
327
|
-
return
|
|
328
|
-
},
|
|
329
|
-
function
|
|
378
|
+
return tt(se(e));
|
|
379
|
+
}, ot = (e) => e instanceof URLSearchParams ? se(e) : e;
|
|
380
|
+
function rt() {
|
|
330
381
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : null;
|
|
331
382
|
}
|
|
332
|
-
var
|
|
333
|
-
var
|
|
383
|
+
var at = (e, n, t) => new Promise((o, r) => {
|
|
384
|
+
var a = (s) => {
|
|
334
385
|
try {
|
|
335
|
-
|
|
336
|
-
} catch (
|
|
337
|
-
r(
|
|
386
|
+
l(t.next(s));
|
|
387
|
+
} catch (c) {
|
|
388
|
+
r(c);
|
|
338
389
|
}
|
|
339
|
-
}, i = (
|
|
390
|
+
}, i = (s) => {
|
|
340
391
|
try {
|
|
341
|
-
|
|
342
|
-
} catch (
|
|
343
|
-
r(
|
|
392
|
+
l(t.throw(s));
|
|
393
|
+
} catch (c) {
|
|
394
|
+
r(c);
|
|
344
395
|
}
|
|
345
|
-
},
|
|
346
|
-
|
|
396
|
+
}, l = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(a, i);
|
|
397
|
+
l((t = t.apply(e, n)).next());
|
|
347
398
|
});
|
|
348
|
-
function
|
|
349
|
-
return
|
|
350
|
-
const e =
|
|
399
|
+
function ie() {
|
|
400
|
+
return at(this, null, function* () {
|
|
401
|
+
const e = rt().fetch;
|
|
351
402
|
if (typeof e > "u" && typeof global < "u") {
|
|
352
403
|
const n = import("./index.3e132178.js").then((t) => t.default);
|
|
353
404
|
return n.default || n;
|
|
@@ -362,15 +413,15 @@ const st = (e, n) => {
|
|
|
362
413
|
e.data = o.data, e.testVariationId = o.id, e.testVariationName = o.name;
|
|
363
414
|
else {
|
|
364
415
|
let r = 0;
|
|
365
|
-
const
|
|
416
|
+
const a = Math.random();
|
|
366
417
|
let i = !1;
|
|
367
|
-
for (const
|
|
368
|
-
const
|
|
369
|
-
if (r +=
|
|
370
|
-
const u =
|
|
418
|
+
for (const l in e.variations) {
|
|
419
|
+
const s = e.variations[l];
|
|
420
|
+
if (r += s.testRatio, a < r) {
|
|
421
|
+
const u = s.name || (s.id === e.id ? "Default variation" : "");
|
|
371
422
|
i = !0, Object.assign(e, {
|
|
372
|
-
data:
|
|
373
|
-
testVariationId:
|
|
423
|
+
data: s.data,
|
|
424
|
+
testVariationId: s.id,
|
|
374
425
|
testVariationName: u
|
|
375
426
|
});
|
|
376
427
|
}
|
|
@@ -382,67 +433,69 @@ const st = (e, n) => {
|
|
|
382
433
|
}
|
|
383
434
|
}
|
|
384
435
|
};
|
|
385
|
-
var
|
|
436
|
+
var it = Object.defineProperty, lt = Object.defineProperties, ct = Object.getOwnPropertyDescriptors, K = Object.getOwnPropertySymbols, dt = Object.prototype.hasOwnProperty, ut = Object.prototype.propertyIsEnumerable, G = (e, n, t) => n in e ? it(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, F = (e, n) => {
|
|
386
437
|
for (var t in n || (n = {}))
|
|
387
|
-
|
|
388
|
-
if (
|
|
389
|
-
for (var t of
|
|
390
|
-
|
|
438
|
+
dt.call(n, t) && G(e, t, n[t]);
|
|
439
|
+
if (K)
|
|
440
|
+
for (var t of K(n))
|
|
441
|
+
ut.call(n, t) && G(e, t, n[t]);
|
|
391
442
|
return e;
|
|
392
|
-
},
|
|
393
|
-
var
|
|
443
|
+
}, pt = (e, n) => lt(e, ct(n)), le = (e, n, t) => new Promise((o, r) => {
|
|
444
|
+
var a = (s) => {
|
|
394
445
|
try {
|
|
395
|
-
|
|
396
|
-
} catch (
|
|
397
|
-
r(
|
|
446
|
+
l(t.next(s));
|
|
447
|
+
} catch (c) {
|
|
448
|
+
r(c);
|
|
398
449
|
}
|
|
399
|
-
}, i = (
|
|
450
|
+
}, i = (s) => {
|
|
400
451
|
try {
|
|
401
|
-
|
|
402
|
-
} catch (
|
|
403
|
-
r(
|
|
452
|
+
l(t.throw(s));
|
|
453
|
+
} catch (c) {
|
|
454
|
+
r(c);
|
|
404
455
|
}
|
|
405
|
-
},
|
|
406
|
-
|
|
456
|
+
}, l = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(a, i);
|
|
457
|
+
l((t = t.apply(e, n)).next());
|
|
407
458
|
});
|
|
408
|
-
const
|
|
459
|
+
const mt = ie();
|
|
409
460
|
function ce(e) {
|
|
410
|
-
return
|
|
411
|
-
return (yield
|
|
461
|
+
return le(this, null, function* () {
|
|
462
|
+
return (yield ht(pt(F({}, e), { limit: 1 }))).results[0] || null;
|
|
412
463
|
});
|
|
413
464
|
}
|
|
414
|
-
const
|
|
465
|
+
const ft = (e) => {
|
|
415
466
|
const {
|
|
416
467
|
limit: n = 30,
|
|
417
468
|
userAttributes: t,
|
|
418
469
|
query: o,
|
|
419
470
|
noTraverse: r = !1,
|
|
420
|
-
model:
|
|
471
|
+
model: a,
|
|
421
472
|
apiKey: i
|
|
422
|
-
} = e,
|
|
423
|
-
for (const u in
|
|
424
|
-
|
|
425
|
-
if (t &&
|
|
473
|
+
} = e, l = new URL(`https://cdn.builder.io/api/v2/content/${a}?apiKey=${i}&limit=${n}&noTraverse=${r}`), s = F(F({}, nt()), ot(e.options || {})), c = $(s);
|
|
474
|
+
for (const u in c)
|
|
475
|
+
l.searchParams.set(u, String(c[u]));
|
|
476
|
+
if (t && l.searchParams.set("userAttributes", JSON.stringify(t)), o) {
|
|
426
477
|
const u = $({ query: o });
|
|
427
478
|
for (const m in u)
|
|
428
|
-
|
|
479
|
+
l.searchParams.set(m, JSON.stringify(u[m]));
|
|
429
480
|
}
|
|
430
|
-
return
|
|
481
|
+
return l;
|
|
431
482
|
};
|
|
432
|
-
function
|
|
433
|
-
return
|
|
434
|
-
const n =
|
|
483
|
+
function ht(e) {
|
|
484
|
+
return le(this, null, function* () {
|
|
485
|
+
const n = ft(e), o = yield (yield mt)(n.href).then((r) => r.json());
|
|
435
486
|
if (e.testGroups)
|
|
436
487
|
for (const r of o.results)
|
|
437
488
|
st(r, e.testGroups);
|
|
438
489
|
return o;
|
|
439
490
|
});
|
|
440
491
|
}
|
|
441
|
-
const
|
|
492
|
+
const gt = () => Promise.resolve().then(() => Mn).then(
|
|
493
|
+
(e) => e.default
|
|
494
|
+
), bt = {
|
|
442
495
|
name: "builder-symbol",
|
|
443
|
-
components: { "render-content": v(
|
|
496
|
+
components: { "render-content": v(gt) },
|
|
444
497
|
props: ["symbol", "attributes"],
|
|
445
|
-
data: () => ({ className: "builder-symbol", content: null }),
|
|
498
|
+
data: () => ({ className: "builder-symbol", content: null, markMutable: A }),
|
|
446
499
|
inject: {
|
|
447
500
|
builderContext: "BuilderContext"
|
|
448
501
|
},
|
|
@@ -464,83 +517,84 @@ const ht = () => Promise.resolve().then(() => Ln), gt = {
|
|
|
464
517
|
});
|
|
465
518
|
}
|
|
466
519
|
},
|
|
467
|
-
computed: {
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
520
|
+
computed: {
|
|
521
|
+
onUpdateHook0() {
|
|
522
|
+
return {
|
|
523
|
+
0: this.symbol,
|
|
524
|
+
1: this.content
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
},
|
|
528
|
+
methods: {
|
|
529
|
+
_classStringToObject(e) {
|
|
530
|
+
const n = {};
|
|
531
|
+
if (typeof e != "string")
|
|
532
|
+
return n;
|
|
533
|
+
const t = e.trim().split(/\s+/);
|
|
534
|
+
for (const o of t)
|
|
535
|
+
n[o] = !0;
|
|
479
536
|
return n;
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
}, bt = ["dataSet"];
|
|
486
|
-
function yt(e, n, t, o, r, s) {
|
|
487
|
-
var c, a, l, u, m;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}, yt = ["dataSet"];
|
|
540
|
+
function vt(e, n, t, o, r, a) {
|
|
541
|
+
var l, s, c, u, m;
|
|
488
542
|
const i = _("render-content");
|
|
489
543
|
return d(), p("div", x(t.attributes, {
|
|
490
544
|
dataSet: {
|
|
491
545
|
class: e.className
|
|
492
546
|
},
|
|
493
|
-
class:
|
|
547
|
+
class: a._classStringToObject(e.className)
|
|
494
548
|
}), [
|
|
495
|
-
|
|
496
|
-
apiKey:
|
|
497
|
-
context:
|
|
498
|
-
customComponents: Object.values(
|
|
499
|
-
data: {
|
|
500
|
-
...(
|
|
501
|
-
...
|
|
502
|
-
...(u = (
|
|
503
|
-
},
|
|
549
|
+
re(i, {
|
|
550
|
+
apiKey: a.builderContext.apiKey,
|
|
551
|
+
context: a.builderContext.context,
|
|
552
|
+
customComponents: e.markMutable(Object.values(a.builderContext.registeredComponents)),
|
|
553
|
+
data: e.markMutable({
|
|
554
|
+
...(l = t.symbol) == null ? void 0 : l.data,
|
|
555
|
+
...a.builderContext.state,
|
|
556
|
+
...(u = (c = (s = t.symbol) == null ? void 0 : s.content) == null ? void 0 : c.data) == null ? void 0 : u.state
|
|
557
|
+
}),
|
|
504
558
|
model: (m = t.symbol) == null ? void 0 : m.model,
|
|
505
|
-
content: e.content
|
|
559
|
+
content: e.markMutable(e.content)
|
|
506
560
|
}, null, 8, ["apiKey", "context", "customComponents", "data", "model", "content"])
|
|
507
|
-
], 16,
|
|
561
|
+
], 16, yt);
|
|
508
562
|
}
|
|
509
|
-
const
|
|
563
|
+
const _t = /* @__PURE__ */ h(bt, [["render", vt]]);
|
|
564
|
+
const xt = {
|
|
510
565
|
name: "builder-button",
|
|
511
566
|
props: ["attributes", "text", "link", "openLinkInNewTab"]
|
|
512
|
-
};
|
|
513
|
-
|
|
514
|
-
function wt(e, n, t, o, r, s) {
|
|
567
|
+
}, wt = ["href", "target"];
|
|
568
|
+
function kt(e, n, t, o, r, a) {
|
|
515
569
|
return t.link ? (d(), p("a", x({ key: 0 }, t.attributes, {
|
|
516
570
|
role: "button",
|
|
517
571
|
href: t.link,
|
|
518
572
|
target: t.openLinkInNewTab ? "_blank" : void 0
|
|
519
|
-
}), N(t.text), 17,
|
|
573
|
+
}), N(t.text), 17, wt)) : (d(), p("button", x({ key: 1 }, t.attributes, { class: "button-361b1o6wv2k" }), N(t.text), 17));
|
|
520
574
|
}
|
|
521
|
-
const
|
|
575
|
+
const Ct = /* @__PURE__ */ h(xt, [["render", kt], ["__scopeId", "data-v-9b7358fe"]]), St = {
|
|
522
576
|
name: "builder-section-component",
|
|
523
577
|
props: ["attributes", "maxWidth"]
|
|
524
578
|
};
|
|
525
|
-
function
|
|
579
|
+
function It(e, n, t, o, r, a) {
|
|
526
580
|
return d(), p("section", x(t.attributes, {
|
|
527
581
|
style: t.maxWidth && typeof t.maxWidth == "number" ? {
|
|
528
582
|
maxWidth: t.maxWidth
|
|
529
583
|
} : void 0
|
|
530
584
|
}), [
|
|
531
|
-
|
|
585
|
+
C(e.$slots, "default")
|
|
532
586
|
], 16);
|
|
533
587
|
}
|
|
534
|
-
const
|
|
588
|
+
const Tt = /* @__PURE__ */ h(St, [["render", It]]), Ot = {
|
|
535
589
|
name: "builder-fragment-component",
|
|
536
590
|
props: []
|
|
537
591
|
};
|
|
538
|
-
function
|
|
592
|
+
function Pt(e, n, t, o, r, a) {
|
|
539
593
|
return d(), p("span", null, [
|
|
540
|
-
|
|
594
|
+
C(e.$slots, "default")
|
|
541
595
|
]);
|
|
542
596
|
}
|
|
543
|
-
const
|
|
597
|
+
const Rt = /* @__PURE__ */ h(Ot, [["render", Pt]]), jt = {
|
|
544
598
|
name: "Core:Button",
|
|
545
599
|
builtIn: !0,
|
|
546
600
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
@@ -578,10 +632,10 @@ const Pt = /* @__PURE__ */ h(Tt, [["render", Ot]]), Rt = {
|
|
|
578
632
|
static: !0,
|
|
579
633
|
noWrap: !0
|
|
580
634
|
};
|
|
581
|
-
function
|
|
635
|
+
function W(e) {
|
|
582
636
|
return e.__qwik_serializable__ = !0, e;
|
|
583
637
|
}
|
|
584
|
-
const
|
|
638
|
+
const Et = {
|
|
585
639
|
name: "Columns",
|
|
586
640
|
builtIn: !0,
|
|
587
641
|
inputs: [
|
|
@@ -769,14 +823,14 @@ const jt = {
|
|
|
769
823
|
]
|
|
770
824
|
}
|
|
771
825
|
],
|
|
772
|
-
onChange:
|
|
826
|
+
onChange: W((e) => {
|
|
773
827
|
function n() {
|
|
774
828
|
t.forEach((o) => {
|
|
775
829
|
o.delete("width");
|
|
776
830
|
});
|
|
777
831
|
}
|
|
778
832
|
const t = e.get("columns");
|
|
779
|
-
Array.isArray(t) && !!t.find((r) => r.get("width")) && (!!t.find((
|
|
833
|
+
Array.isArray(t) && !!t.find((r) => r.get("width")) && (!!t.find((a) => !a.get("width")) || t.reduce((l, s) => l + s.get("width"), 0) !== 100) && n();
|
|
780
834
|
})
|
|
781
835
|
},
|
|
782
836
|
{
|
|
@@ -802,14 +856,14 @@ const jt = {
|
|
|
802
856
|
advanced: !0
|
|
803
857
|
}
|
|
804
858
|
]
|
|
805
|
-
},
|
|
859
|
+
}, $t = {
|
|
806
860
|
name: "Fragment",
|
|
807
861
|
static: !0,
|
|
808
862
|
hidden: !0,
|
|
809
863
|
builtIn: !0,
|
|
810
864
|
canHaveChildren: !0,
|
|
811
865
|
noWrap: !0
|
|
812
|
-
},
|
|
866
|
+
}, Ft = {
|
|
813
867
|
name: "Image",
|
|
814
868
|
static: !0,
|
|
815
869
|
builtIn: !0,
|
|
@@ -829,31 +883,31 @@ const jt = {
|
|
|
829
883
|
allowedFileTypes: ["jpeg", "jpg", "png", "svg"],
|
|
830
884
|
required: !0,
|
|
831
885
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2Fpwgjf0RoYWbdnJSbpBAjXNRMe9F2%2Ffb27a7c790324294af8be1c35fe30f4d",
|
|
832
|
-
onChange:
|
|
886
|
+
onChange: W((e) => {
|
|
833
887
|
e.delete("srcset"), e.delete("noWebp");
|
|
834
|
-
function t(i,
|
|
835
|
-
return new Promise((
|
|
888
|
+
function t(i, l = 6e4) {
|
|
889
|
+
return new Promise((s, c) => {
|
|
836
890
|
const u = document.createElement("img");
|
|
837
891
|
let m = !1;
|
|
838
892
|
u.onload = () => {
|
|
839
|
-
m = !0,
|
|
893
|
+
m = !0, s(u);
|
|
840
894
|
}, u.addEventListener("error", (w) => {
|
|
841
|
-
console.warn("Image load failed", w.error),
|
|
895
|
+
console.warn("Image load failed", w.error), c(w.error);
|
|
842
896
|
}), u.src = i, setTimeout(() => {
|
|
843
|
-
m ||
|
|
844
|
-
},
|
|
897
|
+
m || c(new Error("Image load timed out"));
|
|
898
|
+
}, l);
|
|
845
899
|
});
|
|
846
900
|
}
|
|
847
901
|
function o(i) {
|
|
848
902
|
return Math.round(i * 1e3) / 1e3;
|
|
849
903
|
}
|
|
850
|
-
const r = e.get("image"),
|
|
904
|
+
const r = e.get("image"), a = e.get("aspectRatio");
|
|
851
905
|
if (fetch(r).then((i) => i.blob()).then((i) => {
|
|
852
906
|
i.type.includes("svg") && e.set("noWebp", !0);
|
|
853
|
-
}), r && (!
|
|
907
|
+
}), r && (!a || a === 0.7041))
|
|
854
908
|
return t(r).then((i) => {
|
|
855
|
-
const
|
|
856
|
-
e.get("image") === r && (!
|
|
909
|
+
const l = e.get("aspectRatio");
|
|
910
|
+
e.get("image") === r && (!l || l === 0.7041) && i.width && i.height && (e.set("aspectRatio", o(i.height / i.width)), e.set("height", i.height), e.set("width", i.width));
|
|
857
911
|
});
|
|
858
912
|
})
|
|
859
913
|
},
|
|
@@ -935,7 +989,7 @@ const jt = {
|
|
|
935
989
|
defaultValue: 0.7041
|
|
936
990
|
}
|
|
937
991
|
]
|
|
938
|
-
},
|
|
992
|
+
}, Ut = {
|
|
939
993
|
name: "Core:Section",
|
|
940
994
|
static: !0,
|
|
941
995
|
builtIn: !0,
|
|
@@ -980,7 +1034,7 @@ const jt = {
|
|
|
980
1034
|
}
|
|
981
1035
|
}
|
|
982
1036
|
]
|
|
983
|
-
},
|
|
1037
|
+
}, Vt = {
|
|
984
1038
|
name: "Symbol",
|
|
985
1039
|
noWrap: !0,
|
|
986
1040
|
static: !0,
|
|
@@ -1039,7 +1093,7 @@ const jt = {
|
|
|
1039
1093
|
height: "auto",
|
|
1040
1094
|
textAlign: "center"
|
|
1041
1095
|
}
|
|
1042
|
-
},
|
|
1096
|
+
}, Wt = {
|
|
1043
1097
|
name: "Video",
|
|
1044
1098
|
canHaveChildren: !0,
|
|
1045
1099
|
builtIn: !0,
|
|
@@ -1141,7 +1195,7 @@ const jt = {
|
|
|
1141
1195
|
advanced: !0
|
|
1142
1196
|
}
|
|
1143
1197
|
]
|
|
1144
|
-
},
|
|
1198
|
+
}, Lt = {
|
|
1145
1199
|
name: "Embed",
|
|
1146
1200
|
static: !0,
|
|
1147
1201
|
builtIn: !0,
|
|
@@ -1152,7 +1206,7 @@ const jt = {
|
|
|
1152
1206
|
required: !0,
|
|
1153
1207
|
defaultValue: "",
|
|
1154
1208
|
helperText: "e.g. enter a youtube url, google map, etc",
|
|
1155
|
-
onChange:
|
|
1209
|
+
onChange: W((e) => {
|
|
1156
1210
|
const n = e.get("url");
|
|
1157
1211
|
if (n)
|
|
1158
1212
|
return e.set("content", "Loading..."), fetch(`https://iframe.ly/api/iframely?url=${n}&api_key=ae0e60e78201a3f2b0de4b`).then((o) => o.json()).then((o) => {
|
|
@@ -1170,11 +1224,11 @@ const jt = {
|
|
|
1170
1224
|
hideFromUI: !0
|
|
1171
1225
|
}
|
|
1172
1226
|
]
|
|
1173
|
-
},
|
|
1227
|
+
}, Mt = [
|
|
1174
1228
|
"text/javascript",
|
|
1175
1229
|
"application/javascript",
|
|
1176
1230
|
"application/ecmascript"
|
|
1177
|
-
], Nt = (e) =>
|
|
1231
|
+
], Nt = (e) => Mt.includes(e.type), Bt = {
|
|
1178
1232
|
name: "builder-embed",
|
|
1179
1233
|
props: ["content"],
|
|
1180
1234
|
data: () => ({ scriptsInserted: [], scriptsRun: [], ranInitFn: !1 }),
|
|
@@ -1183,35 +1237,39 @@ const jt = {
|
|
|
1183
1237
|
this.$refs.elem && !this.ranInitFn && (this.ranInitFn = !0, this.findAndRunScripts());
|
|
1184
1238
|
}
|
|
1185
1239
|
},
|
|
1186
|
-
computed: {
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
const
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
|
|
1240
|
+
computed: {
|
|
1241
|
+
onUpdateHook0() {
|
|
1242
|
+
return {
|
|
1243
|
+
0: this.$refs.elem,
|
|
1244
|
+
1: this.ranInitFn
|
|
1245
|
+
};
|
|
1246
|
+
}
|
|
1247
|
+
},
|
|
1248
|
+
methods: {
|
|
1249
|
+
findAndRunScripts() {
|
|
1250
|
+
const e = this.$refs.elem.getElementsByTagName("script");
|
|
1251
|
+
for (let n = 0; n < e.length; n++) {
|
|
1252
|
+
const t = e[n];
|
|
1253
|
+
if (t.src && !this.scriptsInserted.includes(t.src)) {
|
|
1254
|
+
this.scriptsInserted.push(t.src);
|
|
1255
|
+
const o = document.createElement("script");
|
|
1256
|
+
o.async = !0, o.src = t.src, document.head.appendChild(o);
|
|
1257
|
+
} else if (Nt(t) && !this.scriptsRun.includes(t.innerText))
|
|
1258
|
+
try {
|
|
1259
|
+
this.scriptsRun.push(t.innerText), new Function(t.innerText)();
|
|
1260
|
+
} catch (o) {
|
|
1261
|
+
console.warn("`Embed`: Error running script:", o);
|
|
1262
|
+
}
|
|
1263
|
+
}
|
|
1206
1264
|
}
|
|
1207
|
-
}
|
|
1208
|
-
},
|
|
1209
|
-
function Dt(e, n, t, o, r,
|
|
1265
|
+
}
|
|
1266
|
+
}, qt = ["innerHTML"];
|
|
1267
|
+
function Dt(e, n, t, o, r, a) {
|
|
1210
1268
|
return d(), p("div", {
|
|
1211
1269
|
class: "builder-embed",
|
|
1212
1270
|
ref: "elem",
|
|
1213
1271
|
innerHTML: t.content
|
|
1214
|
-
}, null, 8,
|
|
1272
|
+
}, null, 8, qt);
|
|
1215
1273
|
}
|
|
1216
1274
|
const zt = /* @__PURE__ */ h(Bt, [["render", Dt]]);
|
|
1217
1275
|
function Ht() {
|
|
@@ -1220,12 +1278,19 @@ function Ht() {
|
|
|
1220
1278
|
function b() {
|
|
1221
1279
|
return Ht() && window.location.search.indexOf("builder.frameEditing=") !== -1;
|
|
1222
1280
|
}
|
|
1223
|
-
const
|
|
1281
|
+
const Kt = {
|
|
1224
1282
|
name: "builder-img-component",
|
|
1225
|
-
props: [
|
|
1283
|
+
props: [
|
|
1284
|
+
"backgroundSize",
|
|
1285
|
+
"backgroundPosition",
|
|
1286
|
+
"imgSrc",
|
|
1287
|
+
"altText",
|
|
1288
|
+
"image",
|
|
1289
|
+
"attributes"
|
|
1290
|
+
],
|
|
1226
1291
|
data: () => ({ isEditing: b })
|
|
1227
|
-
},
|
|
1228
|
-
function
|
|
1292
|
+
}, Gt = ["alt", "src"];
|
|
1293
|
+
function Jt(e, n, t, o, r, a) {
|
|
1229
1294
|
return d(), p("img", x(t.attributes, {
|
|
1230
1295
|
style: {
|
|
1231
1296
|
objectFit: t.backgroundSize || "cover",
|
|
@@ -1234,9 +1299,9 @@ function Gt(e, n, t, o, r, s) {
|
|
|
1234
1299
|
key: e.isEditing() && t.imgSrc || "default-key",
|
|
1235
1300
|
alt: t.altText,
|
|
1236
1301
|
src: t.imgSrc || t.image
|
|
1237
|
-
}), null, 16,
|
|
1302
|
+
}), null, 16, Gt);
|
|
1238
1303
|
}
|
|
1239
|
-
const
|
|
1304
|
+
const Yt = /* @__PURE__ */ h(Kt, [["render", Jt]]), Xt = {
|
|
1240
1305
|
name: "Raw:Img",
|
|
1241
1306
|
hideFromInsertMenu: !0,
|
|
1242
1307
|
builtIn: !0,
|
|
@@ -1253,27 +1318,27 @@ const Jt = /* @__PURE__ */ h(qt, [["render", Gt]]), Yt = {
|
|
|
1253
1318
|
noWrap: !0,
|
|
1254
1319
|
static: !0
|
|
1255
1320
|
};
|
|
1256
|
-
var
|
|
1321
|
+
var Qt = Object.defineProperty, J = Object.getOwnPropertySymbols, Zt = Object.prototype.hasOwnProperty, en = Object.prototype.propertyIsEnumerable, Y = (e, n, t) => n in e ? Qt(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, g = (e, n) => {
|
|
1257
1322
|
for (var t in n || (n = {}))
|
|
1258
|
-
|
|
1259
|
-
if (
|
|
1260
|
-
for (var t of
|
|
1261
|
-
|
|
1323
|
+
Zt.call(n, t) && Y(e, t, n[t]);
|
|
1324
|
+
if (J)
|
|
1325
|
+
for (var t of J(n))
|
|
1326
|
+
en.call(n, t) && Y(e, t, n[t]);
|
|
1262
1327
|
return e;
|
|
1263
1328
|
};
|
|
1264
|
-
const
|
|
1265
|
-
g({ component:
|
|
1266
|
-
g({ component:
|
|
1267
|
-
g({ component:
|
|
1329
|
+
const tn = () => [
|
|
1330
|
+
g({ component: Re }, Et),
|
|
1331
|
+
g({ component: Me }, Ft),
|
|
1332
|
+
g({ component: Yt }, Xt),
|
|
1268
1333
|
g({ component: De }, At),
|
|
1269
|
-
g({ component:
|
|
1270
|
-
g({ component:
|
|
1271
|
-
g({ component:
|
|
1272
|
-
g({ component:
|
|
1273
|
-
g({ component:
|
|
1274
|
-
g({ component: zt },
|
|
1334
|
+
g({ component: Ge }, Wt),
|
|
1335
|
+
g({ component: _t }, Vt),
|
|
1336
|
+
g({ component: Ct }, jt),
|
|
1337
|
+
g({ component: Tt }, Ut),
|
|
1338
|
+
g({ component: Rt }, $t),
|
|
1339
|
+
g({ component: zt }, Lt)
|
|
1275
1340
|
];
|
|
1276
|
-
function
|
|
1341
|
+
function X({
|
|
1277
1342
|
code: e,
|
|
1278
1343
|
context: n,
|
|
1279
1344
|
state: t,
|
|
@@ -1290,59 +1355,62 @@ function Y({
|
|
|
1290
1355
|
}, i = !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
1291
1356
|
try {
|
|
1292
1357
|
return new Function("builder", "Builder", "state", "context", "event", i)(r, r, t, n, o);
|
|
1293
|
-
} catch (
|
|
1294
|
-
console.warn(
|
|
1358
|
+
} catch (l) {
|
|
1359
|
+
console.warn(`Builder custom code error:
|
|
1360
|
+
While Evaluating:
|
|
1361
|
+
`, i, `
|
|
1362
|
+
`, l.message || l);
|
|
1295
1363
|
}
|
|
1296
1364
|
}
|
|
1297
|
-
function
|
|
1365
|
+
function nn() {
|
|
1298
1366
|
return !f() || b() ? !1 : Boolean(location.search.indexOf("builder.preview=") !== -1);
|
|
1299
1367
|
}
|
|
1300
|
-
var
|
|
1368
|
+
var on = Object.defineProperty, rn = Object.defineProperties, an = Object.getOwnPropertyDescriptors, I = Object.getOwnPropertySymbols, de = Object.prototype.hasOwnProperty, ue = Object.prototype.propertyIsEnumerable, Q = (e, n, t) => n in e ? on(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, U = (e, n) => {
|
|
1301
1369
|
for (var t in n || (n = {}))
|
|
1302
|
-
|
|
1370
|
+
de.call(n, t) && Q(e, t, n[t]);
|
|
1303
1371
|
if (I)
|
|
1304
1372
|
for (var t of I(n))
|
|
1305
|
-
|
|
1373
|
+
ue.call(n, t) && Q(e, t, n[t]);
|
|
1306
1374
|
return e;
|
|
1307
|
-
},
|
|
1375
|
+
}, Z = (e, n) => rn(e, an(n)), pe = (e, n) => {
|
|
1308
1376
|
var t = {};
|
|
1309
1377
|
for (var o in e)
|
|
1310
|
-
|
|
1378
|
+
de.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
1311
1379
|
if (e != null && I)
|
|
1312
1380
|
for (var o of I(e))
|
|
1313
|
-
n.indexOf(o) < 0 &&
|
|
1381
|
+
n.indexOf(o) < 0 && ue.call(e, o) && (t[o] = e[o]);
|
|
1314
1382
|
return t;
|
|
1315
1383
|
};
|
|
1316
|
-
const
|
|
1317
|
-
function
|
|
1318
|
-
return
|
|
1384
|
+
const me = [];
|
|
1385
|
+
function Jn(e, n) {
|
|
1386
|
+
return me.push(U({ component: e }, n)), console.warn("registerComponent is deprecated. Use the `customComponents` prop in RenderContent instead to provide your custom components to the builder SDK."), e;
|
|
1319
1387
|
}
|
|
1320
1388
|
const sn = (e) => {
|
|
1321
|
-
var n = e, t =
|
|
1389
|
+
var n = e, t = pe(n, [
|
|
1322
1390
|
"component"
|
|
1323
1391
|
]);
|
|
1324
1392
|
return {
|
|
1325
1393
|
type: "builder.registerComponent",
|
|
1326
|
-
data:
|
|
1394
|
+
data: dn(t)
|
|
1327
1395
|
};
|
|
1328
|
-
},
|
|
1396
|
+
}, fe = (e) => JSON.parse(JSON.stringify(e)), ln = (e) => typeof e == "function" ? cn(e) : fe(e), cn = (e) => {
|
|
1329
1397
|
const n = e.toString().trim();
|
|
1330
1398
|
return `return (${!n.startsWith("function") && !n.startsWith("(") ? "function " : ""}${n}).apply(this, arguments)`;
|
|
1331
|
-
},
|
|
1399
|
+
}, dn = (e) => {
|
|
1332
1400
|
var n = e, {
|
|
1333
1401
|
inputs: t
|
|
1334
|
-
} = n, o =
|
|
1402
|
+
} = n, o = pe(n, [
|
|
1335
1403
|
"inputs"
|
|
1336
1404
|
]);
|
|
1337
|
-
return
|
|
1338
|
-
inputs: t == null ? void 0 : t.map((r) => Object.entries(r).reduce((
|
|
1339
|
-
[i]:
|
|
1405
|
+
return Z(U({}, fe(o)), {
|
|
1406
|
+
inputs: t == null ? void 0 : t.map((r) => Object.entries(r).reduce((a, [i, l]) => Z(U({}, a), {
|
|
1407
|
+
[i]: ln(l)
|
|
1340
1408
|
}), {}))
|
|
1341
1409
|
});
|
|
1342
|
-
},
|
|
1410
|
+
}, un = (e) => {
|
|
1343
1411
|
const n = e.split(".");
|
|
1344
1412
|
return n.length > 2 ? n.slice(1).join(".") : e;
|
|
1345
|
-
},
|
|
1413
|
+
}, pn = ({
|
|
1346
1414
|
name: e,
|
|
1347
1415
|
canTrack: n
|
|
1348
1416
|
}) => {
|
|
@@ -1352,23 +1420,23 @@ const sn = (e) => {
|
|
|
1352
1420
|
} catch (o) {
|
|
1353
1421
|
console.debug("[COOKIE] GET error: ", o);
|
|
1354
1422
|
}
|
|
1355
|
-
},
|
|
1423
|
+
}, mn = (e) => e.map(([n, t]) => t ? `${n}=${t}` : n).join("; "), fn = [
|
|
1356
1424
|
["secure", ""],
|
|
1357
1425
|
["SameSite", "None"]
|
|
1358
|
-
],
|
|
1426
|
+
], hn = ({
|
|
1359
1427
|
name: e,
|
|
1360
1428
|
value: n,
|
|
1361
1429
|
expires: t
|
|
1362
1430
|
}) => {
|
|
1363
|
-
const r = (f() ? location.protocol === "https:" : !0) ?
|
|
1431
|
+
const r = (f() ? location.protocol === "https:" : !0) ? fn : [[]], a = t ? [["expires", t.toUTCString()]] : [[]], i = [
|
|
1364
1432
|
[e, n],
|
|
1365
|
-
...
|
|
1433
|
+
...a,
|
|
1366
1434
|
["path", "/"],
|
|
1367
|
-
["domain",
|
|
1435
|
+
["domain", un(window.location.hostname)],
|
|
1368
1436
|
...r
|
|
1369
1437
|
];
|
|
1370
|
-
return
|
|
1371
|
-
},
|
|
1438
|
+
return mn(i);
|
|
1439
|
+
}, gn = ({
|
|
1372
1440
|
name: e,
|
|
1373
1441
|
value: n,
|
|
1374
1442
|
expires: t,
|
|
@@ -1377,122 +1445,122 @@ const sn = (e) => {
|
|
|
1377
1445
|
try {
|
|
1378
1446
|
if (!o)
|
|
1379
1447
|
return;
|
|
1380
|
-
const r =
|
|
1448
|
+
const r = hn({ name: e, value: n, expires: t });
|
|
1381
1449
|
document.cookie = r;
|
|
1382
1450
|
} catch (r) {
|
|
1383
1451
|
console.warn("[COOKIE] SET error: ", r);
|
|
1384
1452
|
}
|
|
1385
|
-
},
|
|
1386
|
-
function
|
|
1453
|
+
}, he = (e) => e != null;
|
|
1454
|
+
function bn() {
|
|
1387
1455
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
1388
1456
|
const n = Math.random() * 16 | 0;
|
|
1389
1457
|
return (e == "x" ? n : n & 3 | 8).toString(16);
|
|
1390
1458
|
});
|
|
1391
1459
|
}
|
|
1392
|
-
function
|
|
1393
|
-
return
|
|
1460
|
+
function ge() {
|
|
1461
|
+
return bn().replace(/-/g, "");
|
|
1394
1462
|
}
|
|
1395
|
-
const
|
|
1463
|
+
const be = "builderSessionId", yn = ({ canTrack: e }) => {
|
|
1396
1464
|
if (!e)
|
|
1397
1465
|
return;
|
|
1398
|
-
const n =
|
|
1399
|
-
if (
|
|
1466
|
+
const n = pn({ name: be, canTrack: e });
|
|
1467
|
+
if (he(n))
|
|
1400
1468
|
return n;
|
|
1401
1469
|
{
|
|
1402
|
-
const t =
|
|
1403
|
-
|
|
1470
|
+
const t = vn();
|
|
1471
|
+
_n({ id: t, canTrack: e });
|
|
1404
1472
|
}
|
|
1405
|
-
},
|
|
1473
|
+
}, vn = () => ge(), _n = ({
|
|
1406
1474
|
id: e,
|
|
1407
1475
|
canTrack: n
|
|
1408
|
-
}) =>
|
|
1476
|
+
}) => gn({ name: be, value: e, canTrack: n }), ye = () => f() && typeof localStorage < "u" ? localStorage : void 0, xn = ({
|
|
1409
1477
|
key: e,
|
|
1410
1478
|
canTrack: n
|
|
1411
1479
|
}) => {
|
|
1412
1480
|
var t;
|
|
1413
1481
|
try {
|
|
1414
|
-
return n ? (t =
|
|
1482
|
+
return n ? (t = ye()) == null ? void 0 : t.getItem(e) : void 0;
|
|
1415
1483
|
} catch (o) {
|
|
1416
1484
|
console.debug("[LocalStorage] GET error: ", o);
|
|
1417
1485
|
}
|
|
1418
|
-
},
|
|
1486
|
+
}, wn = ({
|
|
1419
1487
|
key: e,
|
|
1420
1488
|
canTrack: n,
|
|
1421
1489
|
value: t
|
|
1422
1490
|
}) => {
|
|
1423
1491
|
var o;
|
|
1424
1492
|
try {
|
|
1425
|
-
n && ((o =
|
|
1493
|
+
n && ((o = ye()) == null || o.setItem(e, t));
|
|
1426
1494
|
} catch (r) {
|
|
1427
1495
|
console.debug("[LocalStorage] SET error: ", r);
|
|
1428
1496
|
}
|
|
1429
|
-
},
|
|
1497
|
+
}, ve = "builderVisitorId", kn = ({ canTrack: e }) => {
|
|
1430
1498
|
if (!e)
|
|
1431
1499
|
return;
|
|
1432
|
-
const n =
|
|
1433
|
-
key:
|
|
1500
|
+
const n = xn({
|
|
1501
|
+
key: ve,
|
|
1434
1502
|
canTrack: e
|
|
1435
1503
|
});
|
|
1436
|
-
if (
|
|
1504
|
+
if (he(n))
|
|
1437
1505
|
return n;
|
|
1438
1506
|
{
|
|
1439
|
-
const t =
|
|
1507
|
+
const t = Cn();
|
|
1440
1508
|
Sn({ id: t, canTrack: e });
|
|
1441
1509
|
}
|
|
1442
|
-
},
|
|
1510
|
+
}, Cn = () => ge(), Sn = ({
|
|
1443
1511
|
id: e,
|
|
1444
1512
|
canTrack: n
|
|
1445
|
-
}) =>
|
|
1446
|
-
key:
|
|
1513
|
+
}) => wn({
|
|
1514
|
+
key: ve,
|
|
1447
1515
|
value: e,
|
|
1448
1516
|
canTrack: n
|
|
1449
1517
|
});
|
|
1450
|
-
var
|
|
1518
|
+
var In = Object.defineProperty, Tn = Object.defineProperties, On = Object.getOwnPropertyDescriptors, T = Object.getOwnPropertySymbols, _e = Object.prototype.hasOwnProperty, xe = Object.prototype.propertyIsEnumerable, ee = (e, n, t) => n in e ? In(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t, te = (e, n) => {
|
|
1451
1519
|
for (var t in n || (n = {}))
|
|
1452
|
-
|
|
1520
|
+
_e.call(n, t) && ee(e, t, n[t]);
|
|
1453
1521
|
if (T)
|
|
1454
1522
|
for (var t of T(n))
|
|
1455
|
-
|
|
1523
|
+
xe.call(n, t) && ee(e, t, n[t]);
|
|
1456
1524
|
return e;
|
|
1457
|
-
},
|
|
1525
|
+
}, Pn = (e, n) => Tn(e, On(n)), Rn = (e, n) => {
|
|
1458
1526
|
var t = {};
|
|
1459
1527
|
for (var o in e)
|
|
1460
|
-
|
|
1528
|
+
_e.call(e, o) && n.indexOf(o) < 0 && (t[o] = e[o]);
|
|
1461
1529
|
if (e != null && T)
|
|
1462
1530
|
for (var o of T(e))
|
|
1463
|
-
n.indexOf(o) < 0 &&
|
|
1531
|
+
n.indexOf(o) < 0 && xe.call(e, o) && (t[o] = e[o]);
|
|
1464
1532
|
return t;
|
|
1465
|
-
},
|
|
1466
|
-
var
|
|
1533
|
+
}, jn = (e, n, t) => new Promise((o, r) => {
|
|
1534
|
+
var a = (s) => {
|
|
1467
1535
|
try {
|
|
1468
|
-
|
|
1469
|
-
} catch (
|
|
1470
|
-
r(
|
|
1536
|
+
l(t.next(s));
|
|
1537
|
+
} catch (c) {
|
|
1538
|
+
r(c);
|
|
1471
1539
|
}
|
|
1472
|
-
}, i = (
|
|
1540
|
+
}, i = (s) => {
|
|
1473
1541
|
try {
|
|
1474
|
-
|
|
1475
|
-
} catch (
|
|
1476
|
-
r(
|
|
1542
|
+
l(t.throw(s));
|
|
1543
|
+
} catch (c) {
|
|
1544
|
+
r(c);
|
|
1477
1545
|
}
|
|
1478
|
-
},
|
|
1479
|
-
|
|
1546
|
+
}, l = (s) => s.done ? o(s.value) : Promise.resolve(s.value).then(a, i);
|
|
1547
|
+
l((t = t.apply(e, n)).next());
|
|
1480
1548
|
});
|
|
1481
|
-
const
|
|
1549
|
+
const En = ({ canTrack: e }) => {
|
|
1482
1550
|
if (!e)
|
|
1483
1551
|
return { visitorId: void 0, sessionId: void 0 };
|
|
1484
|
-
const n =
|
|
1552
|
+
const n = yn({ canTrack: e }), t = kn({ canTrack: e });
|
|
1485
1553
|
return {
|
|
1486
1554
|
sessionId: n,
|
|
1487
1555
|
visitorId: t
|
|
1488
1556
|
};
|
|
1489
|
-
},
|
|
1557
|
+
}, $n = (e) => {
|
|
1490
1558
|
var n = e, {
|
|
1491
1559
|
type: t,
|
|
1492
1560
|
canTrack: o,
|
|
1493
1561
|
orgId: r,
|
|
1494
|
-
contentId:
|
|
1495
|
-
} = n, i =
|
|
1562
|
+
contentId: a
|
|
1563
|
+
} = n, i = Rn(n, [
|
|
1496
1564
|
"type",
|
|
1497
1565
|
"canTrack",
|
|
1498
1566
|
"orgId",
|
|
@@ -1500,19 +1568,19 @@ const jn = ({ canTrack: e }) => {
|
|
|
1500
1568
|
]);
|
|
1501
1569
|
return {
|
|
1502
1570
|
type: t,
|
|
1503
|
-
data:
|
|
1571
|
+
data: Pn(te(te({}, i), En({ canTrack: o })), {
|
|
1504
1572
|
ownerId: r,
|
|
1505
|
-
contentId:
|
|
1573
|
+
contentId: a
|
|
1506
1574
|
})
|
|
1507
1575
|
};
|
|
1508
1576
|
};
|
|
1509
|
-
function
|
|
1510
|
-
return
|
|
1511
|
-
if (!!e.canTrack && !b() && !!(f() ||
|
|
1577
|
+
function ne(e) {
|
|
1578
|
+
return jn(this, null, function* () {
|
|
1579
|
+
if (!!e.canTrack && !b() && !!(f() || V === "reactNative"))
|
|
1512
1580
|
return fetch("https://builder.io/api/v1/track", {
|
|
1513
1581
|
method: "POST",
|
|
1514
1582
|
body: JSON.stringify({
|
|
1515
|
-
events: [
|
|
1583
|
+
events: [$n(e)]
|
|
1516
1584
|
}),
|
|
1517
1585
|
headers: {
|
|
1518
1586
|
"content-type": "application/json"
|
|
@@ -1523,39 +1591,67 @@ function te(e) {
|
|
|
1523
1591
|
});
|
|
1524
1592
|
});
|
|
1525
1593
|
}
|
|
1526
|
-
const
|
|
1594
|
+
const Fn = () => Promise.resolve().then(() => we).then((e) => e.default), Un = () => import("./render-styles.1744d2eb.js").then((e) => e.default), Vn = {
|
|
1527
1595
|
name: "render-content",
|
|
1528
|
-
components: {
|
|
1529
|
-
|
|
1530
|
-
|
|
1596
|
+
components: {
|
|
1597
|
+
"render-content-styles": v(Un),
|
|
1598
|
+
"render-blocks": v(Fn)
|
|
1599
|
+
},
|
|
1600
|
+
props: [
|
|
1601
|
+
"content",
|
|
1602
|
+
"data",
|
|
1603
|
+
"canTrack",
|
|
1604
|
+
"context",
|
|
1605
|
+
"customComponents",
|
|
1606
|
+
"model",
|
|
1607
|
+
"apiKey"
|
|
1608
|
+
],
|
|
1609
|
+
data: () => ({
|
|
1610
|
+
forceReRenderCount: 0,
|
|
1611
|
+
overrideContent: null,
|
|
1612
|
+
update: 0,
|
|
1613
|
+
overrideState: {},
|
|
1614
|
+
markMutable: A
|
|
1615
|
+
}),
|
|
1531
1616
|
provide() {
|
|
1532
1617
|
const e = this;
|
|
1533
1618
|
return {
|
|
1534
|
-
BuilderContext: {
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1619
|
+
BuilderContext: {
|
|
1620
|
+
get content() {
|
|
1621
|
+
return e.useContent;
|
|
1622
|
+
},
|
|
1623
|
+
get state() {
|
|
1624
|
+
return e.contentState;
|
|
1625
|
+
},
|
|
1626
|
+
get context() {
|
|
1627
|
+
return e.contextContext;
|
|
1628
|
+
},
|
|
1629
|
+
get apiKey() {
|
|
1630
|
+
return e.apiKey;
|
|
1631
|
+
},
|
|
1632
|
+
get registeredComponents() {
|
|
1633
|
+
return e.allRegisteredComponents;
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1545
1636
|
};
|
|
1546
1637
|
},
|
|
1547
1638
|
mounted() {
|
|
1548
1639
|
if (f()) {
|
|
1549
|
-
if (b() && (this.forceReRenderCount = this.forceReRenderCount + 1, Se(),
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1640
|
+
if (b() && (this.forceReRenderCount = this.forceReRenderCount + 1, Se(), Ie(), Object.values(this.allRegisteredComponents).forEach(
|
|
1641
|
+
(e) => {
|
|
1642
|
+
var t;
|
|
1643
|
+
const n = sn(e);
|
|
1644
|
+
(t = window.parent) == null || t.postMessage(n, "*");
|
|
1645
|
+
}
|
|
1646
|
+
), window.addEventListener("message", this.processMessage), window.addEventListener(
|
|
1647
|
+
"builder:component:stateChangeListenerActivated",
|
|
1648
|
+
this.emitStateUpdate
|
|
1649
|
+
)), this.useContent && ne({
|
|
1554
1650
|
type: "impression",
|
|
1555
1651
|
canTrack: this.canTrackToUse,
|
|
1556
1652
|
contentId: this.useContent.id,
|
|
1557
1653
|
orgId: this.apiKey
|
|
1558
|
-
}),
|
|
1654
|
+
}), nn()) {
|
|
1559
1655
|
const e = new URL(location.href).searchParams;
|
|
1560
1656
|
if (this.model && e.get("builder.preview") === this.model) {
|
|
1561
1657
|
const n = e.get("apiKey") || e.get("builder.space");
|
|
@@ -1582,253 +1678,292 @@ const $n = () => Promise.resolve().then(() => xe), Fn = () => import("./render-s
|
|
|
1582
1678
|
}
|
|
1583
1679
|
},
|
|
1584
1680
|
unmounted() {
|
|
1585
|
-
f() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
1681
|
+
f() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
1682
|
+
"builder:component:stateChangeListenerActivated",
|
|
1683
|
+
this.emitStateUpdate
|
|
1684
|
+
));
|
|
1586
1685
|
},
|
|
1587
|
-
computed: {
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
};
|
|
1598
|
-
}, canTrackToUse() {
|
|
1599
|
-
return this.canTrack || !0;
|
|
1600
|
-
}, contentState() {
|
|
1601
|
-
var e, n;
|
|
1602
|
-
return {
|
|
1603
|
-
...(n = (e = this.content) == null ? void 0 : e.data) == null ? void 0 : n.state,
|
|
1604
|
-
...this.data,
|
|
1605
|
-
...this.overrideState
|
|
1606
|
-
};
|
|
1607
|
-
}, contextContext() {
|
|
1608
|
-
return this.context || {};
|
|
1609
|
-
}, allRegisteredComponents() {
|
|
1610
|
-
return [
|
|
1611
|
-
...en(),
|
|
1612
|
-
...pe,
|
|
1613
|
-
...this.customComponents || []
|
|
1614
|
-
].reduce((t, o) => ({
|
|
1615
|
-
...t,
|
|
1616
|
-
[o.name]: o
|
|
1617
|
-
}), {});
|
|
1618
|
-
}, httpReqsData() {
|
|
1619
|
-
return {};
|
|
1620
|
-
}, shouldRenderContentStyles() {
|
|
1621
|
-
var e, n, t, o, r;
|
|
1622
|
-
return Boolean((((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)) && A !== "reactNative");
|
|
1623
|
-
}, onUpdateHook0() {
|
|
1624
|
-
var e, n;
|
|
1625
|
-
return {
|
|
1626
|
-
0: (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.jsCode
|
|
1627
|
-
};
|
|
1628
|
-
}, onUpdateHook1() {
|
|
1629
|
-
var e, n;
|
|
1630
|
-
return {
|
|
1631
|
-
0: (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.httpRequests
|
|
1632
|
-
};
|
|
1633
|
-
}, onUpdateHook2() {
|
|
1634
|
-
return {
|
|
1635
|
-
0: this.contentState
|
|
1636
|
-
};
|
|
1637
|
-
} },
|
|
1638
|
-
methods: { processMessage(e) {
|
|
1639
|
-
const {
|
|
1640
|
-
data: n
|
|
1641
|
-
} = e;
|
|
1642
|
-
if (n)
|
|
1643
|
-
switch (n.type) {
|
|
1644
|
-
case "builder.contentUpdate": {
|
|
1645
|
-
const t = n.data, o = t.key || t.alias || t.entry || t.modelName, r = t.data;
|
|
1646
|
-
o === this.model && (this.overrideContent = r);
|
|
1647
|
-
break;
|
|
1686
|
+
computed: {
|
|
1687
|
+
useContent() {
|
|
1688
|
+
var n, t;
|
|
1689
|
+
return {
|
|
1690
|
+
...this.content,
|
|
1691
|
+
...this.overrideContent,
|
|
1692
|
+
data: {
|
|
1693
|
+
...(n = this.content) == null ? void 0 : n.data,
|
|
1694
|
+
...this.data,
|
|
1695
|
+
...(t = this.overrideContent) == null ? void 0 : t.data
|
|
1648
1696
|
}
|
|
1649
|
-
}
|
|
1650
|
-
}, evaluateJsCode() {
|
|
1651
|
-
var n, t;
|
|
1652
|
-
const e = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.jsCode;
|
|
1653
|
-
e && Y({
|
|
1654
|
-
code: e,
|
|
1655
|
-
context: this.contextContext,
|
|
1656
|
-
state: this.contentState
|
|
1657
|
-
});
|
|
1658
|
-
}, onClick(e) {
|
|
1659
|
-
this.useContent && te({
|
|
1660
|
-
type: "click",
|
|
1661
|
-
canTrack: this.canTrackToUse,
|
|
1662
|
-
contentId: this.useContent.id,
|
|
1663
|
-
orgId: this.apiKey
|
|
1664
|
-
});
|
|
1665
|
-
}, evalExpression(e) {
|
|
1666
|
-
return e.replace(/{{([^}]+)}}/g, (n, t) => Y({
|
|
1667
|
-
code: t,
|
|
1668
|
-
context: this.contextContext,
|
|
1669
|
-
state: this.contentState
|
|
1670
|
-
}));
|
|
1671
|
-
}, handleRequest({
|
|
1672
|
-
url: e,
|
|
1673
|
-
key: n
|
|
1674
|
-
}) {
|
|
1675
|
-
(async () => {
|
|
1676
|
-
const s = await (await (await ae())(e)).json(), i = {
|
|
1677
|
-
...this.overrideState,
|
|
1678
|
-
[n]: s
|
|
1679
1697
|
};
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
this.
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1698
|
+
},
|
|
1699
|
+
canTrackToUse() {
|
|
1700
|
+
return this.canTrack || !0;
|
|
1701
|
+
},
|
|
1702
|
+
contentState() {
|
|
1703
|
+
var e, n;
|
|
1704
|
+
return {
|
|
1705
|
+
...(n = (e = this.content) == null ? void 0 : e.data) == null ? void 0 : n.state,
|
|
1706
|
+
...this.data,
|
|
1707
|
+
...this.overrideState
|
|
1708
|
+
};
|
|
1709
|
+
},
|
|
1710
|
+
contextContext() {
|
|
1711
|
+
return this.context || {};
|
|
1712
|
+
},
|
|
1713
|
+
allRegisteredComponents() {
|
|
1714
|
+
return [
|
|
1715
|
+
...tn(),
|
|
1716
|
+
...me,
|
|
1717
|
+
...this.customComponents || []
|
|
1718
|
+
].reduce(
|
|
1719
|
+
(t, o) => ({ ...t, [o.name]: o }),
|
|
1720
|
+
{}
|
|
1721
|
+
);
|
|
1722
|
+
},
|
|
1723
|
+
httpReqsData() {
|
|
1724
|
+
return {};
|
|
1725
|
+
},
|
|
1726
|
+
shouldRenderContentStyles() {
|
|
1727
|
+
var e, n, t, o, r;
|
|
1728
|
+
return Boolean(
|
|
1729
|
+
(((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)) && V !== "reactNative"
|
|
1730
|
+
);
|
|
1731
|
+
},
|
|
1732
|
+
onUpdateHook0() {
|
|
1733
|
+
var e, n;
|
|
1734
|
+
return {
|
|
1735
|
+
0: (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.jsCode
|
|
1736
|
+
};
|
|
1737
|
+
},
|
|
1738
|
+
onUpdateHook1() {
|
|
1739
|
+
var e, n;
|
|
1740
|
+
return {
|
|
1741
|
+
0: (n = (e = this.useContent) == null ? void 0 : e.data) == null ? void 0 : n.httpRequests
|
|
1742
|
+
};
|
|
1743
|
+
},
|
|
1744
|
+
onUpdateHook2() {
|
|
1745
|
+
return {
|
|
1746
|
+
0: this.contentState
|
|
1747
|
+
};
|
|
1748
|
+
}
|
|
1749
|
+
},
|
|
1750
|
+
methods: {
|
|
1751
|
+
processMessage(e) {
|
|
1752
|
+
const { data: n } = e;
|
|
1753
|
+
if (n)
|
|
1754
|
+
switch (n.type) {
|
|
1755
|
+
case "builder.contentUpdate": {
|
|
1756
|
+
const t = n.data, o = t.key || t.alias || t.entry || t.modelName, r = t.data;
|
|
1757
|
+
o === this.model && (this.overrideContent = r, this.forceReRenderCount = this.forceReRenderCount + 1);
|
|
1758
|
+
break;
|
|
1759
|
+
}
|
|
1700
1760
|
}
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1761
|
+
},
|
|
1762
|
+
evaluateJsCode() {
|
|
1763
|
+
var n, t;
|
|
1764
|
+
const e = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.jsCode;
|
|
1765
|
+
e && X({
|
|
1766
|
+
code: e,
|
|
1767
|
+
context: this.contextContext,
|
|
1768
|
+
state: this.contentState
|
|
1769
|
+
});
|
|
1770
|
+
},
|
|
1771
|
+
onClick(e) {
|
|
1772
|
+
this.useContent && ne({
|
|
1773
|
+
type: "click",
|
|
1774
|
+
canTrack: this.canTrackToUse,
|
|
1775
|
+
contentId: this.useContent.id,
|
|
1776
|
+
orgId: this.apiKey
|
|
1777
|
+
});
|
|
1778
|
+
},
|
|
1779
|
+
evalExpression(e) {
|
|
1780
|
+
return e.replace(
|
|
1781
|
+
/{{([^}]+)}}/g,
|
|
1782
|
+
(n, t) => X({
|
|
1783
|
+
code: t,
|
|
1784
|
+
context: this.contextContext,
|
|
1785
|
+
state: this.contentState
|
|
1786
|
+
})
|
|
1787
|
+
);
|
|
1788
|
+
},
|
|
1789
|
+
handleRequest({ url: e, key: n }) {
|
|
1790
|
+
ie().then((t) => t(e)).then((t) => t.json()).then((t) => {
|
|
1791
|
+
const o = { ...this.overrideState, [n]: t };
|
|
1792
|
+
this.overrideState = o;
|
|
1793
|
+
}).catch((t) => {
|
|
1794
|
+
console.log("error fetching dynamic data", e, t);
|
|
1795
|
+
});
|
|
1796
|
+
},
|
|
1797
|
+
runHttpRequests() {
|
|
1798
|
+
var n, t, o;
|
|
1799
|
+
const e = (o = (t = (n = this.useContent) == null ? void 0 : n.data) == null ? void 0 : t.httpRequests) != null ? o : {};
|
|
1800
|
+
Object.entries(e).forEach(([r, a]) => {
|
|
1801
|
+
if (a && (!this.httpReqsData[r] || b())) {
|
|
1802
|
+
const i = this.evalExpression(a);
|
|
1803
|
+
this.handleRequest({
|
|
1804
|
+
url: i,
|
|
1805
|
+
key: r
|
|
1806
|
+
});
|
|
1807
|
+
}
|
|
1808
|
+
});
|
|
1809
|
+
},
|
|
1810
|
+
emitStateUpdate() {
|
|
1811
|
+
b() && window.dispatchEvent(
|
|
1812
|
+
new CustomEvent("builder:component:stateChange", {
|
|
1813
|
+
detail: {
|
|
1814
|
+
state: this.contentState,
|
|
1815
|
+
ref: {
|
|
1816
|
+
name: this.model
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
})
|
|
1820
|
+
);
|
|
1821
|
+
}
|
|
1822
|
+
}
|
|
1704
1823
|
}, An = ["builder-content-id"];
|
|
1705
|
-
function
|
|
1706
|
-
var
|
|
1707
|
-
const i = _("render-content-styles"),
|
|
1708
|
-
return
|
|
1824
|
+
function Wn(e, n, t, o, r, a) {
|
|
1825
|
+
var s, c, u, m, w, L, M;
|
|
1826
|
+
const i = _("render-content-styles"), l = _("render-blocks");
|
|
1827
|
+
return a.useContent ? (d(), p("div", {
|
|
1709
1828
|
key: 0,
|
|
1710
1829
|
ref: "elementRef",
|
|
1711
|
-
onClick: n[0] || (n[0] = (
|
|
1712
|
-
"builder-content-id": (
|
|
1830
|
+
onClick: n[0] || (n[0] = (ke) => a.onClick(ke)),
|
|
1831
|
+
"builder-content-id": (s = a.useContent) == null ? void 0 : s.id
|
|
1713
1832
|
}, [
|
|
1714
|
-
|
|
1833
|
+
a.shouldRenderContentStyles ? (d(), S(i, {
|
|
1715
1834
|
key: 0,
|
|
1716
|
-
cssCode: (u = (
|
|
1717
|
-
customFonts: (w = (m =
|
|
1835
|
+
cssCode: (u = (c = a.useContent) == null ? void 0 : c.data) == null ? void 0 : u.cssCode,
|
|
1836
|
+
customFonts: (w = (m = a.useContent) == null ? void 0 : m.data) == null ? void 0 : w.customFonts
|
|
1718
1837
|
}, null, 8, ["cssCode", "customFonts"])) : y("", !0),
|
|
1719
|
-
(d(),
|
|
1720
|
-
blocks: (
|
|
1838
|
+
(d(), S(l, {
|
|
1839
|
+
blocks: e.markMutable((M = (L = a.useContent) == null ? void 0 : L.data) == null ? void 0 : M.blocks),
|
|
1721
1840
|
key: e.forceReRenderCount
|
|
1722
1841
|
}, null, 8, ["blocks"]))
|
|
1723
1842
|
], 8, An)) : y("", !0);
|
|
1724
1843
|
}
|
|
1725
|
-
const
|
|
1844
|
+
const Ln = /* @__PURE__ */ h(Vn, [["render", Wn]]), Mn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1726
1845
|
__proto__: null,
|
|
1727
|
-
default:
|
|
1728
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
1846
|
+
default: Ln
|
|
1847
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
1848
|
+
const Nn = () => import("./block-styles.76754b24.js").then((e) => e.default), Bn = () => import("./render-block.369b7818.js").then((e) => e.default), qn = {
|
|
1729
1849
|
name: "render-blocks",
|
|
1730
|
-
components: {
|
|
1850
|
+
components: {
|
|
1851
|
+
"render-block": v(Bn),
|
|
1852
|
+
"block-styles": v(Nn)
|
|
1853
|
+
},
|
|
1731
1854
|
props: ["blocks", "parent", "path"],
|
|
1732
1855
|
inject: {
|
|
1733
1856
|
builderContext: "BuilderContext"
|
|
1734
1857
|
},
|
|
1735
|
-
computed: {
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1858
|
+
computed: {
|
|
1859
|
+
className() {
|
|
1860
|
+
var e;
|
|
1861
|
+
return "builder-blocks" + ((e = this.blocks) != null && e.length ? "" : " no-blocks");
|
|
1862
|
+
}
|
|
1863
|
+
},
|
|
1864
|
+
methods: {
|
|
1865
|
+
onClick() {
|
|
1866
|
+
var e, n;
|
|
1867
|
+
b() && !((e = this.blocks) != null && e.length) && ((n = window.parent) == null || n.postMessage(
|
|
1868
|
+
{
|
|
1869
|
+
type: "builder.clickEmptyBlocks",
|
|
1870
|
+
data: {
|
|
1871
|
+
parentElementId: this.parent,
|
|
1872
|
+
dataPath: this.path
|
|
1873
|
+
}
|
|
1874
|
+
},
|
|
1875
|
+
"*"
|
|
1876
|
+
));
|
|
1877
|
+
},
|
|
1878
|
+
onMouseEnter() {
|
|
1879
|
+
var e, n;
|
|
1880
|
+
b() && !((e = this.blocks) != null && e.length) && ((n = window.parent) == null || n.postMessage(
|
|
1881
|
+
{
|
|
1882
|
+
type: "builder.hoverEmptyBlocks",
|
|
1883
|
+
data: {
|
|
1884
|
+
parentElementId: this.parent,
|
|
1885
|
+
dataPath: this.path
|
|
1886
|
+
}
|
|
1887
|
+
},
|
|
1888
|
+
"*"
|
|
1889
|
+
));
|
|
1890
|
+
},
|
|
1891
|
+
_classStringToObject(e) {
|
|
1892
|
+
const n = {};
|
|
1893
|
+
if (typeof e != "string")
|
|
1894
|
+
return n;
|
|
1895
|
+
const t = e.trim().split(/\s+/);
|
|
1896
|
+
for (const o of t)
|
|
1897
|
+
n[o] = !0;
|
|
1760
1898
|
return n;
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
};
|
|
1767
|
-
const Dn = ["builder-path", "builder-parent-id", "dataSet"];
|
|
1768
|
-
function zn(e, n, t, o, r, s) {
|
|
1769
|
-
const i = _("render-block"), c = _("block-styles");
|
|
1899
|
+
}
|
|
1900
|
+
}
|
|
1901
|
+
}, Dn = ["builder-path", "builder-parent-id", "dataSet"];
|
|
1902
|
+
function zn(e, n, t, o, r, a) {
|
|
1903
|
+
const i = _("render-block"), l = _("block-styles");
|
|
1770
1904
|
return d(), p("div", {
|
|
1771
|
-
class:
|
|
1905
|
+
class: ae(a._classStringToObject(a.className + " div-1hjwvu3r5mj")),
|
|
1772
1906
|
"builder-path": t.path,
|
|
1773
1907
|
"builder-parent-id": t.parent,
|
|
1774
1908
|
dataSet: {
|
|
1775
|
-
class:
|
|
1909
|
+
class: a.className
|
|
1776
1910
|
},
|
|
1777
|
-
onClick: n[0] || (n[0] = (
|
|
1778
|
-
onMouseenter: n[1] || (n[1] = (
|
|
1911
|
+
onClick: n[0] || (n[0] = (s) => a.onClick()),
|
|
1912
|
+
onMouseenter: n[1] || (n[1] = (s) => a.onMouseEnter())
|
|
1779
1913
|
}, [
|
|
1780
|
-
t.blocks ? (d(!0), p(j, { key: 0 }, E(t.blocks, (
|
|
1781
|
-
key: "render-block-" +
|
|
1782
|
-
block:
|
|
1783
|
-
context:
|
|
1914
|
+
t.blocks ? (d(!0), p(j, { key: 0 }, E(t.blocks, (s, c) => (d(), S(i, {
|
|
1915
|
+
key: "render-block-" + s.id,
|
|
1916
|
+
block: s,
|
|
1917
|
+
context: a.builderContext
|
|
1784
1918
|
}, null, 8, ["block", "context"]))), 128)) : y("", !0),
|
|
1785
|
-
t.blocks ? (d(!0), p(j, { key: 1 }, E(t.blocks, (
|
|
1786
|
-
key: "block-style-" +
|
|
1787
|
-
block:
|
|
1788
|
-
context:
|
|
1919
|
+
t.blocks ? (d(!0), p(j, { key: 1 }, E(t.blocks, (s, c) => (d(), S(l, {
|
|
1920
|
+
key: "block-style-" + s.id,
|
|
1921
|
+
block: s,
|
|
1922
|
+
context: a.builderContext
|
|
1789
1923
|
}, null, 8, ["block", "context"]))), 128)) : y("", !0)
|
|
1790
1924
|
], 42, Dn);
|
|
1791
1925
|
}
|
|
1792
|
-
const Hn = /* @__PURE__ */ h(
|
|
1926
|
+
const Hn = /* @__PURE__ */ h(qn, [["render", zn], ["__scopeId", "data-v-50f203f2"]]), we = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1793
1927
|
__proto__: null,
|
|
1794
1928
|
default: Hn
|
|
1795
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1796
|
-
function
|
|
1929
|
+
}, Symbol.toStringTag, { value: "Module" })), oe = {};
|
|
1930
|
+
function Yn(e) {
|
|
1797
1931
|
if (f()) {
|
|
1798
|
-
Object.assign(
|
|
1932
|
+
Object.assign(oe, e);
|
|
1799
1933
|
const n = {
|
|
1800
1934
|
type: "builder.settingsChange",
|
|
1801
|
-
data:
|
|
1935
|
+
data: oe
|
|
1802
1936
|
};
|
|
1803
1937
|
parent.postMessage(n, "*");
|
|
1804
1938
|
}
|
|
1805
1939
|
}
|
|
1806
1940
|
export {
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1941
|
+
Ct as B,
|
|
1942
|
+
Re as C,
|
|
1943
|
+
Rt as F,
|
|
1944
|
+
Me as I,
|
|
1945
|
+
Tt as S,
|
|
1946
|
+
V as T,
|
|
1947
|
+
Ge as V,
|
|
1814
1948
|
h as _,
|
|
1815
|
-
|
|
1816
|
-
|
|
1949
|
+
Ln as a,
|
|
1950
|
+
_t as b,
|
|
1817
1951
|
De as c,
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1952
|
+
nn as d,
|
|
1953
|
+
X as e,
|
|
1954
|
+
me as f,
|
|
1821
1955
|
sn as g,
|
|
1822
|
-
|
|
1956
|
+
Jn as h,
|
|
1823
1957
|
b as i,
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1958
|
+
Ce as j,
|
|
1959
|
+
ft as k,
|
|
1960
|
+
ht as l,
|
|
1961
|
+
Gn as m,
|
|
1962
|
+
ce as n,
|
|
1963
|
+
se as o,
|
|
1830
1964
|
tt as p,
|
|
1831
1965
|
nt as q,
|
|
1832
1966
|
Hn as r,
|
|
1833
|
-
|
|
1967
|
+
Yn as s,
|
|
1968
|
+
ot as t
|
|
1834
1969
|
};
|