@builder.io/sdk-vue 5.2.10 → 5.2.11
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-LIAqEcfX.cjs → awaiter-MAyQwJUp.cjs} +1 -1
- package/lib/browser/{awaiter-NXhCBvJj.js → awaiter-quz2SFrg.js} +1 -1
- package/lib/browser/{block-wrapper-sJgW-hxB.js → block-wrapper-SCckT0M5.js} +3 -3
- package/lib/browser/{block-wrapper-Gx5cmGCs.cjs → block-wrapper-vBu_Ygm8.cjs} +1 -1
- package/lib/browser/{component-ref-glX9-8fW.cjs → component-ref-HWBSC66Y.cjs} +1 -1
- package/lib/browser/{component-ref-3CB2cdJW.js → component-ref-owc3e0h8.js} +4 -4
- package/lib/browser/components/content/components/enable-editor.vue.d.ts +3 -0
- package/lib/browser/components/content/content.vue.d.ts +3 -0
- package/lib/browser/components/content-variants/content-variants.types.d.ts +8 -0
- package/lib/browser/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/functions/get-content/types.d.ts +27 -0
- package/lib/browser/{get-block-properties-Ejar3KRa.js → get-block-properties-Hny6jqGG.js} +1 -1
- package/lib/browser/{get-block-properties-hkrxv2Yw.cjs → get-block-properties-odFddSWh.cjs} +1 -1
- package/lib/browser/{index-bjZ2qhB0.js → index-7bXAC1Q8.js} +442 -432
- package/lib/browser/index-uDRmkrr4.cjs +350 -0
- package/lib/browser/index.cjs +1 -1
- package/lib/browser/index.mjs +1 -1
- package/lib/browser/{live-edit-Sfr-FIGs.cjs → live-edit-AUagAEej.cjs} +1 -1
- package/lib/browser/{live-edit-BGWSQRf6.js → live-edit-x4eHrcJh.js} +1 -1
- package/lib/browser/{repeated-block-y2NflOf1.cjs → repeated-block-ZGXPYgA8.cjs} +1 -1
- package/lib/browser/{repeated-block-ECd9zh7f.js → repeated-block-uVi8A50N.js} +2 -2
- package/lib/browser/scripts/init-editing.d.ts +2 -0
- package/lib/browser/{style-wrapper-PR2ys7tw.cjs → style-wrapper-C_c9B5_Y.cjs} +1 -1
- package/lib/browser/{style-wrapper-9OtEbIRY.js → style-wrapper-usFESjt5.js} +1 -1
- package/lib/edge/{awaiter-Rk0bT_z6.js → awaiter-RSfMls5f.js} +1 -1
- package/lib/edge/{awaiter-NONmvwQ6.cjs → awaiter-zow2zgzw.cjs} +1 -1
- package/lib/{node/block-wrapper-ZBxys5Pi.cjs → edge/block-wrapper-4qKpWsP8.cjs} +1 -1
- package/lib/edge/{block-wrapper-bLEVePe1.js → block-wrapper-GT2d4luN.js} +3 -3
- package/lib/edge/{component-ref-wRsXuO0w.js → component-ref-1iPK0xOE.js} +4 -4
- package/lib/edge/{component-ref-hvv1-QnL.cjs → component-ref-WdOIbmOU.cjs} +1 -1
- package/lib/edge/components/content/components/enable-editor.vue.d.ts +3 -0
- package/lib/edge/components/content/content.vue.d.ts +3 -0
- package/lib/edge/components/content-variants/content-variants.types.d.ts +8 -0
- package/lib/edge/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/functions/get-content/types.d.ts +27 -0
- package/lib/edge/{get-block-properties-Z_smIxVv.cjs → get-block-properties-2E03ld67.cjs} +1 -1
- package/lib/edge/{get-block-properties-kcXTpefp.js → get-block-properties-bMVCvUX0.js} +1 -1
- package/lib/edge/{index-jT889Kr4.js → index-Bgm0yCrN.js} +1001 -991
- package/lib/edge/index-LWGIJNVx.cjs +368 -0
- package/lib/edge/index.cjs +1 -1
- package/lib/edge/index.mjs +1 -1
- package/lib/{node/live-edit-T7SWvgRt.cjs → edge/live-edit-oLYhcuYs.cjs} +1 -1
- package/lib/{node/live-edit-7Qru52il.js → edge/live-edit-tegdYGJO.js} +1 -1
- package/lib/edge/{repeated-block-ocRd-7Ri.cjs → repeated-block--MhEsXmR.cjs} +1 -1
- package/lib/edge/{repeated-block-XfL9MY4H.js → repeated-block-yZJM5I60.js} +2 -2
- package/lib/edge/scripts/init-editing.d.ts +2 -0
- package/lib/edge/{style-wrapper-TUi2oGU5.cjs → style-wrapper-8JiLG-FF.cjs} +1 -1
- package/lib/edge/{style-wrapper-cgk8YrFm.js → style-wrapper-i8R7NpdY.js} +1 -1
- package/lib/node/{awaiter-d876EVrj.cjs → awaiter-Vwjft2v-.cjs} +1 -1
- package/lib/node/{awaiter-ooRB0LL_.js → awaiter-o3ynOQKr.js} +1 -1
- package/lib/{edge/block-wrapper-uQolhWhZ.cjs → node/block-wrapper-KX1-Y2Oq.cjs} +1 -1
- package/lib/node/{block-wrapper-heMQ0bQW.js → block-wrapper-PUFgSKq_.js} +3 -3
- package/lib/node/{component-ref-w7KWdZU9.js → component-ref-HmJKie9z.js} +5 -5
- package/lib/node/{component-ref-HjW6Dn5U.cjs → component-ref-o3vjSyAQ.cjs} +1 -1
- package/lib/node/components/content/components/enable-editor.vue.d.ts +3 -0
- package/lib/node/components/content/content.vue.d.ts +3 -0
- package/lib/node/components/content-variants/content-variants.types.d.ts +8 -0
- package/lib/node/components/content-variants/content-variants.vue.d.ts +3 -0
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/functions/get-content/types.d.ts +27 -0
- package/lib/node/{get-block-properties-G6DNp62v.cjs → get-block-properties-2yGkQVh7.cjs} +1 -1
- package/lib/node/{get-block-properties-kLYkiFmS.js → get-block-properties-DGfMhs4M.js} +2 -2
- package/lib/node/index-7xT7wMXt.cjs +350 -0
- package/lib/node/{index-quPzSfMY.js → index-JQgNoVXs.js} +392 -382
- 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-UREQGwDx.js → node/live-edit-hxNZMHld.js} +1 -1
- package/lib/{edge/live-edit-euz6qyjO.cjs → node/live-edit-xPik2aUh.cjs} +1 -1
- package/lib/node/{repeated-block-iHvrQwik.cjs → repeated-block-LHiXlO3e.cjs} +1 -1
- package/lib/node/{repeated-block-h_P0vHI5.js → repeated-block-PvGSbsHD.js} +2 -2
- package/lib/node/scripts/init-editing.d.ts +2 -0
- package/lib/node/{should-force-browser-runtime-in-node-ovD5c_br.cjs → should-force-browser-runtime-in-node-aeKfQiEQ.cjs} +1 -1
- package/lib/node/{should-force-browser-runtime-in-node-cuIgr-IV.js → should-force-browser-runtime-in-node-ooRgTwqs.js} +1 -1
- package/lib/node/{style-wrapper-arJdhPdR.cjs → style-wrapper-3l8xaVr4.cjs} +1 -1
- package/lib/node/{style-wrapper-MI0wKmtS.js → style-wrapper-U-7exIwN.js} +2 -2
- package/package.json +1 -1
- package/lib/browser/index-SRaav2aL.cjs +0 -350
- package/lib/edge/index-TqjgraOe.cjs +0 -368
- package/lib/node/index-a8iqYi5t.cjs +0 -350
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./style.css";
|
|
2
|
-
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as
|
|
2
|
+
import { defineComponent as y, openBlock as d, createElementBlock as h, Fragment as I, createBlock as S, resolveDynamicComponent as Z, mergeProps as $, toHandlers as U, withCtx as D, renderSlot as N, resolveComponent as k, createTextVNode as Ot, toDisplayString as ue, defineAsyncComponent as X, createVNode as R, renderList as L, createCommentVNode as T, h as _e, createElementVNode as G, normalizeStyle as H, normalizeClass as ee, markRaw as Wt } from "vue";
|
|
3
3
|
const Dt = /* @__PURE__ */ new Set(["area", "base", "br", "col", "embed", "hr", "img", "input", "keygen", "link", "meta", "param", "source", "track", "wbr"]), xt = (e) => typeof e == "string" && Dt.has(e.toLowerCase());
|
|
4
|
-
function
|
|
4
|
+
function O(e = {}, t, n) {
|
|
5
5
|
const o = {};
|
|
6
6
|
for (const r in e) {
|
|
7
7
|
if (!e[r] || n && !r.startsWith(t))
|
|
@@ -24,24 +24,24 @@ const Ut = y({
|
|
|
24
24
|
return n;
|
|
25
25
|
};
|
|
26
26
|
function Lt(e, t, n, o, r, i) {
|
|
27
|
-
return e.isEmptyElement(e.TagName) ? (d(), S(
|
|
28
|
-
typeof e.TagName == "string" ? (d(), S(
|
|
29
|
-
default:
|
|
27
|
+
return e.isEmptyElement(e.TagName) ? (d(), S(Z(e.TagName), $({ key: 1 }, e.attributes, U(e.actionAttributes)), null, 16)) : (d(), h(I, { key: 0 }, [
|
|
28
|
+
typeof e.TagName == "string" ? (d(), S(Z(e.TagName), $({ key: 0 }, e.attributes, U(e.actionAttributes)), {
|
|
29
|
+
default: D(() => [
|
|
30
30
|
N(e.$slots, "default")
|
|
31
31
|
]),
|
|
32
32
|
_: 3
|
|
33
|
-
}, 16)) : (d(), S(
|
|
34
|
-
default:
|
|
33
|
+
}, 16)) : (d(), S(Z(e.TagName), $({ key: 1 }, e.attributes, U(e.actionAttributes)), {
|
|
34
|
+
default: D(() => [
|
|
35
35
|
N(e.$slots, "default")
|
|
36
36
|
]),
|
|
37
37
|
_: 3
|
|
38
38
|
}, 16))
|
|
39
39
|
], 64));
|
|
40
40
|
}
|
|
41
|
-
const
|
|
41
|
+
const Ee = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ts = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
42
42
|
__proto__: null,
|
|
43
|
-
default:
|
|
44
|
-
}, Symbol.toStringTag, { value: "Module" })), E = "vue",
|
|
43
|
+
default: Ee
|
|
44
|
+
}, Symbol.toStringTag, { value: "Module" })), E = "vue", M = () => {
|
|
45
45
|
switch (E) {
|
|
46
46
|
case "react":
|
|
47
47
|
case "reactNative":
|
|
@@ -56,7 +56,7 @@ const $e = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ts = /* @__PURE__ */ Object.
|
|
|
56
56
|
}
|
|
57
57
|
}, Ft = y({
|
|
58
58
|
name: "builder-button",
|
|
59
|
-
components: { DynamicRenderer:
|
|
59
|
+
components: { DynamicRenderer: Ee },
|
|
60
60
|
props: [
|
|
61
61
|
"attributes",
|
|
62
62
|
"link",
|
|
@@ -65,13 +65,13 @@ const $e = /* @__PURE__ */ v(Ut, [["render", Lt]]), Ts = /* @__PURE__ */ Object.
|
|
|
65
65
|
"text"
|
|
66
66
|
],
|
|
67
67
|
data() {
|
|
68
|
-
return { filterAttrs:
|
|
68
|
+
return { filterAttrs: O };
|
|
69
69
|
},
|
|
70
70
|
methods: {
|
|
71
71
|
attrs() {
|
|
72
72
|
return {
|
|
73
|
-
...
|
|
74
|
-
[
|
|
73
|
+
...O(this.attributes, "v-on:", !1),
|
|
74
|
+
[M()]: `${this.link ? "" : "builder-button"} ${this.attributes[M()] || ""}`,
|
|
75
75
|
...this.link ? {
|
|
76
76
|
href: this.link,
|
|
77
77
|
target: this.openLinkInNewTab ? "_blank" : void 0,
|
|
@@ -90,13 +90,13 @@ function Ht(e, t, n, o, r, i) {
|
|
|
90
90
|
TagName: e.link ? e.builderLinkComponent || "a" : "button",
|
|
91
91
|
actionAttributes: e.filterAttrs(e.attributes, "v-on:", !0)
|
|
92
92
|
}, {
|
|
93
|
-
default:
|
|
94
|
-
|
|
93
|
+
default: D(() => [
|
|
94
|
+
Ot(ue(e.text), 1)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["attributes", "TagName", "actionAttributes"]);
|
|
98
98
|
}
|
|
99
|
-
const Mt = /* @__PURE__ */ v(Ft, [["render", Ht]]), jt = Symbol(),
|
|
99
|
+
const Mt = /* @__PURE__ */ v(Ft, [["render", Ht]]), jt = Symbol(), ye = {
|
|
100
100
|
Builder: {
|
|
101
101
|
content: null,
|
|
102
102
|
context: {},
|
|
@@ -117,16 +117,16 @@ const Mt = /* @__PURE__ */ v(Ft, [["render", Ht]]), jt = Symbol(), ge = {
|
|
|
117
117
|
}, zt = Symbol(), et = {
|
|
118
118
|
Components: { registeredComponents: {} },
|
|
119
119
|
key: zt
|
|
120
|
-
},
|
|
121
|
-
log: (...e) => console.log(
|
|
122
|
-
error: (...e) => console.error(
|
|
123
|
-
warn: (...e) => console.warn(
|
|
124
|
-
debug: (...e) => console.debug(
|
|
120
|
+
}, oe = "[Builder.io]: ", B = {
|
|
121
|
+
log: (...e) => console.log(oe, ...e),
|
|
122
|
+
error: (...e) => console.error(oe, ...e),
|
|
123
|
+
warn: (...e) => console.warn(oe, ...e),
|
|
124
|
+
debug: (...e) => console.debug(oe, ...e)
|
|
125
125
|
}, tt = (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
|
-
function
|
|
129
|
+
function w() {
|
|
130
130
|
return typeof window < "u" && typeof document < "u";
|
|
131
131
|
}
|
|
132
132
|
const Kt = (e) => {
|
|
@@ -136,14 +136,14 @@ const Kt = (e) => {
|
|
|
136
136
|
}), t;
|
|
137
137
|
}, nt = (e) => e instanceof URLSearchParams ? Kt(e) : e, ot = (e) => typeof e == "string" ? e : e instanceof URLSearchParams ? e.toString() : new URLSearchParams(e).toString();
|
|
138
138
|
function qt() {
|
|
139
|
-
return
|
|
139
|
+
return w() && window.self !== window.top;
|
|
140
140
|
}
|
|
141
141
|
function P(e) {
|
|
142
142
|
return qt() && // accessing window.location.search is safe here because `isIframe()` is only `true` if we're in a browser.
|
|
143
143
|
ot(e || window.location.search).indexOf("builder.frameEditing=") !== -1;
|
|
144
144
|
}
|
|
145
145
|
const Gt = () => {
|
|
146
|
-
if (
|
|
146
|
+
if (w()) {
|
|
147
147
|
const e = new URL(location.href);
|
|
148
148
|
return e.pathname === "" && (e.pathname = "/"), e;
|
|
149
149
|
} else
|
|
@@ -174,16 +174,16 @@ const Gt = () => {
|
|
|
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
|
-
}, it = "5.2.
|
|
177
|
+
}, it = "5.2.11", st = () => ({
|
|
178
178
|
"X-Builder-SDK": E,
|
|
179
179
|
"X-Builder-SDK-GEN": "2",
|
|
180
180
|
"X-Builder-SDK-Version": it
|
|
181
|
-
}),
|
|
181
|
+
}), j = (e) => e != null, Qt = (e) => {
|
|
182
182
|
if (e === "localhost" || e === "127.0.0.1")
|
|
183
183
|
return e;
|
|
184
184
|
const t = e.split(".");
|
|
185
185
|
return t.length > 2 ? t.slice(1).join(".") : e;
|
|
186
|
-
},
|
|
186
|
+
}, pe = ({
|
|
187
187
|
name: e,
|
|
188
188
|
canTrack: t
|
|
189
189
|
}) => {
|
|
@@ -194,14 +194,14 @@ const Gt = () => {
|
|
|
194
194
|
B.warn("[COOKIE] GET error: ", (o == null ? void 0 : o.message) || o);
|
|
195
195
|
return;
|
|
196
196
|
}
|
|
197
|
-
}, at = async (e) =>
|
|
197
|
+
}, at = async (e) => pe(e), Yt = (e) => e.map(([t, n]) => n ? `${t}=${n}` : t).filter(j).join("; "), Xt = [["secure", ""], ["SameSite", "None"]], Zt = ({
|
|
198
198
|
name: e,
|
|
199
199
|
value: t,
|
|
200
200
|
expires: n
|
|
201
201
|
}) => {
|
|
202
|
-
const r = (
|
|
202
|
+
const r = (w() ? location.protocol === "https:" : !0) ? Xt : [[]], i = n ? [["expires", n.toUTCString()]] : [[]], s = [[e, t], ...i, ["path", "/"], ["domain", Qt(window.location.hostname)], ...r];
|
|
203
203
|
return Yt(s);
|
|
204
|
-
},
|
|
204
|
+
}, Re = async ({
|
|
205
205
|
name: e,
|
|
206
206
|
value: t,
|
|
207
207
|
expires: n,
|
|
@@ -238,7 +238,7 @@ const ct = "builderSessionId", en = async ({
|
|
|
238
238
|
name: ct,
|
|
239
239
|
canTrack: e
|
|
240
240
|
});
|
|
241
|
-
if (
|
|
241
|
+
if (j(t))
|
|
242
242
|
return t;
|
|
243
243
|
{
|
|
244
244
|
const n = tn();
|
|
@@ -250,11 +250,11 @@ const ct = "builderSessionId", en = async ({
|
|
|
250
250
|
}, tn = () => lt(), nn = ({
|
|
251
251
|
id: e,
|
|
252
252
|
canTrack: t
|
|
253
|
-
}) =>
|
|
253
|
+
}) => Re({
|
|
254
254
|
name: ct,
|
|
255
255
|
value: e,
|
|
256
256
|
canTrack: t
|
|
257
|
-
}), dt = () =>
|
|
257
|
+
}), dt = () => w() && typeof localStorage < "u" ? localStorage : void 0, on = ({
|
|
258
258
|
key: e,
|
|
259
259
|
canTrack: t
|
|
260
260
|
}) => {
|
|
@@ -285,7 +285,7 @@ const ct = "builderSessionId", en = async ({
|
|
|
285
285
|
key: ut,
|
|
286
286
|
canTrack: e
|
|
287
287
|
});
|
|
288
|
-
if (
|
|
288
|
+
if (j(t))
|
|
289
289
|
return t;
|
|
290
290
|
{
|
|
291
291
|
const n = an();
|
|
@@ -302,7 +302,7 @@ const ct = "builderSessionId", en = async ({
|
|
|
302
302
|
value: e,
|
|
303
303
|
canTrack: t
|
|
304
304
|
});
|
|
305
|
-
function
|
|
305
|
+
function Pe(e) {
|
|
306
306
|
var t;
|
|
307
307
|
typeof process < "u" && ((t = process.env) != null && t.DEBUG) && String(process.env.DEBUG) == "true" && B.log(e);
|
|
308
308
|
}
|
|
@@ -344,7 +344,7 @@ const cn = async ({
|
|
|
344
344
|
ownerId: n
|
|
345
345
|
}
|
|
346
346
|
});
|
|
347
|
-
async function
|
|
347
|
+
async function ae({
|
|
348
348
|
apiHost: e,
|
|
349
349
|
...t
|
|
350
350
|
}) {
|
|
@@ -352,10 +352,10 @@ 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 || P() || !(
|
|
355
|
+
if (!t.canTrack || P() || !(w() || E === "reactNative"))
|
|
356
356
|
return;
|
|
357
357
|
const o = `${e || "https://cdn.builder.io"}/api/v1/track`;
|
|
358
|
-
return
|
|
358
|
+
return Pe(o), fetch(o, {
|
|
359
359
|
method: "POST",
|
|
360
360
|
body: JSON.stringify({
|
|
361
361
|
events: [await dn(t)]
|
|
@@ -369,7 +369,7 @@ async function se({
|
|
|
369
369
|
console.error("Failed to track: ", r);
|
|
370
370
|
});
|
|
371
371
|
}
|
|
372
|
-
const ws = (e) =>
|
|
372
|
+
const ws = (e) => ae({
|
|
373
373
|
...e,
|
|
374
374
|
canTrack: !0
|
|
375
375
|
}), un = ({
|
|
@@ -386,11 +386,11 @@ const ws = (e) => se({
|
|
|
386
386
|
event: n
|
|
387
387
|
}), pn = (e) => ({
|
|
388
388
|
isEditing: P(),
|
|
389
|
-
isBrowser:
|
|
390
|
-
isServer: !
|
|
389
|
+
isBrowser: w(),
|
|
390
|
+
isServer: !w(),
|
|
391
391
|
getUserAttributes: () => rt(),
|
|
392
392
|
trackConversion: (t, n) => {
|
|
393
|
-
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 ||
|
|
393
|
+
!(e != null && e.apiKey) || (e == null ? void 0 : e.canTrack) === !1 || ae({
|
|
394
394
|
type: "conversion",
|
|
395
395
|
apiKey: e.apiKey,
|
|
396
396
|
canTrack: e.canTrack ?? !0,
|
|
@@ -455,7 +455,7 @@ const Fe = ({
|
|
|
455
455
|
};
|
|
456
456
|
function hn() {
|
|
457
457
|
var e;
|
|
458
|
-
return typeof process < "u" &&
|
|
458
|
+
return typeof process < "u" && j((e = process == null ? void 0 : process.versions) == null ? void 0 : e.node);
|
|
459
459
|
}
|
|
460
460
|
const fn = ({
|
|
461
461
|
shouldLogWarning: e
|
|
@@ -465,13 +465,13 @@ const fn = ({
|
|
|
465
465
|
return !1;
|
|
466
466
|
const t = process.arch === "arm64", n = process.version.startsWith("v20"), o = (r = process.env.NODE_OPTIONS) == null ? void 0 : r.includes("--no-node-snapshot");
|
|
467
467
|
return t && n && !o ? (e && B.log("Skipping usage of `isolated-vm` to avoid crashes in Node v20 on an arm64 machine.\n If you would like to use the `isolated-vm` package on this machine, please provide the `NODE_OPTIONS=--no-node-snapshot` config to your Node process.\n See https://github.com/BuilderIO/builder/blob/main/packages/sdks/README.md#node-v20--m1-macs-apple-silicon-support for more information.\n "), !0) : !1;
|
|
468
|
-
}, bn = (e) => (
|
|
468
|
+
}, bn = (e) => (w() || fn({
|
|
469
469
|
shouldLogWarning: !0
|
|
470
470
|
}), Fe(e)), gn = /^(return )?(\s*)?state(?<getPath>(\.\w+)+)(\s*);?$/, yn = /(\s)*var(\s)+_virtual_index(\s)*=(\s)*state(?<getPath>(\.\w+)+)(\s*);?(\s)*return(\s)*_virtual_index(\s)*/, vn = (e) => {
|
|
471
471
|
var t, n, o, r, i, s;
|
|
472
472
|
return ((o = (n = (t = gn.exec(e.trim())) == null ? void 0 : t.groups) == null ? void 0 : n.getPath) == null ? void 0 : o.slice(1)) || ((s = (i = (r = yn.exec(e.trim())) == null ? void 0 : r.groups) == null ? void 0 : i.getPath) == null ? void 0 : s.slice(1));
|
|
473
473
|
};
|
|
474
|
-
function
|
|
474
|
+
function te({
|
|
475
475
|
code: e,
|
|
476
476
|
context: t,
|
|
477
477
|
localState: n,
|
|
@@ -522,7 +522,7 @@ const kn = (e, t) => {
|
|
|
522
522
|
if (((n = e.component) == null ? void 0 : n.name) === "Text" && ((o = e.component.options) != null && o.text) && typeof e.component.options.text == "string")
|
|
523
523
|
return {
|
|
524
524
|
...e.component.options,
|
|
525
|
-
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) =>
|
|
525
|
+
text: e.component.options.text.replace(/{{([^}]+)}}/g, (r, i) => te({
|
|
526
526
|
code: i,
|
|
527
527
|
context: t,
|
|
528
528
|
localState: t.localState,
|
|
@@ -537,7 +537,7 @@ function Cn(e, ...t) {
|
|
|
537
537
|
delete n[o];
|
|
538
538
|
return n;
|
|
539
539
|
}
|
|
540
|
-
function
|
|
540
|
+
function le(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
541
541
|
if (e == null || typeof e != "object") {
|
|
542
542
|
t(e, (i) => {
|
|
543
543
|
n !== null && o !== null && (n[o] = i);
|
|
@@ -547,11 +547,11 @@ function ae(e, t, n = null, o = null, r = /* @__PURE__ */ new WeakSet()) {
|
|
|
547
547
|
r.has(e) || (r.add(e), Array.isArray(e) ? e.forEach((i, s) => {
|
|
548
548
|
t(i, (a) => {
|
|
549
549
|
e[s] = a;
|
|
550
|
-
}),
|
|
550
|
+
}), le(i, t, e, s, r);
|
|
551
551
|
}) : Object.entries(e).forEach(([i, s]) => {
|
|
552
552
|
t(s, (a) => {
|
|
553
553
|
e[i] = a;
|
|
554
|
-
}),
|
|
554
|
+
}), le(s, t, e, i, r);
|
|
555
555
|
}));
|
|
556
556
|
}
|
|
557
557
|
function mt(e) {
|
|
@@ -561,7 +561,7 @@ function Tn(e) {
|
|
|
561
561
|
if (!e || !Object.getOwnPropertyNames(e).length)
|
|
562
562
|
return !1;
|
|
563
563
|
let t = !1;
|
|
564
|
-
return
|
|
564
|
+
return le(e, (n) => {
|
|
565
565
|
if (mt(n)) {
|
|
566
566
|
t = !0;
|
|
567
567
|
return;
|
|
@@ -569,7 +569,7 @@ function Tn(e) {
|
|
|
569
569
|
}), t;
|
|
570
570
|
}
|
|
571
571
|
function wn(e, t) {
|
|
572
|
-
return !e || !Object.getOwnPropertyNames(e).length ? {} : (
|
|
572
|
+
return !e || !Object.getOwnPropertyNames(e).length ? {} : (le(e, (n, o) => {
|
|
573
573
|
mt(n) && o(n[t] ?? void 0);
|
|
574
574
|
}), e);
|
|
575
575
|
}
|
|
@@ -577,27 +577,27 @@ function In(e, t) {
|
|
|
577
577
|
var n, o;
|
|
578
578
|
return (n = e.component) != null && n.options && Tn((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 = wn(e.component.options, t ?? "Default")), e;
|
|
579
579
|
}
|
|
580
|
-
const
|
|
580
|
+
const Ae = (e) => JSON.parse(JSON.stringify(e)), ht = (e, t, n) => {
|
|
581
581
|
if (Object(e) !== e)
|
|
582
582
|
return e;
|
|
583
583
|
const o = Array.isArray(t) ? t : t.toString().match(/[^.[\]]+/g);
|
|
584
584
|
return o.slice(0, -1).reduce((r, i, s) => Object(r[i]) === r[i] ? r[i] : r[i] = Math.abs(Number(o[s + 1])) >> 0 === +o[s + 1] ? [] : {}, e)[o[o.length - 1]] = n, e;
|
|
585
585
|
};
|
|
586
|
-
function
|
|
586
|
+
function ve(e) {
|
|
587
587
|
if (e === null || typeof e != "object")
|
|
588
588
|
return e;
|
|
589
589
|
if (Array.isArray(e))
|
|
590
|
-
return e.map((n) =>
|
|
590
|
+
return e.map((n) => ve(n));
|
|
591
591
|
if (e["@type"] === "@builder.io/sdk:Element")
|
|
592
592
|
return e;
|
|
593
593
|
const t = {};
|
|
594
594
|
for (const n in e)
|
|
595
|
-
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] =
|
|
595
|
+
n !== "meta" && Object.prototype.hasOwnProperty.call(e, n) && (t[n] = ve(e[n]));
|
|
596
596
|
return t;
|
|
597
597
|
}
|
|
598
598
|
const $n = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), En = (e) => {
|
|
599
599
|
if ($n) {
|
|
600
|
-
const t =
|
|
600
|
+
const t = Ae(e);
|
|
601
601
|
return {
|
|
602
602
|
...t,
|
|
603
603
|
properties: {
|
|
@@ -608,7 +608,7 @@ const $n = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), En = (e) =
|
|
|
608
608
|
}
|
|
609
609
|
};
|
|
610
610
|
} else {
|
|
611
|
-
const t =
|
|
611
|
+
const t = ve(Cn(e, "children", "meta"));
|
|
612
612
|
return {
|
|
613
613
|
...t,
|
|
614
614
|
properties: {
|
|
@@ -632,7 +632,7 @@ const $n = ["svelte", "vue", "angular", "qwik", "solid"].includes(E), En = (e) =
|
|
|
632
632
|
return e;
|
|
633
633
|
const i = En(e);
|
|
634
634
|
for (const s in e.bindings) {
|
|
635
|
-
const l = e.bindings[s], a =
|
|
635
|
+
const l = e.bindings[s], a = te({
|
|
636
636
|
code: l,
|
|
637
637
|
localState: n,
|
|
638
638
|
rootState: o,
|
|
@@ -659,25 +659,25 @@ function Pn({
|
|
|
659
659
|
context: t
|
|
660
660
|
}), i = In(i, o.locale), i;
|
|
661
661
|
}
|
|
662
|
-
function
|
|
663
|
-
const t = e || (
|
|
662
|
+
function Be(e) {
|
|
663
|
+
const t = e || (w() ? window.location.search : void 0);
|
|
664
664
|
return t ? ot(t).indexOf("builder.preview=") !== -1 : !1;
|
|
665
665
|
}
|
|
666
666
|
const An = (e) => ({
|
|
667
667
|
type: "builder.registerComponent",
|
|
668
|
-
data:
|
|
668
|
+
data: ce(e)
|
|
669
669
|
}), Bn = (e) => {
|
|
670
670
|
const t = e.toString().trim(), n = /^[a-zA-Z0-9_]+\s*=>/i.test(t);
|
|
671
671
|
return `return (${!t.startsWith("function") && !t.startsWith("async") && !t.startsWith("(") && !n ? "function " : ""}${t}).apply(this, arguments)`;
|
|
672
672
|
};
|
|
673
|
-
function
|
|
673
|
+
function ce(e) {
|
|
674
674
|
return JSON.parse(JSON.stringify(e, (t, n) => typeof n == "function" ? Bn(n) : n));
|
|
675
675
|
}
|
|
676
676
|
const He = {};
|
|
677
677
|
function Is(e, t) {
|
|
678
|
-
e === "plugin" && (t =
|
|
678
|
+
e === "plugin" && (t = ce(t));
|
|
679
679
|
let n = He[e];
|
|
680
|
-
if (n || (n = He[e] = []), n.push(t),
|
|
680
|
+
if (n || (n = He[e] = []), n.push(t), w()) {
|
|
681
681
|
const o = {
|
|
682
682
|
type: "builder.register",
|
|
683
683
|
data: {
|
|
@@ -694,7 +694,7 @@ function Is(e, t) {
|
|
|
694
694
|
}
|
|
695
695
|
function $s(e) {
|
|
696
696
|
var t;
|
|
697
|
-
if (
|
|
697
|
+
if (w()) {
|
|
698
698
|
const n = JSON.parse(JSON.stringify(e));
|
|
699
699
|
e.action && (n.action = e.action.toString()), (t = window.parent) == null || t.postMessage({
|
|
700
700
|
type: "builder.registerAction",
|
|
@@ -704,7 +704,7 @@ function $s(e) {
|
|
|
704
704
|
}
|
|
705
705
|
const Me = {};
|
|
706
706
|
function Es(e) {
|
|
707
|
-
if (
|
|
707
|
+
if (w()) {
|
|
708
708
|
Object.assign(Me, e);
|
|
709
709
|
const t = {
|
|
710
710
|
type: "builder.settingsChange",
|
|
@@ -724,11 +724,11 @@ const je = "builder.", Vn = "options.", ft = (e) => {
|
|
|
724
724
|
}
|
|
725
725
|
}), n;
|
|
726
726
|
}, Nn = () => {
|
|
727
|
-
if (!
|
|
727
|
+
if (!w())
|
|
728
728
|
return {};
|
|
729
729
|
const e = new URLSearchParams(window.location.search);
|
|
730
730
|
return ft(e);
|
|
731
|
-
},
|
|
731
|
+
}, On = ["*.beta.builder.io", "beta.builder.io", "builder.io", "localhost", "qa.builder.io"];
|
|
732
732
|
function bt(e, t) {
|
|
733
733
|
let n;
|
|
734
734
|
try {
|
|
@@ -736,12 +736,12 @@ function bt(e, t) {
|
|
|
736
736
|
} catch {
|
|
737
737
|
return !1;
|
|
738
738
|
}
|
|
739
|
-
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e ||
|
|
739
|
+
return n.protocol !== "http:" && n.protocol !== "https:" ? !1 : (e || On).findIndex((o) => o.startsWith("*.") ? n.hostname.endsWith(o.slice(1)) : o === n.hostname) > -1;
|
|
740
740
|
}
|
|
741
741
|
let ze = !1;
|
|
742
742
|
const gt = (e) => {
|
|
743
743
|
var t, n;
|
|
744
|
-
ze || (ze = !0,
|
|
744
|
+
ze || (ze = !0, w() && ((t = window.parent) == null || t.postMessage({
|
|
745
745
|
type: "builder.sdkInfo",
|
|
746
746
|
data: {
|
|
747
747
|
target: E,
|
|
@@ -772,9 +772,9 @@ const gt = (e) => {
|
|
|
772
772
|
switch (r.type) {
|
|
773
773
|
case "builder.evaluate": {
|
|
774
774
|
const l = r.data.text, a = r.data.arguments || [], u = r.data.id, p = new Function(l);
|
|
775
|
-
let
|
|
775
|
+
let b, c = null;
|
|
776
776
|
try {
|
|
777
|
-
|
|
777
|
+
b = p.apply(null, a);
|
|
778
778
|
} catch (m) {
|
|
779
779
|
c = m;
|
|
780
780
|
}
|
|
@@ -784,9 +784,9 @@ const gt = (e) => {
|
|
|
784
784
|
id: u,
|
|
785
785
|
error: c.message
|
|
786
786
|
}
|
|
787
|
-
}, "*") :
|
|
788
|
-
var
|
|
789
|
-
(
|
|
787
|
+
}, "*") : b && typeof b.then == "function" ? b.then((m) => {
|
|
788
|
+
var f;
|
|
789
|
+
(f = window.parent) == null || f.postMessage({
|
|
790
790
|
type: "builder.evaluateResult",
|
|
791
791
|
data: {
|
|
792
792
|
id: u,
|
|
@@ -796,7 +796,7 @@ const gt = (e) => {
|
|
|
796
796
|
}).catch(console.error) : (s = window.parent) == null || s.postMessage({
|
|
797
797
|
type: "builder.evaluateResult",
|
|
798
798
|
data: {
|
|
799
|
-
result:
|
|
799
|
+
result: b,
|
|
800
800
|
id: u
|
|
801
801
|
}
|
|
802
802
|
}, "*");
|
|
@@ -841,7 +841,7 @@ const gt = (e) => {
|
|
|
841
841
|
callback: n,
|
|
842
842
|
trustedHosts: o
|
|
843
843
|
}) => {
|
|
844
|
-
if (!
|
|
844
|
+
if (!w)
|
|
845
845
|
return B.warn("`subscribeToEditor` only works in the browser. It currently seems to be running on the server."), () => {
|
|
846
846
|
};
|
|
847
847
|
gt({
|
|
@@ -864,24 +864,24 @@ const gt = (e) => {
|
|
|
864
864
|
return window.addEventListener("message", r), () => {
|
|
865
865
|
window.removeEventListener("message", r);
|
|
866
866
|
};
|
|
867
|
-
},
|
|
867
|
+
}, Wn = "builder.tests", Ve = (e) => `${Wn}.${e}`, Dn = ({
|
|
868
868
|
contentId: e
|
|
869
869
|
}) => at({
|
|
870
|
-
name:
|
|
870
|
+
name: Ve(e),
|
|
871
871
|
canTrack: !0
|
|
872
872
|
}), xn = ({
|
|
873
873
|
contentId: e
|
|
874
|
-
}) =>
|
|
875
|
-
name:
|
|
874
|
+
}) => pe({
|
|
875
|
+
name: Ve(e),
|
|
876
876
|
canTrack: !0
|
|
877
877
|
}), Un = ({
|
|
878
878
|
contentId: e,
|
|
879
879
|
value: t
|
|
880
|
-
}) =>
|
|
881
|
-
name:
|
|
880
|
+
}) => Re({
|
|
881
|
+
name: Ve(e),
|
|
882
882
|
value: t,
|
|
883
883
|
canTrack: !0
|
|
884
|
-
}), vt = (e) =>
|
|
884
|
+
}), vt = (e) => j(e.id) && j(e.variations) && Object.keys(e.variations).length > 0, Ln = ({
|
|
885
885
|
id: e,
|
|
886
886
|
variations: t
|
|
887
887
|
}) => {
|
|
@@ -965,20 +965,20 @@ function qe() {
|
|
|
965
965
|
const t = /* @__PURE__ */ new Set();
|
|
966
966
|
return {
|
|
967
967
|
setUserAttributes(n) {
|
|
968
|
-
if (!
|
|
968
|
+
if (!w())
|
|
969
969
|
return;
|
|
970
970
|
const o = {
|
|
971
971
|
...this.getUserAttributes(),
|
|
972
972
|
...n
|
|
973
973
|
};
|
|
974
|
-
|
|
974
|
+
Re({
|
|
975
975
|
name: Ke,
|
|
976
976
|
value: JSON.stringify(o),
|
|
977
977
|
canTrack: e
|
|
978
978
|
}), t.forEach((r) => r(o));
|
|
979
979
|
},
|
|
980
980
|
getUserAttributes() {
|
|
981
|
-
return
|
|
981
|
+
return w() ? JSON.parse(pe({
|
|
982
982
|
name: Ke,
|
|
983
983
|
canTrack: e
|
|
984
984
|
}) || "{}") : {};
|
|
@@ -995,13 +995,13 @@ function qe() {
|
|
|
995
995
|
}
|
|
996
996
|
};
|
|
997
997
|
}
|
|
998
|
-
let
|
|
999
|
-
|
|
1000
|
-
const
|
|
1001
|
-
|
|
1002
|
-
},
|
|
1003
|
-
const t =
|
|
1004
|
-
return
|
|
998
|
+
let Se;
|
|
999
|
+
w() && E === "qwik" ? (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ || (window.__BUILDER_USER_ATTRIBUTES_SERVICE__ = qe()), Se = window.__BUILDER_USER_ATTRIBUTES_SERVICE__) : Se = qe();
|
|
1000
|
+
const de = Se, Ps = (e) => {
|
|
1001
|
+
de.setUserAttributes(e);
|
|
1002
|
+
}, J = (e) => {
|
|
1003
|
+
const t = j(e) ? e : !0;
|
|
1004
|
+
return de.setCanTrack(t), t;
|
|
1005
1005
|
};
|
|
1006
1006
|
function Mn() {
|
|
1007
1007
|
return typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : globalThis;
|
|
@@ -1014,12 +1014,12 @@ function jn() {
|
|
|
1014
1014
|
return e;
|
|
1015
1015
|
}
|
|
1016
1016
|
const zn = jn();
|
|
1017
|
-
function
|
|
1017
|
+
function ke(e, t = null, n = ".") {
|
|
1018
1018
|
return Object.keys(e).reduce((o, r) => {
|
|
1019
1019
|
const i = e[r], s = [t, r].filter(Boolean).join(n);
|
|
1020
1020
|
return [typeof i == "object", i !== null, !(Array.isArray(i) && i.length === 0)].every(Boolean) ? {
|
|
1021
1021
|
...o,
|
|
1022
|
-
...
|
|
1022
|
+
...ke(i, s, n)
|
|
1023
1023
|
} : {
|
|
1024
1024
|
...o,
|
|
1025
1025
|
[s]: i
|
|
@@ -1045,7 +1045,7 @@ function Kn(e) {
|
|
|
1045
1045
|
}
|
|
1046
1046
|
return t;
|
|
1047
1047
|
}
|
|
1048
|
-
const qn = "v3", Ge = (e) => typeof e == "number" && !isNaN(e) && e >= 0,
|
|
1048
|
+
const qn = "v3", Ge = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ne = (e) => {
|
|
1049
1049
|
const {
|
|
1050
1050
|
limit: t = 30,
|
|
1051
1051
|
userAttributes: n,
|
|
@@ -1053,57 +1053,58 @@ const qn = "v3", Ge = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ve = (
|
|
|
1053
1053
|
model: r,
|
|
1054
1054
|
apiKey: i,
|
|
1055
1055
|
enrich: s,
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1056
|
+
enrichOptions: l,
|
|
1057
|
+
locale: a,
|
|
1058
|
+
apiVersion: u = qn,
|
|
1059
|
+
fields: p,
|
|
1060
|
+
omit: b,
|
|
1061
|
+
offset: c,
|
|
1062
|
+
cacheSeconds: m,
|
|
1063
|
+
staleCacheSeconds: f,
|
|
1064
|
+
sort: g,
|
|
1065
|
+
includeUnpublished: A,
|
|
1066
|
+
apiHost: x
|
|
1066
1067
|
} = e;
|
|
1067
1068
|
if (!i)
|
|
1068
1069
|
throw new Error("Missing API key");
|
|
1069
|
-
if (!["v3"].includes(
|
|
1070
|
-
throw new Error(`Invalid apiVersion: expected 'v3', received '${
|
|
1071
|
-
const
|
|
1072
|
-
|
|
1073
|
-
let
|
|
1074
|
-
if (s &&
|
|
1075
|
-
const
|
|
1076
|
-
sort:
|
|
1070
|
+
if (!["v3"].includes(u))
|
|
1071
|
+
throw new Error(`Invalid apiVersion: expected 'v3', received '${u}'`);
|
|
1072
|
+
const V = t !== 1, q = x || "https://cdn.builder.io", C = new URL(`${q}/api/${u}/content/${r}`);
|
|
1073
|
+
C.searchParams.set("apiKey", i), C.searchParams.set("limit", String(t)), C.searchParams.set("noTraverse", String(V)), C.searchParams.set("includeRefs", String(!0)), a && C.searchParams.set("locale", a);
|
|
1074
|
+
let z = n || {};
|
|
1075
|
+
if (s && C.searchParams.set("enrich", String(s)), s && l && C.searchParams.set("enrichOptions", JSON.stringify(l)), C.searchParams.set("omit", b ?? "meta.componentsUsed"), p && C.searchParams.set("fields", p), Number.isFinite(c) && c > -1 && C.searchParams.set("offset", String(Math.floor(c))), typeof A == "boolean" && C.searchParams.set("includeUnpublished", String(A)), m && Ge(m) && C.searchParams.set("cacheSeconds", String(m)), f && Ge(f) && C.searchParams.set("staleCacheSeconds", String(f)), g) {
|
|
1076
|
+
const W = ke({
|
|
1077
|
+
sort: g
|
|
1077
1078
|
});
|
|
1078
|
-
for (const
|
|
1079
|
-
|
|
1079
|
+
for (const F in W)
|
|
1080
|
+
C.searchParams.set(F, JSON.stringify(W[F]));
|
|
1080
1081
|
}
|
|
1081
|
-
const
|
|
1082
|
+
const Q = {
|
|
1082
1083
|
...Nn(),
|
|
1083
1084
|
...nt(e.options || {})
|
|
1084
1085
|
};
|
|
1085
|
-
|
|
1086
|
-
...
|
|
1087
|
-
...Qn(
|
|
1086
|
+
z = {
|
|
1087
|
+
...z,
|
|
1088
|
+
...Qn(Q)
|
|
1088
1089
|
};
|
|
1089
|
-
const
|
|
1090
|
-
for (const
|
|
1091
|
-
|
|
1092
|
-
if (Object.keys(
|
|
1093
|
-
const
|
|
1090
|
+
const Y = ke(Q);
|
|
1091
|
+
for (const W in Y)
|
|
1092
|
+
C.searchParams.set(W, String(Y[W]));
|
|
1093
|
+
if (Object.keys(z).length > 0 && C.searchParams.set("userAttributes", JSON.stringify(z)), o) {
|
|
1094
|
+
const W = Ct({
|
|
1094
1095
|
query: o
|
|
1095
1096
|
});
|
|
1096
|
-
for (const
|
|
1097
|
-
|
|
1097
|
+
for (const F in W)
|
|
1098
|
+
C.searchParams.set(F, JSON.stringify(W[F]));
|
|
1098
1099
|
}
|
|
1099
|
-
return
|
|
1100
|
+
return C;
|
|
1100
1101
|
}, Gn = (e) => e === "true" ? !0 : e === "false" ? !1 : e, Jn = (e) => {
|
|
1101
1102
|
const t = {};
|
|
1102
1103
|
for (const n in e)
|
|
1103
1104
|
n.startsWith("userAttributes.") && (t[n] = Gn(e[n]), delete e[n]);
|
|
1104
1105
|
return t;
|
|
1105
1106
|
}, Qn = (e) => {
|
|
1106
|
-
if (
|
|
1107
|
+
if (w() && e.preview === "BUILDER_STUDIO") {
|
|
1107
1108
|
e["userAttributes.urlPath"] = window.location.pathname, e["userAttributes.host"] = window.location.host;
|
|
1108
1109
|
const t = Jn(e), {
|
|
1109
1110
|
userAttributes: n
|
|
@@ -1112,7 +1113,7 @@ const qn = "v3", Ge = (e) => typeof e == "number" && !isNaN(e) && e >= 0, Ve = (
|
|
|
1112
1113
|
}
|
|
1113
1114
|
return {};
|
|
1114
1115
|
}, Yn = (e) => "results" in e;
|
|
1115
|
-
async function
|
|
1116
|
+
async function Oe(e) {
|
|
1116
1117
|
var o;
|
|
1117
1118
|
const t = e.locale || ((o = e.userAttributes) == null ? void 0 : o.locale);
|
|
1118
1119
|
t && (e.locale = t, e.userAttributes = {
|
|
@@ -1127,7 +1128,7 @@ async function Ne(e) {
|
|
|
1127
1128
|
}
|
|
1128
1129
|
const Xn = async (e) => {
|
|
1129
1130
|
var s;
|
|
1130
|
-
const t =
|
|
1131
|
+
const t = Ne(e), n = e.fetch ?? zn, o = {
|
|
1131
1132
|
...e.fetchOptions,
|
|
1132
1133
|
headers: {
|
|
1133
1134
|
...(s = e.fetchOptions) == null ? void 0 : s.headers,
|
|
@@ -1135,9 +1136,9 @@ const Xn = async (e) => {
|
|
|
1135
1136
|
}
|
|
1136
1137
|
};
|
|
1137
1138
|
return await (await n(t.href, o)).json();
|
|
1138
|
-
}, Zn = async (e, t, n =
|
|
1139
|
-
const o =
|
|
1140
|
-
if (n.search.includes("preview="), !o || !(
|
|
1139
|
+
}, Zn = async (e, t, n = Ne(e)) => {
|
|
1140
|
+
const o = J(e.canTrack);
|
|
1141
|
+
if (n.search.includes("preview="), !o || !(w() || E === "reactNative"))
|
|
1141
1142
|
return t.results;
|
|
1142
1143
|
try {
|
|
1143
1144
|
const r = [];
|
|
@@ -1153,7 +1154,7 @@ const Xn = async (e) => {
|
|
|
1153
1154
|
return t.results;
|
|
1154
1155
|
};
|
|
1155
1156
|
async function _n(e) {
|
|
1156
|
-
const t =
|
|
1157
|
+
const t = Ne(e), n = await Xn(e);
|
|
1157
1158
|
if (!Yn(n))
|
|
1158
1159
|
throw B.error("Error fetching data. ", {
|
|
1159
1160
|
url: t,
|
|
@@ -1179,7 +1180,7 @@ const As = async (e) => {
|
|
|
1179
1180
|
return {
|
|
1180
1181
|
apiKey: n.apiKey,
|
|
1181
1182
|
model: n.model,
|
|
1182
|
-
content: await
|
|
1183
|
+
content: await Oe(n)
|
|
1183
1184
|
};
|
|
1184
1185
|
}, We = (e) => e ? e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase() : "";
|
|
1185
1186
|
function eo(e, t, n = {}) {
|
|
@@ -1194,7 +1195,7 @@ function eo(e, t, n = {}) {
|
|
|
1194
1195
|
return o = this, r = arguments, p <= 0 || p > t ? (s && (clearTimeout(s), s = null), l = u, i = e.apply(o, r), s || (o = r = null)) : !s && n.trailing !== !1 && (s = setTimeout(a, p)), i;
|
|
1195
1196
|
};
|
|
1196
1197
|
}
|
|
1197
|
-
function
|
|
1198
|
+
function _(e, ...t) {
|
|
1198
1199
|
const n = Object(e);
|
|
1199
1200
|
for (let o = 1; o < arguments.length; o++) {
|
|
1200
1201
|
const r = arguments[o];
|
|
@@ -1238,8 +1239,8 @@ function It(e) {
|
|
|
1238
1239
|
return;
|
|
1239
1240
|
}
|
|
1240
1241
|
Array.from(t).forEach((n) => {
|
|
1241
|
-
wt(e, n), n.style.transition = "none", n.style.transitionDelay = "0",
|
|
1242
|
-
n.style.transition = `all ${e.duration}s ${We(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"),
|
|
1242
|
+
wt(e, n), n.style.transition = "none", n.style.transitionDelay = "0", _(n.style, e.steps[0].styles), setTimeout(() => {
|
|
1243
|
+
n.style.transition = `all ${e.duration}s ${We(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s"), _(n.style, e.steps[1].styles), setTimeout(() => {
|
|
1243
1244
|
n.style.transition = "", n.style.transitionDelay = "";
|
|
1244
1245
|
}, (e.delay || 0) * 1e3 + e.duration * 1e3 + 100);
|
|
1245
1246
|
});
|
|
@@ -1256,21 +1257,21 @@ function oo(e) {
|
|
|
1256
1257
|
let o = !1, r = !1;
|
|
1257
1258
|
function i() {
|
|
1258
1259
|
!o && l(n) ? (o = !0, r = !0, setTimeout(() => {
|
|
1259
|
-
|
|
1260
|
+
_(n.style, e.steps[1].styles), e.repeat || document.removeEventListener("scroll", s), setTimeout(() => {
|
|
1260
1261
|
r = !1, e.repeat || (n.style.transition = "", n.style.transitionDelay = "");
|
|
1261
1262
|
}, (e.duration + (e.delay || 0)) * 1e3 + 100);
|
|
1262
|
-
})) : e.repeat && o && !r && !l(n) && (o = !1,
|
|
1263
|
+
})) : e.repeat && o && !r && !l(n) && (o = !1, _(n.style, e.steps[0].styles));
|
|
1263
1264
|
}
|
|
1264
1265
|
const s = eo(i, 200, {
|
|
1265
1266
|
leading: !1
|
|
1266
1267
|
});
|
|
1267
1268
|
function l(p) {
|
|
1268
|
-
const
|
|
1269
|
-
return
|
|
1269
|
+
const b = p.getBoundingClientRect(), c = window.innerHeight, f = (e.thresholdPercent || 0) / 100 * c;
|
|
1270
|
+
return b.bottom > f && b.top < c - f;
|
|
1270
1271
|
}
|
|
1271
1272
|
const a = e.steps[0].styles;
|
|
1272
1273
|
function u() {
|
|
1273
|
-
|
|
1274
|
+
_(n.style, a);
|
|
1274
1275
|
}
|
|
1275
1276
|
u(), setTimeout(() => {
|
|
1276
1277
|
n.style.transition = `all ${e.duration}s ${We(e.easing)}`, e.delay && (n.style.transitionDelay = e.delay + "s");
|
|
@@ -1283,7 +1284,7 @@ function oo(e) {
|
|
|
1283
1284
|
const $t = (e) => Object.entries(e).map(([n, o]) => {
|
|
1284
1285
|
if (typeof o == "string")
|
|
1285
1286
|
return `${We(n)}: ${o};`;
|
|
1286
|
-
}).filter(
|
|
1287
|
+
}).filter(j), ro = (e) => $t(e).join(`
|
|
1287
1288
|
`), Bs = ({
|
|
1288
1289
|
mediaQuery: e,
|
|
1289
1290
|
className: t,
|
|
@@ -1350,7 +1351,7 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1350
1351
|
} = e;
|
|
1351
1352
|
if (!(n != null && n.collection))
|
|
1352
1353
|
return;
|
|
1353
|
-
const r =
|
|
1354
|
+
const r = te({
|
|
1354
1355
|
code: n.collection,
|
|
1355
1356
|
localState: t.localState,
|
|
1356
1357
|
rootState: t.rootState,
|
|
@@ -1398,22 +1399,22 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1398
1399
|
"Error while attempting to dynamically import component DynamicDiv at ../dynamic-div.vue",
|
|
1399
1400
|
e
|
|
1400
1401
|
), e;
|
|
1401
|
-
}), fo = () => import("./block-wrapper-
|
|
1402
|
+
}), fo = () => import("./block-wrapper-SCckT0M5.js").then((e) => e.default).catch((e) => {
|
|
1402
1403
|
throw console.error(
|
|
1403
1404
|
"Error while attempting to dynamically import component BlockWrapper at ./components/block-wrapper.vue",
|
|
1404
1405
|
e
|
|
1405
1406
|
), e;
|
|
1406
|
-
}), bo = () => import("./component-ref-
|
|
1407
|
+
}), bo = () => import("./component-ref-owc3e0h8.js").then((e) => e.default).catch((e) => {
|
|
1407
1408
|
throw console.error(
|
|
1408
1409
|
"Error while attempting to dynamically import component ComponentRef at ./components/component-ref/component-ref.vue",
|
|
1409
1410
|
e
|
|
1410
1411
|
), e;
|
|
1411
|
-
}), go = () => import("./repeated-block-
|
|
1412
|
+
}), go = () => import("./repeated-block-uVi8A50N.js").then((e) => e.default).catch((e) => {
|
|
1412
1413
|
throw console.error(
|
|
1413
1414
|
"Error while attempting to dynamically import component RepeatedBlock at ./components/repeated-block.vue",
|
|
1414
1415
|
e
|
|
1415
1416
|
), e;
|
|
1416
|
-
}), yo = () => import("./style-wrapper-
|
|
1417
|
+
}), yo = () => import("./style-wrapper-usFESjt5.js").then((e) => e.default).catch((e) => {
|
|
1417
1418
|
throw console.error(
|
|
1418
1419
|
"Error while attempting to dynamically import component StyleWrapper at ./components/style-wrapper.vue",
|
|
1419
1420
|
e
|
|
@@ -1421,11 +1422,11 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1421
1422
|
}), vo = y({
|
|
1422
1423
|
name: "block",
|
|
1423
1424
|
components: {
|
|
1424
|
-
StyleWrapper:
|
|
1425
|
-
RepeatedBlock:
|
|
1426
|
-
ComponentRef:
|
|
1427
|
-
BlockWrapper:
|
|
1428
|
-
DynamicDiv:
|
|
1425
|
+
StyleWrapper: X(yo),
|
|
1426
|
+
RepeatedBlock: X(go),
|
|
1427
|
+
ComponentRef: X(bo),
|
|
1428
|
+
BlockWrapper: X(fo),
|
|
1429
|
+
DynamicDiv: X(ho)
|
|
1429
1430
|
},
|
|
1430
1431
|
props: ["block", "context", "registeredComponents", "linkComponent"],
|
|
1431
1432
|
data() {
|
|
@@ -1514,7 +1515,7 @@ const Rt = (e, t) => e ? t ? e.models && e.models.length > 0 && !e.models.includ
|
|
|
1514
1515
|
}
|
|
1515
1516
|
});
|
|
1516
1517
|
function So(e, t, n, o, r, i) {
|
|
1517
|
-
var
|
|
1518
|
+
var b;
|
|
1518
1519
|
const s = k("StyleWrapper"), l = k("ComponentRef"), a = k("Block", !0), u = k("BlockWrapper"), p = k("RepeatedBlock");
|
|
1519
1520
|
return e.canShowBlock ? (d(), h(I, { key: 0 }, [
|
|
1520
1521
|
R(s, {
|
|
@@ -1522,8 +1523,8 @@ function So(e, t, n, o, r, i) {
|
|
|
1522
1523
|
context: e.context,
|
|
1523
1524
|
id: e.block.id
|
|
1524
1525
|
}, null, 8, ["block", "context", "id"]),
|
|
1525
|
-
(
|
|
1526
|
-
e.repeatItem ? (d(!0), h(I, { key: 1 },
|
|
1526
|
+
(b = e.blockComponent) != null && b.noWrap ? (d(), h(I, { key: 1 }, [
|
|
1527
|
+
e.repeatItem ? (d(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (d(), S(p, {
|
|
1527
1528
|
key: e.generateKey(m),
|
|
1528
1529
|
repeatContext: c.context,
|
|
1529
1530
|
block: c.block,
|
|
@@ -1542,7 +1543,7 @@ function So(e, t, n, o, r, i) {
|
|
|
1542
1543
|
isInteractive: e.componentRefProps.isInteractive
|
|
1543
1544
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]))
|
|
1544
1545
|
], 64)) : (d(), h(I, { key: 0 }, [
|
|
1545
|
-
e.repeatItem ? (d(!0), h(I, { key: 1 },
|
|
1546
|
+
e.repeatItem ? (d(!0), h(I, { key: 1 }, L(e.repeatItem, (c, m) => (d(), S(p, {
|
|
1546
1547
|
key: e.generateKey(m),
|
|
1547
1548
|
repeatContext: c.context,
|
|
1548
1549
|
block: c.block,
|
|
@@ -1554,7 +1555,7 @@ function So(e, t, n, o, r, i) {
|
|
|
1554
1555
|
block: e.processedBlock,
|
|
1555
1556
|
context: e.context
|
|
1556
1557
|
}, {
|
|
1557
|
-
default:
|
|
1558
|
+
default: D(() => [
|
|
1558
1559
|
R(l, {
|
|
1559
1560
|
componentRef: e.componentRefProps.componentRef,
|
|
1560
1561
|
componentOptions: e.componentRefProps.componentOptions,
|
|
@@ -1566,7 +1567,7 @@ function So(e, t, n, o, r, i) {
|
|
|
1566
1567
|
includeBlockProps: e.componentRefProps.includeBlockProps,
|
|
1567
1568
|
isInteractive: e.componentRefProps.isInteractive
|
|
1568
1569
|
}, null, 8, ["componentRef", "componentOptions", "blockChildren", "context", "registeredComponents", "linkComponent", "builderBlock", "includeBlockProps", "isInteractive"]),
|
|
1569
|
-
(d(!0), h(I, null,
|
|
1570
|
+
(d(!0), h(I, null, L(e.childrenWithoutParentComponent, (c, m) => (d(), S(a, {
|
|
1570
1571
|
key: c.id,
|
|
1571
1572
|
block: c,
|
|
1572
1573
|
registeredComponents: e.registeredComponents,
|
|
@@ -1577,7 +1578,7 @@ function So(e, t, n, o, r, i) {
|
|
|
1577
1578
|
_: 1
|
|
1578
1579
|
}, 8, ["Wrapper", "block", "context"]))
|
|
1579
1580
|
], 64))
|
|
1580
|
-
], 64)) :
|
|
1581
|
+
], 64)) : T("", !0);
|
|
1581
1582
|
}
|
|
1582
1583
|
const Pt = /* @__PURE__ */ v(vo, [["render", So]]), Ns = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1583
1584
|
__proto__: null,
|
|
@@ -1653,7 +1654,7 @@ const Pt = /* @__PURE__ */ v(vo, [["render", So]]), Ns = /* @__PURE__ */ Object.
|
|
|
1653
1654
|
}
|
|
1654
1655
|
});
|
|
1655
1656
|
function Co(e, t, n, o, r, i) {
|
|
1656
|
-
return d(), S(
|
|
1657
|
+
return d(), S(Z(e.BlocksWrapper), $({
|
|
1657
1658
|
ref: "blocksWrapperRef",
|
|
1658
1659
|
class: e.className + " component-5vz8uirn7sc",
|
|
1659
1660
|
"builder-path": e.dataPath,
|
|
@@ -1663,7 +1664,7 @@ function Co(e, t, n, o, r, i) {
|
|
|
1663
1664
|
onMouseEnter: (s) => e.onMouseEnter(),
|
|
1664
1665
|
onKeyPress: (s) => e.onClick()
|
|
1665
1666
|
}, { ...e.BlocksWrapperProps }), {
|
|
1666
|
-
default:
|
|
1667
|
+
default: D(() => [
|
|
1667
1668
|
N(e.$slots, "default", {}, void 0, !0)
|
|
1668
1669
|
]),
|
|
1669
1670
|
_: 3
|
|
@@ -1684,12 +1685,12 @@ const To = /* @__PURE__ */ v(ko, [["render", Co], ["__scopeId", "data-v-82fc93d6
|
|
|
1684
1685
|
"registeredComponents"
|
|
1685
1686
|
],
|
|
1686
1687
|
inject: {
|
|
1687
|
-
builderContext:
|
|
1688
|
+
builderContext: ye.key,
|
|
1688
1689
|
componentsContext: et.key
|
|
1689
1690
|
}
|
|
1690
1691
|
});
|
|
1691
1692
|
function Io(e, t, n, o, r, i) {
|
|
1692
|
-
var a, u, p,
|
|
1693
|
+
var a, u, p, b;
|
|
1693
1694
|
const s = k("Block"), l = k("BlocksWrapper");
|
|
1694
1695
|
return d(), S(l, {
|
|
1695
1696
|
blocks: e.blocks,
|
|
@@ -1698,20 +1699,20 @@ function Io(e, t, n, o, r, i) {
|
|
|
1698
1699
|
styleProp: e.styleProp,
|
|
1699
1700
|
BlocksWrapperProps: e.BlocksWrapperProps || ((a = e.context) == null ? void 0 : a.BlocksWrapperProps) || ((u = e.builderContext) == null ? void 0 : u.BlocksWrapperProps),
|
|
1700
1701
|
classNameProp: e.className,
|
|
1701
|
-
BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((
|
|
1702
|
+
BlocksWrapper: ((p = e.context) == null ? void 0 : p.BlocksWrapper) || ((b = e.builderContext) == null ? void 0 : b.BlocksWrapper)
|
|
1702
1703
|
}, {
|
|
1703
|
-
default:
|
|
1704
|
+
default: D(() => [
|
|
1704
1705
|
N(e.$slots, "default"),
|
|
1705
|
-
e.blocks ? (d(!0), h(I, { key: 0 },
|
|
1706
|
-
var
|
|
1706
|
+
e.blocks ? (d(!0), h(I, { key: 0 }, L(e.blocks, (c, m) => {
|
|
1707
|
+
var f;
|
|
1707
1708
|
return d(), S(s, {
|
|
1708
1709
|
key: c.id,
|
|
1709
1710
|
block: c,
|
|
1710
1711
|
linkComponent: e.linkComponent,
|
|
1711
1712
|
context: e.context || e.builderContext,
|
|
1712
|
-
registeredComponents: e.registeredComponents || ((
|
|
1713
|
+
registeredComponents: e.registeredComponents || ((f = e.componentsContext) == null ? void 0 : f.registeredComponents)
|
|
1713
1714
|
}, null, 8, ["block", "linkComponent", "context", "registeredComponents"]);
|
|
1714
|
-
}), 128)) :
|
|
1715
|
+
}), 128)) : T("", !0)
|
|
1715
1716
|
]),
|
|
1716
1717
|
_: 3
|
|
1717
1718
|
}, 8, ["blocks", "parent", "path", "styleProp", "BlocksWrapperProps", "classNameProp", "BlocksWrapper"]);
|
|
@@ -1725,10 +1726,10 @@ function Eo(e, t, n, o, r, i) {
|
|
|
1725
1726
|
N(e.$slots, "default")
|
|
1726
1727
|
]);
|
|
1727
1728
|
}
|
|
1728
|
-
const
|
|
1729
|
+
const ne = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1729
1730
|
__proto__: null,
|
|
1730
|
-
default:
|
|
1731
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1731
|
+
default: ne
|
|
1732
|
+
}, Symbol.toStringTag, { value: "Module" })), me = y({
|
|
1732
1733
|
render() {
|
|
1733
1734
|
return _e("style", {
|
|
1734
1735
|
innerHTML: this.styles,
|
|
@@ -1759,8 +1760,8 @@ const te = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1759
1760
|
default: 991,
|
|
1760
1761
|
max: 1200
|
|
1761
1762
|
}
|
|
1762
|
-
},
|
|
1763
|
-
const t =
|
|
1763
|
+
}, Os = (e, t = At) => `@media (max-width: ${t[e].max}px)`, Po = (e) => {
|
|
1764
|
+
const t = Ae(At);
|
|
1764
1765
|
if (!e)
|
|
1765
1766
|
return t;
|
|
1766
1767
|
const {
|
|
@@ -1800,10 +1801,10 @@ const te = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1800
1801
|
}, Ao = (e) => `builder-columns ${e}-breakpoints`, Bo = y({
|
|
1801
1802
|
name: "builder-columns",
|
|
1802
1803
|
components: {
|
|
1803
|
-
InlinedStyles:
|
|
1804
|
-
DynamicRenderer:
|
|
1804
|
+
InlinedStyles: me,
|
|
1805
|
+
DynamicRenderer: Ee,
|
|
1805
1806
|
Blocks: K,
|
|
1806
|
-
DynamicDiv:
|
|
1807
|
+
DynamicDiv: ne
|
|
1807
1808
|
},
|
|
1808
1809
|
props: [
|
|
1809
1810
|
"space",
|
|
@@ -1932,7 +1933,7 @@ const te = /* @__PURE__ */ v($o, [["render", Eo]]), Ro = /* @__PURE__ */ Object.
|
|
|
1932
1933
|
...e.link ? {
|
|
1933
1934
|
href: e.link
|
|
1934
1935
|
} : {},
|
|
1935
|
-
[
|
|
1936
|
+
[M()]: "builder-column",
|
|
1936
1937
|
style: Et(this.columnCssVars(t))
|
|
1937
1938
|
};
|
|
1938
1939
|
}
|
|
@@ -1950,16 +1951,16 @@ function Vo(e, t, n, o, r, i) {
|
|
|
1950
1951
|
id: "builderio-columns",
|
|
1951
1952
|
styles: e.columnsStyles(),
|
|
1952
1953
|
nonce: e.builderContext.nonce
|
|
1953
|
-
}, null, 8, ["styles", "nonce"])) :
|
|
1954
|
-
(d(!0), h(I, null,
|
|
1955
|
-
key:
|
|
1954
|
+
}, null, 8, ["styles", "nonce"])) : T("", !0),
|
|
1955
|
+
(d(!0), h(I, null, L(e.columns, (p, b) => (d(), S(a, {
|
|
1956
|
+
key: b,
|
|
1956
1957
|
TagName: e.getTagName(p),
|
|
1957
1958
|
actionAttributes: {},
|
|
1958
|
-
attributes: e.getAttributes(p,
|
|
1959
|
+
attributes: e.getAttributes(p, b)
|
|
1959
1960
|
}, {
|
|
1960
|
-
default:
|
|
1961
|
+
default: D(() => [
|
|
1961
1962
|
R(l, {
|
|
1962
|
-
path: `columns.${
|
|
1963
|
+
path: `columns.${b}.blocks`,
|
|
1963
1964
|
parent: e.builderBlock.id,
|
|
1964
1965
|
context: e.builderContext,
|
|
1965
1966
|
registeredComponents: e.builderComponents,
|
|
@@ -1974,16 +1975,16 @@ function Vo(e, t, n, o, r, i) {
|
|
|
1974
1975
|
}, 1032, ["TagName", "attributes"]))), 128))
|
|
1975
1976
|
], 16);
|
|
1976
1977
|
}
|
|
1977
|
-
const No = /* @__PURE__ */ v(Bo, [["render", Vo], ["__scopeId", "data-v-ab15749a"]]),
|
|
1978
|
+
const No = /* @__PURE__ */ v(Bo, [["render", Vo], ["__scopeId", "data-v-ab15749a"]]), Oo = y({
|
|
1978
1979
|
name: "builder-fragment-component",
|
|
1979
1980
|
props: []
|
|
1980
1981
|
});
|
|
1981
|
-
function
|
|
1982
|
+
function Wo(e, t, n, o, r, i) {
|
|
1982
1983
|
return d(), h("span", null, [
|
|
1983
1984
|
N(e.$slots, "default")
|
|
1984
1985
|
]);
|
|
1985
1986
|
}
|
|
1986
|
-
const Do = /* @__PURE__ */ v(
|
|
1987
|
+
const Do = /* @__PURE__ */ v(Oo, [["render", Wo]]);
|
|
1987
1988
|
function Je(e) {
|
|
1988
1989
|
return e.replace(/http(s)?:/, "");
|
|
1989
1990
|
}
|
|
@@ -2003,7 +2004,7 @@ function Uo(e, t) {
|
|
|
2003
2004
|
}
|
|
2004
2005
|
return null;
|
|
2005
2006
|
}
|
|
2006
|
-
function
|
|
2007
|
+
function re(e) {
|
|
2007
2008
|
if (!e)
|
|
2008
2009
|
return e;
|
|
2009
2010
|
const t = [100, 200, 400, 800, 1200, 1600, 2e3];
|
|
@@ -2044,10 +2045,10 @@ const Lo = y({
|
|
|
2044
2045
|
if (!this.noWebp) {
|
|
2045
2046
|
if (this.srcset && ((n = this.image) != null && n.includes("builder.io/api/v1/image"))) {
|
|
2046
2047
|
if (!this.srcset.includes(this.image.split("?")[0]))
|
|
2047
|
-
return console.debug("Removed given srcset"),
|
|
2048
|
+
return console.debug("Removed given srcset"), re(t);
|
|
2048
2049
|
} else if (this.image && !this.srcset)
|
|
2049
|
-
return
|
|
2050
|
-
return
|
|
2050
|
+
return re(t);
|
|
2051
|
+
return re(t);
|
|
2051
2052
|
}
|
|
2052
2053
|
},
|
|
2053
2054
|
webpSrcSet() {
|
|
@@ -2073,27 +2074,27 @@ const Lo = y({
|
|
|
2073
2074
|
class: "div-t43jfuqn6g-2"
|
|
2074
2075
|
};
|
|
2075
2076
|
function jo(e, t, n, o, r, i) {
|
|
2076
|
-
var s, l, a, u, p,
|
|
2077
|
+
var s, l, a, u, p, b;
|
|
2077
2078
|
return d(), h(I, null, [
|
|
2078
|
-
|
|
2079
|
+
G("picture", null, [
|
|
2079
2080
|
e.webpSrcSet ? (d(), h("source", {
|
|
2080
2081
|
key: 0,
|
|
2081
2082
|
type: "image/webp",
|
|
2082
2083
|
srcset: e.webpSrcSet,
|
|
2083
2084
|
sizes: e.sizesToUse
|
|
2084
|
-
}, null, 8, Fo)) :
|
|
2085
|
-
|
|
2085
|
+
}, null, 8, Fo)) : T("", !0),
|
|
2086
|
+
G("img", {
|
|
2086
2087
|
loading: e.highPriority ? "eager" : "lazy",
|
|
2087
2088
|
fetchpriority: e.highPriority ? "high" : "auto",
|
|
2088
2089
|
alt: e.altText || "",
|
|
2089
2090
|
title: e.title,
|
|
2090
2091
|
role: e.altText ? void 0 : "presentation",
|
|
2091
|
-
style:
|
|
2092
|
+
style: H({
|
|
2092
2093
|
objectPosition: e.backgroundPosition || "center",
|
|
2093
2094
|
objectFit: e.backgroundSize || "cover",
|
|
2094
2095
|
...e.aspectRatioCss
|
|
2095
2096
|
}),
|
|
2096
|
-
class:
|
|
2097
|
+
class: ee(
|
|
2097
2098
|
"builder-image" + (e.className ? " " + e.className : "") + " img-t43jfuqn6g"
|
|
2098
2099
|
),
|
|
2099
2100
|
src: e.image,
|
|
@@ -2104,21 +2105,21 @@ function jo(e, t, n, o, r, i) {
|
|
|
2104
2105
|
e.aspectRatio && !((l = (s = e.builderBlock) == null ? void 0 : s.children) != null && l.length && e.fitContent) ? (d(), h("div", {
|
|
2105
2106
|
key: 0,
|
|
2106
2107
|
class: "builder-image-sizer div-t43jfuqn6g",
|
|
2107
|
-
style:
|
|
2108
|
+
style: H({
|
|
2108
2109
|
paddingTop: e.aspectRatio * 100 + "%"
|
|
2109
2110
|
})
|
|
2110
|
-
}, null, 4)) :
|
|
2111
|
-
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? N(e.$slots, "default", { key: 1 }, void 0, !0) :
|
|
2112
|
-
!e.fitContent && ((
|
|
2111
|
+
}, null, 4)) : T("", !0),
|
|
2112
|
+
(u = (a = e.builderBlock) == null ? void 0 : a.children) != null && u.length && e.fitContent ? N(e.$slots, "default", { key: 1 }, void 0, !0) : T("", !0),
|
|
2113
|
+
!e.fitContent && ((b = (p = e.builderBlock) == null ? void 0 : p.children) != null && b.length) ? (d(), h("div", Mo, [
|
|
2113
2114
|
N(e.$slots, "default", {}, void 0, !0)
|
|
2114
|
-
])) :
|
|
2115
|
+
])) : T("", !0)
|
|
2115
2116
|
], 64);
|
|
2116
2117
|
}
|
|
2117
2118
|
const zo = /* @__PURE__ */ v(Lo, [["render", jo], ["__scopeId", "data-v-bb2384ad"]]), Ko = y({
|
|
2118
2119
|
name: "builder-section-component",
|
|
2119
2120
|
props: ["attributes", "maxWidth"],
|
|
2120
2121
|
data() {
|
|
2121
|
-
return { filterAttrs:
|
|
2122
|
+
return { filterAttrs: O };
|
|
2122
2123
|
}
|
|
2123
2124
|
});
|
|
2124
2125
|
function qo(e, t, n, o, r, i) {
|
|
@@ -2135,7 +2136,7 @@ function qo(e, t, n, o, r, i) {
|
|
|
2135
2136
|
marginLeft: "auto",
|
|
2136
2137
|
marginRight: "auto"
|
|
2137
2138
|
}
|
|
2138
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
2139
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
2139
2140
|
N(e.$slots, "default")
|
|
2140
2141
|
], 16);
|
|
2141
2142
|
}
|
|
@@ -2150,41 +2151,41 @@ function Jo(e, t, n, o) {
|
|
|
2150
2151
|
function s(u, p) {
|
|
2151
2152
|
return (() => {
|
|
2152
2153
|
const c = p.property, m = p.operator;
|
|
2153
|
-
let
|
|
2154
|
-
if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (
|
|
2154
|
+
let f = p.value;
|
|
2155
|
+
if (p && p.property === "urlPath" && p.value && typeof p.value == "string" && p.value !== "/" && p.value.endsWith("/") && (f = p.value.slice(0, -1)), !(c && m))
|
|
2155
2156
|
return !0;
|
|
2156
|
-
if (Array.isArray(
|
|
2157
|
-
return m === "isNot" ?
|
|
2157
|
+
if (Array.isArray(f))
|
|
2158
|
+
return m === "isNot" ? f.every((A) => s(u, {
|
|
2158
2159
|
property: c,
|
|
2159
2160
|
operator: m,
|
|
2160
2161
|
value: A
|
|
2161
|
-
})) : !!
|
|
2162
|
+
})) : !!f.find((A) => s(u, {
|
|
2162
2163
|
property: c,
|
|
2163
2164
|
operator: m,
|
|
2164
2165
|
value: A
|
|
2165
2166
|
}));
|
|
2166
2167
|
const g = u[c];
|
|
2167
2168
|
if (Array.isArray(g))
|
|
2168
|
-
return g.includes(
|
|
2169
|
+
return g.includes(f);
|
|
2169
2170
|
switch (m) {
|
|
2170
2171
|
case "is":
|
|
2171
|
-
return g ===
|
|
2172
|
+
return g === f;
|
|
2172
2173
|
case "isNot":
|
|
2173
|
-
return g !==
|
|
2174
|
+
return g !== f;
|
|
2174
2175
|
case "contains":
|
|
2175
|
-
return (r(g) || Array.isArray(g)) && g.includes(String(
|
|
2176
|
+
return (r(g) || Array.isArray(g)) && g.includes(String(f));
|
|
2176
2177
|
case "startsWith":
|
|
2177
|
-
return r(g) && g.startsWith(String(
|
|
2178
|
+
return r(g) && g.startsWith(String(f));
|
|
2178
2179
|
case "endsWith":
|
|
2179
|
-
return r(g) && g.endsWith(String(
|
|
2180
|
+
return r(g) && g.endsWith(String(f));
|
|
2180
2181
|
case "greaterThan":
|
|
2181
|
-
return i(g) && i(
|
|
2182
|
+
return i(g) && i(f) && g > f;
|
|
2182
2183
|
case "lessThan":
|
|
2183
|
-
return i(g) && i(
|
|
2184
|
+
return i(g) && i(f) && g < f;
|
|
2184
2185
|
case "greaterThanOrEqualTo":
|
|
2185
|
-
return i(g) && i(
|
|
2186
|
+
return i(g) && i(f) && g >= f;
|
|
2186
2187
|
case "lessThanOrEqualTo":
|
|
2187
|
-
return i(g) && i(
|
|
2188
|
+
return i(g) && i(f) && g <= f;
|
|
2188
2189
|
default:
|
|
2189
2190
|
return !1;
|
|
2190
2191
|
}
|
|
@@ -2358,9 +2359,9 @@ const Qo = `function getPersonalizedVariant(variants, blockId, isHydrationTarget
|
|
|
2358
2359
|
visibilityStylesEl.innerHTML = newStyleStr;
|
|
2359
2360
|
}
|
|
2360
2361
|
}
|
|
2361
|
-
}`,
|
|
2362
|
+
}`, ie = "default", Qe = "filterWithCustomTargeting", Ce = "builderIoPersonalization", Te = "updateVisibilityStylesScript", Zo = "PersonalizationContainer", Bt = ["react", "vue", "svelte", "qwik"], Vt = ["vue", "svelte", "qwik"];
|
|
2362
2363
|
function _o(e, t) {
|
|
2363
|
-
return !(e && e.length > 0) || !t ? !1 : Vt.includes(E) ? !0 : !
|
|
2364
|
+
return !(e && e.length > 0) || !t ? !1 : Vt.includes(E) ? !0 : !w();
|
|
2364
2365
|
}
|
|
2365
2366
|
function er({
|
|
2366
2367
|
variants: e,
|
|
@@ -2372,7 +2373,7 @@ function er({
|
|
|
2372
2373
|
const i = {
|
|
2373
2374
|
blocks: r ?? [],
|
|
2374
2375
|
path: "this.children",
|
|
2375
|
-
index:
|
|
2376
|
+
index: ie
|
|
2376
2377
|
};
|
|
2377
2378
|
if (n && P()) {
|
|
2378
2379
|
if (typeof t == "number" && t < ((e == null ? void 0 : e.length) ?? 0)) {
|
|
@@ -2386,7 +2387,7 @@ function er({
|
|
|
2386
2387
|
}
|
|
2387
2388
|
return i;
|
|
2388
2389
|
}
|
|
2389
|
-
if (
|
|
2390
|
+
if (w()) {
|
|
2390
2391
|
const s = o == null ? void 0 : o[0];
|
|
2391
2392
|
if (s && e) {
|
|
2392
2393
|
const l = e.indexOf(s);
|
|
@@ -2400,22 +2401,22 @@ function er({
|
|
|
2400
2401
|
}
|
|
2401
2402
|
return i;
|
|
2402
2403
|
}
|
|
2403
|
-
const
|
|
2404
|
+
const we = (e) => {
|
|
2404
2405
|
var t;
|
|
2405
|
-
return Array.isArray(e) ? e.some(
|
|
2406
|
-
}, tr = (e) =>
|
|
2406
|
+
return Array.isArray(e) ? e.some(we) : !e || typeof e != "object" ? !1 : ((t = e.component) == null ? void 0 : t.name) === Zo ? !0 : Object.values(e).some(we);
|
|
2407
|
+
}, tr = (e) => we(e), nr = () => `
|
|
2407
2408
|
(function() {
|
|
2408
2409
|
if (!window.${Qe}) {
|
|
2409
2410
|
window.${Qe} = ${Yo};
|
|
2410
2411
|
}
|
|
2411
|
-
if (!window.${ke}) {
|
|
2412
|
-
window.${ke} = ${Qo};
|
|
2413
|
-
}
|
|
2414
2412
|
if (!window.${Ce}) {
|
|
2415
|
-
window.${Ce} = ${
|
|
2413
|
+
window.${Ce} = ${Qo};
|
|
2414
|
+
}
|
|
2415
|
+
if (!window.${Te}) {
|
|
2416
|
+
window.${Te} = ${Xo};
|
|
2416
2417
|
}
|
|
2417
2418
|
})();
|
|
2418
|
-
`, Nt = E === "react", or = (e, t, n) => `window.${
|
|
2419
|
+
`, Nt = E === "react", or = (e, t, n) => `window.${Ce}(${JSON.stringify(e)}, "${t}", ${Nt}${n ? `, "${n}"` : ""})`, rr = (e, t, n) => `window.${Te}(${JSON.stringify(e)}, "${t}", ${Nt}${n ? `, "${n}"` : ""})`, he = {
|
|
2419
2420
|
"@type": "@builder.io/sdk:Element",
|
|
2420
2421
|
layerName: "Accordion item title",
|
|
2421
2422
|
responsiveStyles: {
|
|
@@ -2444,7 +2445,7 @@ const Te = (e) => {
|
|
|
2444
2445
|
}
|
|
2445
2446
|
}
|
|
2446
2447
|
}]
|
|
2447
|
-
},
|
|
2448
|
+
}, fe = {
|
|
2448
2449
|
"@type": "@builder.io/sdk:Element",
|
|
2449
2450
|
layerName: "Accordion item detail",
|
|
2450
2451
|
responsiveStyles: {
|
|
@@ -2492,19 +2493,19 @@ const Te = (e) => {
|
|
|
2492
2493
|
name: "title",
|
|
2493
2494
|
type: "uiBlocks",
|
|
2494
2495
|
hideFromUI: !0,
|
|
2495
|
-
defaultValue: [
|
|
2496
|
+
defaultValue: [he]
|
|
2496
2497
|
}, {
|
|
2497
2498
|
name: "detail",
|
|
2498
2499
|
type: "uiBlocks",
|
|
2499
2500
|
hideFromUI: !0,
|
|
2500
|
-
defaultValue: [
|
|
2501
|
+
defaultValue: [fe]
|
|
2501
2502
|
}],
|
|
2502
2503
|
defaultValue: [{
|
|
2503
|
-
title: [
|
|
2504
|
-
detail: [
|
|
2504
|
+
title: [he],
|
|
2505
|
+
detail: [fe]
|
|
2505
2506
|
}, {
|
|
2506
|
-
title: [
|
|
2507
|
-
detail: [
|
|
2507
|
+
title: [he],
|
|
2508
|
+
detail: [fe]
|
|
2508
2509
|
}],
|
|
2509
2510
|
showIf: (e) => !e.get("useChildrenForItems")
|
|
2510
2511
|
}, {
|
|
@@ -2639,12 +2640,12 @@ function cr(e, t, n, o, r, i) {
|
|
|
2639
2640
|
const s = k("Blocks");
|
|
2640
2641
|
return d(), h("div", {
|
|
2641
2642
|
class: "builder-accordion",
|
|
2642
|
-
style:
|
|
2643
|
+
style: H(e.accordionStyles)
|
|
2643
2644
|
}, [
|
|
2644
|
-
(d(!0), h(I, null,
|
|
2645
|
-
|
|
2646
|
-
class:
|
|
2647
|
-
style:
|
|
2645
|
+
(d(!0), h(I, null, L(e.items, (l, a) => (d(), h(I, { key: a }, [
|
|
2646
|
+
G("div", {
|
|
2647
|
+
class: ee(e.getAccordionTitleClassName(a)),
|
|
2648
|
+
style: H({
|
|
2648
2649
|
...e.accordionTitleStyles,
|
|
2649
2650
|
...e.grid && {
|
|
2650
2651
|
width: e.gridRowWidth,
|
|
@@ -2665,8 +2666,8 @@ function cr(e, t, n, o, r, i) {
|
|
|
2665
2666
|
], 14, lr),
|
|
2666
2667
|
e.open.includes(a) ? (d(), h("div", {
|
|
2667
2668
|
key: 0,
|
|
2668
|
-
class:
|
|
2669
|
-
style:
|
|
2669
|
+
class: ee(e.getAccordionDetailClassName(a)),
|
|
2670
|
+
style: H(e.accordionDetailStyles)
|
|
2670
2671
|
}, [
|
|
2671
2672
|
R(s, {
|
|
2672
2673
|
blocks: l.detail,
|
|
@@ -2676,7 +2677,7 @@ function cr(e, t, n, o, r, i) {
|
|
|
2676
2677
|
registeredComponents: e.builderComponents,
|
|
2677
2678
|
linkComponent: e.builderLinkComponent
|
|
2678
2679
|
}, null, 8, ["blocks", "path", "parent", "context", "registeredComponents", "linkComponent"])
|
|
2679
|
-
], 6)) :
|
|
2680
|
+
], 6)) : T("", !0)
|
|
2680
2681
|
], 64))), 128))
|
|
2681
2682
|
], 4);
|
|
2682
2683
|
}
|
|
@@ -2929,7 +2930,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
2929
2930
|
hidden: !0,
|
|
2930
2931
|
canHaveChildren: !0,
|
|
2931
2932
|
noWrap: !0
|
|
2932
|
-
},
|
|
2933
|
+
}, De = ["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"], hr = ["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"], fr = {
|
|
2933
2934
|
name: "Image",
|
|
2934
2935
|
static: !0,
|
|
2935
2936
|
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",
|
|
@@ -2944,7 +2945,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
2944
2945
|
name: "image",
|
|
2945
2946
|
type: "file",
|
|
2946
2947
|
bubble: !0,
|
|
2947
|
-
allowedFileTypes:
|
|
2948
|
+
allowedFileTypes: De,
|
|
2948
2949
|
required: !0,
|
|
2949
2950
|
defaultValue: "https://cdn.builder.io/api/v1/image/assets%2FYJIGb4i01jvw0SRdL5Bt%2F72c80f114dc149019051b6852a9e3b7a",
|
|
2950
2951
|
onChange: (e) => {
|
|
@@ -2952,13 +2953,13 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
2952
2953
|
function n(s, l = 6e4) {
|
|
2953
2954
|
return new Promise((a, u) => {
|
|
2954
2955
|
const p = document.createElement("img");
|
|
2955
|
-
let
|
|
2956
|
+
let b = !1;
|
|
2956
2957
|
p.onload = () => {
|
|
2957
|
-
|
|
2958
|
+
b = !0, a(p);
|
|
2958
2959
|
}, p.addEventListener("error", (c) => {
|
|
2959
2960
|
console.warn("Image load failed", c.error), u(c.error);
|
|
2960
2961
|
}), p.src = s, setTimeout(() => {
|
|
2961
|
-
|
|
2962
|
+
b || u(new Error("Image load timed out"));
|
|
2962
2963
|
}, l);
|
|
2963
2964
|
});
|
|
2964
2965
|
}
|
|
@@ -3078,7 +3079,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3078
3079
|
defaultValue: []
|
|
3079
3080
|
}]
|
|
3080
3081
|
}]
|
|
3081
|
-
},
|
|
3082
|
+
}, xe = y({
|
|
3082
3083
|
render() {
|
|
3083
3084
|
return _e("script", {
|
|
3084
3085
|
innerHTML: this.scriptStr,
|
|
@@ -3092,8 +3093,8 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3092
3093
|
name: "builder-personalization-container",
|
|
3093
3094
|
components: {
|
|
3094
3095
|
Blocks: K,
|
|
3095
|
-
InlinedStyles:
|
|
3096
|
-
InlinedScript:
|
|
3096
|
+
InlinedStyles: me,
|
|
3097
|
+
InlinedScript: xe
|
|
3097
3098
|
},
|
|
3098
3099
|
props: [
|
|
3099
3100
|
"builderContext",
|
|
@@ -3106,7 +3107,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3106
3107
|
data() {
|
|
3107
3108
|
var e, t, n, o, r, i, s;
|
|
3108
3109
|
return {
|
|
3109
|
-
userAttributes:
|
|
3110
|
+
userAttributes: de.getUserAttributes(),
|
|
3110
3111
|
scriptStr: or(
|
|
3111
3112
|
this.variants,
|
|
3112
3113
|
((e = this.builderBlock) == null ? void 0 : e.id) || "none",
|
|
@@ -3120,18 +3121,18 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3120
3121
|
unsubscribers: [],
|
|
3121
3122
|
shouldRenderVariants: _o(
|
|
3122
3123
|
this.variants,
|
|
3123
|
-
|
|
3124
|
+
J((s = this.builderContext) == null ? void 0 : s.canTrack)
|
|
3124
3125
|
),
|
|
3125
3126
|
shouldResetVariants: !1,
|
|
3126
3127
|
TARGET: E,
|
|
3127
|
-
DEFAULT_INDEX:
|
|
3128
|
+
DEFAULT_INDEX: ie,
|
|
3128
3129
|
SDKS_REQUIRING_RESET_APPROACH: Vt
|
|
3129
3130
|
};
|
|
3130
3131
|
},
|
|
3131
3132
|
mounted() {
|
|
3132
3133
|
var t;
|
|
3133
3134
|
this.shouldResetVariants = !0;
|
|
3134
|
-
const e =
|
|
3135
|
+
const e = de.subscribeOnUserAttributesChange(
|
|
3135
3136
|
(n) => {
|
|
3136
3137
|
this.userAttributes = n;
|
|
3137
3138
|
},
|
|
@@ -3139,12 +3140,12 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3139
3140
|
fireImmediately: E === "qwik"
|
|
3140
3141
|
}
|
|
3141
3142
|
);
|
|
3142
|
-
if (!(P() ||
|
|
3143
|
+
if (!(P() || Be())) {
|
|
3143
3144
|
const n = this.filteredVariants[0];
|
|
3144
3145
|
this.$refs.rootRef && (this.$refs.rootRef.dispatchEvent(
|
|
3145
3146
|
new CustomEvent("builder.variantLoaded", {
|
|
3146
3147
|
detail: {
|
|
3147
|
-
variant: n ||
|
|
3148
|
+
variant: n || ie,
|
|
3148
3149
|
content: (t = this.builderContext) == null ? void 0 : t.content
|
|
3149
3150
|
},
|
|
3150
3151
|
bubbles: !0
|
|
@@ -3155,7 +3156,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3155
3156
|
i.isIntersecting && this.$refs.rootRef && this.$refs.rootRef.dispatchEvent(
|
|
3156
3157
|
new CustomEvent("builder.variantDisplayed", {
|
|
3157
3158
|
detail: {
|
|
3158
|
-
variant: n ||
|
|
3159
|
+
variant: n || ie,
|
|
3159
3160
|
content: (s = this.builderContext) == null ? void 0 : s.content
|
|
3160
3161
|
},
|
|
3161
3162
|
bubbles: !0
|
|
@@ -3172,9 +3173,9 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3172
3173
|
computed: {
|
|
3173
3174
|
attrs() {
|
|
3174
3175
|
return {
|
|
3175
|
-
...
|
|
3176
|
-
...
|
|
3177
|
-
[
|
|
3176
|
+
...O(this.attributes, "v-on:", !1),
|
|
3177
|
+
...O(this.attributes, "v-on:", !0),
|
|
3178
|
+
[M()]: `builder-personalization-container ${this.attributes[M()] || ""}`
|
|
3178
3179
|
};
|
|
3179
3180
|
},
|
|
3180
3181
|
filteredVariants() {
|
|
@@ -3214,7 +3215,7 @@ const dr = /* @__PURE__ */ v(ar, [["render", cr]]), ur = {
|
|
|
3214
3215
|
}
|
|
3215
3216
|
});
|
|
3216
3217
|
function yr(e, t, n, o, r, i) {
|
|
3217
|
-
var u, p,
|
|
3218
|
+
var u, p, b, c, m, f, g, A, x, V;
|
|
3218
3219
|
const s = k("Blocks"), l = k("InlinedStyles"), a = k("InlinedScript");
|
|
3219
3220
|
return d(), h("div", $({ ref: "rootRef" }, e.attrs), [
|
|
3220
3221
|
e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), S(s, {
|
|
@@ -3226,9 +3227,9 @@ function yr(e, t, n, o, r, i) {
|
|
|
3226
3227
|
registeredComponents: e.builderComponents,
|
|
3227
3228
|
BlocksWrapperProps: {
|
|
3228
3229
|
...(p = e.builderContext) == null ? void 0 : p.BlocksWrapperProps,
|
|
3229
|
-
"data-variant-id": `${(
|
|
3230
|
+
"data-variant-id": `${(b = e.builderBlock) == null ? void 0 : b.id}-${e.blocksToRender.index}`
|
|
3230
3231
|
}
|
|
3231
|
-
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) :
|
|
3232
|
+
}, null, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])) : T("", !0),
|
|
3232
3233
|
!e.shouldResetVariants && e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) || !e.SDKS_REQUIRING_RESET_APPROACH.includes(e.TARGET) ? (d(), h(I, { key: 1 }, [
|
|
3233
3234
|
e.shouldRenderVariants ? (d(), h(I, { key: 0 }, [
|
|
3234
3235
|
R(l, {
|
|
@@ -3237,40 +3238,40 @@ function yr(e, t, n, o, r, i) {
|
|
|
3237
3238
|
id: `variants-styles-${(m = e.builderBlock) == null ? void 0 : m.id}`
|
|
3238
3239
|
}, null, 8, ["nonce", "styles", "id"]),
|
|
3239
3240
|
R(a, {
|
|
3240
|
-
nonce: ((
|
|
3241
|
+
nonce: ((f = e.builderContext) == null ? void 0 : f.nonce) || "",
|
|
3241
3242
|
scriptStr: e.updateVisibilityStylesScript,
|
|
3242
3243
|
id: `variants-visibility-script-${(g = e.builderBlock) == null ? void 0 : g.id}`
|
|
3243
3244
|
}, null, 8, ["nonce", "scriptStr", "id"]),
|
|
3244
|
-
(d(!0), h(I, null,
|
|
3245
|
-
var
|
|
3245
|
+
(d(!0), h(I, null, L(e.variants, (q, C) => {
|
|
3246
|
+
var z, Q, Y, W;
|
|
3246
3247
|
return d(), S(s, {
|
|
3247
|
-
key: `${(
|
|
3248
|
+
key: `${(z = e.builderBlock) == null ? void 0 : z.id}-${C}`,
|
|
3248
3249
|
BlocksWrapperProps: {
|
|
3249
3250
|
...(Q = e.builderContext) == null ? void 0 : Q.BlocksWrapperProps,
|
|
3250
3251
|
"aria-hidden": !0,
|
|
3251
3252
|
hidden: !0,
|
|
3252
|
-
"data-variant-id": `${(
|
|
3253
|
+
"data-variant-id": `${(Y = e.builderBlock) == null ? void 0 : Y.id}-${C}`
|
|
3253
3254
|
},
|
|
3254
|
-
blocks:
|
|
3255
|
-
parent: (
|
|
3256
|
-
path: `component.options.variants.${
|
|
3255
|
+
blocks: q.blocks,
|
|
3256
|
+
parent: (W = e.builderBlock) == null ? void 0 : W.id,
|
|
3257
|
+
path: `component.options.variants.${C}.blocks`,
|
|
3257
3258
|
context: e.builderContext,
|
|
3258
3259
|
registeredComponents: e.builderComponents
|
|
3259
3260
|
}, {
|
|
3260
|
-
default:
|
|
3261
|
-
var
|
|
3261
|
+
default: D(() => {
|
|
3262
|
+
var F, Le;
|
|
3262
3263
|
return [
|
|
3263
3264
|
R(a, {
|
|
3264
|
-
nonce: ((
|
|
3265
|
+
nonce: ((F = e.builderContext) == null ? void 0 : F.nonce) || "",
|
|
3265
3266
|
scriptStr: e.scriptStr,
|
|
3266
|
-
id: `variants-script-${(Le = e.builderBlock) == null ? void 0 : Le.id}-${
|
|
3267
|
+
id: `variants-script-${(Le = e.builderBlock) == null ? void 0 : Le.id}-${C}`
|
|
3267
3268
|
}, null, 8, ["nonce", "scriptStr", "id"])
|
|
3268
3269
|
];
|
|
3269
3270
|
}),
|
|
3270
3271
|
_: 2
|
|
3271
3272
|
}, 1032, ["BlocksWrapperProps", "blocks", "parent", "path", "context", "registeredComponents"]);
|
|
3272
3273
|
}), 128))
|
|
3273
|
-
], 64)) :
|
|
3274
|
+
], 64)) : T("", !0),
|
|
3274
3275
|
R(s, {
|
|
3275
3276
|
blocks: e.blocksToRender.blocks,
|
|
3276
3277
|
parent: (A = e.builderBlock) == null ? void 0 : A.id,
|
|
@@ -3278,24 +3279,24 @@ function yr(e, t, n, o, r, i) {
|
|
|
3278
3279
|
context: e.builderContext,
|
|
3279
3280
|
registeredComponents: e.builderComponents,
|
|
3280
3281
|
BlocksWrapperProps: {
|
|
3281
|
-
...(
|
|
3282
|
+
...(x = e.builderContext) == null ? void 0 : x.BlocksWrapperProps,
|
|
3282
3283
|
"data-variant-id": `${(V = e.builderBlock) == null ? void 0 : V.id}-${e.blocksToRender.index}`
|
|
3283
3284
|
}
|
|
3284
3285
|
}, {
|
|
3285
|
-
default:
|
|
3286
|
-
var
|
|
3286
|
+
default: D(() => {
|
|
3287
|
+
var q, C;
|
|
3287
3288
|
return [
|
|
3288
3289
|
e.shouldRenderVariants ? (d(), S(a, {
|
|
3289
3290
|
key: 0,
|
|
3290
|
-
nonce: ((
|
|
3291
|
+
nonce: ((q = e.builderContext) == null ? void 0 : q.nonce) || "",
|
|
3291
3292
|
scriptStr: e.scriptStr,
|
|
3292
|
-
id: `variants-script-${(
|
|
3293
|
-
}, null, 8, ["nonce", "scriptStr", "id"])) :
|
|
3293
|
+
id: `variants-script-${(C = e.builderBlock) == null ? void 0 : C.id}-${e.DEFAULT_INDEX}`
|
|
3294
|
+
}, null, 8, ["nonce", "scriptStr", "id"])) : T("", !0)
|
|
3294
3295
|
];
|
|
3295
3296
|
}),
|
|
3296
3297
|
_: 1
|
|
3297
3298
|
}, 8, ["blocks", "parent", "path", "context", "registeredComponents", "BlocksWrapperProps"])
|
|
3298
|
-
], 64)) :
|
|
3299
|
+
], 64)) : T("", !0)
|
|
3299
3300
|
], 16);
|
|
3300
3301
|
}
|
|
3301
3302
|
const vr = /* @__PURE__ */ v(gr, [["render", yr]]), Sr = {
|
|
@@ -3418,7 +3419,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3418
3419
|
builderComponents: !0,
|
|
3419
3420
|
builderLinkComponent: !0
|
|
3420
3421
|
}
|
|
3421
|
-
},
|
|
3422
|
+
}, be = {
|
|
3422
3423
|
"@type": "@builder.io/sdk:Element",
|
|
3423
3424
|
responsiveStyles: {
|
|
3424
3425
|
large: {
|
|
@@ -3440,7 +3441,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3440
3441
|
text: "New tab"
|
|
3441
3442
|
}
|
|
3442
3443
|
}
|
|
3443
|
-
},
|
|
3444
|
+
}, ge = {
|
|
3444
3445
|
"@type": "@builder.io/sdk:Element",
|
|
3445
3446
|
responsiveStyles: {
|
|
3446
3447
|
large: {
|
|
@@ -3466,16 +3467,16 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3466
3467
|
name: "label",
|
|
3467
3468
|
type: "uiBlocks",
|
|
3468
3469
|
hideFromUI: !0,
|
|
3469
|
-
defaultValue: [
|
|
3470
|
+
defaultValue: [be]
|
|
3470
3471
|
}, {
|
|
3471
3472
|
name: "content",
|
|
3472
3473
|
type: "uiBlocks",
|
|
3473
3474
|
hideFromUI: !0,
|
|
3474
|
-
defaultValue: [
|
|
3475
|
+
defaultValue: [ge]
|
|
3475
3476
|
}],
|
|
3476
3477
|
defaultValue: [{
|
|
3477
3478
|
label: [{
|
|
3478
|
-
...
|
|
3479
|
+
...be,
|
|
3479
3480
|
component: {
|
|
3480
3481
|
name: "Text",
|
|
3481
3482
|
options: {
|
|
@@ -3484,7 +3485,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3484
3485
|
}
|
|
3485
3486
|
}],
|
|
3486
3487
|
content: [{
|
|
3487
|
-
...
|
|
3488
|
+
...ge,
|
|
3488
3489
|
component: {
|
|
3489
3490
|
name: "Text",
|
|
3490
3491
|
options: {
|
|
@@ -3494,7 +3495,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3494
3495
|
}]
|
|
3495
3496
|
}, {
|
|
3496
3497
|
label: [{
|
|
3497
|
-
...
|
|
3498
|
+
...be,
|
|
3498
3499
|
component: {
|
|
3499
3500
|
name: "Text",
|
|
3500
3501
|
options: {
|
|
@@ -3503,7 +3504,7 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3503
3504
|
}
|
|
3504
3505
|
}],
|
|
3505
3506
|
content: [{
|
|
3506
|
-
...
|
|
3507
|
+
...ge,
|
|
3507
3508
|
component: {
|
|
3508
3509
|
name: "Text",
|
|
3509
3510
|
options: {
|
|
@@ -3591,19 +3592,19 @@ const wr = /* @__PURE__ */ v(Cr, [["render", Tr]]), Ir = {
|
|
|
3591
3592
|
function Ar(e, t, n, o, r, i) {
|
|
3592
3593
|
const s = k("Blocks");
|
|
3593
3594
|
return d(), h("div", null, [
|
|
3594
|
-
|
|
3595
|
+
G("div", {
|
|
3595
3596
|
class: "builder-tabs-wrap",
|
|
3596
|
-
style:
|
|
3597
|
+
style: H({
|
|
3597
3598
|
display: "flex",
|
|
3598
3599
|
flexDirection: "row",
|
|
3599
3600
|
justifyContent: e.tabHeaderLayout || "flex-start",
|
|
3600
3601
|
overflow: "auto"
|
|
3601
3602
|
})
|
|
3602
3603
|
}, [
|
|
3603
|
-
(d(!0), h(I, null,
|
|
3604
|
+
(d(!0), h(I, null, L(e.tabs, (l, a) => (d(), h("span", {
|
|
3604
3605
|
key: a,
|
|
3605
|
-
class:
|
|
3606
|
-
style:
|
|
3606
|
+
class: ee(`builder-tab-wrap ${e.activeTab === a ? "builder-tab-active" : ""}`),
|
|
3607
|
+
style: H(e.getTabStyle(a)),
|
|
3607
3608
|
onClick: async (u) => e.onClick(a)
|
|
3608
3609
|
}, [
|
|
3609
3610
|
R(s, {
|
|
@@ -3625,7 +3626,7 @@ function Ar(e, t, n, o, r, i) {
|
|
|
3625
3626
|
registeredComponents: e.builderComponents,
|
|
3626
3627
|
linkComponent: e.builderLinkComponent
|
|
3627
3628
|
}, null, 8, ["parent", "path", "blocks", "context", "registeredComponents", "linkComponent"])
|
|
3628
|
-
])) :
|
|
3629
|
+
])) : T("", !0)
|
|
3629
3630
|
]);
|
|
3630
3631
|
}
|
|
3631
3632
|
const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
@@ -3649,8 +3650,8 @@ const Br = /* @__PURE__ */ v(Er, [["render", Ar]]), Vr = {
|
|
|
3649
3650
|
}, Nr = y({
|
|
3650
3651
|
name: "builder-text",
|
|
3651
3652
|
props: ["text"]
|
|
3652
|
-
}),
|
|
3653
|
-
function
|
|
3653
|
+
}), Or = ["innerHTML"];
|
|
3654
|
+
function Wr(e, t, n, o, r, i) {
|
|
3654
3655
|
var s;
|
|
3655
3656
|
return d(), h("div", {
|
|
3656
3657
|
class: "builder-text",
|
|
@@ -3658,9 +3659,9 @@ function Or(e, t, n, o, r, i) {
|
|
|
3658
3659
|
style: {
|
|
3659
3660
|
outline: "none"
|
|
3660
3661
|
}
|
|
3661
|
-
}, null, 8,
|
|
3662
|
+
}, null, 8, Or);
|
|
3662
3663
|
}
|
|
3663
|
-
const Dr = /* @__PURE__ */ v(Nr, [["render",
|
|
3664
|
+
const Dr = /* @__PURE__ */ v(Nr, [["render", Wr]]), xr = {
|
|
3664
3665
|
name: "Custom Code",
|
|
3665
3666
|
static: !0,
|
|
3666
3667
|
requiredPermissions: ["editCode"],
|
|
@@ -3745,7 +3746,7 @@ const Dr = /* @__PURE__ */ v(Nr, [["render", Or]]), xr = {
|
|
|
3745
3746
|
function Fr(e, t, n, o, r, i) {
|
|
3746
3747
|
return d(), h("div", {
|
|
3747
3748
|
ref: "elementRef",
|
|
3748
|
-
class:
|
|
3749
|
+
class: ee("builder-custom-code" + (e.replaceNodes ? " replace-nodes" : "")),
|
|
3749
3750
|
innerHTML: e.code
|
|
3750
3751
|
}, null, 10, Lr);
|
|
3751
3752
|
}
|
|
@@ -4082,7 +4083,7 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4082
4083
|
formState: "unsubmitted",
|
|
4083
4084
|
responseData: null,
|
|
4084
4085
|
formErrorMessage: "",
|
|
4085
|
-
filterAttrs:
|
|
4086
|
+
filterAttrs: O
|
|
4086
4087
|
};
|
|
4087
4088
|
},
|
|
4088
4089
|
methods: {
|
|
@@ -4117,12 +4118,12 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4117
4118
|
(c) => !!c.name && (c.type !== "radio" || c.checked)
|
|
4118
4119
|
).map((c) => {
|
|
4119
4120
|
let m;
|
|
4120
|
-
const
|
|
4121
|
+
const f = c.name;
|
|
4121
4122
|
if (c instanceof HTMLInputElement)
|
|
4122
4123
|
if (c.type === "radio") {
|
|
4123
4124
|
if (c.checked)
|
|
4124
4125
|
return m = c.value, {
|
|
4125
|
-
key:
|
|
4126
|
+
key: f,
|
|
4126
4127
|
value: m
|
|
4127
4128
|
};
|
|
4128
4129
|
} else if (c.type === "checkbox")
|
|
@@ -4135,7 +4136,7 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4135
4136
|
else
|
|
4136
4137
|
m = c.value;
|
|
4137
4138
|
return {
|
|
4138
|
-
key:
|
|
4139
|
+
key: f,
|
|
4139
4140
|
value: m
|
|
4140
4141
|
};
|
|
4141
4142
|
});
|
|
@@ -4146,8 +4147,8 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4146
4147
|
i = s;
|
|
4147
4148
|
else {
|
|
4148
4149
|
const c = {};
|
|
4149
|
-
Array.from(l).forEach(({ value: m, key:
|
|
4150
|
-
ht(c,
|
|
4150
|
+
Array.from(l).forEach(({ value: m, key: f }) => {
|
|
4151
|
+
ht(c, f, m);
|
|
4151
4152
|
}), i = JSON.stringify(c);
|
|
4152
4153
|
}
|
|
4153
4154
|
a && a !== "multipart/form-data" && (t && ((n = this.action) != null && n.includes("zapier.com")) || (r["content-type"] = a));
|
|
@@ -4167,8 +4168,8 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4167
4168
|
}
|
|
4168
4169
|
const p = `${Xr() === "dev" ? "http://localhost:5000" : "https://builder.io"}/api/v1/form-submit?apiKey=${this.builderContext.apiKey}&to=${btoa(
|
|
4169
4170
|
this.sendSubmissionsToEmail || ""
|
|
4170
|
-
)}&name=${encodeURIComponent(this.name || "")}`,
|
|
4171
|
-
|
|
4171
|
+
)}&name=${encodeURIComponent(this.name || "")}`, b = this.sendSubmissionsTo === "email" ? p : this.action;
|
|
4172
|
+
Pe(b), fetch(b, {
|
|
4172
4173
|
body: i,
|
|
4173
4174
|
headers: r,
|
|
4174
4175
|
method: this.method || "post"
|
|
@@ -4176,17 +4177,17 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4176
4177
|
async (c) => {
|
|
4177
4178
|
var g, A;
|
|
4178
4179
|
let m;
|
|
4179
|
-
const
|
|
4180
|
-
if (
|
|
4181
|
-
const
|
|
4180
|
+
const f = c.headers.get("content-type");
|
|
4181
|
+
if (f && f.indexOf("application/json") !== -1 ? m = await c.json() : m = await c.text(), !c.ok) {
|
|
4182
|
+
const x = new CustomEvent("submit:error", {
|
|
4182
4183
|
detail: {
|
|
4183
4184
|
error: m,
|
|
4184
4185
|
status: c.status
|
|
4185
4186
|
}
|
|
4186
4187
|
});
|
|
4187
4188
|
if ((g = this.$refs.formRef) != null && g.nativeElement && ((A = this.$refs.formRef) == null || A.nativeElement.dispatchEvent(
|
|
4188
|
-
|
|
4189
|
-
),
|
|
4189
|
+
x
|
|
4190
|
+
), x.defaultPrevented))
|
|
4190
4191
|
return;
|
|
4191
4192
|
this.responseData = m, this.formState = "error";
|
|
4192
4193
|
let V = this.errorMessagePath ? tt(m, this.errorMessagePath) : m.message || m.error || m;
|
|
@@ -4196,14 +4197,14 @@ const Jr = /* @__PURE__ */ v(Kr, [["render", Gr]]), Qr = {
|
|
|
4196
4197
|
return;
|
|
4197
4198
|
}
|
|
4198
4199
|
if (this.responseData = m, this.formState = c.ok ? "success" : "error", c.ok) {
|
|
4199
|
-
const
|
|
4200
|
+
const x = new CustomEvent("submit:success", {
|
|
4200
4201
|
detail: {
|
|
4201
4202
|
res: c,
|
|
4202
4203
|
body: m
|
|
4203
4204
|
}
|
|
4204
4205
|
});
|
|
4205
4206
|
if (this.$refs.formRef) {
|
|
4206
|
-
if (this.$refs.formRef.dispatchEvent(
|
|
4207
|
+
if (this.$refs.formRef.dispatchEvent(x), x.defaultPrevented)
|
|
4207
4208
|
return;
|
|
4208
4209
|
this.resetFormOnSubmit !== !1 && this.$refs.formRef.reset();
|
|
4209
4210
|
}
|
|
@@ -4244,27 +4245,27 @@ function ti(e, t, n, o, r, i) {
|
|
|
4244
4245
|
method: e.method,
|
|
4245
4246
|
name: e.name,
|
|
4246
4247
|
onSubmit: t[0] || (t[0] = async (l) => e.onSubmit(l))
|
|
4247
|
-
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
4248
|
+
}, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4248
4249
|
N(e.$slots, "default", {}, void 0, !0),
|
|
4249
4250
|
e.submissionState() === "error" ? (d(), S(s, {
|
|
4250
4251
|
key: 0,
|
|
4251
4252
|
path: "errorMessage",
|
|
4252
4253
|
blocks: e.errorMessage,
|
|
4253
4254
|
context: e.builderContext
|
|
4254
|
-
}, null, 8, ["blocks", "context"])) :
|
|
4255
|
+
}, null, 8, ["blocks", "context"])) : T("", !0),
|
|
4255
4256
|
e.submissionState() === "sending" ? (d(), S(s, {
|
|
4256
4257
|
key: 1,
|
|
4257
4258
|
path: "sendingMessage",
|
|
4258
4259
|
blocks: e.sendingMessage,
|
|
4259
4260
|
context: e.builderContext
|
|
4260
|
-
}, null, 8, ["blocks", "context"])) :
|
|
4261
|
-
e.submissionState() === "error" && e.responseData ? (d(), h("pre", ei,
|
|
4261
|
+
}, null, 8, ["blocks", "context"])) : T("", !0),
|
|
4262
|
+
e.submissionState() === "error" && e.responseData ? (d(), h("pre", ei, ue(e.errorResponse(e.responseData)), 1)) : T("", !0),
|
|
4262
4263
|
e.submissionState() === "success" ? (d(), S(s, {
|
|
4263
4264
|
key: 3,
|
|
4264
4265
|
path: "successMessage",
|
|
4265
4266
|
blocks: e.successMessage,
|
|
4266
4267
|
context: e.builderContext
|
|
4267
|
-
}, null, 8, ["blocks", "context"])) :
|
|
4268
|
+
}, null, 8, ["blocks", "context"])) : T("", !0)
|
|
4268
4269
|
], 16, _r);
|
|
4269
4270
|
}
|
|
4270
4271
|
const ni = /* @__PURE__ */ v(Zr, [["render", ti], ["__scopeId", "data-v-77c7888c"]]), oi = {
|
|
@@ -4330,7 +4331,7 @@ const ni = /* @__PURE__ */ v(Zr, [["render", ti], ["__scopeId", "data-v-77c7888c
|
|
|
4330
4331
|
"required"
|
|
4331
4332
|
],
|
|
4332
4333
|
data() {
|
|
4333
|
-
return { isEditing: P, filterAttrs:
|
|
4334
|
+
return { isEditing: P, filterAttrs: O };
|
|
4334
4335
|
}
|
|
4335
4336
|
}), ii = ["placeholder", "type", "name", "value", "defaultValue", "required"];
|
|
4336
4337
|
function si(e, t, n, o, r, i) {
|
|
@@ -4342,7 +4343,7 @@ function si(e, t, n, o, r, i) {
|
|
|
4342
4343
|
value: e.value,
|
|
4343
4344
|
defaultValue: e.defaultValue,
|
|
4344
4345
|
required: e.required
|
|
4345
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4346
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, ii);
|
|
4346
4347
|
}
|
|
4347
4348
|
const ai = /* @__PURE__ */ v(ri, [["render", si]]), li = {
|
|
4348
4349
|
name: "Form:Select",
|
|
@@ -4390,7 +4391,7 @@ const ai = /* @__PURE__ */ v(ri, [["render", si]]), li = {
|
|
|
4390
4391
|
name: "builder-select-component",
|
|
4391
4392
|
props: ["attributes", "value", "defaultValue", "name", "required", "options"],
|
|
4392
4393
|
data() {
|
|
4393
|
-
return { isEditing: P, filterAttrs:
|
|
4394
|
+
return { isEditing: P, filterAttrs: O };
|
|
4394
4395
|
}
|
|
4395
4396
|
}), di = ["value", "defaultValue", "name", "required"], ui = ["value"];
|
|
4396
4397
|
function pi(e, t, n, o, r, i) {
|
|
@@ -4400,11 +4401,11 @@ function pi(e, t, n, o, r, i) {
|
|
|
4400
4401
|
defaultValue: e.defaultValue,
|
|
4401
4402
|
name: e.name,
|
|
4402
4403
|
required: e.required
|
|
4403
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4404
|
-
(d(!0), h(I, null,
|
|
4404
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
4405
|
+
(d(!0), h(I, null, L(e.options, (s, l) => (d(), h("option", {
|
|
4405
4406
|
key: `${s.name}-${l}`,
|
|
4406
4407
|
value: s.value
|
|
4407
|
-
},
|
|
4408
|
+
}, ue(s.name || s.value), 9, ui))), 128))
|
|
4408
4409
|
], 16, di);
|
|
4409
4410
|
}
|
|
4410
4411
|
const mi = /* @__PURE__ */ v(ci, [["render", pi]]), hi = {
|
|
@@ -4436,11 +4437,11 @@ const mi = /* @__PURE__ */ v(ci, [["render", pi]]), hi = {
|
|
|
4436
4437
|
name: "builder-submit-button",
|
|
4437
4438
|
props: ["attributes", "text"],
|
|
4438
4439
|
data() {
|
|
4439
|
-
return { filterAttrs:
|
|
4440
|
+
return { filterAttrs: O };
|
|
4440
4441
|
}
|
|
4441
4442
|
});
|
|
4442
4443
|
function bi(e, t, n, o, r, i) {
|
|
4443
|
-
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4444
|
+
return d(), h("button", $({ type: "submit" }, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), ue(e.text), 17);
|
|
4444
4445
|
}
|
|
4445
4446
|
const gi = /* @__PURE__ */ v(fi, [["render", bi]]), yi = {
|
|
4446
4447
|
name: "Form:TextArea",
|
|
@@ -4489,7 +4490,7 @@ const gi = /* @__PURE__ */ v(fi, [["render", bi]]), yi = {
|
|
|
4489
4490
|
"required"
|
|
4490
4491
|
],
|
|
4491
4492
|
data() {
|
|
4492
|
-
return { filterAttrs:
|
|
4493
|
+
return { filterAttrs: O };
|
|
4493
4494
|
}
|
|
4494
4495
|
}), Si = ["placeholder", "name", "value", "defaultValue", "required"];
|
|
4495
4496
|
function ki(e, t, n, o, r, i) {
|
|
@@ -4499,7 +4500,7 @@ function ki(e, t, n, o, r, i) {
|
|
|
4499
4500
|
value: e.value,
|
|
4500
4501
|
defaultValue: e.defaultValue,
|
|
4501
4502
|
required: e.required
|
|
4502
|
-
}, e.filterAttrs(e.attributes, "v-on:", !1),
|
|
4503
|
+
}, e.filterAttrs(e.attributes, "v-on:", !1), U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), null, 16, Si);
|
|
4503
4504
|
}
|
|
4504
4505
|
const Ci = /* @__PURE__ */ v(vi, [["render", ki]]), Ti = {
|
|
4505
4506
|
name: "Raw:Img",
|
|
@@ -4509,7 +4510,7 @@ const Ci = /* @__PURE__ */ v(vi, [["render", ki]]), Ti = {
|
|
|
4509
4510
|
name: "image",
|
|
4510
4511
|
bubble: !0,
|
|
4511
4512
|
type: "file",
|
|
4512
|
-
allowedFileTypes:
|
|
4513
|
+
allowedFileTypes: De,
|
|
4513
4514
|
required: !0
|
|
4514
4515
|
}, {
|
|
4515
4516
|
name: "backgroundSize",
|
|
@@ -4564,13 +4565,13 @@ const Ci = /* @__PURE__ */ v(vi, [["render", ki]]), Ti = {
|
|
|
4564
4565
|
srcSetToUse() {
|
|
4565
4566
|
const e = this.imgSrc || this.image;
|
|
4566
4567
|
if (!(!e || typeof e != "string") && e.match(/builder\.io/))
|
|
4567
|
-
return
|
|
4568
|
+
return re(e);
|
|
4568
4569
|
},
|
|
4569
4570
|
imgAttrs() {
|
|
4570
4571
|
const e = {
|
|
4571
|
-
...
|
|
4572
|
-
...
|
|
4573
|
-
[
|
|
4572
|
+
...O(this.attributes, "v-on:", !1),
|
|
4573
|
+
...O(this.attributes, "v-on:", !0),
|
|
4574
|
+
[M()]: `builder-raw-img ${this.attributes[M()] || ""}`
|
|
4574
4575
|
};
|
|
4575
4576
|
return delete e.style, e;
|
|
4576
4577
|
}
|
|
@@ -4610,7 +4611,7 @@ const Ei = /* @__PURE__ */ v(wi, [["render", $i]]), Ri = {
|
|
|
4610
4611
|
}, {
|
|
4611
4612
|
name: "posterImage",
|
|
4612
4613
|
type: "file",
|
|
4613
|
-
allowedFileTypes:
|
|
4614
|
+
allowedFileTypes: De,
|
|
4614
4615
|
helperText: "Image to show before the video plays"
|
|
4615
4616
|
}, {
|
|
4616
4617
|
name: "autoPlay",
|
|
@@ -4772,10 +4773,10 @@ const Ei = /* @__PURE__ */ v(wi, [["render", $i]]), Ri = {
|
|
|
4772
4773
|
height: "100%"
|
|
4773
4774
|
}
|
|
4774
4775
|
};
|
|
4775
|
-
function
|
|
4776
|
-
var s, l, a, u, p,
|
|
4776
|
+
function Oi(e, t, n, o, r, i) {
|
|
4777
|
+
var s, l, a, u, p, b, c;
|
|
4777
4778
|
return d(), h("div", Ai, [
|
|
4778
|
-
|
|
4779
|
+
G("video", $({
|
|
4779
4780
|
class: "builder-video",
|
|
4780
4781
|
ref: "videoRef",
|
|
4781
4782
|
preload: e.lazyLoad ? "none" : e.preload || "metadata",
|
|
@@ -4794,7 +4795,7 @@ function Wi(e, t, n, o, r, i) {
|
|
|
4794
4795
|
},
|
|
4795
4796
|
poster: e.posterImage
|
|
4796
4797
|
}, e.spreadProps), [
|
|
4797
|
-
|
|
4798
|
+
G("source", $(
|
|
4798
4799
|
{ type: "video/mp4" },
|
|
4799
4800
|
e.lazyLoad ? {
|
|
4800
4801
|
"data-src": e.video
|
|
@@ -4805,22 +4806,22 @@ function Wi(e, t, n, o, r, i) {
|
|
|
4805
4806
|
], 16, Bi),
|
|
4806
4807
|
e.aspectRatio && !(e.fitContent && ((a = (l = e.builderBlock) == null ? void 0 : l.children) != null && a.length)) ? (d(), h("div", {
|
|
4807
4808
|
key: 0,
|
|
4808
|
-
style:
|
|
4809
|
+
style: H({
|
|
4809
4810
|
width: "100%",
|
|
4810
4811
|
paddingTop: e.aspectRatio * 100 + "%",
|
|
4811
4812
|
pointerEvents: "none",
|
|
4812
4813
|
fontSize: "0px"
|
|
4813
4814
|
})
|
|
4814
|
-
}, null, 4)) :
|
|
4815
|
+
}, null, 4)) : T("", !0),
|
|
4815
4816
|
(p = (u = e.builderBlock) == null ? void 0 : u.children) != null && p.length && e.fitContent ? (d(), h("div", Vi, [
|
|
4816
4817
|
N(e.$slots, "default")
|
|
4817
|
-
])) :
|
|
4818
|
-
(c = (
|
|
4818
|
+
])) : T("", !0),
|
|
4819
|
+
(c = (b = e.builderBlock) == null ? void 0 : b.children) != null && c.length && !e.fitContent ? (d(), h("div", Ni, [
|
|
4819
4820
|
N(e.$slots, "default")
|
|
4820
|
-
])) :
|
|
4821
|
+
])) : T("", !0)
|
|
4821
4822
|
]);
|
|
4822
4823
|
}
|
|
4823
|
-
const
|
|
4824
|
+
const Wi = /* @__PURE__ */ v(Pi, [["render", Oi]]), Di = () => [{
|
|
4824
4825
|
component: Hr,
|
|
4825
4826
|
...xr
|
|
4826
4827
|
}, {
|
|
@@ -4845,7 +4846,7 @@ const Oi = /* @__PURE__ */ v(Pi, [["render", Wi]]), Di = () => [{
|
|
|
4845
4846
|
component: Ei,
|
|
4846
4847
|
...Ti
|
|
4847
4848
|
}, {
|
|
4848
|
-
component:
|
|
4849
|
+
component: Wi,
|
|
4849
4850
|
...Ri
|
|
4850
4851
|
}], Ye = () => [{
|
|
4851
4852
|
component: Mt,
|
|
@@ -4973,32 +4974,32 @@ const Oi = /* @__PURE__ */ v(Pi, [["render", Wi]]), Di = () => [{
|
|
|
4973
4974
|
thisScriptEl?.remove();
|
|
4974
4975
|
}
|
|
4975
4976
|
return;
|
|
4976
|
-
}`,
|
|
4977
|
+
}`, Ie = "builderIoAbTest", $e = "builderIoRenderContent", se = (e) => Object.values((e == null ? void 0 : e.variations) || {}).map((t) => ({
|
|
4977
4978
|
...t,
|
|
4978
4979
|
testVariationId: t.id,
|
|
4979
4980
|
id: e == null ? void 0 : e.id
|
|
4980
4981
|
})), Li = ({
|
|
4981
4982
|
canTrack: e,
|
|
4982
4983
|
content: t
|
|
4983
|
-
}) => !(!(
|
|
4984
|
+
}) => !(!(se(t).length > 0) || !e), Fi = (e) => e === "react" || e === "reactNative", Hi = E === "angular", Ue = Fi(E), Mi = () => `
|
|
4984
4985
|
(function() {
|
|
4985
|
-
if (!window.${we}) {
|
|
4986
|
-
window.${we} = ${xi};
|
|
4987
|
-
}
|
|
4988
4986
|
if (!window.${Ie}) {
|
|
4989
|
-
window.${Ie} = ${
|
|
4990
|
-
}
|
|
4987
|
+
window.${Ie} = ${xi};
|
|
4988
|
+
}
|
|
4989
|
+
if (!window.${$e}) {
|
|
4990
|
+
window.${$e} = ${Ui};
|
|
4991
|
+
}${Ue ? `
|
|
4991
4992
|
var thisScriptEl = document.currentScript;
|
|
4992
4993
|
if (thisScriptEl) { thisScriptEl.remove(); }` : ""}
|
|
4993
4994
|
})();
|
|
4994
4995
|
`, ji = (e, t) => `
|
|
4995
|
-
window.${
|
|
4996
|
-
"${t}",${JSON.stringify(e)}, ${
|
|
4996
|
+
window.${Ie}(
|
|
4997
|
+
"${t}",${JSON.stringify(e)}, ${Ue}, ${Hi}
|
|
4997
4998
|
)`, zi = ({
|
|
4998
4999
|
contentId: e,
|
|
4999
5000
|
variationId: t
|
|
5000
|
-
}) => `window.${
|
|
5001
|
-
"${t}", "${e}", ${
|
|
5001
|
+
}) => `window.${$e}(
|
|
5002
|
+
"${t}", "${e}", ${Ue}
|
|
5002
5003
|
)`;
|
|
5003
5004
|
function Xe(e) {
|
|
5004
5005
|
return Math.round(e * 1e3) / 1e3;
|
|
@@ -5042,7 +5043,7 @@ const Ki = (e, t, n = !0) => {
|
|
|
5042
5043
|
builderElementIndex: n && o ? [].slice.call(document.getElementsByClassName(o)).indexOf(n) : void 0
|
|
5043
5044
|
}
|
|
5044
5045
|
};
|
|
5045
|
-
}, Ji = ["svelte", "qwik", "vue"], Qi = () => Ji.includes(E) && (P() ||
|
|
5046
|
+
}, Ji = ["svelte", "qwik", "vue"], Qi = () => Ji.includes(E) && (P() || Be()), Yi = (e) => {
|
|
5046
5047
|
var i;
|
|
5047
5048
|
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);
|
|
5048
5049
|
let r = "";
|
|
@@ -5095,7 +5096,7 @@ font-weight: ${s};
|
|
|
5095
5096
|
}
|
|
5096
5097
|
`, es = (e) => e ? "" : _i, ts = (e) => `variant-${e}`, ns = y({
|
|
5097
5098
|
name: "enable-editor",
|
|
5098
|
-
components: { DynamicDiv:
|
|
5099
|
+
components: { DynamicDiv: ne },
|
|
5099
5100
|
props: [
|
|
5100
5101
|
"isNestedRender",
|
|
5101
5102
|
"builderContextSignal",
|
|
@@ -5104,6 +5105,7 @@ font-weight: ${s};
|
|
|
5104
5105
|
"apiHost",
|
|
5105
5106
|
"locale",
|
|
5106
5107
|
"enrich",
|
|
5108
|
+
"enrichOptions",
|
|
5107
5109
|
"trustedHosts",
|
|
5108
5110
|
"model",
|
|
5109
5111
|
"content",
|
|
@@ -5124,7 +5126,7 @@ font-weight: ${s};
|
|
|
5124
5126
|
httpReqsData: {},
|
|
5125
5127
|
httpReqsPending: {},
|
|
5126
5128
|
clicked: !1,
|
|
5127
|
-
builderContext:
|
|
5129
|
+
builderContext: ye,
|
|
5128
5130
|
needsElementRefDivForEditing: Qi,
|
|
5129
5131
|
getWrapperClassName: ts
|
|
5130
5132
|
};
|
|
@@ -5132,7 +5134,7 @@ font-weight: ${s};
|
|
|
5132
5134
|
provide() {
|
|
5133
5135
|
const e = this;
|
|
5134
5136
|
return {
|
|
5135
|
-
[
|
|
5137
|
+
[ye.key]: e.builderContextSignal
|
|
5136
5138
|
};
|
|
5137
5139
|
},
|
|
5138
5140
|
created() {
|
|
@@ -5140,17 +5142,17 @@ font-weight: ${s};
|
|
|
5140
5142
|
},
|
|
5141
5143
|
mounted() {
|
|
5142
5144
|
var e, t, n;
|
|
5143
|
-
if (
|
|
5145
|
+
if (w()) {
|
|
5144
5146
|
P() && !this.isNestedRender && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5145
5147
|
new CustomEvent("initeditingbldr")
|
|
5146
5148
|
);
|
|
5147
|
-
const o = this.builderContextSignal.content &&
|
|
5149
|
+
const o = this.builderContextSignal.content && J(this.canTrack), r = pe({
|
|
5148
5150
|
name: `builder.tests.${(e = this.builderContextSignal.content) == null ? void 0 : e.id}`,
|
|
5149
5151
|
canTrack: !0
|
|
5150
5152
|
}), i = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId;
|
|
5151
5153
|
if (o && i === r) {
|
|
5152
5154
|
const s = (n = this.builderContextSignal.content) == null ? void 0 : n.id, l = this.apiKey;
|
|
5153
|
-
|
|
5155
|
+
ae({
|
|
5154
5156
|
apiHost: this.apiHost,
|
|
5155
5157
|
type: "impression",
|
|
5156
5158
|
canTrack: !0,
|
|
@@ -5159,7 +5161,7 @@ font-weight: ${s};
|
|
|
5159
5161
|
variationId: r !== s ? r : void 0
|
|
5160
5162
|
});
|
|
5161
5163
|
}
|
|
5162
|
-
|
|
5164
|
+
Be() && !P() && this.$refs.elementRef && this.$refs.elementRef.dispatchEvent(
|
|
5163
5165
|
new CustomEvent("initpreviewingbldr")
|
|
5164
5166
|
);
|
|
5165
5167
|
}
|
|
@@ -5201,7 +5203,7 @@ font-weight: ${s};
|
|
|
5201
5203
|
}
|
|
5202
5204
|
},
|
|
5203
5205
|
unmounted() {
|
|
5204
|
-
|
|
5206
|
+
w() && (window.removeEventListener("message", this.processMessage), window.removeEventListener(
|
|
5205
5207
|
"builder:component:stateChangeListenerActivated",
|
|
5206
5208
|
this.emitStateUpdate
|
|
5207
5209
|
));
|
|
@@ -5290,10 +5292,10 @@ font-weight: ${s};
|
|
|
5290
5292
|
var t, n;
|
|
5291
5293
|
if (this.builderContextSignal.content) {
|
|
5292
5294
|
const o = (t = this.builderContextSignal.content) == null ? void 0 : t.testVariationId, r = (n = this.builderContextSignal.content) == null ? void 0 : n.id;
|
|
5293
|
-
|
|
5295
|
+
ae({
|
|
5294
5296
|
apiHost: this.apiHost,
|
|
5295
5297
|
type: "click",
|
|
5296
|
-
canTrack:
|
|
5298
|
+
canTrack: J(this.canTrack),
|
|
5297
5299
|
contentId: r,
|
|
5298
5300
|
apiKey: this.apiKey,
|
|
5299
5301
|
variationId: o !== r ? o : void 0,
|
|
@@ -5317,9 +5319,9 @@ font-weight: ${s};
|
|
|
5317
5319
|
this.httpReqsPending[o] = !0;
|
|
5318
5320
|
const l = s.replace(
|
|
5319
5321
|
/{{([^}]+)}}/g,
|
|
5320
|
-
(p,
|
|
5321
|
-
|
|
5322
|
-
code:
|
|
5322
|
+
(p, b) => String(
|
|
5323
|
+
te({
|
|
5324
|
+
code: b,
|
|
5323
5325
|
context: this.context || {},
|
|
5324
5326
|
localState: void 0,
|
|
5325
5327
|
rootState: this.builderContextSignal.rootState,
|
|
@@ -5335,7 +5337,7 @@ font-weight: ${s};
|
|
|
5335
5337
|
url: l,
|
|
5336
5338
|
method: "GET"
|
|
5337
5339
|
};
|
|
5338
|
-
|
|
5340
|
+
Pe(JSON.stringify(a));
|
|
5339
5341
|
const u = {
|
|
5340
5342
|
method: a.method,
|
|
5341
5343
|
headers: a.headers,
|
|
@@ -5363,7 +5365,7 @@ font-weight: ${s};
|
|
|
5363
5365
|
"builder:component:stateChange",
|
|
5364
5366
|
{
|
|
5365
5367
|
detail: {
|
|
5366
|
-
state:
|
|
5368
|
+
state: Ae(this.builderContextSignal.rootState),
|
|
5367
5369
|
ref: {
|
|
5368
5370
|
name: this.model
|
|
5369
5371
|
}
|
|
@@ -5380,6 +5382,9 @@ font-weight: ${s};
|
|
|
5380
5382
|
...this.enrich ? {
|
|
5381
5383
|
enrich: this.enrich
|
|
5382
5384
|
} : {},
|
|
5385
|
+
...this.enrichOptions ? {
|
|
5386
|
+
enrichOptions: this.enrichOptions
|
|
5387
|
+
} : {},
|
|
5383
5388
|
...this.trustedHosts ? {
|
|
5384
5389
|
trustedHosts: this.trustedHosts
|
|
5385
5390
|
} : {},
|
|
@@ -5403,7 +5408,7 @@ font-weight: ${s};
|
|
|
5403
5408
|
const t = new URL(location.href).searchParams, n = t.get("builder.preview"), o = t.get(
|
|
5404
5409
|
`builder.overrides.${n}`
|
|
5405
5410
|
), r = t.get("apiKey") || t.get("builder.space");
|
|
5406
|
-
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) &&
|
|
5411
|
+
(n === "BUILDER_STUDIO" || n === this.model && r === this.apiKey && (!this.content || o === this.content.id)) && Oe({
|
|
5407
5412
|
model: this.model,
|
|
5408
5413
|
apiKey: this.apiKey,
|
|
5409
5414
|
apiVersion: this.builderContextSignal.apiVersion,
|
|
@@ -5420,7 +5425,7 @@ font-weight: ${s};
|
|
|
5420
5425
|
});
|
|
5421
5426
|
function os(e, t, n, o, r, i) {
|
|
5422
5427
|
var s, l, a;
|
|
5423
|
-
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(
|
|
5428
|
+
return e.builderContextSignal.content || e.needsElementRefDivForEditing() ? (d(), S(Z(e.ContentWrapper), $({
|
|
5424
5429
|
key: 0,
|
|
5425
5430
|
ref: "elementRef",
|
|
5426
5431
|
onClick: (u) => e.onClick(u),
|
|
@@ -5433,15 +5438,15 @@ function os(e, t, n, o, r, i) {
|
|
|
5433
5438
|
onIniteditingbldr: (u) => e.elementRef_onIniteditingbldr(u),
|
|
5434
5439
|
onInitpreviewingbldr: (u) => e.elementRef_onInitpreviewingbldr(u)
|
|
5435
5440
|
}, { ...e.showContentProps, ...e.contentWrapperProps }), {
|
|
5436
|
-
default:
|
|
5441
|
+
default: D(() => [
|
|
5437
5442
|
N(e.$slots, "default")
|
|
5438
5443
|
]),
|
|
5439
5444
|
_: 3
|
|
5440
|
-
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) :
|
|
5445
|
+
}, 16, ["onClick", "builder-content-id", "builder-model", "className", "style", "onIniteditingbldr", "onInitpreviewingbldr"])) : T("", !0);
|
|
5441
5446
|
}
|
|
5442
5447
|
const rs = /* @__PURE__ */ v(ns, [["render", os]]), is = y({
|
|
5443
5448
|
name: "content-styles",
|
|
5444
|
-
components: { InlinedStyles:
|
|
5449
|
+
components: { InlinedStyles: me },
|
|
5445
5450
|
props: ["cssCode", "contentId", "customFonts", "isNestedRender", "nonce"],
|
|
5446
5451
|
data() {
|
|
5447
5452
|
return {
|
|
@@ -5493,14 +5498,14 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5493
5498
|
...t
|
|
5494
5499
|
},
|
|
5495
5500
|
meta: e == null ? void 0 : e.meta
|
|
5496
|
-
} : void 0, ds =
|
|
5501
|
+
} : void 0, ds = Wt, us = y({
|
|
5497
5502
|
name: "content-component",
|
|
5498
5503
|
components: {
|
|
5499
5504
|
EnableEditor: rs,
|
|
5500
|
-
InlinedScript:
|
|
5505
|
+
InlinedScript: xe,
|
|
5501
5506
|
ContentStyles: as,
|
|
5502
5507
|
Blocks: K,
|
|
5503
|
-
DynamicDiv:
|
|
5508
|
+
DynamicDiv: ne
|
|
5504
5509
|
},
|
|
5505
5510
|
props: [
|
|
5506
5511
|
"content",
|
|
@@ -5517,6 +5522,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5517
5522
|
"model",
|
|
5518
5523
|
"apiHost",
|
|
5519
5524
|
"enrich",
|
|
5525
|
+
"enrichOptions",
|
|
5520
5526
|
"showContent",
|
|
5521
5527
|
"contentWrapper",
|
|
5522
5528
|
"contentWrapperProps",
|
|
@@ -5542,7 +5548,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5542
5548
|
...n,
|
|
5543
5549
|
[r.name]: {
|
|
5544
5550
|
component: ds(o),
|
|
5545
|
-
...
|
|
5551
|
+
...ce(r)
|
|
5546
5552
|
}
|
|
5547
5553
|
}),
|
|
5548
5554
|
{}
|
|
@@ -5569,7 +5575,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5569
5575
|
].reduce(
|
|
5570
5576
|
(n, { component: o, ...r }) => ({
|
|
5571
5577
|
...n,
|
|
5572
|
-
[r.name]:
|
|
5578
|
+
[r.name]: ce(r)
|
|
5573
5579
|
}),
|
|
5574
5580
|
{}
|
|
5575
5581
|
),
|
|
@@ -5596,7 +5602,7 @@ const as = /* @__PURE__ */ v(is, [["render", ss]]), ls = ({
|
|
|
5596
5602
|
"No API key provided to `Content` component. This can cause issues. Please provide an API key using the `apiKey` prop."
|
|
5597
5603
|
);
|
|
5598
5604
|
const e = (n = (t = this.builderContextSignal.content) == null ? void 0 : t.data) == null ? void 0 : n.jsCode;
|
|
5599
|
-
e &&
|
|
5605
|
+
e && te({
|
|
5600
5606
|
code: e,
|
|
5601
5607
|
context: this.context || {},
|
|
5602
5608
|
localState: void 0,
|
|
@@ -5642,6 +5648,7 @@ function ps(e, t, n, o, r, i) {
|
|
|
5642
5648
|
canTrack: e.canTrack,
|
|
5643
5649
|
locale: e.locale,
|
|
5644
5650
|
enrich: e.enrich,
|
|
5651
|
+
enrichOptions: e.enrichOptions,
|
|
5645
5652
|
showContent: e.showContent,
|
|
5646
5653
|
builderContextSignal: e.builderContextSignal,
|
|
5647
5654
|
contentWrapper: e.contentWrapper,
|
|
@@ -5649,23 +5656,23 @@ function ps(e, t, n, o, r, i) {
|
|
|
5649
5656
|
trustedHosts: e.trustedHosts,
|
|
5650
5657
|
isNestedRender: e.isNestedRender
|
|
5651
5658
|
}, {}), {
|
|
5652
|
-
default:
|
|
5653
|
-
var p,
|
|
5659
|
+
default: D(() => {
|
|
5660
|
+
var p, b, c, m, f, g, A;
|
|
5654
5661
|
return [
|
|
5655
5662
|
e.isSsrAbTest ? (d(), S(s, {
|
|
5656
5663
|
key: 0,
|
|
5657
5664
|
id: "builderio-variant-visibility",
|
|
5658
5665
|
scriptStr: e.scriptStr,
|
|
5659
5666
|
nonce: e.nonce || ""
|
|
5660
|
-
}, null, 8, ["scriptStr", "nonce"])) :
|
|
5667
|
+
}, null, 8, ["scriptStr", "nonce"])) : T("", !0),
|
|
5661
5668
|
e.TARGET !== "reactNative" ? (d(), S(l, {
|
|
5662
5669
|
key: 1,
|
|
5663
5670
|
nonce: e.nonce || "",
|
|
5664
5671
|
isNestedRender: e.isNestedRender,
|
|
5665
5672
|
contentId: (p = e.builderContextSignal.content) == null ? void 0 : p.id,
|
|
5666
|
-
cssCode: (c = (
|
|
5667
|
-
customFonts: (
|
|
5668
|
-
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) :
|
|
5673
|
+
cssCode: (c = (b = e.builderContextSignal.content) == null ? void 0 : b.data) == null ? void 0 : c.cssCode,
|
|
5674
|
+
customFonts: (f = (m = e.builderContextSignal.content) == null ? void 0 : m.data) == null ? void 0 : f.customFonts
|
|
5675
|
+
}, null, 8, ["nonce", "isNestedRender", "contentId", "cssCode", "customFonts"])) : T("", !0),
|
|
5669
5676
|
R(a, {
|
|
5670
5677
|
blocks: (A = (g = e.builderContextSignal.content) == null ? void 0 : g.data) == null ? void 0 : A.blocks,
|
|
5671
5678
|
context: e.builderContextSignal,
|
|
@@ -5675,13 +5682,13 @@ function ps(e, t, n, o, r, i) {
|
|
|
5675
5682
|
];
|
|
5676
5683
|
}),
|
|
5677
5684
|
_: 1
|
|
5678
|
-
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5685
|
+
}, 16, ["apiHost", "nonce", "content", "data", "model", "context", "apiKey", "canTrack", "locale", "enrich", "enrichOptions", "showContent", "builderContextSignal", "contentWrapper", "contentWrapperProps", "trustedHosts", "isNestedRender"]);
|
|
5679
5686
|
}
|
|
5680
5687
|
const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = y({
|
|
5681
5688
|
name: "content-variants",
|
|
5682
5689
|
components: {
|
|
5683
|
-
InlinedScript:
|
|
5684
|
-
InlinedStyles:
|
|
5690
|
+
InlinedScript: xe,
|
|
5691
|
+
InlinedStyles: me,
|
|
5685
5692
|
ContentComponent: ms
|
|
5686
5693
|
},
|
|
5687
5694
|
props: [
|
|
@@ -5699,6 +5706,7 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = y({
|
|
|
5699
5706
|
"linkComponent",
|
|
5700
5707
|
"locale",
|
|
5701
5708
|
"enrich",
|
|
5709
|
+
"enrichOptions",
|
|
5702
5710
|
"blocksWrapper",
|
|
5703
5711
|
"blocksWrapperProps",
|
|
5704
5712
|
"contentWrapper",
|
|
@@ -5708,7 +5716,7 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = y({
|
|
|
5708
5716
|
data() {
|
|
5709
5717
|
return {
|
|
5710
5718
|
shouldRenderVariants: Li({
|
|
5711
|
-
canTrack:
|
|
5719
|
+
canTrack: J(this.canTrack),
|
|
5712
5720
|
content: this.content
|
|
5713
5721
|
}),
|
|
5714
5722
|
shouldEmitPersonalizationFns: tr(this.content),
|
|
@@ -5716,7 +5724,7 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = y({
|
|
|
5716
5724
|
getInitPersonalizationVariantsFnsScriptString: nr,
|
|
5717
5725
|
TARGET: E,
|
|
5718
5726
|
getInitVariantsFnsScriptString: Mi,
|
|
5719
|
-
getVariants:
|
|
5727
|
+
getVariants: se
|
|
5720
5728
|
};
|
|
5721
5729
|
},
|
|
5722
5730
|
mounted() {
|
|
@@ -5725,7 +5733,7 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = y({
|
|
|
5725
5733
|
updateCookieAndStylesScriptStr() {
|
|
5726
5734
|
var e;
|
|
5727
5735
|
return ji(
|
|
5728
|
-
|
|
5736
|
+
se(this.content).map((t) => ({
|
|
5729
5737
|
id: t.testVariationId,
|
|
5730
5738
|
testRatio: t.testRatio
|
|
5731
5739
|
})),
|
|
@@ -5733,7 +5741,7 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = y({
|
|
|
5733
5741
|
);
|
|
5734
5742
|
},
|
|
5735
5743
|
hideVariantsStyleString() {
|
|
5736
|
-
return
|
|
5744
|
+
return se(this.content).map((e) => `.variant-${e.testVariationId} { display: none; } `).join("");
|
|
5737
5745
|
},
|
|
5738
5746
|
defaultContent() {
|
|
5739
5747
|
var e;
|
|
@@ -5742,7 +5750,7 @@ const ms = /* @__PURE__ */ v(us, [["render", ps]]), hs = y({
|
|
|
5742
5750
|
testVariationId: (e = this.content) == null ? void 0 : e.id
|
|
5743
5751
|
} : Fn({
|
|
5744
5752
|
item: this.content,
|
|
5745
|
-
canTrack:
|
|
5753
|
+
canTrack: J(this.canTrack)
|
|
5746
5754
|
});
|
|
5747
5755
|
}
|
|
5748
5756
|
}
|
|
@@ -5756,8 +5764,8 @@ function fs(e, t, n, o, r, i) {
|
|
|
5756
5764
|
id: "builderio-init-personalization-variants-fns",
|
|
5757
5765
|
nonce: e.nonce || "",
|
|
5758
5766
|
scriptStr: e.getInitPersonalizationVariantsFnsScriptString()
|
|
5759
|
-
}, null, 8, ["nonce", "scriptStr"])) :
|
|
5760
|
-
], 64)) :
|
|
5767
|
+
}, null, 8, ["nonce", "scriptStr"])) : T("", !0)
|
|
5768
|
+
], 64)) : T("", !0),
|
|
5761
5769
|
e.shouldRenderVariants ? (d(), h(I, { key: 1 }, [
|
|
5762
5770
|
R(s, {
|
|
5763
5771
|
id: "builderio-init-variants-fns",
|
|
@@ -5774,7 +5782,7 @@ function fs(e, t, n, o, r, i) {
|
|
|
5774
5782
|
scriptStr: e.updateCookieAndStylesScriptStr,
|
|
5775
5783
|
nonce: e.nonce || ""
|
|
5776
5784
|
}, null, 8, ["scriptStr", "nonce"]),
|
|
5777
|
-
(d(!0), h(I, null,
|
|
5785
|
+
(d(!0), h(I, null, L(e.getVariants(e.content), (u, p) => (d(), S(a, $({
|
|
5778
5786
|
key: u.testVariationId,
|
|
5779
5787
|
apiHost: e.apiHost,
|
|
5780
5788
|
isNestedRender: e.isNestedRender,
|
|
@@ -5791,14 +5799,15 @@ function fs(e, t, n, o, r, i) {
|
|
|
5791
5799
|
canTrack: e.canTrack,
|
|
5792
5800
|
locale: e.locale,
|
|
5793
5801
|
enrich: e.enrich,
|
|
5802
|
+
enrichOptions: e.enrichOptions,
|
|
5794
5803
|
isSsrAbTest: e.shouldRenderVariants,
|
|
5795
5804
|
blocksWrapper: e.blocksWrapper,
|
|
5796
5805
|
blocksWrapperProps: e.blocksWrapperProps,
|
|
5797
5806
|
contentWrapper: e.contentWrapper,
|
|
5798
5807
|
contentWrapperProps: e.contentWrapperProps,
|
|
5799
5808
|
trustedHosts: e.trustedHosts
|
|
5800
|
-
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
5801
|
-
], 64)) :
|
|
5809
|
+
}, {}), null, 16, ["apiHost", "isNestedRender", "nonce", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"]))), 128))
|
|
5810
|
+
], 64)) : T("", !0),
|
|
5802
5811
|
R(a, $({
|
|
5803
5812
|
apiHost: e.apiHost,
|
|
5804
5813
|
nonce: e.nonce,
|
|
@@ -5815,6 +5824,7 @@ function fs(e, t, n, o, r, i) {
|
|
|
5815
5824
|
canTrack: e.canTrack,
|
|
5816
5825
|
locale: e.locale,
|
|
5817
5826
|
enrich: e.enrich,
|
|
5827
|
+
enrichOptions: e.enrichOptions,
|
|
5818
5828
|
isSsrAbTest: e.shouldRenderVariants,
|
|
5819
5829
|
blocksWrapper: e.blocksWrapper,
|
|
5820
5830
|
blocksWrapperProps: e.blocksWrapperProps,
|
|
@@ -5823,7 +5833,7 @@ function fs(e, t, n, o, r, i) {
|
|
|
5823
5833
|
trustedHosts: e.trustedHosts
|
|
5824
5834
|
}, {
|
|
5825
5835
|
key: e.shouldRenderVariants.toString()
|
|
5826
|
-
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5836
|
+
}), null, 16, ["apiHost", "nonce", "isNestedRender", "content", "model", "data", "context", "apiKey", "apiVersion", "customComponents", "linkComponent", "canTrack", "locale", "enrich", "enrichOptions", "isSsrAbTest", "blocksWrapper", "blocksWrapperProps", "contentWrapper", "contentWrapperProps", "trustedHosts"])
|
|
5827
5837
|
], 64);
|
|
5828
5838
|
}
|
|
5829
5839
|
const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = async ({
|
|
@@ -5832,7 +5842,7 @@ const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = async ({
|
|
|
5832
5842
|
}) => {
|
|
5833
5843
|
if (t != null && t.model && // This is a hack, we should not need to check for this, but it is needed for Svelte.
|
|
5834
5844
|
(e != null && e.apiKey))
|
|
5835
|
-
return
|
|
5845
|
+
return Oe({
|
|
5836
5846
|
model: t.model,
|
|
5837
5847
|
apiKey: t.global && t.ownerId ? t.ownerId : e.apiKey,
|
|
5838
5848
|
apiVersion: e.apiVersion,
|
|
@@ -5846,7 +5856,7 @@ const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = async ({
|
|
|
5846
5856
|
});
|
|
5847
5857
|
}, ys = y({
|
|
5848
5858
|
name: "builder-symbol",
|
|
5849
|
-
components: { ContentVariants: bs, DynamicDiv:
|
|
5859
|
+
components: { ContentVariants: bs, DynamicDiv: ne },
|
|
5850
5860
|
props: [
|
|
5851
5861
|
"symbol",
|
|
5852
5862
|
"builderComponents",
|
|
@@ -5861,7 +5871,7 @@ const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = async ({
|
|
|
5861
5871
|
return {
|
|
5862
5872
|
contentToUse: (e = this.symbol) == null ? void 0 : e.content,
|
|
5863
5873
|
symbolEntry: (t = this.symbol) == null ? void 0 : t.entry,
|
|
5864
|
-
filterAttrs:
|
|
5874
|
+
filterAttrs: O
|
|
5865
5875
|
};
|
|
5866
5876
|
},
|
|
5867
5877
|
mounted() {
|
|
@@ -5888,7 +5898,7 @@ const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = async ({
|
|
|
5888
5898
|
className() {
|
|
5889
5899
|
var e, t;
|
|
5890
5900
|
return [
|
|
5891
|
-
this.attributes[
|
|
5901
|
+
this.attributes[M()],
|
|
5892
5902
|
"builder-symbol",
|
|
5893
5903
|
(e = this.symbol) != null && e.inline ? "builder-inline-symbol" : void 0,
|
|
5894
5904
|
(t = this.symbol) != null && t.dynamic || this.dynamic ? "builder-dynamic-symbol" : void 0
|
|
@@ -5914,9 +5924,9 @@ const bs = /* @__PURE__ */ v(hs, [["render", fs]]), gs = async ({
|
|
|
5914
5924
|
}
|
|
5915
5925
|
});
|
|
5916
5926
|
function vs(e, t, n, o, r, i) {
|
|
5917
|
-
var l, a, u, p,
|
|
5927
|
+
var l, a, u, p, b, c, m;
|
|
5918
5928
|
const s = k("ContentVariants");
|
|
5919
|
-
return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) },
|
|
5929
|
+
return d(), h("div", $({ class: e.className }, { ...e.filterAttrs(e.attributes, "v-on:", !1) }, U(e.filterAttrs(e.attributes, "v-on:", !0), !0)), [
|
|
5920
5930
|
R(s, {
|
|
5921
5931
|
nonce: e.builderContext.nonce,
|
|
5922
5932
|
isNestedRender: !0,
|
|
@@ -5930,7 +5940,7 @@ function vs(e, t, n, o, r, i) {
|
|
|
5930
5940
|
data: {
|
|
5931
5941
|
...(p = e.symbol) == null ? void 0 : p.data,
|
|
5932
5942
|
...e.builderContext.localState,
|
|
5933
|
-
...(c = (
|
|
5943
|
+
...(c = (b = e.contentToUse) == null ? void 0 : b.data) == null ? void 0 : c.state
|
|
5934
5944
|
},
|
|
5935
5945
|
canTrack: e.builderContext.canTrack,
|
|
5936
5946
|
model: ((m = e.symbol) == null ? void 0 : m.model) ?? "",
|
|
@@ -5950,24 +5960,24 @@ export {
|
|
|
5950
5960
|
Zn as E,
|
|
5951
5961
|
Do as F,
|
|
5952
5962
|
_n as G,
|
|
5953
|
-
|
|
5963
|
+
Oe as H,
|
|
5954
5964
|
zo as I,
|
|
5955
5965
|
Ts as J,
|
|
5956
5966
|
Ns as K,
|
|
5957
5967
|
Go as S,
|
|
5958
5968
|
E as T,
|
|
5959
|
-
|
|
5969
|
+
Wi as V,
|
|
5960
5970
|
v as _,
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5971
|
+
M as a,
|
|
5972
|
+
ye as b,
|
|
5973
|
+
me as c,
|
|
5974
|
+
j as d,
|
|
5975
|
+
te as e,
|
|
5966
5976
|
Po as f,
|
|
5967
5977
|
Vs as g,
|
|
5968
5978
|
Bs as h,
|
|
5969
5979
|
P as i,
|
|
5970
|
-
|
|
5980
|
+
Os as j,
|
|
5971
5981
|
We as k,
|
|
5972
5982
|
Pn as l,
|
|
5973
5983
|
Mt as m,
|
|
@@ -5975,7 +5985,7 @@ export {
|
|
|
5975
5985
|
Dr as o,
|
|
5976
5986
|
K as p,
|
|
5977
5987
|
bs as q,
|
|
5978
|
-
|
|
5988
|
+
Be as r,
|
|
5979
5989
|
Ps as s,
|
|
5980
5990
|
An as t,
|
|
5981
5991
|
Is as u,
|