@builder.io/sdk-vue 5.2.2 → 5.2.4
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-hHorxjIR.cjs → awaiter-4bKOAzti.cjs} +1 -1
- package/lib/browser/{awaiter-PiTJ_7wp.js → awaiter-q_DSjMVD.js} +1 -1
- package/lib/browser/{block-wrapper-v0E7yyzI.cjs → block-wrapper-Q-de2c75.cjs} +1 -1
- package/lib/browser/{block-wrapper-8FiWiPra.js → block-wrapper-YNVEwJsu.js} +3 -3
- package/lib/browser/{component-ref-jU5sC23e.cjs → component-ref-YeF1fWsm.cjs} +1 -1
- package/lib/browser/{component-ref-u11yYjHx.js → component-ref-watkJI0h.js} +4 -4
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +0 -1
- package/lib/browser/components/content-variants/helpers.d.ts +0 -1
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/{get-block-properties-UD7oT_P6.js → get-block-properties-DvyFZA6k.js} +1 -1
- package/lib/browser/{get-block-properties-AT7KmjRH.cjs → get-block-properties-Q4RE1NYS.cjs} +1 -1
- package/lib/browser/{index-qBdmc4Tf.js → index-DfB3iR8x.js} +357 -385
- package/lib/browser/{index-9zsNLjBY.cjs → index-U5K993_E.cjs} +31 -53
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-yO4ZTgek.js → live-edit-9dPB7jWd.js} +1 -1
- package/lib/browser/{live-edit-9FW3XnJY.cjs → live-edit-naKnBygx.cjs} +1 -1
- package/lib/browser/{repeated-block-7Kr5DU4s.js → repeated-block-B84MBN4t.js} +2 -2
- package/lib/browser/{repeated-block-HJlXpRlA.cjs → repeated-block-BQB7dngl.cjs} +1 -1
- package/lib/browser/{style-wrapper-oGUCilmw.js → style-wrapper-1pU2q-Nj.js} +1 -1
- package/lib/browser/{style-wrapper-NagZ3htF.cjs → style-wrapper-dtKxKeZ0.cjs} +1 -1
- package/lib/browser/style.css +1 -1
- package/lib/edge/{awaiter-yr8VAu_H.cjs → awaiter-HFBt_OAF.cjs} +1 -1
- package/lib/edge/{awaiter-acJdczkp.js → awaiter-n-gIbP8r.js} +1 -1
- package/lib/edge/{block-wrapper-aEKGXQsG.cjs → block-wrapper-Bu7g5EV_.cjs} +1 -1
- package/lib/{node/block-wrapper-MpV_yto9.js → edge/block-wrapper-fPMgU7lR.js} +3 -3
- package/lib/edge/{component-ref-wzojJNtP.cjs → component-ref-4wKEKXCt.cjs} +1 -1
- package/lib/edge/{component-ref-pA4-SwIs.js → component-ref-JHSTjcJx.js} +4 -4
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +0 -1
- package/lib/edge/components/content-variants/helpers.d.ts +0 -1
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/{get-block-properties-vOCtFmny.cjs → get-block-properties--14I0FqA.cjs} +1 -1
- package/lib/edge/{get-block-properties-T1Ci7dP5.js → get-block-properties-5Wxv-oHg.js} +1 -1
- package/lib/edge/{index-OZxVFmQK.cjs → index-78yK7PsD.cjs} +35 -57
- package/lib/edge/{index-9d4BROG7.js → index-_fUTINXy.js} +698 -726
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/edge/{live-edit-oX2tpNY4.js → live-edit-9xqNMwhC.js} +1 -1
- package/lib/{node/live-edit-g3b-brGl.cjs → edge/live-edit-nbVPESOp.cjs} +1 -1
- package/lib/edge/{repeated-block-WFlqwuyL.js → repeated-block-F75iqpVr.js} +2 -2
- package/lib/edge/{repeated-block-uS6k8BJT.cjs → repeated-block-nCuqUDP7.cjs} +1 -1
- package/lib/edge/{style-wrapper-UNbimac8.cjs → style-wrapper-rVAWy7o_.cjs} +1 -1
- package/lib/edge/{style-wrapper-QjzY0pp1.js → style-wrapper-w933365M.js} +1 -1
- package/lib/edge/style.css +1 -1
- package/lib/node/{awaiter-68BBjUeZ.cjs → awaiter-MgDlcUHI.cjs} +1 -1
- package/lib/node/{awaiter-j4ORMLjV.js → awaiter-aepEb5fm.js} +1 -1
- package/lib/node/{block-wrapper-xbWj7xN4.cjs → block-wrapper-3kiJne4m.cjs} +1 -1
- package/lib/{edge/block-wrapper-mCaWnoxQ.js → node/block-wrapper-sEviqhU3.js} +3 -3
- package/lib/node/{component-ref-gcCyaLPb.cjs → component-ref-6kTApMRL.cjs} +1 -1
- package/lib/node/{component-ref-FMaZUEHA.js → component-ref-TyXWBWEx.js} +5 -5
- package/lib/node/components/content-variants/content-variants.vue.d.ts +0 -1
- package/lib/node/components/content-variants/helpers.d.ts +0 -1
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/{get-block-properties-xyodoUq1.cjs → get-block-properties-3uCiF9Qm.cjs} +1 -1
- package/lib/node/{get-block-properties-OFyB13c0.js → get-block-properties-NjyNQiag.js} +2 -2
- package/lib/node/{index-INlBMXV-.cjs → index-9WZ86cun.cjs} +29 -51
- package/lib/node/{index-TU01S1LU.js → index-YYQAkk5S.js} +386 -414
- package/lib/node/index.cjs +1 -1
- package/lib/node/index.mjs +2 -2
- package/lib/node/init.cjs +1 -1
- package/lib/node/init.mjs +1 -1
- package/lib/{edge/live-edit-DElUbmBW.cjs → node/live-edit-267vHpIq.cjs} +1 -1
- package/lib/node/{live-edit-047YZnu-.js → live-edit-U9pCBdly.js} +1 -1
- package/lib/node/{repeated-block-EcOLRgeJ.cjs → repeated-block-BfYZqoE0.cjs} +1 -1
- package/lib/node/{repeated-block-om1ZGsyQ.js → repeated-block-f2s-IUoM.js} +2 -2
- package/lib/node/{should-force-browser-runtime-in-node-dW9p7rxg.js → should-force-browser-runtime-in-node-HsyT-bd2.js} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-A9wQILFE.cjs → should-force-browser-runtime-in-node-yK_d4v-W.cjs} +1 -1
- package/lib/node/{style-wrapper-2Rqb9g04.js → style-wrapper-MJzB79lB.js} +2 -2
- package/lib/node/{style-wrapper-lvW1HnEu.cjs → style-wrapper-vHL9MNhi.cjs} +1 -1
- package/lib/node/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as
|
|
2
|
+
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as X, mergeProps as $, toHandlers as L, withCtx as x, renderSlot as N, resolveComponent as k, createTextVNode as Vt, toDisplayString as de, defineAsyncComponent as Y, createVNode as E, renderList as F, createCommentVNode as C, h as Qe, createElementVNode as z, normalizeStyle as M, normalizeClass as _, markRaw as Nt } from "vue";
|
|
3
3
|
const Wt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), Dt = (e) => typeof e == "string" && Wt.has(e.toLowerCase());
|
|
4
4
|
function W(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
@@ -24,13 +24,13 @@ const Ot = y({
|
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
26
|
function xt(e, t, n, o, r, i) {
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (d(), S(X(e.TagName),
|
|
28
|
-
typeof e.TagName == "string" ? (d(), S(X(e.TagName),
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, L(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (d(), S(X(e.TagName), $({ key: 0 }, e.attributes, L(e.actionAttributes)), {
|
|
29
29
|
default: x(() => [
|
|
30
30
|
N(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (d(), S(X(e.TagName),
|
|
33
|
+
}, 16)) : (d(), S(X(e.TagName), $({ key: 1 }, e.attributes, L(e.actionAttributes)), {
|
|
34
34
|
default: x(() => [
|
|
35
35
|
N(e.$slots, "default")
|
|
36
36
|
]),
|
|
@@ -38,11 +38,11 @@ function xt(e, t, n, o, r, i) {
|
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Te = /* @__PURE__ */ v(Ot, [["render", xt]]), vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
45
|
-
switch (
|
|
43
|
+
default: Te
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), R = "vue", j = () => {
|
|
45
|
+
switch (R) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
48
48
|
case "rsc":
|
|
@@ -56,7 +56,7 @@ const ke = /* @__PURE__ */ v(Ot, [["render", xt]]), Ss = /* @__PURE__ */ Object.
|
|
|
56
56
|
}
|
|
57
57
|
}, Ut = y({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: Te },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -71,7 +71,7 @@ const ke = /* @__PURE__ */ v(Ot, [["render", xt]]), Ss = /* @__PURE__ */ Object.
|
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
73
|
...W(this.attributes, "v-on:", !1),
|
|
74
|
-
[
|
|
74
|
+
[j()]: `${this.link ? "" : "builder-button"} ${this.attributes[j()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
77
77
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -114,7 +114,7 @@ const Ft = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ht = Symbol(), ge = {
|
|
|
114
114
|
model: ""
|
|
115
115
|
},
|
|
116
116
|
key: Ht
|
|
117
|
-
}, Mt = Symbol(),
|
|
117
|
+
}, Mt = Symbol(), Ye = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
119
|
key: Mt
|
|
120
120
|
}, ne = "[Builder.io]: ", B = {
|
|
@@ -122,25 +122,25 @@ const Ft = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ht = Symbol(), ge = {
|
|
|
122
122
|
error: (...e) => console.error(ne, ...e),
|
|
123
123
|
warn: (...e) => console.warn(ne, ...e),
|
|
124
124
|
debug: (...e) => console.debug(ne, ...e)
|
|
125
|
-
},
|
|
125
|
+
}, Xe = (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 T() {
|
|
130
130
|
return typeof window < "u" && typeof document < "u";
|
|
131
131
|
}
|
|
132
|
-
const
|
|
132
|
+
const jt = (e) => {
|
|
133
133
|
const t = {};
|
|
134
134
|
return e.forEach((n, o) => {
|
|
135
135
|
t[o] = n;
|
|
136
136
|
}), t;
|
|
137
|
-
},
|
|
138
|
-
function
|
|
137
|
+
}, Ze = (e) => e instanceof URLSearchParams ? jt(e) : e, _e = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
138
|
+
function Kt() {
|
|
139
139
|
return T() && window.self !== window.top;
|
|
140
140
|
}
|
|
141
141
|
function A(e) {
|
|
142
|
-
return
|
|
143
|
-
|
|
142
|
+
return Kt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
143
|
+
_e(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
144
144
|
}
|
|
145
145
|
const qt = () => {
|
|
146
146
|
if (T()) {
|
|
@@ -148,7 +148,7 @@ const qt = () => {
|
|
|
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
|
-
}, zt = () => typeof navigator == "object" && navigator.userAgent || "",
|
|
151
|
+
}, zt = () => typeof navigator == "object" && navigator.userAgent || "", et = () => {
|
|
152
152
|
const e = zt(), t = {
|
|
153
153
|
Android() {
|
|
154
154
|
return e.match(/Android/i);
|
|
@@ -166,7 +166,7 @@ const qt = () => {
|
|
|
166
166
|
return e.match(/IEMobile/i) || e.match(/WPDesktop/i);
|
|
167
167
|
},
|
|
168
168
|
any() {
|
|
169
|
-
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() ||
|
|
169
|
+
return t.Android() || t.BlackBerry() || t.iOS() || t.Opera() || t.Windows() || R === "reactNative";
|
|
170
170
|
}
|
|
171
171
|
}, n = e.match(/Tablet|iPad/i), o = qt();
|
|
172
172
|
return {
|
|
@@ -174,11 +174,11 @@ const qt = () => {
|
|
|
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
|
-
},
|
|
178
|
-
"X-Builder-SDK":
|
|
177
|
+
}, tt = "5.2.4", nt = () => ({
|
|
178
|
+
"X-Builder-SDK": R,
|
|
179
179
|
"X-Builder-SDK-GEN": "2",
|
|
180
|
-
"X-Builder-SDK-Version":
|
|
181
|
-
}),
|
|
180
|
+
"X-Builder-SDK-Version": tt
|
|
181
|
+
}), K = (e) => e != null, Gt = (e) => {
|
|
182
182
|
if (e === "localhost" || e === "127.0.0.1")
|
|
183
183
|
return e;
|
|
184
184
|
const t = e.split(".");
|
|
@@ -194,14 +194,14 @@ const qt = () => {
|
|
|
194
194
|
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
|
-
},
|
|
197
|
+
}, ot = async (e) => ue(e), Jt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(K).join("; "), Qt = [["secure", ""], ["SameSite", "None"]], Yt = ({
|
|
198
198
|
name: e,
|
|
199
199
|
value: t,
|
|
200
200
|
expires: n
|
|
201
201
|
}) => {
|
|
202
202
|
const r = (T() ? location.protocol === "https:" : !0) ? Qt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Gt(window.location.hostname)], ...r];
|
|
203
203
|
return Jt(s);
|
|
204
|
-
},
|
|
204
|
+
}, we = async ({
|
|
205
205
|
name: e,
|
|
206
206
|
value: t,
|
|
207
207
|
expires: n,
|
|
@@ -226,19 +226,19 @@ function Xt() {
|
|
|
226
226
|
return (e == "x" ? t : t & 3 | 8).toString(16);
|
|
227
227
|
});
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function rt() {
|
|
230
230
|
return Xt().replace(/-/g, "");
|
|
231
231
|
}
|
|
232
|
-
const
|
|
232
|
+
const it = "builderSessionId", Zt = async ({
|
|
233
233
|
canTrack: e
|
|
234
234
|
}) => {
|
|
235
235
|
if (!e)
|
|
236
236
|
return;
|
|
237
|
-
const t = await
|
|
238
|
-
name:
|
|
237
|
+
const t = await ot({
|
|
238
|
+
name: it,
|
|
239
239
|
canTrack: e
|
|
240
240
|
});
|
|
241
|
-
if (
|
|
241
|
+
if (K(t))
|
|
242
242
|
return t;
|
|
243
243
|
{
|
|
244
244
|
const n = _t();
|
|
@@ -247,20 +247,20 @@ const nt = "builderSessionId", Zt = async ({
|
|
|
247
247
|
canTrack: e
|
|
248
248
|
}), n;
|
|
249
249
|
}
|
|
250
|
-
}, _t = () =>
|
|
250
|
+
}, _t = () => rt(), en = ({
|
|
251
251
|
id: e,
|
|
252
252
|
canTrack: t
|
|
253
|
-
}) =>
|
|
254
|
-
name:
|
|
253
|
+
}) => we({
|
|
254
|
+
name: it,
|
|
255
255
|
value: e,
|
|
256
256
|
canTrack: t
|
|
257
|
-
}),
|
|
257
|
+
}), st = () => T() && typeof localStorage < "u" ? localStorage : void 0, tn = ({
|
|
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 = st()) == null ? void 0 : n.getItem(e) : void 0;
|
|
264
264
|
} catch (o) {
|
|
265
265
|
console.debug("[LocalStorage] GET error: ", o);
|
|
266
266
|
return;
|
|
@@ -272,20 +272,20 @@ const nt = "builderSessionId", Zt = async ({
|
|
|
272
272
|
}) => {
|
|
273
273
|
var o;
|
|
274
274
|
try {
|
|
275
|
-
t && ((o =
|
|
275
|
+
t && ((o = st()) == null || o.setItem(e, n));
|
|
276
276
|
} catch (r) {
|
|
277
277
|
console.debug("[LocalStorage] SET error: ", r);
|
|
278
278
|
}
|
|
279
|
-
},
|
|
279
|
+
}, at = "builderVisitorId", on = ({
|
|
280
280
|
canTrack: e
|
|
281
281
|
}) => {
|
|
282
282
|
if (!e)
|
|
283
283
|
return;
|
|
284
284
|
const t = tn({
|
|
285
|
-
key:
|
|
285
|
+
key: at,
|
|
286
286
|
canTrack: e
|
|
287
287
|
});
|
|
288
|
-
if (
|
|
288
|
+
if (K(t))
|
|
289
289
|
return t;
|
|
290
290
|
{
|
|
291
291
|
const n = rn();
|
|
@@ -294,15 +294,15 @@ const nt = "builderSessionId", Zt = async ({
|
|
|
294
294
|
canTrack: e
|
|
295
295
|
}), n;
|
|
296
296
|
}
|
|
297
|
-
}, rn = () =>
|
|
297
|
+
}, rn = () => rt(), sn = ({
|
|
298
298
|
id: e,
|
|
299
299
|
canTrack: t
|
|
300
300
|
}) => nn({
|
|
301
|
-
key:
|
|
301
|
+
key: at,
|
|
302
302
|
value: e,
|
|
303
303
|
canTrack: t
|
|
304
304
|
});
|
|
305
|
-
function
|
|
305
|
+
function Ie(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
|
}
|
|
@@ -340,7 +340,7 @@ const an = async ({
|
|
|
340
340
|
...await an({
|
|
341
341
|
canTrack: t
|
|
342
342
|
}),
|
|
343
|
-
userAttributes:
|
|
343
|
+
userAttributes: et(),
|
|
344
344
|
ownerId: n
|
|
345
345
|
}
|
|
346
346
|
});
|
|
@@ -352,24 +352,24 @@ async function se({
|
|
|
352
352
|
B.error("Missing API key for track call. Please provide your API key.");
|
|
353
353
|
return;
|
|
354
354
|
}
|
|
355
|
-
if (!t.canTrack || A() || !(T() ||
|
|
355
|
+
if (!t.canTrack || A() || !(T() || R === "reactNative"))
|
|
356
356
|
return;
|
|
357
357
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
358
|
-
return
|
|
358
|
+
return Ie(o), fetch(o, {
|
|
359
359
|
method: "POST",
|
|
360
360
|
body: JSON.stringify({
|
|
361
361
|
events: [await ln(t)]
|
|
362
362
|
}),
|
|
363
363
|
headers: {
|
|
364
364
|
"content-type": "application/json",
|
|
365
|
-
...
|
|
365
|
+
...nt()
|
|
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 Ss = (e) => se({
|
|
373
373
|
...e,
|
|
374
374
|
canTrack: !0
|
|
375
375
|
}), cn = ({
|
|
@@ -388,7 +388,7 @@ const ks = (e) => se({
|
|
|
388
388
|
isEditing: A(),
|
|
389
389
|
isBrowser: T(),
|
|
390
390
|
isServer: !T(),
|
|
391
|
-
getUserAttributes: () =>
|
|
391
|
+
getUserAttributes: () => et(),
|
|
392
392
|
trackConversion: (t, n) => {
|
|
393
393
|
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || se({
|
|
394
394
|
type: "conversion",
|
|
@@ -407,7 +407,7 @@ const ks = (e) => se({
|
|
|
407
407
|
}), un = (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 lt({
|
|
411
411
|
rootState: e,
|
|
412
412
|
localState: t,
|
|
413
413
|
rootSetState: n
|
|
@@ -417,7 +417,7 @@ function it({
|
|
|
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 ? lt({
|
|
421
421
|
rootState: i,
|
|
422
422
|
localState: void 0,
|
|
423
423
|
rootSetState: n ? (s) => {
|
|
@@ -432,7 +432,7 @@ function it({
|
|
|
432
432
|
}
|
|
433
433
|
});
|
|
434
434
|
}
|
|
435
|
-
const
|
|
435
|
+
const xe = ({
|
|
436
436
|
code: e,
|
|
437
437
|
builder: t,
|
|
438
438
|
context: n,
|
|
@@ -445,7 +445,7 @@ const We = ({
|
|
|
445
445
|
builder: t,
|
|
446
446
|
context: n,
|
|
447
447
|
event: o,
|
|
448
|
-
state:
|
|
448
|
+
state: lt({
|
|
449
449
|
rootState: s,
|
|
450
450
|
localState: r,
|
|
451
451
|
rootSetState: i
|
|
@@ -455,7 +455,7 @@ const We = ({
|
|
|
455
455
|
};
|
|
456
456
|
function pn() {
|
|
457
457
|
var e;
|
|
458
|
-
return typeof process < "u" &&
|
|
458
|
+
return typeof process < "u" && K((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
459
459
|
}
|
|
460
460
|
const mn = ({
|
|
461
461
|
shouldLogWarning: e
|
|
@@ -467,7 +467,7 @@ const mn = ({
|
|
|
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
|
}, hn = (e) => (T() || mn({
|
|
469
469
|
shouldLogWarning: !0
|
|
470
|
-
}),
|
|
470
|
+
}), xe(e)), fn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, bn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, gn = (e) => {
|
|
471
471
|
var t, n, o, r, i, s;
|
|
472
472
|
return ((o = (n = (t = fn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = bn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
473
473
|
};
|
|
@@ -485,7 +485,7 @@ function ee({
|
|
|
485
485
|
return;
|
|
486
486
|
const a = gn(e.trim());
|
|
487
487
|
if (a)
|
|
488
|
-
return
|
|
488
|
+
return Xe({
|
|
489
489
|
...o,
|
|
490
490
|
...n
|
|
491
491
|
}, a);
|
|
@@ -554,7 +554,7 @@ function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
554
554
|
}), ae(s, t, e, i, r);
|
|
555
555
|
}));
|
|
556
556
|
}
|
|
557
|
-
function
|
|
557
|
+
function ct(e) {
|
|
558
558
|
return e && typeof e == "object" && e["@type"] === "@builder.io/core:LocalizedValue";
|
|
559
559
|
}
|
|
560
560
|
function kn(e) {
|
|
@@ -562,7 +562,7 @@ function kn(e) {
|
|
|
562
562
|
return !1;
|
|
563
563
|
let t = !1;
|
|
564
564
|
return ae(e, (n) => {
|
|
565
|
-
if (
|
|
565
|
+
if (ct(n)) {
|
|
566
566
|
t = !0;
|
|
567
567
|
return;
|
|
568
568
|
}
|
|
@@ -570,14 +570,14 @@ function kn(e) {
|
|
|
570
570
|
}
|
|
571
571
|
function Cn(e, t) {
|
|
572
572
|
return !e || !Object.getOwnPropertyNames(e).length ? {} : (ae(e, (n, o) => {
|
|
573
|
-
|
|
573
|
+
ct(n) && o(n[t] ?? void 0);
|
|
574
574
|
}), e);
|
|
575
575
|
}
|
|
576
576
|
function Tn(e, t) {
|
|
577
577
|
var n, o;
|
|
578
578
|
return (n = e.component) != null && n.options && kn((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 = Cn(e.component.options, t ?? "Default")), e;
|
|
579
579
|
}
|
|
580
|
-
const
|
|
580
|
+
const $e = (e) => JSON.parse(JSON.stringify(e)), dt = (e, t, n) => {
|
|
581
581
|
if (Object(e) !== e)
|
|
582
582
|
return e;
|
|
583
583
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
@@ -595,9 +595,9 @@ function ye(e) {
|
|
|
595
595
|
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ye(e[n]));
|
|
596
596
|
return t;
|
|
597
597
|
}
|
|
598
|
-
const wn = ["svelte", "vue", "angular", "qwik", "solid"].includes(
|
|
598
|
+
const wn = ["svelte", "vue", "angular", "qwik", "solid"].includes(R), In = (e) => {
|
|
599
599
|
if (wn) {
|
|
600
|
-
const t =
|
|
600
|
+
const t = $e(e);
|
|
601
601
|
return {
|
|
602
602
|
...t,
|
|
603
603
|
properties: {
|
|
@@ -639,7 +639,7 @@ const wn = ["svelte", "vue", "angular", "qwik", "solid"].includes($), In = (e) =
|
|
|
639
639
|
rootSetState: r,
|
|
640
640
|
context: t
|
|
641
641
|
});
|
|
642
|
-
|
|
642
|
+
dt(i, s, a);
|
|
643
643
|
}
|
|
644
644
|
return i;
|
|
645
645
|
};
|
|
@@ -659,9 +659,9 @@ function Rn({
|
|
|
659
659
|
context: t
|
|
660
660
|
}), i = Tn(i, o.locale), i;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function Re(e) {
|
|
663
663
|
const t = e || (T() ? window.location.search : void 0);
|
|
664
|
-
return t ?
|
|
664
|
+
return t ? _e(t).indexOf("builder.preview=") !== -1 : !1;
|
|
665
665
|
}
|
|
666
666
|
const En = (e) => ({
|
|
667
667
|
type: "builder.registerComponent",
|
|
@@ -673,11 +673,11 @@ const En = (e) => ({
|
|
|
673
673
|
function le(e) {
|
|
674
674
|
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? An(n) : n));
|
|
675
675
|
}
|
|
676
|
-
const
|
|
677
|
-
function
|
|
676
|
+
const Ue = {};
|
|
677
|
+
function ks(e, t) {
|
|
678
678
|
e === "plugin" && (t = le(t));
|
|
679
|
-
let n =
|
|
680
|
-
if (n || (n =
|
|
679
|
+
let n = Ue[e];
|
|
680
|
+
if (n || (n = Ue[e] = []), n.push(t), T()) {
|
|
681
681
|
const o = {
|
|
682
682
|
type: "builder.register",
|
|
683
683
|
data: {
|
|
@@ -692,7 +692,7 @@ function Cs(e, t) {
|
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function Cs(e) {
|
|
696
696
|
var t;
|
|
697
697
|
if (T()) {
|
|
698
698
|
const n = JSON.parse(JSON.stringify(e));
|
|
@@ -702,24 +702,24 @@ function Ts(e) {
|
|
|
702
702
|
}, "*");
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
const
|
|
706
|
-
function
|
|
705
|
+
const Le = {};
|
|
706
|
+
function Ts(e) {
|
|
707
707
|
if (T()) {
|
|
708
|
-
Object.assign(
|
|
708
|
+
Object.assign(Le, e);
|
|
709
709
|
const t = {
|
|
710
710
|
type: "builder.settingsChange",
|
|
711
|
-
data:
|
|
711
|
+
data: Le
|
|
712
712
|
};
|
|
713
713
|
parent.postMessage(t, "*");
|
|
714
714
|
}
|
|
715
715
|
}
|
|
716
|
-
const
|
|
716
|
+
const Fe = "builder.", Pn = "options.", ut = (e) => {
|
|
717
717
|
if (!e)
|
|
718
718
|
return {};
|
|
719
|
-
const t =
|
|
719
|
+
const t = Ze(e), n = {};
|
|
720
720
|
return Object.keys(t).forEach((o) => {
|
|
721
|
-
if (o.startsWith(
|
|
722
|
-
const r = o.replace(
|
|
721
|
+
if (o.startsWith(Fe)) {
|
|
722
|
+
const r = o.replace(Fe, "").replace(Pn, "");
|
|
723
723
|
n[r] = t[o];
|
|
724
724
|
}
|
|
725
725
|
}), n;
|
|
@@ -727,22 +727,22 @@ const xe = "builder.", Pn = "options.", lt = (e) => {
|
|
|
727
727
|
if (!T())
|
|
728
728
|
return {};
|
|
729
729
|
const e = new URLSearchParams(window.location.search);
|
|
730
|
-
return
|
|
730
|
+
return ut(e);
|
|
731
731
|
}, Vn = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
732
|
-
function
|
|
732
|
+
function pt(e, t) {
|
|
733
733
|
if (!t.origin.startsWith("http") && !t.origin.startsWith("https"))
|
|
734
734
|
return !1;
|
|
735
735
|
const n = new URL(t.origin), o = n.hostname;
|
|
736
736
|
return (e || Vn).findIndex((r) => r.startsWith("*.") ? o.endsWith(r.slice(1)) : r === o) > -1;
|
|
737
737
|
}
|
|
738
|
-
let
|
|
739
|
-
const
|
|
738
|
+
let He = !1;
|
|
739
|
+
const mt = (e) => {
|
|
740
740
|
var t, n;
|
|
741
|
-
|
|
741
|
+
He || (He = !0, T() && ((t = window.parent) == null || t.postMessage({
|
|
742
742
|
type: "builder.sdkInfo",
|
|
743
743
|
data: {
|
|
744
|
-
target:
|
|
745
|
-
version:
|
|
744
|
+
target: R,
|
|
745
|
+
version: tt,
|
|
746
746
|
supportsPatchUpdates: !1,
|
|
747
747
|
// Supports builder-model="..." attribute which is needed to
|
|
748
748
|
// scope our '+ add block' button styling
|
|
@@ -760,7 +760,7 @@ const dt = (e) => {
|
|
|
760
760
|
}
|
|
761
761
|
}, "*"), window.addEventListener("message", (o) => {
|
|
762
762
|
var i, s;
|
|
763
|
-
if (!
|
|
763
|
+
if (!pt(e.trustedHosts, o))
|
|
764
764
|
return;
|
|
765
765
|
const {
|
|
766
766
|
data: r
|
|
@@ -801,12 +801,12 @@ const dt = (e) => {
|
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
803
|
})));
|
|
804
|
-
},
|
|
804
|
+
}, ht = ({
|
|
805
805
|
model: e,
|
|
806
806
|
trustedHosts: t,
|
|
807
807
|
callbacks: n
|
|
808
808
|
}) => (o) => {
|
|
809
|
-
if (!
|
|
809
|
+
if (!pt(t, o))
|
|
810
810
|
return;
|
|
811
811
|
const {
|
|
812
812
|
data: r
|
|
@@ -832,7 +832,7 @@ const dt = (e) => {
|
|
|
832
832
|
break;
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
|
-
},
|
|
835
|
+
}, ws = ({
|
|
836
836
|
model: e,
|
|
837
837
|
apiKey: t,
|
|
838
838
|
callback: n,
|
|
@@ -841,11 +841,11 @@ const dt = (e) => {
|
|
|
841
841
|
if (!T)
|
|
842
842
|
return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
843
843
|
};
|
|
844
|
-
|
|
844
|
+
mt({
|
|
845
845
|
modelName: e,
|
|
846
846
|
apiKey: t
|
|
847
847
|
});
|
|
848
|
-
const r =
|
|
848
|
+
const r = ht({
|
|
849
849
|
callbacks: {
|
|
850
850
|
contentUpdate: n,
|
|
851
851
|
animation: () => {
|
|
@@ -861,24 +861,24 @@ const dt = (e) => {
|
|
|
861
861
|
return window.addEventListener("message", r), () => {
|
|
862
862
|
window.removeEventListener("message", r);
|
|
863
863
|
};
|
|
864
|
-
}, Nn = "builder.tests",
|
|
864
|
+
}, Nn = "builder.tests", Ee = (e) => `${Nn}.${e}`, Wn = ({
|
|
865
865
|
contentId: e
|
|
866
|
-
}) =>
|
|
867
|
-
name:
|
|
866
|
+
}) => ot({
|
|
867
|
+
name: Ee(e),
|
|
868
868
|
canTrack: !0
|
|
869
869
|
}), Dn = ({
|
|
870
870
|
contentId: e
|
|
871
871
|
}) => ue({
|
|
872
|
-
name:
|
|
872
|
+
name: Ee(e),
|
|
873
873
|
canTrack: !0
|
|
874
874
|
}), On = ({
|
|
875
875
|
contentId: e,
|
|
876
876
|
value: t
|
|
877
|
-
}) =>
|
|
878
|
-
name:
|
|
877
|
+
}) => we({
|
|
878
|
+
name: Ee(e),
|
|
879
879
|
value: t,
|
|
880
880
|
canTrack: !0
|
|
881
|
-
}),
|
|
881
|
+
}), ft = (e) => K(e.id) && K(e.variations) && Object.keys(e.variations).length > 0, xn = ({
|
|
882
882
|
id: e,
|
|
883
883
|
variations: t
|
|
884
884
|
}) => {
|
|
@@ -891,7 +891,7 @@ const dt = (e) => {
|
|
|
891
891
|
return i;
|
|
892
892
|
}
|
|
893
893
|
return e;
|
|
894
|
-
},
|
|
894
|
+
}, bt = (e) => {
|
|
895
895
|
const t = xn(e);
|
|
896
896
|
return On({
|
|
897
897
|
contentId: e.id,
|
|
@@ -899,7 +899,7 @@ const dt = (e) => {
|
|
|
899
899
|
}).catch((n) => {
|
|
900
900
|
B.error("could not store A/B test variation: ", n);
|
|
901
901
|
}), t;
|
|
902
|
-
},
|
|
902
|
+
}, gt = ({
|
|
903
903
|
item: e,
|
|
904
904
|
testGroupId: t
|
|
905
905
|
}) => {
|
|
@@ -921,14 +921,14 @@ const dt = (e) => {
|
|
|
921
921
|
return e;
|
|
922
922
|
if (!e)
|
|
923
923
|
return;
|
|
924
|
-
if (!
|
|
924
|
+
if (!ft(e))
|
|
925
925
|
return e;
|
|
926
926
|
const n = Dn({
|
|
927
927
|
contentId: e.id
|
|
928
|
-
}) ||
|
|
928
|
+
}) || bt({
|
|
929
929
|
variations: e.variations,
|
|
930
930
|
id: e.id
|
|
931
|
-
}), o =
|
|
931
|
+
}), o = gt({
|
|
932
932
|
item: e,
|
|
933
933
|
testGroupId: n
|
|
934
934
|
});
|
|
@@ -940,14 +940,14 @@ const dt = (e) => {
|
|
|
940
940
|
item: e,
|
|
941
941
|
canTrack: t
|
|
942
942
|
}) => {
|
|
943
|
-
if (!t || !
|
|
943
|
+
if (!t || !ft(e))
|
|
944
944
|
return e;
|
|
945
945
|
const o = await Wn({
|
|
946
946
|
contentId: e.id
|
|
947
|
-
}) ||
|
|
947
|
+
}) || bt({
|
|
948
948
|
variations: e.variations,
|
|
949
949
|
id: e.id
|
|
950
|
-
}), r =
|
|
950
|
+
}), r = gt({
|
|
951
951
|
item: e,
|
|
952
952
|
testGroupId: o
|
|
953
953
|
});
|
|
@@ -956,8 +956,8 @@ const dt = (e) => {
|
|
|
956
956
|
...r
|
|
957
957
|
};
|
|
958
958
|
};
|
|
959
|
-
const
|
|
960
|
-
function
|
|
959
|
+
const Me = "builder.userAttributes";
|
|
960
|
+
function je() {
|
|
961
961
|
let e = !0;
|
|
962
962
|
const t = /* @__PURE__ */ new Set();
|
|
963
963
|
return {
|
|
@@ -968,15 +968,15 @@ function Fe() {
|
|
|
968
968
|
...this.getUserAttributes(),
|
|
969
969
|
...n
|
|
970
970
|
};
|
|
971
|
-
|
|
972
|
-
name:
|
|
971
|
+
we({
|
|
972
|
+
name: Me,
|
|
973
973
|
value: JSON.stringify(o),
|
|
974
974
|
canTrack: e
|
|
975
975
|
}), t.forEach((r) => r(o));
|
|
976
976
|
},
|
|
977
977
|
getUserAttributes() {
|
|
978
978
|
return T() ? JSON.parse(ue({
|
|
979
|
-
name:
|
|
979
|
+
name: Me,
|
|
980
980
|
canTrack: e
|
|
981
981
|
}) || "{}") : {};
|
|
982
982
|
},
|
|
@@ -993,11 +993,11 @@ function Fe() {
|
|
|
993
993
|
};
|
|
994
994
|
}
|
|
995
995
|
let ve;
|
|
996
|
-
T() &&
|
|
997
|
-
const ce = ve,
|
|
996
|
+
T() && R === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = je()), ve = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : ve = je();
|
|
997
|
+
const ce = ve, Is = (e) => {
|
|
998
998
|
ce.setUserAttributes(e);
|
|
999
999
|
}, G = (e) => {
|
|
1000
|
-
const t =
|
|
1000
|
+
const t = K(e) ? e : !0;
|
|
1001
1001
|
return ce.setCanTrack(t), t;
|
|
1002
1002
|
};
|
|
1003
1003
|
function Fn() {
|
|
@@ -1023,14 +1023,14 @@ function Se(e, t = null, n = ".") {
|
|
|
1023
1023
|
};
|
|
1024
1024
|
}, {});
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function yt(e, t, n = {}) {
|
|
1027
1027
|
for (const o in e) {
|
|
1028
1028
|
const r = e[o], i = t ? t + "." + o : o;
|
|
1029
|
-
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ?
|
|
1029
|
+
r && typeof r == "object" && !Array.isArray(r) && !Object.keys(r).find((s) => s.startsWith("$")) ? yt(r, i, n) : n[i] = r;
|
|
1030
1030
|
}
|
|
1031
1031
|
return n;
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function jn(e) {
|
|
1034
1034
|
const t = {};
|
|
1035
1035
|
for (const n in e) {
|
|
1036
1036
|
const o = n.split(".");
|
|
@@ -1042,7 +1042,7 @@ function Kn(e) {
|
|
|
1042
1042
|
}
|
|
1043
1043
|
return t;
|
|
1044
1044
|
}
|
|
1045
|
-
const
|
|
1045
|
+
const Kn = "v3", Ke = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ae = (e) => {
|
|
1046
1046
|
const {
|
|
1047
1047
|
limit: t = 30,
|
|
1048
1048
|
userAttributes: n,
|
|
@@ -1051,7 +1051,7 @@ const jn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
|
|
|
1051
1051
|
apiKey: i,
|
|
1052
1052
|
enrich: s,
|
|
1053
1053
|
locale: l,
|
|
1054
|
-
apiVersion: a =
|
|
1054
|
+
apiVersion: a = Kn,
|
|
1055
1055
|
fields: u,
|
|
1056
1056
|
omit: p,
|
|
1057
1057
|
offset: f,
|
|
@@ -1068,7 +1068,7 @@ const jn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
|
|
|
1068
1068
|
const U = t !== 1, V = P || "https://cdn.builder.io", w = new URL(`${V}/api/${a}/content/${r}`);
|
|
1069
1069
|
w.searchParams.set("apiKey", i), w.searchParams.set("limit", String(t)), w.searchParams.set("noTraverse", String(U)), w.searchParams.set("includeRefs", String(!0)), l && w.searchParams.set("locale", l);
|
|
1070
1070
|
let D = n || {};
|
|
1071
|
-
if (s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", p ?? "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && w.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && w.searchParams.set("includeUnpublished", String(g)), c &&
|
|
1071
|
+
if (s && w.searchParams.set("enrich", String(s)), w.searchParams.set("omit", p ?? "meta.componentsUsed"), u && w.searchParams.set("fields", u), Number.isFinite(f) && f > -1 && w.searchParams.set("offset", String(Math.floor(f))), typeof g == "boolean" && w.searchParams.set("includeUnpublished", String(g)), c && Ke(c) && w.searchParams.set("cacheSeconds", String(c)), m && Ke(m) && w.searchParams.set("staleCacheSeconds", String(m)), b) {
|
|
1072
1072
|
const O = Se({
|
|
1073
1073
|
sort: b
|
|
1074
1074
|
});
|
|
@@ -1077,7 +1077,7 @@ const jn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
|
|
|
1077
1077
|
}
|
|
1078
1078
|
const J = {
|
|
1079
1079
|
...Bn(),
|
|
1080
|
-
...
|
|
1080
|
+
...Ze(e.options || {})
|
|
1081
1081
|
};
|
|
1082
1082
|
D = {
|
|
1083
1083
|
...D,
|
|
@@ -1087,7 +1087,7 @@ const jn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
|
|
|
1087
1087
|
for (const O in Q)
|
|
1088
1088
|
w.searchParams.set(O, String(Q[O]));
|
|
1089
1089
|
if (Object.keys(D).length > 0 && w.searchParams.set("userAttributes", JSON.stringify(D)), o) {
|
|
1090
|
-
const O =
|
|
1090
|
+
const O = yt({
|
|
1091
1091
|
query: o
|
|
1092
1092
|
});
|
|
1093
1093
|
for (const H in O)
|
|
@@ -1104,12 +1104,12 @@ const jn = "v3", He = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Re = (
|
|
|
1104
1104
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
1105
1105
|
const t = qn(e), {
|
|
1106
1106
|
userAttributes: n
|
|
1107
|
-
} =
|
|
1107
|
+
} = jn(t);
|
|
1108
1108
|
return n;
|
|
1109
1109
|
}
|
|
1110
1110
|
return {};
|
|
1111
1111
|
}, Gn = (e) => "results" in e;
|
|
1112
|
-
async function
|
|
1112
|
+
async function Pe(e) {
|
|
1113
1113
|
var o;
|
|
1114
1114
|
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
1115
1115
|
t && (e.locale = t, e.userAttributes = {
|
|
@@ -1124,17 +1124,17 @@ async function Ee(e) {
|
|
|
1124
1124
|
}
|
|
1125
1125
|
const Jn = async (e) => {
|
|
1126
1126
|
var s;
|
|
1127
|
-
const t =
|
|
1127
|
+
const t = Ae(e), n = e.fetch ?? Mn, o = {
|
|
1128
1128
|
...e.fetchOptions,
|
|
1129
1129
|
headers: {
|
|
1130
1130
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
1131
|
-
...
|
|
1131
|
+
...nt()
|
|
1132
1132
|
}
|
|
1133
1133
|
};
|
|
1134
1134
|
return await (await n(t.href, o)).json();
|
|
1135
|
-
}, Qn = async (e, t, n =
|
|
1135
|
+
}, Qn = async (e, t, n = Ae(e)) => {
|
|
1136
1136
|
const o = G(e.canTrack);
|
|
1137
|
-
if (n.search.includes("preview="), !o || !(T() ||
|
|
1137
|
+
if (n.search.includes("preview="), !o || !(T() || R === "reactNative"))
|
|
1138
1138
|
return t.results;
|
|
1139
1139
|
try {
|
|
1140
1140
|
const r = [];
|
|
@@ -1150,7 +1150,7 @@ const Jn = async (e) => {
|
|
|
1150
1150
|
return t.results;
|
|
1151
1151
|
};
|
|
1152
1152
|
async function Yn(e) {
|
|
1153
|
-
const t =
|
|
1153
|
+
const t = Ae(e), n = await Jn(e);
|
|
1154
1154
|
if (!Gn(n))
|
|
1155
1155
|
throw B.error("Error fetching data. ", {
|
|
1156
1156
|
url: t,
|
|
@@ -1159,7 +1159,7 @@ async function Yn(e) {
|
|
|
1159
1159
|
}), n;
|
|
1160
1160
|
return Qn(e, n);
|
|
1161
1161
|
}
|
|
1162
|
-
const
|
|
1162
|
+
const $s = async (e) => {
|
|
1163
1163
|
var o, r, i;
|
|
1164
1164
|
const t = e.path || ((o = e.url) == null ? void 0 : o.pathname) || ((r = e.userAttributes) == null ? void 0 : r.urlPath), n = {
|
|
1165
1165
|
...e,
|
|
@@ -1171,14 +1171,14 @@ const Rs = async (e) => {
|
|
|
1171
1171
|
urlPath: t
|
|
1172
1172
|
} : {}
|
|
1173
1173
|
},
|
|
1174
|
-
options:
|
|
1174
|
+
options: ut(e.searchParams || ((i = e.url) == null ? void 0 : i.searchParams) || e.options)
|
|
1175
1175
|
};
|
|
1176
1176
|
return {
|
|
1177
1177
|
apiKey: n.apiKey,
|
|
1178
1178
|
model: n.model,
|
|
1179
|
-
content: await
|
|
1179
|
+
content: await Pe(n)
|
|
1180
1180
|
};
|
|
1181
|
-
},
|
|
1181
|
+
}, Be = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1182
1182
|
function Xn(e, t, n = {}) {
|
|
1183
1183
|
let o, r, i, s = null, l = 0;
|
|
1184
1184
|
const a = function() {
|
|
@@ -1205,17 +1205,17 @@ function Zn(e) {
|
|
|
1205
1205
|
for (const t of e)
|
|
1206
1206
|
switch (t.trigger) {
|
|
1207
1207
|
case "pageLoad":
|
|
1208
|
-
|
|
1208
|
+
kt(t);
|
|
1209
1209
|
break;
|
|
1210
1210
|
case "scrollInView":
|
|
1211
1211
|
eo(t);
|
|
1212
1212
|
break;
|
|
1213
1213
|
}
|
|
1214
1214
|
}
|
|
1215
|
-
function
|
|
1215
|
+
function vt(e) {
|
|
1216
1216
|
console.warn(`Cannot animate element: element with ID ${e} not found!`);
|
|
1217
1217
|
}
|
|
1218
|
-
function
|
|
1218
|
+
function St(e, t) {
|
|
1219
1219
|
const n = _n(e), o = getComputedStyle(t), r = e.steps[0].styles, i = e.steps[e.steps.length - 1].styles, s = [r, i];
|
|
1220
1220
|
for (const l of s)
|
|
1221
1221
|
for (const a of n)
|
|
@@ -1228,15 +1228,15 @@ function _n(e) {
|
|
|
1228
1228
|
t.indexOf(o) === -1 && t.push(o);
|
|
1229
1229
|
return t;
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function kt(e) {
|
|
1232
1232
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1233
1233
|
if (!t.length) {
|
|
1234
|
-
|
|
1234
|
+
vt(e.elementId || e.id || "");
|
|
1235
1235
|
return;
|
|
1236
1236
|
}
|
|
1237
1237
|
Array.from(t).forEach((n) => {
|
|
1238
|
-
|
|
1239
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1238
|
+
St(e, n), n.style.transition = "none", n.style.transitionDelay = "0", Z(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1239
|
+
n.style.transition = `all ${e.duration}s ${Be(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), Z(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1240
1240
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1241
1241
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1242
1242
|
});
|
|
@@ -1245,11 +1245,11 @@ function yt(e) {
|
|
|
1245
1245
|
function eo(e) {
|
|
1246
1246
|
const t = Array.prototype.slice.call(document.getElementsByClassName(e.elementId || e.id || ""));
|
|
1247
1247
|
if (!t.length) {
|
|
1248
|
-
|
|
1248
|
+
vt(e.elementId || e.id || "");
|
|
1249
1249
|
return;
|
|
1250
1250
|
}
|
|
1251
1251
|
Array.from(t).forEach((n) => {
|
|
1252
|
-
|
|
1252
|
+
St(e, n);
|
|
1253
1253
|
let o = !1, r = !1;
|
|
1254
1254
|
function i() {
|
|
1255
1255
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
@@ -1270,18 +1270,18 @@ function eo(e) {
|
|
|
1270
1270
|
Z(n.style, a);
|
|
1271
1271
|
}
|
|
1272
1272
|
u(), setTimeout(() => {
|
|
1273
|
-
n.style.transition = `all ${e.duration}s ${
|
|
1273
|
+
n.style.transition = `all ${e.duration}s ${Be(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
1274
1274
|
}), document.addEventListener("scroll", s, {
|
|
1275
1275
|
capture: !0,
|
|
1276
1276
|
passive: !0
|
|
1277
1277
|
}), i();
|
|
1278
1278
|
});
|
|
1279
1279
|
}
|
|
1280
|
-
const
|
|
1280
|
+
const Ct = (e) => Object.entries(e).map(([n, o]) => {
|
|
1281
1281
|
if (typeof o == "string")
|
|
1282
|
-
return `${
|
|
1283
|
-
}).filter(
|
|
1284
|
-
`),
|
|
1282
|
+
return `${Be(n)}: ${o};`;
|
|
1283
|
+
}).filter(K), to = (e) => Ct(e).join(`
|
|
1284
|
+
`), Rs = ({
|
|
1285
1285
|
mediaQuery: e,
|
|
1286
1286
|
className: t,
|
|
1287
1287
|
styles: n
|
|
@@ -1298,21 +1298,21 @@ function no({
|
|
|
1298
1298
|
}) {
|
|
1299
1299
|
return e;
|
|
1300
1300
|
}
|
|
1301
|
-
const
|
|
1301
|
+
const Es = ({
|
|
1302
1302
|
block: e,
|
|
1303
1303
|
context: t
|
|
1304
|
-
}) =>
|
|
1304
|
+
}) => Tt(no({
|
|
1305
1305
|
style: e.style || {},
|
|
1306
1306
|
context: t,
|
|
1307
1307
|
block: e
|
|
1308
1308
|
}));
|
|
1309
|
-
function
|
|
1310
|
-
switch (
|
|
1309
|
+
function Tt(e) {
|
|
1310
|
+
switch (R) {
|
|
1311
1311
|
case "svelte":
|
|
1312
1312
|
case "vue":
|
|
1313
1313
|
case "solid":
|
|
1314
1314
|
case "angular":
|
|
1315
|
-
return
|
|
1315
|
+
return Ct(e).join(" ");
|
|
1316
1316
|
case "qwik":
|
|
1317
1317
|
case "reactNative":
|
|
1318
1318
|
case "react":
|
|
@@ -1320,7 +1320,7 @@ function St(e) {
|
|
|
1320
1320
|
return e;
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
|
-
const
|
|
1323
|
+
const wt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includes(t) : !1 : !0, oo = ({
|
|
1324
1324
|
block: e,
|
|
1325
1325
|
registeredComponents: t,
|
|
1326
1326
|
model: n
|
|
@@ -1330,7 +1330,7 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1330
1330
|
if (!o)
|
|
1331
1331
|
return null;
|
|
1332
1332
|
const r = t[o];
|
|
1333
|
-
if (!r ||
|
|
1333
|
+
if (!r || wt(r, n)) {
|
|
1334
1334
|
console.warn(`
|
|
1335
1335
|
Could not find a registered component named "${o}".
|
|
1336
1336
|
If you registered it, is the file that registered it imported by the file that needs to render it?`);
|
|
@@ -1378,7 +1378,7 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1378
1378
|
}, so = (e, t, n) => {
|
|
1379
1379
|
var o;
|
|
1380
1380
|
return (o = e == null ? void 0 : e.shouldReceiveBuilderProps) != null && o.builderComponents ? {
|
|
1381
|
-
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !
|
|
1381
|
+
builderComponents: Object.fromEntries(Object.entries(t).filter(([i, s]) => !wt(s, n)))
|
|
1382
1382
|
} : {};
|
|
1383
1383
|
}, ao = (e, t) => {
|
|
1384
1384
|
var n;
|
|
@@ -1395,22 +1395,22 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1395
1395
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1396
1396
|
e
|
|
1397
1397
|
), e;
|
|
1398
|
-
}), po = () => import("./block-wrapper-
|
|
1398
|
+
}), po = () => import("./block-wrapper-YNVEwJsu.js").then((e) => e.default).catch((e) => {
|
|
1399
1399
|
throw console.error(
|
|
1400
1400
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1401
1401
|
e
|
|
1402
1402
|
), e;
|
|
1403
|
-
}), mo = () => import("./component-ref-
|
|
1403
|
+
}), mo = () => import("./component-ref-watkJI0h.js").then((e) => e.default).catch((e) => {
|
|
1404
1404
|
throw console.error(
|
|
1405
1405
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1406
1406
|
e
|
|
1407
1407
|
), e;
|
|
1408
|
-
}), ho = () => import("./repeated-block-
|
|
1408
|
+
}), ho = () => import("./repeated-block-B84MBN4t.js").then((e) => e.default).catch((e) => {
|
|
1409
1409
|
throw console.error(
|
|
1410
1410
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1411
1411
|
e
|
|
1412
1412
|
), e;
|
|
1413
|
-
}), fo = () => import("./style-wrapper-
|
|
1413
|
+
}), fo = () => import("./style-wrapper-1pU2q-Nj.js").then((e) => e.default).catch((e) => {
|
|
1414
1414
|
throw console.error(
|
|
1415
1415
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1416
1416
|
e
|
|
@@ -1505,7 +1505,7 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1505
1505
|
registeredComponents: this.registeredComponents,
|
|
1506
1506
|
builderBlock: this.processedBlock,
|
|
1507
1507
|
includeBlockProps: ((t = this.blockComponent) == null ? void 0 : t.noWrap) === !0,
|
|
1508
|
-
isInteractive: !((n = this.blockComponent) != null && n.isRSC &&
|
|
1508
|
+
isInteractive: !((n = this.blockComponent) != null && n.isRSC && R === "rsc")
|
|
1509
1509
|
};
|
|
1510
1510
|
}
|
|
1511
1511
|
}
|
|
@@ -1513,14 +1513,14 @@ const kt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1513
1513
|
function go(e, t, n, o, r, i) {
|
|
1514
1514
|
var f;
|
|
1515
1515
|
const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
|
|
1516
|
-
return e.canShowBlock ? (d(), h(
|
|
1516
|
+
return e.canShowBlock ? (d(), h(I, { key: 0 }, [
|
|
1517
1517
|
E(s, {
|
|
1518
1518
|
block: e.processedBlock,
|
|
1519
1519
|
context: e.context,
|
|
1520
1520
|
id: e.block.id
|
|
1521
1521
|
}, null, 8, ["block", "context", "id"]),
|
|
1522
|
-
(f = e.blockComponent) != null && f.noWrap ? (d(), h(
|
|
1523
|
-
e.repeatItem ? (d(!0), h(
|
|
1522
|
+
(f = e.blockComponent) != null && f.noWrap ? (d(), h(I, { key: 1 }, [
|
|
1523
|
+
e.repeatItem ? (d(!0), h(I, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
|
|
1524
1524
|
key: e.generateKey(m),
|
|
1525
1525
|
repeatContext: c.context,
|
|
1526
1526
|
block: c.block,
|
|
@@ -1538,8 +1538,8 @@ function go(e, t, n, o, r, i) {
|
|
|
1538
1538
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1539
1539
|
isInteractive: e.componentRefProps.isInteractive
|
|
1540
1540
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1541
|
-
], 64)) : (d(), h(
|
|
1542
|
-
e.repeatItem ? (d(!0), h(
|
|
1541
|
+
], 64)) : (d(), h(I, { key: 0 }, [
|
|
1542
|
+
e.repeatItem ? (d(!0), h(I, { key: 1 }, F(e.repeatItem, (c, m) => (d(), S(p, {
|
|
1543
1543
|
key: e.generateKey(m),
|
|
1544
1544
|
repeatContext: c.context,
|
|
1545
1545
|
block: c.block,
|
|
@@ -1563,7 +1563,7 @@ function go(e, t, n, o, r, i) {
|
|
|
1563
1563
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1564
1564
|
isInteractive: e.componentRefProps.isInteractive
|
|
1565
1565
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1566
|
-
(d(!0), h(
|
|
1566
|
+
(d(!0), h(I, null, F(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
|
|
1567
1567
|
key: c.id,
|
|
1568
1568
|
block: c,
|
|
1569
1569
|
registeredComponents: e.registeredComponents,
|
|
@@ -1576,9 +1576,9 @@ function go(e, t, n, o, r, i) {
|
|
|
1576
1576
|
], 64))
|
|
1577
1577
|
], 64)) : C("", !0);
|
|
1578
1578
|
}
|
|
1579
|
-
const
|
|
1579
|
+
const It = /* @__PURE__ */ v(bo, [["render", go]]), As = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1580
1580
|
__proto__: null,
|
|
1581
|
-
default:
|
|
1581
|
+
default: It
|
|
1582
1582
|
}, Symbol.toStringTag, { value: "Module" })), yo = y({
|
|
1583
1583
|
name: "builder-blocks-wrapper",
|
|
1584
1584
|
props: [
|
|
@@ -1650,7 +1650,7 @@ const Ct = /* @__PURE__ */ v(bo, [["render", go]]), Ps = /* @__PURE__ */ Object.
|
|
|
1650
1650
|
}
|
|
1651
1651
|
});
|
|
1652
1652
|
function vo(e, t, n, o, r, i) {
|
|
1653
|
-
return d(), S(X(e.BlocksWrapper),
|
|
1653
|
+
return d(), S(X(e.BlocksWrapper), $({
|
|
1654
1654
|
ref: "blocksWrapperRef",
|
|
1655
1655
|
class: e.className + " component-5vz8uirn7sc",
|
|
1656
1656
|
"builder-path": e.dataPath,
|
|
@@ -1668,7 +1668,7 @@ function vo(e, t, n, o, r, i) {
|
|
|
1668
1668
|
}
|
|
1669
1669
|
const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-82fc93d6"]]), ko = y({
|
|
1670
1670
|
name: "builder-blocks",
|
|
1671
|
-
components: { BlocksWrapper: So, Block:
|
|
1671
|
+
components: { BlocksWrapper: So, Block: It },
|
|
1672
1672
|
props: [
|
|
1673
1673
|
"blocks",
|
|
1674
1674
|
"parent",
|
|
@@ -1682,7 +1682,7 @@ const So = /* @__PURE__ */ v(yo, [["render", vo], ["__scopeId", "data-v-82fc93d6
|
|
|
1682
1682
|
],
|
|
1683
1683
|
inject: {
|
|
1684
1684
|
builderContext: ge.key,
|
|
1685
|
-
componentsContext:
|
|
1685
|
+
componentsContext: Ye.key
|
|
1686
1686
|
}
|
|
1687
1687
|
});
|
|
1688
1688
|
function Co(e, t, n, o, r, i) {
|
|
@@ -1699,7 +1699,7 @@ function Co(e, t, n, o, r, i) {
|
|
|
1699
1699
|
}, {
|
|
1700
1700
|
default: x(() => [
|
|
1701
1701
|
N(e.$slots, "default"),
|
|
1702
|
-
e.blocks ? (d(!0), h(
|
|
1702
|
+
e.blocks ? (d(!0), h(I, { key: 0 }, F(e.blocks, (c, m) => {
|
|
1703
1703
|
var b;
|
|
1704
1704
|
return d(), S(s, {
|
|
1705
1705
|
key: c.id,
|
|
@@ -1727,7 +1727,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1727
1727
|
default: te
|
|
1728
1728
|
}, Symbol.toStringTag, { value: "Module" })), pe = y({
|
|
1729
1729
|
render() {
|
|
1730
|
-
return
|
|
1730
|
+
return Qe("style", {
|
|
1731
1731
|
innerHTML: this.styles,
|
|
1732
1732
|
"data-id": this.id,
|
|
1733
1733
|
nonce: this.nonce
|
|
@@ -1735,7 +1735,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1735
1735
|
},
|
|
1736
1736
|
name: "inlined-styles",
|
|
1737
1737
|
props: ["styles", "id", "nonce"]
|
|
1738
|
-
}),
|
|
1738
|
+
}), $t = {
|
|
1739
1739
|
xsmall: {
|
|
1740
1740
|
min: 0,
|
|
1741
1741
|
default: 160,
|
|
@@ -1756,8 +1756,8 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1756
1756
|
default: 991,
|
|
1757
1757
|
max: 1200
|
|
1758
1758
|
}
|
|
1759
|
-
},
|
|
1760
|
-
const t =
|
|
1759
|
+
}, Ps = (e, t = $t) => `@media (max-width: ${t[e].max}px)`, $o = (e) => {
|
|
1760
|
+
const t = $e($t);
|
|
1761
1761
|
if (!e)
|
|
1762
1762
|
return t;
|
|
1763
1763
|
const {
|
|
@@ -1798,7 +1798,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1798
1798
|
name: "builder-columns",
|
|
1799
1799
|
components: {
|
|
1800
1800
|
InlinedStyles: pe,
|
|
1801
|
-
DynamicRenderer:
|
|
1801
|
+
DynamicRenderer: Te,
|
|
1802
1802
|
Blocks: q,
|
|
1803
1803
|
DynamicDiv: te
|
|
1804
1804
|
},
|
|
@@ -1813,7 +1813,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1813
1813
|
"builderComponents"
|
|
1814
1814
|
],
|
|
1815
1815
|
data() {
|
|
1816
|
-
return { TARGET:
|
|
1816
|
+
return { TARGET: R, getColumnsClass: Ro };
|
|
1817
1817
|
},
|
|
1818
1818
|
computed: {
|
|
1819
1819
|
gutterSize() {
|
|
@@ -1929,8 +1929,8 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1929
1929
|
...e.link ? {
|
|
1930
1930
|
href: e.link
|
|
1931
1931
|
} : {},
|
|
1932
|
-
[
|
|
1933
|
-
style:
|
|
1932
|
+
[j()]: "builder-column",
|
|
1933
|
+
style: Tt(this.columnCssVars(t))
|
|
1934
1934
|
};
|
|
1935
1935
|
}
|
|
1936
1936
|
}
|
|
@@ -1938,7 +1938,7 @@ const te = /* @__PURE__ */ v(To, [["render", wo]]), Io = /* @__PURE__ */ Object.
|
|
|
1938
1938
|
function Ao(e, t, n, o, r, i) {
|
|
1939
1939
|
var u;
|
|
1940
1940
|
const s = k("InlinedStyles"), l = k("Blocks"), a = k("DynamicRenderer");
|
|
1941
|
-
return d(), h("div",
|
|
1941
|
+
return d(), h("div", $({
|
|
1942
1942
|
class: e.getColumnsClass((u = e.builderBlock) == null ? void 0 : u.id) + " div-1be3j8m9ewb",
|
|
1943
1943
|
style: e.columnsCssVars()
|
|
1944
1944
|
}, {}), [
|
|
@@ -1948,7 +1948,7 @@ function Ao(e, t, n, o, r, i) {
|
|
|
1948
1948
|
styles: e.columnsStyles(),
|
|
1949
1949
|
nonce: e.builderContext.nonce
|
|
1950
1950
|
}, null, 8, ["styles", "nonce"])) : C("", !0),
|
|
1951
|
-
(d(!0), h(
|
|
1951
|
+
(d(!0), h(I, null, F(e.columns, (p, f) => (d(), S(a, {
|
|
1952
1952
|
key: f,
|
|
1953
1953
|
TagName: e.getTagName(p),
|
|
1954
1954
|
actionAttributes: {},
|
|
@@ -1981,7 +1981,7 @@ function Vo(e, t, n, o, r, i) {
|
|
|
1981
1981
|
]);
|
|
1982
1982
|
}
|
|
1983
1983
|
const No = /* @__PURE__ */ v(Bo, [["render", Vo]]);
|
|
1984
|
-
function
|
|
1984
|
+
function qe(e) {
|
|
1985
1985
|
return e.replace(/http(s)?:/, "");
|
|
1986
1986
|
}
|
|
1987
1987
|
function Wo(e = "", t, n) {
|
|
@@ -1992,11 +1992,11 @@ function Do(e, t) {
|
|
|
1992
1992
|
if (!e || !(e != null && e.match(/cdn\.shopify\.com/)) || !t)
|
|
1993
1993
|
return e;
|
|
1994
1994
|
if (t === "master")
|
|
1995
|
-
return
|
|
1995
|
+
return qe(e);
|
|
1996
1996
|
const n = e.match(/(_\d+x(\d+)?)?(\.(jpg|jpeg|gif|png|bmp|bitmap|tiff|tif)(\?v=\d+)?)/i);
|
|
1997
1997
|
if (n) {
|
|
1998
1998
|
const o = e.split(n[0]), r = n[3], i = t.match("x") ? t : `${t}x`;
|
|
1999
|
-
return
|
|
1999
|
+
return qe(`${o[0]}_${i}${r}`);
|
|
2000
2000
|
}
|
|
2001
2001
|
return null;
|
|
2002
2002
|
}
|
|
@@ -2068,7 +2068,7 @@ const Oo = y({
|
|
|
2068
2068
|
};
|
|
2069
2069
|
function Fo(e, t, n, o, r, i) {
|
|
2070
2070
|
var s, l, a, u, p, f;
|
|
2071
|
-
return d(), h(
|
|
2071
|
+
return d(), h(I, null, [
|
|
2072
2072
|
z("picture", null, [
|
|
2073
2073
|
e.webpSrcSet ? (d(), h("source", {
|
|
2074
2074
|
key: 0,
|
|
@@ -2114,8 +2114,8 @@ const Ho = /* @__PURE__ */ v(Oo, [["render", Fo], ["__scopeId", "data-v-741b9bbc
|
|
|
2114
2114
|
return { filterAttrs: W };
|
|
2115
2115
|
}
|
|
2116
2116
|
});
|
|
2117
|
-
function
|
|
2118
|
-
return d(), h("section",
|
|
2117
|
+
function jo(e, t, n, o, r, i) {
|
|
2118
|
+
return d(), h("section", $({
|
|
2119
2119
|
style: {
|
|
2120
2120
|
width: "100%",
|
|
2121
2121
|
alignSelf: "stretch",
|
|
@@ -2132,7 +2132,7 @@ function Ko(e, t, n, o, r, i) {
|
|
|
2132
2132
|
N(e.$slots, "default")
|
|
2133
2133
|
], 16);
|
|
2134
2134
|
}
|
|
2135
|
-
const
|
|
2135
|
+
const Ko = /* @__PURE__ */ v(Mo, [["render", jo]]);
|
|
2136
2136
|
function qo(e, t, n, o) {
|
|
2137
2137
|
function r(u) {
|
|
2138
2138
|
return typeof u == "string";
|
|
@@ -2351,9 +2351,9 @@ const zo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2351
2351
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2352
2352
|
}
|
|
2353
2353
|
}
|
|
2354
|
-
}`, re = "default", Qo = "filterWithCustomTargeting",
|
|
2354
|
+
}`, re = "default", Qo = "filterWithCustomTargeting", Rt = "builderIoPersonalization", Et = "updateVisibilityStylesScript", At = ["react", "vue", "svelte", "qwik"], Pt = ["vue", "svelte", "qwik"];
|
|
2355
2355
|
function Yo(e, t) {
|
|
2356
|
-
return !(e && e.length > 0) || !t ? !1 :
|
|
2356
|
+
return !(e && e.length > 0) || !t ? !1 : Pt.includes(R) ? !0 : !T();
|
|
2357
2357
|
}
|
|
2358
2358
|
function Xo({
|
|
2359
2359
|
variants: e,
|
|
@@ -2395,9 +2395,9 @@ function Xo({
|
|
|
2395
2395
|
}
|
|
2396
2396
|
const Zo = () => `
|
|
2397
2397
|
window.${Qo} = ${Go}
|
|
2398
|
-
window.${
|
|
2399
|
-
window.${
|
|
2400
|
-
`,
|
|
2398
|
+
window.${Rt} = ${zo}
|
|
2399
|
+
window.${Et} = ${Jo}
|
|
2400
|
+
`, Bt = R === "react", _o = (e, t, n) => `window.${Rt}(${JSON.stringify(e)}, "${t}", ${Bt}${n ? `, "${n}"` : ""})`, er = (e, t, n) => `window.${Et}(${JSON.stringify(e)}, "${t}", ${Bt}${n ? `, "${n}"` : ""})`, me = {
|
|
2401
2401
|
"@type": "@builder.io/sdk:Element",
|
|
2402
2402
|
layerName: "Accordion item title",
|
|
2403
2403
|
responsiveStyles: {
|
|
@@ -2623,7 +2623,7 @@ function ir(e, t, n, o, r, i) {
|
|
|
2623
2623
|
class: "builder-accordion",
|
|
2624
2624
|
style: M(e.accordionStyles)
|
|
2625
2625
|
}, [
|
|
2626
|
-
(d(!0), h(
|
|
2626
|
+
(d(!0), h(I, null, F(e.items, (l, a) => (d(), h(I, { key: a }, [
|
|
2627
2627
|
z("div", {
|
|
2628
2628
|
class: _(e.getAccordionTitleClassName(a)),
|
|
2629
2629
|
style: M({
|
|
@@ -2911,7 +2911,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
2911
2911
|
hidden: !0,
|
|
2912
2912
|
canHaveChildren: !0,
|
|
2913
2913
|
noWrap: !0
|
|
2914
|
-
},
|
|
2914
|
+
}, Ve = ["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"], dr = ["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"], ur = {
|
|
2915
2915
|
name: "Image",
|
|
2916
2916
|
static: !0,
|
|
2917
2917
|
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",
|
|
@@ -2926,7 +2926,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
2926
2926
|
name: "image",
|
|
2927
2927
|
type: "file",
|
|
2928
2928
|
bubble: !0,
|
|
2929
|
-
allowedFileTypes:
|
|
2929
|
+
allowedFileTypes: Ve,
|
|
2930
2930
|
required: !0,
|
|
2931
2931
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2932
2932
|
onChange: (e) => {
|
|
@@ -3059,9 +3059,9 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3059
3059
|
defaultValue: []
|
|
3060
3060
|
}]
|
|
3061
3061
|
}]
|
|
3062
|
-
},
|
|
3062
|
+
}, Ne = y({
|
|
3063
3063
|
render() {
|
|
3064
|
-
return
|
|
3064
|
+
return Qe("script", {
|
|
3065
3065
|
innerHTML: this.scriptStr,
|
|
3066
3066
|
"data-id": this.id,
|
|
3067
3067
|
nonce: this.nonce
|
|
@@ -3074,7 +3074,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3074
3074
|
components: {
|
|
3075
3075
|
Blocks: q,
|
|
3076
3076
|
InlinedStyles: pe,
|
|
3077
|
-
InlinedScript:
|
|
3077
|
+
InlinedScript: Ne
|
|
3078
3078
|
},
|
|
3079
3079
|
props: [
|
|
3080
3080
|
"builderContext",
|
|
@@ -3104,9 +3104,9 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3104
3104
|
G((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
3105
3105
|
),
|
|
3106
3106
|
shouldResetVariants: !1,
|
|
3107
|
-
TARGET:
|
|
3107
|
+
TARGET: R,
|
|
3108
3108
|
DEFAULT_INDEX: re,
|
|
3109
|
-
SDKS_REQUIRING_RESET_APPROACH:
|
|
3109
|
+
SDKS_REQUIRING_RESET_APPROACH: Pt
|
|
3110
3110
|
};
|
|
3111
3111
|
},
|
|
3112
3112
|
mounted() {
|
|
@@ -3117,10 +3117,10 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3117
3117
|
this.userAttributes = n;
|
|
3118
3118
|
},
|
|
3119
3119
|
{
|
|
3120
|
-
fireImmediately:
|
|
3120
|
+
fireImmediately: R === "qwik"
|
|
3121
3121
|
}
|
|
3122
3122
|
);
|
|
3123
|
-
if (!(A() ||
|
|
3123
|
+
if (!(A() || Re())) {
|
|
3124
3124
|
const n = this.filteredVariants[0];
|
|
3125
3125
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
3126
3126
|
new CustomEvent("builder.variantLoaded", {
|
|
@@ -3155,7 +3155,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3155
3155
|
return {
|
|
3156
3156
|
...W(this.attributes, "v-on:", !1),
|
|
3157
3157
|
...W(this.attributes, "v-on:", !0),
|
|
3158
|
-
[
|
|
3158
|
+
[j()]: `builder-personalization-container ${this.attributes[j()] || ""}`
|
|
3159
3159
|
};
|
|
3160
3160
|
},
|
|
3161
3161
|
filteredVariants() {
|
|
@@ -3197,7 +3197,7 @@ const sr = /* @__PURE__ */ v(or, [["render", ir]]), ar = {
|
|
|
3197
3197
|
function hr(e, t, n, o, r, i) {
|
|
3198
3198
|
var u, p, f, c, m, b, g, P, U, V;
|
|
3199
3199
|
const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
|
|
3200
|
-
return d(), h("div",
|
|
3200
|
+
return d(), h("div", $({ ref: "rootRef" }, e.attrs), [
|
|
3201
3201
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
|
|
3202
3202
|
key: 0,
|
|
3203
3203
|
blocks: e.blocksToRender.blocks,
|
|
@@ -3210,8 +3210,8 @@ function hr(e, t, n, o, r, i) {
|
|
|
3210
3210
|
"data-variant-id": `${(f = e.builderBlock) == null ? void 0 : f.id}-${e.blocksToRender.index}`
|
|
3211
3211
|
}
|
|
3212
3212
|
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : C("", !0),
|
|
3213
|
-
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(
|
|
3214
|
-
e.shouldRenderVariants ? (d(), h(
|
|
3213
|
+
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(I, { key: 1 }, [
|
|
3214
|
+
e.shouldRenderVariants ? (d(), h(I, { key: 0 }, [
|
|
3215
3215
|
E(l, {
|
|
3216
3216
|
nonce: ((c = e.builderContext) == null ? void 0 : c.nonce) || "",
|
|
3217
3217
|
styles: e.hideVariantsStyleString,
|
|
@@ -3222,7 +3222,7 @@ function hr(e, t, n, o, r, i) {
|
|
|
3222
3222
|
scriptStr: e.updateVisibilityStylesScript,
|
|
3223
3223
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
3224
3224
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
3225
|
-
(d(!0), h(
|
|
3225
|
+
(d(!0), h(I, null, F(e.variants, (w, D) => {
|
|
3226
3226
|
var J, Q, O, H;
|
|
3227
3227
|
return d(), S(s, {
|
|
3228
3228
|
key: `${(J = e.builderBlock) == null ? void 0 : J.id}-${D}`,
|
|
@@ -3239,12 +3239,12 @@ function hr(e, t, n, o, r, i) {
|
|
|
3239
3239
|
registeredComponents: e.builderComponents
|
|
3240
3240
|
}, {
|
|
3241
3241
|
default: x(() => {
|
|
3242
|
-
var
|
|
3242
|
+
var De, Oe;
|
|
3243
3243
|
return [
|
|
3244
3244
|
E(a, {
|
|
3245
|
-
nonce: ((
|
|
3245
|
+
nonce: ((De = e.builderContext) == null ? void 0 : De.nonce) || "",
|
|
3246
3246
|
scriptStr: e.scriptStr,
|
|
3247
|
-
id: `variants-script-${(
|
|
3247
|
+
id: `variants-script-${(Oe = e.builderBlock) == null ? void 0 : Oe.id}-${D}`
|
|
3248
3248
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
3249
3249
|
];
|
|
3250
3250
|
}),
|
|
@@ -3343,7 +3343,7 @@ const fr = /* @__PURE__ */ v(mr, [["render", hr]]), br = {
|
|
|
3343
3343
|
function vr(e, t, n, o, r, i) {
|
|
3344
3344
|
var l, a, u;
|
|
3345
3345
|
const s = k("Blocks");
|
|
3346
|
-
return d(), h("div",
|
|
3346
|
+
return d(), h("div", $(
|
|
3347
3347
|
{ style: {
|
|
3348
3348
|
pointerEvents: "auto"
|
|
3349
3349
|
} },
|
|
@@ -3581,7 +3581,7 @@ function $r(e, t, n, o, r, i) {
|
|
|
3581
3581
|
overflow: "auto"
|
|
3582
3582
|
})
|
|
3583
3583
|
}, [
|
|
3584
|
-
(d(!0), h(
|
|
3584
|
+
(d(!0), h(I, null, F(e.tabs, (l, a) => (d(), h("span", {
|
|
3585
3585
|
key: a,
|
|
3586
3586
|
class: _(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3587
3587
|
style: M(e.getTabStyle(a)),
|
|
@@ -3788,14 +3788,14 @@ const xr = /* @__PURE__ */ v(Wr, [["render", Or]]), Ur = {
|
|
|
3788
3788
|
}
|
|
3789
3789
|
}
|
|
3790
3790
|
}), Mr = ["innerHTML"];
|
|
3791
|
-
function
|
|
3791
|
+
function jr(e, t, n, o, r, i) {
|
|
3792
3792
|
return d(), h("div", {
|
|
3793
3793
|
class: "builder-embed",
|
|
3794
3794
|
ref: "elem",
|
|
3795
3795
|
innerHTML: e.content
|
|
3796
3796
|
}, null, 8, Mr);
|
|
3797
3797
|
}
|
|
3798
|
-
const
|
|
3798
|
+
const Kr = /* @__PURE__ */ v(Hr, [["render", jr]]), qr = {
|
|
3799
3799
|
name: "Form:Form",
|
|
3800
3800
|
// editableTags: ['builder-form-error']
|
|
3801
3801
|
defaults: {
|
|
@@ -4128,7 +4128,7 @@ const jr = /* @__PURE__ */ v(Hr, [["render", Kr]]), qr = {
|
|
|
4128
4128
|
else {
|
|
4129
4129
|
const c = {};
|
|
4130
4130
|
Array.from(l).forEach(({ value: m, key: b }) => {
|
|
4131
|
-
|
|
4131
|
+
dt(c, b, m);
|
|
4132
4132
|
}), i = JSON.stringify(c);
|
|
4133
4133
|
}
|
|
4134
4134
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -4149,7 +4149,7 @@ const jr = /* @__PURE__ */ v(Hr, [["render", Kr]]), qr = {
|
|
|
4149
4149
|
const p = `${Gr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4150
4150
|
this.sendSubmissionsToEmail || ""
|
|
4151
4151
|
)}&name=${encodeURIComponent(this.name || "")}`, f = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
4152
|
-
|
|
4152
|
+
Ie(f), fetch(f, {
|
|
4153
4153
|
body: i,
|
|
4154
4154
|
headers: r,
|
|
4155
4155
|
method: this.method || "post"
|
|
@@ -4170,7 +4170,7 @@ const jr = /* @__PURE__ */ v(Hr, [["render", Kr]]), qr = {
|
|
|
4170
4170
|
), U.defaultPrevented))
|
|
4171
4171
|
return;
|
|
4172
4172
|
this.responseData = m, this.formState = "error";
|
|
4173
|
-
let V = this.errorMessagePath ?
|
|
4173
|
+
let V = this.errorMessagePath ? Xe(m, this.errorMessagePath) : m.message || m.error || m;
|
|
4174
4174
|
typeof V != "string" && (V = JSON.stringify(V)), this.formErrorMessage = V, this.mergeNewRootState({
|
|
4175
4175
|
formErrorMessage: V
|
|
4176
4176
|
});
|
|
@@ -4214,11 +4214,11 @@ const jr = /* @__PURE__ */ v(Hr, [["render", Kr]]), qr = {
|
|
|
4214
4214
|
}
|
|
4215
4215
|
}), Qr = ["validate", "action", "method", "name"], Yr = {
|
|
4216
4216
|
key: 2,
|
|
4217
|
-
class: "builder-form-error-text pre-
|
|
4217
|
+
class: "builder-form-error-text pre-1hjwvu3r5mj"
|
|
4218
4218
|
};
|
|
4219
4219
|
function Xr(e, t, n, o, r, i) {
|
|
4220
4220
|
const s = k("Blocks");
|
|
4221
|
-
return d(), h("form",
|
|
4221
|
+
return d(), h("form", $({
|
|
4222
4222
|
validate: e.validate,
|
|
4223
4223
|
ref: "formRef",
|
|
4224
4224
|
action: !e.sendWithJs && e.action,
|
|
@@ -4248,7 +4248,7 @@ function Xr(e, t, n, o, r, i) {
|
|
|
4248
4248
|
}, null, 8, ["blocks", "context"])) : C("", !0)
|
|
4249
4249
|
], 16, Qr);
|
|
4250
4250
|
}
|
|
4251
|
-
const Zr = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-
|
|
4251
|
+
const Zr = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-3c8c685f"]]), _r = {
|
|
4252
4252
|
name: "Form:Input",
|
|
4253
4253
|
image: "https://cdn.builder.io/api/v1/image/assets%2FIsxPKMo2gPRRKeakUztj1D6uqed2%2Fad6f37889d9e40bbbbc72cdb5875d6ca",
|
|
4254
4254
|
inputs: [
|
|
@@ -4315,7 +4315,7 @@ const Zr = /* @__PURE__ */ v(Jr, [["render", Xr], ["__scopeId", "data-v-77c7888c
|
|
|
4315
4315
|
}
|
|
4316
4316
|
}), ti = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4317
4317
|
function ni(e, t, n, o, r, i) {
|
|
4318
|
-
return d(), h("input",
|
|
4318
|
+
return d(), h("input", $({
|
|
4319
4319
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4320
4320
|
placeholder: e.placeholder,
|
|
4321
4321
|
type: e.type,
|
|
@@ -4375,14 +4375,14 @@ const oi = /* @__PURE__ */ v(ei, [["render", ni]]), ri = {
|
|
|
4375
4375
|
}
|
|
4376
4376
|
}), si = ["value", "defaultValue", "name", "required"], ai = ["value"];
|
|
4377
4377
|
function li(e, t, n, o, r, i) {
|
|
4378
|
-
return d(), h("select",
|
|
4378
|
+
return d(), h("select", $({
|
|
4379
4379
|
value: e.value,
|
|
4380
4380
|
key: e.isEditing() && e.defaultValue ? e.defaultValue : "default-key",
|
|
4381
4381
|
defaultValue: e.defaultValue,
|
|
4382
4382
|
name: e.name,
|
|
4383
4383
|
required: e.required
|
|
4384
4384
|
}, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4385
|
-
(d(!0), h(
|
|
4385
|
+
(d(!0), h(I, null, F(e.options, (s, l) => (d(), h("option", {
|
|
4386
4386
|
key: `${s.name}-${l}`,
|
|
4387
4387
|
value: s.value
|
|
4388
4388
|
}, de(s.name || s.value), 9, ai))), 128))
|
|
@@ -4421,7 +4421,7 @@ const ci = /* @__PURE__ */ v(ii, [["render", li]]), di = {
|
|
|
4421
4421
|
}
|
|
4422
4422
|
});
|
|
4423
4423
|
function pi(e, t, n, o, r, i) {
|
|
4424
|
-
return d(), h("button",
|
|
4424
|
+
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), de(e.text), 17);
|
|
4425
4425
|
}
|
|
4426
4426
|
const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
|
|
4427
4427
|
name: "Form:TextArea",
|
|
@@ -4474,7 +4474,7 @@ const mi = /* @__PURE__ */ v(ui, [["render", pi]]), hi = {
|
|
|
4474
4474
|
}
|
|
4475
4475
|
}), bi = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4476
4476
|
function gi(e, t, n, o, r, i) {
|
|
4477
|
-
return d(), h("textarea",
|
|
4477
|
+
return d(), h("textarea", $({
|
|
4478
4478
|
placeholder: e.placeholder,
|
|
4479
4479
|
name: e.name,
|
|
4480
4480
|
value: e.value,
|
|
@@ -4490,7 +4490,7 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
|
4490
4490
|
name: "image",
|
|
4491
4491
|
bubble: !0,
|
|
4492
4492
|
type: "file",
|
|
4493
|
-
allowedFileTypes:
|
|
4493
|
+
allowedFileTypes: Ve,
|
|
4494
4494
|
required: !0
|
|
4495
4495
|
}, {
|
|
4496
4496
|
name: "backgroundSize",
|
|
@@ -4551,7 +4551,7 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
|
4551
4551
|
const e = {
|
|
4552
4552
|
...W(this.attributes, "v-on:", !1),
|
|
4553
4553
|
...W(this.attributes, "v-on:", !0),
|
|
4554
|
-
[
|
|
4554
|
+
[j()]: `builder-raw-img ${this.attributes[j()] || ""}`
|
|
4555
4555
|
};
|
|
4556
4556
|
return delete e.style, e;
|
|
4557
4557
|
}
|
|
@@ -4559,7 +4559,7 @@ const yi = /* @__PURE__ */ v(fi, [["render", gi]]), vi = {
|
|
|
4559
4559
|
}), ki = ["alt", "title", "src"];
|
|
4560
4560
|
function Ci(e, t, n, o, r, i) {
|
|
4561
4561
|
var s;
|
|
4562
|
-
return d(), h("img",
|
|
4562
|
+
return d(), h("img", $({
|
|
4563
4563
|
loading: "lazy",
|
|
4564
4564
|
key: e.isEditing() && e.imgSrc || "default-key",
|
|
4565
4565
|
alt: e.altText,
|
|
@@ -4591,7 +4591,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
|
4591
4591
|
}, {
|
|
4592
4592
|
name: "posterImage",
|
|
4593
4593
|
type: "file",
|
|
4594
|
-
allowedFileTypes:
|
|
4594
|
+
allowedFileTypes: Ve,
|
|
4595
4595
|
helperText: "Image to show before the video plays"
|
|
4596
4596
|
}, {
|
|
4597
4597
|
name: "autoPlay",
|
|
@@ -4756,7 +4756,7 @@ const Ti = /* @__PURE__ */ v(Si, [["render", Ci]]), wi = {
|
|
|
4756
4756
|
function Pi(e, t, n, o, r, i) {
|
|
4757
4757
|
var s, l, a, u, p, f, c;
|
|
4758
4758
|
return d(), h("div", $i, [
|
|
4759
|
-
z("video",
|
|
4759
|
+
z("video", $({
|
|
4760
4760
|
class: "builder-video",
|
|
4761
4761
|
ref: "videoRef",
|
|
4762
4762
|
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
@@ -4775,7 +4775,7 @@ function Pi(e, t, n, o, r, i) {
|
|
|
4775
4775
|
},
|
|
4776
4776
|
poster: e.posterImage
|
|
4777
4777
|
}, e.spreadProps), [
|
|
4778
|
-
z("source",
|
|
4778
|
+
z("source", $(
|
|
4779
4779
|
{ type: "video/mp4" },
|
|
4780
4780
|
e.lazyLoad ? {
|
|
4781
4781
|
"data-src": e.video
|
|
@@ -4805,7 +4805,7 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
|
4805
4805
|
component: xr,
|
|
4806
4806
|
...Nr
|
|
4807
4807
|
}, {
|
|
4808
|
-
component:
|
|
4808
|
+
component: Kr,
|
|
4809
4809
|
...Ur
|
|
4810
4810
|
}, {
|
|
4811
4811
|
component: Zr,
|
|
@@ -4828,7 +4828,7 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
|
4828
4828
|
}, {
|
|
4829
4829
|
component: Bi,
|
|
4830
4830
|
...wi
|
|
4831
|
-
}],
|
|
4831
|
+
}], ze = () => [{
|
|
4832
4832
|
component: Ft,
|
|
4833
4833
|
...ar
|
|
4834
4834
|
}, {
|
|
@@ -4841,18 +4841,18 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
|
4841
4841
|
component: Ho,
|
|
4842
4842
|
...ur
|
|
4843
4843
|
}, {
|
|
4844
|
-
component:
|
|
4844
|
+
component: Ko,
|
|
4845
4845
|
...br
|
|
4846
4846
|
}, {
|
|
4847
4847
|
component: Sr,
|
|
4848
4848
|
...gr
|
|
4849
4849
|
}, {
|
|
4850
|
-
component:
|
|
4850
|
+
component: bs,
|
|
4851
4851
|
...kr
|
|
4852
4852
|
}, {
|
|
4853
4853
|
component: Vr,
|
|
4854
4854
|
...Er
|
|
4855
|
-
},
|
|
4855
|
+
}, ...At.includes(R) ? [{
|
|
4856
4856
|
component: fr,
|
|
4857
4857
|
...pr
|
|
4858
4858
|
}] : [], {
|
|
@@ -4954,59 +4954,37 @@ const Bi = /* @__PURE__ */ v(Ii, [["render", Pi]]), Vi = () => [{
|
|
|
4954
4954
|
thisScriptEl?.remove();
|
|
4955
4955
|
}
|
|
4956
4956
|
return;
|
|
4957
|
-
}`,
|
|
4957
|
+
}`, ke = "builderIoAbTest", Ce = "builderIoRenderContent", ie = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4958
4958
|
...t,
|
|
4959
4959
|
testVariationId: t.id,
|
|
4960
4960
|
id: e == null ? void 0 : e.id
|
|
4961
4961
|
})), Di = ({
|
|
4962
4962
|
canTrack: e,
|
|
4963
4963
|
content: t
|
|
4964
|
-
}) => !(!(ie(t).length > 0) || !e), Oi = (e) => e === "react" || e === "reactNative", xi =
|
|
4964
|
+
}) => !(!(ie(t).length > 0) || !e), Oi = (e) => e === "react" || e === "reactNative", xi = R === "angular", We = Oi(R), Ui = () => `
|
|
4965
4965
|
(function() {
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
var observerKey = '__builderioScriptObserver_${e}';
|
|
4969
|
-
|
|
4970
|
-
// Synchronously remove any duplicates already in the DOM
|
|
4971
|
-
var existing = document.querySelectorAll(selector);
|
|
4972
|
-
existing.forEach(function(script, index) {
|
|
4973
|
-
if (index > 0) {
|
|
4974
|
-
script.parentNode && script.parentNode.removeChild(script);
|
|
4975
|
-
}
|
|
4976
|
-
});
|
|
4977
|
-
|
|
4978
|
-
// Watch for duplicates added later (e.g. RSC streaming chunks)
|
|
4979
|
-
if (!window[observerKey] && typeof MutationObserver !== 'undefined') {
|
|
4980
|
-
window[observerKey] = new MutationObserver(function() {
|
|
4981
|
-
var all = document.querySelectorAll(selector);
|
|
4982
|
-
for (var i = 1; i < all.length; i++) {
|
|
4983
|
-
all[i].parentNode && all[i].parentNode.removeChild(all[i]);
|
|
4984
|
-
}
|
|
4985
|
-
});
|
|
4986
|
-
window[observerKey].observe(document.documentElement, { childList: true, subtree: true });
|
|
4987
|
-
}
|
|
4988
|
-
|
|
4989
|
-
if (!window[scriptKey]) {
|
|
4990
|
-
window[scriptKey] = true;
|
|
4991
|
-
${t}
|
|
4966
|
+
if (!window.${ke}) {
|
|
4967
|
+
window.${ke} = ${Ni};
|
|
4992
4968
|
}
|
|
4969
|
+
if (!window.${Ce}) {
|
|
4970
|
+
window.${Ce} = ${Wi};
|
|
4971
|
+
}${We ? `
|
|
4972
|
+
var thisScriptEl = document.currentScript;
|
|
4973
|
+
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
4993
4974
|
})();
|
|
4994
|
-
`, Li = () => `
|
|
4995
|
-
window.${
|
|
4996
|
-
|
|
4997
|
-
`, Fi = (
|
|
4998
|
-
window.${At}(
|
|
4999
|
-
"${t}",${JSON.stringify(e)}, ${Bt}, ${xi}
|
|
5000
|
-
)`, Hi = ({
|
|
4975
|
+
`, Li = (e, t) => `
|
|
4976
|
+
window.${ke}(
|
|
4977
|
+
"${t}",${JSON.stringify(e)}, ${We}, ${xi}
|
|
4978
|
+
)`, Fi = ({
|
|
5001
4979
|
contentId: e,
|
|
5002
4980
|
variationId: t
|
|
5003
|
-
}) => `window.${
|
|
5004
|
-
"${t}", "${e}", ${
|
|
4981
|
+
}) => `window.${Ce}(
|
|
4982
|
+
"${t}", "${e}", ${We}
|
|
5005
4983
|
)`;
|
|
5006
|
-
function
|
|
4984
|
+
function Ge(e) {
|
|
5007
4985
|
return Math.round(e * 1e3) / 1e3;
|
|
5008
4986
|
}
|
|
5009
|
-
const
|
|
4987
|
+
const Hi = (e, t, n = !0) => {
|
|
5010
4988
|
if (!(e instanceof HTMLElement))
|
|
5011
4989
|
return null;
|
|
5012
4990
|
let o = n ? e : e.parentElement;
|
|
@@ -5017,35 +4995,35 @@ const Mi = (e, t, n = !0) => {
|
|
|
5017
4995
|
return o;
|
|
5018
4996
|
} while (o = o.parentElement);
|
|
5019
4997
|
return null;
|
|
5020
|
-
},
|
|
4998
|
+
}, Mi = (e) => Hi(e, (t) => {
|
|
5021
4999
|
const n = t.getAttribute("builder-id") || t.id;
|
|
5022
5000
|
return (n == null ? void 0 : n.indexOf("builder-")) === 0;
|
|
5023
|
-
}),
|
|
5001
|
+
}), Je = ({
|
|
5024
5002
|
event: e,
|
|
5025
5003
|
target: t
|
|
5026
5004
|
}) => {
|
|
5027
|
-
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i =
|
|
5005
|
+
const n = t.getBoundingClientRect(), o = e.clientX - n.left, r = e.clientY - n.top, i = Ge(o / n.width), s = Ge(r / n.height);
|
|
5028
5006
|
return {
|
|
5029
5007
|
x: i,
|
|
5030
5008
|
y: s
|
|
5031
5009
|
};
|
|
5032
5010
|
}, ji = (e) => {
|
|
5033
|
-
const t = e.target, n = t &&
|
|
5011
|
+
const t = e.target, n = t && Mi(t), o = (n == null ? void 0 : n.getAttribute("builder-id")) || (n == null ? void 0 : n.id);
|
|
5034
5012
|
return {
|
|
5035
5013
|
targetBuilderElement: o || void 0,
|
|
5036
5014
|
metadata: {
|
|
5037
|
-
targetOffset: t ?
|
|
5015
|
+
targetOffset: t ? Je({
|
|
5038
5016
|
event: e,
|
|
5039
5017
|
target: t
|
|
5040
5018
|
}) : void 0,
|
|
5041
|
-
builderTargetOffset: n ?
|
|
5019
|
+
builderTargetOffset: n ? Je({
|
|
5042
5020
|
event: e,
|
|
5043
5021
|
target: n
|
|
5044
5022
|
}) : void 0,
|
|
5045
5023
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
5046
5024
|
}
|
|
5047
5025
|
};
|
|
5048
|
-
},
|
|
5026
|
+
}, Ki = ["svelte", "qwik", "vue"], qi = () => Ki.includes(R) && (A() || Re()), zi = (e) => {
|
|
5049
5027
|
var i;
|
|
5050
5028
|
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);
|
|
5051
5029
|
let r = "";
|
|
@@ -5071,15 +5049,15 @@ font-weight: ${s};
|
|
|
5071
5049
|
`.trim());
|
|
5072
5050
|
}
|
|
5073
5051
|
return r;
|
|
5074
|
-
},
|
|
5052
|
+
}, Gi = ({
|
|
5075
5053
|
customFonts: e
|
|
5076
5054
|
}) => {
|
|
5077
5055
|
var t;
|
|
5078
|
-
return ((t = e == null ? void 0 : e.map((n) =>
|
|
5079
|
-
},
|
|
5056
|
+
return ((t = e == null ? void 0 : e.map((n) => zi(n))) == null ? void 0 : t.join(" ")) || "";
|
|
5057
|
+
}, Ji = ({
|
|
5080
5058
|
cssCode: e,
|
|
5081
5059
|
contentId: t
|
|
5082
|
-
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "",
|
|
5060
|
+
}) => e ? t ? (e == null ? void 0 : e.replace(/&/g, `div[builder-content-id="${t}"]`)) || "" : e : "", Qi = `
|
|
5083
5061
|
.builder-button {
|
|
5084
5062
|
all: unset;
|
|
5085
5063
|
}
|
|
@@ -5096,7 +5074,7 @@ font-weight: ${s};
|
|
|
5096
5074
|
text-align: inherit;
|
|
5097
5075
|
font-family: inherit;
|
|
5098
5076
|
}
|
|
5099
|
-
`,
|
|
5077
|
+
`, Yi = (e) => e ? "" : Qi, Xi = (e) => `variant-${e}`, Zi = y({
|
|
5100
5078
|
name: "enable-editor",
|
|
5101
5079
|
components: { DynamicDiv: te },
|
|
5102
5080
|
props: [
|
|
@@ -5127,8 +5105,8 @@ font-weight: ${s};
|
|
|
5127
5105
|
httpReqsPending: {},
|
|
5128
5106
|
clicked: !1,
|
|
5129
5107
|
builderContext: ge,
|
|
5130
|
-
needsElementRefDivForEditing:
|
|
5131
|
-
getWrapperClassName:
|
|
5108
|
+
needsElementRefDivForEditing: qi,
|
|
5109
|
+
getWrapperClassName: Xi
|
|
5132
5110
|
};
|
|
5133
5111
|
},
|
|
5134
5112
|
provide() {
|
|
@@ -5161,7 +5139,7 @@ font-weight: ${s};
|
|
|
5161
5139
|
variationId: r !== s ? r : void 0
|
|
5162
5140
|
});
|
|
5163
5141
|
}
|
|
5164
|
-
|
|
5142
|
+
Re() && !A() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5165
5143
|
new CustomEvent("initpreviewingbldr")
|
|
5166
5144
|
);
|
|
5167
5145
|
}
|
|
@@ -5263,7 +5241,7 @@ font-weight: ${s};
|
|
|
5263
5241
|
this.builderContextSignal.content = n;
|
|
5264
5242
|
},
|
|
5265
5243
|
processMessage(e) {
|
|
5266
|
-
return
|
|
5244
|
+
return ht({
|
|
5267
5245
|
model: this.model,
|
|
5268
5246
|
trustedHosts: this.trustedHosts,
|
|
5269
5247
|
callbacks: {
|
|
@@ -5277,7 +5255,7 @@ font-weight: ${s};
|
|
|
5277
5255
|
});
|
|
5278
5256
|
},
|
|
5279
5257
|
animation: (t) => {
|
|
5280
|
-
|
|
5258
|
+
kt(t);
|
|
5281
5259
|
},
|
|
5282
5260
|
contentUpdate: (t, n) => {
|
|
5283
5261
|
this.mergeNewContent(t, n);
|
|
@@ -5337,7 +5315,7 @@ font-weight: ${s};
|
|
|
5337
5315
|
url: l,
|
|
5338
5316
|
method: "GET"
|
|
5339
5317
|
};
|
|
5340
|
-
|
|
5318
|
+
Ie(JSON.stringify(a));
|
|
5341
5319
|
const u = {
|
|
5342
5320
|
method: a.method,
|
|
5343
5321
|
headers: a.headers,
|
|
@@ -5365,7 +5343,7 @@ font-weight: ${s};
|
|
|
5365
5343
|
"builder:component:stateChange",
|
|
5366
5344
|
{
|
|
5367
5345
|
detail: {
|
|
5368
|
-
state:
|
|
5346
|
+
state: $e(this.builderContextSignal.rootState),
|
|
5369
5347
|
ref: {
|
|
5370
5348
|
name: this.model
|
|
5371
5349
|
}
|
|
@@ -5375,7 +5353,7 @@ font-weight: ${s};
|
|
|
5375
5353
|
);
|
|
5376
5354
|
},
|
|
5377
5355
|
elementRef_onIniteditingbldr(e) {
|
|
5378
|
-
window.addEventListener("message", this.processMessage),
|
|
5356
|
+
window.addEventListener("message", this.processMessage), mt({
|
|
5379
5357
|
...this.locale ? {
|
|
5380
5358
|
locale: this.locale
|
|
5381
5359
|
} : {},
|
|
@@ -5405,7 +5383,7 @@ font-weight: ${s};
|
|
|
5405
5383
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5406
5384
|
`builder.overrides.${n}`
|
|
5407
5385
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5408
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5386
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Pe({
|
|
5409
5387
|
model: this.model,
|
|
5410
5388
|
apiKey: this.apiKey,
|
|
5411
5389
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5420,9 +5398,9 @@ font-weight: ${s};
|
|
|
5420
5398
|
}
|
|
5421
5399
|
}
|
|
5422
5400
|
});
|
|
5423
|
-
function
|
|
5401
|
+
function _i(e, t, n, o, r, i) {
|
|
5424
5402
|
var s, l, a;
|
|
5425
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper),
|
|
5403
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(X(e.ContentWrapper), $({
|
|
5426
5404
|
key: 0,
|
|
5427
5405
|
ref: "elementRef",
|
|
5428
5406
|
onClick: (u) => e.onClick(u),
|
|
@@ -5441,26 +5419,26 @@ function es(e, t, n, o, r, i) {
|
|
|
5441
5419
|
_: 3
|
|
5442
5420
|
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : C("", !0);
|
|
5443
5421
|
}
|
|
5444
|
-
const
|
|
5422
|
+
const es = /* @__PURE__ */ v(Zi, [["render", _i]]), ts = y({
|
|
5445
5423
|
name: "content-styles",
|
|
5446
5424
|
components: { InlinedStyles: pe },
|
|
5447
5425
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5448
5426
|
data() {
|
|
5449
5427
|
return {
|
|
5450
5428
|
injectedStyles: `
|
|
5451
|
-
${
|
|
5429
|
+
${Ji({
|
|
5452
5430
|
cssCode: this.cssCode,
|
|
5453
5431
|
contentId: this.contentId
|
|
5454
5432
|
})}
|
|
5455
|
-
${
|
|
5433
|
+
${Gi({
|
|
5456
5434
|
customFonts: this.customFonts
|
|
5457
5435
|
})}
|
|
5458
|
-
${
|
|
5436
|
+
${Yi(this.isNestedRender)}
|
|
5459
5437
|
`.trim()
|
|
5460
5438
|
};
|
|
5461
5439
|
}
|
|
5462
5440
|
});
|
|
5463
|
-
function
|
|
5441
|
+
function ns(e, t, n, o, r, i) {
|
|
5464
5442
|
const s = k("InlinedStyles");
|
|
5465
5443
|
return d(), S(s, {
|
|
5466
5444
|
id: "builderio-content",
|
|
@@ -5468,7 +5446,7 @@ function os(e, t, n, o, r, i) {
|
|
|
5468
5446
|
nonce: e.nonce
|
|
5469
5447
|
}, null, 8, ["styles", "nonce"]);
|
|
5470
5448
|
}
|
|
5471
|
-
const
|
|
5449
|
+
const os = /* @__PURE__ */ v(ts, [["render", ns]]), rs = ({
|
|
5472
5450
|
content: e,
|
|
5473
5451
|
data: t,
|
|
5474
5452
|
locale: n
|
|
@@ -5485,7 +5463,7 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = ({
|
|
|
5485
5463
|
locale: n
|
|
5486
5464
|
} : {}
|
|
5487
5465
|
};
|
|
5488
|
-
},
|
|
5466
|
+
}, is = ({
|
|
5489
5467
|
content: e,
|
|
5490
5468
|
data: t
|
|
5491
5469
|
}) => e ? {
|
|
@@ -5495,12 +5473,12 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = ({
|
|
|
5495
5473
|
...t
|
|
5496
5474
|
},
|
|
5497
5475
|
meta: e == null ? void 0 : e.meta
|
|
5498
|
-
} : void 0,
|
|
5476
|
+
} : void 0, ss = Nt, as = y({
|
|
5499
5477
|
name: "content-component",
|
|
5500
5478
|
components: {
|
|
5501
|
-
EnableEditor:
|
|
5502
|
-
InlinedScript:
|
|
5503
|
-
ContentStyles:
|
|
5479
|
+
EnableEditor: es,
|
|
5480
|
+
InlinedScript: Ne,
|
|
5481
|
+
ContentStyles: os,
|
|
5504
5482
|
Blocks: q,
|
|
5505
5483
|
DynamicDiv: te
|
|
5506
5484
|
},
|
|
@@ -5530,32 +5508,32 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = ({
|
|
|
5530
5508
|
data() {
|
|
5531
5509
|
var e, t;
|
|
5532
5510
|
return {
|
|
5533
|
-
scriptStr:
|
|
5511
|
+
scriptStr: Fi({
|
|
5534
5512
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5535
5513
|
variationId: (e = this.content) == null ? void 0 : e.testVariationId,
|
|
5536
5514
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion, @typescript-eslint/no-non-null-asserted-optional-chain
|
|
5537
5515
|
contentId: (t = this.content) == null ? void 0 : t.id
|
|
5538
5516
|
}),
|
|
5539
5517
|
registeredComponents: [
|
|
5540
|
-
...
|
|
5518
|
+
...ze(),
|
|
5541
5519
|
...this.customComponents || []
|
|
5542
5520
|
].reduce(
|
|
5543
5521
|
(n, { component: o, ...r }) => ({
|
|
5544
5522
|
...n,
|
|
5545
5523
|
[r.name]: {
|
|
5546
|
-
component:
|
|
5524
|
+
component: ss(o),
|
|
5547
5525
|
...le(r)
|
|
5548
5526
|
}
|
|
5549
5527
|
}),
|
|
5550
5528
|
{}
|
|
5551
5529
|
),
|
|
5552
5530
|
builderContextSignal: {
|
|
5553
|
-
content:
|
|
5531
|
+
content: is({
|
|
5554
5532
|
content: this.content,
|
|
5555
5533
|
data: this.data
|
|
5556
5534
|
}),
|
|
5557
5535
|
localState: void 0,
|
|
5558
|
-
rootState:
|
|
5536
|
+
rootState: rs({
|
|
5559
5537
|
content: this.content,
|
|
5560
5538
|
data: this.data,
|
|
5561
5539
|
locale: this.locale
|
|
@@ -5566,7 +5544,7 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = ({
|
|
|
5566
5544
|
apiKey: this.apiKey,
|
|
5567
5545
|
apiVersion: this.apiVersion,
|
|
5568
5546
|
componentInfos: [
|
|
5569
|
-
...
|
|
5547
|
+
...ze(),
|
|
5570
5548
|
...this.customComponents || []
|
|
5571
5549
|
].reduce(
|
|
5572
5550
|
(n, { component: o, ...r }) => ({
|
|
@@ -5581,13 +5559,13 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = ({
|
|
|
5581
5559
|
nonce: this.nonce || "",
|
|
5582
5560
|
model: this.model
|
|
5583
5561
|
},
|
|
5584
|
-
TARGET:
|
|
5562
|
+
TARGET: R
|
|
5585
5563
|
};
|
|
5586
5564
|
},
|
|
5587
5565
|
provide() {
|
|
5588
5566
|
const e = this;
|
|
5589
5567
|
return {
|
|
5590
|
-
[
|
|
5568
|
+
[Ye.key]: {
|
|
5591
5569
|
registeredComponents: e.registeredComponents
|
|
5592
5570
|
}
|
|
5593
5571
|
};
|
|
@@ -5631,9 +5609,9 @@ const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = ({
|
|
|
5631
5609
|
}
|
|
5632
5610
|
}
|
|
5633
5611
|
});
|
|
5634
|
-
function
|
|
5612
|
+
function ls(e, t, n, o, r, i) {
|
|
5635
5613
|
const s = k("InlinedScript"), l = k("ContentStyles"), a = k("Blocks"), u = k("EnableEditor");
|
|
5636
|
-
return d(), S(u,
|
|
5614
|
+
return d(), S(u, $({
|
|
5637
5615
|
apiHost: e.apiHost,
|
|
5638
5616
|
nonce: e.nonce,
|
|
5639
5617
|
content: e.content,
|
|
@@ -5679,12 +5657,12 @@ function cs(e, t, n, o, r, i) {
|
|
|
5679
5657
|
_: 1
|
|
5680
5658
|
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5681
5659
|
}
|
|
5682
|
-
const
|
|
5660
|
+
const cs = /* @__PURE__ */ v(as, [["render", ls]]), ds = y({
|
|
5683
5661
|
name: "content-variants",
|
|
5684
5662
|
components: {
|
|
5685
|
-
InlinedScript:
|
|
5663
|
+
InlinedScript: Ne,
|
|
5686
5664
|
InlinedStyles: pe,
|
|
5687
|
-
ContentComponent:
|
|
5665
|
+
ContentComponent: cs
|
|
5688
5666
|
},
|
|
5689
5667
|
props: [
|
|
5690
5668
|
"canTrack",
|
|
@@ -5713,12 +5691,11 @@ const ds = /* @__PURE__ */ v(ls, [["render", cs]]), us = y({
|
|
|
5713
5691
|
canTrack: G(this.canTrack),
|
|
5714
5692
|
content: this.content
|
|
5715
5693
|
}),
|
|
5716
|
-
SDKS_SUPPORTING_PERSONALIZATION:
|
|
5694
|
+
SDKS_SUPPORTING_PERSONALIZATION: At,
|
|
5717
5695
|
getInitPersonalizationVariantsFnsScriptString: Zo,
|
|
5718
|
-
TARGET:
|
|
5719
|
-
getInitVariantsFnsScriptString:
|
|
5720
|
-
getVariants: ie
|
|
5721
|
-
removeDuplicateScript: Ui
|
|
5696
|
+
TARGET: R,
|
|
5697
|
+
getInitVariantsFnsScriptString: Ui,
|
|
5698
|
+
getVariants: ie
|
|
5722
5699
|
};
|
|
5723
5700
|
},
|
|
5724
5701
|
mounted() {
|
|
@@ -5726,7 +5703,7 @@ const ds = /* @__PURE__ */ v(ls, [["render", cs]]), us = y({
|
|
|
5726
5703
|
computed: {
|
|
5727
5704
|
updateCookieAndStylesScriptStr() {
|
|
5728
5705
|
var e;
|
|
5729
|
-
return
|
|
5706
|
+
return Li(
|
|
5730
5707
|
ie(this.content).map((t) => ({
|
|
5731
5708
|
id: t.testVariationId,
|
|
5732
5709
|
testRatio: t.testRatio
|
|
@@ -5749,28 +5726,23 @@ const ds = /* @__PURE__ */ v(ls, [["render", cs]]), us = y({
|
|
|
5749
5726
|
}
|
|
5750
5727
|
}
|
|
5751
5728
|
});
|
|
5752
|
-
function
|
|
5729
|
+
function us(e, t, n, o, r, i) {
|
|
5753
5730
|
const s = k("InlinedScript"), l = k("InlinedStyles"), a = k("ContentComponent");
|
|
5754
|
-
return d(), h(
|
|
5755
|
-
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(),
|
|
5756
|
-
|
|
5757
|
-
|
|
5758
|
-
|
|
5759
|
-
"
|
|
5760
|
-
e.
|
|
5761
|
-
),
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
|
|
5767
|
-
|
|
5768
|
-
scriptStr
|
|
5769
|
-
"builderio-init-personalization-variants-fns",
|
|
5770
|
-
e.getInitPersonalizationVariantsFnsScriptString()
|
|
5771
|
-
)
|
|
5772
|
-
}, null, 8, ["nonce", "scriptStr"])) : C("", !0),
|
|
5773
|
-
e.shouldRenderVariants ? (d(), h(R, { key: 2 }, [
|
|
5731
|
+
return d(), h(I, null, [
|
|
5732
|
+
!e.isNestedRender && e.TARGET !== "reactNative" ? (d(), h(I, { key: 0 }, [
|
|
5733
|
+
e.SDKS_SUPPORTING_PERSONALIZATION.includes(e.TARGET) ? (d(), S(s, {
|
|
5734
|
+
key: 0,
|
|
5735
|
+
id: "builderio-init-personalization-variants-fns",
|
|
5736
|
+
nonce: e.nonce || "",
|
|
5737
|
+
scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
|
|
5738
|
+
}, null, 8, ["nonce", "scriptStr"])) : C("", !0)
|
|
5739
|
+
], 64)) : C("", !0),
|
|
5740
|
+
e.shouldRenderVariants ? (d(), h(I, { key: 1 }, [
|
|
5741
|
+
E(s, {
|
|
5742
|
+
id: "builderio-init-variants-fns",
|
|
5743
|
+
scriptStr: e.getInitVariantsFnsScriptString(),
|
|
5744
|
+
nonce: e.nonce || ""
|
|
5745
|
+
}, null, 8, ["scriptStr", "nonce"]),
|
|
5774
5746
|
E(l, {
|
|
5775
5747
|
id: "builderio-variants",
|
|
5776
5748
|
styles: e.hideVariantsStyleString,
|
|
@@ -5781,7 +5753,7 @@ function ps(e, t, n, o, r, i) {
|
|
|
5781
5753
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5782
5754
|
nonce: e.nonce || ""
|
|
5783
5755
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5784
|
-
(d(!0), h(
|
|
5756
|
+
(d(!0), h(I, null, F(e.getVariants(e.content), (u, p) => (d(), S(a, $({
|
|
5785
5757
|
key: u.testVariationId,
|
|
5786
5758
|
apiHost: e.apiHost,
|
|
5787
5759
|
isNestedRender: e.isNestedRender,
|
|
@@ -5806,7 +5778,7 @@ function ps(e, t, n, o, r, i) {
|
|
|
5806
5778
|
trustedHosts: e.trustedHosts
|
|
5807
5779
|
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
5808
5780
|
], 64)) : C("", !0),
|
|
5809
|
-
E(a,
|
|
5781
|
+
E(a, $({
|
|
5810
5782
|
apiHost: e.apiHost,
|
|
5811
5783
|
nonce: e.nonce,
|
|
5812
5784
|
isNestedRender: e.isNestedRender,
|
|
@@ -5833,13 +5805,13 @@ function ps(e, t, n, o, r, i) {
|
|
|
5833
5805
|
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5834
5806
|
], 64);
|
|
5835
5807
|
}
|
|
5836
|
-
const
|
|
5808
|
+
const ps = /* @__PURE__ */ v(ds, [["render", us]]), ms = async ({
|
|
5837
5809
|
builderContextValue: e,
|
|
5838
5810
|
symbol: t
|
|
5839
5811
|
}) => {
|
|
5840
5812
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5841
5813
|
(e != null && e.apiKey))
|
|
5842
|
-
return
|
|
5814
|
+
return Pe({
|
|
5843
5815
|
model: t.model,
|
|
5844
5816
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5845
5817
|
apiVersion: e.apiVersion,
|
|
@@ -5851,9 +5823,9 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = async ({
|
|
|
5851
5823
|
}).catch((n) => {
|
|
5852
5824
|
B.error("Could not fetch symbol content: ", n);
|
|
5853
5825
|
});
|
|
5854
|
-
},
|
|
5826
|
+
}, hs = y({
|
|
5855
5827
|
name: "builder-symbol",
|
|
5856
|
-
components: { ContentVariants:
|
|
5828
|
+
components: { ContentVariants: ps, DynamicDiv: te },
|
|
5857
5829
|
props: [
|
|
5858
5830
|
"symbol",
|
|
5859
5831
|
"builderComponents",
|
|
@@ -5895,7 +5867,7 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = async ({
|
|
|
5895
5867
|
className() {
|
|
5896
5868
|
var e, t;
|
|
5897
5869
|
return [
|
|
5898
|
-
this.attributes[
|
|
5870
|
+
this.attributes[j()],
|
|
5899
5871
|
"builder-symbol",
|
|
5900
5872
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
5901
5873
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -5910,7 +5882,7 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = async ({
|
|
|
5910
5882
|
methods: {
|
|
5911
5883
|
setContent() {
|
|
5912
5884
|
var e;
|
|
5913
|
-
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) ||
|
|
5885
|
+
this.contentToUse && this.symbolEntry === ((e = this.symbol) == null ? void 0 : e.entry) || ms({
|
|
5914
5886
|
symbol: this.symbol,
|
|
5915
5887
|
builderContextValue: this.builderContext
|
|
5916
5888
|
}).then((t) => {
|
|
@@ -5920,10 +5892,10 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = async ({
|
|
|
5920
5892
|
}
|
|
5921
5893
|
}
|
|
5922
5894
|
});
|
|
5923
|
-
function
|
|
5895
|
+
function fs(e, t, n, o, r, i) {
|
|
5924
5896
|
var l, a, u, p, f, c, m;
|
|
5925
5897
|
const s = k("ContentVariants");
|
|
5926
|
-
return d(), h("div",
|
|
5898
|
+
return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, L(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5927
5899
|
E(s, {
|
|
5928
5900
|
nonce: e.builderContext.nonce,
|
|
5929
5901
|
isNestedRender: !0,
|
|
@@ -5948,47 +5920,47 @@ function bs(e, t, n, o, r, i) {
|
|
|
5948
5920
|
}, null, 8, ["nonce", "apiVersion", "apiKey", "context", "customComponents", "data", "canTrack", "model", "content", "linkComponent", "blocksWrapper", "contentWrapper"])
|
|
5949
5921
|
], 16);
|
|
5950
5922
|
}
|
|
5951
|
-
const
|
|
5923
|
+
const bs = /* @__PURE__ */ v(hs, [["render", fs]]);
|
|
5952
5924
|
export {
|
|
5953
|
-
|
|
5954
|
-
|
|
5925
|
+
ws as A,
|
|
5926
|
+
It as B,
|
|
5955
5927
|
Po as C,
|
|
5956
|
-
|
|
5928
|
+
$s as D,
|
|
5957
5929
|
Qn as E,
|
|
5958
5930
|
No as F,
|
|
5959
5931
|
Yn as G,
|
|
5960
|
-
|
|
5932
|
+
Pe as H,
|
|
5961
5933
|
Ho as I,
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5934
|
+
vs as J,
|
|
5935
|
+
As as K,
|
|
5936
|
+
Ko as S,
|
|
5937
|
+
R as T,
|
|
5966
5938
|
Bi as V,
|
|
5967
5939
|
v as _,
|
|
5968
|
-
|
|
5940
|
+
j as a,
|
|
5969
5941
|
ge as b,
|
|
5970
5942
|
pe as c,
|
|
5971
|
-
|
|
5943
|
+
K as d,
|
|
5972
5944
|
ee as e,
|
|
5973
5945
|
$o as f,
|
|
5974
|
-
|
|
5975
|
-
|
|
5946
|
+
Es as g,
|
|
5947
|
+
Rs as h,
|
|
5976
5948
|
A as i,
|
|
5977
|
-
|
|
5978
|
-
|
|
5949
|
+
Ps as j,
|
|
5950
|
+
Be as k,
|
|
5979
5951
|
Rn as l,
|
|
5980
5952
|
Ft as m,
|
|
5981
|
-
|
|
5953
|
+
bs as n,
|
|
5982
5954
|
Vr as o,
|
|
5983
5955
|
q as p,
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5956
|
+
ps as q,
|
|
5957
|
+
Re as r,
|
|
5958
|
+
Is as s,
|
|
5987
5959
|
En as t,
|
|
5988
|
-
|
|
5989
|
-
|
|
5990
|
-
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5960
|
+
ks as u,
|
|
5961
|
+
Cs as v,
|
|
5962
|
+
ss as w,
|
|
5963
|
+
Ts as x,
|
|
5964
|
+
ut as y,
|
|
5965
|
+
Ss as z
|
|
5994
5966
|
};
|