@builder.io/sdk-vue 5.2.11 → 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-MAyQwJUp.cjs → awaiter-Ja_QJKsd.cjs} +1 -1
- package/lib/browser/{awaiter-quz2SFrg.js → awaiter-PAIWzl07.js} +1 -1
- package/lib/browser/{block-wrapper-vBu_Ygm8.cjs → block-wrapper-CeRmNoq0.cjs} +1 -1
- package/lib/browser/{block-wrapper-SCckT0M5.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-HWBSC66Y.cjs → component-ref-MNrE4dOw.cjs} +1 -1
- package/lib/browser/{component-ref-owc3e0h8.js → component-ref-RNH8q_Ct.js} +4 -4
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-odFddSWh.cjs → get-block-properties-C1S41sZd.cjs} +1 -1
- package/lib/browser/{get-block-properties-Hny6jqGG.js → get-block-properties-aY0jarAY.js} +1 -1
- package/lib/browser/helpers/css.d.ts +2 -0
- 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-7bXAC1Q8.js → index-Q7tlS2c1.js} +768 -716
- package/lib/browser/{index-uDRmkrr4.cjs → index-ohjTQ4ru.cjs} +53 -35
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +4 -4
- package/lib/browser/{live-edit-x4eHrcJh.js → live-edit-zIE57v1M.js} +1 -1
- package/lib/browser/{live-edit-AUagAEej.cjs → live-edit-zUS6r7uc.cjs} +1 -1
- package/lib/browser/{repeated-block-ZGXPYgA8.cjs → repeated-block-XFgvkCPh.cjs} +1 -1
- package/lib/browser/{repeated-block-uVi8A50N.js → repeated-block-qKqkpCg_.js} +2 -2
- package/lib/browser/{style-wrapper-usFESjt5.js → style-wrapper-nYNv2BeU.js} +72 -66
- package/lib/browser/style-wrapper-zgP9Exwf.cjs +1 -0
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-RSfMls5f.js → awaiter-Mugw26Wi.js} +1 -1
- package/lib/edge/{awaiter-zow2zgzw.cjs → awaiter-N8Gr0F79.cjs} +1 -1
- package/lib/{node/block-wrapper-PUFgSKq_.js → edge/block-wrapper-0c3wPm9h.js} +3 -3
- package/lib/edge/{block-wrapper-4qKpWsP8.cjs → 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-1iPK0xOE.js → component-ref-R_Q4TOb7.js} +4 -4
- package/lib/edge/{component-ref-WdOIbmOU.cjs → component-ref-e3xYDpNG.cjs} +1 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-bMVCvUX0.js → get-block-properties-TtYKEgAO.js} +1 -1
- package/lib/edge/{get-block-properties-2E03ld67.cjs → get-block-properties-d0E5ZkZj.cjs} +1 -1
- package/lib/edge/helpers/css.d.ts +2 -0
- 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-Bgm0yCrN.js → index-5jMXhHfs.js} +1310 -1258
- package/lib/edge/{index-LWGIJNVx.cjs → index-_dQKp9LH.cjs} +61 -43
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +3 -3
- package/lib/edge/{live-edit-tegdYGJO.js → live-edit-7Dc7Q2yS.js} +1 -1
- package/lib/{node/live-edit-xPik2aUh.cjs → edge/live-edit-oGxYZa_V.cjs} +1 -1
- package/lib/edge/{repeated-block-yZJM5I60.js → repeated-block-GESRSjst.js} +2 -2
- package/lib/edge/{repeated-block--MhEsXmR.cjs → repeated-block-K9b4UbOC.cjs} +1 -1
- package/lib/edge/style-wrapper-dmNB8lmp.cjs +1 -0
- package/lib/edge/{style-wrapper-i8R7NpdY.js → style-wrapper-rh9YxCiw.js} +72 -66
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-Vwjft2v-.cjs → awaiter-0EtumND-.cjs} +1 -1
- package/lib/node/{awaiter-o3ynOQKr.js → awaiter-9zCUlZB9.js} +1 -1
- package/lib/node/{block-wrapper-KX1-Y2Oq.cjs → block-wrapper-c0gZ4j4I.cjs} +1 -1
- package/lib/{edge/block-wrapper-GT2d4luN.js → node/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-HmJKie9z.js → component-ref-PPsTcld8.js} +5 -5
- package/lib/node/{component-ref-o3vjSyAQ.cjs → component-ref-lWzA5guw.cjs} +1 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-DGfMhs4M.js → get-block-properties-AwCMGMPi.js} +2 -2
- package/lib/node/{get-block-properties-2yGkQVh7.cjs → get-block-properties-DKvJS4pV.cjs} +1 -1
- package/lib/node/helpers/css.d.ts +2 -0
- 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-JQgNoVXs.js → index-DWznrY3w.js} +675 -623
- package/lib/node/{index-7xT7wMXt.cjs → index-funKFPCj.cjs} +53 -35
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +6 -6
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-oLYhcuYs.cjs → node/live-edit-Bw84zZeV.cjs} +1 -1
- package/lib/node/{live-edit-hxNZMHld.js → live-edit-GVvl4apL.js} +1 -1
- package/lib/node/{repeated-block-PvGSbsHD.js → repeated-block-SP8WaEQp.js} +2 -2
- package/lib/node/{repeated-block-LHiXlO3e.cjs → repeated-block-ux8wkluB.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-aeKfQiEQ.cjs → should-force-browser-runtime-in-node-5MPjjLJt.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-ooRgTwqs.js → should-force-browser-runtime-in-node-nOG6zu2k.js} +1 -1
- package/lib/node/{style-wrapper-U-7exIwN.js → style-wrapper-5BoLwggo.js} +70 -64
- package/lib/node/style-wrapper-aKufn4zn.cjs +1 -0
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
- package/lib/browser/style-wrapper-C_c9B5_Y.cjs +0 -1
- package/lib/edge/style-wrapper-8JiLG-FF.cjs +0 -1
- package/lib/node/style-wrapper-3l8xaVr4.cjs +0 -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 Ut = 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 Lt(e, t, n, o, r, i) {
|
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Re = /* @__PURE__ */ v(Ht, [["render", jt]]), Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })), E = "vue",
|
|
43
|
+
default: Re
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), E = "vue", H = () => {
|
|
45
45
|
switch (E) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
@@ -54,9 +54,9 @@ const Ee = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ts = /* @__PURE__ */ Object.
|
|
|
54
54
|
case "angular":
|
|
55
55
|
return "class";
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, zt = y({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: Re },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -71,7 +71,7 @@ const Ee = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ts = /* @__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 Ee = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ts = /* @__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 Ht(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 Mt = /* @__PURE__ */ v(Ft, [["render", Ht]]), jt = Symbol(), ye = {
|
|
|
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,22 +168,22 @@ const Gt = () => {
|
|
|
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(".");
|
|
185
185
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
186
|
-
},
|
|
186
|
+
}, me = ({
|
|
187
187
|
name: e,
|
|
188
188
|
canTrack: t
|
|
189
189
|
}) => {
|
|
@@ -194,14 +194,14 @@ const Gt = () => {
|
|
|
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 Gt = () => {
|
|
|
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,85 +220,85 @@ const Gt = () => {
|
|
|
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
|
});
|
|
@@ -306,7 +306,7 @@ 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 cn = 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,14 +337,14 @@ const cn = 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
|
});
|
|
347
|
-
async function
|
|
347
|
+
async function le({
|
|
348
348
|
apiHost: e,
|
|
349
349
|
...t
|
|
350
350
|
}) {
|
|
@@ -352,27 +352,27 @@ async function ae({
|
|
|
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
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,13 +384,13 @@ const ws = (e) => ae({
|
|
|
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
|
-
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 ||
|
|
393
|
+
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || le({
|
|
394
394
|
type: "conversion",
|
|
395
395
|
apiKey: e.apiKey,
|
|
396
396
|
canTrack: e.canTrack ?? !0,
|
|
@@ -404,10 +404,10 @@ const ws = (e) => ae({
|
|
|
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 pt({
|
|
|
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 pt({
|
|
|
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 Fe = ({
|
|
|
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 Fe = ({
|
|
|
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,13 +531,13 @@ const kn = (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];
|
|
538
538
|
return n;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function ce(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
541
541
|
if (e == null || typeof e != "object") {
|
|
542
542
|
t(e, (i) => {
|
|
543
543
|
n !== null && o !== null && (n[o] = i);
|
|
@@ -547,57 +547,57 @@ function le(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
547
547
|
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
|
|
548
548
|
t(i, (a) => {
|
|
549
549
|
e[s] = a;
|
|
550
|
-
}),
|
|
550
|
+
}), ce(i, t, e, s, r);
|
|
551
551
|
}) : Object.entries(e).forEach(([i, s]) => {
|
|
552
552
|
t(s, (a) => {
|
|
553
553
|
e[i] = a;
|
|
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
|
-
return
|
|
565
|
-
if (
|
|
564
|
+
return ce(e, (n) => {
|
|
565
|
+
if (gt(n)) {
|
|
566
566
|
t = !0;
|
|
567
567
|
return;
|
|
568
568
|
}
|
|
569
569
|
}), t;
|
|
570
570
|
}
|
|
571
|
-
function
|
|
572
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
573
|
-
|
|
571
|
+
function Rn(e, t) {
|
|
572
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ce(e, (n, o) => {
|
|
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
|
|
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);
|
|
584
584
|
return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
585
585
|
};
|
|
586
|
-
function
|
|
586
|
+
function Se(e) {
|
|
587
587
|
if (e === null || typeof e != "object")
|
|
588
588
|
return e;
|
|
589
589
|
if (Array.isArray(e))
|
|
590
|
-
return e.map((n) =>
|
|
590
|
+
return e.map((n) => Se(n));
|
|
591
591
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
592
592
|
return e;
|
|
593
593
|
const t = {};
|
|
594
594
|
for (const n in e)
|
|
595
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
595
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = Se(e[n]));
|
|
596
596
|
return t;
|
|
597
597
|
}
|
|
598
|
-
const
|
|
599
|
-
if (
|
|
600
|
-
const t =
|
|
598
|
+
const Pn = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), Bn = (e) => {
|
|
599
|
+
if (Pn) {
|
|
600
|
+
const t = Be(e);
|
|
601
601
|
return {
|
|
602
602
|
...t,
|
|
603
603
|
properties: {
|
|
@@ -608,7 +608,7 @@ const $n = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), En = (e) =
|
|
|
608
608
|
}
|
|
609
609
|
};
|
|
610
610
|
} else {
|
|
611
|
-
const t =
|
|
611
|
+
const t = Se($n(e, "children", "meta"));
|
|
612
612
|
return {
|
|
613
613
|
...t,
|
|
614
614
|
properties: {
|
|
@@ -621,7 +621,7 @@ const $n = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), En = (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 $n = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), En = (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 $n = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), En = (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,31 +651,31 @@ function Pn({
|
|
|
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
|
-
function
|
|
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
|
-
data:
|
|
669
|
-
}),
|
|
668
|
+
data: de(e)
|
|
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
|
-
function
|
|
674
|
-
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ?
|
|
673
|
+
function de(e) {
|
|
674
|
+
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Wn(n) : n));
|
|
675
675
|
}
|
|
676
676
|
const He = {};
|
|
677
|
-
function
|
|
678
|
-
e === "plugin" && (t =
|
|
677
|
+
function Ns(e, t) {
|
|
678
|
+
e === "plugin" && (t = de(t));
|
|
679
679
|
let n = He[e];
|
|
680
680
|
if (n || (n = He[e] = []), n.push(t), w()) {
|
|
681
681
|
const o = {
|
|
@@ -692,7 +692,7 @@ function Is(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));
|
|
@@ -702,50 +702,50 @@ function $s(e) {
|
|
|
702
702
|
}, "*");
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
const
|
|
706
|
-
function
|
|
705
|
+
const je = {};
|
|
706
|
+
function Ws(e) {
|
|
707
707
|
if (w()) {
|
|
708
|
-
Object.assign(
|
|
708
|
+
Object.assign(je, e);
|
|
709
709
|
const t = {
|
|
710
710
|
type: "builder.settingsChange",
|
|
711
|
-
data:
|
|
711
|
+
data: je
|
|
712
712
|
};
|
|
713
713
|
parent.postMessage(t, "*");
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
const
|
|
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
|
-
if (o.startsWith(
|
|
722
|
-
const r = o.replace(
|
|
721
|
+
if (o.startsWith(ze)) {
|
|
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
|
-
let
|
|
742
|
-
const
|
|
741
|
+
let Ke = !1;
|
|
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 gt = (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 gt = (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 gt = (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 gt = (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 gt = (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
|
-
}) =>
|
|
870
|
-
name:
|
|
869
|
+
}) => ut({
|
|
870
|
+
name: Ne(e),
|
|
871
871
|
canTrack: !0
|
|
872
|
-
}),
|
|
872
|
+
}), Mn = ({
|
|
873
873
|
contentId: e
|
|
874
|
-
}) =>
|
|
875
|
-
name:
|
|
874
|
+
}) => me({
|
|
875
|
+
name: Ne(e),
|
|
876
876
|
canTrack: !0
|
|
877
|
-
}),
|
|
877
|
+
}), Hn = ({
|
|
878
878
|
contentId: e,
|
|
879
879
|
value: t
|
|
880
|
-
}) =>
|
|
881
|
-
name:
|
|
880
|
+
}) => Ae({
|
|
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 gt = (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 gt = (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 gt = (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 gt = (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,81 +959,102 @@ const gt = (e) => {
|
|
|
959
959
|
...r
|
|
960
960
|
};
|
|
961
961
|
};
|
|
962
|
-
const
|
|
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
|
-
let
|
|
999
|
-
w() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ =
|
|
1000
|
-
const
|
|
1001
|
-
|
|
1019
|
+
let 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) => {
|
|
1022
|
+
ue.setUserAttributes(e);
|
|
1002
1023
|
}, J = (e) => {
|
|
1003
1024
|
const t = j(e) ? e : !0;
|
|
1004
|
-
return
|
|
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
|
|
1017
|
-
function
|
|
1037
|
+
const Yn = _n();
|
|
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);
|
|
1020
1041
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
1021
1042
|
...o,
|
|
1022
|
-
...
|
|
1043
|
+
...Ce(i, s, n)
|
|
1023
1044
|
} : {
|
|
1024
1045
|
...o,
|
|
1025
1046
|
[s]: i
|
|
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 Kn(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,95 +1076,95 @@ const qn = "v3", Ge = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ne = (
|
|
|
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
|
|
1076
|
-
const W =
|
|
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) {
|
|
1097
|
+
const W = Ce({
|
|
1077
1098
|
sort: g
|
|
1078
1099
|
});
|
|
1079
1100
|
for (const F in W)
|
|
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
|
-
},
|
|
1116
|
-
async function
|
|
1136
|
+
}, oo = (e) => "results" in e;
|
|
1137
|
+
async function We(e) {
|
|
1117
1138
|
var o;
|
|
1118
1139
|
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
1119
1140
|
t && (e.locale = t, e.userAttributes = {
|
|
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 =
|
|
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 Xn = async (e) => {
|
|
|
1153
1174
|
}
|
|
1154
1175
|
return t.results;
|
|
1155
1176
|
};
|
|
1156
|
-
async function
|
|
1157
|
-
const t =
|
|
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,15 +1196,15 @@ const As = 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,
|
|
1182
1203
|
model: n.model,
|
|
1183
|
-
content: await
|
|
1204
|
+
content: await We(n)
|
|
1184
1205
|
};
|
|
1185
|
-
},
|
|
1186
|
-
function
|
|
1206
|
+
}, De = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
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 eo(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 ${
|
|
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,52 +1292,64 @@ function oo(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
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1298
|
+
n.style.transition = `all ${e.duration}s ${De(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
1278
1299
|
}), document.addEventListener("scroll", s, {
|
|
1279
1300
|
capture: !0,
|
|
1280
1301
|
passive: !0
|
|
1281
1302
|
}), i();
|
|
1282
1303
|
});
|
|
1283
1304
|
}
|
|
1284
|
-
const
|
|
1305
|
+
const re = (e, t) => {
|
|
1306
|
+
const n = (e == null ? void 0 : e.objectPosition) || t;
|
|
1307
|
+
return n ? {
|
|
1308
|
+
...e,
|
|
1309
|
+
"--builder-image-position": n
|
|
1310
|
+
} : e;
|
|
1311
|
+
}, Ls = (e, t) => t ? {
|
|
1312
|
+
...e,
|
|
1313
|
+
large: re(e == null ? void 0 : e.large, "initial"),
|
|
1314
|
+
medium: re(e == null ? void 0 : e.medium),
|
|
1315
|
+
small: re(e == null ? void 0 : e.small),
|
|
1316
|
+
xsmall: re(e == null ? void 0 : e.xsmall)
|
|
1317
|
+
} : e, Pt = (e) => Object.entries(e).map(([n, o]) => {
|
|
1285
1318
|
if (typeof o == "string")
|
|
1286
|
-
return `${
|
|
1287
|
-
}).filter(j),
|
|
1288
|
-
`),
|
|
1319
|
+
return `${De(n)}: ${o};`;
|
|
1320
|
+
}).filter(j), po = (e) => Pt(e).join(`
|
|
1321
|
+
`), Fs = ({
|
|
1289
1322
|
mediaQuery: e,
|
|
1290
1323
|
className: t,
|
|
1291
1324
|
styles: n
|
|
1292
1325
|
}) => {
|
|
1293
1326
|
const o = `.${t} {
|
|
1294
|
-
${
|
|
1327
|
+
${po(n)}
|
|
1295
1328
|
}`;
|
|
1296
1329
|
return e ? `${e} {
|
|
1297
1330
|
${o}
|
|
1298
1331
|
}` : o;
|
|
1299
1332
|
};
|
|
1300
|
-
function
|
|
1333
|
+
function mo({
|
|
1301
1334
|
style: e
|
|
1302
1335
|
}) {
|
|
1303
1336
|
return e;
|
|
1304
1337
|
}
|
|
1305
|
-
const
|
|
1338
|
+
const Ms = ({
|
|
1306
1339
|
block: e,
|
|
1307
1340
|
context: t
|
|
1308
|
-
}) =>
|
|
1341
|
+
}) => Bt(mo({
|
|
1309
1342
|
style: e.style || {},
|
|
1310
1343
|
context: t,
|
|
1311
1344
|
block: e
|
|
1312
1345
|
}));
|
|
1313
|
-
function
|
|
1346
|
+
function Bt(e) {
|
|
1314
1347
|
switch (E) {
|
|
1315
1348
|
case "svelte":
|
|
1316
1349
|
case "vue":
|
|
1317
1350
|
case "solid":
|
|
1318
1351
|
case "angular":
|
|
1319
|
-
return
|
|
1352
|
+
return Pt(e).join(" ");
|
|
1320
1353
|
case "qwik":
|
|
1321
1354
|
case "reactNative":
|
|
1322
1355
|
case "react":
|
|
@@ -1324,7 +1357,7 @@ function Et(e) {
|
|
|
1324
1357
|
return e;
|
|
1325
1358
|
}
|
|
1326
1359
|
}
|
|
1327
|
-
const
|
|
1360
|
+
const Vt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, ho = ({
|
|
1328
1361
|
block: e,
|
|
1329
1362
|
registeredComponents: t,
|
|
1330
1363
|
model: n
|
|
@@ -1334,14 +1367,14 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1334
1367
|
if (!o)
|
|
1335
1368
|
return null;
|
|
1336
1369
|
const r = t[o];
|
|
1337
|
-
if (!r ||
|
|
1370
|
+
if (!r || Vt(r, n)) {
|
|
1338
1371
|
console.warn(`
|
|
1339
1372
|
Could not find a registered component named "${o}".
|
|
1340
1373
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
1341
1374
|
return;
|
|
1342
1375
|
} else
|
|
1343
1376
|
return r;
|
|
1344
|
-
},
|
|
1377
|
+
}, fo = ({
|
|
1345
1378
|
block: e,
|
|
1346
1379
|
context: t
|
|
1347
1380
|
}) => {
|
|
@@ -1374,59 +1407,59 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1374
1407
|
},
|
|
1375
1408
|
block: o
|
|
1376
1409
|
}));
|
|
1377
|
-
},
|
|
1410
|
+
}, bo = (e, t) => {
|
|
1378
1411
|
var n;
|
|
1379
1412
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderLinkComponent ? {
|
|
1380
1413
|
builderLinkComponent: t
|
|
1381
1414
|
} : {};
|
|
1382
|
-
},
|
|
1415
|
+
}, go = (e, t, n) => {
|
|
1383
1416
|
var o;
|
|
1384
1417
|
return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
|
|
1385
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !
|
|
1418
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !Vt(s, n)))
|
|
1386
1419
|
} : {};
|
|
1387
|
-
},
|
|
1420
|
+
}, yo = (e, t) => {
|
|
1388
1421
|
var n;
|
|
1389
1422
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderBlock ? {
|
|
1390
1423
|
builderBlock: t
|
|
1391
1424
|
} : {};
|
|
1392
|
-
},
|
|
1425
|
+
}, vo = (e, t) => {
|
|
1393
1426
|
var n;
|
|
1394
1427
|
return (n = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && n.builderContext ? {
|
|
1395
1428
|
builderContext: t
|
|
1396
1429
|
} : {};
|
|
1397
|
-
},
|
|
1430
|
+
}, So = (e) => e.toString(), ko = () => Promise.resolve().then(() => Wo).then((e) => e.default).catch((e) => {
|
|
1398
1431
|
throw console.error(
|
|
1399
1432
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1400
1433
|
e
|
|
1401
1434
|
), e;
|
|
1402
|
-
}),
|
|
1435
|
+
}), Co = () => import("./block-wrapper-b4XqsSBv.js").then((e) => e.default).catch((e) => {
|
|
1403
1436
|
throw console.error(
|
|
1404
1437
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1405
1438
|
e
|
|
1406
1439
|
), e;
|
|
1407
|
-
}),
|
|
1440
|
+
}), To = () => import("./component-ref-RNH8q_Ct.js").then((e) => e.default).catch((e) => {
|
|
1408
1441
|
throw console.error(
|
|
1409
1442
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1410
1443
|
e
|
|
1411
1444
|
), e;
|
|
1412
|
-
}),
|
|
1445
|
+
}), wo = () => import("./repeated-block-qKqkpCg_.js").then((e) => e.default).catch((e) => {
|
|
1413
1446
|
throw console.error(
|
|
1414
1447
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1415
1448
|
e
|
|
1416
1449
|
), e;
|
|
1417
|
-
}),
|
|
1450
|
+
}), Io = () => import("./style-wrapper-nYNv2BeU.js").then((e) => e.default).catch((e) => {
|
|
1418
1451
|
throw console.error(
|
|
1419
1452
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1420
1453
|
e
|
|
1421
1454
|
), e;
|
|
1422
|
-
}),
|
|
1455
|
+
}), $o = y({
|
|
1423
1456
|
name: "block",
|
|
1424
1457
|
components: {
|
|
1425
|
-
StyleWrapper:
|
|
1426
|
-
RepeatedBlock:
|
|
1427
|
-
ComponentRef:
|
|
1428
|
-
BlockWrapper:
|
|
1429
|
-
DynamicDiv:
|
|
1458
|
+
StyleWrapper: Y(Io),
|
|
1459
|
+
RepeatedBlock: Y(wo),
|
|
1460
|
+
ComponentRef: Y(To),
|
|
1461
|
+
BlockWrapper: Y(Co),
|
|
1462
|
+
DynamicDiv: Y(ko)
|
|
1430
1463
|
},
|
|
1431
1464
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1432
1465
|
data() {
|
|
@@ -1435,12 +1468,12 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1435
1468
|
value: null,
|
|
1436
1469
|
update: !1
|
|
1437
1470
|
},
|
|
1438
|
-
generateKey:
|
|
1471
|
+
generateKey: So
|
|
1439
1472
|
};
|
|
1440
1473
|
},
|
|
1441
1474
|
mounted() {
|
|
1442
1475
|
const e = this.processedBlock.id, t = this.processedBlock.animations;
|
|
1443
|
-
t && e &&
|
|
1476
|
+
t && e && lo(
|
|
1444
1477
|
t.map((n) => ({
|
|
1445
1478
|
...n,
|
|
1446
1479
|
elementId: e
|
|
@@ -1451,14 +1484,14 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1451
1484
|
},
|
|
1452
1485
|
computed: {
|
|
1453
1486
|
repeatItem() {
|
|
1454
|
-
return
|
|
1487
|
+
return fo({
|
|
1455
1488
|
block: this.block,
|
|
1456
1489
|
context: this.context
|
|
1457
1490
|
});
|
|
1458
1491
|
},
|
|
1459
1492
|
processedBlock() {
|
|
1460
1493
|
var t;
|
|
1461
|
-
return (t = this.block.repeat) != null && t.collection ? this.block :
|
|
1494
|
+
return (t = this.block.repeat) != null && t.collection ? this.block : Nn({
|
|
1462
1495
|
block: this.block,
|
|
1463
1496
|
localState: this.context.localState,
|
|
1464
1497
|
rootState: this.context.rootState,
|
|
@@ -1467,7 +1500,7 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1467
1500
|
});
|
|
1468
1501
|
},
|
|
1469
1502
|
blockComponent() {
|
|
1470
|
-
return
|
|
1503
|
+
return ho({
|
|
1471
1504
|
block: this.processedBlock,
|
|
1472
1505
|
registeredComponents: this.registeredComponents,
|
|
1473
1506
|
model: this.context.model
|
|
@@ -1494,11 +1527,11 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1494
1527
|
blockChildren: this.processedBlock.children ?? [],
|
|
1495
1528
|
componentRef: (e = this.blockComponent) == null ? void 0 : e.component,
|
|
1496
1529
|
componentOptions: {
|
|
1497
|
-
...
|
|
1498
|
-
...
|
|
1499
|
-
...
|
|
1500
|
-
...
|
|
1501
|
-
...
|
|
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(
|
|
1502
1535
|
this.blockComponent,
|
|
1503
1536
|
this.registeredComponents,
|
|
1504
1537
|
this.context.model
|
|
@@ -1514,7 +1547,7 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1514
1547
|
}
|
|
1515
1548
|
}
|
|
1516
1549
|
});
|
|
1517
|
-
function
|
|
1550
|
+
function Eo(e, t, n, o, r, i) {
|
|
1518
1551
|
var b;
|
|
1519
1552
|
const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
|
|
1520
1553
|
return e.canShowBlock ? (d(), h(I, { key: 0 }, [
|
|
@@ -1580,10 +1613,10 @@ function So(e, t, n, o, r, i) {
|
|
|
1580
1613
|
], 64))
|
|
1581
1614
|
], 64)) : T("", !0);
|
|
1582
1615
|
}
|
|
1583
|
-
const
|
|
1616
|
+
const Nt = /* @__PURE__ */ v($o, [["render", Eo]]), Hs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1584
1617
|
__proto__: null,
|
|
1585
|
-
default:
|
|
1586
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1618
|
+
default: Nt
|
|
1619
|
+
}, Symbol.toStringTag, { value: "Module" })), Ro = y({
|
|
1587
1620
|
name: "builder-blocks-wrapper",
|
|
1588
1621
|
props: [
|
|
1589
1622
|
"blocks",
|
|
@@ -1627,7 +1660,7 @@ const Pt = /* @__PURE__ */ v(vo, [["render", So]]), Ns = /* @__PURE__ */ Object.
|
|
|
1627
1660
|
methods: {
|
|
1628
1661
|
onClick() {
|
|
1629
1662
|
var e, t;
|
|
1630
|
-
|
|
1663
|
+
A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1631
1664
|
{
|
|
1632
1665
|
type: "builder.clickEmptyBlocks",
|
|
1633
1666
|
data: {
|
|
@@ -1640,7 +1673,7 @@ const Pt = /* @__PURE__ */ v(vo, [["render", So]]), Ns = /* @__PURE__ */ Object.
|
|
|
1640
1673
|
},
|
|
1641
1674
|
onMouseEnter() {
|
|
1642
1675
|
var e, t;
|
|
1643
|
-
|
|
1676
|
+
A() && !((e = this.blocks) != null && e.length) && ((t = window.parent) == null || t.postMessage(
|
|
1644
1677
|
{
|
|
1645
1678
|
type: "builder.hoverEmptyBlocks",
|
|
1646
1679
|
data: {
|
|
@@ -1653,8 +1686,8 @@ const Pt = /* @__PURE__ */ v(vo, [["render", So]]), Ns = /* @__PURE__ */ Object.
|
|
|
1653
1686
|
}
|
|
1654
1687
|
}
|
|
1655
1688
|
});
|
|
1656
|
-
function
|
|
1657
|
-
return d(), S(
|
|
1689
|
+
function Ao(e, t, n, o, r, i) {
|
|
1690
|
+
return d(), S(X(e.BlocksWrapper), $({
|
|
1658
1691
|
ref: "blocksWrapperRef",
|
|
1659
1692
|
class: e.className + " component-5vz8uirn7sc",
|
|
1660
1693
|
"builder-path": e.dataPath,
|
|
@@ -1670,9 +1703,9 @@ function Co(e, t, n, o, r, i) {
|
|
|
1670
1703
|
_: 3
|
|
1671
1704
|
}, 16, ["class", "builder-path", "builder-parent-id", "style", "onClick", "onMouseEnter", "onKeyPress"]);
|
|
1672
1705
|
}
|
|
1673
|
-
const
|
|
1706
|
+
const Po = /* @__PURE__ */ v(Ro, [["render", Ao], ["__scopeId", "data-v-82fc93d6"]]), Bo = y({
|
|
1674
1707
|
name: "builder-blocks",
|
|
1675
|
-
components: { BlocksWrapper:
|
|
1708
|
+
components: { BlocksWrapper: Po, Block: Nt },
|
|
1676
1709
|
props: [
|
|
1677
1710
|
"blocks",
|
|
1678
1711
|
"parent",
|
|
@@ -1685,11 +1718,11 @@ const To = /* @__PURE__ */ v(ko, [["render", Co], ["__scopeId", "data-v-82fc93d6
|
|
|
1685
1718
|
"registeredComponents"
|
|
1686
1719
|
],
|
|
1687
1720
|
inject: {
|
|
1688
|
-
builderContext:
|
|
1689
|
-
componentsContext:
|
|
1721
|
+
builderContext: ve.key,
|
|
1722
|
+
componentsContext: rt.key
|
|
1690
1723
|
}
|
|
1691
1724
|
});
|
|
1692
|
-
function
|
|
1725
|
+
function Vo(e, t, n, o, r, i) {
|
|
1693
1726
|
var a, u, p, b;
|
|
1694
1727
|
const s = k("Block"), l = k("BlocksWrapper");
|
|
1695
1728
|
return d(), S(l, {
|
|
@@ -1717,21 +1750,21 @@ function Io(e, t, n, o, r, i) {
|
|
|
1717
1750
|
_: 3
|
|
1718
1751
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
1719
1752
|
}
|
|
1720
|
-
const K = /* @__PURE__ */ v(
|
|
1753
|
+
const K = /* @__PURE__ */ v(Bo, [["render", Vo]]), No = y({
|
|
1721
1754
|
name: "dynamic-div",
|
|
1722
1755
|
props: []
|
|
1723
1756
|
});
|
|
1724
|
-
function
|
|
1757
|
+
function Oo(e, t, n, o, r, i) {
|
|
1725
1758
|
return d(), h("div", null, [
|
|
1726
1759
|
N(e.$slots, "default")
|
|
1727
1760
|
]);
|
|
1728
1761
|
}
|
|
1729
|
-
const ne = /* @__PURE__ */ v(
|
|
1762
|
+
const ne = /* @__PURE__ */ v(No, [["render", Oo]]), Wo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1730
1763
|
__proto__: null,
|
|
1731
1764
|
default: ne
|
|
1732
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1765
|
+
}, Symbol.toStringTag, { value: "Module" })), he = y({
|
|
1733
1766
|
render() {
|
|
1734
|
-
return
|
|
1767
|
+
return ot("style", {
|
|
1735
1768
|
innerHTML: this.styles,
|
|
1736
1769
|
"data-id": this.id,
|
|
1737
1770
|
nonce: this.nonce
|
|
@@ -1739,7 +1772,7 @@ const ne = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1739
1772
|
},
|
|
1740
1773
|
name: "inlined-styles",
|
|
1741
1774
|
props: ["styles", "id", "nonce"]
|
|
1742
|
-
}),
|
|
1775
|
+
}), Ot = {
|
|
1743
1776
|
xsmall: {
|
|
1744
1777
|
min: 0,
|
|
1745
1778
|
default: 160,
|
|
@@ -1760,8 +1793,8 @@ const ne = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1760
1793
|
default: 991,
|
|
1761
1794
|
max: 1200
|
|
1762
1795
|
}
|
|
1763
|
-
},
|
|
1764
|
-
const t =
|
|
1796
|
+
}, js = (e, t = Ot) => `@media (max-width: ${t[e].max}px)`, Do = (e) => {
|
|
1797
|
+
const t = Be(Ot);
|
|
1765
1798
|
if (!e)
|
|
1766
1799
|
return t;
|
|
1767
1800
|
const {
|
|
@@ -1798,11 +1831,11 @@ const ne = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1798
1831
|
min: l,
|
|
1799
1832
|
default: l + 1
|
|
1800
1833
|
}, t;
|
|
1801
|
-
},
|
|
1834
|
+
}, Uo = (e) => `builder-columns ${e}-breakpoints`, xo = y({
|
|
1802
1835
|
name: "builder-columns",
|
|
1803
1836
|
components: {
|
|
1804
|
-
InlinedStyles:
|
|
1805
|
-
DynamicRenderer:
|
|
1837
|
+
InlinedStyles: he,
|
|
1838
|
+
DynamicRenderer: Re,
|
|
1806
1839
|
Blocks: K,
|
|
1807
1840
|
DynamicDiv: ne
|
|
1808
1841
|
},
|
|
@@ -1817,7 +1850,7 @@ const ne = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1817
1850
|
"builderComponents"
|
|
1818
1851
|
],
|
|
1819
1852
|
data() {
|
|
1820
|
-
return { TARGET: E, getColumnsClass:
|
|
1853
|
+
return { TARGET: E, getColumnsClass: Uo };
|
|
1821
1854
|
},
|
|
1822
1855
|
computed: {
|
|
1823
1856
|
gutterSize() {
|
|
@@ -1896,7 +1929,7 @@ const ne = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1896
1929
|
},
|
|
1897
1930
|
getWidthForBreakpointSize(e) {
|
|
1898
1931
|
var n, o;
|
|
1899
|
-
return
|
|
1932
|
+
return Do(
|
|
1900
1933
|
((o = (n = this.builderContext.content) == null ? void 0 : n.meta) == null ? void 0 : o.breakpoints) || {}
|
|
1901
1934
|
)[e].max;
|
|
1902
1935
|
},
|
|
@@ -1933,13 +1966,13 @@ const ne = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1933
1966
|
...e.link ? {
|
|
1934
1967
|
href: e.link
|
|
1935
1968
|
} : {},
|
|
1936
|
-
[
|
|
1937
|
-
style:
|
|
1969
|
+
[H()]: "builder-column",
|
|
1970
|
+
style: Bt(this.columnCssVars(t))
|
|
1938
1971
|
};
|
|
1939
1972
|
}
|
|
1940
1973
|
}
|
|
1941
1974
|
});
|
|
1942
|
-
function
|
|
1975
|
+
function Lo(e, t, n, o, r, i) {
|
|
1943
1976
|
var u;
|
|
1944
1977
|
const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1945
1978
|
return d(), h("div", $({
|
|
@@ -1975,47 +2008,47 @@ function Vo(e, t, n, o, r, i) {
|
|
|
1975
2008
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1976
2009
|
], 16);
|
|
1977
2010
|
}
|
|
1978
|
-
const
|
|
2011
|
+
const Fo = /* @__PURE__ */ v(xo, [["render", Lo], ["__scopeId", "data-v-ab15749a"]]), Mo = y({
|
|
1979
2012
|
name: "builder-fragment-component",
|
|
1980
2013
|
props: []
|
|
1981
2014
|
});
|
|
1982
|
-
function
|
|
2015
|
+
function Ho(e, t, n, o, r, i) {
|
|
1983
2016
|
return d(), h("span", null, [
|
|
1984
2017
|
N(e.$slots, "default")
|
|
1985
2018
|
]);
|
|
1986
2019
|
}
|
|
1987
|
-
const
|
|
1988
|
-
function
|
|
2020
|
+
const jo = /* @__PURE__ */ v(Mo, [["render", Ho]]);
|
|
2021
|
+
function Ye(e) {
|
|
1989
2022
|
return e.replace(/http(s)?:/, "");
|
|
1990
2023
|
}
|
|
1991
|
-
function
|
|
2024
|
+
function zo(e = "", t, n) {
|
|
1992
2025
|
const o = new RegExp("([?&])" + t + "=.*?(&|$)", "i"), r = e.indexOf("?") !== -1 ? "&" : "?";
|
|
1993
2026
|
return e.match(o) ? e.replace(o, "$1" + t + "=" + encodeURIComponent(n) + "$2") : e + r + t + "=" + encodeURIComponent(n);
|
|
1994
2027
|
}
|
|
1995
|
-
function
|
|
2028
|
+
function Ko(e, t) {
|
|
1996
2029
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1997
2030
|
return e;
|
|
1998
2031
|
if (t === "master")
|
|
1999
|
-
return
|
|
2032
|
+
return Ye(e);
|
|
2000
2033
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
2001
2034
|
if (n) {
|
|
2002
2035
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
2003
|
-
return
|
|
2036
|
+
return Ye(`${o[0]}_${i}${r}`);
|
|
2004
2037
|
}
|
|
2005
2038
|
return null;
|
|
2006
2039
|
}
|
|
2007
|
-
function
|
|
2040
|
+
function ie(e) {
|
|
2008
2041
|
if (!e)
|
|
2009
2042
|
return e;
|
|
2010
2043
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
2011
2044
|
if (e.match(/builder\.io/)) {
|
|
2012
2045
|
let n = e;
|
|
2013
2046
|
const o = Number(e.split("?width=")[1]);
|
|
2014
|
-
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(", ");
|
|
2015
2048
|
}
|
|
2016
|
-
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;
|
|
2017
2050
|
}
|
|
2018
|
-
const
|
|
2051
|
+
const qo = y({
|
|
2019
2052
|
name: "builder-image",
|
|
2020
2053
|
props: [
|
|
2021
2054
|
"lazy",
|
|
@@ -2045,10 +2078,10 @@ const Lo = y({
|
|
|
2045
2078
|
if (!this.noWebp) {
|
|
2046
2079
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
2047
2080
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
2048
|
-
return console.debug("Removed given srcset"),
|
|
2081
|
+
return console.debug("Removed given srcset"), ie(t);
|
|
2049
2082
|
} else if (this.image && !this.srcset)
|
|
2050
|
-
return
|
|
2051
|
-
return
|
|
2083
|
+
return ie(t);
|
|
2084
|
+
return ie(t);
|
|
2052
2085
|
}
|
|
2053
2086
|
},
|
|
2054
2087
|
webpSrcSet() {
|
|
@@ -2069,11 +2102,11 @@ const Lo = y({
|
|
|
2069
2102
|
return this.aspectRatio ? e : void 0;
|
|
2070
2103
|
}
|
|
2071
2104
|
}
|
|
2072
|
-
}),
|
|
2105
|
+
}), Go = ["srcset", "sizes"], Jo = ["loading", "fetchpriority", "alt", "title", "role", "src", "srcset", "sizes"], Qo = {
|
|
2073
2106
|
key: 2,
|
|
2074
2107
|
class: "div-t43jfuqn6g-2"
|
|
2075
2108
|
};
|
|
2076
|
-
function
|
|
2109
|
+
function _o(e, t, n, o, r, i) {
|
|
2077
2110
|
var s, l, a, u, p, b;
|
|
2078
2111
|
return d(), h(I, null, [
|
|
2079
2112
|
G("picture", null, [
|
|
@@ -2082,15 +2115,15 @@ function jo(e, t, n, o, r, i) {
|
|
|
2082
2115
|
type: "image/webp",
|
|
2083
2116
|
srcset: e.webpSrcSet,
|
|
2084
2117
|
sizes: e.sizesToUse
|
|
2085
|
-
}, null, 8,
|
|
2118
|
+
}, null, 8, Go)) : T("", !0),
|
|
2086
2119
|
G("img", {
|
|
2087
2120
|
loading: e.highPriority ? "eager" : "lazy",
|
|
2088
2121
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
2089
2122
|
alt: e.altText || "",
|
|
2090
2123
|
title: e.title,
|
|
2091
2124
|
role: e.altText ? void 0 : "presentation",
|
|
2092
|
-
style:
|
|
2093
|
-
objectPosition: e.backgroundPosition || "center"
|
|
2125
|
+
style: M({
|
|
2126
|
+
objectPosition: `var(--builder-image-position, ${e.backgroundPosition || "center"})`,
|
|
2094
2127
|
objectFit: e.backgroundSize || "cover",
|
|
2095
2128
|
...e.aspectRatioCss
|
|
2096
2129
|
}),
|
|
@@ -2100,29 +2133,29 @@ function jo(e, t, n, o, r, i) {
|
|
|
2100
2133
|
src: e.image,
|
|
2101
2134
|
srcset: e.srcSetToUse,
|
|
2102
2135
|
sizes: e.sizesToUse
|
|
2103
|
-
}, null, 14,
|
|
2136
|
+
}, null, 14, Jo)
|
|
2104
2137
|
]),
|
|
2105
2138
|
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
|
|
2106
2139
|
key: 0,
|
|
2107
2140
|
class: "builder-image-sizer div-t43jfuqn6g",
|
|
2108
|
-
style:
|
|
2141
|
+
style: M({
|
|
2109
2142
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
2110
2143
|
})
|
|
2111
2144
|
}, null, 4)) : T("", !0),
|
|
2112
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),
|
|
2113
|
-
!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, [
|
|
2114
2147
|
N(e.$slots, "default", {}, void 0, !0)
|
|
2115
2148
|
])) : T("", !0)
|
|
2116
2149
|
], 64);
|
|
2117
2150
|
}
|
|
2118
|
-
const
|
|
2151
|
+
const Yo = /* @__PURE__ */ v(qo, [["render", _o], ["__scopeId", "data-v-f109a7da"]]), Xo = y({
|
|
2119
2152
|
name: "builder-section-component",
|
|
2120
2153
|
props: ["attributes", "maxWidth"],
|
|
2121
2154
|
data() {
|
|
2122
2155
|
return { filterAttrs: O };
|
|
2123
2156
|
}
|
|
2124
2157
|
});
|
|
2125
|
-
function
|
|
2158
|
+
function Zo(e, t, n, o, r, i) {
|
|
2126
2159
|
return d(), h("section", $({
|
|
2127
2160
|
style: {
|
|
2128
2161
|
width: "100%",
|
|
@@ -2136,12 +2169,12 @@ function qo(e, t, n, o, r, i) {
|
|
|
2136
2169
|
marginLeft: "auto",
|
|
2137
2170
|
marginRight: "auto"
|
|
2138
2171
|
}
|
|
2139
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
2172
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
2140
2173
|
N(e.$slots, "default")
|
|
2141
2174
|
], 16);
|
|
2142
2175
|
}
|
|
2143
|
-
const
|
|
2144
|
-
function
|
|
2176
|
+
const er = /* @__PURE__ */ v(Xo, [["render", Zo]]);
|
|
2177
|
+
function tr(e, t, n, o) {
|
|
2145
2178
|
function r(u) {
|
|
2146
2179
|
return typeof u == "string";
|
|
2147
2180
|
}
|
|
@@ -2155,14 +2188,14 @@ function Jo(e, t, n, o) {
|
|
|
2155
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))
|
|
2156
2189
|
return !0;
|
|
2157
2190
|
if (Array.isArray(f))
|
|
2158
|
-
return m === "isNot" ? f.every((
|
|
2191
|
+
return m === "isNot" ? f.every((P) => s(u, {
|
|
2159
2192
|
property: c,
|
|
2160
2193
|
operator: m,
|
|
2161
|
-
value:
|
|
2162
|
-
})) : !!f.find((
|
|
2194
|
+
value: P
|
|
2195
|
+
})) : !!f.find((P) => s(u, {
|
|
2163
2196
|
property: c,
|
|
2164
2197
|
operator: m,
|
|
2165
|
-
value:
|
|
2198
|
+
value: P
|
|
2166
2199
|
}));
|
|
2167
2200
|
const g = u[c];
|
|
2168
2201
|
if (Array.isArray(g))
|
|
@@ -2198,7 +2231,20 @@ function Jo(e, t, n, o) {
|
|
|
2198
2231
|
}, a = e.date && new Date(e.date) || /* @__PURE__ */ new Date();
|
|
2199
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));
|
|
2200
2233
|
}
|
|
2201
|
-
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) {
|
|
2202
2248
|
if (!navigator.cookieEnabled) {
|
|
2203
2249
|
return;
|
|
2204
2250
|
}
|
|
@@ -2216,6 +2262,7 @@ const Qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2216
2262
|
if (locale) {
|
|
2217
2263
|
attributes.locale = locale;
|
|
2218
2264
|
}
|
|
2265
|
+
Object.assign(attributes, window.builderIoStudioUserAttributes());
|
|
2219
2266
|
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
2220
2267
|
return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
2221
2268
|
});
|
|
@@ -2243,7 +2290,7 @@ const Qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2243
2290
|
thisScript.remove();
|
|
2244
2291
|
}
|
|
2245
2292
|
}
|
|
2246
|
-
}`,
|
|
2293
|
+
}`, rr = `function filterWithCustomTargeting(userAttributes, query, startDate, endDate) {
|
|
2247
2294
|
function isString(val) {
|
|
2248
2295
|
return typeof val === 'string';
|
|
2249
2296
|
}
|
|
@@ -2321,7 +2368,7 @@ const Qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2321
2368
|
return item.query.every(filter => {
|
|
2322
2369
|
return objectMatchesQuery(userAttributes, filter);
|
|
2323
2370
|
});
|
|
2324
|
-
}`,
|
|
2371
|
+
}`, ir = `function updateVisibilityStylesScript(variants, blockId, isHydrationTarget, locale) {
|
|
2325
2372
|
function getCookie(name) {
|
|
2326
2373
|
const nameEQ = name + '=';
|
|
2327
2374
|
const ca = document.cookie.split(';');
|
|
@@ -2347,6 +2394,7 @@ const Qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2347
2394
|
if (locale) {
|
|
2348
2395
|
attributes.locale = locale;
|
|
2349
2396
|
}
|
|
2397
|
+
Object.assign(attributes, window.builderIoStudioUserAttributes());
|
|
2350
2398
|
const winningVariantIndex = variants?.findIndex(function (variant) {
|
|
2351
2399
|
return window.filterWithCustomTargeting(attributes, variant.query, variant.startDate, variant.endDate);
|
|
2352
2400
|
});
|
|
@@ -2359,11 +2407,11 @@ const Qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2359
2407
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2360
2408
|
}
|
|
2361
2409
|
}
|
|
2362
|
-
}`,
|
|
2363
|
-
function
|
|
2364
|
-
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();
|
|
2365
2413
|
}
|
|
2366
|
-
function
|
|
2414
|
+
function lr({
|
|
2367
2415
|
variants: e,
|
|
2368
2416
|
previewingIndex: t,
|
|
2369
2417
|
isHydrated: n,
|
|
@@ -2373,9 +2421,9 @@ function er({
|
|
|
2373
2421
|
const i = {
|
|
2374
2422
|
blocks: r ?? [],
|
|
2375
2423
|
path: "this.children",
|
|
2376
|
-
index:
|
|
2424
|
+
index: se
|
|
2377
2425
|
};
|
|
2378
|
-
if (n &&
|
|
2426
|
+
if (n && A()) {
|
|
2379
2427
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
2380
2428
|
const s = e == null ? void 0 : e[t];
|
|
2381
2429
|
if (s)
|
|
@@ -2401,22 +2449,25 @@ function er({
|
|
|
2401
2449
|
}
|
|
2402
2450
|
return i;
|
|
2403
2451
|
}
|
|
2404
|
-
const
|
|
2452
|
+
const Ie = (e) => {
|
|
2405
2453
|
var t;
|
|
2406
|
-
return Array.isArray(e) ? e.some(
|
|
2407
|
-
},
|
|
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 = () => `
|
|
2408
2456
|
(function() {
|
|
2409
|
-
if (!window.${
|
|
2410
|
-
window.${
|
|
2457
|
+
if (!window.${Ze}) {
|
|
2458
|
+
window.${Ze} = ${nr};
|
|
2411
2459
|
}
|
|
2412
|
-
if (!window.${
|
|
2413
|
-
window.${
|
|
2460
|
+
if (!window.${Xe}) {
|
|
2461
|
+
window.${Xe} = ${rr};
|
|
2414
2462
|
}
|
|
2415
2463
|
if (!window.${Te}) {
|
|
2416
|
-
window.${Te} = ${
|
|
2464
|
+
window.${Te} = ${or};
|
|
2465
|
+
}
|
|
2466
|
+
if (!window.${we}) {
|
|
2467
|
+
window.${we} = ${ir};
|
|
2417
2468
|
}
|
|
2418
2469
|
})();
|
|
2419
|
-
`,
|
|
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 = {
|
|
2420
2471
|
"@type": "@builder.io/sdk:Element",
|
|
2421
2472
|
layerName: "Accordion item title",
|
|
2422
2473
|
responsiveStyles: {
|
|
@@ -2445,7 +2496,7 @@ const we = (e) => {
|
|
|
2445
2496
|
}
|
|
2446
2497
|
}
|
|
2447
2498
|
}]
|
|
2448
|
-
},
|
|
2499
|
+
}, be = {
|
|
2449
2500
|
"@type": "@builder.io/sdk:Element",
|
|
2450
2501
|
layerName: "Accordion item detail",
|
|
2451
2502
|
responsiveStyles: {
|
|
@@ -2476,7 +2527,7 @@ const we = (e) => {
|
|
|
2476
2527
|
}
|
|
2477
2528
|
}
|
|
2478
2529
|
}]
|
|
2479
|
-
},
|
|
2530
|
+
}, mr = {
|
|
2480
2531
|
name: "Builder:Accordion",
|
|
2481
2532
|
canHaveChildren: !0,
|
|
2482
2533
|
image: "https://cdn.builder.io/api/v1/image/assets%2FagZ9n5CUKRfbL9t6CaJOyVSK4Es2%2Ffab6c1fd3fe542408cbdec078bca7f35",
|
|
@@ -2493,19 +2544,19 @@ const we = (e) => {
|
|
|
2493
2544
|
name: "title",
|
|
2494
2545
|
type: "uiBlocks",
|
|
2495
2546
|
hideFromUI: !0,
|
|
2496
|
-
defaultValue: [
|
|
2547
|
+
defaultValue: [fe]
|
|
2497
2548
|
}, {
|
|
2498
2549
|
name: "detail",
|
|
2499
2550
|
type: "uiBlocks",
|
|
2500
2551
|
hideFromUI: !0,
|
|
2501
|
-
defaultValue: [
|
|
2552
|
+
defaultValue: [be]
|
|
2502
2553
|
}],
|
|
2503
2554
|
defaultValue: [{
|
|
2504
|
-
title: [
|
|
2505
|
-
detail: [
|
|
2555
|
+
title: [fe],
|
|
2556
|
+
detail: [be]
|
|
2506
2557
|
}, {
|
|
2507
|
-
title: [
|
|
2508
|
-
detail: [
|
|
2558
|
+
title: [fe],
|
|
2559
|
+
detail: [be]
|
|
2509
2560
|
}],
|
|
2510
2561
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2511
2562
|
}, {
|
|
@@ -2540,7 +2591,7 @@ const we = (e) => {
|
|
|
2540
2591
|
builderComponents: !0,
|
|
2541
2592
|
builderLinkComponent: !0
|
|
2542
2593
|
}
|
|
2543
|
-
},
|
|
2594
|
+
}, hr = (e) => e.toString(), fr = y({
|
|
2544
2595
|
name: "builder-accordion",
|
|
2545
2596
|
components: { Blocks: K },
|
|
2546
2597
|
props: [
|
|
@@ -2554,7 +2605,7 @@ const we = (e) => {
|
|
|
2554
2605
|
"builderLinkComponent"
|
|
2555
2606
|
],
|
|
2556
2607
|
data() {
|
|
2557
|
-
return { open: [], convertOrderNumberToString:
|
|
2608
|
+
return { open: [], convertOrderNumberToString: hr };
|
|
2558
2609
|
},
|
|
2559
2610
|
computed: {
|
|
2560
2611
|
onlyOneAtATime() {
|
|
@@ -2635,17 +2686,17 @@ const we = (e) => {
|
|
|
2635
2686
|
this.open.includes(e) ? this.open = this.onlyOneAtATime ? [] : this.open.filter((t) => t !== e) : this.open = this.onlyOneAtATime ? [e] : this.open.concat(e);
|
|
2636
2687
|
}
|
|
2637
2688
|
}
|
|
2638
|
-
}),
|
|
2639
|
-
function
|
|
2689
|
+
}), br = ["data-index", "onClick"];
|
|
2690
|
+
function gr(e, t, n, o, r, i) {
|
|
2640
2691
|
const s = k("Blocks");
|
|
2641
2692
|
return d(), h("div", {
|
|
2642
2693
|
class: "builder-accordion",
|
|
2643
|
-
style:
|
|
2694
|
+
style: M(e.accordionStyles)
|
|
2644
2695
|
}, [
|
|
2645
2696
|
(d(!0), h(I, null, L(e.items, (l, a) => (d(), h(I, { key: a }, [
|
|
2646
2697
|
G("div", {
|
|
2647
2698
|
class: ee(e.getAccordionTitleClassName(a)),
|
|
2648
|
-
style:
|
|
2699
|
+
style: M({
|
|
2649
2700
|
...e.accordionTitleStyles,
|
|
2650
2701
|
...e.grid && {
|
|
2651
2702
|
width: e.gridRowWidth,
|
|
@@ -2663,11 +2714,11 @@ function cr(e, t, n, o, r, i) {
|
|
|
2663
2714
|
registeredComponents: e.builderComponents,
|
|
2664
2715
|
linkComponent: e.builderLinkComponent
|
|
2665
2716
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2666
|
-
], 14,
|
|
2717
|
+
], 14, br),
|
|
2667
2718
|
e.open.includes(a) ? (d(), h("div", {
|
|
2668
2719
|
key: 0,
|
|
2669
2720
|
class: ee(e.getAccordionDetailClassName(a)),
|
|
2670
|
-
style:
|
|
2721
|
+
style: M(e.accordionDetailStyles)
|
|
2671
2722
|
}, [
|
|
2672
2723
|
R(s, {
|
|
2673
2724
|
blocks: l.detail,
|
|
@@ -2681,7 +2732,7 @@ function cr(e, t, n, o, r, i) {
|
|
|
2681
2732
|
], 64))), 128))
|
|
2682
2733
|
], 4);
|
|
2683
2734
|
}
|
|
2684
|
-
const
|
|
2735
|
+
const yr = /* @__PURE__ */ v(fr, [["render", gr]]), vr = {
|
|
2685
2736
|
name: "Core:Button",
|
|
2686
2737
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F81a15681c3e74df09677dfc57a615b13",
|
|
2687
2738
|
defaultStyles: {
|
|
@@ -2717,7 +2768,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
2717
2768
|
shouldReceiveBuilderProps: {
|
|
2718
2769
|
builderLinkComponent: !0
|
|
2719
2770
|
}
|
|
2720
|
-
},
|
|
2771
|
+
}, Sr = {
|
|
2721
2772
|
// TODO: ways to statically preprocess JSON for references, functions, etc
|
|
2722
2773
|
name: "Columns",
|
|
2723
2774
|
isRSC: !0,
|
|
@@ -2924,13 +2975,13 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
2924
2975
|
builderComponents: !0,
|
|
2925
2976
|
builderLinkComponent: !0
|
|
2926
2977
|
}
|
|
2927
|
-
},
|
|
2978
|
+
}, kr = {
|
|
2928
2979
|
name: "Fragment",
|
|
2929
2980
|
static: !0,
|
|
2930
2981
|
hidden: !0,
|
|
2931
2982
|
canHaveChildren: !0,
|
|
2932
2983
|
noWrap: !0
|
|
2933
|
-
},
|
|
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 = {
|
|
2934
2985
|
name: "Image",
|
|
2935
2986
|
static: !0,
|
|
2936
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",
|
|
@@ -2945,7 +2996,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
2945
2996
|
name: "image",
|
|
2946
2997
|
type: "file",
|
|
2947
2998
|
bubble: !0,
|
|
2948
|
-
allowedFileTypes:
|
|
2999
|
+
allowedFileTypes: Ue,
|
|
2949
3000
|
required: !0,
|
|
2950
3001
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2951
3002
|
onChange: (e) => {
|
|
@@ -3043,7 +3094,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3043
3094
|
shouldReceiveBuilderProps: {
|
|
3044
3095
|
builderBlock: !0
|
|
3045
3096
|
}
|
|
3046
|
-
},
|
|
3097
|
+
}, wr = {
|
|
3047
3098
|
name: "PersonalizationContainer",
|
|
3048
3099
|
shouldReceiveBuilderProps: {
|
|
3049
3100
|
builderBlock: !0,
|
|
@@ -3081,7 +3132,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3081
3132
|
}]
|
|
3082
3133
|
}, xe = y({
|
|
3083
3134
|
render() {
|
|
3084
|
-
return
|
|
3135
|
+
return ot("script", {
|
|
3085
3136
|
innerHTML: this.scriptStr,
|
|
3086
3137
|
"data-id": this.id,
|
|
3087
3138
|
nonce: this.nonce
|
|
@@ -3089,11 +3140,11 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3089
3140
|
},
|
|
3090
3141
|
name: "inlined-script",
|
|
3091
3142
|
props: ["scriptStr", "id", "nonce"]
|
|
3092
|
-
}),
|
|
3143
|
+
}), Ir = y({
|
|
3093
3144
|
name: "builder-personalization-container",
|
|
3094
3145
|
components: {
|
|
3095
3146
|
Blocks: K,
|
|
3096
|
-
InlinedStyles:
|
|
3147
|
+
InlinedStyles: he,
|
|
3097
3148
|
InlinedScript: xe
|
|
3098
3149
|
},
|
|
3099
3150
|
props: [
|
|
@@ -3107,32 +3158,32 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3107
3158
|
data() {
|
|
3108
3159
|
var e, t, n, o, r, i, s;
|
|
3109
3160
|
return {
|
|
3110
|
-
userAttributes:
|
|
3111
|
-
scriptStr:
|
|
3161
|
+
userAttributes: ue.getUserAttributes(),
|
|
3162
|
+
scriptStr: ur(
|
|
3112
3163
|
this.variants,
|
|
3113
3164
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
3114
3165
|
(n = (t = this.builderContext) == null ? void 0 : t.rootState) == null ? void 0 : n.locale
|
|
3115
3166
|
),
|
|
3116
|
-
updateVisibilityStylesScript:
|
|
3167
|
+
updateVisibilityStylesScript: pr(
|
|
3117
3168
|
this.variants,
|
|
3118
3169
|
((o = this.builderBlock) == null ? void 0 : o.id) || "none",
|
|
3119
3170
|
(i = (r = this.builderContext) == null ? void 0 : r.rootState) == null ? void 0 : i.locale
|
|
3120
3171
|
),
|
|
3121
3172
|
unsubscribers: [],
|
|
3122
|
-
shouldRenderVariants:
|
|
3173
|
+
shouldRenderVariants: ar(
|
|
3123
3174
|
this.variants,
|
|
3124
3175
|
J((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
3125
3176
|
),
|
|
3126
3177
|
shouldResetVariants: !1,
|
|
3127
3178
|
TARGET: E,
|
|
3128
|
-
DEFAULT_INDEX:
|
|
3129
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
3179
|
+
DEFAULT_INDEX: se,
|
|
3180
|
+
SDKS_REQUIRING_RESET_APPROACH: Dt
|
|
3130
3181
|
};
|
|
3131
3182
|
},
|
|
3132
3183
|
mounted() {
|
|
3133
3184
|
var t;
|
|
3134
3185
|
this.shouldResetVariants = !0;
|
|
3135
|
-
const e =
|
|
3186
|
+
const e = ue.subscribeOnUserAttributesChange(
|
|
3136
3187
|
(n) => {
|
|
3137
3188
|
this.userAttributes = n;
|
|
3138
3189
|
},
|
|
@@ -3140,12 +3191,12 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3140
3191
|
fireImmediately: E === "qwik"
|
|
3141
3192
|
}
|
|
3142
3193
|
);
|
|
3143
|
-
if (!(
|
|
3194
|
+
if (!(A() || Ve())) {
|
|
3144
3195
|
const n = this.filteredVariants[0];
|
|
3145
3196
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
3146
3197
|
new CustomEvent("builder.variantLoaded", {
|
|
3147
3198
|
detail: {
|
|
3148
|
-
variant: n ||
|
|
3199
|
+
variant: n || se,
|
|
3149
3200
|
content: (t = this.builderContext) == null ? void 0 : t.content
|
|
3150
3201
|
},
|
|
3151
3202
|
bubbles: !0
|
|
@@ -3156,7 +3207,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3156
3207
|
i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
|
|
3157
3208
|
new CustomEvent("builder.variantDisplayed", {
|
|
3158
3209
|
detail: {
|
|
3159
|
-
variant: n ||
|
|
3210
|
+
variant: n || se,
|
|
3160
3211
|
content: (s = this.builderContext) == null ? void 0 : s.content
|
|
3161
3212
|
},
|
|
3162
3213
|
bubbles: !0
|
|
@@ -3175,13 +3226,13 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3175
3226
|
return {
|
|
3176
3227
|
...O(this.attributes, "v-on:", !1),
|
|
3177
3228
|
...O(this.attributes, "v-on:", !0),
|
|
3178
|
-
[
|
|
3229
|
+
[H()]: `builder-personalization-container ${this.attributes[H()] || ""}`
|
|
3179
3230
|
};
|
|
3180
3231
|
},
|
|
3181
3232
|
filteredVariants() {
|
|
3182
3233
|
return (this.variants || []).filter((e) => {
|
|
3183
3234
|
var t, n, o, r;
|
|
3184
|
-
return
|
|
3235
|
+
return tr(
|
|
3185
3236
|
{
|
|
3186
3237
|
...(n = (t = this.builderContext) == null ? void 0 : t.rootState) != null && n.locale ? {
|
|
3187
3238
|
locale: (r = (o = this.builderContext) == null ? void 0 : o.rootState) == null ? void 0 : r.locale
|
|
@@ -3196,7 +3247,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3196
3247
|
},
|
|
3197
3248
|
blocksToRender() {
|
|
3198
3249
|
var e;
|
|
3199
|
-
return
|
|
3250
|
+
return lr({
|
|
3200
3251
|
variants: this.variants,
|
|
3201
3252
|
fallbackBlocks: (e = this.builderBlock) == null ? void 0 : e.children,
|
|
3202
3253
|
isHydrated: this.shouldResetVariants,
|
|
@@ -3214,8 +3265,8 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3214
3265
|
}
|
|
3215
3266
|
}
|
|
3216
3267
|
});
|
|
3217
|
-
function
|
|
3218
|
-
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;
|
|
3219
3270
|
const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
|
|
3220
3271
|
return d(), h("div", $({ ref: "rootRef" }, e.attrs), [
|
|
3221
3272
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
|
|
@@ -3243,14 +3294,14 @@ function yr(e, t, n, o, r, i) {
|
|
|
3243
3294
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
3244
3295
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
3245
3296
|
(d(!0), h(I, null, L(e.variants, (q, C) => {
|
|
3246
|
-
var z, Q,
|
|
3297
|
+
var z, Q, _, W;
|
|
3247
3298
|
return d(), S(s, {
|
|
3248
3299
|
key: `${(z = e.builderBlock) == null ? void 0 : z.id}-${C}`,
|
|
3249
3300
|
BlocksWrapperProps: {
|
|
3250
3301
|
...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
|
|
3251
3302
|
"aria-hidden": !0,
|
|
3252
3303
|
hidden: !0,
|
|
3253
|
-
"data-variant-id": `${(
|
|
3304
|
+
"data-variant-id": `${(_ = e.builderBlock) == null ? void 0 : _.id}-${C}`
|
|
3254
3305
|
},
|
|
3255
3306
|
blocks: q.blocks,
|
|
3256
3307
|
parent: (W = e.builderBlock) == null ? void 0 : W.id,
|
|
@@ -3259,12 +3310,12 @@ function yr(e, t, n, o, r, i) {
|
|
|
3259
3310
|
registeredComponents: e.builderComponents
|
|
3260
3311
|
}, {
|
|
3261
3312
|
default: D(() => {
|
|
3262
|
-
var F,
|
|
3313
|
+
var F, Fe;
|
|
3263
3314
|
return [
|
|
3264
3315
|
R(a, {
|
|
3265
3316
|
nonce: ((F = e.builderContext) == null ? void 0 : F.nonce) || "",
|
|
3266
3317
|
scriptStr: e.scriptStr,
|
|
3267
|
-
id: `variants-script-${(
|
|
3318
|
+
id: `variants-script-${(Fe = e.builderBlock) == null ? void 0 : Fe.id}-${C}`
|
|
3268
3319
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
3269
3320
|
];
|
|
3270
3321
|
}),
|
|
@@ -3274,12 +3325,12 @@ function yr(e, t, n, o, r, i) {
|
|
|
3274
3325
|
], 64)) : T("", !0),
|
|
3275
3326
|
R(s, {
|
|
3276
3327
|
blocks: e.blocksToRender.blocks,
|
|
3277
|
-
parent: (
|
|
3328
|
+
parent: (P = e.builderBlock) == null ? void 0 : P.id,
|
|
3278
3329
|
path: e.blocksToRender.path,
|
|
3279
3330
|
context: e.builderContext,
|
|
3280
3331
|
registeredComponents: e.builderComponents,
|
|
3281
3332
|
BlocksWrapperProps: {
|
|
3282
|
-
...(
|
|
3333
|
+
...(U = e.builderContext) == null ? void 0 : U.BlocksWrapperProps,
|
|
3283
3334
|
"data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
|
|
3284
3335
|
}
|
|
3285
3336
|
}, {
|
|
@@ -3299,7 +3350,7 @@ function yr(e, t, n, o, r, i) {
|
|
|
3299
3350
|
], 64)) : T("", !0)
|
|
3300
3351
|
], 16);
|
|
3301
3352
|
}
|
|
3302
|
-
const
|
|
3353
|
+
const Er = /* @__PURE__ */ v(Ir, [["render", $r]]), Rr = {
|
|
3303
3354
|
name: "Core:Section",
|
|
3304
3355
|
static: !0,
|
|
3305
3356
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F682efef23ace49afac61748dd305c70a",
|
|
@@ -3338,7 +3389,7 @@ const vr = /* @__PURE__ */ v(gr, [["render", yr]]), Sr = {
|
|
|
3338
3389
|
}
|
|
3339
3390
|
}
|
|
3340
3391
|
}]
|
|
3341
|
-
},
|
|
3392
|
+
}, Ar = {
|
|
3342
3393
|
name: "Slot",
|
|
3343
3394
|
isRSC: !0,
|
|
3344
3395
|
description: "Allow child blocks to be inserted into this content when used as a Symbol",
|
|
@@ -3355,12 +3406,12 @@ const vr = /* @__PURE__ */ v(gr, [["render", yr]]), Sr = {
|
|
|
3355
3406
|
builderContext: !0,
|
|
3356
3407
|
builderComponents: !0
|
|
3357
3408
|
}
|
|
3358
|
-
},
|
|
3409
|
+
}, Pr = y({
|
|
3359
3410
|
name: "builder-slot",
|
|
3360
3411
|
components: { Blocks: K },
|
|
3361
3412
|
props: ["builderContext", "name", "builderComponents"]
|
|
3362
3413
|
});
|
|
3363
|
-
function
|
|
3414
|
+
function Br(e, t, n, o, r, i) {
|
|
3364
3415
|
var l, a, u;
|
|
3365
3416
|
const s = k("Blocks");
|
|
3366
3417
|
return d(), h("div", $(
|
|
@@ -3380,7 +3431,7 @@ function Tr(e, t, n, o, r, i) {
|
|
|
3380
3431
|
}, null, 8, ["parent", "path", "context", "registeredComponents", "blocks"])
|
|
3381
3432
|
], 16);
|
|
3382
3433
|
}
|
|
3383
|
-
const
|
|
3434
|
+
const Vr = /* @__PURE__ */ v(Pr, [["render", Br]]), Nr = {
|
|
3384
3435
|
name: "Symbol",
|
|
3385
3436
|
noWrap: !0,
|
|
3386
3437
|
static: !0,
|
|
@@ -3419,7 +3470,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3419
3470
|
builderComponents: !0,
|
|
3420
3471
|
builderLinkComponent: !0
|
|
3421
3472
|
}
|
|
3422
|
-
},
|
|
3473
|
+
}, ge = {
|
|
3423
3474
|
"@type": "@builder.io/sdk:Element",
|
|
3424
3475
|
responsiveStyles: {
|
|
3425
3476
|
large: {
|
|
@@ -3441,7 +3492,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3441
3492
|
text: "New tab"
|
|
3442
3493
|
}
|
|
3443
3494
|
}
|
|
3444
|
-
},
|
|
3495
|
+
}, ye = {
|
|
3445
3496
|
"@type": "@builder.io/sdk:Element",
|
|
3446
3497
|
responsiveStyles: {
|
|
3447
3498
|
large: {
|
|
@@ -3457,7 +3508,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3457
3508
|
text: "New tab content "
|
|
3458
3509
|
}
|
|
3459
3510
|
}
|
|
3460
|
-
},
|
|
3511
|
+
}, Or = {
|
|
3461
3512
|
name: "Builder: Tabs",
|
|
3462
3513
|
inputs: [{
|
|
3463
3514
|
name: "tabs",
|
|
@@ -3467,16 +3518,16 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3467
3518
|
name: "label",
|
|
3468
3519
|
type: "uiBlocks",
|
|
3469
3520
|
hideFromUI: !0,
|
|
3470
|
-
defaultValue: [
|
|
3521
|
+
defaultValue: [ge]
|
|
3471
3522
|
}, {
|
|
3472
3523
|
name: "content",
|
|
3473
3524
|
type: "uiBlocks",
|
|
3474
3525
|
hideFromUI: !0,
|
|
3475
|
-
defaultValue: [
|
|
3526
|
+
defaultValue: [ye]
|
|
3476
3527
|
}],
|
|
3477
3528
|
defaultValue: [{
|
|
3478
3529
|
label: [{
|
|
3479
|
-
...
|
|
3530
|
+
...ge,
|
|
3480
3531
|
component: {
|
|
3481
3532
|
name: "Text",
|
|
3482
3533
|
options: {
|
|
@@ -3485,7 +3536,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3485
3536
|
}
|
|
3486
3537
|
}],
|
|
3487
3538
|
content: [{
|
|
3488
|
-
...
|
|
3539
|
+
...ye,
|
|
3489
3540
|
component: {
|
|
3490
3541
|
name: "Text",
|
|
3491
3542
|
options: {
|
|
@@ -3495,7 +3546,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3495
3546
|
}]
|
|
3496
3547
|
}, {
|
|
3497
3548
|
label: [{
|
|
3498
|
-
...
|
|
3549
|
+
...ge,
|
|
3499
3550
|
component: {
|
|
3500
3551
|
name: "Text",
|
|
3501
3552
|
options: {
|
|
@@ -3504,7 +3555,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3504
3555
|
}
|
|
3505
3556
|
}],
|
|
3506
3557
|
content: [{
|
|
3507
|
-
...
|
|
3558
|
+
...ye,
|
|
3508
3559
|
component: {
|
|
3509
3560
|
name: "Text",
|
|
3510
3561
|
options: {
|
|
@@ -3560,7 +3611,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3560
3611
|
builderComponents: !0,
|
|
3561
3612
|
builderLinkComponent: !0
|
|
3562
3613
|
}
|
|
3563
|
-
},
|
|
3614
|
+
}, Wr = y({
|
|
3564
3615
|
name: "builder-tabs",
|
|
3565
3616
|
components: { Blocks: K },
|
|
3566
3617
|
props: [
|
|
@@ -3588,13 +3639,13 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3588
3639
|
e === this.activeTab && this.collapsible ? this.activeTab = -1 : this.activeTab = e;
|
|
3589
3640
|
}
|
|
3590
3641
|
}
|
|
3591
|
-
}),
|
|
3592
|
-
function
|
|
3642
|
+
}), Dr = ["onClick"], Ur = { key: 0 };
|
|
3643
|
+
function xr(e, t, n, o, r, i) {
|
|
3593
3644
|
const s = k("Blocks");
|
|
3594
3645
|
return d(), h("div", null, [
|
|
3595
3646
|
G("div", {
|
|
3596
3647
|
class: "builder-tabs-wrap",
|
|
3597
|
-
style:
|
|
3648
|
+
style: M({
|
|
3598
3649
|
display: "flex",
|
|
3599
3650
|
flexDirection: "row",
|
|
3600
3651
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
@@ -3604,7 +3655,7 @@ function Ar(e, t, n, o, r, i) {
|
|
|
3604
3655
|
(d(!0), h(I, null, L(e.tabs, (l, a) => (d(), h("span", {
|
|
3605
3656
|
key: a,
|
|
3606
3657
|
class: ee(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3607
|
-
style:
|
|
3658
|
+
style: M(e.getTabStyle(a)),
|
|
3608
3659
|
onClick: async (u) => e.onClick(a)
|
|
3609
3660
|
}, [
|
|
3610
3661
|
R(s, {
|
|
@@ -3615,9 +3666,9 @@ function Ar(e, t, n, o, r, i) {
|
|
|
3615
3666
|
registeredComponents: e.builderComponents,
|
|
3616
3667
|
linkComponent: e.builderLinkComponent
|
|
3617
3668
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3618
|
-
], 14,
|
|
3669
|
+
], 14, Dr))), 128))
|
|
3619
3670
|
], 4),
|
|
3620
|
-
e.activeTabContent(e.activeTab) ? (d(), h("div",
|
|
3671
|
+
e.activeTabContent(e.activeTab) ? (d(), h("div", Ur, [
|
|
3621
3672
|
R(s, {
|
|
3622
3673
|
parent: e.builderBlock.id,
|
|
3623
3674
|
path: `tabs.${e.activeTab}.content`,
|
|
@@ -3629,7 +3680,7 @@ function Ar(e, t, n, o, r, i) {
|
|
|
3629
3680
|
])) : T("", !0)
|
|
3630
3681
|
]);
|
|
3631
3682
|
}
|
|
3632
|
-
const
|
|
3683
|
+
const Lr = /* @__PURE__ */ v(Wr, [["render", xr]]), Fr = {
|
|
3633
3684
|
shouldReceiveBuilderProps: {},
|
|
3634
3685
|
name: "Text",
|
|
3635
3686
|
static: !0,
|
|
@@ -3647,11 +3698,11 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3647
3698
|
height: "auto",
|
|
3648
3699
|
textAlign: "center"
|
|
3649
3700
|
}
|
|
3650
|
-
},
|
|
3701
|
+
}, Mr = y({
|
|
3651
3702
|
name: "builder-text",
|
|
3652
3703
|
props: ["text"]
|
|
3653
|
-
}),
|
|
3654
|
-
function
|
|
3704
|
+
}), Hr = ["innerHTML"];
|
|
3705
|
+
function jr(e, t, n, o, r, i) {
|
|
3655
3706
|
var s;
|
|
3656
3707
|
return d(), h("div", {
|
|
3657
3708
|
class: "builder-text",
|
|
@@ -3659,9 +3710,9 @@ function Wr(e, t, n, o, r, i) {
|
|
|
3659
3710
|
style: {
|
|
3660
3711
|
outline: "none"
|
|
3661
3712
|
}
|
|
3662
|
-
}, null, 8,
|
|
3713
|
+
}, null, 8, Hr);
|
|
3663
3714
|
}
|
|
3664
|
-
const
|
|
3715
|
+
const zr = /* @__PURE__ */ v(Mr, [["render", jr]]), Kr = {
|
|
3665
3716
|
name: "Custom Code",
|
|
3666
3717
|
static: !0,
|
|
3667
3718
|
requiredPermissions: ["editCode"],
|
|
@@ -3683,7 +3734,7 @@ const Dr = /* @__PURE__ */ v(Nr, [["render", Wr]]), xr = {
|
|
|
3683
3734
|
helperText: "Only print and run scripts on the client. Important when scripts influence DOM that could be replaced when client loads",
|
|
3684
3735
|
advanced: !0
|
|
3685
3736
|
}]
|
|
3686
|
-
},
|
|
3737
|
+
}, qr = y({
|
|
3687
3738
|
name: "builder-custom-code",
|
|
3688
3739
|
props: ["code", "replaceNodes"],
|
|
3689
3740
|
data() {
|
|
@@ -3695,7 +3746,7 @@ const Dr = /* @__PURE__ */ v(Nr, [["render", Wr]]), xr = {
|
|
|
3695
3746
|
watch: {
|
|
3696
3747
|
onUpdateHook0: {
|
|
3697
3748
|
handler() {
|
|
3698
|
-
|
|
3749
|
+
A() && setTimeout(() => {
|
|
3699
3750
|
this.runScripts();
|
|
3700
3751
|
}, 0);
|
|
3701
3752
|
},
|
|
@@ -3742,15 +3793,15 @@ const Dr = /* @__PURE__ */ v(Nr, [["render", Wr]]), xr = {
|
|
|
3742
3793
|
}
|
|
3743
3794
|
}
|
|
3744
3795
|
}
|
|
3745
|
-
}),
|
|
3746
|
-
function
|
|
3796
|
+
}), Gr = ["innerHTML"];
|
|
3797
|
+
function Jr(e, t, n, o, r, i) {
|
|
3747
3798
|
return d(), h("div", {
|
|
3748
3799
|
ref: "elementRef",
|
|
3749
3800
|
class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3750
3801
|
innerHTML: e.code
|
|
3751
|
-
}, null, 10,
|
|
3802
|
+
}, null, 10, Gr);
|
|
3752
3803
|
}
|
|
3753
|
-
const
|
|
3804
|
+
const Qr = /* @__PURE__ */ v(qr, [["render", Jr]]), _r = {
|
|
3754
3805
|
name: "Embed",
|
|
3755
3806
|
static: !0,
|
|
3756
3807
|
inputs: [{
|
|
@@ -3765,7 +3816,7 @@ const Hr = /* @__PURE__ */ v(Ur, [["render", Fr]]), Mr = {
|
|
|
3765
3816
|
defaultValue: '<div style="padding: 20px; text-align: center">(Choose an embed URL)<div>',
|
|
3766
3817
|
hideFromUI: !0
|
|
3767
3818
|
}]
|
|
3768
|
-
},
|
|
3819
|
+
}, Yr = ["text/javascript", "application/javascript", "application/ecmascript"], Xr = (e) => Yr.includes(e.type), Zr = y({
|
|
3769
3820
|
name: "builder-embed",
|
|
3770
3821
|
props: ["content"],
|
|
3771
3822
|
data() {
|
|
@@ -3798,7 +3849,7 @@ const Hr = /* @__PURE__ */ v(Ur, [["render", Fr]]), Mr = {
|
|
|
3798
3849
|
this.scriptsInserted.push(n.src);
|
|
3799
3850
|
const o = document.createElement("script");
|
|
3800
3851
|
o.async = !0, o.src = n.src, document.head.appendChild(o);
|
|
3801
|
-
} else if (
|
|
3852
|
+
} else if (Xr(n) && !this.scriptsRun.includes(n.innerText))
|
|
3802
3853
|
try {
|
|
3803
3854
|
this.scriptsRun.push(n.innerText), new Function(n.innerText)();
|
|
3804
3855
|
} catch (o) {
|
|
@@ -3807,15 +3858,15 @@ const Hr = /* @__PURE__ */ v(Ur, [["render", Fr]]), Mr = {
|
|
|
3807
3858
|
}
|
|
3808
3859
|
}
|
|
3809
3860
|
}
|
|
3810
|
-
}),
|
|
3811
|
-
function
|
|
3861
|
+
}), ei = ["innerHTML"];
|
|
3862
|
+
function ti(e, t, n, o, r, i) {
|
|
3812
3863
|
return d(), h("div", {
|
|
3813
3864
|
class: "builder-embed",
|
|
3814
3865
|
ref: "elem",
|
|
3815
3866
|
innerHTML: e.content
|
|
3816
|
-
}, null, 8,
|
|
3867
|
+
}, null, 8, ei);
|
|
3817
3868
|
}
|
|
3818
|
-
const
|
|
3869
|
+
const ni = /* @__PURE__ */ v(Zr, [["render", ti]]), oi = {
|
|
3819
3870
|
name: "Form:Form",
|
|
3820
3871
|
// editableTags: ['builder-form-error']
|
|
3821
3872
|
defaults: {
|
|
@@ -4052,10 +4103,10 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4052
4103
|
builderComponents: !0,
|
|
4053
4104
|
builderLinkComponent: !0
|
|
4054
4105
|
}
|
|
4055
|
-
},
|
|
4106
|
+
}, ri = ["production", "qa", "test", "development", "dev", "cdn-qa", "cloud", "fast", "cdn2", "cdn-prod"], ii = () => {
|
|
4056
4107
|
const e = process.env.NODE_ENV || "production";
|
|
4057
|
-
return
|
|
4058
|
-
},
|
|
4108
|
+
return ri.includes(e) ? e : "production";
|
|
4109
|
+
}, si = y({
|
|
4059
4110
|
name: "builder-form-component",
|
|
4060
4111
|
components: { Blocks: K },
|
|
4061
4112
|
props: [
|
|
@@ -4096,7 +4147,7 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4096
4147
|
this.builderContext.rootSetState ? (o = (n = this.builderContext).rootSetState) == null || o.call(n, t) : this.builderContext.rootState = t;
|
|
4097
4148
|
},
|
|
4098
4149
|
submissionState() {
|
|
4099
|
-
return
|
|
4150
|
+
return A() && this.previewState || this.formState;
|
|
4100
4151
|
},
|
|
4101
4152
|
errorResponse(e) {
|
|
4102
4153
|
return JSON.stringify(e, null, 2);
|
|
@@ -4148,7 +4199,7 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4148
4199
|
else {
|
|
4149
4200
|
const c = {};
|
|
4150
4201
|
Array.from(l).forEach(({ value: m, key: f }) => {
|
|
4151
|
-
|
|
4202
|
+
yt(c, f, m);
|
|
4152
4203
|
}), i = JSON.stringify(c);
|
|
4153
4204
|
}
|
|
4154
4205
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -4166,7 +4217,7 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4166
4217
|
});
|
|
4167
4218
|
return;
|
|
4168
4219
|
}
|
|
4169
|
-
const p = `${
|
|
4220
|
+
const p = `${ii() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4170
4221
|
this.sendSubmissionsToEmail || ""
|
|
4171
4222
|
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
4172
4223
|
Pe(b), fetch(b, {
|
|
@@ -4175,36 +4226,36 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4175
4226
|
method: this.method || "post"
|
|
4176
4227
|
}).then(
|
|
4177
4228
|
async (c) => {
|
|
4178
|
-
var g,
|
|
4229
|
+
var g, P;
|
|
4179
4230
|
let m;
|
|
4180
4231
|
const f = c.headers.get("content-type");
|
|
4181
4232
|
if (f && f.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
|
|
4182
|
-
const
|
|
4233
|
+
const U = new CustomEvent("submit:error", {
|
|
4183
4234
|
detail: {
|
|
4184
4235
|
error: m,
|
|
4185
4236
|
status: c.status
|
|
4186
4237
|
}
|
|
4187
4238
|
});
|
|
4188
|
-
if ((g = this.$refs.formRef) != null && g.nativeElement && ((
|
|
4189
|
-
|
|
4190
|
-
),
|
|
4239
|
+
if ((g = this.$refs.formRef) != null && g.nativeElement && ((P = this.$refs.formRef) == null || P.nativeElement.dispatchEvent(
|
|
4240
|
+
U
|
|
4241
|
+
), U.defaultPrevented))
|
|
4191
4242
|
return;
|
|
4192
4243
|
this.responseData = m, this.formState = "error";
|
|
4193
|
-
let V = this.errorMessagePath ?
|
|
4244
|
+
let V = this.errorMessagePath ? it(m, this.errorMessagePath) : m.message || m.error || m;
|
|
4194
4245
|
typeof V != "string" && (V = JSON.stringify(V)), this.formErrorMessage = V, this.mergeNewRootState({
|
|
4195
4246
|
formErrorMessage: V
|
|
4196
4247
|
});
|
|
4197
4248
|
return;
|
|
4198
4249
|
}
|
|
4199
4250
|
if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
4200
|
-
const
|
|
4251
|
+
const U = new CustomEvent("submit:success", {
|
|
4201
4252
|
detail: {
|
|
4202
4253
|
res: c,
|
|
4203
4254
|
body: m
|
|
4204
4255
|
}
|
|
4205
4256
|
});
|
|
4206
4257
|
if (this.$refs.formRef) {
|
|
4207
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
4258
|
+
if (this.$refs.formRef.dispatchEvent(U), U.defaultPrevented)
|
|
4208
4259
|
return;
|
|
4209
4260
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
4210
4261
|
}
|
|
@@ -4232,11 +4283,11 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4232
4283
|
}
|
|
4233
4284
|
}
|
|
4234
4285
|
}
|
|
4235
|
-
}),
|
|
4286
|
+
}), ai = ["validate", "action", "method", "name"], li = {
|
|
4236
4287
|
key: 2,
|
|
4237
4288
|
class: "builder-form-error-text pre-2oa2wtipkzk"
|
|
4238
4289
|
};
|
|
4239
|
-
function
|
|
4290
|
+
function ci(e, t, n, o, r, i) {
|
|
4240
4291
|
const s = k("Blocks");
|
|
4241
4292
|
return d(), h("form", $({
|
|
4242
4293
|
validate: e.validate,
|
|
@@ -4245,7 +4296,7 @@ function ti(e, t, n, o, r, i) {
|
|
|
4245
4296
|
method: e.method,
|
|
4246
4297
|
name: e.name,
|
|
4247
4298
|
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
4248
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
4299
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4249
4300
|
N(e.$slots, "default", {}, void 0, !0),
|
|
4250
4301
|
e.submissionState() === "error" ? (d(), S(s, {
|
|
4251
4302
|
key: 0,
|
|
@@ -4259,16 +4310,16 @@ function ti(e, t, n, o, r, i) {
|
|
|
4259
4310
|
blocks: e.sendingMessage,
|
|
4260
4311
|
context: e.builderContext
|
|
4261
4312
|
}, null, 8, ["blocks", "context"])) : T("", !0),
|
|
4262
|
-
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),
|
|
4263
4314
|
e.submissionState() === "success" ? (d(), S(s, {
|
|
4264
4315
|
key: 3,
|
|
4265
4316
|
path: "successMessage",
|
|
4266
4317
|
blocks: e.successMessage,
|
|
4267
4318
|
context: e.builderContext
|
|
4268
4319
|
}, null, 8, ["blocks", "context"])) : T("", !0)
|
|
4269
|
-
], 16,
|
|
4320
|
+
], 16, ai);
|
|
4270
4321
|
}
|
|
4271
|
-
const
|
|
4322
|
+
const di = /* @__PURE__ */ v(si, [["render", ci], ["__scopeId", "data-v-77c7888c"]]), ui = {
|
|
4272
4323
|
name: "Form:Input",
|
|
4273
4324
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4274
4325
|
inputs: [
|
|
@@ -4319,7 +4370,7 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti], ["__scopeId", "data-v-77c7888c
|
|
|
4319
4370
|
borderStyle: "solid",
|
|
4320
4371
|
borderColor: "#ccc"
|
|
4321
4372
|
}
|
|
4322
|
-
},
|
|
4373
|
+
}, pi = y({
|
|
4323
4374
|
name: "builder-form-input-component",
|
|
4324
4375
|
props: [
|
|
4325
4376
|
"attributes",
|
|
@@ -4331,10 +4382,10 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti], ["__scopeId", "data-v-77c7888c
|
|
|
4331
4382
|
"required"
|
|
4332
4383
|
],
|
|
4333
4384
|
data() {
|
|
4334
|
-
return { isEditing:
|
|
4385
|
+
return { isEditing: A, filterAttrs: O };
|
|
4335
4386
|
}
|
|
4336
|
-
}),
|
|
4337
|
-
function
|
|
4387
|
+
}), mi = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4388
|
+
function hi(e, t, n, o, r, i) {
|
|
4338
4389
|
return d(), h("input", $({
|
|
4339
4390
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4340
4391
|
placeholder: e.placeholder,
|
|
@@ -4343,9 +4394,9 @@ function si(e, t, n, o, r, i) {
|
|
|
4343
4394
|
value: e.value,
|
|
4344
4395
|
defaultValue: e.defaultValue,
|
|
4345
4396
|
required: e.required
|
|
4346
|
-
}, 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);
|
|
4347
4398
|
}
|
|
4348
|
-
const
|
|
4399
|
+
const fi = /* @__PURE__ */ v(pi, [["render", hi]]), bi = {
|
|
4349
4400
|
name: "Form:Select",
|
|
4350
4401
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2F83acca093fb24aaf94dee136e9a4b045",
|
|
4351
4402
|
defaultStyles: {
|
|
@@ -4387,28 +4438,28 @@ const ai = /* @__PURE__ */ v(ri, [["render", si]]), li = {
|
|
|
4387
4438
|
}],
|
|
4388
4439
|
static: !0,
|
|
4389
4440
|
noWrap: !0
|
|
4390
|
-
},
|
|
4441
|
+
}, gi = y({
|
|
4391
4442
|
name: "builder-select-component",
|
|
4392
4443
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4393
4444
|
data() {
|
|
4394
|
-
return { isEditing:
|
|
4445
|
+
return { isEditing: A, filterAttrs: O };
|
|
4395
4446
|
}
|
|
4396
|
-
}),
|
|
4397
|
-
function
|
|
4447
|
+
}), yi = ["value", "defaultValue", "name", "required"], vi = ["value"];
|
|
4448
|
+
function Si(e, t, n, o, r, i) {
|
|
4398
4449
|
return d(), h("select", $({
|
|
4399
4450
|
value: e.value,
|
|
4400
4451
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4401
4452
|
defaultValue: e.defaultValue,
|
|
4402
4453
|
name: e.name,
|
|
4403
4454
|
required: e.required
|
|
4404
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4455
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), x(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4405
4456
|
(d(!0), h(I, null, L(e.options, (s, l) => (d(), h("option", {
|
|
4406
4457
|
key: `${s.name}-${l}`,
|
|
4407
4458
|
value: s.value
|
|
4408
|
-
},
|
|
4409
|
-
], 16,
|
|
4459
|
+
}, pe(s.name || s.value), 9, vi))), 128))
|
|
4460
|
+
], 16, yi);
|
|
4410
4461
|
}
|
|
4411
|
-
const
|
|
4462
|
+
const ki = /* @__PURE__ */ v(gi, [["render", Si]]), Ci = {
|
|
4412
4463
|
name: "Form:SubmitButton",
|
|
4413
4464
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fdf2820ffed1f4349a94c40b3221f5b98",
|
|
4414
4465
|
defaultStyles: {
|
|
@@ -4433,17 +4484,17 @@ const mi = /* @__PURE__ */ v(ci, [["render", pi]]), hi = {
|
|
|
4433
4484
|
// that only shows if advanced setting is flipped
|
|
4434
4485
|
// TODO: defaultChildren
|
|
4435
4486
|
// canHaveChildren: true,
|
|
4436
|
-
},
|
|
4487
|
+
}, Ti = y({
|
|
4437
4488
|
name: "builder-submit-button",
|
|
4438
4489
|
props: ["attributes", "text"],
|
|
4439
4490
|
data() {
|
|
4440
4491
|
return { filterAttrs: O };
|
|
4441
4492
|
}
|
|
4442
4493
|
});
|
|
4443
|
-
function
|
|
4444
|
-
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);
|
|
4445
4496
|
}
|
|
4446
|
-
const
|
|
4497
|
+
const Ii = /* @__PURE__ */ v(Ti, [["render", wi]]), $i = {
|
|
4447
4498
|
name: "Form:TextArea",
|
|
4448
4499
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Ff74a2f3de58c4c3e939204e5b6b8f6c3",
|
|
4449
4500
|
inputs: [{
|
|
@@ -4479,7 +4530,7 @@ const gi = /* @__PURE__ */ v(fi, [["render", bi]]), yi = {
|
|
|
4479
4530
|
},
|
|
4480
4531
|
static: !0,
|
|
4481
4532
|
noWrap: !0
|
|
4482
|
-
},
|
|
4533
|
+
}, Ei = y({
|
|
4483
4534
|
name: "builder-textarea",
|
|
4484
4535
|
props: [
|
|
4485
4536
|
"attributes",
|
|
@@ -4492,17 +4543,17 @@ const gi = /* @__PURE__ */ v(fi, [["render", bi]]), yi = {
|
|
|
4492
4543
|
data() {
|
|
4493
4544
|
return { filterAttrs: O };
|
|
4494
4545
|
}
|
|
4495
|
-
}),
|
|
4496
|
-
function
|
|
4546
|
+
}), Ri = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4547
|
+
function Ai(e, t, n, o, r, i) {
|
|
4497
4548
|
return d(), h("textarea", $({
|
|
4498
4549
|
placeholder: e.placeholder,
|
|
4499
4550
|
name: e.name,
|
|
4500
4551
|
value: e.value,
|
|
4501
4552
|
defaultValue: e.defaultValue,
|
|
4502
4553
|
required: e.required
|
|
4503
|
-
}, 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);
|
|
4504
4555
|
}
|
|
4505
|
-
const
|
|
4556
|
+
const Pi = /* @__PURE__ */ v(Ei, [["render", Ai]]), Bi = {
|
|
4506
4557
|
name: "Raw:Img",
|
|
4507
4558
|
hideFromInsertMenu: !0,
|
|
4508
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",
|
|
@@ -4510,7 +4561,7 @@ const Ci = /* @__PURE__ */ v(vi, [["render", ki]]), Ti = {
|
|
|
4510
4561
|
name: "image",
|
|
4511
4562
|
bubble: !0,
|
|
4512
4563
|
type: "file",
|
|
4513
|
-
allowedFileTypes:
|
|
4564
|
+
allowedFileTypes: Ue,
|
|
4514
4565
|
required: !0
|
|
4515
4566
|
}, {
|
|
4516
4567
|
name: "backgroundSize",
|
|
@@ -4546,7 +4597,7 @@ const Ci = /* @__PURE__ */ v(vi, [["render", ki]]), Ti = {
|
|
|
4546
4597
|
defaultValue: 0.7041
|
|
4547
4598
|
}],
|
|
4548
4599
|
noWrap: !0
|
|
4549
|
-
},
|
|
4600
|
+
}, Vi = y({
|
|
4550
4601
|
name: "builder-img-component",
|
|
4551
4602
|
props: [
|
|
4552
4603
|
"imgSrc",
|
|
@@ -4559,25 +4610,25 @@ const Ci = /* @__PURE__ */ v(vi, [["render", ki]]), Ti = {
|
|
|
4559
4610
|
"aspectRatio"
|
|
4560
4611
|
],
|
|
4561
4612
|
data() {
|
|
4562
|
-
return { isEditing:
|
|
4613
|
+
return { isEditing: A };
|
|
4563
4614
|
},
|
|
4564
4615
|
computed: {
|
|
4565
4616
|
srcSetToUse() {
|
|
4566
4617
|
const e = this.imgSrc || this.image;
|
|
4567
4618
|
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
4568
|
-
return
|
|
4619
|
+
return ie(e);
|
|
4569
4620
|
},
|
|
4570
4621
|
imgAttrs() {
|
|
4571
4622
|
const e = {
|
|
4572
4623
|
...O(this.attributes, "v-on:", !1),
|
|
4573
4624
|
...O(this.attributes, "v-on:", !0),
|
|
4574
|
-
[
|
|
4625
|
+
[H()]: `builder-raw-img ${this.attributes[H()] || ""}`
|
|
4575
4626
|
};
|
|
4576
4627
|
return delete e.style, e;
|
|
4577
4628
|
}
|
|
4578
4629
|
}
|
|
4579
|
-
}),
|
|
4580
|
-
function
|
|
4630
|
+
}), Ni = ["alt", "title", "src"];
|
|
4631
|
+
function Oi(e, t, n, o, r, i) {
|
|
4581
4632
|
var s;
|
|
4582
4633
|
return d(), h("img", $({
|
|
4583
4634
|
loading: "lazy",
|
|
@@ -4591,9 +4642,9 @@ function $i(e, t, n, o, r, i) {
|
|
|
4591
4642
|
aspectRatio: e.aspectRatio || void 0,
|
|
4592
4643
|
...((s = e.attributes) == null ? void 0 : s.style) || {}
|
|
4593
4644
|
}
|
|
4594
|
-
}, e.imgAttrs), null, 16,
|
|
4645
|
+
}, e.imgAttrs), null, 16, Ni);
|
|
4595
4646
|
}
|
|
4596
|
-
const
|
|
4647
|
+
const Wi = /* @__PURE__ */ v(Vi, [["render", Oi]]), Di = {
|
|
4597
4648
|
name: "Video",
|
|
4598
4649
|
canHaveChildren: !0,
|
|
4599
4650
|
defaultStyles: {
|
|
@@ -4604,14 +4655,14 @@ const Ei = /* @__PURE__ */ v(wi, [["render", $i]]), Ri = {
|
|
|
4604
4655
|
inputs: [{
|
|
4605
4656
|
name: "video",
|
|
4606
4657
|
type: "file",
|
|
4607
|
-
allowedFileTypes:
|
|
4658
|
+
allowedFileTypes: Cr,
|
|
4608
4659
|
bubble: !0,
|
|
4609
4660
|
defaultValue: "https://cdn.builder.io/o/assets%2FYJIGb4i01jvw0SRdL5Bt%2Fd27731a526464deba0016216f5f9e570%2Fcompressed?apiKey=YJIGb4i01jvw0SRdL5Bt&token=d27731a526464deba0016216f5f9e570&alt=media&optimized=true",
|
|
4610
4661
|
required: !0
|
|
4611
4662
|
}, {
|
|
4612
4663
|
name: "posterImage",
|
|
4613
4664
|
type: "file",
|
|
4614
|
-
allowedFileTypes:
|
|
4665
|
+
allowedFileTypes: Ue,
|
|
4615
4666
|
helperText: "Image to show before the video plays"
|
|
4616
4667
|
}, {
|
|
4617
4668
|
name: "autoPlay",
|
|
@@ -4677,7 +4728,7 @@ const Ei = /* @__PURE__ */ v(wi, [["render", $i]]), Ri = {
|
|
|
4677
4728
|
shouldReceiveBuilderProps: {
|
|
4678
4729
|
builderBlock: !0
|
|
4679
4730
|
}
|
|
4680
|
-
},
|
|
4731
|
+
}, Ui = y({
|
|
4681
4732
|
name: "builder-video",
|
|
4682
4733
|
props: [
|
|
4683
4734
|
"lazyLoad",
|
|
@@ -4750,16 +4801,16 @@ const Ei = /* @__PURE__ */ v(wi, [["render", $i]]), Ri = {
|
|
|
4750
4801
|
};
|
|
4751
4802
|
}
|
|
4752
4803
|
}
|
|
4753
|
-
}),
|
|
4804
|
+
}), xi = { style: {
|
|
4754
4805
|
position: "relative"
|
|
4755
|
-
} },
|
|
4806
|
+
} }, Li = ["preload", "poster"], Fi = {
|
|
4756
4807
|
key: 1,
|
|
4757
4808
|
style: {
|
|
4758
4809
|
display: "flex",
|
|
4759
4810
|
flexDirection: "column",
|
|
4760
4811
|
alignItems: "stretch"
|
|
4761
4812
|
}
|
|
4762
|
-
},
|
|
4813
|
+
}, Mi = {
|
|
4763
4814
|
key: 2,
|
|
4764
4815
|
style: {
|
|
4765
4816
|
pointerEvents: "none",
|
|
@@ -4773,9 +4824,9 @@ const Ei = /* @__PURE__ */ v(wi, [["render", $i]]), Ri = {
|
|
|
4773
4824
|
height: "100%"
|
|
4774
4825
|
}
|
|
4775
4826
|
};
|
|
4776
|
-
function
|
|
4827
|
+
function Hi(e, t, n, o, r, i) {
|
|
4777
4828
|
var s, l, a, u, p, b, c;
|
|
4778
|
-
return d(), h("div",
|
|
4829
|
+
return d(), h("div", xi, [
|
|
4779
4830
|
G("video", $({
|
|
4780
4831
|
class: "builder-video",
|
|
4781
4832
|
ref: "videoRef",
|
|
@@ -4803,85 +4854,85 @@ function Oi(e, t, n, o, r, i) {
|
|
|
4803
4854
|
src: e.video
|
|
4804
4855
|
}
|
|
4805
4856
|
), null, 16)
|
|
4806
|
-
], 16,
|
|
4857
|
+
], 16, Li),
|
|
4807
4858
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
|
|
4808
4859
|
key: 0,
|
|
4809
|
-
style:
|
|
4860
|
+
style: M({
|
|
4810
4861
|
width: "100%",
|
|
4811
4862
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
4812
4863
|
pointerEvents: "none",
|
|
4813
4864
|
fontSize: "0px"
|
|
4814
4865
|
})
|
|
4815
4866
|
}, null, 4)) : T("", !0),
|
|
4816
|
-
(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, [
|
|
4817
4868
|
N(e.$slots, "default")
|
|
4818
4869
|
])) : T("", !0),
|
|
4819
|
-
(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, [
|
|
4820
4871
|
N(e.$slots, "default")
|
|
4821
4872
|
])) : T("", !0)
|
|
4822
4873
|
]);
|
|
4823
4874
|
}
|
|
4824
|
-
const
|
|
4825
|
-
component:
|
|
4826
|
-
...
|
|
4827
|
-
}, {
|
|
4828
|
-
component: Jr,
|
|
4829
|
-
...Mr
|
|
4875
|
+
const ji = /* @__PURE__ */ v(Ui, [["render", Hi]]), zi = () => [{
|
|
4876
|
+
component: Qr,
|
|
4877
|
+
...Kr
|
|
4830
4878
|
}, {
|
|
4831
4879
|
component: ni,
|
|
4832
|
-
...
|
|
4880
|
+
..._r
|
|
4833
4881
|
}, {
|
|
4834
|
-
component:
|
|
4882
|
+
component: di,
|
|
4835
4883
|
...oi
|
|
4836
4884
|
}, {
|
|
4837
|
-
component:
|
|
4838
|
-
...
|
|
4885
|
+
component: fi,
|
|
4886
|
+
...ui
|
|
4839
4887
|
}, {
|
|
4840
|
-
component:
|
|
4841
|
-
...
|
|
4888
|
+
component: Ii,
|
|
4889
|
+
...Ci
|
|
4842
4890
|
}, {
|
|
4843
|
-
component:
|
|
4844
|
-
...
|
|
4891
|
+
component: ki,
|
|
4892
|
+
...bi
|
|
4845
4893
|
}, {
|
|
4846
|
-
component:
|
|
4847
|
-
|
|
4894
|
+
component: Pi,
|
|
4895
|
+
...$i
|
|
4848
4896
|
}, {
|
|
4849
4897
|
component: Wi,
|
|
4850
|
-
...
|
|
4851
|
-
}], Ye = () => [{
|
|
4852
|
-
component: Mt,
|
|
4853
|
-
...ur
|
|
4898
|
+
...Bi
|
|
4854
4899
|
}, {
|
|
4855
|
-
component:
|
|
4856
|
-
...
|
|
4857
|
-
}, {
|
|
4858
|
-
component:
|
|
4859
|
-
...
|
|
4900
|
+
component: ji,
|
|
4901
|
+
...Di
|
|
4902
|
+
}], et = () => [{
|
|
4903
|
+
component: qt,
|
|
4904
|
+
...vr
|
|
4860
4905
|
}, {
|
|
4861
|
-
component:
|
|
4862
|
-
...fr
|
|
4863
|
-
}, {
|
|
4864
|
-
component: Go,
|
|
4906
|
+
component: Fo,
|
|
4865
4907
|
...Sr
|
|
4866
4908
|
}, {
|
|
4867
|
-
component:
|
|
4909
|
+
component: jo,
|
|
4868
4910
|
...kr
|
|
4869
4911
|
}, {
|
|
4870
|
-
component:
|
|
4871
|
-
...
|
|
4912
|
+
component: Yo,
|
|
4913
|
+
...Tr
|
|
4914
|
+
}, {
|
|
4915
|
+
component: er,
|
|
4916
|
+
...Rr
|
|
4917
|
+
}, {
|
|
4918
|
+
component: Vr,
|
|
4919
|
+
...Ar
|
|
4920
|
+
}, {
|
|
4921
|
+
component: Rs,
|
|
4922
|
+
...Nr
|
|
4872
4923
|
}, {
|
|
4873
|
-
component:
|
|
4874
|
-
...
|
|
4875
|
-
}, ...
|
|
4876
|
-
component:
|
|
4877
|
-
...
|
|
4924
|
+
component: zr,
|
|
4925
|
+
...Fr
|
|
4926
|
+
}, ...Wt.includes(E) ? [{
|
|
4927
|
+
component: Er,
|
|
4928
|
+
...wr
|
|
4878
4929
|
}] : [], {
|
|
4879
|
-
component:
|
|
4880
|
-
|
|
4930
|
+
component: Lr,
|
|
4931
|
+
...Or
|
|
4881
4932
|
}, {
|
|
4882
|
-
component:
|
|
4883
|
-
...
|
|
4884
|
-
}, ...
|
|
4933
|
+
component: yr,
|
|
4934
|
+
...mr
|
|
4935
|
+
}, ...zi()], Ki = `function updateCookiesAndStyles(contentId, variants, isHydrationTarget, isAngularSDK) {
|
|
4885
4936
|
function getAndSetVariantId() {
|
|
4886
4937
|
function setCookie(name, value, days) {
|
|
4887
4938
|
let expires = '';
|
|
@@ -4940,7 +4991,7 @@ const Wi = /* @__PURE__ */ v(Pi, [["render", Oi]]), Di = () => [{
|
|
|
4940
4991
|
}).join('');
|
|
4941
4992
|
styleEl.innerHTML = newStyleStr;
|
|
4942
4993
|
}
|
|
4943
|
-
}`,
|
|
4994
|
+
}`, qi = `function updateVariantVisibility(variantContentId, defaultContentId, isHydrationTarget) {
|
|
4944
4995
|
if (!navigator.cookieEnabled) {
|
|
4945
4996
|
return;
|
|
4946
4997
|
}
|
|
@@ -4974,37 +5025,37 @@ const Wi = /* @__PURE__ */ v(Pi, [["render", Oi]]), Di = () => [{
|
|
|
4974
5025
|
thisScriptEl?.remove();
|
|
4975
5026
|
}
|
|
4976
5027
|
return;
|
|
4977
|
-
}`,
|
|
5028
|
+
}`, $e = "builderIoAbTest", Ee = "builderIoRenderContent", ae = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4978
5029
|
...t,
|
|
4979
5030
|
testVariationId: t.id,
|
|
4980
5031
|
id: e == null ? void 0 : e.id
|
|
4981
|
-
})),
|
|
5032
|
+
})), Gi = ({
|
|
4982
5033
|
canTrack: e,
|
|
4983
5034
|
content: t
|
|
4984
|
-
}) => !(!(
|
|
5035
|
+
}) => !(!(ae(t).length > 0) || !e), Ji = (e) => e === "react" || e === "reactNative", Qi = E === "angular", Le = Ji(E), _i = () => `
|
|
4985
5036
|
(function() {
|
|
4986
|
-
if (!window.${Ie}) {
|
|
4987
|
-
window.${Ie} = ${xi};
|
|
4988
|
-
}
|
|
4989
5037
|
if (!window.${$e}) {
|
|
4990
|
-
window.${$e} = ${
|
|
4991
|
-
}
|
|
5038
|
+
window.${$e} = ${Ki};
|
|
5039
|
+
}
|
|
5040
|
+
if (!window.${Ee}) {
|
|
5041
|
+
window.${Ee} = ${qi};
|
|
5042
|
+
}${Le ? `
|
|
4992
5043
|
var thisScriptEl = document.currentScript;
|
|
4993
5044
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
4994
5045
|
})();
|
|
4995
|
-
`,
|
|
4996
|
-
window.${
|
|
4997
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4998
|
-
)`,
|
|
5046
|
+
`, Yi = (e, t) => `
|
|
5047
|
+
window.${$e}(
|
|
5048
|
+
"${t}",${JSON.stringify(e)}, ${Le}, ${Qi}
|
|
5049
|
+
)`, Xi = ({
|
|
4999
5050
|
contentId: e,
|
|
5000
5051
|
variationId: t
|
|
5001
|
-
}) => `window.${
|
|
5002
|
-
"${t}", "${e}", ${
|
|
5052
|
+
}) => `window.${Ee}(
|
|
5053
|
+
"${t}", "${e}", ${Le}
|
|
5003
5054
|
)`;
|
|
5004
|
-
function
|
|
5055
|
+
function tt(e) {
|
|
5005
5056
|
return Math.round(e * 1e3) / 1e3;
|
|
5006
5057
|
}
|
|
5007
|
-
const
|
|
5058
|
+
const Zi = (e, t, n = !0) => {
|
|
5008
5059
|
if (!(e instanceof HTMLElement))
|
|
5009
5060
|
return null;
|
|
5010
5061
|
let o = n ? e : e.parentElement;
|
|
@@ -5015,35 +5066,35 @@ const Ki = (e, t, n = !0) => {
|
|
|
5015
5066
|
return o;
|
|
5016
5067
|
} while (o = o.parentElement);
|
|
5017
5068
|
return null;
|
|
5018
|
-
},
|
|
5069
|
+
}, es = (e) => Zi(e, (t) => {
|
|
5019
5070
|
const n = t.getAttribute("builder-id") || t.id;
|
|
5020
5071
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
5021
|
-
}),
|
|
5072
|
+
}), nt = ({
|
|
5022
5073
|
event: e,
|
|
5023
5074
|
target: t
|
|
5024
5075
|
}) => {
|
|
5025
|
-
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);
|
|
5026
5077
|
return {
|
|
5027
5078
|
x: i,
|
|
5028
5079
|
y: s
|
|
5029
5080
|
};
|
|
5030
|
-
},
|
|
5031
|
-
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);
|
|
5032
5083
|
return {
|
|
5033
5084
|
targetBuilderElement: o || void 0,
|
|
5034
5085
|
metadata: {
|
|
5035
|
-
targetOffset: t ?
|
|
5086
|
+
targetOffset: t ? nt({
|
|
5036
5087
|
event: e,
|
|
5037
5088
|
target: t
|
|
5038
5089
|
}) : void 0,
|
|
5039
|
-
builderTargetOffset: n ?
|
|
5090
|
+
builderTargetOffset: n ? nt({
|
|
5040
5091
|
event: e,
|
|
5041
5092
|
target: n
|
|
5042
5093
|
}) : void 0,
|
|
5043
5094
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
5044
5095
|
}
|
|
5045
5096
|
};
|
|
5046
|
-
},
|
|
5097
|
+
}, ns = ["svelte", "qwik", "vue"], os = () => ns.includes(E) && (A() || Ve()), rs = (e) => {
|
|
5047
5098
|
var i;
|
|
5048
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);
|
|
5049
5100
|
let r = "";
|
|
@@ -5069,15 +5120,15 @@ font-weight: ${s};
|
|
|
5069
5120
|
`.trim());
|
|
5070
5121
|
}
|
|
5071
5122
|
return r;
|
|
5072
|
-
},
|
|
5123
|
+
}, is = ({
|
|
5073
5124
|
customFonts: e
|
|
5074
5125
|
}) => {
|
|
5075
5126
|
var t;
|
|
5076
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
5077
|
-
},
|
|
5127
|
+
return ((t = e == null ? void 0 : e.map((n) => rs(n))) == null ? void 0 : t.join(" ")) || "";
|
|
5128
|
+
}, ss = ({
|
|
5078
5129
|
cssCode: e,
|
|
5079
5130
|
contentId: t
|
|
5080
|
-
}) => 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 = `
|
|
5081
5132
|
.builder-button {
|
|
5082
5133
|
all: unset;
|
|
5083
5134
|
}
|
|
@@ -5094,7 +5145,7 @@ font-weight: ${s};
|
|
|
5094
5145
|
text-align: inherit;
|
|
5095
5146
|
font-family: inherit;
|
|
5096
5147
|
}
|
|
5097
|
-
`,
|
|
5148
|
+
`, ls = (e) => e ? "" : as, cs = (e) => `variant-${e}`, ds = y({
|
|
5098
5149
|
name: "enable-editor",
|
|
5099
5150
|
components: { DynamicDiv: ne },
|
|
5100
5151
|
props: [
|
|
@@ -5126,15 +5177,15 @@ font-weight: ${s};
|
|
|
5126
5177
|
httpReqsData: {},
|
|
5127
5178
|
httpReqsPending: {},
|
|
5128
5179
|
clicked: !1,
|
|
5129
|
-
builderContext:
|
|
5130
|
-
needsElementRefDivForEditing:
|
|
5131
|
-
getWrapperClassName:
|
|
5180
|
+
builderContext: ve,
|
|
5181
|
+
needsElementRefDivForEditing: os,
|
|
5182
|
+
getWrapperClassName: cs
|
|
5132
5183
|
};
|
|
5133
5184
|
},
|
|
5134
5185
|
provide() {
|
|
5135
5186
|
const e = this;
|
|
5136
5187
|
return {
|
|
5137
|
-
[
|
|
5188
|
+
[ve.key]: e.builderContextSignal
|
|
5138
5189
|
};
|
|
5139
5190
|
},
|
|
5140
5191
|
created() {
|
|
@@ -5143,16 +5194,16 @@ font-weight: ${s};
|
|
|
5143
5194
|
mounted() {
|
|
5144
5195
|
var e, t, n;
|
|
5145
5196
|
if (w()) {
|
|
5146
|
-
|
|
5197
|
+
A() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5147
5198
|
new CustomEvent("initeditingbldr")
|
|
5148
5199
|
);
|
|
5149
|
-
const o = this.builderContextSignal.content && J(this.canTrack), r =
|
|
5200
|
+
const o = this.builderContextSignal.content && J(this.canTrack), r = me({
|
|
5150
5201
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
5151
5202
|
canTrack: !0
|
|
5152
5203
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
5153
5204
|
if (o && i === r) {
|
|
5154
5205
|
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
|
|
5155
|
-
|
|
5206
|
+
le({
|
|
5156
5207
|
apiHost: this.apiHost,
|
|
5157
5208
|
type: "impression",
|
|
5158
5209
|
canTrack: !0,
|
|
@@ -5161,7 +5212,7 @@ font-weight: ${s};
|
|
|
5161
5212
|
variationId: r !== s ? r : void 0
|
|
5162
5213
|
});
|
|
5163
5214
|
}
|
|
5164
|
-
|
|
5215
|
+
Ve() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5165
5216
|
new CustomEvent("initpreviewingbldr")
|
|
5166
5217
|
);
|
|
5167
5218
|
}
|
|
@@ -5263,7 +5314,7 @@ font-weight: ${s};
|
|
|
5263
5314
|
this.builderContextSignal.content = n;
|
|
5264
5315
|
},
|
|
5265
5316
|
processMessage(e) {
|
|
5266
|
-
return
|
|
5317
|
+
return Ct({
|
|
5267
5318
|
model: this.model,
|
|
5268
5319
|
trustedHosts: this.trustedHosts,
|
|
5269
5320
|
callbacks: {
|
|
@@ -5277,7 +5328,7 @@ font-weight: ${s};
|
|
|
5277
5328
|
});
|
|
5278
5329
|
},
|
|
5279
5330
|
animation: (t) => {
|
|
5280
|
-
|
|
5331
|
+
At(t);
|
|
5281
5332
|
},
|
|
5282
5333
|
contentUpdate: (t, n) => {
|
|
5283
5334
|
this.mergeNewContent(t, n);
|
|
@@ -5292,14 +5343,14 @@ font-weight: ${s};
|
|
|
5292
5343
|
var t, n;
|
|
5293
5344
|
if (this.builderContextSignal.content) {
|
|
5294
5345
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
5295
|
-
|
|
5346
|
+
le({
|
|
5296
5347
|
apiHost: this.apiHost,
|
|
5297
5348
|
type: "click",
|
|
5298
5349
|
canTrack: J(this.canTrack),
|
|
5299
5350
|
contentId: r,
|
|
5300
5351
|
apiKey: this.apiKey,
|
|
5301
5352
|
variationId: o !== r ? o : void 0,
|
|
5302
|
-
...
|
|
5353
|
+
...ts(e),
|
|
5303
5354
|
unique: !this.clicked
|
|
5304
5355
|
});
|
|
5305
5356
|
}
|
|
@@ -5313,7 +5364,7 @@ font-weight: ${s};
|
|
|
5313
5364
|
if (!r)
|
|
5314
5365
|
return;
|
|
5315
5366
|
const i = typeof r == "object" && r["@type"] === "@builder.io/core:Request";
|
|
5316
|
-
if (this.httpReqsPending[o] || this.httpReqsData[o] && !
|
|
5367
|
+
if (this.httpReqsPending[o] || this.httpReqsData[o] && !A())
|
|
5317
5368
|
return;
|
|
5318
5369
|
const s = i ? r.request.url : r;
|
|
5319
5370
|
this.httpReqsPending[o] = !0;
|
|
@@ -5360,12 +5411,12 @@ font-weight: ${s};
|
|
|
5360
5411
|
);
|
|
5361
5412
|
},
|
|
5362
5413
|
emitStateUpdate() {
|
|
5363
|
-
|
|
5414
|
+
A() && window.dispatchEvent(
|
|
5364
5415
|
new CustomEvent(
|
|
5365
5416
|
"builder:component:stateChange",
|
|
5366
5417
|
{
|
|
5367
5418
|
detail: {
|
|
5368
|
-
state:
|
|
5419
|
+
state: Be(this.builderContextSignal.rootState),
|
|
5369
5420
|
ref: {
|
|
5370
5421
|
name: this.model
|
|
5371
5422
|
}
|
|
@@ -5375,7 +5426,7 @@ font-weight: ${s};
|
|
|
5375
5426
|
);
|
|
5376
5427
|
},
|
|
5377
5428
|
elementRef_onIniteditingbldr(e) {
|
|
5378
|
-
window.addEventListener("message", this.processMessage),
|
|
5429
|
+
window.addEventListener("message", this.processMessage), kt({
|
|
5379
5430
|
...this.locale ? {
|
|
5380
5431
|
locale: this.locale
|
|
5381
5432
|
} : {},
|
|
@@ -5395,7 +5446,7 @@ font-weight: ${s};
|
|
|
5395
5446
|
).forEach((t) => {
|
|
5396
5447
|
var n, o;
|
|
5397
5448
|
if (!((n = t.models) != null && n.length) || t.models.includes(this.model)) {
|
|
5398
|
-
const r =
|
|
5449
|
+
const r = On(t);
|
|
5399
5450
|
(o = window.parent) == null || o.postMessage(r, "*");
|
|
5400
5451
|
}
|
|
5401
5452
|
}), window.addEventListener(
|
|
@@ -5408,7 +5459,7 @@ font-weight: ${s};
|
|
|
5408
5459
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5409
5460
|
`builder.overrides.${n}`
|
|
5410
5461
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5411
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5462
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && We({
|
|
5412
5463
|
model: this.model,
|
|
5413
5464
|
apiKey: this.apiKey,
|
|
5414
5465
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5423,9 +5474,9 @@ font-weight: ${s};
|
|
|
5423
5474
|
}
|
|
5424
5475
|
}
|
|
5425
5476
|
});
|
|
5426
|
-
function
|
|
5477
|
+
function us(e, t, n, o, r, i) {
|
|
5427
5478
|
var s, l, a;
|
|
5428
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(
|
|
5479
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper), $({
|
|
5429
5480
|
key: 0,
|
|
5430
5481
|
ref: "elementRef",
|
|
5431
5482
|
onClick: (u) => e.onClick(u),
|
|
@@ -5444,26 +5495,26 @@ function os(e, t, n, o, r, i) {
|
|
|
5444
5495
|
_: 3
|
|
5445
5496
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : T("", !0);
|
|
5446
5497
|
}
|
|
5447
|
-
const
|
|
5498
|
+
const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = y({
|
|
5448
5499
|
name: "content-styles",
|
|
5449
|
-
components: { InlinedStyles:
|
|
5500
|
+
components: { InlinedStyles: he },
|
|
5450
5501
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5451
5502
|
data() {
|
|
5452
5503
|
return {
|
|
5453
5504
|
injectedStyles: `
|
|
5454
|
-
${
|
|
5505
|
+
${ss({
|
|
5455
5506
|
cssCode: this.cssCode,
|
|
5456
5507
|
contentId: this.contentId
|
|
5457
5508
|
})}
|
|
5458
|
-
${
|
|
5509
|
+
${is({
|
|
5459
5510
|
customFonts: this.customFonts
|
|
5460
5511
|
})}
|
|
5461
|
-
${
|
|
5512
|
+
${ls(this.isNestedRender)}
|
|
5462
5513
|
`.trim()
|
|
5463
5514
|
};
|
|
5464
5515
|
}
|
|
5465
5516
|
});
|
|
5466
|
-
function
|
|
5517
|
+
function hs(e, t, n, o, r, i) {
|
|
5467
5518
|
const s = k("InlinedStyles");
|
|
5468
5519
|
return d(), S(s, {
|
|
5469
5520
|
id: "builderio-content",
|
|
@@ -5471,7 +5522,7 @@ function ss(e, t, n, o, r, i) {
|
|
|
5471
5522
|
nonce: e.nonce
|
|
5472
5523
|
}, null, 8, ["styles", "nonce"]);
|
|
5473
5524
|
}
|
|
5474
|
-
const
|
|
5525
|
+
const fs = /* @__PURE__ */ v(ms, [["render", hs]]), bs = ({
|
|
5475
5526
|
content: e,
|
|
5476
5527
|
data: t,
|
|
5477
5528
|
locale: n
|
|
@@ -5488,7 +5539,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5488
5539
|
locale: n
|
|
5489
5540
|
} : {}
|
|
5490
5541
|
};
|
|
5491
|
-
},
|
|
5542
|
+
}, gs = ({
|
|
5492
5543
|
content: e,
|
|
5493
5544
|
data: t
|
|
5494
5545
|
}) => e ? {
|
|
@@ -5498,12 +5549,12 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5498
5549
|
...t
|
|
5499
5550
|
},
|
|
5500
5551
|
meta: e == null ? void 0 : e.meta
|
|
5501
|
-
} : void 0,
|
|
5552
|
+
} : void 0, ys = Lt, vs = y({
|
|
5502
5553
|
name: "content-component",
|
|
5503
5554
|
components: {
|
|
5504
|
-
EnableEditor:
|
|
5555
|
+
EnableEditor: ps,
|
|
5505
5556
|
InlinedScript: xe,
|
|
5506
|
-
ContentStyles:
|
|
5557
|
+
ContentStyles: fs,
|
|
5507
5558
|
Blocks: K,
|
|
5508
5559
|
DynamicDiv: ne
|
|
5509
5560
|
},
|
|
@@ -5534,32 +5585,32 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5534
5585
|
data() {
|
|
5535
5586
|
var e, t;
|
|
5536
5587
|
return {
|
|
5537
|
-
scriptStr:
|
|
5588
|
+
scriptStr: Xi({
|
|
5538
5589
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5539
5590
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5540
5591
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5541
5592
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5542
5593
|
}),
|
|
5543
5594
|
registeredComponents: [
|
|
5544
|
-
...
|
|
5595
|
+
...et(),
|
|
5545
5596
|
...this.customComponents || []
|
|
5546
5597
|
].reduce(
|
|
5547
5598
|
(n, { component: o, ...r }) => ({
|
|
5548
5599
|
...n,
|
|
5549
5600
|
[r.name]: {
|
|
5550
|
-
component:
|
|
5551
|
-
...
|
|
5601
|
+
component: ys(o),
|
|
5602
|
+
...de(r)
|
|
5552
5603
|
}
|
|
5553
5604
|
}),
|
|
5554
5605
|
{}
|
|
5555
5606
|
),
|
|
5556
5607
|
builderContextSignal: {
|
|
5557
|
-
content:
|
|
5608
|
+
content: gs({
|
|
5558
5609
|
content: this.content,
|
|
5559
5610
|
data: this.data
|
|
5560
5611
|
}),
|
|
5561
5612
|
localState: void 0,
|
|
5562
|
-
rootState:
|
|
5613
|
+
rootState: bs({
|
|
5563
5614
|
content: this.content,
|
|
5564
5615
|
data: this.data,
|
|
5565
5616
|
locale: this.locale
|
|
@@ -5570,12 +5621,12 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5570
5621
|
apiKey: this.apiKey,
|
|
5571
5622
|
apiVersion: this.apiVersion,
|
|
5572
5623
|
componentInfos: [
|
|
5573
|
-
...
|
|
5624
|
+
...et(),
|
|
5574
5625
|
...this.customComponents || []
|
|
5575
5626
|
].reduce(
|
|
5576
5627
|
(n, { component: o, ...r }) => ({
|
|
5577
5628
|
...n,
|
|
5578
|
-
[r.name]:
|
|
5629
|
+
[r.name]: de(r)
|
|
5579
5630
|
}),
|
|
5580
5631
|
{}
|
|
5581
5632
|
),
|
|
@@ -5591,7 +5642,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5591
5642
|
provide() {
|
|
5592
5643
|
const e = this;
|
|
5593
5644
|
return {
|
|
5594
|
-
[
|
|
5645
|
+
[rt.key]: {
|
|
5595
5646
|
registeredComponents: e.registeredComponents
|
|
5596
5647
|
}
|
|
5597
5648
|
};
|
|
@@ -5635,7 +5686,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5635
5686
|
}
|
|
5636
5687
|
}
|
|
5637
5688
|
});
|
|
5638
|
-
function
|
|
5689
|
+
function Ss(e, t, n, o, r, i) {
|
|
5639
5690
|
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
5640
5691
|
return d(), S(u, $({
|
|
5641
5692
|
apiHost: e.apiHost,
|
|
@@ -5657,7 +5708,7 @@ function ps(e, t, n, o, r, i) {
|
|
|
5657
5708
|
isNestedRender: e.isNestedRender
|
|
5658
5709
|
}, {}), {
|
|
5659
5710
|
default: D(() => {
|
|
5660
|
-
var p, b, c, m, f, g,
|
|
5711
|
+
var p, b, c, m, f, g, P;
|
|
5661
5712
|
return [
|
|
5662
5713
|
e.isSsrAbTest ? (d(), S(s, {
|
|
5663
5714
|
key: 0,
|
|
@@ -5674,7 +5725,7 @@ function ps(e, t, n, o, r, i) {
|
|
|
5674
5725
|
customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
|
|
5675
5726
|
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : T("", !0),
|
|
5676
5727
|
R(a, {
|
|
5677
|
-
blocks: (
|
|
5728
|
+
blocks: (P = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : P.blocks,
|
|
5678
5729
|
context: e.builderContextSignal,
|
|
5679
5730
|
registeredComponents: e.registeredComponents,
|
|
5680
5731
|
linkComponent: e.linkComponent
|
|
@@ -5684,12 +5735,12 @@ function ps(e, t, n, o, r, i) {
|
|
|
5684
5735
|
_: 1
|
|
5685
5736
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5686
5737
|
}
|
|
5687
|
-
const
|
|
5738
|
+
const ks = /* @__PURE__ */ v(vs, [["render", Ss]]), Cs = y({
|
|
5688
5739
|
name: "content-variants",
|
|
5689
5740
|
components: {
|
|
5690
5741
|
InlinedScript: xe,
|
|
5691
|
-
InlinedStyles:
|
|
5692
|
-
ContentComponent:
|
|
5742
|
+
InlinedStyles: he,
|
|
5743
|
+
ContentComponent: ks
|
|
5693
5744
|
},
|
|
5694
5745
|
props: [
|
|
5695
5746
|
"canTrack",
|
|
@@ -5715,16 +5766,16 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = y({
|
|
|
5715
5766
|
],
|
|
5716
5767
|
data() {
|
|
5717
5768
|
return {
|
|
5718
|
-
shouldRenderVariants:
|
|
5769
|
+
shouldRenderVariants: Gi({
|
|
5719
5770
|
canTrack: J(this.canTrack),
|
|
5720
5771
|
content: this.content
|
|
5721
5772
|
}),
|
|
5722
|
-
shouldEmitPersonalizationFns:
|
|
5723
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
5724
|
-
getInitPersonalizationVariantsFnsScriptString:
|
|
5773
|
+
shouldEmitPersonalizationFns: cr(this.content),
|
|
5774
|
+
SDKS_SUPPORTING_PERSONALIZATION: Wt,
|
|
5775
|
+
getInitPersonalizationVariantsFnsScriptString: dr,
|
|
5725
5776
|
TARGET: E,
|
|
5726
|
-
getInitVariantsFnsScriptString:
|
|
5727
|
-
getVariants:
|
|
5777
|
+
getInitVariantsFnsScriptString: _i,
|
|
5778
|
+
getVariants: ae
|
|
5728
5779
|
};
|
|
5729
5780
|
},
|
|
5730
5781
|
mounted() {
|
|
@@ -5732,8 +5783,8 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = y({
|
|
|
5732
5783
|
computed: {
|
|
5733
5784
|
updateCookieAndStylesScriptStr() {
|
|
5734
5785
|
var e;
|
|
5735
|
-
return
|
|
5736
|
-
|
|
5786
|
+
return Yi(
|
|
5787
|
+
ae(this.content).map((t) => ({
|
|
5737
5788
|
id: t.testVariationId,
|
|
5738
5789
|
testRatio: t.testRatio
|
|
5739
5790
|
})),
|
|
@@ -5741,21 +5792,21 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = y({
|
|
|
5741
5792
|
);
|
|
5742
5793
|
},
|
|
5743
5794
|
hideVariantsStyleString() {
|
|
5744
|
-
return
|
|
5795
|
+
return ae(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
5745
5796
|
},
|
|
5746
5797
|
defaultContent() {
|
|
5747
5798
|
var e;
|
|
5748
5799
|
return this.shouldRenderVariants ? {
|
|
5749
5800
|
...this.content,
|
|
5750
5801
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5751
|
-
} :
|
|
5802
|
+
} : zn({
|
|
5752
5803
|
item: this.content,
|
|
5753
5804
|
canTrack: J(this.canTrack)
|
|
5754
5805
|
});
|
|
5755
5806
|
}
|
|
5756
5807
|
}
|
|
5757
5808
|
});
|
|
5758
|
-
function
|
|
5809
|
+
function Ts(e, t, n, o, r, i) {
|
|
5759
5810
|
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5760
5811
|
return d(), h(I, null, [
|
|
5761
5812
|
e.shouldEmitPersonalizationFns ? (d(), h(I, { key: 0 }, [
|
|
@@ -5836,13 +5887,13 @@ function fs(e, t, n, o, r, i) {
|
|
|
5836
5887
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5837
5888
|
], 64);
|
|
5838
5889
|
}
|
|
5839
|
-
const
|
|
5890
|
+
const ws = /* @__PURE__ */ v(Cs, [["render", Ts]]), Is = async ({
|
|
5840
5891
|
builderContextValue: e,
|
|
5841
5892
|
symbol: t
|
|
5842
5893
|
}) => {
|
|
5843
5894
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5844
5895
|
(e != null && e.apiKey))
|
|
5845
|
-
return
|
|
5896
|
+
return We({
|
|
5846
5897
|
model: t.model,
|
|
5847
5898
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5848
5899
|
apiVersion: e.apiVersion,
|
|
@@ -5854,9 +5905,9 @@ const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = async ({
|
|
|
5854
5905
|
}).catch((n) => {
|
|
5855
5906
|
B.error("Could not fetch symbol content: ", n);
|
|
5856
5907
|
});
|
|
5857
|
-
},
|
|
5908
|
+
}, $s = y({
|
|
5858
5909
|
name: "builder-symbol",
|
|
5859
|
-
components: { ContentVariants:
|
|
5910
|
+
components: { ContentVariants: ws, DynamicDiv: ne },
|
|
5860
5911
|
props: [
|
|
5861
5912
|
"symbol",
|
|
5862
5913
|
"builderComponents",
|
|
@@ -5898,7 +5949,7 @@ const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = async ({
|
|
|
5898
5949
|
className() {
|
|
5899
5950
|
var e, t;
|
|
5900
5951
|
return [
|
|
5901
|
-
this.attributes[
|
|
5952
|
+
this.attributes[H()],
|
|
5902
5953
|
"builder-symbol",
|
|
5903
5954
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
5904
5955
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -5913,7 +5964,7 @@ const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = async ({
|
|
|
5913
5964
|
methods: {
|
|
5914
5965
|
setContent() {
|
|
5915
5966
|
var e;
|
|
5916
|
-
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({
|
|
5917
5968
|
symbol: this.symbol,
|
|
5918
5969
|
builderContextValue: this.builderContext
|
|
5919
5970
|
}).then((t) => {
|
|
@@ -5923,10 +5974,10 @@ const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = async ({
|
|
|
5923
5974
|
}
|
|
5924
5975
|
}
|
|
5925
5976
|
});
|
|
5926
|
-
function
|
|
5977
|
+
function Es(e, t, n, o, r, i) {
|
|
5927
5978
|
var l, a, u, p, b, c, m;
|
|
5928
5979
|
const s = k("ContentVariants");
|
|
5929
|
-
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)), [
|
|
5930
5981
|
R(s, {
|
|
5931
5982
|
nonce: e.builderContext.nonce,
|
|
5932
5983
|
isNestedRender: !0,
|
|
@@ -5951,47 +6002,48 @@ function vs(e, t, n, o, r, i) {
|
|
|
5951
6002
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5952
6003
|
], 16);
|
|
5953
6004
|
}
|
|
5954
|
-
const
|
|
6005
|
+
const Rs = /* @__PURE__ */ v($s, [["render", Es]]);
|
|
5955
6006
|
export {
|
|
5956
|
-
|
|
5957
|
-
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5966
|
-
|
|
5967
|
-
|
|
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,
|
|
6016
|
+
We as J,
|
|
6017
|
+
Bs as K,
|
|
6018
|
+
Hs as L,
|
|
6019
|
+
er as S,
|
|
5968
6020
|
E as T,
|
|
5969
|
-
|
|
6021
|
+
ji as V,
|
|
5970
6022
|
v as _,
|
|
5971
|
-
|
|
5972
|
-
|
|
5973
|
-
|
|
6023
|
+
H as a,
|
|
6024
|
+
ve as b,
|
|
6025
|
+
he as c,
|
|
5974
6026
|
j as d,
|
|
5975
6027
|
te as e,
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
6028
|
+
Ls as f,
|
|
6029
|
+
Ms as g,
|
|
6030
|
+
Do as h,
|
|
6031
|
+
A as i,
|
|
6032
|
+
Fs as j,
|
|
6033
|
+
js as k,
|
|
6034
|
+
De as l,
|
|
6035
|
+
Nn as m,
|
|
6036
|
+
qt as n,
|
|
6037
|
+
Rs as o,
|
|
6038
|
+
zr as p,
|
|
6039
|
+
K as q,
|
|
6040
|
+
ws as r,
|
|
6041
|
+
Us as s,
|
|
6042
|
+
Ve as t,
|
|
6043
|
+
On as u,
|
|
6044
|
+
Ns as v,
|
|
6045
|
+
ys as w,
|
|
6046
|
+
Os as x,
|
|
6047
|
+
Ws as y,
|
|
6048
|
+
vt as z
|
|
5997
6049
|
};
|