@builder.io/sdk-vue 5.2.12 → 5.2.14
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-nbyjYGTm.js → awaiter-Tk-uzs05.js} +1 -1
- package/lib/browser/{awaiter-_vJybpjE.cjs → awaiter-kpfXcn3P.cjs} +1 -1
- package/lib/browser/{block-wrapper-H2uWRFfl.js → block-wrapper--DIgpG8b.js} +3 -3
- package/lib/browser/{block-wrapper-LaZs4cQn.cjs → block-wrapper-KjvCvLp3.cjs} +1 -1
- package/lib/browser/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -2
- package/lib/browser/blocks/personalization-container/personalization-container.vue.d.ts +3 -1
- package/lib/browser/{component-ref-VXY67QLx.cjs → component-ref-MchEmL6v.cjs} +1 -1
- package/lib/browser/{component-ref-pzekKy-e.js → component-ref-wPMzznC-.js} +4 -4
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-k4bCVM0L.cjs → get-block-properties-V6ujGOJX.cjs} +1 -1
- package/lib/browser/{get-block-properties-pJvtXJrC.js → get-block-properties-sC22Pd4M.js} +1 -1
- package/lib/browser/helpers/studio-user-attributes.d.ts +6 -0
- package/lib/browser/helpers/user-attributes.d.ts +6 -2
- package/lib/browser/{index-FQjXUcZa.cjs → index-eYd0n1Z9.cjs} +47 -29
- package/lib/browser/{index-3BT-zvy_.js → index-q5KAlbTD.js} +666 -628
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-f81HRMwD.js → live-edit-1s4rW-oi.js} +1 -1
- package/lib/browser/{live-edit-QecbSljF.cjs → live-edit-9XphbhT5.cjs} +1 -1
- package/lib/browser/{repeated-block-z4-Tq0vb.js → repeated-block-6I_L8WXH.js} +2 -2
- package/lib/browser/{repeated-block-pzyWtt9k.cjs → repeated-block-qqRzg5S3.cjs} +1 -1
- package/lib/browser/{style-wrapper-XQIDj12j.js → style-wrapper-AiMrF8oQ.js} +1 -1
- package/lib/browser/{style-wrapper-wOCgRtEf.cjs → style-wrapper-oXSOdp7i.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-cczNFZYf.js → awaiter-i2AdsCLA.js} +1 -1
- package/lib/edge/{awaiter-kqWOzygI.cjs → awaiter-oLM9Kafz.cjs} +1 -1
- package/lib/edge/{block-wrapper-TCG6J1wM.js → block-wrapper-nYJgVIz5.js} +3 -3
- package/lib/{node/block-wrapper-B7fQ00-T.cjs → edge/block-wrapper-rZzzi9tk.cjs} +1 -1
- package/lib/edge/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -2
- package/lib/edge/blocks/personalization-container/personalization-container.vue.d.ts +3 -1
- package/lib/edge/{component-ref-ke62ODDh.js → component-ref-8BywBvXD.js} +4 -4
- package/lib/edge/{component-ref-zHNGcCjv.cjs → component-ref-odWOhi_i.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-GLe5pKJ-.js → get-block-properties-gH_Kp754.js} +1 -1
- package/lib/edge/{get-block-properties-g3UUmViz.cjs → get-block-properties-mzlco-kS.cjs} +1 -1
- package/lib/edge/helpers/studio-user-attributes.d.ts +6 -0
- package/lib/edge/helpers/user-attributes.d.ts +6 -2
- package/lib/edge/{index-Q1mE-A20.cjs → index-fLvRlV0a.cjs} +55 -37
- package/lib/edge/{index-NPl2zFFt.js → index-uUniK2S-.js} +1016 -978
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-Qt7v1n8V.cjs → edge/live-edit-8fBzO7UA.cjs} +1 -1
- package/lib/edge/{live-edit-mfyAZvt8.js → live-edit-uzPvpQRs.js} +1 -1
- package/lib/edge/{repeated-block-lZx6tufR.js → repeated-block-KJK6coeA.js} +2 -2
- package/lib/edge/{repeated-block-fItsEFz7.cjs → repeated-block-eRX3Ydm1.cjs} +1 -1
- package/lib/edge/{style-wrapper-C9W8emFx.js → style-wrapper-RcIKOtCX.js} +1 -1
- package/lib/edge/{style-wrapper-9SPXPEOl.cjs → style-wrapper-WHWVSrwf.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-Se1nH_ny.cjs → awaiter-7RsOWoyq.cjs} +1 -1
- package/lib/node/{awaiter-if1ZrvLi.js → awaiter-IvU_d6zV.js} +1 -1
- package/lib/{edge/block-wrapper-WHxKG2JN.cjs → node/block-wrapper-O3lGNLaZ.cjs} +1 -1
- package/lib/node/{block-wrapper-Nkj9awCA.js → block-wrapper-oh8Zqv4S.js} +3 -3
- package/lib/node/blocks/personalization-container/helpers/inlined-fns.d.ts +8 -2
- package/lib/node/blocks/personalization-container/personalization-container.vue.d.ts +3 -1
- package/lib/node/{component-ref-IheEdKTm.js → component-ref-1qW10r9i.js} +5 -5
- package/lib/node/{component-ref-BFKh4Vpb.cjs → component-ref-E-hRkGgX.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-I05vUwHl.js → get-block-properties-3-Ytk96K.js} +2 -2
- package/lib/node/{get-block-properties-NSTAD_o0.cjs → get-block-properties-FntOk9gG.cjs} +1 -1
- package/lib/node/helpers/studio-user-attributes.d.ts +6 -0
- package/lib/node/helpers/user-attributes.d.ts +6 -2
- package/lib/node/{index-jBWgo8LI.cjs → index-Ebn2XpZy.cjs} +47 -29
- package/lib/node/{index-vP-oPL56.js → index-JPN0TMGI.js} +557 -519
- 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-NlcA1TEi.cjs → node/live-edit-Fyy2dLmN.cjs} +1 -1
- package/lib/node/{live-edit-yKSQ0yqr.js → live-edit-nQcPabEF.js} +1 -1
- package/lib/node/{repeated-block-EN_RXDs9.js → repeated-block-mWvg20A4.js} +2 -2
- package/lib/node/{repeated-block-KjQeddn3.cjs → repeated-block-n7SlKEY8.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-cWvDK4Td.js → should-force-browser-runtime-in-node-7WfMMOj3.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node--WFVCCbl.cjs → should-force-browser-runtime-in-node-iVwYxZAp.cjs} +1 -1
- package/lib/node/{style-wrapper-GM8YDWdR.js → style-wrapper-BuUTAhVf.js} +2 -2
- package/lib/node/{style-wrapper-tpv235Ma.cjs → style-wrapper-kIHE4aIy.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as
|
|
3
|
-
const
|
|
2
|
+
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as $, toHandlers as x, withCtx as D, renderSlot as N, resolveComponent as k, createTextVNode as xt, toDisplayString as pe, defineAsyncComponent as Y, createVNode as R, renderList as L, createCommentVNode as T, h as ot, createElementVNode as G, normalizeStyle as M, normalizeClass as ee, markRaw as Lt } from "vue";
|
|
3
|
+
const Ft = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Mt = (e) => typeof e == "string" && Ft.has(e.toLowerCase());
|
|
4
4
|
function O(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
@@ -11,11 +11,11 @@ function O(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const Ht = y({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: Mt };
|
|
19
19
|
}
|
|
20
20
|
}), v = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
@@ -23,14 +23,14 @@ const Lt = y({
|
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (d(), S(
|
|
28
|
-
typeof e.TagName == "string" ? (d(), S(
|
|
26
|
+
function jt(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (d(), S(X(e.TagName), $({ key: 0 }, e.attributes, x(e.actionAttributes)), {
|
|
29
29
|
default: D(() => [
|
|
30
30
|
N(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (d(), S(
|
|
33
|
+
}, 16)) : (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, x(e.actionAttributes)), {
|
|
34
34
|
default: D(() => [
|
|
35
35
|
N(e.$slots, "default")
|
|
36
36
|
]),
|
|
@@ -38,10 +38,10 @@ function Ft(e, t, n, o, r, i) {
|
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const Re = /* @__PURE__ */ v(
|
|
41
|
+
const Re = /* @__PURE__ */ v(Ht, [["render", jt]]), Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
default: Re
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })), E = "vue",
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), E = "vue", H = () => {
|
|
45
45
|
switch (E) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
@@ -54,7 +54,7 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ft]]), ws = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, zt = y({
|
|
58
58
|
name: "builder-button",
|
|
59
59
|
components: { DynamicRenderer: Re },
|
|
60
60
|
props: [
|
|
@@ -71,7 +71,7 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ft]]), ws = /* @__PURE__ */ Object.
|
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
73
|
...O(this.attributes, "v-on:", !1),
|
|
74
|
-
[
|
|
74
|
+
[H()]: `${this.link ? "" : "builder-button"} ${this.attributes[H()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
77
77
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -83,7 +83,7 @@ const Re = /* @__PURE__ */ v(Lt, [["render", Ft]]), ws = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
86
|
+
function Kt(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 Mt(e, t, n, o, r, i) {
|
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
93
|
default: D(() => [
|
|
94
|
-
|
|
94
|
+
xt(pe(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const qt = /* @__PURE__ */ v(zt, [["render", Kt]]), Gt = Symbol(), ve = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -113,43 +113,43 @@ const jt = /* @__PURE__ */ v(Ht, [["render", Mt]]), zt = Symbol(), ve = {
|
|
|
113
113
|
nonce: "",
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
|
-
key:
|
|
117
|
-
},
|
|
116
|
+
key: Gt
|
|
117
|
+
}, Jt = Symbol(), rt = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
|
-
key:
|
|
119
|
+
key: Jt
|
|
120
120
|
}, oe = "[Builder.io]: ", B = {
|
|
121
121
|
log: (...e) => console.log(oe, ...e),
|
|
122
122
|
error: (...e) => console.error(oe, ...e),
|
|
123
123
|
warn: (...e) => console.warn(oe, ...e),
|
|
124
124
|
debug: (...e) => console.debug(oe, ...e)
|
|
125
|
-
},
|
|
125
|
+
}, it = (e, t, n) => {
|
|
126
126
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
127
127
|
return o === void 0 || o === e ? n : o;
|
|
128
128
|
};
|
|
129
129
|
function w() {
|
|
130
130
|
return typeof window < "u" && typeof document < "u";
|
|
131
131
|
}
|
|
132
|
-
const
|
|
132
|
+
const Qt = (e) => {
|
|
133
133
|
const t = {};
|
|
134
134
|
return e.forEach((n, o) => {
|
|
135
135
|
t[o] = n;
|
|
136
136
|
}), t;
|
|
137
|
-
},
|
|
138
|
-
function
|
|
137
|
+
}, st = (e) => e instanceof URLSearchParams ? Qt(e) : e, at = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
138
|
+
function _t() {
|
|
139
139
|
return w() && window.self !== window.top;
|
|
140
140
|
}
|
|
141
|
-
function
|
|
142
|
-
return
|
|
143
|
-
|
|
141
|
+
function A(e) {
|
|
142
|
+
return _t() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
143
|
+
at(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const Yt = () => {
|
|
146
146
|
if (w()) {
|
|
147
147
|
const e = new URL(location.href);
|
|
148
148
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
149
149
|
} else
|
|
150
150
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
151
|
-
},
|
|
152
|
-
const e =
|
|
151
|
+
}, Xt = () => typeof navigator == "object" && navigator.userAgent || "", lt = () => {
|
|
152
|
+
const e = Xt(), t = {
|
|
153
153
|
Android() {
|
|
154
154
|
return e.match(/Android/i);
|
|
155
155
|
},
|
|
@@ -168,17 +168,17 @@ const Jt = () => {
|
|
|
168
168
|
any() {
|
|
169
169
|
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || E === "reactNative";
|
|
170
170
|
}
|
|
171
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
171
|
+
}, n = e.match(/Tablet|iPad/i), o = Yt();
|
|
172
172
|
return {
|
|
173
173
|
urlPath: o == null ? void 0 : o.pathname,
|
|
174
174
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
175
175
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
176
176
|
};
|
|
177
|
-
},
|
|
177
|
+
}, ct = "5.2.14", dt = () => ({
|
|
178
178
|
"X-Builder-SDK": E,
|
|
179
179
|
"X-Builder-SDK-GEN": "2",
|
|
180
|
-
"X-Builder-SDK-Version":
|
|
181
|
-
}), j = (e) => e != null,
|
|
180
|
+
"X-Builder-SDK-Version": ct
|
|
181
|
+
}), j = (e) => e != null, Zt = (e) => {
|
|
182
182
|
if (e === "localhost" || e === "127.0.0.1")
|
|
183
183
|
return e;
|
|
184
184
|
const t = e.split(".");
|
|
@@ -194,14 +194,14 @@ const Jt = () => {
|
|
|
194
194
|
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
|
-
},
|
|
197
|
+
}, ut = async (e) => me(e), en = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(j).join("; "), tn = [["secure", ""], ["SameSite", "None"]], nn = ({
|
|
198
198
|
name: e,
|
|
199
199
|
value: t,
|
|
200
200
|
expires: n
|
|
201
201
|
}) => {
|
|
202
|
-
const r = (w() ? location.protocol === "https:" : !0) ?
|
|
203
|
-
return
|
|
204
|
-
},
|
|
202
|
+
const r = (w() ? location.protocol === "https:" : !0) ? tn : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Zt(window.location.hostname)], ...r];
|
|
203
|
+
return en(s);
|
|
204
|
+
}, Ae = async ({
|
|
205
205
|
name: e,
|
|
206
206
|
value: t,
|
|
207
207
|
expires: n,
|
|
@@ -210,7 +210,7 @@ const Jt = () => {
|
|
|
210
210
|
try {
|
|
211
211
|
if (!o)
|
|
212
212
|
return;
|
|
213
|
-
const r =
|
|
213
|
+
const r = nn({
|
|
214
214
|
name: e,
|
|
215
215
|
value: t,
|
|
216
216
|
expires: n
|
|
@@ -220,93 +220,93 @@ const Jt = () => {
|
|
|
220
220
|
B.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
|
-
function
|
|
223
|
+
function on() {
|
|
224
224
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
225
225
|
const t = Math.random() * 16 | 0;
|
|
226
226
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
function
|
|
230
|
-
return
|
|
229
|
+
function pt() {
|
|
230
|
+
return on().replace(/-/g, "");
|
|
231
231
|
}
|
|
232
|
-
const
|
|
232
|
+
const mt = "builderSessionId", rn = async ({
|
|
233
233
|
canTrack: e
|
|
234
234
|
}) => {
|
|
235
235
|
if (!e)
|
|
236
236
|
return;
|
|
237
|
-
const t = await
|
|
238
|
-
name:
|
|
237
|
+
const t = await ut({
|
|
238
|
+
name: mt,
|
|
239
239
|
canTrack: e
|
|
240
240
|
});
|
|
241
241
|
if (j(t))
|
|
242
242
|
return t;
|
|
243
243
|
{
|
|
244
|
-
const n =
|
|
245
|
-
return
|
|
244
|
+
const n = sn();
|
|
245
|
+
return an({
|
|
246
246
|
id: n,
|
|
247
247
|
canTrack: e
|
|
248
248
|
}), n;
|
|
249
249
|
}
|
|
250
|
-
},
|
|
250
|
+
}, sn = () => pt(), an = ({
|
|
251
251
|
id: e,
|
|
252
252
|
canTrack: t
|
|
253
|
-
}) =>
|
|
254
|
-
name:
|
|
253
|
+
}) => Ae({
|
|
254
|
+
name: mt,
|
|
255
255
|
value: e,
|
|
256
256
|
canTrack: t
|
|
257
|
-
}),
|
|
257
|
+
}), ht = () => w() && typeof localStorage < "u" ? localStorage : void 0, ln = ({
|
|
258
258
|
key: e,
|
|
259
259
|
canTrack: t
|
|
260
260
|
}) => {
|
|
261
261
|
var n;
|
|
262
262
|
try {
|
|
263
|
-
return t ? (n =
|
|
263
|
+
return t ? (n = ht()) == null ? void 0 : n.getItem(e) : void 0;
|
|
264
264
|
} catch (o) {
|
|
265
265
|
console.debug("[LocalStorage] GET error: ", o);
|
|
266
266
|
return;
|
|
267
267
|
}
|
|
268
|
-
},
|
|
268
|
+
}, cn = ({
|
|
269
269
|
key: e,
|
|
270
270
|
canTrack: t,
|
|
271
271
|
value: n
|
|
272
272
|
}) => {
|
|
273
273
|
var o;
|
|
274
274
|
try {
|
|
275
|
-
t && ((o =
|
|
275
|
+
t && ((o = ht()) == null || o.setItem(e, n));
|
|
276
276
|
} catch (r) {
|
|
277
277
|
console.debug("[LocalStorage] SET error: ", r);
|
|
278
278
|
}
|
|
279
|
-
},
|
|
279
|
+
}, ft = "builderVisitorId", dn = ({
|
|
280
280
|
canTrack: e
|
|
281
281
|
}) => {
|
|
282
282
|
if (!e)
|
|
283
283
|
return;
|
|
284
|
-
const t =
|
|
285
|
-
key:
|
|
284
|
+
const t = ln({
|
|
285
|
+
key: ft,
|
|
286
286
|
canTrack: e
|
|
287
287
|
});
|
|
288
288
|
if (j(t))
|
|
289
289
|
return t;
|
|
290
290
|
{
|
|
291
|
-
const n =
|
|
292
|
-
return
|
|
291
|
+
const n = un();
|
|
292
|
+
return pn({
|
|
293
293
|
id: n,
|
|
294
294
|
canTrack: e
|
|
295
295
|
}), n;
|
|
296
296
|
}
|
|
297
|
-
},
|
|
297
|
+
}, un = () => pt(), pn = ({
|
|
298
298
|
id: e,
|
|
299
299
|
canTrack: t
|
|
300
|
-
}) =>
|
|
301
|
-
key:
|
|
300
|
+
}) => cn({
|
|
301
|
+
key: ft,
|
|
302
302
|
value: e,
|
|
303
303
|
canTrack: t
|
|
304
304
|
});
|
|
305
|
-
function
|
|
305
|
+
function Pe(e) {
|
|
306
306
|
var t;
|
|
307
307
|
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
|
|
308
308
|
}
|
|
309
|
-
const
|
|
309
|
+
const mn = async ({
|
|
310
310
|
canTrack: e
|
|
311
311
|
}) => {
|
|
312
312
|
if (!e)
|
|
@@ -314,16 +314,16 @@ const dn = async ({
|
|
|
314
314
|
visitorId: void 0,
|
|
315
315
|
sessionId: void 0
|
|
316
316
|
};
|
|
317
|
-
const t = await
|
|
317
|
+
const t = await rn({
|
|
318
318
|
canTrack: e
|
|
319
|
-
}), n =
|
|
319
|
+
}), n = dn({
|
|
320
320
|
canTrack: e
|
|
321
321
|
});
|
|
322
322
|
return {
|
|
323
323
|
sessionId: t,
|
|
324
324
|
visitorId: n
|
|
325
325
|
};
|
|
326
|
-
},
|
|
326
|
+
}, hn = async ({
|
|
327
327
|
type: e,
|
|
328
328
|
canTrack: t,
|
|
329
329
|
apiKey: n,
|
|
@@ -337,10 +337,10 @@ const dn = async ({
|
|
|
337
337
|
url: location.href,
|
|
338
338
|
...o
|
|
339
339
|
},
|
|
340
|
-
...await
|
|
340
|
+
...await mn({
|
|
341
341
|
canTrack: t
|
|
342
342
|
}),
|
|
343
|
-
userAttributes:
|
|
343
|
+
userAttributes: lt(),
|
|
344
344
|
ownerId: n
|
|
345
345
|
}
|
|
346
346
|
});
|
|
@@ -352,27 +352,27 @@ async function le({
|
|
|
352
352
|
B.error("Missing API key for track call. Please provide your API key.");
|
|
353
353
|
return;
|
|
354
354
|
}
|
|
355
|
-
if (!t.canTrack ||
|
|
355
|
+
if (!t.canTrack || A() || !(w() || E === "reactNative"))
|
|
356
356
|
return;
|
|
357
357
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
358
|
-
return
|
|
358
|
+
return Pe(o), fetch(o, {
|
|
359
359
|
method: "POST",
|
|
360
360
|
body: JSON.stringify({
|
|
361
|
-
events: [await
|
|
361
|
+
events: [await hn(t)]
|
|
362
362
|
}),
|
|
363
363
|
headers: {
|
|
364
364
|
"content-type": "application/json",
|
|
365
|
-
...
|
|
365
|
+
...dt()
|
|
366
366
|
},
|
|
367
367
|
mode: "cors"
|
|
368
368
|
}).catch((r) => {
|
|
369
369
|
console.error("Failed to track: ", r);
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
|
-
const
|
|
372
|
+
const Vs = (e) => le({
|
|
373
373
|
...e,
|
|
374
374
|
canTrack: !0
|
|
375
|
-
}),
|
|
375
|
+
}), fn = ({
|
|
376
376
|
builder: e,
|
|
377
377
|
context: t,
|
|
378
378
|
event: n,
|
|
@@ -384,11 +384,11 @@ const Is = (e) => le({
|
|
|
384
384
|
builder: e,
|
|
385
385
|
context: t,
|
|
386
386
|
event: n
|
|
387
|
-
}),
|
|
388
|
-
isEditing:
|
|
387
|
+
}), bn = (e) => ({
|
|
388
|
+
isEditing: A(),
|
|
389
389
|
isBrowser: w(),
|
|
390
390
|
isServer: !w(),
|
|
391
|
-
getUserAttributes: () =>
|
|
391
|
+
getUserAttributes: () => lt(),
|
|
392
392
|
trackConversion: (t, n) => {
|
|
393
393
|
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || le({
|
|
394
394
|
type: "conversion",
|
|
@@ -404,10 +404,10 @@ const Is = (e) => le({
|
|
|
404
404
|
}
|
|
405
405
|
});
|
|
406
406
|
}
|
|
407
|
-
}),
|
|
407
|
+
}), gn = (e, {
|
|
408
408
|
isExpression: t = !0
|
|
409
409
|
}) => /* we disable this for cases where we definitely don't want a return */ t && !(e.includes(";") || e.includes(" return ") || e.trim().startsWith("return ")) ? `return (${e});` : e;
|
|
410
|
-
function
|
|
410
|
+
function bt({
|
|
411
411
|
rootState: e,
|
|
412
412
|
localState: t,
|
|
413
413
|
rootSetState: n
|
|
@@ -417,7 +417,7 @@ function mt({
|
|
|
417
417
|
if (t && r in t)
|
|
418
418
|
return t[r];
|
|
419
419
|
const i = o[r];
|
|
420
|
-
return typeof i == "object" && i !== null ?
|
|
420
|
+
return typeof i == "object" && i !== null ? bt({
|
|
421
421
|
rootState: i,
|
|
422
422
|
localState: void 0,
|
|
423
423
|
rootSetState: n ? (s) => {
|
|
@@ -432,7 +432,7 @@ function mt({
|
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
|
-
const
|
|
435
|
+
const Me = ({
|
|
436
436
|
code: e,
|
|
437
437
|
builder: t,
|
|
438
438
|
context: n,
|
|
@@ -441,11 +441,11 @@ const He = ({
|
|
|
441
441
|
rootSetState: i,
|
|
442
442
|
rootState: s
|
|
443
443
|
}) => {
|
|
444
|
-
const l =
|
|
444
|
+
const l = fn({
|
|
445
445
|
builder: t,
|
|
446
446
|
context: n,
|
|
447
447
|
event: o,
|
|
448
|
-
state:
|
|
448
|
+
state: bt({
|
|
449
449
|
rootState: s,
|
|
450
450
|
localState: r,
|
|
451
451
|
rootSetState: i
|
|
@@ -453,23 +453,23 @@ const He = ({
|
|
|
453
453
|
});
|
|
454
454
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
455
455
|
};
|
|
456
|
-
function
|
|
456
|
+
function yn() {
|
|
457
457
|
var e;
|
|
458
458
|
return typeof process < "u" && j((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
459
459
|
}
|
|
460
|
-
const
|
|
460
|
+
const vn = ({
|
|
461
461
|
shouldLogWarning: e
|
|
462
462
|
}) => {
|
|
463
463
|
var r;
|
|
464
|
-
if (!
|
|
464
|
+
if (!yn())
|
|
465
465
|
return !1;
|
|
466
466
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
467
467
|
return t && n && !o ? (e && B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
468
|
-
},
|
|
468
|
+
}, Sn = (e) => (w() || vn({
|
|
469
469
|
shouldLogWarning: !0
|
|
470
|
-
}),
|
|
470
|
+
}), Me(e)), kn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Cn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Tn = (e) => {
|
|
471
471
|
var t, n, o, r, i, s;
|
|
472
|
-
return ((o = (n = (t =
|
|
472
|
+
return ((o = (n = (t = kn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Cn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
473
473
|
};
|
|
474
474
|
function te({
|
|
475
475
|
code: e,
|
|
@@ -483,17 +483,17 @@ function te({
|
|
|
483
483
|
}) {
|
|
484
484
|
if (e.trim() === "")
|
|
485
485
|
return;
|
|
486
|
-
const a =
|
|
486
|
+
const a = Tn(e.trim());
|
|
487
487
|
if (a)
|
|
488
|
-
return
|
|
488
|
+
return it({
|
|
489
489
|
...o,
|
|
490
490
|
...n
|
|
491
491
|
}, a);
|
|
492
492
|
const u = {
|
|
493
|
-
code:
|
|
493
|
+
code: gn(e, {
|
|
494
494
|
isExpression: s
|
|
495
495
|
}),
|
|
496
|
-
builder:
|
|
496
|
+
builder: bn(l),
|
|
497
497
|
context: t,
|
|
498
498
|
event: i,
|
|
499
499
|
rootSetState: r,
|
|
@@ -501,7 +501,7 @@ function te({
|
|
|
501
501
|
localState: n
|
|
502
502
|
};
|
|
503
503
|
try {
|
|
504
|
-
return
|
|
504
|
+
return Sn(u);
|
|
505
505
|
} catch (p) {
|
|
506
506
|
B.error("Failed code evaluation: " + p.message, {
|
|
507
507
|
code: e
|
|
@@ -509,15 +509,15 @@ function te({
|
|
|
509
509
|
return;
|
|
510
510
|
}
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function wn(e, t) {
|
|
513
513
|
var n;
|
|
514
514
|
return {
|
|
515
515
|
...(n = e.component) == null ? void 0 : n.options,
|
|
516
516
|
...e.options,
|
|
517
|
-
...
|
|
517
|
+
...In(e, t)
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
-
const
|
|
520
|
+
const In = (e, t) => {
|
|
521
521
|
var n, o;
|
|
522
522
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
523
523
|
return {
|
|
@@ -531,7 +531,7 @@ const Cn = (e, t) => {
|
|
|
531
531
|
}))
|
|
532
532
|
};
|
|
533
533
|
};
|
|
534
|
-
function
|
|
534
|
+
function $n(e, ...t) {
|
|
535
535
|
const n = Object.assign({}, e);
|
|
536
536
|
for (const o of t)
|
|
537
537
|
delete n[o];
|
|
@@ -554,30 +554,30 @@ function ce(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
554
554
|
}), ce(s, t, e, i, r);
|
|
555
555
|
}));
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function gt(e) {
|
|
558
558
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
559
559
|
}
|
|
560
|
-
function
|
|
560
|
+
function En(e) {
|
|
561
561
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
562
562
|
return !1;
|
|
563
563
|
let t = !1;
|
|
564
564
|
return ce(e, (n) => {
|
|
565
|
-
if (
|
|
565
|
+
if (gt(n)) {
|
|
566
566
|
t = !0;
|
|
567
567
|
return;
|
|
568
568
|
}
|
|
569
569
|
}), t;
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function Rn(e, t) {
|
|
572
572
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ce(e, (n, o) => {
|
|
573
|
-
|
|
573
|
+
gt(n) && o(n[t] ?? void 0);
|
|
574
574
|
}), e);
|
|
575
575
|
}
|
|
576
|
-
function
|
|
576
|
+
function An(e, t) {
|
|
577
577
|
var n, o;
|
|
578
|
-
return (n = e.component) != null && n.options &&
|
|
578
|
+
return (n = e.component) != null && n.options && En((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 = Rn(e.component.options, t ?? "Default")), e;
|
|
579
579
|
}
|
|
580
|
-
const Be = (e) => JSON.parse(JSON.stringify(e)),
|
|
580
|
+
const Be = (e) => JSON.parse(JSON.stringify(e)), yt = (e, t, n) => {
|
|
581
581
|
if (Object(e) !== e)
|
|
582
582
|
return e;
|
|
583
583
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -595,8 +595,8 @@ function Se(e) {
|
|
|
595
595
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Se(e[n]));
|
|
596
596
|
return t;
|
|
597
597
|
}
|
|
598
|
-
const
|
|
599
|
-
if (
|
|
598
|
+
const Pn = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Bn = (e) => {
|
|
599
|
+
if (Pn) {
|
|
600
600
|
const t = Be(e);
|
|
601
601
|
return {
|
|
602
602
|
...t,
|
|
@@ -608,7 +608,7 @@ const En = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Rn = (e) =
|
|
|
608
608
|
}
|
|
609
609
|
};
|
|
610
610
|
} else {
|
|
611
|
-
const t = Se(
|
|
611
|
+
const t = Se($n(e, "children", "meta"));
|
|
612
612
|
return {
|
|
613
613
|
...t,
|
|
614
614
|
properties: {
|
|
@@ -621,7 +621,7 @@ const En = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Rn = (e) =
|
|
|
621
621
|
meta: e.meta
|
|
622
622
|
};
|
|
623
623
|
}
|
|
624
|
-
},
|
|
624
|
+
}, Vn = ({
|
|
625
625
|
block: e,
|
|
626
626
|
context: t,
|
|
627
627
|
localState: n,
|
|
@@ -630,7 +630,7 @@ const En = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Rn = (e) =
|
|
|
630
630
|
}) => {
|
|
631
631
|
if (!e.bindings)
|
|
632
632
|
return e;
|
|
633
|
-
const i =
|
|
633
|
+
const i = Bn(e);
|
|
634
634
|
for (const s in e.bindings) {
|
|
635
635
|
const l = e.bindings[s], a = te({
|
|
636
636
|
code: l,
|
|
@@ -639,11 +639,11 @@ const En = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Rn = (e) =
|
|
|
639
639
|
rootSetState: r,
|
|
640
640
|
context: t
|
|
641
641
|
});
|
|
642
|
-
|
|
642
|
+
yt(i, s, a);
|
|
643
643
|
}
|
|
644
644
|
return i;
|
|
645
645
|
};
|
|
646
|
-
function
|
|
646
|
+
function Nn({
|
|
647
647
|
block: e,
|
|
648
648
|
context: t,
|
|
649
649
|
localState: n,
|
|
@@ -651,33 +651,33 @@ function An({
|
|
|
651
651
|
rootSetState: r
|
|
652
652
|
}) {
|
|
653
653
|
let i = e;
|
|
654
|
-
return i =
|
|
654
|
+
return i = Vn({
|
|
655
655
|
block: i,
|
|
656
656
|
localState: n,
|
|
657
657
|
rootState: o,
|
|
658
658
|
rootSetState: r,
|
|
659
659
|
context: t
|
|
660
|
-
}), i =
|
|
660
|
+
}), i = An(i, o.locale), i;
|
|
661
661
|
}
|
|
662
662
|
function Ve(e) {
|
|
663
663
|
const t = e || (w() ? window.location.search : void 0);
|
|
664
|
-
return t ?
|
|
664
|
+
return t ? at(t).indexOf("builder.preview=") !== -1 : !1;
|
|
665
665
|
}
|
|
666
|
-
const
|
|
666
|
+
const On = (e) => ({
|
|
667
667
|
type: "builder.registerComponent",
|
|
668
668
|
data: de(e)
|
|
669
|
-
}),
|
|
669
|
+
}), Wn = (e) => {
|
|
670
670
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
671
671
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
672
672
|
};
|
|
673
673
|
function de(e) {
|
|
674
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
674
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Wn(n) : n));
|
|
675
675
|
}
|
|
676
|
-
const
|
|
677
|
-
function
|
|
676
|
+
const He = {};
|
|
677
|
+
function Ns(e, t) {
|
|
678
678
|
e === "plugin" && (t = de(t));
|
|
679
|
-
let n =
|
|
680
|
-
if (n || (n =
|
|
679
|
+
let n = He[e];
|
|
680
|
+
if (n || (n = He[e] = []), n.push(t), w()) {
|
|
681
681
|
const o = {
|
|
682
682
|
type: "builder.register",
|
|
683
683
|
data: {
|
|
@@ -692,7 +692,7 @@ function $s(e, t) {
|
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function Os(e) {
|
|
696
696
|
var t;
|
|
697
697
|
if (w()) {
|
|
698
698
|
const n = JSON.parse(JSON.stringify(e));
|
|
@@ -703,7 +703,7 @@ function Es(e) {
|
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
705
|
const je = {};
|
|
706
|
-
function
|
|
706
|
+
function Ws(e) {
|
|
707
707
|
if (w()) {
|
|
708
708
|
Object.assign(je, e);
|
|
709
709
|
const t = {
|
|
@@ -713,39 +713,39 @@ function Rs(e) {
|
|
|
713
713
|
parent.postMessage(t, "*");
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
const ze = "builder.",
|
|
716
|
+
const ze = "builder.", Dn = "options.", vt = (e) => {
|
|
717
717
|
if (!e)
|
|
718
718
|
return {};
|
|
719
|
-
const t =
|
|
719
|
+
const t = st(e), n = {};
|
|
720
720
|
return Object.keys(t).forEach((o) => {
|
|
721
721
|
if (o.startsWith(ze)) {
|
|
722
|
-
const r = o.replace(ze, "").replace(
|
|
722
|
+
const r = o.replace(ze, "").replace(Dn, "");
|
|
723
723
|
n[r] = t[o];
|
|
724
724
|
}
|
|
725
725
|
}), n;
|
|
726
|
-
},
|
|
726
|
+
}, Un = () => {
|
|
727
727
|
if (!w())
|
|
728
728
|
return {};
|
|
729
729
|
const e = new URLSearchParams(window.location.search);
|
|
730
|
-
return
|
|
731
|
-
},
|
|
732
|
-
function
|
|
730
|
+
return vt(e);
|
|
731
|
+
}, xn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
732
|
+
function St(e, t) {
|
|
733
733
|
let n;
|
|
734
734
|
try {
|
|
735
735
|
n = new URL(t.origin);
|
|
736
736
|
} catch {
|
|
737
737
|
return !1;
|
|
738
738
|
}
|
|
739
|
-
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e ||
|
|
739
|
+
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || xn).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
|
|
740
740
|
}
|
|
741
741
|
let Ke = !1;
|
|
742
|
-
const
|
|
742
|
+
const kt = (e) => {
|
|
743
743
|
var t, n;
|
|
744
744
|
Ke || (Ke = !0, w() && ((t = window.parent) == null || t.postMessage({
|
|
745
745
|
type: "builder.sdkInfo",
|
|
746
746
|
data: {
|
|
747
747
|
target: E,
|
|
748
|
-
version:
|
|
748
|
+
version: ct,
|
|
749
749
|
supportsPatchUpdates: !1,
|
|
750
750
|
// Supports builder-model="..." attribute which is needed to
|
|
751
751
|
// scope our '+ add block' button styling
|
|
@@ -763,7 +763,7 @@ const yt = (e) => {
|
|
|
763
763
|
}
|
|
764
764
|
}, "*"), window.addEventListener("message", (o) => {
|
|
765
765
|
var i, s;
|
|
766
|
-
if (!
|
|
766
|
+
if (!St(e.trustedHosts, o))
|
|
767
767
|
return;
|
|
768
768
|
const {
|
|
769
769
|
data: r
|
|
@@ -804,12 +804,12 @@ const yt = (e) => {
|
|
|
804
804
|
}
|
|
805
805
|
}
|
|
806
806
|
})));
|
|
807
|
-
},
|
|
807
|
+
}, Ct = ({
|
|
808
808
|
model: e,
|
|
809
809
|
trustedHosts: t,
|
|
810
810
|
callbacks: n
|
|
811
811
|
}) => (o) => {
|
|
812
|
-
if (!
|
|
812
|
+
if (!St(t, o))
|
|
813
813
|
return;
|
|
814
814
|
const {
|
|
815
815
|
data: r
|
|
@@ -835,7 +835,7 @@ const yt = (e) => {
|
|
|
835
835
|
break;
|
|
836
836
|
}
|
|
837
837
|
}
|
|
838
|
-
},
|
|
838
|
+
}, Ds = ({
|
|
839
839
|
model: e,
|
|
840
840
|
apiKey: t,
|
|
841
841
|
callback: n,
|
|
@@ -844,11 +844,11 @@ const yt = (e) => {
|
|
|
844
844
|
if (!w)
|
|
845
845
|
return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
846
846
|
};
|
|
847
|
-
|
|
847
|
+
kt({
|
|
848
848
|
modelName: e,
|
|
849
849
|
apiKey: t
|
|
850
850
|
});
|
|
851
|
-
const r =
|
|
851
|
+
const r = Ct({
|
|
852
852
|
callbacks: {
|
|
853
853
|
contentUpdate: n,
|
|
854
854
|
animation: () => {
|
|
@@ -864,24 +864,24 @@ const yt = (e) => {
|
|
|
864
864
|
return window.addEventListener("message", r), () => {
|
|
865
865
|
window.removeEventListener("message", r);
|
|
866
866
|
};
|
|
867
|
-
},
|
|
867
|
+
}, Ln = "builder.tests", Ne = (e) => `${Ln}.${e}`, Fn = ({
|
|
868
868
|
contentId: e
|
|
869
|
-
}) =>
|
|
869
|
+
}) => ut({
|
|
870
870
|
name: Ne(e),
|
|
871
871
|
canTrack: !0
|
|
872
|
-
}),
|
|
872
|
+
}), Mn = ({
|
|
873
873
|
contentId: e
|
|
874
874
|
}) => me({
|
|
875
875
|
name: Ne(e),
|
|
876
876
|
canTrack: !0
|
|
877
|
-
}),
|
|
877
|
+
}), Hn = ({
|
|
878
878
|
contentId: e,
|
|
879
879
|
value: t
|
|
880
|
-
}) =>
|
|
880
|
+
}) => Ae({
|
|
881
881
|
name: Ne(e),
|
|
882
882
|
value: t,
|
|
883
883
|
canTrack: !0
|
|
884
|
-
}),
|
|
884
|
+
}), Tt = (e) => j(e.id) && j(e.variations) && Object.keys(e.variations).length > 0, jn = ({
|
|
885
885
|
id: e,
|
|
886
886
|
variations: t
|
|
887
887
|
}) => {
|
|
@@ -894,15 +894,15 @@ const yt = (e) => {
|
|
|
894
894
|
return i;
|
|
895
895
|
}
|
|
896
896
|
return e;
|
|
897
|
-
},
|
|
898
|
-
const t =
|
|
899
|
-
return
|
|
897
|
+
}, wt = (e) => {
|
|
898
|
+
const t = jn(e);
|
|
899
|
+
return Hn({
|
|
900
900
|
contentId: e.id,
|
|
901
901
|
value: t
|
|
902
902
|
}).catch((n) => {
|
|
903
903
|
B.error("could not store A/B test variation: ", n);
|
|
904
904
|
}), t;
|
|
905
|
-
},
|
|
905
|
+
}, It = ({
|
|
906
906
|
item: e,
|
|
907
907
|
testGroupId: t
|
|
908
908
|
}) => {
|
|
@@ -916,7 +916,7 @@ const yt = (e) => {
|
|
|
916
916
|
testVariationId: n.id,
|
|
917
917
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
918
918
|
};
|
|
919
|
-
},
|
|
919
|
+
}, zn = ({
|
|
920
920
|
item: e,
|
|
921
921
|
canTrack: t
|
|
922
922
|
}) => {
|
|
@@ -924,14 +924,14 @@ const yt = (e) => {
|
|
|
924
924
|
return e;
|
|
925
925
|
if (!e)
|
|
926
926
|
return;
|
|
927
|
-
if (!
|
|
927
|
+
if (!Tt(e))
|
|
928
928
|
return e;
|
|
929
|
-
const n =
|
|
929
|
+
const n = Mn({
|
|
930
930
|
contentId: e.id
|
|
931
|
-
}) ||
|
|
931
|
+
}) || wt({
|
|
932
932
|
variations: e.variations,
|
|
933
933
|
id: e.id
|
|
934
|
-
}), o =
|
|
934
|
+
}), o = It({
|
|
935
935
|
item: e,
|
|
936
936
|
testGroupId: n
|
|
937
937
|
});
|
|
@@ -939,18 +939,18 @@ const yt = (e) => {
|
|
|
939
939
|
...e,
|
|
940
940
|
...o
|
|
941
941
|
};
|
|
942
|
-
},
|
|
942
|
+
}, Kn = async ({
|
|
943
943
|
item: e,
|
|
944
944
|
canTrack: t
|
|
945
945
|
}) => {
|
|
946
|
-
if (!t || !
|
|
946
|
+
if (!t || !Tt(e))
|
|
947
947
|
return e;
|
|
948
|
-
const o = await
|
|
948
|
+
const o = await Fn({
|
|
949
949
|
contentId: e.id
|
|
950
|
-
}) ||
|
|
950
|
+
}) || wt({
|
|
951
951
|
variations: e.variations,
|
|
952
952
|
id: e.id
|
|
953
|
-
}), r =
|
|
953
|
+
}), r = It({
|
|
954
954
|
item: e,
|
|
955
955
|
testGroupId: o
|
|
956
956
|
});
|
|
@@ -959,61 +959,82 @@ const yt = (e) => {
|
|
|
959
959
|
...r
|
|
960
960
|
};
|
|
961
961
|
};
|
|
962
|
-
const qe = "builder.userAttributes"
|
|
963
|
-
|
|
962
|
+
const qn = "builder.preview", Gn = "BUILDER_STUDIO", qe = "builder.userAttributes.", Jn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, Ge = () => {
|
|
963
|
+
if (!w())
|
|
964
|
+
return {};
|
|
965
|
+
const e = new URLSearchParams(window.location.search);
|
|
966
|
+
if (e.get(qn) !== Gn)
|
|
967
|
+
return {};
|
|
968
|
+
const t = {};
|
|
969
|
+
return e.forEach((n, o) => {
|
|
970
|
+
o.startsWith(qe) && (t[o.slice(qe.length)] = Jn(n));
|
|
971
|
+
}), t;
|
|
972
|
+
}, Je = "builder.userAttributes";
|
|
973
|
+
function Qe() {
|
|
964
974
|
let e = !0;
|
|
965
|
-
const t = /* @__PURE__ */ new Set()
|
|
975
|
+
const t = /* @__PURE__ */ new Set(), n = () => {
|
|
976
|
+
const o = me({
|
|
977
|
+
name: Je,
|
|
978
|
+
canTrack: e
|
|
979
|
+
});
|
|
980
|
+
return o ? JSON.parse(o) : {};
|
|
981
|
+
};
|
|
966
982
|
return {
|
|
967
|
-
setUserAttributes(
|
|
983
|
+
setUserAttributes(o) {
|
|
968
984
|
if (!w())
|
|
969
985
|
return;
|
|
970
|
-
const
|
|
971
|
-
...
|
|
972
|
-
...
|
|
986
|
+
const r = {
|
|
987
|
+
...n(),
|
|
988
|
+
...o
|
|
973
989
|
};
|
|
974
|
-
|
|
975
|
-
name:
|
|
976
|
-
value: JSON.stringify(
|
|
990
|
+
Ae({
|
|
991
|
+
name: Je,
|
|
992
|
+
value: JSON.stringify(r),
|
|
977
993
|
canTrack: e
|
|
978
|
-
})
|
|
994
|
+
});
|
|
995
|
+
const i = Ge();
|
|
996
|
+
t.forEach((s) => s({
|
|
997
|
+
...r,
|
|
998
|
+
...i
|
|
999
|
+
}));
|
|
979
1000
|
},
|
|
980
1001
|
getUserAttributes() {
|
|
981
|
-
return w() ?
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
}
|
|
1002
|
+
return w() ? {
|
|
1003
|
+
...n(),
|
|
1004
|
+
...Ge()
|
|
1005
|
+
} : {};
|
|
985
1006
|
},
|
|
986
|
-
subscribeOnUserAttributesChange(
|
|
987
|
-
fireImmediately:
|
|
1007
|
+
subscribeOnUserAttributesChange(o, {
|
|
1008
|
+
fireImmediately: r
|
|
988
1009
|
} = {}) {
|
|
989
|
-
return t.add(
|
|
990
|
-
t.delete(
|
|
1010
|
+
return t.add(o), r && o(this.getUserAttributes()), function() {
|
|
1011
|
+
t.delete(o);
|
|
991
1012
|
};
|
|
992
1013
|
},
|
|
993
|
-
setCanTrack(
|
|
994
|
-
e =
|
|
1014
|
+
setCanTrack(o) {
|
|
1015
|
+
e = o;
|
|
995
1016
|
}
|
|
996
1017
|
};
|
|
997
1018
|
}
|
|
998
1019
|
let ke;
|
|
999
|
-
w() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ =
|
|
1000
|
-
const ue = ke,
|
|
1020
|
+
w() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = Qe()), ke = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ke = Qe();
|
|
1021
|
+
const ue = ke, Us = (e) => {
|
|
1001
1022
|
ue.setUserAttributes(e);
|
|
1002
1023
|
}, J = (e) => {
|
|
1003
1024
|
const t = j(e) ? e : !0;
|
|
1004
1025
|
return ue.setCanTrack(t), t;
|
|
1005
1026
|
};
|
|
1006
|
-
function
|
|
1027
|
+
function Qn() {
|
|
1007
1028
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
1008
1029
|
}
|
|
1009
|
-
function
|
|
1010
|
-
const e =
|
|
1030
|
+
function _n() {
|
|
1031
|
+
const e = Qn().fetch;
|
|
1011
1032
|
if (typeof e > "u")
|
|
1012
1033
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
1013
1034
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
1014
1035
|
return e;
|
|
1015
1036
|
}
|
|
1016
|
-
const
|
|
1037
|
+
const Yn = _n();
|
|
1017
1038
|
function Ce(e, t = null, n = ".") {
|
|
1018
1039
|
return Object.keys(e).reduce((o, r) => {
|
|
1019
1040
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
@@ -1026,14 +1047,14 @@ function Ce(e, t = null, n = ".") {
|
|
|
1026
1047
|
};
|
|
1027
1048
|
}, {});
|
|
1028
1049
|
}
|
|
1029
|
-
function
|
|
1050
|
+
function $t(e, t, n = {}) {
|
|
1030
1051
|
for (const o in e) {
|
|
1031
1052
|
const r = e[o], i = t ? t + "." + o : o;
|
|
1032
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ?
|
|
1053
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? $t(r, i, n) : n[i] = r;
|
|
1033
1054
|
}
|
|
1034
1055
|
return n;
|
|
1035
1056
|
}
|
|
1036
|
-
function
|
|
1057
|
+
function Xn(e) {
|
|
1037
1058
|
const t = {};
|
|
1038
1059
|
for (const n in e) {
|
|
1039
1060
|
const o = n.split(".");
|
|
@@ -1045,7 +1066,7 @@ function qn(e) {
|
|
|
1045
1066
|
}
|
|
1046
1067
|
return t;
|
|
1047
1068
|
}
|
|
1048
|
-
const
|
|
1069
|
+
const Zn = "v3", _e = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Oe = (e) => {
|
|
1049
1070
|
const {
|
|
1050
1071
|
limit: t = 30,
|
|
1051
1072
|
userAttributes: n,
|
|
@@ -1055,24 +1076,24 @@ const Gn = "v3", Je = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Oe = (
|
|
|
1055
1076
|
enrich: s,
|
|
1056
1077
|
enrichOptions: l,
|
|
1057
1078
|
locale: a,
|
|
1058
|
-
apiVersion: u =
|
|
1079
|
+
apiVersion: u = Zn,
|
|
1059
1080
|
fields: p,
|
|
1060
1081
|
omit: b,
|
|
1061
1082
|
offset: c,
|
|
1062
1083
|
cacheSeconds: m,
|
|
1063
1084
|
staleCacheSeconds: f,
|
|
1064
1085
|
sort: g,
|
|
1065
|
-
includeUnpublished:
|
|
1066
|
-
apiHost:
|
|
1086
|
+
includeUnpublished: P,
|
|
1087
|
+
apiHost: U
|
|
1067
1088
|
} = e;
|
|
1068
1089
|
if (!i)
|
|
1069
1090
|
throw new Error("Missing API key");
|
|
1070
1091
|
if (!["v3"].includes(u))
|
|
1071
1092
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${u}'`);
|
|
1072
|
-
const V = t !== 1, q =
|
|
1093
|
+
const V = t !== 1, q = U || "https://cdn.builder.io", C = new URL(`${q}/api/${u}/content/${r}`);
|
|
1073
1094
|
C.searchParams.set("apiKey", i), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(V)), C.searchParams.set("includeRefs", String(!0)), a && C.searchParams.set("locale", a);
|
|
1074
1095
|
let z = n || {};
|
|
1075
|
-
if (s && C.searchParams.set("enrich", String(s)), s && l && C.searchParams.set("enrichOptions", JSON.stringify(l)), C.searchParams.set("omit", b ?? "meta.componentsUsed"), p && C.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof
|
|
1096
|
+
if (s && C.searchParams.set("enrich", String(s)), s && l && C.searchParams.set("enrichOptions", JSON.stringify(l)), C.searchParams.set("omit", b ?? "meta.componentsUsed"), p && C.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof P == "boolean" && C.searchParams.set("includeUnpublished", String(P)), m && _e(m) && C.searchParams.set("cacheSeconds", String(m)), f && _e(f) && C.searchParams.set("staleCacheSeconds", String(f)), g) {
|
|
1076
1097
|
const W = Ce({
|
|
1077
1098
|
sort: g
|
|
1078
1099
|
});
|
|
@@ -1080,39 +1101,39 @@ const Gn = "v3", Je = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Oe = (
|
|
|
1080
1101
|
C.searchParams.set(F, JSON.stringify(W[F]));
|
|
1081
1102
|
}
|
|
1082
1103
|
const Q = {
|
|
1083
|
-
...
|
|
1084
|
-
...
|
|
1104
|
+
...Un(),
|
|
1105
|
+
...st(e.options || {})
|
|
1085
1106
|
};
|
|
1086
1107
|
z = {
|
|
1087
1108
|
...z,
|
|
1088
|
-
...
|
|
1109
|
+
...no(Q)
|
|
1089
1110
|
};
|
|
1090
|
-
const
|
|
1091
|
-
for (const W in
|
|
1092
|
-
C.searchParams.set(W, String(
|
|
1111
|
+
const _ = Ce(Q);
|
|
1112
|
+
for (const W in _)
|
|
1113
|
+
C.searchParams.set(W, String(_[W]));
|
|
1093
1114
|
if (Object.keys(z).length > 0 && C.searchParams.set("userAttributes", JSON.stringify(z)), o) {
|
|
1094
|
-
const W =
|
|
1115
|
+
const W = $t({
|
|
1095
1116
|
query: o
|
|
1096
1117
|
});
|
|
1097
1118
|
for (const F in W)
|
|
1098
1119
|
C.searchParams.set(F, JSON.stringify(W[F]));
|
|
1099
1120
|
}
|
|
1100
1121
|
return C;
|
|
1101
|
-
},
|
|
1122
|
+
}, eo = (e) => e === "true" ? !0 : e === "false" ? !1 : e, to = (e) => {
|
|
1102
1123
|
const t = {};
|
|
1103
1124
|
for (const n in e)
|
|
1104
|
-
n.startsWith("userAttributes.") && (t[n] =
|
|
1125
|
+
n.startsWith("userAttributes.") && (t[n] = eo(e[n]), delete e[n]);
|
|
1105
1126
|
return t;
|
|
1106
|
-
},
|
|
1127
|
+
}, no = (e) => {
|
|
1107
1128
|
if (w() && e.preview === "BUILDER_STUDIO") {
|
|
1108
1129
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
1109
|
-
const t =
|
|
1130
|
+
const t = to(e), {
|
|
1110
1131
|
userAttributes: n
|
|
1111
|
-
} =
|
|
1132
|
+
} = Xn(t);
|
|
1112
1133
|
return n;
|
|
1113
1134
|
}
|
|
1114
1135
|
return {};
|
|
1115
|
-
},
|
|
1136
|
+
}, oo = (e) => "results" in e;
|
|
1116
1137
|
async function We(e) {
|
|
1117
1138
|
var o;
|
|
1118
1139
|
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
@@ -1120,30 +1141,30 @@ async function We(e) {
|
|
|
1120
1141
|
locale: t,
|
|
1121
1142
|
...e.userAttributes
|
|
1122
1143
|
});
|
|
1123
|
-
const n = await
|
|
1144
|
+
const n = await so({
|
|
1124
1145
|
...e,
|
|
1125
1146
|
limit: 1
|
|
1126
1147
|
});
|
|
1127
1148
|
return n && n[0] || null;
|
|
1128
1149
|
}
|
|
1129
|
-
const
|
|
1150
|
+
const ro = async (e) => {
|
|
1130
1151
|
var s;
|
|
1131
|
-
const t = Oe(e), n = e.fetch ??
|
|
1152
|
+
const t = Oe(e), n = e.fetch ?? Yn, o = {
|
|
1132
1153
|
...e.fetchOptions,
|
|
1133
1154
|
headers: {
|
|
1134
1155
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
1135
|
-
...
|
|
1156
|
+
...dt()
|
|
1136
1157
|
}
|
|
1137
1158
|
};
|
|
1138
1159
|
return await (await n(t.href, o)).json();
|
|
1139
|
-
},
|
|
1160
|
+
}, io = async (e, t, n = Oe(e)) => {
|
|
1140
1161
|
const o = J(e.canTrack);
|
|
1141
1162
|
if (n.search.includes("preview="), !o || !(w() || E === "reactNative"))
|
|
1142
1163
|
return t.results;
|
|
1143
1164
|
try {
|
|
1144
1165
|
const r = [];
|
|
1145
1166
|
for (const i of t.results)
|
|
1146
|
-
r.push(await
|
|
1167
|
+
r.push(await Kn({
|
|
1147
1168
|
item: i,
|
|
1148
1169
|
canTrack: o
|
|
1149
1170
|
}));
|
|
@@ -1153,17 +1174,17 @@ const Zn = async (e) => {
|
|
|
1153
1174
|
}
|
|
1154
1175
|
return t.results;
|
|
1155
1176
|
};
|
|
1156
|
-
async function
|
|
1157
|
-
const t = Oe(e), n = await
|
|
1158
|
-
if (!
|
|
1177
|
+
async function so(e) {
|
|
1178
|
+
const t = Oe(e), n = await ro(e);
|
|
1179
|
+
if (!oo(n))
|
|
1159
1180
|
throw B.error("Error fetching data. ", {
|
|
1160
1181
|
url: t,
|
|
1161
1182
|
content: n,
|
|
1162
1183
|
options: e
|
|
1163
1184
|
}), n;
|
|
1164
|
-
return
|
|
1185
|
+
return io(e, n);
|
|
1165
1186
|
}
|
|
1166
|
-
const
|
|
1187
|
+
const xs = async (e) => {
|
|
1167
1188
|
var o, r, i;
|
|
1168
1189
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1169
1190
|
...e,
|
|
@@ -1175,7 +1196,7 @@ const Bs = async (e) => {
|
|
|
1175
1196
|
urlPath: t
|
|
1176
1197
|
} : {}
|
|
1177
1198
|
},
|
|
1178
|
-
options:
|
|
1199
|
+
options: vt(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
1179
1200
|
};
|
|
1180
1201
|
return {
|
|
1181
1202
|
apiKey: n.apiKey,
|
|
@@ -1183,7 +1204,7 @@ const Bs = async (e) => {
|
|
|
1183
1204
|
content: await We(n)
|
|
1184
1205
|
};
|
|
1185
1206
|
}, De = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1186
|
-
function
|
|
1207
|
+
function ao(e, t, n = {}) {
|
|
1187
1208
|
let o, r, i, s = null, l = 0;
|
|
1188
1209
|
const a = function() {
|
|
1189
1210
|
l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
@@ -1195,7 +1216,7 @@ function to(e, t, n = {}) {
|
|
|
1195
1216
|
return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, p)), i;
|
|
1196
1217
|
};
|
|
1197
1218
|
}
|
|
1198
|
-
function
|
|
1219
|
+
function Z(e, ...t) {
|
|
1199
1220
|
const n = Object(e);
|
|
1200
1221
|
for (let o = 1; o < arguments.length; o++) {
|
|
1201
1222
|
const r = arguments[o];
|
|
@@ -1205,64 +1226,64 @@ function _(e, ...t) {
|
|
|
1205
1226
|
}
|
|
1206
1227
|
return n;
|
|
1207
1228
|
}
|
|
1208
|
-
function
|
|
1229
|
+
function lo(e) {
|
|
1209
1230
|
for (const t of e)
|
|
1210
1231
|
switch (t.trigger) {
|
|
1211
1232
|
case "pageLoad":
|
|
1212
|
-
|
|
1233
|
+
At(t);
|
|
1213
1234
|
break;
|
|
1214
1235
|
case "scrollInView":
|
|
1215
|
-
|
|
1236
|
+
uo(t);
|
|
1216
1237
|
break;
|
|
1217
1238
|
}
|
|
1218
1239
|
}
|
|
1219
|
-
function
|
|
1240
|
+
function Et(e) {
|
|
1220
1241
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1221
1242
|
}
|
|
1222
|
-
function
|
|
1223
|
-
const n =
|
|
1243
|
+
function Rt(e, t) {
|
|
1244
|
+
const n = co(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
1224
1245
|
for (const l of s)
|
|
1225
1246
|
for (const a of n)
|
|
1226
1247
|
a in l || (l[a] = o[a]);
|
|
1227
1248
|
}
|
|
1228
|
-
function
|
|
1249
|
+
function co(e) {
|
|
1229
1250
|
const t = [];
|
|
1230
1251
|
for (const n of e.steps)
|
|
1231
1252
|
for (const o in n.styles)
|
|
1232
1253
|
t.indexOf(o) === -1 && t.push(o);
|
|
1233
1254
|
return t;
|
|
1234
1255
|
}
|
|
1235
|
-
function
|
|
1256
|
+
function At(e) {
|
|
1236
1257
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1237
1258
|
if (!t.length) {
|
|
1238
|
-
|
|
1259
|
+
Et(e.elementId || e.id || "");
|
|
1239
1260
|
return;
|
|
1240
1261
|
}
|
|
1241
1262
|
Array.from(t).forEach((n) => {
|
|
1242
|
-
|
|
1243
|
-
n.style.transition = `all ${e.duration}s ${De(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
1263
|
+
Rt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1264
|
+
n.style.transition = `all ${e.duration}s ${De(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1244
1265
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1245
1266
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1246
1267
|
});
|
|
1247
1268
|
});
|
|
1248
1269
|
}
|
|
1249
|
-
function
|
|
1270
|
+
function uo(e) {
|
|
1250
1271
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1251
1272
|
if (!t.length) {
|
|
1252
|
-
|
|
1273
|
+
Et(e.elementId || e.id || "");
|
|
1253
1274
|
return;
|
|
1254
1275
|
}
|
|
1255
1276
|
Array.from(t).forEach((n) => {
|
|
1256
|
-
|
|
1277
|
+
Rt(e, n);
|
|
1257
1278
|
let o = !1, r = !1;
|
|
1258
1279
|
function i() {
|
|
1259
1280
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
1260
|
-
|
|
1281
|
+
Z(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
1261
1282
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
1262
1283
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1263
|
-
})) : e.repeat && o && !r && !l(n) && (o = !1,
|
|
1284
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, Z(n.style, e.steps[0].styles));
|
|
1264
1285
|
}
|
|
1265
|
-
const s =
|
|
1286
|
+
const s = ao(i, 200, {
|
|
1266
1287
|
leading: !1
|
|
1267
1288
|
});
|
|
1268
1289
|
function l(p) {
|
|
@@ -1271,7 +1292,7 @@ function ro(e) {
|
|
|
1271
1292
|
}
|
|
1272
1293
|
const a = e.steps[0].styles;
|
|
1273
1294
|
function u() {
|
|
1274
|
-
|
|
1295
|
+
Z(n.style, a);
|
|
1275
1296
|
}
|
|
1276
1297
|
u(), setTimeout(() => {
|
|
1277
1298
|
n.style.transition = `all ${e.duration}s ${De(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -1287,48 +1308,48 @@ const re = (e, t) => {
|
|
|
1287
1308
|
...e,
|
|
1288
1309
|
"--builder-image-position": n
|
|
1289
1310
|
} : e;
|
|
1290
|
-
},
|
|
1311
|
+
}, Ls = (e, t) => t ? {
|
|
1291
1312
|
...e,
|
|
1292
1313
|
large: re(e == null ? void 0 : e.large, "initial"),
|
|
1293
1314
|
medium: re(e == null ? void 0 : e.medium),
|
|
1294
1315
|
small: re(e == null ? void 0 : e.small),
|
|
1295
1316
|
xsmall: re(e == null ? void 0 : e.xsmall)
|
|
1296
|
-
} : e,
|
|
1317
|
+
} : e, Pt = (e) => Object.entries(e).map(([n, o]) => {
|
|
1297
1318
|
if (typeof o == "string")
|
|
1298
1319
|
return `${De(n)}: ${o};`;
|
|
1299
|
-
}).filter(j),
|
|
1300
|
-
`),
|
|
1320
|
+
}).filter(j), po = (e) => Pt(e).join(`
|
|
1321
|
+
`), Fs = ({
|
|
1301
1322
|
mediaQuery: e,
|
|
1302
1323
|
className: t,
|
|
1303
1324
|
styles: n
|
|
1304
1325
|
}) => {
|
|
1305
1326
|
const o = `.${t} {
|
|
1306
|
-
${
|
|
1327
|
+
${po(n)}
|
|
1307
1328
|
}`;
|
|
1308
1329
|
return e ? `${e} {
|
|
1309
1330
|
${o}
|
|
1310
1331
|
}` : o;
|
|
1311
1332
|
};
|
|
1312
|
-
function
|
|
1333
|
+
function mo({
|
|
1313
1334
|
style: e
|
|
1314
1335
|
}) {
|
|
1315
1336
|
return e;
|
|
1316
1337
|
}
|
|
1317
|
-
const
|
|
1338
|
+
const Ms = ({
|
|
1318
1339
|
block: e,
|
|
1319
1340
|
context: t
|
|
1320
|
-
}) =>
|
|
1341
|
+
}) => Bt(mo({
|
|
1321
1342
|
style: e.style || {},
|
|
1322
1343
|
context: t,
|
|
1323
1344
|
block: e
|
|
1324
1345
|
}));
|
|
1325
|
-
function
|
|
1346
|
+
function Bt(e) {
|
|
1326
1347
|
switch (E) {
|
|
1327
1348
|
case "svelte":
|
|
1328
1349
|
case "vue":
|
|
1329
1350
|
case "solid":
|
|
1330
1351
|
case "angular":
|
|
1331
|
-
return
|
|
1352
|
+
return Pt(e).join(" ");
|
|
1332
1353
|
case "qwik":
|
|
1333
1354
|
case "reactNative":
|
|
1334
1355
|
case "react":
|
|
@@ -1336,7 +1357,7 @@ function Rt(e) {
|
|
|
1336
1357
|
return e;
|
|
1337
1358
|
}
|
|
1338
1359
|
}
|
|
1339
|
-
const
|
|
1360
|
+
const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, ho = ({
|
|
1340
1361
|
block: e,
|
|
1341
1362
|
registeredComponents: t,
|
|
1342
1363
|
model: n
|
|
@@ -1346,14 +1367,14 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1346
1367
|
if (!o)
|
|
1347
1368
|
return null;
|
|
1348
1369
|
const r = t[o];
|
|
1349
|
-
if (!r ||
|
|
1370
|
+
if (!r || Vt(r, n)) {
|
|
1350
1371
|
console.warn(`
|
|
1351
1372
|
Could not find a registered component named "${o}".
|
|
1352
1373
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1353
1374
|
return;
|
|
1354
1375
|
} else
|
|
1355
1376
|
return r;
|
|
1356
|
-
},
|
|
1377
|
+
}, fo = ({
|
|
1357
1378
|
block: e,
|
|
1358
1379
|
context: t
|
|
1359
1380
|
}) => {
|
|
@@ -1386,59 +1407,59 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1386
1407
|
},
|
|
1387
1408
|
block: o
|
|
1388
1409
|
}));
|
|
1389
|
-
},
|
|
1410
|
+
}, bo = (e, t) => {
|
|
1390
1411
|
var n;
|
|
1391
1412
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1392
1413
|
builderLinkComponent: t
|
|
1393
1414
|
} : {};
|
|
1394
|
-
},
|
|
1415
|
+
}, go = (e, t, n) => {
|
|
1395
1416
|
var o;
|
|
1396
1417
|
return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
|
|
1397
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !
|
|
1418
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !Vt(s, n)))
|
|
1398
1419
|
} : {};
|
|
1399
|
-
},
|
|
1420
|
+
}, yo = (e, t) => {
|
|
1400
1421
|
var n;
|
|
1401
1422
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1402
1423
|
builderBlock: t
|
|
1403
1424
|
} : {};
|
|
1404
|
-
},
|
|
1425
|
+
}, vo = (e, t) => {
|
|
1405
1426
|
var n;
|
|
1406
1427
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1407
1428
|
builderContext: t
|
|
1408
1429
|
} : {};
|
|
1409
|
-
},
|
|
1430
|
+
}, So = (e) => e.toString(), ko = () => Promise.resolve().then(() => Wo).then((e) => e.default).catch((e) => {
|
|
1410
1431
|
throw console.error(
|
|
1411
1432
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1412
1433
|
e
|
|
1413
1434
|
), e;
|
|
1414
|
-
}),
|
|
1435
|
+
}), Co = () => import("./block-wrapper--DIgpG8b.js").then((e) => e.default).catch((e) => {
|
|
1415
1436
|
throw console.error(
|
|
1416
1437
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1417
1438
|
e
|
|
1418
1439
|
), e;
|
|
1419
|
-
}),
|
|
1440
|
+
}), To = () => import("./component-ref-wPMzznC-.js").then((e) => e.default).catch((e) => {
|
|
1420
1441
|
throw console.error(
|
|
1421
1442
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1422
1443
|
e
|
|
1423
1444
|
), e;
|
|
1424
|
-
}),
|
|
1445
|
+
}), wo = () => import("./repeated-block-6I_L8WXH.js").then((e) => e.default).catch((e) => {
|
|
1425
1446
|
throw console.error(
|
|
1426
1447
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1427
1448
|
e
|
|
1428
1449
|
), e;
|
|
1429
|
-
}),
|
|
1450
|
+
}), Io = () => import("./style-wrapper-AiMrF8oQ.js").then((e) => e.default).catch((e) => {
|
|
1430
1451
|
throw console.error(
|
|
1431
1452
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1432
1453
|
e
|
|
1433
1454
|
), e;
|
|
1434
|
-
}),
|
|
1455
|
+
}), $o = y({
|
|
1435
1456
|
name: "block",
|
|
1436
1457
|
components: {
|
|
1437
|
-
StyleWrapper:
|
|
1438
|
-
RepeatedBlock:
|
|
1439
|
-
ComponentRef:
|
|
1440
|
-
BlockWrapper:
|
|
1441
|
-
DynamicDiv:
|
|
1458
|
+
StyleWrapper: Y(Io),
|
|
1459
|
+
RepeatedBlock: Y(wo),
|
|
1460
|
+
ComponentRef: Y(To),
|
|
1461
|
+
BlockWrapper: Y(Co),
|
|
1462
|
+
DynamicDiv: Y(ko)
|
|
1442
1463
|
},
|
|
1443
1464
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1444
1465
|
data() {
|
|
@@ -1447,12 +1468,12 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1447
1468
|
value: null,
|
|
1448
1469
|
update: !1
|
|
1449
1470
|
},
|
|
1450
|
-
generateKey:
|
|
1471
|
+
generateKey: So
|
|
1451
1472
|
};
|
|
1452
1473
|
},
|
|
1453
1474
|
mounted() {
|
|
1454
1475
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1455
|
-
t && e &&
|
|
1476
|
+
t && e && lo(
|
|
1456
1477
|
t.map((n) => ({
|
|
1457
1478
|
...n,
|
|
1458
1479
|
elementId: e
|
|
@@ -1463,14 +1484,14 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1463
1484
|
},
|
|
1464
1485
|
computed: {
|
|
1465
1486
|
repeatItem() {
|
|
1466
|
-
return
|
|
1487
|
+
return fo({
|
|
1467
1488
|
block: this.block,
|
|
1468
1489
|
context: this.context
|
|
1469
1490
|
});
|
|
1470
1491
|
},
|
|
1471
1492
|
processedBlock() {
|
|
1472
1493
|
var t;
|
|
1473
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1494
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : Nn({
|
|
1474
1495
|
block: this.block,
|
|
1475
1496
|
localState: this.context.localState,
|
|
1476
1497
|
rootState: this.context.rootState,
|
|
@@ -1479,7 +1500,7 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1479
1500
|
});
|
|
1480
1501
|
},
|
|
1481
1502
|
blockComponent() {
|
|
1482
|
-
return
|
|
1503
|
+
return ho({
|
|
1483
1504
|
block: this.processedBlock,
|
|
1484
1505
|
registeredComponents: this.registeredComponents,
|
|
1485
1506
|
model: this.context.model
|
|
@@ -1506,11 +1527,11 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1506
1527
|
blockChildren: this.processedBlock.children ?? [],
|
|
1507
1528
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1508
1529
|
componentOptions: {
|
|
1509
|
-
...
|
|
1510
|
-
...
|
|
1511
|
-
...
|
|
1512
|
-
...
|
|
1513
|
-
...
|
|
1530
|
+
...wn(this.processedBlock, this.context),
|
|
1531
|
+
...yo(this.blockComponent, this.processedBlock),
|
|
1532
|
+
...vo(this.blockComponent, this.context),
|
|
1533
|
+
...bo(this.blockComponent, this.linkComponent),
|
|
1534
|
+
...go(
|
|
1514
1535
|
this.blockComponent,
|
|
1515
1536
|
this.registeredComponents,
|
|
1516
1537
|
this.context.model
|
|
@@ -1526,7 +1547,7 @@ const Pt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1526
1547
|
}
|
|
1527
1548
|
}
|
|
1528
1549
|
});
|
|
1529
|
-
function
|
|
1550
|
+
function Eo(e, t, n, o, r, i) {
|
|
1530
1551
|
var b;
|
|
1531
1552
|
const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
|
|
1532
1553
|
return e.canShowBlock ? (d(), h(I, { key: 0 }, [
|
|
@@ -1592,10 +1613,10 @@ function ko(e, t, n, o, r, i) {
|
|
|
1592
1613
|
], 64))
|
|
1593
1614
|
], 64)) : T("", !0);
|
|
1594
1615
|
}
|
|
1595
|
-
const
|
|
1616
|
+
const Nt = /* @__PURE__ */ v($o, [["render", Eo]]), Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1596
1617
|
__proto__: null,
|
|
1597
|
-
default:
|
|
1598
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1618
|
+
default: Nt
|
|
1619
|
+
}, Symbol.toStringTag, { value: "Module" })), Ro = y({
|
|
1599
1620
|
name: "builder-blocks-wrapper",
|
|
1600
1621
|
props: [
|
|
1601
1622
|
"blocks",
|
|
@@ -1639,7 +1660,7 @@ const At = /* @__PURE__ */ v(So, [["render", ko]]), Ws = /* @__PURE__ */ Object.
|
|
|
1639
1660
|
methods: {
|
|
1640
1661
|
onClick() {
|
|
1641
1662
|
var e, t;
|
|
1642
|
-
|
|
1663
|
+
A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1643
1664
|
{
|
|
1644
1665
|
type: "builder.clickEmptyBlocks",
|
|
1645
1666
|
data: {
|
|
@@ -1652,7 +1673,7 @@ const At = /* @__PURE__ */ v(So, [["render", ko]]), Ws = /* @__PURE__ */ Object.
|
|
|
1652
1673
|
},
|
|
1653
1674
|
onMouseEnter() {
|
|
1654
1675
|
var e, t;
|
|
1655
|
-
|
|
1676
|
+
A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1656
1677
|
{
|
|
1657
1678
|
type: "builder.hoverEmptyBlocks",
|
|
1658
1679
|
data: {
|
|
@@ -1665,8 +1686,8 @@ const At = /* @__PURE__ */ v(So, [["render", ko]]), Ws = /* @__PURE__ */ Object.
|
|
|
1665
1686
|
}
|
|
1666
1687
|
}
|
|
1667
1688
|
});
|
|
1668
|
-
function
|
|
1669
|
-
return d(), S(
|
|
1689
|
+
function Ao(e, t, n, o, r, i) {
|
|
1690
|
+
return d(), S(X(e.BlocksWrapper), $({
|
|
1670
1691
|
ref: "blocksWrapperRef",
|
|
1671
1692
|
class: e.className + " component-5vz8uirn7sc",
|
|
1672
1693
|
"builder-path": e.dataPath,
|
|
@@ -1682,9 +1703,9 @@ function To(e, t, n, o, r, i) {
|
|
|
1682
1703
|
_: 3
|
|
1683
1704
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1684
1705
|
}
|
|
1685
|
-
const
|
|
1706
|
+
const Po = /* @__PURE__ */ v(Ro, [["render", Ao], ["__scopeId", "data-v-82fc93d6"]]), Bo = y({
|
|
1686
1707
|
name: "builder-blocks",
|
|
1687
|
-
components: { BlocksWrapper:
|
|
1708
|
+
components: { BlocksWrapper: Po, Block: Nt },
|
|
1688
1709
|
props: [
|
|
1689
1710
|
"blocks",
|
|
1690
1711
|
"parent",
|
|
@@ -1698,10 +1719,10 @@ const wo = /* @__PURE__ */ v(Co, [["render", To], ["__scopeId", "data-v-82fc93d6
|
|
|
1698
1719
|
],
|
|
1699
1720
|
inject: {
|
|
1700
1721
|
builderContext: ve.key,
|
|
1701
|
-
componentsContext:
|
|
1722
|
+
componentsContext: rt.key
|
|
1702
1723
|
}
|
|
1703
1724
|
});
|
|
1704
|
-
function
|
|
1725
|
+
function Vo(e, t, n, o, r, i) {
|
|
1705
1726
|
var a, u, p, b;
|
|
1706
1727
|
const s = k("Block"), l = k("BlocksWrapper");
|
|
1707
1728
|
return d(), S(l, {
|
|
@@ -1729,21 +1750,21 @@ function $o(e, t, n, o, r, i) {
|
|
|
1729
1750
|
_: 3
|
|
1730
1751
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
1731
1752
|
}
|
|
1732
|
-
const K = /* @__PURE__ */ v(
|
|
1753
|
+
const K = /* @__PURE__ */ v(Bo, [["render", Vo]]), No = y({
|
|
1733
1754
|
name: "dynamic-div",
|
|
1734
1755
|
props: []
|
|
1735
1756
|
});
|
|
1736
|
-
function
|
|
1757
|
+
function Oo(e, t, n, o, r, i) {
|
|
1737
1758
|
return d(), h("div", null, [
|
|
1738
1759
|
N(e.$slots, "default")
|
|
1739
1760
|
]);
|
|
1740
1761
|
}
|
|
1741
|
-
const ne = /* @__PURE__ */ v(
|
|
1762
|
+
const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1742
1763
|
__proto__: null,
|
|
1743
1764
|
default: ne
|
|
1744
1765
|
}, Symbol.toStringTag, { value: "Module" })), he = y({
|
|
1745
1766
|
render() {
|
|
1746
|
-
return
|
|
1767
|
+
return ot("style", {
|
|
1747
1768
|
innerHTML: this.styles,
|
|
1748
1769
|
"data-id": this.id,
|
|
1749
1770
|
nonce: this.nonce
|
|
@@ -1751,7 +1772,7 @@ const ne = /* @__PURE__ */ v(Eo, [["render", Ro]]), Po = /* @__PURE__ */ Object.
|
|
|
1751
1772
|
},
|
|
1752
1773
|
name: "inlined-styles",
|
|
1753
1774
|
props: ["styles", "id", "nonce"]
|
|
1754
|
-
}),
|
|
1775
|
+
}), Ot = {
|
|
1755
1776
|
xsmall: {
|
|
1756
1777
|
min: 0,
|
|
1757
1778
|
default: 160,
|
|
@@ -1772,8 +1793,8 @@ const ne = /* @__PURE__ */ v(Eo, [["render", Ro]]), Po = /* @__PURE__ */ Object.
|
|
|
1772
1793
|
default: 991,
|
|
1773
1794
|
max: 1200
|
|
1774
1795
|
}
|
|
1775
|
-
},
|
|
1776
|
-
const t = Be(
|
|
1796
|
+
}, js = (e, t = Ot) => `@media (max-width: ${t[e].max}px)`, Do = (e) => {
|
|
1797
|
+
const t = Be(Ot);
|
|
1777
1798
|
if (!e)
|
|
1778
1799
|
return t;
|
|
1779
1800
|
const {
|
|
@@ -1810,7 +1831,7 @@ const ne = /* @__PURE__ */ v(Eo, [["render", Ro]]), Po = /* @__PURE__ */ Object.
|
|
|
1810
1831
|
min: l,
|
|
1811
1832
|
default: l + 1
|
|
1812
1833
|
}, t;
|
|
1813
|
-
},
|
|
1834
|
+
}, Uo = (e) => `builder-columns ${e}-breakpoints`, xo = y({
|
|
1814
1835
|
name: "builder-columns",
|
|
1815
1836
|
components: {
|
|
1816
1837
|
InlinedStyles: he,
|
|
@@ -1829,7 +1850,7 @@ const ne = /* @__PURE__ */ v(Eo, [["render", Ro]]), Po = /* @__PURE__ */ Object.
|
|
|
1829
1850
|
"builderComponents"
|
|
1830
1851
|
],
|
|
1831
1852
|
data() {
|
|
1832
|
-
return { TARGET: E, getColumnsClass:
|
|
1853
|
+
return { TARGET: E, getColumnsClass: Uo };
|
|
1833
1854
|
},
|
|
1834
1855
|
computed: {
|
|
1835
1856
|
gutterSize() {
|
|
@@ -1908,7 +1929,7 @@ const ne = /* @__PURE__ */ v(Eo, [["render", Ro]]), Po = /* @__PURE__ */ Object.
|
|
|
1908
1929
|
},
|
|
1909
1930
|
getWidthForBreakpointSize(e) {
|
|
1910
1931
|
var n, o;
|
|
1911
|
-
return
|
|
1932
|
+
return Do(
|
|
1912
1933
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1913
1934
|
)[e].max;
|
|
1914
1935
|
},
|
|
@@ -1945,13 +1966,13 @@ const ne = /* @__PURE__ */ v(Eo, [["render", Ro]]), Po = /* @__PURE__ */ Object.
|
|
|
1945
1966
|
...e.link ? {
|
|
1946
1967
|
href: e.link
|
|
1947
1968
|
} : {},
|
|
1948
|
-
[
|
|
1949
|
-
style:
|
|
1969
|
+
[H()]: "builder-column",
|
|
1970
|
+
style: Bt(this.columnCssVars(t))
|
|
1950
1971
|
};
|
|
1951
1972
|
}
|
|
1952
1973
|
}
|
|
1953
1974
|
});
|
|
1954
|
-
function
|
|
1975
|
+
function Lo(e, t, n, o, r, i) {
|
|
1955
1976
|
var u;
|
|
1956
1977
|
const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1957
1978
|
return d(), h("div", $({
|
|
@@ -1987,32 +2008,32 @@ function No(e, t, n, o, r, i) {
|
|
|
1987
2008
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1988
2009
|
], 16);
|
|
1989
2010
|
}
|
|
1990
|
-
const
|
|
2011
|
+
const Fo = /* @__PURE__ */ v(xo, [["render", Lo], ["__scopeId", "data-v-ab15749a"]]), Mo = y({
|
|
1991
2012
|
name: "builder-fragment-component",
|
|
1992
2013
|
props: []
|
|
1993
2014
|
});
|
|
1994
|
-
function
|
|
2015
|
+
function Ho(e, t, n, o, r, i) {
|
|
1995
2016
|
return d(), h("span", null, [
|
|
1996
2017
|
N(e.$slots, "default")
|
|
1997
2018
|
]);
|
|
1998
2019
|
}
|
|
1999
|
-
const
|
|
2000
|
-
function
|
|
2020
|
+
const jo = /* @__PURE__ */ v(Mo, [["render", Ho]]);
|
|
2021
|
+
function Ye(e) {
|
|
2001
2022
|
return e.replace(/http(s)?:/, "");
|
|
2002
2023
|
}
|
|
2003
|
-
function
|
|
2024
|
+
function zo(e = "", t, n) {
|
|
2004
2025
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
2005
2026
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
2006
2027
|
}
|
|
2007
|
-
function
|
|
2028
|
+
function Ko(e, t) {
|
|
2008
2029
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
2009
2030
|
return e;
|
|
2010
2031
|
if (t === "master")
|
|
2011
|
-
return
|
|
2032
|
+
return Ye(e);
|
|
2012
2033
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
2013
2034
|
if (n) {
|
|
2014
2035
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
2015
|
-
return
|
|
2036
|
+
return Ye(`${o[0]}_${i}${r}`);
|
|
2016
2037
|
}
|
|
2017
2038
|
return null;
|
|
2018
2039
|
}
|
|
@@ -2023,11 +2044,11 @@ function ie(e) {
|
|
|
2023
2044
|
if (e.match(/builder\.io/)) {
|
|
2024
2045
|
let n = e;
|
|
2025
2046
|
const o = Number(e.split("?width=")[1]);
|
|
2026
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
2047
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${zo(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
2027
2048
|
}
|
|
2028
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
2049
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [Ko(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
2029
2050
|
}
|
|
2030
|
-
const
|
|
2051
|
+
const qo = y({
|
|
2031
2052
|
name: "builder-image",
|
|
2032
2053
|
props: [
|
|
2033
2054
|
"lazy",
|
|
@@ -2081,11 +2102,11 @@ const Fo = y({
|
|
|
2081
2102
|
return this.aspectRatio ? e : void 0;
|
|
2082
2103
|
}
|
|
2083
2104
|
}
|
|
2084
|
-
}),
|
|
2105
|
+
}), Go = ["srcset", "sizes"], Jo = ["loading", "fetchpriority", "alt", "title", "src", "srcset", "sizes"], Qo = {
|
|
2085
2106
|
key: 2,
|
|
2086
2107
|
class: "div-t43jfuqn6g-2"
|
|
2087
2108
|
};
|
|
2088
|
-
function
|
|
2109
|
+
function _o(e, t, n, o, r, i) {
|
|
2089
2110
|
var s, l, a, u, p, b;
|
|
2090
2111
|
return d(), h(I, null, [
|
|
2091
2112
|
G("picture", null, [
|
|
@@ -2094,14 +2115,13 @@ function zo(e, t, n, o, r, i) {
|
|
|
2094
2115
|
type: "image/webp",
|
|
2095
2116
|
srcset: e.webpSrcSet,
|
|
2096
2117
|
sizes: e.sizesToUse
|
|
2097
|
-
}, null, 8,
|
|
2118
|
+
}, null, 8, Go)) : T("", !0),
|
|
2098
2119
|
G("img", {
|
|
2099
2120
|
loading: e.highPriority ? "eager" : "lazy",
|
|
2100
2121
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
2101
2122
|
alt: e.altText || "",
|
|
2102
2123
|
title: e.title,
|
|
2103
|
-
|
|
2104
|
-
style: H({
|
|
2124
|
+
style: M({
|
|
2105
2125
|
objectPosition: `var(--builder-image-position, ${e.backgroundPosition || "center"})`,
|
|
2106
2126
|
objectFit: e.backgroundSize || "cover",
|
|
2107
2127
|
...e.aspectRatioCss
|
|
@@ -2112,29 +2132,29 @@ function zo(e, t, n, o, r, i) {
|
|
|
2112
2132
|
src: e.image,
|
|
2113
2133
|
srcset: e.srcSetToUse,
|
|
2114
2134
|
sizes: e.sizesToUse
|
|
2115
|
-
}, null, 14,
|
|
2135
|
+
}, null, 14, Jo)
|
|
2116
2136
|
]),
|
|
2117
2137
|
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
|
|
2118
2138
|
key: 0,
|
|
2119
2139
|
class: "builder-image-sizer div-t43jfuqn6g",
|
|
2120
|
-
style:
|
|
2140
|
+
style: M({
|
|
2121
2141
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
2122
2142
|
})
|
|
2123
2143
|
}, null, 4)) : T("", !0),
|
|
2124
2144
|
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? N(e.$slots, "default", { key: 1 }, void 0, !0) : T("", !0),
|
|
2125
|
-
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (d(), h("div",
|
|
2145
|
+
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (d(), h("div", Qo, [
|
|
2126
2146
|
N(e.$slots, "default", {}, void 0, !0)
|
|
2127
2147
|
])) : T("", !0)
|
|
2128
2148
|
], 64);
|
|
2129
2149
|
}
|
|
2130
|
-
const
|
|
2150
|
+
const Yo = /* @__PURE__ */ v(qo, [["render", _o], ["__scopeId", "data-v-8fff0ea5"]]), Xo = y({
|
|
2131
2151
|
name: "builder-section-component",
|
|
2132
2152
|
props: ["attributes", "maxWidth"],
|
|
2133
2153
|
data() {
|
|
2134
2154
|
return { filterAttrs: O };
|
|
2135
2155
|
}
|
|
2136
2156
|
});
|
|
2137
|
-
function
|
|
2157
|
+
function Zo(e, t, n, o, r, i) {
|
|
2138
2158
|
return d(), h("section", $({
|
|
2139
2159
|
style: {
|
|
2140
2160
|
width: "100%",
|
|
@@ -2148,12 +2168,12 @@ function Go(e, t, n, o, r, i) {
|
|
|
2148
2168
|
marginLeft: "auto",
|
|
2149
2169
|
marginRight: "auto"
|
|
2150
2170
|
}
|
|
2151
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
2171
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
2152
2172
|
N(e.$slots, "default")
|
|
2153
2173
|
], 16);
|
|
2154
2174
|
}
|
|
2155
|
-
const
|
|
2156
|
-
function
|
|
2175
|
+
const er = /* @__PURE__ */ v(Xo, [["render", Zo]]);
|
|
2176
|
+
function tr(e, t, n, o) {
|
|
2157
2177
|
function r(u) {
|
|
2158
2178
|
return typeof u == "string";
|
|
2159
2179
|
}
|
|
@@ -2167,14 +2187,14 @@ function Qo(e, t, n, o) {
|
|
|
2167
2187
|
if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (f = p.value.slice(0, -1)), !(c && m))
|
|
2168
2188
|
return !0;
|
|
2169
2189
|
if (Array.isArray(f))
|
|
2170
|
-
return m === "isNot" ? f.every((
|
|
2190
|
+
return m === "isNot" ? f.every((P) => s(u, {
|
|
2171
2191
|
property: c,
|
|
2172
2192
|
operator: m,
|
|
2173
|
-
value:
|
|
2174
|
-
})) : !!f.find((
|
|
2193
|
+
value: P
|
|
2194
|
+
})) : !!f.find((P) => s(u, {
|
|
2175
2195
|
property: c,
|
|
2176
2196
|
operator: m,
|
|
2177
|
-
value:
|
|
2197
|
+
value: P
|
|
2178
2198
|
}));
|
|
2179
2199
|
const g = u[c];
|
|
2180
2200
|
if (Array.isArray(g))
|
|
@@ -2210,7 +2230,20 @@ function Qo(e, t, n, o) {
|
|
|
2210
2230
|
}, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2211
2231
|
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));
|
|
2212
2232
|
}
|
|
2213
|
-
const
|
|
2233
|
+
const nr = `function getStudioUserAttributes() {
|
|
2234
|
+
const params = new URLSearchParams(window.location.search);
|
|
2235
|
+
if (params.get('builder.preview') !== 'BUILDER_STUDIO') {
|
|
2236
|
+
return {};
|
|
2237
|
+
}
|
|
2238
|
+
const prefix = 'builder.userAttributes.';
|
|
2239
|
+
const attributes = {};
|
|
2240
|
+
params.forEach(function (value, key) {
|
|
2241
|
+
if (key.indexOf(prefix) === 0) {
|
|
2242
|
+
attributes[key.slice(prefix.length)] = value === 'true' ? true : value === 'false' ? false : value;
|
|
2243
|
+
}
|
|
2244
|
+
});
|
|
2245
|
+
return attributes;
|
|
2246
|
+
}`, or = `function getPersonalizedVariant(variants, blockId, isHydrationTarget, locale) {
|
|
2214
2247
|
if (!navigator.cookieEnabled) {
|
|
2215
2248
|
return;
|
|
2216
2249
|
}
|
|
@@ -2228,6 +2261,7 @@ const Yo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2228
2261
|
if (locale) {
|
|
2229
2262
|
attributes.locale = locale;
|
|
2230
2263
|
}
|
|
2264
|
+
Object.assign(attributes, window.builderIoStudioUserAttributes());
|
|
2231
2265
|
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
2232
2266
|
return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
2233
2267
|
});
|
|
@@ -2255,7 +2289,7 @@ const Yo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2255
2289
|
thisScript.remove();
|
|
2256
2290
|
}
|
|
2257
2291
|
}
|
|
2258
|
-
}`,
|
|
2292
|
+
}`, rr = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2259
2293
|
function isString(val) {
|
|
2260
2294
|
return typeof val === 'string';
|
|
2261
2295
|
}
|
|
@@ -2333,7 +2367,7 @@ const Yo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2333
2367
|
return item.query.every(filter => {
|
|
2334
2368
|
return objectMatchesQuery(userAttributes, filter);
|
|
2335
2369
|
});
|
|
2336
|
-
}`,
|
|
2370
|
+
}`, ir = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
2337
2371
|
function getCookie(name) {
|
|
2338
2372
|
const nameEQ = name + '=';
|
|
2339
2373
|
const ca = document.cookie.split(';');
|
|
@@ -2359,6 +2393,7 @@ const Yo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2359
2393
|
if (locale) {
|
|
2360
2394
|
attributes.locale = locale;
|
|
2361
2395
|
}
|
|
2396
|
+
Object.assign(attributes, window.builderIoStudioUserAttributes());
|
|
2362
2397
|
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
2363
2398
|
return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
2364
2399
|
});
|
|
@@ -2371,11 +2406,11 @@ const Yo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2371
2406
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2372
2407
|
}
|
|
2373
2408
|
}
|
|
2374
|
-
}`, se = "default",
|
|
2375
|
-
function
|
|
2376
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
2409
|
+
}`, se = "default", Xe = "filterWithCustomTargeting", Te = "builderIoPersonalization", we = "updateVisibilityStylesScript", Ze = "builderIoStudioUserAttributes", sr = "PersonalizationContainer", Wt = ["react", "vue", "svelte", "qwik"], Dt = ["vue", "svelte", "qwik"];
|
|
2410
|
+
function ar(e, t) {
|
|
2411
|
+
return !(e && e.length > 0) || !t ? !1 : Dt.includes(E) ? !0 : !w();
|
|
2377
2412
|
}
|
|
2378
|
-
function
|
|
2413
|
+
function lr({
|
|
2379
2414
|
variants: e,
|
|
2380
2415
|
previewingIndex: t,
|
|
2381
2416
|
isHydrated: n,
|
|
@@ -2387,7 +2422,7 @@ function tr({
|
|
|
2387
2422
|
path: "this.children",
|
|
2388
2423
|
index: se
|
|
2389
2424
|
};
|
|
2390
|
-
if (n &&
|
|
2425
|
+
if (n && A()) {
|
|
2391
2426
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
2392
2427
|
const s = e == null ? void 0 : e[t];
|
|
2393
2428
|
if (s)
|
|
@@ -2415,20 +2450,23 @@ function tr({
|
|
|
2415
2450
|
}
|
|
2416
2451
|
const Ie = (e) => {
|
|
2417
2452
|
var t;
|
|
2418
|
-
return Array.isArray(e) ? e.some(Ie) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) ===
|
|
2419
|
-
},
|
|
2453
|
+
return Array.isArray(e) ? e.some(Ie) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === sr ? !0 : Object.values(e).some(Ie);
|
|
2454
|
+
}, cr = (e) => Ie(e), dr = () => `
|
|
2420
2455
|
(function() {
|
|
2421
|
-
if (!window.${
|
|
2422
|
-
window.${
|
|
2456
|
+
if (!window.${Ze}) {
|
|
2457
|
+
window.${Ze} = ${nr};
|
|
2458
|
+
}
|
|
2459
|
+
if (!window.${Xe}) {
|
|
2460
|
+
window.${Xe} = ${rr};
|
|
2423
2461
|
}
|
|
2424
2462
|
if (!window.${Te}) {
|
|
2425
|
-
window.${Te} = ${
|
|
2463
|
+
window.${Te} = ${or};
|
|
2426
2464
|
}
|
|
2427
2465
|
if (!window.${we}) {
|
|
2428
|
-
window.${we} = ${
|
|
2466
|
+
window.${we} = ${ir};
|
|
2429
2467
|
}
|
|
2430
2468
|
})();
|
|
2431
|
-
`,
|
|
2469
|
+
`, Ut = E === "react", ur = (e, t, n) => `window.${Te}(${JSON.stringify(e)}, "${t}", ${Ut}${n ? `, "${n}"` : ""})`, pr = (e, t, n) => `window.${we}(${JSON.stringify(e)}, "${t}", ${Ut}${n ? `, "${n}"` : ""})`, fe = {
|
|
2432
2470
|
"@type": "@builder.io/sdk:Element",
|
|
2433
2471
|
layerName: "Accordion item title",
|
|
2434
2472
|
responsiveStyles: {
|
|
@@ -2488,7 +2526,7 @@ const Ie = (e) => {
|
|
|
2488
2526
|
}
|
|
2489
2527
|
}
|
|
2490
2528
|
}]
|
|
2491
|
-
},
|
|
2529
|
+
}, mr = {
|
|
2492
2530
|
name: "Builder:Accordion",
|
|
2493
2531
|
canHaveChildren: !0,
|
|
2494
2532
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2552,7 +2590,7 @@ const Ie = (e) => {
|
|
|
2552
2590
|
builderComponents: !0,
|
|
2553
2591
|
builderLinkComponent: !0
|
|
2554
2592
|
}
|
|
2555
|
-
},
|
|
2593
|
+
}, hr = (e) => e.toString(), fr = y({
|
|
2556
2594
|
name: "builder-accordion",
|
|
2557
2595
|
components: { Blocks: K },
|
|
2558
2596
|
props: [
|
|
@@ -2566,7 +2604,7 @@ const Ie = (e) => {
|
|
|
2566
2604
|
"builderLinkComponent"
|
|
2567
2605
|
],
|
|
2568
2606
|
data() {
|
|
2569
|
-
return { open: [], convertOrderNumberToString:
|
|
2607
|
+
return { open: [], convertOrderNumberToString: hr };
|
|
2570
2608
|
},
|
|
2571
2609
|
computed: {
|
|
2572
2610
|
onlyOneAtATime() {
|
|
@@ -2647,17 +2685,17 @@ const Ie = (e) => {
|
|
|
2647
2685
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2648
2686
|
}
|
|
2649
2687
|
}
|
|
2650
|
-
}),
|
|
2651
|
-
function
|
|
2688
|
+
}), br = ["data-index", "onClick"];
|
|
2689
|
+
function gr(e, t, n, o, r, i) {
|
|
2652
2690
|
const s = k("Blocks");
|
|
2653
2691
|
return d(), h("div", {
|
|
2654
2692
|
class: "builder-accordion",
|
|
2655
|
-
style:
|
|
2693
|
+
style: M(e.accordionStyles)
|
|
2656
2694
|
}, [
|
|
2657
2695
|
(d(!0), h(I, null, L(e.items, (l, a) => (d(), h(I, { key: a }, [
|
|
2658
2696
|
G("div", {
|
|
2659
2697
|
class: ee(e.getAccordionTitleClassName(a)),
|
|
2660
|
-
style:
|
|
2698
|
+
style: M({
|
|
2661
2699
|
...e.accordionTitleStyles,
|
|
2662
2700
|
...e.grid && {
|
|
2663
2701
|
width: e.gridRowWidth,
|
|
@@ -2675,11 +2713,11 @@ function dr(e, t, n, o, r, i) {
|
|
|
2675
2713
|
registeredComponents: e.builderComponents,
|
|
2676
2714
|
linkComponent: e.builderLinkComponent
|
|
2677
2715
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2678
|
-
], 14,
|
|
2716
|
+
], 14, br),
|
|
2679
2717
|
e.open.includes(a) ? (d(), h("div", {
|
|
2680
2718
|
key: 0,
|
|
2681
2719
|
class: ee(e.getAccordionDetailClassName(a)),
|
|
2682
|
-
style:
|
|
2720
|
+
style: M(e.accordionDetailStyles)
|
|
2683
2721
|
}, [
|
|
2684
2722
|
R(s, {
|
|
2685
2723
|
blocks: l.detail,
|
|
@@ -2693,7 +2731,7 @@ function dr(e, t, n, o, r, i) {
|
|
|
2693
2731
|
], 64))), 128))
|
|
2694
2732
|
], 4);
|
|
2695
2733
|
}
|
|
2696
|
-
const
|
|
2734
|
+
const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
2697
2735
|
name: "Core:Button",
|
|
2698
2736
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2699
2737
|
defaultStyles: {
|
|
@@ -2729,7 +2767,7 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
|
2729
2767
|
shouldReceiveBuilderProps: {
|
|
2730
2768
|
builderLinkComponent: !0
|
|
2731
2769
|
}
|
|
2732
|
-
},
|
|
2770
|
+
}, Sr = {
|
|
2733
2771
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2734
2772
|
name: "Columns",
|
|
2735
2773
|
isRSC: !0,
|
|
@@ -2936,13 +2974,13 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
|
2936
2974
|
builderComponents: !0,
|
|
2937
2975
|
builderLinkComponent: !0
|
|
2938
2976
|
}
|
|
2939
|
-
},
|
|
2977
|
+
}, kr = {
|
|
2940
2978
|
name: "Fragment",
|
|
2941
2979
|
static: !0,
|
|
2942
2980
|
hidden: !0,
|
|
2943
2981
|
canHaveChildren: !0,
|
|
2944
2982
|
noWrap: !0
|
|
2945
|
-
},
|
|
2983
|
+
}, Ue = ["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"], Cr = ["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"], Tr = {
|
|
2946
2984
|
name: "Image",
|
|
2947
2985
|
static: !0,
|
|
2948
2986
|
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",
|
|
@@ -2957,7 +2995,7 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
|
2957
2995
|
name: "image",
|
|
2958
2996
|
type: "file",
|
|
2959
2997
|
bubble: !0,
|
|
2960
|
-
allowedFileTypes:
|
|
2998
|
+
allowedFileTypes: Ue,
|
|
2961
2999
|
required: !0,
|
|
2962
3000
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2963
3001
|
onChange: (e) => {
|
|
@@ -3055,7 +3093,7 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
|
3055
3093
|
shouldReceiveBuilderProps: {
|
|
3056
3094
|
builderBlock: !0
|
|
3057
3095
|
}
|
|
3058
|
-
},
|
|
3096
|
+
}, wr = {
|
|
3059
3097
|
name: "PersonalizationContainer",
|
|
3060
3098
|
shouldReceiveBuilderProps: {
|
|
3061
3099
|
builderBlock: !0,
|
|
@@ -3091,9 +3129,9 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
|
3091
3129
|
defaultValue: []
|
|
3092
3130
|
}]
|
|
3093
3131
|
}]
|
|
3094
|
-
},
|
|
3132
|
+
}, xe = y({
|
|
3095
3133
|
render() {
|
|
3096
|
-
return
|
|
3134
|
+
return ot("script", {
|
|
3097
3135
|
innerHTML: this.scriptStr,
|
|
3098
3136
|
"data-id": this.id,
|
|
3099
3137
|
nonce: this.nonce
|
|
@@ -3101,12 +3139,12 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
|
3101
3139
|
},
|
|
3102
3140
|
name: "inlined-script",
|
|
3103
3141
|
props: ["scriptStr", "id", "nonce"]
|
|
3104
|
-
}),
|
|
3142
|
+
}), Ir = y({
|
|
3105
3143
|
name: "builder-personalization-container",
|
|
3106
3144
|
components: {
|
|
3107
3145
|
Blocks: K,
|
|
3108
3146
|
InlinedStyles: he,
|
|
3109
|
-
InlinedScript:
|
|
3147
|
+
InlinedScript: xe
|
|
3110
3148
|
},
|
|
3111
3149
|
props: [
|
|
3112
3150
|
"builderContext",
|
|
@@ -3120,25 +3158,25 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
|
3120
3158
|
var e, t, n, o, r, i, s;
|
|
3121
3159
|
return {
|
|
3122
3160
|
userAttributes: ue.getUserAttributes(),
|
|
3123
|
-
scriptStr:
|
|
3161
|
+
scriptStr: ur(
|
|
3124
3162
|
this.variants,
|
|
3125
3163
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
3126
3164
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
3127
3165
|
),
|
|
3128
|
-
updateVisibilityStylesScript:
|
|
3166
|
+
updateVisibilityStylesScript: pr(
|
|
3129
3167
|
this.variants,
|
|
3130
3168
|
((o = this.builderBlock) == null ? void 0 : o.id) || "none",
|
|
3131
3169
|
(i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
|
|
3132
3170
|
),
|
|
3133
3171
|
unsubscribers: [],
|
|
3134
|
-
shouldRenderVariants:
|
|
3172
|
+
shouldRenderVariants: ar(
|
|
3135
3173
|
this.variants,
|
|
3136
3174
|
J((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
3137
3175
|
),
|
|
3138
3176
|
shouldResetVariants: !1,
|
|
3139
3177
|
TARGET: E,
|
|
3140
3178
|
DEFAULT_INDEX: se,
|
|
3141
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
3179
|
+
SDKS_REQUIRING_RESET_APPROACH: Dt
|
|
3142
3180
|
};
|
|
3143
3181
|
},
|
|
3144
3182
|
mounted() {
|
|
@@ -3152,7 +3190,7 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
|
3152
3190
|
fireImmediately: E === "qwik"
|
|
3153
3191
|
}
|
|
3154
3192
|
);
|
|
3155
|
-
if (!(
|
|
3193
|
+
if (!(A() || Ve())) {
|
|
3156
3194
|
const n = this.filteredVariants[0];
|
|
3157
3195
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
3158
3196
|
new CustomEvent("builder.variantLoaded", {
|
|
@@ -3187,13 +3225,13 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
|
3187
3225
|
return {
|
|
3188
3226
|
...O(this.attributes, "v-on:", !1),
|
|
3189
3227
|
...O(this.attributes, "v-on:", !0),
|
|
3190
|
-
[
|
|
3228
|
+
[H()]: `builder-personalization-container ${this.attributes[H()] || ""}`
|
|
3191
3229
|
};
|
|
3192
3230
|
},
|
|
3193
3231
|
filteredVariants() {
|
|
3194
3232
|
return (this.variants || []).filter((e) => {
|
|
3195
3233
|
var t, n, o, r;
|
|
3196
|
-
return
|
|
3234
|
+
return tr(
|
|
3197
3235
|
{
|
|
3198
3236
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
3199
3237
|
locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
|
|
@@ -3208,7 +3246,7 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
|
3208
3246
|
},
|
|
3209
3247
|
blocksToRender() {
|
|
3210
3248
|
var e;
|
|
3211
|
-
return
|
|
3249
|
+
return lr({
|
|
3212
3250
|
variants: this.variants,
|
|
3213
3251
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
3214
3252
|
isHydrated: this.shouldResetVariants,
|
|
@@ -3226,8 +3264,8 @@ const ur = /* @__PURE__ */ v(lr, [["render", dr]]), pr = {
|
|
|
3226
3264
|
}
|
|
3227
3265
|
}
|
|
3228
3266
|
});
|
|
3229
|
-
function
|
|
3230
|
-
var u, p, b, c, m, f, g,
|
|
3267
|
+
function $r(e, t, n, o, r, i) {
|
|
3268
|
+
var u, p, b, c, m, f, g, P, U, V;
|
|
3231
3269
|
const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
|
|
3232
3270
|
return d(), h("div", $({ ref: "rootRef" }, e.attrs), [
|
|
3233
3271
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
|
|
@@ -3255,14 +3293,14 @@ function vr(e, t, n, o, r, i) {
|
|
|
3255
3293
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
3256
3294
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
3257
3295
|
(d(!0), h(I, null, L(e.variants, (q, C) => {
|
|
3258
|
-
var z, Q,
|
|
3296
|
+
var z, Q, _, W;
|
|
3259
3297
|
return d(), S(s, {
|
|
3260
3298
|
key: `${(z = e.builderBlock) == null ? void 0 : z.id}-${C}`,
|
|
3261
3299
|
BlocksWrapperProps: {
|
|
3262
3300
|
...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
|
|
3263
3301
|
"aria-hidden": !0,
|
|
3264
3302
|
hidden: !0,
|
|
3265
|
-
"data-variant-id": `${(
|
|
3303
|
+
"data-variant-id": `${(_ = e.builderBlock) == null ? void 0 : _.id}-${C}`
|
|
3266
3304
|
},
|
|
3267
3305
|
blocks: q.blocks,
|
|
3268
3306
|
parent: (W = e.builderBlock) == null ? void 0 : W.id,
|
|
@@ -3286,12 +3324,12 @@ function vr(e, t, n, o, r, i) {
|
|
|
3286
3324
|
], 64)) : T("", !0),
|
|
3287
3325
|
R(s, {
|
|
3288
3326
|
blocks: e.blocksToRender.blocks,
|
|
3289
|
-
parent: (
|
|
3327
|
+
parent: (P = e.builderBlock) == null ? void 0 : P.id,
|
|
3290
3328
|
path: e.blocksToRender.path,
|
|
3291
3329
|
context: e.builderContext,
|
|
3292
3330
|
registeredComponents: e.builderComponents,
|
|
3293
3331
|
BlocksWrapperProps: {
|
|
3294
|
-
...(
|
|
3332
|
+
...(U = e.builderContext) == null ? void 0 : U.BlocksWrapperProps,
|
|
3295
3333
|
"data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
|
|
3296
3334
|
}
|
|
3297
3335
|
}, {
|
|
@@ -3311,7 +3349,7 @@ function vr(e, t, n, o, r, i) {
|
|
|
3311
3349
|
], 64)) : T("", !0)
|
|
3312
3350
|
], 16);
|
|
3313
3351
|
}
|
|
3314
|
-
const
|
|
3352
|
+
const Er = /* @__PURE__ */ v(Ir, [["render", $r]]), Rr = {
|
|
3315
3353
|
name: "Core:Section",
|
|
3316
3354
|
static: !0,
|
|
3317
3355
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3350,7 +3388,7 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3350
3388
|
}
|
|
3351
3389
|
}
|
|
3352
3390
|
}]
|
|
3353
|
-
},
|
|
3391
|
+
}, Ar = {
|
|
3354
3392
|
name: "Slot",
|
|
3355
3393
|
isRSC: !0,
|
|
3356
3394
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3367,12 +3405,12 @@ const Sr = /* @__PURE__ */ v(yr, [["render", vr]]), kr = {
|
|
|
3367
3405
|
builderContext: !0,
|
|
3368
3406
|
builderComponents: !0
|
|
3369
3407
|
}
|
|
3370
|
-
},
|
|
3408
|
+
}, Pr = y({
|
|
3371
3409
|
name: "builder-slot",
|
|
3372
3410
|
components: { Blocks: K },
|
|
3373
3411
|
props: ["builderContext", "name", "builderComponents"]
|
|
3374
3412
|
});
|
|
3375
|
-
function
|
|
3413
|
+
function Br(e, t, n, o, r, i) {
|
|
3376
3414
|
var l, a, u;
|
|
3377
3415
|
const s = k("Blocks");
|
|
3378
3416
|
return d(), h("div", $(
|
|
@@ -3392,7 +3430,7 @@ function wr(e, t, n, o, r, i) {
|
|
|
3392
3430
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
3393
3431
|
], 16);
|
|
3394
3432
|
}
|
|
3395
|
-
const
|
|
3433
|
+
const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
3396
3434
|
name: "Symbol",
|
|
3397
3435
|
noWrap: !0,
|
|
3398
3436
|
static: !0,
|
|
@@ -3469,7 +3507,7 @@ const Ir = /* @__PURE__ */ v(Tr, [["render", wr]]), $r = {
|
|
|
3469
3507
|
text: "New tab content "
|
|
3470
3508
|
}
|
|
3471
3509
|
}
|
|
3472
|
-
},
|
|
3510
|
+
}, Or = {
|
|
3473
3511
|
name: "Builder: Tabs",
|
|
3474
3512
|
inputs: [{
|
|
3475
3513
|
name: "tabs",
|
|
@@ -3572,7 +3610,7 @@ const Ir = /* @__PURE__ */ v(Tr, [["render", wr]]), $r = {
|
|
|
3572
3610
|
builderComponents: !0,
|
|
3573
3611
|
builderLinkComponent: !0
|
|
3574
3612
|
}
|
|
3575
|
-
},
|
|
3613
|
+
}, Wr = y({
|
|
3576
3614
|
name: "builder-tabs",
|
|
3577
3615
|
components: { Blocks: K },
|
|
3578
3616
|
props: [
|
|
@@ -3600,13 +3638,13 @@ const Ir = /* @__PURE__ */ v(Tr, [["render", wr]]), $r = {
|
|
|
3600
3638
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3601
3639
|
}
|
|
3602
3640
|
}
|
|
3603
|
-
}),
|
|
3604
|
-
function
|
|
3641
|
+
}), Dr = ["onClick"], Ur = { key: 0 };
|
|
3642
|
+
function xr(e, t, n, o, r, i) {
|
|
3605
3643
|
const s = k("Blocks");
|
|
3606
3644
|
return d(), h("div", null, [
|
|
3607
3645
|
G("div", {
|
|
3608
3646
|
class: "builder-tabs-wrap",
|
|
3609
|
-
style:
|
|
3647
|
+
style: M({
|
|
3610
3648
|
display: "flex",
|
|
3611
3649
|
flexDirection: "row",
|
|
3612
3650
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
@@ -3616,7 +3654,7 @@ function Br(e, t, n, o, r, i) {
|
|
|
3616
3654
|
(d(!0), h(I, null, L(e.tabs, (l, a) => (d(), h("span", {
|
|
3617
3655
|
key: a,
|
|
3618
3656
|
class: ee(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3619
|
-
style:
|
|
3657
|
+
style: M(e.getTabStyle(a)),
|
|
3620
3658
|
onClick: async (u) => e.onClick(a)
|
|
3621
3659
|
}, [
|
|
3622
3660
|
R(s, {
|
|
@@ -3627,9 +3665,9 @@ function Br(e, t, n, o, r, i) {
|
|
|
3627
3665
|
registeredComponents: e.builderComponents,
|
|
3628
3666
|
linkComponent: e.builderLinkComponent
|
|
3629
3667
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3630
|
-
], 14,
|
|
3668
|
+
], 14, Dr))), 128))
|
|
3631
3669
|
], 4),
|
|
3632
|
-
e.activeTabContent(e.activeTab) ? (d(), h("div",
|
|
3670
|
+
e.activeTabContent(e.activeTab) ? (d(), h("div", Ur, [
|
|
3633
3671
|
R(s, {
|
|
3634
3672
|
parent: e.builderBlock.id,
|
|
3635
3673
|
path: `tabs.${e.activeTab}.content`,
|
|
@@ -3641,7 +3679,7 @@ function Br(e, t, n, o, r, i) {
|
|
|
3641
3679
|
])) : T("", !0)
|
|
3642
3680
|
]);
|
|
3643
3681
|
}
|
|
3644
|
-
const
|
|
3682
|
+
const Lr = /* @__PURE__ */ v(Wr, [["render", xr]]), Fr = {
|
|
3645
3683
|
shouldReceiveBuilderProps: {},
|
|
3646
3684
|
name: "Text",
|
|
3647
3685
|
static: !0,
|
|
@@ -3659,11 +3697,11 @@ const Vr = /* @__PURE__ */ v(Rr, [["render", Br]]), Nr = {
|
|
|
3659
3697
|
height: "auto",
|
|
3660
3698
|
textAlign: "center"
|
|
3661
3699
|
}
|
|
3662
|
-
},
|
|
3700
|
+
}, Mr = y({
|
|
3663
3701
|
name: "builder-text",
|
|
3664
3702
|
props: ["text"]
|
|
3665
|
-
}),
|
|
3666
|
-
function
|
|
3703
|
+
}), Hr = ["innerHTML"];
|
|
3704
|
+
function jr(e, t, n, o, r, i) {
|
|
3667
3705
|
var s;
|
|
3668
3706
|
return d(), h("div", {
|
|
3669
3707
|
class: "builder-text",
|
|
@@ -3671,9 +3709,9 @@ function Dr(e, t, n, o, r, i) {
|
|
|
3671
3709
|
style: {
|
|
3672
3710
|
outline: "none"
|
|
3673
3711
|
}
|
|
3674
|
-
}, null, 8,
|
|
3712
|
+
}, null, 8, Hr);
|
|
3675
3713
|
}
|
|
3676
|
-
const
|
|
3714
|
+
const zr = /* @__PURE__ */ v(Mr, [["render", jr]]), Kr = {
|
|
3677
3715
|
name: "Custom Code",
|
|
3678
3716
|
static: !0,
|
|
3679
3717
|
requiredPermissions: ["editCode"],
|
|
@@ -3695,7 +3733,7 @@ const xr = /* @__PURE__ */ v(Or, [["render", Dr]]), Ur = {
|
|
|
3695
3733
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3696
3734
|
advanced: !0
|
|
3697
3735
|
}]
|
|
3698
|
-
},
|
|
3736
|
+
}, qr = y({
|
|
3699
3737
|
name: "builder-custom-code",
|
|
3700
3738
|
props: ["code", "replaceNodes"],
|
|
3701
3739
|
data() {
|
|
@@ -3707,7 +3745,7 @@ const xr = /* @__PURE__ */ v(Or, [["render", Dr]]), Ur = {
|
|
|
3707
3745
|
watch: {
|
|
3708
3746
|
onUpdateHook0: {
|
|
3709
3747
|
handler() {
|
|
3710
|
-
|
|
3748
|
+
A() && setTimeout(() => {
|
|
3711
3749
|
this.runScripts();
|
|
3712
3750
|
}, 0);
|
|
3713
3751
|
},
|
|
@@ -3754,15 +3792,15 @@ const xr = /* @__PURE__ */ v(Or, [["render", Dr]]), Ur = {
|
|
|
3754
3792
|
}
|
|
3755
3793
|
}
|
|
3756
3794
|
}
|
|
3757
|
-
}),
|
|
3758
|
-
function
|
|
3795
|
+
}), Gr = ["innerHTML"];
|
|
3796
|
+
function Jr(e, t, n, o, r, i) {
|
|
3759
3797
|
return d(), h("div", {
|
|
3760
3798
|
ref: "elementRef",
|
|
3761
3799
|
class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3762
3800
|
innerHTML: e.code
|
|
3763
|
-
}, null, 10,
|
|
3801
|
+
}, null, 10, Gr);
|
|
3764
3802
|
}
|
|
3765
|
-
const
|
|
3803
|
+
const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), _r = {
|
|
3766
3804
|
name: "Embed",
|
|
3767
3805
|
static: !0,
|
|
3768
3806
|
inputs: [{
|
|
@@ -3777,7 +3815,7 @@ const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), jr = {
|
|
|
3777
3815
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3778
3816
|
hideFromUI: !0
|
|
3779
3817
|
}]
|
|
3780
|
-
},
|
|
3818
|
+
}, Yr = ["text/javascript", "application/javascript", "application/ecmascript"], Xr = (e) => Yr.includes(e.type), Zr = y({
|
|
3781
3819
|
name: "builder-embed",
|
|
3782
3820
|
props: ["content"],
|
|
3783
3821
|
data() {
|
|
@@ -3810,7 +3848,7 @@ const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), jr = {
|
|
|
3810
3848
|
this.scriptsInserted.push(n.src);
|
|
3811
3849
|
const o = document.createElement("script");
|
|
3812
3850
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3813
|
-
} else if (
|
|
3851
|
+
} else if (Xr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3814
3852
|
try {
|
|
3815
3853
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3816
3854
|
} catch (o) {
|
|
@@ -3819,15 +3857,15 @@ const Mr = /* @__PURE__ */ v(Lr, [["render", Hr]]), jr = {
|
|
|
3819
3857
|
}
|
|
3820
3858
|
}
|
|
3821
3859
|
}
|
|
3822
|
-
}),
|
|
3823
|
-
function
|
|
3860
|
+
}), ei = ["innerHTML"];
|
|
3861
|
+
function ti(e, t, n, o, r, i) {
|
|
3824
3862
|
return d(), h("div", {
|
|
3825
3863
|
class: "builder-embed",
|
|
3826
3864
|
ref: "elem",
|
|
3827
3865
|
innerHTML: e.content
|
|
3828
|
-
}, null, 8,
|
|
3866
|
+
}, null, 8, ei);
|
|
3829
3867
|
}
|
|
3830
|
-
const
|
|
3868
|
+
const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
3831
3869
|
name: "Form:Form",
|
|
3832
3870
|
// editableTags: ['builder-form-error']
|
|
3833
3871
|
defaults: {
|
|
@@ -4064,10 +4102,10 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), Yr = {
|
|
|
4064
4102
|
builderComponents: !0,
|
|
4065
4103
|
builderLinkComponent: !0
|
|
4066
4104
|
}
|
|
4067
|
-
},
|
|
4105
|
+
}, ri = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], ii = () => {
|
|
4068
4106
|
const e = process.env.NODE_ENV || "production";
|
|
4069
|
-
return
|
|
4070
|
-
},
|
|
4107
|
+
return ri.includes(e) ? e : "production";
|
|
4108
|
+
}, si = y({
|
|
4071
4109
|
name: "builder-form-component",
|
|
4072
4110
|
components: { Blocks: K },
|
|
4073
4111
|
props: [
|
|
@@ -4108,7 +4146,7 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), Yr = {
|
|
|
4108
4146
|
this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
|
|
4109
4147
|
},
|
|
4110
4148
|
submissionState() {
|
|
4111
|
-
return
|
|
4149
|
+
return A() && this.previewState || this.formState;
|
|
4112
4150
|
},
|
|
4113
4151
|
errorResponse(e) {
|
|
4114
4152
|
return JSON.stringify(e, null, 2);
|
|
@@ -4160,7 +4198,7 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), Yr = {
|
|
|
4160
4198
|
else {
|
|
4161
4199
|
const c = {};
|
|
4162
4200
|
Array.from(l).forEach(({ value: m, key: f }) => {
|
|
4163
|
-
|
|
4201
|
+
yt(c, f, m);
|
|
4164
4202
|
}), i = JSON.stringify(c);
|
|
4165
4203
|
}
|
|
4166
4204
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -4178,45 +4216,45 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), Yr = {
|
|
|
4178
4216
|
});
|
|
4179
4217
|
return;
|
|
4180
4218
|
}
|
|
4181
|
-
const p = `${
|
|
4219
|
+
const p = `${ii() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4182
4220
|
this.sendSubmissionsToEmail || ""
|
|
4183
4221
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
4184
|
-
|
|
4222
|
+
Pe(b), fetch(b, {
|
|
4185
4223
|
body: i,
|
|
4186
4224
|
headers: r,
|
|
4187
4225
|
method: this.method || "post"
|
|
4188
4226
|
}).then(
|
|
4189
4227
|
async (c) => {
|
|
4190
|
-
var g,
|
|
4228
|
+
var g, P;
|
|
4191
4229
|
let m;
|
|
4192
4230
|
const f = c.headers.get("content-type");
|
|
4193
4231
|
if (f && f.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
|
|
4194
|
-
const
|
|
4232
|
+
const U = new CustomEvent("submit:error", {
|
|
4195
4233
|
detail: {
|
|
4196
4234
|
error: m,
|
|
4197
4235
|
status: c.status
|
|
4198
4236
|
}
|
|
4199
4237
|
});
|
|
4200
|
-
if ((g = this.$refs.formRef) != null && g.nativeElement && ((
|
|
4201
|
-
|
|
4202
|
-
),
|
|
4238
|
+
if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
|
|
4239
|
+
U
|
|
4240
|
+
), U.defaultPrevented))
|
|
4203
4241
|
return;
|
|
4204
4242
|
this.responseData = m, this.formState = "error";
|
|
4205
|
-
let V = this.errorMessagePath ?
|
|
4243
|
+
let V = this.errorMessagePath ? it(m, this.errorMessagePath) : m.message || m.error || m;
|
|
4206
4244
|
typeof V != "string" && (V = JSON.stringify(V)), this.formErrorMessage = V, this.mergeNewRootState({
|
|
4207
4245
|
formErrorMessage: V
|
|
4208
4246
|
});
|
|
4209
4247
|
return;
|
|
4210
4248
|
}
|
|
4211
4249
|
if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
4212
|
-
const
|
|
4250
|
+
const U = new CustomEvent("submit:success", {
|
|
4213
4251
|
detail: {
|
|
4214
4252
|
res: c,
|
|
4215
4253
|
body: m
|
|
4216
4254
|
}
|
|
4217
4255
|
});
|
|
4218
4256
|
if (this.$refs.formRef) {
|
|
4219
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
4257
|
+
if (this.$refs.formRef.dispatchEvent(U), U.defaultPrevented)
|
|
4220
4258
|
return;
|
|
4221
4259
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
4222
4260
|
}
|
|
@@ -4244,11 +4282,11 @@ const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), Yr = {
|
|
|
4244
4282
|
}
|
|
4245
4283
|
}
|
|
4246
4284
|
}
|
|
4247
|
-
}),
|
|
4285
|
+
}), ai = ["validate", "action", "method", "name"], li = {
|
|
4248
4286
|
key: 2,
|
|
4249
4287
|
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
4250
4288
|
};
|
|
4251
|
-
function
|
|
4289
|
+
function ci(e, t, n, o, r, i) {
|
|
4252
4290
|
const s = k("Blocks");
|
|
4253
4291
|
return d(), h("form", $({
|
|
4254
4292
|
validate: e.validate,
|
|
@@ -4257,7 +4295,7 @@ function ni(e, t, n, o, r, i) {
|
|
|
4257
4295
|
method: e.method,
|
|
4258
4296
|
name: e.name,
|
|
4259
4297
|
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
4260
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
4298
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4261
4299
|
N(e.$slots, "default", {}, void 0, !0),
|
|
4262
4300
|
e.submissionState() === "error" ? (d(), S(s, {
|
|
4263
4301
|
key: 0,
|
|
@@ -4271,16 +4309,16 @@ function ni(e, t, n, o, r, i) {
|
|
|
4271
4309
|
blocks: e.sendingMessage,
|
|
4272
4310
|
context: e.builderContext
|
|
4273
4311
|
}, null, 8, ["blocks", "context"])) : T("", !0),
|
|
4274
|
-
e.submissionState() === "error" && e.responseData ? (d(), h("pre",
|
|
4312
|
+
e.submissionState() === "error" && e.responseData ? (d(), h("pre", li, pe(e.errorResponse(e.responseData)), 1)) : T("", !0),
|
|
4275
4313
|
e.submissionState() === "success" ? (d(), S(s, {
|
|
4276
4314
|
key: 3,
|
|
4277
4315
|
path: "successMessage",
|
|
4278
4316
|
blocks: e.successMessage,
|
|
4279
4317
|
context: e.builderContext
|
|
4280
4318
|
}, null, 8, ["blocks", "context"])) : T("", !0)
|
|
4281
|
-
], 16,
|
|
4319
|
+
], 16, ai);
|
|
4282
4320
|
}
|
|
4283
|
-
const
|
|
4321
|
+
const di = /* @__PURE__ */ v(si, [["render", ci], ["__scopeId", "data-v-77c7888c"]]), ui = {
|
|
4284
4322
|
name: "Form:Input",
|
|
4285
4323
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4286
4324
|
inputs: [
|
|
@@ -4331,7 +4369,7 @@ const oi = /* @__PURE__ */ v(_r, [["render", ni], ["__scopeId", "data-v-77c7888c
|
|
|
4331
4369
|
borderStyle: "solid",
|
|
4332
4370
|
borderColor: "#ccc"
|
|
4333
4371
|
}
|
|
4334
|
-
},
|
|
4372
|
+
}, pi = y({
|
|
4335
4373
|
name: "builder-form-input-component",
|
|
4336
4374
|
props: [
|
|
4337
4375
|
"attributes",
|
|
@@ -4343,10 +4381,10 @@ const oi = /* @__PURE__ */ v(_r, [["render", ni], ["__scopeId", "data-v-77c7888c
|
|
|
4343
4381
|
"required"
|
|
4344
4382
|
],
|
|
4345
4383
|
data() {
|
|
4346
|
-
return { isEditing:
|
|
4384
|
+
return { isEditing: A, filterAttrs: O };
|
|
4347
4385
|
}
|
|
4348
|
-
}),
|
|
4349
|
-
function
|
|
4386
|
+
}), mi = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4387
|
+
function hi(e, t, n, o, r, i) {
|
|
4350
4388
|
return d(), h("input", $({
|
|
4351
4389
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4352
4390
|
placeholder: e.placeholder,
|
|
@@ -4355,9 +4393,9 @@ function ai(e, t, n, o, r, i) {
|
|
|
4355
4393
|
value: e.value,
|
|
4356
4394
|
defaultValue: e.defaultValue,
|
|
4357
4395
|
required: e.required
|
|
4358
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4396
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, mi);
|
|
4359
4397
|
}
|
|
4360
|
-
const
|
|
4398
|
+
const fi = /* @__PURE__ */ v(pi, [["render", hi]]), bi = {
|
|
4361
4399
|
name: "Form:Select",
|
|
4362
4400
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4363
4401
|
defaultStyles: {
|
|
@@ -4399,28 +4437,28 @@ const li = /* @__PURE__ */ v(ii, [["render", ai]]), ci = {
|
|
|
4399
4437
|
}],
|
|
4400
4438
|
static: !0,
|
|
4401
4439
|
noWrap: !0
|
|
4402
|
-
},
|
|
4440
|
+
}, gi = y({
|
|
4403
4441
|
name: "builder-select-component",
|
|
4404
4442
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4405
4443
|
data() {
|
|
4406
|
-
return { isEditing:
|
|
4444
|
+
return { isEditing: A, filterAttrs: O };
|
|
4407
4445
|
}
|
|
4408
|
-
}),
|
|
4409
|
-
function
|
|
4446
|
+
}), yi = ["value", "defaultValue", "name", "required"], vi = ["value"];
|
|
4447
|
+
function Si(e, t, n, o, r, i) {
|
|
4410
4448
|
return d(), h("select", $({
|
|
4411
4449
|
value: e.value,
|
|
4412
4450
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4413
4451
|
defaultValue: e.defaultValue,
|
|
4414
4452
|
name: e.name,
|
|
4415
4453
|
required: e.required
|
|
4416
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4454
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4417
4455
|
(d(!0), h(I, null, L(e.options, (s, l) => (d(), h("option", {
|
|
4418
4456
|
key: `${s.name}-${l}`,
|
|
4419
4457
|
value: s.value
|
|
4420
|
-
}, pe(s.name || s.value), 9,
|
|
4421
|
-
], 16,
|
|
4458
|
+
}, pe(s.name || s.value), 9, vi))), 128))
|
|
4459
|
+
], 16, yi);
|
|
4422
4460
|
}
|
|
4423
|
-
const
|
|
4461
|
+
const ki = /* @__PURE__ */ v(gi, [["render", Si]]), Ci = {
|
|
4424
4462
|
name: "Form:SubmitButton",
|
|
4425
4463
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4426
4464
|
defaultStyles: {
|
|
@@ -4445,17 +4483,17 @@ const hi = /* @__PURE__ */ v(di, [["render", mi]]), fi = {
|
|
|
4445
4483
|
// that only shows if advanced setting is flipped
|
|
4446
4484
|
// TODO: defaultChildren
|
|
4447
4485
|
// canHaveChildren: true,
|
|
4448
|
-
},
|
|
4486
|
+
}, Ti = y({
|
|
4449
4487
|
name: "builder-submit-button",
|
|
4450
4488
|
props: ["attributes", "text"],
|
|
4451
4489
|
data() {
|
|
4452
4490
|
return { filterAttrs: O };
|
|
4453
4491
|
}
|
|
4454
4492
|
});
|
|
4455
|
-
function
|
|
4456
|
-
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4493
|
+
function wi(e, t, n, o, r, i) {
|
|
4494
|
+
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), pe(e.text), 17);
|
|
4457
4495
|
}
|
|
4458
|
-
const
|
|
4496
|
+
const Ii = /* @__PURE__ */ v(Ti, [["render", wi]]), $i = {
|
|
4459
4497
|
name: "Form:TextArea",
|
|
4460
4498
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4461
4499
|
inputs: [{
|
|
@@ -4491,7 +4529,7 @@ const yi = /* @__PURE__ */ v(bi, [["render", gi]]), vi = {
|
|
|
4491
4529
|
},
|
|
4492
4530
|
static: !0,
|
|
4493
4531
|
noWrap: !0
|
|
4494
|
-
},
|
|
4532
|
+
}, Ei = y({
|
|
4495
4533
|
name: "builder-textarea",
|
|
4496
4534
|
props: [
|
|
4497
4535
|
"attributes",
|
|
@@ -4504,17 +4542,17 @@ const yi = /* @__PURE__ */ v(bi, [["render", gi]]), vi = {
|
|
|
4504
4542
|
data() {
|
|
4505
4543
|
return { filterAttrs: O };
|
|
4506
4544
|
}
|
|
4507
|
-
}),
|
|
4508
|
-
function
|
|
4545
|
+
}), Ri = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4546
|
+
function Ai(e, t, n, o, r, i) {
|
|
4509
4547
|
return d(), h("textarea", $({
|
|
4510
4548
|
placeholder: e.placeholder,
|
|
4511
4549
|
name: e.name,
|
|
4512
4550
|
value: e.value,
|
|
4513
4551
|
defaultValue: e.defaultValue,
|
|
4514
4552
|
required: e.required
|
|
4515
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4553
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ri);
|
|
4516
4554
|
}
|
|
4517
|
-
const
|
|
4555
|
+
const Pi = /* @__PURE__ */ v(Ei, [["render", Ai]]), Bi = {
|
|
4518
4556
|
name: "Raw:Img",
|
|
4519
4557
|
hideFromInsertMenu: !0,
|
|
4520
4558
|
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",
|
|
@@ -4522,7 +4560,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
|
4522
4560
|
name: "image",
|
|
4523
4561
|
bubble: !0,
|
|
4524
4562
|
type: "file",
|
|
4525
|
-
allowedFileTypes:
|
|
4563
|
+
allowedFileTypes: Ue,
|
|
4526
4564
|
required: !0
|
|
4527
4565
|
}, {
|
|
4528
4566
|
name: "backgroundSize",
|
|
@@ -4558,7 +4596,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
|
4558
4596
|
defaultValue: 0.7041
|
|
4559
4597
|
}],
|
|
4560
4598
|
noWrap: !0
|
|
4561
|
-
},
|
|
4599
|
+
}, Vi = y({
|
|
4562
4600
|
name: "builder-img-component",
|
|
4563
4601
|
props: [
|
|
4564
4602
|
"imgSrc",
|
|
@@ -4571,7 +4609,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
|
4571
4609
|
"aspectRatio"
|
|
4572
4610
|
],
|
|
4573
4611
|
data() {
|
|
4574
|
-
return { isEditing:
|
|
4612
|
+
return { isEditing: A };
|
|
4575
4613
|
},
|
|
4576
4614
|
computed: {
|
|
4577
4615
|
srcSetToUse() {
|
|
@@ -4583,13 +4621,13 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
|
4583
4621
|
const e = {
|
|
4584
4622
|
...O(this.attributes, "v-on:", !1),
|
|
4585
4623
|
...O(this.attributes, "v-on:", !0),
|
|
4586
|
-
[
|
|
4624
|
+
[H()]: `builder-raw-img ${this.attributes[H()] || ""}`
|
|
4587
4625
|
};
|
|
4588
4626
|
return delete e.style, e;
|
|
4589
4627
|
}
|
|
4590
4628
|
}
|
|
4591
|
-
}),
|
|
4592
|
-
function
|
|
4629
|
+
}), Ni = ["alt", "title", "src"];
|
|
4630
|
+
function Oi(e, t, n, o, r, i) {
|
|
4593
4631
|
var s;
|
|
4594
4632
|
return d(), h("img", $({
|
|
4595
4633
|
loading: "lazy",
|
|
@@ -4603,9 +4641,9 @@ function Ei(e, t, n, o, r, i) {
|
|
|
4603
4641
|
aspectRatio: e.aspectRatio || void 0,
|
|
4604
4642
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4605
4643
|
}
|
|
4606
|
-
}, e.imgAttrs), null, 16,
|
|
4644
|
+
}, e.imgAttrs), null, 16, Ni);
|
|
4607
4645
|
}
|
|
4608
|
-
const
|
|
4646
|
+
const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
|
|
4609
4647
|
name: "Video",
|
|
4610
4648
|
canHaveChildren: !0,
|
|
4611
4649
|
defaultStyles: {
|
|
@@ -4616,14 +4654,14 @@ const Ri = /* @__PURE__ */ v(Ii, [["render", Ei]]), Pi = {
|
|
|
4616
4654
|
inputs: [{
|
|
4617
4655
|
name: "video",
|
|
4618
4656
|
type: "file",
|
|
4619
|
-
allowedFileTypes:
|
|
4657
|
+
allowedFileTypes: Cr,
|
|
4620
4658
|
bubble: !0,
|
|
4621
4659
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4622
4660
|
required: !0
|
|
4623
4661
|
}, {
|
|
4624
4662
|
name: "posterImage",
|
|
4625
4663
|
type: "file",
|
|
4626
|
-
allowedFileTypes:
|
|
4664
|
+
allowedFileTypes: Ue,
|
|
4627
4665
|
helperText: "Image to show before the video plays"
|
|
4628
4666
|
}, {
|
|
4629
4667
|
name: "autoPlay",
|
|
@@ -4689,7 +4727,7 @@ const Ri = /* @__PURE__ */ v(Ii, [["render", Ei]]), Pi = {
|
|
|
4689
4727
|
shouldReceiveBuilderProps: {
|
|
4690
4728
|
builderBlock: !0
|
|
4691
4729
|
}
|
|
4692
|
-
},
|
|
4730
|
+
}, Ui = y({
|
|
4693
4731
|
name: "builder-video",
|
|
4694
4732
|
props: [
|
|
4695
4733
|
"lazyLoad",
|
|
@@ -4762,16 +4800,16 @@ const Ri = /* @__PURE__ */ v(Ii, [["render", Ei]]), Pi = {
|
|
|
4762
4800
|
};
|
|
4763
4801
|
}
|
|
4764
4802
|
}
|
|
4765
|
-
}),
|
|
4803
|
+
}), xi = { style: {
|
|
4766
4804
|
position: "relative"
|
|
4767
|
-
} },
|
|
4805
|
+
} }, Li = ["preload", "poster"], Fi = {
|
|
4768
4806
|
key: 1,
|
|
4769
4807
|
style: {
|
|
4770
4808
|
display: "flex",
|
|
4771
4809
|
flexDirection: "column",
|
|
4772
4810
|
alignItems: "stretch"
|
|
4773
4811
|
}
|
|
4774
|
-
},
|
|
4812
|
+
}, Mi = {
|
|
4775
4813
|
key: 2,
|
|
4776
4814
|
style: {
|
|
4777
4815
|
pointerEvents: "none",
|
|
@@ -4785,9 +4823,9 @@ const Ri = /* @__PURE__ */ v(Ii, [["render", Ei]]), Pi = {
|
|
|
4785
4823
|
height: "100%"
|
|
4786
4824
|
}
|
|
4787
4825
|
};
|
|
4788
|
-
function
|
|
4826
|
+
function Hi(e, t, n, o, r, i) {
|
|
4789
4827
|
var s, l, a, u, p, b, c;
|
|
4790
|
-
return d(), h("div",
|
|
4828
|
+
return d(), h("div", xi, [
|
|
4791
4829
|
G("video", $({
|
|
4792
4830
|
class: "builder-video",
|
|
4793
4831
|
ref: "videoRef",
|
|
@@ -4815,85 +4853,85 @@ function Wi(e, t, n, o, r, i) {
|
|
|
4815
4853
|
src: e.video
|
|
4816
4854
|
}
|
|
4817
4855
|
), null, 16)
|
|
4818
|
-
], 16,
|
|
4856
|
+
], 16, Li),
|
|
4819
4857
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
|
|
4820
4858
|
key: 0,
|
|
4821
|
-
style:
|
|
4859
|
+
style: M({
|
|
4822
4860
|
width: "100%",
|
|
4823
4861
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
4824
4862
|
pointerEvents: "none",
|
|
4825
4863
|
fontSize: "0px"
|
|
4826
4864
|
})
|
|
4827
4865
|
}, null, 4)) : T("", !0),
|
|
4828
|
-
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div",
|
|
4866
|
+
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", Fi, [
|
|
4829
4867
|
N(e.$slots, "default")
|
|
4830
4868
|
])) : T("", !0),
|
|
4831
|
-
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (d(), h("div",
|
|
4869
|
+
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (d(), h("div", Mi, [
|
|
4832
4870
|
N(e.$slots, "default")
|
|
4833
4871
|
])) : T("", !0)
|
|
4834
4872
|
]);
|
|
4835
4873
|
}
|
|
4836
|
-
const
|
|
4837
|
-
component: Mr,
|
|
4838
|
-
...Ur
|
|
4839
|
-
}, {
|
|
4874
|
+
const ji = /* @__PURE__ */ v(Ui, [["render", Hi]]), zi = () => [{
|
|
4840
4875
|
component: Qr,
|
|
4841
|
-
...
|
|
4876
|
+
...Kr
|
|
4842
4877
|
}, {
|
|
4843
|
-
component:
|
|
4844
|
-
...
|
|
4878
|
+
component: ni,
|
|
4879
|
+
..._r
|
|
4845
4880
|
}, {
|
|
4846
|
-
component:
|
|
4847
|
-
...
|
|
4881
|
+
component: di,
|
|
4882
|
+
...oi
|
|
4848
4883
|
}, {
|
|
4849
|
-
component:
|
|
4850
|
-
...
|
|
4884
|
+
component: fi,
|
|
4885
|
+
...ui
|
|
4851
4886
|
}, {
|
|
4852
|
-
component:
|
|
4853
|
-
...
|
|
4887
|
+
component: Ii,
|
|
4888
|
+
...Ci
|
|
4854
4889
|
}, {
|
|
4855
|
-
component:
|
|
4856
|
-
...
|
|
4890
|
+
component: ki,
|
|
4891
|
+
...bi
|
|
4857
4892
|
}, {
|
|
4858
|
-
component:
|
|
4859
|
-
|
|
4893
|
+
component: Pi,
|
|
4894
|
+
...$i
|
|
4860
4895
|
}, {
|
|
4861
|
-
component:
|
|
4862
|
-
...
|
|
4863
|
-
}], Xe = () => [{
|
|
4864
|
-
component: jt,
|
|
4865
|
-
...pr
|
|
4896
|
+
component: Wi,
|
|
4897
|
+
...Bi
|
|
4866
4898
|
}, {
|
|
4867
|
-
component:
|
|
4868
|
-
...
|
|
4869
|
-
}, {
|
|
4870
|
-
component:
|
|
4871
|
-
...
|
|
4899
|
+
component: ji,
|
|
4900
|
+
...Di
|
|
4901
|
+
}], et = () => [{
|
|
4902
|
+
component: qt,
|
|
4903
|
+
...vr
|
|
4872
4904
|
}, {
|
|
4873
|
-
component:
|
|
4874
|
-
...
|
|
4905
|
+
component: Fo,
|
|
4906
|
+
...Sr
|
|
4875
4907
|
}, {
|
|
4876
|
-
component:
|
|
4908
|
+
component: jo,
|
|
4877
4909
|
...kr
|
|
4878
4910
|
}, {
|
|
4879
|
-
component:
|
|
4880
|
-
...
|
|
4911
|
+
component: Yo,
|
|
4912
|
+
...Tr
|
|
4881
4913
|
}, {
|
|
4882
|
-
component:
|
|
4883
|
-
|
|
4914
|
+
component: er,
|
|
4915
|
+
...Rr
|
|
4884
4916
|
}, {
|
|
4885
|
-
component:
|
|
4917
|
+
component: Vr,
|
|
4918
|
+
...Ar
|
|
4919
|
+
}, {
|
|
4920
|
+
component: Rs,
|
|
4886
4921
|
...Nr
|
|
4887
|
-
},
|
|
4888
|
-
component:
|
|
4889
|
-
...
|
|
4922
|
+
}, {
|
|
4923
|
+
component: zr,
|
|
4924
|
+
...Fr
|
|
4925
|
+
}, ...Wt.includes(E) ? [{
|
|
4926
|
+
component: Er,
|
|
4927
|
+
...wr
|
|
4890
4928
|
}] : [], {
|
|
4891
|
-
component:
|
|
4892
|
-
...
|
|
4929
|
+
component: Lr,
|
|
4930
|
+
...Or
|
|
4893
4931
|
}, {
|
|
4894
|
-
component:
|
|
4895
|
-
...
|
|
4896
|
-
}, ...
|
|
4932
|
+
component: yr,
|
|
4933
|
+
...mr
|
|
4934
|
+
}, ...zi()], Ki = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4897
4935
|
function getAndSetVariantId() {
|
|
4898
4936
|
function setCookie(name, value, days) {
|
|
4899
4937
|
let expires = '';
|
|
@@ -4952,7 +4990,7 @@ const Di = /* @__PURE__ */ v(Ai, [["render", Wi]]), xi = () => [{
|
|
|
4952
4990
|
}).join('');
|
|
4953
4991
|
styleEl.innerHTML = newStyleStr;
|
|
4954
4992
|
}
|
|
4955
|
-
}`,
|
|
4993
|
+
}`, qi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4956
4994
|
if (!navigator.cookieEnabled) {
|
|
4957
4995
|
return;
|
|
4958
4996
|
}
|
|
@@ -4990,33 +5028,33 @@ const Di = /* @__PURE__ */ v(Ai, [["render", Wi]]), xi = () => [{
|
|
|
4990
5028
|
...t,
|
|
4991
5029
|
testVariationId: t.id,
|
|
4992
5030
|
id: e == null ? void 0 : e.id
|
|
4993
|
-
})),
|
|
5031
|
+
})), Gi = ({
|
|
4994
5032
|
canTrack: e,
|
|
4995
5033
|
content: t
|
|
4996
|
-
}) => !(!(ae(t).length > 0) || !e),
|
|
5034
|
+
}) => !(!(ae(t).length > 0) || !e), Ji = (e) => e === "react" || e === "reactNative", Qi = E === "angular", Le = Ji(E), _i = () => `
|
|
4997
5035
|
(function() {
|
|
4998
5036
|
if (!window.${$e}) {
|
|
4999
|
-
window.${$e} = ${
|
|
5037
|
+
window.${$e} = ${Ki};
|
|
5000
5038
|
}
|
|
5001
5039
|
if (!window.${Ee}) {
|
|
5002
|
-
window.${Ee} = ${
|
|
5040
|
+
window.${Ee} = ${qi};
|
|
5003
5041
|
}${Le ? `
|
|
5004
5042
|
var thisScriptEl = document.currentScript;
|
|
5005
5043
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
5006
5044
|
})();
|
|
5007
|
-
`,
|
|
5045
|
+
`, Yi = (e, t) => `
|
|
5008
5046
|
window.${$e}(
|
|
5009
|
-
"${t}",${JSON.stringify(e)}, ${Le}, ${
|
|
5010
|
-
)`,
|
|
5047
|
+
"${t}",${JSON.stringify(e)}, ${Le}, ${Qi}
|
|
5048
|
+
)`, Xi = ({
|
|
5011
5049
|
contentId: e,
|
|
5012
5050
|
variationId: t
|
|
5013
5051
|
}) => `window.${Ee}(
|
|
5014
5052
|
"${t}", "${e}", ${Le}
|
|
5015
5053
|
)`;
|
|
5016
|
-
function
|
|
5054
|
+
function tt(e) {
|
|
5017
5055
|
return Math.round(e * 1e3) / 1e3;
|
|
5018
5056
|
}
|
|
5019
|
-
const
|
|
5057
|
+
const Zi = (e, t, n = !0) => {
|
|
5020
5058
|
if (!(e instanceof HTMLElement))
|
|
5021
5059
|
return null;
|
|
5022
5060
|
let o = n ? e : e.parentElement;
|
|
@@ -5027,35 +5065,35 @@ const qi = (e, t, n = !0) => {
|
|
|
5027
5065
|
return o;
|
|
5028
5066
|
} while (o = o.parentElement);
|
|
5029
5067
|
return null;
|
|
5030
|
-
},
|
|
5068
|
+
}, es = (e) => Zi(e, (t) => {
|
|
5031
5069
|
const n = t.getAttribute("builder-id") || t.id;
|
|
5032
5070
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
5033
|
-
}),
|
|
5071
|
+
}), nt = ({
|
|
5034
5072
|
event: e,
|
|
5035
5073
|
target: t
|
|
5036
5074
|
}) => {
|
|
5037
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
5075
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = tt(o / n.width), s = tt(r / n.height);
|
|
5038
5076
|
return {
|
|
5039
5077
|
x: i,
|
|
5040
5078
|
y: s
|
|
5041
5079
|
};
|
|
5042
|
-
},
|
|
5043
|
-
const t = e.target, n = t &&
|
|
5080
|
+
}, ts = (e) => {
|
|
5081
|
+
const t = e.target, n = t && es(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
5044
5082
|
return {
|
|
5045
5083
|
targetBuilderElement: o || void 0,
|
|
5046
5084
|
metadata: {
|
|
5047
|
-
targetOffset: t ?
|
|
5085
|
+
targetOffset: t ? nt({
|
|
5048
5086
|
event: e,
|
|
5049
5087
|
target: t
|
|
5050
5088
|
}) : void 0,
|
|
5051
|
-
builderTargetOffset: n ?
|
|
5089
|
+
builderTargetOffset: n ? nt({
|
|
5052
5090
|
event: e,
|
|
5053
5091
|
target: n
|
|
5054
5092
|
}) : void 0,
|
|
5055
5093
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
5056
5094
|
}
|
|
5057
5095
|
};
|
|
5058
|
-
},
|
|
5096
|
+
}, ns = ["svelte", "qwik", "vue"], os = () => ns.includes(E) && (A() || Ve()), rs = (e) => {
|
|
5059
5097
|
var i;
|
|
5060
5098
|
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);
|
|
5061
5099
|
let r = "";
|
|
@@ -5081,15 +5119,15 @@ font-weight: ${s};
|
|
|
5081
5119
|
`.trim());
|
|
5082
5120
|
}
|
|
5083
5121
|
return r;
|
|
5084
|
-
},
|
|
5122
|
+
}, is = ({
|
|
5085
5123
|
customFonts: e
|
|
5086
5124
|
}) => {
|
|
5087
5125
|
var t;
|
|
5088
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
5089
|
-
},
|
|
5126
|
+
return ((t = e == null ? void 0 : e.map((n) => rs(n))) == null ? void 0 : t.join(" ")) || "";
|
|
5127
|
+
}, ss = ({
|
|
5090
5128
|
cssCode: e,
|
|
5091
5129
|
contentId: t
|
|
5092
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
5130
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", as = `
|
|
5093
5131
|
.builder-button {
|
|
5094
5132
|
all: unset;
|
|
5095
5133
|
}
|
|
@@ -5106,7 +5144,7 @@ font-weight: ${s};
|
|
|
5106
5144
|
text-align: inherit;
|
|
5107
5145
|
font-family: inherit;
|
|
5108
5146
|
}
|
|
5109
|
-
`,
|
|
5147
|
+
`, ls = (e) => e ? "" : as, cs = (e) => `variant-${e}`, ds = y({
|
|
5110
5148
|
name: "enable-editor",
|
|
5111
5149
|
components: { DynamicDiv: ne },
|
|
5112
5150
|
props: [
|
|
@@ -5139,8 +5177,8 @@ font-weight: ${s};
|
|
|
5139
5177
|
httpReqsPending: {},
|
|
5140
5178
|
clicked: !1,
|
|
5141
5179
|
builderContext: ve,
|
|
5142
|
-
needsElementRefDivForEditing:
|
|
5143
|
-
getWrapperClassName:
|
|
5180
|
+
needsElementRefDivForEditing: os,
|
|
5181
|
+
getWrapperClassName: cs
|
|
5144
5182
|
};
|
|
5145
5183
|
},
|
|
5146
5184
|
provide() {
|
|
@@ -5155,7 +5193,7 @@ font-weight: ${s};
|
|
|
5155
5193
|
mounted() {
|
|
5156
5194
|
var e, t, n;
|
|
5157
5195
|
if (w()) {
|
|
5158
|
-
|
|
5196
|
+
A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5159
5197
|
new CustomEvent("initeditingbldr")
|
|
5160
5198
|
);
|
|
5161
5199
|
const o = this.builderContextSignal.content && J(this.canTrack), r = me({
|
|
@@ -5173,7 +5211,7 @@ font-weight: ${s};
|
|
|
5173
5211
|
variationId: r !== s ? r : void 0
|
|
5174
5212
|
});
|
|
5175
5213
|
}
|
|
5176
|
-
Ve() && !
|
|
5214
|
+
Ve() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5177
5215
|
new CustomEvent("initpreviewingbldr")
|
|
5178
5216
|
);
|
|
5179
5217
|
}
|
|
@@ -5275,7 +5313,7 @@ font-weight: ${s};
|
|
|
5275
5313
|
this.builderContextSignal.content = n;
|
|
5276
5314
|
},
|
|
5277
5315
|
processMessage(e) {
|
|
5278
|
-
return
|
|
5316
|
+
return Ct({
|
|
5279
5317
|
model: this.model,
|
|
5280
5318
|
trustedHosts: this.trustedHosts,
|
|
5281
5319
|
callbacks: {
|
|
@@ -5289,7 +5327,7 @@ font-weight: ${s};
|
|
|
5289
5327
|
});
|
|
5290
5328
|
},
|
|
5291
5329
|
animation: (t) => {
|
|
5292
|
-
|
|
5330
|
+
At(t);
|
|
5293
5331
|
},
|
|
5294
5332
|
contentUpdate: (t, n) => {
|
|
5295
5333
|
this.mergeNewContent(t, n);
|
|
@@ -5311,7 +5349,7 @@ font-weight: ${s};
|
|
|
5311
5349
|
contentId: r,
|
|
5312
5350
|
apiKey: this.apiKey,
|
|
5313
5351
|
variationId: o !== r ? o : void 0,
|
|
5314
|
-
...
|
|
5352
|
+
...ts(e),
|
|
5315
5353
|
unique: !this.clicked
|
|
5316
5354
|
});
|
|
5317
5355
|
}
|
|
@@ -5325,7 +5363,7 @@ font-weight: ${s};
|
|
|
5325
5363
|
if (!r)
|
|
5326
5364
|
return;
|
|
5327
5365
|
const i = typeof r == "object" && r["@type"] === "@builder.io/core:Request";
|
|
5328
|
-
if (this.httpReqsPending[o] || this.httpReqsData[o] && !
|
|
5366
|
+
if (this.httpReqsPending[o] || this.httpReqsData[o] && !A())
|
|
5329
5367
|
return;
|
|
5330
5368
|
const s = i ? r.request.url : r;
|
|
5331
5369
|
this.httpReqsPending[o] = !0;
|
|
@@ -5349,7 +5387,7 @@ font-weight: ${s};
|
|
|
5349
5387
|
url: l,
|
|
5350
5388
|
method: "GET"
|
|
5351
5389
|
};
|
|
5352
|
-
|
|
5390
|
+
Pe(JSON.stringify(a));
|
|
5353
5391
|
const u = {
|
|
5354
5392
|
method: a.method,
|
|
5355
5393
|
headers: a.headers,
|
|
@@ -5372,7 +5410,7 @@ font-weight: ${s};
|
|
|
5372
5410
|
);
|
|
5373
5411
|
},
|
|
5374
5412
|
emitStateUpdate() {
|
|
5375
|
-
|
|
5413
|
+
A() && window.dispatchEvent(
|
|
5376
5414
|
new CustomEvent(
|
|
5377
5415
|
"builder:component:stateChange",
|
|
5378
5416
|
{
|
|
@@ -5387,7 +5425,7 @@ font-weight: ${s};
|
|
|
5387
5425
|
);
|
|
5388
5426
|
},
|
|
5389
5427
|
elementRef_onIniteditingbldr(e) {
|
|
5390
|
-
window.addEventListener("message", this.processMessage),
|
|
5428
|
+
window.addEventListener("message", this.processMessage), kt({
|
|
5391
5429
|
...this.locale ? {
|
|
5392
5430
|
locale: this.locale
|
|
5393
5431
|
} : {},
|
|
@@ -5407,7 +5445,7 @@ font-weight: ${s};
|
|
|
5407
5445
|
).forEach((t) => {
|
|
5408
5446
|
var n, o;
|
|
5409
5447
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
5410
|
-
const r =
|
|
5448
|
+
const r = On(t);
|
|
5411
5449
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
5412
5450
|
}
|
|
5413
5451
|
}), window.addEventListener(
|
|
@@ -5435,9 +5473,9 @@ font-weight: ${s};
|
|
|
5435
5473
|
}
|
|
5436
5474
|
}
|
|
5437
5475
|
});
|
|
5438
|
-
function
|
|
5476
|
+
function us(e, t, n, o, r, i) {
|
|
5439
5477
|
var s, l, a;
|
|
5440
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(
|
|
5478
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper), $({
|
|
5441
5479
|
key: 0,
|
|
5442
5480
|
ref: "elementRef",
|
|
5443
5481
|
onClick: (u) => e.onClick(u),
|
|
@@ -5456,26 +5494,26 @@ function rs(e, t, n, o, r, i) {
|
|
|
5456
5494
|
_: 3
|
|
5457
5495
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : T("", !0);
|
|
5458
5496
|
}
|
|
5459
|
-
const
|
|
5497
|
+
const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = y({
|
|
5460
5498
|
name: "content-styles",
|
|
5461
5499
|
components: { InlinedStyles: he },
|
|
5462
5500
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5463
5501
|
data() {
|
|
5464
5502
|
return {
|
|
5465
5503
|
injectedStyles: `
|
|
5466
|
-
${
|
|
5504
|
+
${ss({
|
|
5467
5505
|
cssCode: this.cssCode,
|
|
5468
5506
|
contentId: this.contentId
|
|
5469
5507
|
})}
|
|
5470
|
-
${
|
|
5508
|
+
${is({
|
|
5471
5509
|
customFonts: this.customFonts
|
|
5472
5510
|
})}
|
|
5473
|
-
${
|
|
5511
|
+
${ls(this.isNestedRender)}
|
|
5474
5512
|
`.trim()
|
|
5475
5513
|
};
|
|
5476
5514
|
}
|
|
5477
5515
|
});
|
|
5478
|
-
function
|
|
5516
|
+
function hs(e, t, n, o, r, i) {
|
|
5479
5517
|
const s = k("InlinedStyles");
|
|
5480
5518
|
return d(), S(s, {
|
|
5481
5519
|
id: "builderio-content",
|
|
@@ -5483,7 +5521,7 @@ function as(e, t, n, o, r, i) {
|
|
|
5483
5521
|
nonce: e.nonce
|
|
5484
5522
|
}, null, 8, ["styles", "nonce"]);
|
|
5485
5523
|
}
|
|
5486
|
-
const
|
|
5524
|
+
const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
|
|
5487
5525
|
content: e,
|
|
5488
5526
|
data: t,
|
|
5489
5527
|
locale: n
|
|
@@ -5500,7 +5538,7 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = ({
|
|
|
5500
5538
|
locale: n
|
|
5501
5539
|
} : {}
|
|
5502
5540
|
};
|
|
5503
|
-
},
|
|
5541
|
+
}, gs = ({
|
|
5504
5542
|
content: e,
|
|
5505
5543
|
data: t
|
|
5506
5544
|
}) => e ? {
|
|
@@ -5510,12 +5548,12 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = ({
|
|
|
5510
5548
|
...t
|
|
5511
5549
|
},
|
|
5512
5550
|
meta: e == null ? void 0 : e.meta
|
|
5513
|
-
} : void 0,
|
|
5551
|
+
} : void 0, ys = Lt, vs = y({
|
|
5514
5552
|
name: "content-component",
|
|
5515
5553
|
components: {
|
|
5516
|
-
EnableEditor:
|
|
5517
|
-
InlinedScript:
|
|
5518
|
-
ContentStyles:
|
|
5554
|
+
EnableEditor: ps,
|
|
5555
|
+
InlinedScript: xe,
|
|
5556
|
+
ContentStyles: fs,
|
|
5519
5557
|
Blocks: K,
|
|
5520
5558
|
DynamicDiv: ne
|
|
5521
5559
|
},
|
|
@@ -5546,32 +5584,32 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = ({
|
|
|
5546
5584
|
data() {
|
|
5547
5585
|
var e, t;
|
|
5548
5586
|
return {
|
|
5549
|
-
scriptStr:
|
|
5587
|
+
scriptStr: Xi({
|
|
5550
5588
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5551
5589
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5552
5590
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5553
5591
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5554
5592
|
}),
|
|
5555
5593
|
registeredComponents: [
|
|
5556
|
-
...
|
|
5594
|
+
...et(),
|
|
5557
5595
|
...this.customComponents || []
|
|
5558
5596
|
].reduce(
|
|
5559
5597
|
(n, { component: o, ...r }) => ({
|
|
5560
5598
|
...n,
|
|
5561
5599
|
[r.name]: {
|
|
5562
|
-
component:
|
|
5600
|
+
component: ys(o),
|
|
5563
5601
|
...de(r)
|
|
5564
5602
|
}
|
|
5565
5603
|
}),
|
|
5566
5604
|
{}
|
|
5567
5605
|
),
|
|
5568
5606
|
builderContextSignal: {
|
|
5569
|
-
content:
|
|
5607
|
+
content: gs({
|
|
5570
5608
|
content: this.content,
|
|
5571
5609
|
data: this.data
|
|
5572
5610
|
}),
|
|
5573
5611
|
localState: void 0,
|
|
5574
|
-
rootState:
|
|
5612
|
+
rootState: bs({
|
|
5575
5613
|
content: this.content,
|
|
5576
5614
|
data: this.data,
|
|
5577
5615
|
locale: this.locale
|
|
@@ -5582,7 +5620,7 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = ({
|
|
|
5582
5620
|
apiKey: this.apiKey,
|
|
5583
5621
|
apiVersion: this.apiVersion,
|
|
5584
5622
|
componentInfos: [
|
|
5585
|
-
...
|
|
5623
|
+
...et(),
|
|
5586
5624
|
...this.customComponents || []
|
|
5587
5625
|
].reduce(
|
|
5588
5626
|
(n, { component: o, ...r }) => ({
|
|
@@ -5603,7 +5641,7 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = ({
|
|
|
5603
5641
|
provide() {
|
|
5604
5642
|
const e = this;
|
|
5605
5643
|
return {
|
|
5606
|
-
[
|
|
5644
|
+
[rt.key]: {
|
|
5607
5645
|
registeredComponents: e.registeredComponents
|
|
5608
5646
|
}
|
|
5609
5647
|
};
|
|
@@ -5647,7 +5685,7 @@ const ls = /* @__PURE__ */ v(ss, [["render", as]]), cs = ({
|
|
|
5647
5685
|
}
|
|
5648
5686
|
}
|
|
5649
5687
|
});
|
|
5650
|
-
function
|
|
5688
|
+
function Ss(e, t, n, o, r, i) {
|
|
5651
5689
|
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
5652
5690
|
return d(), S(u, $({
|
|
5653
5691
|
apiHost: e.apiHost,
|
|
@@ -5669,7 +5707,7 @@ function ms(e, t, n, o, r, i) {
|
|
|
5669
5707
|
isNestedRender: e.isNestedRender
|
|
5670
5708
|
}, {}), {
|
|
5671
5709
|
default: D(() => {
|
|
5672
|
-
var p, b, c, m, f, g,
|
|
5710
|
+
var p, b, c, m, f, g, P;
|
|
5673
5711
|
return [
|
|
5674
5712
|
e.isSsrAbTest ? (d(), S(s, {
|
|
5675
5713
|
key: 0,
|
|
@@ -5686,7 +5724,7 @@ function ms(e, t, n, o, r, i) {
|
|
|
5686
5724
|
customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
|
|
5687
5725
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : T("", !0),
|
|
5688
5726
|
R(a, {
|
|
5689
|
-
blocks: (
|
|
5727
|
+
blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
|
|
5690
5728
|
context: e.builderContextSignal,
|
|
5691
5729
|
registeredComponents: e.registeredComponents,
|
|
5692
5730
|
linkComponent: e.linkComponent
|
|
@@ -5696,12 +5734,12 @@ function ms(e, t, n, o, r, i) {
|
|
|
5696
5734
|
_: 1
|
|
5697
5735
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5698
5736
|
}
|
|
5699
|
-
const
|
|
5737
|
+
const ks = /* @__PURE__ */ v(vs, [["render", Ss]]), Cs = y({
|
|
5700
5738
|
name: "content-variants",
|
|
5701
5739
|
components: {
|
|
5702
|
-
InlinedScript:
|
|
5740
|
+
InlinedScript: xe,
|
|
5703
5741
|
InlinedStyles: he,
|
|
5704
|
-
ContentComponent:
|
|
5742
|
+
ContentComponent: ks
|
|
5705
5743
|
},
|
|
5706
5744
|
props: [
|
|
5707
5745
|
"canTrack",
|
|
@@ -5727,15 +5765,15 @@ const hs = /* @__PURE__ */ v(ps, [["render", ms]]), fs = y({
|
|
|
5727
5765
|
],
|
|
5728
5766
|
data() {
|
|
5729
5767
|
return {
|
|
5730
|
-
shouldRenderVariants:
|
|
5768
|
+
shouldRenderVariants: Gi({
|
|
5731
5769
|
canTrack: J(this.canTrack),
|
|
5732
5770
|
content: this.content
|
|
5733
5771
|
}),
|
|
5734
|
-
shouldEmitPersonalizationFns:
|
|
5735
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
5736
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5772
|
+
shouldEmitPersonalizationFns: cr(this.content),
|
|
5773
|
+
SDKS_SUPPORTING_PERSONALIZATION: Wt,
|
|
5774
|
+
getInitPersonalizationVariantsFnsScriptString: dr,
|
|
5737
5775
|
TARGET: E,
|
|
5738
|
-
getInitVariantsFnsScriptString:
|
|
5776
|
+
getInitVariantsFnsScriptString: _i,
|
|
5739
5777
|
getVariants: ae
|
|
5740
5778
|
};
|
|
5741
5779
|
},
|
|
@@ -5744,7 +5782,7 @@ const hs = /* @__PURE__ */ v(ps, [["render", ms]]), fs = y({
|
|
|
5744
5782
|
computed: {
|
|
5745
5783
|
updateCookieAndStylesScriptStr() {
|
|
5746
5784
|
var e;
|
|
5747
|
-
return
|
|
5785
|
+
return Yi(
|
|
5748
5786
|
ae(this.content).map((t) => ({
|
|
5749
5787
|
id: t.testVariationId,
|
|
5750
5788
|
testRatio: t.testRatio
|
|
@@ -5760,14 +5798,14 @@ const hs = /* @__PURE__ */ v(ps, [["render", ms]]), fs = y({
|
|
|
5760
5798
|
return this.shouldRenderVariants ? {
|
|
5761
5799
|
...this.content,
|
|
5762
5800
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5763
|
-
} :
|
|
5801
|
+
} : zn({
|
|
5764
5802
|
item: this.content,
|
|
5765
5803
|
canTrack: J(this.canTrack)
|
|
5766
5804
|
});
|
|
5767
5805
|
}
|
|
5768
5806
|
}
|
|
5769
5807
|
});
|
|
5770
|
-
function
|
|
5808
|
+
function Ts(e, t, n, o, r, i) {
|
|
5771
5809
|
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5772
5810
|
return d(), h(I, null, [
|
|
5773
5811
|
e.shouldEmitPersonalizationFns ? (d(), h(I, { key: 0 }, [
|
|
@@ -5848,7 +5886,7 @@ function bs(e, t, n, o, r, i) {
|
|
|
5848
5886
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5849
5887
|
], 64);
|
|
5850
5888
|
}
|
|
5851
|
-
const
|
|
5889
|
+
const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
|
|
5852
5890
|
builderContextValue: e,
|
|
5853
5891
|
symbol: t
|
|
5854
5892
|
}) => {
|
|
@@ -5866,9 +5904,9 @@ const gs = /* @__PURE__ */ v(fs, [["render", bs]]), ys = async ({
|
|
|
5866
5904
|
}).catch((n) => {
|
|
5867
5905
|
B.error("Could not fetch symbol content: ", n);
|
|
5868
5906
|
});
|
|
5869
|
-
},
|
|
5907
|
+
}, $s = y({
|
|
5870
5908
|
name: "builder-symbol",
|
|
5871
|
-
components: { ContentVariants:
|
|
5909
|
+
components: { ContentVariants: ws, DynamicDiv: ne },
|
|
5872
5910
|
props: [
|
|
5873
5911
|
"symbol",
|
|
5874
5912
|
"builderComponents",
|
|
@@ -5910,7 +5948,7 @@ const gs = /* @__PURE__ */ v(fs, [["render", bs]]), ys = async ({
|
|
|
5910
5948
|
className() {
|
|
5911
5949
|
var e, t;
|
|
5912
5950
|
return [
|
|
5913
|
-
this.attributes[
|
|
5951
|
+
this.attributes[H()],
|
|
5914
5952
|
"builder-symbol",
|
|
5915
5953
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
5916
5954
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -5925,7 +5963,7 @@ const gs = /* @__PURE__ */ v(fs, [["render", bs]]), ys = async ({
|
|
|
5925
5963
|
methods: {
|
|
5926
5964
|
setContent() {
|
|
5927
5965
|
var e;
|
|
5928
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
5966
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || Is({
|
|
5929
5967
|
symbol: this.symbol,
|
|
5930
5968
|
builderContextValue: this.builderContext
|
|
5931
5969
|
}).then((t) => {
|
|
@@ -5935,10 +5973,10 @@ const gs = /* @__PURE__ */ v(fs, [["render", bs]]), ys = async ({
|
|
|
5935
5973
|
}
|
|
5936
5974
|
}
|
|
5937
5975
|
});
|
|
5938
|
-
function
|
|
5976
|
+
function Es(e, t, n, o, r, i) {
|
|
5939
5977
|
var l, a, u, p, b, c, m;
|
|
5940
5978
|
const s = k("ContentVariants");
|
|
5941
|
-
return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
5979
|
+
return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5942
5980
|
R(s, {
|
|
5943
5981
|
nonce: e.builderContext.nonce,
|
|
5944
5982
|
isNestedRender: !0,
|
|
@@ -5963,48 +6001,48 @@ function Ss(e, t, n, o, r, i) {
|
|
|
5963
6001
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5964
6002
|
], 16);
|
|
5965
6003
|
}
|
|
5966
|
-
const
|
|
6004
|
+
const Rs = /* @__PURE__ */ v($s, [["render", Es]]);
|
|
5967
6005
|
export {
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
6006
|
+
Vs as A,
|
|
6007
|
+
Nt as B,
|
|
6008
|
+
Fo as C,
|
|
6009
|
+
Ds as D,
|
|
6010
|
+
xs as E,
|
|
6011
|
+
jo as F,
|
|
6012
|
+
io as G,
|
|
6013
|
+
so as H,
|
|
6014
|
+
Yo as I,
|
|
5977
6015
|
We as J,
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
6016
|
+
Bs as K,
|
|
6017
|
+
Hs as L,
|
|
6018
|
+
er as S,
|
|
5981
6019
|
E as T,
|
|
5982
|
-
|
|
6020
|
+
ji as V,
|
|
5983
6021
|
v as _,
|
|
5984
|
-
|
|
6022
|
+
H as a,
|
|
5985
6023
|
ve as b,
|
|
5986
6024
|
he as c,
|
|
5987
6025
|
j as d,
|
|
5988
6026
|
te as e,
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
6027
|
+
Ls as f,
|
|
6028
|
+
Ms as g,
|
|
6029
|
+
Do as h,
|
|
6030
|
+
A as i,
|
|
6031
|
+
Fs as j,
|
|
6032
|
+
js as k,
|
|
5995
6033
|
De as l,
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6034
|
+
Nn as m,
|
|
6035
|
+
qt as n,
|
|
6036
|
+
Rs as o,
|
|
6037
|
+
zr as p,
|
|
6000
6038
|
K as q,
|
|
6001
|
-
|
|
6002
|
-
|
|
6039
|
+
ws as r,
|
|
6040
|
+
Us as s,
|
|
6003
6041
|
Ve as t,
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6042
|
+
On as u,
|
|
6043
|
+
Ns as v,
|
|
6044
|
+
ys as w,
|
|
6045
|
+
Os as x,
|
|
6046
|
+
Ws as y,
|
|
6047
|
+
vt as z
|
|
6010
6048
|
};
|