@builder.io/sdk-vue 5.2.5 → 5.2.7
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/lib/browser/{awaiter-RQWxLPh7.cjs → awaiter-0mKQSRRk.cjs} +1 -1
- package/lib/browser/{awaiter-BKtN2AMs.js → awaiter-aT9nEkF0.js} +1 -1
- package/lib/browser/{block-wrapper-nMKh8p11.cjs → block-wrapper-ebPi5330.cjs} +1 -1
- package/lib/browser/{block-wrapper-tny9tjLX.js → block-wrapper-hsmUEUmJ.js} +3 -3
- package/lib/browser/blocks/image/image.vue.d.ts +4 -3
- package/lib/browser/blocks/personalization-container/helpers.d.ts +2 -0
- package/lib/browser/{component-ref-d2TAsp69.js → component-ref-2JLic_6J.js} +4 -4
- package/lib/browser/{component-ref-Mw4IXQsf.cjs → component-ref-5lsY_P2L.cjs} +1 -1
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +1 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-yuV5qbSy.cjs → get-block-properties-DMrMpyLe.cjs} +1 -1
- package/lib/browser/{get-block-properties-DXgJ283y.js → get-block-properties-uAJb6ltf.js} +1 -1
- package/lib/browser/index-HltbyCkc.cjs +350 -0
- package/lib/browser/{index-NzYhd2fP.js → index-ODe_HCA4.js} +693 -675
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-MYo3p6a8.js → live-edit-6Fy-p514.js} +1 -1
- package/lib/browser/{live-edit-2xpHwDC6.cjs → live-edit-jPgkphth.cjs} +1 -1
- package/lib/browser/{repeated-block-Ga5ASejd.js → repeated-block-GCDk4uyK.js} +2 -2
- package/lib/browser/{repeated-block-2EBzVyUu.cjs → repeated-block-dwcsu5Tf.cjs} +1 -1
- package/lib/browser/{style-wrapper-L7DnOyfm.cjs → style-wrapper-uJyikbLw.cjs} +1 -1
- package/lib/browser/{style-wrapper-dI5wRv59.js → style-wrapper-uzjZV5OS.js} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-6AjvWUxL.cjs → awaiter-eu9BKtnq.cjs} +1 -1
- package/lib/edge/{awaiter-4nEUChYV.js → awaiter-n2CWjZB1.js} +1 -1
- package/lib/{node/block-wrapper-CVcdunhe.cjs → edge/block-wrapper--rtRhHUc.cjs} +1 -1
- package/lib/edge/{block-wrapper-46vOpFGy.js → block-wrapper-9nBz9JZR.js} +3 -3
- package/lib/edge/blocks/image/image.vue.d.ts +4 -3
- package/lib/edge/blocks/personalization-container/helpers.d.ts +2 -0
- package/lib/edge/{component-ref-yTXpKy_r.js → component-ref-S9vJwuiq.js} +4 -4
- package/lib/edge/{component-ref-DUyRq-EJ.cjs → component-ref-jnjNzDWr.cjs} +1 -1
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +1 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-W3W_9H-Z.js → get-block-properties--bKisxsm.js} +1 -1
- package/lib/edge/{get-block-properties-jJLbFHeq.cjs → get-block-properties-TpA1c-Zj.cjs} +1 -1
- package/lib/edge/{index-jpFEl6o1.cjs → index-_nY8Y9dm.cjs} +49 -41
- package/lib/edge/{index-DHXkBA25.js → index-bxo4ghDB.js} +799 -781
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-NBkhYc-u.js → edge/live-edit-7g02-2DF.js} +1 -1
- package/lib/{node/live-edit-iOkS0wUg.cjs → edge/live-edit-e8Z6uQ-j.cjs} +1 -1
- package/lib/edge/{repeated-block-dGVzaSM5.cjs → repeated-block-OUui2NbB.cjs} +1 -1
- package/lib/edge/{repeated-block-eANZkOUH.js → repeated-block-R_IWEkxl.js} +2 -2
- package/lib/edge/{style-wrapper-CvNVb0wT.cjs → style-wrapper-F_5qcoF-.cjs} +1 -1
- package/lib/edge/{style-wrapper-GqtgkGuc.js → style-wrapper-sQRz1Tz9.js} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-6JHJCJgG.js → awaiter-JSpfFLrt.js} +1 -1
- package/lib/node/{awaiter-_rQTvMWR.cjs → awaiter-N70CU_8O.cjs} +1 -1
- package/lib/node/{block-wrapper-3P0_XOfk.js → block-wrapper-8WuMQvKC.js} +3 -3
- package/lib/{edge/block-wrapper-97OfjwlX.cjs → node/block-wrapper-pbauouda.cjs} +1 -1
- package/lib/node/blocks/image/image.vue.d.ts +4 -3
- package/lib/node/blocks/personalization-container/helpers.d.ts +2 -0
- package/lib/node/{component-ref-tWjNsmU5.cjs → component-ref-0QnbZN8R.cjs} +1 -1
- package/lib/node/{component-ref-RHwChjOp.js → component-ref-Why7x4bF.js} +5 -5
- package/lib/node/components/content/components/enable-editor.vue.d.ts +1 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +1 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-jknWz7As.cjs → get-block-properties-49Z6hgAn.cjs} +1 -1
- package/lib/node/{get-block-properties-9gqKfU1J.js → get-block-properties-yMS_NiSc.js} +2 -2
- package/lib/node/index-2G2Z-ncC.cjs +350 -0
- package/lib/node/{index-CwfwLkvc.js → index-4BcEpdYg.js} +578 -560
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-WpboQZDv.cjs → node/live-edit-0eQ2U7us.cjs} +1 -1
- package/lib/{edge/live-edit-nhAMI-64.js → node/live-edit-959vfTqG.js} +1 -1
- package/lib/node/{repeated-block-BqCLqE8_.cjs → repeated-block-NkQjCyoE.cjs} +1 -1
- package/lib/node/{repeated-block-aHj4jtJt.js → repeated-block-uTpfjUj-.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-j9YDACzy.cjs → should-force-browser-runtime-in-node-hS7qkwoE.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-2bRYXF-W.js → should-force-browser-runtime-in-node-k20eAE3E.js} +1 -1
- package/lib/node/{style-wrapper-kcTKCb_j.js → style-wrapper-HY1zLGB7.js} +2 -2
- package/lib/node/{style-wrapper-WxU8Uo4d.cjs → style-wrapper-dYrN4_G9.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/index-yyjVNpWr.cjs +0 -342
- package/lib/node/index-eeU-4w7r.cjs +0 -342
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as w, createBlock as S, resolveDynamicComponent as Y, mergeProps as I, toHandlers as
|
|
2
|
-
import { T as R, g as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as w, createBlock as S, resolveDynamicComponent as Y, mergeProps as I, toHandlers as U, withCtx as x, renderSlot as V, resolveComponent as k, createTextVNode as Ct, toDisplayString as le, defineAsyncComponent as Q, createVNode as $, renderList as F, createCommentVNode as C, h as Qe, createElementVNode as q, normalizeStyle as M, normalizeClass as Z, markRaw as Tt } from "vue";
|
|
2
|
+
import { T as R, g as wt, f as It, i as E, s as $t, r as Rt, p as Et, a as Pt, l as L, b as Ye, c as Te, d as At, n as Xe, S as Bt, e as we, h as re, j as Vt, k as Ze, m as Nt, o as A, q as _e, _ as xe } from "./should-force-browser-runtime-in-node-k20eAE3E.js";
|
|
3
|
+
const Wt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Dt = (e) => typeof e == "string" && Wt.has(e.toLowerCase());
|
|
4
4
|
function N(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
@@ -11,11 +11,11 @@ function N(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const xt = y({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: Dt };
|
|
19
19
|
}
|
|
20
20
|
}), v = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
@@ -23,14 +23,14 @@ const Wt = y({
|
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (d(), S(Y(e.TagName), I({ key: 1 }, e.attributes,
|
|
28
|
-
typeof e.TagName == "string" ? (d(), S(Y(e.TagName), I({ key: 0 }, e.attributes,
|
|
26
|
+
function Ot(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (d(), S(Y(e.TagName), I({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (d(), h(w, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (d(), S(Y(e.TagName), I({ key: 0 }, e.attributes, U(e.actionAttributes)), {
|
|
29
29
|
default: x(() => [
|
|
30
30
|
V(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (d(), S(Y(e.TagName), I({ key: 1 }, e.attributes,
|
|
33
|
+
}, 16)) : (d(), S(Y(e.TagName), I({ key: 1 }, e.attributes, U(e.actionAttributes)), {
|
|
34
34
|
default: x(() => [
|
|
35
35
|
V(e.$slots, "default")
|
|
36
36
|
]),
|
|
@@ -38,10 +38,10 @@ function Dt(e, t, n, o, r, i) {
|
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Ie = /* @__PURE__ */ v(xt, [["render", Ot]]), Xi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
43
|
+
default: Ie
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), z = () => {
|
|
45
45
|
switch (R) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
@@ -54,9 +54,9 @@ const Ce = /* @__PURE__ */ v(Wt, [["render", Dt]]), Ji = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, Ut = y({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: Ie },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -71,7 +71,7 @@ const Ce = /* @__PURE__ */ v(Wt, [["render", Dt]]), Ji = /* @__PURE__ */ Object.
|
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
73
|
...N(this.attributes, "v-on:", !1),
|
|
74
|
-
[
|
|
74
|
+
[z()]: `${this.link ? "" : "builder-button"} ${this.attributes[z()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
77
77
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -83,7 +83,7 @@ const Ce = /* @__PURE__ */ v(Wt, [["render", Dt]]), Ji = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
86
|
+
function Ft(e, t, n, o, r, i) {
|
|
87
87
|
const s = k("DynamicRenderer");
|
|
88
88
|
return d(), S(s, {
|
|
89
89
|
attributes: e.attrs(),
|
|
@@ -91,12 +91,12 @@ function Ut(e, t, n, o, r, i) {
|
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
93
|
default: x(() => [
|
|
94
|
-
|
|
94
|
+
Ct(le(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const Lt = /* @__PURE__ */ v(Ut, [["render", Ft]]), Ht = Symbol(), he = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -113,14 +113,14 @@ const Ot = /* @__PURE__ */ v(xt, [["render", Ut]]), Ft = Symbol(), he = {
|
|
|
113
113
|
nonce: "",
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
|
-
key:
|
|
117
|
-
},
|
|
116
|
+
key: Ht
|
|
117
|
+
}, Mt = Symbol(), et = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
|
-
key:
|
|
120
|
-
},
|
|
119
|
+
key: Mt
|
|
120
|
+
}, tt = (e, t, n) => {
|
|
121
121
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
122
122
|
return o === void 0 || o === e ? n : o;
|
|
123
|
-
},
|
|
123
|
+
}, zt = ({
|
|
124
124
|
code: e,
|
|
125
125
|
builder: t,
|
|
126
126
|
context: n,
|
|
@@ -129,22 +129,22 @@ const Ot = /* @__PURE__ */ v(xt, [["render", Ut]]), Ft = Symbol(), he = {
|
|
|
129
129
|
rootSetState: i,
|
|
130
130
|
rootState: s
|
|
131
131
|
}) => {
|
|
132
|
-
const l =
|
|
132
|
+
const l = wt({
|
|
133
133
|
builder: t,
|
|
134
134
|
context: n,
|
|
135
135
|
event: o,
|
|
136
|
-
state:
|
|
136
|
+
state: It({
|
|
137
137
|
rootState: s,
|
|
138
138
|
localState: r,
|
|
139
139
|
rootSetState: i
|
|
140
140
|
})
|
|
141
141
|
});
|
|
142
142
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
143
|
-
},
|
|
143
|
+
}, jt = (e) => E() || $t({
|
|
144
144
|
shouldLogWarning: !0
|
|
145
|
-
}) ?
|
|
145
|
+
}) ? zt(e) : Rt(e), qt = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Kt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Jt = (e) => {
|
|
146
146
|
var t, n, o, r, i, s;
|
|
147
|
-
return ((o = (n = (t = qt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r =
|
|
147
|
+
return ((o = (n = (t = qt.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Kt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
148
148
|
};
|
|
149
149
|
function _({
|
|
150
150
|
code: e,
|
|
@@ -158,17 +158,17 @@ function _({
|
|
|
158
158
|
}) {
|
|
159
159
|
if (e.trim() === "")
|
|
160
160
|
return;
|
|
161
|
-
const a =
|
|
161
|
+
const a = Jt(e.trim());
|
|
162
162
|
if (a)
|
|
163
|
-
return
|
|
163
|
+
return tt({
|
|
164
164
|
...o,
|
|
165
165
|
...n
|
|
166
166
|
}, a);
|
|
167
167
|
const u = {
|
|
168
|
-
code:
|
|
168
|
+
code: Et(e, {
|
|
169
169
|
isExpression: s
|
|
170
170
|
}),
|
|
171
|
-
builder:
|
|
171
|
+
builder: Pt(l),
|
|
172
172
|
context: t,
|
|
173
173
|
event: i,
|
|
174
174
|
rootSetState: r,
|
|
@@ -176,7 +176,7 @@ function _({
|
|
|
176
176
|
localState: n
|
|
177
177
|
};
|
|
178
178
|
try {
|
|
179
|
-
return
|
|
179
|
+
return jt(u);
|
|
180
180
|
} catch (p) {
|
|
181
181
|
L.error("Failed code evaluation: " + p.message, {
|
|
182
182
|
code: e
|
|
@@ -184,15 +184,15 @@ function _({
|
|
|
184
184
|
return;
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
function
|
|
187
|
+
function Gt(e, t) {
|
|
188
188
|
var n;
|
|
189
189
|
return {
|
|
190
190
|
...(n = e.component) == null ? void 0 : n.options,
|
|
191
191
|
...e.options,
|
|
192
|
-
...
|
|
192
|
+
...Qt(e, t)
|
|
193
193
|
};
|
|
194
194
|
}
|
|
195
|
-
const
|
|
195
|
+
const Qt = (e, t) => {
|
|
196
196
|
var n, o;
|
|
197
197
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
198
198
|
return {
|
|
@@ -206,7 +206,7 @@ const Gt = (e, t) => {
|
|
|
206
206
|
}))
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
|
-
function
|
|
209
|
+
function Yt(e, ...t) {
|
|
210
210
|
const n = Object.assign({}, e);
|
|
211
211
|
for (const o of t)
|
|
212
212
|
delete n[o];
|
|
@@ -229,28 +229,28 @@ function ie(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
229
229
|
}), ie(s, t, e, i, r);
|
|
230
230
|
}));
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function nt(e) {
|
|
233
233
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function Xt(e) {
|
|
236
236
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
237
237
|
return !1;
|
|
238
238
|
let t = !1;
|
|
239
239
|
return ie(e, (n) => {
|
|
240
|
-
if (
|
|
240
|
+
if (nt(n)) {
|
|
241
241
|
t = !0;
|
|
242
242
|
return;
|
|
243
243
|
}
|
|
244
244
|
}), t;
|
|
245
245
|
}
|
|
246
|
-
function
|
|
246
|
+
function Zt(e, t) {
|
|
247
247
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ie(e, (n, o) => {
|
|
248
|
-
|
|
248
|
+
nt(n) && o(n[t] ?? void 0);
|
|
249
249
|
}), e);
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function _t(e, t) {
|
|
252
252
|
var n, o;
|
|
253
|
-
return (n = e.component) != null && n.options &&
|
|
253
|
+
return (n = e.component) != null && n.options && Xt((o = e.component) == null ? void 0 : o.options) && (t || console.warn("[Builder.io] In order to use localized fields in Builder, you must pass a locale prop to the BuilderComponent or to options object while fetching the content to resolve localized fields. Learn more: https://www.builder.io/c/docs/localization-inline#targeting-and-inline-localization"), e.component.options = Zt(e.component.options, t ?? "Default")), e;
|
|
254
254
|
}
|
|
255
255
|
function fe(e) {
|
|
256
256
|
if (e === null || typeof e != "object")
|
|
@@ -264,9 +264,9 @@ function fe(e) {
|
|
|
264
264
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = fe(e[n]));
|
|
265
265
|
return t;
|
|
266
266
|
}
|
|
267
|
-
const
|
|
268
|
-
if (
|
|
269
|
-
const t =
|
|
267
|
+
const en = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), tn = (e) => {
|
|
268
|
+
if (en) {
|
|
269
|
+
const t = Te(e);
|
|
270
270
|
return {
|
|
271
271
|
...t,
|
|
272
272
|
properties: {
|
|
@@ -277,7 +277,7 @@ const Zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), _t = (e) =
|
|
|
277
277
|
}
|
|
278
278
|
};
|
|
279
279
|
} else {
|
|
280
|
-
const t = fe(
|
|
280
|
+
const t = fe(Yt(e, "children", "meta"));
|
|
281
281
|
return {
|
|
282
282
|
...t,
|
|
283
283
|
properties: {
|
|
@@ -290,7 +290,7 @@ const Zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), _t = (e) =
|
|
|
290
290
|
meta: e.meta
|
|
291
291
|
};
|
|
292
292
|
}
|
|
293
|
-
},
|
|
293
|
+
}, nn = ({
|
|
294
294
|
block: e,
|
|
295
295
|
context: t,
|
|
296
296
|
localState: n,
|
|
@@ -299,7 +299,7 @@ const Zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), _t = (e) =
|
|
|
299
299
|
}) => {
|
|
300
300
|
if (!e.bindings)
|
|
301
301
|
return e;
|
|
302
|
-
const i =
|
|
302
|
+
const i = tn(e);
|
|
303
303
|
for (const s in e.bindings) {
|
|
304
304
|
const l = e.bindings[s], a = _({
|
|
305
305
|
code: l,
|
|
@@ -308,11 +308,11 @@ const Zt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), _t = (e) =
|
|
|
308
308
|
rootSetState: r,
|
|
309
309
|
context: t
|
|
310
310
|
});
|
|
311
|
-
|
|
311
|
+
Ye(i, s, a);
|
|
312
312
|
}
|
|
313
313
|
return i;
|
|
314
314
|
};
|
|
315
|
-
function
|
|
315
|
+
function on({
|
|
316
316
|
block: e,
|
|
317
317
|
context: t,
|
|
318
318
|
localState: n,
|
|
@@ -320,33 +320,33 @@ function tn({
|
|
|
320
320
|
rootSetState: r
|
|
321
321
|
}) {
|
|
322
322
|
let i = e;
|
|
323
|
-
return i =
|
|
323
|
+
return i = nn({
|
|
324
324
|
block: i,
|
|
325
325
|
localState: n,
|
|
326
326
|
rootState: o,
|
|
327
327
|
rootSetState: r,
|
|
328
328
|
context: t
|
|
329
|
-
}), i =
|
|
329
|
+
}), i = _t(i, o.locale), i;
|
|
330
330
|
}
|
|
331
|
-
function
|
|
331
|
+
function $e(e) {
|
|
332
332
|
const t = e || (E() ? window.location.search : void 0);
|
|
333
|
-
return t ?
|
|
333
|
+
return t ? At(t).indexOf("builder.preview=") !== -1 : !1;
|
|
334
334
|
}
|
|
335
|
-
const
|
|
335
|
+
const rn = (e) => ({
|
|
336
336
|
type: "builder.registerComponent",
|
|
337
337
|
data: se(e)
|
|
338
|
-
}),
|
|
338
|
+
}), sn = (e) => {
|
|
339
339
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
340
340
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
341
341
|
};
|
|
342
342
|
function se(e) {
|
|
343
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
343
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? sn(n) : n));
|
|
344
344
|
}
|
|
345
|
-
const
|
|
346
|
-
function
|
|
345
|
+
const Oe = {};
|
|
346
|
+
function Zi(e, t) {
|
|
347
347
|
e === "plugin" && (t = se(t));
|
|
348
|
-
let n =
|
|
349
|
-
if (n || (n =
|
|
348
|
+
let n = Oe[e];
|
|
349
|
+
if (n || (n = Oe[e] = []), n.push(t), E()) {
|
|
350
350
|
const o = {
|
|
351
351
|
type: "builder.register",
|
|
352
352
|
data: {
|
|
@@ -361,7 +361,7 @@ function Qi(e, t) {
|
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
}
|
|
364
|
-
function
|
|
364
|
+
function _i(e) {
|
|
365
365
|
var t;
|
|
366
366
|
if (E()) {
|
|
367
367
|
const n = JSON.parse(JSON.stringify(e));
|
|
@@ -371,50 +371,50 @@ function Yi(e) {
|
|
|
371
371
|
}, "*");
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
|
-
const
|
|
375
|
-
function
|
|
374
|
+
const Ue = {};
|
|
375
|
+
function es(e) {
|
|
376
376
|
if (E()) {
|
|
377
|
-
Object.assign(
|
|
377
|
+
Object.assign(Ue, e);
|
|
378
378
|
const t = {
|
|
379
379
|
type: "builder.settingsChange",
|
|
380
|
-
data:
|
|
380
|
+
data: Ue
|
|
381
381
|
};
|
|
382
382
|
parent.postMessage(t, "*");
|
|
383
383
|
}
|
|
384
384
|
}
|
|
385
|
-
const
|
|
385
|
+
const Fe = "builder.", an = "options.", ot = (e) => {
|
|
386
386
|
if (!e)
|
|
387
387
|
return {};
|
|
388
|
-
const t =
|
|
388
|
+
const t = Xe(e), n = {};
|
|
389
389
|
return Object.keys(t).forEach((o) => {
|
|
390
|
-
if (o.startsWith(
|
|
391
|
-
const r = o.replace(
|
|
390
|
+
if (o.startsWith(Fe)) {
|
|
391
|
+
const r = o.replace(Fe, "").replace(an, "");
|
|
392
392
|
n[r] = t[o];
|
|
393
393
|
}
|
|
394
394
|
}), n;
|
|
395
|
-
},
|
|
395
|
+
}, ln = () => {
|
|
396
396
|
if (!E())
|
|
397
397
|
return {};
|
|
398
398
|
const e = new URLSearchParams(window.location.search);
|
|
399
|
-
return
|
|
400
|
-
},
|
|
401
|
-
function
|
|
399
|
+
return ot(e);
|
|
400
|
+
}, cn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
401
|
+
function rt(e, t) {
|
|
402
402
|
let n;
|
|
403
403
|
try {
|
|
404
404
|
n = new URL(t.origin);
|
|
405
405
|
} catch {
|
|
406
406
|
return !1;
|
|
407
407
|
}
|
|
408
|
-
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e ||
|
|
408
|
+
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || cn).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
|
|
409
409
|
}
|
|
410
|
-
let
|
|
411
|
-
const
|
|
410
|
+
let Le = !1;
|
|
411
|
+
const it = (e) => {
|
|
412
412
|
var t, n;
|
|
413
|
-
|
|
413
|
+
Le || (Le = !0, E() && ((t = window.parent) == null || t.postMessage({
|
|
414
414
|
type: "builder.sdkInfo",
|
|
415
415
|
data: {
|
|
416
416
|
target: R,
|
|
417
|
-
version:
|
|
417
|
+
version: Bt,
|
|
418
418
|
supportsPatchUpdates: !1,
|
|
419
419
|
// Supports builder-model="..." attribute which is needed to
|
|
420
420
|
// scope our '+ add block' button styling
|
|
@@ -432,7 +432,7 @@ const tt = (e) => {
|
|
|
432
432
|
}
|
|
433
433
|
}, "*"), window.addEventListener("message", (o) => {
|
|
434
434
|
var i, s;
|
|
435
|
-
if (!
|
|
435
|
+
if (!rt(e.trustedHosts, o))
|
|
436
436
|
return;
|
|
437
437
|
const {
|
|
438
438
|
data: r
|
|
@@ -473,12 +473,12 @@ const tt = (e) => {
|
|
|
473
473
|
}
|
|
474
474
|
}
|
|
475
475
|
})));
|
|
476
|
-
},
|
|
476
|
+
}, st = ({
|
|
477
477
|
model: e,
|
|
478
478
|
trustedHosts: t,
|
|
479
479
|
callbacks: n
|
|
480
480
|
}) => (o) => {
|
|
481
|
-
if (!
|
|
481
|
+
if (!rt(t, o))
|
|
482
482
|
return;
|
|
483
483
|
const {
|
|
484
484
|
data: r
|
|
@@ -504,7 +504,7 @@ const tt = (e) => {
|
|
|
504
504
|
break;
|
|
505
505
|
}
|
|
506
506
|
}
|
|
507
|
-
},
|
|
507
|
+
}, ts = ({
|
|
508
508
|
model: e,
|
|
509
509
|
apiKey: t,
|
|
510
510
|
callback: n,
|
|
@@ -513,11 +513,11 @@ const tt = (e) => {
|
|
|
513
513
|
if (!E)
|
|
514
514
|
return L.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
515
515
|
};
|
|
516
|
-
|
|
516
|
+
it({
|
|
517
517
|
modelName: e,
|
|
518
518
|
apiKey: t
|
|
519
519
|
});
|
|
520
|
-
const r =
|
|
520
|
+
const r = st({
|
|
521
521
|
callbacks: {
|
|
522
522
|
contentUpdate: n,
|
|
523
523
|
animation: () => {
|
|
@@ -533,24 +533,24 @@ const tt = (e) => {
|
|
|
533
533
|
return window.addEventListener("message", r), () => {
|
|
534
534
|
window.removeEventListener("message", r);
|
|
535
535
|
};
|
|
536
|
-
},
|
|
536
|
+
}, dn = "builder.tests", Re = (e) => `${dn}.${e}`, un = ({
|
|
537
537
|
contentId: e
|
|
538
|
-
}) =>
|
|
539
|
-
name:
|
|
538
|
+
}) => Vt({
|
|
539
|
+
name: Re(e),
|
|
540
540
|
canTrack: !0
|
|
541
|
-
}),
|
|
541
|
+
}), pn = ({
|
|
542
542
|
contentId: e
|
|
543
|
-
}) =>
|
|
544
|
-
name:
|
|
543
|
+
}) => we({
|
|
544
|
+
name: Re(e),
|
|
545
545
|
canTrack: !0
|
|
546
|
-
}),
|
|
546
|
+
}), mn = ({
|
|
547
547
|
contentId: e,
|
|
548
548
|
value: t
|
|
549
|
-
}) =>
|
|
550
|
-
name:
|
|
549
|
+
}) => Ze({
|
|
550
|
+
name: Re(e),
|
|
551
551
|
value: t,
|
|
552
552
|
canTrack: !0
|
|
553
|
-
}),
|
|
553
|
+
}), at = (e) => re(e.id) && re(e.variations) && Object.keys(e.variations).length > 0, hn = ({
|
|
554
554
|
id: e,
|
|
555
555
|
variations: t
|
|
556
556
|
}) => {
|
|
@@ -563,15 +563,15 @@ const tt = (e) => {
|
|
|
563
563
|
return i;
|
|
564
564
|
}
|
|
565
565
|
return e;
|
|
566
|
-
},
|
|
567
|
-
const t =
|
|
568
|
-
return
|
|
566
|
+
}, lt = (e) => {
|
|
567
|
+
const t = hn(e);
|
|
568
|
+
return mn({
|
|
569
569
|
contentId: e.id,
|
|
570
570
|
value: t
|
|
571
571
|
}).catch((n) => {
|
|
572
572
|
L.error("could not store A/B test variation: ", n);
|
|
573
573
|
}), t;
|
|
574
|
-
},
|
|
574
|
+
}, ct = ({
|
|
575
575
|
item: e,
|
|
576
576
|
testGroupId: t
|
|
577
577
|
}) => {
|
|
@@ -585,7 +585,7 @@ const tt = (e) => {
|
|
|
585
585
|
testVariationId: n.id,
|
|
586
586
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
587
587
|
};
|
|
588
|
-
},
|
|
588
|
+
}, fn = ({
|
|
589
589
|
item: e,
|
|
590
590
|
canTrack: t
|
|
591
591
|
}) => {
|
|
@@ -593,14 +593,14 @@ const tt = (e) => {
|
|
|
593
593
|
return e;
|
|
594
594
|
if (!e)
|
|
595
595
|
return;
|
|
596
|
-
if (!
|
|
596
|
+
if (!at(e))
|
|
597
597
|
return e;
|
|
598
|
-
const n =
|
|
598
|
+
const n = pn({
|
|
599
599
|
contentId: e.id
|
|
600
|
-
}) ||
|
|
600
|
+
}) || lt({
|
|
601
601
|
variations: e.variations,
|
|
602
602
|
id: e.id
|
|
603
|
-
}), o =
|
|
603
|
+
}), o = ct({
|
|
604
604
|
item: e,
|
|
605
605
|
testGroupId: n
|
|
606
606
|
});
|
|
@@ -608,18 +608,18 @@ const tt = (e) => {
|
|
|
608
608
|
...e,
|
|
609
609
|
...o
|
|
610
610
|
};
|
|
611
|
-
},
|
|
611
|
+
}, bn = async ({
|
|
612
612
|
item: e,
|
|
613
613
|
canTrack: t
|
|
614
614
|
}) => {
|
|
615
|
-
if (!t || !
|
|
615
|
+
if (!t || !at(e))
|
|
616
616
|
return e;
|
|
617
|
-
const o = await
|
|
617
|
+
const o = await un({
|
|
618
618
|
contentId: e.id
|
|
619
|
-
}) ||
|
|
619
|
+
}) || lt({
|
|
620
620
|
variations: e.variations,
|
|
621
621
|
id: e.id
|
|
622
|
-
}), r =
|
|
622
|
+
}), r = ct({
|
|
623
623
|
item: e,
|
|
624
624
|
testGroupId: o
|
|
625
625
|
});
|
|
@@ -628,8 +628,8 @@ const tt = (e) => {
|
|
|
628
628
|
...r
|
|
629
629
|
};
|
|
630
630
|
};
|
|
631
|
-
const
|
|
632
|
-
function
|
|
631
|
+
const He = "builder.userAttributes";
|
|
632
|
+
function Me() {
|
|
633
633
|
let e = !0;
|
|
634
634
|
const t = /* @__PURE__ */ new Set();
|
|
635
635
|
return {
|
|
@@ -640,15 +640,15 @@ function Fe() {
|
|
|
640
640
|
...this.getUserAttributes(),
|
|
641
641
|
...n
|
|
642
642
|
};
|
|
643
|
-
|
|
644
|
-
name:
|
|
643
|
+
Ze({
|
|
644
|
+
name: He,
|
|
645
645
|
value: JSON.stringify(o),
|
|
646
646
|
canTrack: e
|
|
647
647
|
}), t.forEach((r) => r(o));
|
|
648
648
|
},
|
|
649
649
|
getUserAttributes() {
|
|
650
|
-
return E() ? JSON.parse(
|
|
651
|
-
name:
|
|
650
|
+
return E() ? JSON.parse(we({
|
|
651
|
+
name: He,
|
|
652
652
|
canTrack: e
|
|
653
653
|
}) || "{}") : {};
|
|
654
654
|
},
|
|
@@ -665,24 +665,24 @@ function Fe() {
|
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
667
|
let be;
|
|
668
|
-
E() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ =
|
|
669
|
-
const ae = be,
|
|
668
|
+
E() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Me()), be = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : be = Me();
|
|
669
|
+
const ae = be, ns = (e) => {
|
|
670
670
|
ae.setUserAttributes(e);
|
|
671
671
|
}, K = (e) => {
|
|
672
672
|
const t = re(e) ? e : !0;
|
|
673
673
|
return ae.setCanTrack(t), t;
|
|
674
674
|
};
|
|
675
|
-
function
|
|
675
|
+
function gn() {
|
|
676
676
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
677
677
|
}
|
|
678
|
-
function
|
|
679
|
-
const e =
|
|
678
|
+
function yn() {
|
|
679
|
+
const e = gn().fetch;
|
|
680
680
|
if (typeof e > "u")
|
|
681
681
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
682
682
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
683
683
|
return e;
|
|
684
684
|
}
|
|
685
|
-
const
|
|
685
|
+
const vn = yn();
|
|
686
686
|
function ge(e, t = null, n = ".") {
|
|
687
687
|
return Object.keys(e).reduce((o, r) => {
|
|
688
688
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
@@ -695,14 +695,14 @@ function ge(e, t = null, n = ".") {
|
|
|
695
695
|
};
|
|
696
696
|
}, {});
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function dt(e, t, n = {}) {
|
|
699
699
|
for (const o in e) {
|
|
700
700
|
const r = e[o], i = t ? t + "." + o : o;
|
|
701
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ?
|
|
701
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? dt(r, i, n) : n[i] = r;
|
|
702
702
|
}
|
|
703
703
|
return n;
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function Sn(e) {
|
|
706
706
|
const t = {};
|
|
707
707
|
for (const n in e) {
|
|
708
708
|
const o = n.split(".");
|
|
@@ -714,7 +714,7 @@ function yn(e) {
|
|
|
714
714
|
}
|
|
715
715
|
return t;
|
|
716
716
|
}
|
|
717
|
-
const
|
|
717
|
+
const kn = "v3", ze = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ee = (e) => {
|
|
718
718
|
const {
|
|
719
719
|
limit: t = 30,
|
|
720
720
|
userAttributes: n,
|
|
@@ -723,7 +723,7 @@ const vn = "v3", Le = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ie = (
|
|
|
723
723
|
apiKey: i,
|
|
724
724
|
enrich: s,
|
|
725
725
|
locale: l,
|
|
726
|
-
apiVersion: a =
|
|
726
|
+
apiVersion: a = kn,
|
|
727
727
|
fields: u,
|
|
728
728
|
omit: p,
|
|
729
729
|
offset: f,
|
|
@@ -737,81 +737,81 @@ const vn = "v3", Le = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ie = (
|
|
|
737
737
|
throw new Error("Missing API key");
|
|
738
738
|
if (!["v3"].includes(a))
|
|
739
739
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
740
|
-
const
|
|
741
|
-
T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(
|
|
740
|
+
const O = t !== 1, B = P || "https://cdn.builder.io", T = new URL(`${B}/api/${a}/content/${r}`);
|
|
741
|
+
T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(O)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l);
|
|
742
742
|
let W = n || {};
|
|
743
|
-
if (s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), c &&
|
|
743
|
+
if (s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", p ?? "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && T.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && T.searchParams.set("includeUnpublished", String(g)), c && ze(c) && T.searchParams.set("cacheSeconds", String(c)), m && ze(m) && T.searchParams.set("staleCacheSeconds", String(m)), b) {
|
|
744
744
|
const D = ge({
|
|
745
745
|
sort: b
|
|
746
746
|
});
|
|
747
747
|
for (const H in D)
|
|
748
748
|
T.searchParams.set(H, JSON.stringify(D[H]));
|
|
749
749
|
}
|
|
750
|
-
const
|
|
751
|
-
...
|
|
752
|
-
...
|
|
750
|
+
const J = {
|
|
751
|
+
...ln(),
|
|
752
|
+
...Xe(e.options || {})
|
|
753
753
|
};
|
|
754
754
|
W = {
|
|
755
755
|
...W,
|
|
756
|
-
...
|
|
756
|
+
...Tn(J)
|
|
757
757
|
};
|
|
758
|
-
const
|
|
759
|
-
for (const D in
|
|
760
|
-
T.searchParams.set(D, String(
|
|
758
|
+
const G = ge(J);
|
|
759
|
+
for (const D in G)
|
|
760
|
+
T.searchParams.set(D, String(G[D]));
|
|
761
761
|
if (Object.keys(W).length > 0 && T.searchParams.set("userAttributes", JSON.stringify(W)), o) {
|
|
762
|
-
const D =
|
|
762
|
+
const D = dt({
|
|
763
763
|
query: o
|
|
764
764
|
});
|
|
765
765
|
for (const H in D)
|
|
766
766
|
T.searchParams.set(H, JSON.stringify(D[H]));
|
|
767
767
|
}
|
|
768
768
|
return T;
|
|
769
|
-
},
|
|
769
|
+
}, Cn = (e) => {
|
|
770
770
|
const t = {};
|
|
771
771
|
for (const n in e)
|
|
772
772
|
n.startsWith("userAttributes.") && (t[n] = e[n], delete e[n]);
|
|
773
773
|
return t;
|
|
774
|
-
},
|
|
774
|
+
}, Tn = (e) => {
|
|
775
775
|
if (E() && e.preview === "BUILDER_STUDIO") {
|
|
776
776
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
777
|
-
const t =
|
|
777
|
+
const t = Cn(e), {
|
|
778
778
|
userAttributes: n
|
|
779
|
-
} =
|
|
779
|
+
} = Sn(t);
|
|
780
780
|
return n;
|
|
781
781
|
}
|
|
782
782
|
return {};
|
|
783
|
-
},
|
|
784
|
-
async function
|
|
783
|
+
}, wn = (e) => "results" in e;
|
|
784
|
+
async function Pe(e) {
|
|
785
785
|
var o;
|
|
786
786
|
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
787
787
|
t && (e.locale = t, e.userAttributes = {
|
|
788
788
|
locale: t,
|
|
789
789
|
...e.userAttributes
|
|
790
790
|
});
|
|
791
|
-
const n = await
|
|
791
|
+
const n = await Rn({
|
|
792
792
|
...e,
|
|
793
793
|
limit: 1
|
|
794
794
|
});
|
|
795
795
|
return n && n[0] || null;
|
|
796
796
|
}
|
|
797
|
-
const
|
|
797
|
+
const In = async (e) => {
|
|
798
798
|
var s;
|
|
799
|
-
const t =
|
|
799
|
+
const t = Ee(e), n = e.fetch ?? vn, o = {
|
|
800
800
|
...e.fetchOptions,
|
|
801
801
|
headers: {
|
|
802
802
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
803
|
-
...
|
|
803
|
+
...Nt()
|
|
804
804
|
}
|
|
805
805
|
};
|
|
806
806
|
return await (await n(t.href, o)).json();
|
|
807
|
-
},
|
|
807
|
+
}, $n = async (e, t, n = Ee(e)) => {
|
|
808
808
|
const o = K(e.canTrack);
|
|
809
809
|
if (n.search.includes("preview="), !o || !(E() || R === "reactNative"))
|
|
810
810
|
return t.results;
|
|
811
811
|
try {
|
|
812
812
|
const r = [];
|
|
813
813
|
for (const i of t.results)
|
|
814
|
-
r.push(await
|
|
814
|
+
r.push(await bn({
|
|
815
815
|
item: i,
|
|
816
816
|
canTrack: o
|
|
817
817
|
}));
|
|
@@ -821,17 +821,17 @@ const Tn = async (e) => {
|
|
|
821
821
|
}
|
|
822
822
|
return t.results;
|
|
823
823
|
};
|
|
824
|
-
async function
|
|
825
|
-
const t =
|
|
826
|
-
if (!
|
|
824
|
+
async function Rn(e) {
|
|
825
|
+
const t = Ee(e), n = await In(e);
|
|
826
|
+
if (!wn(n))
|
|
827
827
|
throw L.error("Error fetching data. ", {
|
|
828
828
|
url: t,
|
|
829
829
|
content: n,
|
|
830
830
|
options: e
|
|
831
831
|
}), n;
|
|
832
|
-
return
|
|
832
|
+
return $n(e, n);
|
|
833
833
|
}
|
|
834
|
-
const
|
|
834
|
+
const os = async (e) => {
|
|
835
835
|
var o, r, i;
|
|
836
836
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
837
837
|
...e,
|
|
@@ -843,15 +843,15 @@ const es = async (e) => {
|
|
|
843
843
|
urlPath: t
|
|
844
844
|
} : {}
|
|
845
845
|
},
|
|
846
|
-
options:
|
|
846
|
+
options: ot(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
847
847
|
};
|
|
848
848
|
return {
|
|
849
849
|
apiKey: n.apiKey,
|
|
850
850
|
model: n.model,
|
|
851
|
-
content: await
|
|
851
|
+
content: await Pe(n)
|
|
852
852
|
};
|
|
853
|
-
},
|
|
854
|
-
function
|
|
853
|
+
}, Ae = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
854
|
+
function En(e, t, n = {}) {
|
|
855
855
|
let o, r, i, s = null, l = 0;
|
|
856
856
|
const a = function() {
|
|
857
857
|
l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
@@ -873,55 +873,55 @@ function X(e, ...t) {
|
|
|
873
873
|
}
|
|
874
874
|
return n;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function Pn(e) {
|
|
877
877
|
for (const t of e)
|
|
878
878
|
switch (t.trigger) {
|
|
879
879
|
case "pageLoad":
|
|
880
|
-
|
|
880
|
+
mt(t);
|
|
881
881
|
break;
|
|
882
882
|
case "scrollInView":
|
|
883
|
-
|
|
883
|
+
Bn(t);
|
|
884
884
|
break;
|
|
885
885
|
}
|
|
886
886
|
}
|
|
887
|
-
function
|
|
887
|
+
function ut(e) {
|
|
888
888
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
889
889
|
}
|
|
890
|
-
function
|
|
891
|
-
const n =
|
|
890
|
+
function pt(e, t) {
|
|
891
|
+
const n = An(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
892
892
|
for (const l of s)
|
|
893
893
|
for (const a of n)
|
|
894
894
|
a in l || (l[a] = o[a]);
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function An(e) {
|
|
897
897
|
const t = [];
|
|
898
898
|
for (const n of e.steps)
|
|
899
899
|
for (const o in n.styles)
|
|
900
900
|
t.indexOf(o) === -1 && t.push(o);
|
|
901
901
|
return t;
|
|
902
902
|
}
|
|
903
|
-
function
|
|
903
|
+
function mt(e) {
|
|
904
904
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
905
905
|
if (!t.length) {
|
|
906
|
-
|
|
906
|
+
ut(e.elementId || e.id || "");
|
|
907
907
|
return;
|
|
908
908
|
}
|
|
909
909
|
Array.from(t).forEach((n) => {
|
|
910
|
-
|
|
911
|
-
n.style.transition = `all ${e.duration}s ${
|
|
910
|
+
pt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", X(n.style, e.steps[0].styles), setTimeout(() => {
|
|
911
|
+
n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), X(n.style, e.steps[1].styles), setTimeout(() => {
|
|
912
912
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
913
913
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
914
914
|
});
|
|
915
915
|
});
|
|
916
916
|
}
|
|
917
|
-
function
|
|
917
|
+
function Bn(e) {
|
|
918
918
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
919
919
|
if (!t.length) {
|
|
920
|
-
|
|
920
|
+
ut(e.elementId || e.id || "");
|
|
921
921
|
return;
|
|
922
922
|
}
|
|
923
923
|
Array.from(t).forEach((n) => {
|
|
924
|
-
|
|
924
|
+
pt(e, n);
|
|
925
925
|
let o = !1, r = !1;
|
|
926
926
|
function i() {
|
|
927
927
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
@@ -930,7 +930,7 @@ function Pn(e) {
|
|
|
930
930
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
931
931
|
})) : e.repeat && o && !r && !l(n) && (o = !1, X(n.style, e.steps[0].styles));
|
|
932
932
|
}
|
|
933
|
-
const s =
|
|
933
|
+
const s = En(i, 200, {
|
|
934
934
|
leading: !1
|
|
935
935
|
});
|
|
936
936
|
function l(p) {
|
|
@@ -942,49 +942,49 @@ function Pn(e) {
|
|
|
942
942
|
X(n.style, a);
|
|
943
943
|
}
|
|
944
944
|
u(), setTimeout(() => {
|
|
945
|
-
n.style.transition = `all ${e.duration}s ${
|
|
945
|
+
n.style.transition = `all ${e.duration}s ${Ae(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
946
946
|
}), document.addEventListener("scroll", s, {
|
|
947
947
|
capture: !0,
|
|
948
948
|
passive: !0
|
|
949
949
|
}), i();
|
|
950
950
|
});
|
|
951
951
|
}
|
|
952
|
-
const
|
|
952
|
+
const ht = (e) => Object.entries(e).map(([n, o]) => {
|
|
953
953
|
if (typeof o == "string")
|
|
954
|
-
return `${
|
|
955
|
-
}).filter(re),
|
|
956
|
-
`),
|
|
954
|
+
return `${Ae(n)}: ${o};`;
|
|
955
|
+
}).filter(re), Vn = (e) => ht(e).join(`
|
|
956
|
+
`), rs = ({
|
|
957
957
|
mediaQuery: e,
|
|
958
958
|
className: t,
|
|
959
959
|
styles: n
|
|
960
960
|
}) => {
|
|
961
961
|
const o = `.${t} {
|
|
962
|
-
${
|
|
962
|
+
${Vn(n)}
|
|
963
963
|
}`;
|
|
964
964
|
return e ? `${e} {
|
|
965
965
|
${o}
|
|
966
966
|
}` : o;
|
|
967
967
|
};
|
|
968
|
-
function
|
|
968
|
+
function Nn({
|
|
969
969
|
style: e
|
|
970
970
|
}) {
|
|
971
971
|
return e;
|
|
972
972
|
}
|
|
973
|
-
const
|
|
973
|
+
const is = ({
|
|
974
974
|
block: e,
|
|
975
975
|
context: t
|
|
976
|
-
}) =>
|
|
976
|
+
}) => ft(Nn({
|
|
977
977
|
style: e.style || {},
|
|
978
978
|
context: t,
|
|
979
979
|
block: e
|
|
980
980
|
}));
|
|
981
|
-
function
|
|
981
|
+
function ft(e) {
|
|
982
982
|
switch (R) {
|
|
983
983
|
case "svelte":
|
|
984
984
|
case "vue":
|
|
985
985
|
case "solid":
|
|
986
986
|
case "angular":
|
|
987
|
-
return
|
|
987
|
+
return ht(e).join(" ");
|
|
988
988
|
case "qwik":
|
|
989
989
|
case "reactNative":
|
|
990
990
|
case "react":
|
|
@@ -992,7 +992,7 @@ function ut(e) {
|
|
|
992
992
|
return e;
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
const
|
|
995
|
+
const bt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, Wn = ({
|
|
996
996
|
block: e,
|
|
997
997
|
registeredComponents: t,
|
|
998
998
|
model: n
|
|
@@ -1002,14 +1002,14 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1002
1002
|
if (!o)
|
|
1003
1003
|
return null;
|
|
1004
1004
|
const r = t[o];
|
|
1005
|
-
if (!r ||
|
|
1005
|
+
if (!r || bt(r, n)) {
|
|
1006
1006
|
console.warn(`
|
|
1007
1007
|
Could not find a registered component named "${o}".
|
|
1008
1008
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1009
1009
|
return;
|
|
1010
1010
|
} else
|
|
1011
1011
|
return r;
|
|
1012
|
-
},
|
|
1012
|
+
}, Dn = ({
|
|
1013
1013
|
block: e,
|
|
1014
1014
|
context: t
|
|
1015
1015
|
}) => {
|
|
@@ -1042,59 +1042,59 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1042
1042
|
},
|
|
1043
1043
|
block: o
|
|
1044
1044
|
}));
|
|
1045
|
-
},
|
|
1045
|
+
}, xn = (e, t) => {
|
|
1046
1046
|
var n;
|
|
1047
1047
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1048
1048
|
builderLinkComponent: t
|
|
1049
1049
|
} : {};
|
|
1050
|
-
},
|
|
1050
|
+
}, On = (e, t, n) => {
|
|
1051
1051
|
var o;
|
|
1052
1052
|
return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
|
|
1053
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !
|
|
1053
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !bt(s, n)))
|
|
1054
1054
|
} : {};
|
|
1055
|
-
},
|
|
1055
|
+
}, Un = (e, t) => {
|
|
1056
1056
|
var n;
|
|
1057
1057
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1058
1058
|
builderBlock: t
|
|
1059
1059
|
} : {};
|
|
1060
|
-
},
|
|
1060
|
+
}, Fn = (e, t) => {
|
|
1061
1061
|
var n;
|
|
1062
1062
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1063
1063
|
builderContext: t
|
|
1064
1064
|
} : {};
|
|
1065
|
-
},
|
|
1065
|
+
}, Ln = (e) => e.toString(), Hn = () => Promise.resolve().then(() => to).then((e) => e.default).catch((e) => {
|
|
1066
1066
|
throw console.error(
|
|
1067
1067
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1068
1068
|
e
|
|
1069
1069
|
), e;
|
|
1070
|
-
}),
|
|
1070
|
+
}), Mn = () => import("./block-wrapper-8WuMQvKC.js").then((e) => e.default).catch((e) => {
|
|
1071
1071
|
throw console.error(
|
|
1072
1072
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1073
1073
|
e
|
|
1074
1074
|
), e;
|
|
1075
|
-
}),
|
|
1075
|
+
}), zn = () => import("./component-ref-Why7x4bF.js").then((e) => e.default).catch((e) => {
|
|
1076
1076
|
throw console.error(
|
|
1077
1077
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1078
1078
|
e
|
|
1079
1079
|
), e;
|
|
1080
|
-
}),
|
|
1080
|
+
}), jn = () => import("./repeated-block-uTpfjUj-.js").then((e) => e.default).catch((e) => {
|
|
1081
1081
|
throw console.error(
|
|
1082
1082
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1083
1083
|
e
|
|
1084
1084
|
), e;
|
|
1085
|
-
}), qn = () => import("./style-wrapper-
|
|
1085
|
+
}), qn = () => import("./style-wrapper-HY1zLGB7.js").then((e) => e.default).catch((e) => {
|
|
1086
1086
|
throw console.error(
|
|
1087
1087
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1088
1088
|
e
|
|
1089
1089
|
), e;
|
|
1090
|
-
}),
|
|
1090
|
+
}), Kn = y({
|
|
1091
1091
|
name: "block",
|
|
1092
1092
|
components: {
|
|
1093
1093
|
StyleWrapper: Q(qn),
|
|
1094
|
-
RepeatedBlock: Q(
|
|
1095
|
-
ComponentRef: Q(
|
|
1096
|
-
BlockWrapper: Q(
|
|
1097
|
-
DynamicDiv: Q(
|
|
1094
|
+
RepeatedBlock: Q(jn),
|
|
1095
|
+
ComponentRef: Q(zn),
|
|
1096
|
+
BlockWrapper: Q(Mn),
|
|
1097
|
+
DynamicDiv: Q(Hn)
|
|
1098
1098
|
},
|
|
1099
1099
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1100
1100
|
data() {
|
|
@@ -1103,12 +1103,12 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1103
1103
|
value: null,
|
|
1104
1104
|
update: !1
|
|
1105
1105
|
},
|
|
1106
|
-
generateKey:
|
|
1106
|
+
generateKey: Ln
|
|
1107
1107
|
};
|
|
1108
1108
|
},
|
|
1109
1109
|
mounted() {
|
|
1110
1110
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1111
|
-
t && e &&
|
|
1111
|
+
t && e && Pn(
|
|
1112
1112
|
t.map((n) => ({
|
|
1113
1113
|
...n,
|
|
1114
1114
|
elementId: e
|
|
@@ -1119,14 +1119,14 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1119
1119
|
},
|
|
1120
1120
|
computed: {
|
|
1121
1121
|
repeatItem() {
|
|
1122
|
-
return
|
|
1122
|
+
return Dn({
|
|
1123
1123
|
block: this.block,
|
|
1124
1124
|
context: this.context
|
|
1125
1125
|
});
|
|
1126
1126
|
},
|
|
1127
1127
|
processedBlock() {
|
|
1128
1128
|
var t;
|
|
1129
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1129
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : on({
|
|
1130
1130
|
block: this.block,
|
|
1131
1131
|
localState: this.context.localState,
|
|
1132
1132
|
rootState: this.context.rootState,
|
|
@@ -1135,7 +1135,7 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1135
1135
|
});
|
|
1136
1136
|
},
|
|
1137
1137
|
blockComponent() {
|
|
1138
|
-
return
|
|
1138
|
+
return Wn({
|
|
1139
1139
|
block: this.processedBlock,
|
|
1140
1140
|
registeredComponents: this.registeredComponents,
|
|
1141
1141
|
model: this.context.model
|
|
@@ -1162,11 +1162,11 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1162
1162
|
blockChildren: this.processedBlock.children ?? [],
|
|
1163
1163
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1164
1164
|
componentOptions: {
|
|
1165
|
-
...
|
|
1166
|
-
...
|
|
1167
|
-
...
|
|
1168
|
-
...
|
|
1169
|
-
...
|
|
1165
|
+
...Gt(this.processedBlock, this.context),
|
|
1166
|
+
...Un(this.blockComponent, this.processedBlock),
|
|
1167
|
+
...Fn(this.blockComponent, this.context),
|
|
1168
|
+
...xn(this.blockComponent, this.linkComponent),
|
|
1169
|
+
...On(
|
|
1170
1170
|
this.blockComponent,
|
|
1171
1171
|
this.registeredComponents,
|
|
1172
1172
|
this.context.model
|
|
@@ -1182,7 +1182,7 @@ const pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1182
1182
|
}
|
|
1183
1183
|
}
|
|
1184
1184
|
});
|
|
1185
|
-
function
|
|
1185
|
+
function Jn(e, t, n, o, r, i) {
|
|
1186
1186
|
var f;
|
|
1187
1187
|
const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
|
|
1188
1188
|
return e.canShowBlock ? (d(), h(w, { key: 0 }, [
|
|
@@ -1248,10 +1248,10 @@ function zn(e, t, n, o, r, i) {
|
|
|
1248
1248
|
], 64))
|
|
1249
1249
|
], 64)) : C("", !0);
|
|
1250
1250
|
}
|
|
1251
|
-
const
|
|
1251
|
+
const gt = /* @__PURE__ */ v(Kn, [["render", Jn]]), ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1252
1252
|
__proto__: null,
|
|
1253
|
-
default:
|
|
1254
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1253
|
+
default: gt
|
|
1254
|
+
}, Symbol.toStringTag, { value: "Module" })), Gn = y({
|
|
1255
1255
|
name: "builder-blocks-wrapper",
|
|
1256
1256
|
props: [
|
|
1257
1257
|
"blocks",
|
|
@@ -1321,7 +1321,7 @@ const mt = /* @__PURE__ */ v(jn, [["render", zn]]), os = /* @__PURE__ */ Object.
|
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
1323
|
});
|
|
1324
|
-
function
|
|
1324
|
+
function Qn(e, t, n, o, r, i) {
|
|
1325
1325
|
return d(), S(Y(e.BlocksWrapper), I({
|
|
1326
1326
|
ref: "blocksWrapperRef",
|
|
1327
1327
|
class: e.className + " component-5vz8uirn7sc",
|
|
@@ -1338,9 +1338,9 @@ function Gn(e, t, n, o, r, i) {
|
|
|
1338
1338
|
_: 3
|
|
1339
1339
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1340
1340
|
}
|
|
1341
|
-
const
|
|
1341
|
+
const Yn = /* @__PURE__ */ v(Gn, [["render", Qn], ["__scopeId", "data-v-82fc93d6"]]), Xn = y({
|
|
1342
1342
|
name: "builder-blocks",
|
|
1343
|
-
components: { BlocksWrapper:
|
|
1343
|
+
components: { BlocksWrapper: Yn, Block: gt },
|
|
1344
1344
|
props: [
|
|
1345
1345
|
"blocks",
|
|
1346
1346
|
"parent",
|
|
@@ -1354,10 +1354,10 @@ const Jn = /* @__PURE__ */ v(Kn, [["render", Gn], ["__scopeId", "data-v-82fc93d6
|
|
|
1354
1354
|
],
|
|
1355
1355
|
inject: {
|
|
1356
1356
|
builderContext: he.key,
|
|
1357
|
-
componentsContext:
|
|
1357
|
+
componentsContext: et.key
|
|
1358
1358
|
}
|
|
1359
1359
|
});
|
|
1360
|
-
function
|
|
1360
|
+
function Zn(e, t, n, o, r, i) {
|
|
1361
1361
|
var a, u, p, f;
|
|
1362
1362
|
const s = k("Block"), l = k("BlocksWrapper");
|
|
1363
1363
|
return d(), S(l, {
|
|
@@ -1385,21 +1385,21 @@ function Yn(e, t, n, o, r, i) {
|
|
|
1385
1385
|
_: 3
|
|
1386
1386
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
1387
1387
|
}
|
|
1388
|
-
const j = /* @__PURE__ */ v(
|
|
1388
|
+
const j = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = y({
|
|
1389
1389
|
name: "dynamic-div",
|
|
1390
1390
|
props: []
|
|
1391
1391
|
});
|
|
1392
|
-
function
|
|
1392
|
+
function eo(e, t, n, o, r, i) {
|
|
1393
1393
|
return d(), h("div", null, [
|
|
1394
1394
|
V(e.$slots, "default")
|
|
1395
1395
|
]);
|
|
1396
1396
|
}
|
|
1397
|
-
const ee = /* @__PURE__ */ v(
|
|
1397
|
+
const ee = /* @__PURE__ */ v(_n, [["render", eo]]), to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1398
1398
|
__proto__: null,
|
|
1399
1399
|
default: ee
|
|
1400
1400
|
}, Symbol.toStringTag, { value: "Module" })), ce = y({
|
|
1401
1401
|
render() {
|
|
1402
|
-
return
|
|
1402
|
+
return Qe("style", {
|
|
1403
1403
|
innerHTML: this.styles,
|
|
1404
1404
|
"data-id": this.id,
|
|
1405
1405
|
nonce: this.nonce
|
|
@@ -1407,7 +1407,7 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
|
|
|
1407
1407
|
},
|
|
1408
1408
|
name: "inlined-styles",
|
|
1409
1409
|
props: ["styles", "id", "nonce"]
|
|
1410
|
-
}),
|
|
1410
|
+
}), yt = {
|
|
1411
1411
|
xsmall: {
|
|
1412
1412
|
min: 0,
|
|
1413
1413
|
default: 160,
|
|
@@ -1428,8 +1428,8 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
|
|
|
1428
1428
|
default: 991,
|
|
1429
1429
|
max: 1200
|
|
1430
1430
|
}
|
|
1431
|
-
},
|
|
1432
|
-
const t =
|
|
1431
|
+
}, as = (e, t = yt) => `@media (max-width: ${t[e].max}px)`, no = (e) => {
|
|
1432
|
+
const t = Te(yt);
|
|
1433
1433
|
if (!e)
|
|
1434
1434
|
return t;
|
|
1435
1435
|
const {
|
|
@@ -1466,11 +1466,11 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
|
|
|
1466
1466
|
min: l,
|
|
1467
1467
|
default: l + 1
|
|
1468
1468
|
}, t;
|
|
1469
|
-
},
|
|
1469
|
+
}, oo = (e) => `builder-columns ${e}-breakpoints`, ro = y({
|
|
1470
1470
|
name: "builder-columns",
|
|
1471
1471
|
components: {
|
|
1472
1472
|
InlinedStyles: ce,
|
|
1473
|
-
DynamicRenderer:
|
|
1473
|
+
DynamicRenderer: Ie,
|
|
1474
1474
|
Blocks: j,
|
|
1475
1475
|
DynamicDiv: ee
|
|
1476
1476
|
},
|
|
@@ -1485,7 +1485,7 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
|
|
|
1485
1485
|
"builderComponents"
|
|
1486
1486
|
],
|
|
1487
1487
|
data() {
|
|
1488
|
-
return { TARGET: R, getColumnsClass:
|
|
1488
|
+
return { TARGET: R, getColumnsClass: oo };
|
|
1489
1489
|
},
|
|
1490
1490
|
computed: {
|
|
1491
1491
|
gutterSize() {
|
|
@@ -1564,7 +1564,7 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
|
|
|
1564
1564
|
},
|
|
1565
1565
|
getWidthForBreakpointSize(e) {
|
|
1566
1566
|
var n, o;
|
|
1567
|
-
return
|
|
1567
|
+
return no(
|
|
1568
1568
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1569
1569
|
)[e].max;
|
|
1570
1570
|
},
|
|
@@ -1601,13 +1601,13 @@ const ee = /* @__PURE__ */ v(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.
|
|
|
1601
1601
|
...e.link ? {
|
|
1602
1602
|
href: e.link
|
|
1603
1603
|
} : {},
|
|
1604
|
-
[
|
|
1605
|
-
style:
|
|
1604
|
+
[z()]: "builder-column",
|
|
1605
|
+
style: ft(this.columnCssVars(t))
|
|
1606
1606
|
};
|
|
1607
1607
|
}
|
|
1608
1608
|
}
|
|
1609
1609
|
});
|
|
1610
|
-
function
|
|
1610
|
+
function io(e, t, n, o, r, i) {
|
|
1611
1611
|
var u;
|
|
1612
1612
|
const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1613
1613
|
return d(), h("div", I({
|
|
@@ -1643,32 +1643,32 @@ function oo(e, t, n, o, r, i) {
|
|
|
1643
1643
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1644
1644
|
], 16);
|
|
1645
1645
|
}
|
|
1646
|
-
const
|
|
1646
|
+
const so = /* @__PURE__ */ v(ro, [["render", io], ["__scopeId", "data-v-ab15749a"]]), ao = y({
|
|
1647
1647
|
name: "builder-fragment-component",
|
|
1648
1648
|
props: []
|
|
1649
1649
|
});
|
|
1650
|
-
function
|
|
1650
|
+
function lo(e, t, n, o, r, i) {
|
|
1651
1651
|
return d(), h("span", null, [
|
|
1652
1652
|
V(e.$slots, "default")
|
|
1653
1653
|
]);
|
|
1654
1654
|
}
|
|
1655
|
-
const
|
|
1656
|
-
function
|
|
1655
|
+
const co = /* @__PURE__ */ v(ao, [["render", lo]]);
|
|
1656
|
+
function je(e) {
|
|
1657
1657
|
return e.replace(/http(s)?:/, "");
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1659
|
+
function uo(e = "", t, n) {
|
|
1660
1660
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1661
1661
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1663
|
+
function po(e, t) {
|
|
1664
1664
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1665
1665
|
return e;
|
|
1666
1666
|
if (t === "master")
|
|
1667
|
-
return
|
|
1667
|
+
return je(e);
|
|
1668
1668
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1669
1669
|
if (n) {
|
|
1670
1670
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
1671
|
-
return
|
|
1671
|
+
return je(`${o[0]}_${i}${r}`);
|
|
1672
1672
|
}
|
|
1673
1673
|
return null;
|
|
1674
1674
|
}
|
|
@@ -1679,11 +1679,11 @@ function te(e) {
|
|
|
1679
1679
|
if (e.match(/builder\.io/)) {
|
|
1680
1680
|
let n = e;
|
|
1681
1681
|
const o = Number(e.split("?width=")[1]);
|
|
1682
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
1682
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${uo(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1683
1683
|
}
|
|
1684
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1684
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [po(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1685
1685
|
}
|
|
1686
|
-
const
|
|
1686
|
+
const mo = y({
|
|
1687
1687
|
name: "builder-image",
|
|
1688
1688
|
props: [
|
|
1689
1689
|
"lazy",
|
|
@@ -1691,14 +1691,14 @@ const uo = y({
|
|
|
1691
1691
|
"src",
|
|
1692
1692
|
"srcset",
|
|
1693
1693
|
"noWebp",
|
|
1694
|
-
"
|
|
1694
|
+
"sizes",
|
|
1695
1695
|
"highPriority",
|
|
1696
|
+
"aspectRatio",
|
|
1696
1697
|
"altText",
|
|
1697
1698
|
"title",
|
|
1698
1699
|
"backgroundPosition",
|
|
1699
1700
|
"backgroundSize",
|
|
1700
1701
|
"className",
|
|
1701
|
-
"sizes",
|
|
1702
1702
|
"builderBlock",
|
|
1703
1703
|
"fitContent"
|
|
1704
1704
|
],
|
|
@@ -1723,6 +1723,9 @@ const uo = y({
|
|
|
1723
1723
|
var e;
|
|
1724
1724
|
return (e = this.srcSetToUse) != null && e.match(/builder\.io/) && !this.noWebp ? this.srcSetToUse.replace(/\?/g, "?format=webp&") : "";
|
|
1725
1725
|
},
|
|
1726
|
+
sizesToUse() {
|
|
1727
|
+
return this.sizes || (this.highPriority ? void 0 : "auto");
|
|
1728
|
+
},
|
|
1726
1729
|
aspectRatioCss() {
|
|
1727
1730
|
const e = {
|
|
1728
1731
|
position: "absolute",
|
|
@@ -1734,20 +1737,21 @@ const uo = y({
|
|
|
1734
1737
|
return this.aspectRatio ? e : void 0;
|
|
1735
1738
|
}
|
|
1736
1739
|
}
|
|
1737
|
-
}),
|
|
1740
|
+
}), ho = ["srcset", "sizes"], fo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], bo = {
|
|
1738
1741
|
key: 2,
|
|
1739
1742
|
class: "div-t43jfuqn6g-2"
|
|
1740
1743
|
};
|
|
1741
|
-
function
|
|
1744
|
+
function go(e, t, n, o, r, i) {
|
|
1742
1745
|
var s, l, a, u, p, f;
|
|
1743
1746
|
return d(), h(w, null, [
|
|
1744
|
-
|
|
1747
|
+
q("picture", null, [
|
|
1745
1748
|
e.webpSrcSet ? (d(), h("source", {
|
|
1746
1749
|
key: 0,
|
|
1747
1750
|
type: "image/webp",
|
|
1748
|
-
srcset: e.webpSrcSet
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
+
srcset: e.webpSrcSet,
|
|
1752
|
+
sizes: e.sizesToUse
|
|
1753
|
+
}, null, 8, ho)) : C("", !0),
|
|
1754
|
+
q("img", {
|
|
1751
1755
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1752
1756
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
1753
1757
|
alt: e.altText,
|
|
@@ -1763,8 +1767,8 @@ function fo(e, t, n, o, r, i) {
|
|
|
1763
1767
|
),
|
|
1764
1768
|
src: e.image,
|
|
1765
1769
|
srcset: e.srcSetToUse,
|
|
1766
|
-
sizes: e.
|
|
1767
|
-
}, null, 14,
|
|
1770
|
+
sizes: e.sizesToUse
|
|
1771
|
+
}, null, 14, fo)
|
|
1768
1772
|
]),
|
|
1769
1773
|
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
|
|
1770
1774
|
key: 0,
|
|
@@ -1774,19 +1778,19 @@ function fo(e, t, n, o, r, i) {
|
|
|
1774
1778
|
})
|
|
1775
1779
|
}, null, 4)) : C("", !0),
|
|
1776
1780
|
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? V(e.$slots, "default", { key: 1 }, void 0, !0) : C("", !0),
|
|
1777
|
-
!e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div",
|
|
1781
|
+
!e.fitContent && ((f = (p = e.builderBlock) == null ? void 0 : p.children) != null && f.length) ? (d(), h("div", bo, [
|
|
1778
1782
|
V(e.$slots, "default", {}, void 0, !0)
|
|
1779
1783
|
])) : C("", !0)
|
|
1780
1784
|
], 64);
|
|
1781
1785
|
}
|
|
1782
|
-
const
|
|
1786
|
+
const yo = /* @__PURE__ */ v(mo, [["render", go], ["__scopeId", "data-v-17b592cd"]]), vo = y({
|
|
1783
1787
|
name: "builder-section-component",
|
|
1784
1788
|
props: ["attributes", "maxWidth"],
|
|
1785
1789
|
data() {
|
|
1786
1790
|
return { filterAttrs: N };
|
|
1787
1791
|
}
|
|
1788
1792
|
});
|
|
1789
|
-
function
|
|
1793
|
+
function So(e, t, n, o, r, i) {
|
|
1790
1794
|
return d(), h("section", I({
|
|
1791
1795
|
style: {
|
|
1792
1796
|
width: "100%",
|
|
@@ -1800,12 +1804,12 @@ function yo(e, t, n, o, r, i) {
|
|
|
1800
1804
|
marginLeft: "auto",
|
|
1801
1805
|
marginRight: "auto"
|
|
1802
1806
|
}
|
|
1803
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1807
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1804
1808
|
V(e.$slots, "default")
|
|
1805
1809
|
], 16);
|
|
1806
1810
|
}
|
|
1807
|
-
const
|
|
1808
|
-
function
|
|
1811
|
+
const ko = /* @__PURE__ */ v(vo, [["render", So]]);
|
|
1812
|
+
function Co(e, t, n, o) {
|
|
1809
1813
|
function r(u) {
|
|
1810
1814
|
return typeof u == "string";
|
|
1811
1815
|
}
|
|
@@ -1862,7 +1866,7 @@ function So(e, t, n, o) {
|
|
|
1862
1866
|
}, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
1863
1867
|
return l.startDate && new Date(l.startDate) > a || l.endDate && new Date(l.endDate) < a ? !1 : !l.query || !l.query.length ? !0 : l.query.every((u) => s(e, u));
|
|
1864
1868
|
}
|
|
1865
|
-
const
|
|
1869
|
+
const To = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
1866
1870
|
if (!navigator.cookieEnabled) {
|
|
1867
1871
|
return;
|
|
1868
1872
|
}
|
|
@@ -1907,7 +1911,7 @@ const ko = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1907
1911
|
thisScript.remove();
|
|
1908
1912
|
}
|
|
1909
1913
|
}
|
|
1910
|
-
}`,
|
|
1914
|
+
}`, wo = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
1911
1915
|
function isString(val) {
|
|
1912
1916
|
return typeof val === 'string';
|
|
1913
1917
|
}
|
|
@@ -1985,7 +1989,7 @@ const ko = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
1985
1989
|
return item.query.every(filter => {
|
|
1986
1990
|
return objectMatchesQuery(userAttributes, filter);
|
|
1987
1991
|
});
|
|
1988
|
-
}`,
|
|
1992
|
+
}`, Io = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
1989
1993
|
function getCookie(name) {
|
|
1990
1994
|
const nameEQ = name + '=';
|
|
1991
1995
|
const ca = document.cookie.split(';');
|
|
@@ -2023,11 +2027,11 @@ const ko = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2023
2027
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2024
2028
|
}
|
|
2025
2029
|
}
|
|
2026
|
-
}`, ne = "default",
|
|
2027
|
-
function
|
|
2028
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
2030
|
+
}`, ne = "default", qe = "filterWithCustomTargeting", ye = "builderIoPersonalization", ve = "updateVisibilityStylesScript", $o = "PersonalizationContainer", vt = ["react", "vue", "svelte", "qwik"], St = ["vue", "svelte", "qwik"];
|
|
2031
|
+
function Ro(e, t) {
|
|
2032
|
+
return !(e && e.length > 0) || !t ? !1 : St.includes(R) ? !0 : !E();
|
|
2029
2033
|
}
|
|
2030
|
-
function
|
|
2034
|
+
function Eo({
|
|
2031
2035
|
variants: e,
|
|
2032
2036
|
previewingIndex: t,
|
|
2033
2037
|
isHydrated: n,
|
|
@@ -2065,11 +2069,22 @@ function $o({
|
|
|
2065
2069
|
}
|
|
2066
2070
|
return i;
|
|
2067
2071
|
}
|
|
2068
|
-
const
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2072
|
+
const Se = (e) => {
|
|
2073
|
+
var t;
|
|
2074
|
+
return Array.isArray(e) ? e.some(Se) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === $o ? !0 : Object.values(e).some(Se);
|
|
2075
|
+
}, Po = (e) => Se(e), Ao = () => `
|
|
2076
|
+
(function() {
|
|
2077
|
+
if (!window.${qe}) {
|
|
2078
|
+
window.${qe} = ${wo};
|
|
2079
|
+
}
|
|
2080
|
+
if (!window.${ye}) {
|
|
2081
|
+
window.${ye} = ${To};
|
|
2082
|
+
}
|
|
2083
|
+
if (!window.${ve}) {
|
|
2084
|
+
window.${ve} = ${Io};
|
|
2085
|
+
}
|
|
2086
|
+
})();
|
|
2087
|
+
`, kt = R === "react", Bo = (e, t, n) => `window.${ye}(${JSON.stringify(e)}, "${t}", ${kt}${n ? `, "${n}"` : ""})`, Vo = (e, t, n) => `window.${ve}(${JSON.stringify(e)}, "${t}", ${kt}${n ? `, "${n}"` : ""})`, de = {
|
|
2073
2088
|
"@type": "@builder.io/sdk:Element",
|
|
2074
2089
|
layerName: "Accordion item title",
|
|
2075
2090
|
responsiveStyles: {
|
|
@@ -2129,7 +2144,7 @@ const Ro = () => `
|
|
|
2129
2144
|
}
|
|
2130
2145
|
}
|
|
2131
2146
|
}]
|
|
2132
|
-
},
|
|
2147
|
+
}, No = {
|
|
2133
2148
|
name: "Builder:Accordion",
|
|
2134
2149
|
canHaveChildren: !0,
|
|
2135
2150
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2193,7 +2208,7 @@ const Ro = () => `
|
|
|
2193
2208
|
builderComponents: !0,
|
|
2194
2209
|
builderLinkComponent: !0
|
|
2195
2210
|
}
|
|
2196
|
-
},
|
|
2211
|
+
}, Wo = (e) => e.toString(), Do = y({
|
|
2197
2212
|
name: "builder-accordion",
|
|
2198
2213
|
components: { Blocks: j },
|
|
2199
2214
|
props: [
|
|
@@ -2207,7 +2222,7 @@ const Ro = () => `
|
|
|
2207
2222
|
"builderLinkComponent"
|
|
2208
2223
|
],
|
|
2209
2224
|
data() {
|
|
2210
|
-
return { open: [], convertOrderNumberToString:
|
|
2225
|
+
return { open: [], convertOrderNumberToString: Wo };
|
|
2211
2226
|
},
|
|
2212
2227
|
computed: {
|
|
2213
2228
|
onlyOneAtATime() {
|
|
@@ -2288,15 +2303,15 @@ const Ro = () => `
|
|
|
2288
2303
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2289
2304
|
}
|
|
2290
2305
|
}
|
|
2291
|
-
}),
|
|
2292
|
-
function
|
|
2306
|
+
}), xo = ["data-index", "onClick"];
|
|
2307
|
+
function Oo(e, t, n, o, r, i) {
|
|
2293
2308
|
const s = k("Blocks");
|
|
2294
2309
|
return d(), h("div", {
|
|
2295
2310
|
class: "builder-accordion",
|
|
2296
2311
|
style: M(e.accordionStyles)
|
|
2297
2312
|
}, [
|
|
2298
2313
|
(d(!0), h(w, null, F(e.items, (l, a) => (d(), h(w, { key: a }, [
|
|
2299
|
-
|
|
2314
|
+
q("div", {
|
|
2300
2315
|
class: Z(e.getAccordionTitleClassName(a)),
|
|
2301
2316
|
style: M({
|
|
2302
2317
|
...e.accordionTitleStyles,
|
|
@@ -2316,7 +2331,7 @@ function Wo(e, t, n, o, r, i) {
|
|
|
2316
2331
|
registeredComponents: e.builderComponents,
|
|
2317
2332
|
linkComponent: e.builderLinkComponent
|
|
2318
2333
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2319
|
-
], 14,
|
|
2334
|
+
], 14, xo),
|
|
2320
2335
|
e.open.includes(a) ? (d(), h("div", {
|
|
2321
2336
|
key: 0,
|
|
2322
2337
|
class: Z(e.getAccordionDetailClassName(a)),
|
|
@@ -2334,7 +2349,7 @@ function Wo(e, t, n, o, r, i) {
|
|
|
2334
2349
|
], 64))), 128))
|
|
2335
2350
|
], 4);
|
|
2336
2351
|
}
|
|
2337
|
-
const
|
|
2352
|
+
const Uo = /* @__PURE__ */ v(Do, [["render", Oo]]), Fo = {
|
|
2338
2353
|
name: "Core:Button",
|
|
2339
2354
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2340
2355
|
defaultStyles: {
|
|
@@ -2370,7 +2385,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
|
|
|
2370
2385
|
shouldReceiveBuilderProps: {
|
|
2371
2386
|
builderLinkComponent: !0
|
|
2372
2387
|
}
|
|
2373
|
-
},
|
|
2388
|
+
}, Lo = {
|
|
2374
2389
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2375
2390
|
name: "Columns",
|
|
2376
2391
|
isRSC: !0,
|
|
@@ -2577,13 +2592,13 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
|
|
|
2577
2592
|
builderComponents: !0,
|
|
2578
2593
|
builderLinkComponent: !0
|
|
2579
2594
|
}
|
|
2580
|
-
},
|
|
2595
|
+
}, Ho = {
|
|
2581
2596
|
name: "Fragment",
|
|
2582
2597
|
static: !0,
|
|
2583
2598
|
hidden: !0,
|
|
2584
2599
|
canHaveChildren: !0,
|
|
2585
2600
|
noWrap: !0
|
|
2586
|
-
},
|
|
2601
|
+
}, Be = ["jpeg", "jpg", "png", "svg", "webp", "gif", "jfif", "pjpeg", "pjp", "apng", "avif", "tif", "tiff", "heif", "bmp", "eps", "raw", "cr2", "nef", "orf", "sr2", "psd", "heic", "dib", "ai"], Mo = ["mp4", "webm", "mkv", "flv", "vob", "ogv", "ogg", "drc", "gif", "gifv", "mng", "avi", "mov", "qt", "mts", "m2ts", "ts", "wmv", "yuv", "rm", "rmvb", "viv", "asf", "amv", "m4p", "mpeg", "mpe", "m2v", "m4v", "svi", "3gp", "3g2", "mxf", "roq", "nsv", "f4v", "f4p", "f4a", "f4b"], zo = {
|
|
2587
2602
|
name: "Image",
|
|
2588
2603
|
static: !0,
|
|
2589
2604
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -2598,7 +2613,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
|
|
|
2598
2613
|
name: "image",
|
|
2599
2614
|
type: "file",
|
|
2600
2615
|
bubble: !0,
|
|
2601
|
-
allowedFileTypes:
|
|
2616
|
+
allowedFileTypes: Be,
|
|
2602
2617
|
required: !0,
|
|
2603
2618
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2604
2619
|
onChange: (e) => {
|
|
@@ -2665,7 +2680,8 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
|
|
|
2665
2680
|
}, {
|
|
2666
2681
|
name: "sizes",
|
|
2667
2682
|
type: "string",
|
|
2668
|
-
|
|
2683
|
+
advanced: !0,
|
|
2684
|
+
helperText: 'The sizes attribute for responsive images, e.g. "(max-width: 600px) 100vw, 50vw"'
|
|
2669
2685
|
}, {
|
|
2670
2686
|
name: "srcset",
|
|
2671
2687
|
type: "string",
|
|
@@ -2695,7 +2711,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
|
|
|
2695
2711
|
shouldReceiveBuilderProps: {
|
|
2696
2712
|
builderBlock: !0
|
|
2697
2713
|
}
|
|
2698
|
-
},
|
|
2714
|
+
}, jo = {
|
|
2699
2715
|
name: "PersonalizationContainer",
|
|
2700
2716
|
shouldReceiveBuilderProps: {
|
|
2701
2717
|
builderBlock: !0,
|
|
@@ -2731,9 +2747,9 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
|
|
|
2731
2747
|
defaultValue: []
|
|
2732
2748
|
}]
|
|
2733
2749
|
}]
|
|
2734
|
-
},
|
|
2750
|
+
}, Ve = y({
|
|
2735
2751
|
render() {
|
|
2736
|
-
return
|
|
2752
|
+
return Qe("script", {
|
|
2737
2753
|
innerHTML: this.scriptStr,
|
|
2738
2754
|
"data-id": this.id,
|
|
2739
2755
|
nonce: this.nonce
|
|
@@ -2741,12 +2757,12 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
|
|
|
2741
2757
|
},
|
|
2742
2758
|
name: "inlined-script",
|
|
2743
2759
|
props: ["scriptStr", "id", "nonce"]
|
|
2744
|
-
}),
|
|
2760
|
+
}), qo = y({
|
|
2745
2761
|
name: "builder-personalization-container",
|
|
2746
2762
|
components: {
|
|
2747
2763
|
Blocks: j,
|
|
2748
2764
|
InlinedStyles: ce,
|
|
2749
|
-
InlinedScript:
|
|
2765
|
+
InlinedScript: Ve
|
|
2750
2766
|
},
|
|
2751
2767
|
props: [
|
|
2752
2768
|
"builderContext",
|
|
@@ -2760,25 +2776,25 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
|
|
|
2760
2776
|
var e, t, n, o, r, i, s;
|
|
2761
2777
|
return {
|
|
2762
2778
|
userAttributes: ae.getUserAttributes(),
|
|
2763
|
-
scriptStr:
|
|
2779
|
+
scriptStr: Bo(
|
|
2764
2780
|
this.variants,
|
|
2765
2781
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
2766
2782
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
2767
2783
|
),
|
|
2768
|
-
updateVisibilityStylesScript:
|
|
2784
|
+
updateVisibilityStylesScript: Vo(
|
|
2769
2785
|
this.variants,
|
|
2770
2786
|
((o = this.builderBlock) == null ? void 0 : o.id) || "none",
|
|
2771
2787
|
(i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
|
|
2772
2788
|
),
|
|
2773
2789
|
unsubscribers: [],
|
|
2774
|
-
shouldRenderVariants:
|
|
2790
|
+
shouldRenderVariants: Ro(
|
|
2775
2791
|
this.variants,
|
|
2776
2792
|
K((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
2777
2793
|
),
|
|
2778
2794
|
shouldResetVariants: !1,
|
|
2779
2795
|
TARGET: R,
|
|
2780
2796
|
DEFAULT_INDEX: ne,
|
|
2781
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
2797
|
+
SDKS_REQUIRING_RESET_APPROACH: St
|
|
2782
2798
|
};
|
|
2783
2799
|
},
|
|
2784
2800
|
mounted() {
|
|
@@ -2792,7 +2808,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
|
|
|
2792
2808
|
fireImmediately: R === "qwik"
|
|
2793
2809
|
}
|
|
2794
2810
|
);
|
|
2795
|
-
if (!(A() ||
|
|
2811
|
+
if (!(A() || $e())) {
|
|
2796
2812
|
const n = this.filteredVariants[0];
|
|
2797
2813
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
2798
2814
|
new CustomEvent("builder.variantLoaded", {
|
|
@@ -2827,13 +2843,13 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
|
|
|
2827
2843
|
return {
|
|
2828
2844
|
...N(this.attributes, "v-on:", !1),
|
|
2829
2845
|
...N(this.attributes, "v-on:", !0),
|
|
2830
|
-
[
|
|
2846
|
+
[z()]: `builder-personalization-container ${this.attributes[z()] || ""}`
|
|
2831
2847
|
};
|
|
2832
2848
|
},
|
|
2833
2849
|
filteredVariants() {
|
|
2834
2850
|
return (this.variants || []).filter((e) => {
|
|
2835
2851
|
var t, n, o, r;
|
|
2836
|
-
return
|
|
2852
|
+
return Co(
|
|
2837
2853
|
{
|
|
2838
2854
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
2839
2855
|
locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
|
|
@@ -2848,7 +2864,7 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
|
|
|
2848
2864
|
},
|
|
2849
2865
|
blocksToRender() {
|
|
2850
2866
|
var e;
|
|
2851
|
-
return
|
|
2867
|
+
return Eo({
|
|
2852
2868
|
variants: this.variants,
|
|
2853
2869
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
2854
2870
|
isHydrated: this.shouldResetVariants,
|
|
@@ -2866,8 +2882,8 @@ const Do = /* @__PURE__ */ v(Vo, [["render", Wo]]), xo = {
|
|
|
2866
2882
|
}
|
|
2867
2883
|
}
|
|
2868
2884
|
});
|
|
2869
|
-
function
|
|
2870
|
-
var u, p, f, c, m, b, g, P,
|
|
2885
|
+
function Ko(e, t, n, o, r, i) {
|
|
2886
|
+
var u, p, f, c, m, b, g, P, O, B;
|
|
2871
2887
|
const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
|
|
2872
2888
|
return d(), h("div", I({ ref: "rootRef" }, e.attrs), [
|
|
2873
2889
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
|
|
@@ -2895,11 +2911,11 @@ function qo(e, t, n, o, r, i) {
|
|
|
2895
2911
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
2896
2912
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
2897
2913
|
(d(!0), h(w, null, F(e.variants, (T, W) => {
|
|
2898
|
-
var
|
|
2914
|
+
var J, G, D, H;
|
|
2899
2915
|
return d(), S(s, {
|
|
2900
|
-
key: `${(
|
|
2916
|
+
key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${W}`,
|
|
2901
2917
|
BlocksWrapperProps: {
|
|
2902
|
-
...(
|
|
2918
|
+
...(G = e.builderContext) == null ? void 0 : G.BlocksWrapperProps,
|
|
2903
2919
|
"aria-hidden": !0,
|
|
2904
2920
|
hidden: !0,
|
|
2905
2921
|
"data-variant-id": `${(D = e.builderBlock) == null ? void 0 : D.id}-${W}`
|
|
@@ -2911,12 +2927,12 @@ function qo(e, t, n, o, r, i) {
|
|
|
2911
2927
|
registeredComponents: e.builderComponents
|
|
2912
2928
|
}, {
|
|
2913
2929
|
default: x(() => {
|
|
2914
|
-
var
|
|
2930
|
+
var We, De;
|
|
2915
2931
|
return [
|
|
2916
2932
|
$(a, {
|
|
2917
|
-
nonce: ((
|
|
2933
|
+
nonce: ((We = e.builderContext) == null ? void 0 : We.nonce) || "",
|
|
2918
2934
|
scriptStr: e.scriptStr,
|
|
2919
|
-
id: `variants-script-${(
|
|
2935
|
+
id: `variants-script-${(De = e.builderBlock) == null ? void 0 : De.id}-${W}`
|
|
2920
2936
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
2921
2937
|
];
|
|
2922
2938
|
}),
|
|
@@ -2931,7 +2947,7 @@ function qo(e, t, n, o, r, i) {
|
|
|
2931
2947
|
context: e.builderContext,
|
|
2932
2948
|
registeredComponents: e.builderComponents,
|
|
2933
2949
|
BlocksWrapperProps: {
|
|
2934
|
-
...(
|
|
2950
|
+
...(O = e.builderContext) == null ? void 0 : O.BlocksWrapperProps,
|
|
2935
2951
|
"data-variant-id": `${(B = e.builderBlock) == null ? void 0 : B.id}-${e.blocksToRender.index}`
|
|
2936
2952
|
}
|
|
2937
2953
|
}, {
|
|
@@ -2951,7 +2967,7 @@ function qo(e, t, n, o, r, i) {
|
|
|
2951
2967
|
], 64)) : C("", !0)
|
|
2952
2968
|
], 16);
|
|
2953
2969
|
}
|
|
2954
|
-
const
|
|
2970
|
+
const Jo = /* @__PURE__ */ v(qo, [["render", Ko]]), Go = {
|
|
2955
2971
|
name: "Core:Section",
|
|
2956
2972
|
static: !0,
|
|
2957
2973
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2990,7 +3006,7 @@ const jo = /* @__PURE__ */ v(Mo, [["render", qo]]), zo = {
|
|
|
2990
3006
|
}
|
|
2991
3007
|
}
|
|
2992
3008
|
}]
|
|
2993
|
-
},
|
|
3009
|
+
}, Qo = {
|
|
2994
3010
|
name: "Slot",
|
|
2995
3011
|
isRSC: !0,
|
|
2996
3012
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3007,12 +3023,12 @@ const jo = /* @__PURE__ */ v(Mo, [["render", qo]]), zo = {
|
|
|
3007
3023
|
builderContext: !0,
|
|
3008
3024
|
builderComponents: !0
|
|
3009
3025
|
}
|
|
3010
|
-
},
|
|
3026
|
+
}, Yo = y({
|
|
3011
3027
|
name: "builder-slot",
|
|
3012
3028
|
components: { Blocks: j },
|
|
3013
3029
|
props: ["builderContext", "name", "builderComponents"]
|
|
3014
3030
|
});
|
|
3015
|
-
function
|
|
3031
|
+
function Xo(e, t, n, o, r, i) {
|
|
3016
3032
|
var l, a, u;
|
|
3017
3033
|
const s = k("Blocks");
|
|
3018
3034
|
return d(), h("div", I(
|
|
@@ -3032,7 +3048,7 @@ function Jo(e, t, n, o, r, i) {
|
|
|
3032
3048
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
3033
3049
|
], 16);
|
|
3034
3050
|
}
|
|
3035
|
-
const
|
|
3051
|
+
const Zo = /* @__PURE__ */ v(Yo, [["render", Xo]]), _o = {
|
|
3036
3052
|
name: "Symbol",
|
|
3037
3053
|
noWrap: !0,
|
|
3038
3054
|
static: !0,
|
|
@@ -3109,7 +3125,7 @@ const Qo = /* @__PURE__ */ v(Go, [["render", Jo]]), Yo = {
|
|
|
3109
3125
|
text: "New tab content "
|
|
3110
3126
|
}
|
|
3111
3127
|
}
|
|
3112
|
-
},
|
|
3128
|
+
}, er = {
|
|
3113
3129
|
name: "Builder: Tabs",
|
|
3114
3130
|
inputs: [{
|
|
3115
3131
|
name: "tabs",
|
|
@@ -3212,7 +3228,7 @@ const Qo = /* @__PURE__ */ v(Go, [["render", Jo]]), Yo = {
|
|
|
3212
3228
|
builderComponents: !0,
|
|
3213
3229
|
builderLinkComponent: !0
|
|
3214
3230
|
}
|
|
3215
|
-
},
|
|
3231
|
+
}, tr = y({
|
|
3216
3232
|
name: "builder-tabs",
|
|
3217
3233
|
components: { Blocks: j },
|
|
3218
3234
|
props: [
|
|
@@ -3240,11 +3256,11 @@ const Qo = /* @__PURE__ */ v(Go, [["render", Jo]]), Yo = {
|
|
|
3240
3256
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3241
3257
|
}
|
|
3242
3258
|
}
|
|
3243
|
-
}),
|
|
3244
|
-
function
|
|
3259
|
+
}), nr = ["onClick"], or = { key: 0 };
|
|
3260
|
+
function rr(e, t, n, o, r, i) {
|
|
3245
3261
|
const s = k("Blocks");
|
|
3246
3262
|
return d(), h("div", null, [
|
|
3247
|
-
|
|
3263
|
+
q("div", {
|
|
3248
3264
|
class: "builder-tabs-wrap",
|
|
3249
3265
|
style: M({
|
|
3250
3266
|
display: "flex",
|
|
@@ -3267,9 +3283,9 @@ function tr(e, t, n, o, r, i) {
|
|
|
3267
3283
|
registeredComponents: e.builderComponents,
|
|
3268
3284
|
linkComponent: e.builderLinkComponent
|
|
3269
3285
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3270
|
-
], 14,
|
|
3286
|
+
], 14, nr))), 128))
|
|
3271
3287
|
], 4),
|
|
3272
|
-
e.activeTabContent(e.activeTab) ? (d(), h("div",
|
|
3288
|
+
e.activeTabContent(e.activeTab) ? (d(), h("div", or, [
|
|
3273
3289
|
$(s, {
|
|
3274
3290
|
parent: e.builderBlock.id,
|
|
3275
3291
|
path: `tabs.${e.activeTab}.content`,
|
|
@@ -3281,7 +3297,7 @@ function tr(e, t, n, o, r, i) {
|
|
|
3281
3297
|
])) : C("", !0)
|
|
3282
3298
|
]);
|
|
3283
3299
|
}
|
|
3284
|
-
const
|
|
3300
|
+
const ir = /* @__PURE__ */ v(tr, [["render", rr]]), sr = {
|
|
3285
3301
|
shouldReceiveBuilderProps: {},
|
|
3286
3302
|
name: "Text",
|
|
3287
3303
|
static: !0,
|
|
@@ -3299,11 +3315,11 @@ const nr = /* @__PURE__ */ v(Zo, [["render", tr]]), or = {
|
|
|
3299
3315
|
height: "auto",
|
|
3300
3316
|
textAlign: "center"
|
|
3301
3317
|
}
|
|
3302
|
-
},
|
|
3318
|
+
}, ar = y({
|
|
3303
3319
|
name: "builder-text",
|
|
3304
3320
|
props: ["text"]
|
|
3305
|
-
}),
|
|
3306
|
-
function
|
|
3321
|
+
}), lr = ["innerHTML"];
|
|
3322
|
+
function cr(e, t, n, o, r, i) {
|
|
3307
3323
|
var s;
|
|
3308
3324
|
return d(), h("div", {
|
|
3309
3325
|
class: "builder-text",
|
|
@@ -3311,9 +3327,9 @@ function sr(e, t, n, o, r, i) {
|
|
|
3311
3327
|
style: {
|
|
3312
3328
|
outline: "none"
|
|
3313
3329
|
}
|
|
3314
|
-
}, null, 8,
|
|
3330
|
+
}, null, 8, lr);
|
|
3315
3331
|
}
|
|
3316
|
-
const
|
|
3332
|
+
const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
3317
3333
|
name: "Custom Code",
|
|
3318
3334
|
static: !0,
|
|
3319
3335
|
requiredPermissions: ["editCode"],
|
|
@@ -3335,7 +3351,7 @@ const ar = /* @__PURE__ */ v(rr, [["render", sr]]), lr = {
|
|
|
3335
3351
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3336
3352
|
advanced: !0
|
|
3337
3353
|
}]
|
|
3338
|
-
},
|
|
3354
|
+
}, pr = y({
|
|
3339
3355
|
name: "builder-custom-code",
|
|
3340
3356
|
props: ["code", "replaceNodes"],
|
|
3341
3357
|
data() {
|
|
@@ -3394,15 +3410,15 @@ const ar = /* @__PURE__ */ v(rr, [["render", sr]]), lr = {
|
|
|
3394
3410
|
}
|
|
3395
3411
|
}
|
|
3396
3412
|
}
|
|
3397
|
-
}),
|
|
3398
|
-
function
|
|
3413
|
+
}), mr = ["innerHTML"];
|
|
3414
|
+
function hr(e, t, n, o, r, i) {
|
|
3399
3415
|
return d(), h("div", {
|
|
3400
3416
|
ref: "elementRef",
|
|
3401
3417
|
class: Z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3402
3418
|
innerHTML: e.code
|
|
3403
|
-
}, null, 10,
|
|
3419
|
+
}, null, 10, mr);
|
|
3404
3420
|
}
|
|
3405
|
-
const
|
|
3421
|
+
const fr = /* @__PURE__ */ v(pr, [["render", hr]]), br = {
|
|
3406
3422
|
name: "Embed",
|
|
3407
3423
|
static: !0,
|
|
3408
3424
|
inputs: [{
|
|
@@ -3417,7 +3433,7 @@ const pr = /* @__PURE__ */ v(cr, [["render", ur]]), mr = {
|
|
|
3417
3433
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3418
3434
|
hideFromUI: !0
|
|
3419
3435
|
}]
|
|
3420
|
-
},
|
|
3436
|
+
}, gr = ["text/javascript", "application/javascript", "application/ecmascript"], yr = (e) => gr.includes(e.type), vr = y({
|
|
3421
3437
|
name: "builder-embed",
|
|
3422
3438
|
props: ["content"],
|
|
3423
3439
|
data() {
|
|
@@ -3450,7 +3466,7 @@ const pr = /* @__PURE__ */ v(cr, [["render", ur]]), mr = {
|
|
|
3450
3466
|
this.scriptsInserted.push(n.src);
|
|
3451
3467
|
const o = document.createElement("script");
|
|
3452
3468
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3453
|
-
} else if (
|
|
3469
|
+
} else if (yr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3454
3470
|
try {
|
|
3455
3471
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3456
3472
|
} catch (o) {
|
|
@@ -3459,15 +3475,15 @@ const pr = /* @__PURE__ */ v(cr, [["render", ur]]), mr = {
|
|
|
3459
3475
|
}
|
|
3460
3476
|
}
|
|
3461
3477
|
}
|
|
3462
|
-
}),
|
|
3463
|
-
function
|
|
3478
|
+
}), Sr = ["innerHTML"];
|
|
3479
|
+
function kr(e, t, n, o, r, i) {
|
|
3464
3480
|
return d(), h("div", {
|
|
3465
3481
|
class: "builder-embed",
|
|
3466
3482
|
ref: "elem",
|
|
3467
3483
|
innerHTML: e.content
|
|
3468
|
-
}, null, 8,
|
|
3484
|
+
}, null, 8, Sr);
|
|
3469
3485
|
}
|
|
3470
|
-
const
|
|
3486
|
+
const Cr = /* @__PURE__ */ v(vr, [["render", kr]]), Tr = {
|
|
3471
3487
|
name: "Form:Form",
|
|
3472
3488
|
// editableTags: ['builder-form-error']
|
|
3473
3489
|
defaults: {
|
|
@@ -3704,10 +3720,10 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
|
|
|
3704
3720
|
builderComponents: !0,
|
|
3705
3721
|
builderLinkComponent: !0
|
|
3706
3722
|
}
|
|
3707
|
-
},
|
|
3723
|
+
}, wr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], Ir = () => {
|
|
3708
3724
|
const e = process.env.NODE_ENV || "production";
|
|
3709
|
-
return
|
|
3710
|
-
},
|
|
3725
|
+
return wr.includes(e) ? e : "production";
|
|
3726
|
+
}, $r = y({
|
|
3711
3727
|
name: "builder-form-component",
|
|
3712
3728
|
components: { Blocks: j },
|
|
3713
3729
|
props: [
|
|
@@ -3800,7 +3816,7 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
|
|
|
3800
3816
|
else {
|
|
3801
3817
|
const c = {};
|
|
3802
3818
|
Array.from(l).forEach(({ value: m, key: b }) => {
|
|
3803
|
-
|
|
3819
|
+
Ye(c, b, m);
|
|
3804
3820
|
}), i = JSON.stringify(c);
|
|
3805
3821
|
}
|
|
3806
3822
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -3818,10 +3834,10 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
|
|
|
3818
3834
|
});
|
|
3819
3835
|
return;
|
|
3820
3836
|
}
|
|
3821
|
-
const p = `${
|
|
3837
|
+
const p = `${Ir() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3822
3838
|
this.sendSubmissionsToEmail || ""
|
|
3823
3839
|
)}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
3824
|
-
|
|
3840
|
+
_e(f), fetch(f, {
|
|
3825
3841
|
body: i,
|
|
3826
3842
|
headers: r,
|
|
3827
3843
|
method: this.method || "post"
|
|
@@ -3831,32 +3847,32 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
|
|
|
3831
3847
|
let m;
|
|
3832
3848
|
const b = c.headers.get("content-type");
|
|
3833
3849
|
if (b && b.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
|
|
3834
|
-
const
|
|
3850
|
+
const O = new CustomEvent("submit:error", {
|
|
3835
3851
|
detail: {
|
|
3836
3852
|
error: m,
|
|
3837
3853
|
status: c.status
|
|
3838
3854
|
}
|
|
3839
3855
|
});
|
|
3840
3856
|
if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
|
|
3841
|
-
|
|
3842
|
-
),
|
|
3857
|
+
O
|
|
3858
|
+
), O.defaultPrevented))
|
|
3843
3859
|
return;
|
|
3844
3860
|
this.responseData = m, this.formState = "error";
|
|
3845
|
-
let B = this.errorMessagePath ?
|
|
3861
|
+
let B = this.errorMessagePath ? tt(m, this.errorMessagePath) : m.message || m.error || m;
|
|
3846
3862
|
typeof B != "string" && (B = JSON.stringify(B)), this.formErrorMessage = B, this.mergeNewRootState({
|
|
3847
3863
|
formErrorMessage: B
|
|
3848
3864
|
});
|
|
3849
3865
|
return;
|
|
3850
3866
|
}
|
|
3851
3867
|
if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
3852
|
-
const
|
|
3868
|
+
const O = new CustomEvent("submit:success", {
|
|
3853
3869
|
detail: {
|
|
3854
3870
|
res: c,
|
|
3855
3871
|
body: m
|
|
3856
3872
|
}
|
|
3857
3873
|
});
|
|
3858
3874
|
if (this.$refs.formRef) {
|
|
3859
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
3875
|
+
if (this.$refs.formRef.dispatchEvent(O), O.defaultPrevented)
|
|
3860
3876
|
return;
|
|
3861
3877
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
3862
3878
|
}
|
|
@@ -3884,11 +3900,11 @@ const vr = /* @__PURE__ */ v(br, [["render", yr]]), Sr = {
|
|
|
3884
3900
|
}
|
|
3885
3901
|
}
|
|
3886
3902
|
}
|
|
3887
|
-
}),
|
|
3903
|
+
}), Rr = ["validate", "action", "method", "name"], Er = {
|
|
3888
3904
|
key: 2,
|
|
3889
3905
|
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
3890
3906
|
};
|
|
3891
|
-
function
|
|
3907
|
+
function Pr(e, t, n, o, r, i) {
|
|
3892
3908
|
const s = k("Blocks");
|
|
3893
3909
|
return d(), h("form", I({
|
|
3894
3910
|
validate: e.validate,
|
|
@@ -3897,7 +3913,7 @@ function $r(e, t, n, o, r, i) {
|
|
|
3897
3913
|
method: e.method,
|
|
3898
3914
|
name: e.name,
|
|
3899
3915
|
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
3900
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3916
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3901
3917
|
V(e.$slots, "default", {}, void 0, !0),
|
|
3902
3918
|
e.submissionState() === "error" ? (d(), S(s, {
|
|
3903
3919
|
key: 0,
|
|
@@ -3911,16 +3927,16 @@ function $r(e, t, n, o, r, i) {
|
|
|
3911
3927
|
blocks: e.sendingMessage,
|
|
3912
3928
|
context: e.builderContext
|
|
3913
3929
|
}, null, 8, ["blocks", "context"])) : C("", !0),
|
|
3914
|
-
e.submissionState() === "error" && e.responseData ? (d(), h("pre",
|
|
3930
|
+
e.submissionState() === "error" && e.responseData ? (d(), h("pre", Er, le(e.errorResponse(e.responseData)), 1)) : C("", !0),
|
|
3915
3931
|
e.submissionState() === "success" ? (d(), S(s, {
|
|
3916
3932
|
key: 3,
|
|
3917
3933
|
path: "successMessage",
|
|
3918
3934
|
blocks: e.successMessage,
|
|
3919
3935
|
context: e.builderContext
|
|
3920
3936
|
}, null, 8, ["blocks", "context"])) : C("", !0)
|
|
3921
|
-
], 16,
|
|
3937
|
+
], 16, Rr);
|
|
3922
3938
|
}
|
|
3923
|
-
const
|
|
3939
|
+
const Ar = /* @__PURE__ */ v($r, [["render", Pr], ["__scopeId", "data-v-77c7888c"]]), Br = {
|
|
3924
3940
|
name: "Form:Input",
|
|
3925
3941
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3926
3942
|
inputs: [
|
|
@@ -3971,7 +3987,7 @@ const Rr = /* @__PURE__ */ v(Tr, [["render", $r], ["__scopeId", "data-v-77c7888c
|
|
|
3971
3987
|
borderStyle: "solid",
|
|
3972
3988
|
borderColor: "#ccc"
|
|
3973
3989
|
}
|
|
3974
|
-
},
|
|
3990
|
+
}, Vr = y({
|
|
3975
3991
|
name: "builder-form-input-component",
|
|
3976
3992
|
props: [
|
|
3977
3993
|
"attributes",
|
|
@@ -3985,8 +4001,8 @@ const Rr = /* @__PURE__ */ v(Tr, [["render", $r], ["__scopeId", "data-v-77c7888c
|
|
|
3985
4001
|
data() {
|
|
3986
4002
|
return { isEditing: A, filterAttrs: N };
|
|
3987
4003
|
}
|
|
3988
|
-
}),
|
|
3989
|
-
function
|
|
4004
|
+
}), Nr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4005
|
+
function Wr(e, t, n, o, r, i) {
|
|
3990
4006
|
return d(), h("input", I({
|
|
3991
4007
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3992
4008
|
placeholder: e.placeholder,
|
|
@@ -3995,9 +4011,9 @@ function Br(e, t, n, o, r, i) {
|
|
|
3995
4011
|
value: e.value,
|
|
3996
4012
|
defaultValue: e.defaultValue,
|
|
3997
4013
|
required: e.required
|
|
3998
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4014
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Nr);
|
|
3999
4015
|
}
|
|
4000
|
-
const
|
|
4016
|
+
const Dr = /* @__PURE__ */ v(Vr, [["render", Wr]]), xr = {
|
|
4001
4017
|
name: "Form:Select",
|
|
4002
4018
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4003
4019
|
defaultStyles: {
|
|
@@ -4039,28 +4055,28 @@ const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
|
4039
4055
|
}],
|
|
4040
4056
|
static: !0,
|
|
4041
4057
|
noWrap: !0
|
|
4042
|
-
},
|
|
4058
|
+
}, Or = y({
|
|
4043
4059
|
name: "builder-select-component",
|
|
4044
4060
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4045
4061
|
data() {
|
|
4046
4062
|
return { isEditing: A, filterAttrs: N };
|
|
4047
4063
|
}
|
|
4048
|
-
}),
|
|
4049
|
-
function
|
|
4064
|
+
}), Ur = ["value", "defaultValue", "name", "required"], Fr = ["value"];
|
|
4065
|
+
function Lr(e, t, n, o, r, i) {
|
|
4050
4066
|
return d(), h("select", I({
|
|
4051
4067
|
value: e.value,
|
|
4052
4068
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4053
4069
|
defaultValue: e.defaultValue,
|
|
4054
4070
|
name: e.name,
|
|
4055
4071
|
required: e.required
|
|
4056
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4072
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4057
4073
|
(d(!0), h(w, null, F(e.options, (s, l) => (d(), h("option", {
|
|
4058
4074
|
key: `${s.name}-${l}`,
|
|
4059
4075
|
value: s.value
|
|
4060
|
-
}, le(s.name || s.value), 9,
|
|
4061
|
-
], 16,
|
|
4076
|
+
}, le(s.name || s.value), 9, Fr))), 128))
|
|
4077
|
+
], 16, Ur);
|
|
4062
4078
|
}
|
|
4063
|
-
const
|
|
4079
|
+
const Hr = /* @__PURE__ */ v(Or, [["render", Lr]]), Mr = {
|
|
4064
4080
|
name: "Form:SubmitButton",
|
|
4065
4081
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4066
4082
|
defaultStyles: {
|
|
@@ -4085,17 +4101,17 @@ const Or = /* @__PURE__ */ v(Wr, [["render", Ur]]), Fr = {
|
|
|
4085
4101
|
// that only shows if advanced setting is flipped
|
|
4086
4102
|
// TODO: defaultChildren
|
|
4087
4103
|
// canHaveChildren: true,
|
|
4088
|
-
},
|
|
4104
|
+
}, zr = y({
|
|
4089
4105
|
name: "builder-submit-button",
|
|
4090
4106
|
props: ["attributes", "text"],
|
|
4091
4107
|
data() {
|
|
4092
4108
|
return { filterAttrs: N };
|
|
4093
4109
|
}
|
|
4094
4110
|
});
|
|
4095
|
-
function
|
|
4096
|
-
return d(), h("button", I({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4111
|
+
function jr(e, t, n, o, r, i) {
|
|
4112
|
+
return d(), h("button", I({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), le(e.text), 17);
|
|
4097
4113
|
}
|
|
4098
|
-
const
|
|
4114
|
+
const qr = /* @__PURE__ */ v(zr, [["render", jr]]), Kr = {
|
|
4099
4115
|
name: "Form:TextArea",
|
|
4100
4116
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4101
4117
|
inputs: [{
|
|
@@ -4131,7 +4147,7 @@ const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), qr = {
|
|
|
4131
4147
|
},
|
|
4132
4148
|
static: !0,
|
|
4133
4149
|
noWrap: !0
|
|
4134
|
-
},
|
|
4150
|
+
}, Jr = y({
|
|
4135
4151
|
name: "builder-textarea",
|
|
4136
4152
|
props: [
|
|
4137
4153
|
"attributes",
|
|
@@ -4144,17 +4160,17 @@ const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), qr = {
|
|
|
4144
4160
|
data() {
|
|
4145
4161
|
return { filterAttrs: N };
|
|
4146
4162
|
}
|
|
4147
|
-
}),
|
|
4148
|
-
function
|
|
4163
|
+
}), Gr = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4164
|
+
function Qr(e, t, n, o, r, i) {
|
|
4149
4165
|
return d(), h("textarea", I({
|
|
4150
4166
|
placeholder: e.placeholder,
|
|
4151
4167
|
name: e.name,
|
|
4152
4168
|
value: e.value,
|
|
4153
4169
|
defaultValue: e.defaultValue,
|
|
4154
4170
|
required: e.required
|
|
4155
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4171
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Gr);
|
|
4156
4172
|
}
|
|
4157
|
-
const
|
|
4173
|
+
const Yr = /* @__PURE__ */ v(Jr, [["render", Qr]]), Xr = {
|
|
4158
4174
|
name: "Raw:Img",
|
|
4159
4175
|
hideFromInsertMenu: !0,
|
|
4160
4176
|
image: "https://firebasestorage.googleapis.com/v0/b/builder-3b0a2.appspot.com/o/images%2Fbaseline-insert_photo-24px.svg?alt=media&token=4e5d0ef4-f5e8-4e57-b3a9-38d63a9b9dc4",
|
|
@@ -4162,7 +4178,7 @@ const Gr = /* @__PURE__ */ v(jr, [["render", Kr]]), Jr = {
|
|
|
4162
4178
|
name: "image",
|
|
4163
4179
|
bubble: !0,
|
|
4164
4180
|
type: "file",
|
|
4165
|
-
allowedFileTypes:
|
|
4181
|
+
allowedFileTypes: Be,
|
|
4166
4182
|
required: !0
|
|
4167
4183
|
}, {
|
|
4168
4184
|
name: "backgroundSize",
|
|
@@ -4198,7 +4214,7 @@ const Gr = /* @__PURE__ */ v(jr, [["render", Kr]]), Jr = {
|
|
|
4198
4214
|
defaultValue: 0.7041
|
|
4199
4215
|
}],
|
|
4200
4216
|
noWrap: !0
|
|
4201
|
-
},
|
|
4217
|
+
}, Zr = y({
|
|
4202
4218
|
name: "builder-img-component",
|
|
4203
4219
|
props: [
|
|
4204
4220
|
"imgSrc",
|
|
@@ -4223,13 +4239,13 @@ const Gr = /* @__PURE__ */ v(jr, [["render", Kr]]), Jr = {
|
|
|
4223
4239
|
const e = {
|
|
4224
4240
|
...N(this.attributes, "v-on:", !1),
|
|
4225
4241
|
...N(this.attributes, "v-on:", !0),
|
|
4226
|
-
[
|
|
4242
|
+
[z()]: `builder-raw-img ${this.attributes[z()] || ""}`
|
|
4227
4243
|
};
|
|
4228
4244
|
return delete e.style, e;
|
|
4229
4245
|
}
|
|
4230
4246
|
}
|
|
4231
|
-
}),
|
|
4232
|
-
function
|
|
4247
|
+
}), _r = ["alt", "title", "src"];
|
|
4248
|
+
function ei(e, t, n, o, r, i) {
|
|
4233
4249
|
var s;
|
|
4234
4250
|
return d(), h("img", I({
|
|
4235
4251
|
loading: "lazy",
|
|
@@ -4243,9 +4259,9 @@ function Xr(e, t, n, o, r, i) {
|
|
|
4243
4259
|
aspectRatio: e.aspectRatio || void 0,
|
|
4244
4260
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4245
4261
|
}
|
|
4246
|
-
}, e.imgAttrs), null, 16,
|
|
4262
|
+
}, e.imgAttrs), null, 16, _r);
|
|
4247
4263
|
}
|
|
4248
|
-
const
|
|
4264
|
+
const ti = /* @__PURE__ */ v(Zr, [["render", ei]]), ni = {
|
|
4249
4265
|
name: "Video",
|
|
4250
4266
|
canHaveChildren: !0,
|
|
4251
4267
|
defaultStyles: {
|
|
@@ -4256,14 +4272,14 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
|
|
|
4256
4272
|
inputs: [{
|
|
4257
4273
|
name: "video",
|
|
4258
4274
|
type: "file",
|
|
4259
|
-
allowedFileTypes:
|
|
4275
|
+
allowedFileTypes: Mo,
|
|
4260
4276
|
bubble: !0,
|
|
4261
4277
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4262
4278
|
required: !0
|
|
4263
4279
|
}, {
|
|
4264
4280
|
name: "posterImage",
|
|
4265
4281
|
type: "file",
|
|
4266
|
-
allowedFileTypes:
|
|
4282
|
+
allowedFileTypes: Be,
|
|
4267
4283
|
helperText: "Image to show before the video plays"
|
|
4268
4284
|
}, {
|
|
4269
4285
|
name: "autoPlay",
|
|
@@ -4329,7 +4345,7 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
|
|
|
4329
4345
|
shouldReceiveBuilderProps: {
|
|
4330
4346
|
builderBlock: !0
|
|
4331
4347
|
}
|
|
4332
|
-
},
|
|
4348
|
+
}, oi = y({
|
|
4333
4349
|
name: "builder-video",
|
|
4334
4350
|
props: [
|
|
4335
4351
|
"lazyLoad",
|
|
@@ -4402,16 +4418,16 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
|
|
|
4402
4418
|
};
|
|
4403
4419
|
}
|
|
4404
4420
|
}
|
|
4405
|
-
}),
|
|
4421
|
+
}), ri = { style: {
|
|
4406
4422
|
position: "relative"
|
|
4407
|
-
} },
|
|
4423
|
+
} }, ii = ["preload", "poster"], si = {
|
|
4408
4424
|
key: 1,
|
|
4409
4425
|
style: {
|
|
4410
4426
|
display: "flex",
|
|
4411
4427
|
flexDirection: "column",
|
|
4412
4428
|
alignItems: "stretch"
|
|
4413
4429
|
}
|
|
4414
|
-
},
|
|
4430
|
+
}, ai = {
|
|
4415
4431
|
key: 2,
|
|
4416
4432
|
style: {
|
|
4417
4433
|
pointerEvents: "none",
|
|
@@ -4425,10 +4441,10 @@ const Zr = /* @__PURE__ */ v(Qr, [["render", Xr]]), _r = {
|
|
|
4425
4441
|
height: "100%"
|
|
4426
4442
|
}
|
|
4427
4443
|
};
|
|
4428
|
-
function
|
|
4444
|
+
function li(e, t, n, o, r, i) {
|
|
4429
4445
|
var s, l, a, u, p, f, c;
|
|
4430
|
-
return d(), h("div",
|
|
4431
|
-
|
|
4446
|
+
return d(), h("div", ri, [
|
|
4447
|
+
q("video", I({
|
|
4432
4448
|
class: "builder-video",
|
|
4433
4449
|
ref: "videoRef",
|
|
4434
4450
|
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
@@ -4447,7 +4463,7 @@ function ii(e, t, n, o, r, i) {
|
|
|
4447
4463
|
},
|
|
4448
4464
|
poster: e.posterImage
|
|
4449
4465
|
}, e.spreadProps), [
|
|
4450
|
-
|
|
4466
|
+
q("source", I(
|
|
4451
4467
|
{ type: "video/mp4" },
|
|
4452
4468
|
e.lazyLoad ? {
|
|
4453
4469
|
"data-src": e.video
|
|
@@ -4455,7 +4471,7 @@ function ii(e, t, n, o, r, i) {
|
|
|
4455
4471
|
src: e.video
|
|
4456
4472
|
}
|
|
4457
4473
|
), null, 16)
|
|
4458
|
-
], 16,
|
|
4474
|
+
], 16, ii),
|
|
4459
4475
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
|
|
4460
4476
|
key: 0,
|
|
4461
4477
|
style: M({
|
|
@@ -4465,75 +4481,75 @@ function ii(e, t, n, o, r, i) {
|
|
|
4465
4481
|
fontSize: "0px"
|
|
4466
4482
|
})
|
|
4467
4483
|
}, null, 4)) : C("", !0),
|
|
4468
|
-
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div",
|
|
4484
|
+
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", si, [
|
|
4469
4485
|
V(e.$slots, "default")
|
|
4470
4486
|
])) : C("", !0),
|
|
4471
|
-
(c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div",
|
|
4487
|
+
(c = (f = e.builderBlock) == null ? void 0 : f.children) != null && c.length && !e.fitContent ? (d(), h("div", ai, [
|
|
4472
4488
|
V(e.$slots, "default")
|
|
4473
4489
|
])) : C("", !0)
|
|
4474
4490
|
]);
|
|
4475
4491
|
}
|
|
4476
|
-
const
|
|
4477
|
-
component:
|
|
4478
|
-
...
|
|
4479
|
-
}, {
|
|
4480
|
-
component: vr,
|
|
4481
|
-
...mr
|
|
4482
|
-
}, {
|
|
4483
|
-
component: Rr,
|
|
4484
|
-
...Sr
|
|
4492
|
+
const ci = /* @__PURE__ */ v(oi, [["render", li]]), di = () => [{
|
|
4493
|
+
component: fr,
|
|
4494
|
+
...ur
|
|
4485
4495
|
}, {
|
|
4486
|
-
component:
|
|
4487
|
-
...
|
|
4496
|
+
component: Cr,
|
|
4497
|
+
...br
|
|
4488
4498
|
}, {
|
|
4489
|
-
component:
|
|
4490
|
-
...
|
|
4499
|
+
component: Ar,
|
|
4500
|
+
...Tr
|
|
4491
4501
|
}, {
|
|
4492
|
-
component:
|
|
4493
|
-
...
|
|
4502
|
+
component: Dr,
|
|
4503
|
+
...Br
|
|
4494
4504
|
}, {
|
|
4495
|
-
component:
|
|
4496
|
-
...
|
|
4505
|
+
component: qr,
|
|
4506
|
+
...Mr
|
|
4497
4507
|
}, {
|
|
4498
|
-
component:
|
|
4499
|
-
...
|
|
4508
|
+
component: Hr,
|
|
4509
|
+
...xr
|
|
4500
4510
|
}, {
|
|
4501
|
-
component:
|
|
4502
|
-
...
|
|
4503
|
-
}], Me = () => [{
|
|
4504
|
-
component: Ot,
|
|
4505
|
-
...xo
|
|
4511
|
+
component: Yr,
|
|
4512
|
+
...Kr
|
|
4506
4513
|
}, {
|
|
4507
|
-
component:
|
|
4508
|
-
...
|
|
4514
|
+
component: ti,
|
|
4515
|
+
...Xr
|
|
4509
4516
|
}, {
|
|
4510
|
-
component:
|
|
4511
|
-
...
|
|
4517
|
+
component: ci,
|
|
4518
|
+
...ni
|
|
4519
|
+
}], Ke = () => [{
|
|
4520
|
+
component: Lt,
|
|
4521
|
+
...Fo
|
|
4512
4522
|
}, {
|
|
4513
|
-
component:
|
|
4523
|
+
component: so,
|
|
4514
4524
|
...Lo
|
|
4515
4525
|
}, {
|
|
4516
|
-
component:
|
|
4526
|
+
component: co,
|
|
4527
|
+
...Ho
|
|
4528
|
+
}, {
|
|
4529
|
+
component: yo,
|
|
4517
4530
|
...zo
|
|
4518
4531
|
}, {
|
|
4519
|
-
component:
|
|
4520
|
-
...
|
|
4532
|
+
component: ko,
|
|
4533
|
+
...Go
|
|
4521
4534
|
}, {
|
|
4522
|
-
component:
|
|
4523
|
-
...
|
|
4535
|
+
component: Zo,
|
|
4536
|
+
...Qo
|
|
4524
4537
|
}, {
|
|
4525
|
-
component:
|
|
4526
|
-
...
|
|
4527
|
-
},
|
|
4528
|
-
component:
|
|
4529
|
-
...
|
|
4538
|
+
component: Gi,
|
|
4539
|
+
..._o
|
|
4540
|
+
}, {
|
|
4541
|
+
component: dr,
|
|
4542
|
+
...sr
|
|
4543
|
+
}, ...vt.includes(R) ? [{
|
|
4544
|
+
component: Jo,
|
|
4545
|
+
...jo
|
|
4530
4546
|
}] : [], {
|
|
4531
|
-
component:
|
|
4532
|
-
...
|
|
4547
|
+
component: ir,
|
|
4548
|
+
...er
|
|
4533
4549
|
}, {
|
|
4534
|
-
component:
|
|
4535
|
-
...
|
|
4536
|
-
}, ...
|
|
4550
|
+
component: Uo,
|
|
4551
|
+
...No
|
|
4552
|
+
}, ...di()], ui = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4537
4553
|
function getAndSetVariantId() {
|
|
4538
4554
|
function setCookie(name, value, days) {
|
|
4539
4555
|
let expires = '';
|
|
@@ -4592,7 +4608,7 @@ const si = /* @__PURE__ */ v(ei, [["render", ii]]), ai = () => [{
|
|
|
4592
4608
|
}).join('');
|
|
4593
4609
|
styleEl.innerHTML = newStyleStr;
|
|
4594
4610
|
}
|
|
4595
|
-
}`,
|
|
4611
|
+
}`, pi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4596
4612
|
if (!navigator.cookieEnabled) {
|
|
4597
4613
|
return;
|
|
4598
4614
|
}
|
|
@@ -4626,37 +4642,37 @@ const si = /* @__PURE__ */ v(ei, [["render", ii]]), ai = () => [{
|
|
|
4626
4642
|
thisScriptEl?.remove();
|
|
4627
4643
|
}
|
|
4628
4644
|
return;
|
|
4629
|
-
}`,
|
|
4645
|
+
}`, ke = "builderIoAbTest", Ce = "builderIoRenderContent", oe = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4630
4646
|
...t,
|
|
4631
4647
|
testVariationId: t.id,
|
|
4632
4648
|
id: e == null ? void 0 : e.id
|
|
4633
|
-
})),
|
|
4649
|
+
})), mi = ({
|
|
4634
4650
|
canTrack: e,
|
|
4635
4651
|
content: t
|
|
4636
|
-
}) => !(!(oe(t).length > 0) || !e),
|
|
4652
|
+
}) => !(!(oe(t).length > 0) || !e), hi = (e) => e === "react" || e === "reactNative", fi = R === "angular", Ne = hi(R), bi = () => `
|
|
4637
4653
|
(function() {
|
|
4638
|
-
if (!window.${
|
|
4639
|
-
window.${
|
|
4654
|
+
if (!window.${ke}) {
|
|
4655
|
+
window.${ke} = ${ui};
|
|
4640
4656
|
}
|
|
4641
|
-
if (!window.${
|
|
4642
|
-
window.${
|
|
4643
|
-
}${
|
|
4657
|
+
if (!window.${Ce}) {
|
|
4658
|
+
window.${Ce} = ${pi};
|
|
4659
|
+
}${Ne ? `
|
|
4644
4660
|
var thisScriptEl = document.currentScript;
|
|
4645
4661
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
4646
4662
|
})();
|
|
4647
|
-
`,
|
|
4648
|
-
window.${
|
|
4649
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4650
|
-
)`,
|
|
4663
|
+
`, gi = (e, t) => `
|
|
4664
|
+
window.${ke}(
|
|
4665
|
+
"${t}",${JSON.stringify(e)}, ${Ne}, ${fi}
|
|
4666
|
+
)`, yi = ({
|
|
4651
4667
|
contentId: e,
|
|
4652
4668
|
variationId: t
|
|
4653
|
-
}) => `window.${
|
|
4654
|
-
"${t}", "${e}", ${
|
|
4669
|
+
}) => `window.${Ce}(
|
|
4670
|
+
"${t}", "${e}", ${Ne}
|
|
4655
4671
|
)`;
|
|
4656
|
-
function
|
|
4672
|
+
function Je(e) {
|
|
4657
4673
|
return Math.round(e * 1e3) / 1e3;
|
|
4658
4674
|
}
|
|
4659
|
-
const
|
|
4675
|
+
const vi = (e, t, n = !0) => {
|
|
4660
4676
|
if (!(e instanceof HTMLElement))
|
|
4661
4677
|
return null;
|
|
4662
4678
|
let o = n ? e : e.parentElement;
|
|
@@ -4667,35 +4683,35 @@ const bi = (e, t, n = !0) => {
|
|
|
4667
4683
|
return o;
|
|
4668
4684
|
} while (o = o.parentElement);
|
|
4669
4685
|
return null;
|
|
4670
|
-
},
|
|
4686
|
+
}, Si = (e) => vi(e, (t) => {
|
|
4671
4687
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4672
4688
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4673
|
-
}),
|
|
4689
|
+
}), Ge = ({
|
|
4674
4690
|
event: e,
|
|
4675
4691
|
target: t
|
|
4676
4692
|
}) => {
|
|
4677
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
4693
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Je(o / n.width), s = Je(r / n.height);
|
|
4678
4694
|
return {
|
|
4679
4695
|
x: i,
|
|
4680
4696
|
y: s
|
|
4681
4697
|
};
|
|
4682
|
-
},
|
|
4683
|
-
const t = e.target, n = t &&
|
|
4698
|
+
}, ki = (e) => {
|
|
4699
|
+
const t = e.target, n = t && Si(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4684
4700
|
return {
|
|
4685
4701
|
targetBuilderElement: o || void 0,
|
|
4686
4702
|
metadata: {
|
|
4687
|
-
targetOffset: t ?
|
|
4703
|
+
targetOffset: t ? Ge({
|
|
4688
4704
|
event: e,
|
|
4689
4705
|
target: t
|
|
4690
4706
|
}) : void 0,
|
|
4691
|
-
builderTargetOffset: n ?
|
|
4707
|
+
builderTargetOffset: n ? Ge({
|
|
4692
4708
|
event: e,
|
|
4693
4709
|
target: n
|
|
4694
4710
|
}) : void 0,
|
|
4695
4711
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4696
4712
|
}
|
|
4697
4713
|
};
|
|
4698
|
-
},
|
|
4714
|
+
}, Ci = ["svelte", "qwik", "vue"], Ti = () => Ci.includes(R) && (A() || $e()), wi = (e) => {
|
|
4699
4715
|
var i;
|
|
4700
4716
|
const t = e.family + (e.kind && !e.kind.includes("#") ? ", " + e.kind : ""), n = t.split(",")[0], o = e.fileUrl ?? ((i = e == null ? void 0 : e.files) == null ? void 0 : i.regular);
|
|
4701
4717
|
let r = "";
|
|
@@ -4721,15 +4737,15 @@ font-weight: ${s};
|
|
|
4721
4737
|
`.trim());
|
|
4722
4738
|
}
|
|
4723
4739
|
return r;
|
|
4724
|
-
},
|
|
4740
|
+
}, Ii = ({
|
|
4725
4741
|
customFonts: e
|
|
4726
4742
|
}) => {
|
|
4727
4743
|
var t;
|
|
4728
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4729
|
-
},
|
|
4744
|
+
return ((t = e == null ? void 0 : e.map((n) => wi(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4745
|
+
}, $i = ({
|
|
4730
4746
|
cssCode: e,
|
|
4731
4747
|
contentId: t
|
|
4732
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4748
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Ri = `
|
|
4733
4749
|
.builder-button {
|
|
4734
4750
|
all: unset;
|
|
4735
4751
|
}
|
|
@@ -4746,7 +4762,7 @@ font-weight: ${s};
|
|
|
4746
4762
|
text-align: inherit;
|
|
4747
4763
|
font-family: inherit;
|
|
4748
4764
|
}
|
|
4749
|
-
`,
|
|
4765
|
+
`, Ei = (e) => e ? "" : Ri, Pi = (e) => `variant-${e}`, Ai = y({
|
|
4750
4766
|
name: "enable-editor",
|
|
4751
4767
|
components: { DynamicDiv: ee },
|
|
4752
4768
|
props: [
|
|
@@ -4772,13 +4788,14 @@ font-weight: ${s};
|
|
|
4772
4788
|
contextValue: this.builderContextSignal,
|
|
4773
4789
|
prevData: null,
|
|
4774
4790
|
prevLocale: "",
|
|
4791
|
+
prevContent: null,
|
|
4775
4792
|
ContentWrapper: this.contentWrapper || "div",
|
|
4776
4793
|
httpReqsData: {},
|
|
4777
4794
|
httpReqsPending: {},
|
|
4778
4795
|
clicked: !1,
|
|
4779
4796
|
builderContext: he,
|
|
4780
|
-
needsElementRefDivForEditing:
|
|
4781
|
-
getWrapperClassName:
|
|
4797
|
+
needsElementRefDivForEditing: Ti,
|
|
4798
|
+
getWrapperClassName: Pi
|
|
4782
4799
|
};
|
|
4783
4800
|
},
|
|
4784
4801
|
provide() {
|
|
@@ -4796,13 +4813,13 @@ font-weight: ${s};
|
|
|
4796
4813
|
A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4797
4814
|
new CustomEvent("initeditingbldr")
|
|
4798
4815
|
);
|
|
4799
|
-
const o = this.builderContextSignal.content && K(this.canTrack), r =
|
|
4816
|
+
const o = this.builderContextSignal.content && K(this.canTrack), r = we({
|
|
4800
4817
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
4801
4818
|
canTrack: !0
|
|
4802
4819
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
4803
4820
|
if (o && i === r) {
|
|
4804
4821
|
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
|
|
4805
|
-
|
|
4822
|
+
xe({
|
|
4806
4823
|
apiHost: this.apiHost,
|
|
4807
4824
|
type: "impression",
|
|
4808
4825
|
canTrack: !0,
|
|
@@ -4811,7 +4828,7 @@ font-weight: ${s};
|
|
|
4811
4828
|
variationId: r !== s ? r : void 0
|
|
4812
4829
|
});
|
|
4813
4830
|
}
|
|
4814
|
-
|
|
4831
|
+
$e() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4815
4832
|
new CustomEvent("initpreviewingbldr")
|
|
4816
4833
|
);
|
|
4817
4834
|
}
|
|
@@ -4913,7 +4930,7 @@ font-weight: ${s};
|
|
|
4913
4930
|
this.builderContextSignal.content = n;
|
|
4914
4931
|
},
|
|
4915
4932
|
processMessage(e) {
|
|
4916
|
-
return
|
|
4933
|
+
return st({
|
|
4917
4934
|
model: this.model,
|
|
4918
4935
|
trustedHosts: this.trustedHosts,
|
|
4919
4936
|
callbacks: {
|
|
@@ -4927,7 +4944,7 @@ font-weight: ${s};
|
|
|
4927
4944
|
});
|
|
4928
4945
|
},
|
|
4929
4946
|
animation: (t) => {
|
|
4930
|
-
|
|
4947
|
+
mt(t);
|
|
4931
4948
|
},
|
|
4932
4949
|
contentUpdate: (t, n) => {
|
|
4933
4950
|
this.mergeNewContent(t, n);
|
|
@@ -4942,14 +4959,14 @@ font-weight: ${s};
|
|
|
4942
4959
|
var t, n;
|
|
4943
4960
|
if (this.builderContextSignal.content) {
|
|
4944
4961
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
4945
|
-
|
|
4962
|
+
xe({
|
|
4946
4963
|
apiHost: this.apiHost,
|
|
4947
4964
|
type: "click",
|
|
4948
4965
|
canTrack: K(this.canTrack),
|
|
4949
4966
|
contentId: r,
|
|
4950
4967
|
apiKey: this.apiKey,
|
|
4951
4968
|
variationId: o !== r ? o : void 0,
|
|
4952
|
-
...
|
|
4969
|
+
...ki(e),
|
|
4953
4970
|
unique: !this.clicked
|
|
4954
4971
|
});
|
|
4955
4972
|
}
|
|
@@ -4987,7 +5004,7 @@ font-weight: ${s};
|
|
|
4987
5004
|
url: l,
|
|
4988
5005
|
method: "GET"
|
|
4989
5006
|
};
|
|
4990
|
-
|
|
5007
|
+
_e(JSON.stringify(a));
|
|
4991
5008
|
const u = {
|
|
4992
5009
|
method: a.method,
|
|
4993
5010
|
headers: a.headers,
|
|
@@ -5015,7 +5032,7 @@ font-weight: ${s};
|
|
|
5015
5032
|
"builder:component:stateChange",
|
|
5016
5033
|
{
|
|
5017
5034
|
detail: {
|
|
5018
|
-
state:
|
|
5035
|
+
state: Te(this.builderContextSignal.rootState),
|
|
5019
5036
|
ref: {
|
|
5020
5037
|
name: this.model
|
|
5021
5038
|
}
|
|
@@ -5025,7 +5042,7 @@ font-weight: ${s};
|
|
|
5025
5042
|
);
|
|
5026
5043
|
},
|
|
5027
5044
|
elementRef_onIniteditingbldr(e) {
|
|
5028
|
-
window.addEventListener("message", this.processMessage),
|
|
5045
|
+
window.addEventListener("message", this.processMessage), it({
|
|
5029
5046
|
...this.locale ? {
|
|
5030
5047
|
locale: this.locale
|
|
5031
5048
|
} : {},
|
|
@@ -5042,7 +5059,7 @@ font-weight: ${s};
|
|
|
5042
5059
|
).forEach((t) => {
|
|
5043
5060
|
var n, o;
|
|
5044
5061
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
5045
|
-
const r =
|
|
5062
|
+
const r = rn(t);
|
|
5046
5063
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
5047
5064
|
}
|
|
5048
5065
|
}), window.addEventListener(
|
|
@@ -5055,7 +5072,7 @@ font-weight: ${s};
|
|
|
5055
5072
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5056
5073
|
`builder.overrides.${n}`
|
|
5057
5074
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5058
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5075
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Pe({
|
|
5059
5076
|
model: this.model,
|
|
5060
5077
|
apiKey: this.apiKey,
|
|
5061
5078
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5070,7 +5087,7 @@ font-weight: ${s};
|
|
|
5070
5087
|
}
|
|
5071
5088
|
}
|
|
5072
5089
|
});
|
|
5073
|
-
function
|
|
5090
|
+
function Bi(e, t, n, o, r, i) {
|
|
5074
5091
|
var s, l, a;
|
|
5075
5092
|
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(Y(e.ContentWrapper), I({
|
|
5076
5093
|
key: 0,
|
|
@@ -5091,26 +5108,26 @@ function Ei(e, t, n, o, r, i) {
|
|
|
5091
5108
|
_: 3
|
|
5092
5109
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : C("", !0);
|
|
5093
5110
|
}
|
|
5094
|
-
const
|
|
5111
|
+
const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = y({
|
|
5095
5112
|
name: "content-styles",
|
|
5096
5113
|
components: { InlinedStyles: ce },
|
|
5097
5114
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5098
5115
|
data() {
|
|
5099
5116
|
return {
|
|
5100
5117
|
injectedStyles: `
|
|
5101
|
-
${
|
|
5118
|
+
${$i({
|
|
5102
5119
|
cssCode: this.cssCode,
|
|
5103
5120
|
contentId: this.contentId
|
|
5104
5121
|
})}
|
|
5105
|
-
${
|
|
5122
|
+
${Ii({
|
|
5106
5123
|
customFonts: this.customFonts
|
|
5107
5124
|
})}
|
|
5108
|
-
${
|
|
5125
|
+
${Ei(this.isNestedRender)}
|
|
5109
5126
|
`.trim()
|
|
5110
5127
|
};
|
|
5111
5128
|
}
|
|
5112
5129
|
});
|
|
5113
|
-
function
|
|
5130
|
+
function Wi(e, t, n, o, r, i) {
|
|
5114
5131
|
const s = k("InlinedStyles");
|
|
5115
5132
|
return d(), S(s, {
|
|
5116
5133
|
id: "builderio-content",
|
|
@@ -5118,7 +5135,7 @@ function Bi(e, t, n, o, r, i) {
|
|
|
5118
5135
|
nonce: e.nonce
|
|
5119
5136
|
}, null, 8, ["styles", "nonce"]);
|
|
5120
5137
|
}
|
|
5121
|
-
const
|
|
5138
|
+
const Di = /* @__PURE__ */ v(Ni, [["render", Wi]]), xi = ({
|
|
5122
5139
|
content: e,
|
|
5123
5140
|
data: t,
|
|
5124
5141
|
locale: n
|
|
@@ -5135,7 +5152,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
|
|
|
5135
5152
|
locale: n
|
|
5136
5153
|
} : {}
|
|
5137
5154
|
};
|
|
5138
|
-
},
|
|
5155
|
+
}, Oi = ({
|
|
5139
5156
|
content: e,
|
|
5140
5157
|
data: t
|
|
5141
5158
|
}) => e ? {
|
|
@@ -5145,12 +5162,12 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
|
|
|
5145
5162
|
...t
|
|
5146
5163
|
},
|
|
5147
5164
|
meta: e == null ? void 0 : e.meta
|
|
5148
|
-
} : void 0,
|
|
5165
|
+
} : void 0, Ui = Tt, Fi = y({
|
|
5149
5166
|
name: "content-component",
|
|
5150
5167
|
components: {
|
|
5151
|
-
EnableEditor:
|
|
5152
|
-
InlinedScript:
|
|
5153
|
-
ContentStyles:
|
|
5168
|
+
EnableEditor: Vi,
|
|
5169
|
+
InlinedScript: Ve,
|
|
5170
|
+
ContentStyles: Di,
|
|
5154
5171
|
Blocks: j,
|
|
5155
5172
|
DynamicDiv: ee
|
|
5156
5173
|
},
|
|
@@ -5180,32 +5197,32 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
|
|
|
5180
5197
|
data() {
|
|
5181
5198
|
var e, t;
|
|
5182
5199
|
return {
|
|
5183
|
-
scriptStr:
|
|
5200
|
+
scriptStr: yi({
|
|
5184
5201
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5185
5202
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5186
5203
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5187
5204
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5188
5205
|
}),
|
|
5189
5206
|
registeredComponents: [
|
|
5190
|
-
...
|
|
5207
|
+
...Ke(),
|
|
5191
5208
|
...this.customComponents || []
|
|
5192
5209
|
].reduce(
|
|
5193
5210
|
(n, { component: o, ...r }) => ({
|
|
5194
5211
|
...n,
|
|
5195
5212
|
[r.name]: {
|
|
5196
|
-
component:
|
|
5213
|
+
component: Ui(o),
|
|
5197
5214
|
...se(r)
|
|
5198
5215
|
}
|
|
5199
5216
|
}),
|
|
5200
5217
|
{}
|
|
5201
5218
|
),
|
|
5202
5219
|
builderContextSignal: {
|
|
5203
|
-
content:
|
|
5220
|
+
content: Oi({
|
|
5204
5221
|
content: this.content,
|
|
5205
5222
|
data: this.data
|
|
5206
5223
|
}),
|
|
5207
5224
|
localState: void 0,
|
|
5208
|
-
rootState:
|
|
5225
|
+
rootState: xi({
|
|
5209
5226
|
content: this.content,
|
|
5210
5227
|
data: this.data,
|
|
5211
5228
|
locale: this.locale
|
|
@@ -5216,7 +5233,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
|
|
|
5216
5233
|
apiKey: this.apiKey,
|
|
5217
5234
|
apiVersion: this.apiVersion,
|
|
5218
5235
|
componentInfos: [
|
|
5219
|
-
...
|
|
5236
|
+
...Ke(),
|
|
5220
5237
|
...this.customComponents || []
|
|
5221
5238
|
].reduce(
|
|
5222
5239
|
(n, { component: o, ...r }) => ({
|
|
@@ -5237,7 +5254,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
|
|
|
5237
5254
|
provide() {
|
|
5238
5255
|
const e = this;
|
|
5239
5256
|
return {
|
|
5240
|
-
[
|
|
5257
|
+
[et.key]: {
|
|
5241
5258
|
registeredComponents: e.registeredComponents
|
|
5242
5259
|
}
|
|
5243
5260
|
};
|
|
@@ -5281,7 +5298,7 @@ const Vi = /* @__PURE__ */ v(Ai, [["render", Bi]]), Ni = ({
|
|
|
5281
5298
|
}
|
|
5282
5299
|
}
|
|
5283
5300
|
});
|
|
5284
|
-
function
|
|
5301
|
+
function Li(e, t, n, o, r, i) {
|
|
5285
5302
|
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
5286
5303
|
return d(), S(u, I({
|
|
5287
5304
|
apiHost: e.apiHost,
|
|
@@ -5329,19 +5346,19 @@ function Ui(e, t, n, o, r, i) {
|
|
|
5329
5346
|
_: 1
|
|
5330
5347
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5331
5348
|
}
|
|
5332
|
-
const
|
|
5349
|
+
const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = y({
|
|
5333
5350
|
name: "content-variants",
|
|
5334
5351
|
components: {
|
|
5335
|
-
InlinedScript:
|
|
5352
|
+
InlinedScript: Ve,
|
|
5336
5353
|
InlinedStyles: ce,
|
|
5337
|
-
ContentComponent:
|
|
5354
|
+
ContentComponent: Hi
|
|
5338
5355
|
},
|
|
5339
5356
|
props: [
|
|
5340
5357
|
"canTrack",
|
|
5341
5358
|
"content",
|
|
5342
|
-
"isNestedRender",
|
|
5343
5359
|
"nonce",
|
|
5344
5360
|
"apiHost",
|
|
5361
|
+
"isNestedRender",
|
|
5345
5362
|
"model",
|
|
5346
5363
|
"data",
|
|
5347
5364
|
"context",
|
|
@@ -5359,14 +5376,15 @@ const Oi = /* @__PURE__ */ v(xi, [["render", Ui]]), Fi = y({
|
|
|
5359
5376
|
],
|
|
5360
5377
|
data() {
|
|
5361
5378
|
return {
|
|
5362
|
-
shouldRenderVariants:
|
|
5379
|
+
shouldRenderVariants: mi({
|
|
5363
5380
|
canTrack: K(this.canTrack),
|
|
5364
5381
|
content: this.content
|
|
5365
5382
|
}),
|
|
5366
|
-
|
|
5367
|
-
|
|
5383
|
+
shouldEmitPersonalizationFns: Po(this.content),
|
|
5384
|
+
SDKS_SUPPORTING_PERSONALIZATION: vt,
|
|
5385
|
+
getInitPersonalizationVariantsFnsScriptString: Ao,
|
|
5368
5386
|
TARGET: R,
|
|
5369
|
-
getInitVariantsFnsScriptString:
|
|
5387
|
+
getInitVariantsFnsScriptString: bi,
|
|
5370
5388
|
getVariants: oe
|
|
5371
5389
|
};
|
|
5372
5390
|
},
|
|
@@ -5375,7 +5393,7 @@ const Oi = /* @__PURE__ */ v(xi, [["render", Ui]]), Fi = y({
|
|
|
5375
5393
|
computed: {
|
|
5376
5394
|
updateCookieAndStylesScriptStr() {
|
|
5377
5395
|
var e;
|
|
5378
|
-
return
|
|
5396
|
+
return gi(
|
|
5379
5397
|
oe(this.content).map((t) => ({
|
|
5380
5398
|
id: t.testVariationId,
|
|
5381
5399
|
testRatio: t.testRatio
|
|
@@ -5391,17 +5409,17 @@ const Oi = /* @__PURE__ */ v(xi, [["render", Ui]]), Fi = y({
|
|
|
5391
5409
|
return this.shouldRenderVariants ? {
|
|
5392
5410
|
...this.content,
|
|
5393
5411
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5394
|
-
} :
|
|
5412
|
+
} : fn({
|
|
5395
5413
|
item: this.content,
|
|
5396
5414
|
canTrack: K(this.canTrack)
|
|
5397
5415
|
});
|
|
5398
5416
|
}
|
|
5399
5417
|
}
|
|
5400
5418
|
});
|
|
5401
|
-
function
|
|
5419
|
+
function zi(e, t, n, o, r, i) {
|
|
5402
5420
|
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5403
5421
|
return d(), h(w, null, [
|
|
5404
|
-
|
|
5422
|
+
e.shouldEmitPersonalizationFns ? (d(), h(w, { key: 0 }, [
|
|
5405
5423
|
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(s, {
|
|
5406
5424
|
key: 0,
|
|
5407
5425
|
id: "builderio-init-personalization-variants-fns",
|
|
@@ -5477,13 +5495,13 @@ function Li(e, t, n, o, r, i) {
|
|
|
5477
5495
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5478
5496
|
], 64);
|
|
5479
5497
|
}
|
|
5480
|
-
const
|
|
5498
|
+
const ji = /* @__PURE__ */ v(Mi, [["render", zi]]), qi = async ({
|
|
5481
5499
|
builderContextValue: e,
|
|
5482
5500
|
symbol: t
|
|
5483
5501
|
}) => {
|
|
5484
5502
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5485
5503
|
(e != null && e.apiKey))
|
|
5486
|
-
return
|
|
5504
|
+
return Pe({
|
|
5487
5505
|
model: t.model,
|
|
5488
5506
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5489
5507
|
apiVersion: e.apiVersion,
|
|
@@ -5495,9 +5513,9 @@ const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
|
|
|
5495
5513
|
}).catch((n) => {
|
|
5496
5514
|
L.error("Could not fetch symbol content: ", n);
|
|
5497
5515
|
});
|
|
5498
|
-
},
|
|
5516
|
+
}, Ki = y({
|
|
5499
5517
|
name: "builder-symbol",
|
|
5500
|
-
components: { ContentVariants:
|
|
5518
|
+
components: { ContentVariants: ji, DynamicDiv: ee },
|
|
5501
5519
|
props: [
|
|
5502
5520
|
"symbol",
|
|
5503
5521
|
"builderComponents",
|
|
@@ -5539,7 +5557,7 @@ const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
|
|
|
5539
5557
|
className() {
|
|
5540
5558
|
var e, t;
|
|
5541
5559
|
return [
|
|
5542
|
-
this.attributes[
|
|
5560
|
+
this.attributes[z()],
|
|
5543
5561
|
"builder-symbol",
|
|
5544
5562
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
5545
5563
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -5554,7 +5572,7 @@ const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
|
|
|
5554
5572
|
methods: {
|
|
5555
5573
|
setContent() {
|
|
5556
5574
|
var e;
|
|
5557
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
5575
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || qi({
|
|
5558
5576
|
symbol: this.symbol,
|
|
5559
5577
|
builderContextValue: this.builderContext
|
|
5560
5578
|
}).then((t) => {
|
|
@@ -5564,10 +5582,10 @@ const Hi = /* @__PURE__ */ v(Fi, [["render", Li]]), Mi = async ({
|
|
|
5564
5582
|
}
|
|
5565
5583
|
}
|
|
5566
5584
|
});
|
|
5567
|
-
function
|
|
5585
|
+
function Ji(e, t, n, o, r, i) {
|
|
5568
5586
|
var l, a, u, p, f, c, m;
|
|
5569
5587
|
const s = k("ContentVariants");
|
|
5570
|
-
return d(), h("div", I({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
5588
|
+
return d(), h("div", I({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5571
5589
|
$(s, {
|
|
5572
5590
|
nonce: e.builderContext.nonce,
|
|
5573
5591
|
isNestedRender: !0,
|
|
@@ -5592,43 +5610,43 @@ function ji(e, t, n, o, r, i) {
|
|
|
5592
5610
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5593
5611
|
], 16);
|
|
5594
5612
|
}
|
|
5595
|
-
const
|
|
5613
|
+
const Gi = /* @__PURE__ */ v(Ki, [["render", Ji]]);
|
|
5596
5614
|
export {
|
|
5597
|
-
|
|
5598
|
-
|
|
5599
|
-
|
|
5600
|
-
|
|
5601
|
-
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5615
|
+
Pe as A,
|
|
5616
|
+
gt as B,
|
|
5617
|
+
so as C,
|
|
5618
|
+
Xi as D,
|
|
5619
|
+
ss as E,
|
|
5620
|
+
co as F,
|
|
5621
|
+
yo as I,
|
|
5622
|
+
ko as S,
|
|
5623
|
+
dr as T,
|
|
5624
|
+
ci as V,
|
|
5607
5625
|
v as _,
|
|
5608
|
-
|
|
5626
|
+
z as a,
|
|
5609
5627
|
he as b,
|
|
5610
5628
|
ce as c,
|
|
5611
|
-
|
|
5629
|
+
no as d,
|
|
5612
5630
|
_ as e,
|
|
5613
|
-
|
|
5614
|
-
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5619
|
-
|
|
5631
|
+
rs as f,
|
|
5632
|
+
is as g,
|
|
5633
|
+
as as h,
|
|
5634
|
+
Ae as i,
|
|
5635
|
+
on as j,
|
|
5636
|
+
Lt as k,
|
|
5637
|
+
Gi as l,
|
|
5620
5638
|
j as m,
|
|
5621
|
-
|
|
5622
|
-
|
|
5623
|
-
|
|
5624
|
-
|
|
5625
|
-
|
|
5626
|
-
|
|
5627
|
-
|
|
5628
|
-
|
|
5629
|
-
|
|
5630
|
-
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
|
|
5639
|
+
ji as n,
|
|
5640
|
+
$e as o,
|
|
5641
|
+
rn as p,
|
|
5642
|
+
_i as q,
|
|
5643
|
+
Zi as r,
|
|
5644
|
+
ns as s,
|
|
5645
|
+
es as t,
|
|
5646
|
+
ot as u,
|
|
5647
|
+
ts as v,
|
|
5648
|
+
Ui as w,
|
|
5649
|
+
os as x,
|
|
5650
|
+
$n as y,
|
|
5651
|
+
Rn as z
|
|
5634
5652
|
};
|