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