@builder.io/sdk-vue 2.0.21 → 2.0.23
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-63wFxDc-.cjs → awaiter-G_oIEuat.cjs} +1 -1
- package/lib/browser/{awaiter-wFAQUD8u.js → awaiter-u5PXGRLo.js} +1 -1
- package/lib/browser/{block-styles-w3CYR9qS.cjs → block-styles-HMeGutPn.cjs} +1 -1
- package/lib/browser/{block-styles-e9UJWxRw.js → block-styles-wK6lFE9B.js} +1 -1
- package/lib/browser/{block-wrapper-BBK1LMQ8.js → block-wrapper-MKu8n7U7.js} +3 -3
- package/lib/browser/{block-wrapper-KE-bUIi7.cjs → block-wrapper-yu-xkfE4.cjs} +1 -1
- package/lib/browser/{component-ref-cecMbUuX.js → component-ref-78k364NZ.js} +3 -3
- package/lib/browser/{component-ref-e6CG1TqL.cjs → component-ref-qjYaeP3w.cjs} +1 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/evaluate/evaluate.d.ts +2 -1
- package/lib/browser/functions/evaluate/helpers.d.ts +0 -1
- package/lib/browser/get-block-properties-GhSltgo5.cjs +1 -0
- package/lib/browser/{get-block-properties-JZrAY1r_.js → get-block-properties-XqXSwZFG.js} +12 -13
- package/lib/browser/index-CtUCszME.cjs +166 -0
- package/lib/browser/{index-ei0E4zOL.js → index-seWAP4vy.js} +672 -704
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{repeated-block-4KouNbyE.js → repeated-block-8i7afs5q.js} +2 -2
- package/lib/browser/{repeated-block-5kGcO6DI.cjs → repeated-block-Bx7DKHbW.cjs} +1 -1
- package/lib/browser/types/input.d.ts +1 -1
- package/lib/edge/{awaiter-aq8paHrs.cjs → awaiter-PIsCfK7c.cjs} +1 -1
- package/lib/edge/{awaiter-byTF6qeD.js → awaiter-QMFq6Byd.js} +1 -1
- package/lib/edge/{block-styles-sHjSbOMY.cjs → block-styles-AHO5DXSi.cjs} +1 -1
- package/lib/edge/{block-styles-8MRmenjP.js → block-styles-U4E7ZMFT.js} +1 -1
- package/lib/edge/{block-wrapper-rzB4thH4.js → block-wrapper-NqtVmoR7.js} +3 -3
- package/lib/edge/{block-wrapper-ilLh_PHh.cjs → block-wrapper-OPLSNoIA.cjs} +1 -1
- package/lib/edge/{component-ref-hkYDlUjG.js → component-ref-IUycKXa3.js} +3 -3
- package/lib/edge/{component-ref-FJL2g6D2.cjs → component-ref-xq2wlUSE.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/evaluate/evaluate.d.ts +2 -1
- package/lib/edge/functions/evaluate/helpers.d.ts +0 -1
- package/lib/edge/get-block-properties-byaSZogH.cjs +1 -0
- package/lib/edge/{get-block-properties-cbYhtG2B.js → get-block-properties-mO8Gxq92.js} +14 -15
- package/lib/edge/index-N7pU-PUB.cjs +184 -0
- package/lib/edge/{index-s36DlX8g.js → index-iOFRbVWh.js} +1279 -1311
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/repeated-block-keRWtfEG.cjs → edge/repeated-block-ZzGKcGjr.cjs} +1 -1
- package/lib/edge/{repeated-block-zOlg6ACd.js → repeated-block-bNufaRuJ.js} +2 -2
- package/lib/edge/types/input.d.ts +1 -1
- package/lib/node/{awaiter-Fsn-BZdK.cjs → awaiter-H1oynBsE.cjs} +1 -1
- package/lib/node/{awaiter-c00-BKl8.js → awaiter-IQFut22y.js} +1 -1
- package/lib/node/{block-styles-dNkK6XUk.cjs → block-styles-RuFPwMXh.cjs} +1 -1
- package/lib/node/{block-styles-y32fRgui.js → block-styles-VnxJDeth.js} +1 -1
- package/lib/node/{block-wrapper-Gb1-_hO0.js → block-wrapper-0QkyDUi8.js} +3 -3
- package/lib/node/{block-wrapper-9SHqyGhh.cjs → block-wrapper-Rdrsg2md.cjs} +1 -1
- package/lib/node/{component-ref-9ri0cWhO.js → component-ref-ykrv8SqH.js} +3 -3
- package/lib/node/{component-ref-LAJelZZi.cjs → component-ref-zfHcvc9C.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/evaluate/evaluate.d.ts +2 -1
- package/lib/node/functions/evaluate/helpers.d.ts +0 -1
- package/lib/node/get-block-properties-hwulPF6s.cjs +1 -0
- package/lib/node/{get-block-properties-hbwsLjcS.js → get-block-properties-vdmQ9Xzy.js} +6 -7
- package/lib/node/{index-owOkjqS8.js → index-Iiftot2Q.js} +665 -697
- package/lib/node/index-kUJl6uPe.cjs +166 -0
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +1 -1
- package/lib/node/{repeated-block-xs28_Dw4.js → repeated-block-3sBOF_Jy.js} +2 -2
- package/lib/{edge/repeated-block-wdJ005G3.cjs → node/repeated-block-lp57jnam.cjs} +1 -1
- package/lib/node/types/input.d.ts +1 -1
- package/package.json +1 -1
- package/lib/browser/get-block-properties-8qBDZMKr.cjs +0 -1
- package/lib/browser/index-uR3yr3o2.cjs +0 -166
- package/lib/edge/get-block-properties-aM96dauJ.cjs +0 -1
- package/lib/edge/index-Nw62yGCU.cjs +0 -184
- package/lib/node/get-block-properties-XKVJQeGu.cjs +0 -1
- package/lib/node/index-eLulgxIT.cjs +0 -166
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
var ut = Object.defineProperty;
|
|
2
|
-
var pt = (e, t, n) => t in e ? ut(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var oe = (e, t, n) => (pt(e, typeof t != "symbol" ? t + "" : t, n), n);
|
|
4
1
|
import "./style.css";
|
|
5
|
-
import { defineComponent as f, openBlock as c, createElementBlock as m, Fragment as w, createBlock as g, resolveDynamicComponent as
|
|
6
|
-
const
|
|
2
|
+
import { defineComponent as f, openBlock as c, createElementBlock as m, Fragment as w, createBlock as g, resolveDynamicComponent as j, mergeProps as C, toHandlers as B, withCtx as W, renderSlot as x, resolveComponent as y, createTextVNode as ct, toDisplayString as ee, defineAsyncComponent as M, createVNode as $, renderList as A, createCommentVNode as S, h as Pe, createElementVNode as K, normalizeStyle as F, normalizeClass as q, markRaw as dt } from "vue";
|
|
3
|
+
const ut = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), pt = (e) => typeof e == "string" && ut.has(e.toLowerCase());
|
|
7
4
|
function V(e = {}, t, n) {
|
|
8
5
|
const o = {};
|
|
9
6
|
for (const r in e) {
|
|
@@ -14,11 +11,11 @@ function V(e = {}, t, n) {
|
|
|
14
11
|
}
|
|
15
12
|
return o;
|
|
16
13
|
}
|
|
17
|
-
const
|
|
14
|
+
const mt = f({
|
|
18
15
|
name: "dynamic-renderer",
|
|
19
16
|
props: ["TagName", "attributes", "actionAttributes"],
|
|
20
17
|
data() {
|
|
21
|
-
return { isEmptyElement:
|
|
18
|
+
return { isEmptyElement: pt };
|
|
22
19
|
}
|
|
23
20
|
}), b = (e, t) => {
|
|
24
21
|
const n = e.__vccOpts || e;
|
|
@@ -26,26 +23,26 @@ const gt = f({
|
|
|
26
23
|
n[o] = r;
|
|
27
24
|
return n;
|
|
28
25
|
};
|
|
29
|
-
function
|
|
30
|
-
return e.isEmptyElement(e.TagName) ? (c(), g(
|
|
31
|
-
typeof e.TagName == "string" ? (c(), g(
|
|
32
|
-
default:
|
|
26
|
+
function ht(e, t, n, o, r, i) {
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (c(), g(j(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), null, 16)) : (c(), m(w, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (c(), g(j(e.TagName), C({ key: 0 }, e.attributes, B(e.actionAttributes)), {
|
|
29
|
+
default: W(() => [
|
|
33
30
|
x(e.$slots, "default")
|
|
34
31
|
]),
|
|
35
32
|
_: 3
|
|
36
|
-
}, 16)) : (c(), g(
|
|
37
|
-
default:
|
|
33
|
+
}, 16)) : (c(), g(j(e.TagName), C({ key: 1 }, e.attributes, B(e.actionAttributes)), {
|
|
34
|
+
default: W(() => [
|
|
38
35
|
x(e.$slots, "default")
|
|
39
36
|
]),
|
|
40
37
|
_: 3
|
|
41
38
|
}, 16))
|
|
42
39
|
], 64));
|
|
43
40
|
}
|
|
44
|
-
const
|
|
41
|
+
const de = /* @__PURE__ */ b(mt, [["render", ht]]), Pi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
45
42
|
__proto__: null,
|
|
46
|
-
default:
|
|
47
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
48
|
-
switch (
|
|
43
|
+
default: de
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), P = "vue", Z = () => {
|
|
45
|
+
switch (P) {
|
|
49
46
|
case "react":
|
|
50
47
|
case "reactNative":
|
|
51
48
|
case "rsc":
|
|
@@ -57,9 +54,9 @@ const me = /* @__PURE__ */ b(gt, [["render", yt]]), Vi = /* @__PURE__ */ Object.
|
|
|
57
54
|
case "angular":
|
|
58
55
|
return "class";
|
|
59
56
|
}
|
|
60
|
-
},
|
|
57
|
+
}, ft = f({
|
|
61
58
|
name: "builder-button",
|
|
62
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: de },
|
|
63
60
|
props: [
|
|
64
61
|
"attributes",
|
|
65
62
|
"link",
|
|
@@ -74,7 +71,7 @@ const me = /* @__PURE__ */ b(gt, [["render", yt]]), Vi = /* @__PURE__ */ Object.
|
|
|
74
71
|
attrs() {
|
|
75
72
|
return {
|
|
76
73
|
...V(this.attributes, "v-on:", !1),
|
|
77
|
-
[
|
|
74
|
+
[Z()]: `${this.link ? "" : "builder-button"} ${this.attributes[Z()] || ""}`,
|
|
78
75
|
...this.link ? {
|
|
79
76
|
href: this.link,
|
|
80
77
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -86,20 +83,20 @@ const me = /* @__PURE__ */ b(gt, [["render", yt]]), Vi = /* @__PURE__ */ Object.
|
|
|
86
83
|
}
|
|
87
84
|
}
|
|
88
85
|
});
|
|
89
|
-
function
|
|
86
|
+
function bt(e, t, n, o, r, i) {
|
|
90
87
|
const s = y("DynamicRenderer");
|
|
91
88
|
return c(), g(s, {
|
|
92
89
|
attributes: e.attrs(),
|
|
93
90
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
94
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
95
92
|
}, {
|
|
96
|
-
default:
|
|
97
|
-
|
|
93
|
+
default: W(() => [
|
|
94
|
+
ct(ee(e.text), 1)
|
|
98
95
|
]),
|
|
99
96
|
_: 1
|
|
100
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
101
98
|
}
|
|
102
|
-
const
|
|
99
|
+
const gt = /* @__PURE__ */ b(ft, [["render", bt]]), yt = Symbol(), se = {
|
|
103
100
|
Builder: {
|
|
104
101
|
content: null,
|
|
105
102
|
context: {},
|
|
@@ -115,54 +112,57 @@ const St = /* @__PURE__ */ b(kt, [["render", vt]]), Ct = Symbol(), ce = {
|
|
|
115
112
|
BlocksWrapperProps: {},
|
|
116
113
|
nonce: ""
|
|
117
114
|
},
|
|
118
|
-
key:
|
|
119
|
-
},
|
|
115
|
+
key: yt
|
|
116
|
+
}, kt = Symbol(), Be = {
|
|
120
117
|
Components: { registeredComponents: {} },
|
|
121
|
-
key:
|
|
118
|
+
key: kt
|
|
122
119
|
};
|
|
123
|
-
function
|
|
120
|
+
function vt(e) {
|
|
124
121
|
var t;
|
|
125
122
|
return {
|
|
126
123
|
...(t = e.component) == null ? void 0 : t.options,
|
|
127
124
|
...e.options
|
|
128
125
|
};
|
|
129
126
|
}
|
|
130
|
-
function
|
|
127
|
+
function St(e, ...t) {
|
|
131
128
|
const n = Object.assign({}, e);
|
|
132
129
|
for (const o of t)
|
|
133
130
|
delete n[o];
|
|
134
131
|
return n;
|
|
135
132
|
}
|
|
136
|
-
const
|
|
137
|
-
log: (...e) => console.log(
|
|
138
|
-
error: (...e) => console.error(
|
|
139
|
-
warn: (...e) => console.warn(
|
|
140
|
-
debug: (...e) => console.debug(
|
|
133
|
+
const X = "[Builder.io]: ", E = {
|
|
134
|
+
log: (...e) => console.log(X, ...e),
|
|
135
|
+
error: (...e) => console.error(X, ...e),
|
|
136
|
+
warn: (...e) => console.warn(X, ...e),
|
|
137
|
+
debug: (...e) => console.debug(X, ...e)
|
|
138
|
+
}, xe = (e, t, n) => {
|
|
139
|
+
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
140
|
+
return o === void 0 || o === e ? n : o;
|
|
141
141
|
};
|
|
142
142
|
function I() {
|
|
143
143
|
return typeof window < "u" && typeof document < "u";
|
|
144
144
|
}
|
|
145
|
-
const
|
|
145
|
+
const Ct = (e) => {
|
|
146
146
|
const t = {};
|
|
147
147
|
return e.forEach((n, o) => {
|
|
148
148
|
t[o] = n;
|
|
149
149
|
}), t;
|
|
150
|
-
},
|
|
151
|
-
function
|
|
150
|
+
}, Ae = (e) => e instanceof URLSearchParams ? Ct(e) : e, Ve = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
151
|
+
function wt() {
|
|
152
152
|
return I() && window.self !== window.top;
|
|
153
153
|
}
|
|
154
154
|
function R(e) {
|
|
155
|
-
return
|
|
156
|
-
|
|
155
|
+
return wt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
156
|
+
Ve(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
157
157
|
}
|
|
158
|
-
const
|
|
158
|
+
const Tt = () => {
|
|
159
159
|
if (I()) {
|
|
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
|
+
}, It = () => typeof navigator == "object" && navigator.userAgent || "", We = () => {
|
|
165
|
+
const e = It(), t = {
|
|
166
166
|
Android() {
|
|
167
167
|
return e.match(/Android/i);
|
|
168
168
|
},
|
|
@@ -179,15 +179,15 @@ const Bt = () => {
|
|
|
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 = Tt();
|
|
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
|
+
}, $t = ({
|
|
191
191
|
builder: e,
|
|
192
192
|
context: t,
|
|
193
193
|
event: n,
|
|
@@ -199,15 +199,15 @@ const Bt = () => {
|
|
|
199
199
|
builder: e,
|
|
200
200
|
context: t,
|
|
201
201
|
event: n
|
|
202
|
-
}),
|
|
202
|
+
}), Rt = () => ({
|
|
203
203
|
isEditing: R(),
|
|
204
204
|
isBrowser: I(),
|
|
205
205
|
isServer: !I(),
|
|
206
|
-
getUserAttributes: () =>
|
|
207
|
-
}),
|
|
206
|
+
getUserAttributes: () => We()
|
|
207
|
+
}), Et = (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 Ne({
|
|
211
211
|
rootState: e,
|
|
212
212
|
localState: t,
|
|
213
213
|
rootSetState: n
|
|
@@ -217,7 +217,7 @@ function Fe({
|
|
|
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 ? Ne({
|
|
221
221
|
rootState: i,
|
|
222
222
|
localState: void 0,
|
|
223
223
|
rootSetState: n ? (s) => {
|
|
@@ -232,7 +232,7 @@ function Fe({
|
|
|
232
232
|
}
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
|
-
const
|
|
235
|
+
const ke = ({
|
|
236
236
|
code: e,
|
|
237
237
|
builder: t,
|
|
238
238
|
context: n,
|
|
@@ -241,115 +241,94 @@ const Ce = ({
|
|
|
241
241
|
rootSetState: i,
|
|
242
242
|
rootState: s
|
|
243
243
|
}) => {
|
|
244
|
-
const l =
|
|
244
|
+
const l = $t({
|
|
245
245
|
builder: t,
|
|
246
246
|
context: n,
|
|
247
247
|
event: o,
|
|
248
|
-
state:
|
|
248
|
+
state: Ne({
|
|
249
249
|
rootState: s,
|
|
250
250
|
localState: r,
|
|
251
251
|
rootSetState: i
|
|
252
252
|
})
|
|
253
253
|
});
|
|
254
254
|
return new Function(...l.map(([a]) => a), e)(...l.map(([, a]) => a));
|
|
255
|
-
},
|
|
256
|
-
function
|
|
255
|
+
}, D = (e) => e != null;
|
|
256
|
+
function Pt() {
|
|
257
257
|
var e;
|
|
258
|
-
return typeof process < "u" &&
|
|
258
|
+
return typeof process < "u" && D((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
259
259
|
}
|
|
260
|
-
const
|
|
260
|
+
const Bt = ({
|
|
261
261
|
shouldLogWarning: e
|
|
262
262
|
}) => {
|
|
263
263
|
var r;
|
|
264
|
-
if (!
|
|
264
|
+
if (!Pt())
|
|
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
|
+
}, xt = (e) => (I() || Bt({
|
|
269
269
|
shouldLogWarning: !0
|
|
270
|
-
}),
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
...t,
|
|
274
|
-
// replace the event with a random number to break cache
|
|
275
|
-
// thats because we can't serialize the event object due to circular refs in DOM node refs.
|
|
276
|
-
event: t.event ? Math.random() : void 0
|
|
277
|
-
});
|
|
278
|
-
}
|
|
279
|
-
static getCachedValue(t) {
|
|
280
|
-
return W.cache.get(t);
|
|
281
|
-
}
|
|
282
|
-
static setCachedValue(t, n) {
|
|
283
|
-
W.cache.size > 20 && W.cache.delete(W.cache.keys().next().value), W.cache.set(t, {
|
|
284
|
-
value: n
|
|
285
|
-
});
|
|
286
|
-
}
|
|
270
|
+
}), ke(e)), At = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, Vt = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, Wt = (e) => {
|
|
271
|
+
var t, n, o, r, i, s;
|
|
272
|
+
return ((o = (n = (t = At.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = Vt.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
287
273
|
};
|
|
288
|
-
|
|
289
|
-
let U = W;
|
|
290
|
-
function Y({
|
|
274
|
+
function J({
|
|
291
275
|
code: e,
|
|
292
276
|
context: t,
|
|
293
277
|
localState: n,
|
|
294
278
|
rootState: o,
|
|
295
279
|
rootSetState: r,
|
|
296
280
|
event: i,
|
|
297
|
-
isExpression: s = !0
|
|
298
|
-
enableCache: l
|
|
281
|
+
isExpression: s = !0
|
|
299
282
|
}) {
|
|
300
|
-
if (e === "")
|
|
283
|
+
if (e.trim() === "")
|
|
301
284
|
return;
|
|
285
|
+
const l = Wt(e.trim());
|
|
286
|
+
if (l)
|
|
287
|
+
return xe({
|
|
288
|
+
...o,
|
|
289
|
+
...n
|
|
290
|
+
}, l);
|
|
302
291
|
const a = {
|
|
303
|
-
code:
|
|
292
|
+
code: Et(e, {
|
|
304
293
|
isExpression: s
|
|
305
294
|
}),
|
|
306
|
-
builder:
|
|
295
|
+
builder: Rt(),
|
|
307
296
|
context: t,
|
|
308
297
|
event: i,
|
|
309
298
|
rootSetState: r,
|
|
310
299
|
rootState: o,
|
|
311
300
|
localState: n
|
|
312
301
|
};
|
|
313
|
-
if (l && !Ot) {
|
|
314
|
-
const u = U.getCacheKey(a), h = U.getCachedValue(u);
|
|
315
|
-
if (h)
|
|
316
|
-
return h.value;
|
|
317
|
-
}
|
|
318
302
|
try {
|
|
319
|
-
|
|
320
|
-
if (l) {
|
|
321
|
-
const h = U.getCacheKey(a);
|
|
322
|
-
U.setCachedValue(h, u);
|
|
323
|
-
}
|
|
324
|
-
return u;
|
|
303
|
+
return xt(a);
|
|
325
304
|
} catch (u) {
|
|
326
|
-
|
|
305
|
+
E.error("Failed code evaluation: " + u.message, {
|
|
327
306
|
code: e
|
|
328
307
|
});
|
|
329
308
|
return;
|
|
330
309
|
}
|
|
331
310
|
}
|
|
332
|
-
const
|
|
311
|
+
const ue = (e) => JSON.parse(JSON.stringify(e)), Oe = (e, t, n) => {
|
|
333
312
|
if (Object(e) !== e)
|
|
334
313
|
return e;
|
|
335
314
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
336
315
|
return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
337
316
|
};
|
|
338
|
-
function
|
|
317
|
+
function ae(e) {
|
|
339
318
|
if (e === null || typeof e != "object")
|
|
340
319
|
return e;
|
|
341
320
|
if (Array.isArray(e))
|
|
342
|
-
return e.map((n) =>
|
|
321
|
+
return e.map((n) => ae(n));
|
|
343
322
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
344
323
|
return e;
|
|
345
324
|
const t = {};
|
|
346
325
|
for (const n in e)
|
|
347
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
326
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ae(e[n]));
|
|
348
327
|
return t;
|
|
349
328
|
}
|
|
350
|
-
const
|
|
351
|
-
if (
|
|
352
|
-
const t =
|
|
329
|
+
const Nt = ["svelte", "vue", "angular", "qwik", "solid"].includes(P), Ot = (e) => {
|
|
330
|
+
if (Nt) {
|
|
331
|
+
const t = ue(e);
|
|
353
332
|
return {
|
|
354
333
|
...t,
|
|
355
334
|
properties: {
|
|
@@ -360,7 +339,7 @@ const Ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Dt = (e) =
|
|
|
360
339
|
}
|
|
361
340
|
};
|
|
362
341
|
} else {
|
|
363
|
-
const t =
|
|
342
|
+
const t = ae(St(e, "children", "meta"));
|
|
364
343
|
return {
|
|
365
344
|
...t,
|
|
366
345
|
properties: {
|
|
@@ -373,7 +352,7 @@ const Ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Dt = (e) =
|
|
|
373
352
|
meta: e.meta
|
|
374
353
|
};
|
|
375
354
|
}
|
|
376
|
-
},
|
|
355
|
+
}, Ft = ({
|
|
377
356
|
block: e,
|
|
378
357
|
context: t,
|
|
379
358
|
localState: n,
|
|
@@ -382,21 +361,20 @@ const Ft = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Dt = (e) =
|
|
|
382
361
|
}) => {
|
|
383
362
|
if (!e.bindings)
|
|
384
363
|
return e;
|
|
385
|
-
const i =
|
|
364
|
+
const i = Ot(e);
|
|
386
365
|
for (const s in e.bindings) {
|
|
387
|
-
const l = e.bindings[s], a =
|
|
366
|
+
const l = e.bindings[s], a = J({
|
|
388
367
|
code: l,
|
|
389
368
|
localState: n,
|
|
390
369
|
rootState: o,
|
|
391
370
|
rootSetState: r,
|
|
392
|
-
context: t
|
|
393
|
-
enableCache: !0
|
|
371
|
+
context: t
|
|
394
372
|
});
|
|
395
|
-
|
|
373
|
+
Oe(i, s, a);
|
|
396
374
|
}
|
|
397
375
|
return i;
|
|
398
376
|
};
|
|
399
|
-
function
|
|
377
|
+
function Dt({
|
|
400
378
|
block: e,
|
|
401
379
|
context: t,
|
|
402
380
|
shouldEvaluateBindings: n,
|
|
@@ -405,7 +383,7 @@ function Ut({
|
|
|
405
383
|
rootSetState: i
|
|
406
384
|
}) {
|
|
407
385
|
const s = e;
|
|
408
|
-
return n ?
|
|
386
|
+
return n ? Ft({
|
|
409
387
|
block: s,
|
|
410
388
|
localState: o,
|
|
411
389
|
rootState: r,
|
|
@@ -413,25 +391,25 @@ function Ut({
|
|
|
413
391
|
context: t
|
|
414
392
|
}) : s;
|
|
415
393
|
}
|
|
416
|
-
function
|
|
394
|
+
function Lt(e) {
|
|
417
395
|
const t = e || (I() ? window.location.search : void 0);
|
|
418
|
-
return t ?
|
|
396
|
+
return t ? Ve(t).indexOf("builder.preview=") !== -1 : !1;
|
|
419
397
|
}
|
|
420
|
-
const
|
|
398
|
+
const Ut = (e) => ({
|
|
421
399
|
type: "builder.registerComponent",
|
|
422
|
-
data:
|
|
423
|
-
}),
|
|
400
|
+
data: _(e)
|
|
401
|
+
}), Mt = (e) => {
|
|
424
402
|
const t = e.toString().trim();
|
|
425
403
|
return `return (${!t.startsWith("function") && !t.startsWith("(") ? "function " : ""}${t}).apply(this, arguments)`;
|
|
426
404
|
};
|
|
427
|
-
function
|
|
428
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
405
|
+
function _(e) {
|
|
406
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Mt(n) : n));
|
|
429
407
|
}
|
|
430
|
-
const
|
|
431
|
-
function
|
|
432
|
-
e === "plugin" && (t =
|
|
433
|
-
let n =
|
|
434
|
-
if (n || (n =
|
|
408
|
+
const ve = {};
|
|
409
|
+
function jt(e, t) {
|
|
410
|
+
e === "plugin" && (t = _(t));
|
|
411
|
+
let n = ve[e];
|
|
412
|
+
if (n || (n = ve[e] = []), n.push(t), I()) {
|
|
435
413
|
const o = {
|
|
436
414
|
type: "builder.register",
|
|
437
415
|
data: {
|
|
@@ -446,38 +424,38 @@ function Kt(e, t) {
|
|
|
446
424
|
}
|
|
447
425
|
}
|
|
448
426
|
}
|
|
449
|
-
const
|
|
450
|
-
function
|
|
427
|
+
const Se = {};
|
|
428
|
+
function Bi(e) {
|
|
451
429
|
if (I()) {
|
|
452
|
-
Object.assign(
|
|
430
|
+
Object.assign(Se, e);
|
|
453
431
|
const t = {
|
|
454
432
|
type: "builder.settingsChange",
|
|
455
|
-
data:
|
|
433
|
+
data: Se
|
|
456
434
|
};
|
|
457
435
|
parent.postMessage(t, "*");
|
|
458
436
|
}
|
|
459
437
|
}
|
|
460
|
-
const
|
|
438
|
+
const Ce = "builder.", Ht = "options.", Fe = (e) => {
|
|
461
439
|
if (!e)
|
|
462
440
|
return {};
|
|
463
|
-
const t =
|
|
441
|
+
const t = Ae(e), n = {};
|
|
464
442
|
return Object.keys(t).forEach((o) => {
|
|
465
|
-
if (o.startsWith(
|
|
466
|
-
const r = o.replace(
|
|
443
|
+
if (o.startsWith(Ce)) {
|
|
444
|
+
const r = o.replace(Ce, "").replace(Ht, "");
|
|
467
445
|
n[r] = t[o];
|
|
468
446
|
}
|
|
469
447
|
}), n;
|
|
470
|
-
},
|
|
448
|
+
}, Kt = () => {
|
|
471
449
|
if (!I())
|
|
472
450
|
return {};
|
|
473
451
|
const e = new URLSearchParams(window.location.search);
|
|
474
|
-
return
|
|
475
|
-
},
|
|
452
|
+
return Fe(e);
|
|
453
|
+
}, qt = (e) => {
|
|
476
454
|
if (e === "localhost" || e === "127.0.0.1")
|
|
477
455
|
return e;
|
|
478
456
|
const t = e.split(".");
|
|
479
457
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
480
|
-
},
|
|
458
|
+
}, De = ({
|
|
481
459
|
name: e,
|
|
482
460
|
canTrack: t
|
|
483
461
|
}) => {
|
|
@@ -485,17 +463,17 @@ const Ie = "builder.", qt = "options.", Le = (e) => {
|
|
|
485
463
|
try {
|
|
486
464
|
return t ? (n = document.cookie.split("; ").find((o) => o.startsWith(`${e}=`))) == null ? void 0 : n.split("=")[1] : void 0;
|
|
487
465
|
} catch (o) {
|
|
488
|
-
|
|
466
|
+
E.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
489
467
|
return;
|
|
490
468
|
}
|
|
491
|
-
},
|
|
469
|
+
}, Le = async (e) => De(e), zt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(D).join("; "), Jt = [["secure", ""], ["SameSite", "None"]], Gt = ({
|
|
492
470
|
name: e,
|
|
493
471
|
value: t,
|
|
494
472
|
expires: n
|
|
495
473
|
}) => {
|
|
496
|
-
const r = (I() ? location.protocol === "https:" : !0) ?
|
|
497
|
-
return
|
|
498
|
-
},
|
|
474
|
+
const r = (I() ? location.protocol === "https:" : !0) ? Jt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", qt(window.location.hostname)], ...r];
|
|
475
|
+
return zt(s);
|
|
476
|
+
}, Ue = async ({
|
|
499
477
|
name: e,
|
|
500
478
|
value: t,
|
|
501
479
|
expires: n,
|
|
@@ -504,98 +482,98 @@ const Ie = "builder.", qt = "options.", Le = (e) => {
|
|
|
504
482
|
try {
|
|
505
483
|
if (!o)
|
|
506
484
|
return;
|
|
507
|
-
const r =
|
|
485
|
+
const r = Gt({
|
|
508
486
|
name: e,
|
|
509
487
|
value: t,
|
|
510
488
|
expires: n
|
|
511
489
|
});
|
|
512
490
|
document.cookie = r;
|
|
513
491
|
} catch (r) {
|
|
514
|
-
|
|
492
|
+
E.warn("[COOKIE] SET error: ", (r == null ? void 0 : r.message) || r);
|
|
515
493
|
}
|
|
516
494
|
};
|
|
517
|
-
function
|
|
495
|
+
function Yt() {
|
|
518
496
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(e) {
|
|
519
497
|
const t = Math.random() * 16 | 0;
|
|
520
498
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
521
499
|
});
|
|
522
500
|
}
|
|
523
|
-
function
|
|
524
|
-
return
|
|
501
|
+
function Me() {
|
|
502
|
+
return Yt().replace(/-/g, "");
|
|
525
503
|
}
|
|
526
|
-
const
|
|
504
|
+
const je = "builderSessionId", Xt = async ({
|
|
527
505
|
canTrack: e
|
|
528
506
|
}) => {
|
|
529
507
|
if (!e)
|
|
530
508
|
return;
|
|
531
|
-
const t = await
|
|
532
|
-
name:
|
|
509
|
+
const t = await Le({
|
|
510
|
+
name: je,
|
|
533
511
|
canTrack: e
|
|
534
512
|
});
|
|
535
|
-
if (
|
|
513
|
+
if (D(t))
|
|
536
514
|
return t;
|
|
537
515
|
{
|
|
538
|
-
const n =
|
|
539
|
-
return
|
|
516
|
+
const n = Qt();
|
|
517
|
+
return Zt({
|
|
540
518
|
id: n,
|
|
541
519
|
canTrack: e
|
|
542
520
|
}), n;
|
|
543
521
|
}
|
|
544
|
-
},
|
|
522
|
+
}, Qt = () => Me(), Zt = ({
|
|
545
523
|
id: e,
|
|
546
524
|
canTrack: t
|
|
547
|
-
}) =>
|
|
548
|
-
name:
|
|
525
|
+
}) => Ue({
|
|
526
|
+
name: je,
|
|
549
527
|
value: e,
|
|
550
528
|
canTrack: t
|
|
551
|
-
}),
|
|
529
|
+
}), He = () => I() && typeof localStorage < "u" ? localStorage : void 0, _t = ({
|
|
552
530
|
key: e,
|
|
553
531
|
canTrack: t
|
|
554
532
|
}) => {
|
|
555
533
|
var n;
|
|
556
534
|
try {
|
|
557
|
-
return t ? (n =
|
|
535
|
+
return t ? (n = He()) == null ? void 0 : n.getItem(e) : void 0;
|
|
558
536
|
} catch (o) {
|
|
559
537
|
console.debug("[LocalStorage] GET error: ", o);
|
|
560
538
|
return;
|
|
561
539
|
}
|
|
562
|
-
},
|
|
540
|
+
}, en = ({
|
|
563
541
|
key: e,
|
|
564
542
|
canTrack: t,
|
|
565
543
|
value: n
|
|
566
544
|
}) => {
|
|
567
545
|
var o;
|
|
568
546
|
try {
|
|
569
|
-
t && ((o =
|
|
547
|
+
t && ((o = He()) == null || o.setItem(e, n));
|
|
570
548
|
} catch (r) {
|
|
571
549
|
console.debug("[LocalStorage] SET error: ", r);
|
|
572
550
|
}
|
|
573
|
-
},
|
|
551
|
+
}, Ke = "builderVisitorId", tn = ({
|
|
574
552
|
canTrack: e
|
|
575
553
|
}) => {
|
|
576
554
|
if (!e)
|
|
577
555
|
return;
|
|
578
|
-
const t =
|
|
579
|
-
key:
|
|
556
|
+
const t = _t({
|
|
557
|
+
key: Ke,
|
|
580
558
|
canTrack: e
|
|
581
559
|
});
|
|
582
|
-
if (
|
|
560
|
+
if (D(t))
|
|
583
561
|
return t;
|
|
584
562
|
{
|
|
585
|
-
const n =
|
|
586
|
-
return
|
|
563
|
+
const n = nn();
|
|
564
|
+
return on({
|
|
587
565
|
id: n,
|
|
588
566
|
canTrack: e
|
|
589
567
|
}), n;
|
|
590
568
|
}
|
|
591
|
-
},
|
|
569
|
+
}, nn = () => Me(), on = ({
|
|
592
570
|
id: e,
|
|
593
571
|
canTrack: t
|
|
594
|
-
}) =>
|
|
595
|
-
key:
|
|
572
|
+
}) => en({
|
|
573
|
+
key: Ke,
|
|
596
574
|
value: e,
|
|
597
575
|
canTrack: t
|
|
598
|
-
}),
|
|
576
|
+
}), rn = async ({
|
|
599
577
|
canTrack: e
|
|
600
578
|
}) => {
|
|
601
579
|
if (!e)
|
|
@@ -603,16 +581,16 @@ const Ke = "builderSessionId", Zt = async ({
|
|
|
603
581
|
visitorId: void 0,
|
|
604
582
|
sessionId: void 0
|
|
605
583
|
};
|
|
606
|
-
const t = await
|
|
584
|
+
const t = await Xt({
|
|
607
585
|
canTrack: e
|
|
608
|
-
}), n =
|
|
586
|
+
}), n = tn({
|
|
609
587
|
canTrack: e
|
|
610
588
|
});
|
|
611
589
|
return {
|
|
612
590
|
sessionId: t,
|
|
613
591
|
visitorId: n
|
|
614
592
|
};
|
|
615
|
-
},
|
|
593
|
+
}, sn = async ({
|
|
616
594
|
type: e,
|
|
617
595
|
canTrack: t,
|
|
618
596
|
apiKey: n,
|
|
@@ -626,23 +604,23 @@ const Ke = "builderSessionId", Zt = async ({
|
|
|
626
604
|
url: location.href,
|
|
627
605
|
...o
|
|
628
606
|
},
|
|
629
|
-
...await
|
|
607
|
+
...await rn({
|
|
630
608
|
canTrack: t
|
|
631
609
|
}),
|
|
632
|
-
userAttributes:
|
|
610
|
+
userAttributes: We(),
|
|
633
611
|
ownerId: n
|
|
634
612
|
}
|
|
635
613
|
});
|
|
636
|
-
async function
|
|
614
|
+
async function le(e) {
|
|
637
615
|
if (!e.apiKey) {
|
|
638
|
-
|
|
616
|
+
E.error("Missing API key for track call. Please provide your API key.");
|
|
639
617
|
return;
|
|
640
618
|
}
|
|
641
|
-
if (e.canTrack && !R() && (I() ||
|
|
619
|
+
if (e.canTrack && !R() && (I() || P === "reactNative"))
|
|
642
620
|
return fetch("https://cdn.builder.io/api/v1/track", {
|
|
643
621
|
method: "POST",
|
|
644
622
|
body: JSON.stringify({
|
|
645
|
-
events: [await
|
|
623
|
+
events: [await sn(e)]
|
|
646
624
|
}),
|
|
647
625
|
headers: {
|
|
648
626
|
"content-type": "application/json"
|
|
@@ -652,18 +630,18 @@ async function ue(e) {
|
|
|
652
630
|
console.error("Failed to track: ", t);
|
|
653
631
|
});
|
|
654
632
|
}
|
|
655
|
-
const
|
|
633
|
+
const xi = (e) => le({
|
|
656
634
|
...e,
|
|
657
635
|
canTrack: !0
|
|
658
|
-
}),
|
|
659
|
-
function
|
|
636
|
+
}), an = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
637
|
+
function qe(e, t) {
|
|
660
638
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
661
639
|
return !1;
|
|
662
640
|
const n = new URL(t.origin), o = n.hostname;
|
|
663
|
-
return (e ||
|
|
641
|
+
return (e || an).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
664
642
|
}
|
|
665
|
-
const
|
|
666
|
-
|
|
643
|
+
const ln = "2.0.23", cn = () => {
|
|
644
|
+
jt("insertMenu", {
|
|
667
645
|
name: "_default",
|
|
668
646
|
default: !0,
|
|
669
647
|
items: [{
|
|
@@ -685,14 +663,14 @@ const dn = "2.0.21", un = () => {
|
|
|
685
663
|
}]
|
|
686
664
|
});
|
|
687
665
|
};
|
|
688
|
-
let
|
|
689
|
-
const
|
|
666
|
+
let we = !1;
|
|
667
|
+
const ze = (e = {}) => {
|
|
690
668
|
var t, n;
|
|
691
|
-
|
|
669
|
+
we || (we = !0, I() && ((t = window.parent) == null || t.postMessage({
|
|
692
670
|
type: "builder.sdkInfo",
|
|
693
671
|
data: {
|
|
694
|
-
target:
|
|
695
|
-
version:
|
|
672
|
+
target: P,
|
|
673
|
+
version: ln,
|
|
696
674
|
supportsPatchUpdates: !1,
|
|
697
675
|
// Supports builder-model="..." attribute which is needed to
|
|
698
676
|
// scope our '+ add block' button styling
|
|
@@ -706,7 +684,7 @@ const Ge = (e = {}) => {
|
|
|
706
684
|
}
|
|
707
685
|
}, "*"), window.addEventListener("message", (o) => {
|
|
708
686
|
var i, s;
|
|
709
|
-
if (!
|
|
687
|
+
if (!qe(e.trustedHosts, o))
|
|
710
688
|
return;
|
|
711
689
|
const {
|
|
712
690
|
data: r
|
|
@@ -747,12 +725,12 @@ const Ge = (e = {}) => {
|
|
|
747
725
|
}
|
|
748
726
|
}
|
|
749
727
|
})));
|
|
750
|
-
},
|
|
728
|
+
}, Je = ({
|
|
751
729
|
model: e,
|
|
752
730
|
trustedHosts: t,
|
|
753
731
|
callbacks: n
|
|
754
732
|
}) => (o) => {
|
|
755
|
-
if (!
|
|
733
|
+
if (!qe(t, o))
|
|
756
734
|
return;
|
|
757
735
|
const {
|
|
758
736
|
data: r
|
|
@@ -773,12 +751,12 @@ const Ge = (e = {}) => {
|
|
|
773
751
|
break;
|
|
774
752
|
}
|
|
775
753
|
}
|
|
776
|
-
},
|
|
754
|
+
}, Ai = (e, t, n) => {
|
|
777
755
|
if (!I)
|
|
778
|
-
return
|
|
756
|
+
return E.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
779
757
|
};
|
|
780
|
-
|
|
781
|
-
const o =
|
|
758
|
+
ze();
|
|
759
|
+
const o = Je({
|
|
782
760
|
callbacks: {
|
|
783
761
|
contentUpdate: t,
|
|
784
762
|
animation: () => {
|
|
@@ -792,24 +770,24 @@ const Ge = (e = {}) => {
|
|
|
792
770
|
return window.addEventListener("message", o), () => {
|
|
793
771
|
window.removeEventListener("message", o);
|
|
794
772
|
};
|
|
795
|
-
},
|
|
773
|
+
}, dn = "builder.tests", pe = (e) => `${dn}.${e}`, un = ({
|
|
796
774
|
contentId: e
|
|
797
|
-
}) =>
|
|
798
|
-
name:
|
|
775
|
+
}) => Le({
|
|
776
|
+
name: pe(e),
|
|
799
777
|
canTrack: !0
|
|
800
|
-
}),
|
|
778
|
+
}), pn = ({
|
|
801
779
|
contentId: e
|
|
802
|
-
}) =>
|
|
803
|
-
name:
|
|
780
|
+
}) => De({
|
|
781
|
+
name: pe(e),
|
|
804
782
|
canTrack: !0
|
|
805
|
-
}),
|
|
783
|
+
}), mn = ({
|
|
806
784
|
contentId: e,
|
|
807
785
|
value: t
|
|
808
|
-
}) =>
|
|
809
|
-
name:
|
|
786
|
+
}) => Ue({
|
|
787
|
+
name: pe(e),
|
|
810
788
|
value: t,
|
|
811
789
|
canTrack: !0
|
|
812
|
-
}),
|
|
790
|
+
}), Ge = (e) => D(e.id) && D(e.variations) && Object.keys(e.variations).length > 0, hn = ({
|
|
813
791
|
id: e,
|
|
814
792
|
variations: t
|
|
815
793
|
}) => {
|
|
@@ -822,15 +800,15 @@ const Ge = (e = {}) => {
|
|
|
822
800
|
return i;
|
|
823
801
|
}
|
|
824
802
|
return e;
|
|
825
|
-
},
|
|
826
|
-
const t =
|
|
827
|
-
return
|
|
803
|
+
}, Ye = (e) => {
|
|
804
|
+
const t = hn(e);
|
|
805
|
+
return mn({
|
|
828
806
|
contentId: e.id,
|
|
829
807
|
value: t
|
|
830
808
|
}).catch((n) => {
|
|
831
|
-
|
|
809
|
+
E.error("could not store A/B test variation: ", n);
|
|
832
810
|
}), t;
|
|
833
|
-
},
|
|
811
|
+
}, Xe = ({
|
|
834
812
|
item: e,
|
|
835
813
|
testGroupId: t
|
|
836
814
|
}) => {
|
|
@@ -844,7 +822,7 @@ const Ge = (e = {}) => {
|
|
|
844
822
|
testVariationId: n.id,
|
|
845
823
|
testVariationName: n.name || (n.id === e.id ? "Default" : "")
|
|
846
824
|
};
|
|
847
|
-
},
|
|
825
|
+
}, fn = ({
|
|
848
826
|
item: e,
|
|
849
827
|
canTrack: t
|
|
850
828
|
}) => {
|
|
@@ -852,14 +830,14 @@ const Ge = (e = {}) => {
|
|
|
852
830
|
return e;
|
|
853
831
|
if (!e)
|
|
854
832
|
return;
|
|
855
|
-
if (!
|
|
833
|
+
if (!Ge(e))
|
|
856
834
|
return e;
|
|
857
|
-
const n =
|
|
835
|
+
const n = pn({
|
|
858
836
|
contentId: e.id
|
|
859
|
-
}) ||
|
|
837
|
+
}) || Ye({
|
|
860
838
|
variations: e.variations,
|
|
861
839
|
id: e.id
|
|
862
|
-
}), o =
|
|
840
|
+
}), o = Xe({
|
|
863
841
|
item: e,
|
|
864
842
|
testGroupId: n
|
|
865
843
|
});
|
|
@@ -867,18 +845,18 @@ const Ge = (e = {}) => {
|
|
|
867
845
|
...e,
|
|
868
846
|
...o
|
|
869
847
|
};
|
|
870
|
-
},
|
|
848
|
+
}, bn = async ({
|
|
871
849
|
item: e,
|
|
872
850
|
canTrack: t
|
|
873
851
|
}) => {
|
|
874
|
-
if (!t || !
|
|
852
|
+
if (!t || !Ge(e))
|
|
875
853
|
return e;
|
|
876
|
-
const o = await
|
|
854
|
+
const o = await un({
|
|
877
855
|
contentId: e.id
|
|
878
|
-
}) ||
|
|
856
|
+
}) || Ye({
|
|
879
857
|
variations: e.variations,
|
|
880
858
|
id: e.id
|
|
881
|
-
}), r =
|
|
859
|
+
}), r = Xe({
|
|
882
860
|
item: e,
|
|
883
861
|
testGroupId: o
|
|
884
862
|
});
|
|
@@ -886,38 +864,38 @@ const Ge = (e = {}) => {
|
|
|
886
864
|
...e,
|
|
887
865
|
...r
|
|
888
866
|
};
|
|
889
|
-
},
|
|
890
|
-
function
|
|
867
|
+
}, z = (e) => D(e) ? e : !0;
|
|
868
|
+
function gn() {
|
|
891
869
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
892
870
|
}
|
|
893
|
-
function
|
|
894
|
-
const e =
|
|
871
|
+
function yn() {
|
|
872
|
+
const e = gn().fetch;
|
|
895
873
|
if (typeof e > "u")
|
|
896
874
|
throw console.warn(`Builder SDK could not find a global fetch function. Make sure you have a polyfill for fetch in your project.
|
|
897
875
|
For more information, read https://github.com/BuilderIO/this-package-uses-fetch`), new Error("Builder SDK could not find a global `fetch` function");
|
|
898
876
|
return e;
|
|
899
877
|
}
|
|
900
|
-
const
|
|
901
|
-
function
|
|
878
|
+
const kn = yn();
|
|
879
|
+
function ce(e, t = null, n = ".") {
|
|
902
880
|
return Object.keys(e).reduce((o, r) => {
|
|
903
881
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
904
882
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
905
883
|
...o,
|
|
906
|
-
...
|
|
884
|
+
...ce(i, s, n)
|
|
907
885
|
} : {
|
|
908
886
|
...o,
|
|
909
887
|
[s]: i
|
|
910
888
|
};
|
|
911
889
|
}, {});
|
|
912
890
|
}
|
|
913
|
-
function
|
|
891
|
+
function Qe(e, t, n = {}) {
|
|
914
892
|
for (const o in e) {
|
|
915
893
|
const r = e[o], i = t ? t + "." + o : o;
|
|
916
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ?
|
|
894
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? Qe(r, i, n) : n[i] = r;
|
|
917
895
|
}
|
|
918
896
|
return n;
|
|
919
897
|
}
|
|
920
|
-
const
|
|
898
|
+
const vn = "v3", Te = (e) => typeof e == "number" && !isNaN(e) && e >= 0, me = (e) => {
|
|
921
899
|
const {
|
|
922
900
|
limit: t = 30,
|
|
923
901
|
userAttributes: n,
|
|
@@ -926,82 +904,82 @@ const Cn = "v3", Re = (e) => typeof e == "number" && !isNaN(e) && e >= 0, be = (
|
|
|
926
904
|
apiKey: i,
|
|
927
905
|
enrich: s,
|
|
928
906
|
locale: l,
|
|
929
|
-
apiVersion: a =
|
|
907
|
+
apiVersion: a = vn,
|
|
930
908
|
fields: u,
|
|
931
909
|
omit: h,
|
|
932
910
|
offset: d,
|
|
933
911
|
cacheSeconds: p,
|
|
934
912
|
staleCacheSeconds: k,
|
|
935
913
|
sort: v,
|
|
936
|
-
includeUnpublished:
|
|
914
|
+
includeUnpublished: N
|
|
937
915
|
} = e;
|
|
938
916
|
if (!i)
|
|
939
917
|
throw new Error("Missing API key");
|
|
940
918
|
if (!["v3"].includes(a))
|
|
941
919
|
throw new Error(`Invalid apiVersion: expected 'v3', received '${a}'`);
|
|
942
|
-
const
|
|
943
|
-
if (T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(
|
|
944
|
-
const
|
|
920
|
+
const Y = t !== 1, T = new URL(`https://cdn.builder.io/api/${a}/content/${r}`);
|
|
921
|
+
if (T.searchParams.set("apiKey", i), T.searchParams.set("limit", String(t)), T.searchParams.set("noTraverse", String(Y)), T.searchParams.set("includeRefs", String(!0)), l && T.searchParams.set("locale", l), s && T.searchParams.set("enrich", String(s)), T.searchParams.set("omit", h || "meta.componentsUsed"), u && T.searchParams.set("fields", u), Number.isFinite(d) && d > -1 && T.searchParams.set("offset", String(Math.floor(d))), typeof N == "boolean" && T.searchParams.set("includeUnpublished", String(N)), p && Te(p) && T.searchParams.set("cacheSeconds", String(p)), k && Te(k) && T.searchParams.set("staleCacheSeconds", String(k)), v) {
|
|
922
|
+
const O = ce({
|
|
945
923
|
sort: v
|
|
946
924
|
});
|
|
947
|
-
for (const
|
|
948
|
-
T.searchParams.set(
|
|
925
|
+
for (const U in O)
|
|
926
|
+
T.searchParams.set(U, JSON.stringify(O[U]));
|
|
949
927
|
}
|
|
950
|
-
const
|
|
951
|
-
...
|
|
952
|
-
...
|
|
953
|
-
},
|
|
954
|
-
for (const
|
|
955
|
-
T.searchParams.set(
|
|
928
|
+
const lt = {
|
|
929
|
+
...Kt(),
|
|
930
|
+
...Ae(e.options || {})
|
|
931
|
+
}, ye = ce(lt);
|
|
932
|
+
for (const O in ye)
|
|
933
|
+
T.searchParams.set(O, String(ye[O]));
|
|
956
934
|
if (n && T.searchParams.set("userAttributes", JSON.stringify(n)), o) {
|
|
957
|
-
const
|
|
935
|
+
const O = Qe({
|
|
958
936
|
query: o
|
|
959
937
|
});
|
|
960
|
-
for (const
|
|
961
|
-
T.searchParams.set(
|
|
938
|
+
for (const U in O)
|
|
939
|
+
T.searchParams.set(U, JSON.stringify(O[U]));
|
|
962
940
|
}
|
|
963
941
|
return T;
|
|
964
|
-
},
|
|
965
|
-
async function
|
|
966
|
-
const t = await
|
|
942
|
+
}, Sn = (e) => "results" in e;
|
|
943
|
+
async function he(e) {
|
|
944
|
+
const t = await Tn({
|
|
967
945
|
...e,
|
|
968
946
|
limit: 1
|
|
969
947
|
});
|
|
970
948
|
return t && t[0] || null;
|
|
971
949
|
}
|
|
972
|
-
const
|
|
973
|
-
const t =
|
|
974
|
-
return await (await (e.fetch ??
|
|
975
|
-
},
|
|
976
|
-
const o =
|
|
977
|
-
if (n.search.includes("preview="), !o || !(I() ||
|
|
950
|
+
const Cn = async (e) => {
|
|
951
|
+
const t = me(e);
|
|
952
|
+
return await (await (e.fetch ?? kn)(t.href, e.fetchOptions)).json();
|
|
953
|
+
}, wn = async (e, t, n = me(e)) => {
|
|
954
|
+
const o = z(e.canTrack);
|
|
955
|
+
if (n.search.includes("preview="), !o || !(I() || P === "reactNative"))
|
|
978
956
|
return t.results;
|
|
979
957
|
try {
|
|
980
958
|
const r = [];
|
|
981
959
|
for (const i of t.results)
|
|
982
|
-
r.push(await
|
|
960
|
+
r.push(await bn({
|
|
983
961
|
item: i,
|
|
984
962
|
canTrack: o
|
|
985
963
|
}));
|
|
986
964
|
t.results = r;
|
|
987
965
|
} catch (r) {
|
|
988
|
-
|
|
966
|
+
E.error("Could not process A/B tests. ", r);
|
|
989
967
|
}
|
|
990
968
|
return t.results;
|
|
991
969
|
};
|
|
992
|
-
async function
|
|
970
|
+
async function Tn(e) {
|
|
993
971
|
try {
|
|
994
|
-
const t =
|
|
995
|
-
return
|
|
972
|
+
const t = me(e), n = await Cn(e);
|
|
973
|
+
return Sn(n) ? wn(e, n) : (E.error("Error fetching data. ", {
|
|
996
974
|
url: t,
|
|
997
975
|
content: n,
|
|
998
976
|
options: e
|
|
999
977
|
}), null);
|
|
1000
978
|
} catch (t) {
|
|
1001
|
-
return
|
|
979
|
+
return E.error("Error fetching data. ", t), null;
|
|
1002
980
|
}
|
|
1003
981
|
}
|
|
1004
|
-
const
|
|
982
|
+
const Vi = async (e) => {
|
|
1005
983
|
var o, r, i;
|
|
1006
984
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1007
985
|
...e,
|
|
@@ -1013,15 +991,15 @@ const Fi = async (e) => {
|
|
|
1013
991
|
urlPath: t
|
|
1014
992
|
} : {}
|
|
1015
993
|
},
|
|
1016
|
-
options:
|
|
994
|
+
options: Fe(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
1017
995
|
};
|
|
1018
996
|
return {
|
|
1019
997
|
apiKey: n.apiKey,
|
|
1020
998
|
model: n.model,
|
|
1021
|
-
content: await
|
|
999
|
+
content: await he(n)
|
|
1022
1000
|
};
|
|
1023
|
-
},
|
|
1024
|
-
function
|
|
1001
|
+
}, fe = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1002
|
+
function In(e, t, n = {}) {
|
|
1025
1003
|
let o, r, i, s = null, l = 0;
|
|
1026
1004
|
const a = function() {
|
|
1027
1005
|
l = n.leading === !1 ? 0 : Date.now(), s = null, i = e.apply(o, r), s || (o = r = null);
|
|
@@ -1033,7 +1011,7 @@ function Rn(e, t, n = {}) {
|
|
|
1033
1011
|
return o = this, r = arguments, h <= 0 || h > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, h)), i;
|
|
1034
1012
|
};
|
|
1035
1013
|
}
|
|
1036
|
-
function
|
|
1014
|
+
function H(e, ...t) {
|
|
1037
1015
|
const n = Object(e);
|
|
1038
1016
|
for (let o = 1; o < arguments.length; o++) {
|
|
1039
1017
|
const r = arguments[o];
|
|
@@ -1043,64 +1021,64 @@ function q(e, ...t) {
|
|
|
1043
1021
|
}
|
|
1044
1022
|
return n;
|
|
1045
1023
|
}
|
|
1046
|
-
function
|
|
1024
|
+
function $n(e) {
|
|
1047
1025
|
for (const t of e)
|
|
1048
1026
|
switch (t.trigger) {
|
|
1049
1027
|
case "pageLoad":
|
|
1050
|
-
|
|
1028
|
+
et(t);
|
|
1051
1029
|
break;
|
|
1052
1030
|
case "scrollInView":
|
|
1053
|
-
|
|
1031
|
+
En(t);
|
|
1054
1032
|
break;
|
|
1055
1033
|
}
|
|
1056
1034
|
}
|
|
1057
|
-
function
|
|
1035
|
+
function Ze(e) {
|
|
1058
1036
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1059
1037
|
}
|
|
1060
|
-
function
|
|
1061
|
-
const n =
|
|
1038
|
+
function _e(e, t) {
|
|
1039
|
+
const n = Rn(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
1062
1040
|
for (const l of s)
|
|
1063
1041
|
for (const a of n)
|
|
1064
1042
|
a in l || (l[a] = o[a]);
|
|
1065
1043
|
}
|
|
1066
|
-
function
|
|
1044
|
+
function Rn(e) {
|
|
1067
1045
|
const t = [];
|
|
1068
1046
|
for (const n of e.steps)
|
|
1069
1047
|
for (const o in n.styles)
|
|
1070
1048
|
t.indexOf(o) === -1 && t.push(o);
|
|
1071
1049
|
return t;
|
|
1072
1050
|
}
|
|
1073
|
-
function
|
|
1051
|
+
function et(e) {
|
|
1074
1052
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1075
1053
|
if (!t.length) {
|
|
1076
|
-
|
|
1054
|
+
Ze(e.elementId || e.id || "");
|
|
1077
1055
|
return;
|
|
1078
1056
|
}
|
|
1079
1057
|
Array.from(t).forEach((n) => {
|
|
1080
|
-
|
|
1081
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1058
|
+
_e(e, n), n.style.transition = "none", n.style.transitionDelay = "0", H(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1059
|
+
n.style.transition = `all ${e.duration}s ${fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), H(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1082
1060
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1083
1061
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1084
1062
|
});
|
|
1085
1063
|
});
|
|
1086
1064
|
}
|
|
1087
|
-
function
|
|
1065
|
+
function En(e) {
|
|
1088
1066
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1089
1067
|
if (!t.length) {
|
|
1090
|
-
|
|
1068
|
+
Ze(e.elementId || e.id || "");
|
|
1091
1069
|
return;
|
|
1092
1070
|
}
|
|
1093
1071
|
Array.from(t).forEach((n) => {
|
|
1094
|
-
|
|
1072
|
+
_e(e, n);
|
|
1095
1073
|
let o = !1, r = !1;
|
|
1096
1074
|
function i() {
|
|
1097
1075
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
1098
|
-
|
|
1076
|
+
H(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
1099
1077
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
1100
1078
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1101
|
-
})) : e.repeat && o && !r && !l(n) && (o = !1,
|
|
1079
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, H(n.style, e.steps[0].styles));
|
|
1102
1080
|
}
|
|
1103
|
-
const s =
|
|
1081
|
+
const s = In(i, 200, {
|
|
1104
1082
|
leading: !1
|
|
1105
1083
|
});
|
|
1106
1084
|
function l(h) {
|
|
@@ -1109,52 +1087,52 @@ function Pn(e) {
|
|
|
1109
1087
|
}
|
|
1110
1088
|
const a = e.steps[0].styles;
|
|
1111
1089
|
function u() {
|
|
1112
|
-
|
|
1090
|
+
H(n.style, a);
|
|
1113
1091
|
}
|
|
1114
1092
|
u(), setTimeout(() => {
|
|
1115
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1093
|
+
n.style.transition = `all ${e.duration}s ${fe(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
1116
1094
|
}), document.addEventListener("scroll", s, {
|
|
1117
1095
|
capture: !0,
|
|
1118
1096
|
passive: !0
|
|
1119
1097
|
}), i();
|
|
1120
1098
|
});
|
|
1121
1099
|
}
|
|
1122
|
-
const
|
|
1100
|
+
const tt = (e) => Object.entries(e).map(([n, o]) => {
|
|
1123
1101
|
if (typeof o == "string")
|
|
1124
|
-
return `${
|
|
1125
|
-
}).filter(
|
|
1126
|
-
`),
|
|
1102
|
+
return `${fe(n)}: ${o};`;
|
|
1103
|
+
}).filter(D), Pn = (e) => tt(e).join(`
|
|
1104
|
+
`), Wi = ({
|
|
1127
1105
|
mediaQuery: e,
|
|
1128
1106
|
className: t,
|
|
1129
1107
|
styles: n
|
|
1130
1108
|
}) => {
|
|
1131
1109
|
const o = `.${t} {
|
|
1132
|
-
${
|
|
1110
|
+
${Pn(n)}
|
|
1133
1111
|
}`;
|
|
1134
1112
|
return e ? `${e} {
|
|
1135
1113
|
${o}
|
|
1136
1114
|
}` : o;
|
|
1137
1115
|
};
|
|
1138
|
-
function
|
|
1116
|
+
function Bn({
|
|
1139
1117
|
style: e
|
|
1140
1118
|
}) {
|
|
1141
1119
|
return e;
|
|
1142
1120
|
}
|
|
1143
|
-
const
|
|
1121
|
+
const Ni = ({
|
|
1144
1122
|
block: e,
|
|
1145
1123
|
context: t
|
|
1146
|
-
}) =>
|
|
1124
|
+
}) => nt(Bn({
|
|
1147
1125
|
style: e.style || {},
|
|
1148
1126
|
context: t,
|
|
1149
1127
|
block: e
|
|
1150
1128
|
}));
|
|
1151
|
-
function
|
|
1152
|
-
switch (
|
|
1129
|
+
function nt(e) {
|
|
1130
|
+
switch (P) {
|
|
1153
1131
|
case "svelte":
|
|
1154
1132
|
case "vue":
|
|
1155
1133
|
case "solid":
|
|
1156
1134
|
case "angular":
|
|
1157
|
-
return
|
|
1135
|
+
return tt(e).join(" ");
|
|
1158
1136
|
case "qwik":
|
|
1159
1137
|
case "reactNative":
|
|
1160
1138
|
case "react":
|
|
@@ -1162,7 +1140,7 @@ function rt(e) {
|
|
|
1162
1140
|
return e;
|
|
1163
1141
|
}
|
|
1164
1142
|
}
|
|
1165
|
-
const
|
|
1143
|
+
const xn = ({
|
|
1166
1144
|
block: e,
|
|
1167
1145
|
registeredComponents: t
|
|
1168
1146
|
}) => {
|
|
@@ -1176,7 +1154,7 @@ const Vn = ({
|
|
|
1176
1154
|
console.warn(`
|
|
1177
1155
|
Could not find a registered component named "${n}".
|
|
1178
1156
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1179
|
-
},
|
|
1157
|
+
}, An = ({
|
|
1180
1158
|
block: e,
|
|
1181
1159
|
context: t
|
|
1182
1160
|
}) => {
|
|
@@ -1186,13 +1164,12 @@ const Vn = ({
|
|
|
1186
1164
|
} = e;
|
|
1187
1165
|
if (!(n != null && n.collection))
|
|
1188
1166
|
return;
|
|
1189
|
-
const r =
|
|
1167
|
+
const r = J({
|
|
1190
1168
|
code: n.collection,
|
|
1191
1169
|
localState: t.localState,
|
|
1192
1170
|
rootState: t.rootState,
|
|
1193
1171
|
rootSetState: t.rootSetState,
|
|
1194
|
-
context: t.context
|
|
1195
|
-
enableCache: !0
|
|
1172
|
+
context: t.context
|
|
1196
1173
|
});
|
|
1197
1174
|
if (!Array.isArray(r))
|
|
1198
1175
|
return;
|
|
@@ -1210,59 +1187,59 @@ const Vn = ({
|
|
|
1210
1187
|
},
|
|
1211
1188
|
block: o
|
|
1212
1189
|
}));
|
|
1213
|
-
},
|
|
1190
|
+
}, Vn = (e, t) => {
|
|
1214
1191
|
var n;
|
|
1215
1192
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1216
1193
|
builderLinkComponent: t
|
|
1217
1194
|
} : {};
|
|
1218
|
-
},
|
|
1195
|
+
}, Wn = (e, t) => {
|
|
1219
1196
|
var n;
|
|
1220
1197
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderComponents ? {
|
|
1221
1198
|
builderComponents: t
|
|
1222
1199
|
} : {};
|
|
1223
|
-
},
|
|
1200
|
+
}, Nn = (e, t) => {
|
|
1224
1201
|
var n;
|
|
1225
1202
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1226
1203
|
builderBlock: t
|
|
1227
1204
|
} : {};
|
|
1228
|
-
},
|
|
1205
|
+
}, On = (e, t) => {
|
|
1229
1206
|
var n;
|
|
1230
1207
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1231
1208
|
builderContext: t
|
|
1232
1209
|
} : {};
|
|
1233
|
-
},
|
|
1210
|
+
}, Fn = () => Promise.resolve().then(() => Qn).then((e) => e.default).catch((e) => {
|
|
1234
1211
|
throw console.error(
|
|
1235
1212
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1236
1213
|
e
|
|
1237
1214
|
), e;
|
|
1238
|
-
}),
|
|
1215
|
+
}), Dn = () => import("./block-styles-wK6lFE9B.js").then((e) => e.default).catch((e) => {
|
|
1239
1216
|
throw console.error(
|
|
1240
1217
|
"Error while attempting to dynamically import component BlockStyles at ./components/block-styles.vue",
|
|
1241
1218
|
e
|
|
1242
1219
|
), e;
|
|
1243
|
-
}),
|
|
1220
|
+
}), Ln = () => import("./block-wrapper-MKu8n7U7.js").then((e) => e.default).catch((e) => {
|
|
1244
1221
|
throw console.error(
|
|
1245
1222
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1246
1223
|
e
|
|
1247
1224
|
), e;
|
|
1248
|
-
}),
|
|
1225
|
+
}), Un = () => import("./component-ref-78k364NZ.js").then((e) => e.default).catch((e) => {
|
|
1249
1226
|
throw console.error(
|
|
1250
1227
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1251
1228
|
e
|
|
1252
1229
|
), e;
|
|
1253
|
-
}),
|
|
1230
|
+
}), Mn = () => import("./repeated-block-8i7afs5q.js").then((e) => e.default).catch((e) => {
|
|
1254
1231
|
throw console.error(
|
|
1255
1232
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1256
1233
|
e
|
|
1257
1234
|
), e;
|
|
1258
|
-
}),
|
|
1235
|
+
}), jn = f({
|
|
1259
1236
|
name: "block",
|
|
1260
1237
|
components: {
|
|
1261
|
-
BlockStyles:
|
|
1262
|
-
RepeatedBlock:
|
|
1263
|
-
ComponentRef:
|
|
1264
|
-
BlockWrapper:
|
|
1265
|
-
DynamicDiv:
|
|
1238
|
+
BlockStyles: M(Dn),
|
|
1239
|
+
RepeatedBlock: M(Mn),
|
|
1240
|
+
ComponentRef: M(Un),
|
|
1241
|
+
BlockWrapper: M(Ln),
|
|
1242
|
+
DynamicDiv: M(Fn)
|
|
1266
1243
|
},
|
|
1267
1244
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1268
1245
|
data() {
|
|
@@ -1275,7 +1252,7 @@ const Vn = ({
|
|
|
1275
1252
|
},
|
|
1276
1253
|
mounted() {
|
|
1277
1254
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1278
|
-
t && e &&
|
|
1255
|
+
t && e && $n(
|
|
1279
1256
|
t.map((n) => ({
|
|
1280
1257
|
...n,
|
|
1281
1258
|
elementId: e
|
|
@@ -1286,14 +1263,14 @@ const Vn = ({
|
|
|
1286
1263
|
},
|
|
1287
1264
|
computed: {
|
|
1288
1265
|
repeatItem() {
|
|
1289
|
-
return
|
|
1266
|
+
return An({
|
|
1290
1267
|
block: this.block,
|
|
1291
1268
|
context: this.context
|
|
1292
1269
|
});
|
|
1293
1270
|
},
|
|
1294
1271
|
processedBlock() {
|
|
1295
1272
|
var t;
|
|
1296
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1273
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : Dt({
|
|
1297
1274
|
block: this.block,
|
|
1298
1275
|
localState: this.context.localState,
|
|
1299
1276
|
rootState: this.context.rootState,
|
|
@@ -1303,7 +1280,7 @@ const Vn = ({
|
|
|
1303
1280
|
});
|
|
1304
1281
|
},
|
|
1305
1282
|
blockComponent() {
|
|
1306
|
-
return
|
|
1283
|
+
return xn({
|
|
1307
1284
|
block: this.processedBlock,
|
|
1308
1285
|
registeredComponents: this.registeredComponents
|
|
1309
1286
|
});
|
|
@@ -1329,11 +1306,11 @@ const Vn = ({
|
|
|
1329
1306
|
blockChildren: this.processedBlock.children ?? [],
|
|
1330
1307
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1331
1308
|
componentOptions: {
|
|
1332
|
-
...
|
|
1333
|
-
...
|
|
1334
|
-
...
|
|
1335
|
-
...
|
|
1336
|
-
...
|
|
1309
|
+
...vt(this.processedBlock),
|
|
1310
|
+
...Nn(this.blockComponent, this.processedBlock),
|
|
1311
|
+
...On(this.blockComponent, this.context),
|
|
1312
|
+
...Vn(this.blockComponent, this.linkComponent),
|
|
1313
|
+
...Wn(
|
|
1337
1314
|
this.blockComponent,
|
|
1338
1315
|
this.registeredComponents
|
|
1339
1316
|
)
|
|
@@ -1343,12 +1320,12 @@ const Vn = ({
|
|
|
1343
1320
|
registeredComponents: this.registeredComponents,
|
|
1344
1321
|
builderBlock: this.processedBlock,
|
|
1345
1322
|
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
1346
|
-
isInteractive: !((n = this.blockComponent) != null && n.isRSC &&
|
|
1323
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC && P === "rsc")
|
|
1347
1324
|
};
|
|
1348
1325
|
}
|
|
1349
1326
|
}
|
|
1350
1327
|
});
|
|
1351
|
-
function
|
|
1328
|
+
function Hn(e, t, n, o, r, i) {
|
|
1352
1329
|
var d;
|
|
1353
1330
|
const s = y("BlockStyles"), l = y("ComponentRef"), a = y("Block", !0), u = y("BlockWrapper"), h = y("RepeatedBlock");
|
|
1354
1331
|
return e.canShowBlock ? (c(), m(w, { key: 0 }, [
|
|
@@ -1388,7 +1365,7 @@ function qn(e, t, n, o, r, i) {
|
|
|
1388
1365
|
block: e.processedBlock,
|
|
1389
1366
|
context: e.context
|
|
1390
1367
|
}, {
|
|
1391
|
-
default:
|
|
1368
|
+
default: W(() => [
|
|
1392
1369
|
$(l, {
|
|
1393
1370
|
componentRef: e.componentRefProps.componentRef,
|
|
1394
1371
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -1413,10 +1390,10 @@ function qn(e, t, n, o, r, i) {
|
|
|
1413
1390
|
], 64))
|
|
1414
1391
|
], 64)) : S("", !0);
|
|
1415
1392
|
}
|
|
1416
|
-
const
|
|
1393
|
+
const be = /* @__PURE__ */ b(jn, [["render", Hn]]), Oi = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1417
1394
|
__proto__: null,
|
|
1418
|
-
default:
|
|
1419
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1395
|
+
default: be
|
|
1396
|
+
}, Symbol.toStringTag, { value: "Module" })), Kn = f({
|
|
1420
1397
|
name: "builder-blocks-wrapper",
|
|
1421
1398
|
props: [
|
|
1422
1399
|
"blocks",
|
|
@@ -1463,8 +1440,8 @@ const ke = /* @__PURE__ */ b(Kn, [["render", qn]]), Ui = /* @__PURE__ */ Object.
|
|
|
1463
1440
|
}
|
|
1464
1441
|
}
|
|
1465
1442
|
});
|
|
1466
|
-
function
|
|
1467
|
-
return c(), g(
|
|
1443
|
+
function qn(e, t, n, o, r, i) {
|
|
1444
|
+
return c(), g(j(e.BlocksWrapper), C({
|
|
1468
1445
|
ref: "blocksWrapperRef",
|
|
1469
1446
|
class: e.className + " component-1k2igrjdg3x",
|
|
1470
1447
|
"builder-path": e.path,
|
|
@@ -1474,15 +1451,15 @@ function Jn(e, t, n, o, r, i) {
|
|
|
1474
1451
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
1475
1452
|
onKeyPress: (s) => e.onClick()
|
|
1476
1453
|
}, { ...e.BlocksWrapperProps }), {
|
|
1477
|
-
default:
|
|
1454
|
+
default: W(() => [
|
|
1478
1455
|
x(e.$slots, "default", {}, void 0, !0)
|
|
1479
1456
|
]),
|
|
1480
1457
|
_: 3
|
|
1481
1458
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1482
1459
|
}
|
|
1483
|
-
const
|
|
1460
|
+
const zn = /* @__PURE__ */ b(Kn, [["render", qn], ["__scopeId", "data-v-162df12b"]]), Jn = f({
|
|
1484
1461
|
name: "builder-blocks",
|
|
1485
|
-
components: { BlocksWrapper:
|
|
1462
|
+
components: { BlocksWrapper: zn, Block: be },
|
|
1486
1463
|
props: [
|
|
1487
1464
|
"blocks",
|
|
1488
1465
|
"parent",
|
|
@@ -1493,11 +1470,11 @@ const Gn = /* @__PURE__ */ b(zn, [["render", Jn], ["__scopeId", "data-v-162df12b
|
|
|
1493
1470
|
"registeredComponents"
|
|
1494
1471
|
],
|
|
1495
1472
|
inject: {
|
|
1496
|
-
builderContext:
|
|
1497
|
-
componentsContext:
|
|
1473
|
+
builderContext: se.key,
|
|
1474
|
+
componentsContext: Be.key
|
|
1498
1475
|
}
|
|
1499
1476
|
});
|
|
1500
|
-
function
|
|
1477
|
+
function Gn(e, t, n, o, r, i) {
|
|
1501
1478
|
var a, u;
|
|
1502
1479
|
const s = y("Block"), l = y("BlocksWrapper");
|
|
1503
1480
|
return c(), g(l, {
|
|
@@ -1508,7 +1485,7 @@ function Qn(e, t, n, o, r, i) {
|
|
|
1508
1485
|
BlocksWrapper: ((a = e.context) == null ? void 0 : a.BlocksWrapper) || e.builderContext.BlocksWrapper,
|
|
1509
1486
|
BlocksWrapperProps: ((u = e.context) == null ? void 0 : u.BlocksWrapperProps) || e.builderContext.BlocksWrapperProps
|
|
1510
1487
|
}, {
|
|
1511
|
-
default:
|
|
1488
|
+
default: W(() => [
|
|
1512
1489
|
e.blocks ? (c(!0), m(w, { key: 0 }, A(e.blocks, (h, d) => (c(), g(s, {
|
|
1513
1490
|
key: h.id,
|
|
1514
1491
|
block: h,
|
|
@@ -1520,21 +1497,21 @@ function Qn(e, t, n, o, r, i) {
|
|
|
1520
1497
|
_: 1
|
|
1521
1498
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapper", "BlocksWrapperProps"]);
|
|
1522
1499
|
}
|
|
1523
|
-
const
|
|
1500
|
+
const L = /* @__PURE__ */ b(Jn, [["render", Gn]]), Yn = f({
|
|
1524
1501
|
name: "dynamic-div",
|
|
1525
1502
|
props: []
|
|
1526
1503
|
});
|
|
1527
|
-
function
|
|
1504
|
+
function Xn(e, t, n, o, r, i) {
|
|
1528
1505
|
return c(), m("div", null, [
|
|
1529
1506
|
x(e.$slots, "default")
|
|
1530
1507
|
]);
|
|
1531
1508
|
}
|
|
1532
|
-
const
|
|
1509
|
+
const G = /* @__PURE__ */ b(Yn, [["render", Xn]]), Qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1533
1510
|
__proto__: null,
|
|
1534
|
-
default:
|
|
1535
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1511
|
+
default: G
|
|
1512
|
+
}, Symbol.toStringTag, { value: "Module" })), ge = f({
|
|
1536
1513
|
render() {
|
|
1537
|
-
return
|
|
1514
|
+
return Pe("style", {
|
|
1538
1515
|
innerHTML: this.styles,
|
|
1539
1516
|
"data-id": this.id,
|
|
1540
1517
|
nonce: this.nonce
|
|
@@ -1542,7 +1519,7 @@ const Q = /* @__PURE__ */ b(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.f
|
|
|
1542
1519
|
},
|
|
1543
1520
|
name: "inlined-styles",
|
|
1544
1521
|
props: ["styles", "id", "nonce"]
|
|
1545
|
-
}),
|
|
1522
|
+
}), ot = {
|
|
1546
1523
|
small: {
|
|
1547
1524
|
min: 320,
|
|
1548
1525
|
default: 321,
|
|
@@ -1558,11 +1535,11 @@ const Q = /* @__PURE__ */ b(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.f
|
|
|
1558
1535
|
default: 991,
|
|
1559
1536
|
max: 1200
|
|
1560
1537
|
}
|
|
1561
|
-
},
|
|
1538
|
+
}, Fi = (e, t = ot) => `@media (max-width: ${t[e].max}px)`, Zn = ({
|
|
1562
1539
|
small: e,
|
|
1563
1540
|
medium: t
|
|
1564
1541
|
}) => {
|
|
1565
|
-
const n =
|
|
1542
|
+
const n = ue(ot);
|
|
1566
1543
|
if (!e || !t)
|
|
1567
1544
|
return n;
|
|
1568
1545
|
const o = Math.floor(e / 2);
|
|
@@ -1584,13 +1561,13 @@ const Q = /* @__PURE__ */ b(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.f
|
|
|
1584
1561
|
min: i,
|
|
1585
1562
|
default: i + 1
|
|
1586
1563
|
}, n;
|
|
1587
|
-
},
|
|
1564
|
+
}, _n = (e) => `builder-columns ${e}-breakpoints`, eo = f({
|
|
1588
1565
|
name: "builder-columns",
|
|
1589
1566
|
components: {
|
|
1590
|
-
InlinedStyles:
|
|
1591
|
-
DynamicRenderer:
|
|
1592
|
-
Blocks:
|
|
1593
|
-
DynamicDiv:
|
|
1567
|
+
InlinedStyles: ge,
|
|
1568
|
+
DynamicRenderer: de,
|
|
1569
|
+
Blocks: L,
|
|
1570
|
+
DynamicDiv: G
|
|
1594
1571
|
},
|
|
1595
1572
|
props: [
|
|
1596
1573
|
"space",
|
|
@@ -1608,8 +1585,8 @@ const Q = /* @__PURE__ */ b(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.f
|
|
|
1608
1585
|
cols: this.columns || [],
|
|
1609
1586
|
stackAt: this.stackColumnsAt || "tablet",
|
|
1610
1587
|
flexDir: this.stackColumnsAt === "never" ? "row" : this.reverseColumnsWhenStacked ? "column-reverse" : "column",
|
|
1611
|
-
TARGET:
|
|
1612
|
-
getColumnsClass:
|
|
1588
|
+
TARGET: P,
|
|
1589
|
+
getColumnsClass: _n
|
|
1613
1590
|
};
|
|
1614
1591
|
},
|
|
1615
1592
|
methods: {
|
|
@@ -1675,7 +1652,7 @@ const Q = /* @__PURE__ */ b(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.f
|
|
|
1675
1652
|
},
|
|
1676
1653
|
getWidthForBreakpointSize(e) {
|
|
1677
1654
|
var n, o;
|
|
1678
|
-
return
|
|
1655
|
+
return Zn(
|
|
1679
1656
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1680
1657
|
)[e].max;
|
|
1681
1658
|
},
|
|
@@ -1712,13 +1689,13 @@ const Q = /* @__PURE__ */ b(Xn, [["render", Zn]]), _n = /* @__PURE__ */ Object.f
|
|
|
1712
1689
|
...e.link ? {
|
|
1713
1690
|
href: e.link
|
|
1714
1691
|
} : {},
|
|
1715
|
-
[
|
|
1716
|
-
style:
|
|
1692
|
+
[Z()]: "builder-column",
|
|
1693
|
+
style: nt(this.columnCssVars(t))
|
|
1717
1694
|
};
|
|
1718
1695
|
}
|
|
1719
1696
|
}
|
|
1720
1697
|
});
|
|
1721
|
-
function
|
|
1698
|
+
function to(e, t, n, o, r, i) {
|
|
1722
1699
|
var u;
|
|
1723
1700
|
const s = y("InlinedStyles"), l = y("Blocks"), a = y("DynamicRenderer");
|
|
1724
1701
|
return c(), m("div", C({
|
|
@@ -1737,7 +1714,7 @@ function oo(e, t, n, o, r, i) {
|
|
|
1737
1714
|
actionAttributes: {},
|
|
1738
1715
|
attributes: e.getAttributes(h, d)
|
|
1739
1716
|
}, {
|
|
1740
|
-
default:
|
|
1717
|
+
default: W(() => [
|
|
1741
1718
|
$(l, {
|
|
1742
1719
|
path: `component.options.columns.${d}.blocks`,
|
|
1743
1720
|
parent: e.builderBlock.id,
|
|
@@ -1754,47 +1731,47 @@ function oo(e, t, n, o, r, i) {
|
|
|
1754
1731
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1755
1732
|
], 16);
|
|
1756
1733
|
}
|
|
1757
|
-
const
|
|
1734
|
+
const no = /* @__PURE__ */ b(eo, [["render", to], ["__scopeId", "data-v-adc066fc"]]), oo = f({
|
|
1758
1735
|
name: "builder-fragment-component",
|
|
1759
1736
|
props: []
|
|
1760
1737
|
});
|
|
1761
|
-
function
|
|
1738
|
+
function ro(e, t, n, o, r, i) {
|
|
1762
1739
|
return c(), m("span", null, [
|
|
1763
1740
|
x(e.$slots, "default")
|
|
1764
1741
|
]);
|
|
1765
1742
|
}
|
|
1766
|
-
const
|
|
1767
|
-
function
|
|
1743
|
+
const io = /* @__PURE__ */ b(oo, [["render", ro]]);
|
|
1744
|
+
function Ie(e) {
|
|
1768
1745
|
return e.replace(/http(s)?:/, "");
|
|
1769
1746
|
}
|
|
1770
|
-
function
|
|
1747
|
+
function so(e = "", t, n) {
|
|
1771
1748
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1772
1749
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1773
1750
|
}
|
|
1774
|
-
function
|
|
1751
|
+
function ao(e, t) {
|
|
1775
1752
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1776
1753
|
return e;
|
|
1777
1754
|
if (t === "master")
|
|
1778
|
-
return
|
|
1755
|
+
return Ie(e);
|
|
1779
1756
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1780
1757
|
if (n) {
|
|
1781
1758
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
1782
|
-
return
|
|
1759
|
+
return Ie(`${o[0]}_${i}${r}`);
|
|
1783
1760
|
}
|
|
1784
1761
|
return null;
|
|
1785
1762
|
}
|
|
1786
|
-
function
|
|
1763
|
+
function te(e) {
|
|
1787
1764
|
if (!e)
|
|
1788
1765
|
return e;
|
|
1789
1766
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
1790
1767
|
if (e.match(/builder\.io/)) {
|
|
1791
1768
|
let n = e;
|
|
1792
1769
|
const o = Number(e.split("?width=")[1]);
|
|
1793
|
-
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${
|
|
1770
|
+
return isNaN(o) || (n = `${n} ${o}w`), t.filter((r) => r !== o).map((r) => `${so(e, "width", r)} ${r}w`).concat([n]).join(", ");
|
|
1794
1771
|
}
|
|
1795
|
-
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [
|
|
1772
|
+
return e.match(/cdn\.shopify\.com/) ? t.map((n) => [ao(e, `${n}x${n}`), n]).filter(([n]) => !!n).map(([n, o]) => `${n} ${o}w`).concat([e]).join(", ") : e;
|
|
1796
1773
|
}
|
|
1797
|
-
const
|
|
1774
|
+
const lo = f({
|
|
1798
1775
|
name: "builder-image",
|
|
1799
1776
|
props: [
|
|
1800
1777
|
"image",
|
|
@@ -1824,10 +1801,10 @@ const uo = f({
|
|
|
1824
1801
|
if (!this.noWebp) {
|
|
1825
1802
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
1826
1803
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
1827
|
-
return console.debug("Removed given srcset"),
|
|
1804
|
+
return console.debug("Removed given srcset"), te(t);
|
|
1828
1805
|
} else if (this.image && !this.srcset)
|
|
1829
|
-
return
|
|
1830
|
-
return
|
|
1806
|
+
return te(t);
|
|
1807
|
+
return te(t);
|
|
1831
1808
|
}
|
|
1832
1809
|
},
|
|
1833
1810
|
webpSrcSet() {
|
|
@@ -1845,58 +1822,58 @@ const uo = f({
|
|
|
1845
1822
|
return this.aspectRatio ? e : void 0;
|
|
1846
1823
|
}
|
|
1847
1824
|
}
|
|
1848
|
-
}),
|
|
1825
|
+
}), co = ["srcset"], uo = ["loading", "fetchpriority", "alt", "role", "src", "srcset", "sizes"], po = {
|
|
1849
1826
|
key: 2,
|
|
1850
1827
|
class: "div-29wpyomtntv-2"
|
|
1851
1828
|
};
|
|
1852
|
-
function
|
|
1829
|
+
function mo(e, t, n, o, r, i) {
|
|
1853
1830
|
var s, l, a, u, h, d;
|
|
1854
1831
|
return c(), m(w, null, [
|
|
1855
|
-
|
|
1832
|
+
K("picture", null, [
|
|
1856
1833
|
e.webpSrcSet ? (c(), m("source", {
|
|
1857
1834
|
key: 0,
|
|
1858
1835
|
type: "image/webp",
|
|
1859
1836
|
srcset: e.webpSrcSet
|
|
1860
|
-
}, null, 8,
|
|
1861
|
-
|
|
1837
|
+
}, null, 8, co)) : S("", !0),
|
|
1838
|
+
K("img", {
|
|
1862
1839
|
loading: e.highPriority ? "eager" : "lazy",
|
|
1863
1840
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
1864
1841
|
alt: e.altText,
|
|
1865
1842
|
role: e.altText ? void 0 : "presentation",
|
|
1866
|
-
style:
|
|
1843
|
+
style: F({
|
|
1867
1844
|
objectPosition: e.backgroundPosition || "center",
|
|
1868
1845
|
objectFit: e.backgroundSize || "cover",
|
|
1869
1846
|
...e.aspectRatioCss
|
|
1870
1847
|
}),
|
|
1871
|
-
class:
|
|
1848
|
+
class: q(
|
|
1872
1849
|
"builder-image" + (e.className ? " " + e.className : "") + " img-29wpyomtntv"
|
|
1873
1850
|
),
|
|
1874
1851
|
src: e.image,
|
|
1875
1852
|
srcset: e.srcSetToUse,
|
|
1876
1853
|
sizes: e.sizes
|
|
1877
|
-
}, null, 14,
|
|
1854
|
+
}, null, 14, uo)
|
|
1878
1855
|
]),
|
|
1879
1856
|
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (c(), m("div", {
|
|
1880
1857
|
key: 0,
|
|
1881
1858
|
class: "builder-image-sizer div-29wpyomtntv",
|
|
1882
|
-
style:
|
|
1859
|
+
style: F({
|
|
1883
1860
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
1884
1861
|
})
|
|
1885
1862
|
}, null, 4)) : S("", !0),
|
|
1886
1863
|
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? x(e.$slots, "default", { key: 1 }, void 0, !0) : S("", !0),
|
|
1887
|
-
!e.fitContent && ((d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length) ? (c(), m("div",
|
|
1864
|
+
!e.fitContent && ((d = (h = e.builderBlock) == null ? void 0 : h.children) != null && d.length) ? (c(), m("div", po, [
|
|
1888
1865
|
x(e.$slots, "default", {}, void 0, !0)
|
|
1889
1866
|
])) : S("", !0)
|
|
1890
1867
|
], 64);
|
|
1891
1868
|
}
|
|
1892
|
-
const
|
|
1869
|
+
const ho = /* @__PURE__ */ b(lo, [["render", mo], ["__scopeId", "data-v-77f8a6c4"]]), fo = f({
|
|
1893
1870
|
name: "builder-section-component",
|
|
1894
1871
|
props: ["attributes", "maxWidth"],
|
|
1895
1872
|
data() {
|
|
1896
1873
|
return { filterAttrs: V };
|
|
1897
1874
|
}
|
|
1898
1875
|
});
|
|
1899
|
-
function
|
|
1876
|
+
function bo(e, t, n, o, r, i) {
|
|
1900
1877
|
return c(), m("section", C({
|
|
1901
1878
|
style: {
|
|
1902
1879
|
width: "100%",
|
|
@@ -1910,11 +1887,11 @@ function yo(e, t, n, o, r, i) {
|
|
|
1910
1887
|
marginLeft: "auto",
|
|
1911
1888
|
marginRight: "auto"
|
|
1912
1889
|
}
|
|
1913
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
1890
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
1914
1891
|
x(e.$slots, "default")
|
|
1915
1892
|
], 16);
|
|
1916
1893
|
}
|
|
1917
|
-
const
|
|
1894
|
+
const go = /* @__PURE__ */ b(fo, [["render", bo]]), ne = {
|
|
1918
1895
|
"@type": "@builder.io/sdk:Element",
|
|
1919
1896
|
layerName: "Accordion item title",
|
|
1920
1897
|
responsiveStyles: {
|
|
@@ -1943,7 +1920,7 @@ const ko = /* @__PURE__ */ b(go, [["render", yo]]), ie = {
|
|
|
1943
1920
|
}
|
|
1944
1921
|
}
|
|
1945
1922
|
}]
|
|
1946
|
-
},
|
|
1923
|
+
}, oe = {
|
|
1947
1924
|
"@type": "@builder.io/sdk:Element",
|
|
1948
1925
|
layerName: "Accordion item detail",
|
|
1949
1926
|
responsiveStyles: {
|
|
@@ -1974,7 +1951,7 @@ const ko = /* @__PURE__ */ b(go, [["render", yo]]), ie = {
|
|
|
1974
1951
|
}
|
|
1975
1952
|
}
|
|
1976
1953
|
}]
|
|
1977
|
-
},
|
|
1954
|
+
}, yo = {
|
|
1978
1955
|
name: "Builder:Accordion",
|
|
1979
1956
|
canHaveChildren: !0,
|
|
1980
1957
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -1991,19 +1968,19 @@ const ko = /* @__PURE__ */ b(go, [["render", yo]]), ie = {
|
|
|
1991
1968
|
name: "title",
|
|
1992
1969
|
type: "uiBlocks",
|
|
1993
1970
|
hideFromUI: !0,
|
|
1994
|
-
defaultValue: [
|
|
1971
|
+
defaultValue: [ne]
|
|
1995
1972
|
}, {
|
|
1996
1973
|
name: "detail",
|
|
1997
1974
|
type: "uiBlocks",
|
|
1998
1975
|
hideFromUI: !0,
|
|
1999
|
-
defaultValue: [
|
|
1976
|
+
defaultValue: [oe]
|
|
2000
1977
|
}],
|
|
2001
1978
|
defaultValue: [{
|
|
2002
|
-
title: [
|
|
2003
|
-
detail: [
|
|
1979
|
+
title: [ne],
|
|
1980
|
+
detail: [oe]
|
|
2004
1981
|
}, {
|
|
2005
|
-
title: [
|
|
2006
|
-
detail: [
|
|
1982
|
+
title: [ne],
|
|
1983
|
+
detail: [oe]
|
|
2007
1984
|
}],
|
|
2008
1985
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2009
1986
|
}, {
|
|
@@ -2038,9 +2015,9 @@ const ko = /* @__PURE__ */ b(go, [["render", yo]]), ie = {
|
|
|
2038
2015
|
builderComponents: !0,
|
|
2039
2016
|
builderLinkComponent: !0
|
|
2040
2017
|
}
|
|
2041
|
-
},
|
|
2018
|
+
}, ko = (e) => e.toString(), vo = f({
|
|
2042
2019
|
name: "builder-accordion",
|
|
2043
|
-
components: { Blocks:
|
|
2020
|
+
components: { Blocks: L },
|
|
2044
2021
|
props: [
|
|
2045
2022
|
"grid",
|
|
2046
2023
|
"oneAtATime",
|
|
@@ -2052,7 +2029,7 @@ const ko = /* @__PURE__ */ b(go, [["render", yo]]), ie = {
|
|
|
2052
2029
|
"builderLinkComponent"
|
|
2053
2030
|
],
|
|
2054
2031
|
data() {
|
|
2055
|
-
return { open: [], convertOrderNumberToString:
|
|
2032
|
+
return { open: [], convertOrderNumberToString: ko };
|
|
2056
2033
|
},
|
|
2057
2034
|
computed: {
|
|
2058
2035
|
onlyOneAtATime() {
|
|
@@ -2133,17 +2110,17 @@ const ko = /* @__PURE__ */ b(go, [["render", yo]]), ie = {
|
|
|
2133
2110
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2134
2111
|
}
|
|
2135
2112
|
}
|
|
2136
|
-
}),
|
|
2137
|
-
function
|
|
2113
|
+
}), So = ["data-index", "onClick"];
|
|
2114
|
+
function Co(e, t, n, o, r, i) {
|
|
2138
2115
|
const s = y("Blocks");
|
|
2139
2116
|
return c(), m("div", {
|
|
2140
2117
|
class: "builder-accordion",
|
|
2141
|
-
style:
|
|
2118
|
+
style: F(e.accordionStyles)
|
|
2142
2119
|
}, [
|
|
2143
2120
|
(c(!0), m(w, null, A(e.items, (l, a) => (c(), m(w, { key: a }, [
|
|
2144
|
-
|
|
2145
|
-
class:
|
|
2146
|
-
style:
|
|
2121
|
+
K("div", {
|
|
2122
|
+
class: q(e.getAccordionTitleClassName(a)),
|
|
2123
|
+
style: F({
|
|
2147
2124
|
...e.accordionTitleStyles,
|
|
2148
2125
|
width: e.grid ? e.gridRowWidth : void 0,
|
|
2149
2126
|
order: e.openGridItemOrder !== null ? e.convertOrderNumberToString(a) : e.convertOrderNumberToString(a + 1)
|
|
@@ -2159,11 +2136,11 @@ function To(e, t, n, o, r, i) {
|
|
|
2159
2136
|
registeredComponents: e.builderComponents,
|
|
2160
2137
|
linkComponent: e.builderLinkComponent
|
|
2161
2138
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2162
|
-
], 14,
|
|
2139
|
+
], 14, So),
|
|
2163
2140
|
e.open.includes(a) ? (c(), m("div", {
|
|
2164
2141
|
key: 0,
|
|
2165
|
-
class:
|
|
2166
|
-
style:
|
|
2142
|
+
class: q(e.getAccordionDetailClassName(a)),
|
|
2143
|
+
style: F(e.accordionDetailStyles)
|
|
2167
2144
|
}, [
|
|
2168
2145
|
$(s, {
|
|
2169
2146
|
blocks: l.detail,
|
|
@@ -2177,7 +2154,7 @@ function To(e, t, n, o, r, i) {
|
|
|
2177
2154
|
], 64))), 128))
|
|
2178
2155
|
], 4);
|
|
2179
2156
|
}
|
|
2180
|
-
const
|
|
2157
|
+
const wo = /* @__PURE__ */ b(vo, [["render", Co]]), To = {
|
|
2181
2158
|
name: "Core:Button",
|
|
2182
2159
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2183
2160
|
defaultStyles: {
|
|
@@ -2213,7 +2190,7 @@ const Io = /* @__PURE__ */ b(Co, [["render", To]]), $o = {
|
|
|
2213
2190
|
shouldReceiveBuilderProps: {
|
|
2214
2191
|
builderLinkComponent: !0
|
|
2215
2192
|
}
|
|
2216
|
-
},
|
|
2193
|
+
}, Io = {
|
|
2217
2194
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2218
2195
|
name: "Columns",
|
|
2219
2196
|
isRSC: !0,
|
|
@@ -2420,13 +2397,13 @@ const Io = /* @__PURE__ */ b(Co, [["render", To]]), $o = {
|
|
|
2420
2397
|
builderComponents: !0,
|
|
2421
2398
|
builderLinkComponent: !0
|
|
2422
2399
|
}
|
|
2423
|
-
},
|
|
2400
|
+
}, $o = {
|
|
2424
2401
|
name: "Fragment",
|
|
2425
2402
|
static: !0,
|
|
2426
2403
|
hidden: !0,
|
|
2427
2404
|
canHaveChildren: !0,
|
|
2428
2405
|
noWrap: !0
|
|
2429
|
-
},
|
|
2406
|
+
}, Ro = {
|
|
2430
2407
|
name: "Image",
|
|
2431
2408
|
static: !0,
|
|
2432
2409
|
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",
|
|
@@ -2534,7 +2511,7 @@ const Io = /* @__PURE__ */ b(Co, [["render", To]]), $o = {
|
|
|
2534
2511
|
shouldReceiveBuilderProps: {
|
|
2535
2512
|
builderBlock: !0
|
|
2536
2513
|
}
|
|
2537
|
-
},
|
|
2514
|
+
}, Eo = {
|
|
2538
2515
|
name: "Core:Section",
|
|
2539
2516
|
static: !0,
|
|
2540
2517
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -2573,7 +2550,7 @@ const Io = /* @__PURE__ */ b(Co, [["render", To]]), $o = {
|
|
|
2573
2550
|
}
|
|
2574
2551
|
}
|
|
2575
2552
|
}]
|
|
2576
|
-
},
|
|
2553
|
+
}, Po = {
|
|
2577
2554
|
name: "Slot",
|
|
2578
2555
|
isRSC: !0,
|
|
2579
2556
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -2590,12 +2567,12 @@ const Io = /* @__PURE__ */ b(Co, [["render", To]]), $o = {
|
|
|
2590
2567
|
builderContext: !0,
|
|
2591
2568
|
builderComponents: !0
|
|
2592
2569
|
}
|
|
2593
|
-
},
|
|
2570
|
+
}, Bo = f({
|
|
2594
2571
|
name: "builder-slot",
|
|
2595
|
-
components: { Blocks:
|
|
2572
|
+
components: { Blocks: L },
|
|
2596
2573
|
props: ["builderContext", "name", "builderComponents"]
|
|
2597
2574
|
});
|
|
2598
|
-
function
|
|
2575
|
+
function xo(e, t, n, o, r, i) {
|
|
2599
2576
|
var l, a, u;
|
|
2600
2577
|
const s = y("Blocks");
|
|
2601
2578
|
return c(), m("div", C(
|
|
@@ -2615,7 +2592,7 @@ function Vo(e, t, n, o, r, i) {
|
|
|
2615
2592
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
2616
2593
|
], 16);
|
|
2617
2594
|
}
|
|
2618
|
-
const
|
|
2595
|
+
const Ao = /* @__PURE__ */ b(Bo, [["render", xo]]), Vo = {
|
|
2619
2596
|
name: "Symbol",
|
|
2620
2597
|
noWrap: !0,
|
|
2621
2598
|
static: !0,
|
|
@@ -2654,7 +2631,7 @@ const Wo = /* @__PURE__ */ b(Ao, [["render", Vo]]), No = {
|
|
|
2654
2631
|
builderComponents: !0,
|
|
2655
2632
|
builderLinkComponent: !0
|
|
2656
2633
|
}
|
|
2657
|
-
},
|
|
2634
|
+
}, re = {
|
|
2658
2635
|
"@type": "@builder.io/sdk:Element",
|
|
2659
2636
|
responsiveStyles: {
|
|
2660
2637
|
large: {
|
|
@@ -2676,7 +2653,7 @@ const Wo = /* @__PURE__ */ b(Ao, [["render", Vo]]), No = {
|
|
|
2676
2653
|
text: "New tab"
|
|
2677
2654
|
}
|
|
2678
2655
|
}
|
|
2679
|
-
},
|
|
2656
|
+
}, ie = {
|
|
2680
2657
|
"@type": "@builder.io/sdk:Element",
|
|
2681
2658
|
responsiveStyles: {
|
|
2682
2659
|
large: {
|
|
@@ -2692,7 +2669,7 @@ const Wo = /* @__PURE__ */ b(Ao, [["render", Vo]]), No = {
|
|
|
2692
2669
|
text: "New tab content "
|
|
2693
2670
|
}
|
|
2694
2671
|
}
|
|
2695
|
-
},
|
|
2672
|
+
}, Wo = {
|
|
2696
2673
|
name: "Builder: Tabs",
|
|
2697
2674
|
inputs: [{
|
|
2698
2675
|
name: "tabs",
|
|
@@ -2702,16 +2679,16 @@ const Wo = /* @__PURE__ */ b(Ao, [["render", Vo]]), No = {
|
|
|
2702
2679
|
name: "label",
|
|
2703
2680
|
type: "uiBlocks",
|
|
2704
2681
|
hideFromUI: !0,
|
|
2705
|
-
defaultValue: [
|
|
2682
|
+
defaultValue: [re]
|
|
2706
2683
|
}, {
|
|
2707
2684
|
name: "content",
|
|
2708
2685
|
type: "uiBlocks",
|
|
2709
2686
|
hideFromUI: !0,
|
|
2710
|
-
defaultValue: [
|
|
2687
|
+
defaultValue: [ie]
|
|
2711
2688
|
}],
|
|
2712
2689
|
defaultValue: [{
|
|
2713
2690
|
label: [{
|
|
2714
|
-
...
|
|
2691
|
+
...re,
|
|
2715
2692
|
component: {
|
|
2716
2693
|
name: "Text",
|
|
2717
2694
|
options: {
|
|
@@ -2720,7 +2697,7 @@ const Wo = /* @__PURE__ */ b(Ao, [["render", Vo]]), No = {
|
|
|
2720
2697
|
}
|
|
2721
2698
|
}],
|
|
2722
2699
|
content: [{
|
|
2723
|
-
...
|
|
2700
|
+
...ie,
|
|
2724
2701
|
component: {
|
|
2725
2702
|
name: "Text",
|
|
2726
2703
|
options: {
|
|
@@ -2730,7 +2707,7 @@ const Wo = /* @__PURE__ */ b(Ao, [["render", Vo]]), No = {
|
|
|
2730
2707
|
}]
|
|
2731
2708
|
}, {
|
|
2732
2709
|
label: [{
|
|
2733
|
-
...
|
|
2710
|
+
...re,
|
|
2734
2711
|
component: {
|
|
2735
2712
|
name: "Text",
|
|
2736
2713
|
options: {
|
|
@@ -2739,7 +2716,7 @@ const Wo = /* @__PURE__ */ b(Ao, [["render", Vo]]), No = {
|
|
|
2739
2716
|
}
|
|
2740
2717
|
}],
|
|
2741
2718
|
content: [{
|
|
2742
|
-
...
|
|
2719
|
+
...ie,
|
|
2743
2720
|
component: {
|
|
2744
2721
|
name: "Text",
|
|
2745
2722
|
options: {
|
|
@@ -2795,9 +2772,9 @@ const Wo = /* @__PURE__ */ b(Ao, [["render", Vo]]), No = {
|
|
|
2795
2772
|
builderComponents: !0,
|
|
2796
2773
|
builderLinkComponent: !0
|
|
2797
2774
|
}
|
|
2798
|
-
},
|
|
2775
|
+
}, No = f({
|
|
2799
2776
|
name: "builder-tabs",
|
|
2800
|
-
components: { Blocks:
|
|
2777
|
+
components: { Blocks: L },
|
|
2801
2778
|
props: [
|
|
2802
2779
|
"defaultActiveTab",
|
|
2803
2780
|
"tabs",
|
|
@@ -2820,13 +2797,13 @@ const Wo = /* @__PURE__ */ b(Ao, [["render", Vo]]), No = {
|
|
|
2820
2797
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
2821
2798
|
}
|
|
2822
2799
|
}
|
|
2823
|
-
}),
|
|
2824
|
-
function
|
|
2800
|
+
}), Oo = ["onClick"], Fo = { key: 0 };
|
|
2801
|
+
function Do(e, t, n, o, r, i) {
|
|
2825
2802
|
const s = y("Blocks");
|
|
2826
2803
|
return c(), m("div", null, [
|
|
2827
|
-
|
|
2804
|
+
K("div", {
|
|
2828
2805
|
class: "builder-tabs-wrap",
|
|
2829
|
-
style:
|
|
2806
|
+
style: F({
|
|
2830
2807
|
display: "flex",
|
|
2831
2808
|
flexDirection: "row",
|
|
2832
2809
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
@@ -2835,8 +2812,8 @@ function Uo(e, t, n, o, r, i) {
|
|
|
2835
2812
|
}, [
|
|
2836
2813
|
(c(!0), m(w, null, A(e.tabs, (l, a) => (c(), m("span", {
|
|
2837
2814
|
key: a,
|
|
2838
|
-
class:
|
|
2839
|
-
style:
|
|
2815
|
+
class: q(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
2816
|
+
style: F({
|
|
2840
2817
|
...e.activeTab === a ? e.activeTabStyle : {}
|
|
2841
2818
|
}),
|
|
2842
2819
|
onClick: (u) => e.onClick(a)
|
|
@@ -2849,9 +2826,9 @@ function Uo(e, t, n, o, r, i) {
|
|
|
2849
2826
|
registeredComponents: e.builderComponents,
|
|
2850
2827
|
linkComponent: e.builderLinkComponent
|
|
2851
2828
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
2852
|
-
], 14,
|
|
2829
|
+
], 14, Oo))), 128))
|
|
2853
2830
|
], 4),
|
|
2854
|
-
e.activeTabContent(e.activeTab) ? (c(), m("div",
|
|
2831
|
+
e.activeTabContent(e.activeTab) ? (c(), m("div", Fo, [
|
|
2855
2832
|
$(s, {
|
|
2856
2833
|
parent: e.builderBlock.id,
|
|
2857
2834
|
path: `component.options.tabs.${e.activeTab}.content`,
|
|
@@ -2863,7 +2840,7 @@ function Uo(e, t, n, o, r, i) {
|
|
|
2863
2840
|
])) : S("", !0)
|
|
2864
2841
|
]);
|
|
2865
2842
|
}
|
|
2866
|
-
const
|
|
2843
|
+
const Lo = /* @__PURE__ */ b(No, [["render", Do]]), Uo = {
|
|
2867
2844
|
shouldReceiveBuilderProps: {
|
|
2868
2845
|
builderBlock: !1,
|
|
2869
2846
|
builderContext: !0
|
|
@@ -2885,7 +2862,7 @@ const Mo = /* @__PURE__ */ b(Fo, [["render", Uo]]), jo = {
|
|
|
2885
2862
|
height: "auto",
|
|
2886
2863
|
textAlign: "center"
|
|
2887
2864
|
}
|
|
2888
|
-
},
|
|
2865
|
+
}, Mo = f({
|
|
2889
2866
|
name: "builder-text",
|
|
2890
2867
|
props: ["builderContext", "text"],
|
|
2891
2868
|
computed: {
|
|
@@ -2899,28 +2876,27 @@ const Mo = /* @__PURE__ */ b(Fo, [["render", Uo]]), jo = {
|
|
|
2899
2876
|
} = e;
|
|
2900
2877
|
return String(((i = this.text) == null ? void 0 : i.toString()) || "").replace(
|
|
2901
2878
|
/{{([^}]+)}}/g,
|
|
2902
|
-
(s, l) =>
|
|
2879
|
+
(s, l) => J({
|
|
2903
2880
|
code: l,
|
|
2904
2881
|
context: t,
|
|
2905
2882
|
localState: n,
|
|
2906
2883
|
rootState: o,
|
|
2907
|
-
rootSetState: r
|
|
2908
|
-
enableCache: !1
|
|
2884
|
+
rootSetState: r
|
|
2909
2885
|
})
|
|
2910
2886
|
);
|
|
2911
2887
|
}
|
|
2912
2888
|
}
|
|
2913
|
-
}),
|
|
2914
|
-
function
|
|
2889
|
+
}), jo = ["innerHTML"];
|
|
2890
|
+
function Ho(e, t, n, o, r, i) {
|
|
2915
2891
|
return c(), m("div", {
|
|
2916
2892
|
class: "builder-text",
|
|
2917
2893
|
innerHTML: e.processedText,
|
|
2918
2894
|
style: {
|
|
2919
2895
|
outline: "none"
|
|
2920
2896
|
}
|
|
2921
|
-
}, null, 8,
|
|
2897
|
+
}, null, 8, jo);
|
|
2922
2898
|
}
|
|
2923
|
-
const
|
|
2899
|
+
const Ko = /* @__PURE__ */ b(Mo, [["render", Ho]]), qo = {
|
|
2924
2900
|
name: "Custom Code",
|
|
2925
2901
|
static: !0,
|
|
2926
2902
|
requiredPermissions: ["editCode"],
|
|
@@ -2942,7 +2918,7 @@ const zo = /* @__PURE__ */ b(Ho, [["render", qo]]), Jo = {
|
|
|
2942
2918
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
2943
2919
|
advanced: !0
|
|
2944
2920
|
}]
|
|
2945
|
-
},
|
|
2921
|
+
}, zo = f({
|
|
2946
2922
|
name: "builder-custom-code",
|
|
2947
2923
|
props: ["replaceNodes", "code"],
|
|
2948
2924
|
data() {
|
|
@@ -2976,15 +2952,15 @@ const zo = /* @__PURE__ */ b(Ho, [["render", qo]]), Jo = {
|
|
|
2976
2952
|
}
|
|
2977
2953
|
}
|
|
2978
2954
|
}
|
|
2979
|
-
}),
|
|
2980
|
-
function
|
|
2955
|
+
}), Jo = ["innerHTML"];
|
|
2956
|
+
function Go(e, t, n, o, r, i) {
|
|
2981
2957
|
return c(), m("div", {
|
|
2982
2958
|
ref: "elementRef",
|
|
2983
|
-
class:
|
|
2959
|
+
class: q("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
2984
2960
|
innerHTML: e.code
|
|
2985
|
-
}, null, 10,
|
|
2961
|
+
}, null, 10, Jo);
|
|
2986
2962
|
}
|
|
2987
|
-
const
|
|
2963
|
+
const Yo = /* @__PURE__ */ b(zo, [["render", Go]]), Xo = {
|
|
2988
2964
|
name: "Embed",
|
|
2989
2965
|
static: !0,
|
|
2990
2966
|
inputs: [{
|
|
@@ -2999,7 +2975,7 @@ const Xo = /* @__PURE__ */ b(Go, [["render", Qo]]), Zo = {
|
|
|
2999
2975
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3000
2976
|
hideFromUI: !0
|
|
3001
2977
|
}]
|
|
3002
|
-
},
|
|
2978
|
+
}, Qo = ["text/javascript", "application/javascript", "application/ecmascript"], Zo = (e) => Qo.includes(e.type), _o = f({
|
|
3003
2979
|
name: "builder-embed",
|
|
3004
2980
|
props: ["content"],
|
|
3005
2981
|
data() {
|
|
@@ -3032,7 +3008,7 @@ const Xo = /* @__PURE__ */ b(Go, [["render", Qo]]), Zo = {
|
|
|
3032
3008
|
this.scriptsInserted.push(n.src);
|
|
3033
3009
|
const o = document.createElement("script");
|
|
3034
3010
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3035
|
-
} else if (
|
|
3011
|
+
} else if (Zo(n) && !this.scriptsRun.includes(n.innerText))
|
|
3036
3012
|
try {
|
|
3037
3013
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3038
3014
|
} catch (o) {
|
|
@@ -3041,15 +3017,15 @@ const Xo = /* @__PURE__ */ b(Go, [["render", Qo]]), Zo = {
|
|
|
3041
3017
|
}
|
|
3042
3018
|
}
|
|
3043
3019
|
}
|
|
3044
|
-
}),
|
|
3045
|
-
function
|
|
3020
|
+
}), er = ["innerHTML"];
|
|
3021
|
+
function tr(e, t, n, o, r, i) {
|
|
3046
3022
|
return c(), m("div", {
|
|
3047
3023
|
class: "builder-embed",
|
|
3048
3024
|
ref: "elem",
|
|
3049
3025
|
innerHTML: e.content
|
|
3050
|
-
}, null, 8,
|
|
3026
|
+
}, null, 8, er);
|
|
3051
3027
|
}
|
|
3052
|
-
const
|
|
3028
|
+
const nr = /* @__PURE__ */ b(_o, [["render", tr]]), or = {
|
|
3053
3029
|
name: "Form:Form",
|
|
3054
3030
|
// editableTags: ['builder-form-error']
|
|
3055
3031
|
defaults: {
|
|
@@ -3286,15 +3262,12 @@ const rr = /* @__PURE__ */ b(tr, [["render", or]]), ir = {
|
|
|
3286
3262
|
builderComponents: !0,
|
|
3287
3263
|
builderLinkComponent: !0
|
|
3288
3264
|
}
|
|
3289
|
-
},
|
|
3265
|
+
}, rr = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], ir = () => {
|
|
3290
3266
|
const e = process.env.NODE_ENV || "production";
|
|
3291
|
-
return
|
|
3292
|
-
},
|
|
3293
|
-
const o = String.prototype.split.call(t, /[,[\].]+?/).filter(Boolean).reduce((r, i) => r != null ? r[i] : r, e);
|
|
3294
|
-
return o === void 0 || o === e ? n : o;
|
|
3295
|
-
}, cr = f({
|
|
3267
|
+
return rr.includes(e) ? e : "production";
|
|
3268
|
+
}, sr = f({
|
|
3296
3269
|
name: "builder-form-component",
|
|
3297
|
-
components: { Block:
|
|
3270
|
+
components: { Block: be, Blocks: L },
|
|
3298
3271
|
props: [
|
|
3299
3272
|
"builderContext",
|
|
3300
3273
|
"previewState",
|
|
@@ -3383,7 +3356,7 @@ const rr = /* @__PURE__ */ b(tr, [["render", or]]), ir = {
|
|
|
3383
3356
|
else {
|
|
3384
3357
|
const d = {};
|
|
3385
3358
|
Array.from(l).forEach(({ value: p, key: k }) => {
|
|
3386
|
-
|
|
3359
|
+
Oe(d, k, p);
|
|
3387
3360
|
}), i = JSON.stringify(d);
|
|
3388
3361
|
}
|
|
3389
3362
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -3395,7 +3368,7 @@ const rr = /* @__PURE__ */ b(tr, [["render", or]]), ir = {
|
|
|
3395
3368
|
if (this.$refs.formRef && (this.$refs.formRef.dispatchEvent(u), u.defaultPrevented))
|
|
3396
3369
|
return;
|
|
3397
3370
|
this.formState = "sending";
|
|
3398
|
-
const h = `${
|
|
3371
|
+
const h = `${ir() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
3399
3372
|
this.sendSubmissionsToEmail || ""
|
|
3400
3373
|
)}&name=${encodeURIComponent(this.name || "")}`;
|
|
3401
3374
|
fetch(
|
|
@@ -3410,7 +3383,7 @@ const rr = /* @__PURE__ */ b(tr, [["render", or]]), ir = {
|
|
|
3410
3383
|
let p;
|
|
3411
3384
|
const k = d.headers.get("content-type");
|
|
3412
3385
|
if (k && k.indexOf("application/json") !== -1 ? p = await d.json() : p = await d.text(), !d.ok && this.errorMessagePath) {
|
|
3413
|
-
let v =
|
|
3386
|
+
let v = xe(p, this.errorMessagePath);
|
|
3414
3387
|
v && (typeof v != "string" && (v = JSON.stringify(v)), this.formErrorMessage = v, this.mergeNewRootState({
|
|
3415
3388
|
formErrorMessage: v
|
|
3416
3389
|
}));
|
|
@@ -3429,12 +3402,12 @@ const rr = /* @__PURE__ */ b(tr, [["render", or]]), ir = {
|
|
|
3429
3402
|
}
|
|
3430
3403
|
if (this.successUrl)
|
|
3431
3404
|
if (this.$refs.formRef) {
|
|
3432
|
-
const
|
|
3405
|
+
const N = new CustomEvent("route", {
|
|
3433
3406
|
detail: {
|
|
3434
3407
|
url: this.successUrl
|
|
3435
3408
|
}
|
|
3436
3409
|
});
|
|
3437
|
-
this.$refs.formRef.dispatchEvent(
|
|
3410
|
+
this.$refs.formRef.dispatchEvent(N), N.defaultPrevented || (location.href = this.successUrl);
|
|
3438
3411
|
} else
|
|
3439
3412
|
location.href = this.successUrl;
|
|
3440
3413
|
}
|
|
@@ -3451,11 +3424,11 @@ const rr = /* @__PURE__ */ b(tr, [["render", or]]), ir = {
|
|
|
3451
3424
|
}
|
|
3452
3425
|
}
|
|
3453
3426
|
}
|
|
3454
|
-
}),
|
|
3427
|
+
}), ar = ["validate", "action", "method", "name"], lr = {
|
|
3455
3428
|
key: 3,
|
|
3456
3429
|
class: "builder-form-error-text pre-3q96myty4lk"
|
|
3457
3430
|
};
|
|
3458
|
-
function
|
|
3431
|
+
function cr(e, t, n, o, r, i) {
|
|
3459
3432
|
var a;
|
|
3460
3433
|
const s = y("Block"), l = y("Blocks");
|
|
3461
3434
|
return c(), m("form", C({
|
|
@@ -3465,7 +3438,7 @@ function pr(e, t, n, o, r, i) {
|
|
|
3465
3438
|
method: e.method,
|
|
3466
3439
|
name: e.name,
|
|
3467
3440
|
onSubmit: t[0] || (t[0] = (u) => e.onSubmit(u))
|
|
3468
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
3441
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3469
3442
|
e.builderBlock && e.builderBlock.children ? (c(!0), m(w, { key: 0 }, A((a = e.builderBlock) == null ? void 0 : a.children, (u, h) => (c(), g(s, {
|
|
3470
3443
|
key: `form-block-${e.idx}`,
|
|
3471
3444
|
block: u,
|
|
@@ -3485,16 +3458,16 @@ function pr(e, t, n, o, r, i) {
|
|
|
3485
3458
|
blocks: e.sendingMessage,
|
|
3486
3459
|
context: e.builderContext
|
|
3487
3460
|
}, null, 8, ["blocks", "context"])) : S("", !0),
|
|
3488
|
-
e.submissionState() === "error" && e.responseData ? (c(), m("pre",
|
|
3461
|
+
e.submissionState() === "error" && e.responseData ? (c(), m("pre", lr, ee(JSON.stringify(e.responseData, null, 2)), 1)) : S("", !0),
|
|
3489
3462
|
e.submissionState() === "success" ? (c(), g(l, {
|
|
3490
3463
|
key: 4,
|
|
3491
3464
|
path: "successMessage",
|
|
3492
3465
|
blocks: e.successMessage,
|
|
3493
3466
|
context: e.builderContext
|
|
3494
3467
|
}, null, 8, ["blocks", "context"])) : S("", !0)
|
|
3495
|
-
], 16,
|
|
3468
|
+
], 16, ar);
|
|
3496
3469
|
}
|
|
3497
|
-
const
|
|
3470
|
+
const dr = /* @__PURE__ */ b(sr, [["render", cr], ["__scopeId", "data-v-6e18f21b"]]), ur = {
|
|
3498
3471
|
name: "Form:Input",
|
|
3499
3472
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
3500
3473
|
inputs: [
|
|
@@ -3545,7 +3518,7 @@ const mr = /* @__PURE__ */ b(cr, [["render", pr], ["__scopeId", "data-v-6e18f21b
|
|
|
3545
3518
|
borderStyle: "solid",
|
|
3546
3519
|
borderColor: "#ccc"
|
|
3547
3520
|
}
|
|
3548
|
-
},
|
|
3521
|
+
}, pr = f({
|
|
3549
3522
|
name: "builder-form-input-component",
|
|
3550
3523
|
props: [
|
|
3551
3524
|
"attributes",
|
|
@@ -3559,8 +3532,8 @@ const mr = /* @__PURE__ */ b(cr, [["render", pr], ["__scopeId", "data-v-6e18f21b
|
|
|
3559
3532
|
data() {
|
|
3560
3533
|
return { isEditing: R, filterAttrs: V };
|
|
3561
3534
|
}
|
|
3562
|
-
}),
|
|
3563
|
-
function
|
|
3535
|
+
}), mr = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
3536
|
+
function hr(e, t, n, o, r, i) {
|
|
3564
3537
|
return c(), m("input", C({
|
|
3565
3538
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3566
3539
|
placeholder: e.placeholder,
|
|
@@ -3569,9 +3542,9 @@ function gr(e, t, n, o, r, i) {
|
|
|
3569
3542
|
value: e.value,
|
|
3570
3543
|
defaultValue: e.defaultValue,
|
|
3571
3544
|
required: e.required
|
|
3572
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3545
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, mr);
|
|
3573
3546
|
}
|
|
3574
|
-
const
|
|
3547
|
+
const fr = /* @__PURE__ */ b(pr, [["render", hr]]), br = {
|
|
3575
3548
|
name: "Form:Select",
|
|
3576
3549
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
3577
3550
|
defaultStyles: {
|
|
@@ -3613,28 +3586,28 @@ const yr = /* @__PURE__ */ b(fr, [["render", gr]]), kr = {
|
|
|
3613
3586
|
}],
|
|
3614
3587
|
static: !0,
|
|
3615
3588
|
noWrap: !0
|
|
3616
|
-
},
|
|
3589
|
+
}, gr = f({
|
|
3617
3590
|
name: "builder-select-component",
|
|
3618
3591
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
3619
3592
|
data() {
|
|
3620
3593
|
return { isEditing: R, filterAttrs: V };
|
|
3621
3594
|
}
|
|
3622
|
-
}),
|
|
3623
|
-
function
|
|
3595
|
+
}), yr = ["value", "defaultValue", "name", "required"], kr = ["value"];
|
|
3596
|
+
function vr(e, t, n, o, r, i) {
|
|
3624
3597
|
return c(), m("select", C({
|
|
3625
3598
|
value: e.value,
|
|
3626
3599
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
3627
3600
|
defaultValue: e.defaultValue,
|
|
3628
3601
|
name: e.name,
|
|
3629
3602
|
required: e.required
|
|
3630
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3603
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
3631
3604
|
(c(!0), m(w, null, A(e.options, (s, l) => (c(), m("option", {
|
|
3632
3605
|
key: `${s.name}-${l}`,
|
|
3633
3606
|
value: s.value
|
|
3634
|
-
},
|
|
3635
|
-
], 16,
|
|
3607
|
+
}, ee(s.name || s.value), 9, kr))), 128))
|
|
3608
|
+
], 16, yr);
|
|
3636
3609
|
}
|
|
3637
|
-
const
|
|
3610
|
+
const Sr = /* @__PURE__ */ b(gr, [["render", vr]]), Cr = {
|
|
3638
3611
|
name: "Form:SubmitButton",
|
|
3639
3612
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
3640
3613
|
defaultStyles: {
|
|
@@ -3659,17 +3632,17 @@ const Tr = /* @__PURE__ */ b(vr, [["render", wr]]), Ir = {
|
|
|
3659
3632
|
// that only shows if advanced setting is flipped
|
|
3660
3633
|
// TODO: defaultChildren
|
|
3661
3634
|
// canHaveChildren: true,
|
|
3662
|
-
},
|
|
3635
|
+
}, wr = f({
|
|
3663
3636
|
name: "builder-submit-button",
|
|
3664
3637
|
props: ["attributes", "text"],
|
|
3665
3638
|
data() {
|
|
3666
3639
|
return { filterAttrs: V };
|
|
3667
3640
|
}
|
|
3668
3641
|
});
|
|
3669
|
-
function
|
|
3670
|
-
return c(), m("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3642
|
+
function Tr(e, t, n, o, r, i) {
|
|
3643
|
+
return c(), m("button", C({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ee(e.text), 17);
|
|
3671
3644
|
}
|
|
3672
|
-
const
|
|
3645
|
+
const Ir = /* @__PURE__ */ b(wr, [["render", Tr]]), $r = {
|
|
3673
3646
|
name: "Form:TextArea",
|
|
3674
3647
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
3675
3648
|
inputs: [{
|
|
@@ -3705,7 +3678,7 @@ const Br = /* @__PURE__ */ b($r, [["render", Rr]]), Er = {
|
|
|
3705
3678
|
},
|
|
3706
3679
|
static: !0,
|
|
3707
3680
|
noWrap: !0
|
|
3708
|
-
},
|
|
3681
|
+
}, Rr = f({
|
|
3709
3682
|
name: "builder-textarea",
|
|
3710
3683
|
props: [
|
|
3711
3684
|
"attributes",
|
|
@@ -3718,17 +3691,17 @@ const Br = /* @__PURE__ */ b($r, [["render", Rr]]), Er = {
|
|
|
3718
3691
|
data() {
|
|
3719
3692
|
return { filterAttrs: V };
|
|
3720
3693
|
}
|
|
3721
|
-
}),
|
|
3722
|
-
function
|
|
3694
|
+
}), Er = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
3695
|
+
function Pr(e, t, n, o, r, i) {
|
|
3723
3696
|
return c(), m("textarea", C({
|
|
3724
3697
|
placeholder: e.placeholder,
|
|
3725
3698
|
name: e.name,
|
|
3726
3699
|
value: e.value,
|
|
3727
3700
|
defaultValue: e.defaultValue,
|
|
3728
3701
|
required: e.required
|
|
3729
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3702
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Er);
|
|
3730
3703
|
}
|
|
3731
|
-
const
|
|
3704
|
+
const Br = /* @__PURE__ */ b(Rr, [["render", Pr]]), xr = {
|
|
3732
3705
|
// friendlyName?
|
|
3733
3706
|
name: "Raw:Img",
|
|
3734
3707
|
hideFromInsertMenu: !0,
|
|
@@ -3742,7 +3715,7 @@ const Vr = /* @__PURE__ */ b(Pr, [["render", Ar]]), Wr = {
|
|
|
3742
3715
|
}],
|
|
3743
3716
|
noWrap: !0,
|
|
3744
3717
|
static: !0
|
|
3745
|
-
},
|
|
3718
|
+
}, Ar = f({
|
|
3746
3719
|
name: "builder-img-component",
|
|
3747
3720
|
props: [
|
|
3748
3721
|
"backgroundSize",
|
|
@@ -3755,8 +3728,8 @@ const Vr = /* @__PURE__ */ b(Pr, [["render", Ar]]), Wr = {
|
|
|
3755
3728
|
data() {
|
|
3756
3729
|
return { isEditing: R, filterAttrs: V };
|
|
3757
3730
|
}
|
|
3758
|
-
}),
|
|
3759
|
-
function
|
|
3731
|
+
}), Vr = ["alt", "src"];
|
|
3732
|
+
function Wr(e, t, n, o, r, i) {
|
|
3760
3733
|
return c(), m("img", C({
|
|
3761
3734
|
style: {
|
|
3762
3735
|
objectFit: e.backgroundSize || "cover",
|
|
@@ -3765,9 +3738,9 @@ function Fr(e, t, n, o, r, i) {
|
|
|
3765
3738
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
3766
3739
|
alt: e.altText,
|
|
3767
3740
|
src: e.imgSrc || e.image
|
|
3768
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
3741
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Vr);
|
|
3769
3742
|
}
|
|
3770
|
-
const
|
|
3743
|
+
const Nr = /* @__PURE__ */ b(Ar, [["render", Wr]]), Or = {
|
|
3771
3744
|
name: "Video",
|
|
3772
3745
|
canHaveChildren: !0,
|
|
3773
3746
|
defaultStyles: {
|
|
@@ -3851,7 +3824,7 @@ const Dr = /* @__PURE__ */ b(Nr, [["render", Fr]]), Lr = {
|
|
|
3851
3824
|
shouldReceiveBuilderProps: {
|
|
3852
3825
|
builderBlock: !0
|
|
3853
3826
|
}
|
|
3854
|
-
},
|
|
3827
|
+
}, Fr = f({
|
|
3855
3828
|
name: "builder-video",
|
|
3856
3829
|
props: [
|
|
3857
3830
|
"autoPlay",
|
|
@@ -3896,16 +3869,16 @@ const Dr = /* @__PURE__ */ b(Nr, [["render", Fr]]), Lr = {
|
|
|
3896
3869
|
};
|
|
3897
3870
|
}
|
|
3898
3871
|
}
|
|
3899
|
-
}),
|
|
3872
|
+
}), Dr = { style: {
|
|
3900
3873
|
position: "relative"
|
|
3901
|
-
} },
|
|
3874
|
+
} }, Lr = ["preload", "src", "poster"], Ur = ["src"], Mr = {
|
|
3902
3875
|
key: 1,
|
|
3903
3876
|
style: {
|
|
3904
3877
|
display: "flex",
|
|
3905
3878
|
flexDirection: "column",
|
|
3906
3879
|
alignItems: "stretch"
|
|
3907
3880
|
}
|
|
3908
|
-
},
|
|
3881
|
+
}, jr = {
|
|
3909
3882
|
key: 2,
|
|
3910
3883
|
style: {
|
|
3911
3884
|
pointerEvents: "none",
|
|
@@ -3919,10 +3892,10 @@ const Dr = /* @__PURE__ */ b(Nr, [["render", Fr]]), Lr = {
|
|
|
3919
3892
|
height: "100%"
|
|
3920
3893
|
}
|
|
3921
3894
|
};
|
|
3922
|
-
function
|
|
3895
|
+
function Hr(e, t, n, o, r, i) {
|
|
3923
3896
|
var s, l, a, u, h, d, p;
|
|
3924
|
-
return c(), m("div",
|
|
3925
|
-
|
|
3897
|
+
return c(), m("div", Dr, [
|
|
3898
|
+
K("video", C({
|
|
3926
3899
|
class: "builder-video",
|
|
3927
3900
|
preload: e.preload || "metadata",
|
|
3928
3901
|
style: {
|
|
@@ -3946,83 +3919,83 @@ function zr(e, t, n, o, r, i) {
|
|
|
3946
3919
|
key: 0,
|
|
3947
3920
|
type: "video/mp4",
|
|
3948
3921
|
src: e.video
|
|
3949
|
-
}, null, 8,
|
|
3950
|
-
], 16,
|
|
3922
|
+
}, null, 8, Ur))
|
|
3923
|
+
], 16, Lr),
|
|
3951
3924
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (c(), m("div", {
|
|
3952
3925
|
key: 0,
|
|
3953
|
-
style:
|
|
3926
|
+
style: F({
|
|
3954
3927
|
width: "100%",
|
|
3955
3928
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
3956
3929
|
pointerEvents: "none",
|
|
3957
3930
|
fontSize: "0px"
|
|
3958
3931
|
})
|
|
3959
3932
|
}, null, 4)) : S("", !0),
|
|
3960
|
-
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), m("div",
|
|
3933
|
+
(h = (u = e.builderBlock) == null ? void 0 : u.children) != null && h.length && e.fitContent ? (c(), m("div", Mr, [
|
|
3961
3934
|
x(e.$slots, "default")
|
|
3962
3935
|
])) : S("", !0),
|
|
3963
|
-
(p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && !e.fitContent ? (c(), m("div",
|
|
3936
|
+
(p = (d = e.builderBlock) == null ? void 0 : d.children) != null && p.length && !e.fitContent ? (c(), m("div", jr, [
|
|
3964
3937
|
x(e.$slots, "default")
|
|
3965
3938
|
])) : S("", !0)
|
|
3966
3939
|
]);
|
|
3967
3940
|
}
|
|
3968
|
-
const
|
|
3969
|
-
component:
|
|
3970
|
-
...
|
|
3941
|
+
const Kr = /* @__PURE__ */ b(Fr, [["render", Hr]]), qr = () => [{
|
|
3942
|
+
component: Yo,
|
|
3943
|
+
...qo
|
|
3971
3944
|
}, {
|
|
3972
|
-
component:
|
|
3973
|
-
...
|
|
3945
|
+
component: nr,
|
|
3946
|
+
...Xo
|
|
3974
3947
|
}, {
|
|
3975
|
-
component:
|
|
3976
|
-
...
|
|
3948
|
+
component: dr,
|
|
3949
|
+
...or
|
|
3977
3950
|
}, {
|
|
3978
|
-
component:
|
|
3979
|
-
...
|
|
3951
|
+
component: fr,
|
|
3952
|
+
...ur
|
|
3953
|
+
}, {
|
|
3954
|
+
component: Ir,
|
|
3955
|
+
...Cr
|
|
3956
|
+
}, {
|
|
3957
|
+
component: Sr,
|
|
3958
|
+
...br
|
|
3980
3959
|
}, {
|
|
3981
3960
|
component: Br,
|
|
3982
|
-
|
|
3961
|
+
...$r
|
|
3983
3962
|
}, {
|
|
3984
|
-
component:
|
|
3985
|
-
...
|
|
3963
|
+
component: Nr,
|
|
3964
|
+
...xr
|
|
3986
3965
|
}, {
|
|
3987
|
-
component:
|
|
3988
|
-
...
|
|
3966
|
+
component: Kr,
|
|
3967
|
+
...Or
|
|
3968
|
+
}], $e = () => [{
|
|
3969
|
+
component: gt,
|
|
3970
|
+
...To
|
|
3989
3971
|
}, {
|
|
3990
|
-
component:
|
|
3991
|
-
...
|
|
3972
|
+
component: no,
|
|
3973
|
+
...Io
|
|
3992
3974
|
}, {
|
|
3993
|
-
component:
|
|
3994
|
-
...Lr
|
|
3995
|
-
}], Ee = () => [{
|
|
3996
|
-
component: St,
|
|
3975
|
+
component: io,
|
|
3997
3976
|
...$o
|
|
3998
3977
|
}, {
|
|
3999
|
-
component:
|
|
3978
|
+
component: ho,
|
|
4000
3979
|
...Ro
|
|
4001
3980
|
}, {
|
|
4002
|
-
component:
|
|
4003
|
-
...Bo
|
|
4004
|
-
}, {
|
|
4005
|
-
component: bo,
|
|
3981
|
+
component: go,
|
|
4006
3982
|
...Eo
|
|
4007
3983
|
}, {
|
|
4008
|
-
component:
|
|
3984
|
+
component: Ao,
|
|
4009
3985
|
...Po
|
|
4010
3986
|
}, {
|
|
4011
|
-
component:
|
|
4012
|
-
...
|
|
3987
|
+
component: $i,
|
|
3988
|
+
...Vo
|
|
4013
3989
|
}, {
|
|
4014
|
-
component:
|
|
4015
|
-
...
|
|
3990
|
+
component: Ko,
|
|
3991
|
+
...Uo
|
|
4016
3992
|
}, {
|
|
4017
|
-
component:
|
|
4018
|
-
...
|
|
3993
|
+
component: Lo,
|
|
3994
|
+
...Wo
|
|
4019
3995
|
}, {
|
|
4020
|
-
component:
|
|
4021
|
-
...
|
|
4022
|
-
}, {
|
|
4023
|
-
component: Io,
|
|
4024
|
-
...vo
|
|
4025
|
-
}, ...Gr()], Yr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
3996
|
+
component: wo,
|
|
3997
|
+
...yo
|
|
3998
|
+
}, ...qr()], zr = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget) {
|
|
4026
3999
|
function getAndSetVariantId() {
|
|
4027
4000
|
function setCookie(name, value, days) {
|
|
4028
4001
|
let expires = '';
|
|
@@ -4078,7 +4051,7 @@ const Jr = /* @__PURE__ */ b(Ur, [["render", zr]]), Gr = () => [{
|
|
|
4078
4051
|
}).join('');
|
|
4079
4052
|
styleEl.innerHTML = newStyleStr;
|
|
4080
4053
|
}
|
|
4081
|
-
}`,
|
|
4054
|
+
}`, Jr = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4082
4055
|
if (!navigator.cookieEnabled) {
|
|
4083
4056
|
return;
|
|
4084
4057
|
}
|
|
@@ -4112,27 +4085,27 @@ const Jr = /* @__PURE__ */ b(Ur, [["render", zr]]), Gr = () => [{
|
|
|
4112
4085
|
thisScriptEl?.remove();
|
|
4113
4086
|
}
|
|
4114
4087
|
return;
|
|
4115
|
-
}`,
|
|
4088
|
+
}`, rt = "builderIoAbTest", it = "builderIoRenderContent", Q = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4116
4089
|
...t,
|
|
4117
4090
|
testVariationId: t.id,
|
|
4118
4091
|
id: e == null ? void 0 : e.id
|
|
4119
|
-
})),
|
|
4092
|
+
})), Gr = ({
|
|
4120
4093
|
canTrack: e,
|
|
4121
4094
|
content: t
|
|
4122
|
-
}) => !(!(
|
|
4123
|
-
window.${
|
|
4124
|
-
window.${
|
|
4125
|
-
`,
|
|
4126
|
-
window.${
|
|
4127
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4128
|
-
)`,
|
|
4095
|
+
}) => !(!(Q(t).length > 0) || !e), Yr = (e) => e === "react" || e === "reactNative", st = Yr(P), Xr = () => `
|
|
4096
|
+
window.${rt} = ${zr}
|
|
4097
|
+
window.${it} = ${Jr}
|
|
4098
|
+
`, Qr = (e, t) => `
|
|
4099
|
+
window.${rt}(
|
|
4100
|
+
"${t}",${JSON.stringify(e)}, ${st}
|
|
4101
|
+
)`, Zr = ({
|
|
4129
4102
|
contentId: e,
|
|
4130
4103
|
variationId: t
|
|
4131
|
-
}) => `window.${
|
|
4132
|
-
"${t}", "${e}", ${
|
|
4133
|
-
)`,
|
|
4104
|
+
}) => `window.${it}(
|
|
4105
|
+
"${t}", "${e}", ${st}
|
|
4106
|
+
)`, at = f({
|
|
4134
4107
|
render() {
|
|
4135
|
-
return
|
|
4108
|
+
return Pe("script", {
|
|
4136
4109
|
innerHTML: this.scriptStr,
|
|
4137
4110
|
"data-id": this.id,
|
|
4138
4111
|
nonce: this.nonce
|
|
@@ -4141,10 +4114,10 @@ const Jr = /* @__PURE__ */ b(Ur, [["render", zr]]), Gr = () => [{
|
|
|
4141
4114
|
name: "inlined-script",
|
|
4142
4115
|
props: ["scriptStr", "id", "nonce"]
|
|
4143
4116
|
});
|
|
4144
|
-
function
|
|
4117
|
+
function Re(e) {
|
|
4145
4118
|
return Math.round(e * 1e3) / 1e3;
|
|
4146
4119
|
}
|
|
4147
|
-
const
|
|
4120
|
+
const _r = (e, t, n = !0) => {
|
|
4148
4121
|
if (!(e instanceof HTMLElement))
|
|
4149
4122
|
return null;
|
|
4150
4123
|
let o = n ? e : e.parentElement;
|
|
@@ -4155,35 +4128,35 @@ const ni = (e, t, n = !0) => {
|
|
|
4155
4128
|
return o;
|
|
4156
4129
|
} while (o = o.parentElement);
|
|
4157
4130
|
return null;
|
|
4158
|
-
},
|
|
4131
|
+
}, ei = (e) => _r(e, (t) => {
|
|
4159
4132
|
const n = t.getAttribute("builder-id") || t.id;
|
|
4160
4133
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
4161
|
-
}),
|
|
4134
|
+
}), Ee = ({
|
|
4162
4135
|
event: e,
|
|
4163
4136
|
target: t
|
|
4164
4137
|
}) => {
|
|
4165
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
4138
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Re(o / n.width), s = Re(r / n.height);
|
|
4166
4139
|
return {
|
|
4167
4140
|
x: i,
|
|
4168
4141
|
y: s
|
|
4169
4142
|
};
|
|
4170
|
-
},
|
|
4171
|
-
const t = e.target, n = t &&
|
|
4143
|
+
}, ti = (e) => {
|
|
4144
|
+
const t = e.target, n = t && ei(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
4172
4145
|
return {
|
|
4173
4146
|
targetBuilderElement: o || void 0,
|
|
4174
4147
|
metadata: {
|
|
4175
|
-
targetOffset: t ?
|
|
4148
|
+
targetOffset: t ? Ee({
|
|
4176
4149
|
event: e,
|
|
4177
4150
|
target: t
|
|
4178
4151
|
}) : void 0,
|
|
4179
|
-
builderTargetOffset: n ?
|
|
4152
|
+
builderTargetOffset: n ? Ee({
|
|
4180
4153
|
event: e,
|
|
4181
4154
|
target: n
|
|
4182
4155
|
}) : void 0,
|
|
4183
4156
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
4184
4157
|
}
|
|
4185
4158
|
};
|
|
4186
|
-
},
|
|
4159
|
+
}, ni = (e) => {
|
|
4187
4160
|
var i;
|
|
4188
4161
|
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);
|
|
4189
4162
|
let r = "";
|
|
@@ -4209,15 +4182,15 @@ font-weight: ${s};
|
|
|
4209
4182
|
`.trim());
|
|
4210
4183
|
}
|
|
4211
4184
|
return r;
|
|
4212
|
-
},
|
|
4185
|
+
}, oi = ({
|
|
4213
4186
|
customFonts: e
|
|
4214
4187
|
}) => {
|
|
4215
4188
|
var t;
|
|
4216
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
4217
|
-
},
|
|
4189
|
+
return ((t = e == null ? void 0 : e.map((n) => ni(n))) == null ? void 0 : t.join(" ")) || "";
|
|
4190
|
+
}, ri = ({
|
|
4218
4191
|
cssCode: e,
|
|
4219
4192
|
contentId: t
|
|
4220
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
4193
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", ii = `
|
|
4221
4194
|
.builder-button {
|
|
4222
4195
|
all: unset;
|
|
4223
4196
|
}
|
|
@@ -4234,9 +4207,9 @@ font-weight: ${s};
|
|
|
4234
4207
|
text-align: inherit;
|
|
4235
4208
|
font-family: inherit;
|
|
4236
4209
|
}
|
|
4237
|
-
`,
|
|
4210
|
+
`, si = (e) => e ? "" : ii, ai = (e) => `variant-${e}`, li = f({
|
|
4238
4211
|
name: "enable-editor",
|
|
4239
|
-
components: { DynamicDiv:
|
|
4212
|
+
components: { DynamicDiv: G },
|
|
4240
4213
|
props: [
|
|
4241
4214
|
"builderContextSignal",
|
|
4242
4215
|
"canTrack",
|
|
@@ -4258,14 +4231,14 @@ font-weight: ${s};
|
|
|
4258
4231
|
httpReqsData: {},
|
|
4259
4232
|
httpReqsPending: {},
|
|
4260
4233
|
clicked: !1,
|
|
4261
|
-
builderContext:
|
|
4262
|
-
getWrapperClassName:
|
|
4234
|
+
builderContext: se,
|
|
4235
|
+
getWrapperClassName: ai
|
|
4263
4236
|
};
|
|
4264
4237
|
},
|
|
4265
4238
|
provide() {
|
|
4266
4239
|
const e = this;
|
|
4267
4240
|
return {
|
|
4268
|
-
[
|
|
4241
|
+
[se.key]: e.builderContextSignal
|
|
4269
4242
|
};
|
|
4270
4243
|
},
|
|
4271
4244
|
created() {
|
|
@@ -4276,9 +4249,9 @@ font-weight: ${s};
|
|
|
4276
4249
|
if (I()) {
|
|
4277
4250
|
if (R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4278
4251
|
new CustomEvent("initeditingbldr")
|
|
4279
|
-
), this.builderContextSignal.content &&
|
|
4252
|
+
), this.builderContextSignal.content && z(this.canTrack)) {
|
|
4280
4253
|
const o = (e = this.builderContextSignal.content) == null ? void 0 : e.testVariationId, r = (t = this.builderContextSignal.content) == null ? void 0 : t.id, i = this.apiKey;
|
|
4281
|
-
|
|
4254
|
+
le({
|
|
4282
4255
|
type: "impression",
|
|
4283
4256
|
canTrack: !0,
|
|
4284
4257
|
contentId: r,
|
|
@@ -4286,7 +4259,7 @@ font-weight: ${s};
|
|
|
4286
4259
|
variationId: o !== r ? o : void 0
|
|
4287
4260
|
});
|
|
4288
4261
|
}
|
|
4289
|
-
|
|
4262
|
+
Lt() && !R() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
4290
4263
|
new CustomEvent("initpreviewingbldr")
|
|
4291
4264
|
);
|
|
4292
4265
|
}
|
|
@@ -4380,7 +4353,7 @@ font-weight: ${s};
|
|
|
4380
4353
|
this.builderContextSignal.content = t;
|
|
4381
4354
|
},
|
|
4382
4355
|
processMessage(e) {
|
|
4383
|
-
return
|
|
4356
|
+
return Je({
|
|
4384
4357
|
model: this.model,
|
|
4385
4358
|
trustedHosts: this.trustedHosts,
|
|
4386
4359
|
callbacks: {
|
|
@@ -4394,7 +4367,7 @@ font-weight: ${s};
|
|
|
4394
4367
|
});
|
|
4395
4368
|
},
|
|
4396
4369
|
animation: (t) => {
|
|
4397
|
-
|
|
4370
|
+
et(t);
|
|
4398
4371
|
},
|
|
4399
4372
|
contentUpdate: (t) => {
|
|
4400
4373
|
this.mergeNewContent(t);
|
|
@@ -4406,13 +4379,13 @@ font-weight: ${s};
|
|
|
4406
4379
|
var t, n;
|
|
4407
4380
|
if (this.builderContextSignal.content) {
|
|
4408
4381
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
4409
|
-
|
|
4382
|
+
le({
|
|
4410
4383
|
type: "click",
|
|
4411
|
-
canTrack:
|
|
4384
|
+
canTrack: z(this.canTrack),
|
|
4412
4385
|
contentId: r,
|
|
4413
4386
|
apiKey: this.apiKey,
|
|
4414
4387
|
variationId: o !== r ? o : void 0,
|
|
4415
|
-
...
|
|
4388
|
+
...ti(e),
|
|
4416
4389
|
unique: !this.clicked
|
|
4417
4390
|
});
|
|
4418
4391
|
}
|
|
@@ -4428,13 +4401,12 @@ font-weight: ${s};
|
|
|
4428
4401
|
const i = r.replace(
|
|
4429
4402
|
/{{([^}]+)}}/g,
|
|
4430
4403
|
(s, l) => String(
|
|
4431
|
-
|
|
4404
|
+
J({
|
|
4432
4405
|
code: l,
|
|
4433
4406
|
context: this.context || {},
|
|
4434
4407
|
localState: void 0,
|
|
4435
4408
|
rootState: this.builderContextSignal.rootState,
|
|
4436
|
-
rootSetState: this.builderContextSignal.rootSetState
|
|
4437
|
-
enableCache: !0
|
|
4409
|
+
rootSetState: this.builderContextSignal.rootSetState
|
|
4438
4410
|
})
|
|
4439
4411
|
)
|
|
4440
4412
|
);
|
|
@@ -4455,7 +4427,7 @@ font-weight: ${s};
|
|
|
4455
4427
|
"builder:component:stateChange",
|
|
4456
4428
|
{
|
|
4457
4429
|
detail: {
|
|
4458
|
-
state:
|
|
4430
|
+
state: ue(this.builderContextSignal.rootState),
|
|
4459
4431
|
ref: {
|
|
4460
4432
|
name: this.model
|
|
4461
4433
|
}
|
|
@@ -4465,7 +4437,7 @@ font-weight: ${s};
|
|
|
4465
4437
|
);
|
|
4466
4438
|
},
|
|
4467
4439
|
elementRef_onIniteditingbldr(e) {
|
|
4468
|
-
window.addEventListener("message", this.processMessage),
|
|
4440
|
+
window.addEventListener("message", this.processMessage), cn(), ze({
|
|
4469
4441
|
...this.locale ? {
|
|
4470
4442
|
locale: this.locale
|
|
4471
4443
|
} : {},
|
|
@@ -4479,7 +4451,7 @@ font-weight: ${s};
|
|
|
4479
4451
|
this.builderContextSignal.componentInfos
|
|
4480
4452
|
).forEach((t) => {
|
|
4481
4453
|
var o;
|
|
4482
|
-
const n =
|
|
4454
|
+
const n = Ut(t);
|
|
4483
4455
|
(o = window.parent) == null || o.postMessage(n, "*");
|
|
4484
4456
|
}), window.addEventListener(
|
|
4485
4457
|
"builder:component:stateChangeListenerActivated",
|
|
@@ -4490,7 +4462,7 @@ font-weight: ${s};
|
|
|
4490
4462
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
4491
4463
|
`builder.overrides.${n}`
|
|
4492
4464
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
4493
|
-
n === this.model && r === this.apiKey && (!this.content || o === this.content.id) &&
|
|
4465
|
+
n === this.model && r === this.apiKey && (!this.content || o === this.content.id) && he({
|
|
4494
4466
|
model: this.model,
|
|
4495
4467
|
apiKey: this.apiKey,
|
|
4496
4468
|
apiVersion: this.builderContextSignal.apiVersion
|
|
@@ -4500,9 +4472,9 @@ font-weight: ${s};
|
|
|
4500
4472
|
}
|
|
4501
4473
|
}
|
|
4502
4474
|
});
|
|
4503
|
-
function
|
|
4475
|
+
function ci(e, t, n, o, r, i) {
|
|
4504
4476
|
var s, l, a;
|
|
4505
|
-
return e.builderContextSignal.content ? (c(), g(
|
|
4477
|
+
return e.builderContextSignal.content ? (c(), g(j(e.ContentWrapper), C({
|
|
4506
4478
|
key: 0,
|
|
4507
4479
|
ref: "elementRef",
|
|
4508
4480
|
onClick: (u) => e.onClick(u),
|
|
@@ -4512,32 +4484,32 @@ function pi(e, t, n, o, r, i) {
|
|
|
4512
4484
|
onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
|
|
4513
4485
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
4514
4486
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
4515
|
-
default:
|
|
4487
|
+
default: W(() => [
|
|
4516
4488
|
x(e.$slots, "default")
|
|
4517
4489
|
]),
|
|
4518
4490
|
_: 3
|
|
4519
4491
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "onIniteditingbldr", "onInitpreviewingbldr"])) : S("", !0);
|
|
4520
4492
|
}
|
|
4521
|
-
const
|
|
4493
|
+
const di = /* @__PURE__ */ b(li, [["render", ci]]), ui = f({
|
|
4522
4494
|
name: "content-styles",
|
|
4523
|
-
components: { InlinedStyles:
|
|
4495
|
+
components: { InlinedStyles: ge },
|
|
4524
4496
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
4525
4497
|
data() {
|
|
4526
4498
|
return {
|
|
4527
4499
|
injectedStyles: `
|
|
4528
|
-
${
|
|
4500
|
+
${ri({
|
|
4529
4501
|
cssCode: this.cssCode,
|
|
4530
4502
|
contentId: this.contentId
|
|
4531
4503
|
})}
|
|
4532
|
-
${
|
|
4504
|
+
${oi({
|
|
4533
4505
|
customFonts: this.customFonts
|
|
4534
4506
|
})}
|
|
4535
|
-
${
|
|
4507
|
+
${si(this.isNestedRender)}
|
|
4536
4508
|
`.trim()
|
|
4537
4509
|
};
|
|
4538
4510
|
}
|
|
4539
4511
|
});
|
|
4540
|
-
function
|
|
4512
|
+
function pi(e, t, n, o, r, i) {
|
|
4541
4513
|
const s = y("InlinedStyles");
|
|
4542
4514
|
return c(), g(s, {
|
|
4543
4515
|
id: "builderio-content",
|
|
@@ -4545,7 +4517,7 @@ function fi(e, t, n, o, r, i) {
|
|
|
4545
4517
|
nonce: e.nonce
|
|
4546
4518
|
}, null, 8, ["styles", "nonce"]);
|
|
4547
4519
|
}
|
|
4548
|
-
const
|
|
4520
|
+
const mi = /* @__PURE__ */ b(ui, [["render", pi]]), hi = ({
|
|
4549
4521
|
content: e,
|
|
4550
4522
|
data: t,
|
|
4551
4523
|
locale: n
|
|
@@ -4562,7 +4534,7 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
|
|
|
4562
4534
|
locale: n
|
|
4563
4535
|
} : {}
|
|
4564
4536
|
};
|
|
4565
|
-
},
|
|
4537
|
+
}, fi = ({
|
|
4566
4538
|
content: e,
|
|
4567
4539
|
data: t
|
|
4568
4540
|
}) => e ? {
|
|
@@ -4572,14 +4544,14 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
|
|
|
4572
4544
|
...t
|
|
4573
4545
|
},
|
|
4574
4546
|
meta: e == null ? void 0 : e.meta
|
|
4575
|
-
} : void 0,
|
|
4547
|
+
} : void 0, bi = dt, gi = f({
|
|
4576
4548
|
name: "content-component",
|
|
4577
4549
|
components: {
|
|
4578
|
-
EnableEditor:
|
|
4579
|
-
InlinedScript:
|
|
4580
|
-
ContentStyles:
|
|
4581
|
-
Blocks:
|
|
4582
|
-
DynamicDiv:
|
|
4550
|
+
EnableEditor: di,
|
|
4551
|
+
InlinedScript: at,
|
|
4552
|
+
ContentStyles: mi,
|
|
4553
|
+
Blocks: L,
|
|
4554
|
+
DynamicDiv: G
|
|
4583
4555
|
},
|
|
4584
4556
|
props: [
|
|
4585
4557
|
"apiKey",
|
|
@@ -4606,32 +4578,32 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
|
|
|
4606
4578
|
data() {
|
|
4607
4579
|
var e, t, n, o;
|
|
4608
4580
|
return {
|
|
4609
|
-
scriptStr:
|
|
4581
|
+
scriptStr: Zr({
|
|
4610
4582
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4611
4583
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
4612
4584
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
4613
4585
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
4614
4586
|
}),
|
|
4615
4587
|
registeredComponents: [
|
|
4616
|
-
|
|
4588
|
+
...$e(),
|
|
4617
4589
|
...((n = this.customComponents) == null ? void 0 : n.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
|
|
4618
4590
|
].reduce(
|
|
4619
4591
|
(r, { component: i, ...s }) => ({
|
|
4620
4592
|
...r,
|
|
4621
4593
|
[s.name]: {
|
|
4622
|
-
component:
|
|
4623
|
-
...
|
|
4594
|
+
component: bi(i),
|
|
4595
|
+
..._(s)
|
|
4624
4596
|
}
|
|
4625
4597
|
}),
|
|
4626
4598
|
{}
|
|
4627
4599
|
),
|
|
4628
4600
|
builderContextSignal: {
|
|
4629
|
-
content:
|
|
4601
|
+
content: fi({
|
|
4630
4602
|
content: this.content,
|
|
4631
4603
|
data: this.data
|
|
4632
4604
|
}),
|
|
4633
4605
|
localState: void 0,
|
|
4634
|
-
rootState:
|
|
4606
|
+
rootState: hi({
|
|
4635
4607
|
content: this.content,
|
|
4636
4608
|
data: this.data,
|
|
4637
4609
|
locale: this.locale
|
|
@@ -4642,12 +4614,12 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
|
|
|
4642
4614
|
apiKey: this.apiKey,
|
|
4643
4615
|
apiVersion: this.apiVersion,
|
|
4644
4616
|
componentInfos: [
|
|
4645
|
-
|
|
4617
|
+
...$e(),
|
|
4646
4618
|
...((o = this.customComponents) == null ? void 0 : o.filter(({ models: r }) => !(r != null && r.length) || !this.model ? !0 : r.includes(this.model))) || []
|
|
4647
4619
|
].reduce(
|
|
4648
4620
|
(r, { component: i, ...s }) => ({
|
|
4649
4621
|
...r,
|
|
4650
|
-
[s.name]:
|
|
4622
|
+
[s.name]: _(s)
|
|
4651
4623
|
}),
|
|
4652
4624
|
{}
|
|
4653
4625
|
),
|
|
@@ -4656,24 +4628,24 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
|
|
|
4656
4628
|
BlocksWrapperProps: this.blocksWrapperProps || {},
|
|
4657
4629
|
nonce: this.nonce || ""
|
|
4658
4630
|
},
|
|
4659
|
-
TARGET:
|
|
4631
|
+
TARGET: P
|
|
4660
4632
|
};
|
|
4661
4633
|
},
|
|
4662
4634
|
provide() {
|
|
4663
4635
|
const e = this;
|
|
4664
4636
|
return {
|
|
4665
|
-
[
|
|
4637
|
+
[Be.key]: {
|
|
4666
4638
|
registeredComponents: e.registeredComponents
|
|
4667
4639
|
}
|
|
4668
4640
|
};
|
|
4669
4641
|
},
|
|
4670
4642
|
created() {
|
|
4671
4643
|
var t, n;
|
|
4672
|
-
this.apiKey ||
|
|
4644
|
+
this.apiKey || E.error(
|
|
4673
4645
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
4674
4646
|
);
|
|
4675
4647
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
4676
|
-
e &&
|
|
4648
|
+
e && J({
|
|
4677
4649
|
code: e,
|
|
4678
4650
|
context: this.context || {},
|
|
4679
4651
|
localState: void 0,
|
|
@@ -4681,11 +4653,7 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
|
|
|
4681
4653
|
rootSetState: (o) => {
|
|
4682
4654
|
this.builderContextSignal.rootState = o;
|
|
4683
4655
|
},
|
|
4684
|
-
isExpression: !1
|
|
4685
|
-
/**
|
|
4686
|
-
* We don't want to cache the result of the JS code, since it's arbitrary side effect code.
|
|
4687
|
-
*/
|
|
4688
|
-
enableCache: !1
|
|
4656
|
+
isExpression: !1
|
|
4689
4657
|
});
|
|
4690
4658
|
},
|
|
4691
4659
|
methods: {
|
|
@@ -4694,7 +4662,7 @@ const bi = /* @__PURE__ */ b(hi, [["render", fi]]), gi = ({
|
|
|
4694
4662
|
}
|
|
4695
4663
|
}
|
|
4696
4664
|
});
|
|
4697
|
-
function
|
|
4665
|
+
function yi(e, t, n, o, r, i) {
|
|
4698
4666
|
const s = y("InlinedScript"), l = y("ContentStyles"), a = y("Blocks"), u = y("EnableEditor");
|
|
4699
4667
|
return c(), g(u, C({
|
|
4700
4668
|
nonce: e.nonce,
|
|
@@ -4712,8 +4680,8 @@ function Si(e, t, n, o, r, i) {
|
|
|
4712
4680
|
contentWrapperProps: e.contentWrapperProps,
|
|
4713
4681
|
trustedHosts: e.trustedHosts
|
|
4714
4682
|
}, {}), {
|
|
4715
|
-
default:
|
|
4716
|
-
var h, d, p, k, v,
|
|
4683
|
+
default: W(() => {
|
|
4684
|
+
var h, d, p, k, v, N, Y;
|
|
4717
4685
|
return [
|
|
4718
4686
|
e.isSsrAbTest ? (c(), g(s, {
|
|
4719
4687
|
key: 0,
|
|
@@ -4730,7 +4698,7 @@ function Si(e, t, n, o, r, i) {
|
|
|
4730
4698
|
customFonts: (v = (k = e.builderContextSignal.content) == null ? void 0 : k.data) == null ? void 0 : v.customFonts
|
|
4731
4699
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : S("", !0),
|
|
4732
4700
|
$(a, {
|
|
4733
|
-
blocks: (
|
|
4701
|
+
blocks: (Y = (N = e.builderContextSignal.content) == null ? void 0 : N.data) == null ? void 0 : Y.blocks,
|
|
4734
4702
|
context: e.builderContextSignal,
|
|
4735
4703
|
registeredComponents: e.registeredComponents,
|
|
4736
4704
|
linkComponent: e.linkComponent
|
|
@@ -4740,12 +4708,12 @@ function Si(e, t, n, o, r, i) {
|
|
|
4740
4708
|
_: 1
|
|
4741
4709
|
}, 16, ["nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts"]);
|
|
4742
4710
|
}
|
|
4743
|
-
const
|
|
4711
|
+
const ki = /* @__PURE__ */ b(gi, [["render", yi]]), vi = f({
|
|
4744
4712
|
name: "content-variants",
|
|
4745
4713
|
components: {
|
|
4746
|
-
InlinedScript:
|
|
4747
|
-
InlinedStyles:
|
|
4748
|
-
ContentComponent:
|
|
4714
|
+
InlinedScript: at,
|
|
4715
|
+
InlinedStyles: ge,
|
|
4716
|
+
ContentComponent: ki
|
|
4749
4717
|
},
|
|
4750
4718
|
props: [
|
|
4751
4719
|
"canTrack",
|
|
@@ -4769,13 +4737,13 @@ const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = f({
|
|
|
4769
4737
|
],
|
|
4770
4738
|
data() {
|
|
4771
4739
|
return {
|
|
4772
|
-
shouldRenderVariants:
|
|
4773
|
-
canTrack:
|
|
4740
|
+
shouldRenderVariants: Gr({
|
|
4741
|
+
canTrack: z(this.canTrack),
|
|
4774
4742
|
content: this.content
|
|
4775
4743
|
}),
|
|
4776
|
-
TARGET:
|
|
4777
|
-
getInitVariantsFnsScriptString:
|
|
4778
|
-
getVariants:
|
|
4744
|
+
TARGET: P,
|
|
4745
|
+
getInitVariantsFnsScriptString: Xr,
|
|
4746
|
+
getVariants: Q
|
|
4779
4747
|
};
|
|
4780
4748
|
},
|
|
4781
4749
|
mounted() {
|
|
@@ -4783,8 +4751,8 @@ const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = f({
|
|
|
4783
4751
|
computed: {
|
|
4784
4752
|
updateCookieAndStylesScriptStr() {
|
|
4785
4753
|
var e;
|
|
4786
|
-
return
|
|
4787
|
-
|
|
4754
|
+
return Qr(
|
|
4755
|
+
Q(this.content).map((t) => ({
|
|
4788
4756
|
id: t.testVariationId,
|
|
4789
4757
|
testRatio: t.testRatio
|
|
4790
4758
|
})),
|
|
@@ -4792,21 +4760,21 @@ const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = f({
|
|
|
4792
4760
|
);
|
|
4793
4761
|
},
|
|
4794
4762
|
hideVariantsStyleString() {
|
|
4795
|
-
return
|
|
4763
|
+
return Q(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
4796
4764
|
},
|
|
4797
4765
|
defaultContent() {
|
|
4798
4766
|
var e;
|
|
4799
4767
|
return this.shouldRenderVariants ? {
|
|
4800
4768
|
...this.content,
|
|
4801
4769
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
4802
|
-
} :
|
|
4770
|
+
} : fn({
|
|
4803
4771
|
item: this.content,
|
|
4804
|
-
canTrack:
|
|
4772
|
+
canTrack: z(this.canTrack)
|
|
4805
4773
|
});
|
|
4806
4774
|
}
|
|
4807
4775
|
}
|
|
4808
4776
|
});
|
|
4809
|
-
function
|
|
4777
|
+
function Si(e, t, n, o, r, i) {
|
|
4810
4778
|
const s = y("InlinedScript"), l = y("InlinedStyles"), a = y("ContentComponent");
|
|
4811
4779
|
return c(), m(w, null, [
|
|
4812
4780
|
!e.isNestedRender && e.TARGET !== "reactNative" ? (c(), g(s, {
|
|
@@ -4876,13 +4844,13 @@ function Ti(e, t, n, o, r, i) {
|
|
|
4876
4844
|
}), null, 16, ["nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
4877
4845
|
], 64);
|
|
4878
4846
|
}
|
|
4879
|
-
const
|
|
4847
|
+
const Ci = /* @__PURE__ */ b(vi, [["render", Si]]), wi = async ({
|
|
4880
4848
|
builderContextValue: e,
|
|
4881
4849
|
symbol: t
|
|
4882
4850
|
}) => {
|
|
4883
4851
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
4884
4852
|
(e != null && e.apiKey))
|
|
4885
|
-
return
|
|
4853
|
+
return he({
|
|
4886
4854
|
model: t.model,
|
|
4887
4855
|
apiKey: e.apiKey,
|
|
4888
4856
|
apiVersion: e.apiVersion,
|
|
@@ -4892,11 +4860,11 @@ const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), $i = async ({
|
|
|
4892
4860
|
}
|
|
4893
4861
|
}
|
|
4894
4862
|
}).catch((n) => {
|
|
4895
|
-
|
|
4863
|
+
E.error("Could not fetch symbol content: ", n);
|
|
4896
4864
|
});
|
|
4897
|
-
},
|
|
4865
|
+
}, Ti = f({
|
|
4898
4866
|
name: "builder-symbol",
|
|
4899
|
-
components: { ContentVariants:
|
|
4867
|
+
components: { ContentVariants: Ci, DynamicDiv: G },
|
|
4900
4868
|
props: [
|
|
4901
4869
|
"symbol",
|
|
4902
4870
|
"attributes",
|
|
@@ -4931,7 +4899,7 @@ const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), $i = async ({
|
|
|
4931
4899
|
className() {
|
|
4932
4900
|
var e, t;
|
|
4933
4901
|
return [
|
|
4934
|
-
this.attributes[
|
|
4902
|
+
this.attributes[Z()],
|
|
4935
4903
|
"builder-symbol",
|
|
4936
4904
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
4937
4905
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -4945,7 +4913,7 @@ const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), $i = async ({
|
|
|
4945
4913
|
},
|
|
4946
4914
|
methods: {
|
|
4947
4915
|
setContent() {
|
|
4948
|
-
this.contentToUse ||
|
|
4916
|
+
this.contentToUse || wi({
|
|
4949
4917
|
symbol: this.symbol,
|
|
4950
4918
|
builderContextValue: this.builderContext
|
|
4951
4919
|
}).then((e) => {
|
|
@@ -4954,10 +4922,10 @@ const Ii = /* @__PURE__ */ b(wi, [["render", Ti]]), $i = async ({
|
|
|
4954
4922
|
}
|
|
4955
4923
|
}
|
|
4956
4924
|
});
|
|
4957
|
-
function
|
|
4925
|
+
function Ii(e, t, n, o, r, i) {
|
|
4958
4926
|
var l, a, u, h, d;
|
|
4959
4927
|
const s = y("ContentVariants");
|
|
4960
|
-
return c(), m("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
4928
|
+
return c(), m("div", C({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, B(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4961
4929
|
$(s, {
|
|
4962
4930
|
nonce: e.builderContext.nonce,
|
|
4963
4931
|
isNestedRender: !0,
|
|
@@ -4982,44 +4950,44 @@ function Bi(e, t, n, o, r, i) {
|
|
|
4982
4950
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
4983
4951
|
], 16);
|
|
4984
4952
|
}
|
|
4985
|
-
const
|
|
4953
|
+
const $i = /* @__PURE__ */ b(Ti, [["render", Ii]]);
|
|
4986
4954
|
export {
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
4955
|
+
Tn as A,
|
|
4956
|
+
be as B,
|
|
4957
|
+
no as C,
|
|
4958
|
+
he as D,
|
|
4959
|
+
Pi as E,
|
|
4960
|
+
io as F,
|
|
4961
|
+
Oi as G,
|
|
4962
|
+
ho as I,
|
|
4963
|
+
go as S,
|
|
4964
|
+
P as T,
|
|
4965
|
+
Kr as V,
|
|
4966
|
+
ge as _,
|
|
4967
|
+
Wi as a,
|
|
4968
|
+
Fi as b,
|
|
4969
|
+
D as c,
|
|
4970
|
+
fe as d,
|
|
5003
4971
|
b as e,
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5012
|
-
|
|
5013
|
-
|
|
4972
|
+
J as f,
|
|
4973
|
+
Zn as g,
|
|
4974
|
+
Ni as h,
|
|
4975
|
+
Z as i,
|
|
4976
|
+
se as j,
|
|
4977
|
+
gt as k,
|
|
4978
|
+
$i as l,
|
|
4979
|
+
Ko as m,
|
|
4980
|
+
L as n,
|
|
4981
|
+
Ci as o,
|
|
5014
4982
|
R as p,
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
4983
|
+
Lt as q,
|
|
4984
|
+
Ut as r,
|
|
4985
|
+
jt as s,
|
|
4986
|
+
Bi as t,
|
|
4987
|
+
Fe as u,
|
|
4988
|
+
xi as v,
|
|
4989
|
+
bi as w,
|
|
4990
|
+
Ai as x,
|
|
4991
|
+
Vi as y,
|
|
4992
|
+
wn as z
|
|
5025
4993
|
};
|