@builder.io/sdk-vue 2.0.29 → 2.0.30
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-oyEV6qzA.cjs → awaiter-G8SRGpZq.cjs} +1 -1
- package/lib/browser/{awaiter-26Xj_ukf.js → awaiter-t_FyHypk.js} +1 -1
- package/lib/browser/{block-styles-7VlstMIR.cjs → block-styles-OnuFq-oN.cjs} +1 -1
- package/lib/browser/{block-styles-sDAdmEJM.js → block-styles-QdL_P0Fx.js} +1 -1
- package/lib/browser/{block-wrapper-xFO-VLSm.js → block-wrapper-7IkLgp7x.js} +3 -3
- package/lib/browser/{block-wrapper-z8m7HQL5.cjs → block-wrapper-fBAL9K2u.cjs} +1 -1
- package/lib/browser/{component-ref-cAtD4rXw.cjs → component-ref-L--Mvtc5.cjs} +1 -1
- package/lib/browser/{component-ref-SgAsKv83.js → component-ref-llprrwE2.js} +3 -3
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/log-fetch.d.ts +1 -0
- package/lib/browser/{get-block-properties-7e6u_eA1.js → get-block-properties-C3Bt0aVR.js} +1 -1
- package/lib/browser/{get-block-properties-fBjkRbVw.cjs → get-block-properties-GiTnRRbK.cjs} +1 -1
- package/lib/browser/{index-6aZwZO3-.cjs → index-2PyFlZUC.cjs} +22 -22
- package/lib/browser/{index-kI_vPJeb.js → index-vt9k3TV3.js} +834 -829
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-uIkcGKQC.cjs → repeated-block-8thLK-kw.cjs} +1 -1
- package/lib/browser/{repeated-block-iaodALqW.js → repeated-block-dHROvYhN.js} +2 -2
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-48RvRkNd.cjs → awaiter-GC2xTC8Y.cjs} +1 -1
- package/lib/edge/{awaiter-Q7B7gBgW.js → awaiter-xMGfwYjm.js} +1 -1
- package/lib/edge/{block-styles-XIg11tMX.cjs → block-styles-MQ6F-wJx.cjs} +1 -1
- package/lib/edge/{block-styles-9MQCNPvC.js → block-styles-lnpdX6V-.js} +1 -1
- package/lib/edge/{block-wrapper-e7g10ccQ.js → block-wrapper-OjYnBNwz.js} +3 -3
- package/lib/edge/{block-wrapper-tsLeR9cJ.cjs → block-wrapper-aixvpDaD.cjs} +1 -1
- package/lib/edge/{component-ref-RDssOT9Y.js → component-ref-UF81PmzX.js} +3 -3
- package/lib/edge/{component-ref-HqIppl2q.cjs → component-ref-pLMkH-li.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/log-fetch.d.ts +1 -0
- package/lib/edge/{get-block-properties-QZcs-Zmy.cjs → get-block-properties-PgTUmqHR.cjs} +1 -1
- package/lib/edge/{get-block-properties-JvBYR7T2.js → get-block-properties-_21D78JP.js} +1 -1
- package/lib/edge/{index-MhoX9uwg.cjs → index-5thgYd8i.cjs} +32 -32
- package/lib/edge/{index-A2oFnyUY.js → index-vCgGh07X.js} +1222 -1217
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{repeated-block-luW_-FNb.js → repeated-block-2cIfX4fx.js} +2 -2
- package/lib/{node/repeated-block-L7NHAfGX.cjs → edge/repeated-block-7ZbJaVOi.cjs} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-FlUFmL70.js → awaiter-3eKUn_vT.js} +1 -1
- package/lib/node/{awaiter-V_ao-6vo.cjs → awaiter-qNZtZLjJ.cjs} +1 -1
- package/lib/node/{block-styles-mlFEPu97.js → block-styles-IyYaHu8-.js} +1 -1
- package/lib/node/{block-styles-tv9J_BQX.cjs → block-styles-ON8cTpGp.cjs} +1 -1
- package/lib/node/{block-wrapper-hD0JtNOm.js → block-wrapper-WZ-DIDkP.js} +3 -3
- package/lib/node/{block-wrapper--A2qoKhW.cjs → block-wrapper-qYoYSONc.cjs} +1 -1
- package/lib/node/{component-ref-y3SgFXV9.cjs → component-ref-5hL2pob8.cjs} +1 -1
- package/lib/node/{component-ref-Bkl05aM4.js → component-ref-_kyf_si2.js} +3 -3
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/log-fetch.d.ts +1 -0
- package/lib/node/{get-block-properties-WDP-bf5P.cjs → get-block-properties-9J6zqRJY.cjs} +1 -1
- package/lib/node/{get-block-properties-su4ucuIP.js → get-block-properties-OXHPbXLH.js} +1 -1
- package/lib/node/{index-WgbaQ2Lp.js → index-Cxf2YzmY.js} +808 -803
- package/lib/node/{index-LIVUNkJZ.cjs → index-NtAkrth1.cjs} +22 -22
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/{edge/repeated-block-S5H2EoTu.cjs → node/repeated-block-SZwTMCgz.cjs} +1 -1
- package/lib/node/{repeated-block-WeKMcR5K.js → repeated-block-vtGXbgev.js} +2 -2
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as
|
|
3
|
-
const
|
|
4
|
-
function
|
|
2
|
+
import { defineComponent as b, openBlock as c, createElementBlock as p, Fragment as T, createBlock as y, resolveDynamicComponent as j, mergeProps as C, toHandlers as x, withCtx as N, renderSlot as A, resolveComponent as k, createTextVNode as ht, toDisplayString as ee, defineAsyncComponent as H, createVNode as R, renderList as V, createCommentVNode as v, h as Be, createElementVNode as q, normalizeStyle as F, normalizeClass as z, markRaw as ft } from "vue";
|
|
3
|
+
const bt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), gt = (e) => typeof e == "string" && bt.has(e.toLowerCase());
|
|
4
|
+
function W(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
7
7
|
if (!e[r] || n && !r.startsWith(t))
|
|
@@ -11,38 +11,38 @@ function V(e = {}, t, n) {
|
|
|
11
11
|
}
|
|
12
12
|
return o;
|
|
13
13
|
}
|
|
14
|
-
const
|
|
14
|
+
const yt = b({
|
|
15
15
|
name: "dynamic-renderer",
|
|
16
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
17
17
|
data() {
|
|
18
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: gt };
|
|
19
19
|
}
|
|
20
|
-
}),
|
|
20
|
+
}), g = (e, t) => {
|
|
21
21
|
const n = e.__vccOpts || e;
|
|
22
22
|
for (const [o, r] of t)
|
|
23
23
|
n[o] = r;
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
|
-
function
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (
|
|
28
|
-
typeof e.TagName == "string" ? (
|
|
29
|
-
default:
|
|
30
|
-
|
|
26
|
+
function kt(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (c(), y(j(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), null, 16)) : (c(), p(T, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (c(), y(j(e.TagName), C({ key: 0 }, e.attributes, x(e.actionAttributes)), {
|
|
29
|
+
default: N(() => [
|
|
30
|
+
A(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (
|
|
34
|
-
default:
|
|
35
|
-
|
|
33
|
+
}, 16)) : (c(), y(j(e.TagName), C({ key: 1 }, e.attributes, x(e.actionAttributes)), {
|
|
34
|
+
default: N(() => [
|
|
35
|
+
A(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const de = /* @__PURE__ */
|
|
41
|
+
const de = /* @__PURE__ */ g(yt, [["render", kt]]), Vi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
43
|
default: de
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
45
|
-
switch (
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), P = "vue", Z = () => {
|
|
45
|
+
switch (P) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
48
48
|
case "rsc":
|
|
@@ -54,7 +54,7 @@ const de = /* @__PURE__ */ b(gt, [["render", yt]]), Ai = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, vt = b({
|
|
58
58
|
name: "builder-button",
|
|
59
59
|
components: { DynamicRenderer: de },
|
|
60
60
|
props: [
|
|
@@ -65,12 +65,12 @@ const de = /* @__PURE__ */ b(gt, [["render", yt]]), Ai = /* @__PURE__ */ Object.
|
|
|
65
65
|
"text"
|
|
66
66
|
],
|
|
67
67
|
data() {
|
|
68
|
-
return { filterAttrs:
|
|
68
|
+
return { filterAttrs: W };
|
|
69
69
|
},
|
|
70
70
|
methods: {
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
|
-
...
|
|
73
|
+
...W(this.attributes, "v-on:", !1),
|
|
74
74
|
[Z()]: `${this.link ? "" : "builder-button"} ${this.attributes[Z()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
@@ -83,20 +83,20 @@ const de = /* @__PURE__ */ b(gt, [["render", yt]]), Ai = /* @__PURE__ */ Object.
|
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
function
|
|
87
|
-
const s =
|
|
88
|
-
return
|
|
86
|
+
function St(e, t, n, o, r, i) {
|
|
87
|
+
const s = k("DynamicRenderer");
|
|
88
|
+
return c(), y(s, {
|
|
89
89
|
attributes: e.attrs(),
|
|
90
90
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
|
-
default:
|
|
94
|
-
|
|
93
|
+
default: N(() => [
|
|
94
|
+
ht(ee(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const
|
|
99
|
+
const Ct = /* @__PURE__ */ g(vt, [["render", St]]), wt = Symbol(), se = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -112,57 +112,57 @@ const St = /* @__PURE__ */ b(kt, [["render", vt]]), Ct = Symbol(), se = {
|
|
|
112
112
|
BlocksWrapperProps: {},
|
|
113
113
|
nonce: ""
|
|
114
114
|
},
|
|
115
|
-
key: Ct
|
|
116
|
-
}, wt = Symbol(), Be = {
|
|
117
|
-
Components: { registeredComponents: {} },
|
|
118
115
|
key: wt
|
|
116
|
+
}, Tt = Symbol(), xe = {
|
|
117
|
+
Components: { registeredComponents: {} },
|
|
118
|
+
key: Tt
|
|
119
119
|
};
|
|
120
|
-
function
|
|
120
|
+
function It(e) {
|
|
121
121
|
var t;
|
|
122
122
|
return {
|
|
123
123
|
...(t = e.component) == null ? void 0 : t.options,
|
|
124
124
|
...e.options
|
|
125
125
|
};
|
|
126
126
|
}
|
|
127
|
-
function
|
|
127
|
+
function $t(e, ...t) {
|
|
128
128
|
const n = Object.assign({}, e);
|
|
129
129
|
for (const o of t)
|
|
130
130
|
delete n[o];
|
|
131
131
|
return n;
|
|
132
132
|
}
|
|
133
|
-
const X = "[Builder.io]: ",
|
|
133
|
+
const X = "[Builder.io]: ", E = {
|
|
134
134
|
log: (...e) => console.log(X, ...e),
|
|
135
135
|
error: (...e) => console.error(X, ...e),
|
|
136
136
|
warn: (...e) => console.warn(X, ...e),
|
|
137
137
|
debug: (...e) => console.debug(X, ...e)
|
|
138
|
-
},
|
|
138
|
+
}, Ae = (e, t, n) => {
|
|
139
139
|
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
140
140
|
return o === void 0 || o === e ? n : o;
|
|
141
141
|
};
|
|
142
|
-
function
|
|
142
|
+
function $() {
|
|
143
143
|
return typeof window < "u" && typeof document < "u";
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const Rt = (e) => {
|
|
146
146
|
const t = {};
|
|
147
147
|
return e.forEach((n, o) => {
|
|
148
148
|
t[o] = n;
|
|
149
149
|
}), t;
|
|
150
|
-
},
|
|
151
|
-
function
|
|
152
|
-
return
|
|
150
|
+
}, Ve = (e) => e instanceof URLSearchParams ? Rt(e) : e, We = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
151
|
+
function Et() {
|
|
152
|
+
return $() && window.self !== window.top;
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
return
|
|
156
|
-
|
|
154
|
+
function B(e) {
|
|
155
|
+
return Et() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
156
|
+
We(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
157
157
|
}
|
|
158
|
-
const
|
|
159
|
-
if (
|
|
158
|
+
const Pt = () => {
|
|
159
|
+
if ($()) {
|
|
160
160
|
const e = new URL(location.href);
|
|
161
161
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
162
162
|
} else
|
|
163
163
|
return console.warn("Cannot get location for tracking in non-browser environment"), null;
|
|
164
|
-
},
|
|
165
|
-
const e =
|
|
164
|
+
}, Bt = () => typeof navigator == "object" && navigator.userAgent || "", Ne = () => {
|
|
165
|
+
const e = Bt(), t = {
|
|
166
166
|
Android() {
|
|
167
167
|
return e.match(/Android/i);
|
|
168
168
|
},
|
|
@@ -179,15 +179,15 @@ const Et = () => {
|
|
|
179
179
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
180
180
|
},
|
|
181
181
|
any() {
|
|
182
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
182
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || P === "reactNative";
|
|
183
183
|
}
|
|
184
|
-
}, n = e.match(/Tablet|iPad/i), o =
|
|
184
|
+
}, n = e.match(/Tablet|iPad/i), o = Pt();
|
|
185
185
|
return {
|
|
186
186
|
urlPath: o == null ? void 0 : o.pathname,
|
|
187
187
|
host: (o == null ? void 0 : o.host) || (o == null ? void 0 : o.hostname),
|
|
188
188
|
device: n ? "tablet" : t.any() ? "mobile" : "desktop"
|
|
189
189
|
};
|
|
190
|
-
},
|
|
190
|
+
}, xt = ({
|
|
191
191
|
builder: e,
|
|
192
192
|
context: t,
|
|
193
193
|
event: n,
|
|
@@ -199,15 +199,15 @@ const Et = () => {
|
|
|
199
199
|
builder: e,
|
|
200
200
|
context: t,
|
|
201
201
|
event: n
|
|
202
|
-
}),
|
|
203
|
-
isEditing:
|
|
204
|
-
isBrowser:
|
|
205
|
-
isServer:
|
|
206
|
-
getUserAttributes: () =>
|
|
207
|
-
}),
|
|
202
|
+
}), At = () => ({
|
|
203
|
+
isEditing: B(),
|
|
204
|
+
isBrowser: $(),
|
|
205
|
+
isServer: !$(),
|
|
206
|
+
getUserAttributes: () => Ne()
|
|
207
|
+
}), Vt = (e, {
|
|
208
208
|
isExpression: t = !0
|
|
209
209
|
}) => /* 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;
|
|
210
|
-
function
|
|
210
|
+
function Oe({
|
|
211
211
|
rootState: e,
|
|
212
212
|
localState: t,
|
|
213
213
|
rootSetState: n
|
|
@@ -217,7 +217,7 @@ function Ne({
|
|
|
217
217
|
if (t && r in t)
|
|
218
218
|
return t[r];
|
|
219
219
|
const i = o[r];
|
|
220
|
-
return typeof i == "object" && i !== null ?
|
|
220
|
+
return typeof i == "object" && i !== null ? Oe({
|
|
221
221
|
rootState: i,
|
|
222
222
|
localState: void 0,
|
|
223
223
|
rootSetState: n ? (s) => {
|
|
@@ -232,7 +232,7 @@ function Ne({
|
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
const
|
|
235
|
+
const ve = ({
|
|
236
236
|
code: e,
|
|
237
237
|
builder: t,
|
|
238
238
|
context: n,
|
|
@@ -241,11 +241,11 @@ const ke = ({
|
|
|
241
241
|
rootSetState: i,
|
|
242
242
|
rootState: s
|
|
243
243
|
}) => {
|
|
244
|
-
const l =
|
|
244
|
+
const l = xt({
|
|
245
245
|
builder: t,
|
|
246
246
|
context: n,
|
|
247
247
|
event: o,
|
|
248
|
-
state:
|
|
248
|
+
state: Oe({
|
|
249
249
|
rootState: s,
|
|
250
250
|
localState: r,
|
|
251
251
|
rootSetState: i
|
|
@@ -253,23 +253,23 @@ const ke = ({
|
|
|
253
253
|
});
|
|
254
254
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
255
255
|
}, D = (e) => e != null;
|
|
256
|
-
function
|
|
256
|
+
function Wt() {
|
|
257
257
|
var e;
|
|
258
258
|
return typeof process < "u" && D((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
259
259
|
}
|
|
260
|
-
const
|
|
260
|
+
const Nt = ({
|
|
261
261
|
shouldLogWarning: e
|
|
262
262
|
}) => {
|
|
263
263
|
var r;
|
|
264
|
-
if (!
|
|
264
|
+
if (!Wt())
|
|
265
265
|
return !1;
|
|
266
266
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
267
|
-
return t && n && !o ? (e &&
|
|
268
|
-
},
|
|
267
|
+
return t && n && !o ? (e && E.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;
|
|
268
|
+
}, Ot = (e) => ($() || Nt({
|
|
269
269
|
shouldLogWarning: !0
|
|
270
|
-
}),
|
|
270
|
+
}), ve(e)), Ft = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Dt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Lt = (e) => {
|
|
271
271
|
var t, n, o, r, i, s;
|
|
272
|
-
return ((o = (n = (t =
|
|
272
|
+
return ((o = (n = (t = Ft.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Dt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
273
273
|
};
|
|
274
274
|
function J({
|
|
275
275
|
code: e,
|
|
@@ -282,17 +282,17 @@ function J({
|
|
|
282
282
|
}) {
|
|
283
283
|
if (e.trim() === "")
|
|
284
284
|
return;
|
|
285
|
-
const l =
|
|
285
|
+
const l = Lt(e.trim());
|
|
286
286
|
if (l)
|
|
287
|
-
return
|
|
287
|
+
return Ae({
|
|
288
288
|
...o,
|
|
289
289
|
...n
|
|
290
290
|
}, l);
|
|
291
291
|
const a = {
|
|
292
|
-
code:
|
|
292
|
+
code: Vt(e, {
|
|
293
293
|
isExpression: s
|
|
294
294
|
}),
|
|
295
|
-
builder:
|
|
295
|
+
builder: At(),
|
|
296
296
|
context: t,
|
|
297
297
|
event: i,
|
|
298
298
|
rootSetState: r,
|
|
@@ -300,15 +300,15 @@ function J({
|
|
|
300
300
|
localState: n
|
|
301
301
|
};
|
|
302
302
|
try {
|
|
303
|
-
return
|
|
303
|
+
return Ot(a);
|
|
304
304
|
} catch (u) {
|
|
305
|
-
|
|
305
|
+
E.error("Failed code evaluation: " + u.message, {
|
|
306
306
|
code: e
|
|
307
307
|
});
|
|
308
308
|
return;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
|
-
const ue = (e) => JSON.parse(JSON.stringify(e)),
|
|
311
|
+
const ue = (e) => JSON.parse(JSON.stringify(e)), Fe = (e, t, n) => {
|
|
312
312
|
if (Object(e) !== e)
|
|
313
313
|
return e;
|
|
314
314
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -326,8 +326,8 @@ function ae(e) {
|
|
|
326
326
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ae(e[n]));
|
|
327
327
|
return t;
|
|
328
328
|
}
|
|
329
|
-
const
|
|
330
|
-
if (
|
|
329
|
+
const Ut = ["svelte", "vue", "angular", "qwik", "solid"].includes(P), Mt = (e) => {
|
|
330
|
+
if (Ut) {
|
|
331
331
|
const t = ue(e);
|
|
332
332
|
return {
|
|
333
333
|
...t,
|
|
@@ -339,7 +339,7 @@ const Lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Ut = (e) =
|
|
|
339
339
|
}
|
|
340
340
|
};
|
|
341
341
|
} else {
|
|
342
|
-
const t = ae(
|
|
342
|
+
const t = ae($t(e, "children", "meta"));
|
|
343
343
|
return {
|
|
344
344
|
...t,
|
|
345
345
|
properties: {
|
|
@@ -352,7 +352,7 @@ const Lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Ut = (e) =
|
|
|
352
352
|
meta: e.meta
|
|
353
353
|
};
|
|
354
354
|
}
|
|
355
|
-
},
|
|
355
|
+
}, Ht = ({
|
|
356
356
|
block: e,
|
|
357
357
|
context: t,
|
|
358
358
|
localState: n,
|
|
@@ -361,7 +361,7 @@ const Lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Ut = (e) =
|
|
|
361
361
|
}) => {
|
|
362
362
|
if (!e.bindings)
|
|
363
363
|
return e;
|
|
364
|
-
const i =
|
|
364
|
+
const i = Mt(e);
|
|
365
365
|
for (const s in e.bindings) {
|
|
366
366
|
const l = e.bindings[s], a = J({
|
|
367
367
|
code: l,
|
|
@@ -370,11 +370,11 @@ const Lt = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), Ut = (e) =
|
|
|
370
370
|
rootSetState: r,
|
|
371
371
|
context: t
|
|
372
372
|
});
|
|
373
|
-
|
|
373
|
+
Fe(i, s, a);
|
|
374
374
|
}
|
|
375
375
|
return i;
|
|
376
376
|
};
|
|
377
|
-
function
|
|
377
|
+
function jt({
|
|
378
378
|
block: e,
|
|
379
379
|
context: t,
|
|
380
380
|
shouldEvaluateBindings: n,
|
|
@@ -383,7 +383,7 @@ function Ht({
|
|
|
383
383
|
rootSetState: i
|
|
384
384
|
}) {
|
|
385
385
|
const s = e;
|
|
386
|
-
return n ?
|
|
386
|
+
return n ? Ht({
|
|
387
387
|
block: s,
|
|
388
388
|
localState: o,
|
|
389
389
|
rootState: r,
|
|
@@ -391,25 +391,25 @@ function Ht({
|
|
|
391
391
|
context: t
|
|
392
392
|
}) : s;
|
|
393
393
|
}
|
|
394
|
-
function
|
|
395
|
-
const t = e || (
|
|
396
|
-
return t ?
|
|
394
|
+
function Kt(e) {
|
|
395
|
+
const t = e || ($() ? window.location.search : void 0);
|
|
396
|
+
return t ? We(t).indexOf("builder.preview=") !== -1 : !1;
|
|
397
397
|
}
|
|
398
|
-
const
|
|
398
|
+
const qt = (e) => ({
|
|
399
399
|
type: "builder.registerComponent",
|
|
400
400
|
data: _(e)
|
|
401
|
-
}),
|
|
401
|
+
}), zt = (e) => {
|
|
402
402
|
const t = e.toString().trim();
|
|
403
403
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
404
404
|
};
|
|
405
405
|
function _(e) {
|
|
406
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
406
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? zt(n) : n));
|
|
407
407
|
}
|
|
408
|
-
const
|
|
409
|
-
function
|
|
408
|
+
const Se = {};
|
|
409
|
+
function Gt(e, t) {
|
|
410
410
|
e === "plugin" && (t = _(t));
|
|
411
|
-
let n =
|
|
412
|
-
if (n || (n =
|
|
411
|
+
let n = Se[e];
|
|
412
|
+
if (n || (n = Se[e] = []), n.push(t), $()) {
|
|
413
413
|
const o = {
|
|
414
414
|
type: "builder.register",
|
|
415
415
|
data: {
|
|
@@ -424,42 +424,42 @@ function zt(e, t) {
|
|
|
424
424
|
}
|
|
425
425
|
}
|
|
426
426
|
}
|
|
427
|
-
const
|
|
428
|
-
function
|
|
429
|
-
if (
|
|
430
|
-
Object.assign(
|
|
427
|
+
const Ce = {};
|
|
428
|
+
function Wi(e) {
|
|
429
|
+
if ($()) {
|
|
430
|
+
Object.assign(Ce, e);
|
|
431
431
|
const t = {
|
|
432
432
|
type: "builder.settingsChange",
|
|
433
|
-
data:
|
|
433
|
+
data: Ce
|
|
434
434
|
};
|
|
435
435
|
parent.postMessage(t, "*");
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
|
-
const
|
|
438
|
+
const we = "builder.", Jt = "options.", De = (e) => {
|
|
439
439
|
if (!e)
|
|
440
440
|
return {};
|
|
441
|
-
const t =
|
|
441
|
+
const t = Ve(e), n = {};
|
|
442
442
|
return Object.keys(t).forEach((o) => {
|
|
443
|
-
if (o.startsWith(
|
|
444
|
-
const r = o.replace(
|
|
443
|
+
if (o.startsWith(we)) {
|
|
444
|
+
const r = o.replace(we, "").replace(Jt, "");
|
|
445
445
|
n[r] = t[o];
|
|
446
446
|
}
|
|
447
447
|
}), n;
|
|
448
|
-
},
|
|
449
|
-
if (
|
|
448
|
+
}, Yt = () => {
|
|
449
|
+
if (!$())
|
|
450
450
|
return {};
|
|
451
451
|
const e = new URLSearchParams(window.location.search);
|
|
452
|
-
return
|
|
453
|
-
},
|
|
454
|
-
"X-Builder-SDK":
|
|
452
|
+
return De(e);
|
|
453
|
+
}, Le = "2.0.30", Ue = () => ({
|
|
454
|
+
"X-Builder-SDK": P,
|
|
455
455
|
"X-Builder-SDK-GEN": "2",
|
|
456
|
-
"X-Builder-SDK-Version":
|
|
457
|
-
}),
|
|
456
|
+
"X-Builder-SDK-Version": Le
|
|
457
|
+
}), Xt = (e) => {
|
|
458
458
|
if (e === "localhost" || e === "127.0.0.1")
|
|
459
459
|
return e;
|
|
460
460
|
const t = e.split(".");
|
|
461
461
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
462
|
-
},
|
|
462
|
+
}, Me = ({
|
|
463
463
|
name: e,
|
|
464
464
|
canTrack: t
|
|
465
465
|
}) => {
|
|
@@ -467,17 +467,17 @@ const Ce = "builder.", Jt = "options.", Fe = (e) => {
|
|
|
467
467
|
try {
|
|
468
468
|
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
469
469
|
} catch (o) {
|
|
470
|
-
|
|
470
|
+
E.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
471
471
|
return;
|
|
472
472
|
}
|
|
473
|
-
},
|
|
473
|
+
}, He = async (e) => Me(e), Qt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), Zt = [["secure", ""], ["SameSite", "None"]], _t = ({
|
|
474
474
|
name: e,
|
|
475
475
|
value: t,
|
|
476
476
|
expires: n
|
|
477
477
|
}) => {
|
|
478
|
-
const r = (
|
|
479
|
-
return
|
|
480
|
-
},
|
|
478
|
+
const r = ($() ? location.protocol === "https:" : !0) ? Zt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Xt(window.location.hostname)], ...r];
|
|
479
|
+
return Qt(s);
|
|
480
|
+
}, je = async ({
|
|
481
481
|
name: e,
|
|
482
482
|
value: t,
|
|
483
483
|
expires: n,
|
|
@@ -486,98 +486,103 @@ const Ce = "builder.", Jt = "options.", Fe = (e) => {
|
|
|
486
486
|
try {
|
|
487
487
|
if (!o)
|
|
488
488
|
return;
|
|
489
|
-
const r =
|
|
489
|
+
const r = _t({
|
|
490
490
|
name: e,
|
|
491
491
|
value: t,
|
|
492
492
|
expires: n
|
|
493
493
|
});
|
|
494
494
|
document.cookie = r;
|
|
495
495
|
} catch (r) {
|
|
496
|
-
|
|
496
|
+
E.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
497
497
|
}
|
|
498
498
|
};
|
|
499
|
-
function
|
|
499
|
+
function en() {
|
|
500
500
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
501
501
|
const t = Math.random() * 16 | 0;
|
|
502
502
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
503
503
|
});
|
|
504
504
|
}
|
|
505
|
-
function
|
|
506
|
-
return
|
|
505
|
+
function Ke() {
|
|
506
|
+
return en().replace(/-/g, "");
|
|
507
507
|
}
|
|
508
|
-
const
|
|
508
|
+
const qe = "builderSessionId", tn = async ({
|
|
509
509
|
canTrack: e
|
|
510
510
|
}) => {
|
|
511
511
|
if (!e)
|
|
512
512
|
return;
|
|
513
|
-
const t = await
|
|
514
|
-
name:
|
|
513
|
+
const t = await He({
|
|
514
|
+
name: qe,
|
|
515
515
|
canTrack: e
|
|
516
516
|
});
|
|
517
517
|
if (D(t))
|
|
518
518
|
return t;
|
|
519
519
|
{
|
|
520
|
-
const n =
|
|
521
|
-
return
|
|
520
|
+
const n = nn();
|
|
521
|
+
return on({
|
|
522
522
|
id: n,
|
|
523
523
|
canTrack: e
|
|
524
524
|
}), n;
|
|
525
525
|
}
|
|
526
|
-
},
|
|
526
|
+
}, nn = () => Ke(), on = ({
|
|
527
527
|
id: e,
|
|
528
528
|
canTrack: t
|
|
529
|
-
}) =>
|
|
530
|
-
name:
|
|
529
|
+
}) => je({
|
|
530
|
+
name: qe,
|
|
531
531
|
value: e,
|
|
532
532
|
canTrack: t
|
|
533
|
-
}),
|
|
533
|
+
}), ze = () => $() && typeof localStorage < "u" ? localStorage : void 0, rn = ({
|
|
534
534
|
key: e,
|
|
535
535
|
canTrack: t
|
|
536
536
|
}) => {
|
|
537
537
|
var n;
|
|
538
538
|
try {
|
|
539
|
-
return t ? (n =
|
|
539
|
+
return t ? (n = ze()) == null ? void 0 : n.getItem(e) : void 0;
|
|
540
540
|
} catch (o) {
|
|
541
541
|
console.debug("[LocalStorage] GET error: ", o);
|
|
542
542
|
return;
|
|
543
543
|
}
|
|
544
|
-
},
|
|
544
|
+
}, sn = ({
|
|
545
545
|
key: e,
|
|
546
546
|
canTrack: t,
|
|
547
547
|
value: n
|
|
548
548
|
}) => {
|
|
549
549
|
var o;
|
|
550
550
|
try {
|
|
551
|
-
t && ((o =
|
|
551
|
+
t && ((o = ze()) == null || o.setItem(e, n));
|
|
552
552
|
} catch (r) {
|
|
553
553
|
console.debug("[LocalStorage] SET error: ", r);
|
|
554
554
|
}
|
|
555
|
-
},
|
|
555
|
+
}, Ge = "builderVisitorId", an = ({
|
|
556
556
|
canTrack: e
|
|
557
557
|
}) => {
|
|
558
558
|
if (!e)
|
|
559
559
|
return;
|
|
560
|
-
const t =
|
|
561
|
-
key:
|
|
560
|
+
const t = rn({
|
|
561
|
+
key: Ge,
|
|
562
562
|
canTrack: e
|
|
563
563
|
});
|
|
564
564
|
if (D(t))
|
|
565
565
|
return t;
|
|
566
566
|
{
|
|
567
|
-
const n =
|
|
568
|
-
return
|
|
567
|
+
const n = ln();
|
|
568
|
+
return cn({
|
|
569
569
|
id: n,
|
|
570
570
|
canTrack: e
|
|
571
571
|
}), n;
|
|
572
572
|
}
|
|
573
|
-
},
|
|
573
|
+
}, ln = () => Ke(), cn = ({
|
|
574
574
|
id: e,
|
|
575
575
|
canTrack: t
|
|
576
|
-
}) =>
|
|
577
|
-
key:
|
|
576
|
+
}) => sn({
|
|
577
|
+
key: Ge,
|
|
578
578
|
value: e,
|
|
579
579
|
canTrack: t
|
|
580
|
-
})
|
|
580
|
+
});
|
|
581
|
+
function pe(e) {
|
|
582
|
+
var t;
|
|
583
|
+
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && E.log(e);
|
|
584
|
+
}
|
|
585
|
+
const dn = async ({
|
|
581
586
|
canTrack: e
|
|
582
587
|
}) => {
|
|
583
588
|
if (!e)
|
|
@@ -585,16 +590,16 @@ const Ke = "builderSessionId", en = async ({
|
|
|
585
590
|
visitorId: void 0,
|
|
586
591
|
sessionId: void 0
|
|
587
592
|
};
|
|
588
|
-
const t = await
|
|
593
|
+
const t = await tn({
|
|
589
594
|
canTrack: e
|
|
590
|
-
}), n =
|
|
595
|
+
}), n = an({
|
|
591
596
|
canTrack: e
|
|
592
597
|
});
|
|
593
598
|
return {
|
|
594
599
|
sessionId: t,
|
|
595
600
|
visitorId: n
|
|
596
601
|
};
|
|
597
|
-
},
|
|
602
|
+
}, un = async ({
|
|
598
603
|
type: e,
|
|
599
604
|
canTrack: t,
|
|
600
605
|
apiKey: n,
|
|
@@ -608,10 +613,10 @@ const Ke = "builderSessionId", en = async ({
|
|
|
608
613
|
url: location.href,
|
|
609
614
|
...o
|
|
610
615
|
},
|
|
611
|
-
...await
|
|
616
|
+
...await dn({
|
|
612
617
|
canTrack: t
|
|
613
618
|
}),
|
|
614
|
-
userAttributes:
|
|
619
|
+
userAttributes: Ne(),
|
|
615
620
|
ownerId: n
|
|
616
621
|
}
|
|
617
622
|
});
|
|
@@ -620,35 +625,38 @@ async function le({
|
|
|
620
625
|
...t
|
|
621
626
|
}) {
|
|
622
627
|
if (!t.apiKey) {
|
|
623
|
-
|
|
628
|
+
E.error("Missing API key for track call. Please provide your API key.");
|
|
624
629
|
return;
|
|
625
630
|
}
|
|
626
|
-
|
|
631
|
+
if (!t.canTrack || B() || !($() || P === "reactNative"))
|
|
632
|
+
return;
|
|
633
|
+
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
634
|
+
return pe(o), fetch(o, {
|
|
627
635
|
method: "POST",
|
|
628
636
|
body: JSON.stringify({
|
|
629
|
-
events: [await
|
|
637
|
+
events: [await un(t)]
|
|
630
638
|
}),
|
|
631
639
|
headers: {
|
|
632
640
|
"content-type": "application/json",
|
|
633
|
-
...
|
|
641
|
+
...Ue()
|
|
634
642
|
},
|
|
635
643
|
mode: "cors"
|
|
636
|
-
}).catch((
|
|
637
|
-
console.error("Failed to track: ",
|
|
644
|
+
}).catch((r) => {
|
|
645
|
+
console.error("Failed to track: ", r);
|
|
638
646
|
});
|
|
639
647
|
}
|
|
640
|
-
const
|
|
648
|
+
const Ni = (e) => le({
|
|
641
649
|
...e,
|
|
642
650
|
canTrack: !0
|
|
643
|
-
}),
|
|
651
|
+
}), pn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
644
652
|
function Je(e, t) {
|
|
645
653
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
646
654
|
return !1;
|
|
647
655
|
const n = new URL(t.origin), o = n.hostname;
|
|
648
|
-
return (e ||
|
|
656
|
+
return (e || pn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
649
657
|
}
|
|
650
|
-
const
|
|
651
|
-
|
|
658
|
+
const mn = () => {
|
|
659
|
+
Gt("insertMenu", {
|
|
652
660
|
name: "_default",
|
|
653
661
|
default: !0,
|
|
654
662
|
items: [{
|
|
@@ -670,14 +678,14 @@ const pn = () => {
|
|
|
670
678
|
}]
|
|
671
679
|
});
|
|
672
680
|
};
|
|
673
|
-
let
|
|
674
|
-
const
|
|
681
|
+
let Te = !1;
|
|
682
|
+
const Ye = (e = {}) => {
|
|
675
683
|
var t, n;
|
|
676
|
-
|
|
684
|
+
Te || (Te = !0, $() && ((t = window.parent) == null || t.postMessage({
|
|
677
685
|
type: "builder.sdkInfo",
|
|
678
686
|
data: {
|
|
679
|
-
target:
|
|
680
|
-
version:
|
|
687
|
+
target: P,
|
|
688
|
+
version: Le,
|
|
681
689
|
supportsPatchUpdates: !1,
|
|
682
690
|
// Supports builder-model="..." attribute which is needed to
|
|
683
691
|
// scope our '+ add block' button styling
|
|
@@ -699,32 +707,32 @@ const Ge = (e = {}) => {
|
|
|
699
707
|
if (r != null && r.type)
|
|
700
708
|
switch (r.type) {
|
|
701
709
|
case "builder.evaluate": {
|
|
702
|
-
const l = r.data.text, a = r.data.arguments || [], u = r.data.id,
|
|
703
|
-
let
|
|
710
|
+
const l = r.data.text, a = r.data.arguments || [], u = r.data.id, m = new Function(l);
|
|
711
|
+
let h, d = null;
|
|
704
712
|
try {
|
|
705
|
-
|
|
706
|
-
} catch (
|
|
707
|
-
|
|
713
|
+
h = m.apply(null, a);
|
|
714
|
+
} catch (f) {
|
|
715
|
+
d = f;
|
|
708
716
|
}
|
|
709
|
-
|
|
717
|
+
d ? (i = window.parent) == null || i.postMessage({
|
|
710
718
|
type: "builder.evaluateError",
|
|
711
719
|
data: {
|
|
712
720
|
id: u,
|
|
713
|
-
error:
|
|
721
|
+
error: d.message
|
|
714
722
|
}
|
|
715
|
-
}, "*") :
|
|
716
|
-
var
|
|
717
|
-
(
|
|
723
|
+
}, "*") : h && typeof h.then == "function" ? h.then((f) => {
|
|
724
|
+
var S;
|
|
725
|
+
(S = window.parent) == null || S.postMessage({
|
|
718
726
|
type: "builder.evaluateResult",
|
|
719
727
|
data: {
|
|
720
728
|
id: u,
|
|
721
|
-
result:
|
|
729
|
+
result: f
|
|
722
730
|
}
|
|
723
731
|
}, "*");
|
|
724
732
|
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
725
733
|
type: "builder.evaluateResult",
|
|
726
734
|
data: {
|
|
727
|
-
result:
|
|
735
|
+
result: h,
|
|
728
736
|
id: u
|
|
729
737
|
}
|
|
730
738
|
}, "*");
|
|
@@ -732,7 +740,7 @@ const Ge = (e = {}) => {
|
|
|
732
740
|
}
|
|
733
741
|
}
|
|
734
742
|
})));
|
|
735
|
-
},
|
|
743
|
+
}, Xe = ({
|
|
736
744
|
model: e,
|
|
737
745
|
trustedHosts: t,
|
|
738
746
|
callbacks: n
|
|
@@ -758,12 +766,12 @@ const Ge = (e = {}) => {
|
|
|
758
766
|
break;
|
|
759
767
|
}
|
|
760
768
|
}
|
|
761
|
-
},
|
|
762
|
-
if (
|
|
763
|
-
return
|
|
769
|
+
}, Oi = (e, t, n) => {
|
|
770
|
+
if (!$)
|
|
771
|
+
return E.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
764
772
|
};
|
|
765
|
-
|
|
766
|
-
const o =
|
|
773
|
+
Ye();
|
|
774
|
+
const o = Xe({
|
|
767
775
|
callbacks: {
|
|
768
776
|
contentUpdate: t,
|
|
769
777
|
animation: () => {
|
|
@@ -777,24 +785,24 @@ const Ge = (e = {}) => {
|
|
|
777
785
|
return window.addEventListener("message", o), () => {
|
|
778
786
|
window.removeEventListener("message", o);
|
|
779
787
|
};
|
|
780
|
-
},
|
|
788
|
+
}, hn = "builder.tests", me = (e) => `${hn}.${e}`, fn = ({
|
|
781
789
|
contentId: e
|
|
782
|
-
}) =>
|
|
783
|
-
name:
|
|
790
|
+
}) => He({
|
|
791
|
+
name: me(e),
|
|
784
792
|
canTrack: !0
|
|
785
|
-
}),
|
|
793
|
+
}), bn = ({
|
|
786
794
|
contentId: e
|
|
787
|
-
}) =>
|
|
788
|
-
name:
|
|
795
|
+
}) => Me({
|
|
796
|
+
name: me(e),
|
|
789
797
|
canTrack: !0
|
|
790
|
-
}),
|
|
798
|
+
}), gn = ({
|
|
791
799
|
contentId: e,
|
|
792
800
|
value: t
|
|
793
|
-
}) =>
|
|
794
|
-
name:
|
|
801
|
+
}) => je({
|
|
802
|
+
name: me(e),
|
|
795
803
|
value: t,
|
|
796
804
|
canTrack: !0
|
|
797
|
-
}),
|
|
805
|
+
}), Qe = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, yn = ({
|
|
798
806
|
id: e,
|
|
799
807
|
variations: t
|
|
800
808
|
}) => {
|
|
@@ -807,15 +815,15 @@ const Ge = (e = {}) => {
|
|
|
807
815
|
return i;
|
|
808
816
|
}
|
|
809
817
|
return e;
|
|
810
|
-
},
|
|
811
|
-
const t =
|
|
812
|
-
return
|
|
818
|
+
}, Ze = (e) => {
|
|
819
|
+
const t = yn(e);
|
|
820
|
+
return gn({
|
|
813
821
|
contentId: e.id,
|
|
814
822
|
value: t
|
|
815
823
|
}).catch((n) => {
|
|
816
|
-
|
|
824
|
+
E.error("could not store A/B test variation: ", n);
|
|
817
825
|
}), t;
|
|
818
|
-
},
|
|
826
|
+
}, _e = ({
|
|
819
827
|
item: e,
|
|
820
828
|
testGroupId: t
|
|
821
829
|
}) => {
|
|
@@ -829,7 +837,7 @@ const Ge = (e = {}) => {
|
|
|
829
837
|
testVariationId: n.id,
|
|
830
838
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
831
839
|
};
|
|
832
|
-
},
|
|
840
|
+
}, kn = ({
|
|
833
841
|
item: e,
|
|
834
842
|
canTrack: t
|
|
835
843
|
}) => {
|
|
@@ -837,14 +845,14 @@ const Ge = (e = {}) => {
|
|
|
837
845
|
return e;
|
|
838
846
|
if (!e)
|
|
839
847
|
return;
|
|
840
|
-
if (!
|
|
848
|
+
if (!Qe(e))
|
|
841
849
|
return e;
|
|
842
|
-
const n =
|
|
850
|
+
const n = bn({
|
|
843
851
|
contentId: e.id
|
|
844
|
-
}) ||
|
|
852
|
+
}) || Ze({
|
|
845
853
|
variations: e.variations,
|
|
846
854
|
id: e.id
|
|
847
|
-
}), o =
|
|
855
|
+
}), o = _e({
|
|
848
856
|
item: e,
|
|
849
857
|
testGroupId: n
|
|
850
858
|
});
|
|
@@ -852,18 +860,18 @@ const Ge = (e = {}) => {
|
|
|
852
860
|
...e,
|
|
853
861
|
...o
|
|
854
862
|
};
|
|
855
|
-
},
|
|
863
|
+
}, vn = async ({
|
|
856
864
|
item: e,
|
|
857
865
|
canTrack: t
|
|
858
866
|
}) => {
|
|
859
|
-
if (!t || !
|
|
867
|
+
if (!t || !Qe(e))
|
|
860
868
|
return e;
|
|
861
|
-
const o = await
|
|
869
|
+
const o = await fn({
|
|
862
870
|
contentId: e.id
|
|
863
|
-
}) ||
|
|
871
|
+
}) || Ze({
|
|
864
872
|
variations: e.variations,
|
|
865
873
|
id: e.id
|
|
866
|
-
}), r =
|
|
874
|
+
}), r = _e({
|
|
867
875
|
item: e,
|
|
868
876
|
testGroupId: o
|
|
869
877
|
});
|
|
@@ -871,18 +879,18 @@ const Ge = (e = {}) => {
|
|
|
871
879
|
...e,
|
|
872
880
|
...r
|
|
873
881
|
};
|
|
874
|
-
},
|
|
875
|
-
function
|
|
882
|
+
}, G = (e) => D(e) ? e : !0;
|
|
883
|
+
function Sn() {
|
|
876
884
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
877
885
|
}
|
|
878
|
-
function
|
|
879
|
-
const e =
|
|
886
|
+
function Cn() {
|
|
887
|
+
const e = Sn().fetch;
|
|
880
888
|
if (typeof e > "u")
|
|
881
889
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
882
890
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
883
891
|
return e;
|
|
884
892
|
}
|
|
885
|
-
const
|
|
893
|
+
const wn = Cn();
|
|
886
894
|
function ce(e, t = null, n = ".") {
|
|
887
895
|
return Object.keys(e).reduce((o, r) => {
|
|
888
896
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
@@ -895,14 +903,14 @@ function ce(e, t = null, n = ".") {
|
|
|
895
903
|
};
|
|
896
904
|
}, {});
|
|
897
905
|
}
|
|
898
|
-
function
|
|
906
|
+
function et(e, t, n = {}) {
|
|
899
907
|
for (const o in e) {
|
|
900
908
|
const r = e[o], i = t ? t + "." + o : o;
|
|
901
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ?
|
|
909
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? et(r, i, n) : n[i] = r;
|
|
902
910
|
}
|
|
903
911
|
return n;
|
|
904
912
|
}
|
|
905
|
-
const
|
|
913
|
+
const Tn = "v3", Ie = (e) => typeof e == "number" && !isNaN(e) && e >= 0, he = (e) => {
|
|
906
914
|
const {
|
|
907
915
|
limit: t = 30,
|
|
908
916
|
userAttributes: n,
|
|
@@ -911,90 +919,90 @@ const wn = "v3", Te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, me = (
|
|
|
911
919
|
apiKey: i,
|
|
912
920
|
enrich: s,
|
|
913
921
|
locale: l,
|
|
914
|
-
apiVersion: a =
|
|
922
|
+
apiVersion: a = Tn,
|
|
915
923
|
fields: u,
|
|
916
|
-
omit:
|
|
917
|
-
offset:
|
|
918
|
-
cacheSeconds:
|
|
919
|
-
staleCacheSeconds:
|
|
920
|
-
sort:
|
|
921
|
-
includeUnpublished:
|
|
922
|
-
apiHost:
|
|
924
|
+
omit: m,
|
|
925
|
+
offset: h,
|
|
926
|
+
cacheSeconds: d,
|
|
927
|
+
staleCacheSeconds: f,
|
|
928
|
+
sort: S,
|
|
929
|
+
includeUnpublished: w,
|
|
930
|
+
apiHost: L
|
|
923
931
|
} = e;
|
|
924
932
|
if (!i)
|
|
925
933
|
throw new Error("Missing API key");
|
|
926
934
|
if (!["v3"].includes(a))
|
|
927
935
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
928
|
-
const
|
|
929
|
-
if (
|
|
936
|
+
const ut = t !== 1, pt = L || "https://cdn.builder.io", I = new URL(`${pt}/api/${a}/content/${r}`);
|
|
937
|
+
if (I.searchParams.set("apiKey", i), I.searchParams.set("limit", String(t)), I.searchParams.set("noTraverse", String(ut)), I.searchParams.set("includeRefs", String(!0)), l && I.searchParams.set("locale", l), s && I.searchParams.set("enrich", String(s)), I.searchParams.set("omit", m || "meta.componentsUsed"), u && I.searchParams.set("fields", u), Number.isFinite(h) && h > -1 && I.searchParams.set("offset", String(Math.floor(h))), typeof w == "boolean" && I.searchParams.set("includeUnpublished", String(w)), d && Ie(d) && I.searchParams.set("cacheSeconds", String(d)), f && Ie(f) && I.searchParams.set("staleCacheSeconds", String(f)), S) {
|
|
930
938
|
const O = ce({
|
|
931
|
-
sort:
|
|
939
|
+
sort: S
|
|
932
940
|
});
|
|
933
|
-
for (const
|
|
934
|
-
|
|
941
|
+
for (const M in O)
|
|
942
|
+
I.searchParams.set(M, JSON.stringify(O[M]));
|
|
935
943
|
}
|
|
936
|
-
const
|
|
937
|
-
...
|
|
938
|
-
...
|
|
939
|
-
},
|
|
940
|
-
for (const O in
|
|
941
|
-
|
|
942
|
-
if (n &&
|
|
943
|
-
const O =
|
|
944
|
+
const mt = {
|
|
945
|
+
...Yt(),
|
|
946
|
+
...Ve(e.options || {})
|
|
947
|
+
}, ke = ce(mt);
|
|
948
|
+
for (const O in ke)
|
|
949
|
+
I.searchParams.set(O, String(ke[O]));
|
|
950
|
+
if (n && I.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
951
|
+
const O = et({
|
|
944
952
|
query: o
|
|
945
953
|
});
|
|
946
|
-
for (const
|
|
947
|
-
|
|
954
|
+
for (const M in O)
|
|
955
|
+
I.searchParams.set(M, JSON.stringify(O[M]));
|
|
948
956
|
}
|
|
949
|
-
return
|
|
950
|
-
},
|
|
951
|
-
async function
|
|
952
|
-
const t = await
|
|
957
|
+
return I;
|
|
958
|
+
}, In = (e) => "results" in e;
|
|
959
|
+
async function fe(e) {
|
|
960
|
+
const t = await En({
|
|
953
961
|
...e,
|
|
954
962
|
limit: 1
|
|
955
963
|
});
|
|
956
964
|
return t && t[0] || null;
|
|
957
965
|
}
|
|
958
|
-
const
|
|
966
|
+
const $n = async (e) => {
|
|
959
967
|
var s;
|
|
960
|
-
const t =
|
|
968
|
+
const t = he(e), n = e.fetch ?? wn, o = {
|
|
961
969
|
...e.fetchOptions,
|
|
962
970
|
headers: {
|
|
963
971
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
964
|
-
...
|
|
972
|
+
...Ue()
|
|
965
973
|
}
|
|
966
974
|
};
|
|
967
975
|
return await (await n(t.href, o)).json();
|
|
968
|
-
},
|
|
969
|
-
const o =
|
|
970
|
-
if (n.search.includes("preview="), !o || !(
|
|
976
|
+
}, Rn = async (e, t, n = he(e)) => {
|
|
977
|
+
const o = G(e.canTrack);
|
|
978
|
+
if (n.search.includes("preview="), !o || !($() || P === "reactNative"))
|
|
971
979
|
return t.results;
|
|
972
980
|
try {
|
|
973
981
|
const r = [];
|
|
974
982
|
for (const i of t.results)
|
|
975
|
-
r.push(await
|
|
983
|
+
r.push(await vn({
|
|
976
984
|
item: i,
|
|
977
985
|
canTrack: o
|
|
978
986
|
}));
|
|
979
987
|
t.results = r;
|
|
980
988
|
} catch (r) {
|
|
981
|
-
|
|
989
|
+
E.error("Could not process A/B tests. ", r);
|
|
982
990
|
}
|
|
983
991
|
return t.results;
|
|
984
992
|
};
|
|
985
|
-
async function
|
|
993
|
+
async function En(e) {
|
|
986
994
|
try {
|
|
987
|
-
const t =
|
|
988
|
-
return
|
|
995
|
+
const t = he(e), n = await $n(e);
|
|
996
|
+
return In(n) ? Rn(e, n) : (E.error("Error fetching data. ", {
|
|
989
997
|
url: t,
|
|
990
998
|
content: n,
|
|
991
999
|
options: e
|
|
992
1000
|
}), null);
|
|
993
1001
|
} catch (t) {
|
|
994
|
-
return
|
|
1002
|
+
return E.error("Error fetching data. ", t), null;
|
|
995
1003
|
}
|
|
996
1004
|
}
|
|
997
|
-
const
|
|
1005
|
+
const Fi = async (e) => {
|
|
998
1006
|
var o, r, i;
|
|
999
1007
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1000
1008
|
...e,
|
|
@@ -1006,15 +1014,15 @@ const Oi = async (e) => {
|
|
|
1006
1014
|
urlPath: t
|
|
1007
1015
|
} : {}
|
|
1008
1016
|
},
|
|
1009
|
-
options:
|
|
1017
|
+
options: De(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
1010
1018
|
};
|
|
1011
1019
|
return {
|
|
1012
1020
|
apiKey: n.apiKey,
|
|
1013
1021
|
model: n.model,
|
|
1014
|
-
content: await
|
|
1022
|
+
content: await fe(n)
|
|
1015
1023
|
};
|
|
1016
|
-
},
|
|
1017
|
-
function
|
|
1024
|
+
}, be = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1025
|
+
function Pn(e, t, n = {}) {
|
|
1018
1026
|
let o, r, i, s = null, l = 0;
|
|
1019
1027
|
const a = function() {
|
|
1020
1028
|
l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
@@ -1022,11 +1030,11 @@ function En(e, t, n = {}) {
|
|
|
1022
1030
|
return function() {
|
|
1023
1031
|
const u = Date.now();
|
|
1024
1032
|
!l && n.leading === !1 && (l = u);
|
|
1025
|
-
const
|
|
1026
|
-
return o = this, r = arguments,
|
|
1033
|
+
const m = t - (u - l);
|
|
1034
|
+
return o = this, r = arguments, m <= 0 || m > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, m)), i;
|
|
1027
1035
|
};
|
|
1028
1036
|
}
|
|
1029
|
-
function
|
|
1037
|
+
function K(e, ...t) {
|
|
1030
1038
|
const n = Object(e);
|
|
1031
1039
|
for (let o = 1; o < arguments.length; o++) {
|
|
1032
1040
|
const r = arguments[o];
|
|
@@ -1036,118 +1044,118 @@ function j(e, ...t) {
|
|
|
1036
1044
|
}
|
|
1037
1045
|
return n;
|
|
1038
1046
|
}
|
|
1039
|
-
function
|
|
1047
|
+
function Bn(e) {
|
|
1040
1048
|
for (const t of e)
|
|
1041
1049
|
switch (t.trigger) {
|
|
1042
1050
|
case "pageLoad":
|
|
1043
|
-
|
|
1051
|
+
ot(t);
|
|
1044
1052
|
break;
|
|
1045
1053
|
case "scrollInView":
|
|
1046
|
-
|
|
1054
|
+
An(t);
|
|
1047
1055
|
break;
|
|
1048
1056
|
}
|
|
1049
1057
|
}
|
|
1050
|
-
function
|
|
1058
|
+
function tt(e) {
|
|
1051
1059
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1052
1060
|
}
|
|
1053
|
-
function
|
|
1054
|
-
const n =
|
|
1061
|
+
function nt(e, t) {
|
|
1062
|
+
const n = xn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
1055
1063
|
for (const l of s)
|
|
1056
1064
|
for (const a of n)
|
|
1057
1065
|
a in l || (l[a] = o[a]);
|
|
1058
1066
|
}
|
|
1059
|
-
function
|
|
1067
|
+
function xn(e) {
|
|
1060
1068
|
const t = [];
|
|
1061
1069
|
for (const n of e.steps)
|
|
1062
1070
|
for (const o in n.styles)
|
|
1063
1071
|
t.indexOf(o) === -1 && t.push(o);
|
|
1064
1072
|
return t;
|
|
1065
1073
|
}
|
|
1066
|
-
function
|
|
1074
|
+
function ot(e) {
|
|
1067
1075
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1068
1076
|
if (!t.length) {
|
|
1069
|
-
|
|
1077
|
+
tt(e.elementId || e.id || "");
|
|
1070
1078
|
return;
|
|
1071
1079
|
}
|
|
1072
1080
|
Array.from(t).forEach((n) => {
|
|
1073
|
-
|
|
1074
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1081
|
+
nt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", K(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1082
|
+
n.style.transition = `all ${e.duration}s ${be(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), K(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1075
1083
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1076
1084
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1077
1085
|
});
|
|
1078
1086
|
});
|
|
1079
1087
|
}
|
|
1080
|
-
function
|
|
1088
|
+
function An(e) {
|
|
1081
1089
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1082
1090
|
if (!t.length) {
|
|
1083
|
-
|
|
1091
|
+
tt(e.elementId || e.id || "");
|
|
1084
1092
|
return;
|
|
1085
1093
|
}
|
|
1086
1094
|
Array.from(t).forEach((n) => {
|
|
1087
|
-
|
|
1095
|
+
nt(e, n);
|
|
1088
1096
|
let o = !1, r = !1;
|
|
1089
1097
|
function i() {
|
|
1090
1098
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
1091
|
-
|
|
1099
|
+
K(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
1092
1100
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
1093
1101
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1094
|
-
})) : e.repeat && o && !r && !l(n) && (o = !1,
|
|
1102
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, K(n.style, e.steps[0].styles));
|
|
1095
1103
|
}
|
|
1096
|
-
const s =
|
|
1104
|
+
const s = Pn(i, 200, {
|
|
1097
1105
|
leading: !1
|
|
1098
1106
|
});
|
|
1099
|
-
function l(
|
|
1100
|
-
const
|
|
1101
|
-
return
|
|
1107
|
+
function l(m) {
|
|
1108
|
+
const h = m.getBoundingClientRect(), d = window.innerHeight, S = (e.thresholdPercent || 0) / 100 * d;
|
|
1109
|
+
return h.bottom > S && h.top < d - S;
|
|
1102
1110
|
}
|
|
1103
1111
|
const a = e.steps[0].styles;
|
|
1104
1112
|
function u() {
|
|
1105
|
-
|
|
1113
|
+
K(n.style, a);
|
|
1106
1114
|
}
|
|
1107
1115
|
u(), setTimeout(() => {
|
|
1108
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1116
|
+
n.style.transition = `all ${e.duration}s ${be(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
1109
1117
|
}), document.addEventListener("scroll", s, {
|
|
1110
1118
|
capture: !0,
|
|
1111
1119
|
passive: !0
|
|
1112
1120
|
}), i();
|
|
1113
1121
|
});
|
|
1114
1122
|
}
|
|
1115
|
-
const
|
|
1123
|
+
const rt = (e) => Object.entries(e).map(([n, o]) => {
|
|
1116
1124
|
if (typeof o == "string")
|
|
1117
|
-
return `${
|
|
1118
|
-
}).filter(D),
|
|
1119
|
-
`),
|
|
1125
|
+
return `${be(n)}: ${o};`;
|
|
1126
|
+
}).filter(D), Vn = (e) => rt(e).join(`
|
|
1127
|
+
`), Di = ({
|
|
1120
1128
|
mediaQuery: e,
|
|
1121
1129
|
className: t,
|
|
1122
1130
|
styles: n
|
|
1123
1131
|
}) => {
|
|
1124
1132
|
const o = `.${t} {
|
|
1125
|
-
${
|
|
1133
|
+
${Vn(n)}
|
|
1126
1134
|
}`;
|
|
1127
1135
|
return e ? `${e} {
|
|
1128
1136
|
${o}
|
|
1129
1137
|
}` : o;
|
|
1130
1138
|
};
|
|
1131
|
-
function
|
|
1139
|
+
function Wn({
|
|
1132
1140
|
style: e
|
|
1133
1141
|
}) {
|
|
1134
1142
|
return e;
|
|
1135
1143
|
}
|
|
1136
|
-
const
|
|
1144
|
+
const Li = ({
|
|
1137
1145
|
block: e,
|
|
1138
1146
|
context: t
|
|
1139
|
-
}) =>
|
|
1147
|
+
}) => it(Wn({
|
|
1140
1148
|
style: e.style || {},
|
|
1141
1149
|
context: t,
|
|
1142
1150
|
block: e
|
|
1143
1151
|
}));
|
|
1144
|
-
function
|
|
1145
|
-
switch (
|
|
1152
|
+
function it(e) {
|
|
1153
|
+
switch (P) {
|
|
1146
1154
|
case "svelte":
|
|
1147
1155
|
case "vue":
|
|
1148
1156
|
case "solid":
|
|
1149
1157
|
case "angular":
|
|
1150
|
-
return
|
|
1158
|
+
return rt(e).join(" ");
|
|
1151
1159
|
case "qwik":
|
|
1152
1160
|
case "reactNative":
|
|
1153
1161
|
case "react":
|
|
@@ -1155,7 +1163,7 @@ function rt(e) {
|
|
|
1155
1163
|
return e;
|
|
1156
1164
|
}
|
|
1157
1165
|
}
|
|
1158
|
-
const
|
|
1166
|
+
const Nn = ({
|
|
1159
1167
|
block: e,
|
|
1160
1168
|
registeredComponents: t
|
|
1161
1169
|
}) => {
|
|
@@ -1169,7 +1177,7 @@ const Wn = ({
|
|
|
1169
1177
|
console.warn(`
|
|
1170
1178
|
Could not find a registered component named "${n}".
|
|
1171
1179
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1172
|
-
},
|
|
1180
|
+
}, On = ({
|
|
1173
1181
|
block: e,
|
|
1174
1182
|
context: t
|
|
1175
1183
|
}) => {
|
|
@@ -1202,59 +1210,59 @@ const Wn = ({
|
|
|
1202
1210
|
},
|
|
1203
1211
|
block: o
|
|
1204
1212
|
}));
|
|
1205
|
-
},
|
|
1213
|
+
}, Fn = (e, t) => {
|
|
1206
1214
|
var n;
|
|
1207
1215
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1208
1216
|
builderLinkComponent: t
|
|
1209
1217
|
} : {};
|
|
1210
|
-
},
|
|
1218
|
+
}, Dn = (e, t) => {
|
|
1211
1219
|
var n;
|
|
1212
1220
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
1213
1221
|
builderComponents: t
|
|
1214
1222
|
} : {};
|
|
1215
|
-
},
|
|
1223
|
+
}, Ln = (e, t) => {
|
|
1216
1224
|
var n;
|
|
1217
1225
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1218
1226
|
builderBlock: t
|
|
1219
1227
|
} : {};
|
|
1220
|
-
},
|
|
1228
|
+
}, Un = (e, t) => {
|
|
1221
1229
|
var n;
|
|
1222
1230
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1223
1231
|
builderContext: t
|
|
1224
1232
|
} : {};
|
|
1225
|
-
},
|
|
1233
|
+
}, Mn = () => Promise.resolve().then(() => to).then((e) => e.default).catch((e) => {
|
|
1226
1234
|
throw console.error(
|
|
1227
1235
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1228
1236
|
e
|
|
1229
1237
|
), e;
|
|
1230
|
-
}),
|
|
1238
|
+
}), Hn = () => import("./block-styles-QdL_P0Fx.js").then((e) => e.default).catch((e) => {
|
|
1231
1239
|
throw console.error(
|
|
1232
1240
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1233
1241
|
e
|
|
1234
1242
|
), e;
|
|
1235
|
-
}),
|
|
1243
|
+
}), jn = () => import("./block-wrapper-7IkLgp7x.js").then((e) => e.default).catch((e) => {
|
|
1236
1244
|
throw console.error(
|
|
1237
1245
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1238
1246
|
e
|
|
1239
1247
|
), e;
|
|
1240
|
-
}),
|
|
1248
|
+
}), Kn = () => import("./component-ref-llprrwE2.js").then((e) => e.default).catch((e) => {
|
|
1241
1249
|
throw console.error(
|
|
1242
1250
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1243
1251
|
e
|
|
1244
1252
|
), e;
|
|
1245
|
-
}),
|
|
1253
|
+
}), qn = () => import("./repeated-block-dHROvYhN.js").then((e) => e.default).catch((e) => {
|
|
1246
1254
|
throw console.error(
|
|
1247
1255
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1248
1256
|
e
|
|
1249
1257
|
), e;
|
|
1250
|
-
}),
|
|
1258
|
+
}), zn = b({
|
|
1251
1259
|
name: "block",
|
|
1252
1260
|
components: {
|
|
1253
|
-
BlockStyles:
|
|
1254
|
-
RepeatedBlock:
|
|
1255
|
-
ComponentRef:
|
|
1256
|
-
BlockWrapper:
|
|
1257
|
-
DynamicDiv:
|
|
1261
|
+
BlockStyles: H(Hn),
|
|
1262
|
+
RepeatedBlock: H(qn),
|
|
1263
|
+
ComponentRef: H(Kn),
|
|
1264
|
+
BlockWrapper: H(jn),
|
|
1265
|
+
DynamicDiv: H(Mn)
|
|
1258
1266
|
},
|
|
1259
1267
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1260
1268
|
data() {
|
|
@@ -1267,7 +1275,7 @@ const Wn = ({
|
|
|
1267
1275
|
},
|
|
1268
1276
|
mounted() {
|
|
1269
1277
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1270
|
-
t && e &&
|
|
1278
|
+
t && e && Bn(
|
|
1271
1279
|
t.map((n) => ({
|
|
1272
1280
|
...n,
|
|
1273
1281
|
elementId: e
|
|
@@ -1278,14 +1286,14 @@ const Wn = ({
|
|
|
1278
1286
|
},
|
|
1279
1287
|
computed: {
|
|
1280
1288
|
repeatItem() {
|
|
1281
|
-
return
|
|
1289
|
+
return On({
|
|
1282
1290
|
block: this.block,
|
|
1283
1291
|
context: this.context
|
|
1284
1292
|
});
|
|
1285
1293
|
},
|
|
1286
1294
|
processedBlock() {
|
|
1287
1295
|
var t;
|
|
1288
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1296
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : jt({
|
|
1289
1297
|
block: this.block,
|
|
1290
1298
|
localState: this.context.localState,
|
|
1291
1299
|
rootState: this.context.rootState,
|
|
@@ -1295,7 +1303,7 @@ const Wn = ({
|
|
|
1295
1303
|
});
|
|
1296
1304
|
},
|
|
1297
1305
|
blockComponent() {
|
|
1298
|
-
return
|
|
1306
|
+
return Nn({
|
|
1299
1307
|
block: this.processedBlock,
|
|
1300
1308
|
registeredComponents: this.registeredComponents
|
|
1301
1309
|
});
|
|
@@ -1321,11 +1329,11 @@ const Wn = ({
|
|
|
1321
1329
|
blockChildren: this.processedBlock.children ?? [],
|
|
1322
1330
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1323
1331
|
componentOptions: {
|
|
1324
|
-
...
|
|
1325
|
-
...
|
|
1326
|
-
...
|
|
1327
|
-
...
|
|
1328
|
-
...
|
|
1332
|
+
...It(this.processedBlock),
|
|
1333
|
+
...Ln(this.blockComponent, this.processedBlock),
|
|
1334
|
+
...Un(this.blockComponent, this.context),
|
|
1335
|
+
...Fn(this.blockComponent, this.linkComponent),
|
|
1336
|
+
...Dn(
|
|
1329
1337
|
this.blockComponent,
|
|
1330
1338
|
this.registeredComponents
|
|
1331
1339
|
)
|
|
@@ -1335,27 +1343,27 @@ const Wn = ({
|
|
|
1335
1343
|
registeredComponents: this.registeredComponents,
|
|
1336
1344
|
builderBlock: this.processedBlock,
|
|
1337
1345
|
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
1338
|
-
isInteractive: !((n = this.blockComponent) != null && n.isRSC &&
|
|
1346
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC && P === "rsc")
|
|
1339
1347
|
};
|
|
1340
1348
|
}
|
|
1341
1349
|
}
|
|
1342
1350
|
});
|
|
1343
|
-
function
|
|
1344
|
-
var
|
|
1345
|
-
const s =
|
|
1346
|
-
return e.canShowBlock ? (
|
|
1347
|
-
|
|
1351
|
+
function Gn(e, t, n, o, r, i) {
|
|
1352
|
+
var h;
|
|
1353
|
+
const s = k("BlockStyles"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), m = k("RepeatedBlock");
|
|
1354
|
+
return e.canShowBlock ? (c(), p(T, { key: 0 }, [
|
|
1355
|
+
R(s, {
|
|
1348
1356
|
block: e.processedBlock,
|
|
1349
1357
|
context: e.context
|
|
1350
1358
|
}, null, 8, ["block", "context"]),
|
|
1351
|
-
(
|
|
1352
|
-
e.repeatItem ? (
|
|
1353
|
-
key:
|
|
1354
|
-
repeatContext:
|
|
1355
|
-
block:
|
|
1359
|
+
(h = e.blockComponent) != null && h.noWrap ? (c(), p(T, { key: 1 }, [
|
|
1360
|
+
e.repeatItem ? (c(!0), p(T, { key: 1 }, V(e.repeatItem, (d, f) => (c(), y(m, {
|
|
1361
|
+
key: f,
|
|
1362
|
+
repeatContext: d.context,
|
|
1363
|
+
block: d.block,
|
|
1356
1364
|
registeredComponents: e.registeredComponents,
|
|
1357
1365
|
linkComponent: e.linkComponent
|
|
1358
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
1366
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), y(l, {
|
|
1359
1367
|
key: 0,
|
|
1360
1368
|
componentRef: e.componentRefProps.componentRef,
|
|
1361
1369
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -1367,21 +1375,21 @@ function zn(e, t, n, o, r, i) {
|
|
|
1367
1375
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1368
1376
|
isInteractive: e.componentRefProps.isInteractive
|
|
1369
1377
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1370
|
-
], 64)) : (
|
|
1371
|
-
e.repeatItem ? (
|
|
1372
|
-
key:
|
|
1373
|
-
repeatContext:
|
|
1374
|
-
block:
|
|
1378
|
+
], 64)) : (c(), p(T, { key: 0 }, [
|
|
1379
|
+
e.repeatItem ? (c(!0), p(T, { key: 1 }, V(e.repeatItem, (d, f) => (c(), y(m, {
|
|
1380
|
+
key: f,
|
|
1381
|
+
repeatContext: d.context,
|
|
1382
|
+
block: d.block,
|
|
1375
1383
|
registeredComponents: e.registeredComponents,
|
|
1376
1384
|
linkComponent: e.linkComponent
|
|
1377
|
-
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (
|
|
1385
|
+
}, null, 8, ["repeatContext", "block", "registeredComponents", "linkComponent"]))), 128)) : (c(), y(u, {
|
|
1378
1386
|
key: 0,
|
|
1379
1387
|
Wrapper: e.Tag,
|
|
1380
1388
|
block: e.processedBlock,
|
|
1381
1389
|
context: e.context
|
|
1382
1390
|
}, {
|
|
1383
|
-
default:
|
|
1384
|
-
|
|
1391
|
+
default: N(() => [
|
|
1392
|
+
R(l, {
|
|
1385
1393
|
componentRef: e.componentRefProps.componentRef,
|
|
1386
1394
|
componentOptions: e.componentRefProps.componentOptions,
|
|
1387
1395
|
blockChildren: e.componentRefProps.blockChildren,
|
|
@@ -1392,9 +1400,9 @@ function zn(e, t, n, o, r, i) {
|
|
|
1392
1400
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1393
1401
|
isInteractive: e.componentRefProps.isInteractive
|
|
1394
1402
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1395
|
-
(
|
|
1396
|
-
key:
|
|
1397
|
-
block:
|
|
1403
|
+
(c(!0), p(T, null, V(e.childrenWithoutParentComponent, (d, f) => (c(), y(a, {
|
|
1404
|
+
key: d.id,
|
|
1405
|
+
block: d,
|
|
1398
1406
|
registeredComponents: e.registeredComponents,
|
|
1399
1407
|
linkComponent: e.linkComponent,
|
|
1400
1408
|
context: e.context
|
|
@@ -1403,12 +1411,12 @@ function zn(e, t, n, o, r, i) {
|
|
|
1403
1411
|
_: 1
|
|
1404
1412
|
}, 8, ["Wrapper", "block", "context"]))
|
|
1405
1413
|
], 64))
|
|
1406
|
-
], 64)) :
|
|
1414
|
+
], 64)) : v("", !0);
|
|
1407
1415
|
}
|
|
1408
|
-
const
|
|
1416
|
+
const ge = /* @__PURE__ */ g(zn, [["render", Gn]]), Ui = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1409
1417
|
__proto__: null,
|
|
1410
|
-
default:
|
|
1411
|
-
}, Symbol.toStringTag, { value: "Module" })), Jn =
|
|
1418
|
+
default: ge
|
|
1419
|
+
}, Symbol.toStringTag, { value: "Module" })), Jn = b({
|
|
1412
1420
|
name: "builder-blocks-wrapper",
|
|
1413
1421
|
props: [
|
|
1414
1422
|
"blocks",
|
|
@@ -1440,7 +1448,7 @@ const be = /* @__PURE__ */ b(qn, [["render", zn]]), Li = /* @__PURE__ */ Object.
|
|
|
1440
1448
|
methods: {
|
|
1441
1449
|
onClick() {
|
|
1442
1450
|
var e, t;
|
|
1443
|
-
|
|
1451
|
+
B() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1444
1452
|
{
|
|
1445
1453
|
type: "builder.clickEmptyBlocks",
|
|
1446
1454
|
data: {
|
|
@@ -1453,7 +1461,7 @@ const be = /* @__PURE__ */ b(qn, [["render", zn]]), Li = /* @__PURE__ */ Object.
|
|
|
1453
1461
|
},
|
|
1454
1462
|
onMouseEnter() {
|
|
1455
1463
|
var e, t;
|
|
1456
|
-
|
|
1464
|
+
B() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1457
1465
|
{
|
|
1458
1466
|
type: "builder.hoverEmptyBlocks",
|
|
1459
1467
|
data: {
|
|
@@ -1466,8 +1474,8 @@ const be = /* @__PURE__ */ b(qn, [["render", zn]]), Li = /* @__PURE__ */ Object.
|
|
|
1466
1474
|
}
|
|
1467
1475
|
}
|
|
1468
1476
|
});
|
|
1469
|
-
function
|
|
1470
|
-
return
|
|
1477
|
+
function Yn(e, t, n, o, r, i) {
|
|
1478
|
+
return c(), y(j(e.BlocksWrapper), C({
|
|
1471
1479
|
ref: "blocksWrapperRef",
|
|
1472
1480
|
class: e.className + " component-1k2igrjdg3x",
|
|
1473
1481
|
"builder-path": e.dataPath,
|
|
@@ -1477,15 +1485,15 @@ function Gn(e, t, n, o, r, i) {
|
|
|
1477
1485
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
1478
1486
|
onKeyPress: (s) => e.onClick()
|
|
1479
1487
|
}, { ...e.BlocksWrapperProps }), {
|
|
1480
|
-
default:
|
|
1481
|
-
|
|
1488
|
+
default: N(() => [
|
|
1489
|
+
A(e.$slots, "default", {}, void 0, !0)
|
|
1482
1490
|
]),
|
|
1483
1491
|
_: 3
|
|
1484
1492
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1485
1493
|
}
|
|
1486
|
-
const
|
|
1494
|
+
const Xn = /* @__PURE__ */ g(Jn, [["render", Yn], ["__scopeId", "data-v-ba2bc5c0"]]), Qn = b({
|
|
1487
1495
|
name: "builder-blocks",
|
|
1488
|
-
components: { BlocksWrapper:
|
|
1496
|
+
components: { BlocksWrapper: Xn, Block: ge },
|
|
1489
1497
|
props: [
|
|
1490
1498
|
"blocks",
|
|
1491
1499
|
"parent",
|
|
@@ -1498,51 +1506,51 @@ const Yn = /* @__PURE__ */ b(Jn, [["render", Gn], ["__scopeId", "data-v-ba2bc5c0
|
|
|
1498
1506
|
],
|
|
1499
1507
|
inject: {
|
|
1500
1508
|
builderContext: se.key,
|
|
1501
|
-
componentsContext:
|
|
1509
|
+
componentsContext: xe.key
|
|
1502
1510
|
}
|
|
1503
1511
|
});
|
|
1504
|
-
function
|
|
1505
|
-
var a, u,
|
|
1506
|
-
const s =
|
|
1507
|
-
return
|
|
1512
|
+
function Zn(e, t, n, o, r, i) {
|
|
1513
|
+
var a, u, m, h;
|
|
1514
|
+
const s = k("Block"), l = k("BlocksWrapper");
|
|
1515
|
+
return c(), y(l, {
|
|
1508
1516
|
blocks: e.blocks,
|
|
1509
1517
|
parent: e.parent,
|
|
1510
1518
|
path: e.path,
|
|
1511
1519
|
styleProp: e.styleProp,
|
|
1512
1520
|
classNameProp: e.className,
|
|
1513
1521
|
BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapper),
|
|
1514
|
-
BlocksWrapperProps: ((
|
|
1522
|
+
BlocksWrapperProps: ((m = e.context) == null ? void 0 : m.BlocksWrapperProps) || ((h = e.builderContext) == null ? void 0 : h.BlocksWrapperProps)
|
|
1515
1523
|
}, {
|
|
1516
|
-
default:
|
|
1517
|
-
e.blocks ? (
|
|
1518
|
-
var
|
|
1519
|
-
return
|
|
1520
|
-
key:
|
|
1521
|
-
block:
|
|
1524
|
+
default: N(() => [
|
|
1525
|
+
e.blocks ? (c(!0), p(T, { key: 0 }, V(e.blocks, (d, f) => {
|
|
1526
|
+
var S;
|
|
1527
|
+
return c(), y(s, {
|
|
1528
|
+
key: d.id,
|
|
1529
|
+
block: d,
|
|
1522
1530
|
linkComponent: e.linkComponent,
|
|
1523
1531
|
context: e.context || e.builderContext,
|
|
1524
|
-
registeredComponents: e.registeredComponents || ((
|
|
1532
|
+
registeredComponents: e.registeredComponents || ((S = e.componentsContext) == null ? void 0 : S.registeredComponents)
|
|
1525
1533
|
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
|
|
1526
|
-
}), 128)) :
|
|
1534
|
+
}), 128)) : v("", !0)
|
|
1527
1535
|
]),
|
|
1528
1536
|
_: 1
|
|
1529
1537
|
}, 8, ["blocks", "parent", "path", "styleProp", "classNameProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
1530
1538
|
}
|
|
1531
|
-
const
|
|
1539
|
+
const U = /* @__PURE__ */ g(Qn, [["render", Zn]]), _n = b({
|
|
1532
1540
|
name: "dynamic-div",
|
|
1533
1541
|
props: []
|
|
1534
1542
|
});
|
|
1535
|
-
function
|
|
1536
|
-
return
|
|
1537
|
-
|
|
1543
|
+
function eo(e, t, n, o, r, i) {
|
|
1544
|
+
return c(), p("div", null, [
|
|
1545
|
+
A(e.$slots, "default")
|
|
1538
1546
|
]);
|
|
1539
1547
|
}
|
|
1540
|
-
const
|
|
1548
|
+
const Y = /* @__PURE__ */ g(_n, [["render", eo]]), to = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1541
1549
|
__proto__: null,
|
|
1542
|
-
default:
|
|
1543
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1550
|
+
default: Y
|
|
1551
|
+
}, Symbol.toStringTag, { value: "Module" })), ye = b({
|
|
1544
1552
|
render() {
|
|
1545
|
-
return
|
|
1553
|
+
return Be("style", {
|
|
1546
1554
|
innerHTML: this.styles,
|
|
1547
1555
|
"data-id": this.id,
|
|
1548
1556
|
nonce: this.nonce
|
|
@@ -1550,7 +1558,7 @@ const G = /* @__PURE__ */ b(Zn, [["render", _n]]), eo = /* @__PURE__ */ Object.f
|
|
|
1550
1558
|
},
|
|
1551
1559
|
name: "inlined-styles",
|
|
1552
1560
|
props: ["styles", "id", "nonce"]
|
|
1553
|
-
}),
|
|
1561
|
+
}), st = {
|
|
1554
1562
|
small: {
|
|
1555
1563
|
min: 320,
|
|
1556
1564
|
default: 321,
|
|
@@ -1566,11 +1574,11 @@ const G = /* @__PURE__ */ b(Zn, [["render", _n]]), eo = /* @__PURE__ */ Object.f
|
|
|
1566
1574
|
default: 991,
|
|
1567
1575
|
max: 1200
|
|
1568
1576
|
}
|
|
1569
|
-
},
|
|
1577
|
+
}, Mi = (e, t = st) => `@media (max-width: ${t[e].max}px)`, no = ({
|
|
1570
1578
|
small: e,
|
|
1571
1579
|
medium: t
|
|
1572
1580
|
}) => {
|
|
1573
|
-
const n = ue(
|
|
1581
|
+
const n = ue(st);
|
|
1574
1582
|
if (!e || !t)
|
|
1575
1583
|
return n;
|
|
1576
1584
|
const o = Math.floor(e / 2);
|
|
@@ -1592,13 +1600,13 @@ const G = /* @__PURE__ */ b(Zn, [["render", _n]]), eo = /* @__PURE__ */ Object.f
|
|
|
1592
1600
|
min: i,
|
|
1593
1601
|
default: i + 1
|
|
1594
1602
|
}, n;
|
|
1595
|
-
},
|
|
1603
|
+
}, oo = (e) => `builder-columns ${e}-breakpoints`, ro = b({
|
|
1596
1604
|
name: "builder-columns",
|
|
1597
1605
|
components: {
|
|
1598
|
-
InlinedStyles:
|
|
1606
|
+
InlinedStyles: ye,
|
|
1599
1607
|
DynamicRenderer: de,
|
|
1600
|
-
Blocks:
|
|
1601
|
-
DynamicDiv:
|
|
1608
|
+
Blocks: U,
|
|
1609
|
+
DynamicDiv: Y
|
|
1602
1610
|
},
|
|
1603
1611
|
props: [
|
|
1604
1612
|
"space",
|
|
@@ -1611,7 +1619,7 @@ const G = /* @__PURE__ */ b(Zn, [["render", _n]]), eo = /* @__PURE__ */ Object.f
|
|
|
1611
1619
|
"builderComponents"
|
|
1612
1620
|
],
|
|
1613
1621
|
data() {
|
|
1614
|
-
return { TARGET:
|
|
1622
|
+
return { TARGET: P, getColumnsClass: oo };
|
|
1615
1623
|
},
|
|
1616
1624
|
computed: {
|
|
1617
1625
|
gutterSize() {
|
|
@@ -1690,7 +1698,7 @@ const G = /* @__PURE__ */ b(Zn, [["render", _n]]), eo = /* @__PURE__ */ Object.f
|
|
|
1690
1698
|
},
|
|
1691
1699
|
getWidthForBreakpointSize(e) {
|
|
1692
1700
|
var n, o;
|
|
1693
|
-
return
|
|
1701
|
+
return no(
|
|
1694
1702
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1695
1703
|
)[e].max;
|
|
1696
1704
|
},
|
|
@@ -1728,33 +1736,33 @@ const G = /* @__PURE__ */ b(Zn, [["render", _n]]), eo = /* @__PURE__ */ Object.f
|
|
|
1728
1736
|
href: e.link
|
|
1729
1737
|
} : {},
|
|
1730
1738
|
[Z()]: "builder-column",
|
|
1731
|
-
style:
|
|
1739
|
+
style: it(this.columnCssVars(t))
|
|
1732
1740
|
};
|
|
1733
1741
|
}
|
|
1734
1742
|
}
|
|
1735
1743
|
});
|
|
1736
|
-
function
|
|
1744
|
+
function io(e, t, n, o, r, i) {
|
|
1737
1745
|
var u;
|
|
1738
|
-
const s =
|
|
1739
|
-
return
|
|
1746
|
+
const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1747
|
+
return c(), p("div", C({
|
|
1740
1748
|
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-4wbls88y960",
|
|
1741
1749
|
style: e.columnsCssVars()
|
|
1742
1750
|
}, {}), [
|
|
1743
|
-
e.TARGET !== "reactNative" ? (
|
|
1751
|
+
e.TARGET !== "reactNative" ? (c(), y(s, {
|
|
1744
1752
|
key: 0,
|
|
1745
1753
|
id: "builderio-columns",
|
|
1746
1754
|
styles: e.columnsStyles(),
|
|
1747
1755
|
nonce: e.builderContext.nonce
|
|
1748
|
-
}, null, 8, ["styles", "nonce"])) :
|
|
1749
|
-
(
|
|
1750
|
-
key:
|
|
1751
|
-
TagName: e.getTagName(
|
|
1756
|
+
}, null, 8, ["styles", "nonce"])) : v("", !0),
|
|
1757
|
+
(c(!0), p(T, null, V(e.columns, (m, h) => (c(), y(a, {
|
|
1758
|
+
key: h,
|
|
1759
|
+
TagName: e.getTagName(m),
|
|
1752
1760
|
actionAttributes: {},
|
|
1753
|
-
attributes: e.getAttributes(
|
|
1761
|
+
attributes: e.getAttributes(m, h)
|
|
1754
1762
|
}, {
|
|
1755
|
-
default:
|
|
1756
|
-
|
|
1757
|
-
path: `columns.${
|
|
1763
|
+
default: N(() => [
|
|
1764
|
+
R(l, {
|
|
1765
|
+
path: `columns.${h}.blocks`,
|
|
1758
1766
|
parent: e.builderBlock.id,
|
|
1759
1767
|
styleProp: {
|
|
1760
1768
|
flexGrow: "1"
|
|
@@ -1762,39 +1770,39 @@ function ro(e, t, n, o, r, i) {
|
|
|
1762
1770
|
context: e.builderContext,
|
|
1763
1771
|
registeredComponents: e.builderComponents,
|
|
1764
1772
|
linkComponent: e.builderLinkComponent,
|
|
1765
|
-
blocks:
|
|
1773
|
+
blocks: m.blocks
|
|
1766
1774
|
}, null, 8, ["path", "parent", "context", "registeredComponents", "linkComponent", "blocks"])
|
|
1767
1775
|
]),
|
|
1768
1776
|
_: 2
|
|
1769
1777
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1770
1778
|
], 16);
|
|
1771
1779
|
}
|
|
1772
|
-
const
|
|
1780
|
+
const so = /* @__PURE__ */ g(ro, [["render", io], ["__scopeId", "data-v-3354f136"]]), ao = b({
|
|
1773
1781
|
name: "builder-fragment-component",
|
|
1774
1782
|
props: []
|
|
1775
1783
|
});
|
|
1776
|
-
function
|
|
1777
|
-
return
|
|
1778
|
-
|
|
1784
|
+
function lo(e, t, n, o, r, i) {
|
|
1785
|
+
return c(), p("span", null, [
|
|
1786
|
+
A(e.$slots, "default")
|
|
1779
1787
|
]);
|
|
1780
1788
|
}
|
|
1781
|
-
const
|
|
1782
|
-
function
|
|
1789
|
+
const co = /* @__PURE__ */ g(ao, [["render", lo]]);
|
|
1790
|
+
function $e(e) {
|
|
1783
1791
|
return e.replace(/http(s)?:/, "");
|
|
1784
1792
|
}
|
|
1785
|
-
function
|
|
1793
|
+
function uo(e = "", t, n) {
|
|
1786
1794
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1787
1795
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1788
1796
|
}
|
|
1789
|
-
function
|
|
1797
|
+
function po(e, t) {
|
|
1790
1798
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1791
1799
|
return e;
|
|
1792
1800
|
if (t === "master")
|
|
1793
|
-
return
|
|
1801
|
+
return $e(e);
|
|
1794
1802
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1795
1803
|
if (n) {
|
|
1796
1804
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
1797
|
-
return
|
|
1805
|
+
return $e(`${o[0]}_${i}${r}`);
|
|
1798
1806
|
}
|
|
1799
1807
|
return null;
|
|
1800
1808
|
}
|
|
@@ -1805,11 +1813,11 @@ function te(e) {
|
|
|
1805
1813
|
if (e.match(/builder\.io/)) {
|
|
1806
1814
|
let n = e;
|
|
1807
1815
|
const o = Number(e.split("?width=")[1]);
|
|
1808
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
1816
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${uo(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1809
1817
|
}
|
|
1810
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1818
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [po(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1811
1819
|
}
|
|
1812
|
-
const
|
|
1820
|
+
const mo = b({
|
|
1813
1821
|
name: "builder-image",
|
|
1814
1822
|
props: [
|
|
1815
1823
|
"image",
|
|
@@ -1860,20 +1868,20 @@ const po = f({
|
|
|
1860
1868
|
return this.aspectRatio ? e : void 0;
|
|
1861
1869
|
}
|
|
1862
1870
|
}
|
|
1863
|
-
}),
|
|
1871
|
+
}), ho = ["srcset"], fo = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], bo = {
|
|
1864
1872
|
key: 2,
|
|
1865
1873
|
class: "div-29wpyomtntv-2"
|
|
1866
1874
|
};
|
|
1867
|
-
function
|
|
1868
|
-
var s, l, a, u,
|
|
1869
|
-
return
|
|
1870
|
-
|
|
1871
|
-
e.webpSrcSet ? (
|
|
1875
|
+
function go(e, t, n, o, r, i) {
|
|
1876
|
+
var s, l, a, u, m, h;
|
|
1877
|
+
return c(), p(T, null, [
|
|
1878
|
+
q("picture", null, [
|
|
1879
|
+
e.webpSrcSet ? (c(), p("source", {
|
|
1872
1880
|
key: 0,
|
|
1873
1881
|
type: "image/webp",
|
|
1874
1882
|
srcset: e.webpSrcSet
|
|
1875
|
-
}, null, 8,
|
|
1876
|
-
|
|
1883
|
+
}, null, 8, ho)) : v("", !0),
|
|
1884
|
+
q("img", {
|
|
1877
1885
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1878
1886
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
1879
1887
|
alt: e.altText,
|
|
@@ -1883,36 +1891,36 @@ function bo(e, t, n, o, r, i) {
|
|
|
1883
1891
|
objectFit: e.backgroundSize || "cover",
|
|
1884
1892
|
...e.aspectRatioCss
|
|
1885
1893
|
}),
|
|
1886
|
-
class:
|
|
1894
|
+
class: z(
|
|
1887
1895
|
"builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
|
|
1888
1896
|
),
|
|
1889
1897
|
src: e.image,
|
|
1890
1898
|
srcset: e.srcSetToUse,
|
|
1891
1899
|
sizes: e.sizes
|
|
1892
|
-
}, null, 14,
|
|
1900
|
+
}, null, 14, fo)
|
|
1893
1901
|
]),
|
|
1894
|
-
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (
|
|
1902
|
+
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (c(), p("div", {
|
|
1895
1903
|
key: 0,
|
|
1896
1904
|
class: "builder-image-sizer div-29wpyomtntv",
|
|
1897
1905
|
style: F({
|
|
1898
1906
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1899
1907
|
})
|
|
1900
|
-
}, null, 4)) :
|
|
1901
|
-
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ?
|
|
1902
|
-
!e.fitContent && ((
|
|
1903
|
-
|
|
1904
|
-
])) :
|
|
1908
|
+
}, null, 4)) : v("", !0),
|
|
1909
|
+
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? A(e.$slots, "default", { key: 1 }, void 0, !0) : v("", !0),
|
|
1910
|
+
!e.fitContent && ((h = (m = e.builderBlock) == null ? void 0 : m.children) != null && h.length) ? (c(), p("div", bo, [
|
|
1911
|
+
A(e.$slots, "default", {}, void 0, !0)
|
|
1912
|
+
])) : v("", !0)
|
|
1905
1913
|
], 64);
|
|
1906
1914
|
}
|
|
1907
|
-
const
|
|
1915
|
+
const yo = /* @__PURE__ */ g(mo, [["render", go], ["__scopeId", "data-v-77f8a6c4"]]), ko = b({
|
|
1908
1916
|
name: "builder-section-component",
|
|
1909
1917
|
props: ["attributes", "maxWidth"],
|
|
1910
1918
|
data() {
|
|
1911
|
-
return { filterAttrs:
|
|
1919
|
+
return { filterAttrs: W };
|
|
1912
1920
|
}
|
|
1913
1921
|
});
|
|
1914
|
-
function
|
|
1915
|
-
return
|
|
1922
|
+
function vo(e, t, n, o, r, i) {
|
|
1923
|
+
return c(), p("section", C({
|
|
1916
1924
|
style: {
|
|
1917
1925
|
width: "100%",
|
|
1918
1926
|
alignSelf: "stretch",
|
|
@@ -1925,11 +1933,11 @@ function ko(e, t, n, o, r, i) {
|
|
|
1925
1933
|
marginLeft: "auto",
|
|
1926
1934
|
marginRight: "auto"
|
|
1927
1935
|
}
|
|
1928
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1929
|
-
|
|
1936
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1937
|
+
A(e.$slots, "default")
|
|
1930
1938
|
], 16);
|
|
1931
1939
|
}
|
|
1932
|
-
const
|
|
1940
|
+
const So = /* @__PURE__ */ g(ko, [["render", vo]]), ne = {
|
|
1933
1941
|
"@type": "@builder.io/sdk:Element",
|
|
1934
1942
|
layerName: "Accordion item title",
|
|
1935
1943
|
responsiveStyles: {
|
|
@@ -1989,7 +1997,7 @@ const vo = /* @__PURE__ */ b(yo, [["render", ko]]), ne = {
|
|
|
1989
1997
|
}
|
|
1990
1998
|
}
|
|
1991
1999
|
}]
|
|
1992
|
-
},
|
|
2000
|
+
}, Co = {
|
|
1993
2001
|
name: "Builder:Accordion",
|
|
1994
2002
|
canHaveChildren: !0,
|
|
1995
2003
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2053,9 +2061,9 @@ const vo = /* @__PURE__ */ b(yo, [["render", ko]]), ne = {
|
|
|
2053
2061
|
builderComponents: !0,
|
|
2054
2062
|
builderLinkComponent: !0
|
|
2055
2063
|
}
|
|
2056
|
-
},
|
|
2064
|
+
}, wo = (e) => e.toString(), To = b({
|
|
2057
2065
|
name: "builder-accordion",
|
|
2058
|
-
components: { Blocks:
|
|
2066
|
+
components: { Blocks: U },
|
|
2059
2067
|
props: [
|
|
2060
2068
|
"grid",
|
|
2061
2069
|
"oneAtATime",
|
|
@@ -2067,7 +2075,7 @@ const vo = /* @__PURE__ */ b(yo, [["render", ko]]), ne = {
|
|
|
2067
2075
|
"builderLinkComponent"
|
|
2068
2076
|
],
|
|
2069
2077
|
data() {
|
|
2070
|
-
return { open: [], convertOrderNumberToString:
|
|
2078
|
+
return { open: [], convertOrderNumberToString: wo };
|
|
2071
2079
|
},
|
|
2072
2080
|
computed: {
|
|
2073
2081
|
onlyOneAtATime() {
|
|
@@ -2148,16 +2156,16 @@ const vo = /* @__PURE__ */ b(yo, [["render", ko]]), ne = {
|
|
|
2148
2156
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2149
2157
|
}
|
|
2150
2158
|
}
|
|
2151
|
-
}),
|
|
2152
|
-
function
|
|
2153
|
-
const s =
|
|
2154
|
-
return
|
|
2159
|
+
}), Io = ["data-index", "onClick"];
|
|
2160
|
+
function $o(e, t, n, o, r, i) {
|
|
2161
|
+
const s = k("Blocks");
|
|
2162
|
+
return c(), p("div", {
|
|
2155
2163
|
class: "builder-accordion",
|
|
2156
2164
|
style: F(e.accordionStyles)
|
|
2157
2165
|
}, [
|
|
2158
|
-
(
|
|
2159
|
-
|
|
2160
|
-
class:
|
|
2166
|
+
(c(!0), p(T, null, V(e.items, (l, a) => (c(), p(T, { key: a }, [
|
|
2167
|
+
q("div", {
|
|
2168
|
+
class: z(e.getAccordionTitleClassName(a)),
|
|
2161
2169
|
style: F({
|
|
2162
2170
|
...e.accordionTitleStyles,
|
|
2163
2171
|
...e.grid && {
|
|
@@ -2168,7 +2176,7 @@ function Io(e, t, n, o, r, i) {
|
|
|
2168
2176
|
"data-index": a,
|
|
2169
2177
|
onClick: (u) => e.onClick(a)
|
|
2170
2178
|
}, [
|
|
2171
|
-
|
|
2179
|
+
R(s, {
|
|
2172
2180
|
blocks: l.title,
|
|
2173
2181
|
path: `items.${a}.title`,
|
|
2174
2182
|
parent: e.builderBlock.id,
|
|
@@ -2176,13 +2184,13 @@ function Io(e, t, n, o, r, i) {
|
|
|
2176
2184
|
registeredComponents: e.builderComponents,
|
|
2177
2185
|
linkComponent: e.builderLinkComponent
|
|
2178
2186
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2179
|
-
], 14,
|
|
2180
|
-
e.open.includes(a) ? (
|
|
2187
|
+
], 14, Io),
|
|
2188
|
+
e.open.includes(a) ? (c(), p("div", {
|
|
2181
2189
|
key: 0,
|
|
2182
|
-
class:
|
|
2190
|
+
class: z(e.getAccordionDetailClassName(a)),
|
|
2183
2191
|
style: F(e.accordionDetailStyles)
|
|
2184
2192
|
}, [
|
|
2185
|
-
|
|
2193
|
+
R(s, {
|
|
2186
2194
|
blocks: l.detail,
|
|
2187
2195
|
path: `items.${a}.detail`,
|
|
2188
2196
|
parent: e.builderBlock.id,
|
|
@@ -2190,11 +2198,11 @@ function Io(e, t, n, o, r, i) {
|
|
|
2190
2198
|
registeredComponents: e.builderComponents,
|
|
2191
2199
|
linkComponent: e.builderLinkComponent
|
|
2192
2200
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2193
|
-
], 6)) :
|
|
2201
|
+
], 6)) : v("", !0)
|
|
2194
2202
|
], 64))), 128))
|
|
2195
2203
|
], 4);
|
|
2196
2204
|
}
|
|
2197
|
-
const
|
|
2205
|
+
const Ro = /* @__PURE__ */ g(To, [["render", $o]]), Eo = {
|
|
2198
2206
|
name: "Core:Button",
|
|
2199
2207
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2200
2208
|
defaultStyles: {
|
|
@@ -2230,7 +2238,7 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2230
2238
|
shouldReceiveBuilderProps: {
|
|
2231
2239
|
builderLinkComponent: !0
|
|
2232
2240
|
}
|
|
2233
|
-
},
|
|
2241
|
+
}, Po = {
|
|
2234
2242
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2235
2243
|
name: "Columns",
|
|
2236
2244
|
isRSC: !0,
|
|
@@ -2437,13 +2445,13 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2437
2445
|
builderComponents: !0,
|
|
2438
2446
|
builderLinkComponent: !0
|
|
2439
2447
|
}
|
|
2440
|
-
},
|
|
2448
|
+
}, Bo = {
|
|
2441
2449
|
name: "Fragment",
|
|
2442
2450
|
static: !0,
|
|
2443
2451
|
hidden: !0,
|
|
2444
2452
|
canHaveChildren: !0,
|
|
2445
2453
|
noWrap: !0
|
|
2446
|
-
},
|
|
2454
|
+
}, xo = {
|
|
2447
2455
|
name: "Image",
|
|
2448
2456
|
static: !0,
|
|
2449
2457
|
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",
|
|
@@ -2465,14 +2473,14 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2465
2473
|
e.delete("srcset"), e.delete("noWebp");
|
|
2466
2474
|
function n(s, l = 6e4) {
|
|
2467
2475
|
return new Promise((a, u) => {
|
|
2468
|
-
const
|
|
2469
|
-
let
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
},
|
|
2473
|
-
console.warn("Image load failed",
|
|
2474
|
-
}),
|
|
2475
|
-
|
|
2476
|
+
const m = document.createElement("img");
|
|
2477
|
+
let h = !1;
|
|
2478
|
+
m.onload = () => {
|
|
2479
|
+
h = !0, a(m);
|
|
2480
|
+
}, m.addEventListener("error", (d) => {
|
|
2481
|
+
console.warn("Image load failed", d.error), u(d.error);
|
|
2482
|
+
}), m.src = s, setTimeout(() => {
|
|
2483
|
+
h || u(new Error("Image load timed out"));
|
|
2476
2484
|
}, l);
|
|
2477
2485
|
});
|
|
2478
2486
|
}
|
|
@@ -2551,7 +2559,7 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2551
2559
|
shouldReceiveBuilderProps: {
|
|
2552
2560
|
builderBlock: !0
|
|
2553
2561
|
}
|
|
2554
|
-
},
|
|
2562
|
+
}, Ao = {
|
|
2555
2563
|
name: "Core:Section",
|
|
2556
2564
|
static: !0,
|
|
2557
2565
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2590,7 +2598,7 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2590
2598
|
}
|
|
2591
2599
|
}
|
|
2592
2600
|
}]
|
|
2593
|
-
},
|
|
2601
|
+
}, Vo = {
|
|
2594
2602
|
name: "Slot",
|
|
2595
2603
|
isRSC: !0,
|
|
2596
2604
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2607,15 +2615,15 @@ const $o = /* @__PURE__ */ b(wo, [["render", Io]]), Ro = {
|
|
|
2607
2615
|
builderContext: !0,
|
|
2608
2616
|
builderComponents: !0
|
|
2609
2617
|
}
|
|
2610
|
-
},
|
|
2618
|
+
}, Wo = b({
|
|
2611
2619
|
name: "builder-slot",
|
|
2612
|
-
components: { Blocks:
|
|
2620
|
+
components: { Blocks: U },
|
|
2613
2621
|
props: ["builderContext", "name", "builderComponents"]
|
|
2614
2622
|
});
|
|
2615
|
-
function
|
|
2623
|
+
function No(e, t, n, o, r, i) {
|
|
2616
2624
|
var l, a, u;
|
|
2617
|
-
const s =
|
|
2618
|
-
return
|
|
2625
|
+
const s = k("Blocks");
|
|
2626
|
+
return c(), p("div", C(
|
|
2619
2627
|
{ style: {
|
|
2620
2628
|
pointerEvents: "auto"
|
|
2621
2629
|
} },
|
|
@@ -2623,7 +2631,7 @@ function Wo(e, t, n, o, r, i) {
|
|
|
2623
2631
|
"builder-slot": e.name
|
|
2624
2632
|
}
|
|
2625
2633
|
), [
|
|
2626
|
-
|
|
2634
|
+
R(s, {
|
|
2627
2635
|
parent: (a = e.builderContext.context) == null ? void 0 : a.symbolId,
|
|
2628
2636
|
path: `symbol.data.${e.name}`,
|
|
2629
2637
|
context: e.builderContext,
|
|
@@ -2632,7 +2640,7 @@ function Wo(e, t, n, o, r, i) {
|
|
|
2632
2640
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
2633
2641
|
], 16);
|
|
2634
2642
|
}
|
|
2635
|
-
const
|
|
2643
|
+
const Oo = /* @__PURE__ */ g(Wo, [["render", No]]), Fo = {
|
|
2636
2644
|
name: "Symbol",
|
|
2637
2645
|
noWrap: !0,
|
|
2638
2646
|
static: !0,
|
|
@@ -2709,7 +2717,7 @@ const No = /* @__PURE__ */ b(Vo, [["render", Wo]]), Oo = {
|
|
|
2709
2717
|
text: "New tab content "
|
|
2710
2718
|
}
|
|
2711
2719
|
}
|
|
2712
|
-
},
|
|
2720
|
+
}, Do = {
|
|
2713
2721
|
name: "Builder: Tabs",
|
|
2714
2722
|
inputs: [{
|
|
2715
2723
|
name: "tabs",
|
|
@@ -2812,9 +2820,9 @@ const No = /* @__PURE__ */ b(Vo, [["render", Wo]]), Oo = {
|
|
|
2812
2820
|
builderComponents: !0,
|
|
2813
2821
|
builderLinkComponent: !0
|
|
2814
2822
|
}
|
|
2815
|
-
},
|
|
2823
|
+
}, Lo = b({
|
|
2816
2824
|
name: "builder-tabs",
|
|
2817
|
-
components: { Blocks:
|
|
2825
|
+
components: { Blocks: U },
|
|
2818
2826
|
props: [
|
|
2819
2827
|
"defaultActiveTab",
|
|
2820
2828
|
"tabs",
|
|
@@ -2837,11 +2845,11 @@ const No = /* @__PURE__ */ b(Vo, [["render", Wo]]), Oo = {
|
|
|
2837
2845
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
2838
2846
|
}
|
|
2839
2847
|
}
|
|
2840
|
-
}),
|
|
2841
|
-
function
|
|
2842
|
-
const s =
|
|
2843
|
-
return
|
|
2844
|
-
|
|
2848
|
+
}), Uo = ["onClick"], Mo = { key: 0 };
|
|
2849
|
+
function Ho(e, t, n, o, r, i) {
|
|
2850
|
+
const s = k("Blocks");
|
|
2851
|
+
return c(), p("div", null, [
|
|
2852
|
+
q("div", {
|
|
2845
2853
|
class: "builder-tabs-wrap",
|
|
2846
2854
|
style: F({
|
|
2847
2855
|
display: "flex",
|
|
@@ -2850,15 +2858,15 @@ function Mo(e, t, n, o, r, i) {
|
|
|
2850
2858
|
overflow: "auto"
|
|
2851
2859
|
})
|
|
2852
2860
|
}, [
|
|
2853
|
-
(
|
|
2861
|
+
(c(!0), p(T, null, V(e.tabs, (l, a) => (c(), p("span", {
|
|
2854
2862
|
key: a,
|
|
2855
|
-
class:
|
|
2863
|
+
class: z(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
2856
2864
|
style: F({
|
|
2857
2865
|
...e.activeTab === a ? e.activeTabStyle : {}
|
|
2858
2866
|
}),
|
|
2859
2867
|
onClick: (u) => e.onClick(a)
|
|
2860
2868
|
}, [
|
|
2861
|
-
|
|
2869
|
+
R(s, {
|
|
2862
2870
|
parent: e.builderBlock.id,
|
|
2863
2871
|
path: `tabs.${a}.label`,
|
|
2864
2872
|
blocks: l.label,
|
|
@@ -2866,10 +2874,10 @@ function Mo(e, t, n, o, r, i) {
|
|
|
2866
2874
|
registeredComponents: e.builderComponents,
|
|
2867
2875
|
linkComponent: e.builderLinkComponent
|
|
2868
2876
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2869
|
-
], 14,
|
|
2877
|
+
], 14, Uo))), 128))
|
|
2870
2878
|
], 4),
|
|
2871
|
-
e.activeTabContent(e.activeTab) ? (
|
|
2872
|
-
|
|
2879
|
+
e.activeTabContent(e.activeTab) ? (c(), p("div", Mo, [
|
|
2880
|
+
R(s, {
|
|
2873
2881
|
parent: e.builderBlock.id,
|
|
2874
2882
|
path: `tabs.${e.activeTab}.content`,
|
|
2875
2883
|
blocks: e.activeTabContent(e.activeTab),
|
|
@@ -2877,10 +2885,10 @@ function Mo(e, t, n, o, r, i) {
|
|
|
2877
2885
|
registeredComponents: e.builderComponents,
|
|
2878
2886
|
linkComponent: e.builderLinkComponent
|
|
2879
2887
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2880
|
-
])) :
|
|
2888
|
+
])) : v("", !0)
|
|
2881
2889
|
]);
|
|
2882
2890
|
}
|
|
2883
|
-
const
|
|
2891
|
+
const jo = /* @__PURE__ */ g(Lo, [["render", Ho]]), Ko = {
|
|
2884
2892
|
shouldReceiveBuilderProps: {
|
|
2885
2893
|
builderBlock: !1,
|
|
2886
2894
|
builderContext: !0
|
|
@@ -2902,7 +2910,7 @@ const Ho = /* @__PURE__ */ b(Do, [["render", Mo]]), jo = {
|
|
|
2902
2910
|
height: "auto",
|
|
2903
2911
|
textAlign: "center"
|
|
2904
2912
|
}
|
|
2905
|
-
},
|
|
2913
|
+
}, qo = b({
|
|
2906
2914
|
name: "builder-text",
|
|
2907
2915
|
props: ["builderContext", "text"],
|
|
2908
2916
|
computed: {
|
|
@@ -2926,17 +2934,17 @@ const Ho = /* @__PURE__ */ b(Do, [["render", Mo]]), jo = {
|
|
|
2926
2934
|
);
|
|
2927
2935
|
}
|
|
2928
2936
|
}
|
|
2929
|
-
}),
|
|
2930
|
-
function
|
|
2931
|
-
return
|
|
2937
|
+
}), zo = ["innerHTML"];
|
|
2938
|
+
function Go(e, t, n, o, r, i) {
|
|
2939
|
+
return c(), p("div", {
|
|
2932
2940
|
class: "builder-text",
|
|
2933
2941
|
innerHTML: e.processedText,
|
|
2934
2942
|
style: {
|
|
2935
2943
|
outline: "none"
|
|
2936
2944
|
}
|
|
2937
|
-
}, null, 8,
|
|
2945
|
+
}, null, 8, zo);
|
|
2938
2946
|
}
|
|
2939
|
-
const Jo = /* @__PURE__ */
|
|
2947
|
+
const Jo = /* @__PURE__ */ g(qo, [["render", Go]]), Yo = {
|
|
2940
2948
|
name: "Custom Code",
|
|
2941
2949
|
static: !0,
|
|
2942
2950
|
requiredPermissions: ["editCode"],
|
|
@@ -2958,7 +2966,7 @@ const Jo = /* @__PURE__ */ b(Ko, [["render", zo]]), Go = {
|
|
|
2958
2966
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
2959
2967
|
advanced: !0
|
|
2960
2968
|
}]
|
|
2961
|
-
},
|
|
2969
|
+
}, Xo = b({
|
|
2962
2970
|
name: "builder-custom-code",
|
|
2963
2971
|
props: ["replaceNodes", "code"],
|
|
2964
2972
|
data() {
|
|
@@ -2992,15 +3000,15 @@ const Jo = /* @__PURE__ */ b(Ko, [["render", zo]]), Go = {
|
|
|
2992
3000
|
}
|
|
2993
3001
|
}
|
|
2994
3002
|
}
|
|
2995
|
-
}),
|
|
2996
|
-
function
|
|
2997
|
-
return
|
|
3003
|
+
}), Qo = ["innerHTML"];
|
|
3004
|
+
function Zo(e, t, n, o, r, i) {
|
|
3005
|
+
return c(), p("div", {
|
|
2998
3006
|
ref: "elementRef",
|
|
2999
|
-
class:
|
|
3007
|
+
class: z("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3000
3008
|
innerHTML: e.code
|
|
3001
|
-
}, null, 10,
|
|
3009
|
+
}, null, 10, Qo);
|
|
3002
3010
|
}
|
|
3003
|
-
const
|
|
3011
|
+
const _o = /* @__PURE__ */ g(Xo, [["render", Zo]]), er = {
|
|
3004
3012
|
name: "Embed",
|
|
3005
3013
|
static: !0,
|
|
3006
3014
|
inputs: [{
|
|
@@ -3015,7 +3023,7 @@ const Zo = /* @__PURE__ */ b(Yo, [["render", Qo]]), _o = {
|
|
|
3015
3023
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3016
3024
|
hideFromUI: !0
|
|
3017
3025
|
}]
|
|
3018
|
-
},
|
|
3026
|
+
}, tr = ["text/javascript", "application/javascript", "application/ecmascript"], nr = (e) => tr.includes(e.type), or = b({
|
|
3019
3027
|
name: "builder-embed",
|
|
3020
3028
|
props: ["content"],
|
|
3021
3029
|
data() {
|
|
@@ -3048,7 +3056,7 @@ const Zo = /* @__PURE__ */ b(Yo, [["render", Qo]]), _o = {
|
|
|
3048
3056
|
this.scriptsInserted.push(n.src);
|
|
3049
3057
|
const o = document.createElement("script");
|
|
3050
3058
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3051
|
-
} else if (
|
|
3059
|
+
} else if (nr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3052
3060
|
try {
|
|
3053
3061
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3054
3062
|
} catch (o) {
|
|
@@ -3057,15 +3065,15 @@ const Zo = /* @__PURE__ */ b(Yo, [["render", Qo]]), _o = {
|
|
|
3057
3065
|
}
|
|
3058
3066
|
}
|
|
3059
3067
|
}
|
|
3060
|
-
}),
|
|
3061
|
-
function
|
|
3062
|
-
return
|
|
3068
|
+
}), rr = ["innerHTML"];
|
|
3069
|
+
function ir(e, t, n, o, r, i) {
|
|
3070
|
+
return c(), p("div", {
|
|
3063
3071
|
class: "builder-embed",
|
|
3064
3072
|
ref: "elem",
|
|
3065
3073
|
innerHTML: e.content
|
|
3066
|
-
}, null, 8,
|
|
3074
|
+
}, null, 8, rr);
|
|
3067
3075
|
}
|
|
3068
|
-
const
|
|
3076
|
+
const sr = /* @__PURE__ */ g(or, [["render", ir]]), ar = {
|
|
3069
3077
|
name: "Form:Form",
|
|
3070
3078
|
// editableTags: ['builder-form-error']
|
|
3071
3079
|
defaults: {
|
|
@@ -3302,12 +3310,12 @@ const ir = /* @__PURE__ */ b(nr, [["render", rr]]), sr = {
|
|
|
3302
3310
|
builderComponents: !0,
|
|
3303
3311
|
builderLinkComponent: !0
|
|
3304
3312
|
}
|
|
3305
|
-
},
|
|
3313
|
+
}, lr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], cr = () => {
|
|
3306
3314
|
const e = process.env.NODE_ENV || "production";
|
|
3307
|
-
return
|
|
3308
|
-
},
|
|
3315
|
+
return lr.includes(e) ? e : "production";
|
|
3316
|
+
}, dr = b({
|
|
3309
3317
|
name: "builder-form-component",
|
|
3310
|
-
components: { Block:
|
|
3318
|
+
components: { Block: ge, Blocks: U },
|
|
3311
3319
|
props: [
|
|
3312
3320
|
"builderContext",
|
|
3313
3321
|
"previewState",
|
|
@@ -3336,7 +3344,7 @@ const ir = /* @__PURE__ */ b(nr, [["render", rr]]), sr = {
|
|
|
3336
3344
|
formState: "unsubmitted",
|
|
3337
3345
|
responseData: null,
|
|
3338
3346
|
formErrorMessage: "",
|
|
3339
|
-
filterAttrs:
|
|
3347
|
+
filterAttrs: W
|
|
3340
3348
|
};
|
|
3341
3349
|
},
|
|
3342
3350
|
methods: {
|
|
@@ -3349,7 +3357,7 @@ const ir = /* @__PURE__ */ b(nr, [["render", rr]]), sr = {
|
|
|
3349
3357
|
this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
|
|
3350
3358
|
},
|
|
3351
3359
|
submissionState() {
|
|
3352
|
-
return
|
|
3360
|
+
return B() && this.previewState || this.formState;
|
|
3353
3361
|
},
|
|
3354
3362
|
onSubmit(e) {
|
|
3355
3363
|
var n;
|
|
@@ -3364,40 +3372,40 @@ const ir = /* @__PURE__ */ b(nr, [["render", rr]]), sr = {
|
|
|
3364
3372
|
e.preventDefault();
|
|
3365
3373
|
const o = e.currentTarget || e.target, r = this.customHeaders || {};
|
|
3366
3374
|
let i;
|
|
3367
|
-
const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((
|
|
3368
|
-
let
|
|
3369
|
-
const
|
|
3370
|
-
if (
|
|
3371
|
-
if (
|
|
3372
|
-
if (
|
|
3373
|
-
return
|
|
3374
|
-
key:
|
|
3375
|
-
value:
|
|
3375
|
+
const s = new FormData(o), l = Array.from(o.querySelectorAll("input,select,textarea")).filter((d) => !!d.name).map((d) => {
|
|
3376
|
+
let f;
|
|
3377
|
+
const S = d.name;
|
|
3378
|
+
if (d instanceof HTMLInputElement)
|
|
3379
|
+
if (d.type === "radio") {
|
|
3380
|
+
if (d.checked)
|
|
3381
|
+
return f = d.name, {
|
|
3382
|
+
key: S,
|
|
3383
|
+
value: f
|
|
3376
3384
|
};
|
|
3377
|
-
} else if (
|
|
3378
|
-
|
|
3379
|
-
else if (
|
|
3380
|
-
const
|
|
3381
|
-
isNaN(
|
|
3385
|
+
} else if (d.type === "checkbox")
|
|
3386
|
+
f = d.checked;
|
|
3387
|
+
else if (d.type === "number" || d.type === "range") {
|
|
3388
|
+
const w = d.valueAsNumber;
|
|
3389
|
+
isNaN(w) || (f = w);
|
|
3382
3390
|
} else
|
|
3383
|
-
|
|
3391
|
+
d.type === "file" ? f = d.files : f = d.value;
|
|
3384
3392
|
else
|
|
3385
|
-
|
|
3393
|
+
f = d.value;
|
|
3386
3394
|
return {
|
|
3387
|
-
key:
|
|
3388
|
-
value:
|
|
3395
|
+
key: S,
|
|
3396
|
+
value: f
|
|
3389
3397
|
};
|
|
3390
3398
|
});
|
|
3391
3399
|
let a = this.contentType;
|
|
3392
|
-
if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value:
|
|
3393
|
-
(
|
|
3400
|
+
if (this.sendSubmissionsTo === "email" && (a = "multipart/form-data"), Array.from(l).forEach(({ value: d }) => {
|
|
3401
|
+
(d instanceof File || Array.isArray(d) && d[0] instanceof File || d instanceof FileList) && (a = "multipart/form-data");
|
|
3394
3402
|
}), a !== "application/json")
|
|
3395
3403
|
i = s;
|
|
3396
3404
|
else {
|
|
3397
|
-
const
|
|
3398
|
-
Array.from(l).forEach(({ value:
|
|
3399
|
-
|
|
3400
|
-
}), i = JSON.stringify(
|
|
3405
|
+
const d = {};
|
|
3406
|
+
Array.from(l).forEach(({ value: f, key: S }) => {
|
|
3407
|
+
Fe(d, S, f);
|
|
3408
|
+
}), i = JSON.stringify(d);
|
|
3401
3409
|
}
|
|
3402
3410
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
3403
3411
|
const u = new CustomEvent("presubmit", {
|
|
@@ -3408,106 +3416,103 @@ const ir = /* @__PURE__ */ b(nr, [["render", rr]]), sr = {
|
|
|
3408
3416
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
|
|
3409
3417
|
return;
|
|
3410
3418
|
this.formState = "sending";
|
|
3411
|
-
const
|
|
3419
|
+
const m = `${cr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3412
3420
|
this.sendSubmissionsToEmail || ""
|
|
3413
|
-
)}&name=${encodeURIComponent(this.name || "")}
|
|
3414
|
-
fetch(
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
let g = xe(p, this.errorMessagePath);
|
|
3427
|
-
g && (typeof g != "string" && (g = JSON.stringify(g)), this.formErrorMessage = g, this.mergeNewRootState({
|
|
3428
|
-
formErrorMessage: g
|
|
3421
|
+
)}&name=${encodeURIComponent(this.name || "")}`, h = this.sendSubmissionsTo === "email" ? m : this.action;
|
|
3422
|
+
pe(h), fetch(h, {
|
|
3423
|
+
body: i,
|
|
3424
|
+
headers: r,
|
|
3425
|
+
method: this.method || "post"
|
|
3426
|
+
}).then(
|
|
3427
|
+
async (d) => {
|
|
3428
|
+
let f;
|
|
3429
|
+
const S = d.headers.get("content-type");
|
|
3430
|
+
if (S && S.indexOf("application/json") !== -1 ? f = await d.json() : f = await d.text(), !d.ok && this.errorMessagePath) {
|
|
3431
|
+
let w = Ae(f, this.errorMessagePath);
|
|
3432
|
+
w && (typeof w != "string" && (w = JSON.stringify(w)), this.formErrorMessage = w, this.mergeNewRootState({
|
|
3433
|
+
formErrorMessage: w
|
|
3429
3434
|
}));
|
|
3430
3435
|
}
|
|
3431
|
-
if (this.responseData =
|
|
3432
|
-
const
|
|
3436
|
+
if (this.responseData = f, this.formState = d.ok ? "success" : "error", d.ok) {
|
|
3437
|
+
const w = new CustomEvent("submit:success", {
|
|
3433
3438
|
detail: {
|
|
3434
|
-
res:
|
|
3435
|
-
body:
|
|
3439
|
+
res: d,
|
|
3440
|
+
body: f
|
|
3436
3441
|
}
|
|
3437
3442
|
});
|
|
3438
3443
|
if (this.$refs.formRef) {
|
|
3439
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
3444
|
+
if (this.$refs.formRef.dispatchEvent(w), w.defaultPrevented)
|
|
3440
3445
|
return;
|
|
3441
3446
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
3442
3447
|
}
|
|
3443
3448
|
if (this.successUrl)
|
|
3444
3449
|
if (this.$refs.formRef) {
|
|
3445
|
-
const
|
|
3450
|
+
const L = new CustomEvent("route", {
|
|
3446
3451
|
detail: {
|
|
3447
3452
|
url: this.successUrl
|
|
3448
3453
|
}
|
|
3449
3454
|
});
|
|
3450
|
-
this.$refs.formRef.dispatchEvent(
|
|
3455
|
+
this.$refs.formRef.dispatchEvent(L), L.defaultPrevented || (location.href = this.successUrl);
|
|
3451
3456
|
} else
|
|
3452
3457
|
location.href = this.successUrl;
|
|
3453
3458
|
}
|
|
3454
3459
|
},
|
|
3455
|
-
(
|
|
3456
|
-
const
|
|
3460
|
+
(d) => {
|
|
3461
|
+
const f = new CustomEvent("submit:error", {
|
|
3457
3462
|
detail: {
|
|
3458
|
-
error:
|
|
3463
|
+
error: d
|
|
3459
3464
|
}
|
|
3460
3465
|
});
|
|
3461
|
-
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(
|
|
3466
|
+
this.$refs.formRef && (this.$refs.formRef.dispatchEvent(f), f.defaultPrevented) || (this.responseData = d, this.formState = "error");
|
|
3462
3467
|
}
|
|
3463
3468
|
);
|
|
3464
3469
|
}
|
|
3465
3470
|
}
|
|
3466
3471
|
}
|
|
3467
|
-
}),
|
|
3472
|
+
}), ur = ["validate", "action", "method", "name"], pr = {
|
|
3468
3473
|
key: 3,
|
|
3469
3474
|
class: "builder-form-error-text pre-3q96myty4lk"
|
|
3470
3475
|
};
|
|
3471
|
-
function
|
|
3476
|
+
function mr(e, t, n, o, r, i) {
|
|
3472
3477
|
var a;
|
|
3473
|
-
const s =
|
|
3474
|
-
return
|
|
3478
|
+
const s = k("Block"), l = k("Blocks");
|
|
3479
|
+
return c(), p("form", C({
|
|
3475
3480
|
validate: e.validate,
|
|
3476
3481
|
ref: "formRef",
|
|
3477
3482
|
action: !e.sendWithJs && e.action,
|
|
3478
3483
|
method: e.method,
|
|
3479
3484
|
name: e.name,
|
|
3480
3485
|
onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
|
|
3481
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3482
|
-
e.builderBlock && e.builderBlock.children ? (
|
|
3486
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3487
|
+
e.builderBlock && e.builderBlock.children ? (c(!0), p(T, { key: 0 }, V((a = e.builderBlock) == null ? void 0 : a.children, (u, m) => (c(), y(s, {
|
|
3483
3488
|
key: `form-block-${e.idx}`,
|
|
3484
3489
|
block: u,
|
|
3485
3490
|
context: e.builderContext,
|
|
3486
3491
|
registeredComponents: e.builderComponents,
|
|
3487
3492
|
linkComponent: e.builderLinkComponent
|
|
3488
|
-
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) :
|
|
3489
|
-
e.submissionState() === "error" ? (
|
|
3493
|
+
}, null, 8, ["block", "context", "registeredComponents", "linkComponent"]))), 128)) : v("", !0),
|
|
3494
|
+
e.submissionState() === "error" ? (c(), y(l, {
|
|
3490
3495
|
key: 1,
|
|
3491
3496
|
path: "errorMessage",
|
|
3492
3497
|
blocks: e.errorMessage,
|
|
3493
3498
|
context: e.builderContext
|
|
3494
|
-
}, null, 8, ["blocks", "context"])) :
|
|
3495
|
-
e.submissionState() === "sending" ? (
|
|
3499
|
+
}, null, 8, ["blocks", "context"])) : v("", !0),
|
|
3500
|
+
e.submissionState() === "sending" ? (c(), y(l, {
|
|
3496
3501
|
key: 2,
|
|
3497
3502
|
path: "sendingMessage",
|
|
3498
3503
|
blocks: e.sendingMessage,
|
|
3499
3504
|
context: e.builderContext
|
|
3500
|
-
}, null, 8, ["blocks", "context"])) :
|
|
3501
|
-
e.submissionState() === "error" && e.responseData ? (
|
|
3502
|
-
e.submissionState() === "success" ? (
|
|
3505
|
+
}, null, 8, ["blocks", "context"])) : v("", !0),
|
|
3506
|
+
e.submissionState() === "error" && e.responseData ? (c(), p("pre", pr, ee(JSON.stringify(e.responseData, null, 2)), 1)) : v("", !0),
|
|
3507
|
+
e.submissionState() === "success" ? (c(), y(l, {
|
|
3503
3508
|
key: 4,
|
|
3504
3509
|
path: "successMessage",
|
|
3505
3510
|
blocks: e.successMessage,
|
|
3506
3511
|
context: e.builderContext
|
|
3507
|
-
}, null, 8, ["blocks", "context"])) :
|
|
3508
|
-
], 16,
|
|
3512
|
+
}, null, 8, ["blocks", "context"])) : v("", !0)
|
|
3513
|
+
], 16, ur);
|
|
3509
3514
|
}
|
|
3510
|
-
const
|
|
3515
|
+
const hr = /* @__PURE__ */ g(dr, [["render", mr], ["__scopeId", "data-v-cd94d6c1"]]), fr = {
|
|
3511
3516
|
name: "Form:Input",
|
|
3512
3517
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3513
3518
|
inputs: [
|
|
@@ -3558,7 +3563,7 @@ const mr = /* @__PURE__ */ b(cr, [["render", pr], ["__scopeId", "data-v-6e18f21b
|
|
|
3558
3563
|
borderStyle: "solid",
|
|
3559
3564
|
borderColor: "#ccc"
|
|
3560
3565
|
}
|
|
3561
|
-
},
|
|
3566
|
+
}, br = b({
|
|
3562
3567
|
name: "builder-form-input-component",
|
|
3563
3568
|
props: [
|
|
3564
3569
|
"attributes",
|
|
@@ -3570,11 +3575,11 @@ const mr = /* @__PURE__ */ b(cr, [["render", pr], ["__scopeId", "data-v-6e18f21b
|
|
|
3570
3575
|
"required"
|
|
3571
3576
|
],
|
|
3572
3577
|
data() {
|
|
3573
|
-
return { isEditing:
|
|
3578
|
+
return { isEditing: B, filterAttrs: W };
|
|
3574
3579
|
}
|
|
3575
|
-
}),
|
|
3576
|
-
function
|
|
3577
|
-
return
|
|
3580
|
+
}), gr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3581
|
+
function yr(e, t, n, o, r, i) {
|
|
3582
|
+
return c(), p("input", C({
|
|
3578
3583
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3579
3584
|
placeholder: e.placeholder,
|
|
3580
3585
|
type: e.type,
|
|
@@ -3582,9 +3587,9 @@ function gr(e, t, n, o, r, i) {
|
|
|
3582
3587
|
value: e.value,
|
|
3583
3588
|
defaultValue: e.defaultValue,
|
|
3584
3589
|
required: e.required
|
|
3585
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3590
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, gr);
|
|
3586
3591
|
}
|
|
3587
|
-
const
|
|
3592
|
+
const kr = /* @__PURE__ */ g(br, [["render", yr]]), vr = {
|
|
3588
3593
|
name: "Form:Select",
|
|
3589
3594
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3590
3595
|
defaultStyles: {
|
|
@@ -3626,28 +3631,28 @@ const yr = /* @__PURE__ */ b(fr, [["render", gr]]), kr = {
|
|
|
3626
3631
|
}],
|
|
3627
3632
|
static: !0,
|
|
3628
3633
|
noWrap: !0
|
|
3629
|
-
},
|
|
3634
|
+
}, Sr = b({
|
|
3630
3635
|
name: "builder-select-component",
|
|
3631
3636
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
3632
3637
|
data() {
|
|
3633
|
-
return { isEditing:
|
|
3638
|
+
return { isEditing: B, filterAttrs: W };
|
|
3634
3639
|
}
|
|
3635
|
-
}),
|
|
3636
|
-
function
|
|
3637
|
-
return
|
|
3640
|
+
}), Cr = ["value", "defaultValue", "name", "required"], wr = ["value"];
|
|
3641
|
+
function Tr(e, t, n, o, r, i) {
|
|
3642
|
+
return c(), p("select", C({
|
|
3638
3643
|
value: e.value,
|
|
3639
3644
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3640
3645
|
defaultValue: e.defaultValue,
|
|
3641
3646
|
name: e.name,
|
|
3642
3647
|
required: e.required
|
|
3643
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3644
|
-
(
|
|
3648
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3649
|
+
(c(!0), p(T, null, V(e.options, (s, l) => (c(), p("option", {
|
|
3645
3650
|
key: `${s.name}-${l}`,
|
|
3646
3651
|
value: s.value
|
|
3647
|
-
}, ee(s.name || s.value), 9,
|
|
3648
|
-
], 16,
|
|
3652
|
+
}, ee(s.name || s.value), 9, wr))), 128))
|
|
3653
|
+
], 16, Cr);
|
|
3649
3654
|
}
|
|
3650
|
-
const
|
|
3655
|
+
const Ir = /* @__PURE__ */ g(Sr, [["render", Tr]]), $r = {
|
|
3651
3656
|
name: "Form:SubmitButton",
|
|
3652
3657
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3653
3658
|
defaultStyles: {
|
|
@@ -3672,17 +3677,17 @@ const Tr = /* @__PURE__ */ b(vr, [["render", wr]]), Ir = {
|
|
|
3672
3677
|
// that only shows if advanced setting is flipped
|
|
3673
3678
|
// TODO: defaultChildren
|
|
3674
3679
|
// canHaveChildren: true,
|
|
3675
|
-
},
|
|
3680
|
+
}, Rr = b({
|
|
3676
3681
|
name: "builder-submit-button",
|
|
3677
3682
|
props: ["attributes", "text"],
|
|
3678
3683
|
data() {
|
|
3679
|
-
return { filterAttrs:
|
|
3684
|
+
return { filterAttrs: W };
|
|
3680
3685
|
}
|
|
3681
3686
|
});
|
|
3682
|
-
function
|
|
3683
|
-
return
|
|
3687
|
+
function Er(e, t, n, o, r, i) {
|
|
3688
|
+
return c(), p("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ee(e.text), 17);
|
|
3684
3689
|
}
|
|
3685
|
-
const
|
|
3690
|
+
const Pr = /* @__PURE__ */ g(Rr, [["render", Er]]), Br = {
|
|
3686
3691
|
name: "Form:TextArea",
|
|
3687
3692
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3688
3693
|
inputs: [{
|
|
@@ -3718,7 +3723,7 @@ const Er = /* @__PURE__ */ b($r, [["render", Rr]]), Pr = {
|
|
|
3718
3723
|
},
|
|
3719
3724
|
static: !0,
|
|
3720
3725
|
noWrap: !0
|
|
3721
|
-
},
|
|
3726
|
+
}, xr = b({
|
|
3722
3727
|
name: "builder-textarea",
|
|
3723
3728
|
props: [
|
|
3724
3729
|
"attributes",
|
|
@@ -3729,19 +3734,19 @@ const Er = /* @__PURE__ */ b($r, [["render", Rr]]), Pr = {
|
|
|
3729
3734
|
"required"
|
|
3730
3735
|
],
|
|
3731
3736
|
data() {
|
|
3732
|
-
return { filterAttrs:
|
|
3737
|
+
return { filterAttrs: W };
|
|
3733
3738
|
}
|
|
3734
|
-
}),
|
|
3735
|
-
function
|
|
3736
|
-
return
|
|
3739
|
+
}), Ar = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3740
|
+
function Vr(e, t, n, o, r, i) {
|
|
3741
|
+
return c(), p("textarea", C({
|
|
3737
3742
|
placeholder: e.placeholder,
|
|
3738
3743
|
name: e.name,
|
|
3739
3744
|
value: e.value,
|
|
3740
3745
|
defaultValue: e.defaultValue,
|
|
3741
3746
|
required: e.required
|
|
3742
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3747
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Ar);
|
|
3743
3748
|
}
|
|
3744
|
-
const
|
|
3749
|
+
const Wr = /* @__PURE__ */ g(xr, [["render", Vr]]), Nr = {
|
|
3745
3750
|
// friendlyName?
|
|
3746
3751
|
name: "Raw:Img",
|
|
3747
3752
|
hideFromInsertMenu: !0,
|
|
@@ -3755,7 +3760,7 @@ const Vr = /* @__PURE__ */ b(Br, [["render", Ar]]), Wr = {
|
|
|
3755
3760
|
}],
|
|
3756
3761
|
noWrap: !0,
|
|
3757
3762
|
static: !0
|
|
3758
|
-
},
|
|
3763
|
+
}, Or = b({
|
|
3759
3764
|
name: "builder-img-component",
|
|
3760
3765
|
props: [
|
|
3761
3766
|
"backgroundSize",
|
|
@@ -3766,11 +3771,11 @@ const Vr = /* @__PURE__ */ b(Br, [["render", Ar]]), Wr = {
|
|
|
3766
3771
|
"attributes"
|
|
3767
3772
|
],
|
|
3768
3773
|
data() {
|
|
3769
|
-
return { isEditing:
|
|
3774
|
+
return { isEditing: B, filterAttrs: W };
|
|
3770
3775
|
}
|
|
3771
|
-
}),
|
|
3772
|
-
function
|
|
3773
|
-
return
|
|
3776
|
+
}), Fr = ["alt", "src"];
|
|
3777
|
+
function Dr(e, t, n, o, r, i) {
|
|
3778
|
+
return c(), p("img", C({
|
|
3774
3779
|
style: {
|
|
3775
3780
|
objectFit: e.backgroundSize || "cover",
|
|
3776
3781
|
objectPosition: e.backgroundPosition || "center"
|
|
@@ -3778,9 +3783,9 @@ function Fr(e, t, n, o, r, i) {
|
|
|
3778
3783
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
3779
3784
|
alt: e.altText,
|
|
3780
3785
|
src: e.imgSrc || e.image
|
|
3781
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3786
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Fr);
|
|
3782
3787
|
}
|
|
3783
|
-
const
|
|
3788
|
+
const Lr = /* @__PURE__ */ g(Or, [["render", Dr]]), Ur = {
|
|
3784
3789
|
name: "Video",
|
|
3785
3790
|
canHaveChildren: !0,
|
|
3786
3791
|
defaultStyles: {
|
|
@@ -3864,7 +3869,7 @@ const Dr = /* @__PURE__ */ b(Nr, [["render", Fr]]), Lr = {
|
|
|
3864
3869
|
shouldReceiveBuilderProps: {
|
|
3865
3870
|
builderBlock: !0
|
|
3866
3871
|
}
|
|
3867
|
-
},
|
|
3872
|
+
}, Mr = b({
|
|
3868
3873
|
name: "builder-video",
|
|
3869
3874
|
props: [
|
|
3870
3875
|
"autoPlay",
|
|
@@ -3909,16 +3914,16 @@ const Dr = /* @__PURE__ */ b(Nr, [["render", Fr]]), Lr = {
|
|
|
3909
3914
|
};
|
|
3910
3915
|
}
|
|
3911
3916
|
}
|
|
3912
|
-
}),
|
|
3917
|
+
}), Hr = { style: {
|
|
3913
3918
|
position: "relative"
|
|
3914
|
-
} },
|
|
3919
|
+
} }, jr = ["preload", "src", "poster"], Kr = ["src"], qr = {
|
|
3915
3920
|
key: 1,
|
|
3916
3921
|
style: {
|
|
3917
3922
|
display: "flex",
|
|
3918
3923
|
flexDirection: "column",
|
|
3919
3924
|
alignItems: "stretch"
|
|
3920
3925
|
}
|
|
3921
|
-
},
|
|
3926
|
+
}, zr = {
|
|
3922
3927
|
key: 2,
|
|
3923
3928
|
style: {
|
|
3924
3929
|
pointerEvents: "none",
|
|
@@ -3932,10 +3937,10 @@ const Dr = /* @__PURE__ */ b(Nr, [["render", Fr]]), Lr = {
|
|
|
3932
3937
|
height: "100%"
|
|
3933
3938
|
}
|
|
3934
3939
|
};
|
|
3935
|
-
function
|
|
3936
|
-
var s, l, a, u,
|
|
3937
|
-
return
|
|
3938
|
-
|
|
3940
|
+
function Gr(e, t, n, o, r, i) {
|
|
3941
|
+
var s, l, a, u, m, h, d;
|
|
3942
|
+
return c(), p("div", Hr, [
|
|
3943
|
+
q("video", C({
|
|
3939
3944
|
class: "builder-video",
|
|
3940
3945
|
preload: e.preload || "metadata",
|
|
3941
3946
|
style: {
|
|
@@ -3955,13 +3960,13 @@ function zr(e, t, n, o, r, i) {
|
|
|
3955
3960
|
src: e.video || "no-src",
|
|
3956
3961
|
poster: e.posterImage
|
|
3957
3962
|
}, e.spreadProps), [
|
|
3958
|
-
e.lazyLoad ?
|
|
3963
|
+
e.lazyLoad ? v("", !0) : (c(), p("source", {
|
|
3959
3964
|
key: 0,
|
|
3960
3965
|
type: "video/mp4",
|
|
3961
3966
|
src: e.video
|
|
3962
|
-
}, null, 8,
|
|
3963
|
-
], 16,
|
|
3964
|
-
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (
|
|
3967
|
+
}, null, 8, Kr))
|
|
3968
|
+
], 16, jr),
|
|
3969
|
+
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (c(), p("div", {
|
|
3965
3970
|
key: 0,
|
|
3966
3971
|
style: F({
|
|
3967
3972
|
width: "100%",
|
|
@@ -3969,73 +3974,73 @@ function zr(e, t, n, o, r, i) {
|
|
|
3969
3974
|
pointerEvents: "none",
|
|
3970
3975
|
fontSize: "0px"
|
|
3971
3976
|
})
|
|
3972
|
-
}, null, 4)) :
|
|
3973
|
-
(
|
|
3974
|
-
|
|
3975
|
-
])) :
|
|
3976
|
-
(
|
|
3977
|
-
|
|
3978
|
-
])) :
|
|
3977
|
+
}, null, 4)) : v("", !0),
|
|
3978
|
+
(m = (u = e.builderBlock) == null ? void 0 : u.children) != null && m.length && e.fitContent ? (c(), p("div", qr, [
|
|
3979
|
+
A(e.$slots, "default")
|
|
3980
|
+
])) : v("", !0),
|
|
3981
|
+
(d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length && !e.fitContent ? (c(), p("div", zr, [
|
|
3982
|
+
A(e.$slots, "default")
|
|
3983
|
+
])) : v("", !0)
|
|
3979
3984
|
]);
|
|
3980
3985
|
}
|
|
3981
|
-
const Jr = /* @__PURE__ */
|
|
3982
|
-
component:
|
|
3983
|
-
...
|
|
3986
|
+
const Jr = /* @__PURE__ */ g(Mr, [["render", Gr]]), Yr = () => [{
|
|
3987
|
+
component: _o,
|
|
3988
|
+
...Yo
|
|
3984
3989
|
}, {
|
|
3985
|
-
component:
|
|
3986
|
-
...
|
|
3990
|
+
component: sr,
|
|
3991
|
+
...er
|
|
3987
3992
|
}, {
|
|
3988
|
-
component:
|
|
3989
|
-
...
|
|
3993
|
+
component: hr,
|
|
3994
|
+
...ar
|
|
3990
3995
|
}, {
|
|
3991
|
-
component:
|
|
3992
|
-
...
|
|
3996
|
+
component: kr,
|
|
3997
|
+
...fr
|
|
3993
3998
|
}, {
|
|
3994
|
-
component:
|
|
3995
|
-
|
|
3999
|
+
component: Pr,
|
|
4000
|
+
...$r
|
|
3996
4001
|
}, {
|
|
3997
|
-
component:
|
|
3998
|
-
...
|
|
4002
|
+
component: Ir,
|
|
4003
|
+
...vr
|
|
3999
4004
|
}, {
|
|
4000
|
-
component:
|
|
4001
|
-
...
|
|
4005
|
+
component: Wr,
|
|
4006
|
+
...Br
|
|
4002
4007
|
}, {
|
|
4003
|
-
component:
|
|
4004
|
-
...
|
|
4008
|
+
component: Lr,
|
|
4009
|
+
...Nr
|
|
4005
4010
|
}, {
|
|
4006
4011
|
component: Jr,
|
|
4007
|
-
...
|
|
4008
|
-
}],
|
|
4009
|
-
component:
|
|
4010
|
-
...Ro
|
|
4011
|
-
}, {
|
|
4012
|
-
component: io,
|
|
4012
|
+
...Ur
|
|
4013
|
+
}], Re = () => [{
|
|
4014
|
+
component: Ct,
|
|
4013
4015
|
...Eo
|
|
4014
4016
|
}, {
|
|
4015
|
-
component:
|
|
4017
|
+
component: so,
|
|
4016
4018
|
...Po
|
|
4017
4019
|
}, {
|
|
4018
|
-
component:
|
|
4020
|
+
component: co,
|
|
4019
4021
|
...Bo
|
|
4020
4022
|
}, {
|
|
4021
|
-
component:
|
|
4023
|
+
component: yo,
|
|
4022
4024
|
...xo
|
|
4023
4025
|
}, {
|
|
4024
|
-
component:
|
|
4026
|
+
component: So,
|
|
4025
4027
|
...Ao
|
|
4026
4028
|
}, {
|
|
4027
|
-
component:
|
|
4028
|
-
...
|
|
4029
|
+
component: Oo,
|
|
4030
|
+
...Vo
|
|
4031
|
+
}, {
|
|
4032
|
+
component: Bi,
|
|
4033
|
+
...Fo
|
|
4029
4034
|
}, {
|
|
4030
4035
|
component: Jo,
|
|
4031
|
-
...
|
|
4036
|
+
...Ko
|
|
4032
4037
|
}, {
|
|
4033
|
-
component:
|
|
4034
|
-
...
|
|
4038
|
+
component: jo,
|
|
4039
|
+
...Do
|
|
4035
4040
|
}, {
|
|
4036
|
-
component:
|
|
4037
|
-
...
|
|
4038
|
-
}, ...
|
|
4041
|
+
component: Ro,
|
|
4042
|
+
...Co
|
|
4043
|
+
}, ...Yr()], Xr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4039
4044
|
function getAndSetVariantId() {
|
|
4040
4045
|
function setCookie(name, value, days) {
|
|
4041
4046
|
let expires = '';
|
|
@@ -4091,7 +4096,7 @@ const Jr = /* @__PURE__ */ b(Ur, [["render", zr]]), Gr = () => [{
|
|
|
4091
4096
|
}).join('');
|
|
4092
4097
|
styleEl.innerHTML = newStyleStr;
|
|
4093
4098
|
}
|
|
4094
|
-
}`,
|
|
4099
|
+
}`, Qr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4095
4100
|
if (!navigator.cookieEnabled) {
|
|
4096
4101
|
return;
|
|
4097
4102
|
}
|
|
@@ -4125,27 +4130,27 @@ const Jr = /* @__PURE__ */ b(Ur, [["render", zr]]), Gr = () => [{
|
|
|
4125
4130
|
thisScriptEl?.remove();
|
|
4126
4131
|
}
|
|
4127
4132
|
return;
|
|
4128
|
-
}`,
|
|
4133
|
+
}`, at = "builderIoAbTest", lt = "builderIoRenderContent", Q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4129
4134
|
...t,
|
|
4130
4135
|
testVariationId: t.id,
|
|
4131
4136
|
id: e == null ? void 0 : e.id
|
|
4132
|
-
})),
|
|
4137
|
+
})), Zr = ({
|
|
4133
4138
|
canTrack: e,
|
|
4134
4139
|
content: t
|
|
4135
|
-
}) => !(!(Q(t).length > 0) || !e),
|
|
4136
|
-
window.${st} = ${Yr}
|
|
4140
|
+
}) => !(!(Q(t).length > 0) || !e), _r = (e) => e === "react" || e === "reactNative", ct = _r(P), ei = () => `
|
|
4137
4141
|
window.${at} = ${Xr}
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
+
window.${lt} = ${Qr}
|
|
4143
|
+
`, ti = (e, t) => `
|
|
4144
|
+
window.${at}(
|
|
4145
|
+
"${t}",${JSON.stringify(e)}, ${ct}
|
|
4146
|
+
)`, ni = ({
|
|
4142
4147
|
contentId: e,
|
|
4143
4148
|
variationId: t
|
|
4144
|
-
}) => `window.${
|
|
4145
|
-
"${t}", "${e}", ${
|
|
4146
|
-
)`,
|
|
4149
|
+
}) => `window.${lt}(
|
|
4150
|
+
"${t}", "${e}", ${ct}
|
|
4151
|
+
)`, dt = b({
|
|
4147
4152
|
render() {
|
|
4148
|
-
return
|
|
4153
|
+
return Be("script", {
|
|
4149
4154
|
innerHTML: this.scriptStr,
|
|
4150
4155
|
"data-id": this.id,
|
|
4151
4156
|
nonce: this.nonce
|
|
@@ -4154,10 +4159,10 @@ const Jr = /* @__PURE__ */ b(Ur, [["render", zr]]), Gr = () => [{
|
|
|
4154
4159
|
name: "inlined-script",
|
|
4155
4160
|
props: ["scriptStr", "id", "nonce"]
|
|
4156
4161
|
});
|
|
4157
|
-
function
|
|
4162
|
+
function Ee(e) {
|
|
4158
4163
|
return Math.round(e * 1e3) / 1e3;
|
|
4159
4164
|
}
|
|
4160
|
-
const
|
|
4165
|
+
const oi = (e, t, n = !0) => {
|
|
4161
4166
|
if (!(e instanceof HTMLElement))
|
|
4162
4167
|
return null;
|
|
4163
4168
|
let o = n ? e : e.parentElement;
|
|
@@ -4168,35 +4173,35 @@ const ni = (e, t, n = !0) => {
|
|
|
4168
4173
|
return o;
|
|
4169
4174
|
} while (o = o.parentElement);
|
|
4170
4175
|
return null;
|
|
4171
|
-
},
|
|
4176
|
+
}, ri = (e) => oi(e, (t) => {
|
|
4172
4177
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4173
4178
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4174
|
-
}),
|
|
4179
|
+
}), Pe = ({
|
|
4175
4180
|
event: e,
|
|
4176
4181
|
target: t
|
|
4177
4182
|
}) => {
|
|
4178
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
4183
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Ee(o / n.width), s = Ee(r / n.height);
|
|
4179
4184
|
return {
|
|
4180
4185
|
x: i,
|
|
4181
4186
|
y: s
|
|
4182
4187
|
};
|
|
4183
|
-
},
|
|
4184
|
-
const t = e.target, n = t &&
|
|
4188
|
+
}, ii = (e) => {
|
|
4189
|
+
const t = e.target, n = t && ri(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4185
4190
|
return {
|
|
4186
4191
|
targetBuilderElement: o || void 0,
|
|
4187
4192
|
metadata: {
|
|
4188
|
-
targetOffset: t ?
|
|
4193
|
+
targetOffset: t ? Pe({
|
|
4189
4194
|
event: e,
|
|
4190
4195
|
target: t
|
|
4191
4196
|
}) : void 0,
|
|
4192
|
-
builderTargetOffset: n ?
|
|
4197
|
+
builderTargetOffset: n ? Pe({
|
|
4193
4198
|
event: e,
|
|
4194
4199
|
target: n
|
|
4195
4200
|
}) : void 0,
|
|
4196
4201
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4197
4202
|
}
|
|
4198
4203
|
};
|
|
4199
|
-
},
|
|
4204
|
+
}, si = (e) => {
|
|
4200
4205
|
var i;
|
|
4201
4206
|
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);
|
|
4202
4207
|
let r = "";
|
|
@@ -4222,15 +4227,15 @@ font-weight: ${s};
|
|
|
4222
4227
|
`.trim());
|
|
4223
4228
|
}
|
|
4224
4229
|
return r;
|
|
4225
|
-
},
|
|
4230
|
+
}, ai = ({
|
|
4226
4231
|
customFonts: e
|
|
4227
4232
|
}) => {
|
|
4228
4233
|
var t;
|
|
4229
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4230
|
-
},
|
|
4234
|
+
return ((t = e == null ? void 0 : e.map((n) => si(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4235
|
+
}, li = ({
|
|
4231
4236
|
cssCode: e,
|
|
4232
4237
|
contentId: t
|
|
4233
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4238
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ci = `
|
|
4234
4239
|
.builder-button {
|
|
4235
4240
|
all: unset;
|
|
4236
4241
|
}
|
|
@@ -4247,9 +4252,9 @@ font-weight: ${s};
|
|
|
4247
4252
|
text-align: inherit;
|
|
4248
4253
|
font-family: inherit;
|
|
4249
4254
|
}
|
|
4250
|
-
`,
|
|
4255
|
+
`, di = (e) => e ? "" : ci, ui = (e) => `variant-${e}`, pi = b({
|
|
4251
4256
|
name: "enable-editor",
|
|
4252
|
-
components: { DynamicDiv:
|
|
4257
|
+
components: { DynamicDiv: Y },
|
|
4253
4258
|
props: [
|
|
4254
4259
|
"isNestedRender",
|
|
4255
4260
|
"builderContextSignal",
|
|
@@ -4274,7 +4279,7 @@ font-weight: ${s};
|
|
|
4274
4279
|
httpReqsPending: {},
|
|
4275
4280
|
clicked: !1,
|
|
4276
4281
|
builderContext: se,
|
|
4277
|
-
getWrapperClassName:
|
|
4282
|
+
getWrapperClassName: ui
|
|
4278
4283
|
};
|
|
4279
4284
|
},
|
|
4280
4285
|
provide() {
|
|
@@ -4288,10 +4293,10 @@ font-weight: ${s};
|
|
|
4288
4293
|
},
|
|
4289
4294
|
mounted() {
|
|
4290
4295
|
var e, t;
|
|
4291
|
-
if (
|
|
4292
|
-
if (
|
|
4296
|
+
if ($()) {
|
|
4297
|
+
if (B() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4293
4298
|
new CustomEvent("initeditingbldr")
|
|
4294
|
-
), this.builderContextSignal.content &&
|
|
4299
|
+
), this.builderContextSignal.content && G(this.canTrack)) {
|
|
4295
4300
|
const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id, i = this.apiKey;
|
|
4296
4301
|
le({
|
|
4297
4302
|
apiHost: this.apiHost,
|
|
@@ -4302,7 +4307,7 @@ font-weight: ${s};
|
|
|
4302
4307
|
variationId: o !== r ? o : void 0
|
|
4303
4308
|
});
|
|
4304
4309
|
}
|
|
4305
|
-
|
|
4310
|
+
Kt() && !B() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4306
4311
|
new CustomEvent("initpreviewingbldr")
|
|
4307
4312
|
);
|
|
4308
4313
|
}
|
|
@@ -4336,7 +4341,7 @@ font-weight: ${s};
|
|
|
4336
4341
|
}
|
|
4337
4342
|
},
|
|
4338
4343
|
unmounted() {
|
|
4339
|
-
|
|
4344
|
+
$() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
4340
4345
|
"builder:component:stateChangeListenerActivated",
|
|
4341
4346
|
this.emitStateUpdate
|
|
4342
4347
|
));
|
|
@@ -4396,7 +4401,7 @@ font-weight: ${s};
|
|
|
4396
4401
|
this.builderContextSignal.content = t;
|
|
4397
4402
|
},
|
|
4398
4403
|
processMessage(e) {
|
|
4399
|
-
return
|
|
4404
|
+
return Xe({
|
|
4400
4405
|
model: this.model,
|
|
4401
4406
|
trustedHosts: this.trustedHosts,
|
|
4402
4407
|
callbacks: {
|
|
@@ -4410,7 +4415,7 @@ font-weight: ${s};
|
|
|
4410
4415
|
});
|
|
4411
4416
|
},
|
|
4412
4417
|
animation: (t) => {
|
|
4413
|
-
|
|
4418
|
+
ot(t);
|
|
4414
4419
|
},
|
|
4415
4420
|
contentUpdate: (t) => {
|
|
4416
4421
|
this.mergeNewContent(t);
|
|
@@ -4425,11 +4430,11 @@ font-weight: ${s};
|
|
|
4425
4430
|
le({
|
|
4426
4431
|
apiHost: this.apiHost,
|
|
4427
4432
|
type: "click",
|
|
4428
|
-
canTrack:
|
|
4433
|
+
canTrack: G(this.canTrack),
|
|
4429
4434
|
contentId: r,
|
|
4430
4435
|
apiKey: this.apiKey,
|
|
4431
4436
|
variationId: o !== r ? o : void 0,
|
|
4432
|
-
...
|
|
4437
|
+
...ii(e),
|
|
4433
4438
|
unique: !this.clicked
|
|
4434
4439
|
});
|
|
4435
4440
|
}
|
|
@@ -4439,7 +4444,7 @@ font-weight: ${s};
|
|
|
4439
4444
|
var t, n;
|
|
4440
4445
|
const e = ((n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.httpRequests) ?? {};
|
|
4441
4446
|
Object.entries(e).forEach(([o, r]) => {
|
|
4442
|
-
if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !
|
|
4447
|
+
if (!r || this.httpReqsPending[o] || this.httpReqsData[o] && !B())
|
|
4443
4448
|
return;
|
|
4444
4449
|
this.httpReqsPending[o] = !0;
|
|
4445
4450
|
const i = r.replace(
|
|
@@ -4454,7 +4459,7 @@ font-weight: ${s};
|
|
|
4454
4459
|
})
|
|
4455
4460
|
)
|
|
4456
4461
|
);
|
|
4457
|
-
fetch(i).then((s) => s.json()).then((s) => {
|
|
4462
|
+
pe(i), fetch(i).then((s) => s.json()).then((s) => {
|
|
4458
4463
|
this.mergeNewRootState({
|
|
4459
4464
|
[o]: s
|
|
4460
4465
|
}), this.httpReqsData[o] = !0;
|
|
@@ -4466,7 +4471,7 @@ font-weight: ${s};
|
|
|
4466
4471
|
});
|
|
4467
4472
|
},
|
|
4468
4473
|
emitStateUpdate() {
|
|
4469
|
-
|
|
4474
|
+
B() && window.dispatchEvent(
|
|
4470
4475
|
new CustomEvent(
|
|
4471
4476
|
"builder:component:stateChange",
|
|
4472
4477
|
{
|
|
@@ -4481,7 +4486,7 @@ font-weight: ${s};
|
|
|
4481
4486
|
);
|
|
4482
4487
|
},
|
|
4483
4488
|
elementRef_onIniteditingbldr(e) {
|
|
4484
|
-
window.addEventListener("message", this.processMessage),
|
|
4489
|
+
window.addEventListener("message", this.processMessage), mn(), Ye({
|
|
4485
4490
|
...this.locale ? {
|
|
4486
4491
|
locale: this.locale
|
|
4487
4492
|
} : {},
|
|
@@ -4495,7 +4500,7 @@ font-weight: ${s};
|
|
|
4495
4500
|
this.builderContextSignal.componentInfos
|
|
4496
4501
|
).forEach((t) => {
|
|
4497
4502
|
var o;
|
|
4498
|
-
const n =
|
|
4503
|
+
const n = qt(t);
|
|
4499
4504
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
4500
4505
|
}), window.addEventListener(
|
|
4501
4506
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -4506,7 +4511,7 @@ font-weight: ${s};
|
|
|
4506
4511
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
4507
4512
|
`builder.overrides.${n}`
|
|
4508
4513
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
4509
|
-
n === this.model && r === this.apiKey && (!this.content || o === this.content.id) &&
|
|
4514
|
+
n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && fe({
|
|
4510
4515
|
model: this.model,
|
|
4511
4516
|
apiKey: this.apiKey,
|
|
4512
4517
|
apiVersion: this.builderContextSignal.apiVersion
|
|
@@ -4516,9 +4521,9 @@ font-weight: ${s};
|
|
|
4516
4521
|
}
|
|
4517
4522
|
}
|
|
4518
4523
|
});
|
|
4519
|
-
function
|
|
4524
|
+
function mi(e, t, n, o, r, i) {
|
|
4520
4525
|
var s, l, a;
|
|
4521
|
-
return e.builderContextSignal.content ? (
|
|
4526
|
+
return e.builderContextSignal.content ? (c(), y(j(e.ContentWrapper), C({
|
|
4522
4527
|
key: 0,
|
|
4523
4528
|
ref: "elementRef",
|
|
4524
4529
|
onClick: (u) => e.onClick(u),
|
|
@@ -4528,40 +4533,40 @@ function pi(e, t, n, o, r, i) {
|
|
|
4528
4533
|
onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
|
|
4529
4534
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
4530
4535
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
4531
|
-
default:
|
|
4532
|
-
|
|
4536
|
+
default: N(() => [
|
|
4537
|
+
A(e.$slots, "default")
|
|
4533
4538
|
]),
|
|
4534
4539
|
_: 3
|
|
4535
|
-
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) :
|
|
4540
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) : v("", !0);
|
|
4536
4541
|
}
|
|
4537
|
-
const
|
|
4542
|
+
const hi = /* @__PURE__ */ g(pi, [["render", mi]]), fi = b({
|
|
4538
4543
|
name: "content-styles",
|
|
4539
|
-
components: { InlinedStyles:
|
|
4544
|
+
components: { InlinedStyles: ye },
|
|
4540
4545
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
4541
4546
|
data() {
|
|
4542
4547
|
return {
|
|
4543
4548
|
injectedStyles: `
|
|
4544
|
-
${
|
|
4549
|
+
${li({
|
|
4545
4550
|
cssCode: this.cssCode,
|
|
4546
4551
|
contentId: this.contentId
|
|
4547
4552
|
})}
|
|
4548
|
-
${
|
|
4553
|
+
${ai({
|
|
4549
4554
|
customFonts: this.customFonts
|
|
4550
4555
|
})}
|
|
4551
|
-
${
|
|
4556
|
+
${di(this.isNestedRender)}
|
|
4552
4557
|
`.trim()
|
|
4553
4558
|
};
|
|
4554
4559
|
}
|
|
4555
4560
|
});
|
|
4556
|
-
function
|
|
4557
|
-
const s =
|
|
4558
|
-
return
|
|
4561
|
+
function bi(e, t, n, o, r, i) {
|
|
4562
|
+
const s = k("InlinedStyles");
|
|
4563
|
+
return c(), y(s, {
|
|
4559
4564
|
id: "builderio-content",
|
|
4560
4565
|
styles: e.injectedStyles,
|
|
4561
4566
|
nonce: e.nonce
|
|
4562
4567
|
}, null, 8, ["styles", "nonce"]);
|
|
4563
4568
|
}
|
|
4564
|
-
const
|
|
4569
|
+
const gi = /* @__PURE__ */ g(fi, [["render", bi]]), yi = ({
|
|
4565
4570
|
content: e,
|
|
4566
4571
|
data: t,
|
|
4567
4572
|
locale: n
|
|
@@ -4578,7 +4583,7 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
|
|
|
4578
4583
|
locale: n
|
|
4579
4584
|
} : {}
|
|
4580
4585
|
};
|
|
4581
|
-
},
|
|
4586
|
+
}, ki = ({
|
|
4582
4587
|
content: e,
|
|
4583
4588
|
data: t
|
|
4584
4589
|
}) => e ? {
|
|
@@ -4588,14 +4593,14 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
|
|
|
4588
4593
|
...t
|
|
4589
4594
|
},
|
|
4590
4595
|
meta: e == null ? void 0 : e.meta
|
|
4591
|
-
} : void 0,
|
|
4596
|
+
} : void 0, vi = ft, Si = b({
|
|
4592
4597
|
name: "content-component",
|
|
4593
4598
|
components: {
|
|
4594
|
-
EnableEditor:
|
|
4595
|
-
InlinedScript:
|
|
4596
|
-
ContentStyles:
|
|
4597
|
-
Blocks:
|
|
4598
|
-
DynamicDiv:
|
|
4599
|
+
EnableEditor: hi,
|
|
4600
|
+
InlinedScript: dt,
|
|
4601
|
+
ContentStyles: gi,
|
|
4602
|
+
Blocks: U,
|
|
4603
|
+
DynamicDiv: Y
|
|
4599
4604
|
},
|
|
4600
4605
|
props: [
|
|
4601
4606
|
"apiKey",
|
|
@@ -4623,32 +4628,32 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
|
|
|
4623
4628
|
data() {
|
|
4624
4629
|
var e, t, n, o;
|
|
4625
4630
|
return {
|
|
4626
|
-
scriptStr:
|
|
4631
|
+
scriptStr: ni({
|
|
4627
4632
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4628
4633
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
4629
4634
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4630
4635
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
4631
4636
|
}),
|
|
4632
4637
|
registeredComponents: [
|
|
4633
|
-
|
|
4638
|
+
...Re(),
|
|
4634
4639
|
...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
|
|
4635
4640
|
].reduce(
|
|
4636
4641
|
(r, { component: i, ...s }) => ({
|
|
4637
4642
|
...r,
|
|
4638
4643
|
[s.name]: {
|
|
4639
|
-
component:
|
|
4644
|
+
component: vi(i),
|
|
4640
4645
|
..._(s)
|
|
4641
4646
|
}
|
|
4642
4647
|
}),
|
|
4643
4648
|
{}
|
|
4644
4649
|
),
|
|
4645
4650
|
builderContextSignal: {
|
|
4646
|
-
content:
|
|
4651
|
+
content: ki({
|
|
4647
4652
|
content: this.content,
|
|
4648
4653
|
data: this.data
|
|
4649
4654
|
}),
|
|
4650
4655
|
localState: void 0,
|
|
4651
|
-
rootState:
|
|
4656
|
+
rootState: yi({
|
|
4652
4657
|
content: this.content,
|
|
4653
4658
|
data: this.data,
|
|
4654
4659
|
locale: this.locale
|
|
@@ -4659,7 +4664,7 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
|
|
|
4659
4664
|
apiKey: this.apiKey,
|
|
4660
4665
|
apiVersion: this.apiVersion,
|
|
4661
4666
|
componentInfos: [
|
|
4662
|
-
|
|
4667
|
+
...Re(),
|
|
4663
4668
|
...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
|
|
4664
4669
|
].reduce(
|
|
4665
4670
|
(r, { component: i, ...s }) => ({
|
|
@@ -4673,20 +4678,20 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
|
|
|
4673
4678
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
4674
4679
|
nonce: this.nonce || ""
|
|
4675
4680
|
},
|
|
4676
|
-
TARGET:
|
|
4681
|
+
TARGET: P
|
|
4677
4682
|
};
|
|
4678
4683
|
},
|
|
4679
4684
|
provide() {
|
|
4680
4685
|
const e = this;
|
|
4681
4686
|
return {
|
|
4682
|
-
[
|
|
4687
|
+
[xe.key]: {
|
|
4683
4688
|
registeredComponents: e.registeredComponents
|
|
4684
4689
|
}
|
|
4685
4690
|
};
|
|
4686
4691
|
},
|
|
4687
4692
|
created() {
|
|
4688
4693
|
var t, n;
|
|
4689
|
-
this.apiKey ||
|
|
4694
|
+
this.apiKey || E.error(
|
|
4690
4695
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4691
4696
|
);
|
|
4692
4697
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
@@ -4707,9 +4712,9 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
|
|
|
4707
4712
|
}
|
|
4708
4713
|
}
|
|
4709
4714
|
});
|
|
4710
|
-
function
|
|
4711
|
-
const s =
|
|
4712
|
-
return
|
|
4715
|
+
function Ci(e, t, n, o, r, i) {
|
|
4716
|
+
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
4717
|
+
return c(), y(u, C({
|
|
4713
4718
|
apiHost: e.apiHost,
|
|
4714
4719
|
nonce: e.nonce,
|
|
4715
4720
|
content: e.content,
|
|
@@ -4727,25 +4732,25 @@ function Si(e, t, n, o, r, i) {
|
|
|
4727
4732
|
trustedHosts: e.trustedHosts,
|
|
4728
4733
|
isNestedRender: e.isNestedRender
|
|
4729
4734
|
}, {}), {
|
|
4730
|
-
default:
|
|
4731
|
-
var
|
|
4735
|
+
default: N(() => {
|
|
4736
|
+
var m, h, d, f, S, w, L;
|
|
4732
4737
|
return [
|
|
4733
|
-
e.isSsrAbTest ? (
|
|
4738
|
+
e.isSsrAbTest ? (c(), y(s, {
|
|
4734
4739
|
key: 0,
|
|
4735
4740
|
id: "builderio-variant-visibility",
|
|
4736
4741
|
scriptStr: e.scriptStr,
|
|
4737
4742
|
nonce: e.nonce || ""
|
|
4738
|
-
}, null, 8, ["scriptStr", "nonce"])) :
|
|
4739
|
-
e.TARGET !== "reactNative" ? (
|
|
4743
|
+
}, null, 8, ["scriptStr", "nonce"])) : v("", !0),
|
|
4744
|
+
e.TARGET !== "reactNative" ? (c(), y(l, {
|
|
4740
4745
|
key: 1,
|
|
4741
4746
|
nonce: e.nonce || "",
|
|
4742
4747
|
isNestedRender: e.isNestedRender,
|
|
4743
|
-
contentId: (
|
|
4744
|
-
cssCode: (
|
|
4745
|
-
customFonts: (
|
|
4746
|
-
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) :
|
|
4747
|
-
|
|
4748
|
-
blocks: (
|
|
4748
|
+
contentId: (m = e.builderContextSignal.content) == null ? void 0 : m.id,
|
|
4749
|
+
cssCode: (d = (h = e.builderContextSignal.content) == null ? void 0 : h.data) == null ? void 0 : d.cssCode,
|
|
4750
|
+
customFonts: (S = (f = e.builderContextSignal.content) == null ? void 0 : f.data) == null ? void 0 : S.customFonts
|
|
4751
|
+
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : v("", !0),
|
|
4752
|
+
R(a, {
|
|
4753
|
+
blocks: (L = (w = e.builderContextSignal.content) == null ? void 0 : w.data) == null ? void 0 : L.blocks,
|
|
4749
4754
|
context: e.builderContextSignal,
|
|
4750
4755
|
registeredComponents: e.registeredComponents,
|
|
4751
4756
|
linkComponent: e.linkComponent
|
|
@@ -4755,12 +4760,12 @@ function Si(e, t, n, o, r, i) {
|
|
|
4755
4760
|
_: 1
|
|
4756
4761
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
4757
4762
|
}
|
|
4758
|
-
const
|
|
4763
|
+
const wi = /* @__PURE__ */ g(Si, [["render", Ci]]), Ti = b({
|
|
4759
4764
|
name: "content-variants",
|
|
4760
4765
|
components: {
|
|
4761
|
-
InlinedScript:
|
|
4762
|
-
InlinedStyles:
|
|
4763
|
-
ContentComponent:
|
|
4766
|
+
InlinedScript: dt,
|
|
4767
|
+
InlinedStyles: ye,
|
|
4768
|
+
ContentComponent: wi
|
|
4764
4769
|
},
|
|
4765
4770
|
props: [
|
|
4766
4771
|
"canTrack",
|
|
@@ -4785,12 +4790,12 @@ const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = f({
|
|
|
4785
4790
|
],
|
|
4786
4791
|
data() {
|
|
4787
4792
|
return {
|
|
4788
|
-
shouldRenderVariants:
|
|
4789
|
-
canTrack:
|
|
4793
|
+
shouldRenderVariants: Zr({
|
|
4794
|
+
canTrack: G(this.canTrack),
|
|
4790
4795
|
content: this.content
|
|
4791
4796
|
}),
|
|
4792
|
-
TARGET:
|
|
4793
|
-
getInitVariantsFnsScriptString:
|
|
4797
|
+
TARGET: P,
|
|
4798
|
+
getInitVariantsFnsScriptString: ei,
|
|
4794
4799
|
getVariants: Q
|
|
4795
4800
|
};
|
|
4796
4801
|
},
|
|
@@ -4799,7 +4804,7 @@ const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = f({
|
|
|
4799
4804
|
computed: {
|
|
4800
4805
|
updateCookieAndStylesScriptStr() {
|
|
4801
4806
|
var e;
|
|
4802
|
-
return
|
|
4807
|
+
return ti(
|
|
4803
4808
|
Q(this.content).map((t) => ({
|
|
4804
4809
|
id: t.testVariationId,
|
|
4805
4810
|
testRatio: t.testRatio
|
|
@@ -4815,34 +4820,34 @@ const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = f({
|
|
|
4815
4820
|
return this.shouldRenderVariants ? {
|
|
4816
4821
|
...this.content,
|
|
4817
4822
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
4818
|
-
} :
|
|
4823
|
+
} : kn({
|
|
4819
4824
|
item: this.content,
|
|
4820
|
-
canTrack:
|
|
4825
|
+
canTrack: G(this.canTrack)
|
|
4821
4826
|
});
|
|
4822
4827
|
}
|
|
4823
4828
|
}
|
|
4824
4829
|
});
|
|
4825
|
-
function
|
|
4826
|
-
const s =
|
|
4827
|
-
return
|
|
4828
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (
|
|
4830
|
+
function Ii(e, t, n, o, r, i) {
|
|
4831
|
+
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
4832
|
+
return c(), p(T, null, [
|
|
4833
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (c(), y(s, {
|
|
4829
4834
|
key: 0,
|
|
4830
4835
|
id: "builderio-init-variants-fns",
|
|
4831
4836
|
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
4832
4837
|
nonce: e.nonce || ""
|
|
4833
|
-
}, null, 8, ["scriptStr", "nonce"])) :
|
|
4834
|
-
e.shouldRenderVariants ? (
|
|
4835
|
-
|
|
4838
|
+
}, null, 8, ["scriptStr", "nonce"])) : v("", !0),
|
|
4839
|
+
e.shouldRenderVariants ? (c(), p(T, { key: 1 }, [
|
|
4840
|
+
R(l, {
|
|
4836
4841
|
id: "builderio-variants",
|
|
4837
4842
|
styles: e.hideVariantsStyleString,
|
|
4838
4843
|
nonce: e.nonce || ""
|
|
4839
4844
|
}, null, 8, ["styles", "nonce"]),
|
|
4840
|
-
|
|
4845
|
+
R(s, {
|
|
4841
4846
|
id: "builderio-variants-visibility",
|
|
4842
4847
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
4843
4848
|
nonce: e.nonce || ""
|
|
4844
4849
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
4845
|
-
(
|
|
4850
|
+
(c(!0), p(T, null, V(e.getVariants(e.content), (u, m) => (c(), y(a, C({
|
|
4846
4851
|
key: u.testVariationId,
|
|
4847
4852
|
apiHost: e.apiHost,
|
|
4848
4853
|
isNestedRender: e.isNestedRender,
|
|
@@ -4866,8 +4871,8 @@ function Ti(e, t, n, o, r, i) {
|
|
|
4866
4871
|
contentWrapperProps: e.contentWrapperProps,
|
|
4867
4872
|
trustedHosts: e.trustedHosts
|
|
4868
4873
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
4869
|
-
], 64)) :
|
|
4870
|
-
|
|
4874
|
+
], 64)) : v("", !0),
|
|
4875
|
+
R(a, C({
|
|
4871
4876
|
apiHost: e.apiHost,
|
|
4872
4877
|
nonce: e.nonce,
|
|
4873
4878
|
isNestedRender: e.isNestedRender,
|
|
@@ -4894,13 +4899,13 @@ function Ti(e, t, n, o, r, i) {
|
|
|
4894
4899
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4895
4900
|
], 64);
|
|
4896
4901
|
}
|
|
4897
|
-
const
|
|
4902
|
+
const $i = /* @__PURE__ */ g(Ti, [["render", Ii]]), Ri = async ({
|
|
4898
4903
|
builderContextValue: e,
|
|
4899
4904
|
symbol: t
|
|
4900
4905
|
}) => {
|
|
4901
4906
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4902
4907
|
(e != null && e.apiKey))
|
|
4903
|
-
return
|
|
4908
|
+
return fe({
|
|
4904
4909
|
model: t.model,
|
|
4905
4910
|
apiKey: e.apiKey,
|
|
4906
4911
|
apiVersion: e.apiVersion,
|
|
@@ -4910,11 +4915,11 @@ const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), $i = async ({
|
|
|
4910
4915
|
}
|
|
4911
4916
|
}
|
|
4912
4917
|
}).catch((n) => {
|
|
4913
|
-
|
|
4918
|
+
E.error("Could not fetch symbol content: ", n);
|
|
4914
4919
|
});
|
|
4915
|
-
},
|
|
4920
|
+
}, Ei = b({
|
|
4916
4921
|
name: "builder-symbol",
|
|
4917
|
-
components: { ContentVariants:
|
|
4922
|
+
components: { ContentVariants: $i, DynamicDiv: Y },
|
|
4918
4923
|
props: [
|
|
4919
4924
|
"symbol",
|
|
4920
4925
|
"attributes",
|
|
@@ -4926,7 +4931,7 @@ const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), $i = async ({
|
|
|
4926
4931
|
],
|
|
4927
4932
|
data() {
|
|
4928
4933
|
var e;
|
|
4929
|
-
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs:
|
|
4934
|
+
return { contentToUse: (e = this.symbol) == null ? void 0 : e.content, filterAttrs: W };
|
|
4930
4935
|
},
|
|
4931
4936
|
mounted() {
|
|
4932
4937
|
this.setContent();
|
|
@@ -4963,7 +4968,7 @@ const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), $i = async ({
|
|
|
4963
4968
|
},
|
|
4964
4969
|
methods: {
|
|
4965
4970
|
setContent() {
|
|
4966
|
-
this.contentToUse ||
|
|
4971
|
+
this.contentToUse || Ri({
|
|
4967
4972
|
symbol: this.symbol,
|
|
4968
4973
|
builderContextValue: this.builderContext
|
|
4969
4974
|
}).then((e) => {
|
|
@@ -4972,11 +4977,11 @@ const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), $i = async ({
|
|
|
4972
4977
|
}
|
|
4973
4978
|
}
|
|
4974
4979
|
});
|
|
4975
|
-
function
|
|
4976
|
-
var l, a, u,
|
|
4977
|
-
const s =
|
|
4978
|
-
return
|
|
4979
|
-
|
|
4980
|
+
function Pi(e, t, n, o, r, i) {
|
|
4981
|
+
var l, a, u, m, h;
|
|
4982
|
+
const s = k("ContentVariants");
|
|
4983
|
+
return c(), p("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4984
|
+
R(s, {
|
|
4980
4985
|
nonce: e.builderContext.nonce,
|
|
4981
4986
|
isNestedRender: !0,
|
|
4982
4987
|
apiVersion: e.builderContext.apiVersion,
|
|
@@ -4989,10 +4994,10 @@ function Ei(e, t, n, o, r, i) {
|
|
|
4989
4994
|
data: {
|
|
4990
4995
|
...(a = e.symbol) == null ? void 0 : a.data,
|
|
4991
4996
|
...e.builderContext.localState,
|
|
4992
|
-
...(
|
|
4997
|
+
...(m = (u = e.contentToUse) == null ? void 0 : u.data) == null ? void 0 : m.state
|
|
4993
4998
|
},
|
|
4994
4999
|
canTrack: e.builderContext.canTrack,
|
|
4995
|
-
model: (
|
|
5000
|
+
model: (h = e.symbol) == null ? void 0 : h.model,
|
|
4996
5001
|
content: e.contentToUse,
|
|
4997
5002
|
linkComponent: e.builderLinkComponent,
|
|
4998
5003
|
blocksWrapper: e.blocksWrapper,
|
|
@@ -5000,44 +5005,44 @@ function Ei(e, t, n, o, r, i) {
|
|
|
5000
5005
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5001
5006
|
], 16);
|
|
5002
5007
|
}
|
|
5003
|
-
const
|
|
5008
|
+
const Bi = /* @__PURE__ */ g(Ei, [["render", Pi]]);
|
|
5004
5009
|
export {
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
5014
|
-
|
|
5010
|
+
En as A,
|
|
5011
|
+
ge as B,
|
|
5012
|
+
so as C,
|
|
5013
|
+
fe as D,
|
|
5014
|
+
Vi as E,
|
|
5015
|
+
co as F,
|
|
5016
|
+
Ui as G,
|
|
5017
|
+
yo as I,
|
|
5018
|
+
So as S,
|
|
5019
|
+
P as T,
|
|
5015
5020
|
Jr as V,
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5021
|
+
ye as _,
|
|
5022
|
+
Di as a,
|
|
5023
|
+
Mi as b,
|
|
5019
5024
|
D as c,
|
|
5020
|
-
|
|
5021
|
-
|
|
5025
|
+
be as d,
|
|
5026
|
+
g as e,
|
|
5022
5027
|
J as f,
|
|
5023
|
-
|
|
5024
|
-
|
|
5028
|
+
no as g,
|
|
5029
|
+
Li as h,
|
|
5025
5030
|
Z as i,
|
|
5026
5031
|
se as j,
|
|
5027
|
-
|
|
5028
|
-
|
|
5032
|
+
Ct as k,
|
|
5033
|
+
Bi as l,
|
|
5029
5034
|
Jo as m,
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5035
|
+
U as n,
|
|
5036
|
+
$i as o,
|
|
5037
|
+
B as p,
|
|
5038
|
+
Kt as q,
|
|
5039
|
+
qt as r,
|
|
5040
|
+
Gt as s,
|
|
5041
|
+
Wi as t,
|
|
5042
|
+
De as u,
|
|
5043
|
+
Ni as v,
|
|
5044
|
+
vi as w,
|
|
5045
|
+
Oi as x,
|
|
5046
|
+
Fi as y,
|
|
5047
|
+
Rn as z
|
|
5043
5048
|
};
|