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